po-configure.ac.in 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. AC_INIT([@PACKAGE_NAME@],[@PACKAGE_VERSION@],[@PACKAGE_BUGREPORT@])
  2. CONFIG_STATUS='./po-config.status'
  3. AC_CONFIG_AUX_DIR([@MHD_AUX_DIR@])
  4. AC_CONFIG_MACRO_DIR([m4])
  5. AC_PRESERVE_HELP_ORDER
  6. AC_MSG_NOTICE([
  7. This special $as_me is designed to be run only internally as part of distribution tarball building process.
  8. The only purpose of the $as_me is a preparation of the files to update ${PACKAGE_TARNAME}.pot
  9. $as_me is not meant to be started by the user and is not needed to build ${PACKAGE_NAME} library.
  10. ])
  11. AC_MSG_NOTICE([Check src/examples/msgs_i18n.c for inspiration how to use ${PACKAGE_TARNAME}.pot])
  12. AM_PROG_INSTALL_SH
  13. AC_PROG_MKDIR_P
  14. AS_VAR_SET_IF([enable_nls], [], [[enable_nls=no]])
  15. AM_GNU_GETTEXT([external],[need-ngettext])
  16. AM_GNU_GETTEXT_REQUIRE_VERSION([0.18])
  17. m4_divert_text([HELP_VAR_END], [[
  18. ###############################################################################
  19. This special po-configure is designed to be run only internally as part of
  20. distribution tarball building process.
  21. The only purpose of the po-configure is a preparation of the files to update
  22. @PACKAGE_TARNAME@.pot
  23. po-configure is not meant to be started by the user and is not needed to build
  24. @PACKAGE_NAME@ library.
  25. ###############################################################################
  26. ]])
  27. # Hacks for libmicrohttpd
  28. AC_CONFIG_FILES([po/stamp-m],[echo 'timestamp' > po/stamp-m])
  29. AC_SUBST([POMAKEFILEDEPS],["POTFILES.in stamp-m"])
  30. AM_SUBST_NOTMAKE([POMAKEFILEDEPS])
  31. AC_SUBST([MHD_CONFIG_SHELL],["${CONFIG_SHELL}"])
  32. AC_SUBST([MHD_AUX_DIR],['@MHD_AUX_DIR@'])
  33. AC_CONFIG_FILES([po/Makefile.in])
  34. AS_IF([test -z "${XGETTEXT}" || test "x${XGETTEXT}" = "x:"], [AC_MSG_ERROR([Cannot find xgettext. xgettext is required to update distribution tarball files.])])
  35. AC_SUBST([PACKAGE],["${PACKAGE_TARNAME}"])
  36. AC_SUBST([VERSION],["${PACKAGE_VERSION}"])
  37. AC_SUBST([CROSS_COMPILING],["${cross_compiling}"])
  38. AC_SUBST([MKDIR_P])
  39. AC_SUBST([mkdir_p],['$(MKDIR_P)'])
  40. AC_OUTPUT