4 AC_HELP_STRING([--with-mysql],
5 [enable mysql support (default no)]),
6 [use_mysql=${withval}],,)
7 AH_TEMPLATE(HAVE_MYSQL,[Define if you have libmysql])
9 if test x"$use_mysql" = x"yes"; then
10 AC_MSG_CHECKING(for MySql support)
13 #include <mysql/mysql.h>
18 AC_MSG_RESULT($have_mysql)
20 if test x$have_mysql != xyes; then
21 AC_MSG_ERROR([*** Can't find the MySql library Try: http://www.mysql.com])
23 MYSQL_CFLAGS=`mysql_config --cflags`
24 MYSQL_CFLAGS="$MYSQL_CFLAGS -DHAVE_MYSQL=1"
25 MYSQL_LIBS=`mysql_config --libs`
29 AC_SUBST(MYSQL_CFLAGS)
34 AC_HELP_STRING([--with-pgsql],
35 [enable pgsql support (default no)]),
36 [use_pgsql=${withval}],,)
37 AH_TEMPLATE(HAVE_PGSQL,[Define if you have libpq])
39 if test x"$use_pgsql" = x"yes"; then
40 AC_MSG_CHECKING(for PGSql support)
43 #include <pgsql/libpq-fe.h>
48 AC_MSG_RESULT($have_pgsql)
50 if test x$have_pgsql != xyes; then
51 AC_MSG_ERROR([*** Can't find the PGSql library Try: http://www.postgresql.org])