Tue, 02 May 2006 22:24:46 +0000
[gaim-migrate @ 16127]
Use Gstreamer for IM sounds, kill ao/audiofile
| 2129 | 1 | dnl Process this file with autoconf to produce a configure script. |
|
13633
d854f04a3564
[gaim-migrate @ 16030]
Mark Doliner <markdoliner@pidgin.im>
parents:
13589
diff
changeset
|
2 | AC_INIT([gaim], [2.0.0dev], [gaim-devel@lists.sourceforge.net]) |
| 8849 | 3 | AC_CANONICAL_SYSTEM |
| 2129 | 4 | AM_CONFIG_HEADER(config.h) |
|
8485
1886b9ce3a64
[gaim-migrate @ 9220]
John Silvestri <john.silvestri@gmail.com>
parents:
8479
diff
changeset
|
5 | AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
| 3174 | 6 | |
| 7 | AC_PREREQ([2.50]) | |
| 2129 | 8 | |
| 9 | AC_PATH_PROG(sedpath, sed) | |
| 10 | ||
| 8919 | 11 | dnl Storing configure arguments |
| 12 | AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments]) | |
| 13 | ||
| 2129 | 14 | dnl Checks for programs. |
| 15 | AC_PROG_CC | |
| 16 | AC_DISABLE_STATIC | |
| 17 | AM_PROG_LIBTOOL | |
| 18 | LIBTOOL="$LIBTOOL --silent" | |
| 19 | AC_PROG_INSTALL | |
|
13180
4cce5a554f53
[gaim-migrate @ 15542]
Richard Laager <rlaager@pidgin.im>
parents:
13175
diff
changeset
|
20 | AC_PROG_INTLTOOL |
|
4cce5a554f53
[gaim-migrate @ 15542]
Richard Laager <rlaager@pidgin.im>
parents:
13175
diff
changeset
|
21 | GETTEXT_PACKAGE=gaim |
|
4cce5a554f53
[gaim-migrate @ 15542]
Richard Laager <rlaager@pidgin.im>
parents:
13175
diff
changeset
|
22 | AC_SUBST(GETTEXT_PACKAGE) |
| 2129 | 23 | |
| 7603 | 24 | # before gettexting, in case iconv matters |
| 25 | case "$host_os" in | |
| 26 | darwin*) | |
| 12685 | 27 | AC_CHECK_LIB(resolv, res_query) |
|
13324
8ff1c408ef3e
[gaim-migrate @ 15693]
Richard Laager <rlaager@pidgin.im>
parents:
13320
diff
changeset
|
28 | |
|
8ff1c408ef3e
[gaim-migrate @ 15693]
Richard Laager <rlaager@pidgin.im>
parents:
13320
diff
changeset
|
29 | AC_CHECK_HEADER(CoreFoundation/CoreFoundation.h, [ |
|
8ff1c408ef3e
[gaim-migrate @ 15693]
Richard Laager <rlaager@pidgin.im>
parents:
13320
diff
changeset
|
30 | AC_CHECK_HEADER(IOKit/IOKitLib.h, [ |
|
8ff1c408ef3e
[gaim-migrate @ 15693]
Richard Laager <rlaager@pidgin.im>
parents:
13320
diff
changeset
|
31 | AC_DEFINE(HAVE_IOKIT, 1, [Define if we have IOKit]) |
|
8ff1c408ef3e
[gaim-migrate @ 15693]
Richard Laager <rlaager@pidgin.im>
parents:
13320
diff
changeset
|
32 | LIBS="$LIBS -framework IOKit -framework CoreFoundation" |
|
8ff1c408ef3e
[gaim-migrate @ 15693]
Richard Laager <rlaager@pidgin.im>
parents:
13320
diff
changeset
|
33 | ], []) |
|
8ff1c408ef3e
[gaim-migrate @ 15693]
Richard Laager <rlaager@pidgin.im>
parents:
13320
diff
changeset
|
34 | ], []) |
|
8ff1c408ef3e
[gaim-migrate @ 15693]
Richard Laager <rlaager@pidgin.im>
parents:
13320
diff
changeset
|
35 | |
| 7603 | 36 | AC_MSG_CHECKING([for fink]) |
| 37 | if test -d /sw; then | |
| 38 | AC_MSG_RESULT([found, adding /sw to search paths]) | |
| 12698 | 39 | CPPFLAGS="$CPPFLAGS -I/sw/include" |
| 12685 | 40 | LDFLAGS="$LDFLAGS -L/sw/lib" |
| 7603 | 41 | else |
| 42 | AC_MSG_RESULT([not found]) | |
| 43 | fi | |
| 44 | ;; | |
| 45 | *) | |
| 46 | ;; | |
| 47 | esac | |
| 2129 | 48 | |
|
13533
99542db70681
[gaim-migrate @ 15909]
Luke Schierer <lschiere@pidgin.im>
parents:
13504
diff
changeset
|
49 | ALL_LINGUAS="am az bg bn bs ca ca_ES@valencian cs da de el en_AU en_CA en_GB es et fa fi fr gl gu he hi hu it ja ka ko ku lt mk my_MM nb nl nn pa pl pt_BR pt ro ru sk sl sq sr sr@Latn sv ta te tr uk vi xh zh_CN zh_TW" |
|
13180
4cce5a554f53
[gaim-migrate @ 15542]
Richard Laager <rlaager@pidgin.im>
parents:
13175
diff
changeset
|
50 | AM_GLIB_GNU_GETTEXT |
| 2129 | 51 | |
|
6360
c2bfe65b200c
[gaim-migrate @ 6864]
Robert McQueen <robot101@debian.org>
parents:
6321
diff
changeset
|
52 | dnl we don't use autobreak on cygwin!! |
|
c2bfe65b200c
[gaim-migrate @ 6864]
Robert McQueen <robot101@debian.org>
parents:
6321
diff
changeset
|
53 | dnl AC_CYGWIN |
| 2129 | 54 | |
| 55 | dnl Checks for header files. | |
| 56 | AC_HEADER_STDC | |
| 57 | AC_HEADER_SYS_WAIT | |
|
12561
c81871bffd54
[gaim-migrate @ 14880]
Richard Laager <rlaager@pidgin.im>
parents:
12547
diff
changeset
|
58 | AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h) |
| 2129 | 59 | |
| 60 | dnl Checks for typedefs, structures, and compiler characteristics. | |
| 61 | AC_C_CONST | |
| 62 | AC_STRUCT_TM | |
| 63 | ||
|
12423
e83c899d3be9
[gaim-migrate @ 14730]
Richard Laager <rlaager@pidgin.im>
parents:
12385
diff
changeset
|
64 | AC_C_BIGENDIAN |
|
e83c899d3be9
[gaim-migrate @ 14730]
Richard Laager <rlaager@pidgin.im>
parents:
12385
diff
changeset
|
65 | |
| 2129 | 66 | dnl Checks for library functions. |
| 67 | AC_TYPE_SIGNAL | |
| 68 | AC_FUNC_STRFTIME | |
|
13217
a159125835c0
[gaim-migrate @ 15580]
Richard Laager <rlaager@pidgin.im>
parents:
13180
diff
changeset
|
69 | AC_CHECK_FUNCS(strdup strstr atexit setlocale) |
| 2129 | 70 | dnl Checks for getopt in standard library |
|
7451
41329081eb6d
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
71 | AC_CHECK_FUNCS(getopt_long,, |
|
41329081eb6d
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
72 | [ |
|
41329081eb6d
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
73 | AC_LIBOBJ(getopt) |
|
41329081eb6d
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
74 | AC_LIBOBJ(getopt1) |
|
41329081eb6d
[gaim-migrate @ 8063]
Christian Hammond <chipx86@chipx86.com>
parents:
7396
diff
changeset
|
75 | ]) |
| 2129 | 76 | |
| 2959 | 77 | dnl Check for inet_aton |
| 78 | AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, , | |
| 79 | [AC_ERROR(inet_aton not found)])]) | |
|
11373
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11356
diff
changeset
|
80 | AC_CHECK_LIB(resolv, __res_query) |
| 4424 | 81 | AC_CHECK_LIB(nsl, gethostent) |
| 82 | AC_CHECK_FUNC(socket, , | |
| 83 | [AC_CHECK_LIB(socket, socket, , [AC_ERROR([socket not found])])]) | |
| 84 | dnl If all goes well, by this point the previous two checks will have | |
| 85 | dnl pulled in -lsocket and -lnsl if we need them. | |
| 86 | AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE([HAVE_GETADDRINFO], [1], | |
| 87 | [Define to 1 if you have the getaddrinfo function.])], | |
| 88 | [AC_CHECK_LIB(socket, getaddrinfo, | |
| 89 | [AC_DEFINE([HAVE_GETADDRINFO]) LIBS="-lsocket -lsnl $LIBS"], , , -lnsl)]) | |
| 2959 | 90 | |
| 3150 | 91 | dnl Check for socklen_t (in Unix98) |
| 92 | AC_MSG_CHECKING(for socklen_t) | |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
93 | AC_TRY_COMPILE([ |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
94 | #include <sys/types.h> |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
95 | #include <sys/socket.h> |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
96 | socklen_t x; |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
97 | ], [], |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
98 | [ |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
99 | AC_MSG_RESULT(yes) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
100 | ], [ |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
101 | AC_TRY_COMPILE([ |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
102 | #include <sys/types.h> |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
103 | #include <sys/socket.h> |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
104 | int accept(int, struct sockaddr *, size_t *); |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
105 | ], [], [ |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
106 | AC_MSG_RESULT(size_t) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
107 | AC_DEFINE(socklen_t, size_t, [socklen_t size]) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
108 | ], [ |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
109 | AC_MSG_RESULT(int) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
110 | AC_DEFINE(socklen_t, int, [socklen_t size]) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
111 | ]) |
|
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
112 | ]) |
| 3150 | 113 | |
|
10622
8faf2d7a4afe
[gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents:
10620
diff
changeset
|
114 | dnl to prevent the g_stat()/g_unlink() crash, |
|
8faf2d7a4afe
[gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents:
10620
diff
changeset
|
115 | 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
|
116 | AC_SYS_LARGEFILE |
|
8faf2d7a4afe
[gaim-migrate @ 12091]
Luke Schierer <lschiere@pidgin.im>
parents:
10620
diff
changeset
|
117 | |
|
12038
1d83b5720a65
[gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12036
diff
changeset
|
118 | dnl FreeBSD doesn't have libdl, dlopen is provided by libc |
|
1d83b5720a65
[gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12036
diff
changeset
|
119 | 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
|
120 | |
|
13153
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
121 | AC_MSG_CHECKING(for the %z format string in strftime()) |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
122 | AC_TRY_RUN([ |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
123 | #ifdef HAVE_SYS_TIME_H |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
124 | #include <sys/time.h> |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
125 | #endif |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
126 | #include <time.h> |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
127 | #include <stdio.h> |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
128 | |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
129 | int main() |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
130 | { |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
131 | char buf[6]; |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
132 | time_t t = time(NULL); |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
133 | |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
134 | if (strftime(buf, sizeof(buf), "%z", localtime(&t)) != 5) |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
135 | return 1; |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
136 | |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
137 | fprintf(stderr, "strftime(\"%%z\") yields: \"%s\"\n", buf); |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
138 | |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
139 | return !((buf[0] == '-' || buf[0] == '+') && |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
140 | (buf[1] >= '0' && buf[1] <= '9') && |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
141 | (buf[2] >= '0' && buf[2] <= '9') && |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
142 | (buf[3] >= '0' && buf[3] <= '9') && |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
143 | (buf[4] >= '0' && buf[4] <= '9') |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
144 | ); |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
145 | } |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
146 | ], |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
147 | [ |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
148 | AC_MSG_RESULT(yes) |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
149 | AC_DEFINE([HAVE_STRFTIME_Z_FORMAT], [1], |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
150 | [Define to 1 if you have a strftime() that supports the %z format string.]) |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
151 | ], |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
152 | [ |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
153 | AC_MSG_RESULT(no) |
|
13226
92b014d46d83
[gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents:
13217
diff
changeset
|
154 | ], |
|
92b014d46d83
[gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents:
13217
diff
changeset
|
155 | [ |
|
92b014d46d83
[gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents:
13217
diff
changeset
|
156 | # Fallback for Cross Compiling... |
|
92b014d46d83
[gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents:
13217
diff
changeset
|
157 | # This will enable the compatibility code. |
|
92b014d46d83
[gaim-migrate @ 15589]
Richard Laager <rlaager@pidgin.im>
parents:
13217
diff
changeset
|
158 | AC_MSG_RESULT(no) |
|
13153
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
159 | ] |
|
3e0b91a83516
[gaim-migrate @ 15515]
Richard Laager <rlaager@pidgin.im>
parents:
13032
diff
changeset
|
160 | ) |
|
11949
ee1bbb072d4a
[gaim-migrate @ 14240]
Christopher O'Brien <siege@pidgin.im>
parents:
11945
diff
changeset
|
161 | |
| 13720 | 162 | dnl ####################################################################### |
| 163 | dnl # GStreamer | |
| 164 | dnl ####################################################################### | |
| 165 | enable_gst=yes | |
| 166 | PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10, ,enable_gst=no) | |
| 167 | AC_SUBST(GSTREAMER_CFLAGS) | |
| 168 | AC_SUBST(GSTREAMER_LIBS) | |
| 169 | AC_ARG_ENABLE(gstreamer,[ --disable-gstreamer compile with GStreamer audio support],enable_gst=no) | |
| 170 | if test "x$enable_gst" = "xyes"; then | |
| 171 | AC_DEFINE(USE_GSTREAMER, 1, [Use GStreamer for making sounds]) | |
| 172 | fi | |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
173 | |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
174 | dnl ####################################################################### |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
175 | dnl # Check for Meanwhile headers (for Sametime) |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
176 | dnl ####################################################################### |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
177 | PKG_CHECK_MODULES(MEANWHILE, |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
178 | [meanwhile >= 1.0.0 meanwhile < 2.0.0], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
179 | have_meanwhile="yes" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
180 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
181 | AC_MSG_RESULT(no) |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
182 | have_meanwhile="no" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
183 | ]) |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
184 | AC_SUBST(MEANWHILE_CFLAGS) |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
185 | AC_SUBST(MEANWHILE_LIBS) |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
186 | |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
187 | |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
188 | |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
189 | dnl ####################################################################### |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
190 | dnl # Check for Howl headers (for Bonjour) |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
191 | dnl ####################################################################### |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
192 | AC_ARG_WITH(howl-includes, [AC_HELP_STRING([--with-howl-includes=DIR], [Compile the Bonjour plugin against the Howl includes in DIR])], [ac_howl_includes="$withval"], [ac_howl_includes="no"]) |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
193 | AC_ARG_WITH(howl-libs, [AC_HELP_STRING([--with-howl-libs=DIR], [Compile the Bonjour plugin against the Howl libs in DIR])], [ac_howl_libs="$withval"], [ac_howl_libs="no"]) |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
194 | HOWL_CFLAGS="" |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
195 | HOWL_LIBS="" |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
196 | |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
197 | dnl Attempt to autodetect Howl |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
198 | PKG_CHECK_MODULES(HOWL, howl, [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
199 | howlincludes="yes" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
200 | howllibs="yes" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
201 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
202 | AC_MSG_RESULT(no) |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
203 | howlincludes="no" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
204 | howllibs="no" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
205 | ]) |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
206 | |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
207 | dnl Override HOWL_CFLAGS if the user specified an include dir |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
208 | if test "$ac_howl_includes" != "no"; then |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
209 | HOWL_CFLAGS="-I$ac_howl_includes" |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
210 | fi |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
211 | CPPFLAGS_save="$CPPFLAGS" |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
212 | CPPFLAGS="$CPPFLAGS $HOWL_CFLAGS" |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
213 | AC_CHECK_HEADER(howl.h, [howlincludes=yes], [howlincludes=no]) |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
214 | CPPFLAGS="$CPPFLAGS_save" |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
215 | |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
216 | dnl Override HOWL_LIBS if the user specified a libs dir |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
217 | if test "$ac_howl_libs" != "no"; then |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
218 | HOWL_LIBS="-L$ac_howl_libs" |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
219 | fi |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
220 | AC_CHECK_LIB(howl, sw_discovery_init, [howllibs=yes], [howllibs=no], $HOWL_LIBS) |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
221 | |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
222 | AC_SUBST(HOWL_CFLAGS) |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
223 | AC_SUBST(HOWL_LIBS) |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
224 | |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
225 | |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
226 | |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
227 | dnl ####################################################################### |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
228 | dnl # Check for SILC client includes and libraries |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
229 | dnl ####################################################################### |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
230 | AC_ARG_WITH(silc-includes, [AC_HELP_STRING([--with-silc-includes=DIR], [Compile the SILC plugin against includes in DIR])], [ac_silc_includes="$withval"], [ac_silc_includes="no"]) |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
231 | AC_ARG_WITH(silc-libs, [AC_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 | 232 | SILC_CFLAGS="" |
| 8850 | 233 | SILC_LIBS="" |
| 9905 | 234 | if test -n "$with_silc_includes" || test -n "$with_silc_libs"; then |
| 235 | silc_manual_check="yes" | |
| 236 | else | |
| 237 | silc_manual_check="no" | |
| 8850 | 238 | fi |
| 9905 | 239 | if test "x$silc_manual_check" = "xno"; then |
|
10803
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
240 | PKG_CHECK_MODULES(SILC, silcclient, [ |
| 9905 | 241 | have_silc="yes" |
| 242 | silcincludes="yes" | |
| 243 | silcclient="yes" | |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
244 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
245 | AC_MSG_RESULT(no) |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
246 | have_silc="no" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
247 | ]) |
|
10803
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
248 | dnl If silcclient.pc wasn't found, check for just silc.pc |
|
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
249 | if test "x$have_silc" = "xno"; then |
|
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
250 | PKG_CHECK_MODULES(SILC, silc, [ |
|
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
251 | have_silc="yes" |
|
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
252 | silcincludes="yes" |
|
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
253 | silcclient="yes" |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
254 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
255 | AC_MSG_RESULT(no) |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
256 | have_silc="no" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
257 | ]) |
|
10803
9170a8914af7
[gaim-migrate @ 12450]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10628
diff
changeset
|
258 | fi |
| 9905 | 259 | else |
| 260 | if test "$ac_silc_includes" != "no"; then | |
| 261 | SILC_CFLAGS="-I$ac_silc_includes" | |
| 262 | fi | |
| 263 | CPPFLAGS_save="$CPPFLAGS" | |
| 264 | CPPFLAGS="$CPPFLAGS $SILC_CFLAGS" | |
| 265 | AC_CHECK_HEADER(silcincludes.h, [silcincludes=yes]) | |
| 266 | CPPFLAGS="$CPPFLAGS_save" | |
| 267 | ||
| 268 | if test "$ac_silc_libs" != "no"; then | |
| 269 | SILC_LIBS="-L$ac_silc_libs" | |
| 270 | fi | |
|
12038
1d83b5720a65
[gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12036
diff
changeset
|
271 | SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread $LIBDL" |
| 9905 | 272 | AC_CHECK_LIB(silcclient, silc_client_init, [silcclient=yes], , $SILC_LIBS) |
| 273 | fi | |
| 8850 | 274 | AC_SUBST(SILC_LIBS) |
| 9905 | 275 | AC_SUBST(SILC_CFLAGS) |
|
12217
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
276 | dnl SILC Toolkit >= 1.0.1 has a new MIME API |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
277 | if test "x$silcclient" = "xyes"; then |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
278 | CPPFLAGS_save="$CPPFLAGS" |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
279 | CPPFLAGS="$CPPFLAGS $SILC_CFLAGS" |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
280 | AC_MSG_CHECKING(for silcmime.h) |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
281 | AC_TRY_COMPILE([ |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
282 | #include <silcincludes.h> |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
283 | #include <silcmime.h> |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
284 | ], [], [ |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
285 | AC_MSG_RESULT(yes) |
|
13324
8ff1c408ef3e
[gaim-migrate @ 15693]
Richard Laager <rlaager@pidgin.im>
parents:
13320
diff
changeset
|
286 | 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
|
287 | ], [ |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
288 | AC_MSG_RESULT(no) |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
289 | ]) |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
290 | CPPFLAGS="$CPPFLAGS_save" |
|
ea610d8ab584
[gaim-migrate @ 14519]
Pekka Riikonen <priikone@silcnet.org>
parents:
12123
diff
changeset
|
291 | fi |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
292 | |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
293 | |
| 13318 | 294 | dnl ####################################################################### |
| 295 | dnl # Check for gadugadu client includes and libraries | |
| 296 | dnl ####################################################################### | |
| 297 | AC_ARG_WITH(gadu-includes, [AC_HELP_STRING([--with-gadu-includes=DIR], [Compile the gadugadu plugin against includes in DIR])], [ac_gadu_includes="$withval"], [ac_gadu_includes="no"]) | |
| 298 | AC_ARG_WITH(gadu-libs, [AC_HELP_STRING([--with-gadu-libs=DIR], [Compile the gadugadu plugin against the libs in DIR])], [ac_gadu_libs="$withval"], [ac_gadu_libs="no"]) | |
| 299 | GADU_CFLAGS="" | |
| 300 | GADU_LIBS="" | |
| 301 | if test -n "$with_gadu_includes" || test -n "$with_gadu_libs"; then | |
| 302 | gadu_manual_check="yes" | |
| 303 | else | |
| 304 | gadu_manual_check="no" | |
| 305 | fi | |
| 306 | if test "x$gadu_manual_check" = "xno"; then | |
| 307 | PKG_CHECK_MODULES(GADU, libgadu, [ | |
| 308 | gadu_includes="yes" | |
| 309 | gadu_libs="yes" | |
| 310 | ], [ | |
| 311 | AC_MSG_RESULT(no) | |
| 312 | ]) | |
| 313 | else | |
| 314 | if test "$ac_gadu_includes" != "no"; then | |
| 315 | GADU_CFLAGS="-I$ac_gadu_includes" | |
| 316 | fi | |
| 317 | CPPFLAGS_save="$CPPFLAGS" | |
| 318 | CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" | |
| 319 | AC_CHECK_HEADER(libgadu.h, [gadu_includes=yes]) | |
| 320 | CPPFLAGS="$CPPFLAGS_save" | |
| 321 | ||
| 322 | if test "$ac_gadu_libs" != "no"; then | |
| 323 | GADU_LIBS="-L$ac_gadu_libs" | |
| 324 | fi | |
| 325 | GADU_LIBS="$GADU_LIBS -lgadu" | |
| 326 | AC_CHECK_LIB(gadu, gg_libgadu_version, [gadu_libs=yes], , $GADU_LIBS) | |
| 327 | fi | |
| 328 | ||
| 329 | if test "x$gadu_libs" = "xyes"; then | |
| 330 | AC_MSG_CHECKING(for libgadu GPL compatibility) | |
| 13466 | 331 | CPPFLAGS_save="$CPPFLAGS" |
| 332 | CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" | |
|
13320
b562b1baf10a
[gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents:
13318
diff
changeset
|
333 | AC_TRY_COMPILE([#include <libgadu.h>], [ |
| 13318 | 334 | #ifdef __GG_LIBGADU_HAVE_OPENSSL |
| 335 | #error "libgadu is not compatible with the GPL when compiled with OpenSSL support." | |
| 336 | #endif | |
| 337 | ], [ | |
| 338 | AC_MSG_RESULT(yes) | |
|
13320
b562b1baf10a
[gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents:
13318
diff
changeset
|
339 | AC_DEFINE([HAVE_LIBGADU], [1], |
|
b562b1baf10a
[gaim-migrate @ 15688]
Richard Laager <rlaager@pidgin.im>
parents:
13318
diff
changeset
|
340 | [Define to 1 if you have libgadu.]) |
| 13318 | 341 | ], [ |
| 342 | AC_MSG_RESULT(no) | |
| 343 | echo | |
| 344 | echo | |
| 345 | echo "libgadu is not compatible with the GPL when compiled with OpenSSL support." | |
| 346 | echo "Please recompile libgadu using:" | |
| 347 | echo "./autogen.sh --disable-libgadu-openssl --disable-static --enable-shared" | |
| 348 | echo "Then rerun this ./configure" | |
| 349 | echo | |
| 350 | echo | |
| 351 | GADU_LIBS="" | |
| 352 | GADU_CFLAGS="" | |
| 353 | gadu_libs=no | |
| 354 | ]) | |
| 13466 | 355 | CPPFLAGS="$CPPFLAGS_save" |
| 13318 | 356 | fi |
| 357 | ||
| 358 | AC_SUBST(GADU_LIBS) | |
| 359 | AC_SUBST(GADU_CFLAGS) | |
| 360 | ||
| 361 | ||
| 2129 | 362 | AC_ARG_ENABLE(distrib,,,enable_distrib=no) |
| 363 | AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") | |
| 364 | AC_ARG_ENABLE(prpls, [ --disable-prpls don't build dynamic protocol plugins],,enable_prpls=yes) | |
| 8031 | 365 | DYNAMIC_PRPLS=all |
| 3572 | 366 | AC_ARG_WITH(static-prpls, [ --with-static-prpls link in certain protocols statically],[STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`],STATIC_PRPLS="") |
| 8031 | 367 | if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then |
| 368 | DYNAMIC_PRPLS="" | |
| 369 | fi | |
| 370 | ||
| 2129 | 371 | if test "x$STATIC_PRPLS" = "xall" ; then |
|
11778
515f4be9d2ce
[gaim-migrate @ 14069]
Gary Kramlich <grim@reaperworld.com>
parents:
11720
diff
changeset
|
372 | STATIC_PRPLS="bonjour gg irc jabber msn novell oscar sametime silc simple yahoo zephyr" |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
373 | fi |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
374 | if test "x$have_meanwhile" != "xyes" ; then |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
375 | STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'` |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
376 | fi |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
377 | if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
378 | STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'` |
| 2129 | 379 | fi |
| 8852 | 380 | if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then |
| 8854 | 381 | STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc//'` |
| 8852 | 382 | fi |
| 13318 | 383 | if test "x$gadu_libs" != "xyes"; then |
| 384 | STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/gg//'` | |
| 385 | fi | |
| 2129 | 386 | AC_SUBST(STATIC_PRPLS) |
| 387 | STATIC_LINK_LIBS= | |
| 388 | extern_init= | |
| 389 | load_proto= | |
| 390 | for i in $STATIC_PRPLS ; do | |
|
11945
3013d1f6ca43
[gaim-migrate @ 14236]
Mark Doliner <markdoliner@pidgin.im>
parents:
11903
diff
changeset
|
391 | dnl Ugly special case for "libsilcgaim.a": |
|
3013d1f6ca43
[gaim-migrate @ 14236]
Mark Doliner <markdoliner@pidgin.im>
parents:
11903
diff
changeset
|
392 | if test "x$i" = "xsilc"; then |
|
3013d1f6ca43
[gaim-migrate @ 14236]
Mark Doliner <markdoliner@pidgin.im>
parents:
11903
diff
changeset
|
393 | STATIC_LINK_LIBS="$STATIC_LINK_LIBS protocols/$i/lib${i}gaim.a" |
|
3013d1f6ca43
[gaim-migrate @ 14236]
Mark Doliner <markdoliner@pidgin.im>
parents:
11903
diff
changeset
|
394 | else |
|
3013d1f6ca43
[gaim-migrate @ 14236]
Mark Doliner <markdoliner@pidgin.im>
parents:
11903
diff
changeset
|
395 | STATIC_LINK_LIBS="$STATIC_LINK_LIBS protocols/$i/lib$i.a" |
|
3013d1f6ca43
[gaim-migrate @ 14236]
Mark Doliner <markdoliner@pidgin.im>
parents:
11903
diff
changeset
|
396 | fi |
|
5449
4c350eb7d4a0
[gaim-migrate @ 5836]
Decklin Foster <decklin@red-bean.com>
parents:
5425
diff
changeset
|
397 | extern_init="$extern_init extern gboolean gaim_init_${i}_plugin();" |
|
4c350eb7d4a0
[gaim-migrate @ 5836]
Decklin Foster <decklin@red-bean.com>
parents:
5425
diff
changeset
|
398 | load_proto="$load_proto gaim_init_${i}_plugin();" |
| 2129 | 399 | case $i in |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
400 | bonjour) static_bonjour=yes ;; |
| 13318 | 401 | gg) static_gg=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
402 | irc) static_irc=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
403 | jabber) static_jabber=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
404 | msn) static_msn=yes ;; |
| 8675 | 405 | novell) static_novell=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
406 | oscar) static_oscar=yes ;; |
|
10977
5802457af313
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10975
diff
changeset
|
407 | sametime) static_sametime=yes ;; |
| 8849 | 408 | silc) static_silc=yes ;; |
|
11182
9cb28f52220f
[gaim-migrate @ 13294]
Mark Doliner <markdoliner@pidgin.im>
parents:
11181
diff
changeset
|
409 | simple) static_simple=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
410 | toc) static_toc=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
411 | yahoo) static_yahoo=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
412 | zephyr) static_zephyr=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
413 | *) echo "Invalid static protocol $i!!" ; exit ;; |
| 2129 | 414 | esac |
| 415 | done | |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
416 | AM_CONDITIONAL(STATIC_BONJOUR, test "x$static_bonjour" = "xyes" -a "x$howlincludes" = "xyes" -a "x$howllibs" = "xyes") |
|
2393
cfef0212506b
[gaim-migrate @ 2406]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2330
diff
changeset
|
417 | AM_CONDITIONAL(STATIC_GG, test "x$static_gg" = "xyes") |
|
2244
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
418 | AM_CONDITIONAL(STATIC_IRC, test "x$static_irc" = "xyes") |
|
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
419 | AM_CONDITIONAL(STATIC_JABBER, test "x$static_jabber" = "xyes") |
|
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
420 | AM_CONDITIONAL(STATIC_MSN, test "x$static_msn" = "xyes") |
| 8675 | 421 | AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes") |
|
2244
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
422 | AM_CONDITIONAL(STATIC_OSCAR, test "x$static_oscar" = "xyes") |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
423 | AM_CONDITIONAL(STATIC_SAMETIME, test "x$static_sametime" = "xyes" -a "x$have_meanwhile" = "xyes") |
| 8851 | 424 | AM_CONDITIONAL(STATIC_SILC, test "x$static_silc" = "xyes" -a "x$silcincludes" = "xyes" -a "x$silcclient" = "xyes") |
|
11181
e872a55b9524
[gaim-migrate @ 13292]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11171
diff
changeset
|
425 | AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes") |
|
2244
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
426 | AM_CONDITIONAL(STATIC_TOC, test "x$static_toc" = "xyes") |
|
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
427 | AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes") |
|
7231c3f80615
[gaim-migrate @ 2254]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2238
diff
changeset
|
428 | AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") |
| 2129 | 429 | AC_SUBST(STATIC_LINK_LIBS) |
|
11862
5d4bc6d54688
[gaim-migrate @ 14153]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11857
diff
changeset
|
430 | AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init() { $load_proto }, |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
431 | [Loads static protocol plugin module initialization functions.]) |
| 2129 | 432 | |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
433 | AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`]) |
| 7373 | 434 | if test "x$DYNAMIC_PRPLS" = "xall" ; then |
|
11778
515f4be9d2ce
[gaim-migrate @ 14069]
Gary Kramlich <grim@reaperworld.com>
parents:
11720
diff
changeset
|
435 | DYNAMIC_PRPLS="bonjour gg irc jabber msn novell oscar sametime silc simple yahoo zephyr" |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
436 | fi |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
437 | if test "x$have_meanwhile" != "xyes"; then |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
438 | DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'` |
|
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
439 | fi |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
440 | if test "x$howlincludes" != "xyes" -o "x$howllibs" != "xyes"; then |
|
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
441 | DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'` |
| 7373 | 442 | fi |
| 8852 | 443 | if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then |
| 8854 | 444 | DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc//'` |
| 8852 | 445 | fi |
| 13318 | 446 | if test "x$gadu_libs" != "xyes"; then |
| 447 | DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/gg//'` | |
| 448 | fi | |
| 7373 | 449 | AC_SUBST(DYNAMIC_PRPLS) |
| 450 | for i in $DYNAMIC_PRPLS ; do | |
| 451 | case $i in | |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
452 | bonjour) dynamic_bonjour=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
453 | gg) dynamic_gg=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
454 | irc) dynamic_irc=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
455 | jabber) dynamic_jabber=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
456 | msn) dynamic_msn=yes ;; |
| 8675 | 457 | novell) dynamic_novell=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
458 | oscar) dynamic_oscar=yes ;; |
|
10977
5802457af313
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10975
diff
changeset
|
459 | sametime) dynamic_sametime=yes ;; |
| 8849 | 460 | silc) dynamic_silc=yes ;; |
|
11181
e872a55b9524
[gaim-migrate @ 13292]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11171
diff
changeset
|
461 | simple) dynamic_simple=yes ;; |
|
8637
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
462 | toc) dynamic_toc=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
463 | yahoo) dynamic_yahoo=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
464 | zephyr) dynamic_zephyr=yes ;; |
|
3993f410c17c
[gaim-migrate @ 9389]
Mark Doliner <markdoliner@pidgin.im>
parents:
8626
diff
changeset
|
465 | *) echo "Invalid dynamic protocol $i!!" ; exit ;; |
| 7373 | 466 | esac |
| 467 | done | |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
468 | AM_CONDITIONAL(DYNAMIC_BONJOUR, test "x$dynamic_bonjour" = "xyes" -a "x$bonjourincludes" = "xyes" -a "x$bonjourclient" = "xyes") |
| 7373 | 469 | AM_CONDITIONAL(DYNAMIC_GG, test "x$dynamic_gg" = "xyes") |
| 470 | AM_CONDITIONAL(DYNAMIC_IRC, test "x$dynamic_irc" = "xyes") | |
| 471 | AM_CONDITIONAL(DYNAMIC_JABBER, test "x$dynamic_jabber" = "xyes") | |
| 472 | AM_CONDITIONAL(DYNAMIC_MSN, test "x$dynamic_msn" = "xyes") | |
| 8675 | 473 | AM_CONDITIONAL(DYNAMIC_NOVELL, test "x$dynamic_novell" = "xyes") |
| 7373 | 474 | AM_CONDITIONAL(DYNAMIC_OSCAR, test "x$dynamic_oscar" = "xyes") |
|
12496
788b20ccec91
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12487
diff
changeset
|
475 | AM_CONDITIONAL(DYNAMIC_SAMETIME, test "x$dynamic_sametime" = "xyes" -a "x$have_meanwhile" = "xyes") |
| 8852 | 476 | AM_CONDITIONAL(DYNAMIC_SILC, test "x$dynamic_silc" = "xyes" -a "x$silcincludes" = "xyes" -a "x$silcclient" = "xyes") |
|
11181
e872a55b9524
[gaim-migrate @ 13292]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11171
diff
changeset
|
477 | AM_CONDITIONAL(DYNAMIC_SIMPLE, test "x$dynamic_simple" = "xyes") |
| 7373 | 478 | AM_CONDITIONAL(DYNAMIC_TOC, test "x$dynamic_toc" = "xyes") |
| 479 | AM_CONDITIONAL(DYNAMIC_YAHOO, test "x$dynamic_yahoo" = "xyes") | |
| 480 | AM_CONDITIONAL(DYNAMIC_ZEPHYR, test "x$dynamic_zephyr" = "xyes") | |
| 481 | ||
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
482 | AC_ARG_ENABLE(mono, [ --enable-mono compile with Mono runtime support],,enable_mono=no) |
| 2129 | 483 | AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) |
| 484 | AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) | |
| 12286 | 485 | AC_ARG_ENABLE(tcl, [ --disable-tcl compile without Tcl scripting],,enable_tcl=yes) |
| 6694 | 486 | AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR directory containing tclConfig.sh]) |
| 487 | AC_ARG_ENABLE(tk, [ --disable-tk compile without Tcl support for Tk],,enable_tk=yes) | |
| 488 | AC_ARG_WITH(tkconfig, [ --with-tkconfig=DIR directory containing tkConfig.sh]) | |
| 3802 | 489 | AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes) |
|
2430
c1cb49692a34
[gaim-migrate @ 2443]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2416
diff
changeset
|
490 | AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
491 | AC_ARG_ENABLE(fatal-asserts, [ --enable-fatal-asserts make assertions fatal (useful for debugging)],,enable_fatal_asserts=no) |
|
12384
20a3571a0ad8
[gaim-migrate @ 14690]
Richard Laager <rlaager@pidgin.im>
parents:
12374
diff
changeset
|
492 | dnl We know Gaim won't compile with deprecated APIs disabled. |
|
20a3571a0ad8
[gaim-migrate @ 14690]
Richard Laager <rlaager@pidgin.im>
parents:
12374
diff
changeset
|
493 | dnl We have no desire to support two different versions of the |
|
20a3571a0ad8
[gaim-migrate @ 14690]
Richard Laager <rlaager@pidgin.im>
parents:
12374
diff
changeset
|
494 | dnl same code when it's not necessary, so we're sticking with |
|
20a3571a0ad8
[gaim-migrate @ 14690]
Richard Laager <rlaager@pidgin.im>
parents:
12374
diff
changeset
|
495 | dnl the deprecated APIs in many cases. |
|
20a3571a0ad8
[gaim-migrate @ 14690]
Richard Laager <rlaager@pidgin.im>
parents:
12374
diff
changeset
|
496 | dnl This option is being left in case things change. |
|
20a3571a0ad8
[gaim-migrate @ 14690]
Richard Laager <rlaager@pidgin.im>
parents:
12374
diff
changeset
|
497 | dnl AC_ARG_ENABLE(deprecated, [ --disable-deprecated compile without deprecated API usage],,enable_deprecated=yes) |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
498 | AC_ARG_ENABLE(fortify, [ --disable-fortify compile without FORTIFY_SOURCE support],,enable_fortify=yes) |
| 2129 | 499 | AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) |
|
4157
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
500 | AC_ARG_ENABLE(sm, [ --disable-sm compile without X session management support],,enable_sm=yes) |
|
12034
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
501 | AC_ARG_WITH(krb4, [ --with-krb4=PREFIX compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") |
|
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
502 | AC_ARG_WITH(zephyr, [ --with-zephyr=PREFIX compile Zephyr plugin against external libzephyr],zephyr="$withval",zephyr="no") |
| 8849 | 503 | AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") |
| 2129 | 504 | |
| 8849 | 505 | AC_CHECK_HEADER(sys/utsname.h) |
| 506 | AC_CHECK_FUNC(uname) | |
| 8378 | 507 | |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
508 | if test "x$enable_debug" = "xyes" ; then |
|
8525
9e4e0635fd3c
[gaim-migrate @ 9264]
Christian Hammond <chipx86@chipx86.com>
parents:
8485
diff
changeset
|
509 | AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
510 | fi |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
511 | |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
512 | if test "x$enable_fatal_asserts" = "xyes" ; then |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
513 | AC_DEFINE(GAIM_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).]) |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
514 | fi |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
515 | |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
516 | if test "x$enable_deprecated" = "xno"; then |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
517 | DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
518 | fi |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
519 | |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
520 | if test "x$GCC" = "xyes"; then |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
521 | dnl We enable -Wall later. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
522 | 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
|
523 | dnl This leads to warnings we don't want. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
524 | CFLAGS=`echo $CFLAGS |$sedpath 's/-Wall//'` |
|
12438
b993017e8f68
[gaim-migrate @ 14745]
Richard Laager <rlaager@pidgin.im>
parents:
12435
diff
changeset
|
525 | |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
526 | dnl ENABLE WARNINGS SUPPORTED BY THE VERSION OF GCC IN USE |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
527 | dnl |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
528 | dnl Future Possibilities |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
529 | dnl |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
530 | dnl Consider adding -Wbad-function-cast. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
531 | 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
|
532 | dnl We'd need an intermediate variable. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
533 | dnl |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
534 | dnl Consider adding -Wfloat-equal. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
535 | dnl This leads to warnings with Perl. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
536 | dnl Perhaps we could write ugly configure magic and pass -Wno-float-equal down to that subdirectory. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
537 | dnl On the other hand, it's probably actually broken, so maybe the Perl folks should fix that? |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
538 | dnl |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
539 | dnl Consider removing -Wno-sign-compare (from the -Wextra set) and fixing all those cases. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
540 | dnl This is likely non-trivial. |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
541 | dnl |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
542 | for newflag in \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
543 | "-Waggregate-return" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
544 | "-Wcast-align" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
545 | "-Wdeclaration-after-statement" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
546 | "-Werror-implicit-function-declaration" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
547 | "-Wextra -Wno-sign-compare -Wno-unused-parameter" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
548 | "-Winit-self" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
549 | "-Wmissing-declarations" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
550 | "-Wmissing-prototypes" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
551 | "-Wnested-externs" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
552 | "-Wpointer-arith" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
553 | "-Wundef" \ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
554 | ; do |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
555 | orig_CFLAGS="$CFLAGS" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
556 | CFLAGS="$CFLAGS $newflag" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
557 | AC_MSG_CHECKING(for $newflag option to gcc) |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
558 | AC_TRY_COMPILE([], [ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
559 | int main() {return 0;} |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
560 | ], [ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
561 | AC_MSG_RESULT(yes) |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
562 | CFLAGS="$orig_CFLAGS" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
563 | DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
564 | ], [ |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
565 | AC_MSG_RESULT(no) |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
566 | CFLAGS="$orig_CFLAGS" |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
567 | ]) |
|
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
568 | done |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
569 | |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
570 | if test "x$enable_fortify" = "xyes"; then |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
571 | AC_MSG_CHECKING(for FORTIFY_SOURCE support) |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
572 | AC_TRY_COMPILE([#include <features.h>], [ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
573 | int main() { |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
574 | #if !(__GNUC_PREREQ (4, 1) \ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
575 | || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
576 | || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
577 | && __GNUC_MINOR__ == 4 \ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
578 | && (__GNUC_PATCHLEVEL__ > 2 \ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
579 | || (__GNUC_PATCHLEVEL__ == 2 && __GNUC_RH_RELEASE__ >= 8)))) |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
580 | #error No FORTIFY_SOURCE support |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
581 | #endif |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
582 | return 0; |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
583 | } |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
584 | ], [ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
585 | AC_MSG_RESULT(yes) |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
586 | DEBUG_CFLAGS="$DEBUG_CFLAGS -D_FORTIFY_SOURCE=2" |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
587 | ], [ |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
588 | AC_MSG_RESULT(no) |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
589 | ]) |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
590 | fi |
|
8525
9e4e0635fd3c
[gaim-migrate @ 9264]
Christian Hammond <chipx86@chipx86.com>
parents:
8485
diff
changeset
|
591 | |
|
12435
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
592 | DEBUG_CFLAGS="-Wall $DEBUG_CFLAGS" |
|
98e36746b52b
[gaim-migrate @ 14742]
Richard Laager <rlaager@pidgin.im>
parents:
12423
diff
changeset
|
593 | CFLAGS="-g $CFLAGS" |
| 7021 | 594 | fi |
|
6723
f62d96da133a
[gaim-migrate @ 7250]
Christian Hammond <chipx86@chipx86.com>
parents:
6722
diff
changeset
|
595 | AC_SUBST(CFLAGS) |
|
f62d96da133a
[gaim-migrate @ 7250]
Christian Hammond <chipx86@chipx86.com>
parents:
6722
diff
changeset
|
596 | |
| 3551 | 597 | AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([ |
| 3425 | 598 | *** GLib 2.0 is required to build Gaim; please make sure you have the GLib |
| 2129 | 599 | *** development headers installed. The latest version of GLib is |
| 600 | *** always available at http://www.gtk.org/.])) | |
| 3551 | 601 | AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([ |
| 3425 | 602 | *** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+ |
| 2129 | 603 | *** development headers installed. The latest version of GTK+ is |
|
10626
659572951067
[gaim-migrate @ 12101]
Daniel Atallah <datallah@pidgin.im>
parents:
10622
diff
changeset
|
604 | *** always available at http://www.gtk.org/.])) |
| 2129 | 605 | |
| 3425 | 606 | AC_PATH_PROG(gaimpath, gaim) |
|
6360
c2bfe65b200c
[gaim-migrate @ 6864]
Robert McQueen <robot101@debian.org>
parents:
6321
diff
changeset
|
607 | AC_SUBST(GTK_CFLAGS) |
|
6371
e92b66ee5518
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6360
diff
changeset
|
608 | AC_SUBST(GLIB_CFLAGS) |
| 2129 | 609 | |
| 4884 | 610 | AC_PATH_XTRA |
| 5344 | 611 | # We can't assume that $x_libraries will be set, because autoconf does not |
| 612 | # set it in the case when the X libraries are in a standard place. | |
| 613 | # Ditto for $x_includes | |
|
12502
ea0979b59bd2
[gaim-migrate @ 14814]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12499
diff
changeset
|
614 | if test X"$x_libraries" = X"" || test X"$x_libraries" = XNONE; then |
| 5344 | 615 | x_libpath_add= |
| 616 | else | |
| 617 | x_libpath_add="-L$x_libraries" | |
| 618 | fi | |
|
12502
ea0979b59bd2
[gaim-migrate @ 14814]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12499
diff
changeset
|
619 | if test X"$x_includes" = X"" || test X"$x_includes" = XNONE; then |
| 5344 | 620 | x_incpath_add= |
| 621 | else | |
| 622 | x_incpath_add="-I$x_includes" | |
| 623 | fi | |
|
4157
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
624 | |
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
625 | dnl ####################################################################### |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
626 | dnl # Check for DBUS libraries |
|
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
627 | dnl ####################################################################### |
|
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
628 | |
|
12499
0238494de18c
[gaim-migrate @ 14811]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12496
diff
changeset
|
629 | AC_ARG_ENABLE(dbus, [ --enable-dbus enable DBUS support],,enable_dbus=yes) |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
630 | |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
631 | if test "x$enable_dbus" = "xyes" ; then |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
632 | AC_CHECK_PROG(enable_dbus, dbus-binding-tool, yes, no) |
|
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
633 | fi |
|
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
634 | |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
635 | if test "x$enable_dbus" = "xyes" ; then |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
636 | PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.35 dbus-glib-1 >= 0.35], |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
637 | [ |
|
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
638 | AC_SUBST(DBUS_CFLAGS) |
|
11070
133af4fe08f9
[gaim-migrate @ 13069]
Richard Laager <rlaager@pidgin.im>
parents:
11067
diff
changeset
|
639 | AC_SUBST(DBUS_LIBS) |
|
133af4fe08f9
[gaim-migrate @ 13069]
Richard Laager <rlaager@pidgin.im>
parents:
11067
diff
changeset
|
640 | enable_dbus=yes |
|
11067
b6353889a9ba
[gaim-migrate @ 13048]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11055
diff
changeset
|
641 | ], |
|
b6353889a9ba
[gaim-migrate @ 13048]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11055
diff
changeset
|
642 | [ |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
643 | AC_MSG_RESULT(no) |
|
11067
b6353889a9ba
[gaim-migrate @ 13048]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11055
diff
changeset
|
644 | enable_dbus=no |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
645 | ]) |
|
11067
b6353889a9ba
[gaim-migrate @ 13048]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11055
diff
changeset
|
646 | fi |
|
b6353889a9ba
[gaim-migrate @ 13048]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11055
diff
changeset
|
647 | |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
648 | dnl Why do we need python? |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
649 | |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
650 | dnl Python scripts are used to auto-generate about 3000 lines of C |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
651 | dnl and XML code that wraps (part of) the existing Gaim API so that |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
652 | dnl it is now accessible through DBUS. |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
653 | |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
654 | dnl Python is only required if --enable-dbus is used, and only for |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
655 | dnl the build process to generate the code, not for running gaim. |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
656 | dnl This autogenerated code is system-independent, so in principle we |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
657 | dnl can generate all of it before shipping. But I thought adding |
|
13633
d854f04a3564
[gaim-migrate @ 16030]
Mark Doliner <markdoliner@pidgin.im>
parents:
13589
diff
changeset
|
658 | dnl auto-generated stuff to the repository is inelegant. |
|
d854f04a3564
[gaim-migrate @ 16030]
Mark Doliner <markdoliner@pidgin.im>
parents:
13589
diff
changeset
|
659 | dnl Alternatively, these python scripts could be rewritten |
|
d854f04a3564
[gaim-migrate @ 16030]
Mark Doliner <markdoliner@pidgin.im>
parents:
13589
diff
changeset
|
660 | dnl in C (brrrr ...). |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
661 | |
|
12584
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
662 | AC_ARG_WITH([python], |
|
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
663 | AC_HELP_STRING([--with-python], |
|
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
664 | [Which python interpreter to use for dbus code generation]), |
|
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
665 | PYTHON=$withval) |
|
11356
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
666 | |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
667 | if test "x$enable_dbus" = "xyes" ; then |
|
12584
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
668 | if test -z "$PYTHON" ; then |
|
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
669 | AC_PATH_PROG([PYTHON], [python], [no]) |
|
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
670 | fi |
|
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
671 | |
|
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
672 | if test x"$python" = x"no" ; then |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
673 | AC_MSG_WARN([python interpreter not found in your path]) |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
674 | enable_dbus=no |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
675 | fi |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
676 | fi |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
677 | |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
678 | if test "x$enable_dbus" = "xyes" ; then |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
679 | 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
|
680 | AC_MSG_WARN([python version >= 2.4 required]) |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
681 | enable_dbus=no |
|
12584
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
682 | fi |
|
11146
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
683 | fi |
|
c56333373e3c
[gaim-migrate @ 13217]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11098
diff
changeset
|
684 | |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
685 | dnl ########################################################################### |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
686 | dnl # Find the D-Bus services dir. |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
687 | dnl # |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
688 | dnl # This is a 3 step process that |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
689 | dnl # |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
690 | 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
|
691 | dnl # 2. checks if --prefix was given, if so use that. |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
692 | 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
|
693 | dnl # directories. |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
694 | dnl # |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
695 | 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
|
696 | 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
|
697 | dnl # directory searching to keep this situation at a minimum. |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
698 | dnl ########################################################################### |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
699 | AC_ARG_WITH(dbus-services, [ --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
|
700 | |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
701 | DBUS_SERVICES_DIR="" |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
702 | |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
703 | if test x"$enable_dbus" = "xyes" ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
704 | AC_MSG_CHECKING([location of the D-Bus services directory]) |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
705 | if ! test -z "$with_dbus_services" ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
706 | if ! test -d "$with_dbus_services" ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
707 | 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
|
708 | fi |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
709 | |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
710 | DBUS_SERVICES_DIR="$with_dbus_services" |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
711 | else |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
712 | if test x"$prefix" = x"NONE" ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
713 | 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
|
714 | dnl # if a prefix is given, we use it. |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
715 | |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
716 | serviceprefixes="$datadir $libdir /usr/share /usr/local/share" |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
717 | DBUS_SERVICES_DIR="" |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
718 | |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
719 | for d in $serviceprefixes ; do |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
720 | dir="$d/dbus-1/services" |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
721 | if test -d $dir ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
722 | DBUS_SERVICES_DIR="$dir" |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
723 | break |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
724 | fi |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
725 | done |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
726 | |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
727 | if test -z $DBUS_SERVICES_DIR ; then |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
728 | AC_MSG_ERROR([D-Bus services directory was not found! Please use --with-dbus-services and specify it's location.]) |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
729 | fi |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
730 | else |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
731 | DBUS_SERVICES_DIR="$datadir/dbus-1/services" |
|
11903
56ae8af14a0d
[gaim-migrate @ 14194]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11874
diff
changeset
|
732 | fi |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
733 | fi |
|
13589
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
734 | AC_MSG_RESULT([$DBUS_SERVICES_DIR]) |
|
2c48c168ba30
[gaim-migrate @ 15973]
Gary Kramlich <grim@reaperworld.com>
parents:
13575
diff
changeset
|
735 | AC_DEFINE(HAVE_DBUS, 1, [Define if we are re using DBUS.]) |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
736 | fi |
|
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
737 | AC_SUBST(DBUS_SERVICES_DIR) |
|
11351
c29898b1b746
[gaim-migrate @ 13570]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11318
diff
changeset
|
738 | |
|
11356
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
739 | if test "x$enable_dbus" = "xyes" ; then |
|
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
740 | echo "Building with DBUS support" |
|
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
741 | else |
|
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
742 | echo "Building without DBUS support" |
|
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
743 | fi |
|
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
744 | |
|
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
745 | AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes") |
|
77be80ff8961
[gaim-migrate @ 13578]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11351
diff
changeset
|
746 | |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
747 | dnl ####################################################################### |
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
748 | dnl # Check for startup notification |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
749 | dnl ####################################################################### |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
750 | AC_ARG_ENABLE(startup-notification, [ --disable-startup-notification compile without startup notification support],,enable_startup_notification=yes) |
|
7168
be126508bdb8
[gaim-migrate @ 7735]
Christian Hammond <chipx86@chipx86.com>
parents:
7155
diff
changeset
|
751 | |
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
752 | if test "x$enable_startup_notification" = "xyes"; then |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
753 | PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5, |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
754 | [ |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
755 | AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
756 | enable_startup_notification=yes |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
757 | ], |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
758 | [ |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
759 | AC_MSG_RESULT(no) |
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
760 | enable_startup_notification=no |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
761 | ]) |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
762 | |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
763 | AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
764 | AC_SUBST(STARTUP_NOTIFICATION_LIBS) |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
765 | fi |
|
7168
be126508bdb8
[gaim-migrate @ 7735]
Christian Hammond <chipx86@chipx86.com>
parents:
7155
diff
changeset
|
766 | |
| 8089 | 767 | |
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
768 | dnl ####################################################################### |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
769 | dnl # Check for stuff needed by the evolution integration plugin. |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
770 | dnl ####################################################################### |
| 8089 | 771 | build_gevo=no |
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
772 | AC_ARG_ENABLE(gevolution, [ --disable-gevolution compile without the Gaim-Evolution plugin],,enable_gevolution=yes) |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
773 | |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
774 | if test "x$enable_gevolution" = "xyes"; then |
|
11694
3c37839a4521
[gaim-migrate @ 13980]
Mark Doliner <markdoliner@pidgin.im>
parents:
11662
diff
changeset
|
775 | evo_deps="libebook-1.2 libedata-book-1.2" |
|
10835
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10817
diff
changeset
|
776 | PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [ |
|
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10817
diff
changeset
|
777 | AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) |
|
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10817
diff
changeset
|
778 | build_gevo=yes |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
779 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
780 | AC_MSG_RESULT(yes) |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
781 | build_gevo=no |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
782 | ]) |
|
10835
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10817
diff
changeset
|
783 | if test "x$build_gevo" = "xno"; then |
|
11694
3c37839a4521
[gaim-migrate @ 13980]
Mark Doliner <markdoliner@pidgin.im>
parents:
11662
diff
changeset
|
784 | evo_deps="libebook-1.0 libedata-book-1.0" |
|
10835
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10817
diff
changeset
|
785 | PKG_CHECK_MODULES(EVOLUTION_ADDRESSBOOK, $evo_deps, [ |
|
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10817
diff
changeset
|
786 | AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) |
|
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10817
diff
changeset
|
787 | build_gevo=yes |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
788 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
789 | AC_MSG_RESULT(yes) |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
790 | build_gevo=no |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
791 | ]) |
|
10835
9bd71d67d4a6
[gaim-migrate @ 12507]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10817
diff
changeset
|
792 | fi |
| 8089 | 793 | |
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
794 | AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
795 | AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS) |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
796 | fi |
| 8089 | 797 | |
| 798 | AM_CONDITIONAL(BUILD_GEVOLUTION, test "x$build_gevo" = "xyes") | |
| 799 | ||
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
800 | dnl ####################################################################### |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
801 | dnl # Check for XScreenSaver |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
802 | dnl ####################################################################### |
| 2129 | 803 | if test "x$enable_xss" = "xyes" ; then |
|
2182
c33eb7c19074
[gaim-migrate @ 2192]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2181
diff
changeset
|
804 | old_LIBS="$LIBS" |
| 5344 | 805 | LIBS="$LIBS $GTK_LIBS $x_libpath_add" |
| 2129 | 806 | XSS_LIBS="no" |
| 807 | XSS_HEADERS="no" | |
| 4884 | 808 | AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"],[],[-lX11 -lXext -lm]) |
| 809 | AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss"],[],[-lX11 -lXext -lm]) | |
| 2129 | 810 | if test \! "$XSS_LIBS" = "no"; then |
|
6844
c378819cdda4
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
811 | oldCPPFLAGS="$CPPFLAGS" |
|
10608
3d2890c38b0b
[gaim-migrate @ 12045]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10599
diff
changeset
|
812 | CPPFLAGS="$CPPFLAGS $x_incpath_add" |
| 2129 | 813 | AC_TRY_COMPILE([ |
| 4884 | 814 | #include <X11/Xlib.h> |
| 2129 | 815 | #include <X11/extensions/scrnsaver.h> |
| 4884 | 816 | ],[],[ |
| 817 | AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.])],[enable_xss=no] | |
| 818 | ) | |
|
6844
c378819cdda4
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
819 | CPPFLAGS="$oldCPPFLAGS" |
| 2129 | 820 | else |
| 821 | XSS_LIBS="" | |
| 822 | enable_xss=no | |
| 823 | fi | |
|
2182
c33eb7c19074
[gaim-migrate @ 2192]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2181
diff
changeset
|
824 | LIBS="$old_LIBS" |
| 2129 | 825 | else |
| 826 | XSS_LIBS="" | |
| 827 | enable_xss=no | |
| 828 | fi | |
| 829 | AC_SUBST(XSS_LIBS) | |
| 830 | ||
| 831 | ||
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
832 | dnl ####################################################################### |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
833 | dnl # Check for X session management libs |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
834 | dnl ####################################################################### |
|
4157
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
835 | if test "x$enable_sm" = "xyes"; then |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
836 | enable_sm=no |
| 5344 | 837 | AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [$x_libpath_add -lICE]) |
|
4157
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
838 | if test "$found_sm_lib" = "true"; then |
|
6844
c378819cdda4
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
839 | oldCPPFLAGS="$CPPFLAGS" |
|
10608
3d2890c38b0b
[gaim-migrate @ 12045]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10599
diff
changeset
|
840 | CPPFLAGS="$CPPFLAGS $x_incpath_add" |
| 5344 | 841 | AC_CHECK_HEADERS(X11/SM/SMlib.h, SM_LIBS="$x_libpath_add -lSM -lICE" enable_sm=yes) |
|
6844
c378819cdda4
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
842 | CPPFLAGS="$oldCPPFLAGS" |
|
4157
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
843 | fi |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
844 | else |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
845 | SM_LIBS="" |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
846 | enable_sm=no |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
847 | fi |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
848 | AC_SUBST(SM_LIBS) |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
849 | if test "$enable_sm" = "yes"; then |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
850 | AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.]) |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
851 | fi |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
852 | |
|
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
853 | |
| 8992 | 854 | AC_DEFUN([GC_TM_GMTOFF], |
|
3203
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
855 | [AC_REQUIRE([AC_STRUCT_TM])dnl |
|
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
856 | AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff, |
|
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
857 | [AC_TRY_COMPILE([#include <sys/types.h> |
|
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
858 | #include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;], |
|
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
859 | ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)]) |
|
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
860 | if test "$ac_cv_struct_tm_gmtoff" = yes; then |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
861 | AC_DEFINE(HAVE_TM_GMTOFF, 1, [tm_gmtoff is available.]) |
|
3203
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
862 | fi |
|
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
863 | ]) |
|
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
864 | |
|
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
865 | GC_TM_GMTOFF |
|
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
866 | |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
867 | dnl ####################################################################### |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
868 | dnl # Check for Mono support |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
869 | dnl ####################################################################### |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
870 | |
|
11662
589d19fbb36f
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
871 | if test x"$enable_mono" = x"yes" ; then |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
872 | AC_MSG_CHECKING(for Mono compile flags) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
873 | MONO_CFLAGS=`pkg-config --cflags mono 2> /dev/null` |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
874 | if test $? != 0 ; then |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
875 | AC_MSG_RESULT([not found, building without mono.]) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
876 | MONO_CFLAGS= |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
877 | MONO_LIBS= |
|
11662
589d19fbb36f
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
878 | enable_mono=no |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
879 | else |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
880 | MONO_LIBS=`pkg-config --libs mono 2> /dev/null` |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
881 | AC_MSG_RESULT(ok) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
882 | |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
883 | oldLIBS="$LIBS" |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
884 | LIBS="$LIBS $MONO_LIBS" |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
885 | AC_MSG_CHECKING(for libmono) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
886 | AC_CHECK_FUNCS(mono_jit_init, [], enable_mono=no) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
887 | LIBS="$oldLIBS" |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
888 | |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
889 | oldCPPFLAGS="$CPPFLAGS" |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
890 | CPPFLAGS="$CPPFLAGS $MONO_CFLAGS" |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
891 | AC_CHECK_HEADERS(mono/jit/jit.h, [], enable_mono=no) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
892 | AC_CHECK_HEADERS(mono/metadata/object.h, [], enable_mono=no) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
893 | CPPFLAGS="$oldCPPFLAGS" |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
894 | |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
895 | AC_DEFINE(ENABLE_MONO, 1, [Define if mono enabled.]) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
896 | fi |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
897 | else |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
898 | MONO_CFLAGS= |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
899 | MONO_LIBS= |
|
11662
589d19fbb36f
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
900 | enable_mono=no |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
901 | fi |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
902 | |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
903 | AC_SUBST(MONO_CFLAGS) |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
904 | AC_SUBST(MONO_LIBS) |
|
11662
589d19fbb36f
[gaim-migrate @ 13947]
Gary Kramlich <grim@reaperworld.com>
parents:
11660
diff
changeset
|
905 | AM_CONDITIONAL(USE_MONO, test x"$enable_mono" = x"yes") |
|
3203
893dc8ee2385
[gaim-migrate @ 3220]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3194
diff
changeset
|
906 | |
|
8665
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
907 | dnl ####################################################################### |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
908 | dnl # Check for Perl support |
|
03013bac18b9
[gaim-migrate @ 9417]
Christian Hammond <chipx86@chipx86.com>
parents:
8637
diff
changeset
|
909 | dnl ####################################################################### |
|
10975
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
910 | if test "$enable_plugins" = no ; then |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
911 | enable_perl=no |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
912 | fi |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
913 | |
| 2129 | 914 | if test "$enable_perl" = yes ; then |
| 915 | AC_PATH_PROG(perlpath, perl) | |
| 916 | AC_MSG_CHECKING(for Perl compile flags) | |
| 917 | PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` | |
| 918 | if test "_$PERL_CFLAGS" = _ ; then | |
| 919 | AC_MSG_RESULT([not found, building without perl.]) | |
| 920 | enable_perl = no | |
| 921 | else | |
| 922 | PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'` | |
| 923 | PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'` | |
| 924 | PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'` | |
| 925 | if test "$system" = "Linux"; then | |
| 926 | PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lnsl //'` | |
| 927 | PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lposix //'` | |
| 928 | fi | |
| 929 | PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'` | |
| 930 | AC_MSG_RESULT(ok) | |
| 3931 | 931 | |
|
6844
c378819cdda4
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
932 | oldLIBS="$LIBS" |
| 3931 | 933 | LIBS="$LIBS $PERL_LIBS" |
| 934 | AC_MSG_CHECKING(for libperl) | |
| 935 | AC_CHECK_FUNCS(perl_run, [], enable_perl=no) | |
|
6844
c378819cdda4
[gaim-migrate @ 7389]
Christian Hammond <chipx86@chipx86.com>
parents:
6836
diff
changeset
|
936 | LIBS="$oldLIBS" |
|
10460
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
937 | |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
938 | oldCPPFLAGS="$CPPFLAGS" |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
939 | CPPFLAGS="$CPPFLAGS $PERL_CFLAGS" |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
940 | AC_CHECK_HEADERS(EXTERN.h) |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
941 | AC_CHECK_HEADERS(perl.h, [], enable_perl=no, |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
942 | [#if HAVE_EXTERN_H |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
943 | # include <EXTERN.h> |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
944 | #endif]) |
|
3233258c3918
[gaim-migrate @ 11730]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10374
diff
changeset
|
945 | CPPFLAGS="$oldCPPFLAGS" |
| 2129 | 946 | fi |
| 947 | fi | |
| 948 | ||
| 3931 | 949 | if test "$enable_perl" = yes ; then |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
950 | AC_PROG_PERL_MODULES(ExtUtils::MakeMaker, , have_makemaker=no) |
| 3931 | 951 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
952 | if test "x$have_makemaker" = "xno"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
953 | enable_perl=no |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
954 | PERL_CFLAGS= |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
955 | PERL_LIBS= |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
956 | AM_CONDITIONAL(USE_PERL, false) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
957 | AC_MSG_WARN(Compiling perl requires ExtUtils::MakeMaker) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
958 | else |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
959 | AC_SUBST(PERL_CFLAGS) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
960 | AC_SUBST(PERL_LIBS) |
| 12120 | 961 | AM_CONDITIONAL(USE_PERL, true) |
| 962 | AC_DEFINE(HAVE_PERL, [1], [Compile with support for perl]) | |
| 4298 | 963 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
964 | dnl This is almost definitely wrong, but in case there's |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
965 | dnl something I'm missing, I'll leave it in. |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
966 | AC_CHECK_FUNCS(Perl_eval_pv) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
967 | |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
968 | AC_MSG_CHECKING(for old perl) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
969 | PERL_OLD=`$perlpath -e 'if($]<5.006){printf"yes\n";}else{printf"no\n";}'` |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
970 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
971 | if test "x$PERL_OLD" = "xyes"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
972 | AC_DEFINE(OLD_PERL, 1, [Define if old perl is installed.]) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
973 | AC_MSG_RESULT(yes) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
974 | else |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
975 | AC_MSG_RESULT(no) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
976 | fi |
|
6586
de66e971fa46
[gaim-migrate @ 7108]
Christian Hammond <chipx86@chipx86.com>
parents:
6535
diff
changeset
|
977 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
978 | if test "x$prefix" != "xNONE"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
979 | prefix=`eval echo $prefix` |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
980 | PERL_MM_PARAMS="INSTALLDIRS=vendor PREFIX=$prefix" |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
981 | fi |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
982 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
983 | AC_ARG_WITH(perl-lib, |
|
12034
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
984 | [ --with-perl-lib=[site|vendor|DIR] Specify where to install the |
|
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
985 | Perl libraries for gaim. Default is site.], |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
986 | [ |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
987 | if test "x$withval" = xsite; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
988 | PERL_MM_PARAMS="" |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
989 | elif test "x$withval" = xvendor; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
990 | if test -z "`$perlpath -v | grep '5\.0'`"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
991 | PERL_MM_PARAMS="INSTALLDIRS=vendor" |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
992 | else |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
993 | PERL_MM_PARAMS="INSTALLDIRS=vendor PREFIX=`perl -e 'use Config; print $Config{prefix}'`" |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
994 | fi |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
995 | else |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
996 | PERL_MM_PARAMS="INSTALLDIRS=vendor PREFIX=$withval" |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
997 | fi |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
998 | ]) |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
999 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1000 | AC_SUBST(PERL_MM_PARAMS) |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1001 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1002 | AC_MSG_CHECKING(for DynaLoader.a) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1003 | DYNALOADER_A=`echo $PERL_LDFLAGS | $perlpath -pe 's/^(.* )*([[^ ]]*DynaLoader\.a).*/\2/'` |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1004 | |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1005 | dnl Don't check libperl.a if dynaloader.a wasn't found. |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1006 | if test -n "$DYNALOADER_A"; then |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1007 | AC_MSG_RESULT(yes) |
|
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1008 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1009 | dnl Find either libperl.a or libperl.so |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1010 | AC_MSG_CHECKING(for libperl.a or libperl.so) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1011 | LIBPERL_A=`echo "$PERL_LDFLAGS -L/usr/lib"|$perlpath -e 'foreach (split(/ /, <STDIN>)) { if (/^-L(.*)/) { my $dir=$1; if (\`ls $dir/libperl.so* 2>/dev/null\`) { print "-lperl"; last; }; if (-e "$dir/libperl.a") { print "$dir/libperl.a"; last } } };'` |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1012 | if test -z "$LIBPERL_A"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1013 | AC_MSG_RESULT(no) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1014 | DYNALOADER_A= |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1015 | else |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1016 | AC_MSG_RESULT(yes) |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1017 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1018 | if test "$LIBPERL_A" = "-lperl"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1019 | LIBPERL_A= |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1020 | fi |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1021 | fi |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1022 | |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1023 | PERL_LIBS=`echo $PERL_LIBS | $perlpath -pe 's/^(.* )*[[^ ]]*DynaLoader\.a/\1libperl_dynaloader.la/'` |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1024 | |
|
7200
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1025 | if test -n "$LIBPERL_A"; then |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1026 | PERL_LIBS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lperl /libperl_orig.la /' -e 's/-lperl$/libperl_orig.la$/'` |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1027 | fi |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1028 | |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1029 | AC_SUBST(DYNALOADER_A) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1030 | AC_SUBST(LIBPERL_A) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1031 | else |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1032 | AC_MSG_RESULT(no) |
|
5f026de48d93
[gaim-migrate @ 7769]
Christian Hammond <chipx86@chipx86.com>
parents:
7168
diff
changeset
|
1033 | fi |
|
6508
57d1df1ca3a0
[gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
6475
diff
changeset
|
1034 | fi |
| 3931 | 1035 | else |
| 1036 | PERL_CFLAGS= | |
| 1037 | PERL_LIBS= | |
|
5232
626c3db309ed
[gaim-migrate @ 5602]
Christian Hammond <chipx86@chipx86.com>
parents:
5229
diff
changeset
|
1038 | AM_CONDITIONAL(USE_PERL, false) |
| 3931 | 1039 | fi |
| 1040 | ||
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1041 | dnl ####################################################################### |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1042 | dnl # SSL support |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1043 | dnl # |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1044 | dnl # Thanks go to Evolution for the checks. |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1045 | dnl ####################################################################### |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1046 | |
|
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1047 | dnl These two are inverses of each other <-- stolen from evolution! |
|
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1048 | |
|
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1049 | AC_ARG_ENABLE(gnutls, |
|
12034
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
1050 | [ --enable-gnutls=[yes,no] Attempt to use GNUTLS for SSL support (preferred) [default=yes]], |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1051 | [enable_gnutls="$enableval"], |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1052 | [enable_gnutls="yes"]) |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1053 | |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1054 | AC_ARG_ENABLE(nss, |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1055 | [ --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
|
1056 | [enable_nss="$enableval"], |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1057 | [enable_nss="yes"]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1058 | |
|
12678
2dfadf977def
[gaim-migrate @ 15021]
Mark Doliner <markdoliner@pidgin.im>
parents:
12609
diff
changeset
|
1059 | msg_ssl="None (MSN will not work without SSL!)" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1060 | |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1061 | dnl # |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1062 | dnl # Check for GNUTLS if it's specified. |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1063 | dnl # |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1064 | if test "x$enable_gnutls" != "xno"; then |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1065 | enable_gnutls="no" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1066 | prefix=`eval echo $prefix` |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1067 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1068 | AC_ARG_WITH(gnutls-includes, |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1069 | [ --with-gnutls-includes=PREFIX Location of GNUTLS includes.], |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1070 | [ with_gnutls_includes="$withval" ], |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1071 | [ with_gnutls_includes="$prefix/include" ]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1072 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1073 | have_gnutls_includes="no" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1074 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1075 | if test "x$with_gnutls_includes" != "xno"; then |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1076 | CPPFLAGS_save="$CPPFLAGS" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1077 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1078 | AC_MSG_CHECKING(for GNUTLS includes) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1079 | AC_MSG_RESULT("") |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1080 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1081 | CPPFLAGS="$CPPFLAGS -I$with_gnutls_includes" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1082 | AC_CHECK_HEADERS(gnutls/gnutls.h, [ gnutls_includes="yes" ]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1083 | CPPFLAGS="$CPPFLAGS_save" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1084 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1085 | if test "x$gnutls_includes" != "xno" -a \ |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1086 | "x$gnutls_includes" != "x"; then |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1087 | have_gnutls_includes="yes" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1088 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1089 | GNUTLS_CFLAGS="-I$with_gnutls_includes" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1090 | else |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1091 | GNUTLS_CFLAGS="" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1092 | fi |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1093 | else |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1094 | AC_MSG_CHECKING(for GNUTLS includes) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1095 | AC_MSG_RESULT(no) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1096 | fi |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1097 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1098 | AC_ARG_WITH(gnutls-libs, |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1099 | [ --with-gnutls-libs=PREFIX Location of GNUTLS libraries.], |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1100 | [ with_gnutls_libs="$withval" ]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1101 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1102 | if test "x$with_gnutls_libs" != "xno" -a \ |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1103 | "x$have_gnutls_includes" != "xno"; then |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1104 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1105 | LDFLAGS_save="$LDFLAGS" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1106 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1107 | case $with_gnutls_libs in |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1108 | ""|-L*) ;; |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1109 | *) with_gnutls_libs="-L$with_gnutls_libs" ;; |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1110 | esac |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1111 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1112 | AC_CACHE_CHECK([for GNUTLS libraries], gnutls_libs, |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1113 | [ |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1114 | LDFLAGS="$LDFLAGS $with_gnutls_libs -lgnutls -lgcrypt" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1115 | AC_TRY_LINK_FUNC(gnutls_init, gnutls_libs="yes", gnutls_libs="no") |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1116 | LDFLAGS="$LDFLAGS_save" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1117 | ]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1118 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1119 | if test "x$gnutls_libs" != "xno"; then |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1120 | AC_DEFINE(HAVE_GNUTLS, 1, [Define if you have GNUTLS]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1121 | AC_DEFINE(HAVE_SSL) |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1122 | msg_gnutls="GNUTLS" |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1123 | GNUTLS_LIBS="$with_gnutls_libs -lgnutls -lgcrypt" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1124 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1125 | enable_gnutls="yes" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1126 | else |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1127 | GNUTLS_CFLAGS="" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1128 | GNUTLS_LIBS="" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1129 | fi |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1130 | else |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1131 | AC_MSG_CHECKING(for GNUTLS libraries) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1132 | AC_MSG_RESULT(no) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1133 | fi |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1134 | else |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1135 | GNUTLS_CFLAGS="" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1136 | GNUTLS_LIBS="" |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1137 | fi |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1138 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1139 | AC_SUBST(GNUTLS_CFLAGS) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1140 | AC_SUBST(GNUTLS_LIBS) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1141 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1142 | AM_CONDITIONAL(USE_GNUTLS, test "x$enable_gnutls" = "xyes") |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1143 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1144 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1145 | dnl # |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1146 | dnl # Check for NSS if it's specified, or if GNUTLS checks failed. |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1147 | dnl # |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1148 | if test "x$enable_nss" != "xno"; then |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1149 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1150 | AC_ARG_WITH(nspr-includes, |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1151 | [ --with-nspr-includes=PREFIX Specify location of Mozilla nspr4 includes.], |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1152 | [with_nspr_includes="$withval"]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1153 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1154 | AC_ARG_WITH(nspr-libs, |
| 8403 | 1155 | [ --with-nspr-libs=PREFIX Specify location of Mozilla nspr4 libs.], |
|
6757
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1156 | [with_nspr_libs="$withval"]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1157 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1158 | AC_ARG_WITH(nss-includes, |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1159 | [ --with-nss-includes=PREFIX Specify location of Mozilla nss3 includes.], |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1160 | [with_nss_includes="$withval"]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1161 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1162 | AC_ARG_WITH(nss-libs, |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1163 | [ --with-nss-libs=PREFIX Specify location of Mozilla nss3 libs.], |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1164 | [with_nss_libs="$withval"]) |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1165 | |
|
58c39d82f606
[gaim-migrate @ 7289]
Christian Hammond <chipx86@chipx86.com>
parents:
6756
diff
changeset
|
1166 | |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1167 | if test -n "$with_nspr_includes" || test -n "$with_nspr_libs" || \ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1168 | test -n "$with_nss_includes" || test -n "$with_nss_libs" || |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1169 | test "x$enable_nss" = "xstatic"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1170 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1171 | nss_manual_check="yes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1172 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1173 | nss_manual_check="no" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1174 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1175 | |
|
6738
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1176 | enable_nss="no" |
|
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1177 | |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1178 | if test "x$nss_manual_check" = "xno"; then |
|
12507
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1179 | if `$PKG_CONFIG --exists mozilla-nss`; then |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1180 | PKG_CHECK_MODULES(NSS, mozilla-nss, [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1181 | have_nss="yes" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1182 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1183 | AC_MSG_RESULT(no) |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1184 | have_nss="no" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1185 | ]) |
|
12507
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1186 | mozilla_nspr="mozilla-nspr" |
|
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1187 | mozilla_nss="mozilla-nss" |
|
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1188 | else |
|
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1189 | if `$PKG_CONFIG --exists nss`; then |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1190 | PKG_CHECK_MODULES(NSS, nss, [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1191 | have_nss="yes" |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1192 | ], [ |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1193 | AC_MSG_RESULT(no) |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1194 | ]) |
|
12507
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1195 | mozilla_nspr="nspr" |
|
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1196 | mozilla_nss="nss" |
|
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1197 | fi |
|
9c4e2db872fd
[gaim-migrate @ 14819]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12502
diff
changeset
|
1198 | fi |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1199 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1200 | if test "x$have_nss" = "xyes"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1201 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1202 | AC_DEFINE(HAVE_NSS, 1, [Define if you have Mozilla NSS]) |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1203 | AC_DEFINE(HAVE_SSL, 1, [Define if you have SSL]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1204 | |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1205 | msg_nss="Mozilla NSS" |
|
6738
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1206 | enable_nss="yes" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1207 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1208 | nss_manual_check="yes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1209 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1210 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1211 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1212 | if test "x$nss_manual_check" = "xyes"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1213 | mozilla_nss="" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1214 | have_nspr_includes="no" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1215 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1216 | if test "x$with_nspr_includes" != "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1217 | CPPFLAGS_save=$CPPFLAGS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1218 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1219 | AC_MSG_CHECKING(for Mozilla nspr4 includes in $with_nspr_includes) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1220 | AC_MSG_RESULT("") |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1221 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1222 | CPPFLAGS="$CPPFLAGS -I$with_nspr_includes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1223 | AC_CHECK_HEADERS(nspr.h prio.h, [ moz_nspr_includes="yes" ]) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1224 | CPPFLAGS=$CPPFLAGS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1225 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1226 | if test "x$moz_nspr_includes" != "xno" -a \ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1227 | "x$moz_nspr_includes" != "x"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1228 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1229 | have_nspr_includes="yes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1230 | NSPR_CFLAGS="-I$with_nspr_includes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1231 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1232 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1233 | AC_MSG_CHECKING(for Mozilla nspr4 includes) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1234 | AC_MSG_RESULT(no) |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1235 | |
|
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1236 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1237 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1238 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1239 | have_nspr_libs="no" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1240 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1241 | if test "x$with_nspr_libs" != "xno" -a \ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1242 | "x$have_nspr_includes" != "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1243 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1244 | CFLAGS_save=$CFLAGS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1245 | LDFLAGS_save=$LDFLAGS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1246 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1247 | if test "$enable_nss" = "static"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1248 | if test -z "$with_nspr_libs"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1249 | AC_MSG_ERROR( |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1250 | [Static linkage requested, but path to nspr libraries not set.] |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1251 | [Please specify the path to libnspr4.a] |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1252 | [Example: --with-nspr-libs=/usr/lib]) |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1253 | |
|
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1254 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1255 | else |
|
12038
1d83b5720a65
[gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12036
diff
changeset
|
1256 | nsprlibs="$LIBDL $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1257 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1258 | else |
|
12038
1d83b5720a65
[gaim-migrate @ 14331]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12036
diff
changeset
|
1259 | nsprlibs="$LIBDL -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1260 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1261 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1262 | AC_CACHE_CHECK([for Mozilla nspr libraries], moz_nspr_libs, |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1263 | [ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1264 | LIBS_save=$LIBS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1265 | CFLAGS="$CFLAGS $NSPR_CFLAGS" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1266 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1267 | LIBS="$nsprlibs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1268 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1269 | if test "x$with_nspr_libs" != "x"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1270 | LDFLAGS="$LDFLAGS -L$with_nspr_libs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1271 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1272 | LDFLAGS="$LDFLAGS" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1273 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1274 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1275 | AC_TRY_LINK_FUNC(PR_Init, |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1276 | [moz_nspr_libs="yes"], |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1277 | [moz_nspr_libs="no"]) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1278 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1279 | CFLAGS=$CFLAGS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1280 | LDFLAGS=$LDFLAGS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1281 | LIBS=$LIBS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1282 | ]) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1283 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1284 | if test "x$moz_nspr_libs" != "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1285 | have_nspr_libs="yes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1286 | NSPR_LIBS="-L$with_nspr_libs $nsprlibs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1287 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1288 | NSPR_CFLAGS="" |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1289 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1290 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1291 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1292 | AC_MSG_CHECKING(for Mozilla nspr4 libraries) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1293 | AC_MSG_RESULT(no) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1294 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1295 | |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1296 | have_nss_includes="no" |
|
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1297 | |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1298 | if test "x$with_nss_includes" != "xno" -a \ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1299 | "x$have_nspr_libs" != "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1300 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1301 | CPPFLAGS_save=$CPPFLAGS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1302 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1303 | AC_MSG_CHECKING(for Mozilla nss3 includes in $with_nss_includes) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1304 | AC_MSG_RESULT("") |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1305 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1306 | if test "x$with_nspr_includes" != "x"; then |
| 6990 | 1307 | CPPFLAGS="$CPPFLAGS -I$with_nspr_includes -I$with_nss_includes" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1308 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1309 | CPPFLAGS="$CPPFLAGS -I$with_nss_includes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1310 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1311 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1312 | AC_CHECK_HEADERS(nss.h ssl.h smime.h, |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1313 | [moz_nss_includes="yes"], |
|
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1314 | [moz_nss_includes="no"]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1315 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1316 | CPPFLAGS=$CPPFLAGS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1317 | |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1318 | if test "x$moz_nss_includes" = "xyes"; then |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1319 | have_nss_includes="yes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1320 | NSS_CFLAGS="-I$with_nss_includes" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1321 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1322 | NSPR_CFLAGS="" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1323 | NSPR_LIBS="" |
|
7252
71e4a6a902af
[gaim-migrate @ 7829]
Christian Hammond <chipx86@chipx86.com>
parents:
7233
diff
changeset
|
1324 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1325 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1326 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1327 | AC_MSG_CHECKING(for Mozilla nss3 includes) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1328 | AC_MSG_RESULT(no) |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1329 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1330 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1331 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1332 | if test "x$with_nss_libs" != "xno" -a \ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1333 | "x$have_nss_includes" != "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1334 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1335 | LDFLAGS_save=$LDFLAGS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1336 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1337 | if test "$enable_nss" = "static"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1338 | if test -z "$with_nss_libs"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1339 | AC_MSG_ERROR( |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1340 | [Static linkage requested, but path to nss libraries not set.] |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1341 | [Please specify the path to libnss3.a] |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1342 | [Example: --with-nspr-libs=/usr/lib/mozilla]) |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1343 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1344 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1345 | nsslibs="-ldb1 $with_nss_libs/libnssckfw.a $with_nss_libs/libasn1.a $with_nss_libs/libcrmf.a $with_nss_libs/libswfci.a $with_nss_libs/libjar.a $with_nss_libs/libpkcs12.a $with_nss_libs/libpkcs7.a $with_nss_libs/libpki1.a $with_nss_libs/libsmime.a $with_nss_libs/libssl.a $with_nss_libs/libnss.a $with_nss_libs/libpk11wrap.a $with_nss_libs/libsoftokn.a $with_nss_libs/libfreebl.a $with_nss_libs/libnsspki.a $with_nss_libs/libnssdev.a $with_nss_libs/libcryptohi.a $with_nss_libs/libcerthi.a $with_nss_libs/libcertdb.a $with_nss_libs/libsecutil.a $with_nss_libs/libnssb.a" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1346 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1347 | case "$host" in |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1348 | *solaris*) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1349 | nsslibs="$nsslibs $with_nss_libs/libfreeb1.a" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1350 | ;; |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1351 | esac |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1352 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1353 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1354 | nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1355 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1356 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1357 | AC_CACHE_CHECK([for Mozilla nss libraries], moz_nss_libs, |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1358 | [ |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1359 | LIBS_save=$LIBS |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1360 | LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1361 | LIBS="$nsslibs $nsprlibs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1362 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1363 | AC_TRY_LINK_FUNC(NSS_Init, |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1364 | [moz_nss_libs="yes"], |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1365 | [moz_nss_libs="no"]) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1366 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1367 | if test "x$moz_nss_libs" = "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1368 | nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1369 | LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1370 | AC_TRY_LINK_FUNC(NSS_Init, |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1371 | [moz_nss_libs="yes"], |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1372 | [moz_nss_libs="no"]) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1373 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1374 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1375 | LDFLAGS=$LDFLAGS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1376 | LIBS=$LIBS_save |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1377 | ]) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1378 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1379 | if test "x$moz_nss_libs" != "xno"; then |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1380 | AC_DEFINE(HAVE_NSS) |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1381 | AC_DEFINE(HAVE_SSL) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1382 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1383 | NSS_LIBS="-L$with_nss_libs $nsslibs" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1384 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1385 | if test "$enable_nss" = "static"; then |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1386 | msg_nss="Mozilla NSS (static)" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1387 | else |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1388 | msg_nss="Mozilla NSS" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1389 | fi |
|
6738
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1390 | |
|
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1391 | enable_nss="yes" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1392 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1393 | NSS_CFLAGS="" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1394 | NSPR_CFLAGS="" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1395 | NSPR_LIBS="" |
|
7087
a572c156a178
[gaim-migrate @ 7652]
Christian Hammond <chipx86@chipx86.com>
parents:
7021
diff
changeset
|
1396 | enable_nss="no" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1397 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1398 | else |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1399 | AC_MSG_CHECKING(for Mozilla nss libraries) |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1400 | AC_MSG_RESULT(no) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1401 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1402 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1403 | NSS_CFLAGS="$NSPR_CFLAGS $NSS_CFLAGS" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1404 | NSS_LIBS="$NSPR_LIBS $NSS_LIBS" |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1405 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1406 | |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1407 | AC_SUBST(NSS_CFLAGS) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1408 | AC_SUBST(NSS_LIBS) |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1409 | fi |
|
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1410 | |
|
6738
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1411 | AM_CONDITIONAL(USE_NSS, test "x$enable_nss" = "xyes") |
|
aa797bcc69dd
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6734
diff
changeset
|
1412 | |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1413 | 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
|
1414 | msg_ssl="$msg_nss and $msg_gnutls" |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1415 | elif test "x$msg_nss" != "x"; then |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1416 | msg_ssl=$msg_nss |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1417 | elif test "x$msg_gnutls" != "x"; then |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1418 | msg_ssl=$msg_gnutls |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1419 | fi |
|
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1420 | |
| 6694 | 1421 | dnl Check for Tcl |
|
10975
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1422 | if test "$enable_plugins" = no; then |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1423 | enable_tcl=no |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1424 | fi |
|
a67aa6003df4
[gaim-migrate @ 12800]
Gary Kramlich <grim@reaperworld.com>
parents:
10925
diff
changeset
|
1425 | |
| 6694 | 1426 | if test "$enable_tcl" = yes; then |
| 1427 | AC_MSG_CHECKING([for tclConfig.sh]) | |
| 1428 | TCLCONFIG=no | |
| 6710 | 1429 | TCLCONFIGDIRS="/usr/lib \ |
|
13570
98de50f23182
[gaim-migrate @ 15948]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
13561
diff
changeset
|
1430 | /usr/lib64 \ |
| 6710 | 1431 | /usr/lib/tcl8.4 \ |
| 1432 | /usr/lib/tcl8.3 \ | |
| 1433 | /usr/lib/tcl8.2 \ | |
| 7596 | 1434 | /System/Library/Tcl/8.3 \ |
| 6710 | 1435 | /usr/local/lib" |
| 1436 | for dir in $with_tclconfig $TCLCONFIGDIRS; do | |
| 6694 | 1437 | if test -f $dir/tclConfig.sh; then |
| 1438 | TCLCONFIG=$dir/tclConfig.sh | |
| 1439 | AC_MSG_RESULT([yes ($TCLCONFIG)]) | |
| 1440 | fi | |
| 1441 | done | |
| 6697 | 1442 | if test "$TCLCONFIG" = "no"; then |
| 6694 | 1443 | AC_MSG_RESULT([no]) |
| 1444 | enable_tcl=no | |
| 1445 | else | |
| 1446 | . $TCLCONFIG | |
| 6709 | 1447 | AC_MSG_CHECKING([Tcl version compatability]) |
| 7822 | 1448 | if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then |
| 1449 | AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required]) | |
| 6709 | 1450 | enable_tcl=no |
| 1451 | else | |
| 1452 | AC_MSG_RESULT([ok, $TCL_VERSION]) | |
| 1453 | eval "TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"" | |
| 1454 | AC_MSG_CHECKING([for Tcl linkability]) | |
| 6713 | 1455 | oldCPPFLAGS=$CPPFLAGS |
| 7351 | 1456 | CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC -I$TCL_PREFIX/include" |
| 6709 | 1457 | oldLIBS=$LIBS |
| 1458 | LIBS="$LIBS $TCL_LIB_SPEC" | |
| 1459 | AC_TRY_LINK([#include <tcl.h>], | |
| 11999 | 1460 | [Tcl_Interp *interp=NULL; Tcl_Init(interp)], |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1461 | [AC_MSG_RESULT([yes]);enable_tcl=yes], |
|
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1462 | [AC_MSG_RESULT([no]);enable_tcl=no]) |
| 6713 | 1463 | CPPFLAGS="$oldCPPFLAGS" |
| 6709 | 1464 | LIBS="$oldLIBS" |
| 1465 | fi | |
| 6694 | 1466 | fi |
| 1467 | fi | |
| 1468 | ||
| 1469 | if test "$enable_tcl" = yes; then | |
| 1470 | AM_CONDITIONAL(USE_TCL, true) | |
| 1471 | TCL_LIBS=$TCL_LIB_SPEC | |
| 1472 | AC_SUBST(TCL_LIBS) | |
|
10628
170949b0903d
[gaim-migrate @ 12104]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10626
diff
changeset
|
1473 | AC_DEFINE(HAVE_TCL, [1], [Compile with support for the Tcl toolkit]) |
| 7351 | 1474 | TCL_CFLAGS="$TCL_INCLUDE_SPEC -I$TCL_PREFIX/include" |
| 6717 | 1475 | if test "x$GCC" = "xyes"; then |
| 1476 | TCL_CFLAGS="$TCL_CFLAGS -fno-strict-aliasing" | |
| 1477 | fi | |
| 6712 | 1478 | AC_SUBST(TCL_CFLAGS) |
| 6694 | 1479 | else |
| 1480 | AM_CONDITIONAL(USE_TCL, false) | |
| 1481 | fi | |
| 1482 | ||
| 1483 | dnl Check for Tk | |
| 1484 | if test "$enable_tcl" = yes -a "$enable_tk" = yes; then | |
| 1485 | AC_MSG_CHECKING([for tkConfig.sh]) | |
| 1486 | TKCONFIG=no | |
| 6715 | 1487 | TKCONFIGDIRS="/usr/lib \ |
|
13570
98de50f23182
[gaim-migrate @ 15948]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
13561
diff
changeset
|
1488 | /usr/lib64 \ |
|
98de50f23182
[gaim-migrate @ 15948]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
13561
diff
changeset
|
1489 | /usr/lib/tk8.4 \ |
| 6715 | 1490 | /usr/lib/tk8.3 \ |
| 1491 | /usr/lib/tk8.2 \ | |
| 1492 | /usr/local/lib" | |
| 1493 | for dir in $with_tkconfig $TKCONFIGDIRS; do | |
| 6694 | 1494 | if test -f $dir/tkConfig.sh; then |
| 1495 | TKCONFIG=$dir/tkConfig.sh | |
| 1496 | AC_MSG_RESULT([yes ($TKCONFIG)]) | |
| 1497 | fi | |
| 1498 | done | |
| 1499 | if test "$TKCONFIG" = "no"; then | |
| 1500 | AC_MSG_RESULT([no]) | |
| 1501 | enable_tk=no | |
| 1502 | else | |
| 1503 | . $TKCONFIG | |
| 1504 | eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\"" | |
| 1505 | AC_MSG_CHECKING([for Tk linkability]) | |
| 6716 | 1506 | oldCPPFLAGS=$CPPFLAGS |
| 1507 | CPPFLAGS="$CPPFLAGS $TCL_CFLAGS" | |
| 6694 | 1508 | oldLIBS=$LIBS |
| 1509 | LIBS="$LIBS $TCL_LIB_SPEC $TK_LIB_SPEC" | |
| 11999 | 1510 | AC_TRY_LINK([#include <tk.h>], |
| 1511 | [Tcl_Interp *interp=NULL; Tcl_Init(interp); Tk_Init(interp);], | |
| 6694 | 1512 | [AC_MSG_RESULT([yes]);enable_tk=yes], |
| 1513 | [AC_MSG_RESULT([no]);enable_tk=no]) | |
| 6716 | 1514 | CPPFLAGS="$oldCPPFLAGS" |
| 6694 | 1515 | LIBS="$oldLIBS" |
| 1516 | fi | |
| 6710 | 1517 | else |
| 1518 | enable_tk=no | |
| 6694 | 1519 | fi |
| 1520 | ||
| 1521 | if test "$enable_tk" = yes; then | |
| 1522 | AM_CONDITIONAL(USE_TK, true) | |
| 1523 | AC_DEFINE(HAVE_TK, [1], [Compile with support for the Tk toolkit]) | |
| 1524 | TK_LIBS=$TK_LIB_SPEC | |
| 1525 | AC_SUBST(TK_LIBS) | |
| 1526 | else | |
| 1527 | AM_CONDITIONAL(USE_TK, false) | |
| 1528 | fi | |
| 1529 | ||
| 3802 | 1530 | dnl Thanks, Evan. |
| 1531 | if test "$enable_gtkspell" = yes ; then | |
|
13175
1533c5c19b3e
[gaim-migrate @ 15537]
Mark Doliner <markdoliner@pidgin.im>
parents:
13171
diff
changeset
|
1532 | PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, [], [ |
|
13171
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1533 | AC_MSG_RESULT(no) |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1534 | enable_gtkspell=no |
|
a49601b4afa9
[gaim-migrate @ 15533]
Richard Laager <rlaager@pidgin.im>
parents:
13153
diff
changeset
|
1535 | ]) |
| 3802 | 1536 | if test "$enable_gtkspell" = "yes" ; then |
| 1537 | AC_SUBST(GTKSPELL_CFLAGS) | |
|
12067
11fb53722956
[gaim-migrate @ 14362]
Richard Laager <rlaager@pidgin.im>
parents:
12061
diff
changeset
|
1538 | AC_SUBST(GTKSPELL_LIBS) |
|
6734
38b7396c0116
[gaim-migrate @ 7266]
Christian Hammond <chipx86@chipx86.com>
parents:
6723
diff
changeset
|
1539 | AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?]) |
| 3802 | 1540 | fi |
| 1541 | fi | |
| 1542 | ||
| 2129 | 1543 | if test "$ac_cv_cygwin" = yes ; then |
| 1544 | LDADD="$LDADD -static" | |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
1545 | AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
6697
diff
changeset
|
1546 | fi |
| 2129 | 1547 | |
|
6360
c2bfe65b200c
[gaim-migrate @ 6864]
Robert McQueen <robot101@debian.org>
parents:
6321
diff
changeset
|
1548 | AC_SUBST(DEBUG_CFLAGS) |
| 2129 | 1549 | AC_SUBST(LDADD) |
| 1550 | AC_SUBST(LIBS) | |
| 1551 | ||
| 1552 | if test "x$enable_plugins" = "xyes" ; then | |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
1553 | AC_DEFINE(GAIM_PLUGINS, 1, [Define if plugins are enabled.]) |
| 2129 | 1554 | AM_CONDITIONAL(PLUGINS, test "x$enable_plugins" = "xyes") |
| 1555 | else | |
|
3411
e9d50336f9c3
[gaim-migrate @ 3430]
Christian Hammond <chipx86@chipx86.com>
parents:
3408
diff
changeset
|
1556 | AM_CONDITIONAL(PLUGINS, false) |
| 2129 | 1557 | enable_plugins=no |
| 1558 | enable_prpls=no | |
| 1559 | fi | |
| 1560 | ||
| 1561 | if test "x$enable_prpls" = "xyes" ; then | |
| 1562 | AM_CONDITIONAL(PRPLS, test "x$enable_plugins" = "xyes") | |
| 1563 | else | |
|
3411
e9d50336f9c3
[gaim-migrate @ 3430]
Christian Hammond <chipx86@chipx86.com>
parents:
3408
diff
changeset
|
1564 | AM_CONDITIONAL(PRPLS, false) |
| 2129 | 1565 | enable_prpls=no |
| 1566 | fi | |
| 1567 | ||
| 1568 | dnl checks for jabber | |
| 1569 | dnl AC_CHECK_SIZEOF(short) | |
| 1570 | AC_CHECK_FUNCS(snprintf connect) | |
| 12508 | 1571 | AC_SUBST(SASL_LIBS) |
|
12600
7ecd4441fdc7
[gaim-migrate @ 14934]
Richard Laager <rlaager@pidgin.im>
parents:
12584
diff
changeset
|
1572 | AC_ARG_ENABLE(cyrus-sasl, AC_HELP_STRING([--enable-cyrus-sasl], [enable Cyrus SASL support for jabberd]), enable_cyrus_sasl=$enableval, enable_cyrus_sasl=no) |
| 12508 | 1573 | if test "x-$enable_cyrus_sasl" = "x-yes" ; then |
| 1574 | AC_CHECK_LIB(sasl2, sasl_client_init, [AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present]) SASL_LIBS=-"lsasl2"], [AC_ERROR(Cyrus SASL library not found)]) | |
| 1575 | fi | |
| 2129 | 1576 | |
| 1577 | dnl checks for zephyr | |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
1578 | AC_DEFINE(ZEPHYR_INT32, long, [Size of an int32.]) |
| 2129 | 1579 | AC_SUBST(KRB4_CFLAGS) |
| 1580 | AC_SUBST(KRB4_LDFLAGS) | |
| 1581 | AC_SUBST(KRB4_LIBS) | |
| 1582 | if test "$kerberos" != "no" ; then | |
| 1583 | if test "$kerberos" != "yes" ; then | |
| 1584 | KRB4_CFLAGS="-I${kerberos}/include" | |
| 1585 | if test -d "$kerberos/include/kerberosIV" ; then | |
| 1586 | KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV" | |
| 1587 | fi | |
| 1588 | KRB4_LDFLAGS="-L${kerberos}/lib" | |
| 1589 | elif test -d /usr/local/include/kerberosIV ; then | |
| 1590 | KRB4_CFLAGS="-I/usr/local/include/kerberosIV" | |
| 1591 | elif test -d /usr/include/kerberosIV ; then | |
| 1592 | KRB4_CFLAGS="-I/usr/include/kerberosIV" | |
| 1593 | fi | |
|
3662
e00dc031358b
[gaim-migrate @ 3791]
Christian Hammond <chipx86@chipx86.com>
parents:
3589
diff
changeset
|
1594 | AC_DEFINE(ZEPHYR_USES_KERBEROS, 1, [Define if kerberos should be used in Zephyr.]) |
| 2129 | 1595 | |
| 1596 | orig_LDFLAGS="$LDFLAGS" | |
| 1597 | LDFLAGS="$LDFLAGS $KRB4_LDFLAGS" | |
| 1598 | AC_CHECK_LIB(krb4, krb_rd_req, | |
| 1599 | [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"], | |
| 1600 | [AC_CHECK_LIB(krb, krb_rd_req, | |
| 1601 | [KRB4_LIBS="-lkrb -ldes"], | |
| 1602 | [AC_ERROR(Kerberos 4 libraries not found)], | |
| 1603 | -ldes)], | |
| 1604 | -ldes425 -lkrb5 -lk5crypto -lcom_err) | |
| 1605 | orig_LIBS="$LIBS" | |
| 1606 | LIBS="$LIBS $KRB4_LIBS" | |
| 1607 | AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm) | |
| 1608 | AC_CHECK_FUNCS(krb_get_err_text krb_log) | |
| 1609 | LIBS="$orig_LIBS" | |
| 1610 | LDFLAGS="$orig_LDFLAGS" | |
| 1611 | fi | |
| 6150 | 1612 | |
| 8378 | 1613 | dnl checks for an external libzephyr |
| 1614 | AC_SUBST(ZEPHYR_CFLAGS) | |
| 1615 | AC_SUBST(ZEPHYR_LDFLAGS) | |
| 1616 | AC_SUBST(ZEPHYR_LIBS) | |
| 1617 | if test "$zephyr" != "no" ; then | |
| 1618 | if test "$zephyr" != "yes" ; then | |
| 1619 | ZEPHYR_CFLAGS="-I${zephyr}/include" | |
| 1620 | ZEPHYR_LDFLAGS="-L${zephyr}/lib" | |
| 1621 | elif test -d /usr/athena/include/zephyr ; then | |
| 1622 | ZEPHYR_CFLAGS="-I/usr/athena/include" | |
| 1623 | elif test -d /usr/include/zephyr ; then | |
|
12034
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
1624 | ZEPHYR_CFLAGS="-I/usr/include" |
|
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
1625 | elif test -d /usr/local/include/zephyr ; then |
|
e40d6191f530
[gaim-migrate @ 14327]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
12032
diff
changeset
|
1626 | ZEPHYR_CFLAGS="-I/usr/local/include" |
| 8378 | 1627 | fi |
| 1628 | AC_DEFINE(LIBZEPHYR_EXT, 1 , [Define if external libzephyr should be used.]) | |
| 1629 | AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") | |
| 1630 | orig_LDFLAGS="$LDFLAGS" | |
| 1631 | LDFLAGS="$LDFLAGS $ZEPHYR_LDFLAGS" | |
| 1632 | AC_CHECK_LIB(zephyr, ZInitialize, | |
| 1633 | [ZEPHYR_LIBS="-lzephyr"], | |
| 1634 | [AC_ERROR(Zephyr libraries not found)], | |
| 1635 | -lzephyr) | |
| 1636 | orig_LIBS="$LIBS" | |
| 1637 | LIBS="$orig_LIBS" | |
| 1638 | LDFLAGS="$orig_LDFLAGS" | |
| 1639 | fi | |
| 1640 | ||
| 10245 | 1641 | AM_BINRELOC |
| 8378 | 1642 | |
| 6150 | 1643 | AC_MSG_CHECKING(for me pot o' gold) |
| 1644 | AC_MSG_RESULT(no) | |
| 2129 | 1645 | AC_CHECK_FUNCS(gethostid lrand48) |
| 1646 | AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf) | |
| 1647 | AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) | |
| 1648 | AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) | |
| 1649 | AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) | |
| 1650 | AC_CHECK_HEADERS(termios.h) | |
|
3194
9404dfabed94
[gaim-migrate @ 3211]
Jim Seymour <jseymour@users.sourceforge.net>
parents:
3191
diff
changeset
|
1651 | AC_VAR_TIMEZONE_EXTERNALS |
| 2129 | 1652 | |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1653 | dnl ####################################################################### |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1654 | dnl # Doxygen Stuff |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1655 | dnl ####################################################################### |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1656 | AC_ARG_ENABLE(doxygen, [ --enable-doxygen enable documentation with doxygen],,enable_doxygen=yes) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1657 | AC_ARG_ENABLE(dot, [ --enable-dot enable graphs in doxygen via 'dot'],,enable_dot=yes) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1658 | |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1659 | if test "x$enable_doxygen" = xyes; then |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1660 | AC_CHECK_PROG(DOXYGEN, doxygen, true, false) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1661 | if test $DOXYGEN = false; then |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1662 | AC_MSG_WARN([*** doxygen not found, docs will not be available]) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1663 | enable_doxygen=no |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1664 | else |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1665 | AC_DEFINE_UNQUOTED(HAVE_DOXYGEN, 1, [whether or not we have doxygen]) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1666 | |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1667 | if test "x$enable_dot" = xyes; then |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1668 | AC_CHECK_PROG(DOT, dot, true, false) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1669 | |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1670 | if test $DOT = false; then |
|
11318
13fa1d5134f3
[gaim-migrate @ 13521]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11308
diff
changeset
|
1671 | enable_dot="no"; |
|
10925
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1672 | AC_MSG_WARN([*** dot not found, graphs will not be available]) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1673 | else |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1674 | AC_DEFINE_UNQUOTED(HAVE_DOT, 1, [whether or not we have dot]) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1675 | fi |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1676 | else |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1677 | AC_MSG_WARN([*** dot not found, graphs will not be available]) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1678 | fi |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1679 | fi |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1680 | else |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1681 | enable_dot="no" |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1682 | fi |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1683 | |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1684 | if test "x$enable_doxygen" = xyes; then |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1685 | AM_CONDITIONAL(HAVE_DOXYGEN, true) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1686 | else |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1687 | AM_CONDITIONAL(HAVE_DOXYGEN, false) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1688 | fi |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1689 | |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1690 | AC_SUBST(enable_doxygen) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1691 | AC_SUBST(enable_dot) |
|
dc0bfebfef15
[gaim-migrate @ 12696]
Gary Kramlich <grim@reaperworld.com>
parents:
10851
diff
changeset
|
1692 | |
|
9146
dbc1e084f7c6
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1693 | AC_CONFIG_COMMANDS_PRE([ |
|
dbc1e084f7c6
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1694 | if test -e VERSION; then |
|
dbc1e084f7c6
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1695 | cp -p VERSION VERSION.ac-save |
|
dbc1e084f7c6
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1696 | fi |
|
dbc1e084f7c6
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1697 | ]) |
|
dbc1e084f7c6
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1698 | |
|
dbc1e084f7c6
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1699 | AC_CONFIG_COMMANDS_POST([ |
|
dbc1e084f7c6
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1700 | cmp VERSION VERSION.ac-save || touch -r VERSION.ac-save VERSION |
|
9147
9f3045dfe16e
[gaim-migrate @ 9931]
Christian Hammond <chipx86@chipx86.com>
parents:
9146
diff
changeset
|
1701 | rm -f VERSION.ac-save |
|
9146
dbc1e084f7c6
[gaim-migrate @ 9930]
Christian Hammond <chipx86@chipx86.com>
parents:
9145
diff
changeset
|
1702 | ]) |
|
9144
e49d3dc828f3
[gaim-migrate @ 9928]
Christian Hammond <chipx86@chipx86.com>
parents:
9137
diff
changeset
|
1703 | |
| 2129 | 1704 | AC_OUTPUT([Makefile |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1705 | Doxyfile |
| 10362 | 1706 | gaim.apspec |
|
13491
a4898caca966
[gaim-migrate @ 15866]
Gary Kramlich <grim@reaperworld.com>
parents:
13466
diff
changeset
|
1707 | gaim.service |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1708 | doc/Makefile |
| 6954 | 1709 | doc/gaim.1 |
|
11147
67309baf4c84
[gaim-migrate @ 13226]
Gary Kramlich <grim@reaperworld.com>
parents:
11146
diff
changeset
|
1710 | m4macros/Makefile |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1711 | pixmaps/Makefile |
| 6954 | 1712 | pixmaps/smileys/Makefile |
| 1713 | pixmaps/smileys/default/Makefile | |
| 8836 | 1714 | pixmaps/smileys/none/Makefile |
| 6954 | 1715 | pixmaps/status/Makefile |
| 1716 | pixmaps/status/default/Makefile | |
| 1717 | plugins/Makefile | |
| 1718 | plugins/docklet/Makefile | |
| 8089 | 1719 | plugins/gevolution/Makefile |
| 6954 | 1720 | plugins/gestures/Makefile |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1721 | plugins/mono/Makefile |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1722 | plugins/mono/api/Makefile |
|
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1723 | plugins/mono/loader/Makefile |
|
11087
1dd9494c165a
[gaim-migrate @ 13107]
Christian Muise <christian.muise@gmail.com>
parents:
11082
diff
changeset
|
1724 | plugins/musicmessaging/Makefile |
| 6954 | 1725 | plugins/perl/Makefile |
| 1726 | plugins/perl/common/Makefile.PL | |
|
7016
895a5ff9ebd4
[gaim-migrate @ 7579]
Christian Hammond <chipx86@chipx86.com>
parents:
7012
diff
changeset
|
1727 | plugins/ssl/Makefile |
| 6954 | 1728 | plugins/tcl/Makefile |
| 1729 | plugins/ticker/Makefile | |
| 1730 | po/Makefile.in | |
| 1731 | sounds/Makefile | |
| 1732 | src/Makefile | |
| 1733 | src/protocols/Makefile | |
|
11579
1ff537bd2e92
[gaim-migrate @ 13849]
Mark Doliner <markdoliner@pidgin.im>
parents:
11465
diff
changeset
|
1734 | src/protocols/bonjour/Makefile |
| 6954 | 1735 | src/protocols/gg/Makefile |
| 1736 | src/protocols/irc/Makefile | |
| 1737 | src/protocols/jabber/Makefile | |
| 1738 | src/protocols/msn/Makefile | |
| 1739 | src/protocols/napster/Makefile | |
|
9144
e49d3dc828f3
[gaim-migrate @ 9928]
Christian Hammond <chipx86@chipx86.com>
parents:
9137
diff
changeset
|
1740 | src/protocols/novell/Makefile |
| 6954 | 1741 | src/protocols/oscar/Makefile |
|
10977
5802457af313
[gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
10975
diff
changeset
|
1742 | src/protocols/sametime/Makefile |
| 8850 | 1743 | src/protocols/silc/Makefile |
|
11181
e872a55b9524
[gaim-migrate @ 13292]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11171
diff
changeset
|
1744 | src/protocols/simple/Makefile |
| 6954 | 1745 | src/protocols/toc/Makefile |
| 1746 | src/protocols/yahoo/Makefile | |
| 1747 | src/protocols/zephyr/Makefile | |
|
9364
6d800038ed6c
[gaim-migrate @ 10172]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9352
diff
changeset
|
1748 | gaim.pc |
| 6954 | 1749 | gaim.spec |
|
6968
dfff23d8e933
[gaim-migrate @ 7515]
Mark Doliner <markdoliner@pidgin.im>
parents:
6960
diff
changeset
|
1750 | ]) |
| 2129 | 1751 | |
| 1752 | echo | |
| 1753 | echo $PACKAGE $VERSION | |
| 1754 | ||
| 1755 | echo | |
|
2725
a844d0964552
[gaim-migrate @ 2738]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2711
diff
changeset
|
1756 | echo Build Protocol Plugins........ : $enable_prpls |
|
a844d0964552
[gaim-migrate @ 2738]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2711
diff
changeset
|
1757 | echo Protocols to link statically.. : $STATIC_PRPLS |
| 7373 | 1758 | echo Protocols to build dynamically : $DYNAMIC_PRPLS |
| 2129 | 1759 | echo |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10803
diff
changeset
|
1760 | echo UI Library.................... : GTK+ 2.x |
|
7155
8ce800977807
[gaim-migrate @ 7722]
Christian Hammond <chipx86@chipx86.com>
parents:
7087
diff
changeset
|
1761 | echo SSL Library/Libraries......... : $msg_ssl |
| 2129 | 1762 | echo |
| 13720 | 1763 | echo Build with GStreamer support.. : $enable_gst |
|
2725
a844d0964552
[gaim-migrate @ 2738]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2711
diff
changeset
|
1764 | echo Build with Plugin support..... : $enable_plugins |
|
11660
a7cf8f7d43b3
[gaim-migrate @ 13945]
Eoin Coffey <ecoffey@soc.pidgin.im>
parents:
11645
diff
changeset
|
1765 | echo Build with Mono support....... : $enable_mono |
|
2725
a844d0964552
[gaim-migrate @ 2738]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2711
diff
changeset
|
1766 | echo Build with Perl support....... : $enable_perl |
| 6694 | 1767 | echo Build with Tcl support........ : $enable_tcl |
| 1768 | echo Build with Tk support......... : $enable_tk | |
| 4561 | 1769 | echo Build with GtkSpell support... : $enable_gtkspell |
|
11055
e564996853bf
[gaim-migrate @ 12996]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
10977
diff
changeset
|
1770 | echo Build with DBUS support....... : $enable_dbus |
|
11351
c29898b1b746
[gaim-migrate @ 13570]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11318
diff
changeset
|
1771 | if test x$enable_dbus = xyes ; then |
| 13504 | 1772 | eval echo DBUS servies directory........ : $DBUS_SERVICES_DIR |
|
11351
c29898b1b746
[gaim-migrate @ 13570]
Piotr Zielinski <zielaj@users.sourceforge.net>
parents:
11318
diff
changeset
|
1773 | fi |
|
12584
177bdacdfcf8
[gaim-migrate @ 14912]
Gary Kramlich <grim@reaperworld.com>
parents:
12582
diff
changeset
|
1774 | echo Build with Cyrus SASL support. : $enable_cyrus_sasl |
| 10140 | 1775 | echo Has you....................... : yes |
| 3802 | 1776 | echo |
| 12508 | 1777 | echo |
| 8378 | 1778 | echo Use kerberos 4 with zephyr.... : $kerberos |
| 1779 | echo Use external libzephyr........ : $zephyr | |
| 1780 | echo | |
|
2725
a844d0964552
[gaim-migrate @ 2738]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2711
diff
changeset
|
1781 | echo Use XScreenSaver Extension.... : $enable_xss |
|
4157
5d3d2f6517ae
[gaim-migrate @ 4385]
Robert McQueen <robot101@debian.org>
parents:
3931
diff
changeset
|
1782 | echo Use X Session Management...... : $enable_sm |
|
7168
be126508bdb8
[gaim-migrate @ 7735]
Christian Hammond <chipx86@chipx86.com>
parents:
7155
diff
changeset
|
1783 | echo Use startup notification.......: $enable_startup_notification |
| 2129 | 1784 | echo |
|
2725
a844d0964552
[gaim-migrate @ 2738]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2711
diff
changeset
|
1785 | echo Print debugging messages...... : $enable_debug |
| 2129 | 1786 | echo |
|
2452
8a19e5abeaf8
[gaim-migrate @ 2465]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2436
diff
changeset
|
1787 | eval eval echo Gaim will be installed in $bindir. |
| 2129 | 1788 | if test "x$gaimpath" != "x" ; then |
| 1789 | echo Warning: You have an old copy of gaim at $gaimpath. | |
| 1790 | fi | |
| 1791 | echo | |
| 1792 | echo configure complete, now type \'make\' | |
| 1793 | echo |