--- debian/rules	2009-08-08 03:24:21.000000000 +0900
+++ debian/rules	2009-08-08 03:25:10.000000000 +0900
@@ -48,6 +48,7 @@
 	archconfflags := $(archconfflags) F77="gfortran -ff2c"
 endif
 
+LONG_DOUBLE=0
 SETCFLAGS := CFLAGS='$(CFLAGS)'
 
 # common configure options
@@ -74,6 +75,7 @@
 		$(MAKE) && \
 		( cd tests ; $(MAKE) smallcheck ) && \
 		$(MAKE) install DESTDIR=`pwd`/debian/tmp-long-double; \
+		LONG_DOUBLE=1; \
 	fi
 	touch build-arch
 
@@ -126,7 +128,9 @@
 	dh_installdirs -a
 	dh_install -a --sourcedir=debian/tmp-single
 	dh_install -a --sourcedir=debian/tmp-double
-	dh_install -a --sourcedir=debian/tmp-long-double
+	if [ $(LONG_DOUBLE) -eq 1 ] ; then \
+		dh_install -a --sourcedir=debian/tmp-long-double; \
+	fi
 	dh_installman -a
 	dh_strip -a
 	dh_compress -a -X.c -X.pl -X.am -X.in
