Commit 3fdcc721 by H.J. Lu Committed by Jeff Law

configure.in (topsrcdir): New.

        * configure.in (topsrcdir): New.
        (configdirs): Check ${topsrcdir}/gcc instead.
        (config-ml.in): Use ${topsrcdir}/config-ml.in.
        * tests/configure.in (topsrcdir): New.
        (check): Check ${topsrcdir}/gcc instead.
Fixes multilib problems when srcdir == objdir.

From-SVN: r17505
parent 7b6ffd11
Tue Jan 27 10:29:44 1998 H.J. Lu (hjl@gnu.org)
* configure.in (topsrcdir): New.
(configdirs): Check ${topsrcdir}/gcc instead.
(config-ml.in): Use ${topsrcdir}/config-ml.in.
* tests/configure.in (topsrcdir): New.
(check): Check ${topsrcdir}/gcc instead.
Sun Jan 25 14:01:50 1998 Jason Merrill <jason@yorick.cygnus.com> Sun Jan 25 14:01:50 1998 Jason Merrill <jason@yorick.cygnus.com>
* std/bastring.h (unique): We only need length bytes. * std/bastring.h (unique): We only need length bytes.
......
...@@ -2,7 +2,17 @@ ...@@ -2,7 +2,17 @@
# necessary for a configure script to process the program in # necessary for a configure script to process the program in
# this directory. For more information, look at ../configure. # this directory. For more information, look at ../configure.
if [ -d ${srcdir}/../gcc ] ; then if [ "${srcdir}" = "." ] ; then
if [ "${with_target_subdir}" != "." ] ; then
topsrcdir=${with_multisrctop}../..
else
topsrcdir=${with_multisrctop}..
fi
else
topsrcdir=${srcdir}/..
fi
if [ -d ${topsrcdir}/gcc ] ; then
configdirs="tests testsuite" configdirs="tests testsuite"
else else
configdirs="tests" configdirs="tests"
...@@ -86,12 +96,4 @@ if [ -n "${with_cross_host}" ] ; then ...@@ -86,12 +96,4 @@ if [ -n "${with_cross_host}" ] ; then
mv -f Makefile.tem Makefile mv -f Makefile.tem Makefile
fi fi
if [ "${srcdir}" = "." ] ; then . ${topsrcdir}/config-ml.in
if [ "${with_target_subdir}" != "." ] ; then
. ${with_multisrctop}../../config-ml.in
else
. ${with_multisrctop}../config-ml.in
fi
else
. ${srcdir}/../config-ml.in
fi
...@@ -43,7 +43,18 @@ for TEST in ${TESTS} ; do ...@@ -43,7 +43,18 @@ for TEST in ${TESTS} ; do
echo ' diff -c $(srcdir)/'"${TEST}.exp ${TEST}.out" >>Makefile echo ' diff -c $(srcdir)/'"${TEST}.exp ${TEST}.out" >>Makefile
CHECK="${CHECK} check-${TEST}" CHECK="${CHECK} check-${TEST}"
done done
if [ -d ${srcdir}/../../gcc ] ; then
if [ "${srcdir}" = "." ] ; then
if [ "${with_target_subdir}" != "." ] ; then
topsrcdir=${with_multisrctop}../../..
else
topsrcdir=${with_multisrctop}../..
fi
else
topsrcdir=${srcdir}/../..
fi
if [ -d ${topsrcdir}/gcc ] ; then
echo " echo "
check: check:
check-old: ${CHECK}" >>Makefile check-old: ${CHECK}" >>Makefile
...@@ -51,5 +62,3 @@ else ...@@ -51,5 +62,3 @@ else
echo " echo "
check: ${CHECK}" >>Makefile check: ${CHECK}" >>Makefile
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment