configure.ac: fix avc check so that it tries to link to AVCVideoServices
authorAlessandro Decina <alessandro.d@gmail.com>
Sun, 29 May 2011 11:16:21 +0000 (13:16 +0200)
committerAlessandro Decina <alessandro.d@gmail.com>
Wed, 1 Jun 2011 08:23:23 +0000 (10:23 +0200)
Avoids avc plugin from being built when AVCVideoServices is not installed

configure.ac

index c99599c23b9a7224b5a9b844b0c5ed85ab9f5928..617e07e6bab1500f6fd6ada1d89791ce3b7ddd4e 100644 (file)
@@ -544,7 +544,7 @@ AG_GST_CHECK_FEATURE(AVC, [AVC Video Services], avcsrc, [
   CPPFLAGS="$CPPFLAGS -framework AVCVideoServices -framework CoreFoundation"
   save_LIBS="$LIBS"
   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
   CPPFLAGS=$save_CPPFLAGS
   AC_LANG_POP([C++])