Changeset 3843 in Sophya for trunk/SophyaLib/BuildMgr/configure


Ignore:
Timestamp:
Aug 10, 2010, 1:29:46 PM (15 years ago)
Author:
ansari
Message:

Ajout option -followlink a configure, Reza 10/08/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BuildMgr/configure

    r3840 r3843  
    22#  SOPHYA configuration managment script
    33#  C. Magneville / R. Ansari   -      Mai 2005
    4 #     Updated : 2006, Avr/Mai , Oct 2007
     4#     Updated : 2006, Avr/Mai , Oct 2007 , 2010
    55# Exemple: ./configure -sbase /laltmp/ansari/sbase/ -scxx cxx -extp /exp/planck/ExtLibs/Include/ \
    66#              -extp /exp/planck/ExtLibs/OSF1-cxx/
     
    3939set extpathinc
    4040set extpathlib
     41set followlink
    4142set avecEXT
    4243unset incln
     
    6667  echo 'configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] '
    6768  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] '
    7073  echo '  [-noextlib] [-noext fits] [-noext fftw] [-noext lapack] [-noext astro]'
    7174  echo '  [-alsofftwfloat] [-usefftw2] [-uselapack2] '
     
    104107  set extpathlib = ( $extpathlib $2 )
    105108  shift
     109endif
     110if( "$1" == "-followlink" ) then
     111  set followlink = '-L '
    106112endif
    107113if( "$1" == "-noextlib" ) then
     
    276282
    277283#----------------------------------------------------------------------
    278 #### Fichier confinfo - log e configure
     284#### Fichier confinfo - log de configure
    279285set conflog = $sconf/conf.log
    280286rm -f $conflog ; touch $conflog
     
    347353    echo "Searching include file for $SOPEXT[$i] ..."
    348354    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 `
    350356      set dumrep = $duminc:h
    351357      if ( "$dumrep" != "" ) then
     
    370376  echo ">>>>>> 3.2/ searching include files for Motif "
    371377  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 `
    373379    set dumrep = $duminc:h
    374380    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 ... '
    384389  endif
    385390  if ( $?wgrdl ) then
    386391    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
     392    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
    391396        if ( "$dumrep2" != "$dumrep" )  set piextinc = "-I$dumrep2 $piextinc"
    392397        echo Includes for readline found in $dumrep
     
    399404    endif
    400405  endif
    401 
    402   endif
    403406endif
    404407
     
    419422    echo "Searching libraries path for $SOPEXT[$i] ..."
    420423    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 `
    422425      if ( "$dumlib" != "" ) then
    423426        echo "-L$dumlib:h" >> $fpath
     
    443446  echo ">>>>>> 4.2/ searching library Motif (libXm.a) "
    444447  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 `
    446449    set dumrep = $dumlib:h
    447450    if ( "$dumrep" != "" ) then
    448         set piextlib = "-L$dumrep -lXm"
    449         echo Motif library found in $dumrep
    450         break
    451       endif
     451      set piextlib = "-L$dumrep -lXm"
     452      echo Motif library found in $dumrep
     453      break
     454    endif
    452455    end
    453456    if ( "$dumrep" == "" ) then
     
    455458      echo '    expect problems when for linking with PI, check sophyamake.inc ... '
    456459    endif
    457   endif
    458460  if ( $?wgrdl ) then
    459461    echo ">>>>>> 4.3/ searching libraries for GNU readline "
    460462  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 `
    462464    set dumrep2 = $dumlib:h
    463465    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 "
    471470      endif
     471      echo Libraries for readline found in $dumrep
     472      break
     473    endif
    472474    end
    473475    if ( "$dumrep" == "" ) then
     
    476478    endif
    477479  endif
    478   endif
    479480endif
    480 
    481481
    482482#----------------------------------------------------------------------
     
    584584endif
    585585if ( ! $?avecEXT ) then
    586   echo "/SOPHYAEXTSLBLIST/s/-lextsophya/ /"  >>  $sprgfile
    587   echo "/SOPHYAALLSLBLIST/s/-lextsophya/ /"  >>  $sprgfile
     586  echo "/SOPHYAEXTSLBLIST/s/-lextsophya / /"  >>  $sprgfile
     587  echo "/SOPHYAALLSLBLIST/s/-lextsophya / /"  >>  $sprgfile
    588588endif
    589589if ( ! $?avecPI ) then
    590   echo "/SOPHYAALLSLBLIST/s/-lPI/ /"  >>  $sprgfile
     590  echo "/SOPHYAALLSLBLIST/s/-lPI / /"  >>  $sprgfile
    591591endif
    592592if ( ( $?linux64 ) && ( $?arch64) ) then
Note: See TracChangeset for help on using the changeset viewer.