comparison aclocal.m4 @ 8998:a48fba01e4ac

optimize isnan/isinf/isfinite mappers
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 19 Mar 2009 17:46:38 +0100
parents eb63fbe60fab
children 56018fcd28b0
comparison
equal deleted inserted replaced
8997:187a9d9c2f04 8998:a48fba01e4ac
1283 1283
1284 AC_SUBST([FT2_CFLAGS]) 1284 AC_SUBST([FT2_CFLAGS])
1285 AC_SUBST([FT2_LIBS])]) 1285 AC_SUBST([FT2_LIBS])])
1286 dnl end of freetype2.m4 1286 dnl end of freetype2.m4
1287 1287
1288 dnl Check whether a math mapper function is available in <cmath>.
1289 dnl Will define HAVE_CMATH_FUNC if there is a double variant and
1290 dnl HAVE_CMATH_FUNCF if there is a float variant.
1291 dnl Currently capable of checking for functions with single
1292 dnl argument and returning bool/int/real.
1293 AC_DEFUN([OCTAVE_CMATH_FUNC],[
1294 AC_MSG_CHECKING([for std::$1 in <cmath>])
1295 AC_LANG_PUSH(C++)
1296 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1297 #include <cmath>
1298 void take_func (bool (*func) (double x));
1299 void take_func (int (*func) (double x));
1300 void take_func (double (*func) (double x));
1301 ]],
1302 [[
1303 take_func(std::$1);
1304 ]])],
1305 [AC_MSG_RESULT([yes])
1306 AC_DEFINE(HAVE_CMATH_[]AS_TR_CPP($1),1,[Define if <cmath> provides $1])],
1307 [AC_MSG_RESULT([no])])
1308 AC_MSG_CHECKING([for std::$1 (float variant) in <cmath>])
1309 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1310 #include <cmath>
1311 void take_func (bool (*func) (float x));
1312 void take_func (int (*func) (float x));
1313 void take_func (float (*func) (float x));
1314 ]],
1315 [[
1316 take_func(std::$1);
1317 ]])],
1318 [AC_MSG_RESULT([yes])
1319 AC_DEFINE(HAVE_CMATH_[]AS_TR_CPP($1)F,1,[Define if <cmath> provides float variant of $1])],
1320 [AC_MSG_RESULT([no])])
1321 ])
1322
1288 dnl Check whether fast signed integer arithmetics using bit tricks 1323 dnl Check whether fast signed integer arithmetics using bit tricks
1289 dnl can be used in oct-inttypes.h. Defines HAVE_FAST_INT_OPS if 1324 dnl can be used in oct-inttypes.h. Defines HAVE_FAST_INT_OPS if
1290 dnl the following conditions hold: 1325 dnl the following conditions hold:
1291 dnl 1. Signed numbers are represented by twos complement 1326 dnl 1. Signed numbers are represented by twos complement
1292 dnl (see <http://en.wikipedia.org/wiki/Two%27s_complement>) 1327 dnl (see <http://en.wikipedia.org/wiki/Two%27s_complement>)