]> granicus.if.org Git - php/commitdiff
some people would prefer to be able to specify. So, we specify --ZendEngine2 for...
authorJames Cox <imajes@php.net>
Sun, 23 Jun 2002 16:31:54 +0000 (16:31 +0000)
committerJames Cox <imajes@php.net>
Sun, 23 Jun 2002 16:31:54 +0000 (16:31 +0000)
buildconf

index 957f3916b2955fe84e26a344b3a7b706023402ea..da6f73c77731406cd8245217498ccefaecca7868 100755 (executable)
--- 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"