From: Alex Deiter Date: Fri, 24 Jun 2022 05:55:58 +0000 (-0700) Subject: LU-15967 build: configure script does not check for required build tools X-Git-Tag: 2.15.51~87 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=121a79651fc77e5c596716972fb58da7e93f7075 LU-15967 build: configure script does not check for required build tools - added check for flex and bison - added requirement for build kernel modules Change-Id: I4f4f19ea44f3cd8f69482d950970bf701e81f7ec Signed-off-by: Alex Deiter Reviewed-on: https://review.whamcloud.com/47744 Tested-by: jenkins Reviewed-by: James Simmons Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/config/lustre-build.m4 b/config/lustre-build.m4 index 6a28127..fdae513 100644 --- a/config/lustre-build.m4 +++ b/config/lustre-build.m4 @@ -155,6 +155,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 diff --git a/configure.ac b/configure.ac index 16e9ee8..ea8aea7 100644 --- a/configure.ac +++ b/configure.ac @@ -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)