srcdir = @srcdir@
VPATH = @srcdir@
+KRB5ROOT = @KRB5ROOT@
+KDB5DIR = $(KRB5ROOT)
+KRB5SRVTABDIR = /etc
+
BUILDTOP = ../..
RM = rm -f
@set -x; for f in $(KRB5_HEADERS) config.h osconf.h ; \
do $(INSTALL) -c $(INSTDATFLAGS) $$f $(KRB5_INCDIR)/krb5/$$f ; \
done
+
+PROCESS_REPLACE = -e "s+@KRB5ROOT+$(KRB5ROOT)+" \
+ -e "s+@KDB5DIR+$(KDB5DIR)+" \
+ -e "s+@KRB5SRVTABDIR+${KRB5SRVTABDIR}+" \
+ -e "/UnifdefRan/,/SPLIT-HERE/d"
+
+OSCONFSRC = $(srcdir)/stock/osconf.h $(srcdir)/stock/osauto.h
+
+osconf.h: $(OSCONFSRC)
+ cat $(OSCONFSRC) | sed $(PROCESS_REPLACE) > osconf.new
+ if cmp -s osconf.new osconf.h ; then true; \
+ else $(RM) osconf.h ; $(CP) osconf.new osconf.h ; fi
+
-#ifdef UnifdefRan
-/* WARNING: this file is automatically generated; do not edit! */
-#endif
/*
* $Source$
* $Author$
#define USE_TIME_H
#endif /* USE_SYS_TIME_H */
-#define USE_DBM_LNAME /* Use a DBM database for the aname/lname
- conversion */
-
-#define DEFAULT_CONFIG_FILENAME "@KRB5ROOT/krb.conf"
-#define DEFAULT_TRANS_FILENAME "@KRB5ROOT/krb.realms"
-#define DEFAULT_LNAME_FILENAME "@KRB5ROOT/aname"
-#define DEFAULT_KEYTAB_NAME "FILE:@KRB5SRVTABDIR/v5srvtab"
-
-#define DEFAULT_KDB_FILE "@KDB5DIR/principal"
-#define DEFAULT_ADMIN_ACL "@KDB5DIR/admin_acl_file"
-
-#define DEFAULT_KDC_ETYPE ETYPE_DES_CBC_CRC
-#define DEFAULT_KDC_KEYTYPE KEYTYPE_DES
-#define KDCRCACHE "dfl:krb5kdc_rcache"
-
-#define KDC_PORTNAME "kerberos" /* for /etc/services or equiv. */
-#define KDC_SECONDARY_PORTNAME "kerberos-sec" /* For backwards */
- /* compatibility with */
- /* port 750 clients */
-
-#define MAX_DGRAM_SIZE 4096
-#define MAX_SKDC_TIMEOUT 30
-#define SKDC_TIMEOUT_SHIFT 2 /* left shift of timeout for backoff */
-#define SKDC_TIMEOUT_1 1 /* seconds for first timeout */
-
-#define RCTMPDIR "/usr/tmp" /* directory to store replay caches */
-
-#define KRB5_PATH_TTY "/dev/tty"
-#define KRB5_PATH_LOGIN "@KRB5ROOT/sbin/login.krb5"
-#define KRB5_PATH_RLOGIN "@KRB5ROOT/bin/rlogin"
-
-#endif /* KRB5_OSCONF__ */
+/* remainder added on */