]>
Commit | Line | Data |
---|---|---|
342b8b6e AD |
1 | # @configure_input@ -*- shell-script -*- |
2 | # Configurable variable values for Bison test suite. | |
3b2942e6 | 3 | |
c932d613 | 4 | # Copyright (C) 2000-2012 Free Software Foundation, Inc. |
a34e8b24 AD |
5 | # |
6 | # This program is free software: you can redistribute it and/or modify | |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation, either version 3 of the License, or | |
9 | # (at your option) any later version. | |
10 | # | |
11 | # This program is distributed in the hope that it will be useful, | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | # GNU General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
342b8b6e | 18 | |
e85056ef AD |
19 | # We need `config.h'. |
20 | CPPFLAGS="-I$abs_top_builddir/lib @CPPFLAGS@" | |
21 | ||
22 | ## ------------------- ## | |
23 | ## C/C++ Compilation. ## | |
24 | ## ------------------- ## | |
25 | ||
8defe11b | 26 | : ${CC='@CC@'} |
e85056ef AD |
27 | : ${CXX='@CXX@'} |
28 | ||
29 | # Is the compiler GCC? | |
30 | GCC='@GCC@' | |
f377f69f AD |
31 | |
32 | # We want no optimization. | |
e85056ef AD |
33 | O0CFLAGS=`echo '@CFLAGS@' | sed 's/-O[0-9] *//'` |
34 | O0CXXFLAGS=`echo '@CXXFLAGS@' | sed 's/-O[0-9] *//'` | |
342b8b6e | 35 | |
d88cf117 JD |
36 | # Sometimes a test group needs to ignore gcc warnings, so it locally |
37 | # sets CFLAGS to this. | |
e85056ef AD |
38 | NO_WERROR_CFLAGS="$O0CFLAGS @WARN_CFLAGS@ @WARN_CFLAGS_TEST@" |
39 | NO_WERROR_CXXFLAGS="$O0CXXFLAGS @WARN_CXXFLAGS@ @WARN_CXXFLAGS_TEST@" | |
d88cf117 | 40 | |
e85056ef AD |
41 | # But most of the time, we want -Werror. |
42 | CFLAGS="$NO_WERROR_CFLAGS @WERROR_CFLAGS@" | |
43 | CXXFLAGS="$NO_WERROR_CXXFLAGS @WERROR_CXXFLAGS@" | |
9d56d294 | 44 | |
209ea708 PE |
45 | # If 'exit 77'; skip all C++ tests; otherwise ':'. |
46 | BISON_CXX_WORKS='@BISON_CXX_WORKS@' | |
47 | ||
e85056ef AD |
48 | # Handle --compile-c-with-cxx here, once CXX and CXXFLAGS are known. |
49 | if "$at_arg_compile_c_with_cxx"; then | |
50 | CC=$CXX | |
51 | O0CFLAGS=$O0CXXFLAGS | |
52 | NO_WERROR_CFLAGS=$NO_WERROR_CXXFLAGS | |
53 | CFLAGS=$CXXFLAGS | |
54 | fi | |
55 | ||
56 | ||
57 | ## ------- ## | |
58 | ## Other. ## | |
59 | ## ------- ## | |
713535c2 | 60 | |
9d56d294 PE |
61 | # Are special link options needed? |
62 | LDFLAGS='@LDFLAGS@' | |
63 | ||
64 | # Are special libraries needed? | |
fb9a3976 | 65 | LIBS="$abs_top_builddir/lib/libbison.a @LIBS@ @INTLLIBS@" |
8405b70c PB |
66 | |
67 | # Empty if no javac was found | |
68 | CONF_JAVAC='@CONF_JAVAC@' | |
69 | ||
70 | # Empty if no Java VM was found | |
71 | CONF_JAVA='@CONF_JAVA@' | |
da730230 JD |
72 | |
73 | # Empty if no xsltproc was found | |
8defe11b AD |
74 | : ${XSLTPROC='@XSLTPROC@'} |
75 | ||
76 | # We need egrep. | |
77 | : ${EGREP='@EGREP@'} | |
06e0e52c AD |
78 | |
79 | # Use simple quotes (lib/quote.c). | |
80 | LC_CTYPE=C | |
81 | export LC_CTYPE |