THRIFT-994. build: Don't try to invoke phpize if we don't have it
Patch: Richard Salz
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1063919 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bootstrap.sh b/bootstrap.sh
index cda21df..0c2b886 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -20,7 +20,11 @@
#
./cleanup.sh
-(cd lib/php/src/ext/thrift_protocol && phpize)
+if test -d lib/php/src/ext/thrift_protocol ; then
+ if phpize -v >/dev/null 2>/dev/null ; then
+ (cd lib/php/src/ext/thrift_protocol && phpize)
+ fi
+fi
set -e