X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fldap_config.h.in;h=97ffa05f0e4e099a5deb9a2c5dea51eec7c0d459;hb=60a1ae56e44fd0650bdfa8cc6f871a13687642eb;hp=a26b394f062ed29b8ada097d4ff83837b074b5fa;hpb=21e081dc5b4e9f115302c4d3ab231b2caf1ad2c5;p=openldap
diff --git a/include/ldap_config.h.in b/include/ldap_config.h.in
index a26b394f06..97ffa05f0e 100644
--- a/include/ldap_config.h.in
+++ b/include/ldap_config.h.in
@@ -1,11 +1,16 @@
-/*
- * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+/* $OpenLDAP$ */
+/* This work is part of OpenLDAP Software .
+ *
+ * Copyright 1998-2005 The OpenLDAP Foundation.
* All rights reserved.
*
- * Redistribution and use in source and binary forms are permitted only
- * as authorized by the OpenLDAP Public License. A copy of this
- * license is available at http://www.OpenLDAP.org/license.html or
- * in file LICENSE in the top-level directory of the distribution.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * .
*/
/*
@@ -18,7 +23,24 @@
/* directory separator */
#ifndef LDAP_DIRSEP
+#ifndef _WIN32
#define LDAP_DIRSEP "/"
+#else
+#define LDAP_DIRSEP "\\"
+#endif
+#endif
+
+/* directory for temporary files */
+#if defined(_WIN32)
+# define LDAP_TMPDIR "C:\\." /* we don't have much of a choice */
+#elif defined( _P_tmpdir )
+# define LDAP_TMPDIR _P_tmpdir
+#elif defined( P_tmpdir )
+# define LDAP_TMPDIR P_tmpdir
+#elif defined( _PATH_TMPDIR )
+# define LDAP_TMPDIR _PATH_TMPDIR
+#else
+# define LDAP_TMPDIR LDAP_DIRSEP "tmp"
#endif
/* directories */
@@ -40,16 +62,9 @@
#ifndef LDAP_RUNDIR
#define LDAP_RUNDIR "%RUNDIR%"
#endif
-
-/* command locations */
-#ifndef LDAP_EDITOR
-#define LDAP_EDITOR "%EDITOR%"
-#endif
-#ifndef LDAP_FINGER
-#define LDAP_FINGER "%FINGER%"
-#endif
-#ifndef LDAP_SENDMAIL
-#define LDAP_SENDMAIL "%SENDMAIL%"
+#ifndef LDAP_LOCALEDIR
+#define LDAP_LOCALEDIR "%LOCALEDIR%"
#endif
+
#endif /* _LDAP_CONFIG_H */