xref: /openbsd-src/gnu/gcc/intl/configure.ac (revision 404b540a9034ac75a6199ad1a32d1bbc7a0d4210)
1*404b540aSrobertAC_PREREQ(2.59)
2*404b540aSrobertAC_INIT
3*404b540aSrobertAC_CONFIG_SRCDIR(gettext.c)
4*404b540aSrobertAC_CONFIG_HEADER(config.h)
5*404b540aSrobertAC_CONFIG_MACRO_DIR(../config)
6*404b540aSrobertAM_GNU_GETTEXT_VERSION(0.12.1)
7*404b540aSrobertAM_GNU_GETTEXT
8*404b540aSrobert
9*404b540aSrobert# This replaces the extensive use of DEFS in the original Makefile.in.
10*404b540aSrobertAC_DEFINE(IN_LIBINTL, 1, [Define because this is libintl.])
11*404b540aSrobertAC_DEFINE(IN_LIBRARY, 1, [Define because this is a library.])
12*404b540aSrobertAC_DEFINE(DEPENDS_ON_LIBICONV, 1, [Define because we depend on libiconv.])
13*404b540aSrobertAC_DEFINE(ENABLE_RELOCATABLE, 1, [Define to enable relocation.])
14*404b540aSrobertAC_DEFINE(NO_XMALLOC, 1, [Define if there is no xmalloc.])
15*404b540aSrobertAC_DEFINE(set_relocation_prefix, libintl_set_relocation_prefix,
16*404b540aSrobert[Define this entry point correctly.])
17*404b540aSrobertAC_DEFINE(relocate, libintl_relocate,
18*404b540aSrobert[Define this entry point correctly.])
19*404b540aSrobert
20*404b540aSrobertMISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
21*404b540aSrobertAC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
22*404b540aSrobertAC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
23*404b540aSrobertAC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
24*404b540aSrobert
25*404b540aSrobertAC_ARG_ENABLE(maintainer-mode,
26*404b540aSrobert[  --enable-maintainer-mode enable rules only needed by maintainers],,
27*404b540aSrobertenable_maintainer_mode=no)
28*404b540aSrobertif test "x$enable_maintainer_mode" = xno; then
29*404b540aSrobert  MAINT='#'
30*404b540aSrobertelse
31*404b540aSrobert  MAINT=
32*404b540aSrobertfi
33*404b540aSrobertAC_SUBST(MAINT)
34*404b540aSrobert
35*404b540aSrobert# Additional info for config.intl.
36*404b540aSrobertAC_SUBST(LIBINTL_DEP)
37*404b540aSrobertAC_SUBST(INCINTL)
38*404b540aSrobert
39*404b540aSrobertLIBINTL_DEP=
40*404b540aSrobertINCINTL=
41*404b540aSrobertcase $USE_INCLUDED_LIBINTL in
42*404b540aSrobert  yes)
43*404b540aSrobert    LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
44*404b540aSrobert    LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
45*404b540aSrobert    LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
46*404b540aSrobert    INCINTL='-I${top_builddir}/../intl'
47*404b540aSrobert    ;;
48*404b540aSrobertesac
49*404b540aSrobert
50*404b540aSrobertAC_CONFIG_FILES(Makefile config.intl)
51*404b540aSrobertAC_OUTPUT
52