1 # Check for Freeciv Authentication using mysql
3 # Called without any parameters.
5 AC_DEFUN([FC_FCDB_MYSQL],
7 if test "x$fcdb_all" = "xyes" || test "x$fcdb_mysql" = "xyes" ; then
11 FCDB_MYSQL_CFLAGS="$mysql_cflags"
12 FCDB_MYSQL_LIBS="$mysql_ldflags"
14 AC_SUBST(FCDB_MYSQL_CFLAGS)
16 AC_DEFINE([HAVE_FCDB_MYSQL], [1], [Have MySQL database backend])
20 if test "x$fcdb_mysql" = "xyes" ; then
21 AC_MSG_ERROR([fcdb database mysql not available])
28 AM_CONDITIONAL(FCDB_MYSQL, test "x$fcdb_mysql" = "xyes")