]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
build: if `--enable-pgsql` is `yes`, abort if libpq is not found
authorJeremy Sowden <jeremy@azazel.net>
Sun, 9 Jan 2022 11:57:52 +0000 (11:57 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 11 Jan 2022 21:15:33 +0000 (22:15 +0100)
If PostgreSQL support has been explicitly requested, abort if it is not
available.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
configure.ac

index 41eeb52b912121bf73f39c3f1318398a386bcc68..62c43d630b29ce42116ae708e149f02c92ed600c 100644 (file)
@@ -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])
+      ])
+    ])
+
   ])
 
 ])