build: Support all *=* forms.

ck_pring
Samy Al Bahra 12 years ago
parent e1e6d52e5b
commit 3de1f23d74

22
configure vendored

@ -124,11 +124,11 @@ generate_stdout()
}
for option in $*; do
value=`echo "$option" | sed -e 's/^[^=]*=\(.*\)/\1/'`
value=`expr "$option" : '[^=]*=\(.*\)'`
case "$option" in
--help)
echo "Usage: ./configure [OPTIONS]"
echo "Usage: $0 [OPTIONS]"
echo
echo "The following options may be used for cross-building."
echo " --profile=N Use custom build profile (use in conjunction with \$CC)"
@ -195,20 +195,14 @@ for option in $*; do
--mandir=*)
MANDIR=$value
;;
CC=*)
CC=$value
;;
LDFLAGS=*)
LDFLAGS=$value
;;
CFLAGS=*)
CFLAGS=$value
;;
GZIP=*)
GZIP=$value
*=*)
NAME=`expr "$option" : '\([^=]*\)='`
VALUE=`echo "$value" | sed "s/'/'\\\\\\\\''/g"`
eval "$NAME='$VALUE'"
export $NAME
;;
*)
echo "./configure [--help]"
echo "$0 [--help]"
exit $EXIT_FAILURE
;;
esac

Loading…
Cancel
Save