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-tcl-tk], [0]) 7AC_CONFIG_SRCDIR([hello.tcl]) 8AM_INIT_AUTOMAKE([1.11]) 9 10dnl Check for availability of the Tcl/Tk interpreter. 11AC_PATH_PROG([WISH], [wish]) 12if test -z "$WISH"; then 13 echo "*** Essential program wish not found" 1>&2 14 exit 1 15fi 16AC_SUBST([WISH]) 17 18dnl The installed program must know where to find its message catalogs. 19dnl Unfortunately, prefix gets only finally determined at the end of configure. 20if test "X$prefix" = "XNONE"; then 21 final_prefix="$ac_default_prefix" 22else 23 final_prefix="$prefix" 24fi 25save_prefix="$prefix" 26prefix="$final_prefix" 27save_datarootdir="$datarootdir" 28eval "datarootdir=\"${datarootdir}\"" 29save_datadir="$datadir" 30eval "datadir=\"${datadir}\"" 31pkgdatadir="${datadir}/${PACKAGE}" 32datadir="$save_datadir" 33datarootdir="$save_datarootdir" 34prefix="$save_prefix" 35AC_SUBST([pkgdatadir]) 36 37dnl Support for the po directory. 38AM_PO_SUBDIRS 39 40AC_CONFIG_FILES([Makefile]) 41AC_CONFIG_FILES([hello:hello.tcl], [chmod a+x hello]) 42AC_CONFIG_FILES([m4/Makefile]) 43AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE]) 44AC_OUTPUT 45