mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05:00
Add temporary debug tracing for ares_socklen_t Windows targets
This commit is contained in:
parent
49400b0c7f
commit
e4a0001fc6
@ -1845,6 +1845,10 @@ AC_DEFUN([CARES_CONFIGURE_ARES_SOCKLEN_T], [
|
|||||||
tst_pull_header_checks='none systypes syssocket'
|
tst_pull_header_checks='none systypes syssocket'
|
||||||
tst_size_checks='4 8 2'
|
tst_size_checks='4 8 2'
|
||||||
fi
|
fi
|
||||||
|
rm -f debug.txt
|
||||||
|
echo "DEBUG: ======================================" >>debug.txt
|
||||||
|
echo "DEBUG: tst_pull_header_checks: $tst_pull_header_checks" >>debug.txt
|
||||||
|
echo "DEBUG: tst_size_checks : $tst_size_checks" >>debug.txt
|
||||||
for tst_size in $tst_size_checks; do
|
for tst_size in $tst_size_checks; do
|
||||||
for tst_pull_headers in $tst_pull_header_checks; do
|
for tst_pull_headers in $tst_pull_header_checks; do
|
||||||
if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
|
if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
|
||||||
@ -1862,6 +1866,10 @@ AC_DEFUN([CARES_CONFIGURE_ARES_SOCKLEN_T], [
|
|||||||
tmp_includes=""
|
tmp_includes=""
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
echo "DEBUG: --------------------------------------" >>debug.txt
|
||||||
|
echo "DEBUG: tst_pull_headers: $tst_pull_headers" >>debug.txt
|
||||||
|
echo "DEBUG: tst_size : $tst_size" >>debug.txt
|
||||||
|
echo "DEBUG: --------------------------------------" >>debug.txt
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
$tmp_includes
|
$tmp_includes
|
||||||
@ -1873,6 +1881,10 @@ AC_DEFUN([CARES_CONFIGURE_ARES_SOCKLEN_T], [
|
|||||||
],[
|
],[
|
||||||
cares_sizeof_ares_socklen_t="$tst_size"
|
cares_sizeof_ares_socklen_t="$tst_size"
|
||||||
cares_pull_headers_socklen_t="$tst_pull_headers"
|
cares_pull_headers_socklen_t="$tst_pull_headers"
|
||||||
|
sed 's/^/cc-OK : /' conftest.$ac_ext >>debug.txt
|
||||||
|
],[
|
||||||
|
sed 's/^/cc-src: /' conftest.$ac_ext >>debug.txt
|
||||||
|
sed 's/^/cc-err: /' conftest.err >>debug.txt
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -1882,6 +1894,10 @@ AC_DEFUN([CARES_CONFIGURE_ARES_SOCKLEN_T], [
|
|||||||
AC_MSG_ERROR([cannot find out size of ares_socklen_t.])
|
AC_MSG_ERROR([cannot find out size of ares_socklen_t.])
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
echo "DEBUG: ======================================" >>debug.txt
|
||||||
|
echo "DEBUG: cares_pull_headers_socklen_t: $cares_pull_headers_socklen_t" >>debug.txt
|
||||||
|
echo "DEBUG: cares_sizeof_ares_socklen_t : $cares_sizeof_ares_socklen_t" >>debug.txt
|
||||||
|
echo "DEBUG: ======================================" >>debug.txt
|
||||||
case $cares_pull_headers_socklen_t in
|
case $cares_pull_headers_socklen_t in
|
||||||
ws2tcpip)
|
ws2tcpip)
|
||||||
CARES_DEFINE_UNQUOTED([CARES_PULL_WS2TCPIP_H])
|
CARES_DEFINE_UNQUOTED([CARES_PULL_WS2TCPIP_H])
|
||||||
@ -1896,6 +1912,12 @@ AC_DEFUN([CARES_CONFIGURE_ARES_SOCKLEN_T], [
|
|||||||
esac
|
esac
|
||||||
CARES_DEFINE_UNQUOTED([CARES_TYPEOF_ARES_SOCKLEN_T], [$cares_typeof_ares_socklen_t])
|
CARES_DEFINE_UNQUOTED([CARES_TYPEOF_ARES_SOCKLEN_T], [$cares_typeof_ares_socklen_t])
|
||||||
CARES_DEFINE_UNQUOTED([CARES_SIZEOF_ARES_SOCKLEN_T], [$cares_sizeof_ares_socklen_t])
|
CARES_DEFINE_UNQUOTED([CARES_SIZEOF_ARES_SOCKLEN_T], [$cares_sizeof_ares_socklen_t])
|
||||||
|
case X-"$ac_cv_native_windows" in
|
||||||
|
X-yes)
|
||||||
|
cat debug.txt >&6
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
rm -f debug.txt
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user