summaryrefslogtreecommitdiff
path: root/m4/evil_windows.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/evil_windows.m4')
-rw-r--r--m4/evil_windows.m453
1 files changed, 0 insertions, 53 deletions
diff --git a/m4/evil_windows.m4 b/m4/evil_windows.m4
deleted file mode 100644
index b3fb94e..0000000
--- a/m4/evil_windows.m4
+++ /dev/null
@@ -1,53 +0,0 @@
1dnl Copyright (C) 2011 Vincent Torri <vincent dot torri at gmail dot com>
2dnl This code is public domain and can be freely used or copied.
3
4dnl Macro that select the Windows version (XP (default), Vista, 7)
5
6dnl Usage: EFL_SELECT_WINDOWS_VERSION()
7dnl Update CPPFLAGS accordingly
8
9AC_DEFUN([EFL_SELECT_WINDOWS_VERSION],
10[
11
12dnl configure option
13
14AC_ARG_WITH([windows-version],
15 [AC_HELP_STRING([--with-windows-version], [select the target Windows version (vista, win7, win8, win81 or win10) @<:@default=win7@:>@])],
16 [_winver=${with_windows_version}],
17 [_winver="win7"])
18
19AC_MSG_CHECKING([which Windows version to target])
20AC_MSG_RESULT([${_winver}])
21
22case "${_winver}" in
23 vista)
24 EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0600 -DWINVER=0x0600"
25 _efl_windows_version="Windows Vista"
26 ;;
27 win7)
28 EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0601 -DWINVER=0x0601"
29 _efl_windows_version="Windows 7"
30 ;;
31 win8)
32 EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0602 -DWINVER=0x0602"
33 _efl_windows_version="Windows 8"
34 ;;
35 win81)
36 EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0603 -DWINVER=0x0603"
37 _efl_windows_version="Windows 8.1"
38 ;;
39 win10)
40 EFL_WINDOWS_VERSION_CFLAGS="-D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00"
41 _efl_windows_version="Windows 10"
42 ;;
43 *)
44 AC_MSG_ERROR([Wrong Windows version passed to configure. Run ./configure --help])
45 ;;
46esac
47
48EFL_CFLAGS="${EFL_CFLAGS} ${EFL_WINDOWS_VERSION_CFLAGS}"
49AC_SUBST([EFL_WINDOWS_VERSION_CFLAGS])
50AC_SUBST([_efl_windows_version])
51AC_MSG_NOTICE([Targetting ${_efl_windows_version}])
52
53])