Building a testdir with MSVC 14, I see this output from the configure run: checking whether the C++ compiler has <uchar.h>... conftest.cpp yes
and checking whether the C++ compiler has <stdcountof.h>... conftest.cpp conftest.cpp(1): fatal error C1083: Cannot open include file: 'stdcountof.h': No such file or directory no This patch eliminates the extra output. 2026-09-16 Bruno Haible <[email protected]> Avoid spurious 'configure' output with MSVC. * m4/stdckdint_h.m4 (gl_STDCKDINT_H): Send the C++ compiler's standard output to /dev/null. * m4/stdcountof_h.m4 (gl_STDCOUNTOF_H): Likewise. * m4/uchar_h.m4 (gl_UCHAR_H): Likewise. diff --git a/m4/stdckdint_h.m4 b/m4/stdckdint_h.m4 index 0abeb982b4..3e94597a33 100644 --- a/m4/stdckdint_h.m4 +++ b/m4/stdckdint_h.m4 @@ -1,5 +1,5 @@ # stdckdint_h.m4 -# serial 2 +# serial 3 dnl Copyright 2025-2026 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -60,7 +60,7 @@ AC_DEFUN_ONCE([gl_STDCKDINT_H] cat > conftest.cpp <<\EOF #include <stdckdint.h> EOF - gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp" + gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp > /dev/null" if AC_TRY_EVAL([gl_command]); then gl_cv_header_cxx_stdckdint_h=yes else @@ -85,7 +85,7 @@ AC_DEFUN_ONCE([gl_STDCKDINT_H] return !!(ckd_add (&r, a, b) || ckd_sub (&r, a, b) || ckd_mul (&r, a, b)); } EOF - gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp" + gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp > /dev/null" if AC_TRY_EVAL([gl_command]); then gl_cv_header_cxx_stdckdint_h_works=yes else diff --git a/m4/stdcountof_h.m4 b/m4/stdcountof_h.m4 index 6a888e2d97..d840bd7b8f 100644 --- a/m4/stdcountof_h.m4 +++ b/m4/stdcountof_h.m4 @@ -1,5 +1,5 @@ # stdcountof_h.m4 -# serial 3 +# serial 4 dnl Copyright 2025-2026 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -31,7 +31,7 @@ AC_DEFUN_ONCE([gl_STDCOUNTOF_H] int a[] = { 86, 47 }; unsigned int a_n = countof (a); EOF - gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp" + gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp > /dev/null" if AC_TRY_EVAL([gl_command]); then gl_cv_cxx_have_stdcountof_h=yes else diff --git a/m4/uchar_h.m4 b/m4/uchar_h.m4 index 508f544c3d..2dc8d1b807 100644 --- a/m4/uchar_h.m4 +++ b/m4/uchar_h.m4 @@ -1,5 +1,5 @@ # uchar_h.m4 -# serial 33 +# serial 34 dnl Copyright (C) 2019-2026 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -35,7 +35,7 @@ AC_DEFUN_ONCE([gl_UCHAR_H] cat > conftest.cpp <<\EOF #include <uchar.h> EOF - gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp" + gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp > /dev/null" if AC_TRY_EVAL([gl_command]); then gl_cv_cxx_have_uchar_h=yes else @@ -71,7 +71,7 @@ AC_DEFUN_ONCE([gl_UCHAR_H] char16_t a; char32_t b; EOF - gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp" + gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp > /dev/null" if AC_TRY_EVAL([gl_command]); then gl_cv_cxx_has_uchar_types=yes else
