Update of /cvsroot/alsa/alsa-driver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32394
Modified Files: configure.in Log Message: - added the detection of video_get_drvdata() to configure for older kernels. - fixed the condition of building fm801-tea575x support. Index: configure.in =================================================================== RCS file: /cvsroot/alsa/alsa-driver/configure.in,v retrieving revision 1.220 retrieving revision 1.221 diff -u -r1.220 -r1.221 --- configure.in 30 Jan 2004 15:13:58 -0000 1.220 +++ configure.in 30 Jan 2004 16:13:33 -0000 1.221 @@ -1162,6 +1162,32 @@ AC_DEFINE(CONFIG_HAVE_TTY_COUNT_ATOMIC) fi +dnl Check for video_get_drvdata() +if test "$CONFIG_VIDEO_DEV" = "y"; then +AC_MSG_CHECKING(for video_get_drvdata) +video_get_drvdata="0" +ac_save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS $KERNEL_INC" +AC_TRY_COMPILE([ +#define __KERNEL__ +#include "$CONFIG_SND_KERNELDIR/include/linux/config.h" +#include "$CONFIG_SND_KERNELDIR/include/linux/videodev.h" +],[ + void (*func)(struct video_device *); + func = video_get_drvdata; +], + AC_MSG_RESULT("yes");video_get_drvdata="1", + AC_MSG_RESULT("no");video_get_drvdata="0", + AC_MSG_RESULT("unknown");video_get_drvdata="0" +) +CFLAGS=$ac_save_CFLAGS +CONFIG_HAVE_VIDEO_GET_DRVDATA=$video_get_drvdata +dnl AC_SUBST(CONFIG_HAVE_VIDEO_GET_DRVDATA) +if test "$CONFIG_HAVE_VIDEO_GET_DRVDATA" = "1"; then + AC_DEFINE(CONFIG_HAVE_VIDEO_GET_DRVDATA) +fi +fi + dnl check only on 2.2 kernel.. if test $kpatchlevel -le 2; then ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog