X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=config%2Foverride.m4;h=d3e815bb1b40c91f23d9fed7710573f9f2623cb6;hb=e2201c2a578f2b22fc04cc95507c643ac908c952;hp=52bd1c3d1b82469bf38c11dddf5fbec82878820f;hpb=626a5a0cb2820fb7bb79ced511c35a924679f97b;p=deliverable%2Fbinutils-gdb.git diff --git a/config/override.m4 b/config/override.m4 index 52bd1c3d1b..d3e815bb1b 100644 --- a/config/override.m4 +++ b/config/override.m4 @@ -29,7 +29,7 @@ m4_copy_force([_AC_PREREQ], [AC_PREREQ]) dnl Ensure exactly this Autoconf version is used m4_ifndef([_GCC_AUTOCONF_VERSION], - [m4_define([_GCC_AUTOCONF_VERSION], [2.64])]) + [m4_define([_GCC_AUTOCONF_VERSION], [2.69])]) dnl Test for the exact version when AC_INIT is expanded. dnl This allows to update the tree in steps (for testing) @@ -101,4 +101,16 @@ m4_define([_AC_CHECK_DECLS], ]) +dnl If flex/lex are not found, the top level configure sets LEX to +dnl "/path_to/missing flex". When AC_PROG_LEX tries to find the flex +dnl output file, it calls $LEX to do so, but the current lightweight +dnl "missing" won't create a file. This results in an error. +dnl Avoid calling the bulk of AC_PROG_LEX when $LEX is "missing". +AC_DEFUN_ONCE([AC_PROG_LEX], +[AC_CHECK_PROGS(LEX, flex lex, :) +case "$LEX" in + :|*"missing "*) ;; + *) _AC_PROG_LEX_YYTEXT_DECL ;; +esac]) + ])