Re: [PATCH 1/4] Make configure use /bin/bash instead of /bin/sh

Subject: Re: [PATCH 1/4] Make configure use /bin/bash instead of /bin/sh

Date: Mon, 9 Apr 2012 14:19:30 +0200

To: Notmuch Mail

Cc:

From: Vladimir Marek


> > Posix /bin/sh is not capable of running this configure and fails.
> 
> What fails? What would it take to make this work on posix sh instead?
> 
> The tests do require bash, but generally I think it would be preferable to
> not depend on bash to build.

Well I gave it a quick stab. This is not posix:

BLAH=$( ... )
BLAH=$(( ... ))
${option%=*}
${option%%=*}
${option#=*}
${option##=*}

First two cases are easy to replace by `...` resp `expr ...`. The rest
leads to external utility like sed. The dirtiest part of configure is
parsing the commandline arguments, but that could be replaced by
/usr/bin/getopts.

If it is appealing way of doing that, I can rework my patch and submit
it for consideration.

Thank you
-- 
	Vlad

Thread: