Changeset 16287
- Timestamp:
- Feb 3, 2008, 11:50:26 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psconfig/psconfig.csh.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/psconfig.csh.in
r16217 r16287 296 296 endif 297 297 298 # supplement CPATH, LIBRARY_PATH and LD_LIBRARY_PATH with a few extra common locations 299 # we probably can drop the system libraries here 300 set xtralibs = ( "/lib" "/usr/lib" "/usr/X11R6/lib" "/usr/local/lib" ) 301 set xtrapath = ( "/usr/include" "/usr/local/include" "/usr/X11R6/include" ) 302 303 # add architecture-dependent paths 304 switch ($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; 335 endsw 336 337 # add to LD_LIBRARY_PATH if not found 338 foreach 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}: 342 end 343 # add to LIBRARY_PATH if not found 344 foreach name ($xtralibs) 345 echo $LIBRARY_PATH | grep $name > /dev/null 346 if ($status == 0) continue 347 setenv LIBRARY_PATH {$LIBRARY_PATH}{$name}: 348 end 349 # add to CPATH if not found 350 foreach name ($xtrapath) 351 echo $CPATH | grep $name > /dev/null 352 if ($status == 0) continue 353 setenv CPATH {$CPATH}{$name}: 354 end 355 298 356 # Build wants to put things in prefix/*, MakeMaker wants to put them in prefix/perl5/* 299 357 set plibdir = {$PSCONFDIR}/{$PSCONFIG}/lib
Note:
See TracChangeset
for help on using the changeset viewer.
