summaryrefslogtreecommitdiffstats
path: root/src/external/nsupdate.m4
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-01-13 08:45:27 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-01-17 08:32:45 -0500
commitcafcf367f1d41aa7d82c7108747e32918cb93e64 (patch)
tree418f545d03f0a77605277c7eea2fe38cfb25ba2f /src/external/nsupdate.m4
parent585ffd71e5b97fd9fae396948e1d1360cf6d7b4b (diff)
downloadsssd-cafcf367f1d41aa7d82c7108747e32918cb93e64.tar.gz
sssd-cafcf367f1d41aa7d82c7108747e32918cb93e64.tar.xz
sssd-cafcf367f1d41aa7d82c7108747e32918cb93e64.zip
IPA: Detect nsupdate support for the realm directive
For older platforms, do not add the 'realm' line in the update message
Diffstat (limited to 'src/external/nsupdate.m4')
-rw-r--r--src/external/nsupdate.m411
1 files changed, 10 insertions, 1 deletions
diff --git a/src/external/nsupdate.m4 b/src/external/nsupdate.m4
index 6e18f017b..9ccff6159 100644
--- a/src/external/nsupdate.m4
+++ b/src/external/nsupdate.m4
@@ -1,8 +1,17 @@
AC_PATH_PROG(NSUPDATE, nsupdate)
-AC_MSG_CHECKING(for nsupdate)
+AC_MSG_CHECKING(for executable nsupdate)
if test -x "$NSUPDATE"; then
AC_DEFINE_UNQUOTED([NSUPDATE_PATH], ["$NSUPDATE"], [The path to nsupdate])
AC_MSG_RESULT(yes)
+
+ AC_MSG_CHECKING(for nsupdate 'realm' support')
+ if AC_RUN_LOG([echo realm |$NSUPDATE >&2]); then
+ AC_MSG_RESULT([yes])
+ AC_DEFINE_UNQUOTED([HAVE_NSUPDATE_REALM], 1, [Whether to use the 'realm' directive with nsupdate])
+ else
+ AC_MSG_WARN([no. Will build without the 'realm' directive])
+ fi
+
else
AC_MSG_ERROR([no. nsupdate is not available])
fi