Mercurial > mplayer.hg
comparison configure @ 12568:a375d51d1bf6
freetype depends on iconv
author | diego |
---|---|
date | Fri, 11 Jun 2004 15:10:36 +0000 |
parents | ad8852dcb3fe |
children | 7b0be3001d39 |
comparison
equal
deleted
inserted
replaced
12567:4d76973b6c98 | 12568:a375d51d1bf6 |
---|---|
1960 _def_setlocale='#undef USE_SETLOCALE' | 1960 _def_setlocale='#undef USE_SETLOCALE' |
1961 fi | 1961 fi |
1962 echores "$_setlocale" | 1962 echores "$_setlocale" |
1963 | 1963 |
1964 | 1964 |
1965 echocheck "iconv" | |
1966 if test "$_iconv" = auto ; then | |
1967 _iconv_tmp='#include <iconv.h>' | |
1968 | |
1969 cat > $TMPC << EOF | |
1970 #include <stdio.h> | |
1971 #include <unistd.h> | |
1972 $_iconv_tmp | |
1973 #define INBUFSIZE 1024 | |
1974 #define OUTBUFSIZE 4096 | |
1975 | |
1976 char inbuffer[INBUFSIZE]; | |
1977 char outbuffer[OUTBUFSIZE]; | |
1978 | |
1979 int main(void) { | |
1980 size_t numread; | |
1981 iconv_t icdsc; | |
1982 char *tocode="UTF-8"; | |
1983 char *fromcode="cp1250"; | |
1984 if ((icdsc = iconv_open (tocode, fromcode)) != (iconv_t)(-1)) { | |
1985 while ((numread = read (0, inbuffer, INBUFSIZE))) { | |
1986 char *iptr=inbuffer; | |
1987 char *optr=outbuffer; | |
1988 size_t inleft=numread; | |
1989 size_t outleft=OUTBUFSIZE; | |
1990 if (iconv(icdsc, (const char **)&iptr, &inleft, &optr, &outleft) | |
1991 != (size_t)(-1)) { | |
1992 write (1, outbuffer, OUTBUFSIZE - outleft); | |
1993 } | |
1994 } | |
1995 if (iconv_close(icdsc) == -1) | |
1996 ; | |
1997 } | |
1998 } | |
1999 EOF | |
2000 _iconv=no | |
2001 if cc_check -lm -liconv ; then | |
2002 _iconv=yes | |
2003 _ld_iconv='-liconv' | |
2004 else | |
2005 cc_check -lm && _iconv=yes | |
2006 fi | |
2007 fi | |
2008 if test "$_iconv" = yes ; then | |
2009 _def_iconv='#define USE_ICONV 1' | |
2010 else | |
2011 _def_iconv='#undef USE_ICONV' | |
2012 fi | |
2013 echores "$_iconv" | |
2014 | |
2015 | |
1965 echocheck "language" | 2016 echocheck "language" |
1966 test -z "$_language" && _language=$LINGUAS | 2017 test -z "$_language" && _language=$LINGUAS |
1967 _language=`echo $_language | sed 's/,/ /g'` | 2018 _language=`echo $_language | sed 's/,/ /g'` |
1968 echo $_language | grep all > /dev/null || LANGUAGES="$_language en" | 2019 echo $_language | grep all > /dev/null || LANGUAGES="$_language en" |
1969 for i in $_language ; do | 2020 for i in $_language ; do |
4333 _def_cdparanoia='#undef HAVE_CDDA' | 4384 _def_cdparanoia='#undef HAVE_CDDA' |
4334 _noinputmodules="cdda $_noinputmodules" | 4385 _noinputmodules="cdda $_noinputmodules" |
4335 fi | 4386 fi |
4336 echores "$_cdparanoia" | 4387 echores "$_cdparanoia" |
4337 | 4388 |
4389 | |
4338 echocheck "freetype >= 2.0.9" | 4390 echocheck "freetype >= 2.0.9" |
4391 | |
4392 # freetype depends on iconv | |
4393 if test "$_iconv" = no ; then | |
4394 _freetype="no (iconv support needed)" | |
4395 fi | |
4396 | |
4339 if test "$_freetype" = auto ; then | 4397 if test "$_freetype" = auto ; then |
4340 if ( $_freetypeconfig --version ) >/dev/null 2>&1 ; then | 4398 if ( $_freetypeconfig --version ) >/dev/null 2>&1 ; then |
4341 cat > $TMPC << EOF | 4399 cat > $TMPC << EOF |
4342 #include <stdio.h> | 4400 #include <stdio.h> |
4343 #include <ft2build.h> | 4401 #include <ft2build.h> |
5015 else | 5073 else |
5016 echores "no" | 5074 echores "no" |
5017 _def_live='#undef STREAMING_LIVE_DOT_COM' | 5075 _def_live='#undef STREAMING_LIVE_DOT_COM' |
5018 _noinputmodules="live.com $_noinputmodules" | 5076 _noinputmodules="live.com $_noinputmodules" |
5019 fi | 5077 fi |
5020 | |
5021 | |
5022 echocheck "iconv" | |
5023 if test "$_iconv" = auto ; then | |
5024 _iconv_tmp='#include <iconv.h>' | |
5025 | |
5026 cat > $TMPC << EOF | |
5027 #include <stdio.h> | |
5028 #include <unistd.h> | |
5029 $_iconv_tmp | |
5030 #define INBUFSIZE 1024 | |
5031 #define OUTBUFSIZE 4096 | |
5032 | |
5033 char inbuffer[INBUFSIZE]; | |
5034 char outbuffer[OUTBUFSIZE]; | |
5035 | |
5036 int main(void) { | |
5037 size_t numread; | |
5038 iconv_t icdsc; | |
5039 char *tocode="UTF-8"; | |
5040 char *fromcode="cp1250"; | |
5041 if ((icdsc = iconv_open (tocode, fromcode)) != (iconv_t)(-1)) { | |
5042 while ((numread = read (0, inbuffer, INBUFSIZE))) { | |
5043 char *iptr=inbuffer; | |
5044 char *optr=outbuffer; | |
5045 size_t inleft=numread; | |
5046 size_t outleft=OUTBUFSIZE; | |
5047 if (iconv(icdsc, (const char **)&iptr, &inleft, &optr, &outleft) | |
5048 != (size_t)(-1)) { | |
5049 write (1, outbuffer, OUTBUFSIZE - outleft); | |
5050 } | |
5051 } | |
5052 if (iconv_close(icdsc) == -1) | |
5053 ; | |
5054 } | |
5055 } | |
5056 EOF | |
5057 _iconv=no | |
5058 if cc_check -lm -liconv ; then | |
5059 _iconv=yes | |
5060 _ld_iconv='-liconv' | |
5061 else | |
5062 cc_check -lm && _iconv=yes | |
5063 fi | |
5064 fi | |
5065 if test "$_iconv" = yes ; then | |
5066 _def_iconv='#define USE_ICONV 1' | |
5067 else | |
5068 _def_iconv='#undef USE_ICONV' | |
5069 fi | |
5070 echores "$_iconv" | |
5071 | 5078 |
5072 | 5079 |
5073 echocheck "FFmpeg libavcodec (static)" | 5080 echocheck "FFmpeg libavcodec (static)" |
5074 if test "$_libavcodec" = auto ; then | 5081 if test "$_libavcodec" = auto ; then |
5075 # Note: static linking is preferred to dynamic linking | 5082 # Note: static linking is preferred to dynamic linking |