]> Savannah Git Hosting - gnulib.git/commit
fnmatch-h: New module.
authorBruno Haible <bruno@clisp.org>
Mon, 6 Aug 2018 13:00:38 +0000 (15:00 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 6 Aug 2018 13:00:38 +0000 (15:00 +0200)
commit08096928d16b98392b8b640bc90091f2564f2c1c
tree449ed08db92fd8ed6bc5fab1bb4ebf5792d91564
parentc5222b35c8b240a89393ba5eaf2b9b81f2ba7c41
fnmatch-h: New module.

* lib/fnmatch.in.h: Use the usual gnulib idioms for header file
replacements.
(FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
(fnmatch): Use the usual gnulib idiom for function declarations. Enable
'posixcheck' warning.
* m4/fnmatch_h.m4: New file.
* m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
as appropriate.
* modules/fnmatch-h: New file.
* modules/fnmatch (Files): Remove lib/fnmatch.in.h.
(Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
conditions.
(configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
indicator.
(Makefile.am): Remove code that is moved to fnmatch-h.
* modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
REPLACE_FNMATCH.
* doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
* modules/posixcheck (Depends-on): Add fnmatch-h.
ChangeLog
doc/posix-headers/fnmatch.texi
lib/fnmatch.in.h
m4/fnmatch.m4
m4/fnmatch_h.m4 [new file with mode: 0644]
modules/fnmatch
modules/fnmatch-gnu
modules/fnmatch-h [new file with mode: 0644]
modules/posixcheck