getcwd-lgpl: new module
[pspp] / modules / sched
index 4bba3ddaede10b39da0573d67477ca617c4993be..e0a3936b2ec5b0c56014227bb3f3a889b729a9b1 100644 (file)
@@ -16,24 +16,30 @@ BUILT_SOURCES += $(SCHED_H)
 
 # We need the following in order to create a replacement for <sched.h> when
 # the system doesn't have one.
-sched.h: sched.in.h
-       rm -f $@-t $@
+if GL_GENERATE_SCHED_H
+sched.h: sched.in.h $(top_builddir)/config.status
+       $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''HAVE_SCHED_H''@|$(HAVE_SCHED_H)|g' \
              -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_SCHED_H''@|$(NEXT_SCHED_H)|g' \
              -e 's|@''HAVE_STRUCT_SCHED_PARAM''@|$(HAVE_STRUCT_SCHED_PARAM)|g' \
              < $(srcdir)/sched.in.h; \
-       } > $@-t
+       } > $@-t && \
        mv $@-t $@
+else
+sched.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += sched.h sched.h-t
 
 Include:
 <sched.h>
 
 License:
-LGPL
+LGPLv2+
 
 Maintainer:
 Bruno Haible