From f14cdcab58647dfa2b47aa0d314f16db2d91b740 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Mon, 28 Oct 2013 11:20:27 +0000 Subject: [PATCH] configure.ac: detect presence of AVFoundation --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index ef5b9fc16c..fc438319b3 100644 --- a/configure.ac +++ b/configure.ac @@ -427,8 +427,14 @@ if test "x$HAVE_CPU_I386" != "xyes" && test "x$HAVE_CPU_X86_64" != "xyes"; then AG_GST_DISABLE_PLUGIN(real) fi +AC_CHECK_HEADER(AVFoundation/AVFoundation.h, HAVE_AVFOUNDATION="yes", HAVE_AVFOUNDATION="no", [-]) AC_CHECK_HEADER(MobileCoreServices/MobileCoreServices.h, HAVE_IOS="yes", HAVE_IOS="no", [-]) +AM_CONDITIONAL(HAVE_AVFOUNDATION, test "x$HAVE_AVFOUNDATION" = "xyes") +if test "x$HAVE_AVFOUNDATION" = "xyes"; then + AC_DEFINE(HAVE_AVFOUNDATION, 1, [Define if building with AVFoundation]) +fi + AM_CONDITIONAL(HAVE_IOS, test "x$HAVE_IOS" = "xyes") if test "x$HAVE_IOS" = "xyes"; then AC_DEFINE(HAVE_IOS, 1, [Define if building for Apple iOS])