Make OFFLINE!=no work again
authorTom Yu <tlyu@mit.edu>
Mon, 21 Jun 2010 15:25:38 +0000 (15:25 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 21 Jun 2010 15:25:38 +0000 (15:25 +0000)
ticket: 6744

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24140 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/Makefile.in

index 7709b2802afe13142e773ea6a19a6748f04e1a03..5f7df57991b7ed56db733cf75a84f9fb55425ee9 100644 (file)
@@ -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
 
 #