Mercurial > mplayer.hg
comparison configure @ 7967:9e79e1c1b2a4
don't use soundcard.h on non-linux if no OSS support
(based on idea & bugreport by Bj«Órn Sandell <biorn@dce.chalmers.se>)
author | arpi |
---|---|
date | Tue, 29 Oct 2002 23:07:41 +0000 |
parents | af50b41f0af8 |
children | bd100a3d486f |
comparison
equal
deleted
inserted
replaced
7966:a03235a5f395 | 7967:9e79e1c1b2a4 |
---|---|
1843 #include <soundcard.h> | 1843 #include <soundcard.h> |
1844 int main(void) { return 0; } | 1844 int main(void) { return 0; } |
1845 EOF | 1845 EOF |
1846 _soundcard=no | 1846 _soundcard=no |
1847 cc_check && _soundcard=yes | 1847 cc_check && _soundcard=yes |
1848 if ! linux && test "$_ossaudio" = no ; then | |
1849 # we don't want touse soundcard.h on non-linux if no OSS support enabled! | |
1850 echores "$_soundcard, but ignored!" | |
1851 _soundcard=no | |
1852 else | |
1853 echores "$_soundcard" | |
1854 fi | |
1848 if test "$_soundcard" = yes ; then | 1855 if test "$_soundcard" = yes ; then |
1849 _def_soundcard='#define HAVE_SOUNDCARD_H 1' | 1856 _def_soundcard='#define HAVE_SOUNDCARD_H 1' |
1850 _inc_soundcard='#include <soundcard.h>' | 1857 _inc_soundcard='#include <soundcard.h>' |
1851 else | 1858 else |
1852 _def_soundcard='#undef HAVE_SOUNDCARD_H' | 1859 _def_soundcard='#undef HAVE_SOUNDCARD_H' |
1853 fi | 1860 fi |
1854 echores "$_soundcard" | |
1855 else | 1861 else |
1856 _def_soundcard='#undef HAVE_SOUNDCARD_H' | 1862 _def_soundcard='#undef HAVE_SOUNDCARD_H' |
1857 fi | 1863 fi |
1858 | 1864 |
1859 echocheck "sys/dvdio.h" | 1865 echocheck "sys/dvdio.h" |