mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Fix copy paste bug
This commit is contained in:
parent
5acac0309a
commit
b9f39c2711
30
acinclude.m4
30
acinclude.m4
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
dnl CURL_CHECK_HEADER_WINDOWS
|
dnl CURL_CHECK_HEADER_WINDOWS
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Checks for compilable and valid windows.h header
|
dnl Check for compilable and valid windows.h header
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_HEADER_WINDOWS], [
|
AC_DEFUN([CURL_CHECK_HEADER_WINDOWS], [
|
||||||
AC_CACHE_CHECK([for windows.h], [ac_cv_header_windows_h], [
|
AC_CACHE_CHECK([for windows.h], [ac_cv_header_windows_h], [
|
||||||
@ -23,13 +23,15 @@ AC_DEFUN([CURL_CHECK_HEADER_WINDOWS], [
|
|||||||
if test "x$ac_cv_header_windows_h" = "xyes"; then
|
if test "x$ac_cv_header_windows_h" = "xyes"; then
|
||||||
AC_DEFINE_UNQUOTED(HAVE_WINDOWS_H, 1,
|
AC_DEFINE_UNQUOTED(HAVE_WINDOWS_H, 1,
|
||||||
[Define to 1 if you have the windows.h header file.])
|
[Define to 1 if you have the windows.h header file.])
|
||||||
|
AC_DEFINE_UNQUOTED(WIN32_LEAN_AND_MEAN, 1,
|
||||||
|
[Define to avoid automatic inclusion of winsock.h])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_CHECK_HEADER_WINSOCK
|
dnl CURL_CHECK_HEADER_WINSOCK
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Checks for compilable and valid winsock.h header
|
dnl Check for compilable and valid winsock.h header
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_HEADER_WINSOCK], [
|
AC_DEFUN([CURL_CHECK_HEADER_WINSOCK], [
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_WINDOWS])dnl
|
AC_REQUIRE([CURL_CHECK_HEADER_WINDOWS])dnl
|
||||||
@ -58,7 +60,7 @@ AC_DEFUN([CURL_CHECK_HEADER_WINSOCK], [
|
|||||||
|
|
||||||
dnl CURL_CHECK_HEADER_WINSOCK2
|
dnl CURL_CHECK_HEADER_WINSOCK2
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Checks for compilable and valid winsock2.h header
|
dnl Check for compilable and valid winsock2.h header
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_HEADER_WINSOCK2], [
|
AC_DEFUN([CURL_CHECK_HEADER_WINSOCK2], [
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_WINDOWS])dnl
|
AC_REQUIRE([CURL_CHECK_HEADER_WINDOWS])dnl
|
||||||
@ -87,7 +89,7 @@ AC_DEFUN([CURL_CHECK_HEADER_WINSOCK2], [
|
|||||||
|
|
||||||
dnl CURL_CHECK_HEADER_WS2TCPIP
|
dnl CURL_CHECK_HEADER_WS2TCPIP
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Checks for compilable and valid ws2tcpip.h header
|
dnl Check for compilable and valid ws2tcpip.h header
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_HEADER_WS2TCPIP], [
|
AC_DEFUN([CURL_CHECK_HEADER_WS2TCPIP], [
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK2])dnl
|
AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK2])dnl
|
||||||
@ -117,19 +119,17 @@ AC_DEFUN([CURL_CHECK_HEADER_WS2TCPIP], [
|
|||||||
|
|
||||||
dnl CURL_CHECK_TYPE_SOCKLEN_T
|
dnl CURL_CHECK_TYPE_SOCKLEN_T
|
||||||
dnl -------------------------------------------------
|
dnl -------------------------------------------------
|
||||||
dnl Checks for existing socklen_t type, and provides
|
dnl Check for existing socklen_t type, and provide
|
||||||
dnl an equivalent type if socklen_t is not available
|
dnl an equivalent type if socklen_t not available
|
||||||
dnl This function is experimental and shall not be
|
|
||||||
dnl used while this notice is in place --------------
|
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [
|
AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [
|
||||||
AC_REQUIRE([CURL_CHECK_HEADER_WS2TCPIP])dnl
|
AC_REQUIRE([CURL_CHECK_HEADER_WS2TCPIP])dnl
|
||||||
AC_CHECK_TYPE([socklen_t], ,[
|
AC_CHECK_TYPE([socklen_t], ,[
|
||||||
AC_CACHE_CHECK([for socklen_t equivalent],
|
AC_CACHE_CHECK([for socklen_t equivalent],
|
||||||
[curl_cv_socklen_t_equiv], [
|
[curl_cv_socklen_t_equiv], [
|
||||||
curl_cv_socklen_t_equiv=
|
curl_cv_socklen_t_equiv="unknown"
|
||||||
for arg2 in "struct sockaddr" void; do
|
for arg2 in 'struct sockaddr' 'void'; do
|
||||||
for t in int size_t unsigned long "unsigned long"; do
|
for t in 'int' 'size_t' 'unsigned int' 'long' 'unsigned long'; do
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([
|
AC_LANG_PROGRAM([
|
||||||
#undef inline
|
#undef inline
|
||||||
@ -153,13 +153,13 @@ AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [
|
|||||||
#endif
|
#endif
|
||||||
int getpeername (int, $arg2 *, $t *);
|
int getpeername (int, $arg2 *, $t *);
|
||||||
int getsockname (int, $arg2 *, $t *);
|
int getsockname (int, $arg2 *, $t *);
|
||||||
int bind (int, $arg2 *, $t *);
|
int bind (int, $arg2 *, $t);
|
||||||
int accept (int, $arg2 *, $t *);
|
int accept (int, $arg2 *, $t *);
|
||||||
],[
|
],[
|
||||||
$t len;
|
$t len=0;
|
||||||
getpeername(0,0,&len);
|
getpeername(0,0,&len);
|
||||||
getsockname(0,0,&len);
|
getsockname(0,0,&len);
|
||||||
bind(0,0,&len);
|
bind(0,0,len);
|
||||||
accept(0,0,&len);
|
accept(0,0,&len);
|
||||||
])
|
])
|
||||||
],[
|
],[
|
||||||
@ -169,7 +169,7 @@ AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
])
|
])
|
||||||
if test "x$curl_cv_socklen_t_equiv" = "x"; then
|
if test "$curl_cv_socklen_t_equiv" = "unknown"; then
|
||||||
AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
|
AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
|
||||||
else
|
else
|
||||||
AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv,
|
AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv,
|
||||||
|
Loading…
Reference in New Issue
Block a user