]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - configure.ac
build: Check whether rl_free_keymap is declared.
[paraslash.git] / configure.ac
index cdbc0e56b0f51992973076a4ae602ca0a2d1e33a..61ff547e1e09f62403fa65fde03f0ee0ce474aec 100644 (file)
@@ -751,7 +751,15 @@ if test "$have_readline" = "yes"; then
 fi
 
 if test "$have_readline" = "yes"; then
-       :
+       AC_CHECK_DECL(
+               [rl_free_keymap],
+               [AC_DEFINE(RL_FREE_KEYMAP_DECLARED, 1, readline >= 6.3)],
+               [],
+               [
+                       #include <stdio.h>
+                       #include <readline/readline.h>
+               ]
+       )
        AC_SUBST(readline_cppflags)
        AC_SUBST(readline_ldflags)
        AC_DEFINE(HAVE_READLINE, 1, define to 1 to turn on readline support)