comparison configure.ac @ 1463:a3479d0d7e79

Merge pull request #48 from DengkeDu/dengke/configure-add-variable-to-allow-openpty-check-cached configure: add a variable to allow openpty check to be cached
author Matt Johnston <matt@ucc.asn.au>
date Thu, 25 Jan 2018 21:58:00 +0800
parents ef310db5ccec e017e46b1434
children 51043e868f55
comparison
equal deleted inserted replaced
1461:fb90a5ba84e0 1463:a3479d0d7e79
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