summaryrefslogtreecommitdiffstats
path: root/ulogd
diff options
context:
space:
mode:
authorlaforge <laforge>2003-07-15 12:18:50 +0000
committerlaforge <laforge>2003-07-15 12:18:50 +0000
commitee7d6cd9f7357a55739522342f9022b24f7b154e (patch)
tree078b2f51b23a4cdf6179f5ca7780549fd8d1bad7 /ulogd
parenta7d8cac343d6be4a2f8b1430af715c1afe9297d2 (diff)
check for more posgresql include paths (supposedly fixes problem with rh7.2)
Diffstat (limited to 'ulogd')
-rw-r--r--ulogd/configure.in15
1 files changed, 8 insertions, 7 deletions
diff --git a/ulogd/configure.in b/ulogd/configure.in
index 39d3eda..5d0d99b 100644
--- a/ulogd/configure.in
+++ b/ulogd/configure.in
@@ -159,13 +159,14 @@ then
AC_MSG_WARN(PGSQL backend not used)
else
AC_DEFINE(HAVE_PGSQL)
- if test -f ${pgsqldir}/include/libpq-fe.h
- then
- PGSQLINCLUDES=${pgsqldir}/include
- elif test -f ${pgsqldir}/include/postgresql/libpq-fe.h
- then
- PGSQLINCLUDES=${pgsqldir}/include/postgresql
- fi
+ for i in include include/postgresql include/pgsql
+ do
+ if test -f ${pgsqldir}/$i/libpq-fe.h
+ then
+ PGSQLINCLUDES=${pgsqldir}/$i
+ break
+ fi
+ done
PGSQLLIBS=${pgsqldir}/lib
DATABASE_DIR="${DATABASE_DIR} pgsql"