diff options
Diffstat (limited to 'gl/m4/stdlib_h.m4')
| -rw-r--r-- | gl/m4/stdlib_h.m4 | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/gl/m4/stdlib_h.m4 b/gl/m4/stdlib_h.m4 index fc150197..2027ab3c 100644 --- a/gl/m4/stdlib_h.m4 +++ b/gl/m4/stdlib_h.m4 | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # stdlib_h.m4 serial 30 | 1 | # stdlib_h.m4 serial 42 |
| 2 | dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007-2013 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. |
| @@ -7,21 +7,7 @@ dnl with or without modifications, as long as this notice is preserved. | |||
| 7 | AC_DEFUN([gl_STDLIB_H], | 7 | AC_DEFUN([gl_STDLIB_H], |
| 8 | [ | 8 | [ |
| 9 | AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) | 9 | AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) |
| 10 | gl_CHECK_NEXT_HEADERS([stdlib.h]) | 10 | gl_NEXT_HEADERS([stdlib.h]) |
| 11 | AC_CHECK_HEADERS([random.h], [], [], [AC_INCLUDES_DEFAULT]) | ||
| 12 | if test $ac_cv_header_random_h = yes; then | ||
| 13 | HAVE_RANDOM_H=1 | ||
| 14 | else | ||
| 15 | HAVE_RANDOM_H=0 | ||
| 16 | fi | ||
| 17 | AC_SUBST([HAVE_RANDOM_H]) | ||
| 18 | AC_CHECK_TYPES([struct random_data], | ||
| 19 | [], [HAVE_STRUCT_RANDOM_DATA=0], | ||
| 20 | [[#include <stdlib.h> | ||
| 21 | #if HAVE_RANDOM_H | ||
| 22 | # include <random.h> | ||
| 23 | #endif | ||
| 24 | ]]) | ||
| 25 | 11 | ||
| 26 | dnl Check for declarations of anything we want to poison if the | 12 | dnl Check for declarations of anything we want to poison if the |
| 27 | dnl corresponding gnulib module is not in use, and which is not | 13 | dnl corresponding gnulib module is not in use, and which is not |
| @@ -33,10 +19,11 @@ AC_DEFUN([gl_STDLIB_H], | |||
| 33 | #if HAVE_RANDOM_H | 19 | #if HAVE_RANDOM_H |
| 34 | # include <random.h> | 20 | # include <random.h> |
| 35 | #endif | 21 | #endif |
| 36 | ]], [_Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp | 22 | ]], [_Exit atoll canonicalize_file_name getloadavg getsubopt grantpt |
| 37 | mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r | 23 | initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps |
| 38 | setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt | 24 | posix_openpt ptsname ptsname_r random random_r realpath rpmatch |
| 39 | unsetenv]) | 25 | secure_getenv setenv setstate setstate_r srandom srandom_r |
| 26 | strtod strtoll strtoull unlockpt unsetenv]) | ||
| 40 | ]) | 27 | ]) |
| 41 | 28 | ||
| 42 | AC_DEFUN([gl_STDLIB_MODULE_INDICATOR], | 29 | AC_DEFUN([gl_STDLIB_MODULE_INDICATOR], |
| @@ -58,23 +45,30 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS], | |||
| 58 | GNULIB_GETSUBOPT=0; AC_SUBST([GNULIB_GETSUBOPT]) | 45 | GNULIB_GETSUBOPT=0; AC_SUBST([GNULIB_GETSUBOPT]) |
| 59 | GNULIB_GRANTPT=0; AC_SUBST([GNULIB_GRANTPT]) | 46 | GNULIB_GRANTPT=0; AC_SUBST([GNULIB_GRANTPT]) |
| 60 | GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX]) | 47 | GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX]) |
| 48 | GNULIB_MBTOWC=0; AC_SUBST([GNULIB_MBTOWC]) | ||
| 61 | GNULIB_MKDTEMP=0; AC_SUBST([GNULIB_MKDTEMP]) | 49 | GNULIB_MKDTEMP=0; AC_SUBST([GNULIB_MKDTEMP]) |
| 62 | GNULIB_MKOSTEMP=0; AC_SUBST([GNULIB_MKOSTEMP]) | 50 | GNULIB_MKOSTEMP=0; AC_SUBST([GNULIB_MKOSTEMP]) |
| 63 | GNULIB_MKOSTEMPS=0; AC_SUBST([GNULIB_MKOSTEMPS]) | 51 | GNULIB_MKOSTEMPS=0; AC_SUBST([GNULIB_MKOSTEMPS]) |
| 64 | GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP]) | 52 | GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP]) |
| 65 | GNULIB_MKSTEMPS=0; AC_SUBST([GNULIB_MKSTEMPS]) | 53 | GNULIB_MKSTEMPS=0; AC_SUBST([GNULIB_MKSTEMPS]) |
| 54 | GNULIB_POSIX_OPENPT=0; AC_SUBST([GNULIB_POSIX_OPENPT]) | ||
| 66 | GNULIB_PTSNAME=0; AC_SUBST([GNULIB_PTSNAME]) | 55 | GNULIB_PTSNAME=0; AC_SUBST([GNULIB_PTSNAME]) |
| 56 | GNULIB_PTSNAME_R=0; AC_SUBST([GNULIB_PTSNAME_R]) | ||
| 67 | GNULIB_PUTENV=0; AC_SUBST([GNULIB_PUTENV]) | 57 | GNULIB_PUTENV=0; AC_SUBST([GNULIB_PUTENV]) |
| 58 | GNULIB_RANDOM=0; AC_SUBST([GNULIB_RANDOM]) | ||
| 68 | GNULIB_RANDOM_R=0; AC_SUBST([GNULIB_RANDOM_R]) | 59 | GNULIB_RANDOM_R=0; AC_SUBST([GNULIB_RANDOM_R]) |
| 69 | GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX]) | 60 | GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX]) |
| 70 | GNULIB_REALPATH=0; AC_SUBST([GNULIB_REALPATH]) | 61 | GNULIB_REALPATH=0; AC_SUBST([GNULIB_REALPATH]) |
| 71 | GNULIB_RPMATCH=0; AC_SUBST([GNULIB_RPMATCH]) | 62 | GNULIB_RPMATCH=0; AC_SUBST([GNULIB_RPMATCH]) |
| 63 | GNULIB_SECURE_GETENV=0; AC_SUBST([GNULIB_SECURE_GETENV]) | ||
| 72 | GNULIB_SETENV=0; AC_SUBST([GNULIB_SETENV]) | 64 | GNULIB_SETENV=0; AC_SUBST([GNULIB_SETENV]) |
| 73 | GNULIB_STRTOD=0; AC_SUBST([GNULIB_STRTOD]) | 65 | GNULIB_STRTOD=0; AC_SUBST([GNULIB_STRTOD]) |
| 74 | GNULIB_STRTOLL=0; AC_SUBST([GNULIB_STRTOLL]) | 66 | GNULIB_STRTOLL=0; AC_SUBST([GNULIB_STRTOLL]) |
| 75 | GNULIB_STRTOULL=0; AC_SUBST([GNULIB_STRTOULL]) | 67 | GNULIB_STRTOULL=0; AC_SUBST([GNULIB_STRTOULL]) |
| 68 | GNULIB_SYSTEM_POSIX=0; AC_SUBST([GNULIB_SYSTEM_POSIX]) | ||
| 76 | GNULIB_UNLOCKPT=0; AC_SUBST([GNULIB_UNLOCKPT]) | 69 | GNULIB_UNLOCKPT=0; AC_SUBST([GNULIB_UNLOCKPT]) |
| 77 | GNULIB_UNSETENV=0; AC_SUBST([GNULIB_UNSETENV]) | 70 | GNULIB_UNSETENV=0; AC_SUBST([GNULIB_UNSETENV]) |
| 71 | GNULIB_WCTOMB=0; AC_SUBST([GNULIB_WCTOMB]) | ||
| 78 | dnl Assume proper GNU behavior unless another module says otherwise. | 72 | dnl Assume proper GNU behavior unless another module says otherwise. |
| 79 | HAVE__EXIT=1; AC_SUBST([HAVE__EXIT]) | 73 | HAVE__EXIT=1; AC_SUBST([HAVE__EXIT]) |
| 80 | HAVE_ATOLL=1; AC_SUBST([HAVE_ATOLL]) | 74 | HAVE_ATOLL=1; AC_SUBST([HAVE_ATOLL]) |
| @@ -87,26 +81,37 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS], | |||
| 87 | HAVE_MKOSTEMPS=1; AC_SUBST([HAVE_MKOSTEMPS]) | 81 | HAVE_MKOSTEMPS=1; AC_SUBST([HAVE_MKOSTEMPS]) |
| 88 | HAVE_MKSTEMP=1; AC_SUBST([HAVE_MKSTEMP]) | 82 | HAVE_MKSTEMP=1; AC_SUBST([HAVE_MKSTEMP]) |
| 89 | HAVE_MKSTEMPS=1; AC_SUBST([HAVE_MKSTEMPS]) | 83 | HAVE_MKSTEMPS=1; AC_SUBST([HAVE_MKSTEMPS]) |
| 84 | HAVE_POSIX_OPENPT=1; AC_SUBST([HAVE_POSIX_OPENPT]) | ||
| 90 | HAVE_PTSNAME=1; AC_SUBST([HAVE_PTSNAME]) | 85 | HAVE_PTSNAME=1; AC_SUBST([HAVE_PTSNAME]) |
| 86 | HAVE_PTSNAME_R=1; AC_SUBST([HAVE_PTSNAME_R]) | ||
| 87 | HAVE_RANDOM=1; AC_SUBST([HAVE_RANDOM]) | ||
| 88 | HAVE_RANDOM_H=1; AC_SUBST([HAVE_RANDOM_H]) | ||
| 91 | HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R]) | 89 | HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R]) |
| 92 | HAVE_REALPATH=1; AC_SUBST([HAVE_REALPATH]) | 90 | HAVE_REALPATH=1; AC_SUBST([HAVE_REALPATH]) |
| 93 | HAVE_RPMATCH=1; AC_SUBST([HAVE_RPMATCH]) | 91 | HAVE_RPMATCH=1; AC_SUBST([HAVE_RPMATCH]) |
| 92 | HAVE_SECURE_GETENV=1; AC_SUBST([HAVE_SECURE_GETENV]) | ||
| 94 | HAVE_SETENV=1; AC_SUBST([HAVE_SETENV]) | 93 | HAVE_SETENV=1; AC_SUBST([HAVE_SETENV]) |
| 94 | HAVE_DECL_SETENV=1; AC_SUBST([HAVE_DECL_SETENV]) | ||
| 95 | HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD]) | 95 | HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD]) |
| 96 | HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL]) | 96 | HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL]) |
| 97 | HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL]) | 97 | HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL]) |
| 98 | HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA]) | 98 | HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA]) |
| 99 | HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H]) | 99 | HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H]) |
| 100 | HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT]) | 100 | HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT]) |
| 101 | HAVE_UNSETENV=1; AC_SUBST([HAVE_UNSETENV]) | 101 | HAVE_DECL_UNSETENV=1; AC_SUBST([HAVE_DECL_UNSETENV]) |
| 102 | REPLACE_CALLOC=0; AC_SUBST([REPLACE_CALLOC]) | 102 | REPLACE_CALLOC=0; AC_SUBST([REPLACE_CALLOC]) |
| 103 | REPLACE_CANONICALIZE_FILE_NAME=0; AC_SUBST([REPLACE_CANONICALIZE_FILE_NAME]) | 103 | REPLACE_CANONICALIZE_FILE_NAME=0; AC_SUBST([REPLACE_CANONICALIZE_FILE_NAME]) |
| 104 | REPLACE_MALLOC=0; AC_SUBST([REPLACE_MALLOC]) | 104 | REPLACE_MALLOC=0; AC_SUBST([REPLACE_MALLOC]) |
| 105 | REPLACE_MBTOWC=0; AC_SUBST([REPLACE_MBTOWC]) | ||
| 105 | REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP]) | 106 | REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP]) |
| 107 | REPLACE_PTSNAME=0; AC_SUBST([REPLACE_PTSNAME]) | ||
| 108 | REPLACE_PTSNAME_R=0; AC_SUBST([REPLACE_PTSNAME_R]) | ||
| 106 | REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV]) | 109 | REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV]) |
| 110 | REPLACE_RANDOM_R=0; AC_SUBST([REPLACE_RANDOM_R]) | ||
| 107 | REPLACE_REALLOC=0; AC_SUBST([REPLACE_REALLOC]) | 111 | REPLACE_REALLOC=0; AC_SUBST([REPLACE_REALLOC]) |
| 108 | REPLACE_REALPATH=0; AC_SUBST([REPLACE_REALPATH]) | 112 | REPLACE_REALPATH=0; AC_SUBST([REPLACE_REALPATH]) |
| 109 | REPLACE_SETENV=0; AC_SUBST([REPLACE_SETENV]) | 113 | REPLACE_SETENV=0; AC_SUBST([REPLACE_SETENV]) |
| 110 | REPLACE_STRTOD=0; AC_SUBST([REPLACE_STRTOD]) | 114 | REPLACE_STRTOD=0; AC_SUBST([REPLACE_STRTOD]) |
| 111 | REPLACE_UNSETENV=0; AC_SUBST([REPLACE_UNSETENV]) | 115 | REPLACE_UNSETENV=0; AC_SUBST([REPLACE_UNSETENV]) |
| 116 | REPLACE_WCTOMB=0; AC_SUBST([REPLACE_WCTOMB]) | ||
| 112 | ]) | 117 | ]) |
