[FFmpeg-cvslog] configure: use c++11 and fallback to c++0x for c++ files

Marton Balint git at videolan.org
Tue Mar 28 23:25:40 EEST 2017


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Mar 25 17:36:39 2017 +0100| [7cfa98fd9460160d94c049bf72123e88d9c41a01] | committer: Marton Balint

configure: use c++11 and fallback to c++0x for c++ files

Needed for the C+11 atomics. Also change add_cxxflags to check_cxxflags.

Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7cfa98fd9460160d94c049bf72123e88d9c41a01
---

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index dc968bc..a84b126 100755
--- a/configure
+++ b/configure
@@ -4649,7 +4649,7 @@ fi
 
 add_cppflags -D_ISOC99_SOURCE
 add_cxxflags -D__STDC_CONSTANT_MACROS
-add_cxxflags -std=c++98
+check_cxxflags -std=c++11 || check_cxxflags -std=c++0x
 
 # some compilers silently accept -std=c11, so we also need to check that the
 # version macro is defined properly



More information about the ffmpeg-cvslog mailing list