configure.ac: use AC_SYS_LARGEFILE to determine how to enable 64-bit file size support

Defining -D_FILE_OFFSET_BITS=64 works on most platforms, but not on all (i.e.
Solaris). Also, the Autoconf macro offers the user a switch to disable the
functionality in case of problems.
This commit is contained in:
Peter Simons 2009-10-06 09:14:06 +00:00
parent 96f1517831
commit 18f0ff003d

View file

@ -88,8 +88,7 @@ AC_PROG_LIBTOOL
# Use 64-bit file system calls so that we can support files > 2 GiB.
CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS"
CXXFLAGS="-D_FILE_OFFSET_BITS=64 $CXXFLAGS"
AC_SYS_LARGEFILE
# Check for pubsetbuf.