configure.ac 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. AC_PREREQ(2.64)
  2. AC_INIT
  3. AC_CONFIG_SRCDIR(gettext.c)
  4. AC_CONFIG_HEADER(config.h)
  5. AC_CONFIG_MACRO_DIR(../config)
  6. AM_GNU_GETTEXT_VERSION(0.12.1)
  7. AM_GNU_GETTEXT
  8. # This replaces the extensive use of DEFS in the original Makefile.in.
  9. AC_DEFINE(IN_LIBINTL, 1, [Define because this is libintl.])
  10. AC_DEFINE(IN_LIBRARY, 1, [Define because this is a library.])
  11. AC_DEFINE(DEPENDS_ON_LIBICONV, 1, [Define because we depend on libiconv.])
  12. AC_DEFINE(ENABLE_RELOCATABLE, 1, [Define to enable relocation.])
  13. AC_DEFINE(NO_XMALLOC, 1, [Define if there is no xmalloc.])
  14. AC_DEFINE(set_relocation_prefix, libintl_set_relocation_prefix,
  15. [Define this entry point correctly.])
  16. AC_DEFINE(relocate, libintl_relocate,
  17. [Define this entry point correctly.])
  18. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  19. AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
  20. AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
  21. AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
  22. AC_ARG_ENABLE(maintainer-mode,
  23. [ --enable-maintainer-mode enable rules only needed by maintainers],,
  24. enable_maintainer_mode=no)
  25. if test "x$enable_maintainer_mode" = xno; then
  26. MAINT='#'
  27. else
  28. MAINT=
  29. fi
  30. AC_SUBST(MAINT)
  31. # Additional info for config.intl.
  32. AC_SUBST(LIBINTL_DEP)
  33. AC_SUBST(INCINTL)
  34. LIBINTL_DEP=
  35. INCINTL=
  36. case $USE_INCLUDED_LIBINTL in
  37. yes)
  38. LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
  39. LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
  40. LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
  41. INCINTL='-I${top_builddir}/../intl'
  42. ;;
  43. esac
  44. AC_CONFIG_FILES(Makefile config.intl)
  45. AC_OUTPUT