From 6f1d13b519fc01e95837fde2e5b250b9901fb7bd Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 27 May 2011 20:13:39 +0000 Subject: Fix k9copy FTBFS due to incorrect libavcodec configure checks git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233810 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- configure.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'configure.in') 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 -- cgit v1.2.1