IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11746


Ignore:
Timestamp:
Feb 11, 2007, 12:20:04 PM (19 years ago)
Author:
eugene
Message:

fixing lib searches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/base-1-5/Ohana/configure.tcsh

    r11285 r11746  
    118118
    119119set needlibs = "png z jpeg readline X11 pthread m"
    120 set syslibpath = "/usr/lib /usr/X11R6/lib /usr/openwin/lib"
     120set syslibpath = "/lib /usr/lib /usr/X11R6/lib /usr/openwin/lib"
    121121
    122122set needincs = "math.h fcntl.h malloc.h errno.h time.h memory.h stdlib.h string.h X11/X.h"
     
    145145   if ("$mach" == "x86_64") then
    146146    set arch="lin64";
     147    set syslibpath = "/lib64 /lib /usr/lib64 /usr/lib /usr/X11R6/lib64 /usr/X11R6/lib"
    147148   endif
    148149   breaksw;
     
    178179set libflags = ""
    179180set libdirs  = ""
     181set nonomatch
    180182foreach f ( $needlibs )
    181183    foreach g ( $syslibpath $lib $libpath )
    182         set name = "$g/lib$f.a"
    183         if (-e $name) goto got_lib;
    184         set name = "$g/lib$f.so"
    185         if (-e $name) goto got_lib;
     184        set name = $g/lib$f.a
     185        if (-e $name[1]) goto got_lib;
     186        set name = $g/lib$f.so*
     187        if (-e $name[1]) goto got_lib;
    186188    end
    187189    echo "missing lib$f"
Note: See TracChangeset for help on using the changeset viewer.