comparison configure.ac @ 27755:9a60b9fab0ea

propagate from branch 'im.pidgin.pidgin' (head d50f362e369f486aaf9a95a0d79ec0632743f07d) to branch 'im.pidgin.pidgin.yaz' (head 85b37cd20a00067af5a2da2760336b0c1016ef47)
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 07 Jan 2008 03:40:27 +0000
parents 2de9ab207c8e 0503cd74cb56
children 5f2dc6845abe
comparison
equal deleted inserted replaced
27754:754a82f1371b 27755:9a60b9fab0ea
41 # For code under development: [devel] 41 # For code under development: [devel]
42 # For production releases: [] 42 # For production releases: []
43 # 43 #
44 # Make sure to update finch/libgnt/configure.ac with libgnt version changes. 44 # Make sure to update finch/libgnt/configure.ac with libgnt version changes.
45 # 45 #
46 m4_define([purple_lt_current], [3]) 46 m4_define([purple_lt_current], [4])
47 m4_define([purple_major_version], [2]) 47 m4_define([purple_major_version], [2])
48 m4_define([purple_minor_version], [3]) 48 m4_define([purple_minor_version], [4])
49 m4_define([purple_micro_version], [2]) 49 m4_define([purple_micro_version], [0])
50 m4_define([purple_version_suffix], [devel]) 50 m4_define([purple_version_suffix], [devel])
51 m4_define([purple_version], 51 m4_define([purple_version],
52 [purple_major_version.purple_minor_version.purple_micro_version]) 52 [purple_major_version.purple_minor_version.purple_micro_version])
53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix])) 53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix]))
54 54
55 m4_define([gnt_lt_current], [3]) 55 m4_define([gnt_lt_current], [4])
56 m4_define([gnt_major_version], [2]) 56 m4_define([gnt_major_version], [2])
57 m4_define([gnt_minor_version], [3]) 57 m4_define([gnt_minor_version], [4])
58 m4_define([gnt_micro_version], [2]) 58 m4_define([gnt_micro_version], [0])
59 m4_define([gnt_version_suffix], [devel]) 59 m4_define([gnt_version_suffix], [devel])
60 m4_define([gnt_version], 60 m4_define([gnt_version],
61 [gnt_major_version.gnt_minor_version.gnt_micro_version]) 61 [gnt_major_version.gnt_minor_version.gnt_micro_version])
62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix])) 62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix]))
63 63
140 AM_GLIB_GNU_GETTEXT 140 AM_GLIB_GNU_GETTEXT
141 141
142 dnl If we don't have msgfmt, then po/ is going to fail -- ensure that 142 dnl If we don't have msgfmt, then po/ is going to fail -- ensure that
143 dnl AM_GLIB_GNU_GETTEXT found it. 143 dnl AM_GLIB_GNU_GETTEXT found it.
144 144
145 if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT = x 145 if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x
146 then 146 then
147 AC_ERROR([ 147 AC_ERROR([
148 148
149 The msgfmt command is required to build libpurple. If it is installed 149 The msgfmt command is required to build libpurple. If it is installed
150 on your system, ensure that it is in your path. If it is not, install 150 on your system, ensure that it is in your path. If it is not, install
676 dnl # Check for Meanwhile headers (for Sametime) 676 dnl # Check for Meanwhile headers (for Sametime)
677 dnl ####################################################################### 677 dnl #######################################################################
678 PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [ 678 PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [
679 have_meanwhile="yes" 679 have_meanwhile="yes"
680 ], [ 680 ], [
681 AC_MSG_RESULT(no)
682 have_meanwhile="no" 681 have_meanwhile="no"
683 ]) 682 ])
684 AC_SUBST(MEANWHILE_CFLAGS) 683 AC_SUBST(MEANWHILE_CFLAGS)
685 AC_SUBST(MEANWHILE_LIBS) 684 AC_SUBST(MEANWHILE_LIBS)
686 685
695 dnl Attempt to autodetect Avahi 694 dnl Attempt to autodetect Avahi
696 PKG_CHECK_MODULES(AVAHI, [avahi-client avahi-glib], [ 695 PKG_CHECK_MODULES(AVAHI, [avahi-client avahi-glib], [
697 avahiincludes="yes" 696 avahiincludes="yes"
698 avahilibs="yes" 697 avahilibs="yes"
699 ], [ 698 ], [
700 AC_MSG_RESULT(no)
701 avahiincludes="no" 699 avahiincludes="no"
702 avahilibs="no" 700 avahilibs="no"
703 ]) 701 ])
704 702
705 dnl Override AVAHI_CFLAGS if the user specified an include dir 703 dnl Override AVAHI_CFLAGS if the user specified an include dir
740 PKG_CHECK_MODULES(SILC, [silcclient >= 1.1], [ 738 PKG_CHECK_MODULES(SILC, [silcclient >= 1.1], [
741 have_silc="yes" 739 have_silc="yes"
742 silcincludes="yes" 740 silcincludes="yes"
743 silcclient="yes" 741 silcclient="yes"
744 ], [ 742 ], [
745 AC_MSG_RESULT(no)
746 have_silc="no" 743 have_silc="no"
747 ]) 744 ])
748 if test "x$have_silc" = "xno"; then 745 if test "x$have_silc" = "xno"; then
749 PKG_CHECK_MODULES(SILC, silcclient, [ 746 PKG_CHECK_MODULES(SILC, silcclient, [
750 have_silc="yes" 747 have_silc="yes"
751 silc10includes="yes" 748 silc10includes="yes"
752 silc10client="yes" 749 silc10client="yes"
753 ], [ 750 ], [
754 AC_MSG_RESULT(no)
755 have_silc="no" 751 have_silc="no"
756 ]) 752 ])
757 dnl If silcclient.pc wasn't found, check for just silc.pc 753 dnl If silcclient.pc wasn't found, check for just silc.pc
758 if test "x$have_silc" = "xno"; then 754 if test "x$have_silc" = "xno"; then
759 PKG_CHECK_MODULES(SILC, silc, [ 755 PKG_CHECK_MODULES(SILC, silc, [
760 have_silc="yes" 756 have_silc="yes"
761 silc10includes="yes" 757 silc10includes="yes"
762 silc10client="yes" 758 silc10client="yes"
763 ], [ 759 ], [
764 AC_MSG_RESULT(no)
765 have_silc="no" 760 have_silc="no"
766 ]) 761 ])
767 fi 762 fi
768 fi 763 fi
769 else 764 else
980 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes") 975 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes")
981 AM_CONDITIONAL(STATIC_TOC, test "x$static_toc" = "xyes") 976 AM_CONDITIONAL(STATIC_TOC, test "x$static_toc" = "xyes")
982 AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes") 977 AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes")
983 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") 978 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes")
984 AC_SUBST(STATIC_LINK_LIBS) 979 AC_SUBST(STATIC_LINK_LIBS)
985 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init() { $load_proto }, 980 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init(void) { $load_proto },
986 [Loads static protocol plugin module initialization functions.]) 981 [Loads static protocol plugin module initialization functions.])
987 982
988 AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`]) 983 AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`])
989 if test "x$DYNAMIC_PRPLS" = "xall" ; then 984 if test "x$DYNAMIC_PRPLS" = "xall" ; then
990 DYNAMIC_PRPLS="bonjour gg irc jabber msn myspace novell oscar qq sametime silc simple yahoo zephyr" 985 DYNAMIC_PRPLS="bonjour gg irc jabber msn myspace novell oscar qq sametime silc simple yahoo zephyr"
1151 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.35 dbus-glib-1 >= 0.35], [ 1146 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.35 dbus-glib-1 >= 0.35], [
1152 AC_SUBST(DBUS_CFLAGS) 1147 AC_SUBST(DBUS_CFLAGS)
1153 AC_SUBST(DBUS_LIBS) 1148 AC_SUBST(DBUS_LIBS)
1154 enable_dbus=yes 1149 enable_dbus=yes
1155 ], [ 1150 ], [
1156 AC_MSG_RESULT(no)
1157 enable_dbus=no 1151 enable_dbus=no
1158 ]) 1152 ])
1159 1153
1160 dnl Check for libnm_glib; if we don't have it, oh well 1154 dnl Check for libnm_glib; if we don't have it, oh well
1161 if test "x$enable_libnm" = "xyes" ; then 1155 if test "x$enable_libnm" = "xyes" ; then