bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libtool 2.1b] testsuite: 16 54 55 56 failed


From: Ralf Wildenhues
Subject: Re: [libtool 2.1b] testsuite: 16 54 55 56 failed
Date: Fri, 1 Feb 2008 20:06:17 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hello Andreas,

* Andreas Schwab wrote on Fri, Feb 01, 2008 at 03:43:25PM CET:
> 16. convenience.at:69: testing ...
> ./convenience.at:70: { test -n "$CXX" && test "X$CXX" != Xno; } || (exit 77)
> libtool: compile:  g++ -c main1.cpp  -o .libs/main1.o
> /usr/src/packages/BUILD/libtool-2.1b/libtool: line 821: g++: command not found
> libtool: compile:  g++ -c a1.cpp  -o .libs/a1.o

Thanks for the bug report.  Fixed as follows.

The fact that AC_PROG_CXX sets CXX to g++ as a default seems to me like
a bug in Autoconf.  The code used gcc as a default up to commit
  d9409a1c3c06a015a0fc829989cb1a93c1599cd7
which it had ever since AC_PROG_CXX was added 1994 in commit
  8202df5faf642cde4e5b1fa02cd9cc4411a7a477

I'll propose to remove that in Autoconf.

Cheers,
Ralf

2008-02-01  Ralf Wildenhues  <address@hidden>

        * 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.

Index: tests/testsuite.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/testsuite.at,v
retrieving revision 1.50
diff -u -r1.50 testsuite.at
--- tests/testsuite.at  25 Mar 2007 12:12:43 -0000      1.50
+++ tests/testsuite.at  1 Feb 2008 19:05:24 -0000
@@ -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_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)])])
 ])
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]