From 12601adbf08a698b61604fb9d3e7d23d5c834eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 17 Apr 2013 10:10:46 +0200 Subject: [PATCH] osxaudio: Fix configure check for osxaudio plugin --- configure.ac | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 4d1c774cf6..d84500e157 100644 --- a/configure.ac +++ b/configure.ac @@ -462,19 +462,24 @@ AG_GST_CHECK_FEATURE(SUNAUDIO, [Sun Audio], sunaudio, [ dnl *** OSX Audio *** translit(dnm, m, l) AM_CONDITIONAL(USE_OSX_AUDIO, true) -have_ios="no" +HAVE_IOS="no" AG_GST_CHECK_FEATURE(OSX_AUDIO, [OSX audio], osxaudio, [ AC_CHECK_HEADER(CoreAudio/CoreAudio.h, - HAVE_OSX_AUDIO="yes", - dnl *** Check for the iOS headers *** + [HAVE_OSX_AUDIO="yes"], [AC_CHECK_HEADER(CoreAudio/CoreAudioTypes.h, - [HAVE_OSX_AUDIO="YES";have_ios="yes"], [HAVE_OSX_AUDIO="yes";have_ios="no"] - )]) + [ + HAVE_OSX_AUDIO="yes" + HAVE_IOS="yes" + ], [ + HAVE_OSX_AUDIO="no" + HAVE_IOS="no" + ])] + ) ]) -if test "x$have_ios" = "xyes"; then +if test "x$HAVE_IOS" = "xyes"; then AC_DEFINE(HAVE_IOS, 1, [building for iOS platofrm]) fi -AM_CONDITIONAL(HAVE_IOS, test "x$have_ios" = "xyes") +AM_CONDITIONAL(HAVE_IOS, test "x$HAVE_IOS" = "xyes") dnl *** OS X video *** translit(dnm, m, l) AM_CONDITIONAL(USE_OSX_VIDEO, true)