2 A <malloc.h> that works around platform issues.
17 BUILT_SOURCES += malloc.h
19 # We need the following in order to create <malloc.h> when we add workarounds.
20 malloc.h: malloc.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
21 $(AM_V_GEN)rm -f $@-t $@ && \
22 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23 sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
24 -e 's|@''HAVE_MALLOC_H''@|$(HAVE_MALLOC_H)|g' \
25 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
26 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
27 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
28 -e 's|@''NEXT_MALLOC_H''@|$(NEXT_MALLOC_H)|g' \
29 -e 's/@''GNULIB_MEMALIGN''@/$(GNULIB_MEMALIGN)/g' \
30 -e 's|@''HAVE_MEMALIGN''@|$(HAVE_MEMALIGN)|g' \
31 -e 's|@''REPLACE_MEMALIGN''@|$(REPLACE_MEMALIGN)|g' \
32 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
33 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
34 < $(srcdir)/malloc.in.h; \
37 MOSTLYCLEANFILES += malloc.h malloc.h-t