-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 What is the correct idiom for combining tests to get one cached variable? what I do now appears to work but results in ugly output: ... checking whether libffcall is installed... checking how to link with libavcall... -lavcall checking how to link with libcallback... -lcallback checking avcall.h usability... no checking avcall.h presence... no checking for avcall.h... no checking callback.h usability... no checking callback.h presence... no checking for callback.h... no no ... the code is here: AC_DEFUN([CL_FFCALL],[dnl AC_ARG_WITH([ffcall], [AC_HELP_STRING([--with-ffcall],[use FFCALL (default is YES, if present)])], [cl_use_ffcall=$withval],[cl_use_ffcall=default]) AC_CACHE_CHECK([whether libffcall is installed],[cl_cv_have_ffcall], [cl_cv_have_ffcall=no if test $cl_use_ffcall != no; then AC_LIB_FROMPACKAGE(avcall,libffcall) AC_LIB_FROMPACKAGE(callback,libffcall) AC_LIB_LINKFLAGS([avcall]) AC_LIB_LINKFLAGS([callback]) AC_CHECK_HEADERS(avcall.h callback.h) if test $ac_cv_header_avcall_h = yes \ ~ -o $ac_cv_header_callback_h = yes then cl_save_LIBS="$LIBS" AC_LIB_APPENDTOVAR([LIBS], [$LIBAVCALL]) AC_LIB_APPENDTOVAR([LIBS], [$LIBCALLBACK]) AC_SEARCH_LIBS(__builtin_avcall) AC_SEARCH_LIBS(trampoline_r_data0) if test "$ac_cv_search___builtin_avcall" != no \ ~ -a "$ac_cv_search_trampoline_r_data0" != no then cl_cv_have_ffcall=yes else LIBS=$cl_save_LIBS fi fi if test $cl_use_ffcall = yes -a $cl_cv_have_ffcall = no; then ~ FFCALL=ffcall-1.8 ~ AC_MSG_ERROR([despite --with-ffcall, FFCALL was not found ~ Either call configure without --with-ffcall or do ~ mkdir tools; cd tools; prefix=`pwd`/${ac_cv_host} ~ wget http://ftp.gnu.org/pub/gnu/ffcall/${FFCALL}.tar.gz ~ tar xfz ${FFCALL}.tar.gz ~ cd ${FFCALL} ~ ./configure --prefix=\${prefix} && make && make check && make install ~ cd ../.. ~ ./configure --with-libffcall-prefix=\${prefix} [$]*]) fi fi;])]) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH2Yc0Pp1Qsf2qnMcRAtCnAKCcr2Mw1zlndJrI+ghWvpqdqUgcVgCePlMr fkhTwa3VY8RuNUYkngb4FNA= =XvHn -----END PGP SIGNATURE----- _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf