aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-05-24 15:19:16 -0400
committerJon Masters <jcm@jonmasters.org>2009-05-27 12:54:18 -0400
commit45fdbaae07a857bb1bd8bbb6d0e2b48a8b576683 (patch)
tree03e0c5bcb50526331aef18006c6827bdd00a7972
parent8cae9306a9723e0b126e6b93a639d26412c5e01b (diff)
downloadmodule-init-tools-45fdbaae07a857bb1bd8bbb6d0e2b48a8b576683.tar.gz
add configure option to disable creation of .static utils
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Jon Masters <jcm@jonmasters.org>
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac5
2 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index b66517a..89ff392 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -47,7 +47,10 @@ TESTSUITE := $(shell test -e @srcdir@/tests && find @srcdir@/tests -type f ! -na
EXTRA_DIST = generate-modprobe.conf FAQ CODING stress_modules.sh install-with-care $(SGML) $(man_MANS) $(TESTSUITE)
-sbin_PROGRAMS = insmod modprobe rmmod depmod modinfo insmod.static
+sbin_PROGRAMS = insmod modprobe rmmod depmod modinfo
+if BUILD_STATIC_UTILS
+sbin_PROGRAMS += insmod.static
+endif
bin_PROGRAMS = lsmod
noinst_PROGRAMS=modindex
noinst_LIBRARIES = libmodtools.a
diff --git a/configure.ac b/configure.ac
index b25cd1b..f54763b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,6 +54,11 @@ then
AC_MSG_NOTICE([Adding gcc options: $CFLAGS])
fi
+AC_ARG_ENABLE(static-utils,
+AS_HELP_STRING([--disable-static-utils], [Do not build static utils]),
+[],[enable_static_utils=yes])
+AM_CONDITIONAL(BUILD_STATIC_UTILS, test "$enable_static_utils" = "yes")
+
AC_ARG_WITH(moddir,
[ --with-moddir=path Give the path for system modules directory.]
[ [ Defaults to /lib/modules ]],