68 |
AC_DEFINE( HAVE_OFF_T, 1, [have off_t type]),, |
AC_DEFINE( HAVE_OFF_T, 1, [have off_t type]),, |
69 |
) |
) |
70 |
|
|
71 |
use_long_offsets=yes |
AC_SYS_LARGEFILE |
|
AC_MSG_CHECKING([whether to enable long offsets usage]) |
|
|
AC_ARG_ENABLE(long-offsets, |
|
|
[ --disable-long-offsets disable the use of long (64bit) offsets in 32 bit systems], |
|
|
[ |
|
|
if test "$enableval" = "no" ; then |
|
|
use_long_offsets=no |
|
|
else |
|
|
use_long_offsets=yes |
|
|
fi |
|
|
] |
|
|
) |
|
|
|
|
|
AC_MSG_RESULT($use_long_offsets) |
|
|
|
|
|
if test $use_long_offsets = yes; then |
|
|
|
|
|
dnl GNU Libc needs this. |
|
|
case $host_os in |
|
|
*linux*) |
|
|
CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" |
|
|
;; |
|
|
*) ;; |
|
|
esac |
|
|
AC_CHECK_TYPE( off64_t, |
|
|
AC_DEFINE( HAVE_OFF64_T, 1, [have off64_t type]),, |
|
|
) |
|
|
|
|
|
AC_CHECK_FUNCS(stat64 atoll,,) |
|
|
AC_CHECK_FUNCS(open64 read64 write64 lseek64,,) |
|
|
AC_DEFINE(USE_LONG_OFFSETS,1, [whether to enable long offset support]) |
|
|
|
|
|
fi |
|
72 |
|
|
73 |
dnl Checks for library functions. |
dnl Checks for library functions. |
74 |
AC_FUNC_SETVBUF_REVERSED |
AC_FUNC_SETVBUF_REVERSED |