Add support for conditional definition of DNS flags to win-pre.h
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 30 Jun 1999 00:00:30 +0000 (00:00 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 30 Jun 1999 00:00:30 +0000 (00:00 +0000)
If KRB5_USE_DNS is defined in the environment then Krb5_32.dll
will be built with DNS support.

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

src/config/win-pre.in

index a41f905abb38cf519146796bd6451aca890b4d9a..8ed8a5175c41ee87228d88aaf035543567554405 100644 (file)
@@ -111,7 +111,13 @@ LOPTS=-debug
 LINKOPTS=-incremental:no $(LOPTS) -nologo -dll -entry:DllMain
 LINKOPTS2=-incremental:no $(LOPTS) -nologo
 
-CPPFLAGS =  -I$(SRCTOP)\include -I$(SRCTOP)\include\krb5 
+!if defined(KRB5_USE_DNS) 
+DNSFLAGS= -DKRB5_DNS_LOOKUP -DWSHELPER
+!else
+DNSFLAGS=
+!endif
+
+CPPFLAGS =  -I$(SRCTOP)\include -I$(SRCTOP)\include\krb5 -I$(SRCTOP)\mit\windows\include $(DNSFLAGS)
 DEFS = $(CPPFLAGS)
 CFLAGS2 = $(CCOPTS2) $(DEFS)