~ubuntu-branches/ubuntu/wily/ust/wily-proposed

« back to all changes in this revision

Viewing changes to config/ax_prog_jar.m4

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2015-06-24 14:18:03 UTC
  • mfrom: (11.2.11 sid)
  • Revision ID: package-import@ubuntu.com-20150624141803-zfj6xzpr7dlxiysg
Tags: 2.6.2-1ubuntu1
* Merge from Debian unstable. (LP: #1468345) Remaining changes:
  - debian/control, debian/patches/use-python3.patch:
    + Switch to use python3. (Closes: #789790)
* Drop following changes, fixed in Debian / upstream:
  - debian/patches/0001-Add-aarch64-host-cpu-in-configure.ac.patch:
    + Add arm64 host_cpu stanzas in configure.ac
  - debian/liblttng-ust0.symbols:
    + Update symbols file.
  - debian/control:
    + Enable builds on arm64 and ppc64el.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ===========================================================================
 
2
#        http://www.gnu.org/software/autoconf-archive/ax_prog_jar.html
 
3
# ===========================================================================
 
4
#
 
5
# SYNOPSIS
 
6
#
 
7
#   AX_PROG_JAR
 
8
#
 
9
# DESCRIPTION
 
10
#
 
11
#   AX_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
#   AX_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 AX_PROG_JAVA macro.
 
30
#
 
31
# LICENSE
 
32
#
 
33
#   Copyright (c) 2008 Egon Willighagen <e.willighagen@science.ru.nl>
 
34
#
 
35
#   Copying and distribution of this file, with or without modification, are
 
36
#   permitted in any medium without royalty provided the copyright notice
 
37
#   and this notice are preserved. This file is offered as-is, without any
 
38
#   warranty.
 
39
 
 
40
#serial 7
 
41
 
 
42
AU_ALIAS([AC_PROG_JAR], [AX_PROG_JAR])
 
43
AC_DEFUN([AX_PROG_JAR],[
 
44
AS_IF([test "x$JAVAPREFIX" = x],
 
45
      [test "x$JAR" = x && AC_CHECK_PROGS([JAR], [jar])],
 
46
      [test "x$JAR" = x && AC_CHECK_PROGS([JAR], [jar], [], [$JAVAPREFIX/bin])])
 
47
test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH])
 
48
AC_PROVIDE([$0])dnl
 
49
])