Mercurial > pidgin
comparison configure.in @ 4429:bf770f11132b
[gaim-migrate @ 4704]
(15:41:59) Robot101: the hunk that got left out in the cold.
its a good thing when things compile
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 26 Jan 2003 20:41:49 +0000 |
parents | 3270d3536e12 |
children | 801830dec409 |
comparison
equal
deleted
inserted
replaced
4428:b5669740e34c | 4429:bf770f11132b |
---|---|
110 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") | 110 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") |
111 AC_SUBST(STATIC_LINK_LIBS) | 111 AC_SUBST(STATIC_LINK_LIBS) |
112 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto }, | 112 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto }, |
113 [Loads static protocol plugin module initialization functions.]) | 113 [Loads static protocol plugin module initialization functions.]) |
114 | 114 |
115 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],,enable_esd=yes) | 115 AC_ARG_ENABLE(audio, [ --disable-audio compile without libao/libaudiofile for sound playing],,enable_audio=yes) |
116 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) | |
117 AC_ARG_ENABLE(artsc, [ --disable-artsc Turn off ArtsC (default=auto)],,enable_artsc=yes) | |
118 | |
119 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) | 116 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) |
120 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) | 117 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) |
121 AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes) | 118 AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes) |
122 | |
123 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) | 119 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) |
124 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) | 120 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) |
121 AC_ARG_ENABLE(sm, [ --disable-sm compile without X session management support],,enable_sm=yes) | |
125 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") | 122 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") |
126 | 123 |
127 if test "$enable_debug" = yes ; then | 124 if test "$enable_debug" = yes ; then |
128 CFLAGS="$CFLAGS -Wall -g3" | 125 CFLAGS="$CFLAGS -Wall -g3" |
129 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) | 126 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
246 AC_SUBST(GTKSPELL_LIBS) | 243 AC_SUBST(GTKSPELL_LIBS) |
247 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?]) | 244 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?]) |
248 fi | 245 fi |
249 fi | 246 fi |
250 | 247 |
251 if test "$enable_nas" = yes ; then | 248 if test "$enable_audio" = yes ; then |
252 AC_DEFINE(NAS_SOUND, 1, [Define if we have NAS sound support.]) | 249 AC_CHECK_HEADERS(ao/ao.h, found_ao_lib=true, found_ao_lib=false) |
253 SOUND_LIBS="-laudio -lXt" | 250 if test "$found_ao_lib" = "true"; then |
254 fi | 251 AC_CHECK_LIB(ao, ao_initialize, found_ao_lib=true, found_ao_lib=false) |
255 if test "$enable_esd" = yes ; then | 252 fi |
256 AM_PATH_GESD | 253 |
257 if test "$no_esd" != yes ; then | 254 AC_CHECK_HEADERS(audiofile.h, found_af_lib=true, found_af_lib=false) |
258 old_CFLAGS="$CFLAGS" | 255 if test "$found_af_lib" = "true"; then |
259 CFLAGS="$CFLAGS $ESD_CFLAGS" | 256 AC_CHECK_LIB(audiofile, afOpenFile, found_af_lib=true, found_af_lib=false) |
260 AC_TRY_COMPILE(,[#include <esd.h>], | 257 fi |
261 [ | 258 |
262 AC_DEFINE(ESD_SOUND, 1, [Define if we have ESD sound support.]) | 259 if test "$found_ao_lib" = "true" -a "$found_af_lib" = "true"; then |
263 SOUND_LIBS="$SOUND_LIBS $ESD_LIBS" | 260 SOUND_LIBS="-lao -laudiofile" |
264 ],[ | 261 AC_SUBST(SOUND_LIBS) |
265 enable_esd=no | 262 AC_DEFINE(USE_AO, 1, [Define if we're using libao and libaudiofile for sound playing]) |
266 CFLAGS="$old_CFLAGS" | 263 enable_audio=yes |
267 ]) | |
268 else | 264 else |
269 enable_esd=no | 265 enable_audio=no |
270 fi | 266 fi |
271 fi | 267 else |
272 if test "x$enable_artsc" = "xyes"; then | 268 enable_audio=no |
273 AM_PATH_ARTSC | 269 fi |
274 if test "x$no_artsc" != "xyes" ; then | |
275 old_CFLAGS="$CFLAGS" | |
276 CFLAGS="$CFLAGS $ARTSC_CFLAGS" | |
277 AC_TRY_COMPILE(,[#include <artsc.h>], | |
278 [ | |
279 AC_DEFINE(ARTSC_SOUND, 1, [Define if we have artsc sound support.]) | |
280 SOUND_LIBS="$SOUND_LIBS $ARTSC_LIBS" | |
281 ],[ | |
282 enable_artsc=no | |
283 CFLAGS="$old_CFLAGS" | |
284 ]) | |
285 else | |
286 enable_artsc=no | |
287 fi | |
288 fi | |
289 AC_SUBST(SOUND_LIBS) | |
290 | 270 |
291 if test "$ac_cv_cygwin" = yes ; then | 271 if test "$ac_cv_cygwin" = yes ; then |
292 LDADD="$LDADD -static" | 272 LDADD="$LDADD -static" |
293 CFLAGS="$CFLAGS -Wall -g" | 273 CFLAGS="$CFLAGS -Wall -g" |
294 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) | 274 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
416 echo | 396 echo |
417 echo Allow Multiple Connections.... : $enable_multi | 397 echo Allow Multiple Connections.... : $enable_multi |
418 echo Build Protocol Plugins........ : $enable_prpls | 398 echo Build Protocol Plugins........ : $enable_prpls |
419 echo Protocols to link statically.. : $STATIC_PRPLS | 399 echo Protocols to link statically.. : $STATIC_PRPLS |
420 echo | 400 echo |
421 echo UI Library.................... : GTK 2.0 | 401 echo UI Library.................... : GTK 2.x |
422 echo | 402 echo |
423 echo Build with Plugin support..... : $enable_plugins | 403 echo Build with Plugin support..... : $enable_plugins |
424 echo Build with Perl support....... : $enable_perl | 404 echo Build with Perl support....... : $enable_perl |
425 echo | 405 echo Build with Audio support...... : $enable_audio |
426 echo Build with GtkSpell............: $enable_gtkspell | 406 echo Build with GtkSpell support... : $enable_gtkspell |
427 echo | 407 echo |
428 echo Use XScreenSaver Extension.... : $enable_xss | 408 echo Use XScreenSaver Extension.... : $enable_xss |
429 echo | 409 echo Use X Session Management...... : $enable_sm |
430 echo Build with ESD................ : $enable_esd | |
431 echo Build with NAS................ : $enable_nas | |
432 echo Build with ArtsC.............. : $enable_artsc | |
433 echo | 410 echo |
434 echo Print debugging messages...... : $enable_debug | 411 echo Print debugging messages...... : $enable_debug |
435 echo | 412 echo |
436 eval eval echo Gaim will be installed in $bindir. | 413 eval eval echo Gaim will be installed in $bindir. |
437 if test "x$gaimpath" != "x" ; then | 414 if test "x$gaimpath" != "x" ; then |