Changeset 3840 in Sophya for trunk/SophyaLib/BuildMgr/configure
- Timestamp:
- Aug 10, 2010, 12:25:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BuildMgr/configure
r3818 r3840 30 30 set defextlib = ( /usr/lib /usr/local/lib ) 31 31 32 set defepiinc = ( /usr/X11R6/include ) 33 set defepilib = ( /usr/X11R6/lib ) 32 34 33 35 #---------------------------------------------------------------------- … … 37 39 set extpathinc 38 40 set extpathlib 41 set avecEXT 39 42 unset incln 40 43 unset mincname … … 52 55 unset alsofftwfloat 53 56 unset slballinone 57 ## variables pour PI (librairie motif, GNU-readline ...) 58 set epipath 59 unset wgrdl 60 set avecPI 61 62 #### boucle de decodage des arguments : 54 63 while ( $#argv > 0 ) 55 64 … … 60 69 echo ' [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ] [-extlp dir1 -extlp dir2 ... ]' 61 70 echo ' [-noextlib] [-noext fits] [-noext fftw] [-noext lapack] [-noext astro]' 62 echo ' [-noPI] [-slballinone]'63 71 echo ' [-alsofftwfloat] [-usefftw2] [-uselapack2] ' 72 echo ' [-wgrdl] [-epip mdir1 -motp mdir2 ...] [-noPI] [-slballinone]' 64 73 echo ' (See SOPHYA manual/web pages for a detailed description of configure options)' 65 74 exit -1 … … 102 111 set SOPEXTOK[$i] = 0 103 112 end 113 unset avecEXT 104 114 endif 105 115 if( "$1" == "-noext" ) then … … 110 120 end 111 121 shift 112 endif113 if( "$1" == "-PI" ) then114 set SOPPIOK = ( 0 0 0 )115 122 endif 116 123 if( "$1" == "-alsofftwfloat" ) then … … 142 149 set uselapack2 143 150 endif 151 ## Decodage arguments specifique PI 152 if( "$1" == "-noPI" ) then 153 set SOPPIOK = ( 0 0 0 ) 154 unset avecPI 155 endif 156 ## compil piapp avec GNU-readline 157 if( "$1" == "-wgrdl" ) then 158 set wgrdl 159 endif 160 ## Chemin motif , readline ... 161 if( "$1" == "-epip" ) then 162 set epipath = ( $epipath $2 ) 163 shift 164 endif 144 165 if( "$1" == "-slballinone" ) then 145 166 # Pour utiliser une seule librairie libsophyaPIext.so au lieu … … 181 202 end 182 203 183 ## ------ Detection linux 64 bits ---204 ## ------ Detection linux 64 bits, AIX, IRIX --- 184 205 unset linux64 185 206 if ( `uname` == "Linux" ) then … … 190 211 endif 191 212 endif 213 set sname = `uname` 214 if ( ( "$sname" == "IRIX64" ) || ( "$sname" == "AIX" ) ) set arch64 192 215 193 216 … … 313 336 #### lien des .h des librairies externes 314 337 echo " " 315 echo ">>>>>> 3 / Include files for external libraries "338 echo ">>>>>> 3.1/ Include files for external libraries " 316 339 set i = 0 317 340 while ( $i < $#SOPEXT ) … … 341 364 end 342 365 366 ### recherche des .h Motif et si besoin readline 367 set piextinc 368 if ( $?avecPI ) then 369 echo " " 370 echo ">>>>>> 3.2/ searching include files for Motif " 371 foreach d ( $epipath /usr/X11R6/include ) 372 set duminc = `find $d -name Xm -print -follow | head -1 ` 373 set dumrep = $duminc:h 374 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 384 endif 385 if ( $?wgrdl ) then 386 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:h 390 if ( "$dumrep2" != "" ) then 391 if ( "$dumrep2" != "$dumrep" ) set piextinc = "-I$dumrep2 $piextinc" 392 echo Includes for readline found in $dumrep 393 break 394 endif 395 end 396 if ( "$dumrep2" == "" ) then 397 echo WARNING: Includes for readline NOT found 398 echo ' expect problems when compiling piapp, check sophyamake.inc ... ' 399 endif 400 endif 401 402 endif 403 endif 343 404 344 405 #---------------------------------------------------------------------- … … 376 437 rm -f $fpath 377 438 439 ### recherche des librairies Motif et si besoin readline 440 set piextlib = '-L/usr/X11R6/lib -lXm' 441 if ( $?avecPI ) then 442 echo " " 443 echo ">>>>>> 4.2/ searching library Motif (libXm.a) " 444 foreach d ( $epipath /usr/X11R6/lib ) 445 set dumlib = `find $d -name libXm.a -print -follow | head -1 ` 446 set dumrep = $dumlib:h 447 if ( "$dumrep" != "" ) then 448 set piextlib = "-L$dumrep -lXm" 449 echo Motif library found in $dumrep 450 break 451 endif 452 end 453 if ( "$dumrep" == "" ) then 454 echo WARNING: Motif library NOT found 455 echo ' expect problems when for linking with PI, check sophyamake.inc ... ' 456 endif 457 endif 458 if ( $?wgrdl ) then 459 echo ">>>>>> 4.3/ searching libraries for GNU readline " 460 foreach d ( $epipath /usr/local ) 461 set dumlib = `find $d -name libreadline.a -print -follow | head -1 ` 462 set dumrep2 = $dumlib:h 463 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 471 endif 472 end 473 if ( "$dumrep" == "" ) then 474 echo WARNING: libraries for readline NOT found 475 echo ' expect problems for linking piapp, check sophyamake.inc ... ' 476 endif 477 endif 478 endif 479 endif 480 378 481 379 482 #---------------------------------------------------------------------- 380 483 #### Identification des librairies archives Sophya 381 484 echo " " 382 echo ">>>>>> 4. 2/ Sophya libraries archives "485 echo ">>>>>> 4.4/ Sophya libraries archives " 383 486 set sopmodlib 384 487 set i = 0 … … 443 546 echo "# PI libraries " >> $mfile 444 547 echo "SOPPILIBLIST = $soppilib" >> $mfile 548 echo "PIEXTINC = $piextinc" >> $mfile 549 echo "PIEXTLIB = $piextlib" >> $mfile 550 echo "PIEXTINC = $piextinc" 551 echo "PIEXTLIB = $piextlib" 445 552 446 553 echo " " >> $mfile … … 448 555 449 556 # --- Gestion des flags modifiants les options de compilation et liste de librairies (par sed) 450 set sname = `uname`451 557 set sprgfile = $TMPDIR/compop.scom 452 558 rm -f $sprgfile … … 477 583 echo "/SOPHYAEXTSLBLIST/s/-lextsophya -lsophya/-lAsophyaextPI/" >> $sprgfile 478 584 endif 479 if ( $?linux64 ) then 585 if ( ! $?avecEXT ) then 586 echo "/SOPHYAEXTSLBLIST/s/-lextsophya/ /" >> $sprgfile 587 echo "/SOPHYAALLSLBLIST/s/-lextsophya/ /" >> $sprgfile 588 endif 589 if ( ! $?avecPI ) then 590 echo "/SOPHYAALLSLBLIST/s/-lPI/ /" >> $sprgfile 591 endif 592 if ( ( $?linux64 ) && ( $?arch64) ) then 480 593 echo "s?-L/usr/X11R6/lib?-L/usr/X11R6/lib64?g" >> $sprgfile 481 594 endif … … 574 687 echo "#define LAPACK_V2_EXTSOP" >> $sinc/sspvflags.h 575 688 endif 576 echo " " >> $sinc/sspvflags.h 689 if( $?wgrdl ) then 690 echo "/*-- Compile piapp with GNU-readline -- */" >> $sinc/sspvflags.h 691 echo "#define PIA_WITH_GNUREADLINE" >> $sinc/sspvflags.h 692 endif 577 693 if( $?slballinone ) then 578 694 echo "/*------ Use of single shared lib for SOPHYA+extlibs+PI ---- */" >> $sinc/sspvflags.h
Note:
See TracChangeset
for help on using the changeset viewer.