]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-largefile.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-largefile.m4
CommitLineData
ef416fc2 1dnl
f7deaa1a 2dnl "$Id: cups-largefile.m4 6330 2007-03-12 14:50:45Z mike $"
ef416fc2 3dnl
4dnl Large file support stuff for the Common UNIX Printing System (CUPS).
5dnl
6dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
7dnl
8dnl These coded instructions, statements, and computer programs are the
9dnl property of Easy Software Products and are protected by Federal
10dnl copyright law. Distribution and use rights are outlined in the file
11dnl "LICENSE.txt" which should have been included with this file. If this
12dnl file is missing or damaged please contact Easy Software Products
13dnl at:
14dnl
15dnl Attn: CUPS Licensing Information
16dnl Easy Software Products
17dnl 44141 Airport View Drive, Suite 204
18dnl Hollywood, Maryland 20636 USA
19dnl
20dnl Voice: (301) 373-9600
21dnl EMail: cups-info@cups.org
22dnl WWW: http://www.cups.org
23dnl
24
25dnl Check for largefile support...
26AC_SYS_LARGEFILE
27
28dnl Define largefile options as needed...
29LARGEFILE=""
30if test x$enable_largefile != xno; then
31 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
32
f7deaa1a 33 if test x$ac_cv_sys_large_files = x1; then
ef416fc2 34 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
35 fi
36
f7deaa1a 37 if test x$ac_cv_sys_file_offset_bits = x64; then
ef416fc2 38 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
39 fi
40fi
41AC_SUBST(LARGEFILE)
42
43dnl Check for "long long" support...
44AC_CACHE_CHECK(for long long int, ac_cv_c_long_long,
45 [if test "$GCC" = yes; then
46 ac_cv_c_long_long=yes
47 else
48 AC_TRY_COMPILE(,[long long int i;],
49 ac_cv_c_long_long=yes,
50 ac_cv_c_long_long=no)
51 fi])
52
53if test $ac_cv_c_long_long = yes; then
54 AC_DEFINE(HAVE_LONG_LONG)
55fi
56
57AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))
58
59dnl
f7deaa1a 60dnl End of "$Id: cups-largefile.m4 6330 2007-03-12 14:50:45Z mike $".
ef416fc2 61dnl