michael@237: Index: configure.in michael@608: --- configure.in.orig 2011-03-04 19:47:50.000000000 +0100 michael@608: +++ configure.in 2011-03-05 13:00:48.000000000 +0100 michael@608: @@ -2100,14 +2100,14 @@ michael@608: AC_CHECK_PROG(PG_CONFIG, pg_config, pg_config, NO) michael@237: if test $PG_CONFIG = NO; then michael@237: # based on code from PHP michael@237: - for i in /usr /usr/local /usr/local/pgsql; do michael@237: - for j in include include/pgsql include/postgres include/postgresql ""; do michael@237: + for i in @l_prefix@; do michael@237: + for j in include/postgresql; do michael@237: if test -r "$i/$j/libpq-fe.h"; then michael@237: PGSQL_INCLUDE=$i/$j michael@237: fi michael@237: done michael@237: - for lib in lib lib64; do michael@237: - for j in $lib $lib/pgsql $lib/postgres $lib/postgresql ""; do michael@237: + for lib in lib; do michael@237: + for j in $lib; do michael@237: if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then michael@237: PGSQL_LIBDIR=$i/$j michael@237: fi michael@204: Index: configure michael@608: --- configure.orig 2011-03-04 19:47:55.000000000 +0100 michael@608: +++ configure 2011-03-05 13:00:48.000000000 +0100 michael@608: @@ -22858,14 +22858,14 @@ michael@204: michael@237: if test $PG_CONFIG = NO; then michael@237: # based on code from PHP michael@237: - for i in /usr /usr/local /usr/local/pgsql; do michael@237: - for j in include include/pgsql include/postgres include/postgresql ""; do michael@237: + for i in @l_prefix@; do michael@237: + for j in include/postgresql; do michael@237: if test -r "$i/$j/libpq-fe.h"; then michael@237: PGSQL_INCLUDE=$i/$j michael@237: fi michael@237: done michael@237: - for lib in lib lib64; do michael@237: - for j in $lib $lib/pgsql $lib/postgres $lib/postgresql ""; do michael@237: + for lib in lib; do michael@237: + for j in $lib; do michael@237: if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then michael@237: PGSQL_LIBDIR=$i/$j michael@237: fi