will be called from within a makefile, and used to set up variables. The
following example also builds the \fIprops\fR example.
.PP
.RS
CC=$(shell icu-config --cc)
CXX=$(shell icu-config --cxx)
CPPFLAGS=$(shell icu-config --cppflags)
CXXFLAGS=$(shell icu-config --cxxflags)
LDFLAGS =$(shell icu-config --ldflags)
all: props
props.o: props.cpp
.RE
.PP
make(1) will automatically use the above variables.
.SHOPTIONS
.TP
.BI"\-\-bindir"
Prints the binary (executable) directory path. Normally equivalent to 'bin'.
ICU user-executable applications and scripts are found here.
.TP
.BI"\-\-cc"
Print the C compiler used. Equivalent to the $(CC) Makefile variable.
.TP
.BI"\-\-cflags"
Print the C compiler flags. Equivalent to the $(CFLAGS) Makefile variable.
Does NOT include preprocessor directives such as include path or defined symbols. Examples include debugging (\-g) and optimization flags
.TP
.BI"\-\-cppflags"
Print the C preprocessor flags. Equivalent to the $(CPPFLAGS) Makefile variable. Examples are \-I include paths and \-D define directives.
.TP
.BI"\-\-cppflags\-searchpath"
Print the C preprocessor flags, as above but only \-I search paths.
.TP
.BI"\-\-cxx"
Print the C++ compiler. Equivalent to the $(CXX) Makefile variable.
.TP
.BI"\-\-cxxflags"
Print the C++ compiler flags. Equivalent to the $(CXXFLAGS) Makefile variable.
.TP
.BI"\-\-detect\-prefix"
If ICU has been moved from its installed location, prepending this flag to
other
.Bicu-config
calls will attempt to locate ICU relative to where the
.Bicu-config
script has been located. Can be used as a last-chance effort if the ICU
install has been damaged.
.TP
.BI"\-\-exec\-prefix"
Print the prefix used for executable program directories (such as bin, sbin, etc). Normally the same as the prefix.
.TP
.BI"\-\-exists"
Script will return with a successful (0) status if ICU seems to be installed
and located correctly, otherwise an error message and nonzero status will
be displayed.
.TP
.BI"\-\-help\fP, \fB\-?\fP,\fB\-\-usage"
Print a help and usage message.
.TP
.BI"\-\-icudata"
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 \fBlibicudt21b\fP
.TP
.BI"\-\-icudata\-installdir"
Print the directory where ICU packaged data should
be installed. Can use as pkgdata(1)'s --install option.
.TP
.BI"\-\-icudata\-mode"
Print the default ICU pkgdata mode, such as dll or common. Can use as pkgdata(1)'s --mode option.
.TP
.BI"\-\-icudatadir"
Print the path to packaged archive data. (should be where $ICU_DATA
or equivalent default path points.) Will NOT point to the libdir.
.TP
.BI"\-\-invoke"
If ICU is not installed in a location where the operating system will locate
its shared libraries, this option will print out commands so as to set the
appropriate environment variables to load ICU's shared libraries. For example,
on many systems a variable named LD_LIBRARY_PATH or equivalent must be set.
.TP
.BI"\-\-invoke=""prog"
Same as the \fB\-\-invoke\fP option, except includes options for invoking
a program named \fIprog\fP. If \fIprog\fP is the name of an ICU tool,
such as genrb(1), then \fBicu-config\fP will also include the full path
to that tool.
.TP
.BI"\-\-ldflags"
Print any flags which should be passed to the linker. These may include
-L for library search paths, and -l for including ICU libraries. By default,
this option will attempt to link in the "common" (libicuuc) and "i18n"
(libicui18n) libraries, as well as the data library. If additional libraries
are required, any of the following two flags may be added in conjunction with this one,