]>
Commit | Line | Data |
---|---|---|
79035f0d | 1 | AC_INIT |
22e05272 | 2 | AC_USE_SYSTEM_EXTENSIONS |
79035f0d | 3 | AC_CONFIG_SRCDIR(gettext.c) |
6eb95e99 | 4 | AC_CONFIG_HEADER(config.h) |
88fa57d7 | 5 | AC_CONFIG_MACRO_DIR(../config) |
6eb95e99 | 6 | AM_GNU_GETTEXT_VERSION(0.12.1) |
2d041117 | 7 | AM_GNU_GETTEXT([], [need-ngettext]) |
6eb95e99 | 8 | |
79035f0d | 9 | # This replaces the extensive use of DEFS in the original Makefile.in. |
6eb95e99 ZW |
10 | AC_DEFINE(IN_LIBINTL, 1, [Define because this is libintl.]) |
11 | AC_DEFINE(IN_LIBRARY, 1, [Define because this is a library.]) | |
12 | AC_DEFINE(DEPENDS_ON_LIBICONV, 1, [Define because we depend on libiconv.]) | |
13 | AC_DEFINE(ENABLE_RELOCATABLE, 1, [Define to enable relocation.]) | |
14 | AC_DEFINE(NO_XMALLOC, 1, [Define if there is no xmalloc.]) | |
15 | AC_DEFINE(set_relocation_prefix, libintl_set_relocation_prefix, | |
16 | [Define this entry point correctly.]) | |
17 | AC_DEFINE(relocate, libintl_relocate, | |
18 | [Define this entry point correctly.]) | |
19 | ||
88fa57d7 KC |
20 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing |
21 | AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal]) | |
22 | AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf]) | |
23 | AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader]) | |
24 | ||
25 | AC_ARG_ENABLE(maintainer-mode, | |
26 | [ --enable-maintainer-mode enable rules only needed by maintainers],, | |
27 | enable_maintainer_mode=no) | |
28 | if test "x$enable_maintainer_mode" = xno; then | |
29 | MAINT='#' | |
30 | else | |
31 | MAINT= | |
32 | fi | |
33 | AC_SUBST(MAINT) | |
34 | ||
79035f0d NN |
35 | # Additional info for config.intl. |
36 | AC_SUBST(LIBINTL_DEP) | |
37 | AC_SUBST(INCINTL) | |
56694dd9 | 38 | |
79035f0d NN |
39 | LIBINTL_DEP= |
40 | INCINTL= | |
41 | case $USE_INCLUDED_LIBINTL in | |
42 | yes) | |
5da9128a PB |
43 | LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' ` |
44 | LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' ` | |
45 | LIBINTL_DEP='${top_builddir}/../intl/libintl.a' | |
46 | INCINTL='-I${top_builddir}/../intl' | |
79035f0d NN |
47 | ;; |
48 | esac | |
56694dd9 | 49 | |
2ca17e0a JJ |
50 | BISON3_YES='#' |
51 | BISON3_NO= | |
52 | if test "$INTLBISON" != :; then | |
53 | ac_bison3=no | |
54 | AC_MSG_CHECKING([bison 3 or later]) | |
55 | changequote(<<,>>)dnl | |
56 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
57 | case $ac_prog_version in | |
58 | [3-9].*) | |
59 | changequote([,])dnl | |
60 | ac_prog_version="$ac_prog_version, bison3"; ac_bison3=yes;; | |
61 | *) ac_prog_version="$ac_prog_version, old";; | |
62 | esac | |
63 | AC_MSG_RESULT([$ac_prog_version]) | |
64 | if test $ac_bison3 = yes; then | |
2ca17e0a JJ |
65 | BISON3_YES= |
66 | BISON3_NO='#' | |
67 | fi | |
68 | fi | |
69 | AC_SUBST(BISON3_YES) | |
70 | AC_SUBST(BISON3_NO) | |
71 | ||
79035f0d NN |
72 | AC_CONFIG_FILES(Makefile config.intl) |
73 | AC_OUTPUT |