build process tried to build xmenu.c when it couldn't find X Windows hea
From:
Chris Moore
Subject:
build process tried to build xmenu.c when it couldn't find X Windows headers
Date:
Sun, 8 Jan 2006 22:04:23 +0100
I just tried building Emacs and it failed. I didn't have the X headers installed, but I asked it to use the GTK toolkit.
Configure decided it was going to use the GTK toolkit and GTK scrollbars when I ran configure with the "--with-gtk" flag. If I used the "--with-x-toolkit=gtk" flag instead, it was smart enough to realise it shouldn't use GTK since it couldn't find the X headers. It should do the same if I use "--with-gtk" shouldn't it?
Here are logs of the two commands. First --with-gtk:
$ ./configure --with-gtk [...] checking for X... no checking for gtk+-2.0 >= 2.0.1 glib-2.0 >= 2.0.1... yes [...]
What window system should Emacs use? none What toolkit should Emacs use? GTK Where do we find X Windows header files? NONE Where do we find X Windows libraries? NONE
Does Emacs use -lXaw3d? no Does Emacs use -lXpm? no Does Emacs use -ljpeg? no Does Emacs use -ltiff? no
Does Emacs use -lungif? no Does Emacs use -lpng? no Does Emacs use X toolkit scroll bars? yes
$ make
[...] gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -DUSE_GTK -I. -I/home/chris/programs/emacs/src -D_BSD_SOURCE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-
1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -Wno-pointer-sign xmenu.c In file included from xmenu.c:130: gtkutil.h:163: error: syntax error before '*' token
$ ./configure --with-x-toolkit=gtk [...] checking for X... no [...] What window system should Emacs use? none What toolkit should Emacs use? none
Where do we find X Windows header files? NONE Where do we find X Windows libraries? NONE Does Emacs use -lXaw3d? no Does Emacs use -lXpm? no
Does Emacs use -ljpeg? no Does Emacs use -ltiff? no Does Emacs use -lungif? no Does Emacs use -lpng? no
Does Emacs use X toolkit scroll bars? no