+dnl handle --enable-jfs-debug
+dnl
+AC_ARG_ENABLE([jfs-debug],
+[ --enable-jfs-debug enable journal debugging],
+if test "$enableval" = "no"
+then
+ echo "Disabling journal debugging"
+else
+ AC_DEFINE(CONFIG_JBD_DEBUG)
+ echo "Enabling journal debugging"
+fi
+,
+echo "Disabling journal debugging by default"
+)
+dnl
+dnl handle --enable-swapfs
+dnl
+AC_ARG_ENABLE([swapfs],
+[ --disable-swapfs disable support of legacy byte-swapped filesystems],
+if test "$enableval" = "no"
+then
+ echo "Disabling swapfs support"
+else
+ AC_DEFINE(ENABLE_SWAPFS)
+ echo "Enabling swapfs support"
+fi
+,
+echo "Enabling swapfs support by default"
+AC_DEFINE(ENABLE_SWAPFS)
+)
+dnl
+dnl handle --enable-debugfs
+dnl
+AC_ARG_ENABLE([debugfs],
+[ --disable-debugfs disable support of debugfs program],
+if test "$enableval" = "no"
+then
+ echo "Disabling debugfs support"
+ DEBUGFS_CMT="#"
+else
+ DEBUGFS_CMT=
+ echo "Enabling debugfs support"
+fi
+,
+echo "Enabling debugfs support by default"
+DEBUGFS_CMT=
+)
+AC_SUBST(DEBUGFS_CMT)
+dnl
+dnl handle --enable-imager