OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/uuid.ac versions 1.18 and 1.19
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/uuid.ac 1.18 -> 1.19

--- uuid.ac      2005/09/02 14:32:40     1.18
+++ uuid.ac      2006/01/12 20:31:50     1.19
@@ -156,5 +156,28 @@
     if test ".$ac_cv_with_php" = ".yes"; then
         (cd php && make -f Makefile.local config PHP=$PHP)
     fi
+
+    dnl #   configure option --with-pgsql
+    AC_ARG_WITH([pgsql],
+        AS_HELP_STRING([--with-pgsql], [build PostgreSQL bindings to C API]),
+        [ac_cv_with_pgsql=$withval], [ac_cv_with_pgsql=no])
+    AC_CACHE_CHECK([whether to build PostgreSQL bindings to C API], [ac_cv_with_pgsql], [ac_cv_with_pgsql=no])
+    if test ".$ac_cv_with_pgsql" = ".yes"; then
+        AC_DEFINE(WITH_PGSQL, 1, [whether to build PostgreSQL bindings to C API])
+        WITH_PGSQL='yes'
+        PGSQL_NAME='$(PGSQL_NAME)'
+    else
+        WITH_PGSQL='no'
+        PGSQL_NAME=''
+    fi
+    AC_SUBST(PGSQL_NAME)
+    AC_SUBST(WITH_PGSQL)
+    AC_PATH_PROGS(PG_CONFIG, pg_config, NA)
+    if test ".$ac_cv_with_pgsql" = ".yes" -a ".$PG_CONFIG" = ".NA"; then
+        AC_ERROR([required PostgreSQL pg_config utility not found in \$PATH])
+    fi
+    if test ".$ac_cv_with_pgsql" = ".yes" -a ".`${MAKE-make} -v 2>/dev/null | grep GNU`" = .; then
+        AC_ERROR([PostgreSQL bindings require GNU make to build])
+    fi
 ])
 

CVSTrac 2.0.1