summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--infrastructure/m4/vl_lib_readline.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/infrastructure/m4/vl_lib_readline.m4 b/infrastructure/m4/vl_lib_readline.m4
index 21440111..bafccef9 100644
--- a/infrastructure/m4/vl_lib_readline.m4
+++ b/infrastructure/m4/vl_lib_readline.m4
@@ -128,6 +128,18 @@ AC_DEFUN([VL_LIB_READLINE_CHECK], [
])
fi
+ AC_TRY_LINK([$vl_cv_lib_includes], [(void) readline;],
+ [vl_compiles=yes], [vl_compiles=no])
+ if test "x$vl_compiles" = "xno"; then
+ AC_TRY_LINK([#include <stdio.h>
+ $vl_cv_lib_includes], [(void) readline;],
+ [vl_compiles_with_stdio=yes], [vl_compiles_with_stdio=no])
+ if test "x$vl_compiles_with_stdio" = "xyes"; then
+ vl_cv_lib_includes="#include <stdio.h>
+$vl_cv_lib_includes"
+ fi
+ fi
+
if test "x$vl_cv_lib_readline_compat_found" = "xyes"; then
BOX_CHECK_VAR([rl_completion_matches], [in readline headers],
[$vl_cv_lib_includes])