diff options
author | Yang Tse <yangsita@gmail.com> | 2005-12-16 05:05:55 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2005-12-16 05:05:55 +0000 |
commit | 5acac0309a973d9cdfba1d4e81b251012bca08db (patch) | |
tree | 5f20355cfde392fea59c32f8597f562242d3c8d1 | |
parent | 78febad718027427217f073a0fbc4d074907ad79 (diff) |
Test CURL_CHECK_TYPE_SOCKLEN_T
-rw-r--r-- | acinclude.m4 | 14 | ||||
-rw-r--r-- | configure.ac | 3 |
2 files changed, 9 insertions, 8 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 70c92ad24..335281ca8 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -125,9 +125,9 @@ dnl used while this notice is in place -------------- AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [ AC_REQUIRE([CURL_CHECK_HEADER_WS2TCPIP])dnl AC_CHECK_TYPE([socklen_t], ,[ - AC_CACHE_CHECK([for socklen_t equivalent bis], - [curl_cv_socklen_t_equiv_bis], [ - curl_cv_socklen_t_equiv_bis= + AC_CACHE_CHECK([for socklen_t equivalent], + [curl_cv_socklen_t_equiv], [ + curl_cv_socklen_t_equiv= for arg2 in "struct sockaddr" void; do for t in int size_t unsigned long "unsigned long"; do AC_COMPILE_IFELSE([ @@ -163,16 +163,16 @@ AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [ accept(0,0,&len); ]) ],[ - curl_cv_socklen_t_equiv_bis="$t" + curl_cv_socklen_t_equiv="$t" break 2 ]) done done ]) - if test "x$curl_cv_socklen_t_equiv_bis" = "x"; then - AC_MSG_ERROR([Cannot find a type to use in place of socklen_t bis]) + if test "x$curl_cv_socklen_t_equiv" = "x"; then + AC_MSG_ERROR([Cannot find a type to use in place of socklen_t]) else - AC_DEFINE_UNQUOTED(socklen_t_bis, $curl_cv_socklen_t_equiv_bis, + AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv, [type to use in place of socklen_t if not defined]) fi ],[ diff --git a/configure.ac b/configure.ac index a0eac1d40..4ab6503b1 100644 --- a/configure.ac +++ b/configure.ac @@ -1506,7 +1506,8 @@ AC_CHECK_TYPE(ssize_t, , # Experimental check CURL_CHECK_TYPE_SOCKLEN_T -TYPE_SOCKLEN_T +# TYPE_SOCKLEN_T + TYPE_IN_ADDR_T TYPE_SOCKADDR_STORAGE |