add packager info to %build-info
authorAndy Wingo <wingo@pobox.com>
Thu, 14 Apr 2011 14:06:40 +0000 (16:06 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 14 Apr 2011 14:06:40 +0000 (16:06 +0200)
* libguile/load.c (init_build_info): Add packager, packager-version, and
  packager-bug-reports to %build-info, if they are available.

libguile/load.c

index c2380b94eaa2bea05a1825c44e587aaaa35992d7..701b34b3936e6cdf9af020ef73f4559db5749e02 100644 (file)
@@ -933,6 +933,21 @@ init_build_info ()
       SCM val = scm_from_locale_string (info[i].value);
       *loc = scm_acons (key, val, *loc);
     }
+#ifdef PACKAGE_PACKAGER
+  *loc = scm_acons (scm_from_latin1_symbol ("packager"),
+                    scm_from_latin1_string (PACKAGE_PACKAGER),
+                    *loc);
+#endif
+#ifdef PACKAGE_PACKAGER_VERSION
+  *loc = scm_acons (scm_from_latin1_symbol ("packager-version"),
+                    scm_from_latin1_string (PACKAGE_PACKAGER_VERSION),
+                    *loc);
+#endif
+#ifdef PACKAGE_PACKAGER_BUG_REPORTS
+  *loc = scm_acons (scm_from_latin1_symbol ("packager-bug-reports"),
+                    scm_from_latin1_string (PACKAGE_PACKAGER_BUG_REPORTS),
+                    *loc);
+#endif
 }
 
 \f