From 747d9109d6fa5a30a55a1b4315e62d967a0698ff Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 21 Jun 2010 15:25:38 +0000 Subject: [PATCH] Make OFFLINE!=no work again ticket: 6744 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24140 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/Makefile.in | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/lib/krb5/os/Makefile.in b/src/lib/krb5/os/Makefile.in index 7709b2802..5f7df5799 100644 --- a/src/lib/krb5/os/Makefile.in +++ b/src/lib/krb5/os/Makefile.in @@ -213,13 +213,16 @@ DIG = @DIG@ NSLOOKUP = @NSLOOKUP@ check-unix-locate:: t_locate_kdc - if [ "$(OFFLINE)" = no ] && \ - $(DIG) $(SRVNAME) srv | grep -i $(DIGPAT) || \ - $(NSLOOKUP) -q=srv $(SRVNAME) | grep -i $(NSPAT); then \ - KRB5_CONFIG=$(srcdir)/td_krb5.conf ; export KRB5_CONFIG ;\ - $(KRB5_RUN_ENV) $(VALGRIND) ./t_locate_kdc $(LOCREALM); \ + if [ "$(OFFLINE)" = no ]; then \ + if $(DIG) $(SRVNAME) srv | grep -i $(DIGPAT) || \ + $(NSLOOKUP) -q=srv $(SRVNAME) | grep -i $(NSPAT); then \ + KRB5_CONFIG=$(srcdir)/td_krb5.conf ; export KRB5_CONFIG ;\ + $(KRB5_RUN_ENV) $(VALGRIND) ./t_locate_kdc $(LOCREALM); \ + else \ + echo '*** WARNING: skipped t_locate_kdc test: known DNS name not found'; \ + fi; \ else \ - echo '*** WARNING: skipped t_locate_kdc test: known DNS name not found'; \ + echo '*** WARNING: skipped t_locate_kdc test: OFFLINE'; \ fi # -- 2.26.2