summaryrefslogtreecommitdiffstats
path: root/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in.in')
-rwxr-xr-xconfigure.in.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in
index 521ade7..b0446b2 100755
--- a/configure.in.in
+++ b/configure.in.in
@@ -43,11 +43,17 @@ AC_CHECK_HEADER([GL/gl.h], \
[AC_DEFINE(NO_OPENGL, 1, [No openGL support])])
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+cxx_flags_safe="$CXXFLAGS"
+CXXFLAGS="$CXXFLAGS -D__STDC_CONSTANT_MACROS"
AC_CHECK_HEADER([ffmpeg/avcodec.h], \
[AC_DEFINE(OLD_FFMPEG,1, [old ffmpeg])], \
[AC_CHECK_HEADER([libavcodec/avcodec.h], \
[AC_DEFINE(NEW_FFMPEG,1, [new ffmpeg])], \
[AC_MSG_ERROR([libavcodec may be missing]) ])])
+CXXFLAGS="$cxx_flags_safe"
+AC_LANG_RESTORE
AC_LANG_SAVE
AC_LANG_CPLUSPLUS