summaryrefslogtreecommitdiff
path: root/pkg.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2005-07-14 13:04:37 +0000
committerArch Librarian <arch@canonical.com>2005-07-14 13:04:37 +0000
commitd86ec30f0aef0139309a48555054cb5cb69be477 (patch)
tree9ba39fb09dba3d18326e74e2e9e6e8929b95d293 /pkg.h
parent6fe682ad4f77956b37234ed7a3d6ec448ccc6b5b (diff)
downloadpkg-config-d86ec30f0aef0139309a48555054cb5cb69be477.tar.gz
2001-10-25 Tor Lillqvist <tml@iki.fi>
Author: tml Date: 2001-10-24 21:22:33 GMT 2001-10-25 Tor Lillqvist <tml@iki.fi> 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.
Diffstat (limited to 'pkg.h')
-rw-r--r--pkg.h8
1 files changed, 8 insertions, 0 deletions
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