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