Changeset 922 for trunk/configure.ac


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

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

File:
1 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"
Note: See TracChangeset for help on using the changeset viewer.