webperimental: killstack decides stack protects.
[freeciv.git] / m4 / fcdb-postgres.m4
blob00bd83cceb801f2f6f04a905b1f5b29f4c7de7f6
1 # Check for Freeciv Authentication using postgres
3 # Called without any parameters.
5 AC_DEFUN([FC_FCDB_POSTGRES],
7   if test "x$fcdb_all" = "xyes" || test "x$fcdb_postgres" = "xyes" ; then
9     FC_CHECK_POSTGRES(
10     [
11       FCDB_POSTGRES_CFLAGS="$postgresql_cflags"
12       FCDB_POSTGRES_LIBS="$postgresql_ldflags"
14       AC_SUBST(FCDB_POSTGRES_CFLAGS)
16       AC_DEFINE([HAVE_FCDB_POSTGRES], [1], [Have postgres database backend])
17       fcdb_postgres=yes
18     ],
19     [
20       if test "x$fcdb_postgres" = "xyes" ; then
21         AC_MSG_ERROR([fcdb database postgres not available])
22       fi
23       fcdb_postgres=no
24     ])
26   fi
28   AM_CONDITIONAL(FCDB_POSTGRES, test "x$fcdb_postgres" = "xyes")