1*63eb84d1Schristosdnl Example for use of GNU gettext.
2*63eb84d1Schristosdnl Copyright (C) 2003, 2006 Free Software Foundation, Inc.
3*63eb84d1Schristosdnl This file is in the public domain.
4*63eb84d1Schristosdnl
5*63eb84d1Schristosdnl Configuration file - processed by autoconf.
6*63eb84d1Schristos
7*63eb84d1SchristosAC_INIT
8*63eb84d1SchristosAC_CONFIG_SRCDIR(hello.php)
9*63eb84d1SchristosAM_INIT_AUTOMAKE(hello-php, 0)
10*63eb84d1Schristos
11*63eb84d1Schristosdnl Check for availability of the PHP system.
12*63eb84d1SchristosAC_PATH_PROG(PHP, php)
13*63eb84d1Schristosif test -z "$PHP"; then
14*63eb84d1Schristos  echo "*** Essential program php not found" 1>&2
15*63eb84d1Schristos  exit 1
16*63eb84d1Schristosfi
17*63eb84d1SchristosAC_SUBST(PHP)
18*63eb84d1Schristos
19*63eb84d1Schristosdnl The installed program must know where to find its message catalogs.
20*63eb84d1Schristosdnl Unfortunately, prefix gets only finally determined at the end of configure.
21*63eb84d1Schristosif test "X$prefix" = "XNONE"; then
22*63eb84d1Schristos  final_prefix="$ac_default_prefix"
23*63eb84d1Schristoselse
24*63eb84d1Schristos  final_prefix="$prefix"
25*63eb84d1Schristosfi
26*63eb84d1Schristossave_prefix="$prefix"
27*63eb84d1Schristosprefix="$final_prefix"
28*63eb84d1Schristoseval "datarootdir=\"${datarootdir}\""
29*63eb84d1Schristoseval "localedir=\"${datadir}/locale\""
30*63eb84d1Schristosprefix="$save_prefix"
31*63eb84d1SchristosAC_SUBST(localedir)
32*63eb84d1Schristos
33*63eb84d1Schristosdnl Support for the po directory.
34*63eb84d1SchristosAM_PO_SUBDIRS
35*63eb84d1Schristos
36*63eb84d1SchristosAC_CONFIG_FILES([Makefile])
37*63eb84d1SchristosAC_CONFIG_FILES([hello:hello.php], [chmod a+x hello])
38*63eb84d1SchristosAC_CONFIG_FILES([m4/Makefile])
39*63eb84d1SchristosAC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
40*63eb84d1SchristosAC_OUTPUT
41