bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile extension to mailutils.


From: Alain Magloire
Subject: Re: Guile extension to mailutils.
Date: Fri, 20 Jul 2001 11:17:01 -0400 (EDT)

> 
> > > messages. Do you mind if I commit these two directories to the
> > > project?
> > 
> > Not at all, that's great!
> 
> OK, done. libmu_scm/ contains library sources (currently I made
> it noinst_LIBRARY), guimb/ (guile-mailbox -- couldn't invent anything
> better, renaming propositions are welcome) is a program that reads
> in given mailbox(es) and applies a Guile program or expression to
> them. examples/reply.scm is a test program for use with guimb.
> 
> I left the guile stuff in configure.in commented out since
> we have a name clash between mailutils/debug.h and libguile/debug.h:
> both declare debug_print(). Guile only declares this function, but
> does not define it in any of its modules, so for the purposes of
> testing commenting line 190 in libguile/debug.h (for guile 1.4)
> works Ok...
> 
> Still, I'd propose to add some prefix to debug_ functions, how about
> mu_debug_.* instead of debug_.* ?

Sigh .. C would need the C++ namespace feature.

Ok, my guess is that we are probably going to end up
prefixing everyting with "mu_" 8-).

It sounded, in your email that you've already started doing this,
if not let me know, I'll take care of this on my side(for example
some application, mailutils/mail, may be using the debug_t object
and it should be change to mu_debug_t).

A note, I have /usr/lib/guile, but not <libguile.h> nor guile-config.
If configure fails to fine the requirement for guile, should it not
skip those directories?

# ./configure
# make
....
make[2]: Leaving directory `/home/alain/GNU/mailutils/scripts'
Making all in libmu_scm
make[2]: Entering directory `/home/alain/GNU/mailutils/libmu_scm'
../scripts/guile-doc-snarf mu_scm.c -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../lib 
-I../include -DDATADIR=\"/usr/local/mailutils/share/mailutils\" -g -O2 \
                           mu_scm.c > mu_scm.x || { rm mu_scm.x; false; }
In file included from mu_scm.c:18:
mu_scm.h:38: libguile.h: No such file or directory
make[2]: *** [mu_scm.x] Error 1
make[2]: Leaving directory `/home/alain/GNU/mailutils/libmu_scm'
make[1]: *** [all-recursive] Error 1


--
alain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]