From: Stefan Hajnoczi Date: Thu, 6 Mar 2014 17:41:59 +0000 (+0100) Subject: Detect Windows operating system in ./configure X-Git-Tag: fio-2.1.7~18 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b24f59ab5ac96a67a016dc921687b0feae9bbf94;hp=47986339e372697d9a79d48de21eb0f311386bf0;p=fio.git Detect Windows operating system in ./configure We should not rely on `uname -s` if we ever want cross-compiling to work, so detect _WIN32. Signed-off-by: Stefan Hajnoczi Signed-off-by: Jens Axboe --- diff --git a/configure b/configure index 7b1d79a4..63aa02dd 100755 --- a/configure +++ b/configure @@ -184,6 +184,8 @@ elif check_define __OpenBSD__ ; then elif check_define __sun__ ; then targetos='SunOS' CFLAGS="$CFLAGS -D_REENTRANT" +elif check_define _WIN32 ; then + targetos='CYGWIN' else targetos=`uname -s` fi