summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-09-09 20:05:33 +0000
committerBenny Prijono <bennylp@teluu.com>2006-09-09 20:05:33 +0000
commitb5f420650add6f06c58d981685468761d74022cf (patch)
tree34d8e9af4c7a0abcd29cc98f69a770c439164840 /aconfigure.ac
parent40cfcab19c02578df219e8ef2dd8a3c6d04b8799 (diff)
Added PJ_HAS_SOCKLEN_T test in configure script (some MacOS X have it, some dont)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@697 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index a01e4d22..4efbf91f 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -110,6 +110,14 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>
AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
+# Determine if socklen_t is available
+AC_MSG_CHECKING([if socklen_t is available])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]],
+ [socklen_t xxx = 0;])],
+ [AC_DEFINE(PJ_HAS_SOCKLEN_T,1)
+ AC_MSG_RESULT(yes)],
+ AC_MSG_RESULT(no))
+
# Determine if SO_ERROR is available
AC_MSG_CHECKING([if SO_ERROR is available])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>