~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to libdb/dist/aclocal_java/ac_prog_javac_works.ac

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl @synopsis AC_PROG_JAVAC_WORKS
2
 
dnl
3
 
dnl Internal use ONLY.
4
 
dnl
5
 
dnl Note: This is part of the set of autoconf M4 macros for Java programs.
6
 
dnl It is VERY IMPORTANT that you download the whole set, some
7
 
dnl macros depend on other. Unfortunately, the autoconf archive does not
8
 
dnl support the concept of set of macros, so I had to break it for
9
 
dnl submission.
10
 
dnl The general documentation, as well as the sample configure.in, is
11
 
dnl included in the AC_PROG_JAVA macro.
12
 
dnl
13
 
dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
14
 
dnl @version $Id$
15
 
dnl
16
 
AC_DEFUN([AC_PROG_JAVAC_WORKS],[
17
 
AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [
18
 
JAVA_TEST=Test.java
19
 
CLASS_TEST=Test.class
20
 
cat << \EOF > $JAVA_TEST
21
 
/* [#]line __oline__ "configure" */
22
 
public class Test {
23
 
}
24
 
EOF
25
 
if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then
26
 
  ac_cv_prog_javac_works=yes
27
 
else
28
 
  AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)])
29
 
  echo "configure: failed program was:" >&AC_FD_CC
30
 
  cat $JAVA_TEST >&AC_FD_CC
31
 
fi
32
 
rm -f $JAVA_TEST $CLASS_TEST
33
 
])
34
 
AC_PROVIDE([$0])dnl
35
 
])