mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
Use configure's 'host' variable for mingw detection
Otherwise a real mingw on Windows may not be detected correctly.
This commit is contained in:
parent
a022734a63
commit
34754808de
13
ac/mingw.m4
13
ac/mingw.m4
@ -3,11 +3,14 @@ dnl Check for mingw
|
||||
dnl
|
||||
AC_CACHE_CHECK([if being compiled with mingw32],
|
||||
[ac_cv_mingw32],[
|
||||
if test "x`$CXX --version | grep -i mingw`" = "x" ; then
|
||||
ac_cv_mingw32=no
|
||||
else
|
||||
ac_cv_mingw32=yes
|
||||
fi])
|
||||
case $host in
|
||||
*mingw*)
|
||||
ac_cv_mingw32=yes
|
||||
;;
|
||||
*)
|
||||
ac_cv_mingw32=no
|
||||
;;
|
||||
esac])
|
||||
|
||||
if test "x$ac_cv_mingw32" = "xyes"; then
|
||||
export MINGW=1
|
||||
|
Loading…
Reference in New Issue
Block a user