Do not try to parse the options for --build and --host arguments

Formerly the code assumed the arguments to be triples and threw an
error if this was not the case. But those arguments are only there for
compatibility with autotools and are not used within the build system,
so just dropping the code parsing these values makes the build system
more robust.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
This commit is contained in:
Justus Winter 2012-03-05 11:23:44 +01:00 committed by David Bremner
parent 524f01a7b5
commit 1984a26646

32
configure vendored
View file

@ -171,37 +171,9 @@ for option; do
elif [ "${option}" = '--without-zsh-completion' ] ; then elif [ "${option}" = '--without-zsh-completion' ] ; then
WITH_ZSH=0 WITH_ZSH=0
elif [ "${option%%=*}" = '--build' ] ; then elif [ "${option%%=*}" = '--build' ] ; then
build_option="${option#*=}" true
case ${build_option} in
*-*-*) ;;
*)
echo "Unrecognized value for --build option: ${build_option}"
echo "Should be: <cpu>-<vendor>-<os>"
echo "See:"
echo " $0 --help"
echo ""
exit 1
esac
build_cpu=${build_option%%-*}
build_option=${build_option#*-}
build_vendor=${build_option%%-*}
build_os=${build_option#*-}
elif [ "${option%%=*}" = '--host' ] ; then elif [ "${option%%=*}" = '--host' ] ; then
host_option="${option#*=}" true
case ${host_option} in
*-*-*) ;;
*)
echo "Unrecognized value for --host option: ${host_option}"
echo "Should be: <cpu>-<vendor>-<os>"
echo "See:"
echo " $0 --help"
echo ""
exit 1
esac
host_cpu=${host_option%%-*}
host_option=${host_option#*-}
host_vendor=${host_option%%-*}
host_os=${host_option#*-}
elif [ "${option%%=*}" = '--infodir' ] ; then elif [ "${option%%=*}" = '--infodir' ] ; then
true true
elif [ "${option%%=*}" = '--datadir' ] ; then elif [ "${option%%=*}" = '--datadir' ] ; then