+usage () {
+ echo "Usage: $0 [OPTION]... [TRACE]..." >/dev/stderr
+ echo "" >/dev/stderr
+ echo "Options:" >/dev/stderr
+ printf "\t-m MODE Output mode (modes: text, eval, gui)\n" >/dev/stderr
+ printf "\t-H HELPER Invoke LTTV through a helper program\n" >/dev/stderr
+ printf "\t (helpers: gdb, valgrind, massif, strace, callgrind)\n" >/dev/stderr
+ printf "\t-b OPTIONS LTTV options to specify before the module list\n" >/dev/stderr
+ printf "\t-a OPTIONS LTTV options to specify after the module list\n" >/dev/stderr
+ printf "\t-d Activate LTTV debug level\n" >/dev/stderr
+ echo "" >/dev/stderr
+}
+
+if [ -e "${BUILDPATH}/lttv/lttv/.libs/lttv.real" ]; then
+ LTTV_EXEC="${BUILDPATH}/lttv/lttv/.libs/lttv.real"
+elif [ -e "${BUILDPATH}/lttv/lttv/lttv.real" ]; then
+ LTTV_EXEC="${BUILDPATH}/lttv/lttv/lttv.real"
+else