diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-11 05:39:09 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-11 05:39:09 +0000 |
commit | fe5f586f118cfaf9a904834015ea4b811c2999e0 (patch) | |
tree | 3307599691f43a9cd86a93421eaf4c98eece35d9 /configure | |
parent | 6b925eca4f9821f300603de179ebab617b9a3c5b (diff) | |
download | mpv-fe5f586f118cfaf9a904834015ea4b811c2999e0.tar.bz2 mpv-fe5f586f118cfaf9a904834015ea4b811c2999e0.tar.xz |
Rework of *BSD BT848 detection for radio://
to reuse recently added BT848 interface headers detection
code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22966 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 30 |
1 files changed, 16 insertions, 14 deletions
@@ -6876,29 +6876,31 @@ fi echores "$_radio_v4l" if bsd && test "$_radio" = yes && test "$_radio_bsdbt848" = auto ; then -echocheck "*BSD BrookTree 848 Radio interface header" - for file in "dev/ic/bt8xx.h" \ - "machine/ioctl_bt848.h" \ - "dev/bktr/ioctl_bt848.h" \ - "dev/video/bktr/ioctl_bt848.h" ; do +echocheck "*BSD BrookTree 848 Radio interface" + _radio_bsdbt848=no cat > $TMPC <<EOF #include <sys/types.h> -#include <$file> -int main(void) { return 0; } +$_def_ioctl_bt848_h_name +#ifdef IOCTL_BT848_H_NAME +#include IOCTL_BT848_H_NAME +#endif +int main(void){ + ioctl(0, RADIO_GETFREQ, 0); + return 0; +} EOF - cc_check && _radio_bsdbt848_hdr=$file - done -echores "$_radio_bsdbt848_hdr" + cc_check && _radio_bsdbt848=yes +echores "$_radio_bsdbt848" fi #if bsd && radio && radio_bsdbt848 -if test -n "$_radio_bsdbt848_hdr" ; then - _def_radio_bsdbt848="#define RADIO_BSDBT848_HDR <$_radio_bsdbt848_hdr>" +if test "$_radio_bsdbt848" = yes ; then + _def_radio_bsdbt848='#define HAVE_RADIO_BSDBT848 1' else - _def_radio_bsdbt848='#undef RADIO_BSDBT848_HDR ' + _def_radio_bsdbt848='#undef HAVE_RADIO_BSDBT848' fi if test "$_radio_v4l" = no && test "$_radio_v4l2" = no && \ - test -z "$_radio_bsdbt848_hdr" && test "$_radio" = yes ; then + test "$_radio_bsdbt848" = no && test "$_radio" = yes ; then die "Radio driver requires BSD BT848, V4L or V4L2!" fi |