Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / examples / hello-tcl-tk / configure.ac
blob786f9b7a314986334326869e2d61890df3101175
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.tcl)
8 AM_INIT_AUTOMAKE(hello-tcl-tk, 0)
10 dnl Check for availability of the Tcl/Tk interpreter.
11 AC_PATH_PROG(WISH, wish)
12 if test -z "$WISH"; then
13   echo "*** Essential program wish not found" 1>&2
14   exit 1
16 AC_SUBST(WISH)
18 dnl The installed program must know where to find its message catalogs.
19 dnl Unfortunately, prefix gets only finally determined at the end of configure.
20 if test "X$prefix" = "XNONE"; then
21   final_prefix="$ac_default_prefix"
22 else
23   final_prefix="$prefix"
25 save_prefix="$prefix"
26 prefix="$final_prefix"
27 eval "pkgdatadir=\"${datadir}/${PACKAGE}\""
28 prefix="$save_prefix"
29 AC_SUBST(pkgdatadir)
31 dnl Support for the po directory.
32 AM_PO_SUBDIRS
34 AC_CONFIG_FILES([Makefile])
35 AC_CONFIG_FILES([hello:hello.tcl], [chmod a+x hello])
36 AC_CONFIG_FILES([m4/Makefile])
37 AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
38 AC_OUTPUT