Check for PQconnectdbParams in libpq
This commit is contained in:
parent
c0cfd08040
commit
7ce4bb7659
1 changed files with 2 additions and 1 deletions
|
@ -5366,7 +5366,8 @@ save_CFLAGS=$CFLAGS
|
||||||
save_LIBS=$LIBS
|
save_LIBS=$LIBS
|
||||||
CFLAGS="-I`pg_config --includedir`"
|
CFLAGS="-I`pg_config --includedir`"
|
||||||
AC_CHECK_HEADER([libpq-fe.h], [], [AC_MSG_ERROR([libpq-fe.h is needed])], [])
|
AC_CHECK_HEADER([libpq-fe.h], [], [AC_MSG_ERROR([libpq-fe.h is needed])], [])
|
||||||
AC_HAVE_LIBRARY(pq, [], [AC_MSG_ERROR(libpq is needed)], [])
|
AC_CHECK_LIB(pq, PQconnectdbParams, [],
|
||||||
|
[AC_MSG_ERROR(libpq not found or too old. Need >= 9.0)], [])
|
||||||
CFLAGS=$save_CFLAGS
|
CFLAGS=$save_CFLAGS
|
||||||
LIBS=$save_LIBS
|
LIBS=$save_LIBS
|
||||||
SYSTEM_POSTGRESQL=YES # only option atm :-)
|
SYSTEM_POSTGRESQL=YES # only option atm :-)
|
||||||
|
|
Loading…
Reference in a new issue