pike.git / src / modules / Mysql / configure.in

version» Context lines:

pike.git/src/modules/Mysql/configure.in:1:   # - # $Id: configure.in,v 1.41 2004/10/05 13:09:51 mast Exp $ + # $Id: configure.in,v 1.42 2005/02/16 16:53:43 grubba Exp $   #   # Configure script for the mysql-module   #   # Henrik Grubbström   #      #   # NOTE:   # Prior to 3.20.0 After 3.20.0   # -------------------------------------------------------------------
pike.git/src/modules/Mysql/configure.in:90:       if test x$pike_cv_mysql_include_dir = xno; then :; else    echo Adding $pike_cv_mysql_include_dir to the include search path.    CPPFLAGS="${CPPFLAGS} -I$pike_cv_mysql_include_dir"    fi       # Header file       AC_CHECK_HEADERS(winsock.h mysql.h mysql/mysql.h errmsg.h mysql/errmsg.h)    +  # Defines within headerfile + define([AC_CHECK_MYSQL_OPTIONS], + [ + AC_MSG_CHECKING(for $1) + AC_TRY_COMPILE([ + #ifdef HAVE_MYSQL_H + #include <mysql.h> + #else + #ifdef HAVE_MYSQL_MYSQL_H + #include <mysql/mysql.h> + #endif + #endif + ], [ + int tmp; + tmp = $1; + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_$1) + ], [ + AC_MSG_RESULT(no) + ])]) +  +  AC_CHECK_MYSQL_OPTIONS(SHUTDOWN_DEFAULT) +  +     # Mysql libs       pike_cv_mysql="unknown"          AC_CHECK_LIB(mysqlclient, bchange, [    LIBS="-lmysqlclient $LIBS"    MYSQL_LIBS="-lmysqlclient"    pike_cv_mysql="post3.20"    ], [