1dnl Example for use of GNU gettext. 2dnl This file is in the public domain. 3dnl 4dnl Configuration file - processed by autoconf. 5 6AC_INIT([hello-java], [0]) 7AC_CONFIG_SRCDIR([Hello.java]) 8AM_INIT_AUTOMAKE([1.11]) 9 10dnl Check whether we can execute Java programs. 11gt_JAVAEXEC 12dnl Check whether we can build Java programs. 13gt_JAVACOMP([1.5]) 14AC_CHECK_PROG([JAR], [jar], [jar]) 15if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then 16 BUILDJAVA=yes 17else 18 BUILDJAVA=no 19fi 20AC_SUBST([BUILDJAVA]) 21if test -n "$HAVE_JAVAEXEC" && test "$BUILDJAVA" = yes; then 22 TESTJAVA=yes 23else 24 TESTJAVA=no 25fi 26AC_SUBST([TESTJAVA]) 27 28dnl Checks for compiler output filename suffixes. 29AC_OBJEXT 30AC_EXEEXT 31 32dnl Checks for needed libraries. 33AM_PATH_PROG_WITH_TEST([GETTEXT_WITH_LIBINTL_JAR], [gettext], 34 [{ basedir=`echo "$ac_dir" | sed -e 's,/bin$,,'`; test -r "$basedir"/share/gettext/libintl.jar; }]) 35if test -z "$GETTEXT_WITH_LIBINTL_JAR"; then 36 echo "Required library libintl.jar not found." 1>&2 37 exit 1 38fi 39changequote(,)dnl 40basedir=`echo "$GETTEXT_WITH_LIBINTL_JAR" | sed -e 's,/[^/]*$,,' | sed -e 's,/bin$,,'` 41changequote([, ])dnl 42LIBINTL_JAR="$basedir"/share/gettext/libintl.jar 43AC_SUBST([LIBINTL_JAR]) 44 45dnl Support for the po directory. 46AM_PO_SUBDIRS 47 48AC_CONFIG_FILES([Makefile]) 49AC_CONFIG_FILES([javacomp.sh]) 50AC_CONFIG_FILES([javaexec.sh]) 51AC_CONFIG_FILES([m4/Makefile]) 52AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE]) 53AC_OUTPUT 54