1 dnl ######################################################################
2 dnl New versions of the cache functions which also dynamically evaluate the
3 dnl cache-id field, so that it may contain shell variables to expand
4 dnl dynamically for the creation of $ac_cv_* variables on the fly.
5 dnl In addition, this function allows you to call COMMANDS which generate
6 dnl output on the command line, because it prints its own AC_MSG_CHECKING
7 dnl after COMMANDS are run.
9 dnl ======================================================================
10 dnl AMU_CACHE_CHECK_DYNAMIC(MESSAGE, CACHE-ID, COMMANDS)
11 define(AMU_CACHE_CHECK_DYNAMIC,
14 if eval "test \"`echo '$''{'$ac_tmp'+set}'`\" = set"; then
16 echo $ECHO_N "(cached) $ECHO_C" 1>&AS_MESSAGE_FD([])
17 dnl XXX: for older autoconf versions
18 dnl echo $ac_n "(cached) $ac_c" 1>&AS_MESSAGE_FD([])
23 ac_tmp_val=`eval eval "echo '$''{'$ac_tmp'}'"`
24 AC_MSG_RESULT($ac_tmp_val)
26 dnl ======================================================================