From: Peter van Dijk Date: Wed, 5 Jun 2019 14:05:09 +0000 (+0200) Subject: Make configure call PDNS_CHECK_LIBCURL when needed X-Git-Tag: auth-4.2.0-rc2~9^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fab833c13122888be279e1a8556132f2171e6f2;p=pdns Make configure call PDNS_CHECK_LIBCURL when needed --- diff --git a/m4/pdns_enable_tools.m4 b/m4/pdns_enable_tools.m4 index 1221c6136..4324f8e9d 100644 --- a/m4/pdns_enable_tools.m4 +++ b/m4/pdns_enable_tools.m4 @@ -1,4 +1,5 @@ AC_DEFUN([PDNS_ENABLE_TOOLS], [ + AC_REQUIRE([PDNS_CHECK_LIBCURL]) dnl We only care about the #define HAVE_LIBCURL and can build tools without DOH support. AC_MSG_CHECKING([whether we will be building and installing the extra tools]) AC_ARG_ENABLE([tools], [AS_HELP_STRING([--enable-tools], [if we should build and install the tools @<:@default=no@:>@])], @@ -8,8 +9,4 @@ AC_DEFUN([PDNS_ENABLE_TOOLS], [ AC_MSG_RESULT([$enable_tools]) AM_CONDITIONAL([TOOLS], [test "x$enable_tools" != "xno"]) - - AS_IF([test "x$enable_tools" != "xno"], [ - PDNS_CHECK_LIBCURL() dnl We only care about the #define HAVE_LIBCURL and can build tools without DOH support. - ]) ]) diff --git a/m4/pdns_with_lua_records.m4 b/m4/pdns_with_lua_records.m4 index 7c4beb89e..763ee8fa6 100644 --- a/m4/pdns_with_lua_records.m4 +++ b/m4/pdns_with_lua_records.m4 @@ -1,4 +1,5 @@ AC_DEFUN([PDNS_WITH_LUA_RECORDS], [ + AC_REQUIRE([PDNS_CHECK_LIBCURL]) AC_MSG_CHECKING([whether we will enable LUA records]) AC_ARG_ENABLE([lua-records], @@ -12,7 +13,6 @@ AC_DEFUN([PDNS_WITH_LUA_RECORDS], [ AS_IF([test "x$LUAPC" = "x"], AC_MSG_ERROR([LUA records need LUA. You can disable this feature with the --disable-lua-records switch or configure a proper LUA installation.]) ) - PDNS_CHECK_LIBCURL() AS_IF([test "$HAVE_LIBCURL" != "y"], [ AC_MSG_ERROR([libcurl minimum version requirement not met. This is required for LUA records. You can disable it with the --disable-lua-records switch or use --with-libcurl to select another curl installation.]) ])