From 283af72cd819c32f7fe6a182f06fecb7dfa00bb8 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 4 Feb 2008 16:47:54 +0000 Subject: [PATCH] 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. --- m4/as-linux.m4 | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.26.2