Debian Codegraph @

BUILDING

raw
1 Build(fstrcmp) Build(fstrcmp)
2
3
4
5 NAME
6 How to build fstrcmp
7
8 SPACE REQUIREMENTS
9 You will need about 3MB to unpack and build the fstrcmp package. Your
10 milage may vary.
11
12 BEFORE YOU START
13 There are a few pieces of software you may want to fetch and install
14 before you proceed with your installation of fstrcmp
15
16 GNU libtool
17 The libtool program is used to build shared libraries. It
18 understands neccesary weird and wonderful compiler and linker
19 tricks on many weird and wonderful systems.
20 http://www.gnu.org/software/libtool/
21
22 GNU Groff
23 The documentation for the fstrcmp package was prepared using
24 the GNU Groff package (version 1.14 or later). This
25 distribution includes full documentation, which may be
26 processed into PostScript or DVI files at install time - if
27 GNU Groff has been installed.
28
29 GCC You may also want to consider fetching and installing the GNU
30 C Compiler if you have not done so already. This is not
31 essential. The fstrcmp program was developed using the GNU C
32 compiler.
33
34 The GNU FTP archives may be found at ftp.gnu.org, and are mirrored
35 around the world.
36
37 SITE CONFIGURATION
38 The fstrcmp package is configured using the configure program included
39 in the source distribution.
40
41 The configure shell script attempts to guess correct values for
42 various system-dependent variables used during compilation, and
43 creates the Makefile and lib/config.h files. It also creates a shell
44 script config.status that you can run in the future to recreate the
45 current configuration.
46
47 Normally, you just cd to the directory containing fstrcmp's source
48 code and then type
49 % ./configure
50 ...lots of output...
51 %
52 If you're using csh on an old version of System V, you might need to
53 type
54 % sh configure
55 ...lots of output...
56 %
57 instead, to prevent csh from trying to execute configure itself.
58
59 Running configure takes a minute or two. While it is running, it
60 prints some messages that tell what it is doing. If you don't want to
61 see the messages, run configure using the quiet option; for example,
62 % ./configure --quiet
63 %
64
65 To compile the fstrcmp package in a different directory from the one
66 containing the source code, you must use a version of make that
67 supports the VPATH variable, such as GNU make. Then cd to the
68 directory where you want the object files and executables to go and
69 run the configure script. The configure script automatically checks
70 for the source code in the directory that configure is in and in ..
71 (the parent directory). If for some reason configure is not in the
72 source code directory that you are configuring, then it will report
73 that it can't find the source code. In that case, run configure with
74 the option --srcdir=DIR, where DIR is the directory that contains the
75 source code.
76
77 By default, configure will arrange for the make install command to
78 install the fstrcmp package's files in /usr/local/bin, /usr/local/lib,
79 /usr/local/include, and /usr/local/man. There are options which allow
80 you to control the placement of these files.
81
82 --prefix=PATH
83 This specifies the path prefix to be used in the installation.
84 Defaults to /usr/local unless otherwise specified.
85
86 --exec-prefix=PATH
87 You can specify separate installation prefixes for
88 architecture-specific files files. Defaults to ${prefix}
89 unless otherwise specified.
90
91 --bindir=PATH
92 This directory contains executable programs. On a network,
93 this directory may be shared between machines with identical
94 hardware and operating systems; it may be mounted read-only.
95 Defaults to ${exec_prefix}/bin unless otherwise specified.
96
97 --mandir=PATH
98 This directory contains the on-line manual entries. On a
99 network, this directory may be shared between all machines; it
100 may be mounted read-only. Defaults to ${prefix}/man unless
101 otherwise specified.
102
103 The configure script ignores most other arguments that you give it;
104 use the --help option for a complete list.
105
106 On systems that require unusual options for compilation or linking
107 that the fstrcmp package's configure script does not know about, you
108 can give configure initial values for variables by setting them in the
109 environment. In Bourne-compatible shells, you can do that on the
110 command line like this:
111 $ CXX='gcc -traditional' LIBS=-lposix ./configure
112 ...lots of output...
113 $
114 Here are the make variables that you might want to override with
115 environment variables when running the configure script:
116
117 Variable: CC
118 C compiler program. The default is cc.
119
120 Variable: CPPFLAGS
121 Preprocessor flags, commonly defines and include search paths.
122 Defaults to empty. It is common to use
123 CPPFLAGS=-I/usr/local/include to access other installed
124 packages.
125
126 Variable: INSTALL
127 Program to use to install files. The default is install if
128 you have it, cp otherwise.
129
130 Variable: LIBS
131 Libraries to link with, in the form -lfoo -lbar. The
132 configure script will append to this, rather than replace it.
133 It is common to use LIBS=-L/usr/local/lib to access other
134 installed packages.
135
136 If you need to do unusual things to compile the package, the author
137 encourages you to figure out how the configure script could check
138 whether to do them, and mail diffs or instructions to the author so
139 that they can be included in the next release.
140
141 BUILDING FSTRCMP
142 All you should need to do is use the
143 % make
144 ...lots of output...
145 %
146 command and wait.
147
148 You can remove the program binaries and object files from the source
149 directory by using the
150 % make clean
151 ...lots of output...
152 %
153 command. To remove all of the above files, and also remove the
154 Makefile and lib/config.h and config.status files, use the
155 % make distclean
156 ...lots of output...
157 %
158 command.
159
160 The file etc/configure.ac is used to create configure by a GNU program
161 called autoconf. You only need to know this if you want to regenerate
162 configure using a newer version of autoconf.
163
164 TESTING FSTRCMP
165 The fstrcmp package comes with a test suite. To run this test suite,
166 use the command
167 % make sure
168 ...lots of output...
169 Passed All Tests
170 %
171
172 The tests take a fraction of a second each, with most very fast, and a
173 couple very slow, but it varies greatly depending on your CPU.
174
175 If all went well, the message
176 Passed All Tests
177 should appear at the end of the make.
178
179 INSTALLING FSTRCMP
180 As explained in the SITE CONFIGURATION section, above, the fstrcmp
181 package is installed under the /usr/local tree by default. Use the
182 --prefix=PATH option to configure if you want some other path. More
183 specific installation locations are assignable, use the --help option
184 to the configure script for details.
185
186 All that is required to install the fstrcmp package is to use the
187 % make install
188 ...lots of output...
189 %
190 command. Control of the directories used may be found in the first
191 few lines of the Makefile file and the other files written by the
192 configure script; it is best to reconfigure using the configure
193 script, rather than attempting to do this by hand.
194
195 GETTING HELP
196 If you need assistance with the fstrcmp package, please do not
197 hesitate to contact the author at
198 Peter Miller <[email protected]>
199 Any and all feedback is welcome.
200
201 When reporting problems, please include the version number given by
202 the
203 % explain -version
204 explain version 0.7.D001
205 ...warranty disclaimer...
206 %
207 command. Please do not send this example; run the program for the
208 exact version number.
209
210 COPYRIGHT
211 fstrcmp version 0.7
212 Copyright (C) 2009 Peter Miller
213 Peter Miller <[email protected]>
214
215 The comparison code is derived from the fuzzy comparison functions in
216 GNU Gettext 0.17. The GNU Gettext comparison functions were, in turn,
217 derived from GNU Diff 2.7.
218
219 Copyright (C) 1988-2009 Free Software Foundation
220
221 This program is free software; you can redistribute it and/or modify
222 it under the terms of the GNU General Public License as published by
223 the Free Software Foundation; either version 3 of the License, or (at
224 your option) any later version.
225
226 This program is distributed in the hope that it will be useful, but
227 WITHOUT ANY WARRANTY; without even the implied warranty of
228 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
229 General Public License for more details.
230
231 You should have received a copy of the GNU General Public License
232 along with this program. If not, see <http://www.gnu.org/licenses/>.
233
234 It should be in the LICENSE file included in the source distribution.
235
236
237
238 Reference Manual fstrcmp Build(fstrcmp)