[openssh-commits] [openssh] 03/03: Replace AC_TRY_COMPILE obsoleted in autoconf 2.70.

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Nov 6 14:05:09 AEDT 2020


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit a019e353df04de1b2ca78d91b39c393256044ad7
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Fri Nov 6 13:56:41 2020 +1100

    Replace AC_TRY_COMPILE obsoleted in autoconf 2.70.
    
    Replace with the equivalent AC_COMPILE_IFELSE.
---
 m4/openssh.m4 | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/m4/openssh.m4 b/m4/openssh.m4
index 6a49f10f..4f9c3792 100644
--- a/m4/openssh.m4
+++ b/m4/openssh.m4
@@ -171,14 +171,15 @@ AC_DEFUN([TYPE_SOCKLEN_T],
 	 curl_cv_socklen_t_equiv=
 	 for arg2 in "struct sockaddr" void; do
 	    for t in int size_t unsigned long "unsigned long"; do
-	       AC_TRY_COMPILE([
-		  #include <sys/types.h>
-		  #include <sys/socket.h>
-
-		  int getpeername (int, $arg2 *, $t *);
-	       ],[
-		  $t len;
-		  getpeername(0,0,&len);
+	       AC_COMPILE_IFELSE([
+		  AC_LANG_PROGRAM([[
+		    #include <sys/types.h>
+		    #include <sys/socket.h>
+		    int getpeername (int, $arg2 *, $t *);
+		  ]], [[
+		    $t len;
+		    getpeername(0,0,&len);
+		  ]])
 	       ],[
 		  curl_cv_socklen_t_equiv="$t"
 		  break

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list