[MPlayer-cvslog] r32371 - trunk/configure

diego subversion at mplayerhq.hu
Sun Sep 26 22:48:15 CEST 2010


Author: diego
Date: Sun Sep 26 22:48:15 2010
New Revision: 32371

Log:
Simplify ENCA check.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sun Sep 26 22:31:04 2010	(r32370)
+++ trunk/configure	Sun Sep 26 22:48:15 2010	(r32371)
@@ -6244,18 +6244,8 @@ echores "$_fribidi"
 
 echocheck "ENCA"
 if test "$_enca" = auto ; then
-    cat > $TMPC << EOF
-#include <sys/types.h>
-#include <enca.h>
-int main(void) {
-    const char **langs;
-    size_t langcnt;
-    langs = enca_get_languages(&langcnt);
-    return 0;
-}
-EOF
     _enca=no
-    cc_check -lenca $_ld_lm && _enca=yes
+    function_check enca.h 'enca_get_languages(NULL)' -lenca $_ld_lm && _enca=yes
 fi
     if test "$_enca" = yes ; then
         def_enca='#define CONFIG_ENCA 1'


More information about the MPlayer-cvslog mailing list