From patchwork Tue Nov 17 11:22:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schultz X-Patchwork-Id: 545528 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.osmocom.org (tmp.osmocom.org [144.76.43.76]) by ozlabs.org (Postfix) with ESMTP id 6407C1402D5 for ; Tue, 17 Nov 2015 22:23:00 +1100 (AEDT) Received: from lists.osmocom.org (lists.osmocom.org [144.76.43.76]) by lists.osmocom.org (Postfix) with ESMTP id 1FB5192E3; Tue, 17 Nov 2015 11:22:59 +0000 (UTC) X-Original-To: openbsc@lists.osmocom.org Delivered-To: openbsc@lists.osmocom.org Received: from mail.tpip.net (mail.tpip.net [92.43.49.48]) by lists.osmocom.org (Postfix) with ESMTP id 3873A92D2 for ; Tue, 17 Nov 2015 11:22:58 +0000 (UTC) Received: from office.tpip.net (office.tpip.net [92.43.51.2]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tpip.net (Postfix) with ESMTPS id D7F4C4F416; Tue, 17 Nov 2015 11:22:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by office.tpip.net (Postfix) with ESMTP id A76F3A2CA1; Tue, 17 Nov 2015 12:22:54 +0100 (CET) Received: from office.tpip.net ([127.0.0.1]) by localhost (office.tpip.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id GvFkJMgWRkld; Tue, 17 Nov 2015 12:22:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by office.tpip.net (Postfix) with ESMTP id 50D7AA2CAC; Tue, 17 Nov 2015 12:22:54 +0100 (CET) X-Virus-Scanned: amavisd-new at tpip.net Received: from office.tpip.net ([127.0.0.1]) by localhost (office.tpip.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id btuccI0zgsC7; Tue, 17 Nov 2015 12:22:54 +0100 (CET) Received: from alice.tpip.org (unknown [192.168.13.53]) by office.tpip.net (Postfix) with ESMTPSA id E9DD5A2CA7; Tue, 17 Nov 2015 12:22:53 +0100 (CET) From: Andreas Schultz To: openbsc@lists.osmocom.org Subject: [PATCH openggsn 3/4] ggsn: fix autotool pkg-config invokation Date: Tue, 17 Nov 2015 12:22:44 +0100 Message-Id: <1447759365-24099-4-git-send-email-aschultz@tpip.net> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1447759365-24099-1-git-send-email-aschultz@tpip.net> References: <1447759365-24099-1-git-send-email-aschultz@tpip.net> X-BeenThere: openbsc@lists.osmocom.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Development of the OpenBSC GSM base station controller List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pablo Neira Ayuso Errors-To: openbsc-bounces@lists.osmocom.org Sender: "OpenBSC" see https://autotools.io/pkgconfig/pkg_check_modules.html, Optional Modules for explanation Signed-off-by: Andreas Schultz --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1fad6b1..3f5148a 100644 --- a/configure.ac +++ b/configure.ac @@ -50,9 +50,9 @@ AC_ARG_ENABLE([gtp-kernel], AS_HELP_STRING([--enable-gtp-kernel], [Build GTP tunneling kernel]), [enable_gtp_kernel="$enableval"], [enable_gtp_kernel="no"]) -if test "x$enable_gtp_kernel" = "xyes"; then +AS_IF([test "x$enable_gtp_kernel" = "xyes"], [ PKG_CHECK_MODULES([LIBGTPNL], [libgtpnl >= 1.0.0]) -fi +]) AM_CONDITIONAL([ENABLE_GTP_KERNEL], [test "$enable_gtp_kernel" = "yes"])