From b0afb8fe0ff1d87165af9df61501197a06240dda Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Sun, 28 Dec 2025 12:13:40 +0100 Subject: Sync with Gnulib stable-202507 code (a8ac9f9ce5) --- gl/m4/strings_h.m4 | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'gl/m4/strings_h.m4') diff --git a/gl/m4/strings_h.m4 b/gl/m4/strings_h.m4 index aaafb559..18f30d4a 100644 --- a/gl/m4/strings_h.m4 +++ b/gl/m4/strings_h.m4 @@ -1,9 +1,10 @@ # strings_h.m4 -# serial 9 -dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc. +# serial 14 +dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. +dnl This file is offered as-is, without any warranty. # Configure a replacement for . @@ -28,7 +29,7 @@ AC_DEFUN_ONCE([gl_STRINGS_H], . */ #include #include - ]], [ffs strcasecmp strncasecmp]) + ]], [ffs strcasecmp strcasecmp_l strncasecmp strncasecmp_l]) ]) # gl_STRINGS_MODULE_INDICATOR([modulename]) @@ -49,6 +50,10 @@ AC_DEFUN([gl_STRINGS_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_STRINGS_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FFS]) + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRCASECMP]) + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRCASECMP_L]) + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNCASECMP]) + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNCASECMP_L]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_STRINGS_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_STRINGS_H_DEFAULTS]) @@ -59,5 +64,12 @@ AC_DEFUN([gl_STRINGS_H_DEFAULTS], dnl Assume proper GNU behavior unless another module says otherwise. HAVE_FFS=1; AC_SUBST([HAVE_FFS]) HAVE_STRCASECMP=1; AC_SUBST([HAVE_STRCASECMP]) + HAVE_STRCASECMP_L=1; AC_SUBST([HAVE_STRCASECMP_L]) + HAVE_STRNCASECMP=1; AC_SUBST([HAVE_STRNCASECMP]) + HAVE_STRNCASECMP_L=1; AC_SUBST([HAVE_STRNCASECMP_L]) HAVE_DECL_STRNCASECMP=1; AC_SUBST([HAVE_DECL_STRNCASECMP]) + REPLACE_STRCASECMP=0; AC_SUBST([REPLACE_STRCASECMP]) + REPLACE_STRCASECMP_L=0; AC_SUBST([REPLACE_STRCASECMP_L]) + REPLACE_STRNCASECMP=0; AC_SUBST([REPLACE_STRNCASECMP]) + REPLACE_STRNCASECMP_L=0; AC_SUBST([REPLACE_STRNCASECMP_L]) ]) -- cgit v1.2.3-74-g34f1