Also fixed how it was defined, as it would never be enabled (withval vs. enableval)
Signed-off-by: Alexandre Montplaisir <[email protected]> --- configure.ac | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 2a2473c..51aabd4 100644 --- a/configure.ac +++ b/configure.ac @@ -148,9 +148,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,5 +225,9 @@ 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.") -- 1.7.9 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
