summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d7aafbf..7a28800 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,33 @@ case "$GLOBAL_CFLAGS" in
95 AC_DEFINE([HAVE_FVISIBILITY], [1], [Define if compiled with -fvisibility=hidden]) 95 AC_DEFINE([HAVE_FVISIBILITY], [1], [Define if compiled with -fvisibility=hidden])
96esac 96esac
97 97
98# check for large file support
99AC_SYS_LARGEFILE
100LFS_CFLAGS=''
101if test "$enable_largefile" != no; then
102 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
103 LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
104 else
105 AC_MSG_CHECKING(for native large file support)
106 AC_RUN_IFELSE([AC_LANG_SOURCE([#include <unistd.h>
107 int main (int argc, char **argv)
108 {
109 exit(!(sizeof(off_t) == 8));
110 }])],
111 [ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
112 AC_MSG_RESULT(yes)],
113 [AC_MSG_RESULT(no)])
114 fi
115 if test "$ac_cv_sys_large_files" != 'no'; then
116 LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=1"
117 fi
118 AC_FUNC_FSEEKO
119 if test "$ac_cv_sys_largefile_source" != 'no'; then
120 LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=1"
121 fi
122fi
123AC_SUBST(LFS_CFLAGS)
124
98m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) 125m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
99 126
100AC_OUTPUT([ 127AC_OUTPUT([