@@ -1,8 +1,8 @@ dnl -*- autoconf -*- dnl FILE: "/home/joze/src/tclreadline/configure.in" -dnl LAST MODIFICATION: "Mit, 27 Sep 2000 20:44:53 +0200 (joze)" +dnl LAST MODIFICATION: "Son, 19 Nov 2000 14:58:20 +0100 (joze)" dnl (C) 1998 - 2000 by Johannes Zellner, dnl $Id$ dnl --- dnl tclreadline -- gnu readline for tcl dnl http://www.zellner.org/tclreadline/ @@ -15,11 +15,11 @@ AC_REVISION($Revision$) AC_CONFIG_AUX_DIR(./aux) MAJOR=2 MINOR=0 -PATCHLEVEL=4 +PATCHLEVEL=5 VERSION=$MAJOR.$MINOR PATCHLEVEL_STR=$VERSION.$PATCHLEVEL AC_SUBST(MAJOR) AC_SUBST(MINOR) @@ -122,10 +122,33 @@ else AC_MSG_RESULT($TCL_INCLUDE_DIR/tcl.h) fi +# --- +# check for the terminal library. +# --- + +AC_ARG_WITH(tlib-library, + [ --with-tlib-library=DIR + lib spec to tlib (e.g. '-L/usr/local/lib -lncurses')], + LIBS="$LIBS $withval", + for tlib in ncurses termlib termcap curses; do + brk=yes + AC_CHECK_LIB($tlib, tputs, , brk=no) + if test $brk = "yes"; then + HAVE_TLIB=yes + break + fi + done + if test "x" = "x$HAVE_TLIB"; then + AC_MSG_ERROR([ + no terminal library found. Please retry with the --with-tlib argument. + ]) + fi +) + #-------------------------------------------------------------------- # Check for readline.h #-------------------------------------------------------------------- @@ -166,32 +189,10 @@ ]) exit ) ) -# --- -# check for the terminal library. -# --- - -AC_ARG_WITH(tlib-library, - [ --with-tlib-library=DIR - lib spec to tlib (e.g. '-L/usr/local/lib -lncurses')], - LIBS="$LIBS $withval", - for tlib in ncurses termlib termcap curses; do - brk=yes - AC_CHECK_LIB($tlib, tputs, , brk=no) - if test $brk = "yes"; then - HAVE_TLIB=yes - break - fi - done - if test "x" = "x$HAVE_TLIB"; then - AC_MSG_ERROR([ - no terminal library found. Please retry with the --with-tlib argument. - ]) - fi -) # check for readline's (macro.c) private variable # _rl_executing_macro.