diff options
author | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-13 22:58:30 +0000 |
---|---|---|
committer | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-13 22:58:30 +0000 |
commit | 4db2deda5a75a0b25773aa4ad4e13a40c5f3ed7e (patch) | |
tree | 87140abfa92875e6ac3d94de1530eac1b616417c /libgfortran/configure.ac | |
parent | edc0a75bcec8df8934acc6a24a709f660e04dd14 (diff) | |
download | gcc-4db2deda5a75a0b25773aa4ad4e13a40c5f3ed7e.tar.gz |
* Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
* configure.ac: Add checks for nextafter and nextafterf.
* Makefile.in, config.h.in, configure: Regenerate.
* libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
* intrinsics/rand.c (rand): Use normalize_r4_i4.
* intrinsics/random.c (random_r4): Use normalize_r4_i4.
(random_r8): Use normalize_r8_i8.
* runtime/normalize.c: New file.
testsuite/
* gfortran.fortran-torture/execute/random_2.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83070 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/configure.ac')
-rw-r--r-- | libgfortran/configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index d4278569134..3c9d355f498 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -169,6 +169,9 @@ AC_CHECK_FUNCS(getrusage times) # Check for some C99 functions AC_CHECK_LIB([m],[round],[AC_DEFINE([HAVE_ROUND],[1],["c99 function"])]) AC_CHECK_LIB([m],[roundf],[AC_DEFINE([HAVE_ROUNDF],[1],["c99 function"])]) +# And other IEEE math functions +AC_CHECK_LIB([m],[nextafter],[AC_DEFINE([HAVE_NEXTAFTER],[1],[libm includes nextafter])]) +AC_CHECK_LIB([m],[nextafterf],[AC_DEFINE([HAVE_NEXTAFTERF],[1],[libm includes nextafterf])]) # Let the user override this AC_ARG_ENABLE(cmath, |