Mercurial > pidgin.yaz
annotate configure.ac @ 2215:cda7147ccece
[gaim-migrate @ 2225]
La la la la life goes on.
Does anyone wanna update this? :)
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Wed, 05 Sep 2001 21:37:00 +0000 |
parents | 8cc187241a8b |
children | 7abd9297efac |
rev | line source |
---|---|
2129 | 1 dnl Process this file with autoconf to produce a configure script. |
2 AC_INIT(src/aim.c) | |
3 AM_CONFIG_HEADER(config.h) | |
2214
8cc187241a8b
[gaim-migrate @ 2224]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2185
diff
changeset
|
4 AM_INIT_AUTOMAKE([gaim], [0.28]) |
2129 | 5 |
6 AC_PATH_PROG(sedpath, sed) | |
7 | |
8 dnl Checks for programs. | |
9 AC_PROG_CC | |
10 AC_DISABLE_STATIC | |
11 AM_PROG_LIBTOOL | |
12 LIBTOOL="$LIBTOOL --silent" | |
13 AC_PROG_INSTALL | |
14 | |
15 | |
16 ALL_LINGUAS="de es fr ko ru zh_CN" | |
17 AM_GNU_GETTEXT | |
18 | |
19 AC_CYGWIN | |
20 | |
21 | |
22 dnl Checks for header files. | |
23 AC_HEADER_STDC | |
24 AC_HEADER_SYS_WAIT | |
25 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h locale.h signal.h) | |
26 | |
27 dnl Checks for typedefs, structures, and compiler characteristics. | |
28 AC_C_CONST | |
29 AC_STRUCT_TM | |
30 | |
31 dnl Checks for library functions. | |
32 AC_TYPE_SIGNAL | |
33 AC_FUNC_STRFTIME | |
34 AC_CHECK_FUNCS(socket strdup strstr atexit getaddrinfo) | |
2162
a464da684307
[gaim-migrate @ 2172]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2129
diff
changeset
|
35 AC_TRY_COMPILE([#include <sys/types.h> |
2163
f47ff201c53c
[gaim-migrate @ 2173]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2162
diff
changeset
|
36 #include <sys/socket.h>], [socklen_t slen;],,[AC_DEFINE(NEED_SOCKLEN_T)]) |
2129 | 37 |
38 dnl Checks for getopt in standard library | |
39 AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] ) | |
40 AC_SUBST(LIBOBJS) | |
41 | |
42 dnl This is a bad, bad hack. I am a bad, bad man. | |
43 CFLAGS="$CFLAGS -I/usr/local/include -I/opt/include -I\$(top_srcdir)" | |
44 | |
45 AC_ARG_ENABLE(distrib,,,enable_distrib=no) | |
46 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") | |
47 AC_ARG_ENABLE(multi, [ --disable-multi disable multiple connections],,enable_multi=yes) | |
48 AC_ARG_ENABLE(prpls, [ --disable-prpls don't build dynamic protocol plugins],,enable_prpls=yes) | |
49 AC_ARG_WITH(static-prpls, [ --with-static-prpls link in certain protocols statically],[STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`],STATIC_PRPLS="oscar toc") | |
50 if test "x$STATIC_PRPLS" = "xall" ; then | |
51 STATIC_PRPLS="icq irc jabber msn napster oscar toc yahoo zephyr" | |
52 fi | |
53 AC_SUBST(STATIC_PRPLS) | |
54 STATIC_LINK_LIBS= | |
55 extern_init= | |
56 load_proto= | |
57 for i in $STATIC_PRPLS ; do | |
58 STATIC_LINK_LIBS="$STATIC_LINK_LIBS protocols/$i/lib$i.a" | |
59 extern_init="$extern_init extern void ${i}_init(struct prpl *);" | |
60 load_proto="$load_proto load_protocol(${i}_init, sizeof(struct prpl));" | |
61 case $i in | |
62 icq) AM_CONDITIONAL(STATIC_ICQ, true) ;; | |
63 irc) AM_CONDITIONAL(STATIC_IRC, true) ;; | |
64 jabber) AM_CONDITIONAL(STATIC_JABBER, true) ;; | |
65 msn) AM_CONDITIONAL(STATIC_MSN, true) ;; | |
66 napster) AM_CONDITIONAL(STATIC_NAPSTER, true) ;; | |
67 oscar) AM_CONDITIONAL(STATIC_OSCAR, true) ;; | |
68 toc) AM_CONDITIONAL(STATIC_TOC, true) ;; | |
69 yahoo) AM_CONDITIONAL(STATIC_YAHOO, true) ;; | |
70 zephyr) AM_CONDITIONAL(STATIC_ZEPHYR, true) ;; | |
71 *) echo "Invalid static protocol $i!!" ; exit ;; | |
72 esac | |
73 done | |
74 AC_SUBST(STATIC_LINK_LIBS) | |
75 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto }) | |
76 | |
77 AC_ARG_ENABLE(gnome, [ --disable-gnome compile without Gnome bits],,enable_gnome=yes) | |
78 AC_ARG_ENABLE(pixbuf, [ --disable-pixbuf compile without GdkPixbuf (needed for Buddy Icons)],,enable_pixbuf=yes) | |
79 AC_ARG_ENABLE(panel, [ --enable-panel compile as a GNOME applet],,enable_panel=$enable_distrib) | |
80 | |
81 AM_CONDITIONAL(GNOMEAPPLET, test "x$enable_panel" = "xyes") | |
82 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],,enable_esd=yes) | |
83 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) | |
2179
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
84 AC_ARG_ENABLE(artsc, [ --disable-artsc Turn off ArtsC (default=auto)],,enable_artsc=yes) |
2129 | 85 |
86 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) | |
87 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) | |
88 | |
89 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) | |
90 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) | |
91 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") | |
92 | |
93 if test "$enable_debug" = yes ; then | |
94 CFLAGS="$CFLAGS -Wall -g" | |
95 AC_DEFINE(DEBUG) | |
96 fi | |
97 | |
98 if test "x$enable_gnome" = "xyes" ; then | |
99 if test "x$enable_panel" = "xyes" ; then | |
100 GNOME_INIT(applets) | |
101 GNOME_X_CHECKS | |
102 CFLAGS="$CFLAGS $GNOME_INCLUDEDIR" | |
103 AC_DEFINE(USE_APPLET) | |
104 AC_DEFINE(USE_GNOME) | |
2181
07611ad4aa2b
[gaim-migrate @ 2191]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2179
diff
changeset
|
105 UI_LIBS="$UI_LIBS $GTK_LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS $GNOMEUI_LIBS" |
2129 | 106 AC_PATH_PROG(gaimpath, gaim_applet) |
107 else | |
108 AC_PATH_PROG(gnomepath, gnome-config) | |
109 AC_MSG_CHECKING(for Gnome compile flags) | |
110 GNOME_CFLAGS=`$gnomepath gnomeui --cflags 2>/dev/null` | |
111 if test "x$GNOME_CFLAGS" = "x" ; then | |
112 enable_gnome=no | |
113 AC_MSG_RESULT([Gnome not found, building without it.]) | |
114 else | |
115 GNOME_VER=`$gnomepath --version |$sedpath 's/gnome-libs //' 2>/dev/null` | |
116 GNOME_MAJOR=`echo $GNOME_VER |$sedpath 's/\([[0-9]*]*\).\([[0-9]*]*\).\([[0-9]*]*\)/\1/' 2>/dev/null` | |
117 if test "x$GNOME_MAJOR" = "x0" ; then | |
118 enable_gnome = no | |
119 AC_MSG_RESULT([old Gnome found, building without it.]) | |
120 else | |
121 AC_MSG_RESULT(ok) | |
122 CFLAGS="$CFLAGS $GNOME_CFLAGS" | |
2181
07611ad4aa2b
[gaim-migrate @ 2191]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2179
diff
changeset
|
123 UI_LIBS="$UI_LIBS `$gnomepath gnomeui --libs 2>/dev/null`" |
2129 | 124 AC_DEFINE(USE_GNOME) |
125 GNOME_CONFIG="$gnomepath" | |
126 AC_SUBST(GNOME_CONFIG) | |
127 AC_PATH_PROG(gaimpath, gaim) | |
128 fi | |
129 fi | |
130 fi | |
131 fi | |
132 | |
133 if test "x$enable_gnome" != "xyes" ; then | |
134 AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR([ | |
135 *** GLib is required to build Gaim; please make sure you have the GLib | |
136 *** development headers installed. The latest version of GLib is | |
137 *** always available at http://www.gtk.org/.])) | |
138 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR([ | |
139 *** GTK+ is required to build Gaim; please make sure you have the GTK+ | |
140 *** development headers installed. The latest version of GTK+ is | |
141 *** always available at http://www.gtk.org/.]),gthread) | |
2181
07611ad4aa2b
[gaim-migrate @ 2191]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2179
diff
changeset
|
142 UI_LIBS="$UI_LIBS $GTK_LIBS" |
2129 | 143 AC_PATH_PROG(gaimpath, gaim) |
144 fi | |
145 CFLAGS="$CFLAGS $GTK_CFLAGS" | |
146 | |
147 use_pixbuf=no | |
148 if test "x$enable_pixbuf" = "xyes" ; then | |
149 AC_PATH_PROG(pixbufcfg, gdk-pixbuf-config) | |
150 if test "x$pixbufcfg" != "x" ; then | |
151 GDK_PIXBUF_CFLAGS=`$pixbufcfg --cflags` | |
152 GDK_PIXBUF_LIBS=`$pixbufcfg --libs` | |
153 GDK_PIXBUF_CONFIG="$pixbufcfg" | |
154 AC_SUBST(GDK_PIXBUF_CONFIG) | |
155 AC_SUBST(GDK_PIXBUF_CFLAGS) | |
156 AC_SUBST(GDK_PIXBUF_LIBS) | |
157 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" | |
2181
07611ad4aa2b
[gaim-migrate @ 2191]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2179
diff
changeset
|
158 UI_LIBS="$UI_LIBS $GDK_PIXBUF_LIBS" |
2129 | 159 dnl We should be doing checks to see that the header files and functions exist. eh. |
160 AC_DEFINE(USE_PIXBUF) | |
161 use_pixbuf=yes | |
162 fi | |
163 fi | |
2178
a22f18ae43c1
[gaim-migrate @ 2188]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2163
diff
changeset
|
164 AC_SUBST(UI_LIBS) |
2129 | 165 |
166 dnl Check for XScreenSaver | |
167 if test "x$enable_xss" = "xyes" ; then | |
2182
665e1dbeb8da
[gaim-migrate @ 2192]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2181
diff
changeset
|
168 old_LIBS="$LIBS" |
665e1dbeb8da
[gaim-migrate @ 2192]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2181
diff
changeset
|
169 LIBS="$LIBS $UI_LIBS" |
2129 | 170 XSS_LIBS="no" |
171 XSS_HEADERS="no" | |
172 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS=""],[],[-lX11 -lXext -lm]) | |
173 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="-lXss"],[],[-lX11 -lXext -lm]) | |
174 if test \! "$XSS_LIBS" = "no"; then | |
175 AC_TRY_COMPILE([ | |
176 #include <X11/extensions/scrnsaver.h> | |
177 ],[],[enable_xss=no],[ | |
178 AC_DEFINE(USE_SCREENSAVER) | |
179 ]) | |
180 else | |
181 XSS_LIBS="" | |
182 enable_xss=no | |
183 fi | |
2182
665e1dbeb8da
[gaim-migrate @ 2192]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2181
diff
changeset
|
184 LIBS="$old_LIBS" |
2129 | 185 else |
186 XSS_LIBS="" | |
187 enable_xss=no | |
188 fi | |
189 AC_SUBST(XSS_LIBS) | |
190 | |
191 | |
192 | |
193 dnl This was taken straight from X-Chat. | |
194 dnl X-Chat is the greatest application ever, not only | |
195 dnl because it's a rocking IRC client but also because | |
196 dnl it's very easy to learn from. | |
197 if test "$enable_perl" = yes ; then | |
198 AC_PATH_PROG(perlpath, perl) | |
199 AC_MSG_CHECKING(for Perl compile flags) | |
200 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` | |
201 if test "_$PERL_CFLAGS" = _ ; then | |
202 AC_MSG_RESULT([not found, building without perl.]) | |
203 enable_perl = no | |
204 else | |
205 PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'` | |
206 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'` | |
207 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'` | |
208 if test "$system" = "Linux"; then | |
209 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lnsl //'` | |
210 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lposix //'` | |
211 fi | |
212 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'` | |
213 AC_MSG_RESULT(ok) | |
214 AC_SUBST(PERL_CFLAGS) | |
215 AC_SUBST(PERL_LIBS) | |
216 AC_DEFINE(USE_PERL) | |
217 AC_CHECK_FUNCS(Perl_eval_pv) | |
218 fi | |
219 fi | |
220 | |
221 if test "$enable_nas" = yes ; then | |
222 AC_DEFINE(NAS_SOUND) | |
2178
a22f18ae43c1
[gaim-migrate @ 2188]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2163
diff
changeset
|
223 SOUND_LIBS="-laudio -lXt" |
2129 | 224 fi |
225 if test "$enable_esd" = yes ; then | |
226 AM_PATH_GESD | |
227 if test "$no_esd" != yes ; then | |
2179
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
228 old_CFLAGS="$CFLAGS" |
2129 | 229 CFLAGS="$CFLAGS $ESD_CFLAGS" |
2184
3bd61577ab8b
[gaim-migrate @ 2194]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2182
diff
changeset
|
230 AC_TRY_COMPILE(,[#include <esd.h>], |
2179
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
231 [ |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
232 AC_DEFINE(ESD_SOUND) |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
233 SOUND_LIBS="$SOUND_LIBS $ESD_LIBS" |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
234 ],[ |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
235 enable_esd=no |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
236 CFLAGS="$old_CFLAGS" |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
237 ]) |
2129 | 238 else |
239 enable_esd=no | |
240 fi | |
241 fi | |
2179
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
242 if test "x$enable_artsc" = "xyes"; then |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
243 AM_PATH_ARTSC |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
244 if test "x$no_artsc" != "xyes" ; then |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
245 old_CFLAGS="$CFLAGS" |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
246 CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
2184
3bd61577ab8b
[gaim-migrate @ 2194]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2182
diff
changeset
|
247 AC_TRY_COMPILE(,[#include <artsc.h>], |
2179
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
248 [ |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
249 AC_DEFINE(ARTSC_SOUND) |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
250 SOUND_LIBS="$SOUND_LIBS $ARTSC_LIBS" |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
251 ],[ |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
252 enable_artsc=no |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
253 CFLAGS="$old_CFLAGS" |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
254 ]) |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
255 else |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
256 enable_artsc=no |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
257 fi |
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
258 fi |
2178
a22f18ae43c1
[gaim-migrate @ 2188]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2163
diff
changeset
|
259 AC_SUBST(SOUND_LIBS) |
2129 | 260 |
261 if test "$ac_cv_cygwin" = yes ; then | |
262 LDADD="$LDADD -static" | |
263 CFLAGS="$CFLAGS -Wall -g" | |
264 AC_DEFINE(DEBUG) | |
265 fi | |
266 | |
267 AC_SUBST(CFLAGS) | |
268 AC_SUBST(LDADD) | |
269 AC_SUBST(LIBS) | |
270 | |
271 if test "x$enable_multi" != "xyes" ; then | |
272 AC_DEFINE(NO_MULTI) | |
273 enable_multi=no | |
274 fi | |
275 | |
276 if test "x$enable_plugins" = "xyes" ; then | |
277 AC_DEFINE(GAIM_PLUGINS) | |
278 AM_CONDITIONAL(PLUGINS, test "x$enable_plugins" = "xyes") | |
279 else | |
280 enable_plugins=no | |
281 enable_prpls=no | |
282 fi | |
283 | |
284 if test "x$enable_prpls" = "xyes" ; then | |
285 AM_CONDITIONAL(PRPLS, test "x$enable_plugins" = "xyes") | |
286 else | |
287 enable_prpls=no | |
288 fi | |
289 | |
290 dnl checks for icqlib | |
291 AC_CHECK_HEADERS(asm/byteorder.h byteswap.h endian.h machine/endian.h arpa/nameser_compat.h) | |
292 AC_CHECK_FUNCS(bswap_32 bswap_16) | |
293 AC_C_BIGENDIAN | |
294 | |
295 dnl checks for jabber | |
296 dnl AC_CHECK_SIZEOF(short) | |
297 AC_CHECK_FUNCS(snprintf connect) | |
298 AC_CHECK_LIB(nsl, gethostent) | |
299 | |
300 dnl checks for zephyr | |
301 AC_DEFINE(ZEPHYR_INT32, long) | |
302 AC_SUBST(KRB4_CFLAGS) | |
303 AC_SUBST(KRB4_LDFLAGS) | |
304 AC_SUBST(KRB4_LIBS) | |
305 if test "$kerberos" != "no" ; then | |
306 if test "$kerberos" != "yes" ; then | |
307 KRB4_CFLAGS="-I${kerberos}/include" | |
308 if test -d "$kerberos/include/kerberosIV" ; then | |
309 KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV" | |
310 fi | |
311 KRB4_LDFLAGS="-L${kerberos}/lib" | |
312 elif test -d /usr/local/include/kerberosIV ; then | |
313 KRB4_CFLAGS="-I/usr/local/include/kerberosIV" | |
314 elif test -d /usr/include/kerberosIV ; then | |
315 KRB4_CFLAGS="-I/usr/include/kerberosIV" | |
316 fi | |
317 AC_DEFINE(ZEPHYR_USES_KERBEROS) | |
318 | |
319 orig_LDFLAGS="$LDFLAGS" | |
320 LDFLAGS="$LDFLAGS $KRB4_LDFLAGS" | |
321 AC_CHECK_LIB(krb4, krb_rd_req, | |
322 [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"], | |
323 [AC_CHECK_LIB(krb, krb_rd_req, | |
324 [KRB4_LIBS="-lkrb -ldes"], | |
325 [AC_ERROR(Kerberos 4 libraries not found)], | |
326 -ldes)], | |
327 -ldes425 -lkrb5 -lk5crypto -lcom_err) | |
328 orig_LIBS="$LIBS" | |
329 LIBS="$LIBS $KRB4_LIBS" | |
330 AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm) | |
331 AC_CHECK_FUNCS(krb_get_err_text krb_log) | |
332 LIBS="$orig_LIBS" | |
333 LDFLAGS="$orig_LDFLAGS" | |
334 fi | |
335 AC_CHECK_FUNCS(gethostid lrand48) | |
336 AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf) | |
337 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) | |
338 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) | |
339 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) | |
340 AC_CHECK_HEADERS(termios.h) | |
341 | |
342 AC_OUTPUT([Makefile | |
343 doc/Makefile | |
344 intl/Makefile | |
345 m4/Makefile | |
346 pixmaps/Makefile | |
347 plugins/Makefile | |
348 po/Makefile.in | |
349 sounds/Makefile | |
350 src/Makefile | |
351 src/protocols/Makefile | |
352 src/protocols/icq/Makefile | |
353 src/protocols/irc/Makefile | |
354 src/protocols/jabber/Makefile | |
355 src/protocols/msn/Makefile | |
356 src/protocols/napster/Makefile | |
357 src/protocols/oscar/Makefile | |
358 src/protocols/toc/Makefile | |
359 src/protocols/yahoo/Makefile | |
360 src/protocols/zephyr/Makefile | |
361 gaim.spec | |
362 ]) | |
363 | |
364 echo | |
365 echo $PACKAGE $VERSION | |
366 | |
367 echo | |
368 echo Allow Multiple Connections.. : $enable_multi | |
369 echo Build Protocol Plugins...... : $enable_prpls | |
370 echo Protocols to link statically : $STATIC_PRPLS | |
371 echo | |
372 echo Build with GNOME bits....... : $enable_gnome | |
373 echo Use GdkPixbuf for Icons..... : $use_pixbuf | |
374 echo Build as GNOME applet....... : $enable_panel | |
375 echo | |
376 echo Build with Plugin support... : $enable_plugins | |
377 echo Build with Perl support..... : $enable_perl | |
378 echo | |
379 echo Use XScreenSaver Extension.. : $enable_xss | |
380 echo | |
381 echo Build with ESD.............. : $enable_esd | |
382 echo Build with NAS.............. : $enable_nas | |
2179
64d8ef561763
[gaim-migrate @ 2189]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2178
diff
changeset
|
383 echo Build with ArtsC............ : $enable_artsc |
2129 | 384 echo |
385 echo Print debugging messages.... : $enable_debug | |
386 echo | |
387 echo Gaim will be installed in $prefix/bin. | |
388 if test "x$gaimpath" != "x" ; then | |
389 echo Warning: You have an old copy of gaim at $gaimpath. | |
390 fi | |
391 echo | |
392 echo configure complete, now type \'make\' | |
393 echo |