Temporarily (?) commented the code for testing for getaddrinfo.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis 2006-01-14 13:07:42 +00:00
parent bf473da729
commit b41e7f68a3

View File

@ -4991,14 +4991,16 @@ fi
AC_CHECK_FUNC(localtime_r, [ AC_DEFINE(HAVE_LOCALTIME_R) ]) AC_CHECK_FUNC(localtime_r, [ AC_DEFINE(HAVE_LOCALTIME_R) ])
AC_CHECK_FUNC(gmtime_r, [ AC_DEFINE(HAVE_GMTIME_R) ]) AC_CHECK_FUNC(gmtime_r, [ AC_DEFINE(HAVE_GMTIME_R) ])
AC_CHECK_FUNC(readdir_r, [ AC_DEFINE(HAVE_READDIR_R) ]) AC_CHECK_FUNC(readdir_r, [ AC_DEFINE(HAVE_READDIR_R) ])
dnl By preference, use getaddrinfo which avoids thread safety issues. dnl By preference, we probably should use getaddrinfo which avoids thread
dnl If that is not available, check for gethostbyname_r/gethostbyaddr_r dnl safety issues and supports IPv6, however there currently is no code
dnl and getservbyname_r dnl for it, so testing for it is temporarily disabled and we are restricted
AC_CHECK_FUNC(getaddrinfo, AC_DEFINE(HAVE_GETADDRINFO), dnl to gethostbyname_r/gethostbyaddr_r and getservbyname_r
dnl AC_CHECK_FUNC(getaddrinfo, AC_DEFINE(HAVE_GETADDRINFO), [
dnl no getaddrinfo, so check for gethostbyname_r and dnl no getaddrinfo, so check for gethostbyname_r and
dnl related functions (taken from python's configure.in) dnl related functions (taken from python's configure.in)
dnl sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments dnl sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments
[ AX_FUNC_WHICH_GETHOSTBYNAME_R AX_FUNC_WHICH_GETHOSTBYNAME_R
if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
"x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
AC_CHECK_FUNC(gethostbyname, [ AC_DEFINE(HAVE_GETHOSTBYNAME) ]) AC_CHECK_FUNC(gethostbyname, [ AC_DEFINE(HAVE_GETHOSTBYNAME) ])
@ -5019,8 +5021,8 @@ AC_CHECK_FUNC(getaddrinfo, AC_DEFINE(HAVE_GETADDRINFO),
dnl (also, I'm lazy and there no m4 file that's ready for use for this dnl (also, I'm lazy and there no m4 file that's ready for use for this
dnl function, although it should be easy to rewrite the gethostbyname_r dnl function, although it should be easy to rewrite the gethostbyname_r
dnl check to fit this case, if it's really needed. - SN ) dnl check to fit this case, if it's really needed. - SN )
] dnl ]
) dnl )
if test "$wxUSE_THREADS" = "yes"; then if test "$wxUSE_THREADS" = "yes"; then
AC_DEFINE(wxUSE_THREADS) AC_DEFINE(wxUSE_THREADS)