Changeset 1156 for trunk/configure.ac


Ignore:
Timestamp:
Feb 26, 2008, 9:46:49 AM (13 years ago)
Author:
Markus Ringnér
Message:

Refs. #335, fixed for KNN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1148 r1156  
    137137  [quiet_nan=no])
    138138AC_MSG_RESULT($quiet_nan)
     139# Check for infinity support for doubles in OS
     140# At run-time, but this has the disadvantage that yat cannot be built 
     141# for cross-compilation
     142AC_MSG_CHECKING([if std::numeric_limits<>::has_infinity is true])
     143AC_RUN_IFELSE(
     144  [AC_LANG_PROGRAM(
     145    [#include <limits>],
     146    [return !std::numeric_limits<double>::has_infinity])],
     147  [has_infinity=yes],
     148  [has_infinity=no])
     149AC_MSG_RESULT($has_infinity)
     150
    139151
    140152# yat specific settings
     
    182194  Yat will not work on this system!])
    183195fi
     196
     197# No support for infinity is fatal -- sub-sequent compilation, or execution
     198# of created binary, will fail.
     199if test "${has_infinity}" = "no" ; then
     200  all_reqs_ok="false"
     201  AC_MSG_WARN([
     202  Support for infinity required.
     203  Yat will not work on this system!])
     204fi
     205
    184206
    185207# Non-existing BLAS is fatal -- sub-sequent compilation will fail.
Note: See TracChangeset for help on using the changeset viewer.