Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autoconf test for JNI include dir

I'm working on a configuration script for a JNI wrapper. One of the configuration parameters is the path to jni.h. What's a good quick-and-dirty Autoconf test for whether this parameter is set correctly for C++ compilation? You can assume you're running on Linux and g++ is available.

Alternatively, is there a way to get javah (or a supporting tool) to give me this path directly?

like image 605
Chris Conway Avatar asked Oct 02 '08 18:10

Chris Conway


1 Answers

Then there is the easy way: http://www.gnu.org/software/autoconf-archive/ax_jni_include_dir.html

Sometimes it is best to just use the standard recipies.

like image 138
Christopher Smith Avatar answered Sep 17 '22 11:09

Christopher Smith