[Top][All Lists]

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

Re: Emacs 21.0.104 Ignoring --includedir

From: Kevin Gallagher
Subject: Re: Emacs 21.0.104 Ignoring --includedir
Date: Sun, 26 Aug 2001 00:33:28 -0500

Vin Shelton wrote:

> Last night I built the Emacs-21 104 prerelease on my linux machine at
> home using a prefix of /usr/local.  This worked fine.  Today here at
> work I attempted to build the Emacs-21 104 prerelease with a more
> unusual prefix and my xpm and png include files were not found.
> Here's what happened:
> First I attempted to configure in my usual way:
> ./../../src/emacs-21.0.104/configure  --prefix=/u/shelton/new/SunOS-5.5 
> --datadir=/u/shelton/new/share --disable-nls
> this caused neither xpm nor png header files to be found.  So I
> explicitly specified both '--includedir' and '--with-xpm' and this did
> not work, either.  Here is the part of config.log relevant to xpm (I
> ctrl-c'ed the build at this point):
> configure:5103: checking for X11/xpm.h
> configure:5113: gcc -E -I/usr/openwin/include      conftest.c >/dev/null 
> 2>conftest.out
> configure:5109: X11/xpm.h: No such file or directory
> configure: failed program was:
> #line 5108 "configure"
> #include "confdefs.h"
> #include <X11/xpm.h>
> It appears to me that, although I specified '--includedir' on the
> command line, that option did not get passed on to gcc.

You did not indicate the content and syntax of your "--includedir" line, so I 
cannot give you feedback on what you did

As you know, the xpm and png packages are not installed as part of the Sun 
Solaris distribution.  You have to build them
yourself and install them somewhere.  No doubt, you put them in a non-standard 
place.  So the Emacs configure script
can't find them.

By the way, you not only have to tell Emacs where to find the include files, 
you also have to tell Emacs where to find
the corresponding link libraries.  I do this with the --x-includes and 
--x-libraries command line options.  Here's how I
invoke configure to build Emacs on Sun Solaris 7:

../configure  --with-kerberos --x-includes='/home/kgallagh/include 
--x-libraries='/home/kgallagh/lib -L/usr/openwin/lib

[Note:  its all on one line, in case it got broken in two while in transit.]
The include directory in my home directory contains all the header files of the 
extra features I build into Emacs,
except, I placed xpm.h in /home/kgallagh/include/X11.  The corresponding libs 
are in /home/kgallagh/lib.

The configure script adds a -I to the front of the --x-includes string before 
passes it to the compiler.  So, if you
specify more than one path, as I have, you must add a -I to each of the extra 
paths and then quote the whole string.
The same syntax is needed for --x-libraries.

Anyway, the above works for me.  Something similiar should work for you.

reply via email to

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