From 4cc2a228ac6ec3511640009ac1dac5d73bf78d47 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Thu, 21 Feb 2013 15:39:10 +0000 Subject: [PATCH] as-linux.m4: update AS_LINUX_OVERRIDE_KERNEL_RELEASE() Look for "${INCDIR}/generated/utsrelease.h" first, falling back to "${INCDIR}/linux/utsrelease.h" and then to "${INCDIR}/linux/version.h". Signed-off-by: Ian Abbott --- m4/as-linux.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index 84823436..e0363a09 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -240,7 +240,10 @@ dnl first argument is the Linux build directory AC_DEFUN([AS_LINUX_OVERRIDE_KERNEL_RELEASE], [ INCDIR="$1/include" - UTSINC="${INCDIR}/linux/utsrelease.h" + UTSINC="${INCDIR}/generated/utsrelease.h" + if ! test -f "${UTSINC}"; then + UTSINC="${INCDIR}/linux/utsrelease.h" + fi if ! test -f "${UTSINC}"; then UTSINC="${INCDIR}/linux/version.h" fi -- 2.26.2