Re: Forcing an AC_CHECK to fail

2007-10-21 Thread Ralf Wildenhues
Hello Michael,

* Michael B Allen wrote on Sun, Oct 21, 2007 at 02:44:26AM CEST:
 On 10/20/07, Andreas Schwab [EMAIL PROTECTED] wrote:
  Michael B Allen [EMAIL PROTECTED] writes:
 
   So how to do I preset a cache variable before running configure?
 
  You can put it in the environment, or use config.site.  See
  (autoconf)Site Defaults.

 Ok. I see the docs you're talking about. Still not crystal clear what
 exactly I would put in the site config (AC_CACHE_VALUE I suppose).

To find out the cache value name, either look at the generated configure
code, or do a `./configure -C' and look for the corresponding variable
in the generated config.cache file.  Variables are named according to a
scheme:
http://www.gnu.org/software/autoconf/manual/html_node/Cache-Variable-Names.html

Cheers,
Ralf




Re: Forcing an AC_CHECK to fail

2007-10-20 Thread Andreas Schwab
Michael B Allen [EMAIL PROTECTED] writes:

 So is there a way to tell a specific check to fail?

You can preset the cache variable before running configure.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.




Re: Forcing an AC_CHECK to fail

2007-10-20 Thread Michael B Allen
On 10/20/07, Andreas Schwab [EMAIL PROTECTED] wrote:
  So is there a way to tell a specific check to fail?

 You can preset the cache variable before running configure.

Excellent!

So how to do I preset a cache variable before running configure?

Mike




Re: Forcing an AC_CHECK to fail

2007-10-20 Thread Andreas Schwab
Michael B Allen [EMAIL PROTECTED] writes:

 So how to do I preset a cache variable before running configure?

You can put it in the environment, or use config.site.  See
(autoconf)Site Defaults.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.




Re: Forcing an AC_CHECK to fail

2007-10-20 Thread Michael B Allen
On 10/20/07, Andreas Schwab [EMAIL PROTECTED] wrote:
 Michael B Allen [EMAIL PROTECTED] writes:

  So how to do I preset a cache variable before running configure?

 You can put it in the environment, or use config.site.  See
 (autoconf)Site Defaults.

Hey Andreas,

Ok. I see the docs you're talking about. Still not crystal clear what
exactly I would put in the site config (AC_CACHE_VALUE I suppose). But
it doesn't matter. The test in question is custom so I just sabotaged
it to fail. Not an elegant solution but it works.

Thanks,
Mike