diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in index a930bfa..8c99b48 100644 --- a/configure.in +++ b/configure.in @@ -99,12 +99,17 @@ AC_CHECK_HEADER([GL/gl.h], \ [AC_DEFINE(HAVE_OPENGL, 1, [openGL support]) have_gl=yes], \ [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 |