From: Ian Abbott Date: Wed, 22 Oct 2008 15:56:03 +0000 (+0000) Subject: Update test for separate Linux source and build directories X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6d2623ff9eb7e20e20455a8a2860a19f0b0ea4a8;p=comedi.git Update test for separate Linux source and build directories (it broke for 2.6.25 onwards). --- diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index 62d62086..d0a7c142 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -180,6 +180,10 @@ AC_DEFUN([AS_LINUX_SRC_DIR], if test "${LINUX_SRC_DIR}" = "default" ; then AC_MSG_CHECKING(for separate Linux source and build directory) dir=`sed -n -e 's/^KERNELSRC *:= *\(.*\)/\1/p' "$1/Makefile"` + if test -z "$dir"; then + # 2.6.25 + dir=`sed -n -e 's/^MAKEARGS *:= *-C *\(.*\)/\1/p' "$1/Makefile"` + fi if test -z "$dir"; then AC_MSG_RESULT([no]) LINUX_SRC_DIR="$1"