Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2163534pxv; Sat, 17 Jul 2021 05:57:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm47YqMAOcGTnrkc36G++4hBvxeKUvDUlsZmNmyNSFLr/lzCP3KJqHFTbn3yB0QDmuXH02 X-Received: by 2002:aa7:d8c6:: with SMTP id k6mr21824574eds.374.1626526671014; Sat, 17 Jul 2021 05:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626526671; cv=none; d=google.com; s=arc-20160816; b=HyRX0+FUg8FtSRwzEg1/IGfwBwais3Ha/UGAYAFM++dbUJuHcq0CzXUloNd3Fm+T8p xUAgDc0DQoytd3VLjlbMqoXScH5tXHbfot3Sk1KOVqCVK4OpLScViwuc9os0sNTTChbs 8VQEPQn+n5gn5FO2KBlSKnHnxiG4lSJKTPutTD7zGlbaPGMs41EqXvK5aYY/rL39GKVm jJC3ZAI6PI6ATkpy0OH+6iaeK+xkgxsdBWpCV5MIncxrvODbme8pDOt27N8raya3Brmi 9GCs8HP4HLQd23Qc1aycTVXz4LkGdKBf0NWe6JV5vqXhsiB/PpjXkWqbvBa4lhRrrGTG ORqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=l6Xh+i1Git8xxKRZevxT9ST02KYtC/+lZ9Ewh884Me0=; b=RVMYOX4O6y1zF3Zqfrsx16Pjnbuobt2+YZzDY/KT5SIyCJd7mSdriMkur8UQEDUrIW f3wcp2A/DCvCBlYkhWkzzMj54aMXvdnBRGgQoPK1MiVYhLl172KIaMabzR+8QTKFFDc6 wPfsfi0WXkqaDBkSsxeexZLV7iJMH99gKuOb+++fKoab8IXxNUuhj4ivD4mZBbCqPHHC GMMZR+NLRdRnTH0YmhIGa0GbecLJE0Vr6kHwAYa9gjs18J71NMdlaUOWsIm+m+yJ+wJg 2cNp1bX+X0KT6SF1QWf9NpJm542TToAnG59rRSzVZdd4oxLr2d0iJy6birZrveoYKi82 qByg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b="j/9NopIE"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si18241613ejc.221.2021.07.17.05.57.27; Sat, 17 Jul 2021 05:57:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b="j/9NopIE"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229746AbhGQM6Y (ORCPT + 99 others); Sat, 17 Jul 2021 08:58:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231240AbhGQM6Y (ORCPT ); Sat, 17 Jul 2021 08:58:24 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [IPv6:2001:67c:2050::465:102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A13C061762 for ; Sat, 17 Jul 2021 05:55:28 -0700 (PDT) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4GRp4G3hLPzQkBD; Sat, 17 Jul 2021 14:55:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1626526524; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l6Xh+i1Git8xxKRZevxT9ST02KYtC/+lZ9Ewh884Me0=; b=j/9NopIE4JTbVbal2m/bMrU392o2S8HKdh4k4ZRLZvakg2v9Q70phQjQiBQs3KN7xd+kdU Lo+ZS1r49H3nt6w/aSK2sRbpNVtr8wvStm5AVhc5DNNXx6pdINetTehypss7d1rzIByf7h UqpLgCi9Lmr7+LKJM5r9CDmdvWNNZEhUUIx3Rq+tPvkCOEhrWnTBk3wwnpzYyOzqRiTgvJ jhn7rK9xB4hkyU9eQuy5g1O0HrXPchx843DvJGXqqTYVeBFJwm1drqw1UDJPS/tUokLufp BMO92hf9dtZgXC51SLvO/OEEgK57LjK+R5KuyTi/0iPuOIuZENeTbk4hl86Xgw== Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id F852yK8DEAyT; Sat, 17 Jul 2021 14:55:22 +0200 (CEST) From: Dylan Van Assche To: linux-bluetooth@vger.kernel.org Cc: Juho Hamalainen , Dylan Van Assche Subject: [PATCH 2/4] configure.ac: specify phonebook plugin at build time Date: Sat, 17 Jul 2021 14:55:06 +0200 Message-Id: <20210717125508.29186-2-me@dylanvanassche.be> In-Reply-To: <20210717125508.29186-1-me@dylanvanassche.be> References: <20210717125508.29186-1-me@dylanvanassche.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 59D06182D X-Rspamd-UID: dcd925 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Juho Hamalainen Various phonebook plugins are available, by default phonebook-dummy is always built. Allow to specify which plugin to use at build time. Cherry-picked from https://github.com/sailfishos/bluez5/commit/d39ed9e2db8d4f9ab239a859c777e5504459b9dd Co-authored-by: Dylan Van Assche Signed-off-by: Dylan Van Assche --- Makefile.obexd | 2 +- configure.ac | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.obexd b/Makefile.obexd index 6f5dc04c0..285a56197 100644 --- a/Makefile.obexd +++ b/Makefile.obexd @@ -41,7 +41,7 @@ obexd_builtin_modules += pbap obexd_builtin_sources += obexd/plugins/pbap.c \ obexd/plugins/vcard.h obexd/plugins/vcard.c \ obexd/plugins/phonebook.h \ - obexd/plugins/phonebook-dummy.c + obexd/plugins/phonebook-@PLUGIN_PHONEBOOK@.c obexd_builtin_modules += mas obexd_builtin_sources += obexd/plugins/mas.c obexd/src/map_ap.h \ diff --git a/configure.ac b/configure.ac index be32782a6..113ab0e0f 100644 --- a/configure.ac +++ b/configure.ac @@ -416,4 +416,12 @@ fi AC_DEFINE_UNQUOTED(ANDROID_STORAGEDIR, "${storagedir}/android", [Directory for the Android daemon storage files]) +AC_ARG_WITH([phonebook], AC_HELP_STRING([--with-phonebook=PLUGIN], + [obexd phonebook plugin (default=dummy)]), + [plugin_phonebook=${withval}]) +if (test -z "${plugin_phonebook}"); then + plugin_phonebook=dummy +fi +AC_SUBST(PLUGIN_PHONEBOOK, [${plugin_phonebook}]) + AC_OUTPUT(Makefile src/bluetoothd.rst lib/bluez.pc mesh/bluetooth-meshd.rst) -- 2.32.0