Properly recognize Mac environments, and set {KRB5,KDB5}_PLUGIN_BUNDLE_DIR
authorKen Raeburn <raeburn@mit.edu>
Thu, 25 May 2006 23:31:26 +0000 (23:31 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 25 May 2006 23:31:26 +0000 (23:31 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18043 dc483132-0cff-0310-8789-dd5450dbe970

src/include/stock/osconf.h

index 26a28054e65ee6598bdd248fd53892d94e694f7f..70ab3f7af10e7f48b58951b14d80918175ff76a1 100644 (file)
 #endif
 #endif
 
+#if defined(__MACH__) && defined(__APPLE__)
+# include <TargetConditionals.h>
+#endif
+
 #if defined(_WIN32)
 #define DEFAULT_PROFILE_FILENAME "krb5.ini"
 #define        DEFAULT_LNAME_FILENAME  "/aname"
@@ -46,6 +50,8 @@
 #if TARGET_OS_MAC
 #define DEFAULT_SECURE_PROFILE_PATH "/Library/Preferences/edu.mit.Kerberos:/etc/krb5.conf:@SYSCONFDIR/krb5.conf"
 #define DEFAULT_PROFILE_PATH        ("~/Library/Preferences/edu.mit.Kerberos" ":" DEFAULT_SECURE_PROFILE_PATH)
+#define KRB5_PLUGIN_BUNDLE_DIR       "/System/Library/KerberosPlugins/KerberosFrameworkPlugins"
+#define KDB5_PLUGIN_BUNDLE_DIR       "/System/Library/KerberosPlugins/KerberosDatabasePlugins"
 #else
 #define DEFAULT_SECURE_PROFILE_PATH    "/etc/krb5.conf:@SYSCONFDIR/krb5.conf"
 #define DEFAULT_PROFILE_PATH        DEFAULT_SECURE_PROFILE_PATH