Changeset 1844


Ignore:
Timestamp:
Nov 22, 2010 5:13:35 PM (10 years ago)
Author:
stefan
Message:

rerun autotools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Mumps/stable/1.3/configure

    r1839 r1844  
    2395123951# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x)
    2395223952projtoprocess="coinblas"
    23953 projprocessed=""
    23954 
    23955 while test $coin_has_blas = notGiven ; do
    23956   # setup list of projects that need to be processed in the next round
    23957   nextprojtoprocess=""
     23953
     23954# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     23955# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23956# also, we setup the DATA variable
     23957allproj=""
     23958allpcfiles=""
     23959while test "x$projtoprocess" != x ; do
    2395823960
    2395923961  for proj in $projtoprocess ; do
    23960     # if $proj has been processed already, skip this round
    23961     if test "x$projprocessed" != x ; then
    23962       for projdone in $projprocessed ; do
    23963         if test $projdone = $proj ; then
    23964           continue 2
    23965         fi
    23966       done
    23967     fi
    23968 
    2396923962    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    2397023963    pcfile=""
     
    2397523968      if test -r "$dir/$proj-uninstalled.pc" ; then
    2397623969        pcfile="$dir/$proj-uninstalled.pc"
    23977         pcfiledir="$dir"
    2397823970        break
    2397923971      fi
     
    2398223974
    2398323975    if test "x$pcfile" != x ; then
    23984       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    23985       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    23986       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23987       BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
    23988 
    23989       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    23990       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    23991       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    23992       if test "x$projlibs" != x ; then
    23993         if test -d "${pcfiledir}/src" ; then
    23994           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    23995         else
    23996           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    23997         fi
    23998       else
    23999         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    24000       fi
    24001       BLAS_LIBS="$BLAS_LIBS $projlibs"
     23976      # read dependencies from $pcfile and filter it
     23977      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     23978
     23979      # add projrequires to the front of the list of projects that have to be processed next
     23980      # at the same time, remove $proj from this list
     23981      projtoprocess=${projtoprocess/$proj/$projrequires}
    2400223982
    2400323983      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    24004       if test "x$projprocessed" = x ; then
     23984      if test "x$allproj" = x ; then
    2400523985        BLAS_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    2400623986      fi
    2400723987
    24008       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    24009       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    24010       nextprojtoprocess="$nextprojtoprocess $projrequires"
    24011 
    24012       # remember that we have processed $proj
    24013       projprocessed="$projprocessed $proj"
     23988      allproj="$allproj $proj"
     23989      allpcfiles="$pcfile:$allpcfiles"
    2401423990
    2401523991    else
    2401623992      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    2401723993echo "${ECHO_T}no, dependency $proj not available" >&6
     23994      allproj=fail
    2401823995      break 2
    2401923996    fi
    2402023997
     23998    break
    2402123999  done
    2402224000
    24023   projtoprocess="$nextprojtoprocess"
    24024 
    24025   # if there are no more projects to search for, finish up
    24026   if test "x$projtoprocess" = x ; then
    24027     coin_has_blas=yes
    24028     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    24029 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
     24001  # remove spaces on begin of $projtoprocess
     24002  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     24003
     24004done
     24005
     24006if test "$allproj" != fail ; then
     24007
     24008  # now go through the list of .pc files and assemble compiler and linker flags
     24009  # important is here to obey the reverse order that has been setup before,
     24010  # since then libraries that are required by several others should be after these other libraries
     24011  pcfilesprocessed=""
     24012
     24013  save_IFS="$IFS"
     24014  IFS=":"
     24015  for pcfile in $allpcfiles ; do
     24016
     24017    # if $pcfile has been processed already, skip this round
     24018    if test "x$pcfilesprocessed" != x ; then
     24019      for pcfiledone in $pcfilesprocessed ; do
     24020        if test "$pcfiledone" = "$pcfile" ; then
     24021          continue 2
     24022        fi
     24023      done
     24024    fi
     24025
     24026    # reconstruct the directory where the .pc file is located
     24027    pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
     24028
     24029    # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
     24030    projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     24031    projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24032    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
     24033
     24034    # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
     24035    # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
     24036    projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
     24037    if test "x$projlibs" != x ; then
     24038      if test -d "${pcfiledir}/src" ; then
     24039        projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
     24040      else
     24041        projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
     24042      fi
     24043    else
     24044      projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
     24045    fi
     24046    BLAS_LIBS="$projlibs $BLAS_LIBS"
     24047
     24048    # remember that we have processed $pcfile
     24049    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24050
     24051  done
     24052  IFS="$save_IFS"
     24053
     24054  # finish up
     24055  coin_has_blas=yes
     24056  echo "$as_me:$LINENO: result: yes" >&5
     24057echo "${ECHO_T}yes" >&6
    2403024058
    2403124059cat >>confdefs.h <<\_ACEOF
     
    2403524063
    2403624064
    24037       MUMPS_PCREQUIRES="coinblas $MUMPS_PCREQUIRES"
    24038       MUMPS_CFLAGS="$BLAS_CFLAGS $MUMPS_CFLAGS"
    24039       MUMPS_LIBS="$BLAS_LIBS $MUMPS_LIBS"
    24040 
    24041 
    24042     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    24043       if test -n "$BLAS_CFLAGS" ; then
    24044         { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
     24065    MUMPS_PCREQUIRES="coinblas $MUMPS_PCREQUIRES"
     24066    MUMPS_CFLAGS="$BLAS_CFLAGS $MUMPS_CFLAGS"
     24067    MUMPS_LIBS="$BLAS_LIBS $MUMPS_LIBS"
     24068
     24069
     24070  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24071    if test -n "$BLAS_CFLAGS" ; then
     24072      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
    2404524073echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
    24046       fi
    24047       if test -n "$BLAS_LIBS" ; then
    24048         { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
     24074    fi
     24075    if test -n "$BLAS_LIBS" ; then
     24076      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
    2404924077echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
    24050       fi
    24051       if test -n "$BLAS_DATA" ; then
    24052         { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
     24078    fi
     24079    if test -n "$BLAS_DATA" ; then
     24080      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
    2405324081echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
    24054       fi
    24055 
    24056         { echo "$as_me:$LINENO: MUMPS CFLAGS are $MUMPS_CFLAGS" >&5
     24082    fi
     24083
     24084      { echo "$as_me:$LINENO: MUMPS CFLAGS are $MUMPS_CFLAGS" >&5
    2405724085echo "$as_me: MUMPS CFLAGS are $MUMPS_CFLAGS" >&6;}
    24058         { echo "$as_me:$LINENO: MUMPS LIBS   are $MUMPS_LIBS" >&5
     24086      { echo "$as_me:$LINENO: MUMPS LIBS   are $MUMPS_LIBS" >&5
    2405924087echo "$as_me: MUMPS LIBS   are $MUMPS_LIBS" >&6;}
    2406024088
    24061     fi
    2406224089  fi
    24063 done
     24090
     24091fi
    2406424092
    2406524093
     
    2431624344# initial list of dependencies is "coinmetis >= 4.0", but we need to filter out version number specifications (= x, <= x, >= x)
    2431724345projtoprocess="coinmetis "
    24318 projprocessed=""
    24319 
    24320 while test $coin_has_metis = notGiven ; do
    24321   # setup list of projects that need to be processed in the next round
    24322   nextprojtoprocess=""
     24346
     24347# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     24348# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     24349# also, we setup the DATA variable
     24350allproj=""
     24351allpcfiles=""
     24352while test "x$projtoprocess" != x ; do
    2432324353
    2432424354  for proj in $projtoprocess ; do
    24325     # if $proj has been processed already, skip this round
    24326     if test "x$projprocessed" != x ; then
    24327       for projdone in $projprocessed ; do
    24328         if test $projdone = $proj ; then
    24329           continue 2
    24330         fi
    24331       done
    24332     fi
    24333 
    2433424355    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    2433524356    pcfile=""
     
    2434024361      if test -r "$dir/$proj-uninstalled.pc" ; then
    2434124362        pcfile="$dir/$proj-uninstalled.pc"
    24342         pcfiledir="$dir"
    2434324363        break
    2434424364      fi
     
    2434724367
    2434824368    if test "x$pcfile" != x ; then
    24349       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    24350       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    24351       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    24352       METIS_CFLAGS="$projcflags $METIS_CFLAGS"
    24353 
    24354       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    24355       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    24356       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    24357       if test "x$projlibs" != x ; then
    24358         if test -d "${pcfiledir}/src" ; then
    24359           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    24360         else
    24361           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    24362         fi
    24363       else
    24364         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    24365       fi
    24366       METIS_LIBS="$METIS_LIBS $projlibs"
     24369      # read dependencies from $pcfile and filter it
     24370      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     24371
     24372      # add projrequires to the front of the list of projects that have to be processed next
     24373      # at the same time, remove $proj from this list
     24374      projtoprocess=${projtoprocess/$proj/$projrequires}
    2436724375
    2436824376      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    24369       if test "x$projprocessed" = x ; then
     24377      if test "x$allproj" = x ; then
    2437024378        METIS_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    2437124379      fi
    2437224380
    24373       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    24374       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    24375       nextprojtoprocess="$nextprojtoprocess $projrequires"
    24376 
    24377       # remember that we have processed $proj
    24378       projprocessed="$projprocessed $proj"
     24381      allproj="$allproj $proj"
     24382      allpcfiles="$pcfile:$allpcfiles"
    2437924383
    2438024384    else
    2438124385      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    2438224386echo "${ECHO_T}no, dependency $proj not available" >&6
     24387      allproj=fail
    2438324388      break 2
    2438424389    fi
    2438524390
     24391    break
    2438624392  done
    2438724393
    24388   projtoprocess="$nextprojtoprocess"
    24389 
    24390   # if there are no more projects to search for, finish up
    24391   if test "x$projtoprocess" = x ; then
    24392     coin_has_metis=yes
    24393     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    24394 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
     24394  # remove spaces on begin of $projtoprocess
     24395  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     24396
     24397done
     24398
     24399if test "$allproj" != fail ; then
     24400
     24401  # now go through the list of .pc files and assemble compiler and linker flags
     24402  # important is here to obey the reverse order that has been setup before,
     24403  # since then libraries that are required by several others should be after these other libraries
     24404  pcfilesprocessed=""
     24405
     24406  save_IFS="$IFS"
     24407  IFS=":"
     24408  for pcfile in $allpcfiles ; do
     24409
     24410    # if $pcfile has been processed already, skip this round
     24411    if test "x$pcfilesprocessed" != x ; then
     24412      for pcfiledone in $pcfilesprocessed ; do
     24413        if test "$pcfiledone" = "$pcfile" ; then
     24414          continue 2
     24415        fi
     24416      done
     24417    fi
     24418
     24419    # reconstruct the directory where the .pc file is located
     24420    pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
     24421
     24422    # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
     24423    projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     24424    projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24425    METIS_CFLAGS="$projcflags $METIS_CFLAGS"
     24426
     24427    # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
     24428    # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
     24429    projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
     24430    if test "x$projlibs" != x ; then
     24431      if test -d "${pcfiledir}/src" ; then
     24432        projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
     24433      else
     24434        projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
     24435      fi
     24436    else
     24437      projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
     24438    fi
     24439    METIS_LIBS="$projlibs $METIS_LIBS"
     24440
     24441    # remember that we have processed $pcfile
     24442    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24443
     24444  done
     24445  IFS="$save_IFS"
     24446
     24447  # finish up
     24448  coin_has_metis=yes
     24449  echo "$as_me:$LINENO: result: yes" >&5
     24450echo "${ECHO_T}yes" >&6
    2439524451
    2439624452cat >>confdefs.h <<\_ACEOF
     
    2440024456
    2440124457
    24402       MUMPS_PCREQUIRES="coinmetis >= 4.0 $MUMPS_PCREQUIRES"
    24403       MUMPS_CFLAGS="$METIS_CFLAGS $MUMPS_CFLAGS"
    24404       MUMPS_LIBS="$METIS_LIBS $MUMPS_LIBS"
    24405 
    24406 
    24407     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    24408       if test -n "$METIS_CFLAGS" ; then
    24409         { echo "$as_me:$LINENO: Metis CFLAGS are $METIS_CFLAGS" >&5
     24458    MUMPS_PCREQUIRES="coinmetis >= 4.0 $MUMPS_PCREQUIRES"
     24459    MUMPS_CFLAGS="$METIS_CFLAGS $MUMPS_CFLAGS"
     24460    MUMPS_LIBS="$METIS_LIBS $MUMPS_LIBS"
     24461
     24462
     24463  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24464    if test -n "$METIS_CFLAGS" ; then
     24465      { echo "$as_me:$LINENO: Metis CFLAGS are $METIS_CFLAGS" >&5
    2441024466echo "$as_me: Metis CFLAGS are $METIS_CFLAGS" >&6;}
    24411       fi
    24412       if test -n "$METIS_LIBS" ; then
    24413         { echo "$as_me:$LINENO: Metis LIBS   are $METIS_LIBS" >&5
     24467    fi
     24468    if test -n "$METIS_LIBS" ; then
     24469      { echo "$as_me:$LINENO: Metis LIBS   are $METIS_LIBS" >&5
    2441424470echo "$as_me: Metis LIBS   are $METIS_LIBS" >&6;}
    24415       fi
    24416       if test -n "$METIS_DATA" ; then
    24417         { echo "$as_me:$LINENO: Metis DATA   is  $METIS_DATA" >&5
     24471    fi
     24472    if test -n "$METIS_DATA" ; then
     24473      { echo "$as_me:$LINENO: Metis DATA   is  $METIS_DATA" >&5
    2441824474echo "$as_me: Metis DATA   is  $METIS_DATA" >&6;}
    24419       fi
    24420 
    24421         { echo "$as_me:$LINENO: MUMPS CFLAGS are $MUMPS_CFLAGS" >&5
     24475    fi
     24476
     24477      { echo "$as_me:$LINENO: MUMPS CFLAGS are $MUMPS_CFLAGS" >&5
    2442224478echo "$as_me: MUMPS CFLAGS are $MUMPS_CFLAGS" >&6;}
    24423         { echo "$as_me:$LINENO: MUMPS LIBS   are $MUMPS_LIBS" >&5
     24479      { echo "$as_me:$LINENO: MUMPS LIBS   are $MUMPS_LIBS" >&5
    2442424480echo "$as_me: MUMPS LIBS   are $MUMPS_LIBS" >&6;}
    2442524481
    24426     fi
    2442724482  fi
    24428 done
     24483
     24484fi
    2442924485
    2443024486
Note: See TracChangeset for help on using the changeset viewer.