X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fstdbool;h=cfb9aac84c681984d8452308a339d74f67a6e43e;hb=7ef6c64e210ac0979d7e8ac69bc5b5208c2405ab;hp=b8da55106a0a27b3bf0b6dd7c72fc991bfe93e2a;hpb=5eeec029e833abe9ba663d51bb556bd1eebb814e;p=gnulib.git diff --git a/modules/stdbool b/modules/stdbool index b8da55106..cfb9aac84 100644 --- a/modules/stdbool +++ b/modules/stdbool @@ -3,7 +3,7 @@ An that nearly conforms to C99. (Nearly: casts to bool may not work.) Files: -lib/stdbool_.h +lib/stdbool.in.h m4/stdbool.m4 Depends-on: @@ -16,19 +16,24 @@ BUILT_SOURCES += $(STDBOOL_H) # We need the following in order to create when the system # doesn't have one that works. -stdbool.h: stdbool_.h - rm -f $@-t $@ +if GL_GENERATE_STDBOOL_H +stdbool.h: stdbool.in.h $(top_builddir)/config.status + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h; \ - } > $@-t + sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ + } > $@-t && \ mv $@-t $@ +else +stdbool.h: $(top_builddir)/config.status + rm -f $@ +endif MOSTLYCLEANFILES += stdbool.h stdbool.h-t Include: -#include + License: -LGPL +LGPLv2+ Maintainer: Bruno Haible