Provide AC_PROG_LEX that copes with LEX=missing from top-level
[deliverable/binutils-gdb.git] / ld / configure
index 65b280cc9d771527f888270460648cacf9f1f942..2141ee7cb097f0df8c51cbf3ab86750c9d0a5cb9 100755 (executable)
@@ -16130,8 +16130,9 @@ fi
 done
 test -n "$LEX" || LEX=":"
 
-if test "x$LEX" != "x:"; then
-  cat >conftest.l <<_ACEOF
+case "$LEX" in
+  :|*"missing "*) ;;
+  *) cat >conftest.l <<_ACEOF
 %%
 a { ECHO; }
 b { REJECT; }
@@ -16242,8 +16243,8 @@ $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
 
 fi
 rm -f conftest.l $LEX_OUTPUT_ROOT.c
-
-fi
+ ;;
+esac
 if test "$LEX" = :; then
   LEX=${am_missing_run}flex
 fi
This page took 0.032501 seconds and 4 git commands to generate.