1Description: 2A POSIX-like <errno.h>. 3 4Files: 5lib/errno.in.h 6m4/errno_h.m4 7 8Depends-on: 9include_next 10 11configure.ac: 12gl_HEADER_ERRNO_H 13 14Makefile.am: 15BUILT_SOURCES += $(ERRNO_H) 16 17# We need the following in order to create <errno.h> when the system 18# doesn't have one that is POSIX compliant. 19if GL_GENERATE_ERRNO_H 20errno.h: errno.in.h $(top_builddir)/config.status 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|@''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_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ 28 -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ 29 -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ 30 -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ 31 -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ 32 -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ 33 -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ 34 < $(srcdir)/errno.in.h; \ 35 } > $@-t && \ 36 mv $@-t $@ 37else 38errno.h: $(top_builddir)/config.status 39 rm -f $@ 40endif 41MOSTLYCLEANFILES += errno.h errno.h-t 42 43Include: 44<errno.h> 45 46License: 47LGPLv2+ 48 49Maintainer: 50Bruno Haible 51 52