Fix incorrect AC_ARG_VAR usage, make PATH a precious var with decription
authorCraig Ringer <craig@2ndquadrant.com>
Wed, 22 Apr 2015 06:21:19 +0000 (14:21 +0800)
committerCraig Ringer <craig@2ndquadrant.com>
Wed, 22 Apr 2015 06:26:11 +0000 (14:26 +0800)
This makes configure consider the PATH important and documents that
it affects where we find pg_config .

configure
configure.in

index 5e368d4396a3c2f20bc4d06ecb672aa8c4ddc151..000b4cb5bb36707eb1b3b53c897904da4d7a38f8 100755 (executable)
--- a/configure
+++ b/configure
@@ -592,6 +592,7 @@ LIBOBJS
 vpath_build
 BUILDING_BDR
 BUILDING_UDR
+PATH
 OBJEXT
 EXEEXT
 ac_ct_CC
@@ -653,6 +654,7 @@ CFLAGS
 LDFLAGS
 LIBS
 CPPFLAGS
+PATH
 BUILDING_UDR
 BUILDING_BDR'
 
@@ -1275,10 +1277,11 @@ Some influential environment variables:
   LIBS        libraries to pass to the linker, e.g. -l<library>
   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
               you have headers in a nonstandard directory <include dir>
+  PATH        PATH for target PostgreSQL install pg_config
   BUILDING_UDR
-              1
+              Compile UDR only
   BUILDING_BDR
-              1
+              Compile BDR (requires patched PostgreSQL 9.4
 
 Use these variables to override the choices made by `configure' or to help
 it to find libraries and programs with nonstandard names/locations.
@@ -2734,10 +2737,13 @@ fi
 done
 
 
+
+
+
+
 if test "$ac_cv_header_replication_replication_identifier_h" != 'yes'; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: postgres-bdr patches missing, forcing UDR build" >&5
 $as_echo "$as_me: postgres-bdr patches missing, forcing UDR build" >&6;}
-
    BUILDING_UDR=1
 
 
@@ -2749,7 +2755,6 @@ $as_echo "#define BUILDING_UDR 1" >>confdefs.h
 else
    { $as_echo "$as_me:${as_lineno-$LINENO}: building against appropriately patched PostgreSQL" >&5
 $as_echo "$as_me: building against appropriately patched PostgreSQL" >&6;}
-
    BUILDING_BDR=1
 
 
index 97d4147ff1189ade42eb35b160c8cf80c3352d9e..0ec47592ff1046e0bc6a268aea4cc69a0306ce24 100644 (file)
@@ -38,9 +38,12 @@ AC_CHECK_HEADERS([replication/replication_identifier.h], [], [],
 [#include "postgres.h"
 ])
 
+AC_ARG_VAR([PATH], [PATH for target PostgreSQL install pg_config])
+AC_ARG_VAR([BUILDING_UDR], [Compile UDR only])
+AC_ARG_VAR([BUILDING_BDR], [Compile BDR (requires patched PostgreSQL 9.4])
+
 if test "$ac_cv_header_replication_replication_identifier_h" != 'yes'; then
    AC_MSG_NOTICE([postgres-bdr patches missing, forcing UDR build])
-   AC_ARG_VAR([BUILDING_UDR], 1)
    AC_SUBST([BUILDING_UDR], 1)
    AC_DEFINE([BUILDING_UDR], 1, ['Building UDR'])
    if test "$enable_bdr" = "yes"; then
@@ -48,7 +51,6 @@ if test "$ac_cv_header_replication_replication_identifier_h" != 'yes'; then
    fi
 else
    AC_MSG_NOTICE([building against appropriately patched PostgreSQL])
-   AC_ARG_VAR([BUILDING_BDR], 1)
    AC_SUBST([BUILDING_BDR], 1)
    AC_DEFINE([BUILDING_BDR], 1, ['Building BDR'])
    if test "$enable_bdr" = "no"; then