public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* HP-UX 11.00 patches for 0.9.3
@ 2001-12-19 13:20 gsl-discuss
  2001-12-19 13:20 ` Brian Gough
  0 siblings, 1 reply; 3+ messages in thread
From: gsl-discuss @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

HP-UX 11.00 has isinf() and isfinite() as a macro in <math.h>. Also
replaced the OS/2 hack with something hopefully better (untested).

BTW, any plans to upgrade to autoconf 2.5x?

-- 
albert chin (china@thewrittenword.com)

-- snip snip
--- acconfig.h.orig	Tue Oct  2 10:56:05 2001
+++ acconfig.h	Tue Oct  2 11:01:05 2001
@@ -108,7 +108,11 @@
 #endif
 
 #ifndef HAVE_FINITE
+#ifdef HAVE_ISFINITE
+#define finite isfinite
+#else
 #define finite gsl_finite
+#endif
 #endif
 
 #ifdef __GNUC__
--- configure.in.orig	Tue Oct  2 09:16:59 2001
+++ configure.in	Tue Oct  2 12:14:33 2001
@@ -5,7 +5,6 @@
 AM_CONFIG_HEADER(config.h)
 
 dnl things required by automake
-AC_ARG_PROGRAM
 AC_PROG_MAKE_SET
 
 dnl Check for which system.
@@ -106,19 +105,28 @@
 AC_CHECK_FUNCS(acosh)
 AC_CHECK_FUNCS(asinh)
 AC_CHECK_FUNCS(atanh)
-AC_CHECK_FUNCS(isinf)
-AC_CHECK_FUNCS(finite)
 
-case "$host" in
-    *-*-os2_emx)
-       AC_MSG_RESULT([os/2 assuming isnan is a macro])
-       AC_DEFINE(HAVE_ISNAN,1)
-       AC_SUBST(HAVE_ISNAN)
-       ;;
-    *)
-       AC_CHECK_FUNCS(isnan)
-       ;;
-esac
+AC_CHECK_FUNCS(isinf, ,[
+    AC_MSG_CHECKING([for isinf with <math.h>])
+    AC_TRY_LINK([#include <math.h>], [float f = 0.0; isinf(f)],[
+        AC_MSG_RESULT(yes)
+        AC_DEFINE(HAVE_ISINF)],
+        AC_MSG_RESULT(no))])
+
+AC_CHECK_FUNCS(finite, ,[
+    AC_CHECK_FUNCS(isfinite, ,[
+        AC_MSG_CHECKING([for isfinite with <math.h>])
+        AC_TRY_LINK([#include <math.h>], [float f = 0.0; isfinite(f)],[
+            AC_MSG_RESULT(yes)
+            AC_DEFINE(HAVE_ISFINITE)],
+            AC_MSG_RESULT(no))])])
+
+AC_CHECK_FUNCS(isnan, ,[
+    AC_MSG_CHECKING([for isnan with <math.h>])
+    AC_TRY_LINK([#include <math.h>], [float f = 0.0; isnan(f)],[
+        AC_MSG_RESULT(yes)
+        AC_DEFINE(HAVE_ISNAN)],
+        AC_MSG_RESULT(no))])
 
 dnl OpenBSD has a broken implementation of log1p.
 case "$host" in

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HP-UX 11.00 patches for 0.9.3
  2001-12-19 13:20 HP-UX 11.00 patches for 0.9.3 gsl-discuss
@ 2001-12-19 13:20 ` Brian Gough
  2001-12-19 13:20   ` gsl-discuss
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Gough @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

gsl-discuss@lists.thewrittenword.com writes:
 > HP-UX 11.00 has isinf() and isfinite() as a macro in <math.h>. Also
 > replaced the OS/2 hack with something hopefully better (untested).

Thanks, I've added that with a few adjustments.  I didn't see why
AC_ARG_PROGRAM was deleted so I kept that in.

 > BTW, any plans to upgrade to autoconf 2.5x?

No, due to the incompatibility with perl 5.004. 


Brian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HP-UX 11.00 patches for 0.9.3
  2001-12-19 13:20 ` Brian Gough
@ 2001-12-19 13:20   ` gsl-discuss
  0 siblings, 0 replies; 3+ messages in thread
From: gsl-discuss @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

On Wed, Oct 03, 2001 at 11:21:06AM +0100, Brian Gough wrote:
> gsl-discuss@lists.thewrittenword.com writes:
>  > HP-UX 11.00 has isinf() and isfinite() as a macro in <math.h>. Also
>  > replaced the OS/2 hack with something hopefully better (untested).
> 
> Thanks, I've added that with a few adjustments.  I didn't see why
> AC_ARG_PROGRAM was deleted so I kept that in.

Oh, oops. It's not needed. I think it was called by another macro.
Check the output of ./configure --help with and without it.

-- 
albert chin (china@thewrittenword.com)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-19 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 13:20 HP-UX 11.00 patches for 0.9.3 gsl-discuss
2001-12-19 13:20 ` Brian Gough
2001-12-19 13:20   ` gsl-discuss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).