IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16287


Ignore:
Timestamp:
Feb 3, 2008, 11:50:26 AM (18 years ago)
Author:
eugene
Message:

adding common non-system libs and incs to paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psconfig.csh.in

    r16217 r16287  
    296296endif
    297297
     298# supplement CPATH, LIBRARY_PATH and LD_LIBRARY_PATH with a few extra common locations
     299# we probably can drop the system libraries here
     300set xtralibs = ( "/lib" "/usr/lib" "/usr/X11R6/lib" "/usr/local/lib" )
     301set xtrapath = ( "/usr/include" "/usr/local/include" "/usr/X11R6/include" )
     302
     303# add architecture-dependent paths
     304switch ($ARCH)
     305   breaksw;
     306
     307 case sol:
     308 case sun4:
     309   set xtralibs = ( $xtralibs "/usr/openwin/lib" )
     310   set xtrapath = ( $xtrapath "/usr/openwin/include")
     311   breaksw;
     312
     313 case linux:
     314 case linrh:
     315   breaksw;
     316
     317 case lin64:
     318 case linrh64:
     319   set xtralibs = ( $xtralibs "/lib64" "/usr/lib64" "/usr/X11R6/lib64" )
     320   breaksw;
     321
     322 case darwin:
     323 case darwin_x86:
     324   set xtralibs = ( $xtralibs "/sw/lib" )
     325   set xtrapath = ( $xtrapath "/sw/include" "/usr/include/sys")
     326   breaksw;
     327
     328 case sid:
     329 case hp:
     330 case irix:
     331
     332 default:
     333   echo "unknown architecture";
     334   breaksw;
     335endsw
     336
     337# add to LD_LIBRARY_PATH if not found
     338foreach name ($xtralibs)
     339  echo $LD_LIBRARY_PATH | grep $name> /dev/null
     340  if ($status == 0) continue
     341  setenv LD_LIBRARY_PATH {$LD_LIBRARY_PATH}{$name}:
     342end
     343# add to LIBRARY_PATH if not found
     344foreach name ($xtralibs)
     345  echo $LIBRARY_PATH | grep $name > /dev/null
     346  if ($status == 0) continue
     347  setenv LIBRARY_PATH {$LIBRARY_PATH}{$name}:
     348end
     349# add to CPATH if not found
     350foreach name ($xtrapath)
     351  echo $CPATH | grep $name > /dev/null
     352  if ($status == 0) continue
     353  setenv CPATH {$CPATH}{$name}:
     354end
     355
    298356# Build wants to put things in prefix/*, MakeMaker wants to put them in prefix/perl5/*
    299357set plibdir  = {$PSCONFDIR}/{$PSCONFIG}/lib
Note: See TracChangeset for help on using the changeset viewer.