Changeset 922


Ignore:
Timestamp:
Oct 1, 2007, 8:22:52 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Fixes #190. configure now checks for quite Nan. Check for this removed in test program.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r916 r922  
    3939AM_CONFIG_HEADER([config.h])
    4040AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION,$PACKAGE_BUGREPORT)
     41
     42# Set default programming language
     43AC_LANG(C++)
    4144
    4245# Checks for programs.
     
    8386AC_SUBST(MATH_LIB)
    8487
     88# check for quiet_NaN support in OS
     89AC_MSG_CHECKING([for std::numeric_limits<>::quiet_NaN()])
     90AC_COMPILE_IFELSE(
     91  [AC_LANG_PROGRAM(
     92    [#include <limits>
     93     extern void f(double);],
     94    [f(std::numeric_limits<double>::quiet_NaN())])],
     95  [quiet_nan=yes],
     96  [quiet_nan=no])
     97AC_MSG_RESULT($quiet_nan)
     98if test "${quiet_nan}" = "no" ; then
     99  AC_MSG_FAILURE([
     100    Support for quiet NAN required.
     101    Yat will not work on this system!])
     102fi
     103
    85104# yat specific settings
    86105YAT_LIB="libyat.la"
  • trunk/test/data_lookup_1d_test.cc

    r865 r922  
    5353  }
    5454 
    55 
    5655  *error << "Testing Lookup Classes" << std::endl;
    5756  bool ok = true;
    58 
    59  
    60 
    61   if(!std::numeric_limits<double>::has_quiet_NaN) {
    62     *error << "Error: a compiler without quiet_NaN is used!\n"
    63      << "This will likely also mess up a lot of other yat tests\n";
    64     ok=false;
    65     return end_test(error,ok);
    66   }
    67 
    68 
    6957
    7058  *error << "Testing DataLookup1D" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.