Updated library names and paths due to zfs-lustre changes.
Updated lustrecvs to show helpful message if mercurial is missing.
Changed default zfs-lustre path from zfs-lustre/ to lustre/zfs-lustre/.
Added paths of zfs-lustre tools to test-framework.sh.
b=14778
i=alex.zhuravlev
i=manoj.joseph
#
# LB_PATH_DMU
-# Support for --with-dmu
#
AC_DEFUN([LB_PATH_DMU],
[AC_MSG_CHECKING([whether to enable DMU])
-AC_ARG_WITH([dmu],
- AC_HELP_STRING([--with-dmu=path],
- [set path to a DMU tree (default is included zfs-lustre)]),
- [
- DMU_SRC=$with_dmu
- ],
- [
- DMU_SRC="$PWD/zfs-lustre"
- ])
if test x$enable_uoss = xyes -a x$enable_posix_osd != xyes; then
+ DMU_SRC="$PWD/lustre/zfs-lustre"
AC_DEFINE(DMU_OSD, 1, Enable DMU OSD)
AC_MSG_RESULT([yes])
LB_CHECK_FILE([$DMU_SRC/src/.patched],[],[
AC_MSG_ERROR([A complete (patched) DMU tree was not found.])
])
- AC_CONFIG_SUBDIRS(zfs-lustre)
+ AC_CONFIG_SUBDIRS(lustre/zfs-lustre)
dmu_osd='yes'
else
AC_MSG_RESULT([no])
cvs_cmd lustre lustre-core "$lustretag"
cvs_cmd ldiskfs ldiskfs "$ldiskfstag"
cvs_cmd lustre-iokit lustre-iokit "$lustreiokittag"
-hg_cmd zfs-lustre "$hg_base_url" "$dmutag"
+hg_cmd lustre/zfs-lustre "$hg_base_url" "$dmutag"
cvs_cmd libcfs libcfs "$libcfstag"
[ -a ldiskfs/build ] || ln -sf ../build ldiskfs/build
return
fi
+ if ! which hg &> /dev/null; then
+ cat <<EOF
+
+Error: Mercurial is missing, try 'yum install mercurial', 'apt-get install
+mercurial' or try http://rpmfind.net/linux/rpm2html/search.php?query=mercurial
+EOF
+ error_modules="$dir $error_modules"
+ return
+ fi
+
url="$base_url/$repository"
# create a cvs date format that will survive shell expansion