A make check patch for libio

H.J. Lu hjl@lucon.org
Mon Jan 12 10:18:00 GMT 1998


I am using the same libio in libg++. The enclosed patch allows
"make check" to finish when the gcc directory doesn't exist.


-- 
H.J. Lu (hjl@gnu.org)
--
Fri Jan  9 17:48:32 1999  H.J. Lu  (hjl@gnu.org)

	* configure.in (CHECK_SUBDIRS): Set to testsuite only if
	${srcdir}/../gcc exists.
	(configdirs): Include testsuite only if ${srcdir}/../gcc exists.

	* tests/Makefile.in (check): Depend on $(CHECK).

	* tests/configure.in (CHECK): Set to "check-iostream
	check-stdio" if ${srcdir}/../../gcc doesn't exists.

Index: configure.in
===================================================================
RCS file: /home/work/cvs/gnu/egcs/libio/configure.in,v
retrieving revision 1.1.1.7
diff -u -r1.1.1.7 configure.in
--- configure.in	1997/12/16 17:32:25	1.1.1.7
+++ configure.in	1998/01/10 03:03:54
@@ -2,7 +2,11 @@
 # necessary for a configure script to process the program in
 # this directory.  For more information, look at ../configure.
 
-configdirs="tests dbz stdio testsuite"
+if [ -d ${srcdir}/../gcc ] ; then
+  configdirs="tests dbz stdio testsuite"
+else
+  configdirs="tests dbz stdio"
+fi
 srctrigger=libioP.h
 srcname="input/output library"
 package_makefile_frag=Make.pack
@@ -98,7 +102,7 @@
 DISTCLEAN='config.status Makefile *~ Make.pack target-mkfrag multilib.out'
 CLEAN='_G_config.h *.a'
 INFO_FILES=iostream
-if [ -n "${with_cross_host}" ] ; then
+if [ -n "${with_cross_host}" -a -d ${srcdir}/../gcc ] ; then
     CHECK_SUBDIRS=testsuite
 fi
 (. ${srcdir}/config.shared) >${package_makefile_frag}
Index: tests/Makefile.in
===================================================================
RCS file: /home/work/cvs/gnu/egcs/libio/tests/Makefile.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.in
--- Makefile.in	1997/08/26 00:21:28	1.1.1.1
+++ Makefile.in	1998/01/10 02:50:02
@@ -41,9 +41,7 @@
 DEPEND_SOURCES = $(srcdir)/*.C
 
 .PHONY: check check-old check-iostream check-stdio
-check:
-
-check-old: check-iostream check-iostdio
+check: $(CHECK)
 
 
 # These are tests written in C++, that test the iostream facility.
Index: tests/configure.in
===================================================================
RCS file: /home/work/cvs/gnu/egcs/libio/tests/configure.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 configure.in
--- configure.in	1997/08/26 00:21:28	1.1.1.1
+++ configure.in	1998/01/10 03:03:32
@@ -17,5 +17,8 @@
 XCXXINCLUDES='-I. -I.. -I$(srcdir) -I$(srcdir)/..'
 MOSTLYCLEAN='*.o core $(JUNK_TO_CLEAN)'
 (. ${srcdir}/../config.shared) >${package_makefile_frag}
+if [ ! -d ${srcdir}/../../gcc ] ; then
+  echo "CHECK = check-iostream check-iostdio" >>${package_makefile_frag}
+fi
 
 # post-target:



More information about the Gcc mailing list