summaryrefslogtreecommitdiffstats
path: root/meta/packages/ncurses/ncurses/configure.patch
blob: 992e81008f7148ea47b095a77bdf2f1cd86148e2 (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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- ncurses-5.3/./configure.in~configure
+++ ncurses-5.3/./configure.in
@@ -34,9 +34,10 @@
 dnl See http://invisible-island.net/autoconf/ for additional information.
 dnl
 dnl ---------------------------------------------------------------------------
-AC_PREREQ(2.13.20020210)
+AC_PREREQ(2.57)
 AC_REVISION($Revision: 1.297 $)
-AC_INIT(ncurses/base/lib_initscr.c)
+AC_INIT
+AC_CONFIG_SRCDIR([ncurses/base/lib_initscr.c])
 AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
 
 CF_SUBST_NCURSES_VERSION
@@ -45,7 +46,7 @@
 [AC_MSG_WARN(overriding ABI version to $withval)
  cf_cv_abi_version=$withval])
 
-CF_CHECK_CACHE([AC_CANONICAL_SYSTEM])
+CF_CHECK_CACHE([AC_CANONICAL_TARGET([])])
 AC_ARG_WITH(system-type,
 [  --with-system-type=XXX  test: override derived host system-type],
 [AC_MSG_WARN(overriding system type to $withval)
@@ -110,7 +111,7 @@
 CF_GXX_VERSION
 case $GXX_VERSION in
 1*|2.[[0-6]]*)
-	GXX=""; CXX=""; ac_cv_prog_gxx=no
+	GXX=""; CXX=""; ac_cv_cxx_compiler_gnu=no
 	cf_cxx_library=no
 	AC_MSG_WARN(templates do not work)
 	;;
@@ -370,7 +371,7 @@
 if test "$CC_SHARED_OPTS" = "unknown"; then
 	for model in $cf_list_models; do
 		if test "$model" = "shared"; then
-			AC_ERROR(Shared libraries are not supported in this version)
+			AC_MSG_ERROR([Shared libraries are not supported in this version])
 		fi
 	done
 fi
@@ -457,7 +458,7 @@
 AC_ARG_ENABLE(big-core,
 	[  --disable-big-core      assume machine has little memory],
 	[with_big_core=$enableval],
-	[AC_TRY_RUN([
+	[AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #include <stdlib.h>
 #include <string.h>
 int main() {
@@ -466,10 +467,7 @@
 	if (s != 0)
 		s[0] = s[n-1] = 0;
 	exit(s == 0);
-}],
-	[with_big_core=yes],
-	[with_big_core=no],
-	[with_big_core=no])])
+}]])],[with_big_core=yes],[with_big_core=no],[with_big_core=no])])
 AC_MSG_RESULT($with_big_core)
 test "$with_big_core" = "yes" && AC_DEFINE(HAVE_BIG_CORE)
 
@@ -484,7 +482,7 @@
 if test "$with_termcap" != "yes" ; then
 	if test "$use_database" = no ; then
 		if test -z "$with_fallback" ; then
-			AC_ERROR(You have disabled the database w/o specifying fallbacks)
+			AC_MSG_ERROR([You have disabled the database w/o specifying fallbacks])
 		fi
 	fi
 	AC_DEFINE(PURE_TERMINFO)
@@ -903,7 +901,7 @@
 AC_SUBST(MATH_LIB)
 
 ###	Checks for header files.
-AC_STDC_HEADERS
+AC_HEADER_STDC([])
 AC_HEADER_DIRENT
 AC_HEADER_TIME
 CF_REGEX
@@ -937,7 +935,7 @@
 CF_SYS_TIME_SELECT
 
 ###	checks for compiler characteristics
-AC_LANG_C
+AC_LANG([C])
 AC_C_CONST
 AC_C_INLINE
 test "$ac_cv_c_inline" != no && AC_DEFINE(CC_HAS_INLINE_FUNCS)
@@ -1012,7 +1010,7 @@
 
 # Check for C++ compiler characteristics (and ensure that it's there!)
 if test -n "$CXX" ; then
-	AC_LANG_CPLUSPLUS
+	AC_LANG([C++])
 	CF_STDCPP_LIBRARY
 
 	case $GXX_VERSION in
@@ -1286,15 +1284,16 @@
 
 ################################################################################
 test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
-AC_OUTPUT( \
+AC_CONFIG_FILES([\
 	include/MKterm.h.awk \
 	include/curses.head:include/curses.h.in \
 	include/termcap.h \
 	include/unctrl.h \
 	$SUB_MAKEFILES \
-	Makefile,[
+	Makefile])
+AC_CONFIG_COMMANDS([default],[[
 CF_LIB_RULES
-],[
+]],[[
 ### Special initialization commands, used to pass information from the
 ### configuration-run into config.status
 
@@ -1324,5 +1323,6 @@
 cf_with_cxx_binding="$cf_with_cxx_binding"
 host="$host"
 
-],cat)dnl
+]])
+AC_OUTPUTdnl
 ${MAKE-make} preinstall
--- ncurses-5.3/./test/configure.in~configure
+++ ncurses-5.3/./test/configure.in
@@ -38,8 +38,9 @@
 dnl
 dnl See http://invisible-island.net/autoconf/ for additional information.
 dnl ---------------------------------------------------------------------------
-AC_PREREQ(2.13.20020210)
-AC_INIT(ncurses.c)
+AC_PREREQ(2.57)
+AC_INIT
+AC_CONFIG_SRCDIR([ncurses.c])
 AC_CONFIG_HEADER(ncurses_cfg.h:ncurses_tst.hin)
 
 CF_INHERIT_SCRIPT(config.guess)
@@ -129,7 +130,7 @@
 
 AC_TYPE_SIGNAL
 
-AC_STDC_HEADERS
+AC_HEADER_STDC([])
 AC_HEADER_TIME
 AC_CHECK_HEADERS( \
 form.h \
@@ -160,9 +161,8 @@
 wresize \
 )
 
-AC_TRY_LINK([
-#include <${cf_cv_ncurses_header-curses.h}>],
-[
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+#include <${cf_cv_ncurses_header-curses.h}>]], [[
 	(void) assume_default_colors (0, 0);
 	(void) curses_version ();
 	(void) define_key (0, 0);
@@ -175,7 +175,7 @@
 	(void) use_default_colors ();
 	(void) use_extended_names (0);
 	(void) wresize (0, 0, 0);
-	],[AC_DEFINE(NCURSES_EXT_FUNCS)])
+	]])],[AC_DEFINE(NCURSES_EXT_FUNCS)],[])
 
 CF_SYS_TIME_SELECT
 CF_FUNC_CURSES_VERSION
@@ -186,7 +186,8 @@
 
 dnl ---------------------------------------------------------------------------
 
-AC_OUTPUT(Makefile,[
+AC_CONFIG_FILES([Makefile])
+AC_CONFIG_COMMANDS([default],[[
 	cat >>Makefile <<TEST_EOF
 
 # These rules are generated so we do not rely on suffix rules, which do not
@@ -204,4 +205,5 @@
 	@echo compiling $N; \$(CC) -c \$(CFLAGS_DEFAULT) $N.c
 TEST_EOF
 done
-],[],sort)
+]],[[]])
+AC_OUTPUT