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/
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
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"