This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR other/17637: Top level configure doesn't support symlinks
On Thu, Sep 23, 2004 at 02:06:53PM -0400, Daniel Jacobowitz wrote:
> On Thu, Sep 23, 2004 at 11:00:09AM -0700, H. J. Lu wrote:
> > Top level configure has things like
> >
> > if test -f ${topsrcdir}/gcc/version.c ; then
> >
> > It doesn't work with symlinks. I have
> >
> > [hjl@gnu gcc]$ ls -l gcc/version.c
> > lrwxrwxrwx 1 hjl hjl 36 Sep 23 10:44 gcc/version.c ->
> > ../../../../import/gcc/gcc/version.c
> >
> > Here is a patch.
>
> Your system is broken:
> drow@nevyn:~/testa% ls -l
> total 0
> lrwxrwxrwx 1 drow drow 3 Sep 23 14:05 bar -> foo
> lrwxrwxrwx 1 drow drow 8 Sep 23 14:05 baz -> nonexist
> -rw-r--r-- 1 drow drow 0 Sep 23 14:05 foo
> drow@nevyn:~/testa% test -f foo; echo $?
> 0
> drow@nevyn:~/testa% test -f bar; echo $?
> 0
> drow@nevyn:~/testa% test -f baz; echo $?
> 1
Ooops. You are right.
H.J.