xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-python/configure.ac (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1*946379e7Schristosdnl Example for use of GNU gettext.
2*946379e7Schristosdnl Copyright (C) 2003, 2006 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.py.in)
9*946379e7SchristosAM_INIT_AUTOMAKE(hello-python, 0)
10*946379e7Schristos
11*946379e7Schristosdnl Check for availability of the Python interpreter.
12*946379e7SchristosAM_PATH_PYTHON
13*946379e7Schristosif test -z "$PYTHON"; then
14*946379e7Schristos  echo "*** Essential program python not found" 1>&2
15*946379e7Schristos  exit 1
16*946379e7Schristosfi
17*946379e7Schristos
18*946379e7Schristosdnl The installed program must know where to find its message catalogs.
19*946379e7Schristosdnl Unfortunately, prefix gets only finally determined at the end of configure.
20*946379e7Schristosif test "X$prefix" = "XNONE"; then
21*946379e7Schristos  final_prefix="$ac_default_prefix"
22*946379e7Schristoselse
23*946379e7Schristos  final_prefix="$prefix"
24*946379e7Schristosfi
25*946379e7Schristossave_prefix="$prefix"
26*946379e7Schristosprefix="$final_prefix"
27*946379e7Schristoseval "datarootdir=\"${datarootdir}\""
28*946379e7Schristoseval "localedir=\"${datadir}/locale\""
29*946379e7Schristosprefix="$save_prefix"
30*946379e7SchristosAC_SUBST(localedir)
31*946379e7Schristos
32*946379e7Schristosdnl Support for the po directory.
33*946379e7SchristosAM_PO_SUBDIRS
34*946379e7Schristos
35*946379e7SchristosAC_CONFIG_FILES([Makefile hello.py])
36*946379e7SchristosAC_CONFIG_FILES([m4/Makefile])
37*946379e7SchristosAC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
38*946379e7SchristosAC_OUTPUT
39