unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: configure on master checks for C++ compiler
Date: Thu, 10 Aug 2023 20:19:59 +0800	[thread overview]
Message-ID: <87h6p7rswg.fsf@yahoo.com> (raw)
In-Reply-To: <83pm3vi1wb.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Aug 2023 14:15:48 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

> I've noticed that the configure script now checks for a C++ compiler:
>
>   checking for g++... g++
>   checking whether we are using the GNU C++ compiler... yes
>   checking whether g++ accepts -g... yes
>   checking for g++ option to enable C++11 features... none needed
>   checking how to run the C++ preprocessor... g++ -E
>
> However, AFAIU the C++ compiler is really needed only for two builds:
> Android and Haiku.  If that is correct, could we please limit these
> tests only to those two builds, so that people who build for other
> configurations won't need to have a C++ compiler installed?
>
> Thanks.

A C++ compiler isn't required unless you are actually building for
Haiku, or Android with C++ dependencies (such as icu4c, a prerequisite
of libxml2.)

And unfortunately this is because of a well-known limitation in
Autoconf: the two distinct checks for C++ compilers both AC_REQUIRE a
C++ compiler, leading M4 to place the check at the top of the macro
expansion stack.  The result of the check remains unused unless one of
the two conditions above are satisfied.



  parent reply	other threads:[~2023-08-10 12:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-10 11:15 configure on master checks for C++ compiler Eli Zaretskii
2023-08-10 11:38 ` Andreas Schwab
2023-08-10 12:19 ` Po Lu [this message]
2023-08-12  2:46   ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h6p7rswg.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).