ref: ccb6bdca75396f79b1a50d1efa8f1e0d8aab2221
parent: 42ab401fd3227ec1235d71f368f21f7fa08c77d3
author: James Zern <[email protected]>
date: Wed Aug 21 15:00:08 EDT 2013
configure: fix action expansion enable|disable -> (enable|disable)_feature Change-Id: I7494913c78ebe8bb532fa6545e0ae53a79ccd388
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -512,7 +512,7 @@
echo "${CMDLINE_SELECT}" | grep "^ *$option\$" >/dev/null ||
die_unknown $opt
fi
- $action $option
+ ${action}_feature $option
;;
--require-?*)
eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
@@ -524,7 +524,7 @@
;;
--force-enable-?*|--force-disable-?*)
eval `echo "$opt" | sed 's/--force-/action=/;s/-/ option=/;s/-/_/g'`
- $action $option
+ ${action}_feature $option
;;
--libc=*)
[ -d "${optval}" ] || die "Not a directory: ${optval}"
--- a/configure
+++ b/configure
@@ -363,7 +363,7 @@
eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
if echo "${EXPERIMENT_LIST}" | grep "^ *$option\$" >/dev/null; then
if enabled experimental; then
- $action $option
+ ${action}_feature $option
else
log_echo "Ignoring $opt -- not in experimental mode."
fi