mirror of
https://github.com/clearml/dropbear
synced 2025-04-21 06:34:28 +00:00
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
This commit is contained in:
commit
3d61b6eab6
@ -269,15 +269,20 @@ AC_ARG_ENABLE(openpty,
|
|||||||
AC_MSG_NOTICE(Not using openpty)
|
AC_MSG_NOTICE(Not using openpty)
|
||||||
else
|
else
|
||||||
AC_MSG_NOTICE(Using openpty if available)
|
AC_MSG_NOTICE(Using openpty if available)
|
||||||
AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,1,[Have openpty() function])])
|
AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes])
|
||||||
fi
|
fi
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
AC_MSG_NOTICE(Using openpty if available)
|
AC_MSG_NOTICE(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,
|
AC_ARG_ENABLE(syslog,
|
||||||
[ --disable-syslog Don't include syslog support],
|
[ --disable-syslog Don't include syslog support],
|
||||||
|
Loading…
Reference in New Issue
Block a user