Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Configure: introduced --with-*-module-opt option

Maxim Dounin
May 10, 2023 12:48PM
Hello!

On Wed, May 10, 2023 at 12:00:35AM -0700, Dmitry Volyntsev wrote:

> # HG changeset patch
> # User Dmitry Volyntsev <xeioex@nginx.com>
> # Date 1683701820 25200
> # Tue May 09 23:57:00 2023 -0700
> # Node ID 85643f113750f1c49a7ea3dea568da4e3137ec4b
> # Parent b71e69247483631bd8fc79a47cc32b762625b1fb
> Configure: introduced --with-*-module-opt option.
>
> --with-*-module-opt provides a generic way to pass arbitrary configure
> options to an nginx addon configure script.
>
> For example when --with-foo-module-opt=value is provided the following
> variable is defined: $NGX_FOO_MODULE_OPT.
>
> While $NGX_FOO_MODULE_OPT can be provided as an environment variable it
> is inconsistent with other similar options like --with-pcre-opt or
> --with-openssl-opt. Also the introduced option enforces a unified named
> convention for opt variables for nginx addons.
>
> diff --git a/auto/options b/auto/options
> --- a/auto/options
> +++ b/auto/options
> @@ -343,6 +343,11 @@ use the \"--with-mail_ssl_module\" optio
>
> --add-module=*) NGX_ADDONS="$NGX_ADDONS $value" ;;
> --add-dynamic-module=*) DYNAMIC_ADDONS="$DYNAMIC_ADDONS $value" ;;
> + --with-*-module-opt=*)
> + mod=`echo "$option" | sed -e 's/--with-//' -e 's/-module-opt.*//' \
> + | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
> + eval "NGX_${mod}_MODULE_OPT"="$value"
> + ;;
>
> --with-compat) NGX_COMPAT=YES ;;
>

I don't think I like this approach. It's hardly different from
the environment variable approach suggested previously, and
provides no syntax checking and/or error reporting.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Configure: introduced --without-libxslt

Dmitry Volyntsev 305 May 06, 2023 02:12AM

Re: [PATCH] Configure: introduced --without-libxslt

Maxim Dounin 83 May 06, 2023 07:14PM

Re: [PATCH] Configure: introduced --without-libxslt

Dmitry Volyntsev 108 May 06, 2023 09:04PM

Re: [PATCH] Configure: introduced --without-libxslt

Maxim Dounin 83 May 08, 2023 05:44PM

[PATCH] Configure: introduced --with-*-module-opt option

Dmitry Volyntsev 83 May 10, 2023 03:02AM

Re: [PATCH] Configure: introduced --with-*-module-opt option

Maxim Dounin 101 May 10, 2023 12:48PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready