/[classpath]/gjdoc/m4/ac_prog_jar.m4
ViewVC logotype

Diff of /gjdoc/m4/ac_prog_jar.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by julian, Wed Feb 9 18:09:40 2005 UTC revision 1.2 by julian, Wed Feb 9 20:33:55 2005 UTC
# Line 1  Line 1 
1  dnl Available from the GNU Autoconf Macro Archive at:  dnl Available from the GNU Autoconf Macro Archive at:
2  dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_prog_jar.html  dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_prog_jar.html
3  dnl  dnl
4    dnl Changes for gjdoc: check for "fastjar, jar", not only "jar";
5    dnl output warning if detected jar is kaffe jar.
6    dnl
7  AC_DEFUN([AC_PROG_JAR],[  AC_DEFUN([AC_PROG_JAR],[
8  AC_REQUIRE([AC_EXEEXT])dnl  AC_REQUIRE([AC_EXEEXT])dnl
9  if test "x$JAVAPREFIX" = x; then  if test "x$JAVAPREFIX" = x; then
10          test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar$EXEEXT)          test "x$JAR" = x && AC_CHECK_PROGS(JAR, fastjar$EXEEXT jar$EXEEXT)
11  else  else
12          test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar, $JAVAPREFIX)          test "x$JAR" = x && AC_CHECK_PROGS(JAR, fastjar$EXEEXT jar$EXEEXT, $JAVAPREFIX)
13  fi  fi
14  test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH])  test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH])
15    grep kaffe\.tools\.jar\.Jar $JAR >/dev/null || \
16      AC_MSG_WARN([The build seems to be using the Jar tool that comes with
17    Kaffe. Note that there are known issues in some versions of this tool.
18    If you see error messages from the Jar tool, or the build hangs,
19    please set environment variable JAR to a working Jar tool.])
20  AC_PROVIDE([$0])dnl  AC_PROVIDE([$0])dnl
21  ])  ])

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26