diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-02-26 14:57:37 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-02-26 14:57:37 +0100 |
commit | 070d2c7d55af1cac5f1c7b55186cb7cb3f69dab1 (patch) | |
tree | 6541607aea0154fa1a02e37423928d926a364da1 /server/configure.in | |
parent | d2715d7c3534f35de0ebdd30d8d770bd79ca7a23 (diff) |
Port from libpqxx to libpq.
Diffstat (limited to 'server/configure.in')
-rw-r--r-- | server/configure.in | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/configure.in b/server/configure.in index e65ac33..3b6d593 100644 --- a/server/configure.in +++ b/server/configure.in @@ -93,11 +93,12 @@ if test x$with_db == xno; then AC_DEFINE_UNQUOTED(WITHOUT_DB, , [The project is configured not to use the db]) else dnl ====================== - dnl Check for libpqxx + dnl Check for libpg dnl ====================== - PKG_CHECK_MODULES(PQXX, libpqxx >= 4.0, - [AC_DEFINE_UNQUOTED([USE_NEW_PQXX], [1], [Use new pqx api])], - [PKG_CHECK_MODULES(PQXX, libpqxx >= 2.6.8)] ) + PQ_CFLAGS="-I$(pg_config --includedir)" + AC_SUBST(PQ_CFLAGS) + PQ_LIBS="-L$(pg_config --libdir) -lpq" + AC_SUBST(PQ_LIBS) fi dnl ====================== |