summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e9d9a0e)
If the yaml libraries are not found, the error is fatal, and prevents
the sources from being packaged.
This check is unnecessary when sources are being packaged, so this patch
disables the test when configure is run with --enable-dist.
Change-Id: I160e0d54efc59480d2f830607467dbc9f34c9de3
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-on: https://review.whamcloud.com/34812
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
# fail to build if libyaml is not installed
#
AC_DEFUN([LN_CONFIG_DLC], [
# fail to build if libyaml is not installed
#
AC_DEFUN([LN_CONFIG_DLC], [
- AC_CHECK_LIB([yaml], [yaml_parser_initialize],
- [LIBYAML="libyaml"],
- [AC_MSG_ERROR([YAML development libraries not not installed])],
- [-lm])
+ AS_IF([test "x$enable_dist" = xno], [
+ AC_CHECK_LIB([yaml], [yaml_parser_initialize],
+ [LIBYAML="libyaml"],
+ [AC_MSG_ERROR([YAML development libraries not not installed])],
+ [-lm])
+ ])