Code

Fixed compile problem on Sol2.6 with stdbool.h
[nagiosplug.git] / lib / Makefile.am
index 80f3e62e028ac082c26b4c7a8f06a5fcdb5b8d11..9cab14af87e513a35159cde7432009f49c7e867e 100644 (file)
@@ -36,3 +36,11 @@ libnagiosplug_a_SOURCES = snprintf.c
 
 INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl
 
+BUILT_SOURCES = $(STDBOOL_H)
+EXTRA_DIST = stdbool_.h
+MOSTLYCLEANFILES = stdbool.h stdbool.ht
+# Create stdbool.h on systems that lack a working one.
+stdbool.h: stdbool_.h
+       sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t
+       mv $@t $@
+