view modules/stddef @ 14271:b4cc3c41ca79

libposix: Add _HEADERS primaries to posix modules. Modify gnulib-tool to strip them from generated Makefile.am-s where they are not needed. Also, replace M4 macro prefixes when requested. Finally, omit calls to error() for libposix.
author Bruce Korb <bkorb@gnu.org>
date Sat, 05 Feb 2011 08:22:48 -0800
parents a19ace3ba849
children 8f6d3e05c7e2
line wrap: on
line source

Description:
A <stddef.h> that works around platform issues.

Files:
lib/stddef.in.h
m4/stddef_h.m4
m4/wchar_t.m4

Depends-on:
include_next

configure.ac:
gl_STDDEF_H

Makefile.am:
nodist_pkginclude_HEADERS += $(STDDEF_H)
EXTRA_HEADERS += stddef.h

BUILT_SOURCES += $(STDDEF_H)

# We need the following in order to create <stddef.h> when the system
# doesn't have one that works with the given compiler.
stddef.h: stddef.in.h
	$(AM_V_GEN)rm -f $@-t $@ && \
	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
	  sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
	      -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
	      -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
	      -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
	      < $(srcdir)/stddef.in.h; \
	} > $@-t && \
	mv $@-t $@
MOSTLYCLEANFILES += stddef.h stddef.h-t

Include:
<stddef.h>

License:
LGPLv2+

Maintainer:
all