https://gcc.gnu.org/g:184e07c769fb93ede5aa6fdfcda80dc99051cca0

commit r14-11457-g184e07c769fb93ede5aa6fdfcda80dc99051cca0
Author: Roland McGrath <mcgra...@google.com>
Date:   Thu Mar 27 22:19:03 2025 +0000

    libcpp: Add missing configure check for setlocale.
    
    libcpp/
            * configure.ac: Check for setlocale.
            * configure, config.in: Regenerated.

Diff:
---
 libcpp/config.in    | 3 +++
 libcpp/configure    | 2 +-
 libcpp/configure.ac | 4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/libcpp/config.in b/libcpp/config.in
index 253ef03a3dea..8919fbe6544c 100644
--- a/libcpp/config.in
+++ b/libcpp/config.in
@@ -210,6 +210,9 @@
 /* Define to 1 if you have the `putc_unlocked' function. */
 #undef HAVE_PUTC_UNLOCKED
 
+/* Define to 1 if you have the `setlocale' function. */
+#undef HAVE_SETLOCALE
+
 /* Define to 1 if you can assemble SSE4 insns. */
 #undef HAVE_SSE4
 
diff --git a/libcpp/configure b/libcpp/configure
index 32d6aaa30699..74b6e941f71e 100755
--- a/libcpp/configure
+++ b/libcpp/configure
@@ -6034,7 +6034,7 @@ _ACEOF
 
 
 
-for ac_func in clearerr_unlocked feof_unlocked   ferror_unlocked 
fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked 
fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked 
getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
+for ac_func in clearerr_unlocked feof_unlocked   ferror_unlocked 
fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked 
fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked 
getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked setlocale
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
diff --git a/libcpp/configure.ac b/libcpp/configure.ac
index b883fec776fe..9a653296ea74 100644
--- a/libcpp/configure.ac
+++ b/libcpp/configure.ac
@@ -81,7 +81,7 @@ define(libcpp_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked 
dnl
   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked dnl
   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl
   putchar_unlocked putc_unlocked)
-AC_CHECK_FUNCS(libcpp_UNLOCKED_FUNCS)
+AC_CHECK_FUNCS(libcpp_UNLOCKED_FUNCS setlocale)
 AC_CHECK_DECLS([abort, asprintf, basename(char *), errno, getopt, vasprintf])
 AC_CHECK_DECLS(m4_split(m4_normalize(libcpp_UNLOCKED_FUNCS)))
 
@@ -172,7 +172,7 @@ do
        esac
 done
 IFS="$ac_save_IFS"
-                
+
 if test x$ac_checking != x ; then
   AC_DEFINE(CHECKING_P, 1,
 [Define to 1 if you want more run-time sanity checks.])

Reply via email to