summaryrefslogtreecommitdiff
path: root/x11/x11vnc/patches/patch-configure.ac
blob: f07bfc4f7a45307f51e003495d2572e825b68dca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-configure.ac,v 1.2 2018/12/18 15:53:46 tnn Exp $

* check openpty(3)

--- configure.ac.orig	2018-02-04 21:43:38.000000000 +0000
+++ configure.ac
@@ -511,6 +511,10 @@ case `(uname -sr) 2>/dev/null` in
     ;;
 esac
 
+AC_CHECK_HEADERS([pty.h libutil.h util.h])
+AH_TEMPLATE(HAVE_OPENPTY, [Define to `1' if you have the `openpty' function.])
+AC_SEARCH_LIBS(openpty, util bsd, [AC_DEFINE(HAVE_OPENPTY)])
+
 # Check for rpm SOURCES path
 printf "checking for rpm sources path... "
 RPMSOURCEDIR="NOT-FOUND"