"Fossies" - the Fresh Open Source Software Archive

Member "scalasca-2.6/vendor/otf2/build-config/common/m4/ac_recursive_eval.m4" (19 Apr 2021, 825 Bytes) of package /linux/misc/scalasca-2.6.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 dnl copied from http://ac-archive.sourceforge.net/adl/relpaths.m4
    2 dnl @category Misc
    3 dnl @author Alexandre Duret-Lutz <duret_g@epita.fr>
    4 dnl @version 2001-05-25
    5 dnl @license GPLWithACException
    6 
    7 dnl adl_RECURSIVE_EVAL(VALUE, RESULT)
    8 dnl =================================
    9 dnl Interpolate the VALUE in loop until it doesn't change,
   10 dnl and set the result to $RESULT.
   11 dnl WARNING: It's easy to get an infinite loop with some unsane input.
   12 AC_DEFUN([adl_RECURSIVE_EVAL],
   13 [_lcl_receval="$1"
   14 $2=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   15      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
   16      _lcl_receval_old=''
   17      while test "[$]_lcl_receval_old" != "[$]_lcl_receval"; do
   18        _lcl_receval_old="[$]_lcl_receval"
   19        eval _lcl_receval="\"[$]_lcl_receval\""
   20      done
   21      echo "[$]_lcl_receval")`])