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, 675 Mass Ave, Cambridge, MA 02139, USA.
18 srcdir = libstdc
++.tests
20 EXPECT
= `if [ -f $${rootme}/../../expect/expect ] ; then \
21 echo $${rootme}/../../expect/expect ; \
22 else echo expect ; fi`
24 RUNTEST
= `if [ -f $${srcdir}/../../dejagnu/runtest ] ; then \
25 echo $${srcdir}/../../dejagnu/runtest ; \
26 else echo runtest; fi`
29 #### package, host, target, and site dependent Makefile fragments come in here.
38 site.exp
: .
/config.status Makefile
39 @echo
"Making a new config file..."
42 -@mv site.exp site.bak
43 @echo
"## these variables are automatically generated by make ##" > .
/tmp0
44 @echo
"# Do not edit here. If you wish to override these values" >> .
/tmp0
45 @echo
"# add them to the last section" >> .
/tmp0
46 @echo
"set host_alias $(host_alias)" >> .
/tmp0
47 @echo
"set host_triplet ${host_canonical}" >> .
/tmp0
48 @echo
"set target_alias $(target_alias)" >> .
/tmp0
49 @echo
"set target_triplet ${target_canonical}" >> .
/tmp0
50 @echo
"set build_triplet ${build_canonical}" >> .
/tmp0
51 @echo
"set srcdir ${srcdir}" >> .
/tmp0
52 @echo
"set tool libstdc++" >> .
/tmp0
53 @echo
"## All variables above are generated by configure. Do Not Edit ##" >> .
/tmp0
54 @cat .
/tmp0
> site.exp
56 -e
'1,/^## All variables above are.*##/ d' >> site.exp
60 rootme
=`pwd`; export rootme
; \
61 srcdir=${srcdir} ; export srcdir ; \
62 EXPECT
=${EXPECT} ; export EXPECT
; \
63 if
[ -f
$${rootme}/..
/..
/expect
/expect
] ; then \
64 TCL_LIBRARY
=$${srcdir}/..
/..
/tcl
/library
; \
65 export TCL_LIBRARY
; fi
; \
66 $(RUNTEST
) $(RUNTESTFLAGS
)