From: Ian Abbott Date: Mon, 4 Feb 2008 16:47:54 +0000 (+0000) Subject: For separate kernel source and build directories, allow the kernel build X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=283af72cd819c32f7fe6a182f06fecb7dfa00bb8;p=comedi.git For separate kernel source and build directories, allow the kernel build directory's Makefile to specify KERNELSRC using a relative path. This avoids having to use the --with-kernelsrcdir option when configuring Comedi for SuSE Linux's kernels. --- diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index 468b5596..74fcb416 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -185,6 +185,9 @@ AC_DEFUN([AS_LINUX_SRC_DIR], LINUX_SRC_DIR="$1" else AC_MSG_RESULT([yes]) + case "$dir" in + .*) dir="$1/$dir" ;; + esac AS_TRY_LINUX_SRC_DIR([${dir}], [LINUX_SRC_DIR=${dir}], ) fi fi