autoconf
[Top][All Lists]
Advanced

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

Re: How can we run all tests using C++ specified compiler?


From: Bob Friesenhahn
Subject: Re: How can we run all tests using C++ specified compiler?
Date: Sun, 5 Aug 2018 08:06:15 -0500 (CDT)
User-agent: Alpine 2.20 (GSO 67 2015-01-07)

On Sat, 4 Aug 2018, Jeffrey Walton wrote:

Our configure.ac has AC_PROG_CXX after the various init's, and lacks
AC_PROG_CC. We don't do anything with the C compiler because we are a
C++ library.

How do we tell Autoconf to use the specified C++ compiler for all tests?

This might not work properly since Autoconf produces C code for many of its standard tests and the C code might not compile/link cleanly with a C++ compiler. While C++ encompasses C, it is also stricter than ANSI C.

You would need to define CC to be the C++ compiler and hope for the best.

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



reply via email to

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