From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter TB Brett Newsgroups: gmane.lisp.guile.user Subject: Checking for guile from configure -- forward compat. Date: Sat, 08 Aug 2009 07:45:10 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1249713947 24648 80.91.229.12 (8 Aug 2009 06:45:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Aug 2009 06:45:47 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Aug 08 08:45:41 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 1MZfgS-0004lm-EN for guile-user@m.gmane.org; Sat, 08 Aug 2009 08:45:40 +0200 Original-Received: from localhost ([127.0.0.1]:44239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZfgR-0001i0-Kk for guile-user@m.gmane.org; Sat, 08 Aug 2009 02:45:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZfgN-0001he-E5 for guile-user@gnu.org; Sat, 08 Aug 2009 02:45:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZfgI-0001hS-R8 for guile-user@gnu.org; Sat, 08 Aug 2009 02:45:34 -0400 Original-Received: from [199.232.76.173] (port=39578 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZfgI-0001hP-L4 for guile-user@gnu.org; Sat, 08 Aug 2009 02:45:30 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:49593 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MZfgH-0001MY-UQ for guile-user@gnu.org; Sat, 08 Aug 2009 02:45:30 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MZfgD-0001zq-HF for guile-user@gnu.org; Sat, 08 Aug 2009 06:45:25 +0000 Original-Received: from 78.32.4.81 ([78.32.4.81]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Aug 2009 06:45:25 +0000 Original-Received: from peter by 78.32.4.81 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Aug 2009 06:45:25 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78.32.4.81 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:i1MdIJrkk25t5dPofIi8G8bYM4s= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:7395 Archived-At: --=-=-= Content-Transfer-Encoding: quoted-printable 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? Thanks in advance, Peter =2D-=20 Peter Brett Remote Sensing Research Group Surrey Space Centre --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkp9HvYACgkQZ7Gbq7g7vpo3ngCdGgWZYSpqDI0ry+AGY9EeN1ew SzMAoIEVCikex1XvPmsmjZl5l6j6PQaV =hoNe -----END PGP SIGNATURE----- --=-=-=--