Patchwork [RFC,1/3] Fix configure script for LTTng 2.x

login
register
mail settings
Submitter Mohamad Gebai
Date Sept. 30, 2013, 3:04 p.m.
Message ID <1380553501-20670-2-git-send-email-mohamad.gebai@polymtl.ca>
Download mbox | patch
Permalink /patch/279271/
State New
Headers show

Comments

Mohamad Gebai - Sept. 30, 2013, 3:04 p.m.
Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>
---
 configure |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Patch

diff --git a/configure b/configure
index 05e16da..b3c9b80 100755
--- a/configure
+++ b/configure
@@ -3283,15 +3283,14 @@  fi
 # For 'ust' backend, test if ust headers are present
 if test "$trace_backend" = "ust"; then
   cat > $TMPC << EOF
-#include <ust/tracepoint.h>
-#include <ust/marker.h>
+#include <lttng/tracepoint.h>
 int main(void) { return 0; }
 EOF
   if compile_prog "" "" ; then
-    LIBS="-lust -lurcu-bp $LIBS"
-    libs_qga="-lust -lurcu-bp $libs_qga"
+    LIBS="-llttng-ust -lurcu-bp -ldl $LIBS"
+    libs_qga="-llttng-ust -lurcu-bp -ldl $libs_qga"
   else
-    error_exit "Trace backend 'ust' missing libust header files"
+    error_exit "Trace backend 'ust' missing lttng-ust header files"
   fi
 fi