Changeset 3843 in Sophya for trunk/SophyaLib/BuildMgr
- Timestamp:
- Aug 10, 2010, 1:29:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BuildMgr/configure
r3840 r3843 2 2 # SOPHYA configuration managment script 3 3 # C. Magneville / R. Ansari - Mai 2005 4 # Updated : 2006, Avr/Mai , Oct 2007 4 # Updated : 2006, Avr/Mai , Oct 2007 , 2010 5 5 # Exemple: ./configure -sbase /laltmp/ansari/sbase/ -scxx cxx -extp /exp/planck/ExtLibs/Include/ \ 6 6 # -extp /exp/planck/ExtLibs/OSF1-cxx/ … … 39 39 set extpathinc 40 40 set extpathlib 41 set followlink 41 42 set avecEXT 42 43 unset incln … … 66 67 echo 'configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] ' 67 68 echo " [-minc mymake.inc] [-compopt 'cc/cxxOptions'] " 68 echo ' [-arch64] [-arch32] [-sasz64] [-ldble128] [-nofpic] [-nothsafe] [-boundcheck] [-sodebug]' 69 echo ' [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ] [-extlp dir1 -extlp dir2 ... ]' 69 echo ' [-arch64] [-arch32] [-sasz64] [-ldble128] ' 70 echo ' [-nofpic] [-nothsafe] [-boundcheck] [-sodebug]' 71 echo ' [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ]' 72 echo ' [-extlp dir1 -extlp dir2 ... ] [-followlink] ' 70 73 echo ' [-noextlib] [-noext fits] [-noext fftw] [-noext lapack] [-noext astro]' 71 74 echo ' [-alsofftwfloat] [-usefftw2] [-uselapack2] ' … … 104 107 set extpathlib = ( $extpathlib $2 ) 105 108 shift 109 endif 110 if( "$1" == "-followlink" ) then 111 set followlink = '-L ' 106 112 endif 107 113 if( "$1" == "-noextlib" ) then … … 276 282 277 283 #---------------------------------------------------------------------- 278 #### Fichier confinfo - log e configure284 #### Fichier confinfo - log de configure 279 285 set conflog = $sconf/conf.log 280 286 rm -f $conflog ; touch $conflog … … 347 353 echo "Searching include file for $SOPEXT[$i] ..." 348 354 foreach d ( $extpathinc $extpath $defextinc ) 349 set duminc = `find $ d -name $nom -print -follow| head -1 `355 set duminc = `find $followlink $d -name $nom -print | head -1 ` 350 356 set dumrep = $duminc:h 351 357 if ( "$dumrep" != "" ) then … … 370 376 echo ">>>>>> 3.2/ searching include files for Motif " 371 377 foreach d ( $epipath /usr/X11R6/include ) 372 set duminc = `find $ d -name Xm -print -follow| head -1 `378 set duminc = `find $followlink $d -name Xm -print | head -1 ` 373 379 set dumrep = $duminc:h 374 380 if ( "$dumrep" != "" ) then 375 set piextinc = "-I$dumrep" 376 echo Includes for Motif found in $dumrep 377 break 378 endif 379 end 380 if ( "$dumrep" == "" ) then 381 echo WARNING: Includes for Motif NOT found 382 echo ' expect problems when compiling PI modules, check sophyamake.inc ... ' 383 endif 381 set piextinc = "-I$dumrep" 382 echo Includes for Motif found in $dumrep 383 break 384 endif 385 end 386 if ( "$dumrep" == "" ) then 387 echo WARNING: Includes for Motif NOT found 388 echo ' expect problems when compiling PI modules, check sophyamake.inc ... ' 384 389 endif 385 390 if ( $?wgrdl ) then 386 391 echo ">>>>>> 3.3/ searching include files for GNU readline " 387 foreach d ( $epipath /usr/local )388 set duminc = `find $d -name readline -print -follow| head -1 `389 set dumrep2 = $duminc:h390 if ( "$dumrep2" != "" ) then392 foreach d ( $epipath /usr/local ) 393 set duminc = `find $followlink $d -name readline -print | head -1 ` 394 set dumrep2 = $duminc:h 395 if ( "$dumrep2" != "" ) then 391 396 if ( "$dumrep2" != "$dumrep" ) set piextinc = "-I$dumrep2 $piextinc" 392 397 echo Includes for readline found in $dumrep … … 399 404 endif 400 405 endif 401 402 endif403 406 endif 404 407 … … 419 422 echo "Searching libraries path for $SOPEXT[$i] ..." 420 423 foreach d ( $extpathlib $extpath $defextlib ) 421 set dumlib = `find $ d -name $nom -print -follow| head -1 `424 set dumlib = `find $followlink $d -name $nom -print | head -1 ` 422 425 if ( "$dumlib" != "" ) then 423 426 echo "-L$dumlib:h" >> $fpath … … 443 446 echo ">>>>>> 4.2/ searching library Motif (libXm.a) " 444 447 foreach d ( $epipath /usr/X11R6/lib ) 445 set dumlib = `find $ d -name libXm.a -print -follow| head -1 `448 set dumlib = `find $followlink $d -name libXm.a -print | head -1 ` 446 449 set dumrep = $dumlib:h 447 450 if ( "$dumrep" != "" ) then 448 449 450 451 451 set piextlib = "-L$dumrep -lXm" 452 echo Motif library found in $dumrep 453 break 454 endif 452 455 end 453 456 if ( "$dumrep" == "" ) then … … 455 458 echo ' expect problems when for linking with PI, check sophyamake.inc ... ' 456 459 endif 457 endif458 460 if ( $?wgrdl ) then 459 461 echo ">>>>>> 4.3/ searching libraries for GNU readline " 460 462 foreach d ( $epipath /usr/local ) 461 set dumlib = `find $ d -name libreadline.a -print -follow| head -1 `463 set dumlib = `find $followlink $d -name libreadline.a -print | head -1 ` 462 464 set dumrep2 = $dumlib:h 463 465 if ( "$dumrep2" != "" ) then 464 if ( "$dumrep2" != "$dumrep" ) then 465 set piextlib = "$piextlib -L$dumrep -lreadline -lhistory " 466 else 467 set piextlib = "$piextlib -lreadline -lhistory " 468 endif 469 echo Libraries for readline found in $dumrep 470 break 466 if ( "$dumrep2" != "$dumrep" ) then 467 set piextlib = "$piextlib -L$dumrep -lreadline -lhistory " 468 else 469 set piextlib = "$piextlib -lreadline -lhistory " 471 470 endif 471 echo Libraries for readline found in $dumrep 472 break 473 endif 472 474 end 473 475 if ( "$dumrep" == "" ) then … … 476 478 endif 477 479 endif 478 endif479 480 endif 480 481 481 482 482 #---------------------------------------------------------------------- … … 584 584 endif 585 585 if ( ! $?avecEXT ) then 586 echo "/SOPHYAEXTSLBLIST/s/-lextsophya / /" >> $sprgfile587 echo "/SOPHYAALLSLBLIST/s/-lextsophya / /" >> $sprgfile586 echo "/SOPHYAEXTSLBLIST/s/-lextsophya / /" >> $sprgfile 587 echo "/SOPHYAALLSLBLIST/s/-lextsophya / /" >> $sprgfile 588 588 endif 589 589 if ( ! $?avecPI ) then 590 echo "/SOPHYAALLSLBLIST/s/-lPI / /" >> $sprgfile590 echo "/SOPHYAALLSLBLIST/s/-lPI / /" >> $sprgfile 591 591 endif 592 592 if ( ( $?linux64 ) && ( $?arch64) ) then
Note:
See TracChangeset
for help on using the changeset viewer.