unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Determining the name of Guile commands
@ 2014-06-20 21:40 Ludovic Courtès
  2014-12-03 18:12 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2014-06-20 21:40 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 572 bytes --]

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@

[-- Attachment #3: Type: text/plain, Size: 150 bytes --]


Then GUILE_PROGS should be adjusted accordingly.

WDYT?

If there are no objections, I’ll implement and document that one of
these days.

Ludo’.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Determining the name of Guile commands
  2014-06-20 21:40 Determining the name of Guile commands Ludovic Courtès
@ 2014-12-03 18:12 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2014-12-03 18:12 UTC (permalink / raw)
  To: guile-devel

ludo@gnu.org (Ludovic Courtès) skribis:

> 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:

Done in 5fac1a7.

For the record, GDB has been using this (then unimplemented) feature for
some time already:
<https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/acinclude.m4#l473>.

Comments welcome!

Ludo’.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-03 18:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-20 21:40 Determining the name of Guile commands Ludovic Courtès
2014-12-03 18:12 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).