diff options
Diffstat (limited to 'gl/m4/xstrndup.m4')
0 files changed, 0 insertions, 0 deletions
diff --git a/gl/m4/strndup.m4 b/gl/m4/strndup.m4 index f7934ef..4fa7d5a 100644 --- a/gl/m4/strndup.m4 +++ b/gl/m4/strndup.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # strndup.m4 serial 14 | 1 | # strndup.m4 serial 16 |
2 | dnl Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2003, 2005-2009 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -16,10 +16,10 @@ AC_DEFUN([gl_FUNC_STRNDUP], | |||
16 | fi | 16 | fi |
17 | 17 | ||
18 | # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'. | 18 | # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'. |
19 | AC_CACHE_CHECK([for working strndup], gl_cv_func_strndup, | 19 | AC_CACHE_CHECK([for working strndup], [gl_cv_func_strndup], |
20 | [AC_RUN_IFELSE([ | 20 | [AC_RUN_IFELSE([ |
21 | AC_LANG_PROGRAM([#include <string.h> | 21 | AC_LANG_PROGRAM([[#include <string.h> |
22 | #include <stdlib.h>], [[ | 22 | #include <stdlib.h>]], [[ |
23 | #ifndef HAVE_DECL_STRNDUP | 23 | #ifndef HAVE_DECL_STRNDUP |
24 | extern char *strndup (const char *, size_t); | 24 | extern char *strndup (const char *, size_t); |
25 | #endif | 25 | #endif |
@@ -40,7 +40,7 @@ AC_DEFUN([gl_FUNC_STRNDUP], | |||
40 | [gl_cv_func_strndup=yes])], | 40 | [gl_cv_func_strndup=yes])], |
41 | [gl_cv_func_strndup=no])])]) | 41 | [gl_cv_func_strndup=no])])]) |
42 | if test $gl_cv_func_strndup = yes; then | 42 | if test $gl_cv_func_strndup = yes; then |
43 | AC_DEFINE([HAVE_STRNDUP], 1, | 43 | AC_DEFINE([HAVE_STRNDUP], [1], |
44 | [Define if you have the strndup() function and it works.]) | 44 | [Define if you have the strndup() function and it works.]) |
45 | else | 45 | else |
46 | HAVE_STRNDUP=0 | 46 | HAVE_STRNDUP=0 |