diff options
author | Matías Fonzo <[email protected]> | 2020-01-21 21:56:02 -0300 |
---|---|---|
committer | TDE Gitea <[email protected]> | 2020-01-22 23:03:40 +0000 |
commit | 8ae17a5d9d77d489a2d16529f16680d31374537e (patch) | |
tree | e9637b17830787dcd6fab20ed5ab17486fd7ba60 /kjs/configure.in.in | |
parent | aa9b9581a97daa50855d815b6724b9112448c96f (diff) | |
download | tdelibs-8ae17a5d9d77d489a2d16529f16680d31374537e.tar.gz tdelibs-8ae17a5d9d77d489a2d16529f16680d31374537e.zip |
Use the correct macros isnan, isinf for libc compatibility
Changes related to this commit:
- Clean up #if mess.
- Use unconditionally the correct macros isnan, isinf.
- Remove redudant macros from the build system.
Signed-off-by: Matías Fonzo <[email protected]>
Diffstat (limited to 'kjs/configure.in.in')
-rw-r--r-- | kjs/configure.in.in | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/kjs/configure.in.in b/kjs/configure.in.in index fd23612e0..1c4d3ac52 100644 --- a/kjs/configure.in.in +++ b/kjs/configure.in.in @@ -1,46 +1,6 @@ dnl KDE JavaScript specific configure tests AC_CHECK_HEADERS(ieeefp.h float.h) -AC_CHECK_LIB(m, finite, [ - AC_DEFINE_UNQUOTED(HAVE_FUNC_FINITE, 1, [Define if you have finite]) -]) -AC_CHECK_LIB(m, _finite, [ - AC_DEFINE_UNQUOTED(HAVE_FUNC__FINITE, 1, [Define if you have _finite]) -]) - -dnl The C99 standard says that isinf and isnan are macros, but they might -dnl be functions on some platforms. -AC_DEFUN([AC_CHECK_ISNAN], -[ - ac_save_libs="$LIBS" - LIBS="-lm" - AC_MSG_CHECKING([for isnan with <math.h>]) - AC_TRY_LINK( - [#include <math.h> - float f;], [return isnan(f)], - [AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_FUNC_ISNAN], [1], [Define if you have isnan])], - AC_MSG_RESULT(no) - ) - LIBS="$ac_save_libs" -]) -AC_DEFUN([AC_CHECK_ISINF], -[ - ac_save_libs="$LIBS" - LIBS="-lm" - AC_MSG_CHECKING([for isinf with <math.h>]) - AC_TRY_LINK( - [#include <math.h> - float f;], [return isinf(f)], - [AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_FUNC_ISINF], [1], [Define if you have isinf])], - AC_MSG_RESULT(no) - ) - LIBS="$ac_save_libs" -]) - -AC_CHECK_ISNAN -AC_CHECK_ISINF AC_DEFUN([AC_CHECK_PCREPOSIX], [ |