AC_ARG_ENABLE(extN, [ --enable-extN use extN instead of ext3 for lustre backend])
AM_CONDITIONAL(EXTN, test x$enable_extN = xyes)
+# specify wether to build doc or not
+AC_ARG_ENABLE(doc, [ --disable-doc skip creation of pdf documentation],
+ [
+ if test x$enable_doc = xyes ; then
+ ENABLE_DOC=1
+ else
+ ENABLE_DOC=0
+ fi
+ ],
+ [ ENABLE_DOC=0 ])
+AM_CONDITIONAL(DOC, test x$ENABLE_DOC = x1)
+AC_SUBST(ENABLE_DOC)
+
# the pinger is temporary, until we have the recovery node in place
-AC_ARG_ENABLE(pinger, [ --enable-pinger recovery pinger support])
-if test x$enable_pinger = xyes ; then
+AC_ARG_ENABLE(pinger, [ --disable-pinger disable recovery pinger support])
+if test x$enable_pinger != xno ; then
AC_DEFINE(ENABLE_PINGER, 1, Use the Pinger)
fi
-# very experimental orphan support
-AC_ARG_ENABLE(orphans, [ --enable-orphans very experimental orphan recovery support])
-if test x$enable_orphans = xyes ; then
- AC_DEFINE(ENABLE_ORPHANS, 1, Compile with orphan support)
-fi
-
AC_ARG_WITH(obd-buffer-size, [ --with-obd-buffer-size=[size] set lctl ioctl maximum bytes (default=8192)],OBD_BUFFER_SIZE=$with_obd_buffer_size,OBD_BUFFER_SIZE=8192)
AC_DEFINE_UNQUOTED(OBD_MAX_IOCTL_BUFFER, $OBD_BUFFER_SIZE, [IOCTL Buffer Size])
fi
AC_SUBST(SYSIO)
+# snap compilation
+AC_ARG_ENABLE(snapfs, [ --enable-snapfs build snapfs])
+AM_CONDITIONAL(SNAPFS, test x$enable_snapfs = xyes)
+
+# smfs compilation
+AC_ARG_ENABLE(smfs, [ --enable-smfs build smfs])
+AM_CONDITIONAL(SMFS, test x$enable_smfs = xyes)
+
+
+
sinclude(portals/build.m4)
sinclude(portals/archdep.m4)
lov/Makefile osc/Makefile mdc/Makefile mds/Makefile ost/Makefile \
cobd/Makefile ptlbd/Makefile conf/Makefile tests/Makefile \
utils/Makefile utils/Lustre/Makefile obdfilter/Makefile \
- obdclass/Makefile include/Makefile include/linux/Makefile llite/Makefile doc/Makefile scripts/Makefile \
+ obdclass/Makefile smfs/Makefile snapfs/Makefile snapfs/utils/Makefile \
+ include/Makefile include/linux/Makefile llite/Makefile doc/Makefile scripts/Makefile \
scripts/lustre.spec])