summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-11-27 19:05:13 +0000
committerMorgan Deters <mdeters@gmail.com>2012-11-27 19:05:13 +0000
commita1fa0d6a3d185c3f9089542893295ea001734289 (patch)
tree34d430784bd92b7104ba7fa84bb6e42fdf2b05e8 /config
parent95dcbc6781cd8e62f8436f0cfe944b21dfd60ec0 (diff)
fix for some Mac builds
Diffstat (limited to 'config')
-rw-r--r--config/readline.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/config/readline.m4 b/config/readline.m4
index 957836285..dcf9a9c18 100644
--- a/config/readline.m4
+++ b/config/readline.m4
@@ -5,6 +5,7 @@ AC_DEFUN([CVC4_CHECK_FOR_READLINE], [
AC_MSG_CHECKING([whether user requested readline support])
LIBREADLINE=
have_libreadline=0
+readline_compentry_func_returns_charp=0
READLINE_LIBS=
if test "$with_readline" = no; then
AC_MSG_RESULT([no, readline disabled by user])
@@ -58,6 +59,16 @@ else
fi
if test "$with_readline" = yes; then
have_libreadline=1
+ AC_MSG_CHECKING([for type of rl_completion_entry_function])
+ AC_LANG_PUSH([C++])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
+#include <readline/readline.h>
+char* foo(const char*, int) { return (char*)0; }],[
+::rl_completion_entry_function = foo;])],
+ [AC_MSG_RESULT([char* (*)(const char*, int)])
+ readline_compentry_func_returns_charp=1],
+ [AC_MSG_FAILURE([Function])])
+ AC_LANG_POP([C++])
else
have_libreadline=0
READLINE_LIBS=
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback