Mention new openro command
[geany-mirror.git] / m4 / geany-mingw.m4
blob0fa8e4417de68d0c7094d43ab80337f25cea8691
1 dnl GEANY_CHECK_MINGW
2 dnl Checks whether we're building for MinGW, and defines appropriate stuff
3 dnl if it is the case.
4 dnl Most importantly, AM_CODITIONALs MINGW
5 AC_DEFUN([GEANY_CHECK_MINGW],
7         case "${host}" in
8                 *mingw*)
9                         AC_CHECK_LIB([iberty], [fnmatch], [],
10                                         [AC_MSG_ERROR([fnmatch does not present in libiberty. You need to update it, read http://www.geany.org/Support/CrossCompile for details.])])
11                         AC_DEFINE([WIN32], [1], [we are cross compiling for WIN32])
12                         GEANY_CHECK_VTE([no])
13                         GEANY_CHECK_SOCKET([yes])
14                         AM_CONDITIONAL([MINGW], true)
15                         ;;
16                 *)
17                         AM_CONDITIONAL([MINGW], false)
18                         ;;
19         esac