[Xapian-discuss] java bindings 1.0.0 - jni.h not found
James Aylett
james-xapian at tartarus.org
Thu May 31 09:48:21 BST 2007
On Wed, May 30, 2007 at 06:30:01PM +0100, Olly Betts wrote:
> ./configure CPPFLAGS="-I/path/to/jdk/include -I/path/to/jdk/include/linux"
>
> It would be nice to be able to automatically do that, but I don't really
> see how to know what subdirectory to look for - I assume Sun do this
> because they envisage that different platforms might share a JDK install
> so just looking for "/path/to/jdk/include/*/jni_md.h" isn't a good
> approach - it also relies on the name of an internal header.
>
> If anyone can see a good approach, do speak up!
Could we rewrite the test so that in the jni.h fallback (which is what
will almost always actually find the appropriate CFLAGS) we first
check `test -f path/include/jni.h` then try compile as normal, and if
that fails on *linux* we try compile with -I path/include/linux as
well?
We could skip the test -f, but that will slow things down when no JDK
is present on the system.
J
--
/--------------------------------------------------------------------------\
James Aylett xapian.org
james at tartarus.org uncertaintydivision.org
More information about the Xapian-discuss
mailing list