diff options
Diffstat (limited to 'devel/m4/patches/patch-al')
-rw-r--r-- | devel/m4/patches/patch-al | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/devel/m4/patches/patch-al b/devel/m4/patches/patch-al deleted file mode 100644 index e1c76c01262..00000000000 --- a/devel/m4/patches/patch-al +++ /dev/null @@ -1,47 +0,0 @@ -$NetBSD: patch-al,v 1.1 2008/08/23 16:07:51 wiz Exp $ - ---- m4/math_h.m4.orig 2008-01-27 08:05:11.000000000 +0900 -+++ m4/math_h.m4 2008-07-05 06:04:14.000000000 +0900 -@@ -8,6 +8,31 @@ - [ - AC_REQUIRE([gl_MATH_H_DEFAULTS]) - gl_CHECK_NEXT_HEADERS([math.h]) -+ AC_CACHE_CHECK([whether NAN macro works], [gl_cv_header_math_nan_works], -+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <math.h>]], -+ [[/* Solaris 10 has a broken definition of NAN. Other platforms -+ fail to provide NAN, or provide it only in C99 mode; this -+ test only needs to fail when NAN is provided but wrong. */ -+ float f = 1.0f; -+#ifdef NAN -+ f = NAN; -+#endif -+ return f == 0;]])], -+ [gl_cv_header_math_nan_works=yes], -+ [gl_cv_header_math_nan_works=no])]) -+ if test $gl_cv_header_math_nan_works = no; then -+ REPLACE_NAN=1 -+ fi -+ AC_CACHE_CHECK([whether HUGE_VAL works], [gl_cv_header_math_huge_val_works], -+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <math.h>]], -+ [[/* Solaris 10 has a broken definition of HUGE_VAL. */ -+ double d = HUGE_VAL; -+ return d == 0;]])], -+ [gl_cv_header_math_huge_val_works=yes], -+ [gl_cv_header_math_huge_val_works=no])]) -+ if test $gl_cv_header_math_huge_val_works = no; then -+ REPLACE_HUGE_VAL=1 -+ fi - ]) - - AC_DEFUN([gl_MATH_MODULE_INDICATOR], -@@ -56,8 +81,10 @@ - REPLACE_FLOORL=0; AC_SUBST([REPLACE_FLOORL]) - REPLACE_FREXP=0; AC_SUBST([REPLACE_FREXP]) - REPLACE_FREXPL=0; AC_SUBST([REPLACE_FREXPL]) -+ REPLACE_HUGE_VAL=0; AC_SUBST([REPLACE_HUGE_VAL]) - REPLACE_ISFINITE=0; AC_SUBST([REPLACE_ISFINITE]) - REPLACE_LDEXPL=0; AC_SUBST([REPLACE_LDEXPL]) -+ REPLACE_NAN=0; AC_SUBST([REPLACE_NAN]) - REPLACE_ROUND=0; AC_SUBST([REPLACE_ROUND]) - REPLACE_ROUNDF=0; AC_SUBST([REPLACE_ROUNDF]) - REPLACE_ROUNDL=0; AC_SUBST([REPLACE_ROUNDL]) |