From: Alexandre Montplaisir Date: Wed, 8 Feb 2012 21:34:51 +0000 (-0500) Subject: Add the static binary option to the configure report X-Git-Tag: v1.5-beta1~95 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=76b647abb4c9713e046ea2f3e2c0bec043c99023;p=lttv.git Add the static binary option to the configure report Also fixed how it was defined, as it would never be enabled (withval vs. enableval) Signed-off-by: Alexandre Montplaisir Signed-off-by: Yannick Brosseau --- diff --git a/configure.ac b/configure.ac index e74d4606..e5c110cc 100644 --- a/configure.ac +++ b/configure.ac @@ -149,9 +149,9 @@ AC_CHECK_FUNCS([select]) AC_ARG_ENABLE(lttvstatic, AS_HELP_STRING([--enable-lttvstatic], [build a statically linked executable [[default=no]]]), - [with_lttvstatic="$withval"], - [with_lttvstatic="no"]) -AM_CONDITIONAL([LTTVSTATIC], [ test "x$with_lttvstatic" = "xyes" ] ) + [lttvstatic="$enableval"], + [lttvstatic="no"]) +AM_CONDITIONAL([LTTVSTATIC], [ test "x$lttvstatic" = "xyes" ] ) lttvlibdir="${libdir}/lttv" lttvplugindir="${lttvlibdir}/plugins" @@ -225,6 +225,10 @@ AS_IF([test "x$with_trace_sync" = "xyes"],[AS_ECHO("Enabled")],[AS_ECHO("Disable AS_ECHO_N("Java (JNI) interface: ") AS_IF([test "x$with_jni_interface" = "xyes"],[AS_ECHO("Enabled")],[AS_ECHO("Disabled")]) +AS_ECHO() +AS_ECHO_N("Statically linked executable: ") +AS_IF([test "x$lttvstatic" = "xyes"],[AS_ECHO("Yes")],[AS_ECHO("No")]) + AS_ECHO() AS_ECHO("Type 'make' to build LTTV.")