[MPlayer-cvslog] r32302 - trunk/configure

diego subversion at mplayerhq.hu
Sat Sep 18 12:47:41 CEST 2010


Author: diego
Date: Sat Sep 18 12:47:41 2010
New Revision: 32302

Log:
Simplify librtmp check using function_check().

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sat Sep 18 12:46:47 2010	(r32301)
+++ trunk/configure	Sat Sep 18 12:47:41 2010	(r32302)
@@ -7002,11 +7002,8 @@ echores "$_live"
 
 echocheck "RTMPDump Streaming Media library"
 if test "$_librtmp" = auto  && test "$networking" = yes ; then
-  cat > $TMPC << EOF
-#include <librtmp/rtmp.h>
-int main(void) { RTMP r; RTMP_Socket(&r); return 0; }
-EOF
-  cc_check -lrtmp && _librtmp=yes && extra_ldflags="$extra_ldflags -lrtmp"
+  function_check librtmp/rtmp.h 'RTMP_Socket(NULL)' -lrtmp &&
+    _librtmp=yes && extra_ldflags="$extra_ldflags -lrtmp"
   if test "$_librtmp" != yes && $_pkg_config --exists librtmp ; then
     _inc_tmp=$($_pkg_config --cflags librtmp)
 	_ld_tmp=$($_pkg_config --libs librtmp)


More information about the MPlayer-cvslog mailing list