From: Frank Mori Hess Date: Mon, 12 Jun 2006 01:02:12 +0000 (+0000) Subject: Patch from abbotti@mev.co.uk (Ian Abbott): X-Git-Tag: r0_7_71~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4ef7df4122cf7f74e42fac893359143a68f90032;p=comedi.git Patch from abbotti@mev.co.uk (Ian Abbott): Sometimes USB support breaks due to API changes in 2.6 or vendor patches (e.g. Fedora Core 5's 2.6.15 kernel), so it would be useful to have a configure option to disable it, like there is for PCMCIA. --- diff --git a/configure.ac b/configure.ac index 0da9c48a..cd4d921b 100644 --- a/configure.ac +++ b/configure.ac @@ -74,12 +74,19 @@ else AC_MSG_NOTICE([PCMCIA support disabled]) AM_CONDITIONAL(CONFIG_PCMCIA,false) fi +AC_ARG_ENABLE([usb],[ --disable-usb Disable support for USB devices], + [ENABLE_USB=$enableval],[ENABLE_USB="yes"]) +if test "$ENABLE_USB" = "yes" ; then + AS_LINUX_CONFIG_OPTION_MODULE(CONFIG_USB) +else + AC_MSG_NOTICE([USB support disabled]) + AM_CONDITIONAL(CONFIG_USB,false) +fi AC_ARG_ENABLE([kbuild], [ --enable-kbuild Build modules using kernel's kbuild system (needs recent 2.6 kernel)], [ENABLE_KBUILD=$enableval], [ENABLE_KBUILD="no"]) AM_CONDITIONAL([CONFIG_KBUILD], [test ${ENABLE_KBUILD} = "yes"]) AS_LINUX_CONFIG_OPTION_MODULE(CONFIG_ISA) AS_LINUX_CONFIG_OPTION_MODULE(CONFIG_PCI) -AS_LINUX_CONFIG_OPTION_MODULE(CONFIG_USB) AC_DEFINE(CONFIG_COMEDI_DEBUG, true, [Define if debugging is enabled]) AC_DEFINE(CONFIG_COMEDI_8255, true, [Define if 8255 support is enabled])