1 # Copyright (C) 1997 Free Software Foundation
3 # This file is part of the GNU IO Library. This library is free
4 # software; you can redistribute it and/or modify it under the
5 # terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2, or (at your option)
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with GNU CC; see the file COPYING. If not, write to
16 # the Free Software Foundation, 59 Temple Place - Suite 330,
17 # Boston, MA 02111-1307, USA. */
19 srcdir = libstdc++.tests
21 EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
22 echo $${rootme}/../../expect/expect ; \
23 else echo expect ; fi`
25 RUNTEST = `if [ -f $${srcdir}/../../dejagnu/runtest ] ; then \
26 echo $${srcdir}/../../dejagnu/runtest ; \
27 else echo runtest; fi`
30 #### package, host, target, and site dependent Makefile fragments come in here.
39 site.exp: ./config.status Makefile
40 @echo "Making a new config file..."
43 -@mv site.exp site.bak
44 @echo "## these variables are automatically generated by make ##" > ./tmp0
45 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
46 @echo "# add them to the last section" >> ./tmp0
47 @echo "set host_alias $(host_alias)" >> ./tmp0
48 @echo "set host_triplet ${host_canonical}" >> ./tmp0
49 @echo "set target_alias $(target_alias)" >> ./tmp0
50 @echo "set target_triplet ${target_canonical}" >> ./tmp0
51 @echo "set build_triplet ${build_canonical}" >> ./tmp0
52 @echo "set srcdir ${srcdir}" >> ./tmp0
53 @echo "set tool libstdc++" >> ./tmp0
54 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
55 @cat ./tmp0 > site.exp
57 -e '1,/^## All variables above are.*##/ d' >> site.exp
61 -rootme=`pwd`; export rootme; \
62 srcdir=${srcdir} ; export srcdir ; \
63 EXPECT=${EXPECT} ; export EXPECT ; \
64 if [ -f $${rootme}/../../expect/expect ] ; then \
65 TCL_LIBRARY=$${srcdir}/../../tcl/library ; \
66 export TCL_LIBRARY ; fi ; \
67 $(RUNTEST) $(RUNTESTFLAGS)