diff options
-rw-r--r-- | lib/Makefile.am | 8 | ||||
-rw-r--r-- | m4/Makefile.am | 1 | ||||
-rw-r--r-- | m4/np_coreutils.m4 | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 80f3e62..9cab14a 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am | |||
@@ -36,3 +36,11 @@ libnagiosplug_a_SOURCES = snprintf.c | |||
36 | 36 | ||
37 | INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl | 37 | INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl |
38 | 38 | ||
39 | BUILT_SOURCES = $(STDBOOL_H) | ||
40 | EXTRA_DIST = stdbool_.h | ||
41 | MOSTLYCLEANFILES = stdbool.h stdbool.ht | ||
42 | # Create stdbool.h on systems that lack a working one. | ||
43 | stdbool.h: stdbool_.h | ||
44 | sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t | ||
45 | mv $@t $@ | ||
46 | |||
diff --git a/m4/Makefile.am b/m4/Makefile.am index 4fe72f1..ddb9d08 100644 --- a/m4/Makefile.am +++ b/m4/Makefile.am | |||
@@ -28,6 +28,7 @@ EXTRA_DIST += np_coreutils.m4 | |||
28 | EXTRA_DIST += onceonly.m4 | 28 | EXTRA_DIST += onceonly.m4 |
29 | EXTRA_DIST += progtest.m4 | 29 | EXTRA_DIST += progtest.m4 |
30 | EXTRA_DIST += realloc.m4 | 30 | EXTRA_DIST += realloc.m4 |
31 | EXTRA_DIST += stdbool.m4 | ||
31 | EXTRA_DIST += stdint_h.m4 | 32 | EXTRA_DIST += stdint_h.m4 |
32 | EXTRA_DIST += uintmax_t.m4 | 33 | EXTRA_DIST += uintmax_t.m4 |
33 | EXTRA_DIST += ulonglong.m4 | 34 | EXTRA_DIST += ulonglong.m4 |
diff --git a/m4/np_coreutils.m4 b/m4/np_coreutils.m4 index 3f87686..e729604 100644 --- a/m4/np_coreutils.m4 +++ b/m4/np_coreutils.m4 | |||
@@ -6,8 +6,12 @@ m4_pattern_forbid([^np_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl | |||
6 | m4_pattern_forbid([^jm_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl | 6 | m4_pattern_forbid([^jm_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl |
7 | m4_pattern_forbid([^gl_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl | 7 | m4_pattern_forbid([^gl_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl |
8 | 8 | ||
9 | dnl These are all m4 things that need to be called | ||
10 | dnl Usually in coreutils' prereq.m4, but this is a subset that we need | ||
9 | AC_DEFUN([np_COREUTILS], | 11 | AC_DEFUN([np_COREUTILS], |
10 | [ | 12 | [ |
13 | AC_REQUIRE([gl_GETOPT]) | ||
14 | AC_REQUIRE([AM_STDBOOL_H]) | ||
11 | AC_REQUIRE([jm_AFS]) | 15 | AC_REQUIRE([jm_AFS]) |
12 | AC_REQUIRE([gl_EXITFAIL]) | 16 | AC_REQUIRE([gl_EXITFAIL]) |
13 | AC_REQUIRE([gl_XALLOC]) | 17 | AC_REQUIRE([gl_XALLOC]) |