[m-dev.] for review: make vpath_find look for .exe files.

Tyson Dowd trd at cs.mu.OZ.AU
Fri Jun 11 08:34:29 AEST 1999


On 10-Jun-1999, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 09-Jun-1999, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> > 
> > Cygwin b20 reports executables as existing if a file exists with a
> > .exe suffix -- for example test -f foo will succeed if foo.exe exists.
> > If you try to copy foo, however, cp will fail.
> > 
> > scripts/vpath_find:
> > 	Look for .exe and .EXE files and return them in preference to 
> > 	filenames without this suffix.
> > 
> > 	Although this could conceivable cause problems if both files
> > 	exist, this seems very unlikely.
> 
> There's already a work-around for this problem -- see README.MS-Windows
> and search for "hack_for_windows" in the top-level Mmakefile.
> 
> The current work-around is admittedly far from ideal.
> For one thing, it requires manual intervention;
> but it would be fairly simple to change configure.in
> to handle that automatically.
> 
> I'm not sure that changing vpath_find is the best approach.
> VPATH, and hence vpath_find, is supposed to be used for finding
> source files, not for finding executables.

If this is true, then the install scripts are simply misusing vpath_find
to find executables.  I can change them so they don't -- there's no
real need to use vpath_find in the installation is there?

I'll have a look into the fix you mention and get back to you on this.

Tyson.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list