]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
lttng: Support --with-lttng=check
authorAdam Crume <adamcrume@gmail.com>
Wed, 13 Aug 2014 22:22:42 +0000 (15:22 -0700)
committerSage Weil <sage@redhat.com>
Thu, 21 Aug 2014 17:57:33 +0000 (10:57 -0700)
Signed-off-by: Adam Crume <adamcrume@gmail.com>
configure.ac

index 1046329c27f6d21617049e6f1367a4c3c0f85fe5..cd940950046067662bc463e4e8c8abe7cfc80a12 100644 (file)
@@ -802,7 +802,10 @@ AC_CHECK_TYPES([__u8, __s8, __u16, __s16, __u32, __s32, __u64, __s64, __le16,
 
 AC_ARG_WITH([lttng],
        [AS_HELP_STRING([--with-lttng], [Trace with LTTng])])
-AM_CONDITIONAL([WITH_LTTNG], test x"$with_lttng" = x"yes")
+AS_IF([test "x$with_lttng" = "xno"], [use_lttng=no],
+      [test "x$with_lttng" = "xyes"], [use_lttng=yes],
+      [AC_CHECK_HEADERS([lttng/tracepoint.h], [use_lttng=yes], [use_lttng=no])])
+AM_CONDITIONAL([WITH_LTTNG], test x"$use_lttng" = x"yes")
 AM_COND_IF([WITH_LTTNG], [
   AC_DEFINE([WITH_LTTNG], [1], [Define if you want to use LTTng])