]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
build: if `--enable-mysql` is `yes`, abort if libmysqlclient is not found
authorJeremy Sowden <jeremy@azazel.net>
Sun, 9 Jan 2022 11:57:50 +0000 (11:57 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 11 Jan 2022 21:15:33 +0000 (22:15 +0100)
If MySQL 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 bd1059a9633bf9d6aa16bcad8a28410c2fb7e04a..620cb34c8537d62075594625c721b208d915c38e 100644 (file)
@@ -156,6 +156,12 @@ AS_IF([test "x$enable_mysql" != "xno"], [
       AC_MSG_RESULT([no])
     ])
 
+    AS_IF([test "x$libmysqlclient_LIBS" = "x"], [
+      AS_IF([test "x$enable_mysql" = "xyes"], [
+        AC_MSG_ERROR([libmysqlclient not found])
+      ])
+    ])
+
   ])
 
 ])