manpagez: man pages & more
info gimp-print
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1 gimpprint-config

Depending on the setup of the computer system GIMP-Print was installed on, as well as the options passed to configure when configuring the package when it was built, the CFLAGS and LIBS parameters needed to compile and link programs with libgimpprint may vary. To make it simple to determine what these are on any given system, the script gimpprint-config was created. It's job is to output the correct parameters for the setup on your system. The following options are available:

 
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.7

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 make) or by an m4 macro in a configure script (see section autoconf).


© manpagez.com 2000-2024
Individual documents may contain additional copyright information.