Please consider the attached patch which uses pg_config --sharedir for finding
the postgresql.conf.sample directory. This will help building slony without
extra options on all installation layouts with PostgreSQL 8.1 and later.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
diff -ur ../slony1-engine.orig/config/acx_libpq.m4 ./config/acx_libpq.m4
--- ../slony1-engine.orig/config/acx_libpq.m4 2006-09-29 21:24:34.000000000 +0200
+++ ./config/acx_libpq.m4 2006-10-27 15:17:39.000000000 +0200
@@ -107,6 +107,7 @@
PG_INCLUDEDIR=$WIN32_PG_LOCATION/include
PG_PKGLIBDIR=$WIN32_PG_LOCATION/lib
PG_INCLUDESERVERDIR=$WIN32_PG_LOCATION/include/server
+ PG_SHAREDIR=$WIN32_PG_LOCATION/share
;;
*)
@@ -130,6 +131,10 @@
PG_INCLUDESERVERDIR=`$PG_CONFIG_LOCATION --includedir-server`/
echo "pg_config says pg_includeserverdir is $PG_INCLUDESERVERDIR"
fi
+ if test "$PG_SHAREDIR" = ""; then
+ PG_SHAREDIR=`$PG_CONFIG_LOCATION --sharedir`/ 2>/dev/null
+ echo "pg_config says pg_sharedir is $PG_SHAREDIR"
+ fi
;;
esac
_______________________________________________
Slony1-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/slony1-general