From: Felipe Pena Date: Mon, 10 Mar 2008 15:09:20 +0000 (+0000) Subject: MFB: Improve the Darwin 9 hack considerably and switch to using dl*() instead of... X-Git-Tag: RELEASE_2_0_0a1~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f46cab626ca9c773ddabb78dbe8260584bf95fa;p=php MFB: Improve the Darwin 9 hack considerably and switch to using dl*() instead of NS*() on Darwin 8+. (Patch by Gwynne) --- diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index 36137a624a..9c95754f33 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -61,9 +61,20 @@ sys/time.h \ signal.h \ unix.h \ stdlib.h \ -mach-o/dyld.h \ dlfcn.h) +dnl Don't use mach-o/dyld.h on Darwin 8+, dl* is recommended by Apple from there on +dnl See http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/loading_code.html +case $host_alias in +*darwin[[89]]*) + ;; +*) + AC_CHECK_HEADERS([ \ +mach-o/dyld.h +],[],[][]) + ;; +esac + AC_TYPE_SIZE_T AC_TYPE_SIGNAL