2008-08-27 20:38:55 +00:00
|
|
|
dnl
|
|
|
|
dnl Check for mingw
|
|
|
|
dnl
|
|
|
|
AC_CACHE_CHECK([if being compiled with mingw32],
|
|
|
|
[ac_cv_mingw32],[
|
2009-12-20 11:15:42 +00:00
|
|
|
case $host in
|
|
|
|
*mingw*)
|
|
|
|
ac_cv_mingw32=yes
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
ac_cv_mingw32=no
|
|
|
|
;;
|
|
|
|
esac])
|
2008-08-27 20:38:55 +00:00
|
|
|
|
|
|
|
if test "x$ac_cv_mingw32" = "xyes"; then
|
|
|
|
export MINGW=1
|
|
|
|
MINGW_GUIAPP=-mwindows
|
|
|
|
EXEEXT=.exe
|
2014-01-02 20:23:13 +00:00
|
|
|
case $host in
|
|
|
|
*x86_64*mingw*) MINGW_PROCESSOR_ARCH=amd64 ;;
|
|
|
|
*) MINGW_PROCESSOR_ARCH=x86 ;;
|
|
|
|
esac
|
2009-02-25 14:50:19 +00:00
|
|
|
|
|
|
|
AC_CHECK_TOOL(WINDRES, windres, :)
|
2008-08-27 20:38:55 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(MINGW)
|
|
|
|
AC_SUBST(MINGW_LIBS)
|
|
|
|
AC_SUBST(MINGW_GUIAPP)
|
2014-01-02 20:23:13 +00:00
|
|
|
AC_SUBST(MINGW_PROCESSOR_ARCH)
|
2008-08-27 20:38:55 +00:00
|
|
|
AC_SUBST(EXEEXT)
|
2021-03-19 08:51:18 +00:00
|
|
|
|
|
|
|
if test "x$ac_cv_mingw32" = "xyes"; then
|
|
|
|
AC_PATH_PROG(CONVERT, convert)
|
|
|
|
fi
|