]> granicus.if.org Git - curl/commitdiff
configure: Prevent link errors with --librtmp.
authorJulien Chaffraix <julien.chaffraix@gmail.com>
Thu, 18 Nov 2010 05:13:49 +0000 (21:13 -0800)
committerJulien Chaffraix <julien.chaffraix@gmail.com>
Thu, 18 Nov 2010 05:16:45 +0000 (21:16 -0800)
If --librtmp was specified but pkg-config could not find the librtmp
file, we would have undefined symbols when linking curl.

We prevent this error by disabling this case as suggested on the mailing
list.

configure.ac

index a400cad5d9e80679e01d3fb1b43e896cf2980ff1..1e802fdf80e17037fa30f2190032741afc04716e 100644 (file)
@@ -2066,6 +2066,10 @@ if test X"$OPT_LIBRTMP" != Xno; then
       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
       version=`$PKGCONFIG --modversion librtmp`
       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
+    else
+      dnl To avoid link errors, we do not allow --librtmp without
+      dnl a pkgconfig file
+      AC_MSG_ERROR([--librtmp was specified but could not find librtmp pkgconfig file.])
     fi
 
     ;;