Skip to content

Commit

Permalink
* config-ml.in: Adjust multilib search paths to the
Browse files Browse the repository at this point in the history
appropriate multilib tree.
  • Loading branch information
Alexandre Oliva committed Aug 3, 2000
1 parent 25c1ca4 commit a3c5b74
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2000-08-03 Alexandre Oliva <aoliva@redhat.com>

* config-ml.in: Adjust multilib search paths to the
appropriate multilib tree.

2000-08-02 Alexandre Oliva <aoliva@redhat.com>

* configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Convert blanks to
Expand Down
35 changes: 34 additions & 1 deletion config-ml.in
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,40 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
break
fi
done
ml_config_env='CC="${CC} $flags"'
ml_config_env='CC="${CC_} $flags" CXX="${CXX_} $flags"'

if [ "${with_target_subdir}" = "." ]; then
CC_=$CC
CXX_=$CXX
else
# Create a regular expression that matches any string as long
# as ML_POPDIR.
popdir_rx=`echo ${ML_POPDIR} | sed 's,.,.,g'`
CC_=
for arg in ${CC}; do
case $arg in
-[BIL]"${ML_POPDIR}"/*)
CC_="${CC_} "`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\1/p"` ;;
"${ML_POPDIR}"/*)
CC_="${CC_} "`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p""`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"` ;;
*)
CC_="${CC_} ${arg}" ;;
esac
done

CXX_=
for arg in ${CXX}; do
case $arg in
-[BIL]"${ML_POPDIR}"/*)
CXX_="${CXX_} "`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\\1/p"` ;;
"${ML_POPDIR}"/*)
CXX_="${CXX_} "`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"` ;;
*)
CXX_="${CXX_} ${arg}" ;;
esac
done

fi

if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \
--with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \
Expand Down

0 comments on commit a3c5b74

Please sign in to comment.