#!/bin/sh
#
# This file was automatically generated by configure using
# ./configure opt
#
itpp_libs_opt="-L/usr/local/lib -lit++ -framework vecLib -lit++external"
itpp_libs_debug="-L/usr/local/lib -lit++_d -framework vecLib -lit++external"
itpp_libs_prof="-L/usr/local/lib -lit++_p -framework vecLib -lit++external"
itpp_libs_shared="-L/usr/local/lib -lit++ -framework vecLib -lit++external"
itpp_flags_opt="-I/usr/local/include -O3 -DNDEBUG -DASSERT_LEVEL=1 -D__unix"
itpp_flags_debug="-I/usr/local/include -g -DASSERT_LEVEL=2 -D__unix"
itpp_flags_prof="-I/usr/local/include -pg -O3 -DNDEBUG -DASSERT_LEVEL=1 -D__unix"
itpp_flags_shared="-I/usr/local/include -fpic -O3 -DNDEBUG -DASSERT_LEVEL=1 -D__unix"
flags=$itpp_flags_opt
libs=$itpp_libs_opt
usage()
{
cat <<EOF
Usage: it-config [OPTIONS]
Options:
[--libs] Display the libraries required for linking with IT++.
[--flags] Display flags that should be used to compile IT++ programs.
[--opt] Modifies the --libs or the --flags option to enable optimization settings.
[--debug] Modifies the --libs or the --flags option to enable debug settings.
[--prof] Modifies the --libs or the --flags option to enable profiling settings.
[--shared] Modifies the --libs or the --flags option to enable shared settings.
[--version] Display the version number of IT++.
Examples:
Display the libraries that should be used when using a debugger:
> it-config --libs --debug
Display the compiler flags that should be used when using a profiler (e.g. gprof):
> it-config --flags --prof
EOF
exit
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--version)
echo 3.8.0
;;
--flags)
echo_flags=yes
;;
--libs)
echo_libs=yes
;;
--opt)
flags=$itpp_flags_opt
libs=$itpp_libs_opt
;;
--debug)
flags=$itpp_flags_debug
libs=$itpp_libs_debug
;;
--prof)
flags=$itpp_flags_prof
libs=$itpp_libs_prof
;;
--shared)
flags=$itpp_flags_shared
libs=$itpp_libs_shared
;;
*)
usage 1 1>&2
;;
esac
shift
done
if test "$echo_flags" = "yes"; then
echo $flags
fi
if test "$echo_libs" = "yes"; then
echo $libs
fi
syntax highlighted by Code2HTML, v. 0.9.1