Mercurial > hg > octave-nkf
changeset 9805:bb70d16cca3b
fail at configure time if IEEE floating point format is not detected
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 11 Nov 2009 13:46:50 -0500 |
parents | 6fcc4179c178 |
children | 8e345f2fe4d6 |
files | ChangeLog acinclude.m4 liboctave/ChangeLog liboctave/lo-ieee.cc |
diffstat | 4 files changed, 21 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-11 John W. Eaton <jwe@octave.org> + + * acinclude.m4 (OCTAVE_IEEE754_DATA_FORMAT): Fail if IEEE 754 + format is not detected. + 2009-11-11 Shai Ayal <shaiay@users.sourceforge.net> * configure.ac: Remove tests for ftgl.
--- a/acinclude.m4 +++ b/acinclude.m4 @@ -978,6 +978,13 @@ fi if test "$octave_cv_ieee754_data_format" = yes; then AC_DEFINE(HAVE_IEEE754_DATA_FORMAT, 1, [Define if your system uses IEEE 754 data format.]) +else + ## If the format is unknown, then you will probably not have a + ## useful system, so we will abort here. Anyone wishing to + ## experiment with building Octave on a system without IEEE + ## floating point should be capable of removing this check and + ## the one in the octave_ieee_init function in liboctave/lo-ieee.cc. + AC_MSG_ERROR([IEEE 754 data format required for building Octave]) fi ]) dnl
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2009-11-11 John W. Eaton <jwe@octave.org> + + * lo-ieee.cc (octave_ieee_init): Improve comment about systems + without IEEE floating point format. + 2009-11-11 Jaroslav Hajek <highegg@gmail.com> * mx-inlines.cc (mx_inline_map): New template loop.
--- a/liboctave/lo-ieee.cc +++ b/liboctave/lo-ieee.cc @@ -160,7 +160,10 @@ case oct_mach_info::flt_fmt_vax_g: default: // If the format is unknown, then you will probably not have a - // useful system, but we will just issue a warning and go on... + // useful system, so we will abort here. Anyone wishing to + // experiment with building Octave on a system without IEEE + // floating point should be capable of removing this check and + // the configure test. (*current_liboctave_error_handler) ("lo_ieee_init: floating point format is not IEEE! Maybe DLAMCH is miscompiled, or you are using some strange system without IEEE floating point math?"); abort ();