From 2161b984ab44df42cbe2c93ad4be44799bb7887a Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sat, 16 Mar 2002 10:58:22 +0000 Subject: [PATCH] - Large File support is now specific to Linux since it breaks build on other platforms like Solaris/SPARC and I could only test under Linux. TODO: Better use the AC_SYS_LARGEFILE macro from autoconf-2.5. --- BasiliskII/src/Unix/configure.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/BasiliskII/src/Unix/configure.in b/BasiliskII/src/Unix/configure.in index 899dff92..eea12ff7 100644 --- a/BasiliskII/src/Unix/configure.in +++ b/BasiliskII/src/Unix/configure.in @@ -5,10 +5,6 @@ AC_INIT(main_unix.cpp) AC_PREREQ(2.12) AC_CONFIG_HEADER(config.h) -dnl These defines are necessary to get 64-bit file size support. -AC_DEFINE(_USE_LARGEFILE_SOURCE, 1, [Get more functions for correct standard I/O]) -AC_DEFINE(_FILE_OFFSET_BITS, 64, [Get 64-bit file size support]) - dnl Options. AC_ARG_ENABLE(xf86-dga, [ --enable-xf86-dga use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [WANT_XF86_DGA=yes]) AC_ARG_ENABLE(xf86-vidmode, [ --enable-xf86-vidmode use the XFree86 VidMode extension [default=yes]], [WANT_XF86_VIDMODE=$enableval], [WANT_XF86_VIDMODE=yes]) @@ -201,6 +197,13 @@ if [[ "x$WANT_ESD" = "xyes" ]]; then ]) fi +dnl We use 64-bit file size support if possible. +dnl FIXME: Use AC_SYS_LARGEFILE from autoconf 2.5+ +if [[ "x$OS_TYPE" = "xlinux" ]]; then + AC_DEFINE(_USE_LARGEFILE_SOURCE, 1, [Get more functions for correct standard I/O]) + AC_DEFINE(_FILE_OFFSET_BITS, 64, [Get 64-bit file size support]) +fi + dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(unistd.h fcntl.h sys/time.h sys/mman.h)