Commit | Line | Data |
490972cd |
1 | dnl $Id: configure.in,v 1.10 2001/09/21 22:54:28 skimo Exp $ |
0198fd3c |
2 | dnl |
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. |
f802ee92 |
6 | |
8bd181b5 |
7 | AC_INIT |
af1181af |
8 | AM_INIT_AUTOMAKE(fcgi, 2.2.1) |
f802ee92 |
9 | |
7ef79c64 |
10 | AM_CONFIG_HEADER([include/fcgi_config.h]) |
8bd181b5 |
11 | |
12 | AC_PROG_CC |
13 | AC_PROG_CPP |
14 | AC_PROG_INSTALL |
ec728770 |
15 | AC_PROG_LIBTOOL |
eb7bc90d |
16 | |
17 | AC_CHECK_LIB([nsl], [main]) ac_cv_lib_nsl=ac_cv_lib_nsl_main |
18 | AC_CHECK_LIB([resolv], [main]) ac_cv_lib_resolv=ac_cv_lib_resolv_main |
19 | AC_CHECK_LIB([socket], [main]) ac_cv_lib_socket=ac_cv_lib_socket_main |
20 | AC_CHECK_LIB([dnet_stub], [main]) ac_cv_lib_dnet_stub=ac_cv_lib_dnet_stub_main |
21 | AC_CHECK_LIB([ieee], [main]) ac_cv_lib_ieee=ac_cv_lib_ieee_main |
22 | |
737bf5cf |
23 | AC_SUBST(threaded) |
eb7bc90d |
24 | AC_CHECK_LIB([pthread], [main], |
25 | [AC_DEFINE([HAVE_LIBPTHREAD], [1], |
26 | [Define if you have the pthread library]) |
737bf5cf |
27 | AC_SUBST([HAVE_LIBPTHREAD]) |
28 | threaded=threaded]) |
eb7bc90d |
29 | ac_cv_lib_pthread=ac_cv_lib_pthread_main |
30 | |
7ef79c64 |
31 | FCGI_COMMON_CHECKS |
eb7bc90d |
32 | |
33 | AC_REPLACE_FUNCS([strerror]) |
34 | |
f802ee92 |
35 | AC_C_INLINE |
36 | |
0198fd3c |
37 | #-------------------------------------------------------------------- |
f802ee92 |
38 | # This is a little hokie in that it avoids including config.guess |
39 | # and config.sub in the distribution, but its been working so far. |
40 | # Windows builds don't run configure so we should be safe fixing |
41 | # this to 'unix' (at least for now). |
0198fd3c |
42 | #-------------------------------------------------------------------- |
f802ee92 |
43 | SYSTEM=unix |
eb7bc90d |
44 | AC_SUBST([SYSTEM]) |
f802ee92 |
45 | |
f802ee92 |
46 | if test "$GCC"; then |
eb7bc90d |
47 | CCDEFS="$CCDEFS -Wall -Wmissing-prototypes" |
f802ee92 |
48 | fi |
49 | |
eb7bc90d |
50 | AC_SUBST([CCDEFS]) |
f802ee92 |
51 | |
7ef79c64 |
52 | AC_CONFIG_FILES([Makefile |
53 | libfcgi/Makefile |
54 | cgi-fcgi/Makefile |
55 | examples/Makefile]) |
f802ee92 |
56 | |
8bd181b5 |
57 | AC_OUTPUT |