+2020-08-18 Bruno Haible <bruno@clisp.org>
+
+ uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
+ * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
+ AC_LANG_POP.
+
2020-08-17 Paul Eggert <eggert@cs.ucla.edu>
verify: avoid __built_assume on Clang
dnl have the <cuchar> header file from C++11.
AC_CACHE_CHECK([whether the C++ compiler has <cuchar>],
[gl_cv_cxxheader_cuchar],
- [AC_LANG_PUSH([C++])
- AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
- [[#include <cuchar>]],
- [[]])
- ],
- [gl_cv_cxxheader_cuchar=yes],
- [gl_cv_cxxheader_cuchar=no])
- AC_LANG_POP([C++])
+ [dnl We can't use AC_LANG_PUSH([C++]) and AC_LANG_POP([C++]) here, due to
+ dnl an autoconf bug <https://savannah.gnu.org/support/?110294>.
+ echo '#include <cuchar>' > conftest.cpp
+ gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp"
+ if AC_TRY_EVAL([gl_command]); then
+ gl_cv_cxxheader_cuchar=yes
+ else
+ gl_cv_cxxheader_cuchar=no
+ fi
+ rm -fr conftest*
])
else
gl_cv_cxxheader_cuchar=no