X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d85949accc8820a54c468fbdf930063be5873296..e2030cb82d5b8f8b39696794f036e5ffc435f9bf:/acmacro/flex.m4 diff --git a/acmacro/flex.m4 b/acmacro/flex.m4 deleted file mode 100644 index b7b0fe6d72..0000000000 --- a/acmacro/flex.m4 +++ /dev/null @@ -1,58 +0,0 @@ -dnl AC_PROG_FLEX: Check whether the LEXer is flex, and which version it has -dnl The first arg must be a version number with 3 parts. - -dnl You may want to check for version >= 2.5.31 (the one breaking posix compatibility) - - -dnl Copyright (C) 2005. Martin Quinson. All rights reserved. - -dnl This file is part of the SimGrid project. This is free software: -dnl You can redistribute and/or modify it under the terms of the -dnl GNU LGPL (v2.1) licence. - - -AC_DEFUN([_AC_PROG_FLEX_HELPER_TOO_OLD],[ - AC_MSG_NOTICE([Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v$1)]) - LEX="$SHELL $missing_dir/missing flex"; - AC_SUBST(LEXLIB, '') -]) - -AC_DEFUN([AC_PROG_FLEX], - [ -AC_PREREQ(2.50)dnl -AC_REQUIRE([AM_MISSING_HAS_RUN])dnl -AC_REQUIRE([AC_PROG_LEX])dnl - if test "$LEX" != flex; then - AC_MSG_NOTICE([Flex not found. Parsers won't get updated.]) - LEX=${am_missing_run}flex - AC_SUBST(LEXLIB, '') - else - if test "x$1" != "x" ; then - dnl - dnl We were asked to check the version number - dnl - changequote(<<, >>)dnl because of the regexp [blabla] - FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'` - - FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` - FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` - FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` - - WANT_VER_MAJ=`echo $1 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`; - WANT_VER_MED=`echo $1 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`; - WANT_VER_MIN=`echo $1 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`; - changequote([, ])dnl back to normality, there is no regexp afterward - - if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" || - test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" || - test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ; - then - AC_MSG_NOTICE([Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v$1)]) - LEX=${am_missing_run}flex - AC_SUBST(LEXLIB, '') - else - AC_MSG_NOTICE([Flex found. Parsers will get updated]) - fi - fi - fi -])