autoconf
[Top][All Lists]
Advanced

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

Re: how to disable caching of result


From: Thomas Dickey
Subject: Re: how to disable caching of result
Date: Mon, 5 Apr 2004 20:33:15 -0400 (EDT)

On Mon, 5 Apr 2004, Bob Friesenhahn wrote:

> On Tue, 6 Apr 2004, Matthias Czapla wrote:
> > because the result of the first test is cached. How can I tell
> > autoconf to forget the result of the first test before doing it
> > the second time?
>
> If you look in config.status you will see the form that the cached
> values take.  You can then unset the cache variable that autoconf uses
> before trying again.  Here is some example code taken from one of my
> configure scripts:

hmm - while I note that support for conventional Bourne shell was
abandoned sometime last year, no one seemed to have pointed out that
unset is one of those features that isn't as portable as one would like.

>
>     have_libdps='no'
>     LIBDPS_XT=''
>     AC_CHECK_LIB(dps,DPSInitialize,have_libdps='yes',have_libdps='no',)
>     if test "$have_libdps" != 'yes'
>     then
>       # Unset cache variable so we can try again.
>       unset ac_cv_lib_dps_DPSInitialize
>       AC_CHECK_LIB(dps,DPSInitialize,have_libdps='yes',have_libdps='no',-lXt)
>       if test "$have_libdps" = 'yes'
>       then
>         LIBDPS_XT='-lXt'
>       fi
>     fi
>
> Bob
> ======================================
> Bob Friesenhahn
> address@hidden
> http://www.simplesystems.org/users/bfriesen
>
>
>
>

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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