configure.ac: fix --enable/disable-kmod option
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 21 Jun 2016 20:29:38 +0000 (16:29 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 28 Jun 2016 19:47:15 +0000 (15:47 -0400)
Now all the following work as expected:

  * No option (defaults to --enable-kmod)
  * --disable-kmod
  * --enable-kmod
  * --enable-kmod=no
  * --enable-kmod=yes

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac

index ec1f7a07cae71ab6ca21e97fc874f69dfed1292f..e6370a4605c1c09b2ef9ae82f52a9f70365d5861 100644 (file)
@@ -394,7 +394,7 @@ AC_ARG_WITH(kmod-prefix,
 
 AC_ARG_ENABLE(kmod,
        AS_HELP_STRING([--disable-kmod],[build without kmod support]),
-       kmod_support=zz$enableval, kmod_support=yes)
+       kmod_support=$enableval, kmod_support=yes)
 
 AS_IF([test "x$kmod_support" = "xyes"], [
        AC_CHECK_LIB([kmod], [kmod_module_probe_insert_module],
This page took 0.025737 seconds and 4 git commands to generate.