Lucio Andrés Illanes Albornoz a16226
--- bash-4.4/configure.orig	2016-08-05 22:29:55.000000000 +0200
Lucio Andrés Illanes Albornoz a16226
+++ bash-4.4/configure	2016-12-17 21:32:44.745849000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
@@ -2869,6 +2869,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 *-opennt*|*-interix*)	opt_bash_malloc=no ;;	# Interix, now owned by Microsoft
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 *-nsk*)		opt_bash_malloc=no ;;	# HP NonStop
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 *-haiku*)	opt_bash_malloc=no ;;	# Haiku OS
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+*-midipix*)	opt_bash_malloc=no ;;	# Midipix
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 esac
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 # memory scrambling on free()
Lucio Andrés Illanes Albornoz a16226
@@ -5157,13 +5158,13 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
   bash_cv_termcap_lib=libcurses
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 else
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-$as_echo_n "checking for tgetent in -lncurses... " >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-if ${ac_cv_lib_ncurses_tgetent+:} false; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+$as_echo_n "checking for tgetent in -lncursesw... " >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+if ${ac_cv_lib_ncursesw_tgetent+:} false; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
   $as_echo_n "(cached) " >&6
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 else
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
   ac_check_lib_save_LIBS=$LIBS
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-LIBS="-lncurses  $LIBS"
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+LIBS="-lncursesw  $LIBS"
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 /* end confdefs.h.  */
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 
Lucio Andrés Illanes Albornoz a16226
@@ -5183,18 +5184,18 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 }
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 _ACEOF
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 if ac_fn_c_try_link "$LINENO"; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-  ac_cv_lib_ncurses_tgetent=yes
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+  ac_cv_lib_ncursesw_tgetent=yes
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 else
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-  ac_cv_lib_ncurses_tgetent=no
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+  ac_cv_lib_ncursesw_tgetent=no
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 fi
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 rm -f core conftest.err conftest.$ac_objext \
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
     conftest$ac_exeext conftest.$ac_ext
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 LIBS=$ac_check_lib_save_LIBS
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 fi
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-  bash_cv_termcap_lib=libncurses
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+$as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+  bash_cv_termcap_lib=libncursesw
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 else
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
   bash_cv_termcap_lib=gnutermcap
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 fi
Lucio Andrés Illanes Albornoz a16226
@@ -5225,8 +5226,8 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 elif test $bash_cv_termcap_lib = libtinfo; then
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 TERMCAP_LIB=-ltinfo
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 TERMCAP_DEP=
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-elif test $bash_cv_termcap_lib = libncurses; then
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-TERMCAP_LIB=-lncurses
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+elif test $bash_cv_termcap_lib = libncursesw; then
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+TERMCAP_LIB=-lncursesw
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 TERMCAP_DEP=
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 elif test $bash_cv_termcap_lib = libc; then
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 TERMCAP_LIB=
Lucio Andrés Illanes Albornoz a16226
@@ -15850,13 +15851,13 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
   bash_cv_termcap_lib=libcurses
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 else
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-$as_echo_n "checking for tgetent in -lncurses... " >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-if ${ac_cv_lib_ncurses_tgetent+:} false; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+$as_echo_n "checking for tgetent in -lncursesw... " >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+if ${ac_cv_lib_ncursesw_tgetent+:} false; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
   $as_echo_n "(cached) " >&6
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 else
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
   ac_check_lib_save_LIBS=$LIBS
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-LIBS="-lncurses  $LIBS"
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+LIBS="-lncursesw  $LIBS"
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 /* end confdefs.h.  */
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 
Lucio Andrés Illanes Albornoz a16226
@@ -15876,18 +15877,18 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 }
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 _ACEOF
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 if ac_fn_c_try_link "$LINENO"; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-  ac_cv_lib_ncurses_tgetent=yes
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+  ac_cv_lib_ncursesw_tgetent=yes
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 else
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-  ac_cv_lib_ncurses_tgetent=no
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+  ac_cv_lib_ncursesw_tgetent=no
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 fi
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 rm -f core conftest.err conftest.$ac_objext \
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
     conftest$ac_exeext conftest.$ac_ext
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 LIBS=$ac_check_lib_save_LIBS
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 fi
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-  bash_cv_termcap_lib=libncurses
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+$as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then :
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+  bash_cv_termcap_lib=libncursesw
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 else
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
   bash_cv_termcap_lib=gnutermcap
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 fi
Lucio Andrés Illanes Albornoz a16226
@@ -15918,8 +15919,8 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 elif test $bash_cv_termcap_lib = libtinfo; then
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 TERMCAP_LIB=-ltinfo
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 TERMCAP_DEP=
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-elif test $bash_cv_termcap_lib = libncurses; then
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-TERMCAP_LIB=-lncurses
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+elif test $bash_cv_termcap_lib = libncursesw; then
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+TERMCAP_LIB=-lncursesw
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 TERMCAP_DEP=
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 elif test $bash_cv_termcap_lib = libc; then
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 TERMCAP_LIB=