[Top][All Lists]

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

Re: How to install "config.h"

From: Raja R Harinath
Subject: Re: How to install "config.h"
Date: 27 Oct 2000 15:08:13 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Simon Richter <address@hidden> writes:
> On 27 Oct 2000, Mark Galassi wrote:
> [Installing config.h]
> > But be careful: if any of the C code in the package itself includes
> > <your-package-name/config.h> you might be in for a nasty surprise: if
> > a version is already installed and a user is compiling a new version
> > from source, that user will pick up the installed .h files which will
> Even more evil: These files will contain definitions for PACKAGE and

And unless the tests are exactly the same, you'll have
HAVE_* conflicts.

Compare (on Solaris)

  AC_CHECK_LIB(resolv, inet_aton) #define HAVE_RESOLV 1
  AC_CHECK_FUNC(inet_ntoa)        #define HAVE_INET_NTOA


  AC_CHECK_LIB(resolv, inet_aton, RESOLV_LIB=-lresolv) #define HAVE_RESOLV 1
  AC_CHECK_FUNC(inet_ntoa)                             #undef HAVE_INET_NTOA

(I know, in "reasonable" circumstances, this example won't really
cause problems, even with both config.h being included.)

And, then we have the problem of having anything depending on the
output of config.status going into $prefix rather than $exec_prefix.

- Hari
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash

reply via email to

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