forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
expect-5.44.1.15_with-tk-no.patch
117 lines (101 loc) · 3.39 KB
/
expect-5.44.1.15_with-tk-no.patch
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
This is a minimal patch that does not keep indentation consistent in tcl.m4
Updating indentation would make the patch much bigger and less readable.
Signed-off-by: Gilles Espinasse <[email protected]>
Index: INSTALL
===================================================================
RCS file: /cvsroot/expect/expect/INSTALL,v
retrieving revision 5.30
diff -u -r5.30 INSTALL
--- INSTALL 21 Jun 1999 18:41:41 -0000 5.30
+++ INSTALL 30 May 2009 11:51:21 -0000
@@ -152,6 +152,7 @@
--with-tk=... Specifies the directory containing Tk's
configure file (tkConfig.sh).
+ --with-tk=no disable Tk usage in expect
--with-tkinclude=... Specifies the directory containing Tk's
private include files (such as tkInt.h)
Index: Makefile.in
===================================================================
RCS file: /cvsroot/expect/expect/Makefile.in,v
retrieving revision 5.45
diff -u -r5.45 Makefile.in
--- Makefile.in 3 Oct 2008 17:05:14 -0000 5.45
+++ Makefile.in 30 May 2009 11:51:21 -0000
@@ -103,7 +103,11 @@
PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@
lib_BINARIES = $(PKG_LIB_FILE)
-bin_BINARIES = expect expectk
+bin_BINARIES = expect
+ifneq ($(TK_BIN_DIR),)
+ bin_BINARIES += expectk
+endif
+
BINARIES = $(lib_BINARIES) $(bin_BINARIES)
SHELL = @SHELL@
Index: tclconfig/tcl.m4
===================================================================
RCS file: /cvsroot/expect/expect/tclconfig/tcl.m4,v
retrieving revision 1.3
diff -u -r1.3 tcl.m4
--- tclconfig/tcl.m4 25 Jan 2006 21:52:11 -0000 1.3
+++ tclconfig/tcl.m4 30 May 2009 11:51:23 -0000
@@ -181,10 +181,12 @@
#
# Adds the following arguments to configure:
# --with-tk=...
+# --with-tk=no disable Tk usage
#
# Defines the following vars:
# TK_BIN_DIR Full path to the directory containing
# the tkConfig.sh file
+# Empty if Tk is disabled
#------------------------------------------------------------------------
AC_DEFUN(TEA_PATH_TKCONFIG, [
@@ -201,6 +203,12 @@
AC_HELP_STRING([--with-tk],
[directory containing tk configuration (tkConfig.sh)]),
with_tkconfig=${withval})
+
+ if test x"${with_tkconfig}" = x"no" ; then
+ AC_MSG_RESULT([Tk is disabled by --with-tk=no])
+ unset TK_BIN_DIR
+ else
+
AC_MSG_CHECKING([for Tk configuration])
AC_CACHE_VAL(ac_cv_c_tkconfig,[
@@ -309,6 +317,7 @@
TK_BIN_DIR=${ac_cv_c_tkconfig}
AC_MSG_RESULT([found ${TK_BIN_DIR}/tkConfig.sh])
fi
+ fi
fi
])
@@ -420,6 +429,7 @@
#------------------------------------------------------------------------
AC_DEFUN(TEA_LOAD_TKCONFIG, [
+ if test x"${with_tkconfig}" != x"no" ; then
AC_MSG_CHECKING([for existence of ${TK_BIN_DIR}/tkConfig.sh])
if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
@@ -501,6 +511,7 @@
AC_SUBST(TK_LIBS)
AC_SUBST(TK_XINCLUDES)
+ fi
])
#------------------------------------------------------------------------
@@ -3528,6 +3539,11 @@
#------------------------------------------------------------------------
AC_DEFUN(TEA_PUBLIC_TK_HEADERS, [
+ if test x"${with_tkconfig}" = x"no" ; then
+ TK_INCLUDES=""
+ AC_SUBST(TK_INCLUDES)
+ else
+
AC_MSG_CHECKING([for Tk public headers])
AC_ARG_WITH(tkinclude, [ --with-tkinclude directory containing the public Tk header files.], with_tkinclude=${withval})
@@ -3608,6 +3624,7 @@
fi
AC_MSG_RESULT([${INCLUDE_DIR_NATIVE}])
fi
+ fi
])
#------------------------------------------------------------------------