[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: uchar C++ tests: Fix build error on FreeBSD 12
From: |
Bruno Haible |
Subject: |
Re: uchar C++ tests: Fix build error on FreeBSD 12 |
Date: |
Thu, 20 Aug 2020 00:42:40 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; ) |
> I've reported it as an autoconf bug
> <https://savannah.gnu.org/support/?110294>.
> Here is the workaround.
This is not the only hassle I'm seeing. In a testdir produced with
./gnulib-tool --create-testdir --dir=../testdir --single-configure
--with-c++-tests uchar
the gl_ANSI_CXX macro is expanded too late.
I don't know which code I cannot trust: the gl_ANSI_CXX macro, the Autoconf
AC_REQUIRE mechanism, or the Autoconf AC_LANG_PUSH/AC_LANG_POP macros.
Anyway, this workaround seems to help:
2020-08-19 Bruno Haible <bruno@clisp.org>
ansi-c++-opt: Work around an autoconf macro reordering problem.
* modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
section.
diff --git a/modules/ansi-c++-opt b/modules/ansi-c++-opt
index 176f174..ebf3c46 100644
--- a/modules/ansi-c++-opt
+++ b/modules/ansi-c++-opt
@@ -6,9 +6,11 @@ m4/ansi-c++.m4
Depends-on:
-configure.ac:
+configure.ac-early:
AC_REQUIRE([gl_ANSI_CXX])
+configure.ac:
+
Makefile.am:
Include: