]> git.sur5r.net Git - openldap/blob - include/ldap_config.h.in
Silence warning in prev commit
[openldap] / include / ldap_config.h.in
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted only as authorized by the OpenLDAP
8  * Public License.  A copy of this license is available at
9  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
10  * top-level directory of the distribution.
11  */
12
13 /*
14  * This file works in confunction with OpenLDAP configure system.
15  * If you do no like the values below, adjust your configure options.
16  */
17
18 #ifndef _LDAP_CONFIG_H
19 #define _LDAP_CONFIG_H
20
21 /* directory separator */
22 #ifndef LDAP_DIRSEP
23 #ifndef _WIN32
24 #define LDAP_DIRSEP "/"
25 #else
26 #define LDAP_DIRSEP "\\"
27 #endif
28 #endif
29
30 /* directory for temporary files */
31 #if defined(_WIN32)
32 # define LDAP_TMPDIR "C:\\."    /* we don't have much of a choice */
33 #elif defined( _P_tmpdir )
34 # define LDAP_TMPDIR _P_tmpdir
35 #elif defined( P_tmpdir )
36 # define LDAP_TMPDIR P_tmpdir
37 #elif defined( _PATH_TMPDIR )
38 # define LDAP_TMPDIR _PATH_TMPDIR
39 #else
40 # define LDAP_TMPDIR LDAP_DIRSEP "tmp"
41 #endif
42
43 /* directories */
44 #ifndef LDAP_BINDIR
45 #define LDAP_BINDIR                     "%BINDIR%"
46 #endif
47 #ifndef LDAP_SBINDIR
48 #define LDAP_SBINDIR            "%SBINDIR%"
49 #endif
50 #ifndef LDAP_DATADIR
51 #define LDAP_DATADIR            "%DATADIR%"
52 #endif
53 #ifndef LDAP_SYSCONFDIR
54 #define LDAP_SYSCONFDIR         "%SYSCONFDIR%"
55 #endif
56 #ifndef LDAP_LIBEXECDIR
57 #define LDAP_LIBEXECDIR         "%LIBEXECDIR%"
58 #endif
59 #ifndef LDAP_RUNDIR
60 #define LDAP_RUNDIR                     "%RUNDIR%"
61 #endif
62
63 #endif /* _LDAP_CONFIG_H */