autoconf
[Top][All Lists]
Advanced

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

Re: Newbie Question


From: Dan Kegel
Subject: Re: Newbie Question
Date: Wed, 26 Feb 2003 15:45:52 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020615 Debian/1.0.0-3

Maurice Turcotte wrote:
I am configuring NET-SNMP to cross-compile for another
linux plaform using the uclibc toolchains. When I run
configure, it picks up the correct compiler, but it then
seems to be looking at the header files for the host
system rather than the cross-compiler.

For example, it looks for "stdio.h" in "/usr/include", which
is incorrect. It should be looking for "stdio.h" in "/opt/toolchains/uclibc/linux/include".

So, I have two questions......

1) How to I force configure to look for header files ONLY in a given directory.

Overriding the compiler should do it.
I do this as follows:
   CC=/path/to/my/compler ./configure

(although recent autoconf doc deprecates that syntax
in favor of
   ./configure CC=/path/to/my/compler
I don't think the new syntax works with old configures)

If that's not working, something's wrong...
- Dan





reply via email to

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