glob-h: New module.
commit490c345b1425350e8749a00ec9566d29521d92db
authorBruno Haible <bruno@clisp.org>
Tue, 7 Aug 2018 08:43:06 +0000 (7 10:43 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 7 Aug 2018 08:43:06 +0000 (7 10:43 +0200)
tree17d309c5ba8bde963659fcbf733ef2cfc5e66594
parent00ce4c600ff2dab879eb25c066e933d457bea64b
glob-h: New module.

* lib/glob.in.h: Use nearly the usual gnulib idioms for header file
replacements.
* lib/glob.c: Include <config.h>.
* m4/glob_h.m4: New file.
* m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
REPLACE_GLOB_PATTERN_P as appropriate.
(gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
* modules/glob-h: New file.
* modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
(Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
lstat, sys_stat. Change conditions.
(configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
REPLACE_GLOB_PATTERN_P. Set module indicator.
(Makefile.am): Remove code that is moved to glob-h.
* doc/posix-headers/glob.texi: Mention the 'glob-h' module.
* modules/posixcheck (Depends-on): Add glob-h.
ChangeLog
doc/posix-headers/glob.texi
lib/glob.c
lib/glob.in.h
m4/glob.m4
m4/glob_h.m4 [new file with mode: 0644]
modules/glob
modules/glob-h [new file with mode: 0644]
modules/posixcheck