[sheepdog] [PATCH v4 8/8] sheepdev: add Makefile.in and modify configure.ac to adopt sheepdev
levin li
levin108 at gmail.com
Wed Jan 23 08:56:32 CET 2013
From: levin li <xingke.lwp at taobao.com>
Signed-off-by: levin li <xingke.lwp at taobao.com>
---
Makefile.am | 4 ++++
configure.ac | 9 +++++++++
2 files changed, 13 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 53d18b9..4db40bf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,6 +23,10 @@ if BUILD_SHEEPFS
SUBDIRS += sheepfs
endif
+if BUILD_SHEEPDEV
+SUBDIRS += sheepdev
+endif
+
install-exec-local:
$(INSTALL) -d $(DESTDIR)/${localstatedir}/lib/sheepdog
diff --git a/configure.ac b/configure.ac
index 9e03e23..0bc8d2e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -130,6 +130,7 @@ AC_CONFIG_FILES([Makefile
collie/Makefile
sheep/Makefile
sheepfs/Makefile
+ sheepdev/Makefile
include/Makefile
script/Makefile
lib/Makefile
@@ -213,6 +214,11 @@ AC_ARG_ENABLE([sheepfs],
[ enable_sheepfs=$HAVE_FUSE ],)
AM_CONDITIONAL(BUILD_SHEEPFS, test x$enable_sheepfs = xyes)
+AC_ARG_ENABLE([sheepdev],
+ [ --enable-sheepdev : enable sheepdev],,
+ [ enable_sheepdev="no" ],)
+AM_CONDITIONAL(BUILD_SHEEPDEV, test x$enable_sheepdev = xyes)
+
CP=cp
OS_LDL="-ldl"
case "$host_os" in
@@ -296,6 +302,9 @@ if test "x${enable_sheepfs}" = xyes; then
PACKAGE_FEATURES="$PACKAGE_FEATURES sheepfs"
fi
+if test "x${enable_sheepdev}" = xyes; then
+ PACKAGE_FEATURES="$PACKAGE_FEATURES sheepdev"
+fi
# extra warnings
EXTRA_WARNINGS=""
--
1.7.11.7
More information about the sheepdog
mailing list