The official 2.15.1 source distribution does not contain
lutf.sh. As lustre.spec lists it (when LUTF is enabled) this causes a
build error.
It is likely not included because "./configure --enable-dist" was run
in a context where swig was not installed.
So when determining whether to enable lutf, first check for
enable_dist and in the case for enable_lutf="yes"
Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: If5f856985a6d642822baba4b6ee301c04f851217
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49382
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
# Check to see if we can build the lutf
#
AX_PYTHON_DEVEL()
-AS_IF([test "x$PYTHON_VERSION_CHECK" = xno], [
- enable_lutf="no"
+AS_IF([test "x$enable_dist" != xno], [
+ enable_lutf="yes"
], [
+ AS_IF([test "x$PYTHON_VERSION_CHECK" = xno], [
+ enable_lutf="no"
+ ], [
AX_PKG_SWIG(2.0, [ enable_lutf="yes" ],
[ enable_lutf="no" ])
+ ])
])
AC_MSG_RESULT([$enable_tests])