~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to m4/readline.m4

  • Committer: Juergen Kahrs
  • Date: 2013-12-23 17:26:45 UTC
  • mfrom: (408.2.218)
  • Revision ID: git-v1:ee9707cc44eea3ca64cb71666ac3e8ed26a3bb7f
Merge remote-tracking branch 'origin/master' into cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        dup(fd);
54
54
        line = readline("giveittome> ");
55
55
 
56
 
        printf("got <%s>\n", line);
 
56
        /* some printfs don't handle NULL for %s */
 
57
        printf("got <%s>\n", line ? line : "(NULL)");
57
58
        return 0;
58
59
}]]),
59
60
dnl action if true:
72
73
           AC_DEFINE(HAVE_LIBREADLINE,1,
73
74
              [Define to 1 if you have a fully functional readline library.])
74
75
           AC_SUBST(LIBREADLINE,$_combo)
 
76
 
 
77
           AC_CHECK_LIB(readline, history_list,
 
78
                [AC_DEFINE(HAVE_HISTORY_LIST, 1, [Do we have history_list?])],
 
79
                [],
 
80
                [$_combo])
 
81
 
75
82
           break
76
83
        fi
77
84
     done