From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Brett Newsgroups: gmane.lisp.guile.user Subject: Re: Checking for guile from configure -- forward compat. Date: Fri, 14 Aug 2009 08:26:41 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250234856 2469 80.91.229.12 (14 Aug 2009 07:27:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2009 07:27:36 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Aug 14 09:27:29 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MbrCD-0002aM-Cs for guile-user@m.gmane.org; Fri, 14 Aug 2009 09:27:29 +0200 Original-Received: from localhost ([127.0.0.1]:36643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbrCC-0006w3-NI for guile-user@m.gmane.org; Fri, 14 Aug 2009 03:27:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbrBq-0006mX-0f for guile-user@gnu.org; Fri, 14 Aug 2009 03:27:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbrBk-0006lw-U3 for guile-user@gnu.org; Fri, 14 Aug 2009 03:27:05 -0400 Original-Received: from [199.232.76.173] (port=50147 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbrBk-0006lt-PF for guile-user@gnu.org; Fri, 14 Aug 2009 03:27:00 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:34166) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MbrBk-0002xq-B6 for guile-user@gnu.org; Fri, 14 Aug 2009 03:27:00 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbrBh-0004ym-P7 for guile-user@gnu.org; Fri, 14 Aug 2009 03:26:57 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MbrBc-0002MR-25 for guile-user@gnu.org; Fri, 14 Aug 2009 07:26:52 +0000 Original-Received: from 131.227.8.63 ([131.227.8.63]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Aug 2009 07:26:52 +0000 Original-Received: from peter by 131.227.8.63 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Aug 2009 07:26:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 131.227.8.63 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:Mt/HWM30jvMhFL20IXfChRUAnuc= X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7402 Archived-At: Peter TB Brett writes: > Hi everyone, > > Currently, there appear to be two ways to check for the presence of > Guile: > > PKG_CHECK_MODULES(GUILE, [guile-1.8]) > > Or: > > GUILE_FLAGS > > Unfortunately, the first of these *only* works for Guile 1.8 -- so if > some has, at some point in the future, Guile 2.x, we'll have to add > some m4 magic for sequentially trying 1.8 and every valid x for 2.x. > > On the other hand, GUILE_FLAGS uses the guile-config tool, which IIRC is > going to go away Soon (tm). > > What would you recommend as the Right Way to check for Guile 1.8.0 or > later in my configure script and set the appropriate flags, in a > forward-compatible way? Or am I just going to have to write a pile of > crufty m4/shell? We ended up writing a pile of crufty m4/shell, which: - checks for guile-1.8.pc - if that fails, checks for guile-2.0.pc - if that fails, checks for guile-config http://git.gpleda.org/?p=gaf.git;a=blob;f=m4/geda-guile.m4;hb=HEAD Ewww. Peter -- Peter Brett Remote Sensing Research Group Surrey Space Centre