X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_config.h.in;h=039d75dd2b78c4faf76a119455f1c40fd3432dc2;hb=523e72ddaf9c0c9a46c178a13e81a211f4ebae4e;hp=63b604f6ea62f9478d80eb0dfcd9067006a44d65;hpb=0bb431d3b38f6d7feab4bcd175bac226ef5e02be;p=openldap diff --git a/include/ldap_config.h.in b/include/ldap_config.h.in index 63b604f6ea..039d75dd2b 100644 --- a/include/ldap_config.h.in +++ b/include/ldap_config.h.in @@ -1,12 +1,16 @@ /* $OpenLDAP$ */ -/* - * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA +/* This work is part of OpenLDAP Software . + * + * Copyright 1998-2004 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 + * . */ /* @@ -26,6 +30,19 @@ #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 */ #ifndef LDAP_BINDIR #define LDAP_BINDIR "%BINDIR%" @@ -45,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 */