2 dnl Large file support stuff for CUPS.
4 dnl Copyright 2007-2011 by Apple Inc.
5 dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
7 dnl Licensed under Apache License v2.0. See the file "LICENSE" for more information.
10 dnl Check for largefile support...
13 dnl Define largefile options as needed...
15 if test x$enable_largefile != xno; then
16 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
18 if test x$ac_cv_sys_large_files = x1; then
19 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
22 if test x$ac_cv_sys_file_offset_bits = x64; then
23 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
28 dnl Check for "long long" support...
29 AC_CACHE_CHECK(for long long int, ac_cv_c_long_long,
30 [if test "$GCC" = yes; then
33 AC_TRY_COMPILE(,[long long int i;],
34 ac_cv_c_long_long=yes,
38 if test $ac_cv_c_long_long = yes; then
39 AC_DEFINE(HAVE_LONG_LONG)
42 AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))