summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-27 10:13:23 +0000
committerYang Tse <yangsita@gmail.com>2009-04-27 10:13:23 +0000
commitf4d8728df9d4670ae9d87d53714178e248b2032d (patch)
tree2d223da6e6c826a4cd7f2f0dda2e007a4143590b /acinclude.m4
parent8611631f5e811371e76e7fe1d730662f4b89e204 (diff)
downloadcurl-f4d8728df9d4670ae9d87d53714178e248b2032d.tar.gz
Add temporary debug tracing for curl_socklen_t detection failures
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index f8f7e3acb..d2f649a77 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -3072,6 +3072,7 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
#
AC_MSG_CHECKING([for curl_socklen_t data type])
curl_typeof_curl_socklen_t="unknown"
+ rm -f debug.txt
for arg1 in int SOCKET; do
for arg2 in 'struct sockaddr' void; do
for t in socklen_t int size_t 'unsigned int' long 'unsigned long'; do
@@ -3088,6 +3089,10 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
]])
],[
curl_typeof_curl_socklen_t="$t"
+ ],[
+ echo "DEBUG: ======================================" >>debug.txt
+ sed 's/^/cc-src: /' conftest.$ac_ext >>debug.txt
+ sed 's/^/cc-err: /' conftest.err >>debug.txt
])
fi
done
@@ -3095,8 +3100,10 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
done
AC_MSG_RESULT([$curl_typeof_curl_socklen_t])
if test "$curl_typeof_curl_socklen_t" = "unknown"; then
+ cat debug.txt >&6
AC_MSG_ERROR([cannot find data type for curl_socklen_t.])
fi
+ rm -f debug.txt
#
AC_MSG_CHECKING([size of curl_socklen_t])
curl_sizeof_curl_socklen_t="unknown"