2 ## GNU Pth - The GNU Portable Threads
3 ## Copyright (c) 1999-2006 Ralf S. Engelschall <rse@engelschall.com>
5 ## This file is part of GNU Pth, a non-preemptive thread scheduling
6 ## library which can be found at http://www.gnu.org/software/pth/.
8 ## This library is free software; you can redistribute it and/or
9 ## modify it under the terms of the GNU Lesser General Public
10 ## License as published by the Free Software Foundation; either
11 ## version 2.1 of the License, or (at your option) any later version.
13 ## This library is distributed in the hope that it will be useful,
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ## Lesser General Public License for more details.
18 ## You should have received a copy of the GNU Lesser General Public
19 ## License along with this library; if not, write to the Free Software
20 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 ## USA, or contact Ralf S. Engelschall <rse@engelschall.com>.
23 ## pth-config.pod: Pth library build utility manual page
30 B<pth-config> - Pth library build utility
34 GNU Pth PTH_VERSION_STR
56 The B<pth-config> program is a little helper utility for easy configuring and
57 building applications based on the pth(3) library. It can be used to query the
58 C compiler and linker flags which are required to correctly compile and link
59 the application against the pth(3) library.
63 B<pth-config> accepts the following options:
69 Prints the short usage information.
73 Prints the version number and date of the installed pth(3) library.
77 Forces the output of all flags, that is, including extra flags which are not
82 Prints the installation prefix of architecture independent files
84 =item B<--exec-prefix>
86 Prints the installation prefix of architecture dependent files.
90 Prints the installation directory of binaries.
94 Prints the installation directory of libraries.
98 Prints the installation directory of include headers.
102 Prints the installation directory of manual pages.
106 Prints the installation directory of shared data.
110 Prints the installation directory of B<autoconf> data.
114 Prints the C compiler flags which are needed to compile the pth(3)-based
115 application. The output is usually added to the C<CFLAGS> variable of the
116 applications C<Makefile>.
120 Prints the linker flags (C<-L>) which are needed to link the application with
121 the pth(3) library. The output is usually added to the C<LDFLAGS> variable of
122 the applications C<Makefile>.
126 Prints the library flags (C<-l>) which are needed to link the application with
127 the pth(3) library. The output is usually added to the C<LIBS> variable of the
128 applications C<Makefile>.
135 CFLAGS = -O `pth-config --cflags`
136 LDFLAGS = `pth-config --ldflags`
137 LIBS = -lm `pth-config --libs`
141 $(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
143 $(CC) $(CFLAGS) -c foo.c