diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac index 358b06634..c110b97a0 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -368,31 +368,31 @@ fi # $build = $target | |||
368 | # check for bluetooth library | 368 | # check for bluetooth library |
369 | bluetooth=0 | 369 | bluetooth=0 |
370 | AC_CHECK_LIB(bluetooth, ba2str,[AC_CHECK_HEADER([bluetooth/bluetooth.h],bluetooth=1)]) | 370 | AC_CHECK_LIB(bluetooth, ba2str,[AC_CHECK_HEADER([bluetooth/bluetooth.h],bluetooth=1)]) |
371 | if test "$bluetooth" = 1 | ||
372 | then | ||
373 | AM_CONDITIONAL(HAVE_LIBBLUETOOTH, true) | ||
374 | AC_DEFINE([HAVE_LIBBLUETOOTH],[1],[Have bluetooth library]) | ||
375 | else | ||
376 | AM_CONDITIONAL(HAVE_LIBBLUETOOTH, false) | ||
377 | fi | ||
378 | if test "$build_target" = "mingw" | 371 | if test "$build_target" = "mingw" |
379 | then | 372 | then |
380 | bluetooth=1 | 373 | bluetooth=1 |
381 | fi | 374 | fi |
375 | AM_CONDITIONAL(HAVE_LIBBLUETOOTH, [test "$bluetooth" = 1]) | ||
376 | if test "$bluetooth" = 1 | ||
377 | then | ||
378 | AC_DEFINE([HAVE_LIBBLUETOOTH],[1],[Have bluetooth library]) | ||
379 | else | ||
380 | AC_DEFINE([HAVE_LIBBLUETOOTH],[0],[Lacking bluetooth library]) | ||
381 | fi | ||
382 | 382 | ||
383 | 383 | ||
384 | # check for libpulse(audio) library | 384 | # check for libpulse(audio) library |
385 | pulse=0 | 385 | pulse=0 |
386 | AC_CHECK_LIB(pulse,pa_stream_peek, | 386 | AC_CHECK_LIB(pulse,pa_stream_peek, |
387 | [AC_CHECK_HEADER([pulse/simple.h],pulse=1)]) | 387 | [AC_CHECK_HEADER([pulse/simple.h],pulse=1)]) |
388 | if test "$pulse" = 1 | ||
389 | then | ||
390 | AC_DEFINE([HAVE_PULSE],[1],[Have libpulse(audio) library]) | ||
391 | fi | ||
392 | if test "$build_target" = "mingw" | 388 | if test "$build_target" = "mingw" |
393 | then | 389 | then |
394 | pulse=0 | 390 | pulse=0 |
395 | fi | 391 | fi |
392 | if test "$pulse" = 1 | ||
393 | then | ||
394 | AC_DEFINE([HAVE_PULSE],[1],[Have libpulse(audio) library]) | ||
395 | fi | ||
396 | 396 | ||
397 | # check for libopus(audio) library | 397 | # check for libopus(audio) library |
398 | opus=0 | 398 | opus=0 |
@@ -442,9 +442,9 @@ then | |||
442 | AM_CONDITIONAL(BUILD_PULSE_HELPERS, false) | 442 | AM_CONDITIONAL(BUILD_PULSE_HELPERS, false) |
443 | AM_CONDITIONAL(BUILD_GST_HELPERS, false) | 443 | AM_CONDITIONAL(BUILD_GST_HELPERS, false) |
444 | else | 444 | else |
445 | conversation_backend=gst | 445 | conversation_backend=gst |
446 | AM_CONDITIONAL(BUILD_PULSE_HELPERS, false) | 446 | AM_CONDITIONAL(BUILD_PULSE_HELPERS, false) |
447 | AM_CONDITIONAL(BUILD_GST_HELPERS, true) | 447 | AM_CONDITIONAL(BUILD_GST_HELPERS, true) |
448 | fi | 448 | fi |
449 | else | 449 | else |
450 | conversation_backend=pulse | 450 | conversation_backend=pulse |
@@ -460,6 +460,7 @@ then | |||
460 | AC_DEFINE([HAVE_LIBGNURL],[1],[Have libgnurl]) | 460 | AC_DEFINE([HAVE_LIBGNURL],[1],[Have libgnurl]) |
461 | else | 461 | else |
462 | AM_CONDITIONAL(HAVE_LIBGNURL, false) | 462 | AM_CONDITIONAL(HAVE_LIBGNURL, false) |
463 | AC_DEFINE([HAVE_LIBGNURL],[0],[Lacking libgnurl]) | ||
463 | fi | 464 | fi |
464 | 465 | ||
465 | SAVE_CPPFLAGS=$CPPFLAGS | 466 | SAVE_CPPFLAGS=$CPPFLAGS |