]> git.saurik.com Git - bison.git/blob - tests/atconfig.in
Update.
[bison.git] / tests / atconfig.in
1 # @configure_input@ -*- shell-script -*-
2 # Configurable variable values for building test suites.
3 # Copyright (C) 2000, 2001 Free Software Foundation, Inc.
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 # 02111-1307, USA.
19
20 # This script is part of Autotest. Unlimited permission to copy,
21 # distribute and modify the testing scripts that are the output of
22 # that Autotest script is given. You need not follow the terms of the
23 # GNU General Public License when using or distributing such scripts,
24 # even though portions of the text of Autotest appear in them. The
25 # GNU General Public License (GPL) does govern all other use of the
26 # material that constitutes the Autotest.
27 #
28 # Certain portions of the Autotest source text are designed to be
29 # copied (in certain cases, depending on the input) into the output of
30 # Autotest. We call these the "data" portions. The rest of the
31 # Autotest source text consists of comments plus executable code that
32 # decides which of the data portions to output in any given case. We
33 # call these comments and executable code the "non-data" portions.
34 # Autotest never copies any of the non-data portions into its output.
35 #
36 # This special exception to the GPL applies to versions of Autotest
37 # released by the Free Software Foundation. When you make and
38 # distribute a modified version of Autotest, you may extend this
39 # special exception to the GPL to apply to your modified version as
40 # well, *unless* your modified version has the potential to copy into
41 # its output some of the text that was the non-data portion of the
42 # version that you started with. (In other words, unless your change
43 # moves or copies text from the non-data portions to the data
44 # portions.) If your modification has such potential, you must delete
45 # any notice of this special exception to the GPL from your modified
46 # version.
47
48 # Snippet (1
49 # This debugging script has been automatically generated from `make check'.
50 # Call it with `--help' to get a quick usage summary.
51
52 at_package='@PACKAGE@'
53 at_version='@VERSION@'
54 # Snippet )1
55 # Snippet (2
56 at_n='@ECHO_N@'
57 at_c='@ECHO_C@'
58 test -f atlocal && . ./atlocal
59
60 # LC_MESSAGES is always shadowed by LC_ALL. Here are the only cases:
61 # - GNU: LANGUAGE -> LC_ALL -> LC_MESSAGES -> LANG
62 # - POSIX: LC_ALL -> LC_MESSAGES -> LANG
63 # - XPG4: LC_ALL -> LANG
64 # - SysV/XPG2: LANG
65 export LANGUAGE; LANGUAGE=C
66 export LANG; LANG=C
67 export LC_ALL; LC_ALL=C
68
69 srcdir=@srcdir@
70 top_srcdir=@top_srcdir@
71 # Use absolute file notations, as the test might change directories.
72 at_srcdir=`cd @srcdir@ && pwd`
73 at_top_srcdir=`cd @top_srcdir@ && pwd`
74 at_builddir=`pwd`
75 at_top_builddir=`cd .. && pwd`
76 if test -n "@AT_TESTPATH@"; then
77 export PATH; PATH=`pwd`:`cd @AT_TESTPATH@ && pwd`:$PATH
78 else
79 export PATH; PATH=`pwd`:$PATH
80 fi
81
82 # We need GNU M4.
83 M4='@M4@'
84
85 # We need a C compiler.
86 CC='@CC@'
87 CFLAGS='@CFLAGS@'
88
89 # We need `config.h'.
90 CPPFLAGS="-I$at_top_builddir @CPPFLAGS@"
91
92 # We want to use the files shipped with Bison.
93 BISON_SIMPLE=$at_top_srcdir/src/bison.simple
94 export BISON_SIMPLE
95 BISON_HAIRY=$at_top_srcdir/src/bison.hairy
96 export BISON_HAIRY
97 # Snippet )2