summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorbellard2004-04-01 01:37:16 +0200
committerbellard2004-04-01 01:37:16 +0200
commit67b915a5dd52a05f8030cd9edc005effd9c8eea5 (patch)
tree247689b53ca52d7d9cb4fc9f7ff65f293b61e01a /configure
parentupdate (diff)
downloadqemu-67b915a5dd52a05f8030cd9edc005effd9c8eea5.tar.gz
qemu-67b915a5dd52a05f8030cd9edc005effd9c8eea5.tar.xz
qemu-67b915a5dd52a05f8030cd9edc005effd9c8eea5.zip
win32 port (initial patch by kazu)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@692 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30
1 files changed, 29 insertions, 1 deletions
diff --git a/configure b/configure
index f3f68b6171..75340eae13 100755
--- a/configure
+++ b/configure
@@ -68,10 +68,16 @@ case "$cpu" in
esac
gprof="no"
bigendian="no"
+mingw32="no"
+EXESUF=""
+gdbstub="yes"
# OS specific
targetos=`uname -s`
case $targetos in
+MINGW32*)
+mingw32="yes"
+;;
*) ;;
esac
@@ -136,6 +142,8 @@ for opt do
;;
--disable-sdl) sdl="no"
;;
+ --enable-mingw32) mingw32="yes" ; cross_prefix="i386-mingw32-"
+ ;;
esac
done
@@ -148,6 +156,14 @@ cc="${cross_prefix}${cc}"
ar="${cross_prefix}${ar}"
strip="${cross_prefix}${strip}"
+if test "$mingw32" = "yes" ; then
+ host_cc="$cc"
+ target_list="i386-softmmu"
+ prefix="/c/Program Files/Qemu"
+ EXESUF=".exe"
+ gdbstub="no"
+fi
+
if test -z "$cross_prefix" ; then
# ---
@@ -206,6 +222,7 @@ echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]"
echo " --cc=CC use C compiler CC [$cc]"
echo " --make=MAKE use specified make [$make]"
echo " --static enable static build [$static]"
+echo " --enable-mingw32 enable Win32 cross compilation with mingw32"
echo ""
echo "NOTE: The object files are build at the place where configure is launched"
exit 1
@@ -227,6 +244,8 @@ echo "target list $target_list"
echo "gprof enabled $gprof"
echo "static build $static"
echo "SDL support $sdl"
+echo "mingw32 support $mingw32"
+
if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have FFplay/SDL support"
fi
@@ -253,6 +272,7 @@ echo "AR=$ar" >> $config_mak
echo "STRIP=$strip -s -R .comment -R .note" >> $config_mak
echo "CFLAGS=$CFLAGS" >> $config_mak
echo "LDFLAGS=$LDFLAGS" >> $config_mak
+echo "EXESUF=$EXESUF" >> $config_mak
if test "$cpu" = "i386" ; then
echo "ARCH=i386" >> $config_mak
echo "#define HOST_I386 1" >> $config_h
@@ -294,7 +314,15 @@ if test "$bigendian" = "yes" ; then
echo "WORDS_BIGENDIAN=yes" >> $config_mak
echo "#define WORDS_BIGENDIAN 1" >> $config_h
fi
-echo "#define HAVE_BYTESWAP_H 1" >> $config_h
+if test "$mingw32" = "yes" ; then
+ echo "CONFIG_WIN32=yes" >> $config_mak
+else
+ echo "#define HAVE_BYTESWAP_H 1" >> $config_h
+fi
+if test "$gdbstub" = "yes" ; then
+ echo "CONFIG_GDBSTUB=yes" >> $config_mak
+ echo "#define CONFIG_GDBSTUB 1" >> $config_h
+fi
if test "$gprof" = "yes" ; then
echo "TARGET_GPROF=yes" >> $config_mak
echo "#define HAVE_GPROF 1" >> $config_h