# HG changeset patch # User jwe # Date 791217710 0 # Node ID 2ba812c74caad8d09d95d12e71ffc49f4252a524 # Parent a58bb71b0429dc1bb9ab168d7a8540c0120ce73d [project @ 1995-01-27 14:39:54 by jwe] diff --git a/acconfig.h b/acconfig.h --- a/acconfig.h +++ b/acconfig.h @@ -6,15 +6,6 @@ Leave the following blank line there!! Autoheader needs it. */ -/* Define if you don't have acosh(). */ -#undef ACOSH_MISSING - -/* Define if you don't have asinh(). */ -#undef ASINH_MISSING - -/* Define if you don't have atanh(). */ -#undef ATANH_MISSING - /* Define if your math.h declares struct exception for matherr() */ #undef EXCEPTION_IN_MATH diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -21,7 +21,7 @@ ### along with Octave; see the file COPYING. If not, write to the Free ### Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -AC_REVISION($Revision: 1.89 $) +AC_REVISION($Revision: 1.90 $) AC_PREREQ(2.0) AC_INIT(src/octave.cc) AC_CONFIG_HEADER(config.h kpathsea/c-auto.h) @@ -570,7 +570,9 @@ ;; esac -AC_CHECK_FUNCS(erf erfc lgamma) +### Check for nonstandard but common math functions that we need. + +AC_CHECK_FUNCS(acosh asinh atanh erf erfc lgamma) AC_MSG_CHECKING([for signgam declaration in math.h]) AC_TRY_LINK([#include ], @@ -581,54 +583,6 @@ CFLAGS="$XCFLAGS" -### Check for nonstandard but common trig functions that we need. -### If they are missing, we replace them using functions from the BSD -### math library, and we may need to replace some other functions too. - -AC_REPLACE_FUNCS(acosh asinh atanh) - -if test -n "$LIBOBJS"; then - for func in $LIBOBJS - do - case "$func" in - *acosh.o*) - AC_DEFINE(ACOSH_MISSING, 1) - ;; - *asinh.o*) - AC_DEFINE(ASINH_MISSING, 1) - ;; - *atanh.o*) - AC_DEFINE(ATANH_MISSING, 1) - ;; - esac - done - case $LIBOBJS in - *acosh.o* | *asinh.o*) - AC_REPLACE_FUNCS(copysign) - ;; - esac - case $LIBOBJS in - *acosh.o* | *asinh.o* | *atanh.o*) - AC_REPLACE_FUNCS(log1p) - ;; - esac - case $LIBOBJS in - *log1p*) - AC_REPLACE_FUNCS(log__L) - ;; - esac - case $LIBOBJS in - *log1p*) - AC_REPLACE_FUNCS(finite) - ;; - esac - case $LIBOBJS in - *copysign* | *finite* | *log1p*) - AC_REPLACE_FUNCS(logb scalb) - ;; - esac -fi - ### Checks for OS specific cruft. AC_STRUCT_TM