mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-18 23:42:00 +03:00
* m4/stdlib_h.m4: Check for struct random_data. Initialize and substitute HAVE_STRUCT_RANDOM_DATA. * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct random_data. * modules/stdlib (Makefile.am): Substitute HAVE_STRUCT_RANDOM_DATA.
77 lines
2.9 KiB
Plaintext
77 lines
2.9 KiB
Plaintext
Description:
|
|
A GNU-like <stdlib.h>.
|
|
|
|
Files:
|
|
lib/stdlib.in.h
|
|
m4/stdlib_h.m4
|
|
|
|
Depends-on:
|
|
include_next
|
|
link-warning
|
|
unistd
|
|
|
|
configure.ac:
|
|
gl_STDLIB_H
|
|
|
|
Makefile.am:
|
|
BUILT_SOURCES += stdlib.h
|
|
|
|
# We need the following in order to create <stdlib.h> when the system
|
|
# doesn't have one that works with the given compiler.
|
|
stdlib.h: stdlib.in.h
|
|
rm -f $@-t $@
|
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
|
|
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
|
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
|
-e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
|
|
-e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
|
|
-e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
|
|
-e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
|
|
-e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
|
|
-e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
|
|
-e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
|
|
-e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
|
|
-e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
|
|
-e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
|
|
-e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
|
|
-e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
|
|
-e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
|
|
-e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
|
|
-e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
|
|
-e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
|
|
-e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
|
|
-e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
|
|
-e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \
|
|
-e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
|
|
-e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \
|
|
-e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
|
|
-e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \
|
|
-e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
|
|
-e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
|
|
-e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \
|
|
-e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
|
|
-e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
|
|
-e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
|
|
-e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
|
|
-e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
|
|
-e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \
|
|
-e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
|
|
-e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
|
|
-e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
|
|
-e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
|
|
-e 's|@''VOID_UNSETENV''@|$(VOID_UNSETENV)|g' \
|
|
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
|
|
< $(srcdir)/stdlib.in.h; \
|
|
} > $@-t
|
|
mv $@-t $@
|
|
MOSTLYCLEANFILES += stdlib.h stdlib.h-t
|
|
|
|
Include:
|
|
#include <stdlib.h>
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
all
|