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