clean up io-failure-emulation logic a bit

Use standard autoconf macros rather than open coding the logic.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
Mike Frysinger authored and Jeff Mahoney committed 2012-10-30 17:51:38 -04:00
1 parent 942e488bcd
commit ecb8f6ed3c
1 file changed
+5 -6
+5 -6
View File
@@ -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"