From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: configuring guile packages [was: GNU Guile 2.9.8 Released [beta]] Date: Fri, 3 Jan 2020 10:44:21 -0800 Message-ID: References: <87woaa3rq4.fsf@pobox.com> <296377b9-14f8-107a-21f3-ca2c139ef336@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="246218"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 03 19:44:53 2020 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1inRwK-0011pQ-2g for guile-user@m.gmane.org; Fri, 03 Jan 2020 19:44:52 +0100 Original-Received: from localhost ([::1]:55708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inRwI-0007SL-Qg for guile-user@m.gmane.org; Fri, 03 Jan 2020 13:44:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54596) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inRvx-0007Pn-JQ for guile-user@gnu.org; Fri, 03 Jan 2020 13:44:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inRvt-000522-9k for guile-user@gnu.org; Fri, 03 Jan 2020 13:44:29 -0500 Original-Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:39464) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inRvt-0004wv-23 for guile-user@gnu.org; Fri, 03 Jan 2020 13:44:25 -0500 Original-Received: by mail-pf1-x42c.google.com with SMTP id q10so23886035pfs.6 for ; Fri, 03 Jan 2020 10:44:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=aQr8eBm6Kqo/yZJKa1lWPN1Fgkl3J7zN/QZ62yXJi70=; b=E8hVaODGAnn4vILPcCS26q0yNHHwkOttklB8cnwqL36QmGe3O9dsMrU99wmP7BKBs6 PfRW14Jv/RX/C689F//1iiQfCaOvlreRIQIbrf79Md/NWz9hONpyksaBlSycgwuRj7XE ycGKklUQOSw3AYpC4r8nTPECthJzzROy8ATq+Gg0JojdQKomEZG3JBp3KtBEo284mh0q KwlbLgc7qwlYbFfqZUvoxvGz87vdp8784ytav/1/mWxo5HnyFP4jV1wfBcqwnweCXEnj pvpeiB/blg2aJgojuH3Q6IcYgtNjV7uhT0ajy8tw9on7PjxJLwLmn0GmUp8dCQ/tyg4U kU3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=aQr8eBm6Kqo/yZJKa1lWPN1Fgkl3J7zN/QZ62yXJi70=; b=XluhOPdVBjN9orIKSHAd7vEDMro5neFFlnRbRixwbXZ/WgZDLuFqRmXG/Lu0MKEfoC e0qZ46F70GNa1OIrkQsVjfkS2oIgvHbJ8RLPiMKzWgnU+fAjUg7WNOETc1PZbQKqBfjE fdkTGoPs5cYS/ELP8NYbV8whS84p0q2MxAS5Fxiicxy3CwsjQ4o+jZF19RfnpL0/3D7n lXTn+hPo6OFcbKcrn88BFlG7Sul8X40RyGsVxhJ4zDNe8CxJ5KDrmQ7r+I5bu13XpKuj CwjYN6IMBcE2g7PNIY9MlzYg0nEUjc7C//815MEKiA7XoNsP4fb3cqSIzvdfLI2uaNcb FH+w== X-Gm-Message-State: APjAAAVfqwBBsEeYzTMqcT4t8ZJc6410F025Aqp6RU+m9EXJuyQwm/UV nScT5hIgCTZCH8gDBO7DIcAYyu7y X-Google-Smtp-Source: APXvYqzxO6/jJbfYvMqu3kXscbO4Ww6sFPhWTgW8jL+hcLxpwB8ZSWy7LaZfpTif0GI30q39M1Xa4A== X-Received: by 2002:aa7:96f9:: with SMTP id i25mr97574136pfq.161.1578077063438; Fri, 03 Jan 2020 10:44:23 -0800 (PST) Original-Received: from [192.168.2.183] (64-52-176-132.championbroadband.com. [64.52.176.132]) by smtp.gmail.com with ESMTPSA id y197sm69919321pfc.79.2020.01.03.10.44.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jan 2020 10:44:22 -0800 (PST) In-Reply-To: <296377b9-14f8-107a-21f3-ca2c139ef336@gmail.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42c 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.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15984 Archived-At: On 1/3/20 6:53 AM, Matt Wette wrote: >>  I am running into other issues, however, when there is a >> guile in my path that appears before anything else, but a guile-2 >> that appears from another directory.  I am working to add >> --with-guile to fix that.  I'm having problems checking against >> 2.0.14, for example. I have been working on my configures.  I have separate guile-2.0.14, -2.2.4 and -2.9.8 installs. To get everything to work I ended up with the following configure.ac and nyacc.m4.  Not beautiful but it's working for 2.0.14, 2.2.X and 2.9.8. ===== snip from configure.ac ===== m4_include([./pkg.m4]) m4_include([./guile.m4]) m4_include([./nyacc.m4]) AC_ARG_WITH(guile, [    --with-guile            path to binary],             ,with_guile=unspecified) if test "_$with_guile" != "_unspecified"; then   GUILE=$with_guile   GUILE_EFFECTIVE_VERSION=`$GUILE -c "(display (effective-version))"`   guile_libdir=`$GUILE -c "(display (assq-ref %guile-build-info 'libdir))"`   PKG_CONFIG_LIBDIR=$guile_libdir/pkgconfig   PKG_CONFIG=pkg-config   export PKG_CONFIG_LIBDIR else   GUILE_PKG([3.2 3.0 2.9 2.2 2.0])   GUILE_PROGS fi GUILE_SITE_DIR GUILE_SITE_GO_DIR GUILE_DATA_DIR ========================== ===== nyacc.m4 ===== dnl GUILE_SITE_GO_DIR AC_DEFUN([GUILE_SITE_GO_DIR],  [AC_MSG_CHECKING(for Guile site directory)   GUILE_SITE_GO=`$GUILE -c '(display (%site-ccache-dir))'`   AC_MSG_RESULT($GUILE_SITE_GO)   if test "$GUILE_SITE_GO" = ""; then      AC_MSG_FAILURE(sitedir not found)   fi   AC_SUBST(GUILE_SITE_GO)  ]) dnl GUILE_DATA_DIR AC_DEFUN([GUILE_DATA_DIR],  [AC_MSG_CHECKING(for Guile data directory)   GUILE_DATA=`$GUILE -c "(display (assq-ref %guile-build-info 'datadir))"`   AC_MSG_RESULT($GUILE_DATA)   if test "$GUILE_DATA" = ""; then      AC_MSG_FAILURE(datadir not found)   fi   AC_SUBST(GUILE_DATA)  ]) ===================