1
2
3
4
5
6
7
8
9
10
|
# -*- autoconf -*-
# FILE: "/diska/home/joze/src/tclreadline/configure.in"
# LAST MODIFICATION: "Mon Aug 23 16:45:33 1999 (joze)"
# (C) 1998, 1999 by Johannes Zellner, <johannes@zellner.org>
# $Id$
# ---
#
# tclreadline -- gnu readline for tcl
# Copyright (C) 1999 Johannes Zellner
#
|
|
|
|
1
2
3
4
5
6
7
8
9
10
|
# -*- autoconf -*-
# FILE: "/home/joze/src/tclreadline/configure.in"
# LAST MODIFICATION: "Mon Aug 23 21:54:31 1999 (joze)"
# (C) 1998, 1999 by Johannes Zellner, <johannes@zellner.org>
# $Id$
# ---
#
# tclreadline -- gnu readline for tcl
# Copyright (C) 1999 Johannes Zellner
#
|
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
|
Use --with-readline-library to specify the directory
containing libreadline$SHLIB_SUFFIX on your system.])
else
AC_MSG_RESULT({READLINE_LIB_DIR}/libreadline${SHLIB_SUFFIX}${READLINE_VERSION_SUFFIX})
fi
#--------------------------------------------------------------------
# Check for appropriate version of gnu readline
# (older versions of gnu readline don't have
# rl_callback_read_char ()).
#--------------------------------------------------------------------
save=$LIBS
LIBS="-L$READLINE_LIB_DIR -lreadline"
alternate=no
AC_CHECK_LIB(readline, rl_callback_read_char, alternate=yes, alternate=no)
if test "$alternate" = "no"; then
AC_MSG_ERROR(alternate interface not supported by this readline version.)
fi
# ---
# check, if curses or termcap is already
# linked with libreadline. (on newer Linux
# systems it is.)
# ---
AC_CHECK_LIB(readline, tputs, termcaps=yes, termcaps=no)
if test "$termcaps" = "no"; then
# ---
# nope. tputs() is unresolved in libreadline, so
# check if we want libcurses or libtermcap.
# ---
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
>
|
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
|
Use --with-readline-library to specify the directory
containing libreadline$SHLIB_SUFFIX on your system.])
else
AC_MSG_RESULT({READLINE_LIB_DIR}/libreadline${SHLIB_SUFFIX}${READLINE_VERSION_SUFFIX})
fi
# ---
# check, if curses or termcap is already
# linked with libreadline. (on newer Linux
# systems it is.)
# ---
TERM_LIB=""
AC_CHECK_LIB(readline, tputs, termcaps=yes, termcaps=no)
if test "$termcaps" = "no"; then
# ---
# nope. tputs() is unresolved in libreadline, so
# check if we want libcurses or libtermcap.
# ---
|
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
|
AC_CHECK_LIB($TERM_LIB, tputs, tputs_ok=yes, tputs_ok=no)
if test "$tputs_ok" = "no"; then
AC_MSG_ERROR(tputs() not found in lib$TERM_LIB.)
else
TERM_LIB=-l$TERM_LIB
fi
fi
# ===========================================
AC_MSG_CHECKING([for the readline version number])
AC_TRY_RUN([
#include <stdio.h>
int main () {
FILE *fp = fopen ("conftestversion", "w");
extern char *rl_library_version;
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
|
AC_CHECK_LIB($TERM_LIB, tputs, tputs_ok=yes, tputs_ok=no)
if test "$tputs_ok" = "no"; then
AC_MSG_ERROR(tputs() not found in lib$TERM_LIB.)
else
TERM_LIB=-l$TERM_LIB
fi
fi
#--------------------------------------------------------------------
# Check for appropriate version of gnu readline
# (older versions of gnu readline don't have
# rl_callback_read_char ()).
#--------------------------------------------------------------------
save=$LIBS
LIBS="-L$READLINE_LIB_DIR -lreadline"
alternate=no
AC_CHECK_LIB(
readline, rl_callback_read_char, alternate=yes, alternate=no, $TERM_LIB
)
if test "$alternate" = "no"; then
AC_MSG_ERROR(alternate interface not supported by this readline version.)
fi
AC_MSG_CHECKING([for the readline version number])
AC_TRY_RUN([
#include <stdio.h>
int main () {
FILE *fp = fopen ("conftestversion", "w");
extern char *rl_library_version;
|