diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-10-30 21:39:54 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-10-30 21:39:54 +0200 |
commit | e8f34d6db9d1c4343ecfacd94cd5d0441ffacee4 (patch) | |
tree | 0ef461f0882d6851fdee9e15b75257e614af1856 /configure | |
parent | b75a0f281598a38f64a5b2bc3da40ff2cdac20ca (diff) | |
parent | c2cda8d3736b59738f579fce748e94ca109ccc58 (diff) | |
download | egawk-e8f34d6db9d1c4343ecfacd94cd5d0441ffacee4.tar.gz egawk-e8f34d6db9d1c4343ecfacd94cd5d0441ffacee4.tar.bz2 egawk-e8f34d6db9d1c4343ecfacd94cd5d0441ffacee4.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 34 |
1 files changed, 33 insertions, 1 deletions
@@ -10431,7 +10431,39 @@ fi $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; } if test "$cross_compiling" = yes; then : - _found_readline=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <stdio.h> +#include <readline/readline.h> +#include <readline/history.h> +int +main () +{ + + int fd; + char *line; + + close(0); + close(1); + fd = open("/dev/null", 2); /* should get fd 0 */ + dup(fd); + line = readline("giveittome> "); + + /* some printfs don't handle NULL for %s */ + printf("got <%s>\n", line ? line : "(NULL)"); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + _found_readline=yes +else + _found_readline=no + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext |