/mingw/share/doc/gettext/examples/hello-php/configure.ac

https://code.google.com/ · m4 · 39 lines · 34 code · 5 blank · 0 comment · 0 complexity · 748b253dcadc23727703f45925f550dc MD5 · raw file

  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.
  5. AC_INIT
  6. AC_CONFIG_SRCDIR(hello.php)
  7. AM_INIT_AUTOMAKE(hello-php, 0)
  8. dnl Check for availability of the PHP system.
  9. AC_PATH_PROG(PHP, php)
  10. if test -z "$PHP"; then
  11. echo "*** Essential program php not found" 1>&2
  12. exit 1
  13. fi
  14. AC_SUBST(PHP)
  15. dnl The installed program must know where to find its message catalogs.
  16. dnl Unfortunately, prefix gets only finally determined at the end of configure.
  17. if test "X$prefix" = "XNONE"; then
  18. final_prefix="$ac_default_prefix"
  19. else
  20. final_prefix="$prefix"
  21. fi
  22. save_prefix="$prefix"
  23. prefix="$final_prefix"
  24. eval "datarootdir=\"${datarootdir}\""
  25. eval "localedir=\"${datadir}/locale\""
  26. prefix="$save_prefix"
  27. AC_SUBST(localedir)
  28. dnl Support for the po directory.
  29. AM_PO_SUBDIRS
  30. AC_CONFIG_FILES([Makefile])
  31. AC_CONFIG_FILES([hello:hello.php], [chmod a+x hello])
  32. AC_CONFIG_FILES([m4/Makefile])
  33. AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
  34. AC_OUTPUT