summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87fd231)
raw | patch | inline | side by side (parent: 87fd231)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 27 Dec 2007 15:40:30 +0000 (16:40 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 27 Dec 2007 16:40:43 +0000 (17:40 +0100) |
As the Perl build system around ExtUtils::MakeMaker doesn't know how to
separate source and build directories, all relevant source files have to be
available in the build directory.
This is an alternative patch for the problem reported by Michael Tiernan.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
separate source and build directories, all relevant source files have to be
available in the build directory.
This is an alternative patch for the problem reported by Michael Tiernan.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 75bc00f4271dca477cf1e83b25e2c027e2b47ecd..3c632c700e35ed72181c00c3a079504f435f1921 100644 (file)
--- a/configure.in
+++ b/configure.in
with_perl_bindings="yes ($PERL_BINDINGS_OPTIONS)"
fi
+if test ".." != "$ac_top_srcdir"
+then
+ # we're not building from the source tree
+ for file in \
+ bindings/perl/Collectd/Makefile.PL \
+ bindings/perl/Collectd/Unixsock.pm \
+ bindings/perl/Collectd.pm \
+ bindings/perl/Makefile.PL
+ do
+ dir=`dirname $file`
+ mkdir -p $dir
+ cp src/$ac_top_srcdir/$file $file
+ done
+fi
+
cat <<EOF;
Configuration: