Declare strcasestr() in the <string.h> replacement, rather than in
[gnulib.git] / modules / string
1 Description:
2 A GNU-like <string.h>.
3
4 Files:
5 lib/string_.h
6 m4/string_h.m4
7
8 Depends-on:
9 absolute-header
10 extensions
11
12 configure.ac:
13 gl_HEADER_STRING_H
14
15 Makefile.am:
16 BUILT_SOURCES += string.h
17
18 # We need the following in order to create <string.h> when the system
19 # doesn't have one that works with the given compiler.
20 string.h: string_.h
21         rm -f $@-t $@
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
23           sed -e 's|@''ABSOLUTE_STRING_H''@|$(ABSOLUTE_STRING_H)|g' \
24               -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
25               -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
26               -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
27               -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
28               -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
29               -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
30               -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
31               -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
32               -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \
33               -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
34               -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
35               -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
36               -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
37               -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
38               -e 's|@''REPLACE_STRCASECMP''@|$(REPLACE_STRCASECMP)|g' \
39               -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
40               -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
41               < $(srcdir)/string_.h; \
42         } > $@-t
43         mv $@-t $@
44 MOSTLYCLEANFILES += string.h string.h-t
45
46 Include:
47 #include <string.h>
48
49 License:
50 LGPL
51
52 Maintainer:
53 all