changeset 32285:150de764e80b

Simplify ENCA check.
author diego
date Sun, 26 Sep 2010 20:48:15 +0000
parents d491698b1162
children 62828818e3d4
files configure
diffstat 1 files changed, 1 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Sep 26 20:31:04 2010 +0000
+++ b/configure	Sun Sep 26 20:48:15 2010 +0000
@@ -6244,18 +6244,8 @@
 
 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'