configure.ac: fix avc check so that it tries to link to AVCVideoServices

Avoids avc plugin from being built when AVCVideoServices is not installed
This commit is contained in:
Alessandro Decina 2011-05-29 13:16:21 +02:00
parent a9c60f3b31
commit e6550ca982

View file

@ -544,7 +544,7 @@ AG_GST_CHECK_FEATURE(AVC, [AVC Video Services], avcsrc, [
CPPFLAGS="$CPPFLAGS -framework AVCVideoServices -framework CoreFoundation" CPPFLAGS="$CPPFLAGS -framework AVCVideoServices -framework CoreFoundation"
save_LIBS="$LIBS" save_LIBS="$LIBS"
LIBS="$LIBS -framework AVCVideoServices -framework CoreFoundation" LIBS="$LIBS -framework AVCVideoServices -framework CoreFoundation"
AC_TRY_COMPILE([], [], [HAVE_AVC=yes], [HAVE_AVC=no]) AC_TRY_LINK([], [], [HAVE_AVC=yes], [HAVE_AVC=no])
LIBS=$save_LIBS LIBS=$save_LIBS
CPPFLAGS=$save_CPPFLAGS CPPFLAGS=$save_CPPFLAGS
AC_LANG_POP([C++]) AC_LANG_POP([C++])