import of rt 3.0.4
[freeside.git] / rt / m4 / rt_subst_expanded_arg.m4
1 dnl
2 dnl @synopsis   RT_SUBST_EXPANDED_ARG(var)
3 dnl
4 dnl Export (via AC_SUBST) a given variable, along with an expanded
5 dnl version of the variable (same name, but with exp_ prefix).
6 dnl
7 dnl This code is heavily borrowed *cough* from the Apache 2 source.
8 dnl
9
10 AC_DEFUN([RT_SUBST_EXPANDED_ARG],[
11         RT_EXPAND_VAR(exp_$1, [$]$1)
12         AC_SUBST($1)
13         AC_SUBST(exp_$1)
14 ])