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

version» Context lines:

pike.git/src/modules/Mysql/configure.in:1:   # - # $Id: configure.in,v 1.52 2007/01/28 02:51:02 peter Exp $ + # $Id: configure.in,v 1.53 2007/03/10 16:07:59 marcus 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:88:       AC_MSG_RESULT($pike_cv_mysql_include_dir)       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 winsock2.h mysql.h mysql/mysql.h errmsg.h mysql/errmsg.h) +  AC_CHECK_HEADERS(winsock.h winsock2.h mysql.h mysql/mysql.h errmsg.h mysql/errmsg.h,[],[],[#if HAVE_WINSOCK2_H + #include <winsock2.h> + #elif HAVE_WINSOCK_H + #include <winsock.h> + #endif + ])       if test x$ac_cv_header_mysql_h$ac_cv_header_mysql_mysql_h = xnono; then    # Required headerfile missing.    PIKE_FEATURE_NODEP(Mysql)    pike_cv_mysql="no"    fi       # Defines within headerfile   define([AC_CHECK_MYSQL_OPTIONS],   [   AC_MSG_CHECKING(for $1)   AC_TRY_COMPILE([ -  + #if HAVE_WINSOCK2_H + #include <winsock2.h> + #elif HAVE_WINSOCK_H + #include <winsock.h> + #endif   #ifdef HAVE_MYSQL_H   #include <mysql.h>   #else   #ifdef HAVE_MYSQL_MYSQL_H   #include <mysql/mysql.h>   #endif   #endif   ], [   int tmp;   tmp = $1;
pike.git/src/modules/Mysql/configure.in:137:    AC_CHECK_MYSQL_OPTIONS(MYSQL_OPT_LOCAL_INFILE)    AC_CHECK_MYSQL_OPTIONS(SHUTDOWN_DEFAULT)    AC_CHECK_MYSQL_OPTIONS(FIELD_TYPE_GEOMETRY)    AC_CHECK_MYSQL_OPTIONS(CLIENT_INTERACTIVE)          # Mysql libs       pike_cv_mysql="unknown"    +  if test x"$pike_cv_sys_os" = xWindows_NT ; then +  LIBS="-lshell32 -lkernel32 -lws2_32 -ladvapi32 -luser32 ${LIBS}" +  fi       AC_CHECK_LIB(mysqlclient, bchange, [    LIBS="-lmysqlclient $LIBS"    MYSQL_LIBS="-lmysqlclient"    pike_cv_mysql="post3.20"    ], [    AC_CHECK_LIB(mystrings, bchange, [    LIBS="-lmystrings $LIBS"    MYSQL_LIBS="-lmystrings ${MYSQL_LIBS}"    pike_cv_mysql="post3.20"
pike.git/src/modules/Mysql/configure.in:421:    else    AC_MSG_RESULT($pike_cv_mysql_fetch_lengths_ret_type)    AC_DEFINE_UNQUOTED(FETCH_LENGTHS_TYPE,    $pike_cv_mysql_fetch_lengths_ret_type)    fi    else :; fi       if test x"$pike_cv_sys_os" = xWindows_NT ; then    MYSQL_LIBS="-lshell32 -lkernel32 -lws2_32 -ladvapi32 -luser32 ${MYSQL_LIBS}"    fi -  AC_CHECK_FUNCS(ldiv open sopen close read fileno puts fgets) +  AC_CHECK_FUNCS(ldiv open sopen close read fileno puts fgets _findfirst _findnext _findclose)       AC_MSG_CHECKING(for the charsetnr member in MYSQL_FIELD)    AC_CACHE_VAL(pike_cv_have_mysql_field_charsetnr, [    AC_TRY_LINK([   #ifdef HAVE_WINSOCK2_H   #include <winsock2.h>   #elif defined(HAVE_WINSOCK_H)   #include <winsock.h>   #endif