about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2001-12-12 01:58:52 +0000
committerAlexander Barton <alex@barton.de>2001-12-12 01:58:52 +0000
commita4832131bb8e41a631b4f3b568d396f852841674 (patch)
treee23e8d61060c848860291ef3b9d05eb03dd387ca /configure.in
parentcdb247c6667b25d8e6c7a8f006deb2b617f4b9a7 (diff)
downloadngircd-a4832131bb8e41a631b4f3b568d396f852841674.tar.gz
ngircd-a4832131bb8e41a631b4f3b568d396f852841674.zip
- Test auf socklen_t verbessert.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index a84198ec..bd05338a 100644
--- a/configure.in
+++ b/configure.in
@@ -9,9 +9,12 @@
 # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
 # der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
 #
-# $Id: configure.in,v 1.2 2001/12/11 22:04:21 alex Exp $
+# $Id: configure.in,v 1.3 2001/12/12 01:58:53 alex Exp $
 #
 # $Log: configure.in,v $
+# Revision 1.3  2001/12/12 01:58:53  alex
+# - Test auf socklen_t verbessert.
+#
 # Revision 1.2  2001/12/11 22:04:21  alex
 # - Test auf stdint.h (HAVE_STDINT_H) hinzugefuegt.
 #
@@ -55,6 +58,19 @@ AC_CHECK_HEADERS([stdint.h])
 
 # -- Datentypen --
 
+AC_MSG_CHECKING(whether socklen_t exists)
+AC_TRY_COMPILE([
+	#include <sys/socket.h>
+	#include <sys/types.h>
+	],[
+	socklen_t a, b;
+	a = 2; b = 4; a += b;
+	],[
+	AC_DEFINE(HAVE_socklen_t) AC_MSG_RESULT(yes)
+	],[
+	AC_MSG_RESULT(no)
+])
+
 # -- Funktionen --
 
 AC_CHECK_FUNCS([socket],,[required functions missing!])