Support non-blocking pipe I/O and SIGPIPE in pwrite().
[pspp] / modules / errno
index cae6bbbdc8da08115ff03ca0a5d52998f7050bde..95169015533ab42556824b85fc09554c15a9eb1e 100644 (file)
@@ -16,6 +16,7 @@ BUILT_SOURCES += $(ERRNO_H)
 
 # We need the following in order to create <errno.h> when the system
 # doesn't have one that is POSIX compliant.
+if GL_GENERATE_ERRNO_H
 errno.h: errno.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
@@ -32,6 +33,10 @@ errno.h: errno.in.h $(top_builddir)/config.status
              < $(srcdir)/errno.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+errno.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += errno.h errno.h-t
 
 Include: