Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2000 12:02:58 -0400
From:      Patrick Seal <patseal@hyperhost.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Detecting FreeBSD in configure
Message-ID:  <20000619120257.A62714@hyperhost.net>

next in thread | raw e-mail | index | archive | help
What's the best way to detect FreeBSD in configure scripts?

When compiling out of the port system I get: echo $host_os
"freebsdelf4.0"

When compiling using the port system I get: echo $host_os
"freebsd4.0"

Why does the port system change the $host_os?

Is this the best way?
if test "$host_os" = "freebsd4.0" -o "$host_os" = "freebsdelf4.0"

Thanks,
-- 
------------------------------------ _____________________________________
Patrick Seal                        |"Microsoft isn't evil, they just make
<patseal@hyperhost.net>             |   really crappy operating systems."
Hyperhost - http://www.hyperhost.net| -Linus Torvalds


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000619120257.A62714>