Autoconf test for incompatible version of flex

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Autoconf test for incompatible version of flex
Date: 2003-07-05 00:51:21
Message-ID: 87adbt4wza.fsf@stark.dyndns.tv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


This patch adds an autoconf test to check for the new incompatible version of
flex.

--- programs.m4.~1.12.~ 2003-05-06 19:33:52.000000000 -0400
+++ programs.m4 2003-07-04 20:45:47.000000000 -0400
@@ -30,6 +30,10 @@
pgac_broken_flex=$pgac_candidate
continue
fi
+ if $pgac_candidate --version | grep ' 2\.5\.[[3-9][0-9]]$' >/dev/null 2>&1; then
+ pgac_new_flex=$pgac_candidate
+ continue
+ fi

pgac_cv_path_flex=$pgac_candidate
break 2
@@ -49,6 +53,12 @@
*** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
*** should get version 2.5.4 or later.])
fi
+ if test -n "$pgac_new_flex"; then
+ AC_MSG_WARN([
+*** The Flex version you have at $pgac_new_flex is a version PostgreSQL does
+*** not support. There were major incompatible API changes in this release of
+*** Flex. To compile PostgreSQL you should get version no later than 2.5.4a.])
+ fi

AC_MSG_WARN([
*** Without Flex you will not be able to build PostgreSQL from CVS or

--
greg

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Joe Conway 2003-07-05 03:00:17 Re: Proof-of-concept for initdb-time shared_buffers selection
Previous Message Stephan Szabo 2003-07-04 22:38:56 An additional foreign key test for regression