Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-java / configure.ac
blob030c636b8cb5b326ea068562cfdfaaca14b50a06
1 dnl Example for use of GNU gettext.
2 dnl This file is in the public domain.
3 dnl
4 dnl Configuration file - processed by autoconf.
6 AC_INIT
7 AC_CONFIG_SRCDIR(Hello.java)
8 AM_INIT_AUTOMAKE(hello-java, 0)
10 dnl Check whether we can build native executable.
11 AC_ARG_ENABLE(java-exe,
12   [  --disable-java-exe      compile Java to bytecode only, not to native code],
13   :, enable_java_exe=yes)
14 gt_GCJ
15 if test "$enable_java_exe" != no && test -n "$HAVE_GCJ"; then
16   BUILDJAVAEXE=yes
17 else
18   BUILDJAVAEXE=no
20 AC_SUBST(BUILDJAVAEXE)
21 AM_CONDITIONAL([USEJEXE], [test "$BUILDJAVAEXE" = yes])
22 AC_PROG_RANLIB
24 dnl Check whether we can execute Java programs.
25 gt_JAVAEXEC
26 dnl Check whether we can build Java programs.
27 gt_JAVACOMP([1.3])
28 AC_CHECK_PROG(JAR, jar, jar)
29 if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
30   BUILDJAVA=yes
31 else
32   BUILDJAVA=no
34 AC_SUBST(BUILDJAVA)
35 if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
36   TESTJAVA=yes
37 else
38   TESTJAVA=no
40 AC_SUBST(TESTJAVA)
42 dnl Checks for compiler output filename suffixes.
43 AC_OBJEXT
44 AC_EXEEXT
46 dnl Checks for needed libraries.
47 AM_PATH_PROG_WITH_TEST([GETTEXT_WITH_LIBINTL_JAR], [gettext],
48   [{ basedir=`echo "$ac_dir" | sed -e 's,/bin$,,'`; test -r "$basedir"/share/gettext/libintl.jar; }])
49 if test -z "$GETTEXT_WITH_LIBINTL_JAR"; then
50   echo "Required library libintl.jar not found." 1>&2
51   exit 1
53 changequote(,)dnl
54 basedir=`echo "$GETTEXT_WITH_LIBINTL_JAR" | sed -e 's,/[^/]*$,,' | sed -e 's,/bin$,,'`
55 changequote([, ])dnl
56 LIBINTL_JAR="$basedir"/share/gettext/libintl.jar
57 AC_SUBST([LIBINTL_JAR])
59 dnl Support for the po directory.
60 AM_PO_SUBDIRS
62 AC_CONFIG_FILES([Makefile])
63 AC_CONFIG_FILES([javacomp.sh])
64 AC_CONFIG_FILES([javaexec.sh])
65 AC_CONFIG_FILES([m4/Makefile])
66 AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
67 AC_OUTPUT