AC_ARG_ENABLE(nls,AS_HELP_STRING([--disable-nls],[disable installation of translation files]),enable_i18n="$enableval",enable_i18n=yes)
iftestx$enable_i18n=xyes;then
IT_PROG_INTLTOOL
GETTEXT_PACKAGE=pidgin
AC_SUBST(GETTEXT_PACKAGE)
ALL_LINGUAS="af am ar as ast az be@latin bg bn_IN bn br brx bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es_AR es et eu fa fi fr ga gl gu he hi hr hu id it ja ka kk km kn ko ks ku_IQ ku lt lv mai mhr mk ml mn mr ms_MY my_MM nb ne nl nn oc or pa pl ps pt_BR pt ro ru sd si sk sl sq sr@latin sr sv sw ta te th tr tt uk ur uz vi xh zh_CN zh_HK zh_TW"
AM_GLIB_GNU_GETTEXT
dnlIfwedon't have msgfmt, then po/ is going to fail -- ensure that
dnl AM_GLIB_GNU_GETTEXT found it.
if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x
then
AC_MSG_ERROR([
The msgfmt command is required to build libpurple. If it is installed
on your system, ensure that it is in your path. If it is not, install
GNU gettext to continue.
If you have msgfmt installed, but for some reason this error message
is still displayed, you have encountered what appears to be a bug in
third-party configure macros. Try setting the MSGFMT environment
variable to the absolute path to your msgfmt binary and trying
configure again, like this:
MSGFMT=/path/to/msgfmt ./configure ...
])
fi
fi #enable_i18n
AM_CONDITIONAL(INSTALL_I18N, test "x$enable_i18n" = "xyes")
AC_ARG_WITH(avahi-client-includes,[AS_HELP_STRING([--with-avahi-client-includes=DIR],[compile the Bonjour plugin against the Avahi Client includes in DIR])],[ac_avahi_client_includes="$withval"],[ac_avahi_client_includes="no"])
AC_ARG_WITH(avahi-client-libs,[AS_HELP_STRING([--with-avahi-client-libs=DIR],[compile the Bonjour plugin against the Avahi Client libs in DIR])],[ac_avahi_client_libs="$withval"],[ac_avahi_client_libs="no"])
AC_ARG_WITH(silc-includes,[AS_HELP_STRING([--with-silc-includes=DIR],[compile the SILC plugin against includes in DIR])],[ac_silc_includes="$withval"],[ac_silc_includes="no"])
AC_ARG_WITH(silc-libs,[AS_HELP_STRING([--with-silc-libs=DIR],[compile the SILC plugin against the SILC libs in DIR])],[ac_silc_libs="$withval"],[ac_silc_libs="no"])
AC_ARG_WITH(static-prpls,[AS_HELP_STRING([--with-static-prpls],[Link to certain protocols statically])],[STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`],[STATIC_PRPLS=""])
AC_ARG_ENABLE(glib-errors-trace,[AS_HELP_STRING([--enable-glib-errors-trace],[print backtraces for glib errors])],enable_glibtrace="$enableval",enable_glibtrace="no")
iftest"x$enable_glibtrace"="xyes";then
iftest"x$have_clang"="xyes";then
AC_MSG_ERROR([--enable-glib-errors-trace doesn't work with clang])
fi
AC_DEFINE(ENABLE_GLIBTRACE,1,[Define if backtraces should be printed for glib errors.])
AC_ARG_WITH(kwallet-includes,[AC_HELP_STRING([--with-kwallet-includes=DIR],[compile the KWallet plugin against includes in DIR])],[ac_kwallet_includes="$withval"],[ac_kwallet_includes="no"])
AC_ARG_WITH(kwallet-libs,[AC_HELP_STRING([--with-kwallet-libs=DIR],[compile the KWallet plugin against the KWallet libs in DIR])],[ac_kwallet_libs="$withval"],[ac_kwallet_libs="no"])
iftest"x$enable_kwallet"="xyes";then
dnlEnsureC++compilerworks
AC_CHECK_PROG(CXXTEST,[$CXX],[$CXX])
iftest"x$CXXTEST"="x";then
enable_kwallet=no
iftest"x$force_deps"="xyes";then
AC_MSG_ERROR([
A C++ compiler was not found.
Use --disable-kwallet if you do not need KWallet support.
])
fi
fi
fi
AC_LANG_PUSH([C++])
CPPFLAGS_save="$CPPFLAGS"
LIBS_save="$LIBS"
iftest"x$enable_kwallet"="xyes";then
PKG_CHECK_MODULES(QT4,[QtCore],[
AC_SUBST(QT4_CFLAGS)
AC_SUBST(QT4_LIBS)
],[
AC_MSG_RESULT(no)
enable_kwallet=no
if test "x$force_deps" = "xyes"; then
AC_MSG_ERROR([
Qt4 development headers not found.
Use --disable-kwallet if you do not need KWallet support.
AC_ARG_ENABLE(cyrus-sasl,AS_HELP_STRING([--enable-cyrus-sasl],[enable Cyrus SASL support for xmpp/irc]),enable_cyrus_sasl=$enableval,enable_cyrus_sasl=no)
iftest"x$enable_cyrus_sasl"="xyes";then
AC_CHECK_LIB(sasl2,sasl_client_init,[
AM_CONDITIONAL(USE_CYRUS_SASL, true)
AC_DEFINE(HAVE_CYRUS_SASL, [1],[Define to 1 if Cyrus SASL is present])
AC_ARG_ENABLE(trayicon-compat, AS_HELP_STRING([--enable-trayicon-compat], [install tray icons in location compatible with older releases of hicolor-icon-theme]), enable_traycompat="$enableval", enable_traycompat=no)
AM_CONDITIONAL(ENABLE_TRAYCOMPAT, test "x$enable_traycompat" = "xyes")
# check for gtk-doc
m4_ifdef([GTK_DOC_CHECK], [
GTK_DOC_CHECK([1.16],[--flavour no-tmpl])
],[
if test "x$force_deps" = "xyes" -a "x$enable_gtk_doc" = "xyes"; then
AC_MSG_ERROR([
You have requested to generate documentation, but gtk-doc was not found.