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.php) 9*946379e7SchristosAM_INIT_AUTOMAKE(hello-php, 0) 10*946379e7Schristos 11*946379e7Schristosdnl Check for availability of the PHP system. 12*946379e7SchristosAC_PATH_PROG(PHP, php) 13*946379e7Schristosif test -z "$PHP"; then 14*946379e7Schristos echo "*** Essential program php not found" 1>&2 15*946379e7Schristos exit 1 16*946379e7Schristosfi 17*946379e7SchristosAC_SUBST(PHP) 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 "datarootdir=\"${datarootdir}\"" 29*946379e7Schristoseval "localedir=\"${datadir}/locale\"" 30*946379e7Schristosprefix="$save_prefix" 31*946379e7SchristosAC_SUBST(localedir) 32*946379e7Schristos 33*946379e7Schristosdnl Support for the po directory. 34*946379e7SchristosAM_PO_SUBDIRS 35*946379e7Schristos 36*946379e7SchristosAC_CONFIG_FILES([Makefile]) 37*946379e7SchristosAC_CONFIG_FILES([hello:hello.php], [chmod a+x hello]) 38*946379e7SchristosAC_CONFIG_FILES([m4/Makefile]) 39*946379e7SchristosAC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE]) 40*946379e7SchristosAC_OUTPUT 41