From daf705b52f6473dff99e631b6b3d3ce574b00a11 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 7 Jan 2016 11:18:22 -0700 Subject: [PATCH] configure: lex force off Signed-off-by: Jens Axboe --- configure | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- 2.25.1