3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- ncurses-5.3/./configure.in~configure
7 +++ ncurses-5.3/./configure.in
9 dnl See http://invisible-island.net/autoconf/ for additional information.
11 dnl ---------------------------------------------------------------------------
12 -AC_PREREQ(2.13.20020210)
14 AC_REVISION($Revision: 1.297 $)
15 -AC_INIT(ncurses/base/lib_initscr.c)
17 +AC_CONFIG_SRCDIR([ncurses/base/lib_initscr.c])
18 AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
20 CF_SUBST_NCURSES_VERSION
22 [AC_MSG_WARN(overriding ABI version to $withval)
23 cf_cv_abi_version=$withval])
25 -CF_CHECK_CACHE([AC_CANONICAL_SYSTEM])
26 +CF_CHECK_CACHE([AC_CANONICAL_TARGET([])])
27 AC_ARG_WITH(system-type,
28 [ --with-system-type=XXX test: override derived host system-type],
29 [AC_MSG_WARN(overriding system type to $withval)
34 - GXX=""; CXX=""; ac_cv_prog_gxx=no
35 + GXX=""; CXX=""; ac_cv_cxx_compiler_gnu=no
37 AC_MSG_WARN(templates do not work)
40 if test "$CC_SHARED_OPTS" = "unknown"; then
41 for model in $cf_list_models; do
42 if test "$model" = "shared"; then
43 - AC_ERROR(Shared libraries are not supported in this version)
44 + AC_MSG_ERROR([Shared libraries are not supported in this version])
49 AC_ARG_ENABLE(big-core,
50 [ --disable-big-core assume machine has little memory],
51 [with_big_core=$enableval],
53 + [AC_RUN_IFELSE([AC_LANG_SOURCE([[
62 - [with_big_core=yes],
64 - [with_big_core=no])])
65 +}]])],[with_big_core=yes],[with_big_core=no],[with_big_core=no])])
66 AC_MSG_RESULT($with_big_core)
67 test "$with_big_core" = "yes" && AC_DEFINE(HAVE_BIG_CORE)
70 if test "$with_termcap" != "yes" ; then
71 if test "$use_database" = no ; then
72 if test -z "$with_fallback" ; then
73 - AC_ERROR(You have disabled the database w/o specifying fallbacks)
74 + AC_MSG_ERROR([You have disabled the database w/o specifying fallbacks])
77 AC_DEFINE(PURE_TERMINFO)
81 ### Checks for header files.
90 ### checks for compiler characteristics
95 test "$ac_cv_c_inline" != no && AC_DEFINE(CC_HAS_INLINE_FUNCS)
98 # Check for C++ compiler characteristics (and ensure that it's there!)
99 if test -n "$CXX" ; then
105 @@ -1286,15 +1284,16 @@
107 ################################################################################
108 test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
111 include/MKterm.h.awk \
112 include/curses.head:include/curses.h.in \
118 +AC_CONFIG_COMMANDS([default],[[
122 ### Special initialization commands, used to pass information from the
123 ### configuration-run into config.status
125 @@ -1324,5 +1323,6 @@
126 cf_with_cxx_binding="$cf_with_cxx_binding"
132 ${MAKE-make} preinstall
133 --- ncurses-5.3/./test/configure.in~configure
134 +++ ncurses-5.3/./test/configure.in
137 dnl See http://invisible-island.net/autoconf/ for additional information.
138 dnl ---------------------------------------------------------------------------
139 -AC_PREREQ(2.13.20020210)
143 +AC_CONFIG_SRCDIR([ncurses.c])
144 AC_CONFIG_HEADER(ncurses_cfg.h:ncurses_tst.hin)
146 CF_INHERIT_SCRIPT(config.guess)
161 -#include <${cf_cv_ncurses_header-curses.h}>],
163 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[
164 +#include <${cf_cv_ncurses_header-curses.h}>]], [[
165 (void) assume_default_colors (0, 0);
166 (void) curses_version ();
167 (void) define_key (0, 0);
169 (void) use_default_colors ();
170 (void) use_extended_names (0);
171 (void) wresize (0, 0, 0);
172 - ],[AC_DEFINE(NCURSES_EXT_FUNCS)])
173 + ]])],[AC_DEFINE(NCURSES_EXT_FUNCS)],[])
176 CF_FUNC_CURSES_VERSION
179 dnl ---------------------------------------------------------------------------
181 -AC_OUTPUT(Makefile,[
182 +AC_CONFIG_FILES([Makefile])
183 +AC_CONFIG_COMMANDS([default],[[
184 cat >>Makefile <<TEST_EOF
186 # These rules are generated so we do not rely on suffix rules, which do not
188 @echo compiling $N; \$(CC) -c \$(CFLAGS_DEFAULT) $N.c