summaryrefslogtreecommitdiff
path: root/modules/strstr
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-06-16 06:14:05 -0600
committerEric Blake <ebb9@byu.net>2009-06-17 07:24:16 -0600
commite3e47d1710f6154c54b65c5d9dd5d56516a893d6 (patch)
tree545d55fbd549ae6aa3a4bbec53bcf8cd80dd38cc /modules/strstr
parentea5142f7369225f5aef66f89f9b9d1421c6dceff (diff)
downloadgnulib-e3e47d1710f6154c54b65c5d9dd5d56516a893d6.tar.gz
strstr, strcasestr: replace on platforms with broken memchr
* modules/strstr: Split into... * modules/strstr-simple: ...new module that does not care about performance, but does care about glibc bug. * m4/strstr.m4 (gl_FUNC_STRSTR): Split... (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr if platform memchr is broken, per Debian bug 521737. * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken memchr. * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once. * doc/posix-functions/strstr.texi (strstr): Document the fix. * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise. * modules/mountlist (Depends-on): Add strstr-simple. * modules/gen-uni-tables (Depends-on): Likewise. * modules/argz (Depends-on): Add strstr. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/strstr')
-rw-r--r--modules/strstr9
1 files changed, 1 insertions, 8 deletions
diff --git a/modules/strstr b/modules/strstr
index 251b2d76eb..dc33bd2952 100644
--- a/modules/strstr
+++ b/modules/strstr
@@ -2,19 +2,12 @@ Description:
strstr() function: efficiently locate first substring in a buffer.
Files:
-lib/str-two-way.h
-lib/strstr.c
-m4/strstr.m4
Depends-on:
-string
-stdbool
-memchr
-memcmp
+strstr-simple
configure.ac:
gl_FUNC_STRSTR
-gl_STRING_MODULE_INDICATOR([strstr])
Makefile.am: