# This file is a part of LEMON, a generic C++ optimization library.
# Copyright (C) 2003-2009
# Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
# (Egervary Research Group on Combinatorial Optimization, EGRES).
# Permission to use, modify and distribute this software is granted
# provided that this copyright notice appears in all copies. For
# precise terms see the accompanying LICENSE file.
# This software is provided "AS IS" with no warranty of any kind,
# express or implied, and with no claim as to its suitability for any
if [ ! -f ~/.lemon-bootstrap
];
then
echo 'Create ~/.lemon-bootstrap'.
cat >~/.lemon-bootstrap
<<EOF
# Default settings for bootstraping the LEMON source code repository
source ~/.lemon-bootstrap
if [ -f ../../../.lemon-bootstrap
];
then source ../../../.lemon-bootstrap;
fi
if [ -f ../../.lemon-bootstrap
];
then source ../../.lemon-bootstrap;
fi
if [ -f ../.lemon-bootstrap
];
then source ../.lemon-bootstrap;
fi
if [ -f ./.lemon-bootstrap
];
then source ./.lemon-bootstrap;
fi
function augment_config
() {
if [ "x${!1}" == "x" ];
then
echo Add
"'$1'" to
'~/.lemon-bootstrap'.
echo >>~/.lemon-bootstrap
echo $3 >>~/.lemon-bootstrap
echo $1=$2 >>~/.lemon-bootstrap
augment_config LEMON_INSTALL_PREFIX /usr/local
\
"# LEMON installation prefix"
augment_config COIN_OR_PREFIX /usr/local/coin-or
\
"# COIN-OR installation root prefix (used for CLP/CBC)"
augment_config SOPLEX_PREFIX /usr/local/soplex
\
if [ "x$_an" == "x" ];
then
while [ "$ret" !
= "y" -a
"$ret" !
= "n" -a
"$ret" !
= "yes" -a
"$ret" !
= "no" ];
do
if [ "$ret" !
= "y" -a
"$ret" !
= "yes" ];
then
if yesorno
"External build" "n"
if yesorno
"Autoreconf" "y"
if yesorno
"Optimize" "n"
if yesorno
"Stop on warning" "y"
cxx_flags="CXXFLAGS=-ggdb$opt_flags$werror_flags"
if yesorno
"Check with valgrind" "n"
valgrind_flags=' --enable-valgrind'
if [ -f
${COIN_OR_PREFIX}/include/coin/config_coinutils.h
];
then
if yesorno
"Use COIN-OR (CBC/CLP)" "n"
coin_flag="--with-coin=$COIN_OR_PREFIX"
if [ -f
${SOPLEX_PREFIX}/src/soplex.h
];
then
if yesorno
"Use Soplex" "n"
soplex_flag="--with-soplex=$SOPLEX_PREFIX"
if [ "x$AUTORE" == "xyes" ];
then
${CONFIGURE_PATH}/configure --prefix
=$LEMON_INSTALL_PREFIX \