1 dnl AX_KERNEL_VERSION(major, minor, level, comparison, action-if-true, action-if-false) 2 AC_DEFUN([AX_KERNEL_VERSION], [ 3 SAVE_CFLAGS=$CFLAGS 4 CFLAGS="-I$KINC -D__KERNEL__ -Werror" 5 AC_TRY_COMPILE( 6 [ 7 #include <linux/version.h> 8 ], 9 [ 10 #if LINUX_VERSION_CODE $4 KERNEL_VERSION($1, $2, $3) 11 break_me_hard(\\\); 12 #endif 13 ], 14 [$5],[$6],) 15 CFLAGS=$SAVE_CFLAGS 16 ]) 17