summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--THANKS1
-rw-r--r--m4/_ax_text_tpl.m45
2 files changed, 4 insertions, 2 deletions
diff --git a/THANKS b/THANKS
index 999b33f..ffe876e 100644
--- a/THANKS
+++ b/THANKS
@@ -1 +1,2 @@
Dietmar Kling
+Pavel Kajaba
diff --git a/m4/_ax_text_tpl.m4 b/m4/_ax_text_tpl.m4
index 971096a..0977c05 100644
--- a/m4/_ax_text_tpl.m4
+++ b/m4/_ax_text_tpl.m4
@@ -142,11 +142,12 @@ AC_SUBST([text_tpl_gen_script])
AC_SUBST([text_tpl_gen_script_verbose])
])
-# _AX_TEXT_TPL_SUBST SHELL_VARNAME
-# --------------------------------
+# _AX_TEXT_TPL_SUBST SHELL_VARNAME [VALUE]
+# ----------------------------------------
# Do substitution of SHELL_VARNAME both by config.status, and by sed call
# in instantiation rules.
AC_DEFUN([_AX_TEXT_TPL_SUBST], [
+test x = x"$2" || $1=$2
__ax_text_tpl_user_sed_rules="$__ax_text_tpl_user_sed_rules\
sed_subst_var_pattern($1)"
AC_SUBST($1)