Re: configuring apps for guile

2020-02-17 Thread Ludovic Courtès
Hi, Matt Wette skribis: > On 2/16/20 9:57 AM, Ludovic Courtès wrote: >> Hi, >> >> Matt Wette skribis: >> >>> What if you have a system that gives this (e.g., Ubuntu 18.04): >>> >>> mwette$ /usr/bin/guile -c "(display (assq-ref %guile-build-info >>> 'prefix)) (newline)" >>> /usr >>> >>> mwette$

Re: configuring apps for guile

2020-02-16 Thread Matt Wette
On 2/16/20 9:57 AM, Ludovic Courtès wrote: Hi, Matt Wette skribis: What if you have a system that gives this (e.g., Ubuntu 18.04): mwette$ /usr/bin/guile -c "(display (assq-ref %guile-build-info 'prefix)) (newline)" /usr mwette$ /usr/bin/guile -c "(display (%site-ccache-dir)) (newline)" /us

Re: configuring apps for guile

2020-02-16 Thread Ludovic Courtès
Hi, Matt Wette skribis: > What if you have a system that gives this (e.g., Ubuntu 18.04): > > mwette$ /usr/bin/guile -c "(display (assq-ref %guile-build-info > 'prefix)) (newline)" > /usr > > mwette$ /usr/bin/guile -c "(display (%site-ccache-dir)) (newline)" > /usr/lib/x86_64-linux-gnu/guile/2.2

Re: configuring apps for guile

2020-02-16 Thread Matt Wette
On 2/16/20 7:43 AM, Matt Wette wrote: And for me, things get more bizarre.  If I have another guile installed in my path under /opt/local I get   mwette$ /usr/bin/guile -c "(display (%site-ccache-dir)) (newline)"   /opt/local/lib/guile/2.2/site-ccache I think this has something to do with

Re: configuring apps for guile

2020-02-16 Thread Matt Wette
On 2/16/20 7:28 AM, Matt Wette wrote: On 2/16/20 6:48 AM, Ludovic Courtès wrote:    moddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)    godir  = $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache What if you have a system that gives this (e.g., Ubuntu 18.04): mwette$ /usr/bin/gu

Re: configuring apps for guile

2020-02-16 Thread Matt Wette
On 2/16/20 6:48 AM, Ludovic Courtès wrote: Hello Matt, Matt Wette skribis: From configure.ac: guile_build_prefix=`$GUILE -c "(display (assq-ref %guile-build-info 'prefix))"` if test "$guile_build_prefix" == "$prefix"; then   echo "using paths for installed guile"   GUILE_SITE_DIR   GUIL

Re: configuring apps for guile

2020-02-16 Thread Ludovic Courtès
Hello Matt, Matt Wette skribis: > From configure.ac: > > guile_build_prefix=`$GUILE -c "(display (assq-ref %guile-build-info > 'prefix))"` > > if test "$guile_build_prefix" == "$prefix"; then >   echo "using paths for installed guile" >   GUILE_SITE_DIR >   GUILE_SITE_GO_DIR >   GUILE_DATA_DIR >

Re: configuring apps for guile

2020-02-13 Thread Jan Wedekind
On Wed, 12 Feb 2020, Matt Wette wrote: Hi All, Over the last year I have been dealing with issues getting a configure.ac put together for my guile app.  It needs to install .scm and .go files into the place guile expects to see them: (%site-ccache-dir) and %load-path.   If I compile for my ub

Re: configuring apps for guile

2020-02-12 Thread Jeremy Korwin-Zmijowski
Le mercredi 12 février 2020 à 06:04 -0800, Matt Wette a écrit : > > On 2/12/20 5:54 AM, Matt Wette wrote: > > Here is my solution. What do you think? If $prefix is the same > > as > > used to build guile > > then I use the directories from $guile. Otherwise, I use the > > default. This now w

Re: configuring apps for guile

2020-02-12 Thread Matt Wette
On 2/12/20 5:54 AM, Matt Wette wrote: Here is my solution.  What do you think?  If $prefix is the same as used to build guile then I use the directories from $guile.  Otherwise, I use the default.  This now works on ubuntu and guix. CorrectIon: "directories from $guile" means from paths g

configuring apps for guile

2020-02-12 Thread Matt Wette
Hi All, Over the last year I have been dealing with issues getting a configure.ac put together for my guile app.  It needs to install .scm and .go files into the place guile expects to see them: (%site-ccache-dir) and %load-path.   If I compile for my ubuntu system then the installed go files