# HG changeset patch # User diego # Date 1072906552 0 # Node ID 192c101ccd6b16515fe85e5426658e7ee52d5207 # Parent 57c11c567f776725948e25a14063c68a5d653ed4 MPlayer's configure fails to detect fontconfig on a system with POSIXLY_CORRECT set in the environment. The reason it fails is that it passes the arguments to pkg-config in the wrong order. (When POSIXLY_CORRECT is not set, glibc takes the liberty of rearranging the parameters.) patch by Matthew Fischer diff -r 57c11c567f77 -r 192c101ccd6b configure --- a/configure Wed Dec 31 21:33:28 2003 +0000 +++ b/configure Wed Dec 31 21:35:52 2003 +0000 @@ -4277,7 +4277,7 @@ fi echocheck "fontconfig" if test "$_fontconfig" = auto ; then - if ( pkg-config fontconfig --modversion) > /dev/null 2>&1 ; then + if ( pkg-config --modversion fontconfig) > /dev/null 2>&1 ; then cat > $TMPC << EOF #include #include @@ -4293,15 +4293,15 @@ } EOF _fontconfig=no - cc_check `pkg-config fontconfig --cflags --libs` && ( $TMPO >> "$TMPLOG" ) && _fontconfig=yes + cc_check `pkg-config --cflags --libs fontconfig` && ( $TMPO >> "$TMPLOG" ) && _fontconfig=yes else _fontconfig=no fi fi if test "$_fontconfig" = yes ; then _def_fontconfig='#define HAVE_FONTCONFIG' - _inc_fontconfig=`pkg-config fontconfig --cflags` - _ld_fontconfig=`pkg-config fontconfig --libs` + _inc_fontconfig=`pkg-config --cflags fontconfig` + _ld_fontconfig=`pkg-config --libs fontconfig` else _def_fontconfig='#undef HAVE_FONTCONFIG' fi