From 2aa398f3aa907b71e1f827aec8e59d5dd081cb6f 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 118f1d8dc..7330c00e1 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -275,7 +275,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"], [ -- 2.40.0