configure: disable lex/yacc on Solaris
authorJens Axboe <axboe@fb.com>
Thu, 30 Oct 2014 16:11:32 +0000 (10:11 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 30 Oct 2014 16:11:32 +0000 (10:11 -0600)
It currently breaks, disable it until we can figure it out:

   LEX lex.yy.c
"exp/expression-parser.l":line 166: Warning: Non-portable Character Class
  YACC y.tab.c
    CC lex.yy.o
exp/expression-parser.l:43:37: error: conflicting types for ‘yyunput’
lex.yy.c:31:7: note: previous declaration of ‘yyunput’ was here
exp/expression-parser.l:44:46: error: macro "input" passed 1 arguments, but takes just 0
exp/expression-parser.l: In function ‘yylex’:
exp/expression-parser.l:61:1: warning: label ‘yyfussy’ defined but not used
exp/expression-parser.l:54:22: warning: unused variable ‘yyprevious’
exp/expression-parser.l: At top level:
exp/expression-parser.l:297:1: warning: missing braces around initializer
exp/expression-parser.l:297:1: warning: (near initialization for ‘yycrank[0]’)
exp/expression-parser.l:376:1: warning: missing braces around initializer
exp/expression-parser.l:376:1: warning: (near initialization for ‘yysvec[0]’)
exp/expression-parser.l:714:6: error: conflicting types for ‘yyunput’
exp/expression-parser.l:43:37: note: previous declaration of ‘yyunput’ was here
make: *** [lex.yy.o] Error 1

Signed-off-by: Jens Axboe <axboe@fb.com>
configure

index 58f02fa57ed51f1721dc79f3c19cfcacde6f6af1..d41a1c3ae5b61570b2b614d5c1ea72e948265913 100755 (executable)
--- a/configure
+++ b/configure
@@ -1317,6 +1317,7 @@ yacc="no"
 yacc_is_bison="no"
 lex="no"
 arith="no"
 yacc_is_bison="no"
 lex="no"
 arith="no"
+if test "$targetos" != "SunOS" ; then
 LEX=$(which lex 2> /dev/null)
 if test -x "$LEX" ; then
   lex="yes"
 LEX=$(which lex 2> /dev/null)
 if test -x "$LEX" ; then
   lex="yes"
@@ -1345,13 +1346,13 @@ int main(int argc, char **argv)
   return 0;
 }
 EOF
   return 0;
 }
 EOF
-
 if compile_prog "" "-ll" "lex"; then
   LIBS="-ll $LIBS"
 else
   arith="no"
 fi
 fi
 if compile_prog "" "-ll" "lex"; then
   LIBS="-ll $LIBS"
 else
   arith="no"
 fi
 fi
+fi
 
 echo "lex/yacc for arithmetic       $arith"
 
 
 echo "lex/yacc for arithmetic       $arith"