Changeset 924
- Timestamp:
- Oct 2, 2007, 11:47:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r923 r924 84 84 85 85 # check for quiet_NaN support in OS 86 # At compile time, but this may not work if quiet_NaN exists and returns 87 # an incorrect value 86 88 AC_MSG_CHECKING([for std::numeric_limits<>::quiet_NaN()]) 87 89 AC_COMPILE_IFELSE( … … 90 92 extern void f(double);], 91 93 [f(std::numeric_limits<double>::quiet_NaN())])], 94 [quiet_nan=yes], 95 [quiet_nan=no]) 96 AC_MSG_RESULT($quiet_nan) 97 if test "${quiet_nan}" = "no" ; then 98 AC_MSG_FAILURE([ 99 Support for quiet NAN required. 100 Yat will not work on this system!]) 101 fi 102 # At run-time, but this has the disadvantage that yat cannot be built 103 # for cross-compilation 104 AC_MSG_CHECKING([if std::numeric_limits<>::has_quiet_NaN is true]) 105 AC_RUN_IFELSE( 106 [AC_LANG_PROGRAM( 107 [#include <limits>], 108 [return !std::numeric_limits<double>::has_quiet_NaN])], 92 109 [quiet_nan=yes], 93 110 [quiet_nan=no])
Note: See TracChangeset
for help on using the changeset viewer.