diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-15 19:46:57 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-15 19:46:57 +0000 |
commit | 6f7cb5d2e8fddcd324374e0de6f3c89b4d005482 (patch) | |
tree | a4571e3a1776437a30b66696778eb88958104168 /configure.ac | |
parent | 56f4cd372557815f7af0c7e0d9beb646547f1542 (diff) |
Define LLONG_MAX on systems that do not have it.
(closes issue #17644)
Reported by: pprindeville
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@276769 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 98005f015..4bfac0af8 100644 --- a/configure.ac +++ b/configure.ac @@ -462,6 +462,15 @@ if test "x${ac_cv_type_long_double_wider}" = "xyes" ; then AC_CHECK_FUNCS([exp2l log2l exp10l log10l sinl cosl tanl asinl acosl atanl atan2l powl sqrtl rintl expl logl remainderl fmodl roundl truncl floorl ceill]) fi +AC_MSG_CHECKING(for LLONG_MAX in limits.h) +AC_LINK_IFELSE( + AC_LANG_PROGRAM([#include <limits.h>], + [long long foo = LLONG_MAX]), + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_LLONG_MAX], 1, [Define to 1 if limits.h includes a LLONG_MAX definition.]), + AC_MSG_RESULT(no) +) + AC_MSG_CHECKING(for timersub in time.h) AC_LINK_IFELSE( AC_LANG_PROGRAM([#include <sys/time.h>], |