/[jscoverage]/trunk/configure.ac
ViewVC logotype

Diff of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 145 by siliconforks, Thu Jun 19 15:08:38 2008 UTC revision 174 by siliconforks, Sat Sep 20 23:27:14 2008 UTC
# Line 28  Line 28 
28  AC_PROG_LIBTOOL  AC_PROG_LIBTOOL
29    
30  # Checks for libraries.  # Checks for libraries.
31    AM_ICONV
32    
33  # Checks for header files.  # Checks for header files.
34  AC_CHECK_HEADERS([pthread.h])  AC_CHECK_HEADERS([pthread.h])
35    AC_CHECK_HEADERS([iconv.h])
36    AC_CHECK_HEADERS([windows.h])
37    
38  # Checks for typedefs, structures, and compiler characteristics.  # Checks for typedefs, structures, and compiler characteristics.
39    AC_C_BIGENDIAN
40    
41  # Checks for library functions.  # Checks for library functions.
42  AC_CHECK_FUNCS([getaddrinfo gethostbyname_r inet_aton strndup vasprintf asprintf])  AC_CHECK_FUNCS([getaddrinfo gethostbyname_r inet_aton strndup vasprintf asprintf])
43    AC_MSG_CHECKING([for MultiByteToWideChar])
44    AC_LANG(C)
45    AC_LINK_IFELSE(
46      [AC_LANG_PROGRAM([[#include <windows.h>]],[[MultiByteToWideChar(0,0,0,0,0,0);]])],
47      [AC_DEFINE([HAVE_MULTIBYTETOWIDECHAR], [1], [Define to 1 if you have the `MultiByteToWideChar' function.])
48       jscoverage_have_multibytetowidechar=yes
49       AC_MSG_RESULT([yes])],
50      [jscoverage_have_multibytetowidechar=no
51       AC_MSG_RESULT([no])])
52    
53  AC_SUBST([EXTRA_SOCKET_LIBS])  AC_SUBST([EXTRA_SOCKET_LIBS])
54  AC_SUBST([EXTRA_THREAD_LIBS])  AC_SUBST([EXTRA_THREAD_LIBS])
# Line 50  Line 63 
63      ;;      ;;
64  esac  esac
65    
66    if test "$am_cv_func_iconv" != yes && test "$jscoverage_have_multibytetowidechar" != yes
67    then
68      echo -ne '\033@<:@1;31m'
69      AC_MSG_WARN([neither iconv nor Windows character encoding conversion functions found])
70      AC_MSG_WARN([only ASCII will be supported])
71      echo -ne '\033@<:@0m'
72    fi
73    
74  AC_CONFIG_FILES([Makefile make-dist.sh make-bin-dist.sh tests/Makefile])  AC_CONFIG_FILES([Makefile make-dist.sh make-bin-dist.sh tests/Makefile])
75  AC_CONFIG_SUBDIRS([js])  AC_CONFIG_SUBDIRS([js])
76  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.145  
changed lines
  Added in v.174

  ViewVC Help
Powered by ViewVC 1.1.24