aboutsummaryrefslogtreecommitdiff
path: root/libio/tests
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gnu.org>1998-01-27 09:34:31 +0000
committerJeff Law <law@gcc.gnu.org>1998-01-27 02:34:31 -0700
commit4b52c114090ba6e1707778b23d263b3a12b5403a (patch)
tree12b3d8897ca463ff7a38c72e300f22b6049647fd /libio/tests
parent3fdcc721ffe53f9ed3c48fbf50c62a657d7472f3 (diff)
downloadgcc-4b52c114090ba6e1707778b23d263b3a12b5403a.zip
gcc-4b52c114090ba6e1707778b23d263b3a12b5403a.tar.gz
gcc-4b52c114090ba6e1707778b23d263b3a12b5403a.tar.bz2
configure.in (topsrcdir): New.
* configure.in (topsrcdir): New. (CHECK_SUBDIRS, configdirs): Check ${topsrcdir}/gcc instead. (config-ml.in): Use ${topsrcdir}/config-ml.in. * tests/configure.in (topsrcdir): New. (CHECK): Check ${topsrcdir}/gcc instead. From-SVN: r17506
Diffstat (limited to 'libio/tests')
-rw-r--r--libio/tests/configure.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/libio/tests/configure.in b/libio/tests/configure.in
index 2efeaf5..1a8ad31 100644
--- a/libio/tests/configure.in
+++ b/libio/tests/configure.in
@@ -17,7 +17,18 @@ XCINCLUDES='-I. -I.. -I$(srcdir) -I$(srcdir)/..'
XCXXINCLUDES='-I. -I.. -I$(srcdir) -I$(srcdir)/..'
MOSTLYCLEAN='*.o core $(JUNK_TO_CLEAN)'
(. ${srcdir}/../config.shared) >${package_makefile_frag}
-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 "CHECK = check-iostream check-iostdio" >>${package_makefile_frag}
fi