Description: debianization
 Meant to maintain a minimal debian/rules, to fix warnings,
 to address Debian specific stuff in general.
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2016-10-14

--- a/Makefile.am
+++ b/Makefile.am
@@ -12,7 +12,8 @@
 	foreign \
 	std-options
 
-#AM_DISTCHECK_CONFIGURE_FLAGS =
+AM_DISTCHECK_CONFIGURE_FLAGS ?= \
+	--with-cxsc=no
 
 SUBDIRS = src lib tst
 
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -10,14 +10,14 @@
 GMP_CFLAGS=@GMP_CFLAGS@
 GMP_LDFLAGS=@GMP_LDFLAGS@
 
-libdir = $(GAPROOT)/pkg/$(PACKAGE)/bin/$(GAPARCH)
+gaplibdir = $(libdir)/gap/pkg/$(PACKAGE)/bin
 
-lib_LTLIBRARIES = float.la
+gaplib_LTLIBRARIES = float.la
 
 float_la_SOURCES = floatconfig.h floattypes.h float.c
 float_la_CPPFLAGS = $(GAP_CPPFLAGS)
 float_la_CFLAGS =
-float_la_LDFLAGS = -avoid-version -module
+float_la_LDFLAGS = -avoid-version -module -Wl,--version-script,$(top_srcdir)/debian/float.map
 float_la_LIBADD =
 if WITH_MPFR_IS_YES
 float_la_SOURCES += mpfr.c
--- a/tst/testall.g
+++ b/tst/testall.g
@@ -12,7 +12,7 @@
 Test(Filename(dirs,"arithmetic.tst"),rec(compareFunction:="uptowhitespace"));
 field := MPC_PSEUDOFIELD;
 Test(Filename(dirs,"polynomials.tst"),rec(compareFunction:="uptowhitespace"));
-SetFloats(CXSC);
-Test(Filename(dirs,"arithmetic.tst"),rec(compareFunction:="uptowhitespace"));
-field := CXSC_PSEUDOFIELD;
-Test(Filename(dirs,"polynomials.tst"),rec(compareFunction:="uptowhitespace"));
+##SetFloats(CXSC);
+##Test(Filename(dirs,"arithmetic.tst"),rec(compareFunction:="uptowhitespace"));
+##field := CXSC_PSEUDOFIELD;
+##Test(Filename(dirs,"polynomials.tst"),rec(compareFunction:="uptowhitespace"));
