diff --git a/configure.ac b/configure.ac index 7a4238ed..534fbf3a 100644 --- a/configure.ac +++ b/configure.ac @@ -128,6 +128,8 @@ AC_ARG_ENABLE([e100], [enablee100=0] ) +AM_CONDITIONAL(ENABLE_E100, test "x$enablee100" = x1) + #------------------------------------------------------------------------------ # e100 Kernel #------------------------------------------------------------------------------ diff --git a/devices/Makefile.am b/devices/Makefile.am index f1dbda68..62fe81c1 100644 --- a/devices/Makefile.am +++ b/devices/Makefile.am @@ -51,7 +51,9 @@ modules: modules_install: mkdir -p $(DESTDIR)$(LINUX_MOD_PATH) cp $(srcdir)/ec_8139too.ko $(DESTDIR)$(LINUX_MOD_PATH) +if ENABLE_E100 cp $(srcdir)/ec_e100.ko $(DESTDIR)$(LINUX_MOD_PATH) +endif clean-local: $(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean