Ignore:
Timestamp:
Mar 30, 2007 5:16:44 PM (13 years ago)
Author:
lou
Message:

Configuration and makefile changes for cbc-generic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/configure.ac

    r415 r592  
    6666AC_COIN_HAS_PROJECT(Vol)
    6767
    68 # ToDo: find out when CBC_HAS_CLP should be defined!  For now, I
    69 # replaced all CBC_USE by COIN_HAS #ifdef's
    70 
    71 # Decide which one is the default solver
    72 AC_MSG_CHECKING(for CBC default solver)
    73 AC_ARG_WITH([cbc-default-solver],
    74             AC_HELP_STRING([--with-cbc-default-solver],
    75                            [specify default solver for Cbc in lower case letters (if not given, clp is assumed)]),
    76             [cbc_default_solver=$withval],
    77             [cbc_default_solver=clp])
    78 AC_MSG_RESULT($cbc_default_solver)
    79 
    80 case $cbc_default_solver in
    81   clp)
    82     AC_DEFINE([CBC_DEFAULT_SOLVER],"clp",
    83               [Define to the name of the default solver to be used in CBC in small letters])
    84     ;;
    85   dylp)
    86     AC_DEFINE([CBC_DEFAULT_SOLVER],"dylp")
    87     ;;
    88   *)
    89     AC_MSG_ERROR([Unknown solver $cbc_default_solver chosen as CBC's default solver])
    90     ;;
    91 esac
    92 
    9368#############################################################################
    9469#                            Third party solvers                            #
     
    11085# Ampl Solver library
    11186AC_COIN_HAS_ASL
     87
     88#############################################################################
     89#                       CbcGeneric configuration                            #
     90#############################################################################
     91
     92# Are we building cbc-generic? Default is no (false).
     93
     94AC_ARG_WITH([cbc-generic],
     95  AS_HELP_STRING([--with-cbc-generic],
     96                 [specify whether to build cbc-generic (default: no)]),
     97  [case $withval in
     98    yes) cbc_with_cbc_generic=true ;;
     99      *) cbc_with_cbc_generic=false ;;
     100   esac],
     101  [cbc_with_cbc_generic=false])
     102if test x"$cbc_with_cbc_generic" = xyes ; then
     103  AC_MSG_NOTICE([building cbc-generic])
     104fi
     105AM_CONDITIONAL(CBC_BUILD_CBC_GENERIC,
     106               test x"$cbc_with_cbc_generic" = xtrue)
     107
     108# Set the default solver for cbc-generic. In theory, any OsiXXX should work.
     109# In practice, only the three listed below have had any testing.
     110
     111AC_MSG_CHECKING(for cbc-generic default solver)
     112AC_ARG_WITH([cbc-generic-solver],
     113            AC_HELP_STRING([--with-cbc-generic-solver],
     114                           [specify default solver for cbc-generic in lower
     115                            case letters (if not given, clp is assumed)]),
     116            [cbc_default_solver=$withval],
     117            [cbc_default_solver=clp])
     118AC_MSG_RESULT($cbc_default_solver)
     119
     120case $cbc_default_solver in
     121   clp)
     122    ;;
     123  dylp)
     124    ;;
     125  glpk)
     126    ;;
     127     *)
     128    AC_MSG_WARN([Unrecognised solver $cbc_default_solver chosen as cbc-generic default solver.])
     129    ;;
     130esac
     131AC_DEFINE_UNQUOTED([CBC_DEFAULT_SOLVER],"$cbc_default_solver",
     132  [Define to the name of the default solver to be used in cbc-generic in small letters])
     133
     134#
    112135
    113136##############################################################################
Note: See TracChangeset for help on using the changeset viewer.