From: Julien Chaffraix Date: Thu, 18 Nov 2010 05:13:49 +0000 (-0800) Subject: configure: Prevent link errors with --librtmp. X-Git-Tag: curl-7_21_3~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5046dd02b9c909438d9ab8e9726094846a678f8d;p=thirdparty%2Fcurl.git configure: Prevent link errors with --librtmp. 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. --- diff --git a/configure.ac b/configure.ac index a400cad5d9..1e802fdf80 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ;;