[trunk] add support for Large File in autoconf
authorJulien Malik <julien.malik@paraiso.me>
Mon, 28 Nov 2011 15:35:16 +0000 (15:35 +0000)
committerJulien Malik <julien.malik@paraiso.me>
Mon, 28 Nov 2011 15:35:16 +0000 (15:35 +0000)
configure.ac

index e1de3c3ba8e1f5e7ddf6aca61b2a6b92ccb11c21..142e31f8d77f70728fef4eeb6ec4285135ef468d 100644 (file)
@@ -60,6 +60,14 @@ AM_CONDITIONAL([HAVE_WIN32], [test "x${have_win32}" = "xyes"])
 AM_CONDITIONAL([HAVE_DARWIN], [test "x${have_darwin}" = "xyes"])
 
 
+# Define the necessary macros to make off_t a 64 bits type
+AC_SYS_LARGEFILE
+
+# If the `fseeko' function is available, define `HAVE_FSEEKO'. Define
+# `_LARGEFILE_SOURCE' if necessary.
+AC_FUNC_FSEEKO
+
+
 ### Additional options to configure
 
 # debug