80 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |
81 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
82 |
|
|
83 |
|
# Checks for typedefs, structures, and compiler characteristics. |
84 |
|
AC_C_CONST |
85 |
|
AC_TYPE_SIZE_T |
86 |
|
|
87 |
|
# Check for a windows build. |
88 |
|
case $host in |
89 |
|
*mingw*|*cygwin*) windows=yes ;; |
90 |
|
*) windows=no ;; |
91 |
|
esac |
92 |
|
AM_CONDITIONAL(WINDOWS, test "x$windows" = "xyes") |
93 |
|
|
94 |
# Checks for standard header files. |
# Checks for standard header files. |
95 |
AC_HEADER_STDC |
AC_HEADER_STDC |
96 |
|
|
97 |
AC_CHECK_HEADERS( |
if test "x$windows" = "xno"; then |
98 |
[stdlib.h string.h netdb.h arpa/inet.h netinet/tcp.h netinet/in.h sys/socket.h unistd.h], |
AC_CHECK_HEADERS( |
99 |
[], [ac_headers_h="no"]) |
[netdb.h arpa/inet.h netinet/tcp.h netinet/in.h sys/socket.h unistd.h], |
100 |
|
[], [ac_headers_h="no"]) |
101 |
|
else |
102 |
|
AC_CHECK_HEADERS([winsock.h], [], [ac_headers_h="no"]) |
103 |
|
fi |
104 |
if test "x$ac_headers_h" = "xno"; then |
if test "x$ac_headers_h" = "xno"; then |
105 |
AC_MSG_ERROR([*** Standard headers not found.]) |
AC_MSG_ERROR([*** Standard headers not found.]) |
106 |
fi |
fi |
107 |
|
|
|
# Checks for typedefs, structures, and compiler characteristics. |
|
|
AC_C_CONST |
|
|
AC_TYPE_SIZE_T |
|
|
|
|
108 |
# Checks for standard functions. |
# Checks for standard functions. |
109 |
AC_CHECK_FUNCS( |
AC_CHECK_FUNCS( |
110 |
[strdup strtok_r memset memmove socket connect bind listen setsockopt getsockopt getsockname gethostbyname], |
[strdup strtok_r memset memmove socket connect bind listen setsockopt getsockopt getsockname gethostbyname], |
113 |
AC_MSG_ERROR([*** Standard functions not found.]) |
AC_MSG_ERROR([*** Standard functions not found.]) |
114 |
fi |
fi |
115 |
|
|
|
case $host in |
|
|
*mingw*|*cygwin*) windows=yes ;; |
|
|
*) windows=no ;; |
|
|
esac |
|
|
AM_CONDITIONAL(WINDOWS, test "$windows" = "yes") |
|
|
|
|
116 |
# Checks for pthread library. |
# Checks for pthread library. |
117 |
AC_CHECK_LIB(pthread, pthread_create) |
AC_CHECK_LIB(pthread, pthread_create) |
118 |
|
|