>>>>> "Okuji" == OKUJI Yoshinori <[EMAIL PROTECTED]> writes:

Okuji> Automake requires some helper scripts such as `depcomp', but there
Okuji> is an inconsistency. The documentation tells me that they are put in
Okuji> the top directory or the source directory. However, while `depcomp' is
Okuji> required in the source directory by automake, the `Makefile.in's
Okuji> produced by automake requires that it is in the top directory. This
Okuji> can also apply to `compile', because AM_PROG_CC_C_O sets CC to
Okuji> "$(top_srcdir)/compile $CC" instead of "$(srcdir)/compile $CC".

Okuji> So my question is which directory you wanted to use for them
Okuji> actually. As far as I see, there is no reason that they should exist
Okuji> in all source directories, so I think they should be put into the top
Okuji> directory.


Currently automake implements a strange rule here:

* If AC_CONFIG_AUX_DIR is set, then always use it.  (This part makes
  sense.)
* Otherwise, search for the file in ., .., etc (just like autoconf
  does at runtime).  If we find the file, then this path is saved and
  used to find other such files (in effect setting the config aux dir)
* Otherwise, this means the file wasn't found.  If we're installing it,
  install it locally.

This rule works ok for some files, like mdate-sh.
But for depcomp it is clearly not the best choice, since it will
basically force everybody to use AC_CONFIG_AUX_DIR(.) -- which is ugly
and unintuitive.

So, I'm planning to change the rule to always choose top_srcdir as the
default location (i.e., in the final step).  Comments?

Tom

Reply via email to