[Top][All Lists]

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

Re: emacs 21.1 config

From: Eli Zaretskii
Subject: Re: emacs 21.1 config
Date: Tue, 30 Oct 2001 13:42:43 +0200

> From: Olle Eriksson <address@hidden>
> Date: Tue, 30 Oct 2001 08:18:37 +0100 (MET)
> When configuring emacs 21.1 on a Tru64 v5.1 Compaq system using the
> native C-compiler the following problem occur:
> The configure script fails to find png, tiff, ungif and jpeg although
> they are present in /usr/local/include. 

Maybe it's your cpp that doesn't find them?  Could you p-lease post
the relevant parts of config.log?

> I manage to make it find them by defining
> setenv CPP "/usr/bin/cpp -I/usr/local/include"
> This worked with configure but I also had add a -I flag to the compiler
> and an -L flag to the loader to build emacs

The way to do that is explained in the file INSTALL that is part of
the distribution.  Here's the relevant excerpt:

    Some tests might fail because the compiler should look in special
    directories for some header files, or link against optional
    libraries, or use special compilation options.  You can force
    `configure' and the build process which follows it to do that by
    setting the variables CPPFLAGS, CFLAGS, LDFLAGS, LIBS, and CC before
    running `configure'.  CPPFLAGS lists the options passed to the
    preprocessor, CFLAGS are compilation options, LDFLAGS are options used
    when linking, LIBS are libraries to link against, and CC is the
    command which invokes the compiler.

    Here's an example of a `configure' invocation, assuming a Bourne-like
    shell such as Bash, which uses these variables:

     CPPFLAGS='-I/foo/myinclude' LDFLAGS='-L/bar/mylib' \
      CFLAGS='-O3' LIBS='-lfoo -lbar' ./configure

    (this is all one long line).  This tells `configure' to instruct the
    preprocessor to look in the `/foo/myinclude' directory for header
    files (in addition to the standard directories), instruct the linker
    to look in `/bar/mylib' for libraries, pass the -O3 optimization
    switch to the compiler, and link against libfoo.a and libbar.a
    libraries in addition to the standard ones.

reply via email to

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