comparison configure @ 22948:0f9bd35f971a

Rework of *BSD BT848 detection for radio:// to reuse recently added BT848 interface headers detection code.
author voroshil
date Wed, 11 Apr 2007 05:39:09 +0000
parents da61a88adf63
children bff0a6f9bfc0
comparison
equal deleted inserted replaced
22947:ca7c2ec2c66b 22948:0f9bd35f971a
6874 _def_radio_v4l='#undef HAVE_RADIO_V4L' 6874 _def_radio_v4l='#undef HAVE_RADIO_V4L'
6875 fi 6875 fi
6876 echores "$_radio_v4l" 6876 echores "$_radio_v4l"
6877 6877
6878 if bsd && test "$_radio" = yes && test "$_radio_bsdbt848" = auto ; then 6878 if bsd && test "$_radio" = yes && test "$_radio_bsdbt848" = auto ; then
6879 echocheck "*BSD BrookTree 848 Radio interface header" 6879 echocheck "*BSD BrookTree 848 Radio interface"
6880 for file in "dev/ic/bt8xx.h" \ 6880 _radio_bsdbt848=no
6881 "machine/ioctl_bt848.h" \
6882 "dev/bktr/ioctl_bt848.h" \
6883 "dev/video/bktr/ioctl_bt848.h" ; do
6884 cat > $TMPC <<EOF 6881 cat > $TMPC <<EOF
6885 #include <sys/types.h> 6882 #include <sys/types.h>
6886 #include <$file> 6883 $_def_ioctl_bt848_h_name
6887 int main(void) { return 0; } 6884 #ifdef IOCTL_BT848_H_NAME
6888 EOF 6885 #include IOCTL_BT848_H_NAME
6889 cc_check && _radio_bsdbt848_hdr=$file 6886 #endif
6890 done 6887 int main(void){
6891 echores "$_radio_bsdbt848_hdr" 6888 ioctl(0, RADIO_GETFREQ, 0);
6889 return 0;
6890 }
6891 EOF
6892 cc_check && _radio_bsdbt848=yes
6893 echores "$_radio_bsdbt848"
6892 fi #if bsd && radio && radio_bsdbt848 6894 fi #if bsd && radio && radio_bsdbt848
6893 6895
6894 if test -n "$_radio_bsdbt848_hdr" ; then 6896 if test "$_radio_bsdbt848" = yes ; then
6895 _def_radio_bsdbt848="#define RADIO_BSDBT848_HDR <$_radio_bsdbt848_hdr>" 6897 _def_radio_bsdbt848='#define HAVE_RADIO_BSDBT848 1'
6896 else 6898 else
6897 _def_radio_bsdbt848='#undef RADIO_BSDBT848_HDR ' 6899 _def_radio_bsdbt848='#undef HAVE_RADIO_BSDBT848'
6898 fi 6900 fi
6899 6901
6900 if test "$_radio_v4l" = no && test "$_radio_v4l2" = no && \ 6902 if test "$_radio_v4l" = no && test "$_radio_v4l2" = no && \
6901 test -z "$_radio_bsdbt848_hdr" && test "$_radio" = yes ; then 6903 test "$_radio_bsdbt848" = no && test "$_radio" = yes ; then
6902 die "Radio driver requires BSD BT848, V4L or V4L2!" 6904 die "Radio driver requires BSD BT848, V4L or V4L2!"
6903 fi 6905 fi
6904 6906
6905 echocheck "Video 4 Linux 2 MPEG PVR interface" 6907 echocheck "Video 4 Linux 2 MPEG PVR interface"
6906 if test "$_pvr" = auto ; then 6908 if test "$_pvr" = auto ; then