]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/testsuite.at (LT_AT_TAG): For the CXX tag, if $CXX is
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 1 Feb 2008 19:06:42 +0000 (19:06 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 1 Feb 2008 19:06:42 +0000 (19:06 +0000)
g++, check that `g++ -v' works; AC_PROG_CXX may have set that
as default value even if it found no C++ compiler.
Report by Andreas Schwab.

ChangeLog
tests/testsuite.at

index f068cf4162be2293f778de010e718655fcc980dc..d1e76ee2f193dd043deadeaea83e18c39314d4c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * tests/testsuite.at (LT_AT_TAG): For the CXX tag, if $CXX is
+       g++, check that `g++ -v' works; AC_PROG_CXX may have set that
+       as default value even if it found no C++ compiler.
+       Report by Andreas Schwab.
+
 2008-02-02  Gary V. Vaughan  <gary@gnu.org>
 
        * libltdl/Makefile.inc (EXTRA_DIST): Now that we're not using
index 756ea2d211c524e28f72e44c502a3d91275159d8..52ef6dd530ae004c88680c60b0fb32566637e6a6 100644 (file)
@@ -1,6 +1,7 @@
 # Process with autom4te to create an -*- Autotest -*- test suite.
 #
-#   Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+#   Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software
+#   Foundation, Inc.
 #   Written by Gary V. Vaughan, 2004
 #
 #   This file is part of GNU Libtool.
@@ -187,6 +188,8 @@ m4_define([LT_AT_NOINST_EXEC_CHECK],
 m4_define([LT_AT_TAG],
 [AT_KEYWORDS([$1])
 AT_CHECK([{ test -n "[$]$1" && test "X[$]$1" != Xno; } || (exit 77)])
+m4_if([$1], [CXX],
+  [AT_CHECK([test "X$CXX" != Xg++ || (g++ -v >/dev/null 2>&1) || (exit 77)])])
 ])