Re: Portability: config/amanda/libs.m4

Jean-Louis Martineau <[email protected]>
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
Eric,

Thanks for the patch, I committed it.

Jean-Louis

On 02/01/17 02:57 PM, Eric Schnoebelen wrote:
> Issue: bash-ism's in the autoconf macros.  autoconf should be
> written in POSIX sh.
>
>
> $NetBSD$
>
> Remove a bash-ism in the tests for libcurl and friends.
>
> --- config/amanda/libs.m4.orig	2016-11-23 16:11:15.000000000 +0000
> +++ config/amanda/libs.m4
> @@ -396,22 +396,22 @@ x=CURLOPT_VERBOSE;
>         LIBCURL_USE_OPENSSL=yes
>        _libcurl_configures=`$_libcurl_config --configure`
>        for _libcurl_configure in $_libcurl_configures ; do
> -	if [[[ $_libcurl_configure = \'--with-nss* ]]]; then
> +	if [[ $_libcurl_configure = \'--with-nss* ]]; then
>   	    LIBCURL_USE_NSS=yes
>   	fi
> -	if [[[ $_libcurl_configure = \'--without-nss* ]]]; then
> +	if [[ $_libcurl_configure = \'--without-nss* ]]; then
>   	    LIBCURL_USE_NSS=no
>   	fi
> -	if [[[ $_libcurl_configure = \'--with-gnutls* ]]]; then
> +	if [[ $_libcurl_configure = \'--with-gnutls* ]]; then
>   	    LIBCURL_USE_GNUTLS=yes
>   	fi
> -	if [[[ $_libcurl_configure = \'--without-gnutls* ]]]; then
> +	if [[ $_libcurl_configure = \'--without-gnutls* ]]; then
>   	    LIBCURL_USE_GNUTLS=no
>   	fi
> -	if [[[ $_libcurl_configure = \'--with-ssl* ]]]; then
> +	if [[ $_libcurl_configure = \'--with-ssl* ]]; then
>   	    LIBCURL_USE_OPENSSL=yes
>   	fi
> -	if [[[ $_libcurl_configure = \'--without-ssl* ]]]; then
> +	if [[ $_libcurl_configure = \'--without-ssl* ]]; then
>   	    LIBCURL_USE_OPENSSL=no
>   	fi
>        done
>

Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more visit the Mimecast website.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.