File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -4424,6 +4424,19 @@ fi
4424
4424
test -n " $YACC " && break
4425
4425
done
4426
4426
4427
+
4428
+ if test " $YACC " ; then
4429
+ if bison --version | sed q | $AWK ' { if ($4 < 1.875) exit 0; else exit 1;}' ; then
4430
+ { echo " $as_me :$LINENO : WARNING:
4431
+ *** The installed version of Bison is too old. PostgreSQL needs
4432
+ *** Bison version 1.875 or later." >&5
4433
+ echo " $as_me : WARNING:
4434
+ *** The installed version of Bison is too old. PostgreSQL needs
4435
+ *** Bison version 1.875 or later." >&2 ; }
4436
+ unset YACC
4437
+ fi
4438
+ fi
4439
+
4427
4440
if test -z " $YACC " ; then
4428
4441
{ echo " $as_me :$LINENO : WARNING:
4429
4442
*** Without Bison you will not be able to build PostgreSQL from CVS or
Original file line number Diff line number Diff line change 1
1
dnl Process this file with autoconf to produce a configure script.
2
- dnl $Header: /cvsroot/pgsql/configure.in,v 1.254 2003/05/27 16:36:50 momjian Exp $
2
+ dnl $Header: /cvsroot/pgsql/configure.in,v 1.255 2003/06/06 19:11:55 momjian Exp $
3
3
dnl
4
4
dnl Developers, please strive to achieve this order:
5
5
dnl
@@ -585,6 +585,16 @@ AC_PATH_PROG(TAR, tar)
585
585
PGAC_CHECK_STRIP
586
586
587
587
AC_CHECK_PROGS(YACC, ['bison -y'])
588
+
589
+ if test "$YACC"; then
590
+ if bison --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
591
+ AC_MSG_WARN([
592
+ *** The installed version of Bison is too old. PostgreSQL needs
593
+ *** Bison version 1.875 or later.])
594
+ unset YACC
595
+ fi
596
+ fi
597
+
588
598
if test -z "$YACC"; then
589
599
AC_MSG_WARN([
590
600
*** Without Bison you will not be able to build PostgreSQL from CVS or
You can’t perform that action at this time.
0 commit comments