--- pkgconfig-0.15.0/main.c 2005-02-02 19:40:07.491814061 -0500 +++ pkgconfig-0.15.0/main.c 2005-02-02 19:50:35.640555850 -0500 @@ -530,15 +530,23 @@ if (want_prov) { GSList *tmp; + char *p; tmp = packages; while (tmp != NULL) { Package *pkg = tmp->data; - char *key; + char *arch, *key; + +#ifdef PREFER_LIB64 + if (pkg->l_libs != NULL) + arch = "(64bit)"; + else +#endif + arch = ""; key = pkg->key; while (*key == '/') key++; if (strlen(key) > 0) - printf ("%s = %s\n", key, pkg->version); + printf ("%s%s = %s\n", key, arch, pkg->version); tmp = g_slist_next (tmp); } @@ -555,11 +563,18 @@ { Package *deppkg = reqtmp->data; RequiredVersion *req; + char *arch; +#ifdef PREFER_LIB64 + if (deppkg->l_libs != NULL) + arch = "(64bit)"; + else +#endif + arch = ""; req = g_hash_table_lookup(pkg->required_versions, deppkg->key); if ((req == NULL) || (req->comparison == ALWAYS_MATCH)) - printf ("%s\n", deppkg->key); + printf ("%s%s\n", deppkg->key, arch); else - printf ("%s %s %s\n", deppkg->key, + printf ("%s%s %s %s\n", deppkg->key, arch, comparison_to_str(req->comparison), req->version); reqtmp = g_slist_next (reqtmp);