summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorJames Cox <imajes@php.net>2002-06-23 16:31:54 +0000
committerJames Cox <imajes@php.net>2002-06-23 16:31:54 +0000
commit372cab27ad24790598226d54ee2e6c6ff4598792 (patch)
tree5280fcd9dc68c3a4c69f293229839cc8da6437de /buildconf
parentbca90b07961590cb7ae2aea793c1b378b930aef2 (diff)
downloadphp-git-372cab27ad24790598226d54ee2e6c6ff4598792.tar.gz
some people would prefer to be able to specify. So, we specify --ZendEngine2 for ZE2 builds, Zend for the rest.
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf12
1 files changed, 9 insertions, 3 deletions
diff --git a/buildconf b/buildconf
index 957f3916b2..da6f73c777 100755
--- a/buildconf
+++ b/buildconf
@@ -7,10 +7,16 @@ if test "$supplied_flag" = "--copy"; then
automake_flags=--copy
fi
-if test -d "ZendEngine2"; then
- mv ZendEngine2 Zend
+if test "$supplied_flag" = "--ZendEngine2"; then
+ ZENDDIR=ZendEngine2
+ echo "Using Zend Engine 2 code"
fi
+if test "$ZENDDIR" = ""; then
+ ZENDDIR=Zend
+ echo "using Zend Engine 1 code"
+fi
+
## build.mk does not check aclocal exit status yet
##
#mv aclocal.m4 aclocal.m4.old 2>/dev/null
@@ -37,4 +43,4 @@ case "`uname`" in
./build/bsd_makefile;;
esac
-${MAKE:-make} -s -f build/build.mk AMFLAGS="$automake_flags"
+${MAKE:-make} -s -f build/build.mk AMFLAGS="$automake_flags" ZENDDIR="$ZENDDIR"