openbsd-ports/multimedia/transcode/patches/patch-acinclude_m4
jakemsr 8df3585b3b - add sndio recording support
- drop sun audio support
- allow non-filenames for audio input names
with feedback from ratchov@
2010-01-11 08:49:27 +00:00

43 lines
1.1 KiB
Plaintext

$OpenBSD: patch-acinclude_m4,v 1.1 2010/01/11 08:49:27 jakemsr Exp $
--- acinclude.m4.orig Sat Oct 31 09:39:02 2009
+++ acinclude.m4 Wed Jan 6 01:37:50 2010
@@ -271,6 +271,38 @@ if test x"$enable_sunau" = x"yes" ; then
ifelse([$1], , :, [$1])
else
AC_MSG_ERROR([sunau is requested, but cannot find headers])
+ fi
+fi
+])
+
+dnl -----------------------------------------------------------------------
+
+dnl TC_CHECK_SNDIO([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
+dnl Test for sndio headers
+dnl
+AC_DEFUN([TC_CHECK_SNDIO],
+[
+AC_MSG_CHECKING([whether sndio support is requested])
+AC_ARG_ENABLE(sndio,
+ AC_HELP_STRING([--enable-sndio],
+ [enable sndio support (no)]),
+ [case "${enableval}" in
+ yes) ;;
+ no) ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-sndio) ;;
+ esac],
+ [enable_sndio=no])
+AC_MSG_RESULT($enable_sndio)
+
+have_sndio="no"
+if test x"$enable_sndio" = x"yes" ; then
+ AC_CHECK_HEADERS([sndio.h], [have_sndio="yes"])
+
+ if test x"$have_sndio" = x"yes" ; then
+ have_sndio="yes"
+ ifelse([$1], , :, [$1])
+ else
+ AC_MSG_ERROR([sndio is requested, but cannot find headers])
fi
fi
])