summaryrefslogtreecommitdiff
path: root/emulators/x48/patches/patch-configure.ac
blob: 5db2d0e0d9f0fa308b82e49d35ac03f9123ce137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-configure.ac,v 1.1 2013/07/08 08:37:10 he Exp $

Add some tests for various PTY- and TTY-related functions.

--- configure.ac.orig	2011-11-15 03:03:40.000000000 +0000
+++ configure.ac
@@ -79,6 +79,19 @@ fi
 
 # Checks for libraries.
 AC_CHECK_LIB([GL], [XCloseDisplay])
+AC_SEARCH_LIBS([grantpt], [c], [
+	AC_DEFINE([HAVE_GRANTPT], 1, [Has grantpt() function])
+])
+AC_SEARCH_LIBS([ptsname_r], [c], [
+	AC_DEFINE([HAVE_PTSNAME_R], 1, [Has ptsname_r() function])
+])
+AC_SEARCH_LIBS([cfsetspeed], [c], [
+	AC_DEFINE([HAVE_CFSETSPEED], 1, [Has cfsetspeed() function])
+])
+AC_SEARCH_LIBS([openpty], [util], [
+	AC_DEFINE([HAVE_OPENPTY], 1, [Has openpty() function])
+	LIBS=-lutil ${LIBS}
+])
 
 # Checks for header files.
 AC_HEADER_STDC