From e3881b465539afb06891bf30781c3403f281786e Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Fri, 22 Aug 2014 09:43:49 +0300 Subject: [PATCH] Check if ragel is missing but needed and fail --- configure.ac | 2 +- m4/pdns_check_ragel.m4 | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 m4/pdns_check_ragel.m4 diff --git a/configure.ac b/configure.ac index c5c8ace5eb..342e2398b7 100644 --- a/configure.ac +++ b/configure.ac @@ -56,7 +56,7 @@ eval full_libdir="\"$libdir\"" # detect pkg-config explicitly PKG_PROG_PKG_CONFIG -AC_CHECK_PROG([RAGEL], [ragel], [ragel]) +PDNS_CHECK_RAGEL AC_CHECK_PROG([ASCIIDOC], [asciidoc], [asciidoc]) PDNS_WITH_LUA diff --git a/m4/pdns_check_ragel.m4 b/m4/pdns_check_ragel.m4 new file mode 100644 index 0000000000..9a49823b01 --- /dev/null +++ b/m4/pdns_check_ragel.m4 @@ -0,0 +1,8 @@ +AC_DEFUN([PDNS_CHECK_RAGEL], [ + AC_CHECK_PROG([RAGEL], [ragel], [ragel]) + if test "x$RAGEL" = "x"; then + if test ! -f "${srcdir}/pdns/dnslabeltext.cc"; then + AC_MSG_ERROR([ragel is missing and you don't have ${srcdir}/pdns/dnslabeltext.cc. Install ragel or download sources from www.powerdns.com]) + fi + fi +]) -- 2.47.2