Revision 67b915a5 configure
b/configure | ||
---|---|---|
68 | 68 |
esac |
69 | 69 |
gprof="no" |
70 | 70 |
bigendian="no" |
71 |
mingw32="no" |
|
72 |
EXESUF="" |
|
73 |
gdbstub="yes" |
|
71 | 74 |
|
72 | 75 |
# OS specific |
73 | 76 |
targetos=`uname -s` |
74 | 77 |
case $targetos in |
78 |
MINGW32*) |
|
79 |
mingw32="yes" |
|
80 |
;; |
|
75 | 81 |
*) ;; |
76 | 82 |
esac |
77 | 83 |
|
... | ... | |
136 | 142 |
;; |
137 | 143 |
--disable-sdl) sdl="no" |
138 | 144 |
;; |
145 |
--enable-mingw32) mingw32="yes" ; cross_prefix="i386-mingw32-" |
|
146 |
;; |
|
139 | 147 |
esac |
140 | 148 |
done |
141 | 149 |
|
... | ... | |
148 | 156 |
ar="${cross_prefix}${ar}" |
149 | 157 |
strip="${cross_prefix}${strip}" |
150 | 158 |
|
159 |
if test "$mingw32" = "yes" ; then |
|
160 |
host_cc="$cc" |
|
161 |
target_list="i386-softmmu" |
|
162 |
prefix="/c/Program Files/Qemu" |
|
163 |
EXESUF=".exe" |
|
164 |
gdbstub="no" |
|
165 |
fi |
|
166 |
|
|
151 | 167 |
if test -z "$cross_prefix" ; then |
152 | 168 |
|
153 | 169 |
# --- |
... | ... | |
206 | 222 |
echo " --cc=CC use C compiler CC [$cc]" |
207 | 223 |
echo " --make=MAKE use specified make [$make]" |
208 | 224 |
echo " --static enable static build [$static]" |
225 |
echo " --enable-mingw32 enable Win32 cross compilation with mingw32" |
|
209 | 226 |
echo "" |
210 | 227 |
echo "NOTE: The object files are build at the place where configure is launched" |
211 | 228 |
exit 1 |
... | ... | |
227 | 244 |
echo "gprof enabled $gprof" |
228 | 245 |
echo "static build $static" |
229 | 246 |
echo "SDL support $sdl" |
247 |
echo "mingw32 support $mingw32" |
|
248 |
|
|
230 | 249 |
if test $sdl_too_old = "yes"; then |
231 | 250 |
echo "-> Your SDL version is too old - please upgrade to have FFplay/SDL support" |
232 | 251 |
fi |
... | ... | |
253 | 272 |
echo "STRIP=$strip -s -R .comment -R .note" >> $config_mak |
254 | 273 |
echo "CFLAGS=$CFLAGS" >> $config_mak |
255 | 274 |
echo "LDFLAGS=$LDFLAGS" >> $config_mak |
275 |
echo "EXESUF=$EXESUF" >> $config_mak |
|
256 | 276 |
if test "$cpu" = "i386" ; then |
257 | 277 |
echo "ARCH=i386" >> $config_mak |
258 | 278 |
echo "#define HOST_I386 1" >> $config_h |
... | ... | |
294 | 314 |
echo "WORDS_BIGENDIAN=yes" >> $config_mak |
295 | 315 |
echo "#define WORDS_BIGENDIAN 1" >> $config_h |
296 | 316 |
fi |
297 |
echo "#define HAVE_BYTESWAP_H 1" >> $config_h |
|
317 |
if test "$mingw32" = "yes" ; then |
|
318 |
echo "CONFIG_WIN32=yes" >> $config_mak |
|
319 |
else |
|
320 |
echo "#define HAVE_BYTESWAP_H 1" >> $config_h |
|
321 |
fi |
|
322 |
if test "$gdbstub" = "yes" ; then |
|
323 |
echo "CONFIG_GDBSTUB=yes" >> $config_mak |
|
324 |
echo "#define CONFIG_GDBSTUB 1" >> $config_h |
|
325 |
fi |
|
298 | 326 |
if test "$gprof" = "yes" ; then |
299 | 327 |
echo "TARGET_GPROF=yes" >> $config_mak |
300 | 328 |
echo "#define HAVE_GPROF 1" >> $config_h |
Also available in: Unified diff