1 dnl $Id: configure.in,v 1.27 2003/06/22 02:15:10 robs Exp $
3 dnl This file is an input file used by the GNU "autoconf" program to
4 dnl generate the file "configure", which is run during the build
5 dnl to configure the system for the local environment.
8 AM_INIT_AUTOMAKE(fcgi, 2.4.1)
10 AM_CONFIG_HEADER(fcgi_config.h)
21 dnl autoconf defaults CXX to 'g++', so its unclear whether it exists/works
22 AC_MSG_CHECKING([whether $CXX works])
23 AC_TRY_COMPILE([#include <iostream>],
26 LIBFCGIXX=libfcgi++.la
27 ECHO_CPP=echo-cpp${EXEEXT}
28 AC_MSG_CHECKING([whether cin has a streambuf assignment operator])
29 AC_TRY_COMPILE([#include <iostream>],
30 [cin = static_cast<streambuf *>(0);],
32 AC_DEFINE([HAVE_IOSTREAM_WITHASSIGN_STREAMBUF], [1],
33 [Define if cin/cout/cerr has a streambuf assignment operator])],
35 AC_MSG_CHECKING([whether char_type is defined in the context of streambuf])
36 AC_TRY_COMPILE([#include <iostream>],
37 [class fcgi_streambuf : public std::streambuf { char_type ct; }],
39 AC_DEFINE([HAVE_STREAMBUF_CHAR_TYPE], [1],
40 [Define if char_type is defined in the context of streambuf])],
41 [AC_MSG_RESULT(no)])],
48 AC_CHECK_LIB([nsl], [gethostbyname])
49 AC_CHECK_LIB([socket], [socket])
51 ACX_PTHREAD([THREADED=threaded${EXEEXT}])
56 AC_REPLACE_FUNCS([strerror])
60 #--------------------------------------------------------------------
61 # This is a little hokie in that it avoids including config.guess
62 # and config.sub in the distribution, but its been working so far.
63 # Windows builds don't run configure so we should be safe fixing
64 # this to 'unix' (at least for now).
65 #--------------------------------------------------------------------
71 AC_CONFIG_FILES([Makefile