summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSavio Sena <savio.sena@acm.org>2014-08-23 00:19:23 -0300
committerSavio Sena <savio@expertisesolutions.com.br>2014-09-16 19:35:17 -0300
commit1a3b5e8d7d43c5736f2ac7fb45d1d2daf69e4bd5 (patch)
tree4b65ef70ad6bf54433bf3a353b9be461392361a4 /configure.ac
parent578c0b4318a3a557a94098bf4bde0375012ae761 (diff)
autotools: Introduce C++11 requirement.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 041dfc9..009be02 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,7 +35,9 @@ AC_PROG_CC
35 35
36LT_PROG_RC 36LT_PROG_RC
37 37
38### Check for C++11
38 39
40EFL_CXX_COMPILE_STDCXX_11([ext], [mandatory])
39 41
40### Checks for libraries 42### Checks for libraries
41 43
@@ -55,6 +57,9 @@ PKG_CHECK_MODULES([EFL], eina >= 1.7.99 efl >= 1.11.99 eo >= 1.7.99 evas >= 1.7.
55EFL_ENABLE_EO_API_SUPPORT 57EFL_ENABLE_EO_API_SUPPORT
56EFL_ENABLE_BETA_API_SUPPORT 58EFL_ENABLE_BETA_API_SUPPORT
57 59
60# EFL++ dependencies
61
62PKG_CHECK_MODULES([EFL_CXX], eina-cxx >= 1.11.0 eo-cxx >= 1.11.0 evas-cxx >= 1.11.0 eet-cxx >= 1.11.0)
58 63
59### Checks for header files 64### Checks for header files
60 65
@@ -92,8 +97,10 @@ AC_MSG_CHECKING([whether the compiler supports -fno-rtti -fno-exceptions])
92AC_MSG_RESULT([${have_cxx_flags}]) 97AC_MSG_RESULT([${have_cxx_flags}])
93CXXFLAGS="${CXXFLAGS_save}" 98CXXFLAGS="${CXXFLAGS_save}"
94if test "x${have_cxx_flags}" = "xyes" ; then 99if test "x${have_cxx_flags}" = "xyes" ; then
95 EXPEDITE_CXXFLAGS="-fno-rtti -fno-exceptions" 100 EXPEDITE_CXXFLAGS="-fno-rtti -fno-exceptions -std=c++11"
96fi 101fi
102CXXFLAGS="{CXXFLAGS} -std=c++11"
103
97AC_LANG_POP([C++]) 104AC_LANG_POP([C++])
98AC_SUBST(EXPEDITE_CXXFLAGS) 105AC_SUBST(EXPEDITE_CXXFLAGS)
99 106