]> git.saurik.com Git - bison.git/blame - tests/atlocal.in
lalr1.cc: rename lex_symbol as api.token.constructor
[bison.git] / tests / atlocal.in
CommitLineData
e9690142 1# @configure_input@ -*- shell-script -*-
342b8b6e 2# Configurable variable values for Bison test suite.
3b2942e6 3
34136e65 4# Copyright (C) 2000-2012 Free Software Foundation, Inc.
3272a725
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'.
20CPPFLAGS="-I$abs_top_builddir/lib @CPPFLAGS@"
21
22## ------------------- ##
23## C/C++ Compilation. ##
24## ------------------- ##
25
74553c98 26: ${CC='@CC@'}
e85056ef
AD
27: ${CXX='@CXX@'}
28
29# Is the compiler GCC?
30GCC='@GCC@'
f377f69f 31
52cea04a
JD
32# Sometimes a test group needs to ignore gcc warnings, so it locally
33# sets CFLAGS to this.
321d3e35
AD
34 NO_WERROR_CFLAGS='@CFLAGS@ @WARN_CFLAGS@ @WARN_CFLAGS_TEST@'
35NO_WERROR_CXXFLAGS='@CXXFLAGS@ @WARN_CXXFLAGS@ @WARN_CXXFLAGS_TEST@'
642cb8f8 36
e85056ef
AD
37# But most of the time, we want -Werror.
38 CFLAGS="$NO_WERROR_CFLAGS @WERROR_CFLAGS@"
39CXXFLAGS="$NO_WERROR_CXXFLAGS @WERROR_CXXFLAGS@"
9d56d294 40
209ea708
PE
41# If 'exit 77'; skip all C++ tests; otherwise ':'.
42BISON_CXX_WORKS='@BISON_CXX_WORKS@'
43
e85056ef
AD
44# Handle --compile-c-with-cxx here, once CXX and CXXFLAGS are known.
45if "$at_arg_compile_c_with_cxx"; then
0e98a81e 46 CC_IS_CXX=1
e85056ef 47 CC=$CXX
e85056ef
AD
48 NO_WERROR_CFLAGS=$NO_WERROR_CXXFLAGS
49 CFLAGS=$CXXFLAGS
0e98a81e
AD
50else
51 CC_IS_CXX=0
e85056ef
AD
52fi
53
54
55## ------- ##
56## Other. ##
57## ------- ##
713535c2 58
8405b70c
PB
59# Empty if no javac was found
60CONF_JAVAC='@CONF_JAVAC@'
61
62# Empty if no Java VM was found
63CONF_JAVA='@CONF_JAVA@'
da730230 64
ccdc1577 65# We need egrep and perl.
74553c98 66: ${EGREP='@EGREP@'}
ccdc1577 67: ${PERL='@PERL@'}
39ac1214
AD
68
69# Use simple quotes (lib/quote.c).
70LC_CTYPE=C
71export LC_CTYPE
ac3f2e33 72
ff020c30
AD
73# Are special link options needed?
74LDFLAGS='@LDFLAGS@'
75
76# Are special libraries needed?
77LIBS="$abs_top_builddir/lib/libbison.a @LIBS@ @INTLLIBS@"
78
79# Empty if no xsltproc was found
80: ${XSLTPROC='@XSLTPROC@'}
81
ac3f2e33
AD
82
83# Handle --compile-c-with-cxx here, once CXX and CXXFLAGS are known.
84if "$at_arg_compile_c_with_cxx"; then
85 CC=$CXX
86 CFLAGS=$CXXFLAGS
87fi