autoconf
[Top][All Lists]
Advanced

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

Re: config.h and its defines.


From: John Calcote
Subject: Re: config.h and its defines.
Date: Wed, 06 Aug 2008 15:31:45 -0600
User-agent: Thunderbird 2.0.0.12 (X11/20071114)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've written a treatise on this subject in my autotools book:

http://www.freesoftwaremagazine.com/books/agaal/catalog_of_reusable_solutions

The first sub-topic is the one you want - "Never expose config.h in a
public interface".

- --john

Ralf Wildenhues wrote:
> Hello Václav,
> 
> * Václav Haisman wrote on Wed, Aug 06, 2008 at 09:19:41PM CEST:
>> I have this library, it includes autoconf generated config.h in its 
>> public headers.
> 
> The right approach is to never install config.h, and never let installed
> headers include it.  If you must, then have a second config header for
> which you write the input file yourself (IOW, not generated by
> autoheader) and put only nonconflicting defines in there.
> 
> Alternatively, there is a macro in the Autoconf Macro Archive to mangle
> config.h to prefix each defined with a package-specific prefix.
> 
> This topic has come up several times on this list, the list archives
> should include further useful hints.  Any volunteers for writing a FAQ
> entry?
> 
> Cheers,
> Ralf
> 
> 
> _______________________________________________
> Autoconf mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/autoconf
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkiaGEAACgkQdcgqmRY/OH9QBACfXimwYAETVkBT30snp29VhVS6
pAEAn3+k2zzezppE1q64iO8cKEOESgEu
=HTkN
-----END PGP SIGNATURE-----




reply via email to

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