]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Tell people to use --with-(dyn-)modules=... when they use --without-mysql 7335/head
authorJosh Soref <jsoref@users.noreply.github.com>
Thu, 10 Jan 2019 04:55:01 +0000 (23:55 -0500)
committerJosh Soref <jsoref@users.noreply.github.com>
Thu, 10 Jan 2019 04:55:01 +0000 (23:55 -0500)
closes #5140

m4/pdns_with_mysql.m4

index 8bfe29103e387886ac6b864b3fd4236bbe2f3536..036b963fdcca7e4078d5a9e0dfbeddd1826651db 100644 (file)
@@ -2,6 +2,12 @@ AC_DEFUN([PDNS_WITH_MYSQL],[
   AC_ARG_WITH([mysql],
     [AS_HELP_STRING([--with-mysql=<path>], [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"