From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.user Subject: Re: configuring apps for guile Date: Sun, 16 Feb 2020 15:48:07 +0100 Message-ID: <87tv3q1tco.fsf@gnu.org> References: <5f967b74-9704-bd49-de82-97a2f1c665df@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="125973"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Guile User To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Feb 16 15:48:20 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3LDY-000WhN-J4 for guile-user@m.gmane-mx.org; Sun, 16 Feb 2020 15:48:20 +0100 Original-Received: from localhost ([::1]:33076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3LDX-0007sC-La for guile-user@m.gmane-mx.org; Sun, 16 Feb 2020 09:48:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35705) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3LDO-0007s3-2J for guile-user@gnu.org; Sun, 16 Feb 2020 09:48:11 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j3LDN-0005VT-Uz; Sun, 16 Feb 2020 09:48:09 -0500 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48650 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j3LDN-0002zU-Ct; Sun, 16 Feb 2020 09:48:09 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 =?utf-8?Q?Pluvi=C3=B4se?= an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: <5f967b74-9704-bd49-de82-97a2f1c665df@gmail.com> (Matt Wette's message of "Wed, 12 Feb 2020 05:54:18 -0800") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16179 Archived-At: Hello Matt, Matt Wette skribis: > From configure.ac: > > guile_build_prefix=3D`$GUILE -c "(display (assq-ref %guile-build-info > 'prefix))"` > > if test "$guile_build_prefix" =3D=3D "$prefix"; then > =C2=A0 echo "using paths for installed guile" > =C2=A0 GUILE_SITE_DIR > =C2=A0 GUILE_SITE_GO_DIR > =C2=A0 GUILE_DATA_DIR > else > =C2=A0 echo "using default paths for guile" > =C2=A0 GUILE_SITE=3D$prefix/share/guile/site/$GUILE_EFFECTIVE_VERSION > GUILE_SITE_GO=3D$prefix/lib/guile/$GUILE_EFFECTIVE_VERSION/site-ccache > =C2=A0 GUILE_DATA=3D$prefix/share > =C2=A0 AC_SUBST([GUILE_SITE]) > =C2=A0 AC_SUBST([GUILE_SITE_GO]) > =C2=A0 AC_SUBST([GUILE_DATA]) > fi I would recommend not even bothering with the first part of the =E2=80=98if= =E2=80=99, and instead always default to install files under $prefix (more precisely: under $datadir and $libdir). The bits I=E2=80=99ve been using are: configure.ac: dnl We require guile.m4, from Guile. Make sure it's available. m4_pattern_forbid([^GUILE_P]) m4_pattern_allow([^GUILE_PKG_ERRORS]) GUILE_PKG([3.0 2.2 2.0]) GUILE_PROGS Makefile.am: moddir =3D $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION) godir =3D $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache SOURCES =3D a.scm b.scm c.scm GOBJECTS =3D $(SOURCES:%.scm=3D%.go) nobase_mod_DATA =3D $(SOURCES) nobase_go_DATA =3D $(GOBJECTS) I believe Hall=C2=B9 does the right thing, making it easier to get started with all this! Thanks, Ludo=E2=80=99. =C2=B9 https://gitlab.com/a-sassmannshausen/guile-hall