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 <acebal...@gmail.com> wrote: > Hi Guile folks, > > 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. > > To be more specific, I would like to get something like this: > > 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. > > More details will be necessary for sure, but I would like to have a contact > with some of you guys first. > > Thanks in advance! > > Regards, > Antonio Ceballos >