Commit 9fe1f365 authored by Pekka Pessi's avatar Pekka Pessi

Added AC_TYPE_LONGLONG.

darcs-hash:20051128220551-65a35-2b6ccc6ef2552a7808cead87e686161c1cab4427.gz
parent af5260a7
......@@ -86,12 +86,11 @@ AC_DEFINE([HAVE_SIGPIPE], 1, [Define as 1 if you have SIGPIPE])],,[
### ----------------
AC_TYPE_SIGNAL
AC_CHECK_TYPE([long long],[
AC_DEFINE([longlong], [long long], [Define as at least 64-bit int type])dnl
AC_TYPE_LONGLONG([
AC_DEFINE([LLU], ["%llu"], [Define as format (%llu) for unsigned long long])dnl
AC_DEFINE([LLI], ["%lli"], [Define as format (%lli) for long long])dnl
AC_DEFINE([LLX], ["%llx"], [Define as format (%llx) for long long hex])dnl
])dnl
])
### checks for structures
### ---------------------
......
......@@ -433,12 +433,10 @@ AM_CONDITIONAL(EXPENSIVE_CHECKS, test x$enable_expensive_checks != no)
])
dnl ======================================================================
dnl SAC_GNU_SOURCE
dnl Find long long (at least 64 bits)
dnl ======================================================================
AC_DEFUN([SAC_GNU_SOURCE],[
AH_VERBATIM([_GNU_SOURCE],
[/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif])])
AC_DEFUN([AC_TYPE_LONGLONG],[dnl
AC_CHECK_TYPE([long long],[dnl
AC_DEFINE([longlong], [long long], [Define as at least 64-bit int type])dnl
ifelse([$1], ,:, [$1])],[ifelse([$2], ,:, [$2])])])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment