From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG9Li-00066Y-6m for qemu-devel@nongnu.org; Wed, 19 Feb 2014 10:46:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WG9Ld-0005fA-F5 for qemu-devel@nongnu.org; Wed, 19 Feb 2014 10:46:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG9Ld-0005ez-75 for qemu-devel@nongnu.org; Wed, 19 Feb 2014 10:46:09 -0500 From: Stefan Hajnoczi Date: Wed, 19 Feb 2014 16:45:54 +0100 Message-Id: <1392824759-7093-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1392824759-7093-1-git-send-email-stefanha@redhat.com> References: <1392824759-7093-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PULL 1/6] Fix configure script for LTTng 2.x List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Llu=C3=ADs=20Vilanova?= , Anthony Liguori From: Mohamad Gebai Signed-off-by: Mohamad Gebai Signed-off-by: Stefan Hajnoczi --- configure | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 4648117..8c0ead9 100755 --- a/configure +++ b/configure @@ -3379,15 +3379,25 @@ fi # For 'ust' backend, test if ust headers are present if test "$trace_backend" = "ust"; then cat > $TMPC << EOF -#include -#include +#include int main(void) { return 0; } EOF if compile_prog "" "" ; then - LIBS="-lust -lurcu-bp $LIBS" - libs_qga="-lust -lurcu-bp $libs_qga" + if $pkg_config lttng-ust --exists; then + lttng_ust_libs=`$pkg_config --libs lttng-ust` + else + lttng_ust_libs="-llttng-ust" + fi + if $pkg_config liburcu-bp --exists; then + urcu_bp_libs=`$pkg_config --libs liburcu-bp` + else + urcu_bp_libs="-lurcu-bp" + fi + + LIBS="$lttng_ust_libs $urcu_bp_libs $LIBS" + libs_qga="$lttng_ust_libs $urcu_bp_libs $libs_qga" else - error_exit "Trace backend 'ust' missing libust header files" + error_exit "Trace backend 'ust' missing lttng-ust header files" fi fi -- 1.8.5.3