@@ -1004,29 +1004,32 @@ AC_PROG_GREP
1004
1004
AC_PROG_EGREP
1005
1005
1006
1006
#
1007
- # We need as and lex
1007
+ # We need as and flex
1008
1008
#
1009
1009
AM_PROG_AS
1010
- AM_PROG_LEX
1010
+
1011
+ dnl Note that prior to AC v2.70, PROG_LEX did not take any arguments.
1012
+ dnl But it is harmless to pass an argument to it ($1 will just be
1013
+ dnl ignored).
1014
+ AC_PROG_LEX([noyywrap])
1011
1015
1012
1016
# If we don't have Flex and we don't have a generated .c file
1013
1017
# (distribution tarballs will have the .c file included, but git
1014
1018
# clones will not), then error. Must have Flex -- other versions of
1015
1019
# Lex are not workable (all things being equal, since this is *only*
1016
1020
# required for developers, we decided that it really was not worth it
1017
1021
# to be portable between different versions of lex ;-).
1018
-
1019
- if test -z " $LEX " || \
1022
+ AS_IF([test -z " $LEX " || \
1020
1023
test -n " ` echo $LEX | $GREP missing` " || \
1021
- test " ` basename $LEX ` " ! = " flex" ; then
1022
- if test ! -f " $srcdir /opal/util/show_help_lex.c" ; then
1023
- AC_MSG_WARN([*** Could not find Flex on your system.])
1024
+ test " ` basename $LEX ` " != " flex" ],
1025
+ [AS_IF([ test ! -f " $srcdir /opal/util/show_help_lex.c" ],
1026
+ [ AC_MSG_WARN([*** Could not find Flex on your system.])
1024
1027
AC_MSG_WARN([*** Flex is required for developer builds of Open MPI.])
1025
1028
AC_MSG_WARN([*** Other versions of Lex are not supported.])
1026
1029
AC_MSG_WARN([*** NOTE: If you are building a tarball downloaded from www.open-mpi.org, you do not need Flex])
1027
1030
AC_MSG_ERROR([Cannot continue])
1028
- fi
1029
- fi
1031
+ ])
1032
+ ])
1030
1033
1031
1034
#
1032
1035
# Setup man page processing
0 commit comments