]> git.sur5r.net Git - openldap/blob - INSTALL
Added acconfig.h defines. started to clean up -llber.
[openldap] / INSTALL
1 Making and Installing the OpenLDAP Distribution
2
3 ** It is recommended that you read or at least skim through ALL of the
4 ** instructions in this file before attempting to build the software.
5
6 If you want to build binaries for more than one platform from a single
7 source tree, skip ahead to the "Building LDAP For More Than One Platform"
8 section near the end of this file.
9
10 If you simply want to build LDAP for a single machine platform, follow
11 these steps:
12
13  1. untar the distribution and cd to the top:
14
15         % tar xfz ldap-stable.tgz
16         % cd ldap
17
18     If you are reading this file, you probably have already done this!
19
20  2. Type:
21         % ./configure --help
22
23         to list available configuration options.   A description of
24         these options is provided in the 'CONFIGURE OPTIONS' section
25         below.
26
27         The configure script will also use your environmental
28         variables for determining compiler/linker options.
29
30         These environment variables are used: 
31                 CC                      C Compiler      (cc, ecgs)
32                 CFLAGS          C Flags         (-ansi)
33                 CPPFLAGS        CPP Flags       (-I/path/include -Ddef)
34                 LDFLAGS         LDFLAGS         (-L/path/lib -llib)
35
36         A list of defines and other options are noted in the
37         'DEFINES and FLAGS' comments below.
38
39  3. edit the file include/ldapconfig.h.edit to configure
40     the software for your site (the files are well-commented):
41
42         % vi include/ldapconfig.h.edit
43
44  4. Configure the build system
45
46         % [env settings] ./configure [options]
47
48         If all goes well, the configure script with auto-detect the
49         appropriate settings.  Use configure enable/with options and/or
50         environment variables to obtain desired results.
51
52  5. Build dependencies
53
54         % make depend
55
56  6. Build the system
57
58         % make
59
60     If all goes well, the system will build as configured.  If not,
61         return to step 4 after reviewing the enable/with options settings.
62         
63  7. install the binaries and man pages.  You may need to be superuser to
64     do this (depending on where you are installing things):
65
66         % su
67         # make install
68
69     That's it!  See the man pages for the individual clients for information
70     on configuring and using them.  Eventually you will probably want to
71     edit the configuration files used by the various clients (installed in
72     the LDAP etc directory).  The files are:
73
74         ldapfilter.conf      - search filter configuration
75         ldapfriendly         - mapping of X.500 names to human-friendly names
76         ldapsearchprefs.conf - search object definitions
77         ldaptemplates.conf   - display template definitions
78
79     There are section 5 man pages for all of these files.
80
81
82 Building LDAP For More Than One Platform
83
84 It is now possible to build LDAP for more than one platform from the same
85 source tree.  This is accomplished by using make(1) VPATH support.  If
86 your make(1) program is old and doesn't have VPATH support, install GNU
87 Make.
88
89 Follow these steps for each different platform:
90
91  1.     Create a directory for the platform object files.
92
93         % mkdir obj-platform
94
95  2. Change your working directory to the platform object directory.
96
97         % cd obj-platform
98
99  3. Configure the build system
100
101         % [env settings] ../configure --src-dir=.. [options]
102
103                 ( replace ".." with the appropriate path )
104
105  4. Continue as above (starting at step 6).
106
107         Note: make depend in VPATH environment is not yet supported.
108
109
110 CONFIGURE OPTIONS
111
112 Regrettably, this section has not been written (yet).  See
113 "./configure --help" for current list of options.
114
115
116 DEFINES and FLAGS
117
118 The configure script will also use your environmental
119 variables for determining compiler/linker options.   This can
120 be used to manual specify features and compilation options.
121
122 Supported Environmental Variables
123         CC                      C Compiler      (cc, ecgs)
124         CFLAGS          C Flags         (-ansi)
125         CPPFLAGS        CPP Flags       (-I/path/include -Ddef)
126         LDFLAGS         LDFLAGS         (-L/path/lib -llib)
127
128 End of OpenLDAP INSTALL file.