Fix libGL.a check on configure

Chuck Hall chall at bcrl.stcloudstate.edu
Wed Jun 29 10:02:43 CDT 2005


On Tue, 28 Jun 2005, Anderson Lizardo wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Alexandre Julliard wrote:
> > Anderson Lizardo <andersonlizardo at yahoo.com.br> writes:
> >>Fixed the libGL.a configure check for systems where
> >>/usr/X11R6/lib/libGL.so is a symbolic link.
> >>
> >>
> >>PS.: I've not used a simple "test -e" because
> >>http://www.winehq.org/hypermail/wine-patches/2002/01/0206.html says this
> >>does not work on Solaris.
> > 
> > 
> > My guess is that if test -e doesn't work, test -L won't work either...
> 
> What about the attached patch? It uses "ls" instead of "test" to test
> for file presence (assuming ls returns non-zero code on a non-present
> file, which is true for a POSIX compliant system).
> 
> Snippet:
> 
> - -        if test -f /usr/X11R6/lib/libGL.a -a ! -f
> /usr/X11R6/lib/libGL.so -a ! -f /usr/X11R6/lib/libGL.dylib
> +        if ls /usr/X11R6/lib/libGL.a >/dev/null 2>&1 -a \
> +         ! ls /usr/X11R6/lib/libGL.so >/dev/null 2>&1 -a \
> +         ! ls /usr/X11R6/lib/libGL.dylib >/dev/null 2>&1
> 
> Best regards,
> - --
> Anderson Lizardo

On Solaris 9 and Solaris 10 the man page for test say -e checks if the 
file exists, and -L checks if the file exists and is a symbolic link.

-e is not avaliable in the shell sh, there is no mention if -L works or 
not in sh.

It might be a problem for just Solaris 8, or the tests are/were ran in the 
sh shell.

-- 
Have Fun!
Chuck Hall




More information about the wine-devel mailing list