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

Diff of /trunk/configure.ac

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

revision 129 by siliconforks, Mon Jun 2 23:15:29 2008 UTC revision 336 by siliconforks, Thu Oct 23 20:08:29 2008 UTC
# Line 16  Line 16 
16  #    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.  #    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17    
18  AC_PREREQ(2.61)  AC_PREREQ(2.61)
19  AC_INIT([jscoverage], [0.3.1])  AC_INIT([jscoverage], [0.4])
20  AM_INIT_AUTOMAKE([-Wall foreign])  AM_INIT_AUTOMAKE([-Wall foreign])
21  AC_CONFIG_SRCDIR([main.c])  AC_CONFIG_SRCDIR([main.c])
22  AC_CONFIG_HEADERS([config.h])  AC_CONFIG_HEADERS([config.h])
# Line 25  Line 25 
25  # Checks for programs.  # Checks for programs.
26  AC_PROG_CC  AC_PROG_CC
27  AC_PROG_CC_C99  AC_PROG_CC_C99
 AC_PROG_LIBTOOL  
28    
29  # Checks for libraries.  # Checks for libraries.
30    AM_ICONV
31    
32  # Checks for header files.  # Checks for header files.
33  AC_CHECK_HEADERS([pthread.h])  AC_CHECK_HEADERS([pthread.h])
34    AC_CHECK_HEADERS([iconv.h])
35    AC_CHECK_HEADERS([windows.h])
36    
37  # Checks for typedefs, structures, and compiler characteristics.  # Checks for typedefs, structures, and compiler characteristics.
38    AC_C_BIGENDIAN
39    
40  # Checks for library functions.  # Checks for library functions.
41  AC_CHECK_FUNCS([getaddrinfo gethostbyname_r inet_aton strndup vasprintf asprintf])  AC_CHECK_FUNCS([getaddrinfo gethostbyname_r inet_aton strndup vasprintf asprintf])
42    AC_MSG_CHECKING([for MultiByteToWideChar])
43    AC_LANG(C)
44    AC_LINK_IFELSE(
45      [AC_LANG_PROGRAM([[#include <windows.h>]],[[MultiByteToWideChar(0,0,0,0,0,0);]])],
46      [AC_DEFINE([HAVE_MULTIBYTETOWIDECHAR], [1], [Define to 1 if you have the `MultiByteToWideChar' function.])
47       jscoverage_have_multibytetowidechar=yes
48       AC_MSG_RESULT([yes])],
49      [jscoverage_have_multibytetowidechar=no
50       AC_MSG_RESULT([no])])
51    
52  AC_SUBST([EXTRA_SOCKET_LIBS])  AC_SUBST([EXTRA_SOCKET_LIBS])
53  AC_SUBST([EXTRA_THREAD_LIBS])  AC_SUBST([EXTRA_THREAD_LIBS])
# Line 50  Line 62 
62      ;;      ;;
63  esac  esac
64    
65    if test "$am_cv_func_iconv" != yes && test "$jscoverage_have_multibytetowidechar" != yes
66    then
67      echo -ne '\033@<:@1;31m'
68      AC_MSG_WARN([neither iconv nor Windows character encoding conversion functions found])
69      AC_MSG_WARN([only ASCII will be supported])
70      echo -ne '\033@<:@0m'
71    fi
72    
73  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])
 AC_CONFIG_SUBDIRS([js])  
74  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.129  
changed lines
  Added in v.336

  ViewVC Help
Powered by ViewVC 1.1.24