From: Ian Abbott Date: Fri, 22 May 2009 11:11:13 +0000 (+0000) Subject: When checking for separate Linux source and build directory, ignore any X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=051d8c7c7d4aeab8202c047c150cc0583cdde516;p=comedi.git When checking for separate Linux source and build directory, ignore any extra paramters after MAKEARGS := -C $(SOURCE_DIR). Fixes Debian bug #526707. --- diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index d0a7c142..c1fee7a9 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -182,7 +182,7 @@ AC_DEFUN([AS_LINUX_SRC_DIR], 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"` + dir=`sed -n -e 's/^MAKEARGS *:= *-C *\([^[:space:]]*\).*/\1/p' "$LINUX_DIR/Makefile"` fi if test -z "$dir"; then AC_MSG_RESULT([no])