Hello, On Tue, Oct 18, 2005 at 01:24:14PM +0200, Ralf Wildenhues wrote: > > Please hold back the AM_SUBST_IGNORE until multiline substitutions in > > Automake are solved. > > I don't see why the solution to the problem of not substituting certain > variables is dependent on the problem of how to handle multiline > substitutions?
I wrote an answer yesterday, but by mistake I posted it to Ralf only. In short, I'm not sure that the feature is necessary. Ralf wrote me a very nice explanation, which convinced me. In short, it is needed as the solution for PR/477. Perhaps you could post the explanation here, Ralf? I still think it should be implemented in Autoconf, see the patch below. Would you like it this way? If yes, I'll finish the patch and submit it to autoconf-patches. (A nice side effect: AC_SUBST_NOTRACE would work even if used with previous versions of Automake.) Have a nice day, Stepan Kasal
Index: lib/autoconf/general.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v retrieving revision 1.886 diff -u -r1.886 general.m4 --- lib/autoconf/general.m4 19 Oct 2005 05:21:23 -0000 1.886 +++ lib/autoconf/general.m4 19 Oct 2005 05:27:20 -0000 @@ -1962,7 +1962,17 @@ # m4_define([AC_SUBST], [AC_SUBST_TRACE([$1])dnl -m4_pattern_allow([^$1$])dnl +AC_SUBST_NOTRACE($@)dnl +]) + + +# AC_SUBST_NOTRACE(VARIABLE, [VALUE]) +# ----------------------------------- +# Like AC_SUBST, but without the call to AC_SUBST_TRACE. This implies +# that this variable is not propagated to Automake-generated makefiles. +# +m4_define([AC_SUBST_NOTRACE], +[m4_pattern_allow([^$1$])dnl m4_ifvaln([$2], [$1=$2])[]dnl m4_append_uniq([_AC_SUBST_VARS], [$1], [ ])dnl @@ -1971,7 +1981,7 @@ # AC_SUBST_FILE(VARIABLE) # ----------------------- -# Read the comments of the preceding macro. +# Read the comments of AC_SUBST. m4_define([AC_SUBST_FILE], [m4_pattern_allow([^$1$])dnl m4_append_uniq([_AC_SUBST_FILES], [$1], [