more readline breakage.

This commit is contained in:
Vítor Santos Costa 2014-05-28 00:35:50 +01:00
parent fa75599e7f
commit 1e08a7ce05
4 changed files with 21 additions and 5 deletions

View File

@ -556,6 +556,9 @@
/* Define to 1 if you have the `rl_clear_pending_input' function. */
#undef HAVE_RL_CLEAR_PENDING_INPUT
/* Define to 1 if the system has the type `rl_completion_func_t'. */
#undef HAVE_RL_COMPLETION_FUNC_T
/* Define to 1 if you have the `rl_completion_matches' function. */
#undef HAVE_RL_COMPLETION_MATCHES

17
configure vendored
View File

@ -6730,6 +6730,15 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
fi
ac_fn_c_check_type "$LINENO" "rl_completion_func_t" "ac_cv_type_rl_completion_func_t" "$ac_includes_default"
if test "x$ac_cv_type_rl_completion_func_t" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_RL_COMPLETION_FUNC_T 1
_ACEOF
fi
fi
@ -12472,7 +12481,7 @@ else
JAVA_TEST=Test.java
CLASS_TEST=Test.class
cat << \EOF > $JAVA_TEST
/* #line 12475 "configure" */
/* #line 12484 "configure" */
public class Test {
}
EOF
@ -12648,7 +12657,7 @@ EOF
if uudecode$EXEEXT Test.uue; then
ac_cv_prog_uudecode_base64=yes
else
echo "configure: 12651: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
echo "configure: 12660: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
echo "configure: failed file was:" >&5
cat Test.uue >&5
ac_cv_prog_uudecode_base64=no
@ -12779,7 +12788,7 @@ else
JAVA_TEST=Test.java
CLASS_TEST=Test.class
cat << \EOF > $JAVA_TEST
/* #line 12782 "configure" */
/* #line 12791 "configure" */
public class Test {
}
EOF
@ -12814,7 +12823,7 @@ JAVA_TEST=Test.java
CLASS_TEST=Test.class
TEST=Test
cat << \EOF > $JAVA_TEST
/* [#]line 12817 "configure" */
/* [#]line 12826 "configure" */
public class Test {
public static void main (String args[]) {
System.exit (0);

View File

@ -645,7 +645,7 @@ then
[--with-readline was given, but test for readline failed])
fi
])
AC_CHECK_TYPES([rl_hook_func_t])
AC_CHECK_TYPES([rl_hook_func_t, rl_completion_func_t])
fi
if test "$yap_cv_gmp" != "no"

View File

@ -612,7 +612,11 @@ PL_install_readline(void)
#else
rl_basic_word_break_characters = ":\t\n\"\\'`@$><= [](){}+*!,|%&?";
#endif
#ifdef HAVE_RL_COMPLETION_FUNC_T
rl_add_defun("prolog-complete", prolog_complete, '\t');
#else
rl_add_defun("prolog-complete", (Function *)prolog_complete, '\t');
#endif
#if HAVE_RL_INSERT_CLOSE
rl_add_defun("insert-close", rl_insert_close, ')');
#endif