diff options
author | lloyd <[email protected]> | 2008-11-23 20:56:42 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-23 20:56:42 +0000 |
commit | 05f51a047cdd9469abf82977238f4ac12077472e (patch) | |
tree | 0e3cbaf335230cbd40907aba6620b89f0c5e976a /configure.pl | |
parent | 3a52b1f1123e532209bf6318fdb5195a9d450473 (diff) |
Add handy aliases to configure for controlling the modules using OpenSSL,
GNU MP, zlib, and bzip2.
--with-{openssl,gnump,bzip2,zlib}
--without-{openssl,gnump,bzip2,zlib}
They have the exact same effect as --enable-modules=x or --disable-modules=x
This turned out to be a much easier way of specifying options for the
Gentoo ebuild. It is likely that other distro builds architectures will
also prefer this option style as being somewhat more autoconf-like and
fitting in with existing command templates.
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.pl b/configure.pl index 4a3fa6eae..bdb52fc4a 100755 --- a/configure.pl +++ b/configure.pl @@ -772,6 +772,15 @@ sub get_options { 'enable-modules:s' => sub { add_modules($config, $_[1]); }, 'disable-modules:s' => sub { disable_modules($config, $_[1]); }, + 'with-openssl' => sub { add_modules($config, 'openssl'); }, + 'without-openssl' => sub { disable_modules($config, 'openssl'); }, + 'with-gnump' => sub { add_modules($config, 'gnump'); }, + 'without-gnump' => sub { disable_modules($config, 'gnump'); }, + 'with-bzip2' => sub { add_modules($config, 'bzip2'); }, + 'without-bzip2' => sub { disable_modules($config, 'bzip2'); }, + 'with-zlib' => sub { add_modules($config, 'zlib'); }, + 'without-zlib' => sub { disable_modules($config, 'zlib'); }, + 'use-module-set=s' => sub { add_module_sets($config, $_[1]); }, 'with-build-dir=s' => sub { &$save_option(@_); }, |