diff options
Diffstat (limited to 'mpfr/acinclude.m4')
-rw-r--r-- | mpfr/acinclude.m4 | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/mpfr/acinclude.m4 b/mpfr/acinclude.m4 index 1cc53c19b..e5f613142 100644 --- a/mpfr/acinclude.m4 +++ b/mpfr/acinclude.m4 @@ -8,7 +8,7 @@ then then LDADD="$LDADD $1/lib$2.a" else - AC_MSG_ERROR($2 not found) + AC_MSG_ERROR($1/lib$2.a not found) fi AC_MSG_RESULT(yes) else @@ -53,7 +53,7 @@ case $host in ;; esac -AC_REPLACE_FUNCS(strcasecmp) +AC_REPLACE_FUNCS(strcasecmp strncasecmp) dnl Check for IEEE-754 switches on Alpha case $host in @@ -90,6 +90,15 @@ if test "$mpfr_cv_have_fesetround" = "yes"; then AC_DEFINE(MPFR_HAVE_FESETROUND,1,[Define if you have the `fesetround' function via the <fenv.h> header file.]) fi +dnl Check for isnan +AC_CACHE_CHECK([for isnan], mpfr_cv_have_isnan, [ +AC_TRY_LINK([#include <math.h>], [isnan(0.0);], + mpfr_cv_have_isnan=yes, mpfr_cv_have_isnan=no) +]) +if test "$mpfr_cv_have_isnan" = "yes"; then + AC_DEFINE(MPFR_HAVE_ISNAN,1,[Define if you have the `isnan' function via the <math.h> header file.]) +fi + dnl Check random functions AC_CHECK_FUNCS(lrand48) @@ -165,4 +174,13 @@ if test "$mpfr_cv_have_denorms" = "yes"; then AC_DEFINE(HAVE_DENORMS,1,[Define if denormalized floats work.]) fi +dnl Check if HUGE_VAL is supported without the need of a specific library +AC_CACHE_CHECK([for HUGE_VAL], mpfr_cv_have_huge_val, [ +AC_TRY_LINK([#include <math.h>], [HUGE_VAL;], + mpfr_cv_have_huge_val=yes, mpfr_cv_have_huge_val=no) +]) +if test "$mpfr_cv_have_huge_val" = "yes"; then + AC_DEFINE(HAVE_HUGE_VAL,1,[Define if HUGE_VAL can be used without the need of a specific library.]) +fi + ]) |