Previous: , Up: make install   [Contents][Index]


pkg-config

pkg-config

The pkg-config utility helps ensure that programs are given appropriate compiler and linker flags to use a particular package’s C header files and libraries. coNCePTuaL’s configure script (see configure) automatically produces a pkg-config configuration file for the coNCePTuaL header file ( ncptl.h) and run-time library ( libncptl ). This configuration file, ncptl.pc, should be installed in one of the directories searched by pkg-config (/usr/lib/pkgconfig on some systems). Once ncptl.pc is installed, pkg-config can be used to compile C programs that require the coNCePTuaL header file and link programs that require the coNCePTuaL run-time library, as is shown in the following example:

cc `pkg-config --cflags ncptl` -c myprog.c
cc -o myprog myprog.o `pkg-config --libs ncptl`
Scott Pakin, pakin@lanl.gov