--- openssh-SNAP-20050811/configure.ac.orig	Wed Aug 10 20:52:36 2005
+++ openssh-SNAP-20050811/configure.ac	Mon Aug 15 23:52:44 2005
@@ -1023,17 +1023,18 @@
 			[ AC_MSG_ERROR(libedit not found) ],
 			[ -lcurses ]
 		)
 		AC_MSG_CHECKING(if libedit version is compatible)
-		AC_TRY_COMPILE([#include <histedit.h>],
-		    [
+		AC_COMPILE_IFELSE(
+		    [AC_LANG_SOURCE([[
+#include <histedit.h>
 int main(void)
 {
 	int i = H_SETSIZE;
 	el_init("", NULL, NULL, NULL);
 	exit(0);
 }
-		    ],
+		    ]])],
 		    [ AC_MSG_RESULT(yes) ],
 		    [ AC_MSG_RESULT(no)
 		      AC_MSG_ERROR(libedit version is not compatible) ]
 		)
