[parted-devel] [PATCH 1/3] Make device mapper support default.

Joel Granados Moreno jgranado at redhat.com
Thu May 14 17:06:53 UTC 2009


Device mapper is more or less ubiquitous and therefore should be
default when parted is built.
* configure.ac : Make device-mapper support default.
---
 configure.ac |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 53d88b5..d8a18e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,10 +79,10 @@ if test "$enable_mtrace" = yes; then
 fi
 
 AC_SUBST([ENABLE_DEVICE_MAPPER])
-ENABLE_DEVICE_MAPPER=no
+ENABLE_DEVICE_MAPPER=yes
 AC_ARG_ENABLE([device-mapper],
-	[  --enable-device-mapper  enable device mapper support [default=no]],
-	[ENABLE_DEVICE_MAPPER=yes])
+	[  --enable-device-mapper  enable device mapper support [default=yes]],
+	[ENABLE_DEVICE_MAPPER=$enable_device_mapper])
 if test $ENABLE_DEVICE_MAPPER = yes; then
 	AC_DEFINE([ENABLE_DEVICE_MAPPER],
                   1, [device mapper (libdevmapper) support])
@@ -258,8 +258,17 @@ DM_LIBS=
 if test $ENABLE_DEVICE_MAPPER = yes; then
   AC_CHECK_LIB([devmapper], [dm_task_create],
     [DM_LIBS=-ldevmapper],
-    [AC_MSG_ERROR([libdevmapper not found!  Try using --disable-device-mapper])
-      ])
+    [AC_MSG_ERROR(
+libdevmapper could not be found which is required for the
+--enable-device-mapper option (which is enabled by default).  Either disable
+device-mapper support with --disable-device-mapper or download and install
+device-mapper from:
+	http://sources.redhat.com/dm/
+Note: if you are using precompiled packages you will also need the development
+  package as well (which may be called device-mapper-devel or something
+  similar).
+    )]
+  )
 fi
 AC_SUBST([DM_LIBS])
 
-- 
1.6.0.6




More information about the parted-devel mailing list