Update of /cvsroot/alsa/alsa-driver
In directory sc8-pr-cvs1:/tmp/cvs-serv26098
Modified Files:
configure.in
Log Message:
Added tty->count atomic check
Index: configure.in
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/configure.in,v
retrieving revision 1.210
retrieving revision 1.211
diff -u -r1.210 -r1.211
--- configure.in 14 Dec 2003 10:26:54 -0000 1.210
+++ configure.in 8 Jan 2004 13:12:53 -0000 1.211
@@ -1106,6 +1106,29 @@
AC_DEFINE(CONFIG_HAVE_PCI_CONSISTENT_DMA_MASK)
fi
+dnl Check for tty->count is the atomic type
+AC_MSG_CHECKING(for tty->count is the atomic type)
+tty_count_atomic="0"
+ac_save_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS -Wall -I$CONFIG_SND_KERNELDIR/include"
+AC_TRY_COMPILE([
+#define __KERNEL__
+#include "$CONFIG_SND_KERNELDIR/include/linux/config.h"
+#include "$CONFIG_SND_KERNELDIR/include/linux/tty.h"
+],[
+ struct tty_struct tty;
+ atomic_read(&tty.count);
+],
+ AC_MSG_RESULT("yes");tty_count_atomic="1",
+ AC_MSG_RESULT("no");tty_count_atomic="0",
+ AC_MSG_RESULT("unknown");tty_count_atomic="0"
+)
+CFLAGS=$ac_save_CFLAGS
+CONFIG_HAVE_TTY_COUNT_ATOMIC=$tty_count_atomic
+if test "$CONFIG_HAVE_TTY_COUNT_ATOMIC" = "1"; then
+ AC_DEFINE(CONFIG_HAVE_TTY_COUNT_ATOMIC)
+fi
+
dnl check only on 2.2 kernel..
if test $kpatchlevel -le 2; then
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog