X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=cbd4d306abb1ed148c046e729548c87558720b65;hb=e6727cbdd34a6ec30b437311724a6aa60e6b06fd;hp=e92e96b879b5b92bc857d71bbce3bf16bc4978af;hpb=de26b8245b06c99ec64d9f88cfde1ed9627f871a;p=fio.git diff --git a/configure b/configure index e92e96b8..cbd4d306 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) @@ -487,7 +489,8 @@ echo "zlib $zlib" ########################################## # linux-aio probe libaio="no" -cat > $TMPC < $TMPC < #include int main(void) @@ -496,14 +499,15 @@ int main(void) return 0; } EOF -if compile_prog "" "-laio" "libaio" ; then - libaio=yes - LIBS="-laio $LIBS" -else - if test "$libaio" = "yes" ; then - feature_not_found "linux AIO" "libaio-dev or libaio-devel" + if compile_prog "" "-laio" "libaio" ; then + libaio=yes + LIBS="-laio $LIBS" + else + if test "$libaio" = "yes" ; then + feature_not_found "linux AIO" "libaio-dev or libaio-devel" + fi + libaio=no fi - libaio=no fi echo "Linux AIO support $libaio" @@ -1505,6 +1509,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 +1519,7 @@ else lex_use_o="no" fi fi +fi echo "lex/yacc for arithmetic $arith"