autoconf
[Top][All Lists]
Advanced

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

Re: Library that needs large file support


From: Guido Draheim
Subject: Re: Library that needs large file support
Date: Mon, 22 Dec 2003 00:29:37 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313



Bob Friesenhahn wrote:
On Sun, 21 Dec 2003, Guido Draheim wrote:

My configure script needs to have access to the values that
AC_SYS_LARGEFILE sets since including config.h is not sufficient for
all applications.  Sometimes the options *must* be specified on the
compiler command line to work.  Therefore I augment AC_SYS_LARGEFILE
as follows in order to define a LFS_CPPFLAGS variable which may be
used within the Makefile:

Can you specify why? I am always interested in additional info that
needs to be put at http://ac-archive.sf.net/largefile/ atleast for
a warning. Some `gcc -include xx`? Some aix magic `-Llib64`?


In order to work properly, _FILE_OFFSET_BITS=64 must be defined before
any system header is included.  For Perl extensions, the fragment of
code the extension writer has control over (the ".xs" file) is
processed by Perl so that it is wrapped by other C code which includes
system headers. If there is a way to prepend user code to the part
Perl generates, I am not aware of it.  This means that it is necessary
to add -D_FILE_OFFSET_BITS=64 to the compilation options.


Thanks, I've included a few hints in the "programming" section, at
http://ac-archive.sf.net/largefile/autowrappers.html

have fun,
-- guido                                  http://google.de/search?q=guidod
GCS/E/S/P C++/++++$ ULHS L++w- N++@ s+:a d(+-) r+@>+++ y++ 5++X- (geekcode)





reply via email to

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