On 05/08/11 15:24, Reuben Thomas wrote:
Still missing a header:
...
In file included from lposix.c:25:0:
/usr/local/include/libposix/glob.h:381:23: fatal error: glob-libc.h:
No such file or directory
The derived file "glob.h" unconditionally sources "glob-libc.h".
Therefore, whenever "glob.h" gets used, this file must be handled.
The make file fragment does not ensure this:
nodist_pkginclude_HEADERS += $(GLOB_H)
EXTRA_HEADERS += glob.h
BUILT_SOURCES += $(GLOB_H)
# We need the following in order to create <glob.h> when the system
# doesn't have one that works with the given compiler.
if GL_GENERATE_GLOB_H
glob.h: glob.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
$(ARG_NONNULL_H) $(WARN_ON_USE_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
< $(srcdir)/glob.in.h; \
} > $@-t && \
mv -f $@-t $@
else
glob.h: $(top_builddir)/config.status
rm -f $@
endif
MOSTLYCLEANFILES += glob.h glob.h-t
"glob-libc.h" needs to be distributed (which I believe is accomplished
by inclusion in the "Files:" file list) and needs to be installed IFF
"GL_GENERATE_GLOB_H" is true. Perhaps by adding:
pkginclude_HEADERS += glob-libc.h
right after the "if GL_GENERATE_GLOB_H" line?