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