conditional compilation isnan isinf
This commit is contained in:
parent
26715e7738
commit
246d760653
|
|
@ -665,9 +665,11 @@ AC_CHECK_DECLS([isnan], [], [], [[#include <math.h>]])
|
|||
if test "x$ac_cv_have_decl_isinf" != xyes; then
|
||||
AC_CHECK_FUNC([isinf])
|
||||
fi
|
||||
AM_CONDITIONAL([HAVE_DECL_ISINF_WANTED], [test "x$ac_cv_have_decl_isinf" = xyes])
|
||||
if test "x$ac_cv_have_decl_isnan" != xyes; then
|
||||
AC_CHECK_FUNC([isnan])
|
||||
fi
|
||||
AM_CONDITIONAL([HAVE_DECL_ISNAN_WANTED], [test "x$ac_cv_have_decl_isnan" = xyes])
|
||||
|
||||
# If user enables garbage collection, look for garbage collector
|
||||
if test "x$TCL_PACKAGE_PATH" = x; then
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@ libmathmisc_la_SOURCES = \
|
|||
bernoull.c \
|
||||
erfc.c \
|
||||
equality.c \
|
||||
isinf.c \
|
||||
isnan.c \
|
||||
logb.c \
|
||||
scalb.c \
|
||||
norm.h \
|
||||
|
|
@ -18,6 +16,15 @@ libmathmisc_la_SOURCES = \
|
|||
randnumb.c
|
||||
|
||||
|
||||
if !HAVE_DECL_ISINF_WANTED
|
||||
libmathmisc_la_SOURCES += isinf.c
|
||||
endif
|
||||
|
||||
if !HAVE_DECL_ISNAN_WANTED
|
||||
libmathmisc_la_SOURCES += isnan.c
|
||||
endif
|
||||
|
||||
|
||||
EXTRA_DIST = test_accuracy.c test_erfc.c
|
||||
|
||||
AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(top_srcdir)/src/include
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
#include "ngspice/ngspice.h"
|
||||
|
||||
#if !HAVE_DECL_ISINF
|
||||
#ifndef HAVE_ISINF
|
||||
#if defined(HAVE_FINITE)
|
||||
|
||||
|
|
@ -30,4 +29,3 @@ isinf (const double x)
|
|||
#else /* HAVE_ISINF */
|
||||
int Dummy_Symbol_5;
|
||||
#endif /* HAVE_ISINF */
|
||||
#endif /* HAVE_DECL_ISINF */
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
#include "ngspice/ngspice.h"
|
||||
|
||||
#if !HAVE_DECL_ISNAN
|
||||
#ifndef HAVE_ISNAN
|
||||
|
||||
/* isnan (originally) for SOI devices in MINGW32 hvogt (dev.c) */
|
||||
|
|
@ -48,4 +47,3 @@ isnan(double value)
|
|||
#else /* HAVE_ISNAN */
|
||||
int Dummy_Symbol_4;
|
||||
#endif /* HAVE_ISNAN */
|
||||
#endif /* HAVE_DECL_ISNAN */
|
||||
|
|
|
|||
Loading…
Reference in New Issue