<span class="q">On 10/14/06, <b class="gmail_sendername">Dimitry Golubovsky</b> &lt;<a href="mailto:golubovsky@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">golubovsky@gmail.com</a>&gt; wrote:
</span><div><span class="q"><span class="gmail_quote"></span>2. I had to add a line to depends/ctypes/libffi/include/ffi.h:
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>#define __LONG_LONG_MAX__ 9223372036854775807LL<br><br>before<br><br>#ifdef LONG_LONG_MAX
<br># define FFI_LONG_LONG_MAX LONG_LONG_MAX<br>#else<br>.<br>.<br>.<br><br>This may be a problem with my C compiler, because its own &quot;limits.h&quot;<br>has definition for __LONG__LONG_MAX, but for some reason it is not
<br>visible to the compiler. So this is not a suggested fix, but just a<br>question whether anybody had to do this for an old gcc<br>(egcs 2.91.66 in my case)?<br><br>Without that line, I got an error about unsupported 64 bit types
<br>(although the compiler supports long longs perfectly).</blockquote></span><div><br>That
version of EGCS is at least 8 years old, although Tom has the final say
on things like this I really don't think we should be adding patches to
support versions of GCC prior to version 3. <br><br></div><span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">3. This may be a question to the scons team, but since it is used for
<br>this particukar project, I'm asking here first.
<br><br>How can I specify a custom path to a library, include file, etc.?<br><br>With autoconf, I am usually able to specify &quot;--with-bla=/foo/bar&quot;<br>provided that the developer of <a href="http://configure.ac/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

configure.ac</a> made such an option<br>available. How can the same be done with scons? E. g. I want to use<br>alternate libgmp instead of one installed in /usr/lib?<br></blockquote></span></div><br>Unfortunately
there isn't a built in way to handle that. I will check in a patch
later today so you can compile it using LIBPATH=xxx scons.
<br><br>Cheers,<br><span class="sg">Andrew</span>