From: Jeremy Sowden <jeremy@azazel.net>
To: Netfilter Devel <netfilter-devel@vger.kernel.org>
Subject: [ulogd2 PATCH v2 06/10] build: if `--enable-dbi` is `yes`, abort if libdbi is not found
Date: Sun, 9 Jan 2022 11:57:49 +0000 [thread overview]
Message-ID: <20220109115753.1787915-7-jeremy@azazel.net> (raw)
In-Reply-To: <20220109115753.1787915-1-jeremy@azazel.net>
If DBI support has been explicitly requested, abort if it is not
available.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
---
configure.ac | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 75764db8aec9..bd1059a9633b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -171,8 +171,13 @@ AM_CONDITIONAL([HAVE_SQLITE3], [test "x$libsqlite3_LIBS" != "x"])
AC_ARG_ENABLE([dbi],
[AS_HELP_STRING([--enable-dbi], [Enable DBI output plugin [default=test]])])
-AS_IF([test "x$enable_dbi" != "xno"],
- [PKG_CHECK_MODULES([libdbi], [dbi], [], [:])])
+AS_IF([test "x$enable_dbi" != "xno"], [
+ PKG_CHECK_MODULES([libdbi], [dbi], [], [
+ AS_IF([test "x$enable_dbi" = "xyes"], [
+ AC_MSG_ERROR([$libdbi_PKG_ERRORS])
+ ])
+ ])
+])
AS_IF([test "x$libdbi_LIBS" != "x"], [enable_dbi=yes], [enable_dbi=no])
AM_CONDITIONAL([HAVE_DBI], [test "x$libdbi_LIBS" != "x"])
--
2.34.1
next prev parent reply other threads:[~2022-01-09 11:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-09 11:57 [ulogd2 PATCH 00/10] Add pkg-config support Jeremy Sowden
2022-01-09 11:57 ` [ulogd2 PATCH v2 01/10] build: use `--enable-XXX` options for output plugins Jeremy Sowden
2022-01-09 11:57 ` [ulogd2 PATCH v2 02/10] build: use pkg-config for libdbi Jeremy Sowden
2022-01-09 11:57 ` [ulogd2 PATCH v2 03/10] build: use pkg-config or mysql_config for libmysqlclient Jeremy Sowden
2022-01-09 11:57 ` [ulogd2 PATCH v2 04/10] build: use pkg-config or pcap-config for libpcap Jeremy Sowden
2022-01-09 11:57 ` [ulogd2 PATCH v2 05/10] build: use pkg-config or pg_config for libpq Jeremy Sowden
2022-01-09 11:57 ` Jeremy Sowden [this message]
2022-01-09 11:57 ` [ulogd2 PATCH v2 07/10] build: if `--enable-mysql` is `yes`, abort if libmysqlclient is not found Jeremy Sowden
2022-01-09 11:57 ` [ulogd2 PATCH v2 08/10] build: if `--enable-pcap` is `yes`, abort if libpcap " Jeremy Sowden
2022-01-09 11:57 ` [ulogd2 PATCH v2 09/10] build: if `--enable-pgsql` is `yes`, abort if libpq " Jeremy Sowden
2022-01-09 11:57 ` [ulogd2 PATCH v2 10/10] build: if `--enable-sqlite3` is `yes`, abort if libsqlite3 " Jeremy Sowden
2022-01-10 21:25 ` [ulogd2 PATCH 00/10] Add pkg-config support Pablo Neira Ayuso
2022-01-11 12:44 ` Jeremy Sowden
2022-01-11 21:18 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220109115753.1787915-7-jeremy@azazel.net \
--to=jeremy@azazel.net \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).