dnl KRB5_AC_ENABLE_DNS
dnl
AC_DEFUN(KRB5_AC_ENABLE_DNS, [
-AC_MSG_CHECKING(if DNS Kerberos lookup support should be compiled in)
-
- AC_ARG_ENABLE([dns],
-[ --enable-dns build in support for Kerberos-related DNS lookups], ,
-[enable_dns=default])
-
- AC_ARG_ENABLE([dns-for-kdc],
-[ --enable-dns-for-kdc enable DNS lookups of Kerberos KDCs (default=YES)], ,
-[case "$enable_dns" in
- yes | no) enable_dns_for_kdc=$enable_dns ;;
- *) enable_dns_for_kdc=yes ;;
-esac])
- if test "$enable_dns_for_kdc" = yes; then
- AC_DEFINE(KRB5_DNS_LOOKUP_KDC,1,[Define to enable DNS lookups of Kerberos KDCs])
- fi
+enable_dns=yes
+enable_dns_for_kdc=yes
+AC_DEFINE(KRB5_DNS_LOOKUP_KDC,1,[Define to enable DNS lookups of Kerberos KDCs])
AC_ARG_ENABLE([dns-for-realm],
[ --enable-dns-for-realm enable DNS lookups of Kerberos realm names], ,
-[case "$enable_dns" in
- yes | no) enable_dns_for_realm=$enable_dns ;;
- *) enable_dns_for_realm=no ;;
-esac])
+[enable_dns_for_realm=no])
if test "$enable_dns_for_realm" = yes; then
AC_DEFINE(KRB5_DNS_LOOKUP_REALM,1,[Define to enable DNS lookups of Kerberos realm names])
fi
- if test "$enable_dns_for_kdc,$enable_dns_for_realm" != no,no
- then
- # must compile in the support code
- if test "$enable_dns" = no ; then
- AC_MSG_ERROR(cannot both enable some DNS options and disable DNS support)
- fi
- enable_dns=yes
- fi
- if test "$enable_dns" = yes ; then
- AC_DEFINE(KRB5_DNS_LOOKUP, 1,[Define for DNS support of locating realms and KDCs])
- else
- enable_dns=no
- fi
+AC_DEFINE(KRB5_DNS_LOOKUP, 1,[Define for DNS support of locating realms and KDCs])
-AC_MSG_RESULT($enable_dns)
-dnl AC_MSG_CHECKING(if DNS should be used to find KDCs by default)
-dnl AC_MSG_RESULT($enable_dns_for_kdc)
-dnl AC_MSG_CHECKING(if DNS should be used to find realm name by default)
-dnl AC_MSG_RESULT($enable_dns_for_realm)
])
dnl
dnl