Mail Archives: djgpp-workers/2001/06/29/11:43:18
> From: "Laurynas Biveinis" <lauras AT softhome DOT net>
> Date: Fri, 29 Jun 2001 14:26:27 +0200
>
> > Consider you have hello.exe in current dir and this script:
> >
> > #!/bin/sh
> > if (./hello; exit) ; then
> > ac_cv_prog_cc_cross=no
> > else
> > ac_cv_prog_cc_cross=yes
> > fi
> > echo '$ac_cv_prog_cc_cross = ' $ac_cv_prog_cc_cross
> >
> > Its output:
> > Hello, world!
> > $ac_cv_prog_cc_cross = yes
> >
> > Hello.exe returns with exit code 0.
>
> Looks like I got it - it boils down to the same extension search order.
> My testcase fails because there are both conftest and conftest.exe in same
> directory. If I move out extensionless conftest outta way, it starts working.
On second thought, I don't think I understand the problem in this case
and why does moving conftest out of the way solves it: running both
foo and foo.exe should have produced the same effect in this case,
since they are both the same program. Could you explain why you think
it fails?
(I also think you meant hello, not conftest.)
Also, I thought you wanted the extensionless program toi run at the
expense of the one with extension, no? At least I think Tim and Mark
wanted that. But you seem to say that running the extensionless
program is harmful in this case.
- Raw text -