2
0

gcj.m4 649 B

123456789101112131415161718
  1. # Check for Java compiler. -*- Autoconf -*-
  2. # For now we only handle the GNU compiler.
  3. # Copyright (C) 1999-2017 Free Software Foundation, Inc.
  4. #
  5. # This file is free software; the Free Software Foundation
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8. AC_DEFUN([AM_PROG_GCJ],
  9. [AC_CHECK_TOOLS([GCJ], [gcj], [gcj])
  10. test -z "$GCJ" && AC_MSG_ERROR([no acceptable gcj found in \$PATH])
  11. if test "x${GCJFLAGS-unset}" = xunset; then
  12. GCJFLAGS="-g -O2"
  13. fi
  14. AC_SUBST([GCJFLAGS])
  15. _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES(GCJ)])
  16. ])