1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE.

This commit is contained in:
hniksic 2003-11-10 06:13:18 -08:00
parent 92957a0ee2
commit 2200c78ef6
2 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2003-11-10 Hrvoje Niksic <hniksic@xemacs.org>
* aclocal.m4 (WGET_SOCKLEN_T): Use AC_COMPILE_IFELSE instead of
AC_TRY_COMPILE.
2003-11-10 Hrvoje Niksic <hniksic@xemacs.org> 2003-11-10 Hrvoje Niksic <hniksic@xemacs.org>
* aclocal.m4 (WGET_STRUCT_UTIMBUF): Use AC_CHECK_TYPES instead of * aclocal.m4 (WGET_STRUCT_UTIMBUF): Use AC_CHECK_TYPES instead of

10
aclocal.m4 vendored
View File

@ -23,18 +23,16 @@ dnl size_t *, we use that, else we use int.
AC_DEFUN([WGET_SOCKLEN_T], [ AC_DEFUN([WGET_SOCKLEN_T], [
AC_MSG_CHECKING(for socklen_t) AC_MSG_CHECKING(for socklen_t)
AC_TRY_COMPILE([ AC_COMPILE_IFELSE([
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
socklen_t x; socklen_t x;
], ], [AC_MSG_RESULT(socklen_t)], [
[], [AC_MSG_RESULT(socklen_t)], [ AC_COMPILE_IFELSE([
AC_TRY_COMPILE([
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
int accept (int, struct sockaddr *, size_t *); int accept (int, struct sockaddr *, size_t *);
], ], [
[], [
AC_MSG_RESULT(size_t) AC_MSG_RESULT(size_t)
AC_DEFINE([socklen_t], [size_t], AC_DEFINE([socklen_t], [size_t],
[Define to int or size_t on systems without socklen_t.]) [Define to int or size_t on systems without socklen_t.])