Ensure that the C++ compiler used for testing actually works on a

simple test program; if not, skip the C++-related tests.
This commit is contained in:
Paul Eggert
2004-05-24 06:58:02 +00:00
parent 383e69dc79
commit 209ea708c4
5 changed files with 67 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
# @configure_input@ -*- shell-script -*-
# Configurable variable values for Bison test suite.
# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
# We need a C compiler.
CC='@CC@'
@@ -14,9 +14,12 @@ CPPFLAGS="-DHAVE_CONFIG_H=1 -I$abs_top_builddir @CPPFLAGS@"
# Is the compiler GCC?
GCC='@GCC@'
# The GCC C++ compiler.
# The C++ compiler.
CXX='@CXX@'
# If 'exit 77'; skip all C++ tests; otherwise ':'.
BISON_CXX_WORKS='@BISON_CXX_WORKS@'
# We want no optimization with C++, too.
CXXFLAGS='@O0CFLAGS@ @WARNING_CXXFLAGS@ @WERROR_CFLAGS@'