diff options
Diffstat (limited to 'gl/m4/strcasestr.m4')
| -rw-r--r-- | gl/m4/strcasestr.m4 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gl/m4/strcasestr.m4 b/gl/m4/strcasestr.m4 index d2548716..f56eed58 100644 --- a/gl/m4/strcasestr.m4 +++ b/gl/m4/strcasestr.m4 | |||
| @@ -1,9 +1,10 @@ | |||
| 1 | # strcasestr.m4 | 1 | # strcasestr.m4 |
| 2 | # serial 28 | 2 | # serial 29 |
| 3 | dnl Copyright (C) 2005, 2007-2024 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2005, 2007-2026 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 7 | 8 | ||
| 8 | dnl Check that strcasestr is present and works. | 9 | dnl Check that strcasestr is present and works. |
| 9 | AC_DEFUN([gl_FUNC_STRCASESTR_SIMPLE], | 10 | AC_DEFUN([gl_FUNC_STRCASESTR_SIMPLE], |
| @@ -21,8 +22,8 @@ AC_DEFUN([gl_FUNC_STRCASESTR_SIMPLE], | |||
| 21 | if test $REPLACE_MEMCHR = 1; then | 22 | if test $REPLACE_MEMCHR = 1; then |
| 22 | REPLACE_STRCASESTR=1 | 23 | REPLACE_STRCASESTR=1 |
| 23 | else | 24 | else |
| 24 | dnl Detect https://sourceware.org/bugzilla/show_bug.cgi?id=12092 | 25 | dnl Detect https://sourceware.org/PR12092 |
| 25 | dnl and https://sourceware.org/bugzilla/show_bug.cgi?id=23637. | 26 | dnl and https://sourceware.org/PR23637. |
| 26 | AC_CACHE_CHECK([whether strcasestr works], | 27 | AC_CACHE_CHECK([whether strcasestr works], |
| 27 | [gl_cv_func_strcasestr_works_always], | 28 | [gl_cv_func_strcasestr_works_always], |
| 28 | [AC_RUN_IFELSE( | 29 | [AC_RUN_IFELSE( |
| @@ -98,7 +99,7 @@ static void quit (int sig) { _exit (sig + 128); } | |||
| 98 | char *haystack = (char *) malloc (2 * m + 2); | 99 | char *haystack = (char *) malloc (2 * m + 2); |
| 99 | char *needle = (char *) malloc (m + 2); | 100 | char *needle = (char *) malloc (m + 2); |
| 100 | /* Failure to compile this test due to missing alarm is okay, | 101 | /* Failure to compile this test due to missing alarm is okay, |
| 101 | since all such platforms (mingw) also lack strcasestr. */ | 102 | since all such platforms (mingw, MSVC) also lack strcasestr. */ |
| 102 | signal (SIGALRM, quit); | 103 | signal (SIGALRM, quit); |
| 103 | alarm (5); | 104 | alarm (5); |
| 104 | /* Check for quadratic performance. */ | 105 | /* Check for quadratic performance. */ |
