summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBo Anderson <mail@boanderson.me>2023-10-09 13:21:20 (GMT)
committerGitHub <noreply@github.com>2023-10-09 13:21:20 (GMT)
commitf4cb0d27cc08f490c42a22e646eb73cc7072d54a (patch)
tree0649c25cdf9621fcabe5740e85684a29e4ae85e5 /configure
parent12cc6792d0ca1d0b72712d77c6efcb0aa0c7e7ba (diff)
downloadcpython-f4cb0d27cc08f490c42a22e646eb73cc7072d54a.zip
cpython-f4cb0d27cc08f490c42a22e646eb73cc7072d54a.tar.gz
cpython-f4cb0d27cc08f490c42a22e646eb73cc7072d54a.tar.bz2
gh-109191: Fix build with newer editline (gh-110239)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 7c5fdec..1799323 100755
--- a/configure
+++ b/configure
@@ -24668,6 +24668,25 @@ printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
fi
+ # in readline as well as newer editline (April 2023)
+ ac_fn_c_check_type "$LINENO" "rl_compdisp_func_t" "ac_cv_type_rl_compdisp_func_t" "
+ #include <stdio.h> /* Must be first for Gnu Readline */
+ #ifdef WITH_EDITLINE
+ # include <editline/readline.h>
+ #else
+ # include <readline/readline.h>
+ # include <readline/history.h>
+ #endif
+
+"
+if test "x$ac_cv_type_rl_compdisp_func_t" = xyes
+then :
+
+printf "%s\n" "#define HAVE_RL_COMPDISP_FUNC_T 1" >>confdefs.h
+
+fi
+
+
CFLAGS=$save_CFLAGS