xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-tcl-tk/configure.ac (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1*946379e7Schristosdnl Example for use of GNU gettext.
2*946379e7Schristosdnl Copyright (C) 2003 Free Software Foundation, Inc.
3*946379e7Schristosdnl This file is in the public domain.
4*946379e7Schristosdnl
5*946379e7Schristosdnl Configuration file - processed by autoconf.
6*946379e7Schristos
7*946379e7SchristosAC_INIT
8*946379e7SchristosAC_CONFIG_SRCDIR(hello.tcl)
9*946379e7SchristosAM_INIT_AUTOMAKE(hello-tcl-tk, 0)
10*946379e7Schristos
11*946379e7Schristosdnl Check for availability of the Tcl/Tk interpreter.
12*946379e7SchristosAC_PATH_PROG(WISH, wish)
13*946379e7Schristosif test -z "$WISH"; then
14*946379e7Schristos  echo "*** Essential program wish not found" 1>&2
15*946379e7Schristos  exit 1
16*946379e7Schristosfi
17*946379e7SchristosAC_SUBST(WISH)
18*946379e7Schristos
19*946379e7Schristosdnl The installed program must know where to find its message catalogs.
20*946379e7Schristosdnl Unfortunately, prefix gets only finally determined at the end of configure.
21*946379e7Schristosif test "X$prefix" = "XNONE"; then
22*946379e7Schristos  final_prefix="$ac_default_prefix"
23*946379e7Schristoselse
24*946379e7Schristos  final_prefix="$prefix"
25*946379e7Schristosfi
26*946379e7Schristossave_prefix="$prefix"
27*946379e7Schristosprefix="$final_prefix"
28*946379e7Schristoseval "pkgdatadir=\"${datadir}/${PACKAGE}\""
29*946379e7Schristosprefix="$save_prefix"
30*946379e7SchristosAC_SUBST(pkgdatadir)
31*946379e7Schristos
32*946379e7Schristosdnl Support for the po directory.
33*946379e7SchristosAM_PO_SUBDIRS
34*946379e7Schristos
35*946379e7SchristosAC_CONFIG_FILES([Makefile])
36*946379e7SchristosAC_CONFIG_FILES([hello:hello.tcl], [chmod a+x hello])
37*946379e7SchristosAC_CONFIG_FILES([m4/Makefile])
38*946379e7SchristosAC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
39*946379e7SchristosAC_OUTPUT
40