File: AC_C_INT64_T.m4

package info (click to toggle)
log4cpp 1.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,444 kB
  • sloc: cpp: 6,715; sh: 3,670; ansic: 1,049; makefile: 295
file content (19 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
dnl @synopsis AC_C_INT64_T
dnl
dnl Provides a test for the existance of the int64_t type and
dnl defines HAVE_INT64_T if it is found. Adapted from AC_C_LONG_LONG by
dnl Caolan McNamara <caolan@skynet.ie>
dnl
dnl @version $Id$
dnl @author Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
dnl
AC_DEFUN([AC_C_INT64_T],
[AC_CACHE_CHECK(for int64_t, ac_cv_c_int64_t,
[AC_TRY_COMPILE([#include <stdint.h>],[int64_t i;], ac_cv_c_int64_t=yes, ac_cv_c_int64_t=no)
]) 
if test $ac_cv_c_int64_t = yes; then
  AC_DEFINE(HAVE_INT64_T,,[define if the compiler has int64_t])
  AC_DEFINE(HAVE_STDINT_H,,[define if you have the <stdint.h> header file.])
fi
])