comparison configure.ac @ 11229:2f36145742c9

eliminate special cases for SCO systems
author John W. Eaton <jwe@octave.org>
date Wed, 10 Nov 2010 20:36:16 -0500
parents 29d515b9d30c
children 88e4ea8b2c19
comparison
equal deleted inserted replaced
11228:c7107af0cb5b 11229:2f36145742c9
1730 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf 1730 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf
1731 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that 1731 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that
1732 dnl fails, we try again by including math.h and invoking the function 1732 dnl fails, we try again by including math.h and invoking the function
1733 dnl with an argument. 1733 dnl with an argument.
1734 1734
1735 ### I am told that Inf and NaN don't work on m68k HP sytems, and that 1735 ### I am told that Inf and NaN don't work on m68k HP sytems.
1736 ### on SCO systems, isnan and isinf don't work, but they can be
1737 ### replaced by something that does.
1738 1736
1739 case "$canonical_host_type" in 1737 case "$canonical_host_type" in
1740 m68k-hp-hpux*) 1738 m68k-hp-hpux*)
1741 ;;
1742 *-*-sco*)
1743 AC_MSG_NOTICE([defining SCO to be 1])
1744 AC_DEFINE(SCO, 1, [Define if using an SCO system.])
1745 AC_MSG_NOTICE([forcing HAVE_ISINF for SCO])
1746 AC_DEFINE(HAVE_ISINF, 1, [Define if you have isinf().])
1747 AC_MSG_NOTICE([forcing HAVE_ISNAN for SCO])
1748 AC_DEFINE(HAVE_ISNAN, 1, [Define if you have isnan().])
1749 ;; 1739 ;;
1750 *) 1740 *)
1751 AC_CHECK_FUNCS(finite isnan isinf signbit) 1741 AC_CHECK_FUNCS(finite isnan isinf signbit)
1752 AC_CHECK_FUNCS(_finite _isnan) 1742 AC_CHECK_FUNCS(_finite _isnan)
1753 AC_CHECK_DECLS(signbit, , , [#include <math.h>]) 1743 AC_CHECK_DECLS(signbit, , , [#include <math.h>])