* configure.in: Add --with-newlib to CONFIG_ARGUMENTS if we are

building with newlib.
This commit is contained in:
Ian Lance Taylor 1998-05-05 22:03:12 +00:00
parent 7074031da3
commit ff2664fc49
1 changed files with 6 additions and 0 deletions

View File

@ -1124,6 +1124,12 @@ if [ x${enable_multilib} = x ]; then
targargs="--enable-multilib ${targargs}"
fi
# Pass --with-newlib if appropriate. Note that target_configdirs has
# changed from the earlier setting of with_newlib.
if [ x${with_newlib} != xno ] && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && [ -d ${srcdir}/newlib ] ; then
targargs="--with-newlib ${targargs}"
fi
targargs="--host=${target_alias} --build=${build_alias} ${targargs}"
sed -e "s:^TARGET_CONFIGDIRS[ ]*=.*$:TARGET_CONFIGDIRS = ${target_configdirs}:" \
-e "s%^CONFIG_ARGUMENTS[ ]*=.*$%CONFIG_ARGUMENTS = ${targargs}%" \