diff options
author | Michal Marek <mmarek@suse.cz> | 2009-04-30 15:41:44 -0400 |
---|---|---|
committer | Jon Masters <jcm@jonmasters.org> | 2009-04-30 15:41:44 -0400 |
commit | 08da2582714ea581b3962afc524b4fbb76618cb5 (patch) | |
tree | d3ef9c453032ff8c0835af0acdee8b73a1796d96 | |
parent | 716bd0e4e35e23b6ae504f09d6d4b086401227c1 (diff) | |
download | module-init-tools-08da2582714ea581b3962afc524b4fbb76618cb5.tar.gz |
Allow to link zlib dynamically
Add new configure option --enable-zlib-dynamic to allow linking zlib
dynamically (e.g. opensuse installs libz.so.1 in /lib, so it's safe to
do it there).
Signed-off-by: Jon Masters <jcm@jonmasters.org>
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5bee375..1dfd32a 100644 --- a/configure.ac +++ b/configure.ac @@ -17,6 +17,15 @@ AC_ARG_ENABLE(zlib, zlib_flags="-Wl,-Bstatic -lz -Wl,-Bdynamic" fi]) +AC_ARG_ENABLE(zlib-dynamic, +[ --enable-zlib-dynamic Handle gzipped modules, zlib will be linked + dynamically. Note that libz must be installed + in /lib for this to work.], +[if test "$enableval" = "yes"; then + AC_DEFINE(CONFIG_USE_ZLIB) + zlib_flags="-lz" +fi]) + AC_PROG_CC AC_PROG_RANLIB |