Add local changes from the past 7 years

This commit is contained in:
2016-08-02 06:10:45 +00:00
parent 1d81d8820f
commit c2aa958bb3
11 changed files with 3999 additions and 5912 deletions

View File

@@ -13,7 +13,7 @@ AC_CHECK_LIB(c, floor, [:], [
AC_CHECK_LIB(m, floor, [
LIBS="$LIBS -lm"
AC_DEFINE(HAVE_LIBM) ], []) ])
AC_CHECK_LIB(mysqlclient, mysql_connect, [
AC_CHECK_LIB(mysqlclient, mysql_real_connect, [
LIBS="$LIBS -lmysqlclient" ], [])
AC_CHECK_LIB(c, gethostbyaddr, [:], [
AC_CHECK_LIB(nsl, gethostbyaddr, [
@@ -27,12 +27,12 @@ AC_CHECK_LIB(c, socket, [:], [
AC_MSG_CHECKING(for MySQL support)
AC_ARG_WITH(mysql,
[ --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
install directory, defaults to /usr/local.],
install directory, defaults to /usr.],
[
if test "$withval" != "no"; then
if test "$withval" = "yes"; then
MYSQL_INCDIR=/usr/local/include/mysql
MYSQL_LIBDIR=/usr/local/lib/mysql
MYSQL_INCDIR=/usr/include/mysql
MYSQL_LIBDIR=/usr/lib/mysql
else
if test -f $withval/include/mysql/mysql.h; then
MYSQL_INCDIR=$withval/include/mysql