55 |
esac], |
esac], |
56 |
[COMPILE_CNI=no]) |
[COMPILE_CNI=no]) |
57 |
|
|
58 |
AM_CONDITIONAL(CREATE_JNI_HEADERS, test x$COMPILE_JNI = xyes) |
AM_CONDITIONAL(CREATE_JNI_HEADERS, test "x${COMPILE_JNI}" = xyes) |
59 |
AM_CONDITIONAL(CREATE_JNI_LIBRARIES, test x$COMPILE_JNI = xyes) |
AM_CONDITIONAL(CREATE_JNI_LIBRARIES, test "x${COMPILE_JNI}" = xyes) |
60 |
AM_CONDITIONAL(CREATE_CNI_LIBRARIES, test x$COMPILE_CNI = xyes) |
AM_CONDITIONAL(CREATE_CNI_LIBRARIES, test "x${COMPILE_CNI}" = xyes) |
61 |
|
|
62 |
AC_PROG_LN_S |
AC_PROG_LN_S |
63 |
AC_PROG_INSTALL |
AC_PROG_INSTALL |
73 |
AC_PROG_CC |
AC_PROG_CC |
74 |
AC_PROG_CPP |
AC_PROG_CPP |
75 |
|
|
76 |
if test "${COMPILE_JNI}" = "yes"; then |
if test "x${COMPILE_JNI}" = xyes; then |
77 |
AC_HEADER_STDC |
AC_HEADER_STDC |
78 |
AC_CHECK_HEADERS(unistd.h sys/types.h sys/config.h inttypes.h stdint.h) |
AC_CHECK_HEADERS(unistd.h sys/types.h sys/config.h inttypes.h stdint.h) |
79 |
AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED)) |
AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED)) |
103 |
CFLAGS="-g" |
CFLAGS="-g" |
104 |
|
|
105 |
dnl We want warnings, lots of warnings :-) |
dnl We want warnings, lots of warnings :-) |
106 |
if eval "test x$GCC = xyes"; then |
if test "x${GCC}" = xyes; then |
107 |
JAPHAR_GREP_CFLAGS(-Wall, [ CFLAGS="$CFLAGS -Wall" ]) |
JAPHAR_GREP_CFLAGS(-Wall, [ CFLAGS="$CFLAGS -Wall" ]) |
108 |
fi |
fi |
109 |
|
|
114 |
dnl XXX Fix me when libart.m4 has the compile test fixed! |
dnl XXX Fix me when libart.m4 has the compile test fixed! |
115 |
enable_libarttest=no |
enable_libarttest=no |
116 |
AM_PATH_LIBART(2.1.0,,exit 1) |
AM_PATH_LIBART(2.1.0,,exit 1) |
117 |
|
fi |
118 |
|
|
119 |
CLASSPATH_WITH_JAVAH |
CLASSPATH_WITH_JAVAH |
120 |
|
|
121 |
CLASSPATH_WITH_INCLUDEDIR |
CLASSPATH_WITH_INCLUDEDIR |
122 |
|
|
123 |
|
if test "x${COMPILE_JNI}" = xyes; then |
124 |
AC_MSG_CHECKING("jni_md.h support") |
AC_MSG_CHECKING("jni_md.h support") |
125 |
if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then |
if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then |
126 |
AC_MSG_RESULT("yes") |
AC_MSG_RESULT("yes") |
179 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-load-library) ;; |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-load-library) ;; |
180 |
esac], |
esac], |
181 |
[ |
[ |
182 |
if test "$COMPILE_CNI" = "yes"; then |
if test "x${COMPILE_CNI}" = xyes; then |
183 |
INIT_LOAD_LIBRARY="false" |
INIT_LOAD_LIBRARY="false" |
184 |
else |
else |
185 |
INIT_LOAD_LIBRARY="true" |
INIT_LOAD_LIBRARY="true" |
207 |
|
|
208 |
|
|
209 |
dnl Create a link to the VM specific files we're compiling with |
dnl Create a link to the VM specific files we're compiling with |
210 |
if test x"$JVM_REFERENCE" = x; then |
if test "x${JVM_REFERENCE}" = x; then |
211 |
JVM_REFERENCE=reference |
JVM_REFERENCE=reference |
212 |
fi |
fi |
213 |
AC_LINK_FILES(vm/$JVM_REFERENCE, vm/current) |
AC_LINK_FILES(vm/$JVM_REFERENCE, vm/current) |
227 |
dnl AC_PATH_PROG(UNZIP, unzip) |
dnl AC_PATH_PROG(UNZIP, unzip) |
228 |
dnl AC_PATH_PROG(PERL, perl) |
dnl AC_PATH_PROG(PERL, perl) |
229 |
|
|
230 |
AM_CONDITIONAL(HAVE_ZIP, test x$ZIP != x) |
AM_CONDITIONAL(HAVE_ZIP, test "x${ZIP}" != x) |
231 |
|
|
232 |
AC_OUTPUT(Makefile |
AC_OUTPUT(Makefile |
233 |
com/Makefile |
com/Makefile |