From: hniksic Date: Mon, 10 Nov 2003 14:13:18 +0000 (-0800) Subject: [svn] Use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE. X-Git-Tag: v1.13~1424 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=2200c78ef64628a7ba6b8fd2a9457495cf8a692e [svn] Use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE. --- diff --git a/ChangeLog b/ChangeLog index 8eee4b3f..d9e6ab2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-11-10 Hrvoje Niksic + + * aclocal.m4 (WGET_SOCKLEN_T): Use AC_COMPILE_IFELSE instead of + AC_TRY_COMPILE. + 2003-11-10 Hrvoje Niksic * aclocal.m4 (WGET_STRUCT_UTIMBUF): Use AC_CHECK_TYPES instead of diff --git a/aclocal.m4 b/aclocal.m4 index 8e085231..d71269ac 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -23,18 +23,16 @@ dnl size_t *, we use that, else we use int. AC_DEFUN([WGET_SOCKLEN_T], [ AC_MSG_CHECKING(for socklen_t) - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([ #include #include socklen_t x; -], - [], [AC_MSG_RESULT(socklen_t)], [ - AC_TRY_COMPILE([ + ], [AC_MSG_RESULT(socklen_t)], [ + AC_COMPILE_IFELSE([ #include #include int accept (int, struct sockaddr *, size_t *); -], - [], [ + ], [ AC_MSG_RESULT(size_t) AC_DEFINE([socklen_t], [size_t], [Define to int or size_t on systems without socklen_t.])