pkgsrc/games/tuxracer/patches/patch-ac
joerg cd51e1745a Fix isnan() and finite() detection, at least the former is supposed to
be a macro. Don't ever copy FILEs, bail out silently if stderr can't
be reopened. Bump revision.
2006-04-28 16:19:08 +00:00

34 lines
1.1 KiB
Text

$NetBSD: patch-ac,v 1.1 2006/04/28 16:19:08 joerg Exp $
--- configure.orig 2006-04-28 15:48:21.000000000 +0000
+++ configure
@@ -1655,24 +1655,13 @@ else
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func();
+#include <math.h>
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-$ac_func();
-#endif
+double foo;
-; return 0; }
+int main() {
+ return $ac_func(foo);
+}
EOF
if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*