I've worked on tracking this down a little more. I think I've found the
source of the inconsistencies, but I need a little information to be
sure.
1) The function paths-find-emacs-roots, if given an invocation-directory
argument that is outside of the XEmacs source tree, returns the root
of the build tree, but NOT the root of the source tree. Is that
desirable behavior? That is, would it be wrong if it returned the
list (build-tree source-tree)?
2) When building outside of the source tree, configure sets up build
directories and links to things inside the source tree. However, it
neither creates a "modules" directory nor links to the one in the
source tree. Is that wrong?
If the answers are "yes" and "no", respectively, then the results of
experiment 1 (from my previous message) are actually correct. In that
case, module-load-path *should* be nil, since there is no directory
named "modules" in the build tree, and XEmacs should not be looking in
the source tree.
--
Jerry James