From: Jeremy Sowden Date: Sun, 9 Jan 2022 11:57:50 +0000 (+0000) Subject: build: if `--enable-mysql` is `yes`, abort if libmysqlclient is not found X-Git-Tag: ulogd-2.0.8~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0efac6993adb339678890720bceb9432e85cd668;p=thirdparty%2Fulogd2.git build: if `--enable-mysql` is `yes`, abort if libmysqlclient is not found If MySQL 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 bd1059a..620cb34 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) + ]) + ]) + ]) ])