Update of /cvsroot/plib/plib/tools
In directory usw-pr-cvs1:/tmp/cvs-serv412/tools
Modified Files:
configure.in
Log Message:
Updates for OS-X / IRIX, cleanups, improvements
Index: configure.in
===================================================================
RCS file: /cvsroot/plib/plib/tools/configure.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- configure.in 11 Jan 2001 16:21:04 -0000 1.2
+++ configure.in 1 Jul 2002 00:32:22 -0000 1.3
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/af2rgb/af2rgb.cxx)
-AM_INIT_AUTOMAKE(plib_tools, 1.0.0)
+AM_INIT_AUTOMAKE(plib_tools, 1.5.2)
dnl Checks for programs.
AC_PROG_CC
@@ -11,57 +11,75 @@
AC_PROG_INSTALL
AC_PROG_RANLIB
[...202 lines suppressed...]
+dnl check for socklen_t (in Unix98)
+AC_MSG_CHECKING(for socklen_t)
+AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <sys/socket.h>
+socklen_t x;
+],[],[
+AC_MSG_RESULT(yes)],[
+AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <sys/socket.h>
+int accept (int, struct sockaddr *, size_t *);
+],[],[
+AC_MSG_RESULT(size_t)
+AC_DEFINE(socklen_t,size_t)], [
+AC_MSG_RESULT(int)
+AC_DEFINE(socklen_t,int)])])
AC_OUTPUT( \
Makefile \
|