X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=c0114367b2b1f7b69facb59fac65f7c71db63695;hp=078dab8885002459e71f44a8b98dbe69d230e2cd;hb=7409711b543a1e4f124bd24fa4d8265db9fc4c52;hpb=c874d188c898b625bf4181f6cd2ab99c7e4aca63 diff --git a/configure b/configure index 078dab88..c0114367 100755 --- a/configure +++ b/configure @@ -133,6 +133,8 @@ for opt do ;; --extra-cflags=*) CFLAGS="$CFLAGS $optarg" ;; + --build-32bit-win=*) build_32bit_win="$optarg" + ;; --help) show_help="yes" ;; @@ -183,10 +185,18 @@ SunOS) CYGWIN*) echo "Forcing known good options on Windows" if test -z "$CC" ; then - CC="x86_64-w64-mingw32-gcc" + if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then + CC="i686-w64-mingw32-gcc" + else + CC="x86_64-w64-mingw32-gcc" + fi fi output_sym "CONFIG_LITTLE_ENDIAN" - output_sym "CONFIG_64BIT_LLP64" + if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then + output_sym "CONFIG_32BIT" + else + output_sym "CONFIG_64BIT_LLP64" + fi output_sym "CONFIG_FADVISE" output_sym "CONFIG_SOCKLEN_T" output_sym "CONFIG_POSIX_FALLOCATE"