Hi folks

I fancied exploring Guile with Emacs, so I've been trying to build Guile and Emacs as documented in https://www.emacswiki.org/emacs/GuileEmacsBuild .

I've successfully built the wip-elisp branch of the main guile repo. The wiki page discusses http://git.hcoop.net/?p=bpt/guile.git and http://git.savannah.gnu.org/cgit/guile.git/log/?h=wip-elisp . I understand that the latter is a rebase of the hcoop commits on Guile 2.1.

However, I've also noticed there's a wip-bpt-elisp branch in the main guile repo. This has the newest commits, but it seems to based on an older guile version.

Which branch should I use?

I've also failed to compile the Emacs branch that uses Guile. I'm getting the error:

gcc -c  -Demacs  -I. -I. -I../lib -I./../lib  [many includes elided...] -I/usr/local/include/guile/2.2   -g3 -O2  vm-limit.c
In file included from vm-limit.c:21:0:
lisp.h:33:22: fatal error: libguile.h: No such file or directory
 #include <libguile.h>
                      ^
compilation terminated.

This rather looks like I've screwed up with autoconf somehow. I've set the environment variables suggested by the wiki page:

ACLOCAL_PATH=/home/wilfred/guile-emacs/guile/share/aclocal
PKG_CONFIG_PATH=/home/wilfred/guile-emacs/guile/lib/pkgconfig
LD_RUN_PATH=/home/wilfred/guile-emacs/guile/lib

so am I missing something?

Thanks
Wilfred