On Mon, Apr 05, 2004 at 07:28:18PM -0500, 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: > > 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 Ok, that works but Ive heard that unset is not portable. Regards Matthias