summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/dropbear/dropbear-0.46/configure.patch
blob: 9ae84b26044629ccfc28ccce8b18c003651bd08f (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
diff -Nurd dropbear-0.45/configure.in dropbear-0.45.patched/configure.in
--- dropbear-0.45/configure.in	2005-03-06 20:27:02.000000000 -0800
+++ dropbear-0.45.patched/configure.in	2005-03-08 15:22:44.040586721 -0800
@@ -161,15 +161,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],