]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
Include posgresql+redhat fix (Magnus Boden). Might fix the Mandrake postgresql<-...
authorlaforge <laforge>
Thu, 24 Apr 2003 18:55:39 +0000 (18:55 +0000)
committerlaforge <laforge>
Thu, 24 Apr 2003 18:55:39 +0000 (18:55 +0000)
configure.in

index 3eb2ad3358a060104e7c5c9b347ae1812d3f7cc6..2aeb06fcea2f7a437aa4b4090e7391599a45f608 100644 (file)
@@ -160,8 +160,15 @@ then
         AC_MSG_WARN(PGSQL backend not used)
 else
         AC_DEFINE(HAVE_PGSQL)
-        PGSQLINCLUDES=${pgsqldir}/include
-        PGSQLLIBS=${pgsqldir}/lib
+       if test -f ${pgsqldir}/include/libpq-fe.h
+       then
+               PGSQLINCLUDES=${pgsqldir}/include
+       fi
+       if test -f ${pgsqldir}/include/postgresql/libpq-fe.h
+       then
+               PGSQLINCLUDES=${pgsqldir}/include/postgresql
+       fi
+       PGSQLLIBS=${pgsqldir}/lib
 
        DATABASE_DIR="${DATABASE_DIR} pgsql"