From: Andre Date: Wed, 10 May 2006 23:03:48 +0000 (+0200) Subject: configure.ac: Fix mysql configuration X-Git-Tag: v0.2.12~2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=95488d221ea22f761a6a4b78410c4e0e89f522b8;p=paraslash.git configure.ac: Fix mysql configuration The --enable_mysql_libs option had two cut-and-paste bugs. --- diff --git a/configure.ac b/configure.ac index b404da7f..a28d4114 100644 --- a/configure.ac +++ b/configure.ac @@ -170,7 +170,7 @@ if test -n "$enable_mysql_headers"; then fi AC_ARG_ENABLE(mysql_libs, [AC_HELP_STRING(--enable-mysql-libs=dir, [look for libmysqlclient also in dir])]) -if test -n "$enable_mysql_headers"; then +if test -n "$enable_mysql_libs"; then mysql_libs="-L$enable_mysql_libs" LDFLAGS="$LDFLAGS $mysql_libs" fi @@ -184,6 +184,7 @@ if test "$have_mysql" = "yes"; then server_ldflags="$server_ldflags $mysql_libs -lmysqlclient" server_errlist_objs="$server_errlist_objs mysql_selector" AC_SUBST(mysql_cppflags) + AC_SUBST(mysql_libs) AC_DEFINE(HAVE_MYSQL, 1, [define to 1 to turn on mysql support]) else AC_MSG_WARN([cannot build mysql-based audio file selector])