[Top][All Lists]

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

autoconf: AC_SYS_LARGEFILE documentation misleading

From: Thorsten Glaser
Subject: autoconf: AC_SYS_LARGEFILE documentation misleading
Date: Wed, 25 Jan 2017 17:45:14 +0100 (CET)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

found 158969 2.69-10

Hi *,

I have to reopen this because the documentation is plain wrong
and misleading still:

     Arrange for 64-bit file offsets, known as 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 'CC'.  Define '_FILE_OFFSET_BITS' and '_LARGE_FILES' if

ii  autoconf              2.69-10         all             automatic configure 
script builder
ii  autoconf-doc          2.69-10         all             automatic configure 
script builder documentatio

Looking at the source, AC_SYS_LARGEFILE calls AC_DEFINE_UNQUOTED,
which appends to DEFS (which I agree with Tom Dickey is wrong) as
Florian Weimer said, but — even more confusingly — only when
AC_CONFIG_HEADERS is not used.

If AC_CONFIG_HEADERS is used, the definition is only written to
its output file (config.h by default).

This is even more unfortunate, because now, if any program includes
a glibc system header before "config.h", the definition will be
ignored, because it comes too late.

CPPFLAGS is r̲e̲a̲l̲l̲y̲ the correct place for this. Again.

But that’s a different bug. This issue is about the documentation
being wrong — please fix the documentation and raise this bug upstream
(and this time, don’t let them tell you it’s not a bug because it most
curtainly is).

//mirabilos (current hat: Debian Developer)
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn •
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

reply via email to

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