This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] gsl-1.4.0: 64bit fixes


the following patch fix gsl build for amd64:
--- gsl-1.4/configure.ac.amd64	2003-08-14 13:38:44.000000000 +0200
+++ gsl-1.4/configure.ac	2003-09-03 19:36:44.000000000 +0200
@@ -118,9 +118,12 @@ if test "x$LIBS" = "x" ; then
   AC_CHECK_LIB(m, cos)
 fi
 
+dnl [gb] <fenv.h> requires _ISOC99_SOURCE defined for feenableexcept()
+CFLAGS="$CFLAGS -D_GNU_SOURCE"
+
 dnl Remember to put a definition in acconfig.h for each of these
-AC_CHECK_DECLS(feenableexcept,,,[#include <math.h>]) 
-AC_CHECK_DECLS(fesettrapenable,,,[#include <math.h>]) 
+AC_CHECK_DECLS(feenableexcept,,,[#include <fenv.h>]) 
+AC_CHECK_DECLS(fesettrapenable,,,[#include <fenv.h>]) 
 AC_CHECK_DECLS(hypot,,,[#include <math.h>]) 
 AC_CHECK_DECLS(expm1,,,[#include <math.h>])
 AC_CHECK_DECLS(acosh,,,[#include <math.h>])
@@ -180,7 +183,10 @@ AC_CACHE_CHECK([for extended floating po
     *68k*-*-*)
         ac_cv_c_extended_fp=yes
         ;;      
-    *86*-*-*)
+    *86-*-*)
+        ac_cv_c_extended_fp=yes
+        ;;      
+    x86_64-*-*)
         ac_cv_c_extended_fp=yes
         ;;      
     *) 
(patch by Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]