Mercurial > mplayer.hg
comparison configure @ 30508:f3f21123fa05
Fix shared library libavutil check: test for av_clip instead of av_gcd.
av_gcd is not available in the header #included in the check.
author | diego |
---|---|
date | Sat, 13 Feb 2010 15:46:33 +0000 |
parents | 09b72a74d6da |
children | c0ab27a3b90e |
comparison
equal
deleted
inserted
replaced
30507:cc83ac4f71af | 30508:f3f21123fa05 |
---|---|
7247 fi | 7247 fi |
7248 elif test "$_libavutil_so" = auto ; then | 7248 elif test "$_libavutil_so" = auto ; then |
7249 _libavutil_so=no | 7249 _libavutil_so=no |
7250 cat > $TMPC << EOF | 7250 cat > $TMPC << EOF |
7251 #include <libavutil/common.h> | 7251 #include <libavutil/common.h> |
7252 int main(void) { av_gcd(1,1); return 0; } | 7252 int main(void) { av_clip(1, 1, 1); return 0; } |
7253 EOF | 7253 EOF |
7254 if $_pkg_config --exists libavutil ; then | 7254 if $_pkg_config --exists libavutil ; then |
7255 _inc_libavutil=$($_pkg_config --cflags libavutil) | 7255 _inc_libavutil=$($_pkg_config --cflags libavutil) |
7256 _ld_tmp=$($_pkg_config --libs libavutil) | 7256 _ld_tmp=$($_pkg_config --libs libavutil) |
7257 cc_check $_inc_libavutil $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" \ | 7257 cc_check $_inc_libavutil $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" \ |