Mercurial > pidgin.yaz
comparison configure.ac @ 27967:e1cd44c7c7af
explicit merge of 'd957c051e839d63bfc0ef71320934890e7ae63c4'
and '7fbd51e5a790f5cf3275a0bb8a8198acd078b4ec'
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 25 Jul 2009 04:54:36 +0000 |
parents | 85fa979b08c2 e5fdfff98aa9 |
children | 0754698c49f4 |
comparison
equal
deleted
inserted
replaced
27966:b4daae0798e3 | 27967:e1cd44c7c7af |
---|---|
602 sqlite3 development headers not found. | 602 sqlite3 development headers not found. |
603 Use --disable-cap if you do not need the Contact Availability Prediction plugin. | 603 Use --disable-cap if you do not need the Contact Availability Prediction plugin. |
604 ]) | 604 ]) |
605 fi]) | 605 fi]) |
606 fi | 606 fi |
607 | 607 |
608 | 608 |
609 else # GTK | 609 else # GTK |
610 enable_cap=no | 610 enable_cap=no |
611 enable_gevolution=no | 611 enable_gevolution=no |
612 enable_gtkspell=no | 612 enable_gtkspell=no |
804 Install the necessary gstreamer and farsight packages first. | 804 Install the necessary gstreamer and farsight packages first. |
805 Or use --disable-vv if you do not need voice/video support. | 805 Or use --disable-vv if you do not need voice/video support. |
806 ]) | 806 ]) |
807 fi | 807 fi |
808 fi | 808 fi |
809 fi | |
810 | |
811 AC_ARG_ENABLE(idn, | |
812 [AC_HELP_STRING([--disable-idn], [compile without IDN support])], | |
813 [enable_idn="$enableval" force_idn=$enableval], [enable_idn="yes" force_idn=no]) | |
814 if test "x$enable_idn" != "xno"; then | |
815 PKG_CHECK_MODULES(IDN, libidn >= 0.0.0, [ | |
816 AC_DEFINE(USE_IDN, 1, [Use GNU Libidn for stringprep and IDN]) | |
817 AC_SUBST(IDN_CFLAGS) | |
818 AC_SUBST(IDN_LIBS) | |
819 ], [ | |
820 AC_MSG_RESULT(no) | |
821 if test "x$force_deps" = "xyes" ; then | |
822 AC_MSG_ERROR([ | |
823 GNU Libidn development headers not found. | |
824 Use --disable-idn if you do not need it. | |
825 ]) | |
826 fi | |
827 ]) | |
809 fi | 828 fi |
810 | 829 |
811 dnl ####################################################################### | 830 dnl ####################################################################### |
812 dnl # Check for Meanwhile headers (for Sametime) | 831 dnl # Check for Meanwhile headers (for Sametime) |
813 dnl ####################################################################### | 832 dnl ####################################################################### |
1073 STATIC_LINK_LIBS= | 1092 STATIC_LINK_LIBS= |
1074 extern_init= | 1093 extern_init= |
1075 load_proto= | 1094 load_proto= |
1076 for i in $STATIC_PRPLS ; do | 1095 for i in $STATIC_PRPLS ; do |
1077 dnl Ugly special case for "libsilcpurple.la": | 1096 dnl Ugly special case for "libsilcpurple.la": |
1078 dnl ... and Ugly special case for multi-protocol oscar | 1097 dnl ... and Ugly special case for multi-protocol oscar and yahoo |
1079 if test \( "x$i" = "xoscar" -o "x$i" = "xaim" -o "x$i" = "xicq" \) -a "x$static_oscar" != "xyes"; then | 1098 if test \( "x$i" = "xoscar" -o "x$i" = "xaim" -o "x$i" = "xicq" \) -a "x$static_oscar" != "xyes"; then |
1080 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/oscar/liboscar.la" | 1099 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/oscar/liboscar.la" |
1081 extern_init="$extern_init extern gboolean purple_init_aim_plugin();" | 1100 extern_init="$extern_init extern gboolean purple_init_aim_plugin();" |
1082 extern_init="$extern_init extern gboolean purple_init_icq_plugin();" | 1101 extern_init="$extern_init extern gboolean purple_init_icq_plugin();" |
1083 load_proto="$load_proto purple_init_aim_plugin();" | 1102 load_proto="$load_proto purple_init_aim_plugin();" |
1084 load_proto="$load_proto purple_init_icq_plugin();" | 1103 load_proto="$load_proto purple_init_icq_plugin();" |
1104 elif test "x$i" = "xyahoo"; then | |
1105 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/yahoo/libymsg.la" | |
1106 extern_init="$extern_init extern gboolean purple_init_yahoo_plugin();" | |
1107 extern_init="$extern_init extern gboolean purple_init_yahoojp_plugin();" | |
1108 load_proto="$load_proto purple_init_yahoo_plugin();" | |
1109 load_proto="$load_proto purple_init_yahoojp_plugin();" | |
1085 else | 1110 else |
1086 if test "x$i" = "xsilc"; then | 1111 if test "x$i" = "xsilc"; then |
1087 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la" | 1112 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la" |
1088 elif test "x$i" = "xsilc10"; then | 1113 elif test "x$i" = "xsilc10"; then |
1089 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.la" | 1114 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.la" |
1729 AC_MSG_CHECKING(for gnutls_priority_set_direct) | 1754 AC_MSG_CHECKING(for gnutls_priority_set_direct) |
1730 LIBS_save="$LIBS" | 1755 LIBS_save="$LIBS" |
1731 LIBS="$LIBS $GNUTLS_LIBS" | 1756 LIBS="$LIBS $GNUTLS_LIBS" |
1732 CPPFLAGS_save="$CPPFLAGS" | 1757 CPPFLAGS_save="$CPPFLAGS" |
1733 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS" | 1758 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS" |
1734 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <gnutls/gnutls.h>], | 1759 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>]], |
1735 [gnutls_session s; gnutls_priority_set_direct(s, NULL, NULL);])], | 1760 [[gnutls_session s; gnutls_priority_set_direct(s, NULL, NULL);]])], |
1736 [AC_DEFINE([HAVE_GNUTLS_PRIORITY_FUNCS], 1, | 1761 [AC_DEFINE([HAVE_GNUTLS_PRIORITY_FUNCS], 1, |
1737 [Define if your gnutls has gnutls_priority_set_direct and friends]) | 1762 [Define if your gnutls has gnutls_priority_set_direct and friends]) |
1738 AC_MSG_RESULT(yes)], | 1763 AC_MSG_RESULT(yes)], |
1739 [AC_MSG_RESULT(no)]) | 1764 [AC_MSG_RESULT(no)]) |
1740 CPPFLAGS="$CPPFLAGS_save" | 1765 CPPFLAGS="$CPPFLAGS_save" |
1976 [ac_cv_moz_nss_libs="yes"], | 2001 [ac_cv_moz_nss_libs="yes"], |
1977 [ac_cv_moz_nss_libs="no"]) | 2002 [ac_cv_moz_nss_libs="no"]) |
1978 | 2003 |
1979 if test "x$ac_cv_moz_nss_libs" = "xno"; then | 2004 if test "x$ac_cv_moz_nss_libs" = "xno"; then |
1980 nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" | 2005 nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" |
1981 LDFLAGS="$LDFLAGS -L$with_nspr_libs -L$with_nss_libs" | 2006 LDFLAGS="$LDFLAGS -L$with_nspr_libs -L$with_nss_libs" |
1982 LIBS="$LIBS $nsslibs" | 2007 LIBS="$LIBS $nsslibs" |
1983 AC_TRY_LINK_FUNC(NSS_Init, | 2008 AC_TRY_LINK_FUNC(NSS_Init, |
1984 [ac_cv_moz_nss_libs="yes"], | 2009 [ac_cv_moz_nss_libs="yes"], |
1985 [ac_cv_moz_nss_libs="no"]) | 2010 [ac_cv_moz_nss_libs="no"]) |
1986 fi | 2011 fi |
2017 NSS_LIBS="$NSPR_LIBS $NSS_LIBS" | 2042 NSS_LIBS="$NSPR_LIBS $NSS_LIBS" |
2018 fi | 2043 fi |
2019 | 2044 |
2020 AC_SUBST(NSS_CFLAGS) | 2045 AC_SUBST(NSS_CFLAGS) |
2021 AC_SUBST(NSS_LIBS) | 2046 AC_SUBST(NSS_LIBS) |
2047 fi | |
2048 | |
2049 if test "x$enable_nss" = "xyes"; then | |
2050 AC_MSG_CHECKING(for NSS_SetAlgorithmPolicy) | |
2051 LIBS_save="$LIBS" | |
2052 LIBS="$LIBS $NSS_LIBS" | |
2053 CPPFLAGS_save="$CPPFLAGS" | |
2054 CPPFLAGS="$CPPFLAGS $NSS_CFLAGS" | |
2055 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <nss.h> | |
2056 #include <secmod.h>]], | |
2057 [[NSS_SetAlgorithmPolicy(SEC_OID_MD2, 0, 0);]])], | |
2058 [AC_DEFINE([NEED_NSS_WEAK_ALGORITHMS], 1, | |
2059 [Define if your NSS needs weak algorithms activated with NSS_SetAlgorithmPolicy]) | |
2060 AC_MSG_RESULT(yes)], | |
2061 [AC_MSG_RESULT(no)]) | |
2062 CPPFLAGS="$CPPFLAGS_save" | |
2063 LIBS="$LIBS_save" | |
2022 fi | 2064 fi |
2023 | 2065 |
2024 AM_CONDITIONAL(USE_NSS, test "x$enable_nss" = "xyes") | 2066 AM_CONDITIONAL(USE_NSS, test "x$enable_nss" = "xyes") |
2025 | 2067 |
2026 if test "x$msg_nss" != "x" -a "x$msg_gnutls" != "x"; then | 2068 if test "x$msg_nss" != "x" -a "x$msg_gnutls" != "x"; then |
2521 echo Build with D-Bus support...... : $enable_dbus | 2563 echo Build with D-Bus support...... : $enable_dbus |
2522 echo Build with voice and video.... : $enable_vv | 2564 echo Build with voice and video.... : $enable_vv |
2523 if test "x$enable_dbus" = "xyes" ; then | 2565 if test "x$enable_dbus" = "xyes" ; then |
2524 eval eval echo D-Bus services directory...... : $DBUS_SERVICES_DIR | 2566 eval eval echo D-Bus services directory...... : $DBUS_SERVICES_DIR |
2525 fi | 2567 fi |
2568 echo Build with GNU Libidn......... : $enable_idn | |
2526 echo Build with NetworkManager..... : $enable_nm | 2569 echo Build with NetworkManager..... : $enable_nm |
2527 echo SSL Library/Libraries......... : $msg_ssl | 2570 echo SSL Library/Libraries......... : $msg_ssl |
2528 if test "x$SSL_CERTIFICATES_DIR" != "x" ; then | 2571 if test "x$SSL_CERTIFICATES_DIR" != "x" ; then |
2529 eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR | 2572 eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR |
2530 fi | 2573 fi |