File: ax_java.m4

package info (click to toggle)
quickfix 1.15.1%2Bdfsg-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 42,080 kB
  • sloc: cpp: 631,686; python: 129,549; ruby: 106,716; xml: 43,737; ansic: 7,668; java: 1,826; cs: 816; makefile: 544; sh: 462; sql: 313
file content (24 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
AC_DEFUN([AX_JAVA],
[
has_java=false
AC_ARG_WITH(java,
    [  --with-java             will use $JAVA_HOME to find java],
    [if test $withval == "no"
     then
       has_java=false
     else
       has_java=true
     fi],
    has_java=false
)

if test $has_java = true
then
  jarlib=$libdir

  AC_SUBST(jarlib)
  AC_SUBST(JAVA_CFLAGS)
  AC_DEFINE(HAVE_JAVA, 1, Define if you have java)
fi
AM_CONDITIONAL(HAVE_JAVA, $has_java)
])