Commit graph

229 commits

Author SHA1 Message Date
Dan Nicholson
a048ace79e Optionally use an external popt library
The one imported into pkg-config has seen very little maintenance, so
let's give users the option to use the upstream version. The default is
to use the included sources, but it can search for the system library
using --with-installed-popt.
2010-05-09 10:22:02 +02:00
Dan Nicholson
aa4634eb31 Move popt to subdirectory and make a convenience library of it
This keeps a cleaner separation of the pkg-config sources and the
imported popt sources.
2010-05-09 10:22:02 +02:00
Kirill Smelkov
e58b5b94c6 Fix formatting typo in pkg-config.1
Without <dot>TP, "Requires" and "Requires.private" are rendered as one
paragraph.
2010-05-09 10:18:44 +02:00
Jorn Amundsen
4b80e49ff8 Add listing of variables
Fixes Freedesktop #133
2010-05-09 09:49:13 +02:00
Tollef Fog Heen
c5a3105f41 Handle -idirafter specially
Don't split -idirafter from its argument.

Fixes Freedesktop #23480
2010-05-09 09:43:10 +02:00
Tollef Fog Heen
fbc4f8e076 Fix up man page
Make sure to avoid \ macros at the start of lines, as that makes some
man implementations unhappy.

Fixes freedesktop #17914
2010-05-09 09:02:33 +02:00
Tollef Fog Heen
59af363873 Make it clearer which directory PKG_CONFIG_LIBDIR refers to
Fixes Freedesktop.org #26879
2010-05-08 23:32:46 +02:00
Tollef Fog Heen
479b54fe34 Use $() rather than ``
Fixes Freedesktop.org #27376
2010-05-08 23:29:33 +02:00
Dan Nicholson
02c5f9a2d6 Document --list-all option in man page
Present in the --help output, but not the manual...
2010-05-08 22:30:49 +02:00
Dan Nicholson
b0fb05420c Include an introductory guide to pkg-config
The pkg-config(1) manual includes a lot of details behind pkg-config,
but not the background and usage patterns. This guide tries to provide
users and developers with a starting point for pkg-config.
2010-05-08 22:30:33 +02:00
Dan Nicholson
14e8c68984 Add .gitignore to exclude generated files from tracking
This was basically generated with "git ls-files -o --directory".
2010-05-08 22:23:57 +02:00
Tollef Fog Heen
d363ba6b86 Mark Changelog as no longer kept up to date. 2010-05-08 22:16:12 +02:00
Tollef Fog Heen
726f8e4c13 Update rpmvercmp with bugfixes from RPM
Grab two minor bugfixes from RPM's rpmvercmp.
2010-05-08 22:15:36 +02:00
Tollef Fog Heen
66d49f1375 Clean up sysroot support a little bit
This should fix bug #16905 properly.
2009-12-06 22:40:13 +01:00
Tollef Fog Heen
25e8ca84ac Print out \r\n on windows, not just \n
This should hopefully fix bug #17053
2009-12-06 22:34:35 +01:00
Tollef Fog Heen
e04ee5a1b8 Fix up help for --silence-errors
Bug #8616
2009-12-06 22:28:30 +01:00
Tollef Fog Heen
0ff14c5ba8 Reduce the width of arguments
This makes the --help output flow easier and look better.
2009-12-06 22:28:08 +01:00
Tollef Fog Heen
1437da3b5d Add link to bugs.fd.o in man page
Bug #4793
2009-12-06 22:16:13 +01:00
Tollef Fog Heen
2896188180 Constify a variable
Thanks to J.H.M. Dassen (Ray)
Bug #190
2009-12-06 22:08:21 +01:00
Tollef Fog Heen
6ff8aeb77d Misc m4 cleanups
Whitespace cleanups
Use m4_default instead of some ifelses.

Thanks to Stepan Kasal for the patch this is based on
Bug #13892
2009-12-06 21:39:13 +01:00
Tollef Fog Heen
40f3532add Make sure AC_MSG_RESULT is always called
Based on a patch by Peter Breitenlohner, thanks.
Bug #9704
2009-12-06 21:32:35 +01:00
Tollef Fog Heen
e907f2a18b Add serial to pkg.m4
Bug #22709
2009-12-06 21:20:42 +01:00
Tollef Fog Heen
6a2c307ed2 Rephrase comment before PKG_CHECK_EXISTS in pkg.m4 2009-12-06 21:17:45 +01:00
Tollef Fog Heen
c3ddc0344e Merge 2009-08-15 21:45:10 +02:00
Tollef Fog Heen
1bcb18ca35 Fix include path for check/common 2009-06-30 03:47:49 +02:00
Tollef Fog Heen
39663612a6 2009-06-12 Tor Lillqvist <tml@iki.fi>
* parse.c: On Win32, if the value of a a variable other than the
	"prefix" one starts with the non-overridden value of "prefix",
	then replace that prefix, too, with the run-time one.

	To avoid shadowing warnings, rename a 'p' variable to 'q'.

	* pkg-config.1: Corresponding update.

	* main.c
	* pkg.h: Move the Win32 redefinition of PKG_CONFIG_PC_PATH from
	main.c to pkg.h as it now is needed in pkg.c, too.
2009-06-30 03:47:01 +02:00
Tollef Fog Heen
9b49307cae 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* autogen.sh: Allow not running configure, wanted by cygwin.
2009-03-30 22:06:58 +02:00
Tollef Fog Heen
e4d39435b9 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/check-missing, check/check-libs,
	check/check-requires-private: Handle the case of indirect being
	enabled correctly in checks.
2009-03-30 22:03:38 +02:00
Tollef Fog Heen
f37f04a78a 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common, check/config.sh.in, check/Makefile.am,
	configure.in: Make it possible to check for configure variables in
	the check scripts.  So far, only direct/indirect is exposed.
2009-03-30 21:50:01 +02:00
Tollef Fog Heen
e170895bc6 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.c (add_virtual_pkgconfig_package): Add pc_path as a variable
	which you can use to get at the compiled-in PKG_CONFIG_PC_PATH.
2009-03-30 21:17:43 +02:00
Tollef Fog Heen
daa68e4e1b 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.h: Fix up path to glib.h
2009-03-30 21:16:28 +02:00
Tollef Fog Heen
c5b07b4720 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.c (add_virtual_pkgconfig_package): Fix URL to pkg-config.
2009-03-30 21:04:42 +02:00
Tollef Fog Heen
79f8ef9d51 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* partial-glib.[ch]: Get rid of those, they are no longer in use.
2009-03-30 21:03:10 +02:00
Tollef Fog Heen
2e0493a343 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* poptparse.c, popthelp.c, poptconfig.c, popt.c, pkg.c, findme.c,
	configure.in: Check for malloc.h and use that if it exists.
	Apparently this makes Win32 happier.  Thanks to Carlo Bramini for
	the patch.
2009-03-30 21:00:14 +02:00
Tollef Fog Heen
7e8a4d6c85 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg-config.1: Verbosify the text about Libs.private a bit. Patch
	from Loïc Minier.
2009-03-30 20:53:02 +02:00
Tollef Fog Heen
4edc026776 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg-config.1: Add documentation for --cflags-only-I, patch from
	Loïc Minier.
2009-03-30 20:51:18 +02:00
Tollef Fog Heen
669bfe2e0d 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.[ch], main.c, check/check-missing: Don't recurse Requires at
	all unless we need to.  Add check.  Again, thanks to Loïc Minier
	for most of the idea and the implementation.
2009-03-30 20:49:17 +02:00
Tollef Fog Heen
02d5ae3fb6 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.[ch], parse.[ch], main.c, check/Makefile.am,
	check/check-missing, check/missing-requires-private.pc:
	Skip Requires.private unless we need to look at them for cflags.
	Add test case.  Thanks to Loïc Minier for most of the idea and the
	implementation.  Debian #475031
2009-03-30 20:40:53 +02:00
Tollef Fog Heen
34657e444f 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common: Run all tests in the C locale
2009-03-30 20:23:04 +02:00
Tollef Fog Heen
4070cc2339 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common: Add support for non-zero return codes to test
	framework.  Thanks to Loïc Minier for the idea.
2009-03-30 20:14:33 +02:00
Tollef Fog Heen
a25f7e980e 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Add PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR to the list of
	precious directories.  (AC_ARG_VAR)
2009-03-30 20:06:32 +02:00
Tollef Fog Heen
e3fda28e74 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* popthelp.c (poptPrintUsage,poptPrintHelp): Add [LIBRARIES] to
	help output.  Debian #389066
2009-03-30 19:52:01 +02:00
Tollef Fog Heen
6d2f77a219 2008-04-28 Tollef Fog Heen <tfheen@err.no>
* parse.c Add my name to the copyright header, mainly to prevent
	emacs from being stupid and updating RH's copyright year.
2008-04-28 21:25:51 +02:00
Tollef Fog Heen
d5d6a8f8a7 2008-04-28 Tollef Fog Heen <tfheen@err.no>
* parse.c (_do_parse_libs): Special-case "-lib:" in the Libs
	field; it's not an -l.  Yes, this breaks if your library is called
	libib:$something, in which case you lose.  Gnome #142952
2008-04-28 21:19:02 +02:00
Tollef Fog Heen
5998a08da4 2008-04-28 Tollef Fog Heen <tfheen@err.no>
* main.c (main): Make sure log is initialized to prevent
	segfaults.
2008-04-28 20:58:36 +02:00
Tollef Fog Heen
69dafea1c8 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* check/check-conflicts, check/conflicts-test.pc: New test,
       testing that conflicts work as they should.

       * pkg.c (verify_package): Make the conflicts check not only check
       package versions, but also package names.  This makes conflicts
       functional, something they were not before.
2008-03-23 21:39:07 +01:00
Tollef Fog Heen
15e72cef72 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* check/check-requires-private: Remove unnecessary set -x
2008-03-23 21:11:25 +01:00
Tollef Fog Heen
3954a7ee3e 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* check/check-cflags, check/check-define-variable,
	check/check-includedir, check/check-libs,
	check/check-libs-private, check/check-requires-private: Replace
	the crazy -d ~root check with a more proper way to just make sure
	we are running under a POSIX shell.  Thanks to Kjetil Torgrim
	Homme for the tip about using getconf PATH.
2008-03-23 21:07:39 +01:00
Tollef Fog Heen
cebb308ce4 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* main.c (main): Add logging support from NetBSD.  Thanks to Julio
       M. Merino Vidal for forwarding the patch from ages ago.
2008-03-23 20:51:50 +01:00
Tollef Fog Heen
53abbad201 2008-03-23 Stepan Kasal <skasal@redhat.com>
* pkg-config.1: Document "Requires.private" and recommend it
      for libraries.  Freedesktop #13188
2008-03-23 20:46:08 +01:00