407 |
|
$1_FALSE= |
408 |
|
fi]) |
409 |
|
|
410 |
+ |
dnl Check for socklen_t type |
411 |
+ |
|
412 |
+ |
AC_DEFUN(TYPE_SOCKLEN_T, |
413 |
+ |
[AC_REQUIRE([AC_HEADER_STDC])dnl |
414 |
+ |
AC_MSG_CHECKING(for socklen_t) |
415 |
+ |
AC_CACHE_VAL(ac_cv_type_socklen_t, |
416 |
+ |
[AC_EGREP_CPP(dnl |
417 |
+ |
changequote(<<,>>)dnl |
418 |
+ |
<<(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]>>dnl |
419 |
+ |
changequote([,]), [#include <sys/types.h> |
420 |
+ |
#include <sys/socket.h>], ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no)])dnl |
421 |
+ |
AC_MSG_RESULT($ac_cv_type_socklen_t) |
422 |
+ |
if test $ac_cv_type_socklen_t = no; then |
423 |
+ |
AC_DEFINE(socklen_t, int) |
424 |
+ |
fi |
425 |
+ |
]) |