comparison configure.in @ 4430:801830dec409

[gaim-migrate @ 4705] robot101 gave me a bad patch committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 26 Jan 2003 20:43:25 +0000
parents bf770f11132b
children 58c3c6cfd537
comparison
equal deleted inserted replaced
4429:bf770f11132b 4430:801830dec409
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(audio, [ --disable-audio compile without libao/libaudiofile for sound playing],,enable_audio=yes) 115 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],,enable_esd=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
116 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) 119 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes)
117 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) 120 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes)
118 AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes) 121 AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes)
122
119 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) 123 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no)
120 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) 124 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)
122 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") 125 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no")
123 126
124 if test "$enable_debug" = yes ; then 127 if test "$enable_debug" = yes ; then
125 CFLAGS="$CFLAGS -Wall -g3" 128 CFLAGS="$CFLAGS -Wall -g3"
126 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 129 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
243 AC_SUBST(GTKSPELL_LIBS) 246 AC_SUBST(GTKSPELL_LIBS)
244 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?]) 247 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?])
245 fi 248 fi
246 fi 249 fi
247 250
248 if test "$enable_audio" = yes ; then 251 if test "$enable_nas" = yes ; then
249 AC_CHECK_HEADERS(ao/ao.h, found_ao_lib=true, found_ao_lib=false) 252 AC_DEFINE(NAS_SOUND, 1, [Define if we have NAS sound support.])
250 if test "$found_ao_lib" = "true"; then 253 SOUND_LIBS="-laudio -lXt"
251 AC_CHECK_LIB(ao, ao_initialize, found_ao_lib=true, found_ao_lib=false) 254 fi
252 fi 255 if test "$enable_esd" = yes ; then
253 256 AM_PATH_GESD
254 AC_CHECK_HEADERS(audiofile.h, found_af_lib=true, found_af_lib=false) 257 if test "$no_esd" != yes ; then
255 if test "$found_af_lib" = "true"; then 258 old_CFLAGS="$CFLAGS"
256 AC_CHECK_LIB(audiofile, afOpenFile, found_af_lib=true, found_af_lib=false) 259 CFLAGS="$CFLAGS $ESD_CFLAGS"
257 fi 260 AC_TRY_COMPILE(,[#include <esd.h>],
258 261 [
259 if test "$found_ao_lib" = "true" -a "$found_af_lib" = "true"; then 262 AC_DEFINE(ESD_SOUND, 1, [Define if we have ESD sound support.])
260 SOUND_LIBS="-lao -laudiofile" 263 SOUND_LIBS="$SOUND_LIBS $ESD_LIBS"
261 AC_SUBST(SOUND_LIBS) 264 ],[
262 AC_DEFINE(USE_AO, 1, [Define if we're using libao and libaudiofile for sound playing]) 265 enable_esd=no
263 enable_audio=yes 266 CFLAGS="$old_CFLAGS"
267 ])
264 else 268 else
265 enable_audio=no 269 enable_esd=no
266 fi 270 fi
267 else 271 fi
268 enable_audio=no 272 if test "x$enable_artsc" = "xyes"; then
269 fi 273 AM_PATH_ARTSC
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)
270 290
271 if test "$ac_cv_cygwin" = yes ; then 291 if test "$ac_cv_cygwin" = yes ; then
272 LDADD="$LDADD -static" 292 LDADD="$LDADD -static"
273 CFLAGS="$CFLAGS -Wall -g" 293 CFLAGS="$CFLAGS -Wall -g"
274 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 294 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
396 echo 416 echo
397 echo Allow Multiple Connections.... : $enable_multi 417 echo Allow Multiple Connections.... : $enable_multi
398 echo Build Protocol Plugins........ : $enable_prpls 418 echo Build Protocol Plugins........ : $enable_prpls
399 echo Protocols to link statically.. : $STATIC_PRPLS 419 echo Protocols to link statically.. : $STATIC_PRPLS
400 echo 420 echo
401 echo UI Library.................... : GTK 2.x 421 echo UI Library.................... : GTK 2.0
402 echo 422 echo
403 echo Build with Plugin support..... : $enable_plugins 423 echo Build with Plugin support..... : $enable_plugins
404 echo Build with Perl support....... : $enable_perl 424 echo Build with Perl support....... : $enable_perl
405 echo Build with Audio support...... : $enable_audio 425 echo
406 echo Build with GtkSpell support... : $enable_gtkspell 426 echo Build with GtkSpell............: $enable_gtkspell
407 echo 427 echo
408 echo Use XScreenSaver Extension.... : $enable_xss 428 echo Use XScreenSaver Extension.... : $enable_xss
409 echo Use X Session Management...... : $enable_sm 429 echo
430 echo Build with ESD................ : $enable_esd
431 echo Build with NAS................ : $enable_nas
432 echo Build with ArtsC.............. : $enable_artsc
410 echo 433 echo
411 echo Print debugging messages...... : $enable_debug 434 echo Print debugging messages...... : $enable_debug
412 echo 435 echo
413 eval eval echo Gaim will be installed in $bindir. 436 eval eval echo Gaim will be installed in $bindir.
414 if test "x$gaimpath" != "x" ; then 437 if test "x$gaimpath" != "x" ; then