configure: Improve extraction of the target name from the CROSSCC definition.
This commit is contained in:
parent
f48e5e2b5f
commit
72a95ffa22
|
@ -8366,10 +8366,23 @@ test -n "$MINGWAR" || MINGWAR="false"
|
|||
then
|
||||
CROSSTEST="\$(CROSSTEST)"
|
||||
|
||||
CROSSTARGETFLAGS="-b `expr $CROSSCC : '\(.*\)-gcc'`"
|
||||
set x $CROSSCC
|
||||
shift
|
||||
target=""
|
||||
while test $# -ge 1
|
||||
do
|
||||
case "$1" in
|
||||
*-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
if test -n "$target"
|
||||
then
|
||||
CROSSTARGETFLAGS="-b $target"
|
||||
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test "$ac_cv_header_pthread_h" = "yes"
|
||||
|
|
15
configure.ac
15
configure.ac
|
@ -699,7 +699,20 @@ then
|
|||
if test "$CROSSCC" != "false"
|
||||
then
|
||||
AC_SUBST(CROSSTEST,"\$(CROSSTEST)")
|
||||
AC_SUBST(CROSSTARGETFLAGS,"-b `expr $CROSSCC : '\(.*\)-gcc'`")
|
||||
set x $CROSSCC
|
||||
shift
|
||||
target=""
|
||||
while test $# -ge 1
|
||||
do
|
||||
case "$1" in
|
||||
*-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
if test -n "$target"
|
||||
then
|
||||
AC_SUBST(CROSSTARGETFLAGS,"-b $target")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue