From 3d1f377ffb8343dea5311ff5f5cf9cd7908fb0df Mon Sep 17 00:00:00 2001 From: Matt Messier Date: Thu, 10 May 2007 14:18:52 -0400 Subject: Add large file macros to CPPFLAGS as required If AC_SYS_LARGEFILES defines _FILE_OFFSET_BITS=64 or _LARGEFILE_SOURCE, they'll only be in config.h. Add them to CPPFLAGS as well. If AC_FUNC_FSEEKO defines _LARGE_FILES, add it to CPPFLAGS as well. Do all of this for the benefit of those things that do not #include config.h --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 5283b8e85..db8ab01d2 100644 --- a/configure.ac +++ b/configure.ac @@ -846,8 +846,19 @@ dnl -------------------------- XINE_X11_SUPPORT +dnl _FILE_OFFSET_BITS (AC_SYS_LARGEFILE; ac_cv_sys_file_offset_bits) +dnl _LARGE_FILES (AC_SYS_LARGEFILE; ac_cv_sys_large_files) +dnl _LARGEFILE_SOURCE (AC_FUNC_SEEKO; ac_cv_sys_largfile_source) +dnl _LARGEFILE64_SOURCE (glibc transitional; not tested or used anywhere) AC_SYS_LARGEFILE +dnl Add macros to the compiler command line that are also in config.h for things +dnl that do not #include config.h. +dnl known: src/input/libreal, src/input/librtsp +test x"$ac_cv_sys_file_offset_bits" != x"no" && CPPFLAGS="-D_FILE_OFFSET_BITS=64 $CPPFLAGS" +test x"$ac_cv_sys_largefile_source" != x"no" && CPPFLAGS="-D_LARGEFILE_SOURCE $CPPFLAGS" +test x"$ac_cv_sys_large_files" != x"" && CPPFLAGS="-D_LARGE_FILES $CPPFLAGS" + dnl ------- dnl Plugins -- cgit v1.2.3