AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2000.06.20 21:51 "Configure for linux DSO (v3.5.5)", by Richard E Nairn
2000.06.21 14:31 "Re: Configure for linux DSO (v3.5.5)Resent-Sender: info-cvs-request@gnu.org", by Larry Jones
2000.06.21 15:34 "Re: Configure for linux DSO (v3.5.5)", by Richard E Nairn

2000.06.21 15:34 "Re: Configure for linux DSO (v3.5.5)", by Richard E Nairn

Thanks Larry,

You are right... Apparently this fix has been implemented in whichever style within the CVS distribution anyway.

On Wed, Jun 21, 2000 at 10:31:57AM -0400, Larry Jones wrote:

diff -ur tiff-v3.5.5/configure tiff-v3.5.5-old/configure
--- tiff-v3.5.5/configure Mon Mar 20 11:20:42 2000
+++ tiff-v3.5.5-old/configure Tue Jun 20 15:42:30 2000
@@ -1156,7 +1156,7 @@
        TIFFLIBREF='-L${DEPTH}/libtiff -ltiff'
        ;;
     *-linux*)

-       if [ -r /lib/libc.so.6 || -r /lib/libc.so.5 ]; then
+       if [ -r /lib/libc.so.6 -o  -r /lib/libc.so.5 ]; then

            DSOSUF=so.${DIST_MAJOR}
            DSOSUF_VERSION=${DSOSUF}.${DIST_MINOR}.${DIST_ALPHA}
            LIBCOPTS='-fPIC'

A better fix is:

        if [ -r /lib/libc.so.6 ] || [ -r /lib/libc.so.5 ]; then

The boolean test operators (-a and -o) operators have screwy precedences on some systems, their grammar is highly ambiguous which can lead to very unpleasant surprises, and they're not supported by POSIX.

Start tying the sheets together. We'll go out the window. -- Calvin

--
Richard Nairn
Nairn Consulting

** Email ren@spans.gscc.nrcan.gc.ca **

**       nairnr@cadvision.com         **
**       nconsulting@cadvision.com    **