X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fstdbool;h=cfb9aac84c681984d8452308a339d74f67a6e43e;hb=5191b3546cfb6c163228c23f214e325ddf60d46f;hp=786f125845f92e89218e7172189350f3dde97685;hpb=5143f4e91f44130093914be7cf05873c7d8a4369;p=gnulib.git diff --git a/modules/stdbool b/modules/stdbool index 786f12584..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: @@ -13,22 +13,27 @@ AM_STDBOOL_H Makefile.am: BUILT_SOURCES += $(STDBOOL_H) -EXTRA_DIST += stdbool_.h -# We need the following in order to create an when the system +# We need the following in order to create when the system # doesn't have one that works. -all-local $(lib_OBJECTS): $(STDBOOL_H) -stdbool.h: stdbool_.h - sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > $@-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.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 -