autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defining variable depending on uname output


From: Paulo J. Matos
Subject: Re: Defining variable depending on uname output
Date: Fri, 11 Jan 2008 17:05:40 +0000

Got it:
AM_CONDITIONAL([DARWIN], [test x$uname == xDarwin])

On Jan 11, 2008 5:00 PM, Paulo J. Matos <address@hidden> wrote:
> Hello all,
>
> I'm doing this:
> AM_CONDITIONAL([DARWIN], ["$(uname)" == "Darwin"])
>
> But this is not working, I get:
> ./configure: line 3797: Linux: command not found
>
> In a common make file I would use
> ifeq($(shell uname), Darwin) ...
>
> but with configure.ac I'm quite stuck.
>
> Any suggestions?
>
> --
> Paulo Jorge Matos - pocm at soton.ac.uk
> http://www.personal.soton.ac.uk/pocm
> PhD Student @ ECS
> University of Southampton, UK
>



-- 
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK




reply via email to

[Prev in Thread] Current Thread [Next in Thread]