if test -d "$cwd/$srcdir/modules/standard" ; then
dnl MOD_SUBDIRS="$MOD_SUBDIRS $1"
if test "$2" != "shared" -a "$2" != "yes"; then
- libname=$(basename $1)
+ libname="`basename $1`"
_extlib="libapachemod_${libname}.a"
MOD_LTLIBS="$MOD_LTLIBS modules/standard/libapachemod_${libname}.la"
MOD_LIBS="$MOD_LIBS standard/$_extlib"
threads_result="Threads not found"
done
] )
-
+
+dnl
+dnl APACHE_INADDR_NONE
+dnl
+dnl checks for missing INADDR_NONE macro
+dnl
+AC_DEFUN(APACHE_INADDR_NONE,[
+ AC_TRY_COMPILE([
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+],[
+unsigned long foo = INADDR_NONE;
+],[
+ HAVE_INADDR_NONE=yes
+],[
+ HAVE_INADDR_NONE=no
+ AC_DEFINE(INADDR_NONE, ((unsigned int) 0xffffffff), [ ])
+])
+ AC_MSG_CHECKING(whether system defines INADDR_NONE)
+ AC_MSG_RESULT($HAVE_INADDR_NONE)
+])
bzero \
)
+AC_CHECK_LIB(nsl, gethostbyname)
+AC_CHECK_LIB(socket, socket)
+
AC_CHECK_FUNCS(inet_addr inet_network, break, [
AC_MSG_ERROR(inet_addr function not found)
])
+APACHE_INADDR_NONE
+
+case "`uname -sr`" in
+"SunOS 5"*)
+ CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS";;
+esac
+
AC_FUNC_SELECT_ARGTYPES
dnl Check if we'll actually need to cast select args all the time
int gethostname(char *name, int namelen);
#define HAVE_SYSLOG 1
#define SYS_SIGLIST _sys_siglist
+#ifndef INADDR_NONE
+#define INADDR_NONE ((unsigned int) 0xffffffff)
+#endif
#elif defined(IRIX)
#undef HAVE_GMTOFF