bug-autoconf
[Top][All Lists]
Advanced

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

[sr #110532] AC_CHECK_LIB no longer works with a C++ compiler


From: Vincent Lefèvre
Subject: [sr #110532] AC_CHECK_LIB no longer works with a C++ compiler
Date: Thu, 26 Aug 2021 20:34:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0

Follow-up Comment #2, sr #110532 (project autoconf):

MPFR is written in C, and it is generally compiled with a C compiler, so that
we expect the compiler to be given by $CC. This means that we need AC_LANG(C),
not AC_LANG(C++).

But we also allow C++ compilers (some compilers seem to support only C++, and
testing with a C++ compiler also allows us to detect some issues with the
header files). And since the compiler is given by $CC, g++ (for instance) is
used via CC=g++.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110532>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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