Mercurial > hg > octave-kai > gnulib-hg
annotate m4/memrchr.m4 @ 5719:bf1e7a015194
(gl_FUNC_MEMRCHR): Check for memrchr decl.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 21 Mar 2005 20:49:41 +0000 |
parents | 2b20ff1c4169 |
children | be9e01d008cb |
rev | line source |
---|---|
5637
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5611
diff
changeset
|
1 # memrchr.m4 serial 4 |
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5611
diff
changeset
|
2 dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. |
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4664
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4664
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4664
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 AC_DEFUN([gl_FUNC_MEMRCHR], |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 [ |
5637
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5611
diff
changeset
|
9 AC_LIBSOURCES([memrchr.c, memrchr.h]) |
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5611
diff
changeset
|
10 |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 dnl Persuade glibc <string.h> to declare memrchr(). |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 AC_REQUIRE([AC_GNU_SOURCE]) |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
5719
bf1e7a015194
(gl_FUNC_MEMRCHR): Check for memrchr decl.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5637
diff
changeset
|
14 AC_CHECK_DECLS_ONCE([memrchr]) |
bf1e7a015194
(gl_FUNC_MEMRCHR): Check for memrchr decl.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5637
diff
changeset
|
15 |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 AC_REPLACE_FUNCS(memrchr) |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 if test $ac_cv_func_memrchr = no; then |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 gl_PREREQ_MEMRCHR |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 fi |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 ]) |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 # Prerequisites of lib/memrchr.c. |
4664 | 23 AC_DEFUN([gl_PREREQ_MEMRCHR], [:]) |