diff options
author | Timo Sirainen <cras@irssi.org> | 2000-03-26 16:46:40 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-03-26 16:46:40 +0000 |
commit | 5fb98c2210033df3b6bdb4cdd6af77e7c32f6714 (patch) | |
tree | 3c3782812340206e2cc2672a8c1e73059a0c7587 | |
parent | 35c126ccb1dfd2c9fad2e4cd482a18ec43330b33 (diff) | |
download | irssi-5fb98c2210033df3b6bdb4cdd6af77e7c32f6714.zip |
Check for socklen_t
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@162 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | configure.in | 18 |
1 files changed, 17 insertions, 1 deletions
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 <sys/socket.h>], +[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 <sys/socket.h> doesn't define.) +fi +AC_MSG_RESULT($irssi_cv_type_socklen_t) + + dnl ** dnl ** check for libPropList dnl ** |