2 An <assert.h> that conforms to C11.
16 BUILT_SOURCES += $(ASSERT_H)
18 # We need the following in order to create <assert.h> when the system
19 # doesn't have one that works with the given compiler.
20 if GL_GENERATE_ASSERT_H
21 assert.h: assert.in.h verify.h $(top_builddir)/config.status
22 $(AM_V_GEN)rm -f $@-t $@ && \
23 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
24 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
25 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
26 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
27 -e 's|@''NEXT_ASSERT_H''@|$(NEXT_ASSERT_H)|g' \
28 < $(srcdir)/assert.in.h && \
29 sed -e '/@assert.h omit start@/,/@assert.h omit end@/d' \
30 -e 's|_gl_verify|_gl_static_assert|g' \
31 -e 's|_GL_VERIFY|_GL_STATIC_ASSERT|g' \
32 -e 's|_GL\(_STATIC_ASSERT_H\)|_${gl_include_guard_prefix}\1|g' \
33 < $(srcdir)/verify.h; \
37 assert.h: $(top_builddir)/config.status
40 MOSTLYCLEANFILES += assert.h assert.h-t