Ignore:
Timestamp:
Mar 5, 2011 12:06:15 PM (9 years ago)
Author:
stefan
Message:

check for AMD and CHOLMOD and GLPK's AMD in configure; compile ClpCholeskyUfl? only if AMD, CHOLMOD, or GLPK available

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:externals
      •  

        old new  
        1 BuildTools  https://projects.coin-or.org/svn/BuildTools/stable/0.7
        2 ThirdParty/Blas  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.2
        3 ThirdParty/Lapack  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.3
        4 Data/Netlib  https://projects.coin-or.org/svn/Data/Netlib/stable/1.2
        5 Data/Sample  https://projects.coin-or.org/svn/Data/Sample/stable/1.2
        6 CoinUtils  https://projects.coin-or.org/svn/CoinUtils/trunk/CoinUtils
        7 Osi  https://projects.coin-or.org/svn/Osi/trunk/Osi
        8 
         1BuildTools    https://projects.coin-or.org/svn/BuildTools/stable/0.7
         2ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.2
         3ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.3
         4ThirdParty/Metis https://projects.coin-or.org/svn/BuildTools/ThirdParty/Metis/stable/1.2
         5ThirdParty/Mumps https://projects.coin-or.org/svn/BuildTools/ThirdParty/Mumps/stable/1.4
         6ThirdParty/Glpk https://projects.coin-or.org/svn/BuildTools/ThirdParty/Glpk/trunk
         7Data/Netlib   https://projects.coin-or.org/svn/Data/Netlib/stable/1.2
         8Data/Sample   https://projects.coin-or.org/svn/Data/Sample/stable/1.2
         9CoinUtils     https://projects.coin-or.org/svn/CoinUtils/trunk/CoinUtils
         10Osi           https://projects.coin-or.org/svn/Osi/stable/0.105/Osi
  • trunk/Clp/configure.ac

    r1690 r1691  
    6969#                        Third party linear solvers                         #
    7070#############################################################################
     71
     72# AMD from UFL
     73AC_COIN_CHECK_USER_LIBRARY(AMD, AMD, [amd.h], [amd_defaults],,[ClpLib])
     74
     75# CHOLMOD from UFL
     76# CHOLMOD requires AMD, which can be given by AMD_LIBS
     77# CHOLMOD requires Blas and Lapack, which should be in COINUTILS_LIBS, if available
     78coin_save_LIBS="$LIBS"
     79LIBS="$LIBS $AMD_LIBS $COINUTILS_LIBS"
     80AC_COIN_CHECK_USER_LIBRARY(CHOLMOD, CHOLMOD, [cholmod.h], [cholmod_start],,[ClpLib])
     81LIBS="$coin_save_LIBS"
     82
     83# Glpk also brings AMD
     84if test $coin_has_cholmod = false -a $coin_has_amd = false ; then
     85  AC_COIN_CHECK_PACKAGE(Glpk, [coinglpk >= 4.39], [ClpLib])
     86  if test $coin_has_glpk = yes ; then
     87    AC_MSG_NOTICE([using AMD from GLPK package])
     88    AC_DEFINE(COIN_HAS_AMD,[1],[Define to 1 if the AMD package is available])
     89  fi
     90else
     91  # for configure
     92  AM_CONDITIONAL(COIN_HAS_GLPK, [test 0 = 1])
     93fi
    7194
    7295# WSMP
Note: See TracChangeset for help on using the changeset viewer.