-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Alexandre Julliard wrote:
Anderson Lizardo andersonlizardo@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