# 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 GLPK_PREFIX /usr/local/
\
"# GLPK installation root 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
${GLPK_PREFIX}/include/glpk.h
];
then
if yesorno
"Use GLPK" "y"
glpk_flag="--with-glpk=$GLPK_PREFIX"
glpk_flag="--without-glpk"
glpk_flag="--without-glpk"
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"
coin_flag="--without-coin"
coin_flag="--without-coin"
if [ -f
${SOPLEX_PREFIX}/src/soplex.h
];
then
if yesorno
"Use Soplex" "n"
soplex_flag="--with-soplex=$SOPLEX_PREFIX"
soplex_flag="--without-soplex"
soplex_flag="--without-soplex"
if [ "x$AUTORE" == "xyes" ];
then
${CONFIGURE_PATH}/configure --prefix
=$LEMON_INSTALL_PREFIX \