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: Bob Friesenhahn
Subject: Re: how to disable caching of result
Date: Mon, 5 Apr 2004 19:28:18 -0500 (CDT)

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:

    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





reply via email to

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