From d86ec30f0aef0139309a48555054cb5cb69be477 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Thu, 14 Jul 2005 13:04:37 +0000 Subject: 2001-10-25 Tor Lillqvist Author: tml Date: 2001-10-24 21:22:33 GMT 2001-10-25 Tor Lillqvist Improve Windows behaviour: Make it even easier to install developer packages in random locations, without having to modify the .pc files. Don't set "prefix" globally, instead override it for each .pc file parsed, if the path where the .pc file is seems to be the standard .../lib/pkgconfig. * main.c (main): Add search directories also from two Registry keys, in addition to the PKG_CONFIG_PATH environment variable. Don't define prefix globally. * parse.c (parse_line): Instead, if a .pc file is in /foo/bar/lib/pkgconfig, define prefix as /foo/bar for that package only. * pkg.c: Case-fold file names on Windows, in case they have been uppercasified by some tool. * pkg-config.1: Document Windows behaviour. --- pkg.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkg.h') diff --git a/pkg.h b/pkg.h index 74a1340..587f6d6 100644 --- a/pkg.h +++ b/pkg.h @@ -93,5 +93,13 @@ gboolean name_ends_in_uninstalled (const char *str); /* If TRUE, do not automatically prefer uninstalled versions */ extern gboolean disable_uninstalled; +#ifdef G_OS_WIN32 +/* If TRUE, do not automatically define "prefix" while + * parsing each .pc file */ +extern int dont_define_prefix; +/* The name of the variable that acts as prefix, unless it is "prefix" */ +extern char *prefix_variable; +#endif + #endif -- cgit v1.2.1