mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
configure.ac: OSS portability
Original commit message from CVS: * configure.ac: OSS portability * ext/arts/gst_arts.c: idem * sys/oss/gstosselement.c: idem * sys/oss/gstossmixer.c: idem * sys/oss/gstosssink.c: idem * sys/oss/gstosssrc.c: idem * sys/oss/oss_probe.c: idem - check for soundcard.h in different places for some BSD
This commit is contained in:
parent
c4ce805afa
commit
2a6e591f90
3 changed files with 43 additions and 2 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2004-06-07 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
|
||||
|
||||
* configure.ac: OSS portability
|
||||
* ext/arts/gst_arts.c: idem
|
||||
* sys/oss/gstosselement.c: idem
|
||||
* sys/oss/gstossmixer.c: idem
|
||||
* sys/oss/gstosssink.c: idem
|
||||
* sys/oss/gstosssrc.c: idem
|
||||
* sys/oss/oss_probe.c: idem
|
||||
- check for soundcard.h in different places for some BSD
|
||||
|
||||
2004-06-07 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
* AUTHORS:
|
||||
Add me to the authors file
|
||||
|
|
20
configure.ac
20
configure.ac
|
@ -446,10 +446,26 @@ GST_CHECK_FEATURE(DXR3, [DXR3 hardware MPEG DVD decoder],
|
|||
HAVE_DXR3=no ] )
|
||||
])
|
||||
|
||||
dnl *** OSS audio ***
|
||||
dnl *** OSS audio *** (Linux, *BSD)
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_OSS, true)
|
||||
GST_CHECK_FEATURE(OSS, [OSS audio], osssrc osssink, [
|
||||
AC_CHECK_HEADER(sys/soundcard.h, HAVE_OSS="yes", HAVE_OSS="no")
|
||||
HAVE_OSS="yes"
|
||||
dnl Linux and newer BSD versions :
|
||||
AC_CHECK_HEADER(sys/soundcard.h, [
|
||||
AC_DEFINE(HAVE_OSS_INCLUDE_IN_SYS,, [Define if OSS includes are in /sys/])
|
||||
] , [
|
||||
dnl Some old BSD versions :
|
||||
AC_CHECK_HEADER(soundcard.h, [
|
||||
AC_DEFINE(HAVE_OSS_INCLUDE_IN_ROOT,, [Define if OSS includes are in /])
|
||||
], [
|
||||
dnl Some old BSD versions :
|
||||
AC_CHECK_HEADER(machine/soundcard.h, [
|
||||
AC_DEFINE(HAVE_OSS_INCLUDE_IN_MACHINE,, [Define if OSS includes are in /machine/])
|
||||
], [
|
||||
HAVE_OSS="no"
|
||||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
dnl *** OS X audio ***
|
||||
|
|
|
@ -22,7 +22,21 @@
|
|||
#endif
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifdef HAVE_OSS_INCLUDE_IN_SYS
|
||||
#include <sys/soundcard.h>
|
||||
#else
|
||||
|
||||
#ifdef HAVE_OSS_INCLUDE_IN_ROOT
|
||||
#include <soundcard.h>
|
||||
#else
|
||||
|
||||
#include <machine/soundcard.h>
|
||||
|
||||
#endif /* HAVE_OSS_INCLUDE_IN_ROOT */
|
||||
|
||||
#endif /* HAVE_OSS_INCLUDE_IN_SYS */
|
||||
|
||||
|
||||
/*#define DEBUG_ENABLED */
|
||||
#include "gst_arts.h"
|
||||
|
|
Loading…
Reference in a new issue