mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 14:27:42 +00:00
56fb138489
windres is not needed for non-Windows builds and should therefore only be checked if we are cross-compiling. Otherwise warnings or errors could confuse the user.
28 lines
519 B
Plaintext
28 lines
519 B
Plaintext
dnl
|
|
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])
|
|
|
|
if test "x$ac_cv_mingw32" = "xyes"; then
|
|
export MINGW=1
|
|
MINGW_GUIAPP=-mwindows
|
|
LIBMTXCOMMONDLL=1
|
|
EXEEXT=.exe
|
|
|
|
AC_CHECK_TOOL(WINDRES, windres, :)
|
|
else
|
|
LIBMTXCOMMONDLL=0
|
|
fi
|
|
|
|
AC_SUBST(MINGW)
|
|
AC_SUBST(MINGW_LIBS)
|
|
AC_SUBST(MINGW_GUIAPP)
|
|
AC_SUBST(LIBMTXCOMMONDLL)
|
|
AC_SUBST(EXEEXT)
|