Add the C++ API to the lib.
[catagits/fcgi2.git] / configure.in
CommitLineData
72cb9f19 1dnl $Id: configure.in,v 1.16 2001/11/20 02:30:23 robs Exp $
0198fd3c 2dnl
3dnl This file is an input file used by the GNU "autoconf" program to
4dnl generate the file "configure", which is run during the build
5dnl to configure the system for the local environment.
f802ee92 6
8bd181b5 7AC_INIT
af1181af 8AM_INIT_AUTOMAKE(fcgi, 2.2.1)
f802ee92 9
92079298 10AM_CONFIG_HEADER(fcgi_config.h)
8bd181b5 11
12AC_PROG_CC
13AC_PROG_CPP
14AC_PROG_INSTALL
ec728770 15AC_PROG_LIBTOOL
eb7bc90d 16
72cb9f19 17AC_PROG_CXX
18
eb7bc90d 19AC_CHECK_LIB([nsl], [main]) ac_cv_lib_nsl=ac_cv_lib_nsl_main
20AC_CHECK_LIB([resolv], [main]) ac_cv_lib_resolv=ac_cv_lib_resolv_main
21AC_CHECK_LIB([socket], [main]) ac_cv_lib_socket=ac_cv_lib_socket_main
22AC_CHECK_LIB([dnet_stub], [main]) ac_cv_lib_dnet_stub=ac_cv_lib_dnet_stub_main
23AC_CHECK_LIB([ieee], [main]) ac_cv_lib_ieee=ac_cv_lib_ieee_main
24
737bf5cf 25AC_SUBST(threaded)
eb7bc90d 26AC_CHECK_LIB([pthread], [main],
27 [AC_DEFINE([HAVE_LIBPTHREAD], [1],
28 [Define if you have the pthread library])
737bf5cf 29 AC_SUBST([HAVE_LIBPTHREAD])
eb781bfb 30 threaded='threaded$(EXEEXT)'])
eb7bc90d 31ac_cv_lib_pthread=ac_cv_lib_pthread_main
32
7ef79c64 33FCGI_COMMON_CHECKS
eb7bc90d 34
35AC_REPLACE_FUNCS([strerror])
36
f802ee92 37AC_C_INLINE
38
0198fd3c 39#--------------------------------------------------------------------
f802ee92 40# This is a little hokie in that it avoids including config.guess
41# and config.sub in the distribution, but its been working so far.
42# Windows builds don't run configure so we should be safe fixing
43# this to 'unix' (at least for now).
0198fd3c 44#--------------------------------------------------------------------
f802ee92 45SYSTEM=unix
eb7bc90d 46AC_SUBST([SYSTEM])
f802ee92 47
f802ee92 48if test "$GCC"; then
b39b32d4 49 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
f802ee92 50fi
51
aa8a7b8a 52AC_CONFIG_FILES(Makefile
53 cgi-fcgi/Makefile
54 include/Makefile
55 libfcgi/Makefile
56 examples/Makefile)
f802ee92 57
8bd181b5 58AC_OUTPUT