intl/icu/source/config/icu-config.1.in

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 .\" Hey, Emacs! This is -*-nroff-*- you know...
michael@0 2 .\"
michael@0 3 .\" icu-config.1: manual page for the icu-config utility
michael@0 4 .\"
michael@0 5 .\" Copyright (C) 2002-2008 IBM, Inc. and others.
michael@0 6 .\"
michael@0 7 .\" Based on Yves Arrouye's pkgdata page <yves@arrouye.net>
michael@0 8 .\" Modified by Steven R. Loomis <srl@jtcsv.com>.
michael@0 9 .\" With help from http://www.igpm.rwth-aachen.de/~albrecht/manpage.html
michael@0 10
michael@0 11 .TH ICU-CONFIG 1 "17 May 2004" "ICU MANPAGE" "ICU @VERSION@ Manual"
michael@0 12 .\".Dd "17 May 2004"
michael@0 13 .\".Dt ICU-CONFIG 1
michael@0 14 .\".Os
michael@0 15
michael@0 16 .SH NAME
michael@0 17 .B icu-config
michael@0 18 \- output ICU build options
michael@0 19 .SH SYNOPSIS
michael@0 20 .B icu-config
michael@0 21 [
michael@0 22 .BI "\-\-bindir"
michael@0 23 ]
michael@0 24 [
michael@0 25 .BI "\-\-cc"
michael@0 26 ]
michael@0 27 [
michael@0 28 .BI "\-\-cflags"
michael@0 29 ]
michael@0 30 [
michael@0 31 .BI "\-\-cppflags"
michael@0 32 ]
michael@0 33 [
michael@0 34 .BI "\-\-cppflags\-searchpath"
michael@0 35 ]
michael@0 36 [
michael@0 37 .BI "\-\-cxx"
michael@0 38 ]
michael@0 39 [
michael@0 40 .BI "\-\-cxxflags"
michael@0 41 ]
michael@0 42 [
michael@0 43 .BI "\-\-detect\-prefix"
michael@0 44 ]
michael@0 45 [
michael@0 46 .BI "\-\-exec\-prefix"
michael@0 47 ]
michael@0 48 [
michael@0 49 .BI "\-\-exists"
michael@0 50 ]
michael@0 51 [
michael@0 52 .BI "\-\-help\fP, \fB\-?\fP,\fB"
michael@0 53 .BI "\-\-usage"
michael@0 54 ]
michael@0 55 [
michael@0 56 .BI "\-\-icudata"
michael@0 57 ]
michael@0 58 [
michael@0 59 .BI "\-\-icudata\-install\-dir"
michael@0 60 ]
michael@0 61 [
michael@0 62 .BI "\-\-icudata\-mode"
michael@0 63 ]
michael@0 64 [
michael@0 65 .BI "\-\-icudatadir"
michael@0 66 ]
michael@0 67 [
michael@0 68 .BI "\-\-invoke"
michael@0 69 ]
michael@0 70 [
michael@0 71 .BI "\-\-invoke=" "prog"
michael@0 72 ]
michael@0 73 [
michael@0 74 .BI "\-\-ldflags"
michael@0 75 ]
michael@0 76 [
michael@0 77 .BI "\-\-ldflags\-layout"
michael@0 78 ]
michael@0 79 [
michael@0 80 .BI "\-\-ldflags\-libsonly"
michael@0 81 ]
michael@0 82 [
michael@0 83 .BI "\-\-ldflags\-searchpath"
michael@0 84 ]
michael@0 85 [
michael@0 86 .BI "\-\-ldflags\-system"
michael@0 87 ]
michael@0 88 [
michael@0 89 .BI "\-\-ldflags\-icuio"
michael@0 90 ]
michael@0 91 [
michael@0 92 .BI "\-\-mandir"
michael@0 93 ]
michael@0 94 [
michael@0 95 .BI "\-\-prefix"
michael@0 96 ]
michael@0 97 [
michael@0 98 .BI "\-\-prefix=" "prefix"
michael@0 99 ]
michael@0 100 [
michael@0 101 .BI "\-\-sbindir"
michael@0 102 ]
michael@0 103 [
michael@0 104 .BI "\-\-shared\-datadir"
michael@0 105 ]
michael@0 106 [
michael@0 107 .BI "\-\-sysconfdir"
michael@0 108 ]
michael@0 109 [
michael@0 110 .BI "\-\-unicode\-version"
michael@0 111 ]
michael@0 112 [
michael@0 113 .BI "\-\-version"
michael@0 114 ]
michael@0 115 [
michael@0 116 .BI "\-\-incfile"
michael@0 117 ]
michael@0 118
michael@0 119
michael@0 120
michael@0 121 .SH DESCRIPTION
michael@0 122 .B icu-config
michael@0 123 simplifies the task of building and linking against ICU as compared to
michael@0 124 manually configuring user makefiles or equivalent. Because
michael@0 125 .B icu-config
michael@0 126 is an executable script, it also solves the problem of locating the ICU
michael@0 127 libraries and headers, by allowing the system PATH to locate it.
michael@0 128 .SH EXAMPLES
michael@0 129 .B icu-config
michael@0 130 can be used without a makefile. The command line below is sufficient for
michael@0 131 building a single-file c++ program against ICU. (For example, \fBicu/source/samples/props/props.cpp\fR)
michael@0 132 .PP
michael@0 133 .RS
michael@0 134 `icu-config --cxx --cxxflags --cppflags --ldflags` -o props props.cpp
michael@0 135 .RE
michael@0 136 .PP
michael@0 137 More commonly,
michael@0 138 .B icu-config
michael@0 139 will be called from within a makefile, and used to set up variables. The
michael@0 140 following example also builds the \fIprops\fR example.
michael@0 141 .PP
michael@0 142 .RS
michael@0 143 CC=$(shell icu-config --cc)
michael@0 144
michael@0 145 CXX=$(shell icu-config --cxx)
michael@0 146
michael@0 147 CPPFLAGS=$(shell icu-config --cppflags)
michael@0 148
michael@0 149 CXXFLAGS=$(shell icu-config --cxxflags)
michael@0 150
michael@0 151 LDFLAGS =$(shell icu-config --ldflags)
michael@0 152
michael@0 153 all: props
michael@0 154
michael@0 155 props.o: props.cpp
michael@0 156 .RE
michael@0 157 .PP
michael@0 158 make(1) will automatically use the above variables.
michael@0 159 .SH OPTIONS
michael@0 160 .TP
michael@0 161 .BI "\-\-bindir"
michael@0 162 Prints the binary (executable) directory path. Normally equivalent to 'bin'.
michael@0 163 ICU user-executable applications and scripts are found here.
michael@0 164 .TP
michael@0 165 .BI "\-\-cc"
michael@0 166 Print the C compiler used. Equivalent to the $(CC) Makefile variable.
michael@0 167 .TP
michael@0 168 .BI "\-\-cflags"
michael@0 169 Print the C compiler flags. Equivalent to the $(CFLAGS) Makefile variable.
michael@0 170 Does NOT include preprocessor directives such as include path or defined symbols. Examples include debugging (\-g) and optimization flags
michael@0 171 .TP
michael@0 172 .BI "\-\-cppflags"
michael@0 173 Print the C preprocessor flags. Equivalent to the $(CPPFLAGS) Makefile variable. Examples are \-I include paths and \-D define directives.
michael@0 174 .TP
michael@0 175 .BI "\-\-cppflags\-searchpath"
michael@0 176 Print the C preprocessor flags, as above but only \-I search paths.
michael@0 177 .TP
michael@0 178 .BI "\-\-cxx"
michael@0 179 Print the C++ compiler. Equivalent to the $(CXX) Makefile variable.
michael@0 180 .TP
michael@0 181 .BI "\-\-cxxflags"
michael@0 182 Print the C++ compiler flags. Equivalent to the $(CXXFLAGS) Makefile variable.
michael@0 183 .TP
michael@0 184 .BI "\-\-detect\-prefix"
michael@0 185 If ICU has been moved from its installed location, prepending this flag to
michael@0 186 other
michael@0 187 .B icu-config
michael@0 188 calls will attempt to locate ICU relative to where the
michael@0 189 .B icu-config
michael@0 190 script has been located. Can be used as a last-chance effort if the ICU
michael@0 191 install has been damaged.
michael@0 192 .TP
michael@0 193 .BI "\-\-exec\-prefix"
michael@0 194 Print the prefix used for executable program directories (such as bin, sbin, etc). Normally the same as the prefix.
michael@0 195 .TP
michael@0 196 .BI "\-\-exists"
michael@0 197 Script will return with a successful (0) status if ICU seems to be installed
michael@0 198 and located correctly, otherwise an error message and nonzero status will
michael@0 199 be displayed.
michael@0 200 .TP
michael@0 201 .BI "\-\-help\fP, \fB\-?\fP,\fB\-\-usage"
michael@0 202 Print a help and usage message.
michael@0 203 .TP
michael@0 204 .BI "\-\-icudata"
michael@0 205 Print the \fIshortname\fP of the ICU data file. This does not include any suffix such as .dat, .dll, .so, .lib, .a, etc nor does it include prefixes such as 'lib'. It may be in the form \fBicudt21b\fP
michael@0 206 .TP
michael@0 207 .BI "\-\-icudata\-install\-dir"
michael@0 208 Print the directory where ICU packaged data should
michael@0 209 be installed. Can use as pkgdata(1)'s --install option.
michael@0 210 .TP
michael@0 211 .BI "\-\-icudata\-mode"
michael@0 212 Print the default ICU pkgdata mode, such as dll or common. Can use as pkgdata(1)'s --mode option.
michael@0 213 .TP
michael@0 214 .BI "\-\-icudatadir"
michael@0 215 Print the path to packaged archive data. (should be where $ICU_DATA
michael@0 216 or equivalent default path points.) Will NOT point to the libdir.
michael@0 217 .TP
michael@0 218 .BI "\-\-invoke"
michael@0 219 If ICU is not installed in a location where the operating system will locate
michael@0 220 its shared libraries, this option will print out commands so as to set the
michael@0 221 appropriate environment variables to load ICU's shared libraries. For example,
michael@0 222 on many systems a variable named LD_LIBRARY_PATH or equivalent must be set.
michael@0 223 .TP
michael@0 224 .BI "\-\-invoke=" "prog"
michael@0 225 Same as the \fB\-\-invoke\fP option, except includes options for invoking
michael@0 226 a program named \fIprog\fP. If \fIprog\fP is the name of an ICU tool,
michael@0 227 such as genrb(1), then \fBicu-config\fP will also include the full path
michael@0 228 to that tool.
michael@0 229 .TP
michael@0 230 .BI "\-\-ldflags"
michael@0 231 Print any flags which should be passed to the linker. These may include
michael@0 232 -L for library search paths, and -l for including ICU libraries. By default,
michael@0 233 this option will attempt to link in the "common" (libicuuc) and "i18n"
michael@0 234 (libicui18n) libraries, as well as the data library. If additional libraries
michael@0 235 are required, any of the following two flags may be added in conjunction with this one,
michael@0 236 for example "\-\-ldflags \-\-ldflags-icuio" if the icuio library is required
michael@0 237 in addition to the standard ICU libraries.
michael@0 238 Equivalent to the $(LDFLAGS) Makefile variable.
michael@0 239 .TP
michael@0 240 .BI "\-\-ldflags\-layout"
michael@0 241 Prints the link option for the ICU layout library.
michael@0 242 .TP
michael@0 243 .BI "\-\-ldflags\-icuio"
michael@0 244 Prints the link option to add the ICU I/O package
michael@0 245 .TP
michael@0 246 .BI "\-\-ldflags\-libsonly"
michael@0 247 Similar to \fI\-\-ldflags\fP but only includes the \-l options.
michael@0 248 .TP
michael@0 249 .BI "\-\-ldflags\-searchpath"
michael@0 250 Similar to \fI\-\-ldflags\fP but only includes the \-L search path options.
michael@0 251 .TP
michael@0 252 .BI "\-\-ldflags\-system"
michael@0 253 Similar to \fI\-\-ldflags\fP but only includes system libraries (such as pthreads)
michael@0 254 .BI "\-\-mandir"
michael@0 255 Prints the location of the installed ICU man pages. Normally (man)
michael@0 256 .TP
michael@0 257 .BI "\-\-prefix"
michael@0 258 Prints the prefix (base directory) under which the installed ICU resides.
michael@0 259 .TP
michael@0 260 .BI "\-\-prefix=" "prefix"
michael@0 261 Sets the ICU prefix to \fIprefix\fP for the remainder of this command line.
michael@0 262 Does test whether the new prefix is valid.
michael@0 263 .TP
michael@0 264 .BI "\-\-sbindir"
michael@0 265 Prints the location of ICU system binaries, normally (sbin)
michael@0 266 .TP
michael@0 267 .BI "\-\-shared\-datadir"
michael@0 268 Prints the location of ICU shared data, normally (share)
michael@0 269 .TP
michael@0 270 .BI "\-\-sysconfdir"
michael@0 271 Prints the location of ICU system configuration data, normally (etc)
michael@0 272 .TP
michael@0 273 .BI "\-\-unicode\-version"
michael@0 274 Prints the Version of the Unicode Standard which the current ICU uses.
michael@0 275 .TP
michael@0 276 .BI "\-\-version"
michael@0 277 Prints the current version of ICU.
michael@0 278 .TP
michael@0 279 .BI "\-\-incfile"
michael@0 280 Prints the 'Makefile.inc' path, suitable for use with pkgdata(1)'s \-O option.
michael@0 281 .PP
michael@0 282 .SH AUTHORS
michael@0 283 Steven Loomis
michael@0 284 .SH VERSION
michael@0 285 @VERSION@
michael@0 286 .SH COPYRIGHT
michael@0 287 Copyright (C) 2002-2004 IBM, Inc. and others.
michael@0 288

mercurial