From: Jeremy Sowden Date: Sun, 9 Jan 2022 11:57:52 +0000 (+0000) Subject: build: if `--enable-pgsql` is `yes`, abort if libpq is not found X-Git-Tag: ulogd-2.0.8~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5e7a7a73950cc881cd25e4775ad30726e415d3a;p=thirdparty%2Fulogd2.git build: if `--enable-pgsql` is `yes`, abort if libpq is not found If PostgreSQL support has been explicitly requested, abort if it is not available. Signed-off-by: Jeremy Sowden Signed-off-by: Pablo Neira Ayuso --- diff --git a/configure.ac b/configure.ac index 41eeb52..62c43d6 100644 --- a/configure.ac +++ b/configure.ac @@ -104,6 +104,12 @@ AS_IF([test "x$enable_pgsql" != "xno"], [ AC_MSG_RESULT([no]) ]) + AS_IF([test "x$libpq_LIBS" = "x"], [ + AS_IF([test "x$enable_pgsql" = "xyes"], [ + AC_MSG_ERROR([libpq not found]) + ]) + ]) + ]) ])