Please check the GNU Autoconf Macro Archive for Updates
AC-Archive
Autoconf Macro Archive

ac-archive.sf.net: - Project CVS - Download
Macro Index
- AM Support
- C++ Support
- C Support
- Fortran Support
- Java Support
- Cross Compilation
- Installed Packages
- Miscellaneous
- LaTeX Support
- Uncategorized
- archive macros
- adl's macros
- bkorb's macros
- guidod's macros
- latex's macros
- other's macros
- rleigh's macros
- obsoleted macros
- released macros
- search index

Documentation
- Contribute!
- History
- acincludedir m4
- acinclude (tool)
- macro howto
- ax tricks
- maintainers
- License
- Topics

generated...
2007年08月05日

(C) 2007 guidod
Synopsis
AC_PROG_JAVAH
, 
Version

2002年03月25日

Author

Luc Maisonobe <luc@spaceroots.org>

License

AllPermissive
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. Users of this software should generally follow the principles of the MIT License includings its disclaimer.

Category

cryp.to ac-archive's Java Support (released)

Documentation

AC_PROG_JAVAH tests the availability of the javah header generator and looks for the jni.h header file. If available, JAVAH is set to the full path of javah and CPPFLAGS is updated accordingly.

M4 Source Code
AC_DEFUN([AC_PROG_JAVAH],[
AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl
AC_REQUIRE([AC_PROG_CPP])dnl
AC_PATH_PROG(JAVAH,javah)
if test x"`eval 'echo $ac_cv_path_JAVAH'`" != x ; then
 AC_TRY_CPP([#include &lt;jni.h&gt;],,[
 ac_save_CPPFLAGS="$CPPFLAGS"
changequote(, )dnl
 ac_dir=`echo $ac_cv_path_JAVAH | sed 's,\(.*\)/[^/]*/[^/]*,ドル1円/include,'`
 ac_machdep=`echo $build_os | sed 's,[-0-9].*,,' | sed 's,cygwin,win32,'`
changequote([, ])dnl
 CPPFLAGS="$ac_save_CPPFLAGS -I$ac_dir -I$ac_dir/$ac_machdep"
 AC_TRY_CPP([#include &lt;jni.h&gt;],
 ac_save_CPPFLAGS="$CPPFLAGS",
 AC_MSG_WARN([unable to include &lt;jni.h&gt;]))
 CPPFLAGS="$ac_save_CPPFLAGS"])
fi])

AltStyle によって変換されたページ (->オリジナル) /