mirror of
https://github.com/anope/anope.git
synced 2026-06-26 10:56:38 +02:00
BUILD : 1.7.19 (1305) BUGS : 757 NOTES : Fixed mysql_config values only being tried to compile/link sources and not running the result to see if it actually works
git-svn-id: svn://svn.anope.org/anope/trunk@1305 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1023 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
01ddc377e7
commit
7bf2b429e7
@@ -41,6 +41,7 @@ Anope Version S V N
|
||||
09/02 F Created MySQL indexes to decrease load on the database. [# 00]
|
||||
09/08 F User being able to set modes on empty channels without permission.[#703]
|
||||
09/09 F Undeclared identifiers in module cleaning code on windows. [#782]
|
||||
09/09 F Missing test to check mysql_config sanity in ./configure. [#757]
|
||||
|
||||
Provided by Trystan <trystan@nomadirc.net> - 2007
|
||||
08/29 F Module runtime directory not always properly cleaned up. [#768]
|
||||
|
||||
+10
-2
@@ -99,8 +99,16 @@ AC_ARG_WITH(mysql, [ --without-mysql Do not use MySQL or attempt to fin
|
||||
CFLAGS="$CFLAGS $MYSQL_CFLAGS"
|
||||
LDFLAGS="$LDFLAGS $MYSQL_LDFLAGS"
|
||||
echo $ECHO_N "checking if mysql_config produces valid values... $ECHO_C" >&6
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <mysql.h>]],[[MYSQL *mysql = mysql_init(0);]])],
|
||||
ac_cv_mysql_valid=yes,ac_cv_mysql_valid=no)
|
||||
AC_TRY_RUN([
|
||||
#include <mysql.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
MYSQL *mysql = mysql_init(0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
], ac_cv_mysql_valid=yes, ac_cv_mysql_valid=no)
|
||||
echo $ac_cv_mysql_valid >&6
|
||||
if test "$ac_cv_mysql_valid" = "yes"; then
|
||||
AC_DEFINE_UNQUOTED(USE_MYSQL,1,"Use Mysql")
|
||||
|
||||
+5
-1
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="19"
|
||||
VERSION_EXTRA="-svn"
|
||||
VERSION_BUILD="1304"
|
||||
VERSION_BUILD="1305"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.19 (1305)
|
||||
# BUGS : 757
|
||||
# NOTES : Fixed mysql_config values only being tried to compile/link sources and not running the result to see if it actually works
|
||||
#
|
||||
# BUILD : 1.7.19 (1304)
|
||||
# BUGS : 782
|
||||
# NOTES : Fixed an undeclared identifier in the new code for cleaning up the modules dir on win32
|
||||
|
||||
Reference in New Issue
Block a user