diff options
author | Stefan Schmidt <stefan@osg.samsung.com> | 2017-05-10 13:22:22 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2017-05-10 13:22:22 +0200 |
commit | e7b11dd328d9db82b49cde795944a721beaf0112 (patch) | |
tree | 8209a6f7c789f2d8fedf3ebebf20978263b9a1c9 /configure.ac | |
parent | 0529ce56b6fb01e9651e76461e9608e15a040fb3 (diff) |
build: make sure we check for c99 during configure
We have some c99 code in expedite (loop initial declarations) and some
setups bail out when trying to use c89 here. EFL is already enforcing
c99 and compilers have catched up a long time ago.
Fixes T5440
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8e59499..b37c8b6 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -69,9 +69,14 @@ EFL_ENABLE_BETA_API_SUPPORT | |||
69 | 69 | ||
70 | AC_HEADER_STDC | 70 | AC_HEADER_STDC |
71 | AC_C_CONST | 71 | AC_C_CONST |
72 | AC_PROG_CC_C99 | ||
72 | AM_PROG_CC_C_O | 73 | AM_PROG_CC_C_O |
73 | AC_C___ATTRIBUTE__ | 74 | AC_C___ATTRIBUTE__ |
74 | 75 | ||
76 | if test "x${ac_cv_prog_cc_c99}" = "xno" ; then | ||
77 | AC_MSG_ERROR([expedite requires a c99-capable compiler]) | ||
78 | fi | ||
79 | |||
75 | WIN32_CFLAGS="" | 80 | WIN32_CFLAGS="" |
76 | case "$host_os" in | 81 | case "$host_os" in |
77 | cegcc*) | 82 | cegcc*) |