Changeset 2305 for trunk/coin.m4


Ignore:
Timestamp:
Jun 18, 2011 10:48:35 AM (9 years ago)
Author:
stefan
Message:

should be safe not to make the prefix optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r2304 r2305  
    22622262AC_COIN_CHECK_CXX_CHEADER(ieeefp)
    22632263
    2264 m4_toupper($1)_C_FINITE=
    2265 AC_CHECK_DECL([finite],[m4_toupper($1)_C_FINITE=finite],,[
     2264COIN_C_FINITE=
     2265AC_CHECK_DECL([finite],[COIN_C_FINITE=finite],,[
    22662266#ifdef HAVE_CMATH
    22672267# include <cmath>
     
    22852285# endif
    22862286#endif])
    2287 if test -z "$m4_toupper($1)_C_FINITE"; then
    2288   AC_CHECK_DECL([_finite],[m4_toupper($1)_C_FINITE=_finite],,[
     2287if test -z "$COIN_C_FINITE"; then
     2288  AC_CHECK_DECL([_finite],[COIN_C_FINITE=_finite],,[
    22892289#ifdef HAVE_CMATH
    22902290# include <cmath>
     
    23082308# endif
    23092309#endif])
    2310   if test -z "$m4_toupper($1)_C_FINITE"; then
    2311     AC_CHECK_DECL([isfinite],[m4_toupper($1)_C_FINITE=isfinite],,[
     2310  if test -z "$COIN_C_FINITE"; then
     2311    AC_CHECK_DECL([isfinite],[COIN_C_FINITE=isfinite],,[
    23122312#ifdef HAVE_CMATH
    23132313# include <cmath>
     
    23332333  fi
    23342334fi
    2335 if test -z "$m4_toupper($1)_C_FINITE"; then
     2335if test -z "$COIN_C_FINITE"; then
    23362336  AC_MSG_WARN(Cannot find C-function for checking Inf.)
    23372337else
    2338   AC_DEFINE_UNQUOTED(m4_toupper($1)_C_FINITE,[$m4_toupper($1)_C_FINITE],
     2338  AC_DEFINE_UNQUOTED(COIN_C_FINITE,[$COIN_C_FINITE],
    23392339                     [Define to be the name of C-function for Inf check])
    23402340fi
     
    23492349# This macro checks for a usable implementation of a function to check
    23502350# whether a given floating point number represents NaN.
    2351 # If a function is found, then the macro defines the symbol
    2352 # toupper($1)_C_ISNAN to the name of this function.
     2351# If a function is found, then the macro defines the symbol COIN_C_ISNAN
     2352# to the name of this function.
    23532353
    23542354AC_DEFUN([AC_COIN_CHECK_ISNAN],[
     
    23602360AC_COIN_CHECK_CXX_CHEADER(ieeefp)
    23612361
    2362 m4_toupper($1)_C_ISNAN=
    2363 AC_CHECK_DECL([isnan],[m4_toupper($1)_C_ISNAN=isnan],,[
     2362COIN_C_ISNAN=
     2363AC_CHECK_DECL([isnan],[COIN_C_ISNAN=isnan],,[
    23642364#ifdef HAVE_CMATH
    23652365# include <cmath>
     
    23882388# in the test to allow C++ to do overload resolution.
    23892389
    2390 if test -z "$m4_toupper($1)_C_ISNAN"; then
    2391   AC_CHECK_DECL([std::isnan(42.42)],[m4_toupper($1)_C_ISNAN=std::isnan],,[
     2390if test -z "$COIN_C_ISNAN"; then
     2391  AC_CHECK_DECL([std::isnan(42.42)],[COIN_C_ISNAN=std::isnan],,[
    23922392#ifdef HAVE_CMATH
    23932393# include <cmath>
     
    24132413fi
    24142414
    2415 if test -z "$m4_toupper($1)_C_ISNAN"; then
    2416   AC_CHECK_DECL([_isnan],[m4_toupper($1)_C_ISNAN=_isnan],,[
     2415if test -z "$COIN_C_ISNAN"; then
     2416  AC_CHECK_DECL([_isnan],[COIN_C_ISNAN=_isnan],,[
    24172417#ifdef HAVE_CMATH
    24182418# include <cmath>
     
    24372437#endif])
    24382438fi
    2439 if test -z "$m4_toupper($1)_C_ISNAN"; then
    2440   AC_CHECK_DECL([isnand],[m4_toupper($1)_C_ISNAN=isnand],,[
     2439if test -z "$COIN_C_ISNAN"; then
     2440  AC_CHECK_DECL([isnand],[COIN_C_ISNAN=isnand],,[
    24412441#ifdef HAVE_CMATH
    24422442# include <cmath>
     
    24612461#endif])
    24622462fi
    2463 if test -z "$m4_toupper($1)_C_ISNAN"; then
     2463if test -z "$COIN_C_ISNAN"; then
    24642464  AC_MSG_WARN(Cannot find C-function for checking NaN.)
    24652465else
    2466   AC_DEFINE_UNQUOTED(m4_toupper($1)_C_ISNAN,[$m4_toupper($1)_C_ISNAN],
     2466  AC_DEFINE_UNQUOTED(COIN_C_ISNAN,[$COIN_C_ISNAN],
    24672467                     [Define to be the name of C-function for NaN check])
    24682468fi
Note: See TracChangeset for help on using the changeset viewer.