Mercurial > hg > libxtract
comparison configure.in @ 92:35a3bb5c3ffd
Java bindings (with simple test) now working. Unified Python and Java bindings tests.
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Thu, 06 Sep 2007 14:05:37 +0000 |
parents | 8553b27a5062 |
children | a159098a759e |
comparison
equal
deleted
inserted
replaced
91:84fea00d8509 | 92:35a3bb5c3ffd |
---|---|
83 echo | 83 echo |
84 echo "fftw3 dir is $withval" | 84 echo "fftw3 dir is $withval" |
85 echo | 85 echo |
86 ]) | 86 ]) |
87 | 87 |
88 dnl set a specific java compiler | |
89 AC_ARG_WITH(javac, | |
90 [ --with-javac=compiler set a specific java compiler (determined automatically if not set) ], | |
91 [JAVAC="$withval" | |
92 echo | |
93 echo "JAVAC is set to $withval" | |
94 echo | |
95 ]) | |
96 | |
88 dnl If --enable-swig, make with java bindings | 97 dnl If --enable-swig, make with java bindings |
89 AC_ARG_WITH(java, | 98 AC_ARG_WITH(java, |
90 [ --with-java If --enable-swig - make with java bindings (default=no) ], | 99 [ --with-java If --enable-swig - make with java bindings (default=no) ], |
91 [with_java=true]) | 100 [with_java=true]) |
92 | 101 |
148 AC_PROG_SWIG(1.3.21) | 157 AC_PROG_SWIG(1.3.21) |
149 AC_DEFINE([BUILD_SWIG], [1], [Build the swig bindings]) | 158 AC_DEFINE([BUILD_SWIG], [1], [Build the swig bindings]) |
150 fi | 159 fi |
151 | 160 |
152 if [[ "$with_java" = "true" ]] ; then | 161 if [[ "$with_java" = "true" ]] ; then |
153 AC_PROG_JAVAC | 162 if test "$JAVAC" = "" |
163 then | |
164 AC_PROG_JAVAC | |
165 fi | |
154 if test "$JAVAC" = "javac" | 166 if test "$JAVAC" = "javac" |
155 then | 167 then |
156 AC_JNI_INCLUDE_DIR | 168 AC_JNI_INCLUDE_DIR |
157 | 169 |
158 | |
159 for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS | 170 for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS |
160 do | 171 do |
161 CFLAGS="$CFLAGS -I$JNI_INCLUDE_DIR" | 172 CFLAGS="$CFLAGS -I$JNI_INCLUDE_DIR" |
162 done | 173 done |
163 fi | 174 fi |