From 14a5e48fb92210541ffd04081c313f4d6061a4d9 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Wed, 5 Dec 2018 12:31:44 -0500 Subject: [PATCH] Use autoconf variable for C preprocessor This fixes the build when cross-compiling, where the preprocessor might be prefixed. Reviewed-by: George Melikov Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: Ben Wolsieffer Closes #8180 --- config/kernel.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/kernel.m4 b/config/kernel.m4 index 3777f45c8..8f0a65666 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -255,7 +255,7 @@ AC_DEFUN([ZFS_AC_KERNEL], [ AS_IF([test "$utsrelease"], [ kernsrcver=`(echo "#include <$utsrelease>"; echo "kernsrcver=UTS_RELEASE") | - cpp -I $kernelbuild/include | + ${CPP} -I $kernelbuild/include - | grep "^kernsrcver=" | cut -d \" -f 2` AS_IF([test -z "$kernsrcver"], [