diff options
| author | Marko Karppinen <markonen@php.net> | 2002-03-30 03:17:25 +0000 |
|---|---|---|
| committer | Marko Karppinen <markonen@php.net> | 2002-03-30 03:17:25 +0000 |
| commit | 676afb33b852f6bad14d8a882ae6cbef8ce603f9 (patch) | |
| tree | f46810c7c9798f9ded1c7fa50c1c7d17986ab315 /sapi | |
| parent | f43ca8d2bcc63fe34e950c193fea0fdaefdc1758 (diff) | |
| download | php-git-676afb33b852f6bad14d8a882ae6cbef8ce603f9.tar.gz | |
Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
an MH_DYLIB. As all PPC code is relocatable, we don't use the libtool
based shared build but go a static route. Goodbye libtool!
# I'm committing this to enable widespear testing.
# Anyone have any ideas on how to easily backport this to 4.2.0?
Diffstat (limited to 'sapi')
| -rw-r--r-- | sapi/apache/config.m4 | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/sapi/apache/config.m4 b/sapi/apache/config.m4 index 62ad45ebcd..57f1236520 100644 --- a/sapi/apache/config.m4 +++ b/sapi/apache/config.m4 @@ -38,8 +38,24 @@ AC_ARG_WITH(apxs, -D*) CPPFLAGS="$CPPFLAGS $flag";; esac done + case $host_alias in + *aix*) + APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR` + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" + PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php4.c php_apache.c) + ;; + *darwin*) + APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` + MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD" + PHP_SUBST(MH_BUNDLE_FLAGS) + SAPI_SHARED=libs/libphp4.so + PHP_SELECT_SAPI(apache, bundle, sapi_apache.c mod_php4.c php_apache.c) + ;; + *) + PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php4.c php_apache.c) + ;; + esac PHP_ADD_INCLUDE($APXS_INCLUDEDIR) - PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php4.c php_apache.c) # Test whether apxs support -S option $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1 @@ -57,17 +73,6 @@ AC_ARG_WITH(apxs, AC_DEFINE(HAVE_AP_CONFIG_H,1,[ ]) AC_DEFINE(HAVE_AP_COMPAT_H,1,[ ]) AC_MSG_RESULT(yes) - case $host_alias in - *aix*) - APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR` - EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" - ;; - *darwin*) - APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` - MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD" - PHP_SUBST(MH_BUNDLE_FLAGS) - ;; - esac ],[ AC_MSG_RESULT(no) ]) |
