summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-10 15:06:04 +0000
committerFelipe Pena <felipe@php.net>2008-03-10 15:06:04 +0000
commitaf8b8480d59a50d0e26cb44950b3e726936cceec (patch)
tree7c803b313f71dd82363b82fe3d95c6ff03fb459f
parent794955ce856e73b4893f63963718548e5cc7ab0d (diff)
downloadphp-git-af8b8480d59a50d0e26cb44950b3e726936cceec.tar.gz
Improve the Darwin 9 hack considerably and switch to using dl*() instead of NS*() on Darwin 8+. (Patch by Gwynne)
-rw-r--r--Zend/Zend.m413
1 files changed, 12 insertions, 1 deletions
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4
index 8f34bdfb09..dd1bbc3386 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