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: Re: configuring guile packages [was: GNU Guile 2.9.8 Released [beta]] Date: Fri, 3 Jan 2020 15:29:19 -0800 Message-ID: <9adebe26-c789-fbaf-f29d-d4757a86c00a@gmail.com> 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="117770"; 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 Sat Jan 04 00:29:44 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 1inWNz-000UTX-U2 for guile-user@m.gmane.org; Sat, 04 Jan 2020 00:29:44 +0100 Original-Received: from localhost ([::1]:57864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inWNy-0006Iv-KT for guile-user@m.gmane.org; Fri, 03 Jan 2020 18:29:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55536) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inWNh-0006In-84 for guile-user@gnu.org; Fri, 03 Jan 2020 18:29:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inWNe-0007Ac-Rg for guile-user@gnu.org; Fri, 03 Jan 2020 18:29:25 -0500 Original-Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:38767) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inWNe-00078F-J9 for guile-user@gnu.org; Fri, 03 Jan 2020 18:29:22 -0500 Original-Received: by mail-pf1-x432.google.com with SMTP id x185so24155968pfc.5 for ; Fri, 03 Jan 2020 15:29:22 -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=dG6Gk8Q0nIsk0c77Qx6L6FXsRBjijjugN2tMZjSHb0s=; b=EvK8HTOJwr0cioc3l4AGeixqBVh6/MHFzM8DKCMnon2EFO3xqS5WvoXHxlUwa0Qky+ GlYRUTy9LdMcaYKnJG4pQwMemJ7wPZLnQAGTWeDD6+hl/k2ckY05KZy1O41kGXfNsZIC 02wbir2IF3mjtobT/Vvh7120gZmN06YJlQtk2SfR2jjVBvkseQ+D4aYn8tG/uZ6/noMB Wu9JAClyO+rwcaT8b01zYALAO2W2aRLVbhsTwkFn0azNFG4jDRlrBXPegdgIiyYlujy1 5DLk+tzlCJcDuqNQQ4UpHxenAwLZS8qA+YEGWHrD3xIXlen0BBEPTBf7XNJ/BtW/MUhn eSDg== 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=dG6Gk8Q0nIsk0c77Qx6L6FXsRBjijjugN2tMZjSHb0s=; b=biPhFpJqsPIDHsAVuvFk1KKfe4Ru1OBg40MwSajKkGfh/xvDeH2YzwOqw+qHn01BgU QBq3tMaUPRvNwZP6/xZmlDZw53kdTLS9G4LHk0OdsoRZYUBZ8eGD54Sq8RUJ1Z3xEL1q OXPFRvWfHn7KvMMxPgKHQmMti3jIWQWkslauuYnhYcTeGnlFLJTZgKYNhmtJZF33Rgq3 nWZCZoTUtdg0gM9FASJs5ikaRo9msLUASsYspiLa3S1NRLI2XMalbOoEvMVdxSIHYgz0 NHPawCxKne5isNVa21Efyx+rd3Tk7HMCr0d9RGC2/hjbWWIy8VWdDLcDc1xw+gsAG2/v hPFQ== X-Gm-Message-State: APjAAAUHKnT9UFDlW6fdqpzL5htp2yVPfbH8OSq6M4AqtEz8VC6QUVKN GHMNAiALo5yHZPx3SjrVMpXNsoaN X-Google-Smtp-Source: APXvYqwKbicrCFr185g3BwtN4EsgXasxDhPC4wI5hQNOqxk2MasjLa/6+876hrGwFsUUJ4xBOIxwPg== X-Received: by 2002:aa7:85d8:: with SMTP id z24mr100670991pfn.202.1578094161133; Fri, 03 Jan 2020 15:29:21 -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 i17sm45054459pfr.67.2020.01.03.15.29.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jan 2020 15:29:20 -0800 (PST) In-Reply-To: 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::432 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:15985 Archived-At: On 1/3/20 10:44 AM, Matt Wette wrote: > 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 > > ========================== So I changed configure arg from "--with-guile=/path/to/guile" to "GUILE=/path/to/guile" AC_ARG_VAR([GUILE],[path to guile binary]) if test "x$ac_env_GUILE_set" = "xset"; then   GUILE_EFFECTIVE_VERSION=`$GUILE -c "(display (effective-version))"`   guile_libdir=`$GUILE -c "(display (assq-ref %guile-build-info 'libdir))"`   PKG_PROG_PKG_CONFIG   PKG_CONFIG_LIBDIR=$guile_libdir/pkgconfig   export PKG_CONFIG_LIBDIR else   GUILE_PKG([3.0 2.9 2.2 2.0])   GUILE_PROGS fi