Whamcloud - gitweb
EX-4889 configure script does not check for required build tools
authorAlex Deiter <alex.deiter@gmail.com>
Thu, 24 Feb 2022 12:15:32 +0000 (12:15 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Mar 2022 18:12:47 +0000 (18:12 +0000)
- added check for flex and bison
- added requirement for build kernel modules

Change-Id: I4f4f19ea44f3cd8f69482d950970bf701e81f7ec
Signed-off-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-on: https://review.whamcloud.com/46602
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
config/lustre-build.m4
configure.ac

index cb89250..719957d 100644 (file)
@@ -172,6 +172,8 @@ AC_ARG_ENABLE([modules],
 AC_MSG_RESULT([$enable_modules ($target_os)])
 
 AS_IF([test "x$enable_modules" = xyes], [
+       AS_IF([test "x$FLEX" = "x"], [AC_MSG_ERROR([flex package is required to build kernel modules])])
+       AS_IF([test "x$BISON" = "x"], [AC_MSG_ERROR([bison package is required to build kernel modules])])
        AS_CASE([$target_os],
                [linux*], [
                        # Run serial tests
index 16e9ee8..ea8aea7 100644 (file)
@@ -17,6 +17,8 @@ AC_PROG_LIBTOOL
 AC_PROG_MKDIR_P
 AM_PROG_AS
 
+AC_PATH_PROG(FLEX, flex)
+AC_PATH_PROG(BISON, bison)
 AC_PATH_PROG(RPMBUILD, rpmbuild)
 AC_CHECK_TOOLS(AR, ar)