Whole document tree
3.1
|
roger@whinlatter:~/gimpprint/devel$ gimpprint-config --help Usage: gimpprint-config [OPTIONS] [LIBRARIES] Options: [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags] Libraries: gimpprint |
The `--prefix' and `--exec-prefix' options are only needed if the installed locations of parts of GIMP-Print are different from the configured locations. These should never be needed if GIMP-Print was properly configured and installed.
The installed version of GIMP-Print can be obtained with the `--version' option:
roger@whinlatter:~/gimpprint/devel$ gimpprint-config --version 4.2.0 |
The correct CFLAGS
to use can be obtained with the `--cflags'
option:
roger@whinlatter:~/gimpprint/devel$ gimpprint-config --cflags |
In this case, there are no special CFLAGS
required to compile programs.
The correct LIBS
to use can the obtained with the `--libs' option:
roger@whinlatter:~/gimpprint/devel$ gimpprint-config --libs -L/usr/lib -lgimpprint -lm |
The command can be used from the shell by enclosing it in backquotes ``':
gcc `gimpprint-config --cflags` -c prog.c gcc `gimpprint-config --libs` -o prog prog.o |
However, this is not the way it it typically used. Normally it is used in a
`Makefile' (see section 3.2 make
) or by an m4
macro in a configure
script (see section 3.3 autoconf
).