]> git.sesse.net Git - vlc/commitdiff
Fix postproc header detection (the test depends on inclusion of stdint.h but there...
authorRafaël Carré <funman@videolan.org>
Sun, 9 Mar 2008 16:52:31 +0000 (17:52 +0100)
committerRafaël Carré <funman@videolan.org>
Sun, 9 Mar 2008 16:52:31 +0000 (17:52 +0100)
extras/buildsystem/cmake/include/config.cmake

index dd11f61e4fd409ee935757d888bf92484f2a4872..a7df0d16412732fb28adee5b43fdb78a07d9c008 100644 (file)
@@ -467,7 +467,8 @@ if(FFmpeg_FOUND)
   vlc_check_include_files (ffmpeg/avcodec.h libavcodec/avcodec.h)
   vlc_check_include_files (ffmpeg/avutil.h libavutil/avutil.h)
   vlc_check_include_files (ffmpeg/swscale.h libswscale/swscale.h)
-  vlc_check_include_files (postproc/postprocess.h libpostproc/postprocess.h)
+  check_c_source_compiles( "#include <stdint.h>\n#include <postproc/postprocess.h>\nint main(){return 0;}" HAVE_POSTPROC_POSTPROCESS_H )
+  check_c_source_compiles( "#include <stdint.h>\n#include <libpostproc/postprocess.h>\nint main(){return 0;}" HAVE_LIBPOSTPROC_POSTPROCESS_H )
   
   message( STATUS "avcodec found ${HAVE_FFMPEG_AVCODEC_H} || ${HAVE_LIBAVCODEC_AVCODEC_H}")
   message( STATUS "avutil found ${HAVE_FFMPEG_AVUTIL_H} || ${HAVE_LIBAVUTIL_AVUTIL_H}")