diff options
Diffstat (limited to 'gl/m4/gnulib-common.m4')
| -rw-r--r-- | gl/m4/gnulib-common.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gl/m4/gnulib-common.m4 b/gl/m4/gnulib-common.m4 index 9cc519e7..4c7ac30d 100644 --- a/gl/m4/gnulib-common.m4 +++ b/gl/m4/gnulib-common.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # gnulib-common.m4 serial 18 | 1 | # gnulib-common.m4 serial 20 |
| 2 | dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007-2010 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, |
| @@ -35,6 +35,12 @@ AC_DEFUN([gl_COMMON_BODY], [ | |||
| 35 | is a misnomer outside of parameter lists. */ | 35 | is a misnomer outside of parameter lists. */ |
| 36 | #define _UNUSED_PARAMETER_ _GL_UNUSED | 36 | #define _UNUSED_PARAMETER_ _GL_UNUSED |
| 37 | ]) | 37 | ]) |
| 38 | dnl Preparation for running test programs: | ||
| 39 | dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not | ||
| 40 | dnl to /dev/tty, so they can be redirected to log files. Such diagnostics | ||
| 41 | dnl arise e.g., in the macros gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N. | ||
| 42 | LIBC_FATAL_STDERR_=1 | ||
| 43 | export LIBC_FATAL_STDERR_ | ||
| 38 | ]) | 44 | ]) |
| 39 | 45 | ||
| 40 | # gl_MODULE_INDICATOR_CONDITION | 46 | # gl_MODULE_INDICATOR_CONDITION |
| @@ -132,6 +138,7 @@ m4_ifdef([AC_PROG_MKDIR_P], [ | |||
| 132 | # so that mixed use of GNU C and GNU C++ and mixed use of Sun C and Sun C++ | 138 | # so that mixed use of GNU C and GNU C++ and mixed use of Sun C and Sun C++ |
| 133 | # works. | 139 | # works. |
| 134 | # This definition can be removed once autoconf >= 2.62 can be assumed. | 140 | # This definition can be removed once autoconf >= 2.62 can be assumed. |
| 141 | m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.62]),[-1],[ | ||
| 135 | AC_DEFUN([AC_C_RESTRICT], | 142 | AC_DEFUN([AC_C_RESTRICT], |
| 136 | [AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict], | 143 | [AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict], |
| 137 | [ac_cv_c_restrict=no | 144 | [ac_cv_c_restrict=no |
| @@ -169,6 +176,7 @@ AC_DEFUN([AC_C_RESTRICT], | |||
| 169 | *) AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;; | 176 | *) AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;; |
| 170 | esac | 177 | esac |
| 171 | ]) | 178 | ]) |
| 179 | ]) | ||
| 172 | 180 | ||
| 173 | # gl_BIGENDIAN | 181 | # gl_BIGENDIAN |
| 174 | # is like AC_C_BIGENDIAN, except that it can be AC_REQUIREd. | 182 | # is like AC_C_BIGENDIAN, except that it can be AC_REQUIREd. |
