From: Frank Mori Hess <fmhess@speakeasy.net>
Date: Sun, 20 Jun 2004 02:37:18 +0000 (+0000)
Subject: make distcheck works now with automake 1.8
X-Git-Tag: r0_7_22~29
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7888c4a8e705cded1ac6f233ad2a1465aa26ea86;p=comedilib.git

make distcheck works now with automake 1.8
---

diff --git a/Makefile.am b/Makefile.am
index 8227311..232436e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,11 +5,15 @@ SUBDIRS = lib comedi_calibrate comedi_config man testing demo doc swig \
 #pkgconfigdir = $(libdir)/pkgconfig
 #pkgconfig_DATA = comedilib.pc
 
-EXTRA_DIST = debian m4 comedilib.spec 
+## with automake 1.8, putting the m4 directory in EXTRA_DIST is not needed, and
+## causes 'make distcheck' to fail, by way of 'make distdir' failing when builddir != srcdir 
+## and srcdir is read-only.
+EXTRA_DIST = debian comedilib.spec autogen.sh
 
 ACLOCAL_AMFLAGS = -I m4
 
-DISTCHECK_CONFIGURE_FLAGS = RUBY_PREFIX='$${prefix}'
+## ruby binding is excluded from distcheck because setup.rb doesn't support uninstall
+DISTCHECK_CONFIGURE_FLAGS = RUBY_PREFIX='$${prefix}' --disable-ruby-binding
 
 dist-hook:
 	rm -rf `find $(distdir) -name CVS`