CVS User Account cvsuser
Mon Jun 6 18:48:58 PDT 2005
Log Message:
-----------
Check to see if pg_config --configure has --enable-thread-safety on aix and solaris

Modified Files:
--------------
    slony1-engine/config:
        acx_libpq.m4 (r1.10 -> r1.11)

-------------- next part --------------
Index: acx_libpq.m4
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/config/acx_libpq.m4,v
retrieving revision 1.10
retrieving revision 1.11
diff -Lconfig/acx_libpq.m4 -Lconfig/acx_libpq.m4 -u -w -r1.10 -r1.11
--- config/acx_libpq.m4
+++ config/acx_libpq.m4
@@ -47,6 +47,20 @@
       AC_MSG_RESULT($PG_VERSION)
       AC_DEFINE(PG_VERSION_OK,1,[PostgreSQL 7.3.3 or later])
     fi
+    case ${host_os} in
+	aix*|*solaris*)
+		AC_MSG_CHECKING(PostgreSQL for enable-thread-safety as required on ${host_os})
+		PG_ETS=`echo $PG_CONFIGURE | grep -c enable-thread-safety`
+		if test $PG_ETS -eq 0; then
+			AC_MSG_RESULT(no)
+			AC_MSG_ERROR(PostgreSQL needs to be compiled with --enable-thread-safety on ${host_os})
+		else
+			AC_MSG_RESULT(yes)
+		fi
+	;;
+	*)
+	;;
+    esac
 else
     dnl Specify the commandline options here.
     AC_MSG_ERROR(Cannot find pg_config. 


More information about the Slony1-commit mailing list