Update of /cvsroot/alsa/alsa-driver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27463

Modified Files:
        configure.in 
Log Message:
Show correct default kernel directory

Index: configure.in
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/configure.in,v
retrieving revision 1.240
retrieving revision 1.241
diff -u -r1.240 -r1.241
--- configure.in        3 Apr 2004 09:40:55 -0000       1.240
+++ configure.in        4 Apr 2004 19:07:31 -0000       1.241
@@ -63,15 +63,16 @@
 
 dnl Check for directory with kernel source...
 AC_MSG_CHECKING(for directory with kernel source)
+if test -d "/lib/modules/`uname -r`/build" -o -L "/lib/modules/`uname -r`/build"; then
+  DEFAULT_KERNEL_DIR="/lib/modules/`uname -r`/build"
+else
+  DEFAULT_KERNEL_DIR="/usr/src/linux"
+fi
 AC_ARG_WITH(kernel,
   [  --with-kernel=dir       give the directory with kernel sources]
   [                        [/usr/src/linux]],
   kerneldir="$withval",
-  if test -d "/lib/modules/`uname -r`/build" -o -L "/lib/modules/`uname -r`/build"; 
then
-    kerneldir="/lib/modules/`uname -r`/build"
-  else
-    kerneldir="/usr/src/linux"
-  fi
+  kerneldir="$DEFAULT_KERNEL_DIR"
 )
 AC_DEFINE_UNQUOTED(CONFIG_SND_KERNELDIR, "$kerneldir")
 CONFIG_SND_KERNELDIR="$kerneldir"
@@ -85,7 +86,7 @@
 The file $CONFIG_SND_KERNELDIR/include/linux/version.h does not exist.
 Please, install the package with full kernel sources for your distribution
 or use --with-kernel=dir option to specify another directory with kernel
-sources (default is /usr/src/linux).
+sources (default is $DEFAULT_KERNEL_DIR).
 EOF
   exit 1
 fi



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to