]> git.ipfire.org Git - thirdparty/gcc.git/blame - intl/configure.ac
[C++] Protect call to copy_attributes_to_builtin (PR91505)
[thirdparty/gcc.git] / intl / configure.ac
CommitLineData
43f0acf2 1AC_INIT
f00f02a3 2AC_USE_SYSTEM_EXTENSIONS
43f0acf2 3AC_CONFIG_SRCDIR(gettext.c)
1e12d536 4AC_CONFIG_HEADER(config.h)
986086aa 5AC_CONFIG_MACRO_DIR(../config)
1e12d536 6AM_GNU_GETTEXT_VERSION(0.12.1)
71ff36bc 7AM_GNU_GETTEXT([], [need-ngettext])
1e12d536 8
43f0acf2 9# This replaces the extensive use of DEFS in the original Makefile.in.
1e12d536 10AC_DEFINE(IN_LIBINTL, 1, [Define because this is libintl.])
11AC_DEFINE(IN_LIBRARY, 1, [Define because this is a library.])
12AC_DEFINE(DEPENDS_ON_LIBICONV, 1, [Define because we depend on libiconv.])
13AC_DEFINE(ENABLE_RELOCATABLE, 1, [Define to enable relocation.])
14AC_DEFINE(NO_XMALLOC, 1, [Define if there is no xmalloc.])
15AC_DEFINE(set_relocation_prefix, libintl_set_relocation_prefix,
16[Define this entry point correctly.])
17AC_DEFINE(relocate, libintl_relocate,
18[Define this entry point correctly.])
19
986086aa 20MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
21AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
22AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
23AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
24
25AC_ARG_ENABLE(maintainer-mode,
26[ --enable-maintainer-mode enable rules only needed by maintainers],,
27enable_maintainer_mode=no)
28if test "x$enable_maintainer_mode" = xno; then
29 MAINT='#'
30else
31 MAINT=
32fi
33AC_SUBST(MAINT)
34
43f0acf2 35# Additional info for config.intl.
36AC_SUBST(LIBINTL_DEP)
37AC_SUBST(INCINTL)
c6976b58 38
43f0acf2 39LIBINTL_DEP=
40INCINTL=
41case $USE_INCLUDED_LIBINTL in
42 yes)
741b7726 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'
43f0acf2 47 ;;
48esac
c6976b58 49
43f0acf2 50AC_CONFIG_FILES(Makefile config.intl)
51AC_OUTPUT