48a038d077ed2de18a5211e010c18ab680107293Stephen GallagherAC_PATH_PROG(NSUPDATE, nsupdate)
2be3039b8fc8ec07a323d15060123366da786dc5Stephen GallagherAC_MSG_CHECKING(for executable nsupdate)
48a038d077ed2de18a5211e010c18ab680107293Stephen Gallagherif test -x "$NSUPDATE"; then
48a038d077ed2de18a5211e010c18ab680107293Stephen Gallagher AC_DEFINE_UNQUOTED([NSUPDATE_PATH], ["$NSUPDATE"], [The path to nsupdate])
48a038d077ed2de18a5211e010c18ab680107293Stephen Gallagher AC_MSG_RESULT(yes)
2be3039b8fc8ec07a323d15060123366da786dc5Stephen Gallagher AC_MSG_CHECKING(for nsupdate 'realm' support')
2be3039b8fc8ec07a323d15060123366da786dc5Stephen Gallagher if AC_RUN_LOG([echo realm |$NSUPDATE >&2]); then
2be3039b8fc8ec07a323d15060123366da786dc5Stephen Gallagher AC_MSG_RESULT([yes])
2be3039b8fc8ec07a323d15060123366da786dc5Stephen Gallagher AC_DEFINE_UNQUOTED([HAVE_NSUPDATE_REALM], 1, [Whether to use the 'realm' directive with nsupdate])
711f8acc0f520487060c308870f70dbbfa84f272Lukas Slebodnik AC_MSG_RESULT([no])
711f8acc0f520487060c308870f70dbbfa84f272Lukas Slebodnik AC_MSG_WARN([Will build without the 'realm' directive])
711f8acc0f520487060c308870f70dbbfa84f272Lukas Slebodnik AC_MSG_RESULT([no])
711f8acc0f520487060c308870f70dbbfa84f272Lukas Slebodnik AC_MSG_ERROR([nsupdate is not available])