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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
$NetBSD: patch-aa,v 1.12 2018/02/07 11:58:31 hauke Exp $
Hunt down, stomp out and eradicate bashisms.
--- configure.in.orig 2016-07-21 15:18:45.000000000 +0000
+++ configure.in
@@ -286,7 +286,7 @@ AC_ARG_WITH([cairo],
[Use cairo graphics library @<:@default=yes@:>@])],
[
xc_with_cairo=$withval
- if test "$withval" == "no" -o "$withval" == "NO"; then
+ if test "$withval" = "no" -o "$withval" = "NO"; then
xc_with_cairo=""
fi
], )
@@ -314,7 +314,7 @@ dnl ------------------------------------
AC_ARG_WITH(tcl,
[ --with-tcl=DIR Find tclConfig.sh in DIR], [
xc_with_tcl=$withval
- if test "$withval" == "no" -o "$withval" == "NO"; then
+ if test "$withval" = "no" -o "$withval" = "NO"; then
xc_with_tcl=""
fi
], )
@@ -558,12 +558,12 @@ if test "x$xc_with_tcl" != "x" ; then
if test "x${xc_with_tcl_includes}" != "x" ; then
if test -r "${xc_with_tcl_includes}/tcl.h" ; then
TCL_INC_DIR=${xc_with_tcl_includes}
- elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
+ elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then
echo "Can't find tcl.h in \"${xc_with_tcl_includes}\""
echo "Reverting to non-Tcl compilation"
xc_with_tcl=""
fi
- elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
+ elif test "x${TCL_INCLUDE_SPEC}" = "x" ; then
for dir in \
${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
${TCL_PREFIX}/include \
@@ -595,12 +595,12 @@ if test "x$xc_with_tcl" != "x" ; then
if test "x${xc_with_tk_includes}" != "x" ; then
if test -r "${xc_with_tk_includes}/tk.h" ; then
TK_INC_DIR=${xc_with_tk_includes}
- elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
+ elif test "x${TK_INCLUDE_SPEC}" = "x" ; then
echo "Can't find tk.h in \"${xc_with_tk_includes}\""
echo "Reverting to non-Tcl compilation"
xc_with_tcl=""
fi
- elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
+ elif test "x${TK_INCLUDE_SPEC}" = "x" ; then
for dir in \
${TK_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \
@@ -640,12 +640,12 @@ if test "x$xc_with_tcl" != "x" ; then
break
fi
done
- if test "x${TCL_LIB_DIR}" == "x" ; then
+ if test "x${TCL_LIB_DIR}" = "x" ; then
echo "Can't find tcl library in \"${xc_with_tcl_libraries}\""
echo "Reverting to non-Tcl compile"
xc_with_tcl=""
fi
- elif test "x${TCL_LIB_SPEC}" == "x" ; then
+ elif test "x${TCL_LIB_SPEC}" = "x" ; then
for libpfix in "lib64" "lib"
do
libname="${TCL_EXEC_PREFIX}/${libpfix}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
@@ -680,12 +680,12 @@ if test "x$xc_with_tcl" != "x" ; then
break
fi
done
- if test "x${TK_LIB_DIR}" == "x" ; then
+ if test "x${TK_LIB_DIR}" = "x" ; then
echo "Can't find tk library in \"${xc_with_tk_libraries}\""
echo "Reverting to non-Tcl compile"
xc_with_tcl=""
fi
- elif test "x${TK_LIB_SPEC}" == "x" ; then
+ elif test "x${TK_LIB_SPEC}" = "x" ; then
for libpfix in "lib64" "lib"
do
libname="${TK_EXEC_PREFIX}/${libpfix}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
@@ -709,7 +709,7 @@ fi
#--------------------------------------------------------------------
if test "x$xc_with_tcl" != "x" ; then
- if test "x${TCL_LIB_SPEC}" == "x" ; then
+ if test "x${TCL_LIB_SPEC}" = "x" ; then
case $target in
*-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-openbsd*|OpenBSD-*)
TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
@@ -721,7 +721,7 @@ if test "x$xc_with_tcl" != "x" ; then
TCL_LIB_SPEC="-L${TCL_LIB_DIR} -l${TCL_LIB_NAME}"
fi
- if test "x${TK_LIB_SPEC}" == "x" ; then
+ if test "x${TK_LIB_SPEC}" = "x" ; then
case $target in
*-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-openbsd*|OpenBSD-*)
TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
@@ -814,13 +814,13 @@ if test "x$xc_with_tcl" != "x" ; then
# Initialize shared library build variables
- if test "x${TCL_SHLIB_SUFFIX}" == "x" ; then
+ if test "x${TCL_SHLIB_SUFFIX}" = "x" ; then
SHDLIB_EXT=".so"
else
SHDLIB_EXT="${TCL_SHLIB_SUFFIX}"
fi
- if test "x${TCL_SHLIB_LD}" == "x" ; then
+ if test "x${TCL_SHLIB_LD}" = "x" ; then
# Construct shared library build arguments the painful way
# This is not expected to be necessary, so the number of
@@ -1141,7 +1141,7 @@ echo "Configuration results:"
echo "----------------------------------------------------"
echo ""
-if test "x$xc_with_tcl" == "x" ; then
+if test "x$xc_with_tcl" = "x" ; then
if test "x$PYTHON" != x; then
echo "Using Python interface (not recommended)"
else
@@ -1154,7 +1154,7 @@ else
fi
echo ""
-if test "x$xc_with_cairo" == "x" ; then
+if test "x$xc_with_cairo" = "x" ; then
echo "No Cairo graphics."
echo "If that is not what you wanted, then make sure"
echo "you have libcairo and fontconfig installed."
|