havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
[gnulib.git] / modules / string
blob8ce11d24ac43f97fff3fc9846999d44bf40a5798
1 Description:
2 A GNU-like <string.h>.
4 Files:
5 lib/string.in.h
6 m4/string_h.m4
8 Depends-on:
9 extensions
10 extern-inline
11 include_next
12 snippet/arg-nonnull
13 snippet/c++defs
14 snippet/warn-on-use
15 stddef
17 configure.ac:
18 gl_HEADER_STRING_H
20 Makefile.am:
21 BUILT_SOURCES += string.h
23 # We need the following in order to create <string.h> when the system
24 # doesn't have one that works with the given compiler.
25 string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
26         $(AM_V_GEN)rm -f $@-t $@ && \
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
28           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
29               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
30               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
31               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
32               -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
33               -e 's/@''GNULIB_EXPLICIT_BZERO''@/$(GNULIB_EXPLICIT_BZERO)/g' \
34               -e 's/@''GNULIB_FFSL''@/$(GNULIB_FFSL)/g' \
35               -e 's/@''GNULIB_FFSLL''@/$(GNULIB_FFSLL)/g' \
36               -e 's/@''GNULIB_MBSLEN''@/$(GNULIB_MBSLEN)/g' \
37               -e 's/@''GNULIB_MBSNLEN''@/$(GNULIB_MBSNLEN)/g' \
38               -e 's/@''GNULIB_MBSCHR''@/$(GNULIB_MBSCHR)/g' \
39               -e 's/@''GNULIB_MBSRCHR''@/$(GNULIB_MBSRCHR)/g' \
40               -e 's/@''GNULIB_MBSSTR''@/$(GNULIB_MBSSTR)/g' \
41               -e 's/@''GNULIB_MBSCASECMP''@/$(GNULIB_MBSCASECMP)/g' \
42               -e 's/@''GNULIB_MBSNCASECMP''@/$(GNULIB_MBSNCASECMP)/g' \
43               -e 's/@''GNULIB_MBSPCASECMP''@/$(GNULIB_MBSPCASECMP)/g' \
44               -e 's/@''GNULIB_MBSCASESTR''@/$(GNULIB_MBSCASESTR)/g' \
45               -e 's/@''GNULIB_MBSCSPN''@/$(GNULIB_MBSCSPN)/g' \
46               -e 's/@''GNULIB_MBSPBRK''@/$(GNULIB_MBSPBRK)/g' \
47               -e 's/@''GNULIB_MBSSPN''@/$(GNULIB_MBSSPN)/g' \
48               -e 's/@''GNULIB_MBSSEP''@/$(GNULIB_MBSSEP)/g' \
49               -e 's/@''GNULIB_MBSTOK_R''@/$(GNULIB_MBSTOK_R)/g' \
50               -e 's/@''GNULIB_MEMCHR''@/$(GNULIB_MEMCHR)/g' \
51               -e 's/@''GNULIB_MEMMEM''@/$(GNULIB_MEMMEM)/g' \
52               -e 's/@''GNULIB_MEMPCPY''@/$(GNULIB_MEMPCPY)/g' \
53               -e 's/@''GNULIB_MEMRCHR''@/$(GNULIB_MEMRCHR)/g' \
54               -e 's/@''GNULIB_RAWMEMCHR''@/$(GNULIB_RAWMEMCHR)/g' \
55               -e 's/@''GNULIB_STPCPY''@/$(GNULIB_STPCPY)/g' \
56               -e 's/@''GNULIB_STPNCPY''@/$(GNULIB_STPNCPY)/g' \
57               -e 's/@''GNULIB_STRCHRNUL''@/$(GNULIB_STRCHRNUL)/g' \
58               -e 's/@''GNULIB_STRDUP''@/$(GNULIB_STRDUP)/g' \
59               -e 's/@''GNULIB_STRNCAT''@/$(GNULIB_STRNCAT)/g' \
60               -e 's/@''GNULIB_STRNDUP''@/$(GNULIB_STRNDUP)/g' \
61               -e 's/@''GNULIB_STRNLEN''@/$(GNULIB_STRNLEN)/g' \
62               -e 's/@''GNULIB_STRPBRK''@/$(GNULIB_STRPBRK)/g' \
63               -e 's/@''GNULIB_STRSEP''@/$(GNULIB_STRSEP)/g' \
64               -e 's/@''GNULIB_STRSTR''@/$(GNULIB_STRSTR)/g' \
65               -e 's/@''GNULIB_STRCASESTR''@/$(GNULIB_STRCASESTR)/g' \
66               -e 's/@''GNULIB_STRTOK_R''@/$(GNULIB_STRTOK_R)/g' \
67               -e 's/@''GNULIB_STRERROR''@/$(GNULIB_STRERROR)/g' \
68               -e 's/@''GNULIB_STRERROR_R''@/$(GNULIB_STRERROR_R)/g' \
69               -e 's/@''GNULIB_STRERRORNAME_NP''@/$(GNULIB_STRERRORNAME_NP)/g' \
70               -e 's/@''GNULIB_SIGABBREV_NP''@/$(GNULIB_SIGABBREV_NP)/g' \
71               -e 's/@''GNULIB_SIGDESCR_NP''@/$(GNULIB_SIGDESCR_NP)/g' \
72               -e 's/@''GNULIB_STRSIGNAL''@/$(GNULIB_STRSIGNAL)/g' \
73               -e 's/@''GNULIB_STRVERSCMP''@/$(GNULIB_STRVERSCMP)/g' \
74               -e 's/@''GNULIB_MDA_MEMCCPY''@/$(GNULIB_MDA_MEMCCPY)/g' \
75               -e 's/@''GNULIB_MDA_STRDUP''@/$(GNULIB_MDA_STRDUP)/g' \
76               < $(srcdir)/string.in.h | \
77           sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \
78               -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \
79               -e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \
80               -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
81               -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
82               -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
83               -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
84               -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
85               -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
86               -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
87               -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
88               -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
89               -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
90               -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
91               -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
92               -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
93               -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
94               -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
95               -e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \
96               -e 's|@''HAVE_STRERRORNAME_NP''@|$(HAVE_STRERRORNAME_NP)|g' \
97               -e 's|@''HAVE_SIGABBREV_NP''@|$(HAVE_SIGABBREV_NP)|g' \
98               -e 's|@''HAVE_SIGDESCR_NP''@|$(HAVE_SIGDESCR_NP)|g' \
99               -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
100               -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
101               -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
102               -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
103               -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
104               -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \
105               -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
106               -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \
107               -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \
108               -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \
109               -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
110               -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
111               -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
112               -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
113               -e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \
114               -e 's|@''REPLACE_STRERRORNAME_NP''@|$(REPLACE_STRERRORNAME_NP)|g' \
115               -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
116               -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
117               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
118               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
119               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
120               < $(srcdir)/string.in.h; \
121         } > $@-t && \
122         mv $@-t $@
123 MOSTLYCLEANFILES += string.h string.h-t
125 Include:
126 <string.h>
128 License:
129 LGPLv2+
131 Maintainer: