aboutsummaryrefslogtreecommitdiffstats
path: root/dropbear/dropbear-0.43+0.44test4/configure.patch
blob: cfc15f826b08351a2676e393061908616ef33e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- dropbear-0.40/configure.in~configure
+++ dropbear-0.40/configure.in
@@ -125,15 +125,20 @@
 			AC_MSG_RESULT(Not using openpty)
 		else
 			AC_MSG_RESULT(Using openpty if available)
-			AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,,Have openpty() function)])
+			AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes])
 		fi
 	],
 	[
 		AC_MSG_RESULT(Using openpty if available)
-		AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY)])
+		AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes])
 	]
 )
-		
+
+if test "x$dropbear_cv_func_have_openpty" = "xyes"; then
+	AC_DEFINE(HAVE_OPENPTY,,Have openpty() function)
+	no_ptc_check=yes
+	no_ptmx_check=yes
+fi
 
 AC_ARG_ENABLE(syslog,
 	[  --disable-syslog        Don't include syslog support],