Skip to contentSkip to conversation

lttng-tools liburcu path

DISCUSSION Jan Glauber 1 participant 1 message Mar 27, 2014 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

With this patch it works for me, but I'm no autoconf wizard and I just realized I also could use:

./configure --disable-lttng-ust --with-lttng-ust-prefix=/usr/local/

to make it work since all I need is the additional -L path...

--Jan

configure.ac +9 -0
index 54f82cf..59e8344 100644
@@ -200,6 +200,15 @@ AC_CHECK_DECL([cmm_smp_mb__before_uatomic_or], [],
         [AC_MSG_ERROR([liburcu $liburcu_version or newer is needed])], [[#include <urcu.h>]]
 )
 
+AC_ARG_WITH(liburcu-prefix,
+  AS_HELP_STRING([--with-liburcu-prefix=PATH],
+                 [Specify the installation prefix of the liburcu library.
+	          Headers must be in PATH/include; libraries in PATH/lib.]),
+		  [
+		    CPPFLAGS="$CPPFLAGS -I${withval}/include"
+		    LDFLAGS="$LDFLAGS -L${withval}/lib64 -L${withval}/lib"
+		  ])
+
 AC_ARG_WITH(lttng-ust-prefix,
   AS_HELP_STRING([--with-lttng-ust-prefix=PATH],
                  [Specify the installation prefix of the lttng-ust library.
Quoted 10 lines · Jan Glauber

Hi David,

I'm getting linker errors for lttng-tools, due to an older version of liburcu (<0.7) installed. Now I was looking for a configure switch to specify where the liburcu that should be used is but I didn't find one.

Would it be possible to add something like --with-xml-prefix= but for luburcu?

thanks, Jan