123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- dnl Copyright (C) 2007-2017 Free Software Foundation, Inc.
- dnl This file is free software
- dnl gives unlimited permission to copy and/or distribute it,
- dnl with or without modifications, as long as this notice is preserved.
- AC_DEFUN([gl_STDLIB_H],
- [
- AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
- gl_NEXT_HEADERS([stdlib.h])
- dnl Check for declarations of anything we want to poison if the
- dnl corresponding gnulib module is not in use, and which is not
- dnl guaranteed by C89.
- gl_WARN_ON_USE_PREPARE([[
- ]], [_Exit atoll canonicalize_file_name getloadavg getsubopt grantpt
- initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps
- posix_openpt ptsname ptsname_r qsort_r random random_r realpath rpmatch
- secure_getenv setenv setstate setstate_r srandom srandom_r
- strtod strtoll strtoull unlockpt unsetenv])
- ])
- AC_DEFUN([gl_STDLIB_MODULE_INDICATOR],
- [
- dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
- AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
- gl_MODULE_INDICATOR_SET_VARIABLE([$1])
- dnl Define it also as a C macro, for the benefit of the unit tests.
- gl_MODULE_INDICATOR_FOR_TESTS([$1])
- ])
- AC_DEFUN([gl_STDLIB_H_DEFAULTS],
- [
- GNULIB__EXIT=0
- GNULIB_ATOLL=0
- GNULIB_CALLOC_POSIX=0
- GNULIB_CANONICALIZE_FILE_NAME=0
- GNULIB_GETLOADAVG=0
- GNULIB_GETSUBOPT=0
- GNULIB_GRANTPT=0
- GNULIB_MALLOC_POSIX=0
- GNULIB_MBTOWC=0
- GNULIB_MKDTEMP=0
- GNULIB_MKOSTEMP=0
- GNULIB_MKOSTEMPS=0
- GNULIB_MKSTEMP=0
- GNULIB_MKSTEMPS=0
- GNULIB_POSIX_OPENPT=0
- GNULIB_PTSNAME=0
- GNULIB_PTSNAME_R=0
- GNULIB_PUTENV=0
- GNULIB_QSORT_R=0
- GNULIB_RANDOM=0
- GNULIB_RANDOM_R=0
- GNULIB_REALLOC_POSIX=0
- GNULIB_REALPATH=0
- GNULIB_RPMATCH=0
- GNULIB_SECURE_GETENV=0
- GNULIB_SETENV=0
- GNULIB_STRTOD=0
- GNULIB_STRTOLL=0
- GNULIB_STRTOULL=0
- GNULIB_SYSTEM_POSIX=0
- GNULIB_UNLOCKPT=0
- GNULIB_UNSETENV=0
- GNULIB_WCTOMB=0
- dnl Assume proper GNU behavior unless another module says otherwise.
- HAVE__EXIT=1
- HAVE_ATOLL=1
- HAVE_CANONICALIZE_FILE_NAME=1
- HAVE_DECL_GETLOADAVG=1
- HAVE_GETSUBOPT=1
- HAVE_GRANTPT=1
- HAVE_MKDTEMP=1
- HAVE_MKOSTEMP=1
- HAVE_MKOSTEMPS=1
- HAVE_MKSTEMP=1
- HAVE_MKSTEMPS=1
- HAVE_POSIX_OPENPT=1
- HAVE_PTSNAME=1
- HAVE_PTSNAME_R=1
- HAVE_QSORT_R=1
- HAVE_RANDOM=1
- HAVE_RANDOM_H=1
- HAVE_RANDOM_R=1
- HAVE_REALPATH=1
- HAVE_RPMATCH=1
- HAVE_SECURE_GETENV=1
- HAVE_SETENV=1
- HAVE_DECL_SETENV=1
- HAVE_STRTOD=1
- HAVE_STRTOLL=1
- HAVE_STRTOULL=1
- HAVE_STRUCT_RANDOM_DATA=1
- HAVE_SYS_LOADAVG_H=0
- HAVE_UNLOCKPT=1
- HAVE_DECL_UNSETENV=1
- REPLACE_CALLOC=0
- REPLACE_CANONICALIZE_FILE_NAME=0
- REPLACE_MALLOC=0
- REPLACE_MBTOWC=0
- REPLACE_MKSTEMP=0
- REPLACE_PTSNAME=0
- REPLACE_PTSNAME_R=0
- REPLACE_PUTENV=0
- REPLACE_QSORT_R=0
- REPLACE_RANDOM_R=0
- REPLACE_REALLOC=0
- REPLACE_REALPATH=0
- REPLACE_SETENV=0
- REPLACE_STRTOD=0
- REPLACE_UNSETENV=0
- REPLACE_WCTOMB=0
- ])
|