]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
check for more posgresql include paths (supposedly fixes problem with rh7.2)
authorlaforge <laforge>
Tue, 15 Jul 2003 12:18:50 +0000 (12:18 +0000)
committerlaforge <laforge>
Tue, 15 Jul 2003 12:18:50 +0000 (12:18 +0000)
configure.in

index 39d3eda121b78334a9081072c59005b3a82ed532..5d0d99bfd4e799e6a2ace28afe3ca3b95d8ddc28 100644 (file)
@@ -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"