]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Simplify bison detection.
authorBruno Haible <bruno@clisp.org>
Fri, 1 May 2020 18:38:24 +0000 (20:38 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 1 May 2020 18:38:24 +0000 (20:38 +0200)
* autogen.sh (GNULIB_MODULES_RUNTIME_OTHER): Add bison.
* gettext-runtime/configure.ac: Don't invoke AC_PROG_YACC.
* gettext-runtime/m4/intl.m4 (gt_INTL_SUBDIR_CORE): Invoke gl_PROG_BISON.

autogen.sh
gettext-runtime/configure.ac
gettext-runtime/m4/intl.m4

index 343a6e4bf4123cdef66450ce86c518a8a4a9a514..e1e01a535696ca47d6455f4452373da73d9603ce 100755 (executable)
@@ -94,6 +94,7 @@ if ! $skip_gnulib; then
   GNULIB_MODULES_RUNTIME_OTHER='
     gettext-runtime-misc
     ansi-c++-opt
+    bison
     csharpcomp-script
     java
     javacomp-script
index 48b4d5ce9c229be14174a334465963875c60f5a2..b2bfda5e1418130addce338433f230351b1dac1e 100644 (file)
@@ -31,7 +31,6 @@ test "$docdir" != '${datarootdir}/doc/${PACKAGE_TARNAME}' || docdir='${datarootd
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_INSTALL
-AC_PROG_YACC
 
 gt_JAVA_CHOICE
 
index 0b382b71a1ec709d00a2b0fe3c3c3253b3648c0c..0cc0e32349847af20f164edfb7175ecf5a4539af 100644 (file)
@@ -1,4 +1,4 @@
-# intl.m4 serial 40 (gettext-0.20.2)
+# intl.m4 serial 41 (gettext-0.21)
 dnl Copyright (C) 1995-2014, 2016-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -258,26 +258,7 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE],
   dnl files or have a broken "make" program, hence the plural.c rule will
   dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
   dnl present or too old.
-  AC_CHECK_PROGS([INTLBISON], [bison])
-  if test -z "$INTLBISON"; then
-    ac_verc_fail=yes
-  else
-    dnl Found it, now check the version.
-    AC_MSG_CHECKING([version of bison])
-changequote(<<,>>)dnl
-    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
-    case $ac_prog_version in
-      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
-      1.* | 2.[0-6] | 2.[0-6].*)
-changequote([,])dnl
-         ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
-      *) ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
-    esac
-    AC_MSG_RESULT([$ac_prog_version])
-  fi
-  if test $ac_verc_fail = yes; then
-    INTLBISON=:
-  fi
+  gl_PROG_BISON([INTLBISON], [2.7], [1.* | 2.[0-6] | 2.[0-6].*])
 ])
 
 dnl Copies _GL_UNUSED and _GL_ATTRIBUTE_PURE definitions from