summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-07-07 13:39:31 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-07 13:39:31 +0100
commit7c4bebe47e1f6a7dfee8d370e53bbc61e47025e0 (patch)
tree84ab6189a5ff8af223a66da338a2864f014e405b /configure.ac
parentd6a3eb3dec95730074bcd64df66261072bfc9111 (diff)
Windows: remove Evil dependency, general cleanup for Windows
Test Plan: compilation and execution Reviewers: raster Differential Revision: https://phab.enlightenment.org/D12039
Diffstat (limited to '')
-rw-r--r--configure.ac69
1 files changed, 1 insertions, 68 deletions
diff --git a/configure.ac b/configure.ac
index e22bdd8..b63a19a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,7 +10,7 @@ AC_CONFIG_HEADERS([config.h])
10AC_CANONICAL_BUILD 10AC_CANONICAL_BUILD
11AC_CANONICAL_HOST 11AC_CANONICAL_HOST
12 12
13AM_INIT_AUTOMAKE([1.6 dist-bzip2]) 13AM_INIT_AUTOMAKE([1.6 dist-xz])
14m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 14m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
15 15
16PKG_PROG_PKG_CONFIG 16PKG_PROG_PKG_CONFIG
@@ -18,36 +18,10 @@ PKG_PROG_PKG_CONFIG
18 18
19### Checks for programs 19### Checks for programs
20 20
21AC_ISC_POSIX
22m4_ifdef([AC_PROG_OBJC],
23 [
24 AC_PROG_OBJC
25 _AM_DEPENDENCIES(OBJC)
26 ],
27 [
28 AC_CHECK_TOOL([OBJC], [gcc])
29 AC_SUBST([OBJC])
30 AC_SUBST([OBJCFLAGS])
31 ]
32)
33AC_PROG_CXX
34AC_PROG_CC 21AC_PROG_CC
35 22
36LT_PROG_RC
37
38
39
40### Checks for libraries 23### Checks for libraries
41 24
42# Evil library for compilation on Windows
43
44case "$host_os" in
45 mingw32*)
46 PKG_CHECK_MODULES([EVIL], [evil >= 1.7.99])
47 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
48 ;;
49esac
50
51# EFL dependencies 25# EFL dependencies
52efl_version="1.23.0" 26efl_version="1.23.0"
53requirement_expedite=" \ 27requirement_expedite=" \
@@ -66,20 +40,14 @@ PKG_CHECK_MODULES([EFL], [${requirement_expedite}])
66EFL_ENABLE_EO_API_SUPPORT 40EFL_ENABLE_EO_API_SUPPORT
67EFL_ENABLE_BETA_API_SUPPORT 41EFL_ENABLE_BETA_API_SUPPORT
68 42
69
70### Checks for header files 43### Checks for header files
71 44
72
73### Checks for types 45### Checks for types
74 46
75
76### Checks for structures 47### Checks for structures
77 48
78
79### Checks for compiler characteristics 49### Checks for compiler characteristics
80 50
81AC_HEADER_STDC
82AC_C_CONST
83AC_PROG_CC_C99 51AC_PROG_CC_C99
84AM_PROG_CC_C_O 52AM_PROG_CC_C_O
85AC_C___ATTRIBUTE__ 53AC_C___ATTRIBUTE__
@@ -88,43 +56,8 @@ if test "x${ac_cv_prog_cc_c99}" = "xno" ; then
88 AC_MSG_ERROR([expedite requires a c99-capable compiler]) 56 AC_MSG_ERROR([expedite requires a c99-capable compiler])
89fi 57fi
90 58
91WIN32_CFLAGS=""
92case "$host_os" in
93 cegcc*)
94 WIN32_CFLAGS="-mwin32"
95 ;;
96esac
97AC_SUBST(WIN32_CFLAGS)
98
99EXPEDITE_CXXFLAGS=""
100AC_LANG_PUSH([C++])
101CXXFLAGS_save="${CXXFLAGS}"
102CXXFLAGS="${CXXFLAGS} -fno-rtti -fno-exceptions"
103AC_LINK_IFELSE(
104 [AC_LANG_PROGRAM([[]])],
105 [have_cxx_flags="yes"],
106 [have_cxx_flags="no"])
107AC_MSG_CHECKING([whether the compiler supports -fno-rtti -fno-exceptions])
108AC_MSG_RESULT([${have_cxx_flags}])
109CXXFLAGS="${CXXFLAGS_save}"
110if test "x${have_cxx_flags}" = "xyes" ; then
111 EXPEDITE_CXXFLAGS="-fno-rtti -fno-exceptions"
112fi
113AC_LANG_POP([C++])
114AC_SUBST(EXPEDITE_CXXFLAGS)
115
116
117### Checks for linker characteristics 59### Checks for linker characteristics
118 60
119lt_enable_auto_import=""
120case "$host_os" in
121 mingw* | cegcc*)
122 lt_enable_auto_import="-Wl,--enable-auto-import"
123 ;;
124esac
125AC_SUBST(lt_enable_auto_import)
126
127
128### Checks for library functions 61### Checks for library functions
129 62
130AC_CHECK_FUNCS([sync]) 63AC_CHECK_FUNCS([sync])