On Thu, Apr 7, 2011 at 12:14, Eric Blake wrote:
> 'test -o' is completely non-portable.
Best to avoid that then
> case $build_os in
> linux* | cygwin*) # case for linux, linux-gnu, and cygwin
> ;;
> *) # other platforms
> ;;
> esac
case seems like the appropriate solution. Thanks.
> F
On Thu, Apr 7, 2011 at 12:02, Daily, Jeff A wrote:
> Try a case statement. I use the m4sh version e.g.
>
> AS_CASE([$build_os],
> [*linux*], [AS_ECHO(["case for linux"])],
> [AS_ECHO(["other platforms"])])
Thanks, I didn't think about case. Thats seems the most appropriate
way to
On 04/07/2011 10:52 AM, Adam Mercer wrote:
> Hi
>
> In one of my macros I need to do one thing on linux platforms and
> another on others, in the macro I have the followings:
>
> if test "x$build_os" = "xlinux"; then
> # case for linux
> else
> # other platforms
> fi
>
> I recently
> -Original Message-
> From: autoconf-bounces+jeff.daily=pnl@gnu.org [mailto:autoconf-
> bounces+jeff.daily=pnl@gnu.org] On Behalf Of Adam Mercer
> Sent: Thursday, April 07, 2011 9:53 AM
> To: autoconf@gnu.org
> Subject: Handling multiple conditions in if statemen
Hi
In one of my macros I need to do one thing on linux platforms and
another on others, in the macro I have the followings:
if test "x$build_os" = "xlinux"; then
# case for linux
else
# other platforms
fi
I recently received a bug report that this wasn't working as the users
system