From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: Compatibility V1.8 and 2.0 - deprecated (debug-enable 'debug) Date: Tue, 09 Aug 2011 17:12:44 +0200 Message-ID: <87zkjik49f.fsf@ambire.localdomain> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312902831 16668 80.91.229.12 (9 Aug 2011 15:13:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 9 Aug 2011 15:13:51 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Aug 09 17:13:46 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qqo00-0005hJ-Vp for guile-user@m.gmane.org; Tue, 09 Aug 2011 17:13:45 +0200 Original-Received: from localhost ([::1]:36921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqo00-0002Gx-FK for guile-user@m.gmane.org; Tue, 09 Aug 2011 11:13:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqnzx-0002FI-FA for guile-user@gnu.org; Tue, 09 Aug 2011 11:13:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qqnzv-00076l-Um for guile-user@gnu.org; Tue, 09 Aug 2011 11:13:41 -0400 Original-Received: from smtp206.alice.it ([82.57.200.102]:48474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqnzv-00075H-Je for guile-user@gnu.org; Tue, 09 Aug 2011 11:13:39 -0400 Original-Received: from ambire.localdomain (79.54.65.14) by smtp206.alice.it (8.5.124.08) id 4DE63E32067DA7A5 for guile-user@gnu.org; Tue, 9 Aug 2011 17:13:20 +0200 Original-Received: from ttn by ambire.localdomain with local (Exim 4.69) (envelope-from ) id 1Qqnz2-0000rv-9K for guile-user@gnu.org; Tue, 09 Aug 2011 17:12:44 +0200 In-Reply-To: (Peter TB Brett's message of "Tue, 09 Aug 2011 13:59:50 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.102 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8702 Archived-At: () Peter TB Brett () Tue, 09 Aug 2011 13:59:50 +0100 I'd like to know how to detect if it's needed too, since we have a similar problem. One way is to run a check in configure.ac. In the ttn-do slog (portability futzing effort) from Guile 1.4.x-only to a wider world, there is the file baux/snuggle.m4, which can be used, e.g.,: AC_CACHE_CHECK([whether Guile accepts (debug-enable 'debug)], [guile_cv_ded], [SNUGGLE_CHECK([guile_cv_ded],[(debug-enable 'debug)])]) AS_IF([test xyes = x"$guile_cv_ded"], ARRANGE-TO-KEEP-USING-IT, ARRANGE-TO-OMIT-IT) The ttn-do configure.ac has other examples. See: http://www.gnuvola.org/software/ttn-do/ BTW, snuggle.m4 is from the SNUGGLE project: "SNUGGLE: Neutralize Uncharacteristically Grotesque GUILE Library Entropy!"