Commit 2df532d9 authored by Tom Lane's avatar Tom Lane

Make bison version test actually work ...

parent 6bdb7aa4
...@@ -4426,14 +4426,13 @@ done ...@@ -4426,14 +4426,13 @@ done
if test "$YACC"; then if test "$YACC"; then
if "$YACC" --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
{ echo "$as_me:$LINENO: WARNING: { echo "$as_me:$LINENO: WARNING:
*** The installed version of Bison is too old. PostgreSQL needs *** The installed version of Bison is too old. PostgreSQL needs
*** Bison version 1.875 or later." >&5 *** Bison version 1.875 or later." >&5
echo "$as_me: WARNING: echo "$as_me: WARNING:
*** The installed version of Bison is too old. PostgreSQL needs *** The installed version of Bison is too old. PostgreSQL needs
*** Bison version 1.875 or later." >&2;} *** Bison version 1.875 or later." >&2;}
unset YACC
fi fi
fi fi
......
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.256 2003/06/07 16:32:05 momjian Exp $ dnl $Header: /cvsroot/pgsql/configure.in,v 1.257 2003/06/09 03:41:46 tgl Exp $
dnl dnl
dnl Developers, please strive to achieve this order: dnl Developers, please strive to achieve this order:
dnl dnl
...@@ -587,11 +587,10 @@ PGAC_CHECK_STRIP ...@@ -587,11 +587,10 @@ PGAC_CHECK_STRIP
AC_CHECK_PROGS(YACC, ['bison -y']) AC_CHECK_PROGS(YACC, ['bison -y'])
if test "$YACC"; then if test "$YACC"; then
if "$YACC" --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
AC_MSG_WARN([ AC_MSG_WARN([
*** The installed version of Bison is too old. PostgreSQL needs *** The installed version of Bison is too old. PostgreSQL needs
*** Bison version 1.875 or later.]) *** Bison version 1.875 or later.])
unset YACC
fi fi
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment