summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-06-06 19:11:55 +0000
committerBruce Momjian <bruce@momjian.us>2003-06-06 19:11:55 +0000
commitfee9b7ca9b15bef9249a8efa703e858e00402c50 (patch)
treeaf62d8c984459f0441ca3751490c10ce1af2b4ec /configure.in
parentdf1f5d6d7de87a1b6febc31c69bee29614df771c (diff)
downloadpostgresql-fee9b7ca9b15bef9249a8efa703e858e00402c50.tar.gz
Add configure warning to check for bison version >= 1.875.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index aece9bd6c7..07a8db4920 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $Header: /cvsroot/pgsql/configure.in,v 1.254 2003/05/27 16:36:50 momjian Exp $
+dnl $Header: /cvsroot/pgsql/configure.in,v 1.255 2003/06/06 19:11:55 momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -585,6 +585,16 @@ AC_PATH_PROG(TAR, tar)
PGAC_CHECK_STRIP
AC_CHECK_PROGS(YACC, ['bison -y'])
+
+if test "$YACC"; then
+ if bison --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
+ AC_MSG_WARN([
+*** The installed version of Bison is too old. PostgreSQL needs
+*** Bison version 1.875 or later.])
+ unset YACC
+ fi
+fi
+
if test -z "$YACC"; then
AC_MSG_WARN([
*** Without Bison you will not be able to build PostgreSQL from CVS or