Changeset 1536


Ignore:
Timestamp:
Apr 30, 2010 9:06:40 AM (10 years ago)
Author:
stefan
Message:

use extended COIN_HAS_MODULE macro

Location:
ThirdParty/Mumps/branches/split
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Mumps/branches/split/configure

    r1514 r1536  
    2363223632
    2363323633if test "x$use_blas" = xBUILD ; then
     23634  if test -d ../ThirdParty/Blas ; then
    2363423635
    2363523636echo "$as_me:$LINENO: checking for COIN-OR module Blas" >&5
     
    2377023771    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2377123772  else
    23772     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    23773 echo "${ECHO_T}skipped check via pkg-config" >&6
     23773    #if 4th argument is given, try fallback - whereby we take the first word from coinblas as basename for the .pc file
     23774
     23775if test x$coin_has_blas != "xyes" ; then
     23776
     23777
     23778
     23779coin_has_blas=notGiven
     23780
     23781# check if user wants to skip module in any case
     23782if test x"$COIN_SKIP_PROJECTS" != x; then
     23783  for dir in $COIN_SKIP_PROJECTS; do
     23784    if test $dir = "Blas"; then
     23785      coin_has_blas=skipping
     23786    fi
     23787  done
     23788fi
     23789
     23790BLAS_LIBS=
     23791BLAS_CFLAGS=
     23792BLAS_DATA=
     23793
     23794
     23795if test $coin_has_blas != "skipping" ; then
     23796  # if the project is available and configured, then a project-uninstalled.pc file should have been created
     23797  if test -r ../ThirdParty/Blas/coinblas-uninstalled.pc ; then
     23798    # read CFLAGS and LIBS from m4_bpatsubst(coinblas, [ .*], [])-uninstalled.pc file
     23799    # add CYGPATH_W cludge into include flags
     23800    # replace -L${libdir} by absolute path to build directory in linker flags
     23801    # we assume that the build directory is ../ThirdParty/Blas/src if this directory exists, otherwise we assume that it is ../ThirdParty/Blas
     23802    BLAS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\(^ *\)/-I\`${CYGPATH_W} \1\`/gp' ../ThirdParty/Blas/coinblas-uninstalled.pc`
     23803    projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../ThirdParty/Blas/coinblas-uninstalled.pc`
     23804    if test "x$projectlibs" != x ; then
     23805      if test -d ../ThirdParty/Blas/src ; then
     23806        BLAS_LIBS="-L`cd ../ThirdParty/Blas/src; pwd` $projectlibs"
     23807      else
     23808        BLAS_LIBS="-L`cd ../ThirdParty/Blas; pwd` $projectlibs"
     23809      fi
     23810    else
     23811      BLAS_LIBS=`sed -n -e 's/Libs://p' ../ThirdParty/Blas/coinblas-uninstalled.pc`
     23812    fi
     23813    BLAS_DATA=`sed -n -e 's/datadir=//gp' ../ThirdParty/Blas/coinblas-uninstalled.pc`
     23814
     23815    ADDLIBS="$ADDLIBS $BLAS_LIBS"
     23816       REQUIREDPACKAGES="$REQUIREDPACKAGES coinblas"
     23817
     23818
     23819
     23820cat >>confdefs.h <<\_ACEOF
     23821#define COIN_HAS_BLAS 1
     23822_ACEOF
     23823
     23824
     23825
     23826    coin_has_blas=yes
     23827    echo "$as_me:$LINENO: result: ../ThirdParty/Blas" >&5
     23828echo "${ECHO_T}../ThirdParty/Blas" >&6
     23829  else
     23830    echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     23831echo "${ECHO_T}$coin_has_blas" >&6
     23832  fi
     23833else
     23834  echo "$as_me:$LINENO: result: skipping" >&5
     23835echo "${ECHO_T}skipping" >&6
     23836fi
     23837
     23838#if user did not disable setting of makefile conditional, do it
     23839
     23840
     23841if test $coin_has_blas != notGiven &&
     23842                test $coin_has_blas != skipping; then
     23843  COIN_HAS_BLAS_TRUE=
     23844  COIN_HAS_BLAS_FALSE='#'
     23845else
     23846  COIN_HAS_BLAS_TRUE='#'
     23847  COIN_HAS_BLAS_FALSE=
     23848fi
     23849
     23850
     23851fi
     23852
     23853
    2377423854  fi
    2377523855
     
    2381623896
    2381723897
    23818 
    23819 elif test "x$use_blas" != x && test "$use_blas" != no; then
    23820   coin_has_blas=yes
    23821 
    23822 
    23823 if test 0 = 0; then
    23824   COIN_HAS_BLAS_TRUE=
    23825   COIN_HAS_BLAS_FALSE='#'
    23826 else
    23827   COIN_HAS_BLAS_TRUE='#'
    23828   COIN_HAS_BLAS_FALSE=
    23829 fi
    23830 
    23831 
    23832 cat >>confdefs.h <<\_ACEOF
    23833 #define COIN_HAS_BLAS 1
    23834 _ACEOF
    23835 
    23836   BLAS_LIBS="$use_blas"
    23837   BLAS_CFLAGS=
    23838   BLAS_DATA=
    23839 
    23840 
    23841 
    23842 
    23843 else
    23844   coin_has_blas=no
    23845 
    23846 
    23847 if test 0 = 1; then
    23848   COIN_HAS_BLAS_TRUE=
    23849   COIN_HAS_BLAS_FALSE='#'
    23850 else
    23851   COIN_HAS_BLAS_TRUE='#'
    23852   COIN_HAS_BLAS_FALSE=
    23853 fi
    23854 
    23855 fi
    23856 
    23857 #call fallback in case the previous failed, maybe because pkg-config was not available
    23858 
    23859 if test x$coin_has_blas != "xyes" ; then
    23860 echo "$as_me:$LINENO: checking for COIN-OR module Blas (fallback)" >&5
    23861 echo $ECHO_N "checking for COIN-OR module Blas (fallback)... $ECHO_C" >&6
     23898  elif test -d ../Blas ; then
     23899
     23900echo "$as_me:$LINENO: checking for COIN-OR module Blas" >&5
     23901echo $ECHO_N "checking for COIN-OR module Blas... $ECHO_C" >&6
    2386223902
    2386323903coin_has_blas=notGiven
     
    2387723917
    2387823918
     23919
     23920
     23921
     23922#check if user provided LIBS, CFLAGS, and DATA for module
     23923if test $coin_has_blas != skipping; then
     23924
     23925
     23926# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
     23927if test "${with_blas_lib+set}" = set; then
     23928  withval="$with_blas_lib"
     23929  coin_has_blas=yes
     23930       BLAS_LIBS="$withval"
     23931       ADDLIBS="$ADDLIBS $withval"
     23932
     23933fi;
     23934
     23935
     23936# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
     23937if test "${with_blas_incdir+set}" = set; then
     23938  withval="$with_blas_incdir"
     23939  coin_has_blas=yes
     23940     BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
     23941fi;
     23942
     23943
     23944# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
     23945if test "${with_blas_datadir+set}" = set; then
     23946  withval="$with_blas_datadir"
     23947  coin_has_blas=yes
     23948     BLAS_DATA="$withval"
     23949fi;
     23950fi
     23951
     23952if test $coin_has_blas = notGiven; then
     23953  if test -n "$PKG_CONFIG" ; then
     23954    # assemble search path for pkg-config
     23955    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     23956
     23957    # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     23958    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     23959    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     23960    if test -d "${prefix}"; then
     23961      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     23962    fi
     23963
     23964
     23965# Check whether --with-coin-instdir or --without-coin-instdir was given.
     23966if test "${with_coin_instdir+set}" = set; then
     23967  withval="$with_coin_instdir"
     23968  if test -d "$withval"; then : ; else
     23969         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     23970echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     23971   { (exit 1); exit 1; }; }
     23972       fi
     23973       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     23974
     23975fi;
     23976
     23977    # in a classic setup, we want to find uninstalled projects
     23978    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     23979    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     23980    # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
     23981    if test -e ../coin_subdirs.txt ; then
     23982      for i in `cat ../coin_subdirs.txt` ; do
     23983        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     23984      done
     23985    fi
     23986
     23987    if test -e ../../coin_subdirs.txt ; then
     23988      for i in `cat ../../coin_subdirs.txt` ; do
     23989        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     23990      done
     23991    fi
     23992
     23993    # let pkg-config do it's magic
     23994    # need to export variable to be sure that the following pkg-config gets these values
     23995    export PKG_CONFIG_PATH
     23996
     23997
     23998
     23999if test -n "$PKG_CONFIG" ; then
     24000  if $PKG_CONFIG --exists "coinblas"; then
     24001    BLAS_VERSIONS="`$PKG_CONFIG --modversion coinblas 2>/dev/null`"
     24002     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
     24003    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     24004        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     24005        # but only do this if is not trivial
     24006    if test "$CYGPATH_W" != "echo" ; then
     24007      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     24008          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24009        fi
     24010    BLAS_CFLAGS="$cflags"
     24011    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
     24012    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
     24013     coin_has_blas=yes
     24014        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
     24015echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
     24016        REQUIREDPACKAGES="$REQUIREDPACKAGES coinblas"
     24017
     24018
     24019  else
     24020    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coinblas`
     24021      coin_has_blas=notGiven
     24022        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
     24023echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
     24024
     24025  fi
     24026else
     24027  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
     24028echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
     24029   { (exit 1); exit 1; }; }
     24030fi
     24031
     24032
     24033
     24034
     24035    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     24036  else
     24037    #if 4th argument is given, try fallback - whereby we take the first word from coinblas as basename for the .pc file
     24038
     24039if test x$coin_has_blas != "xyes" ; then
     24040
     24041
     24042
     24043coin_has_blas=notGiven
     24044
     24045# check if user wants to skip module in any case
     24046if test x"$COIN_SKIP_PROJECTS" != x; then
     24047  for dir in $COIN_SKIP_PROJECTS; do
     24048    if test $dir = "Blas"; then
     24049      coin_has_blas=skipping
     24050    fi
     24051  done
     24052fi
     24053
     24054BLAS_LIBS=
     24055BLAS_CFLAGS=
     24056BLAS_DATA=
     24057
     24058
    2387924059if test $coin_has_blas != "skipping" ; then
    2388024060  # if the project is available and configured, then a project-uninstalled.pc file should have been created
    23881   if test -r ../ThirdParty/Blas/coinblas-uninstalled.pc ; then
    23882     # read CFLAGS and LIBS from coinblas-uninstalled.pc file
     24061  if test -r ../Blas/coinblas-uninstalled.pc ; then
     24062    # read CFLAGS and LIBS from m4_bpatsubst(coinblas, [ .*], [])-uninstalled.pc file
    2388324063    # add CYGPATH_W cludge into include flags
    2388424064    # replace -L${libdir} by absolute path to build directory in linker flags
    23885     # we assume that the build directory is ../ThirdParty/Blas/src if this directory exists, otherwise we assume that it is ../ThirdParty/Blas
    23886     BLAS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../ThirdParty/Blas/coinblas-uninstalled.pc`
    23887     projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../ThirdParty/Blas/coinblas-uninstalled.pc`
     24065    # we assume that the build directory is ../Blas/src if this directory exists, otherwise we assume that it is ../Blas
     24066    BLAS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\(^ *\)/-I\`${CYGPATH_W} \1\`/gp' ../Blas/coinblas-uninstalled.pc`
     24067    projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Blas/coinblas-uninstalled.pc`
    2388824068    if test "x$projectlibs" != x ; then
    23889       if test -d ../ThirdParty/Blas/src ; then
    23890         BLAS_LIBS="-L`cd ../ThirdParty/Blas/src; pwd` $projectlibs"
     24069      if test -d ../Blas/src ; then
     24070        BLAS_LIBS="-L`cd ../Blas/src; pwd` $projectlibs"
    2389124071      else
    23892         BLAS_LIBS="-L`cd ../ThirdParty/Blas; pwd` $projectlibs"
     24072        BLAS_LIBS="-L`cd ../Blas; pwd` $projectlibs"
    2389324073      fi
    2389424074    else
    23895       BLAS_LIBS=`sed -n -e 's/Libs://p' ../ThirdParty/Blas/coinblas-uninstalled.pc`
     24075      BLAS_LIBS=`sed -n -e 's/Libs://p' ../Blas/coinblas-uninstalled.pc`
    2389624076    fi
    23897     BLAS_DATA=`sed -n -e 's/datadir=//gp' ../ThirdParty/Blas/coinblas-uninstalled.pc`
     24077    BLAS_DATA=`sed -n -e 's/datadir=//gp' ../Blas/coinblas-uninstalled.pc`
    2389824078
    2389924079    ADDLIBS="$ADDLIBS $BLAS_LIBS"
     
    2390924089
    2391024090    coin_has_blas=yes
     24091    echo "$as_me:$LINENO: result: ../Blas" >&5
     24092echo "${ECHO_T}../Blas" >&6
     24093  else
     24094    echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     24095echo "${ECHO_T}$coin_has_blas" >&6
    2391124096  fi
     24097else
     24098  echo "$as_me:$LINENO: result: skipping" >&5
     24099echo "${ECHO_T}skipping" >&6
    2391224100fi
    2391324101
     
    2392524113
    2392624114
    23927 
    23928 echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     24115fi
     24116
     24117
     24118  fi
     24119
     24120else
     24121  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
    2392924122echo "${ECHO_T}$coin_has_blas" >&6
    2393024123fi
    2393124124
     24125if test $coin_has_blas != skipping &&
     24126   test $coin_has_blas != notGiven ; then
     24127  if test 0 = 1 ; then  #change this test to enable a bit of debugging output
     24128  if test -n "$BLAS_CFLAGS" ; then
     24129    { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
     24130echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
     24131  fi
     24132  if test -n "$BLAS_LIBS" ; then
     24133    { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
     24134echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
     24135  fi
     24136  if test -n "$BLAS_DATA" ; then
     24137    { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
     24138echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
     24139  fi
     24140  fi
     24141
     24142cat >>confdefs.h <<\_ACEOF
     24143#define COIN_HAS_BLAS 1
     24144_ACEOF
     24145
     24146fi
     24147
     24148# Define the Makefile conditional
     24149
     24150
     24151if test $coin_has_blas != notGiven &&
     24152                test $coin_has_blas != skipping; then
     24153  COIN_HAS_BLAS_TRUE=
     24154  COIN_HAS_BLAS_FALSE='#'
     24155else
     24156  COIN_HAS_BLAS_TRUE='#'
     24157  COIN_HAS_BLAS_FALSE=
     24158fi
     24159
     24160
     24161
     24162  fi
     24163
     24164elif test "x$use_blas" != x && test "$use_blas" != no; then
     24165  coin_has_blas=yes
     24166
     24167
     24168if test 0 = 0; then
     24169  COIN_HAS_BLAS_TRUE=
     24170  COIN_HAS_BLAS_FALSE='#'
     24171else
     24172  COIN_HAS_BLAS_TRUE='#'
     24173  COIN_HAS_BLAS_FALSE=
     24174fi
     24175
     24176
     24177cat >>confdefs.h <<\_ACEOF
     24178#define COIN_HAS_BLAS 1
     24179_ACEOF
     24180
     24181  BLAS_LIBS="$use_blas"
     24182  BLAS_CFLAGS=
     24183  BLAS_DATA=
     24184
     24185
     24186
     24187
     24188else
     24189  coin_has_blas=no
     24190
     24191
     24192if test 0 = 1; then
     24193  COIN_HAS_BLAS_TRUE=
     24194  COIN_HAS_BLAS_FALSE='#'
     24195else
     24196  COIN_HAS_BLAS_TRUE='#'
     24197  COIN_HAS_BLAS_FALSE=
     24198fi
     24199
     24200fi
    2393224201
    2393324202
     
    2407024339    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2407124340  else
    24072     echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
    24073 echo "${ECHO_T}skipped check via pkg-config" >&6
     24341    #if 4th argument is given, try fallback - whereby we take the first word from coinmetis >= 4.0 as basename for the .pc file
     24342
     24343if test x$coin_has_metis != "xyes" ; then
     24344
     24345
     24346
     24347coin_has_metis=notGiven
     24348
     24349# check if user wants to skip module in any case
     24350if test x"$COIN_SKIP_PROJECTS" != x; then
     24351  for dir in $COIN_SKIP_PROJECTS; do
     24352    if test $dir = "Metis"; then
     24353      coin_has_metis=skipping
     24354    fi
     24355  done
     24356fi
     24357
     24358METIS_LIBS=
     24359METIS_CFLAGS=
     24360METIS_DATA=
     24361
     24362
     24363if test $coin_has_metis != "skipping" ; then
     24364  # if the project is available and configured, then a project-uninstalled.pc file should have been created
     24365  if test -r ../Metis/coinmetis-uninstalled.pc ; then
     24366    # read CFLAGS and LIBS from m4_bpatsubst(coinmetis >= 4.0, [ .*], [])-uninstalled.pc file
     24367    # add CYGPATH_W cludge into include flags
     24368    # replace -L${libdir} by absolute path to build directory in linker flags
     24369    # we assume that the build directory is ../Metis/src if this directory exists, otherwise we assume that it is ../Metis
     24370    METIS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\(^ *\)/-I\`${CYGPATH_W} \1\`/gp' ../Metis/coinmetis-uninstalled.pc`
     24371    projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Metis/coinmetis-uninstalled.pc`
     24372    if test "x$projectlibs" != x ; then
     24373      if test -d ../Metis/src ; then
     24374        METIS_LIBS="-L`cd ../Metis/src; pwd` $projectlibs"
     24375      else
     24376        METIS_LIBS="-L`cd ../Metis; pwd` $projectlibs"
     24377      fi
     24378    else
     24379      METIS_LIBS=`sed -n -e 's/Libs://p' ../Metis/coinmetis-uninstalled.pc`
     24380    fi
     24381    METIS_DATA=`sed -n -e 's/datadir=//gp' ../Metis/coinmetis-uninstalled.pc`
     24382
     24383    ADDLIBS="$ADDLIBS $METIS_LIBS"
     24384       REQUIREDPACKAGES="$REQUIREDPACKAGES coinmetis"
     24385
     24386
     24387
     24388cat >>confdefs.h <<\_ACEOF
     24389#define COIN_HAS_METIS 1
     24390_ACEOF
     24391
     24392
     24393
     24394    coin_has_metis=yes
     24395    echo "$as_me:$LINENO: result: ../Metis" >&5
     24396echo "${ECHO_T}../Metis" >&6
     24397  else
     24398    echo "$as_me:$LINENO: result: $coin_has_metis" >&5
     24399echo "${ECHO_T}$coin_has_metis" >&6
     24400  fi
     24401else
     24402  echo "$as_me:$LINENO: result: skipping" >&5
     24403echo "${ECHO_T}skipping" >&6
     24404fi
     24405
     24406#if user did not disable setting of makefile conditional, do it
     24407
     24408
     24409if test $coin_has_metis != notGiven &&
     24410                test $coin_has_metis != skipping; then
     24411  COIN_HAS_METIS_TRUE=
     24412  COIN_HAS_METIS_FALSE='#'
     24413else
     24414  COIN_HAS_METIS_TRUE='#'
     24415  COIN_HAS_METIS_FALSE=
     24416fi
     24417
     24418
     24419fi
     24420
     24421
    2407424422  fi
    2407524423
     
    2411524463
    2411624464
    24117 
    24118 
    24119 if test x$coin_has_metis != "xyes" ; then
    24120 echo "$as_me:$LINENO: checking for COIN-OR module Metis (fallback)" >&5
    24121 echo $ECHO_N "checking for COIN-OR module Metis (fallback)... $ECHO_C" >&6
    24122 
    24123 coin_has_metis=notGiven
    24124 
    24125 # check if user wants to skip module in any case
    24126 if test x"$COIN_SKIP_PROJECTS" != x; then
    24127   for dir in $COIN_SKIP_PROJECTS; do
    24128     if test $dir = "Metis"; then
    24129       coin_has_metis=skipping
    24130     fi
    24131   done
    24132 fi
    24133 
    24134 METIS_LIBS=
    24135 METIS_CFLAGS=
    24136 METIS_DATA=
    24137 
    24138 
    24139 if test $coin_has_metis != "skipping" ; then
    24140   # if the project is available and configured, then a project-uninstalled.pc file should have been created
    24141   if test -r ../Metis/coinmetis-uninstalled.pc ; then
    24142     # read CFLAGS and LIBS from coinmetis-uninstalled.pc file
    24143     # add CYGPATH_W cludge into include flags
    24144     # replace -L${libdir} by absolute path to build directory in linker flags
    24145     # we assume that the build directory is ../Metis/src if this directory exists, otherwise we assume that it is ../Metis
    24146     METIS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Metis/coinmetis-uninstalled.pc`
    24147     projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Metis/coinmetis-uninstalled.pc`
    24148     if test "x$projectlibs" != x ; then
    24149       if test -d ../Metis/src ; then
    24150         METIS_LIBS="-L`cd ../Metis/src; pwd` $projectlibs"
    24151       else
    24152         METIS_LIBS="-L`cd ../Metis; pwd` $projectlibs"
    24153       fi
    24154     else
    24155       METIS_LIBS=`sed -n -e 's/Libs://p' ../Metis/coinmetis-uninstalled.pc`
    24156     fi
    24157     METIS_DATA=`sed -n -e 's/datadir=//gp' ../Metis/coinmetis-uninstalled.pc`
    24158 
    24159     ADDLIBS="$ADDLIBS $METIS_LIBS"
    24160        REQUIREDPACKAGES="$REQUIREDPACKAGES coinmetis"
    24161 
    24162 
    24163 
    24164 cat >>confdefs.h <<\_ACEOF
    24165 #define COIN_HAS_METIS 1
    24166 _ACEOF
    24167 
    24168 
    24169 
    24170     coin_has_metis=yes
    24171   fi
    24172 fi
    24173 
    24174 #if user did not disable setting of makefile conditional, do it
    24175 
    24176 
    24177 if test $coin_has_metis != notGiven &&
    24178                 test $coin_has_metis != skipping; then
    24179   COIN_HAS_METIS_TRUE=
    24180   COIN_HAS_METIS_FALSE='#'
    24181 else
    24182   COIN_HAS_METIS_TRUE='#'
    24183   COIN_HAS_METIS_FALSE=
    24184 fi
    24185 
    24186 
    24187 
    24188 echo "$as_me:$LINENO: result: $coin_has_metis" >&5
    24189 echo "${ECHO_T}$coin_has_metis" >&6
    24190 fi
    2419124465
    2419224466
     
    2459124865Usually this means the macro was only invoked conditionally." >&5
    2459224866echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
     24867Usually this means the macro was only invoked conditionally." >&2;}
     24868   { (exit 1); exit 1; }; }
     24869fi
     24870if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     24871  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24872Usually this means the macro was only invoked conditionally." >&5
     24873echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24874Usually this means the macro was only invoked conditionally." >&2;}
     24875   { (exit 1); exit 1; }; }
     24876fi
     24877if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     24878  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24879Usually this means the macro was only invoked conditionally." >&5
     24880echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
    2459324881Usually this means the macro was only invoked conditionally." >&2;}
    2459424882   { (exit 1); exit 1; }; }
  • ThirdParty/Mumps/branches/split/configure.ac

    r1508 r1536  
    9797
    9898AC_COIN_HAS_MODULE_BLAS
    99 AC_COIN_HAS_MODULE(Metis, [coinmetis >= 4.0])
    100 AC_COIN_HAS_MODULE_FALLBACK(Metis, [coinmetis], [../Metis])
     99AC_COIN_HAS_MODULE(Metis, [coinmetis >= 4.0], [], [../Metis])
    101100
    102101if test "$coin_has_metis" = yes; then
Note: See TracChangeset for help on using the changeset viewer.