summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-03-04 13:45:21 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-03-04 13:52:31 -0800
commita3b9a4efba1737df15bb6acaf6621622ab85b929 (patch)
treeadf781a49da690c5c13e73969640d91b570845ac
parentdbf8869b30724796637e3060d3fc4166dc670485 (diff)
configure: pass noyywrap to AC_PROG_LEX if using autoconf 2.70 or later
Raises minimum autoconf version from 2.60 to 2.64 for m4_version_prereq Clears autoconf warning: configure.ac:29: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete ./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from... ./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from... configure.ac:29: the top level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 57d5dc6..f8a7f50 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
-# Initialize Autoconf
-AC_PREREQ([2.60])
+# Initialize Autoconf - requires at least 2.64 for m4_version_prereq
+AC_PREREQ([2.64])
AC_INIT([libXaw3d], [1.6.4],
[https://gitlab.freedesktop.org/xorg/lib/libxaw3d/-/issues], [libXaw3d])
AC_CONFIG_SRCDIR([Makefile.am])
@@ -27,7 +27,7 @@ if test ! -f "$srcdir/src/laygram.c"; then
AC_MSG_ERROR([yacc not found - unable to compile laygram.y])
fi
fi
-AC_PROG_LEX
+m4_version_prereq([2.70], [AC_PROG_LEX(noyywrap)], [AC_PROG_LEX])
AC_PATH_PROG([LEX_INST], $LEX)
if test ! -f "$srcdir/src/laylex.c"; then
if test -z "$LEX_INST"; then