Some platforms have rl_completion_append_character but not rl_completion_suppress_append.
Reported by Mark D.
This commit is contained in:
parent
c1bdf89145
commit
d9ff74e51d
|
@ -803,6 +803,8 @@ flex_complete(char *text, int start, int end)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
|
#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
|
||||||
rl_completion_append_character ='\0';
|
rl_completion_append_character ='\0';
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_RL_COMPLETION_SUPPRESS_APPEND
|
||||||
rl_completion_suppress_append = 0;
|
rl_completion_suppress_append = 0;
|
||||||
#endif
|
#endif
|
||||||
Py_XDECREF(begidx);
|
Py_XDECREF(begidx);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.in Revision: 75658 .
|
# From configure.in Revision: 75664 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.61 for python 2.7.
|
# Generated by GNU Autoconf 2.61 for python 2.7.
|
||||||
#
|
#
|
||||||
|
@ -3865,7 +3865,7 @@ else
|
||||||
{ echo "$as_me:$LINENO: result: no" >&5
|
{ echo "$as_me:$LINENO: result: no" >&5
|
||||||
echo "${ECHO_T}no" >&6; }
|
echo "${ECHO_T}no" >&6; }
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -5422,7 +5422,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
ac_cv_header_stdc=no
|
ac_cv_header_stdc=no
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -5443,7 +5443,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
ac_cv_header_stdc=no
|
ac_cv_header_stdc=no
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -6541,7 +6541,7 @@ _ACEOF
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
|
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
|
||||||
echo "${ECHO_T}$was_it_defined" >&6; }
|
echo "${ECHO_T}$was_it_defined" >&6; }
|
||||||
|
@ -7071,7 +7071,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
ac_cv_type_uid_t=no
|
ac_cv_type_uid_t=no
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
|
||||||
|
@ -15731,7 +15731,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
unistd_defines_pthreads=no
|
unistd_defines_pthreads=no
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
|
{ echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
|
||||||
echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
|
echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
|
||||||
|
@ -17345,7 +17345,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
$EGREP "yes" >/dev/null 2>&1; then
|
$EGREP "yes" >/dev/null 2>&1; then
|
||||||
ipv6type=$i
|
ipv6type=$i
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
kame)
|
kame)
|
||||||
|
@ -17368,7 +17368,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6libdir=/usr/local/v6/lib
|
ipv6libdir=/usr/local/v6/lib
|
||||||
ipv6trylibc=yes
|
ipv6trylibc=yes
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
linux-glibc)
|
linux-glibc)
|
||||||
|
@ -17389,7 +17389,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6type=$i;
|
ipv6type=$i;
|
||||||
ipv6trylibc=yes
|
ipv6trylibc=yes
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
linux-inet6)
|
linux-inet6)
|
||||||
|
@ -17427,7 +17427,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6lib=inet6;
|
ipv6lib=inet6;
|
||||||
ipv6libdir=/usr/local/v6/lib
|
ipv6libdir=/usr/local/v6/lib
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
v6d)
|
v6d)
|
||||||
|
@ -17450,7 +17450,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6libdir=/usr/local/v6/lib;
|
ipv6libdir=/usr/local/v6/lib;
|
||||||
BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
|
BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
zeta)
|
zeta)
|
||||||
|
@ -17472,7 +17472,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6lib=inet6;
|
ipv6lib=inet6;
|
||||||
ipv6libdir=/usr/local/v6/lib
|
ipv6libdir=/usr/local/v6/lib
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -25580,7 +25580,26 @@ cat >>confdefs.h <<\_ACEOF
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#include <readline/readline.h>
|
||||||
|
|
||||||
|
_ACEOF
|
||||||
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
|
$EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
|
||||||
|
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
|
#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -25850,7 +25869,7 @@ cat >>confdefs.h <<\_ACEOF
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f -r conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -3674,6 +3674,10 @@ then
|
||||||
[readline/readline.h],
|
[readline/readline.h],
|
||||||
AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER, 1,
|
AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER, 1,
|
||||||
[Define if you have readline 2.2]), )
|
[Define if you have readline 2.2]), )
|
||||||
|
AC_EGREP_HEADER([extern int rl_completion_suppress_append;],
|
||||||
|
[readline/readline.h],
|
||||||
|
AC_DEFINE(HAVE_RL_COMPLETION_SUPPRESS_APPEND, 1,
|
||||||
|
[Define if you have rl_completion_suppress_append]), )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check for readline 4.0
|
# check for readline 4.0
|
||||||
|
|
|
@ -529,6 +529,9 @@
|
||||||
/* Define if you have readline 4.2 */
|
/* Define if you have readline 4.2 */
|
||||||
#undef HAVE_RL_COMPLETION_MATCHES
|
#undef HAVE_RL_COMPLETION_MATCHES
|
||||||
|
|
||||||
|
/* Define if you have rl_completion_suppress_append */
|
||||||
|
#undef HAVE_RL_COMPLETION_SUPPRESS_APPEND
|
||||||
|
|
||||||
/* Define if you have readline 4.0 */
|
/* Define if you have readline 4.0 */
|
||||||
#undef HAVE_RL_PRE_INPUT_HOOK
|
#undef HAVE_RL_PRE_INPUT_HOOK
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue