modxslt-config1
Program to return libmodxslt configuration
Usage
modxslt-config [--prefix]
[--exec-prefix]
[--libs]
[--libtool-libs]
[--includes]
[--cppflags]
[--cflags]
[--list]
[--query=VAR]
[--show=VAR]
[--version]
Overview
modxslt-config can be used to query the status of an installed libmodxslt and to access its compile time parameters/options.
The main idea behind modxslt-config (or any other foo-config) is to provide an easy way for configre scripts and makefiles to use a given library. The configure script of a package using libmodxslt should try to search for modxslt-config, while the makefiles will try to compile the package using the variables found using the modxslt-config command.
Options
-
--prefix -
Returns libmodxslt install prefix, as specified to the configure script
-
--exec-prefix -
Returns libmodxslt install exec-prefix, as specified to the configure script
-
--libs -
Returns the parameters to be used with
ldto link your binaries with libmodxslt
-
--libtool-libs -
Returns the parameters to be used with
libtoolto link your binaries with libmodxslt
-
--includes -
Returns the parameters to be used with
ccto allow your .c files to include libmodxslt headers
-
--cppflags -
Returns the parameters to be used with
cpp(the c preprocessor) to succesfully compile your .c files using libmodxslt headers
-
--cflags -
Returns the parameters specified to
ccduring libmodxslt compilation
-
--list -
modxslt-configallows you to access any other variable specified or detected by the libmodxslt configure script. This options lists all known varaibles and their raw values (with shell variables not substituted)
-
--query=VAR -
shows the value of variable VAR, expanding any shell variables therein
-
--show=VAR -
same as
--query, but shell variables are not expanded
-
--version -
Show version of libmodxslt installed on this system
If called without parameters, the help screen is displayed. More than one parameter can be specified at the same time.
Examples
$ modxslt-config --query=sysconfdir
/usr/local/etc
$ modxslt-config --show=sysconfdir
${prefix}/etc
$ modxslt-config --prefix
/usr/local
$ modxslt-config --cflags
-g -O2 -D_REENTRANT
$ cc `modxslt-config --includes` `modxslt-config --libs` \
`modxslt-config --cppflags` myownprogram.c -o myownprogram
Return values
modxslt-config exits with status 1 in case no argument was supplied and the help screen was displayed. Status 2 is returned whenever an argument wich does not need any additional parameter is encountered with an unnecessary parameter (like --prefix=fuffa). Status 3 is returned when an argument which needs an additional parameter is encountered without the needed parameter (like --query), while 4 is returned when an unknown argument is specified. Any other exit status should be interpreted accordingly to the shell being used.