Provide AC_PROG_LEX that copes with LEX=missing from top-level
[deliverable/binutils-gdb.git] / gas / configure
index ceb99f5ab13a49850bc13039699dab2ed9886c8e..c69edf5803882654e621c9008fd2149f5f6e4a34 100755 (executable)
@@ -12862,8 +12862,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; }
@@ -12974,8 +12975,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.025906 seconds and 4 git commands to generate.