error-h: Avoid namespace pollution on mingw.
[gnulib.git] / modules / glob-h
blob60d7cde096a85733fe78d6f4921def197526b00a
1 Description:
2 A <glob.h> that conforms to POSIX.
4 Files:
5 lib/glob.in.h
6 lib/glob-libc.h
7 m4/glob_h.m4
9 Depends-on:
10 extensions
11 gen-header
12 include_next
13 snippet/arg-nonnull
14 snippet/c++defs
15 snippet/warn-on-use
16 libc-config
17 lstat
18 sys_stat
20 configure.ac:
21 gl_GLOB_H
22 gl_GLOB_H_REQUIRE_DEFAULTS
23 gl_CONDITIONAL_HEADER([glob.h])
24 AC_PROG_MKDIR_P
26 Makefile.am:
27 BUILT_SOURCES += $(GLOB_H)
29 # We need the following in order to create <glob.h>.
30 if GL_GENERATE_GLOB_H
31 glob.h: glob.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
32 @NMD@   $(AM_V_GEN)$(MKDIR_P) '%reldir%'
33         $(gl_V_at)$(SED_HEADER_STDOUT) \
34               -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
35               -e 's|@''HAVE_GLOB_H''@|$(HAVE_GLOB_H)|g' \
36               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
37               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
38               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
39               -e 's|@''NEXT_GLOB_H''@|$(NEXT_GLOB_H)|g' \
40               -e 's/@''GNULIB_GLOB''@/$(GNULIB_GLOB)/g' \
41               -e 's|@''HAVE_GLOB''@|$(HAVE_GLOB)|g' \
42               -e 's|@''HAVE_GLOB_PATTERN_P''@|$(HAVE_GLOB_PATTERN_P)|g' \
43               -e 's|@''REPLACE_GLOB''@|$(REPLACE_GLOB)|g' \
44               -e 's|@''REPLACE_GLOB_PATTERN_P''@|$(REPLACE_GLOB_PATTERN_P)|g' \
45               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
46               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
47               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
48               $(srcdir)/glob.in.h > $@-t
49         $(AM_V_at)mv $@-t $@
50 else
51 glob.h: $(top_builddir)/config.status
52         rm -f $@
53 endif
54 MOSTLYCLEANFILES += glob.h glob.h-t
56 BUILT_SOURCES += glob-libc.gl.h
58 glob-libc.gl.h: glob-libc.h
59         $(AM_V_GEN)$(SED_HEADER_STDOUT) \
60               -e '/__BEGIN_DECLS/{ s/__BEGIN_DECLS/#ifdef __cplusplus%extern "C" {%#endif/; y/%/\n/; }' \
61               -e '/__END_DECLS/{ s/__END_DECLS/#ifdef __cplusplus%}%#endif/; y/%/\n/; }' \
62               -e 's|__THROWNL||g' \
63               -e 's|__THROW||g' \
64               -e 's|__restrict|restrict|g' \
65               -e 's|defined __USE_MISC|1|' \
66               -e 's|ifdef __USE_GNU|if 1|' \
67               -e 's|ifdef __USE_LARGEFILE64|if 0|' \
68               $(srcdir)/glob-libc.h > $@-t
69         $(AM_V_at)mv $@-t $@
70 MOSTLYCLEANFILES += glob-libc.gl.h glob-libc.gl.h-t
73 Include:
74 <glob.h>
76 License:
77 LGPLv2+
79 Maintainer:
80 all, glibc