]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Make configure call PDNS_CHECK_LIBCURL when needed 7878/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 5 Jun 2019 14:05:09 +0000 (16:05 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 6 Jun 2019 09:34:00 +0000 (11:34 +0200)
m4/pdns_enable_tools.m4
m4/pdns_with_lua_records.m4

index 1221c6136767a986092899d0ae163a7186c9090b..4324f8e9d35ae23b5d3fc34b42691c55a2772945 100644 (file)
@@ -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.
-  ])
 ])
index 7c4beb89ed32f303542b4f6191a785c14860fb2d..763ee8fa6967f284a58667ba945cfa67e9699f18 100644 (file)
@@ -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.])
     ])