comparison INSTALL @ 74486:917f46cb7b70

(DETAILED BUILDING AND INSTALLATION): Document usage of PKG_CONFIG_PATH.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 08 Dec 2006 07:19:16 +0000
parents ddcbd2c1b70d
children 2e668483dd85
comparison
equal deleted inserted replaced
74485:95f50965aa9c 74486:917f46cb7b70
380 preprocessor to look in the `/foo/myinclude' directory for header 380 preprocessor to look in the `/foo/myinclude' directory for header
381 files (in addition to the standard directories), instruct the linker 381 files (in addition to the standard directories), instruct the linker
382 to look in `/bar/mylib' for libraries, pass the -O3 optimization 382 to look in `/bar/mylib' for libraries, pass the -O3 optimization
383 switch to the compiler, and link against libfoo.a and libbar.a 383 switch to the compiler, and link against libfoo.a and libbar.a
384 libraries in addition to the standard ones. 384 libraries in addition to the standard ones.
385
386 For some libraries, like Gtk+, fontconfig and ALSA, `configure' use
387 pkg-config to find where those libraries are installed.
388 If you wan't pkg-config to look in special directories, you have to set
389 the environment variable PKG_CONFIG_PATH to point to the directories
390 where the .pc-files for those libraries are.
391 For example:
392
393 PKG_CONFIG_PATH='/usr/local/alsa/lib/pkgconfig:/opt/gtk+-2.8/lib/pkgconfig' \
394 ./configure
385 395
386 The work of `configure' can be done by editing various files in the 396 The work of `configure' can be done by editing various files in the
387 distribution, but using `configure' is easier. See the section called 397 distribution, but using `configure' is easier. See the section called
388 "CONFIGURATION BY HAND" below if you want to do the configuration 398 "CONFIGURATION BY HAND" below if you want to do the configuration
389 yourself. 399 yourself.