[PATCH 6/7] clean up io-failure-emulation logic a bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use standard autoconf macros rather than open coding the logic.

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 configure.ac | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8f280a6..14d7563 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,12 +98,11 @@ fi
 
 dnl Never enable this. It is for debugging only
 AC_ARG_ENABLE(io-failure-emulation,
-[  --enable-io-failure-emulation      Never use that. It is for debugging only],
-[ if test "$enableval" = "yes" ; then
-    echo -e "\nCarefull! IO failure emulation is ON\n"
-    AC_DEFINE(IO_FAILURE_EMULATION, 1, [gets set when configure --enable-io-failure-emulation])
-  fi
-])
+	[AS_HELP_STRING([--enable-io-failure-emulation], [Never use this. It is for debugging only])])
+if test "$enable_io_failure_emulation" = "yes" ; then
+	AC_MSG_WARN([Careful! IO failure emulation is ON])
+	AC_DEFINE(IO_FAILURE_EMULATION, 1, [gets set when configure --enable-io-failure-emulation])
+fi
 
 if test "x$ac_cv_wno_unused_parameter_flag" = xyes; then
 	CFLAGS="$CFLAGS -Wno-unused-parameter"
-- 
1.7.12

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux