##
## run the configure script...
##

version=$1

if [ $version -a $version = 'mac' ];
then

##
## configure for MacOSX
##

# see doc/MacOSX-Universal.readme for universal build information.
#
# for a self contained MacOSX bundle use a static qt build
#  --with-qt=/Users/hauner/qt-4.3.3s
#
# to link against qt frameworks use
#  --enable-framework-qt
#
# debug CXXFLAGS
# -ggdb -O0 -pg
# -fmessage-length=0

SVN=svn-1.6.5s
CXXFLAGS="-ggdb -O0 -I/Users/hauner/gettext-0.17.0/include -fvisibility=hidden -fvisibility-inlines-hidden" \
LDFLAGS="-L/Users/hauner/gettext-0.17.0/lib" \
  ./configure --with-boost=/Users/hauner/boost-1.34.1/include/boost-1_34_1 \
              --with-apr=/Users/hauner/$SVN/bin \
              --with-apr-util=/Users/hauner/$SVN/bin \
              --with-subversion=/Users/hauner/$SVN \
              --with-neon=/Users/hauner/$SVN \
              --with-serf=/Users/hauner/$SVN \
              --enable-nls \
              --enable-bundle-nls \
              --enable-universal \
              --with-qt=/Users/hauner/qt-4.4.3s \
              --disable-dependency-tracking
 
else

##
## configure for Linux 
##

./configure --prefix=/home/hauner/local2 --enable-nls 

fi
