1 # java.m4 serial 1 (gettext-0.15)
2 dnl Copyright (C) 2005, 2015 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 # Sets JAVA_CHOICE to 'yes', 'bytecode' or 'no', depending on the preferred
9 AC_DEFUN([gt_JAVA_CHOICE],
11 AC_MSG_CHECKING([whether to use Java])
13 [ --disable-java do not build Java sources],
14 [JAVA_CHOICE="$enableval"],
16 AC_MSG_RESULT([$JAVA_CHOICE])
17 if test "$JAVA_CHOICE" = yes; then
18 AC_ARG_ENABLE(native-java,
19 [ --disable-native-java do not compile Java to native executables],
20 [test "$enableval" != no || JAVA_CHOICE=bytecode])