Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From c5f5c5054c1b15539dccf866e2c3faba7ed68456 Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com> |
| 3 | Date: Thu, 25 Apr 2013 00:27:25 +0200 |
| 4 | Subject: [PATCH 3/6] configure: add a variable to allow openpty check to be cached |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | --- |
| 9 | configure.ac | 11 ++++++++--- |
| 10 | 1 file changed, 8 insertions(+), 3 deletions(-) |
| 11 | |
| 12 | diff --git a/configure.ac b/configure.ac |
| 13 | index 05461f3..9c16d90 100644 |
| 14 | --- a/configure.ac |
| 15 | +++ b/configure.ac |
| 16 | @@ -166,15 +166,20 @@ AC_ARG_ENABLE(openpty, |
| 17 | AC_MSG_NOTICE(Not using openpty) |
| 18 | else |
| 19 | AC_MSG_NOTICE(Using openpty if available) |
| 20 | - AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,,Have openpty() function)]) |
| 21 | + AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes]) |
| 22 | fi |
| 23 | ], |
| 24 | [ |
| 25 | AC_MSG_NOTICE(Using openpty if available) |
| 26 | - AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY)]) |
| 27 | + AC_SEARCH_LIBS(openpty, util, [dropbear_cv_func_have_openpty=yes]) |
| 28 | ] |
| 29 | ) |
| 30 | - |
| 31 | + |
| 32 | +if test "x$dropbear_cv_func_have_openpty" = "xyes"; then |
| 33 | + AC_DEFINE(HAVE_OPENPTY,,Have openpty() function) |
| 34 | + no_ptc_check=yes |
| 35 | + no_ptmx_check=yes |
| 36 | +fi |
| 37 | |
| 38 | AC_ARG_ENABLE(syslog, |
| 39 | [ --disable-syslog Don't include syslog support], |
| 40 | -- |
| 41 | 1.7.11.7 |
| 42 | |