From: Jani Taskinen Date: Wed, 2 Dec 2009 08:54:50 +0000 (+0000) Subject: - Fixed bug #50345 (nanosleep not detected properly on some solaris versions) X-Git-Tag: php-5.3.2RC1~129 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14c70e09590abbd99f446089fd6c78f96f94b6de;p=php - Fixed bug #50345 (nanosleep not detected properly on some solaris versions) --- diff --git a/NEWS b/NEWS index f509855111..e3ea10407f 100644 --- a/NEWS +++ b/NEWS @@ -26,6 +26,8 @@ PHP NEWS - Fixed memory leak in extension loading when an error occurs on Windows. (Pierre) +- Fixed bug #50345 (nanosleep not detected properly on some solaris versions). + (Jani) - Fixed bug #50340 (php.ini parser does not allow spaces in ini keys). (Jani) - Fixed bug #50285 (xmlrpc does not preserve keys in encoded indexed arrays). (Felipe) diff --git a/configure.in b/configure.in index 788a3f0f9d..5f656cc2be 100644 --- a/configure.in +++ b/configure.in @@ -387,9 +387,6 @@ dnl Check for inet_aton dnl in -lc, -lbind and -lresolv PHP_CHECK_FUNC(inet_aton, resolv, bind) -dnl Some systems (like OpenSolaris) do not have nanosleep in libc -PHP_CHECK_FUNC(nanosleep, rt) - dnl Then headers. dnl ------------------------------------------------------------------------- @@ -614,6 +611,9 @@ vasprintf \ asprintf \ ) +dnl Some systems (like OpenSolaris) do not have nanosleep in libc +AC_CACHE_CHECK([for nanosleep], ac_cv_func_nanosleep, [PHP_CHECK_FUNC_LIB(nanosleep, rt)]) + dnl Check for getaddrinfo, should be a better way, but... dnl Also check for working getaddrinfo AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo,