@@ -7743,6 +7743,94 @@ if test "$ac_res" != no; then
77437743
77447744fi
77457745
7746+ # Required for thread_test.c on Solaris 2.5:
7747+ case $host_os in
7748+ solaris*)
7749+ { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7750+ echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
7751+ if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7752+ echo $ECHO_N "(cached) $ECHO_C" >&6
7753+ else
7754+ ac_func_search_save_LIBS=$LIBS
7755+ cat >conftest.$ac_ext <<_ACEOF
7756+ /* confdefs.h. */
7757+ _ACEOF
7758+ cat confdefs.h >>conftest.$ac_ext
7759+ cat >>conftest.$ac_ext <<_ACEOF
7760+ /* end confdefs.h. */
7761+
7762+ /* Override any GCC internal prototype to avoid an error.
7763+ Use char because int might match the return type of a GCC
7764+ builtin and then its argument prototype would still apply. */
7765+ #ifdef __cplusplus
7766+ extern "C"
7767+ #endif
7768+ char gethostbyname_r ();
7769+ int
7770+ main ()
7771+ {
7772+ return gethostbyname_r ();
7773+ ;
7774+ return 0;
7775+ }
7776+ _ACEOF
7777+ for ac_lib in '' nsl; do
7778+ if test -z "$ac_lib"; then
7779+ ac_res="none required"
7780+ else
7781+ ac_res=-l$ac_lib
7782+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7783+ fi
7784+ rm -f conftest.$ac_objext conftest$ac_exeext
7785+ if { (ac_try="$ac_link"
7786+ case "(($ac_try" in
7787+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788+ *) ac_try_echo=$ac_try;;
7789+ esac
7790+ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791+ (eval "$ac_link") 2>conftest.er1
7792+ ac_status=$?
7793+ grep -v '^ *+' conftest.er1 >conftest.err
7794+ rm -f conftest.er1
7795+ cat conftest.err >&5
7796+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797+ (exit $ac_status); } && {
7798+ test -z "$ac_c_werror_flag" ||
7799+ test ! -s conftest.err
7800+ } && test -s conftest$ac_exeext &&
7801+ $as_test_x conftest$ac_exeext; then
7802+ ac_cv_search_gethostbyname_r=$ac_res
7803+ else
7804+ echo "$as_me: failed program was:" >&5
7805+ sed 's/^/| /' conftest.$ac_ext >&5
7806+
7807+
7808+ fi
7809+
7810+ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7811+ conftest$ac_exeext
7812+ if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7813+ break
7814+ fi
7815+ done
7816+ if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7817+ :
7818+ else
7819+ ac_cv_search_gethostbyname_r=no
7820+ fi
7821+ rm conftest.$ac_ext
7822+ LIBS=$ac_func_search_save_LIBS
7823+ fi
7824+ { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7825+ echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
7826+ ac_res=$ac_cv_search_gethostbyname_r
7827+ if test "$ac_res" != no; then
7828+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7829+
7830+ fi
7831+
7832+ ;;
7833+ esac
77467834# Cygwin:
77477835{ echo "$as_me:$LINENO: checking for library containing shmget" >&5
77487836echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }