-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·79 lines (69 loc) · 2.01 KB
/
setup.sh
File metadata and controls
executable file
·79 lines (69 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Command file to set QuickFAST environment
# QuickFAST depends on MPC V 3.6 or later. (http://www.ociweb.com/products/mpc)
# QuickFAST depends on BOOST V 1.36.0 or later. (http://www.boost.org/)
# QuickFAST depends on Xerces V3.0 or later. (http://xerces.apache.org/xerces-c/)
# Customize this file by setting variables to suit your environment
SOURCE="${BASH_SOURCE[0]}"
SOURCE_DIR=`dirname $SOURCE`
$READLINK --version >/dev/null 2>/dev/null
if (( $? != 0 )); then
echo "readlink does not exist or it does not support --version"
echo "maybe it is not GNU readlink but BSD"
echo "trying with greadlink..."
READLINK='greadlink'
fi
$READLINK --version >/dev/null 2>/dev/null
if (( $? != 0 )); then
echo "greadlink does not exist or an error occurred"
UNAME=`uname`
if [[ $UNAME == "Darwin" ]]; then
echo "You are running on a Mac OSX system."
echo "Consider installing homebrew."
echo "Then install coreutils."
echo "# brew install coreutils"
fi
else
echo "$READLINK found at `which $READLINK`."
fi
$READLINK -f $SOURCE_DIR
if (( $? != 0 )); then
echo "trying exporting QUICKFAST_ROOT by pwd."
export QUICKFAST_ROOT=`pwd`
echo "QUICKFAST_ROOT = $QUICKFAST_ROOT"
else
export QUICKFAST_ROOT=`$READLINK -f $SOURCE_DIR`
fi
if test "$MPC_ROOT" = ""
then
export MPC_ROOT=$ACE_ROOT/MPC
fi
if test "$BOOST_ROOT" = ""
then
export BOOST_ROOT=~/boost/boost_1_38_0
fi
if test "$BOOST_ROOT_LIB" = ""
then
export BOOST_ROOT_LIB=$BOOST_ROOT/lib
fi
if test "$BOOST_VERSION" = ""
then
export BOOST_VERSION=boost-1_38
fi
if test "$XERCES_ROOT" = ""
then
export XERCES_ROOT=~/xerces/xerces-c-3.0.1
fi
if test "$XERCES_LIBPATH" = ""
then
export XERCES_LIBPATH=$XERCES_ROOT/src/.libs
fi
if test "$XERCES_LIBNAME" = ""
then
export XERCES_LIBNAME=xerces-c-3.0
fi
if test "$XERCES_INCLUDE" = ""
then
export XERCES_INCLUDE=$XERCES_ROOT/src
fi
export PATH=$QUICKFAST_ROOT/bin:$MPC_ROOT:$PATH
export LD_LIBRARY_PATH=$XERCESLIB:$QUICKFAST_ROOT/lib:$BOOST_ROOT_LIB:$LD_LIBRARY_PATH