summaryrefslogtreecommitdiff
path: root/rt/m4/rt_subst_expanded_arg.m4
diff options
context:
space:
mode:
authorivan <ivan>2003-07-15 13:16:32 +0000
committerivan <ivan>2003-07-15 13:16:32 +0000
commit0ebeec96313dd7edfca340f01f8fbbbac1f4aa1d (patch)
tree64e852c61cbf09007d52cd6978bfddea721d00d2 /rt/m4/rt_subst_expanded_arg.m4
parentc0567c688084e89fcd11bf82348b6c418f1254ac (diff)
parent945721f48f74d5cfffef7c7cf3a3d6bc2521f5dd (diff)
This commit was generated by cvs2svn to compensate for changes in r2526,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/m4/rt_subst_expanded_arg.m4')
-rw-r--r--rt/m4/rt_subst_expanded_arg.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/rt/m4/rt_subst_expanded_arg.m4 b/rt/m4/rt_subst_expanded_arg.m4
new file mode 100644
index 000000000..02002b08f
--- /dev/null
+++ b/rt/m4/rt_subst_expanded_arg.m4
@@ -0,0 +1,14 @@
+dnl
+dnl @synopsis RT_SUBST_EXPANDED_ARG(var)
+dnl
+dnl Export (via AC_SUBST) a given variable, along with an expanded
+dnl version of the variable (same name, but with exp_ prefix).
+dnl
+dnl This code is heavily borrowed *cough* from the Apache 2 source.
+dnl
+
+AC_DEFUN([RT_SUBST_EXPANDED_ARG],[
+ RT_EXPAND_VAR(exp_$1, [$]$1)
+ AC_SUBST($1)
+ AC_SUBST(exp_$1)
+])