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 19:02:49 +0000

On Jan 11, 2008 5:16 PM, Ralf Wildenhues <address@hidden> wrote:
> Hello Paulo,
>
> * Paulo J. Matos wrote on Fri, Jan 11, 2008 at 06:05:40PM CET:
> > Got it:
> > AM_CONDITIONAL([DARWIN], [test x$uname == xDarwin])
>
> Sure you want to test the build sytem, not the host one?
>

You're right, thanks for your elegant solution.

Cheers,

Paulo Matos

>   AC_CANONICAL_HOST    # needs to be called at some point earlier
>   AM_CONDITIONAL([DARWIN],
>     [case $host_os in darwin*) true;; *) false;; esac])
>
> Cheers,
> Ralf
>
>
> _______________________________________________
> Autoconf mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/autoconf
>



-- 
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]