1
dnl @synopsis AC_PROG_JAR
3
dnl AC_PROG_JAR tests for an existing jar program. It uses the environment
4
dnl variable JAR then tests in sequence various common jar programs.
6
dnl If you want to force a specific compiler:
8
dnl - at the configure.in level, set JAR=yourcompiler before calling
11
dnl - at the configure level, setenv JAR
13
dnl You can use the JAR variable in your Makefile.in, with @JAR@.
15
dnl Note: This macro depends on the autoconf M4 macros for Java programs.
16
dnl It is VERY IMPORTANT that you download that whole set, some
17
dnl macros depend on other. Unfortunately, the autoconf archive does not
18
dnl support the concept of set of macros, so I had to break it for
21
dnl The general documentation of those macros, as well as the sample
22
dnl configure.in, is included in the AC_PROG_JAVA macro.
24
dnl @author Egon Willighagen <egonw@sci.kun.nl>
27
AC_DEFUN([AC_PROG_JAR],[
28
AC_REQUIRE([AC_EXEEXT])dnl
29
if test "x$JAVAPREFIX" = x; then
30
test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar$EXEEXT)
32
test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar, $JAVAPREFIX)
34
test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH])