Add configure option --enable-large-file-support.
authorFabian Keil <fk@fabiankeil.de>
Thu, 29 Jul 2010 14:38:03 +0000 (14:38 +0000)
committerFabian Keil <fk@fabiankeil.de>
Thu, 29 Jul 2010 14:38:03 +0000 (14:38 +0000)
It sets a few defines that are required by platforms
like GNU/Linux to support files larger then 2GB.

configure.in

index 29908b9..f265bbb 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl 
-dnl $Id: configure.in,v 1.142 2010/02/13 16:35:45 fabiankeil Exp $
+dnl $Id: configure.in,v 1.143 2010/03/07 12:05:46 fabiankeil Exp $
 dnl 
 dnl Written by and Copyright (C) 2001-2010 the
 dnl Privoxy team. http://www.privoxy.org/
@@ -32,7 +32,7 @@ dnl =================================================================
 dnl AutoConf Initialization
 dnl =================================================================
 
-AC_REVISION($Revision: 1.142 $)
+AC_REVISION($Revision: 1.143 $)
 AC_INIT(jcc.c)
 
 if test ! -f config.h.in; then
@@ -398,6 +398,13 @@ fi
 AC_SUBST(JADECAT)
 AC_SUBST(DKPREFIX)
 
+AC_ARG_ENABLE(large-file-support,
+[  --enable-large-file-support     Define _LARGE_FILES and friends.
+                                  Required by some systems to support files larger then 2GB.],
+[if test $enableval = yes; then
+    CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1"
+fi])
+
 dnl Save old CFLAGS so we can restore them later, then add SPECIAL_CFLAGS
 old_CFLAGS_nospecial=$CFLAGS
 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"