X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=517668233fc79cbddd6e41157c23957ee8ab95ee;hb=9e9d41d7e283f23560b5b3a78b899361b13a290a;hp=e92e96b879b5b92bc857d71bbce3bf16bc4978af;hpb=de26b8245b06c99ec64d9f88cfde1ed9627f871a;p=fio.git diff --git a/configure b/configure index e92e96b8..51766823 100755 --- a/configure +++ b/configure @@ -247,6 +247,8 @@ AIX) # Unless explicitly enabled, turn off lex. if test -z "$disable_lex" ; then disable_lex="yes" + else + force_no_lex_o="yes" fi ;; Darwin) @@ -1505,6 +1507,9 @@ fi # Check if lex fails using -o if test "$arith" = "yes" ; then +if test "$force_no_lex_o" = "yes" ; then + lex_use_o="no" +else $LEX -o lex.yy.c exp/expression-parser.l 2> /dev/null if test "$?" = "0" ; then lex_use_o="yes" @@ -1512,6 +1517,7 @@ else lex_use_o="no" fi fi +fi echo "lex/yacc for arithmetic $arith"