3 # This file is a part of LEMON, a generic C++ optimization library.
5 # Copyright (C) 2003-2009
6 # Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 # (Egervary Research Group on Combinatorial Optimization, EGRES).
9 # Permission to use, modify and distribute this software is granted
10 # provided that this copyright notice appears in all copies. For
11 # precise terms see the accompanying LICENSE file.
13 # This software is provided "AS IS" with no warranty of any kind,
14 # express or implied, and with no claim as to its suitability for any
18 if [ ! -f ~/.lemon-bootstrap ]; then
19 echo 'Create ~/.lemon-bootstrap'.
20 cat >~/.lemon-bootstrap <<EOF
22 # Default settings for bootstraping the LEMON source code repository
27 source ~/.lemon-bootstrap
28 if [ -f ../../../.lemon-bootstrap ]; then source ../../../.lemon-bootstrap; fi
29 if [ -f ../../.lemon-bootstrap ]; then source ../../.lemon-bootstrap; fi
30 if [ -f ../.lemon-bootstrap ]; then source ../.lemon-bootstrap; fi
31 if [ -f ./.lemon-bootstrap ]; then source ./.lemon-bootstrap; fi
34 function augment_config() {
35 if [ "x${!1}" == "x" ]; then
37 echo Add "'$1'" to '~/.lemon-bootstrap'.
38 echo >>~/.lemon-bootstrap
39 echo $3 >>~/.lemon-bootstrap
40 echo $1=$2 >>~/.lemon-bootstrap
44 augment_config LEMON_INSTALL_PREFIX /usr/local \
45 "# LEMON installation prefix"
47 augment_config COIN_OR_PREFIX /usr/local/coin-or \
48 "# COIN-OR installation root prefix (used for CLP/CBC)"
54 if [ "x$_an" == "x" ]; then
63 while [ "$ret" != "y" -a "$ret" != "n" -a "$ret" != "yes" -a "$ret" != "no" ]; do
66 if [ "$ret" != "y" -a "$ret" != "yes" ]; then
73 if yesorno "External build" "n"
78 if yesorno "Autoreconf" "y"
86 if yesorno "Optimize" "n"
93 if yesorno "Stop on warning" "y"
95 werror_flags=' -Werror'
100 cxx_flags="CXXFLAGS=-ggdb$opt_flags$werror_flags"
102 if yesorno "Use COIN" "n"
104 coin_flag="--with-coin=$COIN_OR_PREFIX"
110 if [ "x$AUTORE" == "xyes" ]; then
113 ${CONFIGURE_PATH}/configure --prefix=$LEMON_INSTALL_PREFIX \