1#!/bin/bash 2 3set -ex 4 5cd $(dirname $0) 6 7../prepare_c_extension.sh 8pushd ../ext/google/protobuf 9phpize --clean 10rm -f configure.in configure.ac 11phpize 12if [ "$1" = "--release" ]; then 13 ./configure --with-php-config=$(which php-config) 14else 15 # To get debugging symbols in PHP itself, build PHP with: 16 # $ ./configure --enable-debug CFLAGS='-g -O0' 17 ./configure --with-php-config=$(which php-config) CFLAGS="-g -O0 -Wall" 18fi 19make 20popd 21