X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=configure.ac;h=068b9535e798e20101d7505698a268caa2047a94;hb=d6701381e38348beced306a0ad9947fb3fb8ad82;hp=3d1286135ae9ec1b4ccba680b7b5421f724b7c30;hpb=c20049fd0678f462f621c80f9e91c1ba16e6b656;p=babeltrace.git diff --git a/configure.ac b/configure.ac index 3d128613..068b9535 100644 --- a/configure.ac +++ b/configure.ac @@ -93,7 +93,8 @@ AC_SUBST(LT_NO_UNDEFINED) ## ## # Choose the c compiler -AC_PROG_CC_STDC +AC_PROG_CC +m4_version_prereq([2.70], [], [AC_PROG_CC_STDC]) # Make sure the c compiler supports C99 AS_IF([test "$ac_cv_prog_cc_c99" = "no"], [AC_MSG_ERROR([The compiler does not support C99])]) @@ -226,7 +227,9 @@ detection. AM_CONDITIONAL([HAVE_BISON], [test "x$have_bison" = "xyes"]) # check for flex -AC_PROG_LEX +# Prior to autoconf 2.70, AC_PROG_FLEX did not take an argument. This is not a +# problem since the argument is silently ignored by older versions. +AC_PROG_LEX([noyywrap]) AX_PROG_FLEX_VERSION([2.5.35], [have_flex=yes]) AS_IF([test "x$have_flex" != "xyes"], [