Implement Autoconf style directory handling option support.
authorSam Hartman <hartmans@mit.edu>
Thu, 31 Oct 1996 05:17:49 +0000 (05:17 +0000)
committerSam Hartman <hartmans@mit.edu>
Thu, 31 Oct 1996 05:17:49 +0000 (05:17 +0000)
[37]

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

src/config/ChangeLog
src/config/pre.in
src/include/krb5/ChangeLog
src/include/krb5/Makefile.in
src/include/krb5/stock/ChangeLog
src/include/krb5/stock/osconf.h

index c2b3525092ffea94cc8c56b16e55af6c1225fecf..5f1a0bc292fcfd7d2dd2d63ab844875f8b550db6 100644 (file)
@@ -22,6 +22,10 @@ Mon Sep 23 15:40:04 1996  Barry Jaspan  <bjaspan@mit.edu>
        * pre.in (DEJAFLAGS): set --srcdir $(srcdir) so unit test files
        don't have to be symlinked to build tree
 
+Fri Oct 18 01:13:19 1996  Sam Hartman  <hartmans@tertius.mit.edu>
+
+       * pre.in :  Adjust directories to comply with autoconf standards [37]
+
 Fri Sep 20 16:58:08 1996  Barry Jaspan  <bjaspan@mit.edu>
 
        * pre.in: added support for KADM5 unit test system; could
index c2aea1b440c8b2bfc1f337ac8f4f35d15164a1d9..6294f4090d7cbba9bf947328c4d033a7da79a2b9 100644 (file)
@@ -61,18 +61,19 @@ INSTALL_SETUID=$(INSTALL) -s -m 4755
 prefix=@prefix@
 INSTALL_PREFIX=$(prefix)
 INSTALL_EXEC_PREFIX=@exec_prefix@
+exec_prefix=@exec_prefix@
 SHLIB_TAIL_COMP=@SHLIB_TAIL_COMP@
 
-KRB5MANROOT = $(INSTALL_PREFIX)/man
-ADMIN_BINDIR = $(INSTALL_EXEC_PREFIX)/sbin
-SERVER_BINDIR = $(INSTALL_EXEC_PREFIX)/sbin
-CLIENT_BINDIR = $(INSTALL_EXEC_PREFIX)/bin
+KRB5MANROOT = @mandir@
+ADMIN_BINDIR = @sbindir@
+SERVER_BINDIR = @sbindir@
+CLIENT_BINDIR =@bindir@
 ADMIN_MANDIR = $(KRB5MANROOT)/man8
 SERVER_MANDIR = $(KRB5MANROOT)/man8
 CLIENT_MANDIR = $(KRB5MANROOT)/man1
 FILE_MANDIR = $(KRB5MANROOT)/man5
-KRB5_LIBDIR = $(INSTALL_EXEC_PREFIX)/lib
-KRB5_SHLIBDIR = $(INSTALL_EXEC_PREFIX)/lib$(SHLIB_TAIL_COMP)
+KRB5_LIBDIR = @libdir@
+KRB5_SHLIBDIR = @libdir@$(SHLIB_TAIL_COMP)
 KRB5_INCDIR = $(INSTALL_EXEC_PREFIX)/include
 KRB5_INCSUBDIRS = \
        $(KRB5_INCDIR)/asn.1 \
index 9c6daf2e64e270527035ef9cbc9577e35e31fec5..01201ba032a44d5914e4362c85aff01294186aad 100644 (file)
@@ -1,3 +1,8 @@
+Wed Oct 30 18:55:21 1996  Sam Hartman  <hartmans@mit.edu>
+
+       * Makefile.in (LOCALSTATEDIR): Add localstatedir a and sysconfidr
+       to substitutions [37]
+for osconf.h
 Mon Aug 26 17:01:11 1996  Barry Jaspan  <bjaspan@mit.edu>
 
        * kdb.h: add KRB5_TL_KADM5_E_DATA
index 4ab14e0b11db9bc30094b9d0727435ab0057eed0..d60ac1ae81b87e1010efffa0d1fdc7693b052d5a 100644 (file)
@@ -25,10 +25,13 @@ autoconf.stamp: $(srcdir)/autoconf.h.in config.status
 depend::
 
 install::
-
+SYSCONFDIR = @sysconfdir@
+LOCALSTATEDIR = @localstatedir@
 PROCESS_REPLACE = -e "s+@KRB5RCTMPDIR+$(KRB5RCTMPDIR)+" \
                  -e "s+@PREFIX+$(INSTALL_PREFIX)+" \
-                 -e "s+@EXEC_PREFIX+$(INSTALL_EXEC_PREFIX)+"
+                 -e "s+@EXEC_PREFIX+$(INSTALL_EXEC_PREFIX)+" \
+       -e 's+@LOCALSTATEDIR+$(LOCALSTATEDIR)+' \
+       -e 's+@SYSCONFDIR+$(SYSCONFDIR)+' 
 
 OSCONFSRC = $(srcdir)/stock/osconf.h
 
index dbf726d93c69f516c4640c70d914508c0eb1aed5..b3f138923677a5959214f5c3d4340b90c2e0bac9 100644 (file)
@@ -1,3 +1,7 @@
+Wed Oct 30 19:00:07 1996  Sam Hartman  <hartmans@mit.edu>
+
+       * osconf.h :  Set up to use autoconf-style directories. [37]
+
 Wed Aug 28 16:13:10 1996  Barry Jaspan  <bjaspan@mit.edu>
 
        * osconf.h: add KADM5 defaults: KEYTAB, ACL_FILE, PORT
index 535a7ea12129663ec404254fa7f3a1ac35094933..6d8e12ee18f18780176f806d628caa67f8a81b05 100644 (file)
 #define        DEFAULT_LNAME_FILENAME  "/aname"
 #define        DEFAULT_KEYTAB_NAME     "FILE:%s\\v5srvtab"
 #else /* !_WINDOWS */
-#define DEFAULT_PROFILE_PATH   "/etc/krb5.conf:@PREFIX/lib/krb5.conf"
+#define DEFAULT_PROFILE_PATH   "/etc/krb5.conf:@SYSCONFDIR/krb5.conf"
 #define        DEFAULT_KEYTAB_NAME     "FILE:/etc/v5srvtab"
 #define        DEFAULT_LNAME_FILENAME  "@PREFIX/lib/krb5.aname"
 #endif /* _WINDOWS  */
 
-#define DEFAULT_KDB_FILE        "@PREFIX/lib/krb5kdc/principal"
-#define        DEFAULT_KEYFILE_STUB    "@PREFIX/lib/krb5kdc/.k5."
-#define KRB5_DEFAULT_ADMIN_ACL "@PREFIX/lib/krb5kdc/krb5_adm.acl"
+#define DEFAULT_KDB_FILE        "@LOCALSTATEDIR/krb5kdc/principal"
+#define        DEFAULT_KEYFILE_STUB    "@LOCALSTATEDIR/krb5kdc/.k5."
+#define KRB5_DEFAULT_ADMIN_ACL "@LOCALSTATEDIR/krb5kdc/krb5_adm.acl"
 /* Used by old admin server */
-#define        DEFAULT_ADMIN_ACL       "@PREFIX/lib/krb5kdc/kadm_old.acl"
+#define        DEFAULT_ADMIN_ACL       "@LOCALSTATEDIR/krb5kdc/kadm_old.acl"
 
 /* Location of KDC profile */
-#define        DEFAULT_KDC_PROFILE     "@PREFIX/lib/krb5kdc/kdc.conf"
+#define        DEFAULT_KDC_PROFILE     "@LOCALSTATEDIR/krb5kdc/kdc.conf"
 #define        KDC_PROFILE_ENV         "KRB5_KDC_PROFILE"
 
 #define        DEFAULT_KDC_ENCTYPE     ENCTYPE_DES_CBC_CRC
@@ -71,8 +71,8 @@
 /*
  * Defaults for the KADM5 admin system.
  */
-#define DEFAULT_KADM5_KEYTAB   "@PREFIX/lib/krb5kdc/kadm5.keytab"
-#define DEFAULT_KADM5_ACL_FILE "@PREFIX/lib/krb5kdc/kadm5.acl"
+#define DEFAULT_KADM5_KEYTAB   "@LOCALSTATEDIR/krb5kdc/kadm5.keytab"
+#define DEFAULT_KADM5_ACL_FILE "@LOCALSTATEDIR/krb5kdc/kadm5.acl"
 #define DEFAULT_KADM5_PORT     749 /* assigned by IANA */
 
 #define MAX_DGRAM_SIZE 4096
  */
 
 /* the default syslog file */
-#define KADM_SYSLOG  "@PREFIX/lib/krb5kdc/admin_server.syslog"
+#define KADM_SYSLOG  "@LOCALSTATEDIR/krb5kdc/admin_server.syslog"
 
 /* where to find the bad password table */
-#define PW_CHECK_FILE "@PREFIX/lib/krb5kdc/bad_passwd"
+#define PW_CHECK_FILE "@LOCALSTATEDIR/krb5kdc/bad_passwd"
 
-#define DEFAULT_ACL_DIR        "@PREFIX/lib/krb5kdc"
+#define DEFAULT_ACL_DIR        "@LOCALSTATEDIR/krb5kdc"
 
 /*
  * krb5 slave support follows
  */
 
-#define KPROP_DEFAULT_FILE "@PREFIX/lib/krb5kdc/slave_datatrans"
-#define KPROPD_DEFAULT_FILE "@PREFIX/lib/krb5kdc/from_master"
+#define KPROP_DEFAULT_FILE "@LOCALSTATEDIR/krb5kdc/slave_datatrans"
+#define KPROPD_DEFAULT_FILE "@LOCALSTATEDIR/krb5kdc/from_master"
 #define KPROPD_DEFAULT_KDB5_UTIL "@PREFIX/sbin/kdb5_util"
 #define KPROPD_DEFAULT_KDB5_EDIT "@PREFIX/sbin/kdb5_edit"
 #define KPROPD_DEFAULT_KRB_DB DEFAULT_KDB_FILE
-#define KPROPD_ACL_FILE "@PREFIX/lib/krb5kdc/kpropd.acl"
+#define KPROPD_ACL_FILE "@LOCALSTATEDIR/krb5kdc/kpropd.acl"
 
 #endif /* KRB5_OSCONF__ */