autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: _XOPEN_SOURCE=500 breaks at least OSF1 V5.0 [Re: largefiles


From: Paul Eggert
Subject: Re: _XOPEN_SOURCE=500 breaks at least OSF1 V5.0 [Re: largefiles
Date: Thu, 9 Nov 2000 15:15:32 -0800 (PST)

   From: Akim Demaille <address@hidden>
   Date: 09 Nov 2000 10:29:08 +0100

   | 2000-11-05  Paul Eggert  <address@hidden>
   | 
   |         * m4/largefile.m4 (AC_SYS_LARGEFILE): Don't worry about
   |         whether fseeko and ftello are properly declared.
   |         (AC_FUNC_FSEEKO): New macro, which worries about fseeko (and
   |         presumably ftello).  Do not set _XOPEN_SOURCE; that causes too
   |         many problems in practice.

   This patch is fine with me.  Could you submit some documentation?

Sure, here it is:

--- autoconf.texi-1.374 Thu Nov  2 17:44:03 2000
+++ autoconf.texi       Thu Nov  9 23:10:39 2000
@@ -3045,6 +3045,12 @@
 SunOS 5.4), define @code{HAVE_FNMATCH}.
 @end defmac
 
address@hidden AC_FUNC_FSEEKO
address@hidden FUNC_FSEEKO
address@hidden _LARGEFILE_SOURCE
+If the @code{fseeko} function is available, define @code{HAVE_FSEEKO}.
+Define @code{_LARGEFILE_SOURCE} if necessary.
+
 @defmac AC_FUNC_GETGROUPS
 @maindex FUNC_GETGROUPS
 @ovindex GETGROUPS_LIBS
@@ -4530,17 +4536,14 @@
 @defmac AC_SYS_LARGEFILE
 @maindex SYS_LARGEFILE
 @cvindex _FILE_OFFSET_BITS
address@hidden _LARGEFILE_SOURCE
 @cvindex _LARGE_FILES
address@hidden _XOPEN_SOURCE
 @ovindex CC
 Arrange for
 @uref{http://www.sas.com/standards/large.file/x_open.20Mar96.html,
 large-file support}.  On some hosts, one must use special compiler
 options to build programs that can access large files.  Append any such
 options to the output variable @code{CC}.  Define
address@hidden, @code{_LARGEFILE_SOURCE}, @code{_LARGE_FILES},
-and @code{_XOPEN_SOURCE} if necessary.
address@hidden and @code{_LARGE_FILES} if necessary.
 
 The user can disable large-file support by configuring with the
 @option{--disable-largefile} option.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]