From: Karel Zak Date: Wed, 31 May 2017 07:35:32 +0000 (+0200) Subject: build-sys: require kernel headers on Linux X-Git-Tag: v2.30~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a931412e34647c8bcddc6a6206b850af16a1a2d;p=thirdparty%2Futil-linux.git build-sys: require kernel headers on Linux Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 91c3dd544f..8bb7fb71e0 100644 --- a/configure.ac +++ b/configure.ac @@ -291,6 +291,7 @@ AC_CHECK_HEADERS([langinfo.h], dnl Convert some ac_cv_header_* variables to have_* dnl +have_linux_version_h=$ac_cv_header_linux_version_h have_linux_blkzoned_h=$ac_cv_header_linux_blkzoned_h have_linux_btrfs_h=$ac_cv_header_linux_btrfs_h have_linux_raw_h=$ac_cv_header_linux_raw_h @@ -303,6 +304,11 @@ have_shadow_h=$ac_cv_header_shadow_h have_sys_signalfd_h=$ac_cv_header_sys_signalfd_h have_utmpx_h=$ac_cv_header_utmpx_h +AS_CASE([$linux_os:$have_linux_version_h], + [yes:no], + [AC_MSG_ERROR([kernel headers required on Linux])] +) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include