summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2010-11-17 13:01:53 +0000
committerJani Taskinen <jani@php.net>2010-11-17 13:01:53 +0000
commitc3dd89eeb70ff52504d1b04148ddcc51e553ec09 (patch)
treed2c935119a3dc5b93bd3f9b919333486cfde5cf4 /acinclude.m4
parent4d13e04ae2eb133c9ce88d299a8712617d35cad5 (diff)
downloadphp-git-c3dd89eeb70ff52504d1b04148ddcc51e553ec09.tar.gz
- Fix building SAPI module
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m423
1 files changed, 10 insertions, 13 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 717bd78d76..ad87ff0604 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -830,8 +830,6 @@ AC_DEFUN([PHP_BUILD_PROGRAM],[
shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
shared_cxx_post=
shared_lo=lo
-
- php_sapi_module=program
])
dnl
@@ -901,19 +899,18 @@ AC_DEFUN([PHP_SELECT_SAPI],[
PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS $1"
- case "$2" in
- static[)] PHP_BUILD_STATIC;;
- shared[)] PHP_BUILD_SHARED;;
- bundle[)] PHP_BUILD_BUNDLE;;
- program[)] PHP_BUILD_PROGRAM;;
- esac
-
ifelse($2,program,[
+ PHP_BUILD_PROGRAM
install_binaries="install-binaries"
install_binary_targets="$install_binary_targets install-$1"
PHP_SUBST(PHP_[]translit($1,a-z0-9-,A-Z0-9_)[]_OBJS)
ifelse($3,,,[PHP_ADD_SOURCES_X([sapi/$1],[$3],[$4],PHP_[]translit($1,a-z0-9-,A-Z0-9_)[]_OBJS)])
],[
+ case "$2" in
+ static[)] PHP_BUILD_STATIC;;
+ shared[)] PHP_BUILD_SHARED;;
+ bundle[)] PHP_BUILD_BUNDLE;;
+ esac
install_sapi="install-sapi"
ifelse($3,,,[PHP_ADD_SOURCES([sapi/$1],[$3],[$4],[sapi])])
])
@@ -2937,14 +2934,14 @@ dnl DTrace objects
done;
case [$]php_sapi_module in
- program|static)
- dtrace_objs='$(PHP_DTRACE_OBJS:.lo=.o)'
- ;;
- *)
+ shared[)]
for ac_lo in $PHP_DTRACE_OBJS; do
dtrace_objs="[$]dtrace_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`"
done;
;;
+ *[)]
+ dtrace_objs='$(PHP_DTRACE_OBJS:.lo=.o)'
+ ;;
esac
dnl Generate Makefile.objects entries