2004-04-09 13:05:16 +00:00
|
|
|
dnl $Id$
|
|
|
|
|
2004-06-03 12:10:38 +00:00
|
|
|
m4_include([../../configure-common.ac])
|
2004-06-04 14:08:41 +00:00
|
|
|
AM_INIT_AUTOMAKE(foreign)
|
2004-04-09 13:05:16 +00:00
|
|
|
AC_CONFIG_HEADERS(config.h)
|
|
|
|
|
2004-05-27 12:21:29 +00:00
|
|
|
m4_include([../configure-plugins.ac])
|
2004-05-27 12:12:06 +00:00
|
|
|
|
2004-04-09 13:05:16 +00:00
|
|
|
DNS_BUILD=1
|
|
|
|
AC_CHECK_FUNCS(poptGetContext,,
|
|
|
|
[AC_CHECK_LIB(popt,poptGetContext,,[AC_MSG_WARN([No popt development environment found, not building this plugin]) && DNS_BUILD=0])])
|
|
|
|
if test "$DNS_BUILD" != "0"; then
|
2004-06-04 09:04:38 +00:00
|
|
|
AC_CHECK_FUNC(res_mkquery, ,
|
|
|
|
[AC_CHECK_LIB(bind, res_mkquery, ,
|
|
|
|
[AC_CHECK_LIB(resolv, res_mkquery, ,
|
|
|
|
[AC_MSG_ERROR([No DNS resolver development environment found, not building this plugin]) && DNS_BUILD=0])])])
|
2004-04-09 13:05:16 +00:00
|
|
|
fi
|
|
|
|
|
2004-06-03 12:10:38 +00:00
|
|
|
AM_CONDITIONAL(DNSBUILD, test "$DNS_BUILD" = 1)
|
2004-04-09 13:05:16 +00:00
|
|
|
AC_OUTPUT(Makefile)
|
|
|
|
|