diff options
-rwxr-xr-x | abe.sh | 4 | ||||
-rwxr-xr-x | lib/configure.sh | 21 |
2 files changed, 13 insertions, 12 deletions
@@ -787,8 +787,8 @@ while test $# -gt 0; do ;; --extraconfig|-extraconfig) check_directive $1 extraconfig extraconfig $2 - extraconfig_tool=`echo $2 | sed 's/\(.*\)=.*/\1/'` - extraconfig_val=`echo $2 | sed 's/.*=\(.*\)/\1/'` + extraconfig_tool="`echo $2 | cut -d '=' -f 1`" + extraconfig_val="`echo $2 | cut -d '=' -f 2`" extraconfig[${extraconfig_tool}]="${extraconfig_val}" shift ;; diff --git a/lib/configure.sh b/lib/configure.sh index 26a9aa6a..bfaa9f3d 100755 --- a/lib/configure.sh +++ b/lib/configure.sh @@ -74,16 +74,6 @@ configure_build() local toolname="${component}" fi - local this_extraconfig="${extraconfig[${toolname}]}" - if test -n "${this_extraconfig}"; then - if test -e "${this_extraconfig}"; then - notice "Sourcing extra config: ${this_extraconfig}" - . "${this_extraconfig}" - else - error "Warning: extraconfig file does not exist: ${this_extraconfig}" - exit 1 - fi - fi local opts="`get_component_configure ${component} $2`" # See if this component depends on other components. They then need to be @@ -215,6 +205,17 @@ configure_build() ;; esac + local this_extraconfig="${extraconfig[${component}]}" + if test -n "${this_extraconfig}"; then + if test -e "${this_extraconfig}"; then + notice "Sourcing extra config: ${this_extraconfig}" + . "${this_extraconfig}" + else + error "Warning: extraconfig file does not exist: ${this_extraconfig}" + exit 1 + fi + fi + if test -e ${builddir}/config.status -a x"${component}" != x"gcc" -a x"${force}" = xno; then warning "${buildir} already configured!" else |