1# java.m4 serial 2 2dnl Copyright (C) 2005, 2017 Free Software Foundation, Inc. 3dnl This file is free software; the Free Software Foundation 4dnl gives unlimited permission to copy and/or distribute it, 5dnl with or without modifications, as long as this notice is preserved. 6 7# Sets JAVA_CHOICE to 'yes' or 'no', depending on the preferred use of Java. 8AC_DEFUN([gt_JAVA_CHOICE], 9[ 10 AC_MSG_CHECKING([whether to use Java]) 11 AC_ARG_ENABLE(java, 12 [ --disable-java do not build Java sources], 13 [JAVA_CHOICE="$enableval"], 14 [JAVA_CHOICE=yes]) 15 AC_MSG_RESULT([$JAVA_CHOICE]) 16 AC_SUBST([JAVA_CHOICE]) 17]) 18