Browse Source
* src/float/base/cl_ieee.cc: try to do magic to the FPU only if
* src/float/base/cl_ieee.cc: try to do magic to the FPU only if
_FPU_IEEE is really defined. * include/cln/modules.h: change assembler labels from `label' to `label:' on hppa, needed by Linux (see comment). * autoconf/acinclude.m4: new file (for storing CLN-specific macros). * Makefile.devel: adjusted. * autoconf/aclocal.m4: regenerate. * src/base/low/cl_low_mul.cc: moved POD variables that are declared extern "C" elsewhere out of the namespace. * src/base/low/cl_low_div.cc: Likewise.master
8 changed files with 163 additions and 85 deletions
-
13ChangeLog
-
15Makefile.devel
-
41autoconf/acinclude.m4
-
124autoconf/aclocal.m4
-
6include/cln/modules.h
-
11src/base/low/cl_low_div.cc
-
11src/base/low/cl_low_mul.cc
-
27src/float/base/cl_ieee.cc
@ -1,3 +1,16 @@ |
|||
2000-07-22 Richard Kreckel <kreckel@ginac.de> |
|||
|
|||
* src/float/base/cl_ieee.cc: try to do magic to the FPU only if |
|||
_FPU_IEEE is really defined. |
|||
* include/cln/modules.h: change assembler labels from `label' to |
|||
`label:' on hppa, needed by Linux (see comment). |
|||
* autoconf/acinclude.m4: new file (for storing CLN-specific macros). |
|||
* Makefile.devel: adjusted. |
|||
* autoconf/aclocal.m4: regenerate. |
|||
* src/base/low/cl_low_mul.cc: moved POD variables that are declared |
|||
extern "C" elsewhere out of the namespace. |
|||
* src/base/low/cl_low_div.cc: Likewise. |
|||
|
|||
2000-06-08 Bruno Haible <haible@clisp.cons.org> |
|||
|
|||
* autoconf/config.{guess,sub}: Update to GNU version 2001-05-11. |
@ -0,0 +1,41 @@ |
|||
# Is the gmp header file new enough? (should be implemented with an argument) |
|||
AC_DEFUN(CL_GMP_H_VERSION, |
|||
[AC_CACHE_CHECK([for recent enough gmp.h], cl_cv_new_gmp_h, [ |
|||
AC_TRY_CPP([#include <gmp.h> |
|||
#if !defined(__GNU_MP_VERSION) || (__GNU_MP_VERSION < 3) |
|||
#error "ancient gmp.h" |
|||
#endif], |
|||
cl_cv_new_gmp_h="yes", cl_cv_new_gmp_h="no") |
|||
])])dnl |
|||
|
|||
# Does libgmp provide some functionality introduced in version 3.0? |
|||
AC_DEFUN(CL_GMP_CHECK, |
|||
[AC_CACHE_CHECK([for working libgmp], cl_cv_new_libgmp, [ |
|||
SAVELIBS=$LIBS |
|||
LIBS="$LIBS -lgmp" |
|||
AC_TRY_LINK([#include <gmp.h>],[mpn_divexact_by3(0,0,0)], |
|||
cl_cv_new_libgmp="yes", cl_cv_new_libgmp="no"; LIBS=$SAVELIBS) |
|||
])]) |
|||
|
|||
# What is sizeof(mp_limb_t)? (It has to match sizeof(uintD) later.) |
|||
AC_DEFUN(CL_GMP_SET_UINTD, |
|||
[AC_CACHE_CHECK([how large gmp demands uintD to be], cl_cv_gmp_set_uintd, [ |
|||
AC_TRY_RUN([#include <stdio.h> |
|||
#include <gmp.h> |
|||
int main() { |
|||
FILE *f=fopen("conftestval", "w"); |
|||
if (!f) return(1); |
|||
if (sizeof(mp_limb_t) > sizeof(long)) |
|||
fprintf(f, "long long"); |
|||
else if (sizeof(mp_limb_t) == sizeof(long)) |
|||
fprintf(f, "long"); |
|||
else if (sizeof(mp_limb_t) == sizeof(int)) |
|||
fprintf(f, "int"); |
|||
else return(1); |
|||
return(0); |
|||
}], cl_cv_gmp_set_uintd=`cat conftestval`; \ |
|||
cl_gmp_demands="GMP_DEMANDS_UINTD_`echo ${cl_cv_gmp_set_uintd} | sed -e 'y/ gilnot/_GILNOT/'`"; |
|||
AC_DEFINE_UNQUOTED($cl_gmp_demands), |
|||
AC_MSG_ERROR([CLN can't handle the result]),dnl |
|||
AC_MSG_ERROR([cross-compiling - cannot determine])) |
|||
])]) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue