diff options
author | Marko Karppinen <markonen@php.net> | 2002-05-13 21:37:52 +0000 |
---|---|---|
committer | Marko Karppinen <markonen@php.net> | 2002-05-13 21:37:52 +0000 |
commit | 5a5767e1d665e8a39c77eeead2807ff69c8c7b77 (patch) | |
tree | a7efba023f048aa6c6b21ff07130a758876baf65 | |
parent | 01835e046985d8e6679334c73413e89f4d11c5f0 (diff) | |
download | php-git-5a5767e1d665e8a39c77eeead2807ff69c8c7b77.tar.gz |
Patch by Justin Erenkrantz <jerenkrantz@apache.org> for enabling
--with-apxs2 build on Darwin. Omitting the change to start linking
with libtool for now, though.
-rw-r--r-- | sapi/apache2filter/config.m4 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sapi/apache2filter/config.m4 b/sapi/apache2filter/config.m4 index 396f29186c..7a3b91b04f 100644 --- a/sapi/apache2filter/config.m4 +++ b/sapi/apache2filter/config.m4 @@ -57,7 +57,18 @@ AC_ARG_WITH(apxs2, INSTALL_IT="$APXS -i -a -n php4 $SAPI_LIBTOOL" ;; *darwin*) - MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD" + dnl When using bundles on Darwin, we must resolve all symbols. However, + dnl the linker does not recursively look at the bundle loader and + dnl pull in its dependencies. Therefore, we must pull in the APR + dnl and APR-util libraries. + APXS_BINDIR=`$APXS -q BINDIR` + if test -f $APXS_BINDIR/apr-config; then + MH_BUNDLE_FLAGS="`$APXS_BINDIR/apr-config --ldflags --link-ld --libs`" + fi + if test -f $APXS_BINDIR/apu-config; then + MH_BUNDLE_FLAGS="`$APXS_BINDIR/apu-config --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS" + fi + MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS" PHP_SUBST(MH_BUNDLE_FLAGS) PHP_SELECT_SAPI(apache2filter, bundle, sapi_apache2.c apache_config.c php_functions.c) SAPI_SHARED=libs/libphp4.so |