Blame config/ax_prog_jar.m4

Packit c04fcb
# ===========================================================================
Packit c04fcb
#        http://www.gnu.org/software/autoconf-archive/ax_prog_jar.html
Packit c04fcb
# ===========================================================================
Packit c04fcb
#
Packit c04fcb
# SYNOPSIS
Packit c04fcb
#
Packit c04fcb
#   AX_PROG_JAR
Packit c04fcb
#
Packit c04fcb
# DESCRIPTION
Packit c04fcb
#
Packit c04fcb
#   AX_PROG_JAR tests for an existing jar program. It uses the environment
Packit c04fcb
#   variable JAR then tests in sequence various common jar programs.
Packit c04fcb
#
Packit c04fcb
#   If you want to force a specific compiler:
Packit c04fcb
#
Packit c04fcb
#   - at the configure.in level, set JAR=yourcompiler before calling
Packit c04fcb
#   AX_PROG_JAR
Packit c04fcb
#
Packit c04fcb
#   - at the configure level, setenv JAR
Packit c04fcb
#
Packit c04fcb
#   You can use the JAR variable in your Makefile.in, with @JAR@.
Packit c04fcb
#
Packit c04fcb
#   Note: This macro depends on the autoconf M4 macros for Java programs. It
Packit c04fcb
#   is VERY IMPORTANT that you download that whole set, some macros depend
Packit c04fcb
#   on other. Unfortunately, the autoconf archive does not support the
Packit c04fcb
#   concept of set of macros, so I had to break it for submission.
Packit c04fcb
#
Packit c04fcb
#   The general documentation of those macros, as well as the sample
Packit c04fcb
#   configure.in, is included in the AX_PROG_JAVA macro.
Packit c04fcb
#
Packit c04fcb
# LICENSE
Packit c04fcb
#
Packit c04fcb
#   Copyright (c) 2008 Egon Willighagen <e.willighagen@science.ru.nl>
Packit c04fcb
#
Packit c04fcb
#   Copying and distribution of this file, with or without modification, are
Packit c04fcb
#   permitted in any medium without royalty provided the copyright notice
Packit c04fcb
#   and this notice are preserved. This file is offered as-is, without any
Packit c04fcb
#   warranty.
Packit c04fcb
Packit c04fcb
#serial 7
Packit c04fcb
Packit c04fcb
AU_ALIAS([AC_PROG_JAR], [AX_PROG_JAR])
Packit c04fcb
AC_DEFUN([AX_PROG_JAR],[
Packit c04fcb
AS_IF([test "x$JAVAPREFIX" = x],
Packit c04fcb
      [test "x$JAR" = x && AC_CHECK_PROGS([JAR], [jar])],
Packit c04fcb
      [test "x$JAR" = x && AC_CHECK_PROGS([JAR], [jar], [], [$JAVAPREFIX/bin])])
Packit c04fcb
test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH])
Packit c04fcb
AC_PROVIDE([$0])dnl
Packit c04fcb
])