From aee8772d8c711615cec7e68666cf91a90f3e5a3c Mon Sep 17 00:00:00 2001
From: Hilko Bengen <bengen@hilluzination.de>
Date: Fri, 12 Aug 2011 01:30:52 +0200
Subject: [PATCH] More changes needed separate builddir

Here's the fix for perl. Both in-tree and out-of-tree build and install
worked.

-Hilko
---
 perl/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/perl/Makefile.am b/perl/Makefile.am
index ddc40b7..1722bcf 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -46,6 +46,7 @@ all: Makefile-pl src_deps
 	$(MAKE) -f Makefile-pl
 
 Makefile-pl: Makefile.PL
+	-[ $(srcdir) != $(builddir) ] && cp -rsu $(abs_srcdir)/. $(builddir)/.
 	perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
 
 # No!  Otherwise it is deleted before the clean-local rule runs.
-- 
1.8.3.1