summaryrefslogtreecommitdiff
path: root/m4/memrchr.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-02-03 20:38:14 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-02-03 20:38:14 +0000
commit018039820ee41e5d8a9a7352ae55bc3eb14bac3c (patch)
treed16709d2cafc3f948184834aca8eedc6eb511183 /m4/memrchr.m4
parenta10e3d19c8c812a60794c247ff6940a04ed51bea (diff)
downloadgnulib-018039820ee41e5d8a9a7352ae55bc3eb14bac3c.tar.gz
* modules/chdir-long (Depends-on): Add memrchr.
* modules/memrchr (Files): Add lib/memrchr.h. (Include): "memrchr.h". * lib/memrchr.h: New file. * lib/chdir-long.c: Include it. * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h> Don't bother including stddef.h. * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
Diffstat (limited to 'm4/memrchr.m4')
-rw-r--r--m4/memrchr.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/memrchr.m4 b/m4/memrchr.m4
index 06a9b1ee7e..8ce7d9e467 100644
--- a/m4/memrchr.m4
+++ b/m4/memrchr.m4
@@ -1,11 +1,13 @@
-# memrchr.m4 serial 3
-dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+# memrchr.m4 serial 4
+dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
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_FUNC_MEMRCHR],
[
+ AC_LIBSOURCES([memrchr.c, memrchr.h])
+
dnl Persuade glibc <string.h> to declare memrchr().
AC_REQUIRE([AC_GNU_SOURCE])