IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5940 for trunk/Ohana/configure


Ignore:
Timestamp:
Jan 6, 2006, 6:43:36 PM (21 years ago)
Author:
eugene
Message:

added tests for .so, made libtermcap arch-dependent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/configure

    r5899 r5940  
    7676# sun (at least) seems to need the socket library
    7777# linux does not
    78 set sockets = ""
     78set archlib = ""
    7979
    8080# check the hardware architecture:
     
    9191     set arch="sun4";
    9292   endif
    93    set sockets = "libsocket.a libnsl.a"
     93   # XXX old solaris needed termcap for readline
     94   set archlib = "libsocket libnsl libtermcap"
    9495   breaksw;
    9596 case Linux:
     
    112113
    113114# set up the basic directory names:
     115# XXX : this should be set based on the rules for libdir below
    114116set root = `pwd`
    115117if ($prefix == "") set prefix = $root
     
    119121# check for basic libraries
    120122set fail = 0
    121 foreach f ( libpng.a libz.a libjpeg.a libreadline.a libtermcap.a $sockets )
     123foreach f ( libpng libz libjpeg libreadline $archlib )
    122124    foreach g ( /usr/lib $lib )
    123         set name = "$g/$f"
     125        set name = "$g/$f.a"
    124126        if (-e $name) then
    125             echo "found $g/$f"
     127            echo "found $name"
     128            goto next_lib;
     129        endif
     130        set name = "$g/$f.so"
     131        if (-e $name) then
     132            echo "found $name"
    126133            goto next_lib;
    127134        endif
Note: See TracChangeset for help on using the changeset viewer.