configure.ac

Wed, 05 Oct 2016 22:17:31 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Wed, 05 Oct 2016 22:17:31 -0500
branch
EionRobb/httpc-edited-online-with-bitbucket-1454996408809
changeset 38099
0f5dbbac7f2b
parent 37493
d45200b32287
child 37558
60ad5e5d4a5e
permissions
-rw-r--r--

closing old/merged branches

2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1 dnl Process this file with autoconf to produce a configure script.
33667
cdadca41673b Bump up our required version of autoconf.
Mark Doliner <mark@kingant.net>
parents: 33629
diff changeset
2 AC_PREREQ([2.63])
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
3
16732
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
4 # UPDATING VERSION NUMBERS FOR RELEASES
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
5 #
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
6 # purple_micro_version += 1
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
7 #
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
8 # If any functions have been added to libpurple, Pidgin, or Finch:
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
9 # purple_micro_version = 0
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
10 # purple_minor_version += 1
16732
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
11 # purple_lt_current += 1
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
12 #
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
13 # If backwards compatibility has been broken in libpurple, Pidgin, or Finch:
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
14 # purple_micro_version = 0
16699
4e0b13d87131 To do libtool soversioning properly, we need to manage lt_current separately and
Richard Laager <rlaager@pidgin.im>
parents: 16655
diff changeset
15 # purple_minor_version = 0
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
16 # purple_major_version += 1;
16732
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
17 # purple_lt_current += 1
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
18 #
16704
fdfda1dda3a0 Preparing for beta 7
Mark Doliner <markdoliner@pidgin.im>
parents: 16655
diff changeset
19 # purple_version_suffix should be similar to one of the following:
fdfda1dda3a0 Preparing for beta 7
Mark Doliner <markdoliner@pidgin.im>
parents: 16655
diff changeset
20 # For beta releases: [beta2]
fdfda1dda3a0 Preparing for beta 7
Mark Doliner <markdoliner@pidgin.im>
parents: 16655
diff changeset
21 # For code under development: [devel]
fdfda1dda3a0 Preparing for beta 7
Mark Doliner <markdoliner@pidgin.im>
parents: 16655
diff changeset
22 # For production releases: []
fdfda1dda3a0 Preparing for beta 7
Mark Doliner <markdoliner@pidgin.im>
parents: 16655
diff changeset
23 #
16738
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
24 #
19044
9a5cf79cc75a Errant backtick
Sean Egan <seanegan@pidgin.im>
parents: 19043
diff changeset
25 # If any code has changed in libgnt:
16732
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
26 # gnt_micro_version += 1
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
27 #
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
28 # If any functions have been added to libgnt:
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
29 # gnt_micro_version = 0
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
30 # gnt_minor_version += 1
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
31 # gnt_lt_current += 1
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
32 #
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
33 # If backwards compatibility has been broken in libgnt:
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
34 # gnt_micro_version = 0
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
35 # gnt_minor_version = 0
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
36 # gnt_major_version += 1;
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
37 # gnt_lt_current += 1
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
38 #
16738
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
39 # gnt_version_suffix should be similar to one of the following:
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
40 # For beta releases: [beta2]
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
41 # For code under development: [devel]
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
42 # For production releases: []
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
43 #
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
44 # Make sure to update finch/libgnt/configure.ac with libgnt version changes.
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
45 #
31575
27e264ec6bb8 Per discussion with rlaager both on the mailing list and in the XMPP MUC, bump
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31574
diff changeset
46 m4_define([purple_lt_current], [20])
31571
b2c7811c9f4b 3.0.0devel. Let the mergefest begin.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31565
diff changeset
47 m4_define([purple_major_version], [3])
b2c7811c9f4b 3.0.0devel. Let the mergefest begin.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31565
diff changeset
48 m4_define([purple_minor_version], [0])
31946
64dd398b8a70 We're now 2.10.0 because I added the plugin info dialog.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 31939
diff changeset
49 m4_define([purple_micro_version], [0])
36276
fb41de6b6fbb 2.10.11 has been tagged, so switch this back to dev mode.
Mark Doliner <mark@kingant.net>
parents: 36272
diff changeset
50 m4_define([purple_version_suffix], [devel])
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
51 m4_define([purple_version],
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
52 [purple_major_version.purple_minor_version.purple_micro_version])
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix]))
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
54
35887
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
55 # the last version for Finch 2 was 2.8.10,
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
56 # the first version for Finch 3 was 2.9.0
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
57 m4_define([gnt_lt_current], [9])
18140
3a40ec9ee97d Bump the major for libgnt for the awesome workspace support.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18125
diff changeset
58 m4_define([gnt_major_version], [2])
35887
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
59 m4_define([gnt_minor_version], [9])
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
60 m4_define([gnt_micro_version], [0])
36276
fb41de6b6fbb 2.10.11 has been tagged, so switch this back to dev mode.
Mark Doliner <mark@kingant.net>
parents: 36272
diff changeset
61 m4_define([gnt_version_suffix], [devel])
16738
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
62 m4_define([gnt_version],
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
63 [gnt_major_version.gnt_minor_version.gnt_micro_version])
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
64 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix]))
16732
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
65
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
66
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
67 AC_INIT([pidgin], [purple_display_version], [devel@pidgin.im])
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
68
22780
c8b56750aa67 I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22758
diff changeset
69 if test `pwd | wc -w` -ne 1; then
c8b56750aa67 I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22758
diff changeset
70 AC_MSG_ERROR([
c8b56750aa67 I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22758
diff changeset
71 You are attempting to build in a path that contains spaces. This
c8b56750aa67 I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22758
diff changeset
72 will fail. Relocate this source tree to a path that does not contain
c8b56750aa67 I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22758
diff changeset
73 spaces and run configure again.
c8b56750aa67 I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22758
diff changeset
74 ])
c8b56750aa67 I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22758
diff changeset
75 fi
c8b56750aa67 I've personally seen a few people have problems because they tried to build
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22758
diff changeset
76
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
77 AC_CANONICAL_HOST
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
78 AC_CONFIG_HEADERS([config.h])
35899
ea4adba0d70f a config for m4macros directory
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35893
diff changeset
79 AC_CONFIG_MACRO_DIR([m4macros])
35933
67fbcda8b47f Make automake 1.14 not yell about sources in subdirs
Ankit Vani <a@nevitus.org>
parents: 35932
diff changeset
80 AM_INIT_AUTOMAKE([1.11 -Wno-portability dist-bzip2 subdir-objects])
33672
d7c1732709b6 Remove unneeded ifdef
Mark Doliner <mark@kingant.net>
parents: 33668
diff changeset
81 AM_SILENT_RULES([yes])
3174
4717ca727cef [gaim-migrate @ 3190]
Sean Egan <seanegan@pidgin.im>
parents: 3165
diff changeset
82
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
83 PURPLE_MAJOR_VERSION=purple_major_version
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
84 PURPLE_MINOR_VERSION=purple_minor_version
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
85 PURPLE_MICRO_VERSION=purple_micro_version
35387
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
86 PURPLE_VERSION=purple_display_version
35887
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
87 PURPLE_API_VERSION=$((purple_lt_current - purple_minor_version))
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
88 AC_SUBST(PURPLE_MAJOR_VERSION)
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
89 AC_SUBST(PURPLE_MINOR_VERSION)
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
90 AC_SUBST(PURPLE_MICRO_VERSION)
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
91 AC_SUBST(PURPLE_VERSION)
35887
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
92 AC_SUBST(PURPLE_API_VERSION)
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
93
16732
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
94 PURPLE_LT_VERSION_INFO="purple_lt_current:purple_micro_version:purple_minor_version"
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
95 AC_SUBST(PURPLE_LT_VERSION_INFO)
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
96
16732
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
97 GNT_MAJOR_VERSION=gnt_major_version
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
98 GNT_MINOR_VERSION=gnt_minor_version
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
99 GNT_MICRO_VERSION=gnt_micro_version
35387
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
100 GNT_VERSION=gnt_display_version
35887
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
101 GNT_API_VERSION=$((gnt_lt_current - gnt_minor_version))
16732
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
102 AC_SUBST(GNT_MAJOR_VERSION)
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
103 AC_SUBST(GNT_MINOR_VERSION)
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
104 AC_SUBST(GNT_MICRO_VERSION)
16738
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
105 AC_SUBST(GNT_VERSION)
35887
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
106 AC_SUBST(GNT_API_VERSION)
16738
0960ccbba64f I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@pidgin.im>
parents: 16736
diff changeset
107
16732
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
108 GNT_LT_VERSION_INFO="gnt_lt_current:gnt_micro_version:gnt_minor_version"
d611379472ea Separate so versioning for libgnt.
Richard Laager <rlaager@pidgin.im>
parents: 16729
diff changeset
109 AC_SUBST(GNT_LT_VERSION_INFO)
15498
2ee3112b6f24 This should be the last of the string changes
Sean Egan <seanegan@pidgin.im>
parents: 15495
diff changeset
110
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
111 AC_PATH_PROG(sedpath, sed)
33922
61f997b47954 Split debug window HTML into a separate file.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33862
diff changeset
112 AC_PATH_PROG(xxdpath, xxd)
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
113
8919
70c8da381c7e [gaim-migrate @ 9689]
Gary Kramlich <grim@pidgin.im>
parents: 8860
diff changeset
114 dnl Storing configure arguments
70c8da381c7e [gaim-migrate @ 9689]
Gary Kramlich <grim@pidgin.im>
parents: 8860
diff changeset
115 AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments])
70c8da381c7e [gaim-migrate @ 9689]
Gary Kramlich <grim@pidgin.im>
parents: 8860
diff changeset
116
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
117 dnl Checks for programs.
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
118 AC_PROG_CC
23352
9714223ca7a7 A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents: 23341
diff changeset
119 AM_PROG_CC_C_O
34059
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
120 AC_PROG_CXX
33678
9b535f78ad07 Use LT_INIT instead of deprecated AC_PROG_LIBTOOL.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33677
diff changeset
121 LT_PREREQ([2.2.6])
9b535f78ad07 Use LT_INIT instead of deprecated AC_PROG_LIBTOOL.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33677
diff changeset
122 LT_INIT([disable-static])
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
123 AC_PROG_INSTALL
15146
915827bf73d3 [gaim-migrate @ 17870]
Gary Kramlich <grim@reaperworld.com>
parents: 15133
diff changeset
124 PKG_PROG_PKG_CONFIG
23352
9714223ca7a7 A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents: 23341
diff changeset
125 AC_FUNC_ALLOCA
17006
9681a0900eb2 With this change, if autoconf doesn't find msgfmt, configure will fail
Ethan Blanton <elb@pidgin.im>
parents: 16977
diff changeset
126
30263
c570eb3becca Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents: 30234
diff changeset
127 dnl Check for Sun compiler
c570eb3becca Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents: 30234
diff changeset
128 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
c570eb3becca Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents: 30234
diff changeset
129
35848
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
130 dnl Check for Win32
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
131 case "$host" in
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
132 *-*-mingw* | *-*-cygwin*)
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
133 is_win32="yes"
35884
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
134 is_not_win32="no"
35855
3e60f9385431 cross-win32: libpurple builds now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35854
diff changeset
135 LIBS="$LIBS -lws2_32"
3e60f9385431 cross-win32: libpurple builds now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35854
diff changeset
136 DNSAPI_LIBS="-ldnsapi"
35860
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
137 PLUGIN_LDFLAGS="-avoid-version -no-undefined"
35855
3e60f9385431 cross-win32: libpurple builds now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35854
diff changeset
138 AC_SUBST(DNSAPI_LIBS)
35865
7f49bc843ce1 cross-win32: add version information to Pidgin/libpurple binaries
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35864
diff changeset
139 AC_CHECK_TOOL(WINDRES, windres)
35859
3d157ce203ed cross-win32: make libpidgin and libfinch shared, disable hacky libpidgin loading code. Pidgin runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35856
diff changeset
140 AC_DEFINE(IS_WIN32_CROSS_COMPILED, 1,
3d157ce203ed cross-win32: make libpidgin and libfinch shared, disable hacky libpidgin loading code. Pidgin runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35856
diff changeset
141 [Define to 1, when building with autotools (not necessarily
3d157ce203ed cross-win32: make libpidgin and libfinch shared, disable hacky libpidgin loading code. Pidgin runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35856
diff changeset
142 cross-compiling) for windows. It's a temporary hack to remain
3d157ce203ed cross-win32: make libpidgin and libfinch shared, disable hacky libpidgin loading code. Pidgin runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35856
diff changeset
143 non-autotools win32 build working. Drop it when we fully
3d157ce203ed cross-win32: make libpidgin and libfinch shared, disable hacky libpidgin loading code. Pidgin runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35856
diff changeset
144 switch our win32 build to autotools.])
35892
02bf3200b9cb cross-win32: make use of WIN32_LEAN_AND_MEAN define
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35888
diff changeset
145 AC_DEFINE(WIN32_LEAN_AND_MEAN, 1,
35893
c83a09a6e3d5 Fix legacy win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35892
diff changeset
146 [Define to 1, to build faster for win32.])
35848
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
147 ;;
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
148 *)
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
149 is_win32="no"
35884
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
150 is_not_win32="yes"
35860
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
151 PLUGIN_LDFLAGS="-avoid-version"
35856
1777950ff49f cross-win32: fix pidgin code warnings and errors
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35855
diff changeset
152 AC_CHECK_HEADERS(signal.h)
35848
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
153 ;;
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
154 esac
35852
fe350399078a cross-win32: fix prpls
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35851
diff changeset
155 AM_CONDITIONAL(IS_WIN32, test "x$is_win32" = "xyes")
35860
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
156 AC_SUBST([PLUGIN_LDFLAGS])
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
157
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
158 dnl Define *_LIBS
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
159 PURPLE_LIBS="\$(top_builddir)/libpurple/libpurple.la \$(GLIB_LIBS)"
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
160 PIDGIN_LIBS="\$(top_builddir)/pidgin/libpidgin.la \$(GTK_LIBS)"
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
161 FINCH_LIBS="\$(top_builddir)/finch/libfinch.la \$(top_builddir)/finch/libgnt/libgnt.la \$(GLIB_LIBS)"
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
162 AC_SUBST(PURPLE_LIBS)
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
163 AC_SUBST(PIDGIN_LIBS)
9ec9886a1ad3 cross-win32: correct dependencies and linker flags for Pidgin/libpurple/Finch plugins. They builds and runs now
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35859
diff changeset
164 AC_SUBST(FINCH_LIBS)
35848
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
165
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
166 dnl Checks for header files.
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
167 AC_HEADER_STDC
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
168 AC_HEADER_SYS_WAIT
35856
1777950ff49f cross-win32: fix pidgin code warnings and errors
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35855
diff changeset
169 AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h stdint.h)
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
170
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
171 dnl Checks for typedefs, structures, and compiler characteristics.
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
172 AC_C_CONST
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
173 AC_STRUCT_TM
14049
c15c41423e19 [gaim-migrate @ 16559]
Richard Laager <rlaager@pidgin.im>
parents: 13932
diff changeset
174 AC_CHECK_SIZEOF(time_t, ,[
c15c41423e19 [gaim-migrate @ 16559]
Richard Laager <rlaager@pidgin.im>
parents: 13932
diff changeset
175 #include <stdio.h>
c15c41423e19 [gaim-migrate @ 16559]
Richard Laager <rlaager@pidgin.im>
parents: 13932
diff changeset
176 #include <time.h>])
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
177
12423
e83c899d3be9 [gaim-migrate @ 14730]
Richard Laager <rlaager@pidgin.im>
parents: 12385
diff changeset
178 AC_C_BIGENDIAN
e83c899d3be9 [gaim-migrate @ 14730]
Richard Laager <rlaager@pidgin.im>
parents: 12385
diff changeset
179
35901
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
180 AC_ARG_WITH(win32-dirs, [AS_HELP_STRING([--with-win32-dirs=<classic|fhs>],
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
181 [use win32 classic (Program Files-like) or FHS (unix-like) directory structure (default: classic)])], [
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
182 if test "x$withval" != "xclassic" -a "x$withval" != "xfhs" ; then
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
183 AC_MSG_ERROR([Unsupported win32-dirs option. Please choose "classic" or "fhs".])
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
184 fi
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
185 with_win32_dirs="$withval"
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
186 ], with_win32_dirs="classic")
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
187 if test "x$is_win32" = "xyes" -a "x$with_win32_dirs" = "xfhs" ; then
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
188 AC_DEFINE(USE_WIN32_FHS, 1, [Define to 1, to use FHS on win32.])
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
189 fi
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
190
35850
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
191 dnl Check for directories
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
192 if test "x$is_win32" = "xyes" ; then
35901
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
193 if test "x$with_win32_dirs" = "xfhs" ; then
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
194 AS_AC_EXPAND(win32_fhs_bindir, "$bindir")
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
195 AC_DEFINE_UNQUOTED([WIN32_FHS_BINDIR], ["$win32_fhs_bindir"],
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
196 [bindir, as defined by configure])
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
197 AS_AC_EXPAND(win32_fhs_libdir, "$libdir")
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
198 AC_DEFINE_UNQUOTED([WIN32_FHS_LIBDIR], ["$win32_fhs_libdir"],
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
199 [libdir, as defined by configure])
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
200 AS_AC_EXPAND(win32_fhs_datadir, "$datadir")
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
201 AC_DEFINE_UNQUOTED([WIN32_FHS_DATADIR], ["$win32_fhs_datadir"],
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
202 [datadir, as defined by configure])
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
203 AS_AC_EXPAND(win32_fhs_sysconfdir, "$sysconfdir")
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
204 AC_DEFINE_UNQUOTED([WIN32_FHS_SYSCONFDIR], ["$win32_fhs_sysconfdir"],
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
205 [sysconfdir, as defined by configure])
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
206 AS_AC_EXPAND(win32_fhs_localedir, "$localedir")
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
207 AC_DEFINE_UNQUOTED([WIN32_FHS_LOCALEDIR], ["$win32_fhs_localedir"],
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
208 [localedir, as defined by configure])
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
209
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
210 purple_libdir="wpurple_lib_dir(\"purple-$PURPLE_MAJOR_VERSION\")"
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
211 pidgin_libdir="wpurple_lib_dir(\"pidgin-$PURPLE_MAJOR_VERSION\")"
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
212 finch_libdir="wpurple_lib_dir(\"finch-$PURPLE_MAJOR_VERSION\")"
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
213 else
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
214 purple_libdir="wpurple_lib_dir(NULL)"
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
215 pidgin_libdir="wpurple_lib_dir(NULL)"
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
216 finch_libdir="wpurple_lib_dir(NULL)"
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
217 fi
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
218
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
219 purple_datadir="wpurple_data_dir()"
35850
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
220 purple_sysconfdir="wpurple_sysconf_dir()"
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
221 purple_localedir="wpurple_locale_dir()"
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
222 else
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
223 AS_AC_EXPAND(purple_datadir, "$datadir")
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
224 purple_datadir="\"$purple_datadir\""
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
225 AS_AC_EXPAND(purple_sysconfdir, "$sysconfdir")
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
226 purple_sysconfdir="\"$purple_sysconfdir\""
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
227 AS_AC_EXPAND(purple_localedir, "$localedir")
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
228 purple_localedir="\"$purple_localedir\""
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
229
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
230 AS_AC_EXPAND(common_libdir, "$libdir")
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
231 purple_libdir="\"$common_libdir/purple-$PURPLE_MAJOR_VERSION\""
35888
bbef15512b9f Fix Pidgin/Finch plugin directory versioning
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35887
diff changeset
232 pidgin_libdir="\"$common_libdir/pidgin-$PURPLE_MAJOR_VERSION\""
bbef15512b9f Fix Pidgin/Finch plugin directory versioning
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35887
diff changeset
233 finch_libdir="\"$common_libdir/finch-$PURPLE_MAJOR_VERSION\""
35850
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
234 fi
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
235 AC_DEFINE_UNQUOTED([PURPLE_DATADIR], [$purple_datadir],
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
236 [datadir to use, may expand into a function call that returns const char *])
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
237 AC_DEFINE_UNQUOTED([PURPLE_LIBDIR], [$purple_libdir],
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
238 [libdir to use for libpurple, may expand into a function call that returns const char *])
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
239 AC_DEFINE_UNQUOTED([PIDGIN_LIBDIR], [$pidgin_libdir],
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
240 [libdir to use for Pidgin, may expand into a function call that returns const char *])
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
241 AC_DEFINE_UNQUOTED([FINCH_LIBDIR], [$finch_libdir],
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
242 [libdir to use for Finch, may expand into a function call that returns const char *])
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
243 AC_DEFINE_UNQUOTED([PURPLE_SYSCONFDIR], [$purple_sysconfdir],
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
244 [sysconfdir to use, may expand into a function call that returns const char *])
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
245 AC_DEFINE_UNQUOTED([PURPLE_LOCALEDIR], [$purple_localedir],
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
246 [localedir to use, may expand into a function call that returns const char *])
1abeda205d6c cross-win32: make dirs more flexible, add them to the config.h
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35849
diff changeset
247
35888
bbef15512b9f Fix Pidgin/Finch plugin directory versioning
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35887
diff changeset
248 PURPLE_PLUGINDIR="\$(libdir)/purple-$PURPLE_MAJOR_VERSION"
bbef15512b9f Fix Pidgin/Finch plugin directory versioning
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35887
diff changeset
249 AC_SUBST([PURPLE_PLUGINDIR])
bbef15512b9f Fix Pidgin/Finch plugin directory versioning
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35887
diff changeset
250 PIDGIN_PLUGINDIR="\$(libdir)/pidgin-$PURPLE_MAJOR_VERSION"
bbef15512b9f Fix Pidgin/Finch plugin directory versioning
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35887
diff changeset
251 AC_SUBST([PIDGIN_PLUGINDIR])
bbef15512b9f Fix Pidgin/Finch plugin directory versioning
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35887
diff changeset
252 FINCH_PLUGINDIR="\$(libdir)/finch-$PURPLE_MAJOR_VERSION"
bbef15512b9f Fix Pidgin/Finch plugin directory versioning
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35887
diff changeset
253 AC_SUBST([FINCH_PLUGINDIR])
bbef15512b9f Fix Pidgin/Finch plugin directory versioning
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35887
diff changeset
254
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
255 dnl Checks for library functions.
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
256 AC_TYPE_SIGNAL
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
257 AC_FUNC_STRFTIME
13217
a159125835c0 [gaim-migrate @ 15580]
Richard Laager <rlaager@pidgin.im>
parents: 13180
diff changeset
258 AC_CHECK_FUNCS(strdup strstr atexit setlocale)
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
259 dnl Checks for getopt in standard library
7451
41329081eb6d [gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents: 7396
diff changeset
260 AC_CHECK_FUNCS(getopt_long,,
41329081eb6d [gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents: 7396
diff changeset
261 [
41329081eb6d [gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents: 7396
diff changeset
262 AC_LIBOBJ(getopt)
41329081eb6d [gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents: 7396
diff changeset
263 AC_LIBOBJ(getopt1)
41329081eb6d [gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents: 7396
diff changeset
264 ])
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
265
2959
e9d78384bfca [gaim-migrate @ 2972]
Rob Flynn <gaim@robflynn.com>
parents: 2935
diff changeset
266 dnl Check for inet_aton
35848
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
267 if test "x$is_win32" != "xyes" ; then
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
268 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, ,
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
269 [AC_MSG_ERROR([inet_aton not found])])])
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
270 fi
11373
80fd6df6fbe0 [gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents: 11356
diff changeset
271 AC_CHECK_LIB(resolv, __res_query)
4424
ccac7337ffff [gaim-migrate @ 4699]
Ethan Blanton <elb@pidgin.im>
parents: 4418
diff changeset
272 AC_CHECK_LIB(nsl, gethostent)
36033
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
273 if test "x$is_win32" = "xyes" ; then
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
274 AC_DEFINE(HAVE_GETADDRINFO, 1, [Define to 1 if you have the getaddrinfo function.])
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
275 AC_DEFINE(HAVE_INET_NTOP, 1, [Define to 1 if you have the `inet_ntop' function.])
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
276 else
35848
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
277 AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket, socket, ,
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
278 [AC_MSG_ERROR([socket not found])])])
36033
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
279 dnl If all goes well, by this point the previous two checks will have
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
280 dnl pulled in -lsocket and -lnsl if we need them.
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
281 AC_CHECK_FUNC(getaddrinfo,
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
282 [AC_DEFINE([HAVE_GETADDRINFO], [1],
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
283 [Define to 1 if you have the getaddrinfo function.])],
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
284 [AC_CHECK_LIB(socket, getaddrinfo,
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
285 [AC_DEFINE([HAVE_GETADDRINFO]) LIBS="-lsocket -lnsl $LIBS"], , -lnsl)])
1bed3dca6bd2 Configure: don't look for getaddrinfo and inet_ntop on win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35989
diff changeset
286 AC_CHECK_FUNCS(inet_ntop)
35848
45db81738d2e cross-win32: don't check for socket and inet_aton
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35731
diff changeset
287 fi
29714
8c1f3beb9fdc network: Use getifaddrs() to enumerate local interfaces/IPs if available.
Paul Aurich <darkrain42@pidgin.im>
parents: 29698
diff changeset
288 AC_CHECK_FUNCS(getifaddrs)
3150
173a1be7d00e [gaim-migrate @ 3166]
Sean Egan <seanegan@pidgin.im>
parents: 3148
diff changeset
289 dnl Check for socklen_t (in Unix98)
173a1be7d00e [gaim-migrate @ 3166]
Sean Egan <seanegan@pidgin.im>
parents: 3148
diff changeset
290 AC_MSG_CHECKING(for socklen_t)
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
291 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
3662
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
292 #include <sys/types.h>
35849
77efee65c5f4 cross-win32: fix socklen_t check, win32dep.h include, undef pthread's localtime_r
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35848
diff changeset
293 #ifdef _WIN32
77efee65c5f4 cross-win32: fix socklen_t check, win32dep.h include, undef pthread's localtime_r
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35848
diff changeset
294 # include <ws2tcpip.h>
77efee65c5f4 cross-win32: fix socklen_t check, win32dep.h include, undef pthread's localtime_r
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35848
diff changeset
295 #else
77efee65c5f4 cross-win32: fix socklen_t check, win32dep.h include, undef pthread's localtime_r
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35848
diff changeset
296 # include <sys/socket.h>
77efee65c5f4 cross-win32: fix socklen_t check, win32dep.h include, undef pthread's localtime_r
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35848
diff changeset
297 #endif
3662
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
298 socklen_t x;
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
299 ]], [[]])], [
3662
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
300 AC_MSG_RESULT(yes)
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
301 ], [
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
302 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
3662
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
303 #include <sys/types.h>
35871
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
304 #ifdef _WIN32
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
305 # include <ws2tcpip.h>
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
306 #else
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
307 # include <sys/socket.h>
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
308 #endif
3662
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
309 int accept(int, struct sockaddr *, size_t *);
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
310 ]], [[]])], [
3662
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
311 AC_MSG_RESULT(size_t)
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
312 AC_DEFINE(socklen_t, size_t, [socklen_t size])
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
313 ], [
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
314 AC_MSG_RESULT(int)
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
315 AC_DEFINE(socklen_t, int, [socklen_t size])
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
316 ])
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
317 ])
3150
173a1be7d00e [gaim-migrate @ 3166]
Sean Egan <seanegan@pidgin.im>
parents: 3148
diff changeset
318
23352
9714223ca7a7 A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents: 23341
diff changeset
319 dnl Some systems do not have sa_len field for struct sockaddr.
9714223ca7a7 A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents: 23341
diff changeset
320 AC_CHECK_MEMBER([struct sockaddr.sa_len],
9714223ca7a7 A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents: 23341
diff changeset
321 [AC_DEFINE([HAVE_STRUCT_SOCKADDR_SA_LEN],[1],
9714223ca7a7 A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents: 23341
diff changeset
322 [Define if struct sockaddr has an sa_len member])],[:],
35871
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
323 [
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
324 #ifdef _WIN32
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
325 # include <ws2tcpip.h>
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
326 #else
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
327 # include <sys/socket.h>
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
328 #endif
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
329 ])
23352
9714223ca7a7 A patch from Peter O'Gorman at The Written Word, Inc. to fix various
Peter O'Gorman <pogma@thewrittenword.com>
parents: 23341
diff changeset
330
30027
2ab6e591cf72 Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents: 29960
diff changeset
331 dnl Check for v6-only sockets
2ab6e591cf72 Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents: 29960
diff changeset
332 AC_CHECK_DECL([IPV6_V6ONLY],
2ab6e591cf72 Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents: 29960
diff changeset
333 [AC_DEFINE([HAVE_IPV6_V6ONLY],[1],
2ab6e591cf72 Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents: 29960
diff changeset
334 [Define if the IPV6_V6ONLY setsockopt option exists])],
35871
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
335 [], [
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
336 #ifdef _WIN32
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
337 # include <ws2tcpip.h>
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
338 #else
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
339 # include <netinet/in.h>
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
340 #endif
0280c4396fc2 cross-win32: fix network checks
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35870
diff changeset
341 ])
30027
2ab6e591cf72 Add network listen functions that accept a family argument (AF_INET(6?)).
Paul Aurich <darkrain42@pidgin.im>
parents: 29960
diff changeset
342
10622
8faf2d7a4afe [gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents: 10620
diff changeset
343 dnl to prevent the g_stat()/g_unlink() crash,
8faf2d7a4afe [gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents: 10620
diff changeset
344 dnl (09:50:07) Robot101: LSchiere2: it's easy. +LC_SYS_LARGEFILE somewhere in configure.ac
8faf2d7a4afe [gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents: 10620
diff changeset
345 AC_SYS_LARGEFILE
8faf2d7a4afe [gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents: 10620
diff changeset
346
12038
1d83b5720a65 [gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 12036
diff changeset
347 dnl FreeBSD doesn't have libdl, dlopen is provided by libc
1d83b5720a65 [gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 12036
diff changeset
348 AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])
11579
1ff537bd2e92 [gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents: 11465
diff changeset
349
32770
d7f8a016cb22 rekkanoryo pointed out that this error message is for a different
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32750
diff changeset
350 dnl Windows and Haiku do not use libm for the math functions, they are part
32076
b6d6708fb444 *** Plucked rev 1270f4e5ab858ed24cdaf179e71fedea82ea9e09 (qulogic@pidgin.im):
Mark Doliner <markdoliner@pidgin.im>
parents: 32067
diff changeset
351 dnl of the C library
b6d6708fb444 *** Plucked rev 1270f4e5ab858ed24cdaf179e71fedea82ea9e09 (qulogic@pidgin.im):
Mark Doliner <markdoliner@pidgin.im>
parents: 32067
diff changeset
352 AC_SEARCH_LIBS([ceil], [m], [], [
32770
d7f8a016cb22 rekkanoryo pointed out that this error message is for a different
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32750
diff changeset
353 AC_MSG_ERROR([unable to find the ceil() function])
32076
b6d6708fb444 *** Plucked rev 1270f4e5ab858ed24cdaf179e71fedea82ea9e09 (qulogic@pidgin.im):
Mark Doliner <markdoliner@pidgin.im>
parents: 32067
diff changeset
354 ])
b6d6708fb444 *** Plucked rev 1270f4e5ab858ed24cdaf179e71fedea82ea9e09 (qulogic@pidgin.im):
Mark Doliner <markdoliner@pidgin.im>
parents: 32067
diff changeset
355
33674
bdf9bd73a37d These parentheses should be quoted.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33673
diff changeset
356 AC_MSG_CHECKING([for fileno()])
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
357 AC_RUN_IFELSE([AC_LANG_SOURCE([[
21421
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
358 #include <stdio.h>
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
359
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
360 int main(int argc, char *argv[])
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
361 {
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
362 int fd;
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
363
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
364 fd = fileno(stdout);
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
365
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
366 return !(fd > 0);
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
367 }
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
368 ]])], [
21421
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
369 AC_MSG_RESULT(yes)
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
370 AC_DEFINE([HAVE_FILENO], [1],
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
371 [Define to 1 if your stdio has int fileno(FILE *).])
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
372 ], [
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
373 AC_MSG_RESULT(no)
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
374 ], [
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
375 # Fallback for Cross Compiling...
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
376 # This will enable the compatibility code.
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
377 AC_MSG_RESULT(no)
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
378 ])
1d0f0d592011 Manually fflush() files written with purple_util_write_data_to_file,
Ethan Blanton <elb@pidgin.im>
parents: 21138
diff changeset
379
33674
bdf9bd73a37d These parentheses should be quoted.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33673
diff changeset
380 AC_MSG_CHECKING([for the %z format string in strftime()])
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
381 AC_RUN_IFELSE([AC_LANG_SOURCE([[
13153
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
382 #ifdef HAVE_SYS_TIME_H
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
383 #include <sys/time.h>
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
384 #endif
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
385 #include <time.h>
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
386 #include <stdio.h>
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
387
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
388 int main()
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
389 {
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
390 char buf[6];
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
391 time_t t = time(NULL);
13743
0336a209f9d4 [gaim-migrate @ 16152]
Mark Doliner <markdoliner@pidgin.im>
parents: 13736
diff changeset
392
13153
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
393 if (strftime(buf, sizeof(buf), "%z", localtime(&t)) != 5)
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
394 return 1;
13743
0336a209f9d4 [gaim-migrate @ 16152]
Mark Doliner <markdoliner@pidgin.im>
parents: 13736
diff changeset
395
13153
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
396 fprintf(stderr, "strftime(\"%%z\") yields: \"%s\"\n", buf);
13743
0336a209f9d4 [gaim-migrate @ 16152]
Mark Doliner <markdoliner@pidgin.im>
parents: 13736
diff changeset
397
13153
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
398 return !((buf[0] == '-' || buf[0] == '+') &&
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
399 (buf[1] >= '0' && buf[1] <= '9') &&
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
400 (buf[2] >= '0' && buf[2] <= '9') &&
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
401 (buf[3] >= '0' && buf[3] <= '9') &&
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
402 (buf[4] >= '0' && buf[4] <= '9')
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
403 );
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
404 }
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
405 ]])], [
13153
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
406 AC_MSG_RESULT(yes)
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
407 AC_DEFINE([HAVE_STRFTIME_Z_FORMAT], [1],
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
408 [Define to 1 if you have a strftime() that supports the %z format string.])
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
409 ], [
13153
3e0b91a83516 [gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents: 13032
diff changeset
410 AC_MSG_RESULT(no)
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
411 ], [
13226
92b014d46d83 [gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents: 13217
diff changeset
412 # Fallback for Cross Compiling...
92b014d46d83 [gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents: 13217
diff changeset
413 # This will enable the compatibility code.
92b014d46d83 [gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents: 13217
diff changeset
414 AC_MSG_RESULT(no)
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
415 ])
11949
ee1bbb072d4a [gaim-migrate @ 14240]
Christopher O'Brien <siege@pidgin.im>
parents: 11945
diff changeset
416
31516
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
417 # before gettexting, in case iconv matters
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
418 case "$host_os" in
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
419 darwin*)
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
420 AC_CHECK_LIB(resolv, res_query)
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
421
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
422 AC_CHECK_HEADER(CoreFoundation/CoreFoundation.h, [
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
423 AC_CHECK_HEADER(IOKit/IOKitLib.h, [
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
424 AC_DEFINE(HAVE_IOKIT, 1, [Define if we have IOKit])
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
425 LIBS="$LIBS -framework IOKit -framework CoreFoundation"
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
426 ], [])
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
427 ], [])
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
428
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
429 AC_MSG_CHECKING([for fink])
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
430 if test -d /sw; then
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
431 AC_MSG_RESULT([found, adding /sw to search paths])
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
432 CPPFLAGS="$CPPFLAGS -I/sw/include"
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
433 LDFLAGS="$LDFLAGS -L/sw/lib"
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
434 else
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
435 AC_MSG_RESULT([not found])
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
436 fi
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
437 ;;
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
438 *)
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
439 ;;
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
440 esac
0f2e41d2f12a Fix building on Darwin with --disable-nls. Thanks to Emanuele
Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
parents: 31506
diff changeset
441
13720
051ef816673a [gaim-migrate @ 16127]
Sean Egan <seanegan@pidgin.im>
parents: 13633
diff changeset
442 dnl #######################################################################
29901
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
443 dnl # Disable creation and installation of translation files
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
444 dnl #######################################################################
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
445 AC_ARG_ENABLE(nls, AS_HELP_STRING([--disable-nls], [disable installation of translation files]), enable_i18n="$enableval", enable_i18n=yes)
29901
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
446
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
447 if test x$enable_i18n = xyes; then
33677
a6c779d99320 Replace obsolete AC_PROG_INTLTOOL with IT_PROG_INTLTOOL.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33676
diff changeset
448 IT_PROG_INTLTOOL
29901
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
449 GETTEXT_PACKAGE=pidgin
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
450 AC_SUBST(GETTEXT_PACKAGE)
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
451
36340
2b41c6ce5c4f Add a new Malay (Malaysia) translator
Richard Laager <rlaager@pidgin.im>
parents: 36335
diff changeset
452 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"
29901
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
453 AM_GLIB_GNU_GETTEXT
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
454
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
455 dnl If we don't have msgfmt, then po/ is going to fail -- ensure that
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
456 dnl AM_GLIB_GNU_GETTEXT found it.
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
457
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
458 if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
459 then
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
460 AC_MSG_ERROR([
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
461
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
462 The msgfmt command is required to build libpurple. If it is installed
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
463 on your system, ensure that it is in your path. If it is not, install
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
464 GNU gettext to continue.
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
465
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
466 If you have msgfmt installed, but for some reason this error message
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
467 is still displayed, you have encountered what appears to be a bug in
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
468 third-party configure macros. Try setting the MSGFMT environment
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
469 variable to the absolute path to your msgfmt binary and trying
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
470 configure again, like this:
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
471
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
472 MSGFMT=/path/to/msgfmt ./configure ...
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
473 ])
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
474 fi
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
475 fi #enable_i18n
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
476
30358
78ae7bcfa65c I don't know why this AM_CONDITIONAL is so far away from its setup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30263
diff changeset
477 AM_CONDITIONAL(INSTALL_I18N, test "x$enable_i18n" = "xyes")
78ae7bcfa65c I don't know why this AM_CONDITIONAL is so far away from its setup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30263
diff changeset
478
29901
dd0bc58418e5 Make --disable-nls work again. Fixes #11548.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29856
diff changeset
479 dnl #######################################################################
37456
697c2cfa4123 Bump glib to 2.34.0 so we can use g_resolver_lookup_records
Gary Kramlich <grim@reaperworld.com>
parents: 37413
diff changeset
480 dnl # Check for GLib 2.34 (required)
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
481 dnl #######################################################################
37462
1c036daee5b4 gio should be included here
Gary Kramlich <grim@reaperworld.com>
parents: 37461
diff changeset
482 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.34.0 gio-2.0 gobject-2.0 gthread-2.0], , [
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
483 AC_MSG_RESULT(no)
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
484 AC_MSG_ERROR([
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
485
37456
697c2cfa4123 Bump glib to 2.34.0 so we can use g_resolver_lookup_records
Gary Kramlich <grim@reaperworld.com>
parents: 37413
diff changeset
486 You must have GLib 2.34.0 or newer development headers installed to build.
21700
2ac5912cbeb6 Add a note about pkg-config to configure.ac if glib2 headers were not
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21600
diff changeset
487
2ac5912cbeb6 Add a note about pkg-config to configure.ac if glib2 headers were not
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21600
diff changeset
488 If you have these installed already you may need to install pkg-config so
2ac5912cbeb6 Add a note about pkg-config to configure.ac if glib2 headers were not
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21600
diff changeset
489 I can find them.
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
490 ])])
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
491 AC_SUBST(GLIB_CFLAGS)
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
492 AC_SUBST(GLIB_LIBS)
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
493
37485
778662f494ee Use $PKG_CONFIG instead of assuming that pkg-config is the right one
Gary Kramlich <grim@reaperworld.com>
parents: 37466
diff changeset
494 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
23697
299bafcd8eb8 Updates voice and video to use Farsight 2, gets XMPP voice conferences
Michael Ruprecht <maiku@pidgin.im>
parents: 23696
diff changeset
495 AC_SUBST(GLIB_GENMARSHAL)
299bafcd8eb8 Updates voice and video to use Farsight 2, gets XMPP voice conferences
Michael Ruprecht <maiku@pidgin.im>
parents: 23696
diff changeset
496
37485
778662f494ee Use $PKG_CONFIG instead of assuming that pkg-config is the right one
Gary Kramlich <grim@reaperworld.com>
parents: 37466
diff changeset
497 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
34597
4c0ae73d3745 Added autogeneration of GEnums using glib-mkenums to enums.c and enums.h
Ankit Vani <a@nevitus.org>
parents: 34208
diff changeset
498 AC_SUBST(GLIB_MKENUMS)
4c0ae73d3745 Added autogeneration of GEnums using glib-mkenums to enums.c and enums.h
Ankit Vani <a@nevitus.org>
parents: 34208
diff changeset
499
21106
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21077
diff changeset
500 AC_ARG_WITH([extraversion],
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
501 AS_HELP_STRING([--with-extraversion=STRING],
21106
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21077
diff changeset
502 [extra version number to be displayed in Help->About and --help (for packagers)]),
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21077
diff changeset
503 EXTRA_VERSION=$withval)
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21077
diff changeset
504
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21077
diff changeset
505 if test x"$EXTRA_VERSION" != "x" ; then
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21077
diff changeset
506 AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION-$EXTRA_VERSION", [display version info])
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21077
diff changeset
507 else
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21077
diff changeset
508 AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION", [display version info])
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21077
diff changeset
509 fi
b85fbef13eed Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21077
diff changeset
510
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
511 AC_ARG_ENABLE(missing-dependencies, [AS_HELP_STRING([--disable-missing-dependencies],
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
512 [skip missing dependencies instead of aborting configure])],
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
513 force_deps="$enableval", force_deps="yes")
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
514
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
515 AC_ARG_WITH(x, [],
35884
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
516 with_x="$withval", with_x="$is_not_win32")
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
517 AC_ARG_ENABLE(gtkui, [AS_HELP_STRING([--disable-gtkui],
14507
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
518 [compile without GTK+ user interface])],
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
519 enable_gtkui="$enableval", enable_gtkui="yes")
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
520 AC_ARG_ENABLE(consoleui, [AS_HELP_STRING([--disable-consoleui],
14507
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
521 [compile without console user interface])],
21822
20878ac233be Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21762
diff changeset
522 [enable_consoleui=$enableval force_finch=$enableval], [enable_consoleui=yes force_finch=no])
14507
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
523
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
524 dnl #######################################################################
33682
cb3c2ebadbf1 When building with gtk 2, require at least 2.18.0
Mark Doliner <mark@kingant.net>
parents: 33672
diff changeset
525 dnl # Check for GTK+ 2.18 and other things used by the GTK UI
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
526 dnl #######################################################################
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
527 AC_ARG_ENABLE(screensaver,
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
528 [AS_HELP_STRING([--disable-screensaver],
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
529 [compile without X screensaver extension (used to detect idleness)])],
14859
571403e54d19 [gaim-migrate @ 17562]
Jason Lynch
parents: 14858
diff changeset
530 enable_screensaver="$enableval", enable_screensaver="yes")
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
531 AC_ARG_ENABLE(sm,
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
532 [AS_HELP_STRING([--disable-sm],
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
533 [compile without X session management support])],
14859
571403e54d19 [gaim-migrate @ 17562]
Jason Lynch
parents: 14858
diff changeset
534 enable_sm="$enableval", enable_sm="yes")
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
535 AC_ARG_ENABLE(startup-notification,
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
536 [AS_HELP_STRING([--disable-startup-notification],
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
537 [compile without startup notification support])],
14859
571403e54d19 [gaim-migrate @ 17562]
Jason Lynch
parents: 14858
diff changeset
538 enable_startup_notification="$enableval", enable_startup_notification="yes")
35911
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
539 AC_ARG_ENABLE(enchant,
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
540 [AS_HELP_STRING([--disable-enchant],
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
541 [compile without Enchant spell checking support])],
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
542 enable_enchant="$enableval", enable_enchant="yes")
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
543 AC_ARG_ENABLE(gevolution,
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
544 [AS_HELP_STRING([--enable-gevolution],
22783
43b697ca2f9e Make the gevolution plugin disabled by default. Again, if anyone disagrees
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22780
diff changeset
545 [compile with the Evolution plugin])],
43b697ca2f9e Make the gevolution plugin disabled by default. Again, if anyone disagrees
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22780
diff changeset
546 enable_gevolution="$enableval", enable_gevolution="no")
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
547 AC_ARG_ENABLE(cap,
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
548 [AS_HELP_STRING([--enable-cap],
22784
36a4d7c64d00 Make the cap plugin disabled by default. As usual, anyone who disagrees or
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22783
diff changeset
549 [compile with Contact Availability Prediction plugin])],
36a4d7c64d00 Make the cap plugin disabled by default. As usual, anyone who disagrees or
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22783
diff changeset
550 enable_cap="$enableval", enable_cap="no")
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
551 AC_ARG_ENABLE(gestures,
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
552 [AS_HELP_STRING([--disable-gestures],
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
553 [compile without the gestures plugin])],
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
554 enable_gestures="$enableval", enable_gestures="yes")
32771
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
555 AC_ARG_ENABLE(gcr,
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
556 [AS_HELP_STRING([--enable-gcr],
32771
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
557 [compile with GCR certificate widgets])],
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
558 enable_gcr="$enableval", enable_gcr="no")
14621
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
559
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
560 AC_PATH_XTRA
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
561 # We can't assume that $x_libraries will be set, because autoconf does not
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
562 # set it in the case when the X libraries are in a standard place.
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
563 # Ditto for $x_includes
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
564 if test X"$x_libraries" = X"" || test X"$x_libraries" = XNONE; then
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
565 x_libpath_add=
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
566 else
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
567 x_libpath_add="-L$x_libraries"
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
568 fi
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
569 if test X"$x_includes" = X"" || test X"$x_includes" = XNONE; then
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
570 x_incpath_add=
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
571 else
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
572 x_incpath_add="-I$x_includes"
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
573 fi
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
574
37422
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
575 dnl #######################################################################
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
576 dnl Check Pidgin dependencies
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
577 dnl #######################################################################
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
578 if test "x$enable_gtkui" = "xyes" ; then
37422
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
579 PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= 3.0.0], , [
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
580 AC_MSG_RESULT(no)
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
581 AC_MSG_ERROR([
33119
1fd0091b97e8 Fix this comment, and move to a new branch, to make it clear
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32437
diff changeset
582 You must have GTK+ 3.0.0 or newer development headers installed to compile
28285
d288a79d7401 applied changes from 72b3be2a12aafc0f3b5367f8ca20a893422d36f6
Mark Doliner <markdoliner@pidgin.im>
parents: 28241
diff changeset
583 Pidgin. If you want to build only Finch then specify --disable-gtkui when
d288a79d7401 applied changes from 72b3be2a12aafc0f3b5367f8ca20a893422d36f6
Mark Doliner <markdoliner@pidgin.im>
parents: 28241
diff changeset
584 running configure.
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
585 ])])
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
586 AC_SUBST(GTK_CFLAGS)
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
587 AC_SUBST(GTK_LIBS)
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
588
37422
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
589 GTK_PC_MODULE="gtk+-3.0"
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
590 GTK_VERSION="3"
33629
6892e03414fd update pidgin/pidgin-3.pc.in and configure.ac to properly represent which version of gtk it's compiled/linked against
Gary Kramlich <grim@reaperworld.com>
parents: 33608
diff changeset
591 AC_SUBST(GTK_PC_MODULE)
36823
661347ff47e6 Added GObject introspection for libgnt, finch and pidgin.
Ankit Vani <a@nevitus.org>
parents: 36822
diff changeset
592 AC_SUBST(GTK_VERSION)
33629
6892e03414fd update pidgin/pidgin-3.pc.in and configure.ac to properly represent which version of gtk it's compiled/linked against
Gary Kramlich <grim@reaperworld.com>
parents: 33608
diff changeset
593
16291
acbfc9276da1 Fix for using Pango < 1.4, will not have complete RTL support with older
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16287
diff changeset
594 dnl We only really need Pango >= 1.4 for decent RTL support
21702
37553b232826 The use of lowercase "pango" looks out of place when appended with _CFLAGS
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21701
diff changeset
595 PKG_CHECK_MODULES(PANGO, [pango >= 1.4.0],
16292
4927daf9501e Don't error out of ./configure on older pango versions
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16291
diff changeset
596 AC_DEFINE(HAVE_PANGO14, 1, [Define if we have Pango 1.4 or newer.]),:)
16291
acbfc9276da1 Fix for using Pango < 1.4, will not have complete RTL support with older
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16287
diff changeset
597
35193
11152544c1e0 webkit_web_inspector_inspect_node requires webkit 1.3.7
Ankit Vani <a@nevitus.org>
parents: 35192
diff changeset
598 WEBKIT_VERSION=1.3.7
37422
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
599 WEBKIT_PC_MODULE="webkitgtk-3.0"
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
600 PKG_CHECK_MODULES(WEBKIT, [$WEBKIT_PC_MODULE >= $WEBKIT_VERSION], , [
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
601 AC_MSG_RESULT(no)
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
602 AC_MSG_ERROR([
33230
e34d71219cce Make it clear which GTK+-dependent library we need.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33171
diff changeset
603 You must have WebKit for GTK+3 $WEBKIT_VERSION or newer development headers
e34d71219cce Make it clear which GTK+-dependent library we need.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33171
diff changeset
604 installed to compile Pidgin. If you want to build only Finch then specify
e34d71219cce Make it clear which GTK+-dependent library we need.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33171
diff changeset
605 --disable-gtkui when running configure.
32512
9436e345acf9 WebKit is only required when building Pidgin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32507
diff changeset
606 ])])
9436e345acf9 WebKit is only required when building Pidgin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32507
diff changeset
607 AC_SUBST(WEBKIT_CFLAGS)
9436e345acf9 WebKit is only required when building Pidgin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32507
diff changeset
608 AC_SUBST(WEBKIT_LIBS)
33862
d3e1e2a9d014 added the webkit modules to the requires field of pidgin-3.pc
Gary Kramlich <grim@reaperworld.com>
parents: 33796
diff changeset
609 AC_SUBST(WEBKIT_PC_MODULE)
32512
9436e345acf9 WebKit is only required when building Pidgin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32507
diff changeset
610
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
611 dnl #######################################################################
35911
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
612 dnl # Check if we should compile with enchant support
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
613 dnl #######################################################################
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
614 dnl We need enchant for spell checking dictionary enumeration,
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
615 dnl because webkit1 doesn't have this.
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
616 use_enchant=no
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
617 if test "x$enable_enchant" = "xyes" ; then
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
618 use_enchant=yes
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
619 PKG_CHECK_MODULES(ENCHANT, enchant, , [
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
620 AC_MSG_RESULT(no)
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
621 use_enchant=no
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
622 ])
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
623 if test "x$force_deps" = "xyes" -a "x$use_enchant" = "xno"; then
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
624 AC_MSG_ERROR([
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
625 Enchant development headers not found.
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
626 Use --disable-enchant if you do not need it.
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
627 ])
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
628 fi
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
629 if test "x$use_enchant" = "xyes" ; then
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
630 AC_DEFINE(USE_ENCHANT, 1, [Define if we're using enchant])
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
631 AC_SUBST(ENCHANT_CFLAGS)
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
632 AC_SUBST(ENCHANT_LIBS)
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
633 fi
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
634 fi
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
635
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
636 dnl #######################################################################
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
637 dnl # Check if we should compile with X support
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
638 dnl #######################################################################
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
639 if test "x$with_x" = "xyes" ; then
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
640 PKG_CHECK_MODULES(X11, x11,
20069
1c15dda79261 Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20068
diff changeset
641 [AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11])],
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
642 [AC_MSG_RESULT(no)
20069
1c15dda79261 Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20068
diff changeset
643 if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then
1c15dda79261 Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20068
diff changeset
644 X11_LIBS="$x_libpath_add"
1c15dda79261 Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20068
diff changeset
645 X11_CFLAGS="$x_incpath_add"
1c15dda79261 Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20068
diff changeset
646 else
29218
bf6fc038a9fa Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents: 29204
diff changeset
647 with_x="no"
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
648 if test "x$force_deps" = "xyes" ; then
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
649 AC_MSG_ERROR([
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
650 X11 development headers not found.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
651 Use --without-x if you do not need X11 support.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
652 ])
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
653 fi
20069
1c15dda79261 Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20068
diff changeset
654 fi
1c15dda79261 Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20068
diff changeset
655 ])
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
656 AC_SUBST(X11_LIBS)
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
657 AC_SUBST(X11_CFLAGS)
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
658 else
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
659 enable_screensaver=no
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
660 enable_sm=no
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
661 enable_gestures=no
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
662 fi
20069
1c15dda79261 Hopefully fix the broken detection of X11 stuffs on older X installations
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20068
diff changeset
663
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
664 dnl #######################################################################
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
665 dnl # Check for XScreenSaver
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
666 dnl #######################################################################
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
667 if test "x$enable_screensaver" = "xyes" ; then
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
668 if test "x$with_x" = "xyes" ; then
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
669 old_LIBS="$LIBS"
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
670 LIBS="$LIBS $GTK_LIBS $x_libpath_add"
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
671 XSS_LIBS=""
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
672 XSS_HEADERS=""
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
673 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"],[],[-lX11 -lXext -lm])
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
674 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss"],[],[-lX11 -lXext -lm])
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
675 if test "x$XSS_LIBS" != "x"; then
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
676 oldCPPFLAGS="$CPPFLAGS"
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
677 CPPFLAGS="$CPPFLAGS $x_incpath_add"
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
678 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
679 #include <X11/Xlib.h>
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
680 #include <X11/extensions/scrnsaver.h>
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
681 ]], [[]])], [], [enable_screensaver=no])
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
682 CPPFLAGS="$oldCPPFLAGS"
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
683 else
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
684 enable_screensaver=no
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
685 fi
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
686 LIBS="$old_LIBS"
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
687
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
688 if test "x$enable_screensaver" = "xyes" ; then
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
689 AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.])
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
690 AC_SUBST(XSS_LIBS)
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
691 else
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
692 if test "x$force_deps" = "xyes" ; then
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
693 AC_MSG_ERROR([
35931
56d2fa8e8698 Better description for XScreenSaver configure error
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35930
diff changeset
694 XScreenSaver extension development headers (libXScrnSaver-devel or libxss-dev) not found.
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
695 Use --disable-screensaver if you do not need XScreenSaver extension support,
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
696 this is required for detecting idle time by mouse and keyboard usage.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
697 ])
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
698 fi
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
699 fi
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
700 else
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
701 AC_MSG_ERROR([X support is required to build with XScreenSaver extensions])
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
702 fi
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
703 fi
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
704
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
705 dnl #######################################################################
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
706 dnl # Check for X session management libs
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
707 dnl #######################################################################
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
708 if test "x$enable_sm" = "xyes"; then
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
709 if test "x$with_x" = "xyes" ; then
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
710 enable_sm=no
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
711 AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [$x_libpath_add -lICE])
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
712 if test "x$found_sm_lib" = "xtrue"; then
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
713 oldCPPFLAGS="$CPPFLAGS"
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
714 CPPFLAGS="$CPPFLAGS $x_incpath_add"
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
715 AC_CHECK_HEADERS(X11/SM/SMlib.h, SM_LIBS="$x_libpath_add -lSM -lICE" enable_sm=yes)
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
716 CPPFLAGS="$oldCPPFLAGS"
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
717 fi
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
718
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
719 if test "x$enable_sm" = "xyes"; then
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
720 AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.])
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
721 AC_SUBST(SM_LIBS)
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
722 else
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
723 if test "x$force_deps" = "xyes" ; then
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
724 AC_MSG_ERROR([
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
725 X session management development headers not found.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
726 Use --disable-sm if you do not need session management support.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
727 ])
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
728 fi
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
729 fi
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
730 else
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
731 AC_MSG_ERROR([X support is required to build with X session management support])
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
732 fi
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
733 fi
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
734
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
735 dnl #######################################################################
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
736 dnl # Check for X11 to allow the gestures plugin
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
737 dnl #######################################################################
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
738 if test "x$enable_gestures" = "xyes"; then
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
739 if test "x$with_x" = "xno" ; then
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
740 enable_gestures=no
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
741 fi
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
742 fi
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
743
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
744 dnl #######################################################################
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
745 dnl # Check for stuff needed by the Evolution integration plugin.
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
746 dnl #######################################################################
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
747 if test "x$enable_gevolution" = "xyes"; then
35522
82139d173179 Fix gevolution build with e-d-s >= 3.6 and drop older versions. Fixes #15353
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35520
diff changeset
748 evo_deps="libebook-1.2 libedata-book-1.2 evolution-data-server-1.2 >= 3.6"
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
749 PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, , [
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
750 enable_gevolution="no"
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
751 ])
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
752 if test "x$enable_gevolution" = "xyes"; then
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
753 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.])
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
754 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS)
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
755 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS)
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
756 else
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
757 if test "x$force_deps" = "xyes" ; then
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
758 AC_MSG_ERROR([
35578
e0826e3b631b Merge 2.x.y
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35559 35562
diff changeset
759 Evolution development headers not found (libebook, libedata-book, evolution-data-server >= 3.6).
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
760 Use --disable-gevolution if you do not need it.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
761 ])
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
762 fi
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
763 fi
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
764 fi
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
765
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
766 dnl #######################################################################
14573
7e18a0a07718 [gaim-migrate @ 17231]
Geoff Foster <g-off_@users.sourceforge.net>
parents: 14539
diff changeset
767 dnl # Check for libsqlite3 (for the Contact Availability Prediction plugin)
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
768 dnl #######################################################################
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
769 if test "x$enable_cap" = "xyes"; then
14733
7e2a1598624d [gaim-migrate @ 17417]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14666
diff changeset
770 PKG_CHECK_MODULES(SQLITE3, sqlite3 >= 3.3,,[
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
771 AC_MSG_RESULT(no)
29218
bf6fc038a9fa Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents: 29204
diff changeset
772 enable_cap="no"
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
773 if test "x$force_deps" = "xyes" ; then
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
774 AC_MSG_ERROR([
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
775 sqlite3 development headers not found.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
776 Use --disable-cap if you do not need the Contact Availability Prediction plugin.
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
777 ])
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
778 fi])
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
779 fi
32771
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
780
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
781 dnl #######################################################################
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
782 dnl # Check for GCR for its certificate widgets
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
783 dnl #######################################################################
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
784 if test "x$enable_gcr" = "xyes"; then
37422
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
785 PKG_CHECK_MODULES(GCR, gcr-3, [
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
786 AC_DEFINE(ENABLE_GCR, 1, [Define to 1 if GCR is found.])], [
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
787 AC_MSG_RESULT(no)
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
788 enable_gcr="no"
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
789 if test "x$force_deps" = "xyes" ; then
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
790 AC_MSG_ERROR([
33230
e34d71219cce Make it clear which GTK+-dependent library we need.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33171
diff changeset
791 GCR for GTK+3 development headers not found.
32771
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
792 Use --disable-gcr if you do not need GCR certificate widgets.
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
793 ])
37422
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
794 fi])
32771
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
795 fi
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
796
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
797
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
798 else # GTK
32771
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
799 enable_gcr=no
14733
7e2a1598624d [gaim-migrate @ 17417]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14666
diff changeset
800 enable_cap=no
7e2a1598624d [gaim-migrate @ 17417]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14666
diff changeset
801 enable_gevolution=no
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
802 enable_screensaver=no
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
803 enable_sm=no
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
804 enable_startup_notification=no
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
805 fi # GTK
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
806
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
807 AM_CONDITIONAL(ENABLE_GTK, test "x$enable_gtkui" = "xyes")
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
808 AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$enable_gevolution" = "xyes")
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
809 AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes")
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
810 AM_CONDITIONAL(ENABLE_GESTURES, test "x$enable_gestures" = "xyes")
32771
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
811 AM_CONDITIONAL(ENABLE_GCR, test "x$enable_gcr" = "xyes")
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
812
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
813
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
814 dnl #######################################################################
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
815 dnl # Check for ncurses and other things used by the console UI
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
816 dnl #######################################################################
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
817 GNT_LIBS=""
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
818 GNT_CFLAGS=""
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
819 AC_ARG_WITH(ncurses-headers, [AS_HELP_STRING([--with-ncurses-headers=DIR],
15909
0ee1e930d385 Rename/update finch man page
Richard Nelson <wabz@pidgin.im>
parents: 15901
diff changeset
820 [compile finch against the ncurses includes in DIR])],
15312
42e2c73b6b9c [gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15248
diff changeset
821 [ac_ncurses_includes="$withval"], [ac_ncurses_includes=""])
14507
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
822 if test "x$enable_consoleui" = "xyes"; then
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
823 AC_CHECK_LIB(ncursesw, initscr, [GNT_LIBS="-lncursesw"], [enable_consoleui=no])
28300
a4516ae76153 Properly detect libpanel by including ncurses libs in linking test.
Paul Aurich <darkrain42@pidgin.im>
parents: 28285
diff changeset
824 AC_CHECK_LIB(panelw, update_panels, [GNT_LIBS="$GNT_LIBS -lpanelw"],
a4516ae76153 Properly detect libpanel by including ncurses libs in linking test.
Paul Aurich <darkrain42@pidgin.im>
parents: 28285
diff changeset
825 [enable_consoleui=no], [$GNT_LIBS])
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
826
35877
6c3ab2fd4412 cross-win32: fix finch build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35873
diff changeset
827 if test "x$is_win32" = "xyes" ; then
36036
40aa2248e2a0 Fix ncurses detection for Fedora
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36033
diff changeset
828 ncurses_sys_prefix="/usr/$host/sys-root/mingw"
35877
6c3ab2fd4412 cross-win32: fix finch build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35873
diff changeset
829 else
6c3ab2fd4412 cross-win32: fix finch build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35873
diff changeset
830 ncurses_sys_prefix="/usr"
6c3ab2fd4412 cross-win32: fix finch build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35873
diff changeset
831 fi
6c3ab2fd4412 cross-win32: fix finch build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35873
diff changeset
832
6c3ab2fd4412 cross-win32: fix finch build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35873
diff changeset
833 ncurses_sys_dirs="$ncurses_sys_prefix/include/ncursesw $ncurses_sys_prefix/include"
6c3ab2fd4412 cross-win32: fix finch build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35873
diff changeset
834
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
835 if test "x$enable_consoleui" = "xyes"; then
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
836 dnl # Some distros put the headers in ncursesw/, some don't
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
837 found_ncurses_h=no
35877
6c3ab2fd4412 cross-win32: fix finch build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35873
diff changeset
838 for location in $ac_ncurses_includes $NCURSES_HEADERS $ncurses_sys_dirs
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
839 do
15312
42e2c73b6b9c [gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15248
diff changeset
840 f="$location/ncurses.h"
30498
079df2f23d52 Fix build with --with-ncurses-headers.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 30491
diff changeset
841 orig_CFLAGS="$CFLAGS"
079df2f23d52 Fix build with --with-ncurses-headers.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 30491
diff changeset
842 orig_CPPFLAGS="$CPPFLAGS"
079df2f23d52 Fix build with --with-ncurses-headers.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 30491
diff changeset
843 CFLAGS="$CFLAGS -I$location"
079df2f23d52 Fix build with --with-ncurses-headers.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 30491
diff changeset
844 CPPFLAGS="$CPPFLAGS -I$location"
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
845 AC_CHECK_HEADER($f,[
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
846 AC_MSG_CHECKING([if $f supports wide characters])
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
847 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
848 #define _XOPEN_SOURCE_EXTENDED
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
849 #include <$f>
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
850 ]], [[
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
851 #ifndef get_wch
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
852 # error get_wch not found!
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
853 #endif
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
854 ]])], [
15332
91c86b5315fb [gaim-migrate @ 18060]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15312
diff changeset
855 dir=$location
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
856 if test x"$dir" != x"." ; then
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
857 GNT_CFLAGS="-I$dir/"
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
858 else
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
859 GNT_CFLAGS=""
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
860 fi
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
861
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
862 found_ncurses_h=yes
30498
079df2f23d52 Fix build with --with-ncurses-headers.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 30491
diff changeset
863 CFLAGS="$orig_CFLAGS"
079df2f23d52 Fix build with --with-ncurses-headers.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 30491
diff changeset
864 CPPFLAGS="$orig_CPPFLAGS"
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
865 AC_MSG_RESULT([yes])
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
866 break
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
867 ], [
30498
079df2f23d52 Fix build with --with-ncurses-headers.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 30491
diff changeset
868 CFLAGS="$orig_CFLAGS"
079df2f23d52 Fix build with --with-ncurses-headers.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 30491
diff changeset
869 CPPFLAGS="$orig_CPPFLAGS"
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
870 AC_MSG_RESULT([no])
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
871 ])
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
872 ])
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
873 done
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
874
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
875 if test x"$found_ncurses_h" = x"no" ; then
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
876 GNT_LIBS=""
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
877 GNT_CFLAGS=""
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
878 enable_consoleui=no
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
879 fi
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
880 else
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
881 # ncursesw was not found. Look for plain old ncurses
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
882 enable_consoleui=yes
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
883 AC_CHECK_LIB(ncurses, initscr, [GNT_LIBS="-lncurses"], [enable_consoleui=no])
28300
a4516ae76153 Properly detect libpanel by including ncurses libs in linking test.
Paul Aurich <darkrain42@pidgin.im>
parents: 28285
diff changeset
884 AC_CHECK_LIB(panel, update_panels, [GNT_LIBS="$GNT_LIBS -lpanel"],
a4516ae76153 Properly detect libpanel by including ncurses libs in linking test.
Paul Aurich <darkrain42@pidgin.im>
parents: 28285
diff changeset
885 [enable_consoleui=no], [$GNT_LIBS])
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
886 AC_DEFINE(NO_WIDECHAR, 1, [Define to 1 if you don't have wide-character support.])
15312
42e2c73b6b9c [gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15248
diff changeset
887 if test x"$ac_ncurses_includes" != "x"; then
42e2c73b6b9c [gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15248
diff changeset
888 GNT_CFLAGS="-I$ac_ncurses_includes"
42e2c73b6b9c [gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15248
diff changeset
889 else
42e2c73b6b9c [gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15248
diff changeset
890 if test x"$NCURSES_HEADERS" != "x"; then
42e2c73b6b9c [gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15248
diff changeset
891 GNT_CFLAGS="-I$NCURSES_HEADERS"
42e2c73b6b9c [gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15248
diff changeset
892 fi
42e2c73b6b9c [gaim-migrate @ 18040]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15248
diff changeset
893 fi
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
894 fi
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
895 fi
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
896
21822
20878ac233be Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21762
diff changeset
897 if test "x$force_finch" = "xyes" -a "x$enable_consoleui" != "xyes"; then
20878ac233be Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21762
diff changeset
898 AC_MSG_ERROR([
20878ac233be Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21762
diff changeset
899
20878ac233be Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21762
diff changeset
900 Finch will not be built. You need to install ncursesw (or ncurses) and its development headers.
20878ac233be Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21762
diff changeset
901
20878ac233be Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21762
diff changeset
902 ])
20878ac233be Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21762
diff changeset
903 fi
20878ac233be Error out when --enable-consoleui is used but finch can't be built. Fixes #3910.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21762
diff changeset
904
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
905 AC_SUBST(GNT_LIBS)
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
906 AC_SUBST(GNT_CFLAGS)
14507
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
907 AM_CONDITIONAL(ENABLE_GNT, test "x$enable_consoleui" = "xyes")
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
908
14539
7d5528c864a1 [gaim-migrate @ 17195]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14533
diff changeset
909 #AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])])
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
910
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
911 dnl #######################################################################
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
912 dnl # Check for LibXML2 (required)
13720
051ef816673a [gaim-migrate @ 16127]
Sean Egan <seanegan@pidgin.im>
parents: 13633
diff changeset
913 dnl #######################################################################
14621
907c1e7a75a9 [gaim-migrate @ 17282]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14599
diff changeset
914 PKG_CHECK_MODULES(LIBXML, [libxml-2.0 >= 2.6.0], , [
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
915 AC_MSG_RESULT(no)
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
916 AC_MSG_ERROR([
16247
f9e1e46abbae Deal with Gaim in some error messages.
Richard Laager <rlaager@pidgin.im>
parents: 16206
diff changeset
917 You must have libxml2 >= 2.6.0 development headers installed to build.
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
918 ])])
26754
216b79c00415 Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26729
diff changeset
919 PKG_CHECK_EXISTS([libxml-2.0 >= 2.6.18], , [
216b79c00415 Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26729
diff changeset
920 AC_MSG_WARN([
216b79c00415 Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26729
diff changeset
921 Versions of libxml2 < 2.6.18 may contain bugs that could cause XMPP messages to be discarded.
216b79c00415 Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26729
diff changeset
922 ])])
216b79c00415 Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26729
diff changeset
923
13808
411ee56da344 [gaim-migrate @ 16229]
Sean Egan <seanegan@pidgin.im>
parents: 13776
diff changeset
924 AC_SUBST(LIBXML_CFLAGS)
411ee56da344 [gaim-migrate @ 16229]
Sean Egan <seanegan@pidgin.im>
parents: 13776
diff changeset
925 AC_SUBST(LIBXML_LIBS)
14498
ede839a78714 [gaim-migrate @ 17150]
Mark Doliner <markdoliner@pidgin.im>
parents: 14492
diff changeset
926
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
927 dnl #######################################################################
33572
1121664fc0a8 Make JSON-GLib required, fixes #15430. Cause: libpurple core code uses this
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33515
diff changeset
928 dnl # Check for JSON-GLib (required)
33410
6cb7038d8172 New dependency: json-glib
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33377
diff changeset
929 dnl #######################################################################
6cb7038d8172 New dependency: json-glib
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33377
diff changeset
930
35196
4e8497f23b7c Revert changeset 2b3fba3cf555 (Reduce JSON-GLib requirement to 0.10)
Ankit Vani <a@nevitus.org>
parents: 35193
diff changeset
931 PKG_CHECK_MODULES([JSON], [json-glib-1.0 >= 0.14.0], , [
33572
1121664fc0a8 Make JSON-GLib required, fixes #15430. Cause: libpurple core code uses this
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33515
diff changeset
932 AC_MSG_RESULT(no)
1121664fc0a8 Make JSON-GLib required, fixes #15430. Cause: libpurple core code uses this
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33515
diff changeset
933 AC_MSG_ERROR([
35196
4e8497f23b7c Revert changeset 2b3fba3cf555 (Reduce JSON-GLib requirement to 0.10)
Ankit Vani <a@nevitus.org>
parents: 35193
diff changeset
934 You must have JSON-GLib >= 0.14.0 development headers installed to build.
33572
1121664fc0a8 Make JSON-GLib required, fixes #15430. Cause: libpurple core code uses this
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33515
diff changeset
935 ])])
33410
6cb7038d8172 New dependency: json-glib
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33377
diff changeset
936
33461
7f67e9178ed9 Fix compilation from clean working directory
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33423
diff changeset
937 AC_SUBST(JSON_CFLAGS)
7f67e9178ed9 Fix compilation from clean working directory
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33423
diff changeset
938 AC_SUBST(JSON_LIBS)
7f67e9178ed9 Fix compilation from clean working directory
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33423
diff changeset
939
33410
6cb7038d8172 New dependency: json-glib
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33377
diff changeset
940 dnl #######################################################################
33314
57013b9e1a8e Gadu-Gadu: roster - downloading
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33300
diff changeset
941 dnl # Check for zlib (required)
57013b9e1a8e Gadu-Gadu: roster - downloading
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33300
diff changeset
942 dnl #######################################################################
57013b9e1a8e Gadu-Gadu: roster - downloading
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33300
diff changeset
943
57013b9e1a8e Gadu-Gadu: roster - downloading
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33300
diff changeset
944 PKG_CHECK_MODULES(ZLIB, [zlib >= 1.2.0], , [
33368
6aa16fdab83f Fix compilation of older distros. Fixes #15310
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33330
diff changeset
945 AC_SEARCH_LIBS([deflate], [z], [], AC_MSG_ERROR([You must have zlib >= 1.2.0 development headers installed to build.]), [])
6aa16fdab83f Fix compilation of older distros. Fixes #15310
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33330
diff changeset
946 ])
33314
57013b9e1a8e Gadu-Gadu: roster - downloading
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33300
diff changeset
947
57013b9e1a8e Gadu-Gadu: roster - downloading
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33300
diff changeset
948 AC_SUBST(ZLIB_CFLAGS)
57013b9e1a8e Gadu-Gadu: roster - downloading
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33300
diff changeset
949 AC_SUBST(ZLIB_LIBS)
57013b9e1a8e Gadu-Gadu: roster - downloading
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33300
diff changeset
950
57013b9e1a8e Gadu-Gadu: roster - downloading
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33300
diff changeset
951 dnl #######################################################################
14582
ae974395b9da [gaim-migrate @ 17240]
Lars T. Mikkelsen
parents: 14573
diff changeset
952 dnl # GConf schemas
ae974395b9da [gaim-migrate @ 17240]
Lars T. Mikkelsen
parents: 14573
diff changeset
953 dnl #######################################################################
ae974395b9da [gaim-migrate @ 17240]
Lars T. Mikkelsen
parents: 14573
diff changeset
954 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
ae974395b9da [gaim-migrate @ 17240]
Lars T. Mikkelsen
parents: 14573
diff changeset
955 AM_CONDITIONAL(USE_GCONFTOOL, test "x$GCONFTOOL" != "xno")
ae974395b9da [gaim-migrate @ 17240]
Lars T. Mikkelsen
parents: 14573
diff changeset
956 AM_GCONF_SOURCE_2
ae974395b9da [gaim-migrate @ 17240]
Lars T. Mikkelsen
parents: 14573
diff changeset
957
ae974395b9da [gaim-migrate @ 17240]
Lars T. Mikkelsen
parents: 14573
diff changeset
958 dnl #######################################################################
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
959 dnl # Check for GStreamer
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
960 dnl #######################################################################
37421
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
961 AC_ARG_ENABLE(gstreamer,
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
962 [AS_HELP_STRING([--disable-gstreamer], [compile without GStreamer audio support])],
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
963 enable_gst="$enableval", enable_gst="yes")
35886
5ffcb3db9398 configure: automatically choose gtk2/3 - gstreamer0.10/1.0 versions that match
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35885
diff changeset
964
37421
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
965 if test x"$enable_gst" != "xno"; then
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
966 PKG_CHECK_MODULES(GSTREAMER, [gstreamer-1.0], [
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
967 AC_DEFINE(USE_GSTREAMER, 1, [Use GStreamer for playing sounds])
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
968 with_gstreamer="1.0"
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
969 AC_SUBST(GSTREAMER_CFLAGS)
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
970 AC_SUBST(GSTREAMER_LIBS)
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
971 ], [
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
972 AC_MSG_RESULT(no)
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
973 enable_gst="no"
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
974 if test "x$force_deps" = "xyes" ; then
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
975 AC_MSG_ERROR([
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
976 GStreamer development headers not found.
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
977 Use --disable-gstreamer if you do not need GStreamer (sound) support.
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
978 ])
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
979 fi
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
980 ])
36316
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
981 fi
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
982
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
983 dnl #######################################################################
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
984 dnl # Check for GStreamer Video
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
985 dnl #######################################################################
37421
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
986 if test "x$enable_gst" != "xno"; then
36316
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
987 AC_ARG_ENABLE(gstreamer-video,
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
988 [AS_HELP_STRING([--disable-gstreamer-video], [compile without GStreamer 1.0 Video Overlay support])],
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
989 enable_gstvideo="$enableval", enable_gstvideo="yes")
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
990 if test "x$enable_gstvideo" != "xno"; then
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
991 PKG_CHECK_MODULES(GSTVIDEO, [gstreamer-video-1.0], [
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
992 AC_DEFINE(USE_GSTVIDEO, 1, [Use GStreamer Video Overlay support])
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
993 AC_SUBST(GSTVIDEO_CFLAGS)
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
994 AC_SUBST(GSTVIDEO_LIBS)
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
995 ], [
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
996 enable_gstvideo="no"
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
997 ])
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
998 fi
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
999 else
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
1000 enable_gstvideo="no"
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1001 fi
13808
411ee56da344 [gaim-migrate @ 16229]
Sean Egan <seanegan@pidgin.im>
parents: 13776
diff changeset
1002
11579
1ff537bd2e92 [gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents: 11465
diff changeset
1003 dnl #######################################################################
32113
2a75cce047d5 Port to Farstream
Olivier Crête <olivier.crete@collabora.com>
parents: 32106
diff changeset
1004 dnl # Check for Farstream
19881
d80b4d01457e Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents: 19656
diff changeset
1005 dnl #######################################################################
32113
2a75cce047d5 Port to Farstream
Olivier Crête <olivier.crete@collabora.com>
parents: 32106
diff changeset
1006 AC_ARG_ENABLE(farstream,
36316
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
1007 [AS_HELP_STRING([--disable-farstream], [compile without farstream support])],
32113
2a75cce047d5 Port to Farstream
Olivier Crête <olivier.crete@collabora.com>
parents: 32106
diff changeset
1008 enable_farstream="$enableval", enable_farstream="yes")
2a75cce047d5 Port to Farstream
Olivier Crête <olivier.crete@collabora.com>
parents: 32106
diff changeset
1009 if test "x$enable_farstream" != "xno"; then
37421
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
1010 PKG_CHECK_MODULES(FARSTREAM, [farstream-0.2 >= 0.2.7], [
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
1011 AC_SUBST(FARSTREAM_CFLAGS)
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
1012 AC_SUBST(FARSTREAM_LIBS)
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
1013 ], [
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
1014 enable_farstream="no"
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
1015 ])
36316
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
1016 fi
19881
d80b4d01457e Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents: 19656
diff changeset
1017
22648
e286d795c5f9 Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22647
diff changeset
1018 dnl #######################################################################
23703
5fb5502c76c3 Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents: 23702
diff changeset
1019 dnl # Check for Voice and Video support
5fb5502c76c3 Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents: 23702
diff changeset
1020 dnl #######################################################################
5fb5502c76c3 Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents: 23702
diff changeset
1021 AC_ARG_ENABLE(vv,
36316
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
1022 [AS_HELP_STRING([--disable-vv], [compile without voice and video support])],
28310
789375153545 Fail the configure script if voice and video dependencies are missing.
Michael Ruprecht <maiku@pidgin.im>
parents: 28302
diff changeset
1023 enable_vv="$enableval", enable_vv="yes")
23703
5fb5502c76c3 Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents: 23702
diff changeset
1024 if test "x$enable_vv" != "xno"; then
37421
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
1025 if test "x$enable_gst" != "xno" -a "x$enable_gstvideo" != "xno" -a "x$enable_farstream" != "xno"; then
23703
5fb5502c76c3 Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents: 23702
diff changeset
1026 AC_DEFINE(USE_VV, 1, [Use voice and video])
5fb5502c76c3 Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents: 23702
diff changeset
1027 else
5fb5502c76c3 Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents: 23702
diff changeset
1028 enable_vv="no"
28310
789375153545 Fail the configure script if voice and video dependencies are missing.
Michael Ruprecht <maiku@pidgin.im>
parents: 28302
diff changeset
1029 if test "x$force_deps" = "xyes"; then
26656
69f29e0c8111 Abort build if we use --enable-vv, and vv-dependencies are not met.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 26637
diff changeset
1030 AC_MSG_ERROR([
26714
0f1f4178f6e7 Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26656
diff changeset
1031 Dependencies for voice/video were not met.
32113
2a75cce047d5 Port to Farstream
Olivier Crête <olivier.crete@collabora.com>
parents: 32106
diff changeset
1032 Install the necessary gstreamer and farstream packages first.
26714
0f1f4178f6e7 Some configure.ac updates.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 26656
diff changeset
1033 Or use --disable-vv if you do not need voice/video support.
26656
69f29e0c8111 Abort build if we use --enable-vv, and vv-dependencies are not met.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 26637
diff changeset
1034 ])
69f29e0c8111 Abort build if we use --enable-vv, and vv-dependencies are not met.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 26637
diff changeset
1035 fi
23703
5fb5502c76c3 Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents: 23702
diff changeset
1036 fi
5fb5502c76c3 Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents: 23702
diff changeset
1037 fi
36316
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
1038 AM_CONDITIONAL(USE_VV, test "x$enable_vv" != "xno")
22648
e286d795c5f9 Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 22647
diff changeset
1039
29147
68498038891f Minor commenting.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29085
diff changeset
1040 dnl #######################################################################
36333
4fe1034f3dce Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents: 36324
diff changeset
1041 dnl # Check for Raw data streams support in Farstream
4fe1034f3dce Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents: 36324
diff changeset
1042 dnl #######################################################################
37421
ee3bd4532a33 Remove support for GStreamer 0.10
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37417
diff changeset
1043 if test "x$enable_vv" != "xno"; then
36333
4fe1034f3dce Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents: 36324
diff changeset
1044 PKG_CHECK_MODULES(GSTAPP, [gstreamer-app-1.0], [
4fe1034f3dce Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents: 36324
diff changeset
1045 AC_DEFINE(USE_GSTAPP, 1, [Use GStreamer Video Overlay support])
4fe1034f3dce Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents: 36324
diff changeset
1046 AC_SUBST(GSTAPP_CFLAGS)
4fe1034f3dce Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents: 36324
diff changeset
1047 AC_SUBST(GSTAPP_LIBS)
4fe1034f3dce Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents: 36324
diff changeset
1048 AC_DEFINE(HAVE_MEDIA_APPLICATION, 1, [Define if we have support for application media type.])
37230
221a82d46032 Remove spurious 'yes' in configure script.
Michael McConville <mmcconville@mykolab.com>
parents: 37225
diff changeset
1049 ] , )
36333
4fe1034f3dce Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents: 36324
diff changeset
1050 fi
4fe1034f3dce Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents: 36324
diff changeset
1051
4fe1034f3dce Add application media type and APIs
Youness Alaoui <kakaroto@kakaroto.homelinux.net>
parents: 36324
diff changeset
1052 dnl #######################################################################
29147
68498038891f Minor commenting.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29085
diff changeset
1053 dnl # Check for Internationalized Domain Name support
68498038891f Minor commenting.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29085
diff changeset
1054 dnl #######################################################################
68498038891f Minor commenting.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29085
diff changeset
1055
27849
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1056 AC_ARG_ENABLE(idn,
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1057 [AS_HELP_STRING([--disable-idn], [compile without IDN support])],
27849
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1058 [enable_idn="$enableval" force_idn=$enableval], [enable_idn="yes" force_idn=no])
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1059 if test "x$enable_idn" != "xno"; then
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1060 PKG_CHECK_MODULES(IDN, libidn >= 0.0.0, [
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1061 AC_DEFINE(USE_IDN, 1, [Use GNU Libidn for stringprep and IDN])
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1062 AC_SUBST(IDN_CFLAGS)
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1063 AC_SUBST(IDN_LIBS)
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1064 ], [
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1065 AC_MSG_RESULT(no)
29218
bf6fc038a9fa Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents: 29204
diff changeset
1066 enable_idn="no"
27849
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1067 if test "x$force_deps" = "xyes" ; then
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1068 AC_MSG_ERROR([
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1069 GNU Libidn development headers not found.
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1070 Use --disable-idn if you do not need it.
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1071 ])
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1072 fi
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1073 ])
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1074 fi
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
1075
19881
d80b4d01457e Add Farsight to configure.ac
Sean Egan <seanegan@pidgin.im>
parents: 19656
diff changeset
1076 dnl #######################################################################
12496
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1077 dnl # Check for Meanwhile headers (for Sametime)
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1078 dnl #######################################################################
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1079 AC_ARG_ENABLE(meanwhile,
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1080 [AS_HELP_STRING([--disable-meanwhile],
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1081 [compile without meanwhile (required for Sametime support)])],
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1082 enable_meanwhile="$enableval", enable_meanwhile="yes")
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1083 if test "x$enable_meanwhile" = "xyes"; then
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1084 PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1085 have_meanwhile="yes"
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1086 ], [
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1087 have_meanwhile="no"
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
1088 if test "x$force_deps" = "xyes" ; then
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
1089 AC_MSG_ERROR([
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1090 Meanwhile development headers not found.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1091 Use --disable-meanwhile if you do not need meanwhile (Sametime) support.
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
1092 ])
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
1093 fi])
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1094 fi
12496
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1095 AC_SUBST(MEANWHILE_CFLAGS)
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1096 AC_SUBST(MEANWHILE_LIBS)
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1097
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1098 dnl #######################################################################
19100
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1099 dnl # Check for Native Avahi headers (for Bonjour)
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1100 dnl #######################################################################
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1101 AC_ARG_ENABLE(avahi,
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1102 [AS_HELP_STRING([--disable-avahi],
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1103 [compile without avahi (required for Bonjour support)])],
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1104 enable_avahi="$enableval", enable_avahi="yes")
28302
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1105
35885
e5cc097d6c82 cross-win32: fix bonjour
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35884
diff changeset
1106 if test "x$enable_avahi" = "xyes" -a "x$is_win32" = "xyes" ; then
e5cc097d6c82 cross-win32: fix bonjour
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35884
diff changeset
1107 avahiincludes="yes"
e5cc097d6c82 cross-win32: fix bonjour
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35884
diff changeset
1108 avahilibs="yes"
e5cc097d6c82 cross-win32: fix bonjour
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35884
diff changeset
1109 elif test "x$enable_avahi" = "xyes"; then
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1110 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"])
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1111 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"])
28302
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1112 AVAHI_CFLAGS=""
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1113 AVAHI_LIBS=""
19100
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1114
28302
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1115 dnl Attempt to autodetect Avahi
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1116 PKG_CHECK_MODULES(AVAHI, [avahi-client avahi-glib], [
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1117 avahiincludes="yes"
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1118 avahilibs="yes"
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1119 ], [
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1120 avahiincludes="no"
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1121 avahilibs="no"
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1122 ])
19100
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1123
28302
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1124 dnl Override AVAHI_CFLAGS if the user specified an include dir
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1125 if test "$ac_avahi_client_includes" != "no"; then
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1126 AVAHI_CFLAGS="-I$ac_avahi_client_includes"
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1127 fi
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1128 CPPFLAGS_save="$CPPFLAGS"
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1129 CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS"
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1130 AC_CHECK_HEADER(avahi-client/client.h, [avahiincludes=yes], [avahiincludes=no])
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1131 CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS $GLIB_CFLAGS"
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1132 AC_CHECK_HEADER(avahi-glib/glib-malloc.h, [avahiincludes=yes], [avahiincludes=no])
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1133 CPPFLAGS="$CPPFLAGS_save"
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1134
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1135 dnl Override AVAHI_LIBS if the user specified a libs dir
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1136 if test "$ac_avahi_client_libs" != "no"; then
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1137 AVAHI_LIBS="-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib "
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1138 fi
8bee3af43872 Fix --disable-avahi. Closes #9449.
Paul Aurich <darkrain42@pidgin.im>
parents: 28300
diff changeset
1139 AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS)
19100
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1140 fi
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1141
29218
bf6fc038a9fa Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents: 29204
diff changeset
1142 if test "x$enable_avahi" = "xyes" -a \( "x$avahiincludes" = "xno" -o "x$avahilibs" = "xno" \); then
bf6fc038a9fa Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents: 29204
diff changeset
1143 enable_avahi="no"
bf6fc038a9fa Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents: 29204
diff changeset
1144 if test "x$force_deps" = "xyes"; then
bf6fc038a9fa Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents: 29204
diff changeset
1145 AC_MSG_ERROR([
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1146 avahi development headers not found.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1147 Use --disable-avahi if you do not need avahi (Bonjour) support.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1148 ])
29218
bf6fc038a9fa Patch from Gabriel Schulhof to correctly disable all missing dependencies
Gabriel Schulhof <nix@go-nix.ca>
parents: 29204
diff changeset
1149 fi
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1150 fi
19100
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1151 AC_SUBST(AVAHI_CFLAGS)
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1152 AC_SUBST(AVAHI_LIBS)
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1153
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1154
11579
1ff537bd2e92 [gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents: 11465
diff changeset
1155 dnl #######################################################################
1ff537bd2e92 [gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents: 11465
diff changeset
1156 dnl # Check for SILC client includes and libraries
1ff537bd2e92 [gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents: 11465
diff changeset
1157 dnl #######################################################################
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1158 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"])
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1159 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"])
9905
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1160 SILC_CFLAGS=""
8850
1b5ad9815f09 [gaim-migrate @ 9617]
Ethan Blanton <elb@pidgin.im>
parents: 8849
diff changeset
1161 SILC_LIBS=""
17675
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1162 have_silc="no"
9905
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1163 if test -n "$with_silc_includes" || test -n "$with_silc_libs"; then
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1164 silc_manual_check="yes"
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1165 else
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1166 silc_manual_check="no"
8850
1b5ad9815f09 [gaim-migrate @ 9617]
Ethan Blanton <elb@pidgin.im>
parents: 8849
diff changeset
1167 fi
9905
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1168 if test "x$silc_manual_check" = "xno"; then
17675
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1169 PKG_CHECK_MODULES(SILC, [silcclient >= 1.1], [
9905
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1170 have_silc="yes"
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1171 silcincludes="yes"
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1172 silcclient="yes"
13171
a49601b4afa9 [gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents: 13153
diff changeset
1173 ], [
a49601b4afa9 [gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents: 13153
diff changeset
1174 have_silc="no"
a49601b4afa9 [gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents: 13153
diff changeset
1175 ])
9905
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1176 else
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1177 if test "$ac_silc_includes" != "no"; then
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1178 SILC_CFLAGS="-I$ac_silc_includes"
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1179 fi
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1180 CPPFLAGS_save="$CPPFLAGS"
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1181 CPPFLAGS="$CPPFLAGS $SILC_CFLAGS"
17675
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1182 AC_CHECK_HEADER(silc.h, [silcincludes=yes])
9905
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1183 CPPFLAGS="$CPPFLAGS_save"
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1184
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1185 if test "$ac_silc_libs" != "no"; then
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1186 SILC_LIBS="-L$ac_silc_libs"
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1187 fi
12038
1d83b5720a65 [gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 12036
diff changeset
1188 SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread $LIBDL"
9905
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1189 AC_CHECK_LIB(silcclient, silc_client_init, [silcclient=yes], , $SILC_LIBS)
17675
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1190
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1191 if test "x$silcincludes" = "xyes" -a "x$silcclient" = "xyes"; then
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1192 have_silc="yes"
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1193 fi
9905
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1194 fi
8850
1b5ad9815f09 [gaim-migrate @ 9617]
Ethan Blanton <elb@pidgin.im>
parents: 8849
diff changeset
1195 AC_SUBST(SILC_LIBS)
9905
ec88d7afd8dc [gaim-migrate @ 10797]
Luke Schierer <lschiere@pidgin.im>
parents: 9884
diff changeset
1196 AC_SUBST(SILC_CFLAGS)
12217
ea610d8ab584 [gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents: 12123
diff changeset
1197 dnl SILC Toolkit >= 1.0.1 has a new MIME API
ea610d8ab584 [gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents: 12123
diff changeset
1198 if test "x$silcclient" = "xyes"; then
17675
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1199 AC_DEFINE(HAVE_SILCMIME_H, 1, [Define if we have silcmime.h])
12217
ea610d8ab584 [gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents: 12123
diff changeset
1200 fi
11579
1ff537bd2e92 [gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents: 11465
diff changeset
1201
13318
1657b80f2832 [gaim-migrate @ 15686]
Matthew Luckie
parents: 13294
diff changeset
1202 dnl #######################################################################
36118
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1203 dnl # Check for Gadu-Gadu protocol library (libgadu)
13318
1657b80f2832 [gaim-migrate @ 15686]
Matthew Luckie
parents: 13294
diff changeset
1204 dnl #######################################################################
1657b80f2832 [gaim-migrate @ 15686]
Matthew Luckie
parents: 13294
diff changeset
1205
36118
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1206 PKG_CHECK_MODULES(LIBGADU, [libgadu >= 1.12.0], [have_libgadu=yes], [have_libgadu=no])
13318
1657b80f2832 [gaim-migrate @ 15686]
Matthew Luckie
parents: 13294
diff changeset
1207
36118
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1208 if test "x$have_libgadu" = "xyes"; then
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1209 AC_CHECK_LIB(gadu, gg_is_gpl_compliant, , [
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1210 LIBGADU_LIBS=""
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1211 LIBGADU_CFLAGS=""
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1212 have_libgadu=no
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1213 AC_MSG_WARN([
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1214 libgadu is not compatible with the GPL when compiled with OpenSSL support.
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1215
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1216 To compile against system libgadu, please recompile libgadu using:
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1217 ./configure --with-openssl=no
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1218 Then rerun this ./configure
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1219
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1220 Falling back to using our own copy of libgadu.
29839
6817ea4fe466 Don't use old versions of libgadu if the user specified a location for the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29838
diff changeset
1221 ])
13318
1657b80f2832 [gaim-migrate @ 15686]
Matthew Luckie
parents: 13294
diff changeset
1222 ])
1657b80f2832 [gaim-migrate @ 15686]
Matthew Luckie
parents: 13294
diff changeset
1223 fi
1657b80f2832 [gaim-migrate @ 15686]
Matthew Luckie
parents: 13294
diff changeset
1224
36118
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1225 AM_CONDITIONAL(HAVE_LIBGADU, test "x$have_libgadu" = "xyes")
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1226 if test "x$have_libgadu" = "xyes"; then
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1227 AC_DEFINE(HAVE_LIBGADU, 1, [Linked with external libgadu])
36120
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1228 else
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1229 AC_CHECK_LIB(gnutls, gnutls_certificate_set_x509_system_trust, [gg_have_gnutls_csxst=yes], [gg_have_gnutls_csxst=no])
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1230
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1231 gg_gnutls_sts=""
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1232 if test "x$gg_have_gnutls_csxst" = "xno"; then
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1233 for i in /etc/ssl/ca-bundle.pem \
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1234 /etc/ssl/certs/ca-certificates.crt \
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1235 /etc/pki/tls/cert.pem \
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1236 /usr/local/share/certs/ca-root-nss.crt \
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1237 /etc/ssl/cert.pem
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1238 do
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1239 if test -e $i; then
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1240 gg_gnutls_sts="$i"
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1241 break
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1242 fi
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1243 done
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1244 fi
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1245
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1246 if test "x$gg_have_gnutls_csxst" = "xyes"; then
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1247 AC_DEFINE(HAVE_GNUTLS_CERTIFICATE_SET_X509_SYSTEM_TRUST, 1, [gnutls contains the gnutls_certificate_set_x509_system_trust function])
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1248 fi
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1249 if test "x$gg_gnutls_sts" != "x"; then
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1250 AC_DEFINE_UNQUOTED(GG_CONFIG_GNUTLS_SYSTEM_TRUST_STORE, ["$gg_gnutls_sts"], [use the given file as GnuTLS default trust store])
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1251 fi
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1252
37209
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1253 dnl # redundant - only here to stay compatible with libgadu upstream
36120
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1254 PKG_CHECK_MODULES([GNUTLS_2_10], [gnutls >= 2.10.0], [
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1255 AC_DEFINE([HAVE_GNUTLS_2_10], [], [Defined if GnuTLS >= 2.10.0 is available.])
99a1117a296f Gadu-Gadu: revert things accidentally removed, fix build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36118
diff changeset
1256 ],:)
35617
c9069e0e3c36 Update internal libgadu to 1.12.0-rc2
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35562
diff changeset
1257 fi
14662
ffa7b2f70a37 [gaim-migrate @ 17327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 14647
diff changeset
1258
36118
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1259 AC_SUBST(LIBGADU_LIBS)
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
1260 AC_SUBST(LIBGADU_CFLAGS)
29856
203c3499753f Properly display "no" in the configure output when not using external libgadu.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29839
diff changeset
1261
13318
1657b80f2832 [gaim-migrate @ 15686]
Matthew Luckie
parents: 13294
diff changeset
1262
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1263 AC_ARG_ENABLE(distrib,,,enable_distrib=no)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1264 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes")
8031
c54f20d9324c [gaim-migrate @ 8711]
Ethan Blanton <elb@pidgin.im>
parents: 7860
diff changeset
1265 DYNAMIC_PRPLS=all
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1266 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=""])
8031
c54f20d9324c [gaim-migrate @ 8711]
Ethan Blanton <elb@pidgin.im>
parents: 7860
diff changeset
1267 if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then
c54f20d9324c [gaim-migrate @ 8711]
Ethan Blanton <elb@pidgin.im>
parents: 7860
diff changeset
1268 DYNAMIC_PRPLS=""
c54f20d9324c [gaim-migrate @ 8711]
Ethan Blanton <elb@pidgin.im>
parents: 7860
diff changeset
1269 fi
c54f20d9324c [gaim-migrate @ 8711]
Ethan Blanton <elb@pidgin.im>
parents: 7860
diff changeset
1270
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1271 if test "x$STATIC_PRPLS" = "xall" ; then
37249
dfa58c08a4fd facebook: initial protocol plugin
James Geboski <jgeboski@gmail.com>
parents: 37163
diff changeset
1272 STATIC_PRPLS="bonjour facebook gg irc jabber msn mxit novell oscar sametime silc simple yahoo zephyr"
11579
1ff537bd2e92 [gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents: 11465
diff changeset
1273 fi
12496
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1274 if test "x$have_meanwhile" != "xyes" ; then
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1275 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'`
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1276 fi
19100
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1277 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
21920
3087a567aedf Update Bonjour prpl to support multiple presence records for the same buddy. Eliminate the Howl backend to avoid having to maintain yet another set of code. References #4187 (more to come to fix the rest of the ticket).
Daniel Atallah <datallah@pidgin.im>
parents: 21915
diff changeset
1278 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'`
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1279 fi
8852
d1aeee018648 [gaim-migrate @ 9619]
Ethan Blanton <elb@pidgin.im>
parents: 8851
diff changeset
1280 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
32205
4caef1292160 Remove silc10
Mark Doliner <markdoliner@pidgin.im>
parents: 32144
diff changeset
1281 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc//'`
17675
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1282 fi
35854
ed4fd1030878 cross-win32: fix libpurple code warnings and errors
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35852
diff changeset
1283 if test "x$is_win32" = "xyes" ; then
ed4fd1030878 cross-win32: fix libpurple code warnings and errors
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35852
diff changeset
1284 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/zephyr//'`
8852
d1aeee018648 [gaim-migrate @ 9619]
Ethan Blanton <elb@pidgin.im>
parents: 8851
diff changeset
1285 fi
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1286 AC_SUBST(STATIC_PRPLS)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1287 STATIC_LINK_LIBS=
36458
a9cccad073e9 Static prpls now work. Added macro PURPLE_PLUGIN_INIT(plugin-name, query-func, load-func, unload-func).
Ankit Vani <a@nevitus.org>
parents: 36442
diff changeset
1288 extern_load=
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1289 load_proto=
36458
a9cccad073e9 Static prpls now work. Added macro PURPLE_PLUGIN_INIT(plugin-name, query-func, load-func, unload-func).
Ankit Vani <a@nevitus.org>
parents: 36442
diff changeset
1290 extern_unload=
a9cccad073e9 Static prpls now work. Added macro PURPLE_PLUGIN_INIT(plugin-name, query-func, load-func, unload-func).
Ankit Vani <a@nevitus.org>
parents: 36442
diff changeset
1291 unload_proto=
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1292 for i in $STATIC_PRPLS ; do
24609
c119f12de848 Use libtool to build static archives when --with-static-prpls is passed
Mark Doliner <markdoliner@pidgin.im>
parents: 24569
diff changeset
1293 dnl Ugly special case for "libsilcpurple.la":
36671
e94d995eaeeb Removed the ugly special cases for oscar and yahoo from configure.ac
Ankit Vani <a@nevitus.org>
parents: 36641
diff changeset
1294 if test "x$i" = "xsilc"; then
e94d995eaeeb Removed the ugly special cases for oscar and yahoo from configure.ac
Ankit Vani <a@nevitus.org>
parents: 36641
diff changeset
1295 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la"
11945
3013d1f6ca43 [gaim-migrate @ 14236]
Mark Doliner <markdoliner@pidgin.im>
parents: 11903
diff changeset
1296 else
36671
e94d995eaeeb Removed the ugly special cases for oscar and yahoo from configure.ac
Ankit Vani <a@nevitus.org>
parents: 36641
diff changeset
1297 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib$i.la"
11945
3013d1f6ca43 [gaim-migrate @ 14236]
Mark Doliner <markdoliner@pidgin.im>
parents: 11903
diff changeset
1298 fi
36671
e94d995eaeeb Removed the ugly special cases for oscar and yahoo from configure.ac
Ankit Vani <a@nevitus.org>
parents: 36641
diff changeset
1299 extern_load="$extern_load extern gboolean ${i}_plugin_load();"
e94d995eaeeb Removed the ugly special cases for oscar and yahoo from configure.ac
Ankit Vani <a@nevitus.org>
parents: 36641
diff changeset
1300 load_proto="$load_proto ${i}_plugin_load();"
e94d995eaeeb Removed the ugly special cases for oscar and yahoo from configure.ac
Ankit Vani <a@nevitus.org>
parents: 36641
diff changeset
1301 extern_unload="$extern_unload extern gboolean ${i}_plugin_unload();"
e94d995eaeeb Removed the ugly special cases for oscar and yahoo from configure.ac
Ankit Vani <a@nevitus.org>
parents: 36641
diff changeset
1302 unload_proto="$unload_proto ${i}_plugin_unload();"
e94d995eaeeb Removed the ugly special cases for oscar and yahoo from configure.ac
Ankit Vani <a@nevitus.org>
parents: 36641
diff changeset
1303
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1304 case $i in
11579
1ff537bd2e92 [gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents: 11465
diff changeset
1305 bonjour) static_bonjour=yes ;;
37249
dfa58c08a4fd facebook: initial protocol plugin
James Geboski <jgeboski@gmail.com>
parents: 37163
diff changeset
1306 facebook) static_facebook=yes ;;
13733
a11620505037 [gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents: 13720
diff changeset
1307 gg) static_gg=yes ;;
8637
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1308 irc) static_irc=yes ;;
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1309 jabber) static_jabber=yes ;;
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1310 msn) static_msn=yes ;;
28841
6b9568572bcb Initial addition of the MXit protocol plugin, provided by the MXit folks
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28693
diff changeset
1311 mxit) static_mxit=yes ;;
8675
4a14d9ec84a5 [gaim-migrate @ 9428]
Sean Egan <seanegan@pidgin.im>
parents: 8665
diff changeset
1312 novell) static_novell=yes ;;
8637
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1313 oscar) static_oscar=yes ;;
15478
e0dc5250f702 I think this is what was meant
Nathan Walp <nwalp@pidgin.im>
parents: 15471
diff changeset
1314 aim) static_oscar=yes ;;
e0dc5250f702 I think this is what was meant
Nathan Walp <nwalp@pidgin.im>
parents: 15471
diff changeset
1315 icq) static_oscar=yes ;;
10977
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents: 10975
diff changeset
1316 sametime) static_sametime=yes ;;
8849
4385d99b059c [gaim-migrate @ 9616]
Ethan Blanton <elb@pidgin.im>
parents: 8836
diff changeset
1317 silc) static_silc=yes ;;
11182
9cb28f52220f [gaim-migrate @ 13294]
Mark Doliner <markdoliner@pidgin.im>
parents: 11181
diff changeset
1318 simple) static_simple=yes ;;
8637
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1319 yahoo) static_yahoo=yes ;;
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1320 zephyr) static_zephyr=yes ;;
33546
a91f4d6cb5dc configure.ac: do not use exit status 0 in case of error
Michael Fiedler <dev@michael-fiedler.net>
parents: 33474
diff changeset
1321 *) echo "Invalid static protocol $i!!" ; exit 1 ;;
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1322 esac
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1323 done
19100
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1324 AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes")
37249
dfa58c08a4fd facebook: initial protocol plugin
James Geboski <jgeboski@gmail.com>
parents: 37163
diff changeset
1325 AM_CONDITIONAL(STATIC_FACEBOOK, test "x$static_facebook" = "xyes")
2393
cfef0212506b [gaim-migrate @ 2406]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents: 2330
diff changeset
1326 AM_CONDITIONAL(STATIC_GG, test "x$static_gg" = "xyes")
2244
7231c3f80615 [gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents: 2238
diff changeset
1327 AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes")
7231c3f80615 [gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents: 2238
diff changeset
1328 AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes")
7231c3f80615 [gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents: 2238
diff changeset
1329 AM_CONDITIONAL(STATIC_MSN, test "x$static_msn" = "xyes")
28841
6b9568572bcb Initial addition of the MXit protocol plugin, provided by the MXit folks
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28693
diff changeset
1330 AM_CONDITIONAL(STATIC_MXIT, test "x$static_mxit" = "xyes")
8675
4a14d9ec84a5 [gaim-migrate @ 9428]
Sean Egan <seanegan@pidgin.im>
parents: 8665
diff changeset
1331 AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes")
2244
7231c3f80615 [gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents: 2238
diff changeset
1332 AM_CONDITIONAL(STATIC_OSCAR, test "x$static_oscar" = "xyes")
12496
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1333 AM_CONDITIONAL(STATIC_SAMETIME, test "x$static_sametime" = "xyes" -a "x$have_meanwhile" = "xyes")
17675
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1334 AM_CONDITIONAL(STATIC_SILC, test "x$static_silc" = "xyes" -a "x$have_silc" = "xyes")
11181
e872a55b9524 [gaim-migrate @ 13292]
Thomas Butter <tbutter@users.sourceforge.net>
parents: 11171
diff changeset
1335 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes")
2244
7231c3f80615 [gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents: 2238
diff changeset
1336 AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes")
7231c3f80615 [gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents: 2238
diff changeset
1337 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes")
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1338 AC_SUBST(STATIC_LINK_LIBS)
36458
a9cccad073e9 Static prpls now work. Added macro PURPLE_PLUGIN_INIT(plugin-name, query-func, load-func, unload-func).
Ankit Vani <a@nevitus.org>
parents: 36442
diff changeset
1339 AC_DEFINE_UNQUOTED(STATIC_PROTO_LOAD, $extern_load static void static_proto_load(void) { $load_proto },
a9cccad073e9 Static prpls now work. Added macro PURPLE_PLUGIN_INIT(plugin-name, query-func, load-func, unload-func).
Ankit Vani <a@nevitus.org>
parents: 36442
diff changeset
1340 [Loads protocols from static protocol plugin modules.])
a9cccad073e9 Static prpls now work. Added macro PURPLE_PLUGIN_INIT(plugin-name, query-func, load-func, unload-func).
Ankit Vani <a@nevitus.org>
parents: 36442
diff changeset
1341 AC_DEFINE_UNQUOTED(STATIC_PROTO_UNLOAD, $extern_unload static void static_proto_unload(void) { $unload_proto },
a9cccad073e9 Static prpls now work. Added macro PURPLE_PLUGIN_INIT(plugin-name, query-func, load-func, unload-func).
Ankit Vani <a@nevitus.org>
parents: 36442
diff changeset
1342 [Unloads protocols from static protocol plugin modules.])
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1343
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1344 AC_ARG_WITH(dynamic_prpls, [AS_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`])
7373
a72f1b9107b3 [gaim-migrate @ 7968]
Etan Reisner <deryni@pidgin.im>
parents: 7351
diff changeset
1345 if test "x$DYNAMIC_PRPLS" = "xall" ; then
37249
dfa58c08a4fd facebook: initial protocol plugin
James Geboski <jgeboski@gmail.com>
parents: 37163
diff changeset
1346 DYNAMIC_PRPLS="bonjour facebook gg irc jabber msn mxit novell oscar sametime silc simple yahoo zephyr"
11579
1ff537bd2e92 [gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents: 11465
diff changeset
1347 fi
12496
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1348 if test "x$have_meanwhile" != "xyes"; then
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1349 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'`
12496
788b20ccec91 [gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents: 12487
diff changeset
1350 fi
19100
28880833384b Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents: 19044
diff changeset
1351 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
21920
3087a567aedf Update Bonjour prpl to support multiple presence records for the same buddy. Eliminate the Howl backend to avoid having to maintain yet another set of code. References #4187 (more to come to fix the rest of the ticket).
Daniel Atallah <datallah@pidgin.im>
parents: 21915
diff changeset
1352 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'`
7373
a72f1b9107b3 [gaim-migrate @ 7968]
Etan Reisner <deryni@pidgin.im>
parents: 7351
diff changeset
1353 fi
8852
d1aeee018648 [gaim-migrate @ 9619]
Ethan Blanton <elb@pidgin.im>
parents: 8851
diff changeset
1354 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
32205
4caef1292160 Remove silc10
Mark Doliner <markdoliner@pidgin.im>
parents: 32144
diff changeset
1355 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc//'`
17675
e7069bf1de1a Patch from Pekka Riikonen to update the SILC protocol plugin to work with
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17669
diff changeset
1356 fi
35854
ed4fd1030878 cross-win32: fix libpurple code warnings and errors
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35852
diff changeset
1357 if test "x$is_win32" = "xyes" ; then
ed4fd1030878 cross-win32: fix libpurple code warnings and errors
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35852
diff changeset
1358 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/zephyr//'`
8852
d1aeee018648 [gaim-migrate @ 9619]
Ethan Blanton <elb@pidgin.im>
parents: 8851
diff changeset
1359 fi
7373
a72f1b9107b3 [gaim-migrate @ 7968]
Etan Reisner <deryni@pidgin.im>
parents: 7351
diff changeset
1360 AC_SUBST(DYNAMIC_PRPLS)
a72f1b9107b3 [gaim-migrate @ 7968]
Etan Reisner <deryni@pidgin.im>
parents: 7351
diff changeset
1361 for i in $DYNAMIC_PRPLS ; do
a72f1b9107b3 [gaim-migrate @ 7968]
Etan Reisner <deryni@pidgin.im>
parents: 7351
diff changeset
1362 case $i in
11579
1ff537bd2e92 [gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents: 11465
diff changeset
1363 bonjour) dynamic_bonjour=yes ;;
37249
dfa58c08a4fd facebook: initial protocol plugin
James Geboski <jgeboski@gmail.com>
parents: 37163
diff changeset
1364 facebook) dynamic_facebook=yes ;;
8637
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1365 gg) dynamic_gg=yes ;;
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1366 irc) dynamic_irc=yes ;;
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1367 jabber) dynamic_jabber=yes ;;
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1368 msn) dynamic_msn=yes ;;
28841
6b9568572bcb Initial addition of the MXit protocol plugin, provided by the MXit folks
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28693
diff changeset
1369 mxit) dynamic_mxit=yes ;;
8675
4a14d9ec84a5 [gaim-migrate @ 9428]
Sean Egan <seanegan@pidgin.im>
parents: 8665
diff changeset
1370 novell) dynamic_novell=yes ;;
25003
4094ff8a95c7 The DYNAMIC_protocol defines aren't used anywhere.
Richard Laager <rlaager@pidgin.im>
parents: 24689
diff changeset
1371 null) dynamic_null=yes ;;
8637
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1372 oscar) dynamic_oscar=yes ;;
15471
ed25e8510145 Allow --dynamic-prpls to recognize aim and icq as synonyms for oscar
Ethan Blanton <elb@pidgin.im>
parents: 15458
diff changeset
1373 aim) dynamic_oscar=yes ;;
ed25e8510145 Allow --dynamic-prpls to recognize aim and icq as synonyms for oscar
Ethan Blanton <elb@pidgin.im>
parents: 15458
diff changeset
1374 icq) dynamic_oscar=yes ;;
10977
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents: 10975
diff changeset
1375 sametime) dynamic_sametime=yes ;;
8849
4385d99b059c [gaim-migrate @ 9616]
Ethan Blanton <elb@pidgin.im>
parents: 8836
diff changeset
1376 silc) dynamic_silc=yes ;;
11181
e872a55b9524 [gaim-migrate @ 13292]
Thomas Butter <tbutter@users.sourceforge.net>
parents: 11171
diff changeset
1377 simple) dynamic_simple=yes ;;
8637
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1378 yahoo) dynamic_yahoo=yes ;;
3993f410c17c [gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents: 8626
diff changeset
1379 zephyr) dynamic_zephyr=yes ;;
33546
a91f4d6cb5dc configure.ac: do not use exit status 0 in case of error
Michael Fiedler <dev@michael-fiedler.net>
parents: 33474
diff changeset
1380 *) echo "Invalid dynamic protocol $i!!" ; exit 1 ;;
7373
a72f1b9107b3 [gaim-migrate @ 7968]
Etan Reisner <deryni@pidgin.im>
parents: 7351
diff changeset
1381 esac
a72f1b9107b3 [gaim-migrate @ 7968]
Etan Reisner <deryni@pidgin.im>
parents: 7351
diff changeset
1382 done
a72f1b9107b3 [gaim-migrate @ 7968]
Etan Reisner <deryni@pidgin.im>
parents: 7351
diff changeset
1383
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1384 AC_ARG_ENABLE(plugins, [AS_HELP_STRING([--disable-plugins], [compile without plugin support])], , enable_plugins=yes)
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1385 AC_ARG_WITH(krb4, [AS_HELP_STRING([--with-krb4=PREFIX], [compile Zephyr plugin with Kerberos 4 support])], kerberos="$withval", kerberos="no")
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1386 AC_ARG_WITH(zephyr, [AS_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no")
8849
4385d99b059c [gaim-migrate @ 9616]
Ethan Blanton <elb@pidgin.im>
parents: 8836
diff changeset
1387 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
1388
22673
9a01f082c6b0 Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents: 22663
diff changeset
1389 AC_CHECK_HEADERS(sys/utsname.h)
8849
4385d99b059c [gaim-migrate @ 9616]
Ethan Blanton <elb@pidgin.im>
parents: 8836
diff changeset
1390 AC_CHECK_FUNC(uname)
8378
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
1391
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1392 AC_ARG_ENABLE(fortify, [AS_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes)
12600
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1393
24569
5dbd0617a27d Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
Richard Laager <rlaager@pidgin.im>
parents: 24512
diff changeset
1394 DEBUG_CFLAGS="$DEBUG_CFLAGS -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED"
12600
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1395 if test "x$GCC" = "xyes"; then
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1396 dnl We enable -Wall later.
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1397 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags.
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1398 dnl This leads to warnings we don't want.
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1399 CFLAGS=`echo $CFLAGS |$sedpath 's/-Wall//'`
12438
b993017e8f68 [gaim-migrate @ 14745]
Richard Laager <rlaager@pidgin.im>
parents: 12435
diff changeset
1400
12600
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1401 dnl ENABLE WARNINGS SUPPORTED BY THE VERSION OF GCC IN USE
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1402 dnl
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1403 dnl Future Possibilities
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1404 dnl
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1405 dnl Consider adding -Wbad-function-cast.
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1406 dnl This leads to spurious warnings using GPOINTER_TO_INT(), et al. directly on a function call.
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1407 dnl We'd need an intermediate variable.
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1408 dnl
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1409 for newflag in \
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1410 "-Waggregate-return" \
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1411 "-Wcast-align" \
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1412 "-Wdeclaration-after-statement" \
16650
43ae29f3d728 Add a couple more CFLAGS to highlight some more warnings and change how we
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16590
diff changeset
1413 "-Wendif-labels" \
12600
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1414 "-Werror-implicit-function-declaration" \
36256
a437550a9308 Remove -Wno-sign-compare and backport fixes from default.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36249
diff changeset
1415 "-Wextra -Wno-unused-parameter" \
25136
026dcbacb44e Turn on -Wformat-security and make it an error with GCC 4.
Richard Laager <rlaager@pidgin.im>
parents: 24689
diff changeset
1416 "-Wformat-security" \
026dcbacb44e Turn on -Wformat-security and make it an error with GCC 4.
Richard Laager <rlaager@pidgin.im>
parents: 24689
diff changeset
1417 "-Werror=format-security" \
12600
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1418 "-Winit-self" \
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1419 "-Wmissing-declarations" \
16650
43ae29f3d728 Add a couple more CFLAGS to highlight some more warnings and change how we
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16590
diff changeset
1420 "-Wmissing-noreturn" \
12600
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1421 "-Wmissing-prototypes" \
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1422 "-Wpointer-arith" \
34310
a2bc71cb4712 Add -Wfloat-equal compiler switch and fix a warning about that
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34308
diff changeset
1423 "-Wfloat-equal" \
12600
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1424 "-Wundef" \
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1425 ; do
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1426 orig_CFLAGS="$CFLAGS"
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1427 CFLAGS="$CFLAGS $newflag"
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1428 AC_MSG_CHECKING(for $newflag option to gcc)
35631
469b0ae5fee1 Correct invalid AC_LANG_PROGRAM uses
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35625
diff changeset
1429 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], [
12600
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1430 AC_MSG_RESULT(yes)
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1431 CFLAGS="$orig_CFLAGS"
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1432 DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag"
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1433 ], [
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1434 AC_MSG_RESULT(no)
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1435 CFLAGS="$orig_CFLAGS"
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1436 ])
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1437 done
12435
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1438
12600
7ecd4441fdc7 [gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents: 12584
diff changeset
1439 if test "x$enable_fortify" = "xyes"; then
12435
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1440 AC_MSG_CHECKING(for FORTIFY_SOURCE support)
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
1441 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <features.h>]], [[
12435
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1442 #if !(__GNUC_PREREQ (4, 1) \
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1443 || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1444 || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1445 && __GNUC_MINOR__ == 4 \
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1446 && (__GNUC_PATCHLEVEL__ > 2 \
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1447 || (__GNUC_PATCHLEVEL__ == 2 && __GNUC_RH_RELEASE__ >= 8))))
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1448 #error No FORTIFY_SOURCE support
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1449 #endif
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1450 return 0;
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
1451 ]])], [
12435
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1452 AC_MSG_RESULT(yes)
16650
43ae29f3d728 Add a couple more CFLAGS to highlight some more warnings and change how we
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16590
diff changeset
1453 DEBUG_CFLAGS="$DEBUG_CFLAGS -Wp,-D_FORTIFY_SOURCE=2"
12435
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1454 ], [
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1455 AC_MSG_RESULT(no)
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1456 ])
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1457 fi
8525
9e4e0635fd3c [gaim-migrate @ 9264]
Christian Hammond <chipx86@chipx86.com>
parents: 8485
diff changeset
1458
12435
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1459 DEBUG_CFLAGS="-Wall $DEBUG_CFLAGS"
98e36746b52b [gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents: 12423
diff changeset
1460 CFLAGS="-g $CFLAGS"
7021
81e67ec9262d [gaim-migrate @ 7584]
Ethan Blanton <elb@pidgin.im>
parents: 7016
diff changeset
1461 fi
34114
c915903f6e43 Get rid of warnings
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34113
diff changeset
1462 DEBUG_CPPFLAGS=`echo "$DEBUG_CFLAGS" | $sedpath 's/-Wdeclaration-after-statement//' | $sedpath 's/-Wmissing-prototypes//' | $sedpath 's/-Waggregate-return//'`
30263
c570eb3becca Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents: 30234
diff changeset
1463
c570eb3becca Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents: 30234
diff changeset
1464 if test "x$SUNCC" = "xyes"; then
34318
cfe1e6c376a7 Remove a few random bits o' unneeded whitespaces.
Mark Doliner <mark@kingant.net>
parents: 34310
diff changeset
1465 CFLAGS="$CFLAGS -features=extensions"
30263
c570eb3becca Build fixes on OpenSolaris. Closes #11841.
Brian Lu <brian.lu@sun.com>
parents: 30234
diff changeset
1466 fi
6723
f62d96da133a [gaim-migrate @ 7250]
Christian Hammond <chipx86@chipx86.com>
parents: 6722
diff changeset
1467 AC_SUBST(CFLAGS)
f62d96da133a [gaim-migrate @ 7250]
Christian Hammond <chipx86@chipx86.com>
parents: 6722
diff changeset
1468
15976
dbb3ea0b1f7c Minor 'make dist' fix and check for installed versions of pidgin, not gaim
Mark Doliner <markdoliner@pidgin.im>
parents: 15966
diff changeset
1469 AC_PATH_PROG(pidginpath, pidgin)
14253
b63ebf84c42b This is a hand-crafted commit to migrate across subversion revisions
Ethan Blanton <elb@pidgin.im>
parents: 14184
diff changeset
1470
35973
e9fc7d739621 Don't care about cast-align for 2.x.y on clang
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35641
diff changeset
1471 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
e9fc7d739621 Don't care about cast-align for 2.x.y on clang
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35641
diff changeset
1472 #if !defined(__clang__)
e9fc7d739621 Don't care about cast-align for 2.x.y on clang
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35641
diff changeset
1473 #error
e9fc7d739621 Don't care about cast-align for 2.x.y on clang
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35641
diff changeset
1474 #endif
e9fc7d739621 Don't care about cast-align for 2.x.y on clang
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35641
diff changeset
1475 ])], have_clang=yes, have_clang=no)
e9fc7d739621 Don't care about cast-align for 2.x.y on clang
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35641
diff changeset
1476
34463
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1477 AC_ARG_ENABLE(clang-address-sanitizer,
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1478 [AS_HELP_STRING([--enable-clang-address-sanitizer],
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1479 [compile with the Clang's address sanitizer enabled])],
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1480 enable_clang_address_sanitizer="$enableval", enable_clang_address_sanitizer="no")
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1481
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1482 if test "x$enable_clang_address_sanitizer" = "xyes" -a "x$have_clang" = "xno"; then
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1483 AC_MSG_ERROR([
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1484 Clang address sanitizer requested, but we don't compile with Clang.
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1485 Disable the sanitizer or run configure script with CC and CCX set to clang binaries.
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1486 ])
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1487 fi
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1488
35973
e9fc7d739621 Don't care about cast-align for 2.x.y on clang
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35641
diff changeset
1489 if test "x$have_clang" = "xyes"; then
34459
f269ff3e4830 Clang warnings: clean up pidgin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34456
diff changeset
1490 GLIB_LIBS=`echo $GLIB_LIBS | $sedpath 's/-pthread/-lpthread/'`
34463
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1491 fi
34460
cdc946c1f079 Clang: enable address sanitizer
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34459
diff changeset
1492
34463
2b0b1ca76960 Clang: make build with address sanitizer optional
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34462
diff changeset
1493 if test "x$enable_clang_address_sanitizer" = "xyes"; then
34460
cdc946c1f079 Clang: enable address sanitizer
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34459
diff changeset
1494 CFLAGS="$CFLAGS -faddress-sanitizer -g -fno-omit-frame-pointer -fno-inline -fno-optimize-sibling-calls"
34456
d69aa7d3530c Clang warnings: gnutls, gnome keyring and G_GNUC_*_IGNORE_DEPRECATIONS
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34455
diff changeset
1495 fi
d69aa7d3530c Clang warnings: gnutls, gnome keyring and G_GNUC_*_IGNORE_DEPRECATIONS
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34455
diff changeset
1496
35633
e4618d775e0d Add --enable-glib-errors-trace configure switch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35632
diff changeset
1497
e4618d775e0d Add --enable-glib-errors-trace configure switch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35632
diff changeset
1498 AC_ARG_ENABLE(glib-errors-trace, [AS_HELP_STRING([--enable-glib-errors-trace], [print backtraces for glib errors])], enable_glibtrace="$enableval", enable_glibtrace="no")
e4618d775e0d Add --enable-glib-errors-trace configure switch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35632
diff changeset
1499 if test "x$enable_glibtrace" = "xyes"; then
e4618d775e0d Add --enable-glib-errors-trace configure switch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35632
diff changeset
1500 if test "x$have_clang" = "xyes"; then
e4618d775e0d Add --enable-glib-errors-trace configure switch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35632
diff changeset
1501 AC_MSG_ERROR([--enable-glib-errors-trace doesn't work with clang])
e4618d775e0d Add --enable-glib-errors-trace configure switch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35632
diff changeset
1502 fi
e4618d775e0d Add --enable-glib-errors-trace configure switch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35632
diff changeset
1503 AC_DEFINE(ENABLE_GLIBTRACE, 1, [Define if backtraces should be printed for glib errors.])
e4618d775e0d Add --enable-glib-errors-trace configure switch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35632
diff changeset
1504 dnl CFLAGS="$CFLAGS -rdynamic"
e4618d775e0d Add --enable-glib-errors-trace configure switch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35632
diff changeset
1505 CFLAGS="$CFLAGS -rdynamic"
35973
e9fc7d739621 Don't care about cast-align for 2.x.y on clang
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35641
diff changeset
1506 fi
e9fc7d739621 Don't care about cast-align for 2.x.y on clang
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35641
diff changeset
1507
8665
03013bac18b9 [gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents: 8637
diff changeset
1508 dnl #######################################################################
15610
fc49b3cc8095 Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents: 15600
diff changeset
1509 dnl # Check for D-Bus libraries
11055
e564996853bf [gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 10977
diff changeset
1510 dnl #######################################################################
e564996853bf [gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 10977
diff changeset
1511
35884
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1512 # dbus doesn't compile for win32 at the moment
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1513 AC_ARG_ENABLE(dbus,
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1514 [AS_HELP_STRING([--disable-dbus], [disable D-Bus support])], ,
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1515 enable_dbus="$is_not_win32")
11055
e564996853bf [gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 10977
diff changeset
1516
11146
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1517 if test "x$enable_dbus" = "xyes" ; then
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1518 AC_CHECK_PROG(enable_dbus, dbus-binding-tool, yes, no)
11055
e564996853bf [gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 10977
diff changeset
1519 fi
e564996853bf [gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 10977
diff changeset
1520
11146
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1521 if test "x$enable_dbus" = "xyes" ; then
22756
c075c698757b Fix our D-Bus version requirement
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22755
diff changeset
1522 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], [
11055
e564996853bf [gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 10977
diff changeset
1523 AC_SUBST(DBUS_CFLAGS)
11070
133af4fe08f9 [gaim-migrate @ 13069]
Richard Laager <rlaager@pidgin.im>
parents: 11067
diff changeset
1524 AC_SUBST(DBUS_LIBS)
133af4fe08f9 [gaim-migrate @ 13069]
Richard Laager <rlaager@pidgin.im>
parents: 11067
diff changeset
1525 enable_dbus=yes
14504
88f6b47296a9 [gaim-migrate @ 17156]
Mark Doliner <markdoliner@pidgin.im>
parents: 14503
diff changeset
1526 ], [
24252
a9e2f64c5287 Report dbus/nm availability correctly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 24244
diff changeset
1527 enable_dbus=no
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
1528 if test "x$force_deps" = "xyes" ; then
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1529 AC_MSG_ERROR([
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1530 D-Bus development headers not found.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1531 Use --disable-dbus if you do not need D-Bus support.
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
1532 ])
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
1533 fi])
24243
7c7ffeef8338 Don't check for NetworkManager support when we find out we're not
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 24224
diff changeset
1534 fi
14758
13b9adc9efd2 [gaim-migrate @ 17448]
Sean Egan <seanegan@pidgin.im>
parents: 14733
diff changeset
1535
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1536 dnl #######################################################################
35122
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1537 dnl # Check for Unity and Messaging Menu
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1538 dnl #######################################################################
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1539 AC_ARG_ENABLE(unity, [AC_HELP_STRING([--enable-unity],
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1540 [compile with support for unity integration plugin])], enable_unity="$enableval", enable_unity="no")
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1541 if test "$enable_unity" = yes; then
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1542 PKG_CHECK_MODULES(UNITY, [unity >= 6.8 messaging-menu >= 12.10], , [
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1543 AC_MSG_RESULT(no)
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1544 AC_MSG_ERROR([
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1545 You must have libunity9 >= 6.8 and libmessaging-menu >= 12.10 to build the unity integration plugin.
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1546 ])])
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1547 USES_MM_CHAT_SECTION="X-MessagingMenu-UsesChatSection=true"
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1548 AC_SUBST(UNITY_CFLAGS)
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1549 AC_SUBST(UNITY_LIBS)
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1550 AC_SUBST(USES_MM_CHAT_SECTION)
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1551 else
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1552 enable_unity=no
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1553 fi
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1554 AM_CONDITIONAL(ENABLE_UNITY, [test "x$enable_unity" = "xyes"])
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1555
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
1556 dnl #######################################################################
34107
efe6019c9e91 Add a Secret Service password plugin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34106
diff changeset
1557 dnl # Check for Secret Service headers
efe6019c9e91 Add a Secret Service password plugin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34106
diff changeset
1558 dnl #######################################################################
efe6019c9e91 Add a Secret Service password plugin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34106
diff changeset
1559
34197
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1560 # disabled - see secretservice.c
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1561 #AC_ARG_ENABLE(libsecret, [AC_HELP_STRING([--disable-libsecret], [enable Secret Service support])], enable_secret_service=no, enable_secret_service=yes)
34107
efe6019c9e91 Add a Secret Service password plugin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34106
diff changeset
1562
34197
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1563 #if test "x$enable_secret_service" = "xyes" ; then
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1564 # PKG_CHECK_MODULES(SECRETSERVICE, [libsecret-1], [
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1565 # AC_SUBST(SECRETSERVICE_CFLAGS)
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1566 # AC_SUBST(SECRETSERVICE_LIBS)
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1567 # AC_DEFINE(HAVE_SECRETSERVICE, 1, [Define if we have Secret Service.])
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1568 # ])
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1569 #fi
34107
efe6019c9e91 Add a Secret Service password plugin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34106
diff changeset
1570
34197
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1571 #AM_CONDITIONAL(ENABLE_SECRETSERVICE, test "x$enable_secret_service" = "xyes")
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
1572 AM_CONDITIONAL(ENABLE_SECRETSERVICE, test "x1" = "x2")
34107
efe6019c9e91 Add a Secret Service password plugin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34106
diff changeset
1573
efe6019c9e91 Add a Secret Service password plugin.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34106
diff changeset
1574 dnl #######################################################################
34058
1e4209640749 The GNOME Keyring library may or may not use D-Bus to communicate with
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34038
diff changeset
1575 dnl # Check for GNOME Keyring headers
1e4209640749 The GNOME Keyring library may or may not use D-Bus to communicate with
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34038
diff changeset
1576 dnl #######################################################################
1e4209640749 The GNOME Keyring library may or may not use D-Bus to communicate with
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34038
diff changeset
1577
35884
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1578 AC_ARG_ENABLE(gnome-keyring,
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1579 [AC_HELP_STRING([--disable-gnome-keyring], [disable GNOME Keyring support])],
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1580 enable_gnome_keyring="$enableval", enable_gnome_keyring="$is_not_win32")
34000
2a6830e7ceb4 Corrected a typo in keyring.c
Vivien Bernet-Rollande <scrouaf@soc.pidgin.im>
parents: 33999
diff changeset
1581
34058
1e4209640749 The GNOME Keyring library may or may not use D-Bus to communicate with
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34038
diff changeset
1582 if test "x$enable_gnome_keyring" = "xyes" ; then
1e4209640749 The GNOME Keyring library may or may not use D-Bus to communicate with
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34038
diff changeset
1583 PKG_CHECK_MODULES(GNOMEKEYRING, [gnome-keyring-1], [
1e4209640749 The GNOME Keyring library may or may not use D-Bus to communicate with
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34038
diff changeset
1584 AC_SUBST(GNOMEKEYRING_CFLAGS)
1e4209640749 The GNOME Keyring library may or may not use D-Bus to communicate with
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34038
diff changeset
1585 AC_SUBST(GNOMEKEYRING_LIBS)
1e4209640749 The GNOME Keyring library may or may not use D-Bus to communicate with
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34038
diff changeset
1586 AC_DEFINE(HAVE_GNOMEKEYRING, 1, [Define if we have GNOME Keyring.])
34230
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1587 ], [
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1588 AC_MSG_RESULT(no)
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1589 enable_gnome_keyring="no"
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1590 if test "x$force_deps" = "xyes" ; then
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1591 AC_MSG_ERROR([
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1592 GNOME Keyring development headers not found
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1593 Use --disable-gnome-keyring if you do not need it.
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1594 ])
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1595 fi
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1596 ])
11067
b6353889a9ba [gaim-migrate @ 13048]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11055
diff changeset
1597 fi
b6353889a9ba [gaim-migrate @ 13048]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11055
diff changeset
1598
34000
2a6830e7ceb4 Corrected a typo in keyring.c
Vivien Bernet-Rollande <scrouaf@soc.pidgin.im>
parents: 33999
diff changeset
1599 AM_CONDITIONAL(ENABLE_GNOMEKEYRING, test "x$enable_gnome_keyring" = "xyes")
2a6830e7ceb4 Corrected a typo in keyring.c
Vivien Bernet-Rollande <scrouaf@soc.pidgin.im>
parents: 33999
diff changeset
1600
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1601 dnl #######################################################################
34059
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1602 dnl # Check for KWallet headers
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1603 dnl #######################################################################
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1604
35884
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1605 AC_ARG_ENABLE(kwallet,
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1606 [AC_HELP_STRING([--disable-kwallet], [disable KWallet support])],
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1607 enable_kwallet="$enableval", enable_kwallet="$is_not_win32")
34059
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1608 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"])
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1609 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"])
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1610
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1611 if test "x$enable_kwallet" = "xyes"; then
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1612 dnl Ensure C++ compiler works
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1613 AC_CHECK_PROG(CXXTEST, [$CXX], [$CXX])
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1614 if test "x$CXXTEST" = "x"; then
34278
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1615 enable_kwallet=no
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1616 if test "x$force_deps" = "xyes"; then
34230
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1617 AC_MSG_ERROR([
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1618 A C++ compiler was not found.
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1619 Use --disable-kwallet if you do not need KWallet support.
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1620 ])
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1621 fi
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1622 fi
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1623 fi
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1624
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1625 AC_LANG_PUSH([C++])
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1626 CPPFLAGS_save="$CPPFLAGS"
35932
1c082451371d Fix kwallet build on Ubuntu 14.04
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35931
diff changeset
1627 LIBS_save="$LIBS"
34278
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1628
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1629 if test "x$enable_kwallet" = "xyes"; then
34078
0fcccd4487ff Use pkg-config to find Qt4.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34059
diff changeset
1630 PKG_CHECK_MODULES(QT4, [QtCore], [
34230
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1631 AC_SUBST(QT4_CFLAGS)
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1632 AC_SUBST(QT4_LIBS)
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1633 ], [
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1634 AC_MSG_RESULT(no)
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1635 enable_kwallet=no
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1636 if test "x$force_deps" = "xyes"; then
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1637 AC_MSG_ERROR([
34078
0fcccd4487ff Use pkg-config to find Qt4.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34059
diff changeset
1638 Qt4 development headers not found.
0fcccd4487ff Use pkg-config to find Qt4.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34059
diff changeset
1639 Use --disable-kwallet if you do not need KWallet support.
0fcccd4487ff Use pkg-config to find Qt4.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34059
diff changeset
1640 ])
34230
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1641 fi
ca521393592e Fix broken kwallet and gnome-keyring configure switches. Fixes #15678
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34208
diff changeset
1642 ])
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1643 fi
34078
0fcccd4487ff Use pkg-config to find Qt4.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34059
diff changeset
1644
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1645 if test "x$enable_kwallet" = "xyes"; then
34084
e94dd262b20a Fix signal handling. On this side, it's a slot, not a signal.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34083
diff changeset
1646 AC_MSG_CHECKING([for metaobject compiler])
e94dd262b20a Fix signal handling. On this side, it's a slot, not a signal.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34083
diff changeset
1647 MOC=`$PKG_CONFIG --variable=moc_location QtCore`
e94dd262b20a Fix signal handling. On this side, it's a slot, not a signal.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34083
diff changeset
1648 AC_SUBST(MOC)
e94dd262b20a Fix signal handling. On this side, it's a slot, not a signal.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34083
diff changeset
1649 AC_MSG_RESULT([$MOC])
e94dd262b20a Fix signal handling. On this side, it's a slot, not a signal.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34083
diff changeset
1650
34278
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1651 KWALLET_CXXFLAGS=""
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1652 KWALLET_LIBS=""
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1653 if test -z "$with_kwallet_includes" || test -z "$with_kwallet_libs"; then
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1654 AC_CHECK_PROG(KDE4_CONFIG, kde4-config, kde4-config, no)
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1655 if test "x$KDE4_CONFIG" = "xno"; then
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1656 enable_kwallet=no
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1657 if test "x$force_deps" = "xyes"; then
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1658 AC_MSG_ERROR([
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1659 kde4-config not found. $KDE4_CONFIG
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1660 Use --disable-kwallet if you do not need KWallet support.
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1661 Use --with-kwallet-includes and --with-kwallet-libs to set up includes manually.
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1662 ])
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1663 fi
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1664 fi
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1665 fi
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1666 fi
34059
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1667
34278
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1668 if test "x$enable_kwallet" = "xyes"; then
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1669 if test "$ac_kwallet_includes" != "no"; then
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1670 KWALLET_CXXFLAGS="-I$ac_kwallet_includes"
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1671 elif test "x$KDE4_CONFIG" != "xno"; then
35381
68df3014ff56 Fix kwallet include check
Ethan Blanton <elb@pidgin.im>
parents: 35376
diff changeset
1672 KWALLET_CXXFLAGS="$QT4_CFLAGS -I`$KDE4_CONFIG --path include`"
34278
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1673 fi
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1674 CPPFLAGS="$CPPFLAGS $KWALLET_CXXFLAGS"
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1675 AC_CHECK_HEADER([kwallet.h], , [
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1676 enable_kwallet=no
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1677 if test "x$force_deps" = "xyes"; then
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1678 AC_MSG_ERROR([
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1679 KWallet development headers not found.
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1680 Use --disable-kwallet if you do not need KWallet support.
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1681 ])
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1682 fi
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1683 ])
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1684 fi
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1685
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1686 if test "x$enable_kwallet" = "xyes"; then
34059
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1687 AC_MSG_CHECKING([for KWallet libraries])
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1688 if test "$ac_kwallet_libs" != "no"; then
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1689 KWALLET_LIBS="-L$ac_kwallet_libs -lkdeui"
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1690 elif test "x$KDE4_CONFIG" != "xno"; then
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1691 KWALLET_LIBS="-L`$KDE4_CONFIG --install lib`/kde4/devel -lkdeui"
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1692 else
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1693 KWALLET_LIBS="-lkdeui"
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1694 fi
34078
0fcccd4487ff Use pkg-config to find Qt4.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34059
diff changeset
1695 KWALLET_LIBS="$KWALLET_LIBS"
35932
1c082451371d Fix kwallet build on Ubuntu 14.04
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35931
diff changeset
1696 LIBS="$LIBS $KWALLET_LIBS $QT4_LIBS"
34059
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1697 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <kwallet.h>],
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1698 [KWallet::Wallet::LocalWallet();])], [AC_MSG_RESULT([yes])],
34278
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1699 [
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1700 AC_MSG_RESULT(no)
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1701 enable_kwallet=no
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1702 if test "x$force_deps" = "xyes"; then
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1703 AC_MSG_ERROR([
34059
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1704 KWallet development libraries not found.
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1705 Use --disable-kwallet if you do not need KWallet support.
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1706 ])
34278
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1707 fi
4992dd08f442 Fix KWallet autoconf checks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34273
diff changeset
1708 ])
34059
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1709 fi
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1710
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1711 CPPFLAGS="$CPPFLAGS_save"
35932
1c082451371d Fix kwallet build on Ubuntu 14.04
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35931
diff changeset
1712 LIBS="$LIBS_save"
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
1713 AC_LANG_POP
34059
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1714
34078
0fcccd4487ff Use pkg-config to find Qt4.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34059
diff changeset
1715 AC_SUBST(KWALLET_CXXFLAGS)
34059
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1716 AC_SUBST(KWALLET_LIBS)
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1717
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1718 AM_CONDITIONAL(ENABLE_KWALLET, test "x$enable_kwallet" = "xyes")
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1719
a12d333f948d Add KWallet autotools magic. It's a little annoying that KDE switched
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 34058
diff changeset
1720 dnl #######################################################################
37152
b32b5689bbbf Update GPlugin version requirement
Ankit Vani <a@nevitus.org>
parents: 37145
diff changeset
1721 dnl # Check for GPlugin 0.0.17
36355
15af9d331ee4 Added external dependency for GPlugin 0.0.3
Ankit Vani <a@nevitus.org>
parents: 34692
diff changeset
1722 dnl #######################################################################
36426
04b75bcbaf79 Backed out changeset 0e5eae8b3487
Ankit Vani <a@nevitus.org>
parents: 36425
diff changeset
1723 if test "x$enable_plugins" = "xyes" ; then
37225
1ba4b6569381 Conditionally add gplugin and gplugin-gtk to libpurple's pkg-config requirements (ok'd by elb)
Michael McConville <mmcconville@mykolab.com>
parents: 37217
diff changeset
1724 PKG_CHECK_MODULES(GPLUGIN, [gplugin >= 0.0.17 gmodule-2.0], [
1ba4b6569381 Conditionally add gplugin and gplugin-gtk to libpurple's pkg-config requirements (ok'd by elb)
Michael McConville <mmcconville@mykolab.com>
parents: 37217
diff changeset
1725 dnl # GPLUGIN_REQ sets pkg-config requirements in the .pc file
37422
07dcc28b6039 Remove support for GTK+2
Jorge Villaseñor <salinasv@pidgin.im>
parents: 37421
diff changeset
1726 if test "x$enable_gtkui" != "xno" ; then
37225
1ba4b6569381 Conditionally add gplugin and gplugin-gtk to libpurple's pkg-config requirements (ok'd by elb)
Michael McConville <mmcconville@mykolab.com>
parents: 37217
diff changeset
1727 GPLUGIN_REQ=[", gplugin, gplugin-gtk"]
1ba4b6569381 Conditionally add gplugin and gplugin-gtk to libpurple's pkg-config requirements (ok'd by elb)
Michael McConville <mmcconville@mykolab.com>
parents: 37217
diff changeset
1728 else
1ba4b6569381 Conditionally add gplugin and gplugin-gtk to libpurple's pkg-config requirements (ok'd by elb)
Michael McConville <mmcconville@mykolab.com>
parents: 37217
diff changeset
1729 GPLUGIN_REQ=[", gplugin"]
1ba4b6569381 Conditionally add gplugin and gplugin-gtk to libpurple's pkg-config requirements (ok'd by elb)
Michael McConville <mmcconville@mykolab.com>
parents: 37217
diff changeset
1730 fi
1ba4b6569381 Conditionally add gplugin and gplugin-gtk to libpurple's pkg-config requirements (ok'd by elb)
Michael McConville <mmcconville@mykolab.com>
parents: 37217
diff changeset
1731 ], [
36426
04b75bcbaf79 Backed out changeset 0e5eae8b3487
Ankit Vani <a@nevitus.org>
parents: 36425
diff changeset
1732 AC_MSG_RESULT(no)
04b75bcbaf79 Backed out changeset 0e5eae8b3487
Ankit Vani <a@nevitus.org>
parents: 36425
diff changeset
1733 AC_MSG_ERROR([
37152
b32b5689bbbf Update GPlugin version requirement
Ankit Vani <a@nevitus.org>
parents: 37145
diff changeset
1734 GPlugin 0.0.17 development headers not found, which are required if you wish to
36426
04b75bcbaf79 Backed out changeset 0e5eae8b3487
Ankit Vani <a@nevitus.org>
parents: 36425
diff changeset
1735 enable plugins.
36641
9207558f0ad3 Removed now-incorrect information from configure error
Ankit Vani <a@nevitus.org>
parents: 36640
diff changeset
1736 Use --disable-plugins if you want to disable plugins.
36426
04b75bcbaf79 Backed out changeset 0e5eae8b3487
Ankit Vani <a@nevitus.org>
parents: 36425
diff changeset
1737 ])])
37225
1ba4b6569381 Conditionally add gplugin and gplugin-gtk to libpurple's pkg-config requirements (ok'd by elb)
Michael McConville <mmcconville@mykolab.com>
parents: 37217
diff changeset
1738 AC_SUBST(GPLUGIN_REQ)
36426
04b75bcbaf79 Backed out changeset 0e5eae8b3487
Ankit Vani <a@nevitus.org>
parents: 36425
diff changeset
1739 AC_SUBST(GPLUGIN_CFLAGS)
04b75bcbaf79 Backed out changeset 0e5eae8b3487
Ankit Vani <a@nevitus.org>
parents: 36425
diff changeset
1740 AC_SUBST(GPLUGIN_LIBS)
36822
7f6509afc91e disabled perl, tcl, mono loaders. this will be handled by gplugin.
Ankit Vani <a@nevitus.org>
parents: 36818
diff changeset
1741 else
7f6509afc91e disabled perl, tcl, mono loaders. this will be handled by gplugin.
Ankit Vani <a@nevitus.org>
parents: 36818
diff changeset
1742 enable_introspection=no
36426
04b75bcbaf79 Backed out changeset 0e5eae8b3487
Ankit Vani <a@nevitus.org>
parents: 36425
diff changeset
1743 fi
36355
15af9d331ee4 Added external dependency for GPlugin 0.0.3
Ankit Vani <a@nevitus.org>
parents: 34692
diff changeset
1744
36822
7f6509afc91e disabled perl, tcl, mono loaders. this will be handled by gplugin.
Ankit Vani <a@nevitus.org>
parents: 36818
diff changeset
1745 dnl # Check for gobject introspection
7f6509afc91e disabled perl, tcl, mono loaders. this will be handled by gplugin.
Ankit Vani <a@nevitus.org>
parents: 36818
diff changeset
1746 GOBJECT_INTROSPECTION_CHECK([1.30.0])
7f6509afc91e disabled perl, tcl, mono loaders. this will be handled by gplugin.
Ankit Vani <a@nevitus.org>
parents: 36818
diff changeset
1747
36823
661347ff47e6 Added GObject introspection for libgnt, finch and pidgin.
Ankit Vani <a@nevitus.org>
parents: 36822
diff changeset
1748 if test "x$enable_introspection" = "xyes" ; then
661347ff47e6 Added GObject introspection for libgnt, finch and pidgin.
Ankit Vani <a@nevitus.org>
parents: 36822
diff changeset
1749 AC_DEFINE(ENABLE_INTROSPECTION, 1, [Define if GObject introspection is enabled.])
661347ff47e6 Added GObject introspection for libgnt, finch and pidgin.
Ankit Vani <a@nevitus.org>
parents: 36822
diff changeset
1750 fi
661347ff47e6 Added GObject introspection for libgnt, finch and pidgin.
Ankit Vani <a@nevitus.org>
parents: 36822
diff changeset
1751
36355
15af9d331ee4 Added external dependency for GPlugin 0.0.3
Ankit Vani <a@nevitus.org>
parents: 34692
diff changeset
1752 dnl #######################################################################
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1753 dnl # Check for Python
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1754 dnl #######################################################################
11146
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1755
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1756 dnl Python scripts are used to auto-generate about 3000 lines of C
16247
f9e1e46abbae Deal with Gaim in some error messages.
Richard Laager <rlaager@pidgin.im>
parents: 16206
diff changeset
1757 dnl and XML code that wraps (part of) the existing API so that
15610
fc49b3cc8095 Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents: 15600
diff changeset
1758 dnl it is now accessible through D-Bus.
11146
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1759
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1760 dnl Python is only required if --enable-dbus is used, and only for
15946
d40e8847e825 More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15909
diff changeset
1761 dnl the build process to generate the code, not for running pidgin.
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1762 dnl This autogenerated code is system-independent, so in principle we
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1763 dnl can generate all of it before shipping. But I thought adding
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1764 dnl auto-generated stuff to the repository is inelegant.
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1765 dnl Alternatively, these python scripts could be rewritten
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
1766 dnl in C (brrrr ...).
11146
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1767
12584
177bdacdfcf8 [gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents: 12582
diff changeset
1768 AC_ARG_WITH([python],
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1769 AS_HELP_STRING([--with-python=PATH],
13733
a11620505037 [gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents: 13720
diff changeset
1770 [which python interpreter to use for dbus code generation]),
12584
177bdacdfcf8 [gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents: 12582
diff changeset
1771 PYTHON=$withval)
11356
77be80ff8961 [gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11351
diff changeset
1772
29960
e6ca0b8ae3b7 Fix Python overrideability in configure script. Closes #11625.
Brad Smith <brad@comstyle.com>
parents: 29957
diff changeset
1773 if test "x$enable_dbus" = "xyes" || test "x$enable_consoleui" = "xyes" ; then
35884
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1774 if test -z "$PYTHON" -a "x$is_win32" = "xyes" ; then
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1775 dnl there are problems with include files when cross compiling
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1776 dnl feel free to fix it, if you want
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1777 PYTHON=no
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1778 elif test -z "$PYTHON" -o "x$PYTHON" = "xyes"; then
12584
177bdacdfcf8 [gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents: 12582
diff changeset
1779 AC_PATH_PROG([PYTHON], [python], [no])
177bdacdfcf8 [gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents: 12582
diff changeset
1780 fi
177bdacdfcf8 [gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents: 12582
diff changeset
1781
35884
3851fe1822e0 cross-win32: disable not supported components by default
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35877
diff changeset
1782 if test x"$PYTHON" = x"no" -a "x$is_win32" != "xyes" ; then
11146
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1783 AC_MSG_WARN([python interpreter not found in your path])
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1784 enable_dbus=no
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1785 fi
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1786
35885
e5cc097d6c82 cross-win32: fix bonjour
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35884
diff changeset
1787 if test "x$PYTHON" != "xno" ; then
11146
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1788 if $PYTHON -c "import sys; sys.exit(sys.version[[:3]] >= '2.4')" ; then
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1789 AC_MSG_WARN([python version >= 2.4 required])
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1790 enable_dbus=no
12584
177bdacdfcf8 [gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents: 12582
diff changeset
1791 fi
35885
e5cc097d6c82 cross-win32: fix bonjour
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35884
diff changeset
1792 fi
11146
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1793 fi
c56333373e3c [gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11098
diff changeset
1794
13491
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1795 dnl ###########################################################################
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1796 dnl # Find the D-Bus services dir.
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1797 dnl #
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1798 dnl # This is a 3 step process that
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1799 dnl #
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1800 dnl # 1. checks if --with-dbus-services was set, if so use that.
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1801 dnl # 2. checks if --prefix was given, if so use that.
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1802 dnl # 3. fallbacks to installing into what should be the correct system
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1803 dnl # directories.
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1804 dnl #
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1805 dnl # This is still prone to error if one of the legacy directories exist
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1806 dnl # although a newer dbus is installed. But I have tried to order the
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1807 dnl # directory searching to keep this situation at a minimum.
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1808 dnl ###########################################################################
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1809 AC_ARG_WITH(dbus-services, [AS_HELP_STRING([--with-dbus-services=<dir>], [where the D-Bus services directory is located.])])
11351
c29898b1b746 [gaim-migrate @ 13570]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11318
diff changeset
1810
13589
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1811 DBUS_SERVICES_DIR=""
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1812
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1813 if test x"$enable_dbus" = "xyes" ; then
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1814 AC_MSG_CHECKING([location of the D-Bus services directory])
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1815 if ! test -z "$with_dbus_services" ; then
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1816 if ! test -d "$with_dbus_services" ; then
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1817 AC_MSG_ERROR([$with_dbus_services does not exist, if this is the correct location please make sure that it exists.])
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1818 fi
13491
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1819
13589
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1820 DBUS_SERVICES_DIR="$with_dbus_services"
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1821 else
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1822 if test x"$prefix" = x"NONE" ; then
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1823 dnl # no prefix given, so we look for the correct dbus system paths.
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1824 dnl # if a prefix is given, we use it.
13491
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1825
18742
e13a0ecd3093 Apparently we're not supposed to try to expand $datadir or $libdir from inside
Richard Laager <rlaager@pidgin.im>
parents: 18234
diff changeset
1826 serviceprefixes="$prefix/share $prefix/lib /usr/share /usr/local/share"
13589
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1827 DBUS_SERVICES_DIR=""
13491
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1828
13589
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1829 for d in $serviceprefixes ; do
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1830 dir="$d/dbus-1/services"
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1831 if test -d $dir ; then
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1832 DBUS_SERVICES_DIR="$dir"
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1833 break
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1834 fi
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1835 done
13491
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1836
13589
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1837 if test -z $DBUS_SERVICES_DIR ; then
29957
c08b2ab5673b I hate seeing people use "it's" when "its" is the correct word.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29938
diff changeset
1838 AC_MSG_ERROR([D-Bus services directory was not found! Please use --with-dbus-services and specify its location.])
13589
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1839 fi
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1840 else
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1841 DBUS_SERVICES_DIR="$datadir/dbus-1/services"
11903
56ae8af14a0d [gaim-migrate @ 14194]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 11874
diff changeset
1842 fi
13491
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1843 fi
13589
2c48c168ba30 [gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents: 13575
diff changeset
1844 AC_MSG_RESULT([$DBUS_SERVICES_DIR])
15868
7013bc2fca16 minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15834
diff changeset
1845 AC_DEFINE(HAVE_DBUS, 1, [Define if we are using D-Bus.])
13491
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1846 fi
a4898caca966 [gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents: 13466
diff changeset
1847 AC_SUBST(DBUS_SERVICES_DIR)
11351
c29898b1b746 [gaim-migrate @ 13570]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11318
diff changeset
1848
11356
77be80ff8961 [gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11351
diff changeset
1849 if test "x$enable_dbus" = "xyes" ; then
15610
fc49b3cc8095 Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents: 15600
diff changeset
1850 echo "Building with D-Bus support"
11356
77be80ff8961 [gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11351
diff changeset
1851 else
15610
fc49b3cc8095 Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents: 15600
diff changeset
1852 echo "Building without D-Bus support"
11356
77be80ff8961 [gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11351
diff changeset
1853 fi
77be80ff8961 [gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11351
diff changeset
1854
77be80ff8961 [gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11351
diff changeset
1855 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes")
77be80ff8961 [gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 11351
diff changeset
1856
21915
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1857 dnl Check for Python headers (currently useful only for libgnt)
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1858 dnl (Thanks to XChat)
29960
e6ca0b8ae3b7 Fix Python overrideability in configure script. Closes #11625.
Brad Smith <brad@comstyle.com>
parents: 29957
diff changeset
1859 if test "x$enable_consoleui" = "xyes" -a ! -z "$PYTHON" -a x"$PYTHON" != x"no" ; then
21915
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1860 AC_MSG_CHECKING(for Python compile flags)
35562
a591c0486b04 Use python-config to find Python headers and libraries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35523
diff changeset
1861 if test -f ${PYTHON}-config; then
a591c0486b04 Use python-config to find Python headers and libraries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35523
diff changeset
1862 PY_CFLAGS=`${PYTHON}-config --includes`
a591c0486b04 Use python-config to find Python headers and libraries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35523
diff changeset
1863 PY_LIBS=`${PYTHON}-config --libs`
21915
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1864 AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.])
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1865 AC_MSG_RESULT(ok)
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1866 else
35562
a591c0486b04 Use python-config to find Python headers and libraries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35523
diff changeset
1867 AC_MSG_RESULT([Cannot find ${PYTHON}-config])
a591c0486b04 Use python-config to find Python headers and libraries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35523
diff changeset
1868 PY_CFLAGS=""
21915
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1869 PY_LIBS=""
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1870 fi
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1871 fi
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1872 AC_SUBST(PY_CFLAGS)
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1873 AC_SUBST(PY_LIBS)
c08dfd143ca9 Allow loading python scripts at runtime.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21912
diff changeset
1874
11055
e564996853bf [gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents: 10977
diff changeset
1875 dnl #######################################################################
6701
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6697
diff changeset
1876 dnl # SSL support
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6697
diff changeset
1877 dnl #
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6697
diff changeset
1878 dnl # Thanks go to Evolution for the checks.
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6697
diff changeset
1879 dnl #######################################################################
6734
38b7396c0116 [gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents: 6723
diff changeset
1880
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
1881 AC_ARG_WITH(system-ssl-certs, [AS_HELP_STRING([--with-system-ssl-certs=<dir>], [directory containing system-wide SSL CA certificates])], [ssl_certificates_dir=$withval])
23473
df05ffc37ed0 Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents: 23472
diff changeset
1882
df05ffc37ed0 Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents: 23472
diff changeset
1883 SSL_CERTIFICATES_DIR=""
27963
f99a27c539fe And really fix that --with-system-ssl-certs argument.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27961
diff changeset
1884 if ! test -z "$ssl_certificates_dir" ; then
29929
dded7d5087b2 Add a more helpful error message if --with-system-ssl-certs is specified
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 29902
diff changeset
1885 if test "x$ssl_certificates_dir" = "xyes" ; then
dded7d5087b2 Add a more helpful error message if --with-system-ssl-certs is specified
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 29902
diff changeset
1886 AC_MSG_ERROR([--with-system-ssl-certs requires that a location is specified, eg. --with-system-ssl-certs=/etc/pki/tls/certs])
dded7d5087b2 Add a more helpful error message if --with-system-ssl-certs is specified
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 29902
diff changeset
1887 fi
27963
f99a27c539fe And really fix that --with-system-ssl-certs argument.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27961
diff changeset
1888 if ! test -d "$ssl_certificates_dir" ; then
35903
dc133578ccaa cross-win32: FHS and system-provided certs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35901
diff changeset
1889 if test "x$is_win32" = "xyes" ; then
dc133578ccaa cross-win32: FHS and system-provided certs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35901
diff changeset
1890 AC_MSG_WARN([$ssl_certificates_dir does not exist. \
dc133578ccaa cross-win32: FHS and system-provided certs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35901
diff changeset
1891 It may be OK when cross-compiling, but please make sure about it.])
dc133578ccaa cross-win32: FHS and system-provided certs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35901
diff changeset
1892 else
dc133578ccaa cross-win32: FHS and system-provided certs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35901
diff changeset
1893 AC_MSG_ERROR([$ssl_certificates_dir does not exist, \
dc133578ccaa cross-win32: FHS and system-provided certs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35901
diff changeset
1894 if this is the correct location please make sure that it exists.])
dc133578ccaa cross-win32: FHS and system-provided certs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35901
diff changeset
1895 fi
23473
df05ffc37ed0 Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents: 23472
diff changeset
1896 fi
27963
f99a27c539fe And really fix that --with-system-ssl-certs argument.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 27961
diff changeset
1897 SSL_CERTIFICATES_DIR="$ssl_certificates_dir"
23473
df05ffc37ed0 Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents: 23472
diff changeset
1898 fi
df05ffc37ed0 Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents: 23472
diff changeset
1899 AC_SUBST(SSL_CERTIFICATES_DIR)
35851
53a60c0d3040 cross-win32: tidy remaining macros - SSL_CERTIFICATES_DIR, BUILDDIR, CONFDIR
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35850
diff changeset
1900 if test "x$SSL_CERTIFICATES_DIR" != "x" ; then
53a60c0d3040 cross-win32: tidy remaining macros - SSL_CERTIFICATES_DIR, BUILDDIR, CONFDIR
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35850
diff changeset
1901 AC_DEFINE_UNQUOTED([SSL_CERTIFICATES_DIR], ["$SSL_CERTIFICATES_DIR"],
53a60c0d3040 cross-win32: tidy remaining macros - SSL_CERTIFICATES_DIR, BUILDDIR, CONFDIR
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35850
diff changeset
1902 [Directory where SSL certificates can be found])
53a60c0d3040 cross-win32: tidy remaining macros - SSL_CERTIFICATES_DIR, BUILDDIR, CONFDIR
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35850
diff changeset
1903 fi
23473
df05ffc37ed0 Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents: 23472
diff changeset
1904 AM_CONDITIONAL(INSTALL_SSL_CERTIFICATES, test "x$SSL_CERTIFICATES_DIR" = "x")
df05ffc37ed0 Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents: 23472
diff changeset
1905
6734
38b7396c0116 [gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents: 6723
diff changeset
1906 dnl These two are inverses of each other <-- stolen from evolution!
38b7396c0116 [gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents: 6723
diff changeset
1907
38b7396c0116 [gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents: 6723
diff changeset
1908 AC_ARG_ENABLE(gnutls,
22757
7d68e6dcc3dc Remove a legacy preference for GnuTLS
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22756
diff changeset
1909 [ --enable-gnutls=[yes,no] attempt to use GnuTLS for SSL support [default=yes]],
6734
38b7396c0116 [gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents: 6723
diff changeset
1910 [enable_gnutls="$enableval"],
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1911 [enable_gnutls="yes"])
6734
38b7396c0116 [gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents: 6723
diff changeset
1912
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1913 AC_ARG_ENABLE(nss,
13733
a11620505037 [gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents: 13720
diff changeset
1914 [ --enable-nss=[yes,no,static] attempt to use Mozilla libnss for SSL support [default=yes]],
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1915 [enable_nss="$enableval"],
6968
dfff23d8e933 [gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents: 6960
diff changeset
1916 [enable_nss="yes"])
6701
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6697
diff changeset
1917
27386
885fcba6bcca Mention Yahoo in all the places we say "These protocols won't work without SSL"
Paul Aurich <darkrain42@pidgin.im>
parents: 27361
diff changeset
1918 msg_ssl="None. MSN, Yahoo!, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!"
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1919 looked_for_gnutls="no"
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1920 dnl #
37209
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1921 dnl # Check for GnuTLS if it isn't disabled
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1922 dnl #
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1923 if test "x$enable_gnutls" != "xno"; then
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1924 looked_for_gnutls="yes"
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1925
37209
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1926 if `$PKG_CONFIG --exists gnutls`; then
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1927 dnl # minimum required version should almost certainly be higher
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1928 PKG_CHECK_MODULES(GNUTLS, [gnutls >= 2.10], [
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1929 have_gnutls="yes"
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1930 ], [
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1931 AC_MSG_RESULT(no)
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1932 have_gnutls="no"
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1933 ])
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1934 fi
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1935
37209
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1936 if test "x$have_gnutls" = "xyes"; then
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1937 AC_DEFINE(HAVE_GNUTLS, 1, [Define if you have GnuTLS])
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1938 msg_gnutls="GnuTLS"
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1939 fi
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1940 fi
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1941
37209
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1942 AM_CONDITIONAL(USE_GNUTLS, test "x$have_gnutls" = "xyes")
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1943
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1944
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1945 dnl #
37209
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1946 dnl # Check for NSS if it isn't disabled
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1947 dnl #
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1948 looked_for_nss="no"
7155
8ce800977807 [gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents: 7087
diff changeset
1949 if test "x$enable_nss" != "xno"; then
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1950 looked_for_nss="yes"
6757
58c39d82f606 [gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents: 6756
diff changeset
1951
37202
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1952 if `$PKG_CONFIG --exists mozilla-nss`; then
37209
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1953 dnl # TODO: set required minimum version
37202
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1954 PKG_CHECK_MODULES(NSS, mozilla-nss, [
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1955 have_nss="yes"
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1956 ], [
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1957 AC_MSG_RESULT(no)
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1958 have_nss="no"
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1959 ])
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1960 elif `$PKG_CONFIG --exists nss`; then
37209
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1961 dnl # TODO: set required minimum version
37202
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1962 PKG_CHECK_MODULES(NSS, nss, [
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1963 have_nss="yes"
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1964 ], [
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1965 AC_MSG_RESULT(no)
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1966 have_nss="no"
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1967 ])
6701
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6697
diff changeset
1968 fi
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6697
diff changeset
1969
37202
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1970 if test "x$have_nss" = "xyes"; then
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1971 AC_DEFINE(HAVE_NSS, 1, [Define if you have Mozilla NSS])
c0332256826a remove NSS location config options and massive manual NSS check from configure.ac (ok'd by elb, etan)
Michael McConville <mmcconville@mykolab.com>
parents: 37163
diff changeset
1972 msg_nss="Mozilla NSS"
37417
b29ee022017f Require SSL/TLS support. ok'd by elb@
Michael McConville <mmcco@mykolab.com>
parents: 37414
diff changeset
1973 else
b29ee022017f Require SSL/TLS support. ok'd by elb@
Michael McConville <mmcco@mykolab.com>
parents: 37414
diff changeset
1974 AC_MSG_ERROR([No SSL/TLS library available])
6701
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6697
diff changeset
1975 fi
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6697
diff changeset
1976 fi
27848
a52e369d98c6 Strip trailing whitespace.
Paul Aurich <darkrain42@pidgin.im>
parents: 27758
diff changeset
1977
37209
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1978 AM_CONDITIONAL(USE_NSS, test "x$have_nss" = "xyes")
b0d0998fd8b9 Remove manual GnuTLS configuration. There's still a little more to be done. For example, the current flags are confusing and should probably be replaced with --disable-gnutls and --disable-nss. The logic could be further simplified when this happens. We should also check whether we need to keep HAVE_GNUTLS_2_10 for Gadu-Gadu.
Michael McConville <mmcconville@mykolab.com>
parents: 37208
diff changeset
1979
6738
aa797bcc69dd [gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents: 6734
diff changeset
1980
7155
8ce800977807 [gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents: 7087
diff changeset
1981 if test "x$msg_nss" != "x" -a "x$msg_gnutls" != "x"; then
8ce800977807 [gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents: 7087
diff changeset
1982 msg_ssl="$msg_nss and $msg_gnutls"
8ce800977807 [gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents: 7087
diff changeset
1983 elif test "x$msg_nss" != "x"; then
8ce800977807 [gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents: 7087
diff changeset
1984 msg_ssl=$msg_nss
8ce800977807 [gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents: 7087
diff changeset
1985 elif test "x$msg_gnutls" != "x"; then
8ce800977807 [gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents: 7087
diff changeset
1986 msg_ssl=$msg_gnutls
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
1987 elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1988 AC_MSG_ERROR([
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1989 Neither GnuTLS or NSS SSL development headers found.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1990 Use --disable-nss --disable-gnutls if you do not need SSL support.
27386
885fcba6bcca Mention Yahoo in all the places we say "These protocols won't work without SSL"
Paul Aurich <darkrain42@pidgin.im>
parents: 27361
diff changeset
1991 MSN, Yahoo!, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1992 ])
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
1993 elif test "x$looked_for_gnutls" = "xyes" -a "x$force_deps" = "xyes" ; then
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1994 AC_MSG_ERROR([
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1995 GnuTLS SSL development headers not found.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1996 Use --disable-gnutls if you do not need SSL support.
27386
885fcba6bcca Mention Yahoo in all the places we say "These protocols won't work without SSL"
Paul Aurich <darkrain42@pidgin.im>
parents: 27361
diff changeset
1997 MSN, Yahoo!, Novell Groupwise and Google Talk will not work without SSL support.
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
1998 ])
23571
1a323da99332 Add a --disable-missing-dependencies option to configure for people who
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 23548
diff changeset
1999 elif test "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
2000 AC_MSG_ERROR([
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
2001 NSS SSL development headers not found.
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
2002 Use --disable-nss if you do not need SSL support.
27386
885fcba6bcca Mention Yahoo in all the places we say "These protocols won't work without SSL"
Paul Aurich <darkrain42@pidgin.im>
parents: 27361
diff changeset
2003 MSN, Yahoo!, Novell Groupwise and Google Talk will not work without SSL support.
22758
ba0bee0e8f61 Make ./configure fail immediately if requirements for enabled options are
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 22757
diff changeset
2004 ])
7155
8ce800977807 [gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents: 7087
diff changeset
2005 fi
8ce800977807 [gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents: 7087
diff changeset
2006
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2007 if test "$ac_cv_cygwin" = yes ; then
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2008 LDADD="$LDADD -static"
3662
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
2009 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
6701
7e2db9273748 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 6697
diff changeset
2010 fi
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2011
34113
eb934dc31159 Further keyring buildsystem improvements: clean kwallet.moc file and get rid of invalid C++ switches
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34112
diff changeset
2012 AC_SUBST(DEBUG_CPPFLAGS)
6360
c2bfe65b200c [gaim-migrate @ 6864]
Robert McQueen <robot101@debian.org>
parents: 6321
diff changeset
2013 AC_SUBST(DEBUG_CFLAGS)
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2014 AC_SUBST(LDADD)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2015 AC_SUBST(LIBS)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2016
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2017 if test "x$enable_plugins" = "xyes" ; then
15885
01f2c945c63c who knew that --disable-plugins still worked?! Also, some completely untested support for aim:buddyicon, which I'll look at more tomorrow
Sean Egan <seanegan@pidgin.im>
parents: 15878
diff changeset
2018 AC_DEFINE(PURPLE_PLUGINS, 1, [Define if plugins are enabled.])
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2019 AM_CONDITIONAL(PLUGINS, true)
21466
491faf2e1fe4 Make purple.h a generated file so plugins can just include this and never
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21465
diff changeset
2020 PLUGINS_DEFINE="#define PURPLE_PLUGINS 1"
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2021 else
3411
e9d50336f9c3 [gaim-migrate @ 3430]
Christian Hammond <chipx86@chipx86.com>
parents: 3408
diff changeset
2022 AM_CONDITIONAL(PLUGINS, false)
21466
491faf2e1fe4 Make purple.h a generated file so plugins can just include this and never
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21465
diff changeset
2023 PLUGINS_DEFINE="#undef PURPLE_PLUGINS"
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2024 fi
21466
491faf2e1fe4 Make purple.h a generated file so plugins can just include this and never
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21465
diff changeset
2025 AC_SUBST(PLUGINS_DEFINE)
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2026
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2027 dnl #######################################################################
33795
590514c0a77c Improve configure message for Cyrus SASL
Daniel Atallah <datallah@pidgin.im>
parents: 33750
diff changeset
2028 dnl # Check for Cyrus-SASL (for xmpp/irc)
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2029 dnl #######################################################################
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2030 dnl AC_CHECK_SIZEOF(short)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2031 AC_CHECK_FUNCS(snprintf connect)
12508
32f6f8bf3a57 [gaim-migrate @ 14820]
Simon Wilkinson
parents: 12507
diff changeset
2032 AC_SUBST(SASL_LIBS)
33796
4854740e5277 Merge with release-2.x.y (lots of conflicts, but all trivially resolved)
Daniel Atallah <datallah@pidgin.im>
parents: 33760 33795
diff changeset
2033 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)
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2034 if test "x$enable_cyrus_sasl" = "xyes" ; then
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2035 AC_CHECK_LIB(sasl2, sasl_client_init, [
28855
c5bc85f9c00e jabber: Factor the SASL auth methods into their own files.
Paul Aurich <darkrain42@pidgin.im>
parents: 28693
diff changeset
2036 AM_CONDITIONAL(USE_CYRUS_SASL, true)
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2037 AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present])
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2038 SASL_LIBS=-"lsasl2"
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2039 ], [
28855
c5bc85f9c00e jabber: Factor the SASL auth methods into their own files.
Paul Aurich <darkrain42@pidgin.im>
parents: 28693
diff changeset
2040 AM_CONDITIONAL(USE_CYRUS_SASL, false)
29832
7dffd69edacb Standardize on AC_MSG_ERROR.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29823
diff changeset
2041 AC_MSG_ERROR([Cyrus SASL library not found])
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2042 ])
28855
c5bc85f9c00e jabber: Factor the SASL auth methods into their own files.
Paul Aurich <darkrain42@pidgin.im>
parents: 28693
diff changeset
2043 else
c5bc85f9c00e jabber: Factor the SASL auth methods into their own files.
Paul Aurich <darkrain42@pidgin.im>
parents: 28693
diff changeset
2044 AM_CONDITIONAL(USE_CYRUS_SASL, false)
12508
32f6f8bf3a57 [gaim-migrate @ 14820]
Simon Wilkinson
parents: 12507
diff changeset
2045 fi
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2046
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2047 dnl #######################################################################
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2048 dnl # Check for Kerberos (for Zephyr)
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2049 dnl #######################################################################
3662
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
2050 AC_DEFINE(ZEPHYR_INT32, long, [Size of an int32.])
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2051 AC_SUBST(KRB4_CFLAGS)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2052 AC_SUBST(KRB4_LDFLAGS)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2053 AC_SUBST(KRB4_LIBS)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2054 if test "$kerberos" != "no" ; then
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2055 if test "$kerberos" != "yes" ; then
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2056 KRB4_CFLAGS="-I${kerberos}/include"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2057 if test -d "$kerberos/include/kerberosIV" ; then
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2058 KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2059 fi
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2060 KRB4_LDFLAGS="-L${kerberos}/lib"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2061 elif test -d /usr/local/include/kerberosIV ; then
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2062 KRB4_CFLAGS="-I/usr/local/include/kerberosIV"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2063 elif test -d /usr/include/kerberosIV ; then
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2064 KRB4_CFLAGS="-I/usr/include/kerberosIV"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2065 fi
3662
e00dc031358b [gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents: 3589
diff changeset
2066 AC_DEFINE(ZEPHYR_USES_KERBEROS, 1, [Define if kerberos should be used in Zephyr.])
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2067
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2068 orig_LDFLAGS="$LDFLAGS"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2069 LDFLAGS="$LDFLAGS $KRB4_LDFLAGS"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2070 AC_CHECK_LIB(krb4, krb_rd_req,
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2071 [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"],
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2072 [AC_CHECK_LIB(krb, krb_rd_req,
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2073 [KRB4_LIBS="-lkrb -ldes"],
29832
7dffd69edacb Standardize on AC_MSG_ERROR.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29823
diff changeset
2074 [AC_MSG_ERROR([Kerberos 4 libraries not found])],
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2075 -ldes)],
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2076 -ldes425 -lkrb5 -lk5crypto -lcom_err)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2077 orig_LIBS="$LIBS"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2078 LIBS="$LIBS $KRB4_LIBS"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2079 AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2080 AC_CHECK_FUNCS(krb_get_err_text krb_log)
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2081 LIBS="$orig_LIBS"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2082 LDFLAGS="$orig_LDFLAGS"
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2083 fi
6150
e014b2535c24 [gaim-migrate @ 6624]
Sean Egan <seanegan@pidgin.im>
parents: 6143
diff changeset
2084
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2085 dnl #######################################################################
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2086 dnl # Check for external libzephyr
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2087 dnl #######################################################################
8378
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2088 AC_SUBST(ZEPHYR_CFLAGS)
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2089 AC_SUBST(ZEPHYR_LDFLAGS)
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2090 AC_SUBST(ZEPHYR_LIBS)
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2091 if test "$zephyr" != "no" ; then
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2092 if test "$zephyr" != "yes" ; then
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2093 ZEPHYR_CFLAGS="-I${zephyr}/include"
8378
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2094 ZEPHYR_LDFLAGS="-L${zephyr}/lib"
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2095 elif test -d /usr/athena/include/zephyr ; then
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2096 ZEPHYR_CFLAGS="-I/usr/athena/include"
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2097 elif test -d /usr/include/zephyr ; then
12034
e40d6191f530 [gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 12032
diff changeset
2098 ZEPHYR_CFLAGS="-I/usr/include"
e40d6191f530 [gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 12032
diff changeset
2099 elif test -d /usr/local/include/zephyr ; then
e40d6191f530 [gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 12032
diff changeset
2100 ZEPHYR_CFLAGS="-I/usr/local/include"
8378
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2101 fi
13733
a11620505037 [gaim-migrate @ 16142]
Mark Doliner <markdoliner@pidgin.im>
parents: 13720
diff changeset
2102 AC_DEFINE(LIBZEPHYR_EXT, 1 , [Define if external libzephyr should be used.])
8378
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2103 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2104 orig_LDFLAGS="$LDFLAGS"
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2105 LDFLAGS="$LDFLAGS $ZEPHYR_LDFLAGS"
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2106 AC_CHECK_LIB(zephyr, ZInitialize,
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2107 [ZEPHYR_LIBS="-lzephyr"],
29832
7dffd69edacb Standardize on AC_MSG_ERROR.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29823
diff changeset
2108 [AC_MSG_ERROR([Zephyr libraries not found])],
14503
bb719a93d9e1 [gaim-migrate @ 17155]
Mark Doliner <markdoliner@pidgin.im>
parents: 14502
diff changeset
2109 -lzephyr)
8378
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2110 orig_LIBS="$LIBS"
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2111 LIBS="$orig_LIBS"
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2112 LDFLAGS="$orig_LDFLAGS"
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2113 fi
593f94d8f12c [gaim-migrate @ 9105]
Arun Tharuvai <aatharuv@mit.edu>
parents: 8089
diff changeset
2114
6150
e014b2535c24 [gaim-migrate @ 6624]
Sean Egan <seanegan@pidgin.im>
parents: 6143
diff changeset
2115 AC_MSG_CHECKING(for me pot o' gold)
e014b2535c24 [gaim-migrate @ 6624]
Sean Egan <seanegan@pidgin.im>
parents: 6143
diff changeset
2116 AC_MSG_RESULT(no)
31332
6a74f42c8c04 Fix purple_str_to_time(). Fixes #13131.
Nader Morshed <morshed.nader@gmail.com>
parents: 31270
diff changeset
2117 AC_CHECK_FUNCS(gethostid lrand48 timegm)
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2118 AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf)
22673
9a01f082c6b0 Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents: 22663
diff changeset
2119 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h)
9a01f082c6b0 Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents: 22663
diff changeset
2120 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h)
9a01f082c6b0 Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents: 22663
diff changeset
2121 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h)
9a01f082c6b0 Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents: 22663
diff changeset
2122 AC_CHECK_HEADERS(termios.h)
22629
46e2adbfc4af Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents: 22565
diff changeset
2123
46e2adbfc4af Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents: 22565
diff changeset
2124 # sys/sysctl.h on OpenBSD 4.2 requires sys/param.h
23518
228c316f1323 Some header inclusion fixes to help on NetBSD/FreeBSD.
Richard Laager <rlaager@pidgin.im>
parents: 23492
diff changeset
2125 # sys/sysctl.h on FreeBSD requires sys/types.h
22673
9a01f082c6b0 Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents: 22663
diff changeset
2126 AC_CHECK_HEADERS(sys/param.h)
22629
46e2adbfc4af Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents: 22565
diff changeset
2127 AC_CHECK_HEADERS(sys/sysctl.h, [], [],
46e2adbfc4af Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents: 22565
diff changeset
2128 [[
23518
228c316f1323 Some header inclusion fixes to help on NetBSD/FreeBSD.
Richard Laager <rlaager@pidgin.im>
parents: 23492
diff changeset
2129 #include <sys/types.h>
22629
46e2adbfc4af Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents: 22565
diff changeset
2130 #ifdef HAVE_PARAM_H
46e2adbfc4af Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents: 22565
diff changeset
2131 # include <sys/param.h>
46e2adbfc4af Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents: 22565
diff changeset
2132 #endif
46e2adbfc4af Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents: 22565
diff changeset
2133 ]])
46e2adbfc4af Fix a problem with our configure check for sys/sysctl.h on OpenBSD 4.2.
Mark Doliner <markdoliner@pidgin.im>
parents: 22565
diff changeset
2134
22673
9a01f082c6b0 Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new
Mark Doliner <markdoliner@pidgin.im>
parents: 22663
diff changeset
2135 AC_CHECK_HEADERS(sys/socket.h)
3194
9404dfabed94 [gaim-migrate @ 3211]
Jim Seymour <jseymour@users.sourceforge.net>
parents: 3191
diff changeset
2136 AC_VAR_TIMEZONE_EXTERNALS
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2137
14533
18965bbec457 [gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents: 14507
diff changeset
2138 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
2139 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
14533
18965bbec457 [gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents: 14507
diff changeset
2140 #include <time.h>
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
2141 ]], [[
14533
18965bbec457 [gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents: 14507
diff changeset
2142 struct tm tm;
18965bbec457 [gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents: 14507
diff changeset
2143 tm.tm_gmtoff = 1;
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
2144 ]])], [ac_cv_struct_tm_gmtoff=yes], [ac_cv_struct_tm_gmtoff=no]))
14533
18965bbec457 [gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents: 14507
diff changeset
2145 if test $ac_cv_struct_tm_gmtoff = yes; then
18965bbec457 [gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents: 14507
diff changeset
2146 AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm])
18965bbec457 [gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents: 14507
diff changeset
2147 fi
18965bbec457 [gaim-migrate @ 17187]
Evan Schoenberg <evands@pidgin.im>
parents: 14507
diff changeset
2148
29341
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2149 AC_CACHE_CHECK([whether va_lists can be copied by value], ac_cv_va_val_copy,[
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
2150 AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdarg.h>
29341
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2151 #include <stdlib.h>
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2152 void f (int i, ...) {
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2153 va_list args1, args2;
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2154 va_start (args1, i);
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2155 args2 = args1;
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2156 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2157 exit (1);
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2158 va_end (args1); va_end (args2);
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2159 }
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2160 int main() {
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2161 f (0, 42);
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2162 return 0;
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
2163 }]])],
29341
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2164 [ac_cv_va_val_copy=yes],
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2165 [ac_cv_va_val_copy=no],
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2166 [ac_cv_va_val_copy=yes])
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2167 ])
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2168
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2169 if test "x$ac_cv_va_val_copy" = "xno"; then
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2170 AC_DEFINE(VA_COPY_AS_ARRAY, 1, ['va_lists' cannot be copied as values])
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2171 fi
8df545432476 disapproval of revision '1073f46cfe21069efa8e3be8f158fc2f841240cd'
Mark Doliner <markdoliner@pidgin.im>
parents: 29340
diff changeset
2172
10925
dc0bfebfef15 [gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents: 10851
diff changeset
2173 dnl #######################################################################
15102
3d4824183ce0 [gaim-migrate @ 17823]
Nathan Walp <nwalp@pidgin.im>
parents: 15013
diff changeset
2174 dnl # Check for check
3d4824183ce0 [gaim-migrate @ 17823]
Nathan Walp <nwalp@pidgin.im>
parents: 15013
diff changeset
2175 dnl #######################################################################
23341
dfb174f1430a A patch from compnerd (Saleem Abdulrasool) to remove a use of the
Saleem Abdulrasool <compnerd@compnerd.org>
parents: 23340
diff changeset
2176 PKG_CHECK_MODULES(CHECK, [check >= 0.9.4], , [AC_MSG_RESULT([no, testing is disabled])])
15868
7013bc2fca16 minor cleanups, and make 'make check' work with older versions of Check
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15834
diff changeset
2177 AM_CONDITIONAL(HAVE_CHECK, [test "x$CHECK_LIBS" != "x"])
15102
3d4824183ce0 [gaim-migrate @ 17823]
Nathan Walp <nwalp@pidgin.im>
parents: 15013
diff changeset
2178 AC_SUBST(CHECK_CFLAGS)
3d4824183ce0 [gaim-migrate @ 17823]
Nathan Walp <nwalp@pidgin.im>
parents: 15013
diff changeset
2179 AC_SUBST(CHECK_LIBS)
3d4824183ce0 [gaim-migrate @ 17823]
Nathan Walp <nwalp@pidgin.im>
parents: 15013
diff changeset
2180
3d4824183ce0 [gaim-migrate @ 17823]
Nathan Walp <nwalp@pidgin.im>
parents: 15013
diff changeset
2181 dnl #######################################################################
22717
5dd7255ae41f I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22673
diff changeset
2182 dnl # Disable pixmap installation
5dd7255ae41f I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22673
diff changeset
2183 dnl #######################################################################
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
2184 AC_ARG_ENABLE(pixmaps-install, AS_HELP_STRING([--disable-pixmaps-install], [disable installation of pixmap files - Pidgin still needs them!]), enable_pixmaps="$enableval", enable_pixmaps=yes)
22717
5dd7255ae41f I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22673
diff changeset
2185
5dd7255ae41f I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22673
diff changeset
2186 AM_CONDITIONAL(INSTALL_PIXMAPS, test "x$enable_pixmaps" = "xyes")
5dd7255ae41f I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22673
diff changeset
2187
22723
134bf06fdb6d For the few of us who wanted it, I bring back --disable-nls! It may not be
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22717
diff changeset
2188 dnl #######################################################################
30359
6fb91698456e Add a configure option --enable-trayicon-compat which installs tray icons
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30358
diff changeset
2189 dnl # Tweak status tray icon installation directory
6fb91698456e Add a configure option --enable-trayicon-compat which installs tray icons
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30358
diff changeset
2190 dnl #######################################################################
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
2191 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)
30359
6fb91698456e Add a configure option --enable-trayicon-compat which installs tray icons
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30358
diff changeset
2192
6fb91698456e Add a configure option --enable-trayicon-compat which installs tray icons
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30358
diff changeset
2193 AM_CONDITIONAL(ENABLE_TRAYCOMPAT, test "x$enable_traycompat" = "xyes")
22723
134bf06fdb6d For the few of us who wanted it, I bring back --disable-nls! It may not be
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22717
diff changeset
2194
35387
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2195 # check for gtk-doc
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2196 m4_ifdef([GTK_DOC_CHECK], [
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2197 GTK_DOC_CHECK([1.16],[--flavour no-tmpl])
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2198 ],[
35607
4ce836edff36 Fix gtk-doc configure check
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35581
diff changeset
2199 if test "x$force_deps" = "xyes" -a "x$enable_gtk_doc" = "xyes"; then
4ce836edff36 Fix gtk-doc configure check
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35581
diff changeset
2200 AC_MSG_ERROR([
4ce836edff36 Fix gtk-doc configure check
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35581
diff changeset
2201 You have requested to generate documentation, but gtk-doc was not found.
4ce836edff36 Fix gtk-doc configure check
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35581
diff changeset
2202 ])
10925
dc0bfebfef15 [gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents: 10851
diff changeset
2203 fi
dc0bfebfef15 [gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents: 10851
diff changeset
2204
35607
4ce836edff36 Fix gtk-doc configure check
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35581
diff changeset
2205 AM_CONDITIONAL([ENABLE_GTK_DOC], false)
4ce836edff36 Fix gtk-doc configure check
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35581
diff changeset
2206 enable_gtk_doc=no
35387
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2207 ])
20987
89f5ef90c79e Add some xsl magic to generate a .devhelp index from doxygen's XML output,
Will Thompson <resiak@pidgin.im>
parents: 20957
diff changeset
2208
33673
b331678195f5 Use AS_HELP_STRING instead of obsolete AC_HELP_STRING.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33672
diff changeset
2209 AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],
14507
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
2210 [compile with debugging support])], , enable_debug=no)
17062
7f0a31be8f7c Remove the fatal asserts. If you think they helped you find and fix bugs, you can use 'G_DEBUG=fatal_warnings pidgin' to get back the crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 17006
diff changeset
2211
14507
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
2212 if test "x$enable_debug" = "xyes" ; then
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
2213 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
2214 fi
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
2215
18705
ee878f1aa32b Some lines to the auto-thingies to aid in libgnt building standalone
Eric Polino <aluink@pidgin.im>
parents: 18292
diff changeset
2216 AM_CONDITIONAL(PURPLE_AVAILABLE, true)
ee878f1aa32b Some lines to the auto-thingies to aid in libgnt building standalone
Eric Polino <aluink@pidgin.im>
parents: 18292
diff changeset
2217
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
2218 AC_CONFIG_FILES([Makefile
6968
dfff23d8e933 [gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents: 6960
diff changeset
2219 doc/Makefile
15633
a199751d1c05 Patch from Kevin Stange to allow autogen to run successfully. Yeah just look at the diff...
Gary Kramlich <grim@reaperworld.com>
parents: 15610
diff changeset
2220 doc/pidgin.1
15909
0ee1e930d385 Rename/update finch man page
Richard Nelson <wabz@pidgin.im>
parents: 15901
diff changeset
2221 doc/finch.1
35387
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2222 doc/reference/Makefile
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2223 doc/reference/finch/Makefile
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2224 doc/reference/finch/version.xml
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2225 doc/reference/libpurple/Makefile
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2226 doc/reference/libpurple/version.xml
37347
34d43f8c10d1 facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents: 37249
diff changeset
2227 doc/reference/protocols/Makefile
34d43f8c10d1 facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents: 37249
diff changeset
2228 doc/reference/protocols/facebook/Makefile
34d43f8c10d1 facebook: added GTK-Doc for the internal APIs
James Geboski <jgeboski@gmail.com>
parents: 37249
diff changeset
2229 doc/reference/protocols/version.xml
35387
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2230 doc/reference/pidgin/Makefile
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2231 doc/reference/pidgin/version.xml
11147
67309baf4c84 [gaim-migrate @ 13226]
Gary Kramlich <grim@reaperworld.com>
parents: 11146
diff changeset
2232 m4macros/Makefile
15966
cf2b67eaa153 Change some stuff from gaim to pidgin
Mark Doliner <markdoliner@pidgin.im>
parents: 15946
diff changeset
2233 pidgin.apspec
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2234 pidgin/Makefile
36249
c6a0feac708f Move data files into their own directory.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36216
diff changeset
2235 pidgin/data/pidgin.desktop.in
36239
35d7033e1d33 Move data files into their own directory.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36222
diff changeset
2236 pidgin/data/pidgin-3.pc
35d7033e1d33 Move data files into their own directory.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36222
diff changeset
2237 pidgin/data/pidgin-3-uninstalled.pc
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2238 pidgin/pixmaps/Makefile
19385
6576c7483b51 More icons from Hylke
Sean Egan <seanegan@pidgin.im>
parents: 19318
diff changeset
2239 pidgin/pixmaps/emotes/default/24/Makefile
24689
d9db6c50ac6f Make the small smiley theme actually work.
Richard Laager <rlaager@pidgin.im>
parents: 24609
diff changeset
2240 pidgin/pixmaps/emotes/small/16/Makefile
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2241 pidgin/plugins/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2242 pidgin/plugins/cap/Makefile
27217
7509acac49de Convert the disco browser to a plugin. Refs #556
Paul Aurich <darkrain42@pidgin.im>
parents: 27047
diff changeset
2243 pidgin/plugins/disco/Makefile
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2244 pidgin/plugins/gestures/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2245 pidgin/plugins/gevolution/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2246 pidgin/plugins/musicmessaging/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2247 pidgin/plugins/ticker/Makefile
35873
1b074557f2b0 cross-win32: build win32 plugins
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35871
diff changeset
2248 pidgin/plugins/win32/transparency/Makefile
1b074557f2b0 cross-win32: build win32 plugins
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35871
diff changeset
2249 pidgin/plugins/win32/winprefs/Makefile
32676
c88622fe603b Put conversation theme in its own directory.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32512
diff changeset
2250 pidgin/themes/Makefile
35865
7f49bc843ce1 cross-win32: add version information to Pidgin/libpurple binaries
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35864
diff changeset
2251 pidgin/win32/pidgin_dll_rc.rc
7f49bc843ce1 cross-win32: add version information to Pidgin/libpurple binaries
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35864
diff changeset
2252 pidgin/win32/pidgin_exe_rc.rc
36249
c6a0feac708f Move data files into their own directory.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36216
diff changeset
2253 libpurple/data/gconf/Makefile
36239
35d7033e1d33 Move data files into their own directory.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36222
diff changeset
2254 libpurple/data/purple-3.pc
35d7033e1d33 Move data files into their own directory.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36222
diff changeset
2255 libpurple/data/purple-3-uninstalled.pc
15673
7f2c84ae63b0 Add the example nullclient here.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15671
diff changeset
2256 libpurple/example/Makefile
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2257 libpurple/plugins/Makefile
33984
7459475b1495 Added the gnome keyring plugin, and finally got makefiles to work.
Vivien Bernet-Rollande <scrouaf@soc.pidgin.im>
parents: 23881
diff changeset
2258 libpurple/plugins/keyrings/Makefile
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2259 libpurple/plugins/ssl/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2260 libpurple/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2261 libpurple/protocols/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2262 libpurple/protocols/bonjour/Makefile
37249
dfa58c08a4fd facebook: initial protocol plugin
James Geboski <jgeboski@gmail.com>
parents: 37163
diff changeset
2263 libpurple/protocols/facebook/Makefile
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2264 libpurple/protocols/gg/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2265 libpurple/protocols/irc/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2266 libpurple/protocols/jabber/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2267 libpurple/protocols/msn/Makefile
28841
6b9568572bcb Initial addition of the MXit protocol plugin, provided by the MXit folks
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 28693
diff changeset
2268 libpurple/protocols/mxit/Makefile
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2269 libpurple/protocols/novell/Makefile
17451
02adeb73ed3b this patch adds nullprpl, a mock protocol plugin, to the libpurple/protocols
Ryan Barrett <ryanbarrett@users.sourceforge.net>
parents: 17384
diff changeset
2270 libpurple/protocols/null/Makefile
15435
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2271 libpurple/protocols/oscar/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2272 libpurple/protocols/sametime/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2273 libpurple/protocols/silc/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2274 libpurple/protocols/simple/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2275 libpurple/protocols/yahoo/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2276 libpurple/protocols/zephyr/Makefile
4b933b06d75e Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@pidgin.im>
parents: 15421
diff changeset
2277 libpurple/tests/Makefile
21466
491faf2e1fe4 Make purple.h a generated file so plugins can just include this and never
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 21465
diff changeset
2278 libpurple/purple.h
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 16650
diff changeset
2279 libpurple/version.h
35865
7f49bc843ce1 cross-win32: add version information to Pidgin/libpurple binaries
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35864
diff changeset
2280 libpurple/win32/libpurplerc.rc
18292
Eric Polino <aluink@pidgin.im>
parents: 18234
diff changeset
2281 share/sounds/Makefile
19355
a15de14b4ad1 - Fix the autoconf/automake stuff so that the ca-certs work
William Ehlhardt <williamehlhardt@gmail.com>
parents: 19318
diff changeset
2282 share/ca-certs/Makefile
20892
bace1e693fd3 pkg-config shizzle for finch.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20771
diff changeset
2283 finch/finch.pc
35887
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
2284 finch/finch_winres.rc
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
2285 finch/libfinch_winres.rc
15878
f52832b611fe renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents: 15875
diff changeset
2286 finch/Makefile
f52832b611fe renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents: 15875
diff changeset
2287 finch/libgnt/Makefile
f52832b611fe renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents: 15875
diff changeset
2288 finch/libgnt/gnt.pc
35887
d18e59bae076 Fix win32/others versioning: rc files, bump gnt version, -version-info switch for libpidgin and libfinch
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35886
diff changeset
2289 finch/libgnt/libgnt_winres.rc
15878
f52832b611fe renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents: 15875
diff changeset
2290 finch/libgnt/wms/Makefile
f52832b611fe renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents: 15875
diff changeset
2291 finch/plugins/Makefile
6954
5bcec8948bad [gaim-migrate @ 7501]
Nathan Walp <nwalp@pidgin.im>
parents: 6896
diff changeset
2292 po/Makefile.in
6968
dfff23d8e933 [gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents: 6960
diff changeset
2293 ])
29833
191ef3a49890 Update some stuff that should be in Autoconf 2.50.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 29832
diff changeset
2294 AC_OUTPUT
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2295
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2296 echo
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2297 echo $PACKAGE $VERSION
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2298
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2299 echo
33171
96a8f89214a3 Add configure magic to build with either GTK+ 3 or 2.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33163
diff changeset
2300 echo Build GTK+ UI................. : $enable_gtkui
14507
7d7ad2b8c3f8 [gaim-migrate @ 17159]
Mark Doliner <markdoliner@pidgin.im>
parents: 14506
diff changeset
2301 echo Build console UI.............. : $enable_consoleui
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
2302 echo Build for X11................. : $with_x
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2303 echo
19656
c7cdc9801b60 Remove X11 specifics from configure.ac. Allows to build against native, non-X11 Quartz
Sean Egan <seanegan@pidgin.im>
parents: 19651
diff changeset
2304 echo Enable Gestures............... : $enable_gestures
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2305 echo Protocols to build dynamically : $DYNAMIC_PRPLS
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2306 echo Protocols to link statically.. : $STATIC_PRPLS
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2307 echo
13720
051ef816673a [gaim-migrate @ 16127]
Sean Egan <seanegan@pidgin.im>
parents: 13633
diff changeset
2308 echo Build with GStreamer support.. : $enable_gst
36316
2415067473ba Support GStreamer 1.x and resync with trunk
David Woodhouse <David.Woodhouse@intel.com>
parents: 36276
diff changeset
2309 echo Build for GStreamer version... : $with_gstreamer
15610
fc49b3cc8095 Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents: 15600
diff changeset
2310 echo Build with D-Bus support...... : $enable_dbus
23703
5fb5502c76c3 Change configure script to have a separate check for voice and video
Michael Ruprecht <maiku@pidgin.im>
parents: 23702
diff changeset
2311 echo Build with voice and video.... : $enable_vv
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2312 if test "x$enable_dbus" = "xyes" ; then
15610
fc49b3cc8095 Make NetworkManager support disabled by default, add an "--enable-nm" option
Mark Doliner <markdoliner@pidgin.im>
parents: 15600
diff changeset
2313 eval eval echo D-Bus services directory...... : $DBUS_SERVICES_DIR
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2314 fi
27849
7f7428cb8309 When GNU Libidn is available, use it for XMPP stringprep operations.
Paul Aurich <darkrain42@pidgin.im>
parents: 27848
diff changeset
2315 echo Build with GNU Libidn......... : $enable_idn
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2316 echo SSL Library/Libraries......... : $msg_ssl
23473
df05ffc37ed0 Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents: 23472
diff changeset
2317 if test "x$SSL_CERTIFICATES_DIR" != "x" ; then
df05ffc37ed0 Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents: 23472
diff changeset
2318 eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR
df05ffc37ed0 Add a configure option, --with-ssl-certificates to allow packagers to
Richard Laager <rlaager@pidgin.im>
parents: 23472
diff changeset
2319 fi
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2320 echo Build with Cyrus SASL support. : $enable_cyrus_sasl
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2321 echo Use kerberos 4 with zephyr.... : $kerberos
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2322 echo Use external libzephyr........ : $zephyr
36118
f1c54a78d896 Better check for libgadu GPL compliance, some tidying up
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 36117
diff changeset
2323 echo Use external libgadu.......... : $have_libgadu
22717
5dd7255ae41f I'm tired of installing pixmap data that almost never changes. I'm so tired of
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22673
diff changeset
2324 echo Install pixmaps............... : $enable_pixmaps
30359
6fb91698456e Add a configure option --enable-trayicon-compat which installs tray icons
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30358
diff changeset
2325 echo Old tray icon compatibility... : $enable_traycompat
22723
134bf06fdb6d For the few of us who wanted it, I bring back --disable-nls! It may not be
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22717
diff changeset
2326 echo Install translations.......... : $enable_i18n
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2327 echo Has you....................... : yes
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2328 echo
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2329 echo Use XScreenSaver Extension.... : $enable_screensaver
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2330 echo Use X Session Management...... : $enable_sm
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2331 echo Use startup notification...... : $enable_startup_notification
35911
e173a6f9a021 PidginWebView: spell checking dictionary selection
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35903
diff changeset
2332 echo Build with Enchant support.... : $use_enchant
32771
681ca041d42b Optionally show certificates using GCR's widgets. These are much
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32770
diff changeset
2333 echo Build with GCR widgets........ : $enable_gcr
35122
30af0986aa62 Added the Unity integration plugin
Ankit Vani <a@nevitus.org>
parents: 33932
diff changeset
2334 echo Build Unity integration plugin.: $enable_unity
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2335 echo
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
2336 echo Build with GNOME Keyring...... : $enable_gnome_keyring
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
2337 echo Build with KWallet............ : $enable_kwallet
34197
e3507bd26a39 Disable Secret Service keyring, because of its (current) poor quality, far away from being ready to ship
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34193
diff changeset
2338 #echo Build with Secret Service..... : $enable_secret_service
34150
d6109ee16347 Auto enable all possible keyrings by default
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 34148
diff changeset
2339 echo
14506
0c47b596fede [gaim-migrate @ 17158]
Mark Doliner <markdoliner@pidgin.im>
parents: 14504
diff changeset
2340 echo Build with plugin support..... : $enable_plugins
36822
7f6509afc91e disabled perl, tcl, mono loaders. this will be handled by gplugin.
Ankit Vani <a@nevitus.org>
parents: 36818
diff changeset
2341 echo Enable Introspection...........: $enable_introspection
35901
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
2342
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
2343 if test "x$is_win32" = "xyes" ; then
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
2344 echo
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
2345 echo Win32 directory structure..... : $with_win32_dirs
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
2346 fi
5bcb306a4edf cross-win32: FHS support for win32
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35899
diff changeset
2347
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2348 echo
2725
a844d0964552 [gaim-migrate @ 2738]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents: 2711
diff changeset
2349 echo Print debugging messages...... : $enable_debug
35387
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35298
diff changeset
2350 echo Generate documentation........ : $enable_gtk_doc
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2351 echo
15946
d40e8847e825 More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15909
diff changeset
2352 eval eval echo Pidgin will be installed in $bindir.
15976
dbb3ea0b1f7c Minor 'make dist' fix and check for installed versions of pidgin, not gaim
Mark Doliner <markdoliner@pidgin.im>
parents: 15966
diff changeset
2353 if test "x$pidginpath" != "x" ; then
dbb3ea0b1f7c Minor 'make dist' fix and check for installed versions of pidgin, not gaim
Mark Doliner <markdoliner@pidgin.im>
parents: 15966
diff changeset
2354 echo Warning: You have an old copy of Pidgin at $pidginpath.
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2355 fi
22818
bdcf442fc564 I'm an idiot and forgot to escape my apostrophe. This took *way* too long
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22817
diff changeset
2356 if test "x$enable_pixmaps" = "xno" ; then
22817
f8a97e000798 Attempt to make it a bit more obvious that people need to have half a clue
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22784
diff changeset
2357 echo
f8a97e000798 Attempt to make it a bit more obvious that people need to have half a clue
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22784
diff changeset
2358 echo Warning: You have disabled the installation of pixmap data, but Pidgin
29902
c2506a6741cb Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29901
diff changeset
2359 echo still requires installed pixmaps. Be sure you know what you are doing.
c2506a6741cb Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29901
diff changeset
2360 fi
c2506a6741cb Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29901
diff changeset
2361 if test "x$enable_i18n" = "xno" ; then
c2506a6741cb Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29901
diff changeset
2362 echo
30358
78ae7bcfa65c I don't know why this AM_CONDITIONAL is so far away from its setup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30263
diff changeset
2363 echo Warning: You have disabled the building and installation of translation
29902
c2506a6741cb Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29901
diff changeset
2364 echo data. This will prevent building pidgin.desktop and the GConf schemas.
c2506a6741cb Small wording tweak and add a warning about the effects of --disable-nls.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 29901
diff changeset
2365 echo Be sure you know what you are doing.
22817
f8a97e000798 Attempt to make it a bit more obvious that people need to have half a clue
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22784
diff changeset
2366 fi
2129
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2367 echo
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2368 echo configure complete, now type \'make\'
5aa05ef6138f [gaim-migrate @ 2139]
Decklin Foster <decklin@red-bean.com>
parents:
diff changeset
2369 echo
22818
bdcf442fc564 I'm an idiot and forgot to escape my apostrophe. This took *way* too long
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 22817
diff changeset
2370

mercurial