From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: How to add Guile support to a package Date: Sun, 04 Jan 2015 07:03:31 -0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420383852 9017 80.91.229.3 (4 Jan 2015 15:04:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2015 15:04:12 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jan 04 16:04:05 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y7mir-0007x4-N7 for guile-user@m.gmane.org; Sun, 04 Jan 2015 16:04:05 +0100 Original-Received: from localhost ([::1]:57207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7miq-0007UL-Gh for guile-user@m.gmane.org; Sun, 04 Jan 2015 10:04:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7mig-0007Rc-RX for guile-user@gnu.org; Sun, 04 Jan 2015 10:03:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7mic-0006pS-0h for guile-user@gnu.org; Sun, 04 Jan 2015 10:03:54 -0500 Original-Received: from vms173021pub.verizon.net ([206.46.173.21]:64426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7mib-0006mL-SZ for guile-user@gnu.org; Sun, 04 Jan 2015 10:03:49 -0500 Original-Received: from [192.168.2.127] ([71.108.232.238]) by vms173021.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NHN0097WR5WQN20@vms173021.mailsrvcs.net> for guile-user@gnu.org; Sun, 04 Jan 2015 09:03:33 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=Ko/6AtSI c=1 sm=1 tr=0 a=XxAusKNOGYjrkNisIOG4pA==:117 a=kj9zAlcOel0A:10 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=YNv0rlydsVwA:10 a=pGLkceISAAAA:8 a=CMnyLCwzqKTp8pd_ie0A:9 a=CjuIK1q_8ugA:10 In-reply-to: X-Mailer: Apple Mail (2.1878.6) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.46.173.21 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:11698 Archived-At: What you propose seems reasonable to me. Though I have not use the AC = stuff enough to say how to do it. There is a section in the guile manual (Section 5, Section 6.4 of 2.0 = manual) on embedding guile into your own program. I believe you will need to call scm_with_guile() to get into debug mode = run by guile. You might try to run just a "hello world" example. Does gnu chess use the boehm GC? I wonder how that works in this case. Matt On Jan 4, 2015, at 5:47 AM, Antonio Ceballos = wrote: > Hi Guile folks, >=20 > I am thinking about adding guile support to GNU Chess. As it would be = used as a kind of debug mode, I don't want it to have it by default, so = as to avoid usually unnecessary extra dependencies. I have gone through = some tutorials, and have prototyped a guile-enabled version, but it is = far from working fine yet. Could you please give me some advice? I am = not sure if this is the right list to post this question. >=20 > To be more specific, I would like to get something like this: >=20 > 1. Optional guile support via a configure option, being the default no = guile support. > 2. Conditional compilation of guile-enabled source code, via C = precompilation directive. >=20 > More details will be necessary for sure, but I would like to have a = contact with some of you guys first. >=20 > Thanks in advance! >=20 > Regards, > Antonio Ceballos >=20