-dnl $Id: configure.in,v 1.4 2001/08/29 18:49:18 robs Exp $
+dnl $Id: configure.in,v 1.5 2001/08/30 02:21:25 robs Exp $
dnl
dnl This file is an input file used by the GNU "autoconf" program to
dnl generate the file "configure", which is run during the build
dnl
AC_INIT
+AC_CONFIG_HEADER(fcgi_config.h)
AC_CONFIG_SRCDIR([fcgiapp.c])
-#--------------------------------------------------------------------
-# Perform common OMI configuration. This will include:
-# 1) Choosing compiler and associated build options.
-# 2) Checking for various common build associated programs.
-# 3) Determining the best build options for this platform.
-# 4) Checking for certain common header files.
-# 5) Checking for exports/global switch.
-# 6) Importing OMI dependencies (header files, libraries, and binaries).
-# 7) Checking for existence of various system libraries and routines.
-#--------------------------------------------------------------------
AC_PROG_CC
-AC_CONFIG_HEADER(fcgi_config.h)
+AC_PROG_CPP
+
AC_MSG_CHECKING(for sun_len in sys/un.h)
AC_EGREP_HEADER(sun_len,
sys/un.h,
AC_DEFINE(HAVE_SOCKADDR_UN_SUN_LEN),
AC_MSG_RESULT(no))
-#--------------------------------------------------------------------
-# What extra libraries do we need for this platform?
-#--------------------------------------------------------------------
-
-AC_CHECK_FUNCS(strerror strtol)
-
-AC_REPLACE_FUNCS(strerror strtol)
-
-#--------------------------------------------------------------------
-# Include sys/select.h if it exists and if it supplies things
-# that appear to be useful and aren't already in sys/types.h.
-# This appears to be true only on the RS/6000 under AIX. Some
-# systems like OSF/1 have a sys/select.h that's of no use, and
-# other systems like SCO UNIX have a sys/select.h that's
-# pernicious. If "fd_set" isn't defined anywhere then set a
-# special flag.
-#--------------------------------------------------------------------
-
-AC_MSG_CHECKING(for fd_set in in sys/types.h)
-AC_TRY_LINK([#include <sys/types.h>],
- [fd_set readMask, writeMask;],
- AC_MSG_RESULT(yes),
- AC_MSG_RESULT(no)
- AC_MSG_CHECKING(for fd_mask in in sys/select.h)
- AC_EGREP_HEADER([fd_mask],[sys/select.h],[AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_SYS_SELECT_H)],[AC_MSG_RESULT(no)
- AC_DEFINE(NO_FD_SET)]))
+AC_CHECK_FUNCS(strerror)
+AC_REPLACE_FUNCS(strerror)
AC_MSG_CHECKING(for fpos in stdio.h)
AC_EGREP_HEADER(fpos_t,
AC_DEFINE(HAVE_FPOS),
AC_MSG_RESULT(no))
-AC_CHECK_HEADERS([windows.h])
AC_CHECK_HEADERS([sys/socket.h],[have_sys_socket=yes])
-AC_CHECK_HEADERS([winsock.h])
AC_CHECK_HEADERS([netdb.h])
AC_CHECK_HEADERS([netinet/in.h])
AC_CHECK_HEADERS([arpa/inet.h])
-AC_CHECK_HEADERS([strings.h])
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_HEADERS([limits.h])