autoconf
[Top][All Lists]
Advanced

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

Re: howto identify os


From: Ralf Corsepius
Subject: Re: howto identify os
Date: Tue, 25 Jan 2005 09:17:36 +0100

On Mon, 2005-01-24 at 20:53 +0100, Francesco Zappa Nardelli wrote:
> Hello.
> 
> I am a novice user of autoconf, and I am sorry if my question is
> really silly.
> 
> I am looking for a way to tell configure that the makefile it
> eventually generates should include the file "linux.mak" if we are
> building the software on Linux, and "macosx.mak" if we are building on
> Darwin.  
> 
> How can I reliably detect the operating system of the machine the
> software is built on?  
With autoconf, in general you don't want to check for OSes or even OS
versions, you want check for systems' features, instead.

Checking for "features" instead of using "OS tables" is one of
autoconf's basic working principles.

OS checks ($host_os etc.) should only be used as last resort if all else
fail.

Ralf






reply via email to

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