Thu Mar 25 04:39:01 2010 UTC ()
Skip broken NaN and infinity handling on VAX. May not strictly be
"correct", but VAX doesn't support NaN and infinity in its floating point,
so this is just to make m4 build on VAX.


(jklos)
diff -r1.28 -r1.29 pkgsrc/devel/m4/distinfo
diff -r0 -r1.13 pkgsrc/devel/m4/patches/patch-aa

cvs diff -r1.28 -r1.29 pkgsrc/devel/m4/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/m4/distinfo 2010/02/26 15:31:42 1.28
+++ pkgsrc/devel/m4/distinfo 2010/03/25 04:39:01 1.29
@@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
1$NetBSD: distinfo,v 1.28 2010/02/26 15:31:42 wiz Exp $ 1$NetBSD: distinfo,v 1.29 2010/03/25 04:39:01 jklos Exp $
2 2
3SHA1 (m4-1.4.14.tar.gz) = 8bf68b7a072d68affaccd281138ec73aca23b954 3SHA1 (m4-1.4.14.tar.gz) = 8bf68b7a072d68affaccd281138ec73aca23b954
4RMD160 (m4-1.4.14.tar.gz) = 80c6a4a7ac22419777fe2890f05dfaaa5c53f946 4RMD160 (m4-1.4.14.tar.gz) = 80c6a4a7ac22419777fe2890f05dfaaa5c53f946
5Size (m4-1.4.14.tar.gz) = 1509355 bytes 5Size (m4-1.4.14.tar.gz) = 1509355 bytes
 6SHA1 (patch-aa) = fc7fc68865763098060ee11f0c13fc57956ec820

File Added: pkgsrc/devel/m4/patches/Attic/patch-aa
$NetBSD: patch-aa,v 1.13 2010/03/25 04:39:01 jklos Exp $

--- lib/isnan.c.orig	2010-03-24 21:31:20.000000000 +0000
+++ lib/isnan.c
@@ -117,7 +117,7 @@ FUNC (DOUBLE x)
 # else
   /* Be careful to not do any floating-point operation on x, such as x == x,
      because x may be a signaling NaN.  */
-#  if defined __SUNPRO_C || defined __DECC || (defined __sgi && !defined __GNUC__)
+#  if defined __SUNPRO_C || defined __DECC || (defined __sgi && !defined __GNUC__) || defined __vax__
   /* The Sun C 5.0 compilers and the Compaq (ex-DEC) 6.4 compilers don't
      recognize the initializers as constant expressions.  The latter compiler
      also fails when constant-folding 0.0 / 0.0 even when constant-folding is