* main.c (main): Always add the elements from PKG_CONFIG_PATH.
Freedesktop #4795.
2006-08-16 Tollef Fog Heen <tfheen@err.no>
+ * main.c (main): Always add the elements from PKG_CONFIG_PATH.
+ Freedesktop #4795.
+
* pkg-config.1: Apply patch from Ed Catmur to document
PKG_PROG_PKG_CONFIG and that it should be used if the first call
to PKG_CHECK_MODULES might not happen.
debug_spew ("PKG_CONFIG_DEBUG_SPEW variable enabling debug spew\n");
}
+ search_path = getenv ("PKG_CONFIG_PATH");
+ if (search_path)
+ {
+ add_search_dirs(search_path, G_SEARCHPATH_SEPARATOR_S);
+ }
if (getenv("PKG_CONFIG_LIBDIR") != NULL)
{
add_search_dirs(getenv("PKG_CONFIG_LIBDIR"), G_SEARCHPATH_SEPARATOR_S);
}
else
{
- search_path = getenv ("PKG_CONFIG_PATH");
- if (search_path)
- {
- add_search_dirs(search_path, G_SEARCHPATH_SEPARATOR_S);
- }
-
add_search_dirs(PKG_CONFIG_PC_PATH, G_SEARCHPATH_SEPARATOR_S);
}