@@ -19,65 +19,65 @@ pushd libedit-${LIBEDIT_VERSION}
19
19
# run-time. So we hack up the configure script instead.
20
20
patch -p1 << "EOF "
21
21
diff --git a/configure b/configure
22
- index 5f20ebe..eecc67a 100755
22
+ index 26dd8d0..4b6d47c 100755
23
23
--- a/configure
24
24
+++ b/configure
25
- @@ -12448,13 +12448,13 @@ test -n "$NROFF" || NROFF="/bin/false"
26
-
27
-
28
-
29
- -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
30
- -$as_echo_n "checking for tgetent in -lncurses... " >&6; }
31
- -if ${ac_cv_lib_ncurses_tgetent+:} false; then :
32
- +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
33
- +$as_echo_n "checking for tgetent in -lncursesw... " >&6; }
34
- +if ${ac_cv_lib_ncursesw_tgetent+:} false; then :
35
- $as_echo_n "(cached) " >&6
36
- else
25
+ @@ -12921,14 +12921,14 @@ test -n "$NROFF" || NROFF="/bin/false"
26
+
27
+
28
+
29
+ -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
30
+ -printf %s "checking for tgetent in -lncurses... " >&6; }
31
+ -if test ${ac_cv_lib_ncurses_tgetent+y}
32
+ +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
33
+ +printf %s "checking for tgetent in -lncursesw... " >&6; }
34
+ +if test ${ac_cv_lib_ncursesw_tgetent+y}
35
+ then :
36
+ printf %s "(cached) " >&6
37
+ else $as_nop
37
38
ac_check_lib_save_LIBS=$LIBS
38
39
-LIBS="-lncurses $LIBS"
39
40
+LIBS="-lncursesw $LIBS"
40
41
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41
42
/* end confdefs.h. */
42
-
43
- @@ -12474,22 +12474,22 @@ return tgetent ();
44
- }
43
+
44
+ @@ -12946,21 +12946,21 @@ return tgetent ();
45
45
_ACEOF
46
- if ac_fn_c_try_link "$LINENO"; then :
46
+ if ac_fn_c_try_link "$LINENO"
47
+ then :
47
48
- ac_cv_lib_ncurses_tgetent=yes
48
49
+ ac_cv_lib_ncursesw_tgetent=yes
49
- else
50
+ else $as_nop
50
51
- ac_cv_lib_ncurses_tgetent=no
51
52
+ ac_cv_lib_ncursesw_tgetent=no
52
53
fi
53
- rm -f core conftest.err conftest.$ac_objext \
54
+ rm -f core conftest.err conftest.$ac_objext conftest.beam \
54
55
conftest$ac_exeext conftest.$ac_ext
55
56
LIBS=$ac_check_lib_save_LIBS
56
57
fi
57
- -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
58
- -$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
59
- -if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
60
- +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
61
- +$as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
62
- +if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then :
63
- cat >>confdefs.h <<_ACEOF
64
- #define HAVE_LIBNCURSES 1
65
- _ACEOF
66
-
58
+ -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
59
+ -printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; }
60
+ -if test "x$ac_cv_lib_ncurses_tgetent" = xyes
61
+ +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
62
+ +printf "%s\n" "$ac_cv_lib_ncursesw_tgetent" >&6; }
63
+ +if test "x$ac_cv_lib_ncursesw_tgetent" = xyes
64
+ then :
65
+ printf "%s\n" "#define HAVE_LIBNCURSES 1" >>confdefs.h
66
+
67
67
- LIBS="-lncurses $LIBS"
68
68
+ LIBS="-lncursesw $LIBS"
69
-
70
- else
71
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
72
- @@ -12624 ,7 +12624 ,7 @@ _ACEOF
69
+
70
+ else $as_nop
71
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
72
+ @@ -13089 ,7 +13089 ,7 @@ then :
73
73
LIBS="-ltinfo $LIBS"
74
-
75
- else
74
+
75
+ else $as_nop
76
76
- as_fn_error $? "libncurses, libcurses, libtermcap or libtinfo is required!" "$LINENO" 5
77
77
+ as_fn_error $? "libncursesw, libcurses, libtermcap or libtinfo is required!" "$LINENO" 5
78
-
78
+
79
79
fi
80
-
80
+
81
81
EOF
82
82
83
83
cflags=" ${EXTRA_TARGET_CFLAGS} -fPIC -I${TOOLS_PATH} /deps/include -I${TOOLS_PATH} /deps/include/ncursesw"
0 commit comments