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

version» Context lines:

pike.git/src/modules/Mysql/configure.in:1:   # - # $Id: configure.in,v 1.45 2006/08/30 15:23:38 mast Exp $ + # $Id: configure.in,v 1.46 2006/11/17 18:43:12 mast 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:419:    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_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 +  + #ifdef HAVE_MYSQL_H + #include <mysql.h> + #else + #ifdef HAVE_MYSQL_MYSQL_H + #include <mysql/mysql.h> + #else + #error Need mysql.h headerfile! + #endif + #endif +  ], [ +  void *foo__ = &(((MYSQL_FIELD *) 0)->charsetnr); +  ], [pike_cv_have_mysql_field_charsetnr="yes"], +  [pike_cv_have_mysql_field_charsetnr="no"]) +  ]) +  if test "$pike_cv_have_mysql_field_charsetnr" = yes; then +  AC_DEFINE(HAVE_MYSQL_FIELD_CHARSETNR)    fi -  +  AC_MSG_RESULT($pike_cv_have_mysql_field_charsetnr) +     fi -  + fi      AC_SUBST(MYSQL_LIBS)      AC_OUTPUT(Makefile,echo FOO >stamp-h )