Branch: Tag:

2006-07-01

2006-07-01 23:53:19 by Martin Stjernholm <mast@lysator.liu.se>

Corrected header tests for new AC_CHECK_FUNCS method. (It's e.g. necessary
to test winsock2.h before winsock.h since they conflict and winsock2.h must
be included before winsock.h to disable it properly.)

Rev: src/configure.in:1.965
Rev: src/modules/HTTPLoop/configure.in:1.8
Rev: src/modules/Mysql/configure.in:1.49
Rev: src/modules/_math/configure.in:1.14
Rev: src/modules/system/configure.in:1.76

1:   # - # $Id: configure.in,v 1.48 2006/01/04 19:34:02 grubba Exp $ + # $Id: configure.in,v 1.49 2006/07/01 23:53:19 mast Exp $   #   # Configure script for the mysql-module   #
101:       # Header file    -  AC_CHECK_HEADERS(winsock.h winsock2.h mysql.h mysql/mysql.h errmsg.h mysql/errmsg.h) +  AC_CHECK_HEADERS(winsock2.h winsock.h mysql.h mysql/mysql.h errmsg.h mysql/errmsg.h)       if test x$ac_cv_header_mysql_h$ac_cv_header_mysql_mysql_h = xnono; then    # Required headerfile missing.
427:    if test x"$pike_cv_sys_os" = xWindows_NT ; then    MYSQL_LIBS="-lshell32 -lkernel32 -lws2_32 -ladvapi32 -luser32 ${MYSQL_LIBS}"    fi +  +  # Header checks necessary for PIKE_FUNCS_NEED_DECLS. +  AC_CHECK_HEADERS(stdio.h io.h) +     AC_CHECK_FUNCS(ldiv open sopen close read fileno puts fgets)       fi