]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - m4/pdns_with_lua_records.m4
Merge pull request #7908 from omoerbeek/rec-4.1.14-changelog
[thirdparty/pdns.git] / m4 / pdns_with_lua_records.m4
index a3f2419c87b1e7b255388ba5e43769c5c346017f..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,9 +13,10 @@ 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.])
     )
-    LIBCURL_CHECK_CONFIG("yes", "7.21.3", [ : ], [
+    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.])
     ])
+
     AC_DEFINE([HAVE_LUA_RECORDS], [1], [Define if enabling LUA records.])
   ])
   AM_CONDITIONAL([HAVE_LUA_RECORDS], [test "x$enable_lua_records" != "xno"])