Diff
Not logged in

Differences From Artifact [0fd9b9796f]:

To Artifact [d9679836e4]:


     1      1   # -*- autoconf -*-
     2      2   # FILE: "/diska/home/joze/src/tclreadline/configure.in"
     3         -# LAST MODIFICATION: "Wed Sep  8 18:18:02 1999 (joze)"
            3  +# LAST MODIFICATION: "Mon Sep 13 17:51:49 1999 (joze)"
     4      4   # (C) 1998, 1999 by Johannes Zellner, <johannes@zellner.org>
     5      5   # $Id$
     6      6   # ---
     7      7   #
     8      8   # tclreadline -- gnu readline for tcl
     9      9   # Copyright (C) 1999  Johannes Zellner
    10     10   #
................................................................................
    30     30   dnl	This file is an input file used by the GNU "autoconf" program to
    31     31   dnl	generate the file "configure", which is run during Tk installation
    32     32   dnl	to configure the system for the local environment.
    33     33   
    34     34   AC_REVISION($Revision$)
    35     35   
    36     36   AC_INIT(tclreadline.c)
           37  +AC_CONFIG_HEADER(config.h)
    37     38   
    38     39   TCLREADLINE_MAJOR_VERSION=0
    39     40   TCLREADLINE_MINOR_VERSION=9
    40     41   TCLREADLINE_PATCHLEVEL=3
    41     42   TCLREADLINE_VERSION=$TCLREADLINE_MAJOR_VERSION.$TCLREADLINE_MINOR_VERSION
    42     43   TCLREADLINE_PATCHLEVEL_STR=${TCLREADLINE_VERSION}.${TCLREADLINE_PATCHLEVEL}
    43     44   VERSION=$TCLREADLINE_VERSION
................................................................................
   345    346   
   346    347   # ---
   347    348   # check, if curses or termcap is already
   348    349   # linked with libreadline. (on newer Linux
   349    350   # systems it is.)
   350    351   # ---
   351    352   
   352         -TERM_LIB=""
   353         -AC_CHECK_LIB(readline, tputs, termcaps=yes, termcaps=no)
          353  +# TERM_LIB=""
          354  +# AC_CHECK_LIB(readline, tputs, termcaps=yes, termcaps=no)
          355  +termcaps=no
   354    356   if test "$termcaps" = "no"; then
   355    357   
   356    358       # ---
   357    359       # nope. tputs() is unresolved in libreadline, so
   358    360       # check if we want libcurses or libtermcap.
   359    361       # ---
   360    362   
................................................................................
   385    387   AC_CHECK_FUNC(
   386    388       rl_callback_read_char, alternate=yes, alternate=no
   387    389   )
   388    390   if test "$alternate" = "no"; then
   389    391       AC_MSG_ERROR(alternate interface not supported by this readline version.)
   390    392   fi
   391    393   
          394  +
          395  +# check for readline's (macro.c) private variable
          396  +# _rl_executing_macro.
          397  +
          398  +AC_MSG_CHECKING([for _rl_executing_macro in -lreadline])
          399  +AC_TRY_LINK(,[
          400  +extern char* _rl_executing_macro;
          401  +int main () {
          402  +    _rl_executing_macro = (char*) 0;
          403  +    return 0;
          404  +}],
          405  +    AC_MSG_RESULT(yes); AC_DEFINE_UNQUOTED(EXECUTING_MACRO_HACK, 1),
          406  +    AC_MSG_RESULT(no))
          407  +
   392    408   
   393    409   AC_MSG_CHECKING([for the readline version number])
   394    410   AC_TRY_RUN([
   395    411   #include <stdio.h>
   396    412   int main () {
   397         -    FILE *fp = fopen ("conftestversion", "w");
          413  +    FILE *fp = fopen("conftestversion", "w");
   398    414       extern char *rl_library_version;
   399         -    fprintf (fp, "%s", rl_library_version);
   400         -    close (fp);
   401         -    return (0);
          415  +    fprintf(fp, "%s", rl_library_version);
          416  +    close(fp);
          417  +    return 0;
   402    418   }],
   403    419       READLINE_VERSION=`cat conftestversion`
   404    420       AC_MSG_RESULT($READLINE_VERSION),
   405    421       AC_MSG_RESULT(failed),
   406    422       AC_MSG_RESULT(no cross compiling))
   407    423   
   408    424