configure: simplify openh264 check

Of course PTHREADS_CFLAGS is not used anywhere now
for the check, but that was the case before as well.
This commit is contained in:
Tim-Philipp Müller 2014-10-22 12:36:36 +01:00
parent af6e2228b2
commit 6c8446ffa6

View file

@ -2575,12 +2575,8 @@ AG_GST_CHECK_FEATURE(OPENEXR, [openexr library], openexr, [
dnl *** openh264 *** dnl *** openh264 ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OPENH264, true) translit(dnm, m, l) AM_CONDITIONAL(USE_OPENH264, true)
AG_GST_CHECK_FEATURE(OPENH264, [openh264 library], openh264, [ AG_GST_CHECK_FEATURE(OPENH264, [openh264 library], openh264, [
HAVE_OPENH264="yes" AG_GST_CHECK_LIBHEADER(OPENH264, openh264, WelsSnprintf, $PTHREAD_LIBS,
saved_LIBS="$LIBS" wels/codec_api.h, OPENH264_LIBS="-lopenh264 $PTHREAD_LIBS")
LIBS="$PTHREAD_LIBS $LIBS"
AG_GST_CHECK_LIBHEADER(OPENH264, openh264, WelsSnprintf, ,wels/codec_api.h,
OPENH264_LIBS="-lopenh264 $PTHREAD_LIBS", HAVE_OPENH264="no")
LIBS=$saved_LIBS
AC_SUBST(OPENH264_LIBS) AC_SUBST(OPENH264_LIBS)
]) ])