mirror of https://framagit.org/bortzmeyer/echoping
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
573 B
Plaintext
21 lines
573 B
Plaintext
21 years ago
|
dnl $Id$
|
||
|
|
||
|
AC_INIT(postgresql.c)
|
||
|
AC_CONFIG_HEADERS(config.h)
|
||
|
|
||
|
dnl Checks for programs.
|
||
|
AC_PROG_CC
|
||
|
AC_PROG_INSTALL
|
||
|
|
||
|
PGSQL_BUILD=1
|
||
|
AC_CHECK_FUNCS(poptGetContext,,
|
||
|
[AC_CHECK_LIB(popt,poptGetContext,,[AC_MSG_WARN([No popt development environment found, not building this plugin]) && PGSQL_BUILD=0])])
|
||
|
if test "$PGSQL_BUILD" != "0"; then
|
||
|
AC_CHECK_FUNCS(PQconnectdb, ,
|
||
|
[AC_CHECK_LIB(pq,PQconnectdb,,
|
||
|
[AC_MSG_WARN([No PostgreSQL development environment found, not building this plugin]) && PGSQL_BUILD=0])])
|
||
|
fi
|
||
|
AC_SUBST(PGSQL_BUILD,$PGSQL_BUILD)
|
||
|
AC_OUTPUT(Makefile)
|
||
|
|