370 |
|
rm -f conf.esdtest |
371 |
|
]) |
372 |
|
|
373 |
+ |
dnl AM_ESD_SUPPORTS_MULTIPLE_RECORD([ACTION-IF-SUPPORTS [, ACTION-IF-NOT-SUPPORTS]]) |
374 |
+ |
dnl Test, whether esd supports multiple recording clients (version >=0.2.21) |
375 |
+ |
dnl |
376 |
+ |
AC_DEFUN(AM_ESD_SUPPORTS_MULTIPLE_RECORD, |
377 |
+ |
[dnl |
378 |
+ |
AC_MSG_NOTICE([whether installed esd version supports multiple recording clients]) |
379 |
+ |
ac_save_ESD_CFLAGS="$ESD_CFLAGS" |
380 |
+ |
ac_save_ESD_LIBS="$ESD_LIBS" |
381 |
+ |
AM_PATH_ESD(0.2.21, |
382 |
+ |
ifelse([$1], , [ |
383 |
+ |
AM_CONDITIONAL(ESD_SUPPORTS_MULTIPLE_RECORD, true) |
384 |
+ |
AC_DEFINE(ESD_SUPPORTS_MULTIPLE_RECORD, 1, |
385 |
+ |
[Define if you have esound with support of multiple recording clients.])], |
386 |
+ |
[$1]), |
387 |
+ |
ifelse([$2], , [AM_CONDITIONAL(ESD_SUPPORTS_MULTIPLE_RECORD, false)], [$2]) |
388 |
+ |
if test "x$ac_save_ESD_CFLAGS" != x ; then |
389 |
+ |
ESD_CFLAGS="$ac_save_ESD_CFLAGS" |
390 |
+ |
fi |
391 |
+ |
if test "x$ac_save_ESD_LIBS" != x ; then |
392 |
+ |
ESD_LIBS="$ac_save_ESD_LIBS" |
393 |
+ |
fi |
394 |
+ |
) |
395 |
+ |
]) |
396 |
+ |
|
397 |
+ |
# Define a conditional. |
398 |
+ |
|
399 |
+ |
AC_DEFUN(AM_CONDITIONAL, |
400 |
+ |
[AC_SUBST($1_TRUE) |
401 |
+ |
AC_SUBST($1_FALSE) |
402 |
+ |
if $2; then |
403 |
+ |
$1_TRUE= |
404 |
+ |
$1_FALSE='#' |
405 |
+ |
else |
406 |
+ |
$1_TRUE='#' |
407 |
+ |
$1_FALSE= |
408 |
+ |
fi]) |
409 |
+ |
|