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

Diff of /trunk/configure.ac

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

revision 116 by siliconforks, Sat May 31 21:42:36 2008 UTC revision 125 by siliconforks, Mon Jun 2 17:52:38 2008 UTC
# Line 20  Line 20 
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])
23    AC_CANONICAL_HOST
24    
25  # Checks for programs.  # Checks for programs.
26  AC_PROG_CC  AC_PROG_CC
# Line 31  Line 32 
32  # Checks for header files.  # Checks for header files.
33    
34  # Checks for typedefs, structures, and compiler characteristics.  # Checks for typedefs, structures, and compiler characteristics.
 AC_CHECK_TYPES([SOCKET])  
35    
36  # Checks for library functions.  # Checks for library functions.
37  AC_CHECK_FUNCS([strndup vasprintf asprintf closesocket])  AC_CHECK_FUNCS([inet_aton strndup vasprintf asprintf])
38    
39    AC_SUBST([EXTRA_SOCKET_LIBS])
40    AC_SUBST([EXTRA_THREAD_LIBS])
41    case "$host_os" in
42      mingw*)
43        EXTRA_SOCKET_LIBS='-lws2_32'
44        EXTRA_THREAD_LIBS=''
45        ;;
46      *)
47        EXTRA_SOCKET_LIBS=''
48        EXTRA_THREAD_LIBS='-lpthread'
49        ;;
50    esac
51    
52  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])
53  AC_CONFIG_SUBDIRS([js])  AC_CONFIG_SUBDIRS([js])

Legend:
Removed from v.116  
changed lines
  Added in v.125

  ViewVC Help
Powered by ViewVC 1.1.24