1 # java.m4 serial 1 (gettext-0.15) 2 dnl Copyright (C) 2005 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. 6 7 # Sets JAVA_CHOICE to 'yes', 'bytecode' or 'no', depending on the preferred 8 # use of Java. 9 AC_DEFUN([gt_JAVA_CHOICE], 10 [ 11 AC_MSG_CHECKING([whether to use Java]) 12 AC_ARG_ENABLE(java, 13 [ --disable-java do not build Java sources], 14 [JAVA_CHOICE="$enableval"], 15 [JAVA_CHOICE=yes]) 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]) 21 fi 22 AC_SUBST(JAVA_CHOICE) 23 ]) 24