@@ -1,15 +1,14 @@ dnl -*- autoconf -*- -dnl FILE: "/home/joze/src/tclreadline/configure.in" -dnl LAST MODIFICATION: "Mit, 10 Jan 2001 06:26:43 +0100 (joze)" -dnl (C) 1998 - 2001 by Johannes Zellner, +dnl FILE: configure.in dnl $Id$ dnl --- dnl tclreadline -- gnu readline for tcl dnl http://www.zellner.org/tclreadline/ -dnl Copyright (c) 1998 - 2001, Johannes Zellner +dnl Copyright (c) 1998 - 2014, Johannes Zellner dnl This software is copyright under the BSD license. +dnl --- AC_INIT(tclreadline.c) AC_CONFIG_HEADERS(config.h) AC_PREREQ(2.13) AC_REVISION($Revision$) @@ -142,15 +141,15 @@ done dnl look directly in the include dirs for readline.h if test -z "$READLINE_INCLUDE_DIR"; then for dir in $rl_includes /usr/local/include /usr/include ; do - if test -r $dir/readline.h; then - READLINE_INCLUDE_DIR=$dir - AC_DEFINE_UNQUOTED(READLINE_LIBRARY, 1, [ Define if we have libreadline. ]) - break - fi + if test -r $dir/readline.h; then + READLINE_INCLUDE_DIR=$dir + AC_DEFINE_UNQUOTED(READLINE_LIBRARY, 1, [ Define if we have libreadline. ]) + break + fi done fi if test -z "$READLINE_INCLUDE_DIR"; then AC_MSG_ERROR([ @@ -159,18 +158,18 @@ containing readline.h on your system.]) fi AC_ARG_WITH(readline-library, [ --with-readline-library=DIR - lib spec to readline (e.g. '-L/usr/local/lib -lreadline')], + lib spec to readline (e.g. '-L/usr/local/lib -lreadline')], LIBS="$LIBS $withval", AC_SEARCH_LIBS(rl_callback_read_char, readline, , - AC_MSG_RESULT([ - Your readline version does not support readline's alternate interface. - Please upgrade to readline >= 2.2 and retry. - ]) - exit + AC_MSG_RESULT([ + Your readline version does not support readline's alternate interface. + Please upgrade to readline >= 2.2 and retry. + ]) + exit ) ) @@ -225,42 +224,42 @@ AC_ARG_ENABLE(tclshrl, [ --enable-tclshrl build statically linked tclshrl], [dnl action if given - case "${enableval}" in - yes) enable_static=true ;; - no) enable_static=false ;; - *) AC_MSG_ERROR(bad value ${enableval} for --enable-static) ;; - esac + case "${enableval}" in + yes) enable_static=true ;; + no) enable_static=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-static) ;; + esac ], [dnl action if not given - enable_static=false + enable_static=false ] ) AM_CONDITIONAL(STATIC_TCLSHRL, test x$enable_static = xtrue) AC_ARG_ENABLE(wishrl, [ --enable-wishrl build statically linked wishrl], [dnl action if given - case "${enableval}" in - yes) - enable_static=true - dnl source the tkConfig.sh which defines TK_LIB_SPEC - . $TCL_LIB_DIR/tkConfig.sh - AC_SUBST(TK_LIB_SPEC) - ;; - no) enable_static=false ;; - *) AC_MSG_ERROR(bad value ${enableval} for --enable-static) ;; - esac + case "${enableval}" in + yes) + enable_static=true + dnl source the tkConfig.sh which defines TK_LIB_SPEC + . $TCL_LIB_DIR/tkConfig.sh + AC_SUBST(TK_LIB_SPEC) + ;; + no) enable_static=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-static) ;; + esac ], [dnl action if not given - enable_static=false + enable_static=false ] ) AM_CONDITIONAL(STATIC_WISHRL, test x$enable_static = xtrue) AC_SUBST(TCL_INCLUDE_DIR) AC_SUBST(TCL_LIB_SPEC) AC_SUBST(READLINE_INCLUDE_DIR) AC_OUTPUT(Makefile tclreadline.h tclreadlineInit.tcl tclreadlineSetup.tcl tclreadline.n pkgIndex.tcl)