Update of /cvsroot/alsa/alsa-driver
In directory usw-pr-cvs1:/tmp/cvs-serv31824

Modified Files:
        configure.in 
Log Message:
use macro to check and fake the kernel headers.



Index: configure.in
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/configure.in,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- configure.in        4 Oct 2002 12:44:56 -0000       1.123
+++ configure.in        10 Oct 2002 10:58:22 -0000      1.124
@@ -150,39 +150,28 @@
 AC_SUBST(kextraversion)
 AC_MSG_RESULT($kaversion)
 
-dnl Check for linux/pm.h...
-AC_MSG_CHECKING(for kernel linux/pm.h)
-if test -f $CONFIG_SND_KERNELDIR/include/linux/pm.h; then
-  AC_MSG_RESULT("yes")
-  if test -f include/linux/pm.h; then
-    echo "Removing a dummy linux/pm.h."
-    rm -f include/linux/pm.h
+AC_DEFUN(CHECK_KERNEL_HEADER, [
+  AC_MSG_CHECKING(for kenrel $1)
+  if test -f "$CONFIG_SND_KERNELDIR/include/$1"; then
+    AC_MSG_RESULT("yes")
+    if test -f include/$1; then
+      echo "Removing a dummy $1."
+      rm -f include/$1
+    fi
+  else
+    AC_MSG_RESULT("no")
+    if test ! -f include/$1; then
+      echo "Creating a dummy <$1>..."
+      mkdir -p include/linux
+      touch include/$1
+    fi
   fi
-else
-  AC_MSG_RESULT("no")
-  if test ! -f include/linux/pm.h; then
-    echo "Creating a dummy <linux/pm.h>..."
-    mkdir -p include/linux
-    touch include/linux/pm.h
-  fi
-fi
+])
 
-dnl Check for linux/spinlock.h...
-AC_MSG_CHECKING(for kernel linux/spinlock.h)
-if test -f $CONFIG_SND_KERNELDIR/include/linux/spinlock.h; then
-  AC_MSG_RESULT("yes")
-  if test -f include/linux/spinlock.h; then
-    echo "Removing a dummy linux/spinlock.h."
-    rm -f include/linux/pm.h
-  fi
-else
-  AC_MSG_RESULT("no")
-  if test ! -f include/linux/spinlock.h; then
-    echo "Creating a dummy <linux/spinlock.h>..."
-    mkdir -p include/linux
-    touch include/linux/spinlock.h
-  fi
-fi
+dnl Check kernel headers for 2.2
+CHECK_KERNEL_HEADER(linux/pm.h)
+CHECK_KERNEL_HEADER(linux/spinlock.h)
+CHECK_KERNEL_HEADER(linux/irq.h)
 
 dnl Check for modversions...
 AC_MSG_CHECKING(for kernel module symbol versions)



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to