Fix option parsing for the case of a value with '='.

To support this we need to match the longest-possible suffix and then
strip the shortest-possible prefix.
This commit is contained in:
Carl Worth 2009-12-04 14:50:49 -08:00
parent 2c2b31d536
commit 5022424cf3

2
configure vendored
View file

@ -8,7 +8,7 @@ PREFIX=/usr/local
# option parsing # option parsing
for option; do for option; do
if [ "${option%=*}" = '--prefix' ] ; then if [ "${option%%=*}" = '--prefix' ] ; then
PREFIX="${option#*=}" PREFIX="${option#*=}"
fi fi
done done