Automake requires some helper scripts such as `depcomp', but there
is an inconsistency. The documentation tells me that they are put in
the top directory or the source directory. However, while `depcomp' is
required in the source directory by automake, the `Makefile.in's
produced by automake requires that it is in the top directory. This
can also apply to `compile', because AM_PROG_CC_C_O sets CC to
"$(top_srcdir)/compile $CC" instead of "$(srcdir)/compile $CC".
So my question is which directory you wanted to use for them
actually. As far as I see, there is no reason that they should exist
in all source directories, so I think they should be put into the top
directory.
Thanks,
Okuji