From 120784048c396573cac50cdd1c6384a76aff467a Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Wed, 9 Jan 2019 23:55:01 -0500 Subject: [PATCH] Tell people to use --with-(dyn-)modules=... when they use --without-mysql closes #5140 --- m4/pdns_with_mysql.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/m4/pdns_with_mysql.m4 b/m4/pdns_with_mysql.m4 index 8bfe29103e..036b963fdc 100644 --- a/m4/pdns_with_mysql.m4 +++ b/m4/pdns_with_mysql.m4 @@ -2,6 +2,12 @@ AC_DEFUN([PDNS_WITH_MYSQL],[ AC_ARG_WITH([mysql], [AS_HELP_STRING([--with-mysql=], [root directory path of MySQL installation])], [ + if test "$withval" = "no"; then + modules_without_gmysql=$(echo $modules|sed -e 's/gmysql//;s/ */ /g;') + dynmodules_without_gmysql=$(echo $dynmodules|sed -e 's/gmysql//;s/ */ /g;') + AC_MSG_ERROR([instead of --without-mysql try --with-modules="$modules_without_gmysql" --with-dyn-modules="$dynmodules_without_gmysql"]) + fi + MYSQL_LIBS_check="$withval/lib/mysql $with_mysql/lib" MYSQL_CFLAGS_check="$withval/include/mysql" MYSQL_config_check="$withval/bin/mysql_config" -- 2.47.2