comparison configure.in @ 4561:9df99116840a

[gaim-migrate @ 4842] This is the new sound subsystem Lots of stuff got renamed, and everything sound-wise is documented. Gaim now uses libaudiofile and libao to play sounds. Lots of ugly hacks were removed, and now we support playing audio through anything that libao will support. If you need to (you shouldn't) you can force libao to use a specific output driver, by putting a line into ~/.libao like: default_driver=esd You shouldn't need to do this, libao is pretty good at figuring out what driver to use. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 09 Feb 2003 01:55:35 +0000
parents fbf9f873abfc
children 27354602734d
comparison
equal deleted inserted replaced
4560:eb32b3acef97 4561:9df99116840a
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 GAIM_PATH_AO(found_ao_lib=true)
253 SOUND_LIBS="-laudio -lXt" 250
254 fi 251 AM_PATH_AUDIOFILE([0.2.0], found_af_lib=true)
255 if test "$enable_esd" = yes ; then 252
256 AM_PATH_GESD 253 if test "$found_ao_lib" = "true" -a "$found_af_lib" = "true"; then
257 if test "$no_esd" != yes ; then 254 SOUND_LIBS="$AO_LIBS $AUDIOFILE_LIBS"
258 old_CFLAGS="$CFLAGS" 255 AC_SUBST(SOUND_LIBS)
259 CFLAGS="$CFLAGS $ESD_CFLAGS" 256 AC_DEFINE(USE_AO, 1, [Define if we're using libao and libaudiofile for sound playing])
260 AC_TRY_COMPILE(,[#include <esd.h>], 257 enable_audio=yes
261 [
262 AC_DEFINE(ESD_SOUND, 1, [Define if we have ESD sound support.])
263 SOUND_LIBS="$SOUND_LIBS $ESD_LIBS"
264 ],[
265 enable_esd=no
266 CFLAGS="$old_CFLAGS"
267 ])
268 else 258 else
269 enable_esd=no 259 enable_audio=no
270 fi 260 fi
271 fi 261 else
272 if test "x$enable_artsc" = "xyes"; then 262 enable_audio=no
273 AM_PATH_ARTSC 263 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 264
291 if test "$ac_cv_cygwin" = yes ; then 265 if test "$ac_cv_cygwin" = yes ; then
292 LDADD="$LDADD -static" 266 LDADD="$LDADD -static"
293 CFLAGS="$CFLAGS -Wall -g" 267 CFLAGS="$CFLAGS -Wall -g"
294 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 268 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
417 echo 391 echo
418 echo Allow Multiple Connections.... : $enable_multi 392 echo Allow Multiple Connections.... : $enable_multi
419 echo Build Protocol Plugins........ : $enable_prpls 393 echo Build Protocol Plugins........ : $enable_prpls
420 echo Protocols to link statically.. : $STATIC_PRPLS 394 echo Protocols to link statically.. : $STATIC_PRPLS
421 echo 395 echo
422 echo UI Library.................... : GTK 2.0 396 echo UI Library.................... : GTK 2.x
423 echo 397 echo
424 echo Build with Plugin support..... : $enable_plugins 398 echo Build with Plugin support..... : $enable_plugins
425 echo Build with Perl support....... : $enable_perl 399 echo Build with Perl support....... : $enable_perl
426 echo 400 echo Build with Audio support...... : $enable_audio
427 echo Build with GtkSpell............: $enable_gtkspell 401 echo Build with GtkSpell support... : $enable_gtkspell
428 echo 402 echo
429 echo Use XScreenSaver Extension.... : $enable_xss 403 echo Use XScreenSaver Extension.... : $enable_xss
430 echo 404 echo Use X Session Management...... : $enable_sm
431 echo Build with ESD................ : $enable_esd
432 echo Build with NAS................ : $enable_nas
433 echo Build with ArtsC.............. : $enable_artsc
434 echo 405 echo
435 echo Print debugging messages...... : $enable_debug 406 echo Print debugging messages...... : $enable_debug
436 echo 407 echo
437 eval eval echo Gaim will be installed in $bindir. 408 eval eval echo Gaim will be installed in $bindir.
438 if test "x$gaimpath" != "x" ; then 409 if test "x$gaimpath" != "x" ; then