diff options
Diffstat (limited to 'aconfigure.ac')
-rw-r--r-- | aconfigure.ac | 8 |
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> |