From 5fb98c2210033df3b6bdb4cdd6af77e7c32f6714 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 26 Mar 2000 16:46:40 +0000 Subject: [PATCH] Check for socklen_t git-svn-id: http://svn.irssi.org/repos/irssi/trunk@162 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- configure.in | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 97f0ab4f..03c9c9d2 100644 --- a/configure.in +++ b/configure.in @@ -208,11 +208,27 @@ AC_CHECK_LIB(nsl, inet_addr, [ PROG_LIBS="$PROG_LIBS -lnsl" ], -lsocket) -# gcc specific options +dnl * gcc specific options if test "x$ac_cv_prog_gcc" = "xyes"; then CFLAGS="$CFLAGS -Wall" fi +dnl * socklen_t - AC_CHECK_TYPE() would be _really_ useful if it only would +dnl * accept header files where to find the typedef.. +AC_MSG_CHECKING([for socklen_t]) +AC_CACHE_VAL(irssi_cv_type_socklen_t, +[AC_TRY_COMPILE([ +#include ], +[socklen_t t;], +irssi_cv_type_socklen_t=yes, +irssi_cv_type_socklen_t=no, +)]) +if test $irssi_cv_type_socklen_t = no; then +AC_DEFINE(socklen_t, int, Define to 'int' if doesn't define.) +fi +AC_MSG_RESULT($irssi_cv_type_socklen_t) + + dnl ** dnl ** check for libPropList dnl **