[lttng-dev] [LTTV PATCH 4/4] Add the static binary option to the configure report

Alexandre Montplaisir alexandre.montplaisir at gmail.com
Wed Feb 8 16:34:51 EST 2012


Also fixed how it was defined, as it would never be enabled
(withval vs. enableval)

Signed-off-by: Alexandre Montplaisir <alexandre.montplaisir at gmail.com>
---
 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




More information about the lttng-dev mailing list