X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=rebuild;h=e32fd35e55754396d7b4c356c86db9e42dfccb52;hp=b7f97c87625337f93638713918682d88dba179a9;hb=ad5f896b03adaa073134a00108a9cdf00720673a;hpb=e78857a010ae86f5dddb593cbe96d67e5bd6f13d diff --git a/rebuild b/rebuild index b7f97c8..e32fd35 100755 --- a/rebuild +++ b/rebuild @@ -3,6 +3,7 @@ rm -f warnings if test -d "$1"; then PREFIX=$1 + shift else PREFIX=`dirname $(dirname $(which php-config))` fi @@ -19,7 +20,7 @@ echo "DONE" echo -n "configuring... " CFLAGS="-Wall -Wextra -Wno-unused-parameter -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wbad-function-cast -Wcast-align -Wmissing-field-initializers -Wnested-externs" \ - ./configure --with-php-config=${PREFIX}/bin/php-config $2 >/dev/null + ./configure --with-php-config=${PREFIX}/bin/php-config $@ >/dev/null if test $? -ne 0 ; then echo "FAILED!" exit 1