From: Thiemo Seufer <ths@networkno.de>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [5780] Native BSD host USB support (Juergen Lock, Lonnie Mendez)
Date: Tue, 25 Nov 2008 11:07:32 +0100 [thread overview]
Message-ID: <20081125100732.GA15592@networkno.de> (raw)
In-Reply-To: <492B10B1.1050409@codemonkey.ws>
Anthony Liguori wrote:
[snip]
>> +usb="linux"
>> if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
>> kqemu="yes"
>> audio_possible_drivers="$audio_possible_drivers fmod"
>> @@ -231,6 +232,7 @@
>> if [ "$bsd" = "yes" ] ; then
>> if [ "$darwin" != "yes" ] ; then
>> make="gmake"
>> + usb="bsd"
>> fi
>> bsd_user="yes"
>> fi
>>
>
> This whole set of checks is horribly broken because it relies on uname
> -s. Such a thing doesn't exist on Windows but more importantly, when
> cross compiling, uname is meaningless.
>
> What we really should do, is compile a small test program that checks for:
>
> #ifndef __linux__
> #error Not linux
> #endif
>
> And then try compiling that to see if we're on Linux or not. The same
> with FreeBSD et al.
It shouldn't try to compile, for the sake of cross portability. Rather
something like
gcc -E -dM -xc /dev/null |grep __linux__
This checks if the compiler in use is a Linux compiler.
Thiemo
next prev parent reply other threads:[~2008-11-25 10:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-22 21:03 [Qemu-devel] [5780] Native BSD host USB support (Juergen Lock, Lonnie Mendez) Blue Swirl
2008-11-24 20:38 ` Anthony Liguori
2008-11-25 10:07 ` Thiemo Seufer [this message]
2008-11-25 14:34 ` Anthony Liguori
2008-11-25 16:42 ` Thiemo Seufer
2008-11-25 17:37 ` Blue Swirl
2008-11-25 19:31 ` Anthony Liguori
2008-11-25 16:33 ` Blue Swirl
2008-11-24 20:42 ` Hervé Poussineau
2008-11-25 17:18 ` Andreas Färber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081125100732.GA15592@networkno.de \
--to=ths@networkno.de \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.