diff options
author | Reuben Thomas <rrt@sc3d.org> | 2007-12-08 00:18:00 +0000 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2007-12-08 00:18:00 +0000 |
commit | e22de8ed6b9d3cfb9f000745a36c76551700b2fc (patch) | |
tree | f50bc880071677f3132c97e1f62c53a6b0847384 /conf/m4/plptools/PLP_CHECK_READLINE.m4 | |
parent | 6552c17a058165061a0ad9271b9178d2e593f651 (diff) | |
download | plptools-e22de8ed6b9d3cfb9f000745a36c76551700b2fc.tar.gz plptools-e22de8ed6b9d3cfb9f000745a36c76551700b2fc.tar.bz2 plptools-e22de8ed6b9d3cfb9f000745a36c76551700b2fc.zip |
Remove remaining custom macros, folding them into configure.in.in.
Each was called only once.
Diffstat (limited to 'conf/m4/plptools/PLP_CHECK_READLINE.m4')
-rw-r--r-- | conf/m4/plptools/PLP_CHECK_READLINE.m4 | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/conf/m4/plptools/PLP_CHECK_READLINE.m4 b/conf/m4/plptools/PLP_CHECK_READLINE.m4 deleted file mode 100644 index df4e8d8..0000000 --- a/conf/m4/plptools/PLP_CHECK_READLINE.m4 +++ /dev/null @@ -1,57 +0,0 @@ -dnl -dnl Check for libreadline and if it is available, check if it -dnl depends on libcurses. (Normally, it silently resolves the -dnl following symbols from libtermcap: -dnl tgetnum, tgoto, tgetflag, tputs, tgetent, BC, PC, UP -dnl On RedHat 7.0 however, libtermcap is broken: It contains no -dnl symbols at all. Fortunately, libcurses provides the same -dnl and therefore we have to check for that special case.) -dnl -AC_DEFUN([PLP_CHECK_READLINE], -[ - AC_MSG_CHECKING(for readline in -lreadline) - ac_cv_readline_libs="" - rl_desc="Define this, if you have libreadline" - saved_libs=$LIBS - LIBS="$LIBS -lreadline" - l1ok=0 - l2ok=0 - l3ok=0 - l4ok=0 - AC_TRY_LINK(,[extern char *readline(void); readline();],l1ok=1) - LIBS="$saved_LIBS -lreadline -ltermcap" - AC_TRY_LINK(,[extern char *readline(void); readline();],l2ok=1) - LIBS="$saved_LIBS -lreadline -lcurses" - AC_TRY_LINK(,[extern char *readline(void); readline();],l3ok=1) - LIBS="$saved_LIBS -lreadline -lncurses" - AC_TRY_LINK(,[extern char *readline(void); readline();],l4ok=1) - LIBS="$saved_LIBS" - case "$l1ok$l2ok$l3ok$l4ok" in - 0000) - AC_MSG_RESULT(no) - ;; - 01*) - dnl We prefer libtermcap cause it's smaller - ac_cv_readline_libs="-lreadline -ltermcap" - AC_MSG_RESULT([yes, and needs libtermcap]) - ;; - 001*) - dnl Prefer libcurses over libncurses - ac_cv_readline_libs="-lreadline -lcurses" - AC_MSG_RESULT([yes, and needs libcurses]) - ;; - 0001) - ac_cv_readline_libs="-lreadline -lncurses" - AC_MSG_RESULT([yes, and needs libncurses]) - ;; - 1*) - ac_cv_readline_libs="-lreadline" - AC_MSG_RESULT(yes) - ;; - esac - LIBREADLINE="${ac_cv_readline_libs}" - AC_SUBST(LIBREADLINE) - if test "${ac_cv_readline_libs}" != "" ; then - AC_DEFINE_UNQUOTED(HAVE_LIBREADLINE,1,$rl_desc) - fi -]) |