From ab2ffd87d52345dfa168db962724e5f1113e198e Mon Sep 17 00:00:00 2001 From: Max Lv Date: Tue, 24 Jan 2017 09:22:46 +0800 Subject: [PATCH] Check headers of libudns and libev --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 1c3ad2da..f4b66d3a 100755 --- a/configure.ac +++ b/configure.ac @@ -304,7 +304,9 @@ dnl Add define for libudns to enable IPv6 support dnl This is an option defined in the origin configure script AC_DEFINE([HAVE_IPv6], [1], [Enable IPv6 support in libudns]) +AC_CHECK_HEADERS([udns.h], [], [AC_MSG_ERROR([Couldn't find libudns. Try installing libudns-dev or udns-devel.])]) AC_CHECK_LIB([udns], [dns_dnlen], [LIBS="-ludns $LIBS"], [AC_MSG_ERROR([Couldn't find libudns. Try installing libudns-dev or udns-devel.])]) +AC_CHECK_HEADERS([ev.h], [], [AC_MSG_ERROR([Couldn't find libev. Try installing libev-dev@<:@el@:>@.])]) AC_CHECK_LIB([ev], [ev_loop_destroy], [LIBS="-lev $LIBS"], [AC_MSG_ERROR([Couldn't find libev. Try installing libev-dev@<:@el@:>@.])]) AM_COND_IF([ENABLE_DOCUMENTATION],