Re: how to disable caching of result

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

 



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
> bfriesen@xxxxxxxxxxxxxxxxxxx
> http://www.simplesystems.org/users/bfriesen
>
>
>
>

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



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux