Re: AC_OUTPUT to parent dir and install-sh

2009-07-25 Thread Ralf Wildenhues
Hello Willem, John, * John Calcote wrote on Tue, Jul 21, 2009 at 06:55:58PM CEST: > [ ./config.status --file=../outside-of-build-tree ] > > In the resulting top-level Makefile, $(srcdir) is "./", the > functional inverse of which is the same (the "identity" value, if > you will). The "src" direct

Re: a debugging trick: how to peek into m4's processing

2009-07-25 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 5/23/2009 6:35 AM: > Hi Eric, Ralf, > > For about 15 years, writing and debugging autoconf macros has been very hard > for me. I've come to partially understand how m4 internally works, thanks to > Eric's new documentation

Re: a debugging trick: how to peek into m4's processing

2009-07-25 Thread Bruno Haible
Hi Eric, > > -- > > m4_syscmd([cat 1>&2 <<\EOT > > > > Here comes the definition of AM_INIT_AUTOMAKE:] > > m4_defn([AM_INIT_AUTOMAKE]) > > [EOT]) > > -- > > Very similar

Re: a debugging trick: how to peek into m4's processing

2009-07-25 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 7/25/2009 8:40 AM: >> +$ @kbd{cat <<\EOF > foo.m4} >> +m4_init >> +m4_errprintn([try one: m4_dquote is ]m4_defn([m4_dquote])) >> +m4_divert([0])dnl >> +m4_errprintn([try two: m4_dquote is ]m4_defn([m4_dquote]))dnl >> +m4_dq

Re: patch and 'git am'

2009-07-25 Thread Bruno Haible
Hi Eric, > Git did not like your patch - I could not apply it with either 'git am' or > 'git apply' Patches that I send should be applied with "patch -p0". git probably did not like my patch because it was a context diff. I send context diffs or unified diffs, depending on which of the two is mor

Re: a debugging trick: how to peek into m4's processing

2009-07-25 Thread Bruno Haible
Eric Blake wrote: > Using diversions is not a technique. Rather, it is an additional reason > (beyond postprocessing) why outputting to anything except stderr or > separate files is problematic, because diversions can be discarded or > rearranged Yes, that's why I moved this example to be the las

Re: [PATCH] use diff --strip-tailing-cr when possible

2009-07-25 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Robert Millan on 7/24/2009 12:36 PM: > This patch makes it possible to use autotest on MingW32/Wine, where > DOS carriage returns are printed, breaking the testsuite (for the > record, problem was found with GNU cpio's testsuite). Not all