source: plugins/base1/se.lu.thep.wenni/trunk/m4/ac_prog_jar.m4 @ 860

Last change on this file since 860 was 860, checked in by Peter Johansson, 14 years ago

adding tests for javac and jar - refs #153

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# ===========================================================================
2#              http://autoconf-archive.cryp.to/ac_prog_jar.html
3# ===========================================================================
4#
5# SYNOPSIS
6#
7#   AC_PROG_JAR
8#
9# DESCRIPTION
10#
11#   AC_PROG_JAR tests for an existing jar program. It uses the environment
12#   variable JAR then tests in sequence various common jar programs.
13#
14#   If you want to force a specific compiler:
15#
16#   - at the configure.in level, set JAR=yourcompiler before calling
17#   AC_PROG_JAR
18#
19#   - at the configure level, setenv JAR
20#
21#   You can use the JAR variable in your Makefile.in, with @JAR@.
22#
23#   Note: This macro depends on the autoconf M4 macros for Java programs. It
24#   is VERY IMPORTANT that you download that whole set, some macros depend
25#   on other. Unfortunately, the autoconf archive does not support the
26#   concept of set of macros, so I had to break it for submission.
27#
28#   The general documentation of those macros, as well as the sample
29#   configure.in, is included in the AC_PROG_JAVA macro.
30#
31# LAST MODIFICATION
32#
33#   2008-04-12
34#
35# COPYLEFT
36#
37#   Copyright (c) 2008 Egon Willighagen <e.willighagen@science.ru.nl>
38#
39#   Copying and distribution of this file, with or without modification, are
40#   permitted in any medium without royalty provided the copyright notice
41#   and this notice are preserved.
42
43AC_DEFUN([AC_PROG_JAR],[
44AC_REQUIRE([AC_EXEEXT])dnl
45if test "x$JAVAPREFIX" = x; then
46        test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar$EXEEXT)
47else
48        test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar, $JAVAPREFIX)
49fi
50test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH])
51AC_PROVIDE([$0])dnl
52])
Note: See TracBrowser for help on using the repository browser.