aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile.am
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-11-03 15:40:33 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-11-03 15:40:33 +0000
commita5a4996a639101859bc183c85b33a6e04f5133f9 (patch)
tree67a3017ae2353ae1f9d39a8461d85314d22efaef /lib/Makefile.am
parentfea92b5c044330a3c6dcc3438bebb9c18ccfc971 (diff)
downloadmonitoring-plugins-a5a4996a639101859bc183c85b33a6e04f5133f9.tar.gz
Add alloca files, required for *BSD
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1534 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r--lib/Makefile.am14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 80455690..7edac1f2 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -38,8 +38,9 @@ other_coreutils_files = \
xmalloc.c
-libcoreutils_a_LIBADD = $(LIBOBJS)
+libcoreutils_a_LIBADD = $(LIBOBJS) $(ALLOCA)
libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD)
+lib_OBJECTS = $(libcoreutils_a_OBJECTS)
libnagiosplug_a_SOURCES = snprintf.c utils_base.c utils_disk.c
EXTRA_DIST += utils_base.h utils_disk.h
@@ -61,6 +62,17 @@ stdbool.h: stdbool_.h
sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t
mv $@t $@
+BUILT_SOURCES += $(ALLOCA_H)
+EXTRA_DIST += alloca_.h
+
+# We need the following in order to create an <alloca.h> when the system
+# doesn't have one that works with the given compiler
+all-local $(lib_OBJECTS): $(ALLOCA_H)
+alloca.h: alloca_.h
+ cp $(srcdir)/alloca_.h $@-t
+ mv $@-t $@
+MOSTLYCLEANFILES += alloca.h alloca.h-t
+
BUILT_SOURCES += $(GETOPT_H)
EXTRA_DIST += getopt_.h getopt_int.h