comparison configure.ac @ 1462:e017e46b1434

configure: add a variable to allow openpty check to be cached Signed-off-by: Dengke Du <[email protected]>
author Eric Bénard <eric@eukrea.com>
date Thu, 25 Apr 2013 00:27:25 +0200
parents 8f88f4290b22
children a3479d0d7e79
comparison
equal deleted inserted replaced
1447:8f88f4290b22 1462:e017e46b1434
267 [ 267 [
268 if test "x$enableval" = "xno"; then 268 if test "x$enableval" = "xno"; then
269 AC_MSG_NOTICE(Not using openpty) 269 AC_MSG_NOTICE(Not using openpty)
270 else 270 else
271 AC_MSG_NOTICE(Using openpty if available) 271 AC_MSG_NOTICE(Using openpty if available)
272 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,1,[Have openpty() function])]) 272 AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes])
273 fi 273 fi
274 ], 274 ],
275 [ 275 [
276 AC_MSG_NOTICE(Using openpty if available) 276 AC_MSG_NOTICE(Using openpty if available)
277 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY)]) 277 AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes])
278 ] 278 ]
279 ) 279 )
280 280
281 if test "x$dropbear_cv_func_have_openpty" = "xyes"; then
282 AC_DEFINE(HAVE_OPENPTY,,Have openpty() function)
283 no_ptc_check=yes
284 no_ptmx_check=yes
285 fi
281 286
282 AC_ARG_ENABLE(syslog, 287 AC_ARG_ENABLE(syslog,
283 [ --disable-syslog Don't include syslog support], 288 [ --disable-syslog Don't include syslog support],
284 [ 289 [
285 if test "x$enableval" = "xno"; then 290 if test "x$enableval" = "xno"; then