Hello! I noticed there’s no reliable way to determine the name of the ‘guild’ or ‘guile’ command in the face of --program-suffix et al. (a situation likely more frequent during the transition from 2.0 to 2.2.)
So I thought about adding new variables to the .pc file:
diff --git a/meta/guile-2.0.pc.in b/meta/guile-2.0.pc.in index 1bda734..8e09fb6 100644 --- a/meta/guile-2.0.pc.in +++ b/meta/guile-2.0.pc.in @@ -1,5 +1,6 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ +bindir=@bindir@ libdir=@libdir@ includedir=@includedir@ datarootdir=@datarootdir@ @@ -11,6 +12,9 @@ sitedir=@sitedir@ extensiondir=@libdir@/guile/@GUILE_EFFECTIVE_VERSION@/extensions libguileinterface=@LIBGUILE_INTERFACE@ +guild=@guild@ +guile=@guile@ + Name: GNU Guile Description: GNU's Ubiquitous Intelligent Language for Extension Version: @GUILE_VERSION@
Then GUILE_PROGS should be adjusted accordingly. WDYT? If there are no objections, I’ll implement and document that one of these days. Ludo’.