X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=rebuild;h=e32fd35e55754396d7b4c356c86db9e42dfccb52;hp=fe6576e2e49d3b2c34bb6b8ce8db007efc37a939;hb=ad5f896b03adaa073134a00108a9cdf00720673a;hpb=4c9d48b72af6544a4e01115f8d90035fd5bef17a diff --git a/rebuild b/rebuild index fe6576e..e32fd35 100755 --- a/rebuild +++ b/rebuild @@ -3,8 +3,9 @@ rm -f warnings if test -d "$1"; then PREFIX=$1 + shift else - PREFIX=/opt + PREFIX=`dirname $(dirname $(which php-config))` fi echo "Using prefix '$PREFIX' for phpize and php-config!" @@ -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