diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-08-02 16:14:53 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-11-17 21:15:13 +0100 |
commit | c0cfd08040a920e630d83340caba1fd31df83a4d (patch) | |
tree | 3eeee500b5ab44ee357ecda7449da9d68bb03fef /configure.in | |
parent | redundant if not-null checks on delete (diff) | |
download | core-c0cfd08040a920e630d83340caba1fd31df83a4d.tar.gz core-c0cfd08040a920e630d83340caba1fd31df83a4d.zip |
Apply sdbc-postgresql-config_office.diff
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 49c470e12717..e4b4dd8627b2 100644 --- a/configure.in +++ b/configure.in @@ -5356,6 +5356,23 @@ AC_SUBST(HSQLDB_JAR) fi dnl =================================================================== +dnl Check for PostgreSQL stuff +dnl =================================================================== +AC_PATH_PROG(PGCONFIG, pg_config) +if test -z "$PGCONFIG"; then + AC_MSG_ERROR([pg_config needed]) +fi +save_CFLAGS=$CFLAGS +save_LIBS=$LIBS +CFLAGS="-I`pg_config --includedir`" +AC_CHECK_HEADER([libpq-fe.h], [], [AC_MSG_ERROR([libpq-fe.h is needed])], []) +AC_HAVE_LIBRARY(pq, [], [AC_MSG_ERROR(libpq is needed)], []) +CFLAGS=$save_CFLAGS +LIBS=$save_LIBS +SYSTEM_POSTGRESQL=YES # only option atm :-) +AC_SUBST(SYSTEM_POSTGRESQL) + +dnl =================================================================== dnl Check for system beanshell dnl =================================================================== if test "$with_java" != "no"; then |