From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Autoconf's `GUILE_CHECK' macro broken Date: Mon, 12 Sep 2005 17:27:12 +0200 Organization: LAAS-CNRS Message-ID: <874q8ql31r.fsf@laas.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126539521 20669 80.91.229.2 (12 Sep 2005 15:38:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2005 15:38:41 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Sep 12 17:38:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EEqLj-0004hr-U9 for guile-user@m.gmane.org; Mon, 12 Sep 2005 17:36:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EEqHp-0001Tm-2u for guile-user@m.gmane.org; Mon, 12 Sep 2005 11:32:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EEqHI-0001O0-5D for guile-user@gnu.org; Mon, 12 Sep 2005 11:31:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EEqH2-0001FX-6i for guile-user@gnu.org; Mon, 12 Sep 2005 11:31:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EEqH0-0001D9-OY for guile-user@gnu.org; Mon, 12 Sep 2005 11:31:10 -0400 Original-Received: from [140.93.0.15] (helo=laas.laas.fr) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EEqDr-00079V-16 for guile-user@gnu.org; Mon, 12 Sep 2005 11:27:55 -0400 Original-Received: by laas.laas.fr (8.13.1/8.13.1) with SMTP id j8CFRDWE015789; Mon, 12 Sep 2005 17:27:13 +0200 (CEST) Original-To: guile-user@gnu.org X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 26 Fructidor an 213 de la =?iso-8859-1?Q?R=E9volutio?= =?iso-8859-1?Q?n?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-Spam-Score: 0 () X-Scanned-By: MIMEDefang at CNRS-LAAS 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:4741 Archived-At: Hi, It looks like the Autoconf `GUILE_CHECK' macro (or perhaps Guile itself) is broken. In both Guile 1.6 and 1.7, it is defined as follows: # GUILE_CHECK -- evaluate Guile Scheme code and capture the return value # # Usage: GUILE_CHECK_RETVAL(var,check) # # @var{var} is a shell variable name to be set to the return value. # @var{check} is a Guile Scheme expression, evaluated with "$GUILE -c", and # returning either 0 or non-#f to indicate the check passed. # Non-0 number or #f indicates failure. # Avoid using the character "#" since that confuses autoconf. # AC_DEFUN([GUILE_CHECK], [AC_REQUIRE([GUILE_PROGS]) $GUILE -c "$2" > /dev/null 2>&1 $1=$? ]) However, both versions of Guile return zero, regardless of whether the expression passed to `-c' returned false or not. Actually, my guess would be that Guile is broken, not the macro. But then, I'd be surprised to be the first one hitting that problem. Thanks, Ludovic. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user