This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] toplevel configure.in: topsrcdir->srcdir


On Thu, May 30, 2002 at 08:31:26PM -0400, DJ Delorie wrote:
> 
> > 'topsrcdir' always refers to the top level directory where 'configure'
> > is located.  When 'configure.in' in the top directory is being run,
> > srcdir is normally the same directory.  In a subdirectory, srcdir and
> > topsrcdir differ, but not at the top level.
> 
> The case I'm worried about is a src=build cross.  In that case,
> configure builds a whole new source tree!  So we must make sure that
> it doesn't run the toplevel configure that it may copy to some other
> directory, or if it does, that topsrcdir refers to the original
> toplevel, not the newly copied one.
> 
> I don't think it should do this (it should only copy subdirectories)
> but this is one of the cases that often goes unworking for long
> periods.

Hmm.  I think my patch shouldn't break that case either -- I did a fair 
amount of searching to make sure that toplevel configure gets neither
copied nor invoked by anything else. But I will run an additional test
build to make sure.

--Nathanael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]