1 dnl Process this file with autoconf to produce a configure script.
5 test -z "$PERL" && AC_MSG_ERROR([perl 5.8 required])
7 AC_PERL_MODULE(Locale::gettext)
8 AC_PATH_PROG(MSGFMT, msgfmt)
11 AC_SEARCH_LIBS(dlsym, dl)
12 AC_SEARCH_LIBS(bindtextdomain, intl)
15 test "x$ac_cv_module_Locale__gettext" = xno && nls_default=no
16 test -z "$MSGFMT" && nls_default=no
17 test "x$ac_cv_search_dlsym" = xno && nls_default=no
18 test "x$ac_cv_search_bindtextdomain" = xno && nls_default=no
20 AC_ARG_ENABLE([nls], AC_HELP_STRING([--enable-nls],
21 [enable support for generating localised pages]),
22 [ac_cv_enable_nls=$enableval], [ac_cv_enable_nls=$nls_default])
24 AC_SUBST(extra_make_all, '')
25 AC_SUBST(extra_make_install, '')
26 AC_SUBST(extra_extract_args, '')
27 if test "$ac_cv_enable_nls" = yes
29 # note: the following tests should match what is used to set nls_default above
30 test "x$ac_cv_module_Locale__gettext" = xno &&
31 AC_MSG_ERROR([perl module Locale::gettext required])
33 test -z "$MSGFMT" && AC_MSG_ERROR([gettext required])
35 test "x$ac_cv_search_dlsym" = xno &&
36 AC_MSG_ERROR([dlsym() required])
38 test "x$ac_cv_search_bindtextdomain" = xno &&
39 AC_MSG_ERROR([bindtextdomain() required])
41 extra_make_all='preload man_l10n'
42 extra_make_install='install_preload install_l10n'
43 extra_extract_args='--with-gettext'
47 AC_PATH_PROG(MAKEINFO, makeinfo, :)
48 AC_PATH_PROG(INSTALL_INFO, install-info, :)