]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-largefile.m4
License change: Apache License, Version 2.0.
[thirdparty/cups.git] / config-scripts / cups-largefile.m4
CommitLineData
ef416fc2 1dnl
503b54c9 2dnl Large file support stuff for CUPS.
ef416fc2 3dnl
503b54c9
MS
4dnl Copyright 2007-2011 by Apple Inc.
5dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
ef416fc2 6dnl
e3101897 7dnl Licensed under Apache License v2.0. See the file "LICENSE" for more information.
ef416fc2 8dnl
9
10dnl Check for largefile support...
11AC_SYS_LARGEFILE
12
13dnl Define largefile options as needed...
14LARGEFILE=""
15if test x$enable_largefile != xno; then
16 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
17
f7deaa1a 18 if test x$ac_cv_sys_large_files = x1; then
ef416fc2 19 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
20 fi
21
f7deaa1a 22 if test x$ac_cv_sys_file_offset_bits = x64; then
ef416fc2 23 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
24 fi
25fi
26AC_SUBST(LARGEFILE)
27
28dnl Check for "long long" support...
29AC_CACHE_CHECK(for long long int, ac_cv_c_long_long,
30 [if test "$GCC" = yes; then
31 ac_cv_c_long_long=yes
32 else
33 AC_TRY_COMPILE(,[long long int i;],
34 ac_cv_c_long_long=yes,
35 ac_cv_c_long_long=no)
36 fi])
37
38if test $ac_cv_c_long_long = yes; then
39 AC_DEFINE(HAVE_LONG_LONG)
40fi
41
42AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))