comparison src/configure.in @ 39:410fa1a31baf v7.0023

updated for version 7.0023
author vimboss
date Sun, 19 Dec 2004 22:46:22 +0000
parents 41f9fd58cf13
children c75153d791d0
comparison
equal deleted inserted replaced
38:c524f99c7925 39:410fa1a31baf
2354 AC_MSG_CHECKING(--with-tlib argument) 2354 AC_MSG_CHECKING(--with-tlib argument)
2355 AC_ARG_WITH(tlib, [ --with-tlib=library terminal library to be used ],) 2355 AC_ARG_WITH(tlib, [ --with-tlib=library terminal library to be used ],)
2356 if test -n "$with_tlib"; then 2356 if test -n "$with_tlib"; then
2357 AC_MSG_RESULT($with_tlib) 2357 AC_MSG_RESULT($with_tlib)
2358 LIBS="$LIBS -l$with_tlib" 2358 LIBS="$LIBS -l$with_tlib"
2359 AC_MSG_CHECKING(for linking with $with_tlib library)
2360 AC_TRY_LINK([], [], AC_MSG_RESULT(OK), AC_MSG_ERROR(FAILED))
2361 dnl Need to check for tgetent() below.
2362 olibs="$LIBS"
2359 else 2363 else
2360 AC_MSG_RESULT([automatic terminal library selection]) 2364 AC_MSG_RESULT([empty: automatic terminal library selection])
2361 dnl On HP-UX 10.10 termcap or termlib should be used instead of 2365 dnl On HP-UX 10.10 termcap or termlib should be used instead of
2362 dnl curses, because curses is much slower. 2366 dnl curses, because curses is much slower.
2363 dnl Newer versions of ncurses are preferred over anything. 2367 dnl Newer versions of ncurses are preferred over anything.
2364 dnl Older versions of ncurses have bugs, get a new one! 2368 dnl Older versions of ncurses have bugs, get a new one!
2365 dnl Digital Unix (OSF1) should use curses (Ronald Schild). 2369 dnl Digital Unix (OSF1) should use curses (Ronald Schild).
2384 fi 2388 fi
2385 AC_MSG_RESULT($libname library is not usable) 2389 AC_MSG_RESULT($libname library is not usable)
2386 LIBS="$olibs" 2390 LIBS="$olibs"
2387 fi 2391 fi
2388 done 2392 done
2389 fi 2393 if test "x$olibs" = "x$LIBS"; then
2390 if test "x$olibs" != "x$LIBS"; then 2394 AC_MSG_RESULT(no terminal library found)
2391 AC_MSG_CHECKING(whether we talk terminfo) 2395 fi
2392 AC_TRY_RUN([ 2396 fi
2397
2398 if test "x$olibs" = "x$LIBS"; then
2399 AC_MSG_CHECKING([for tgetent()])
2400 AC_TRY_LINK([],
2401 [char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");],
2402 AC_MSG_RESULT(yes),
2403 AC_MSG_ERROR([NOT FOUND!
2404 You need to install a terminal library; for example ncurses.
2405 Or specify the name of the library with --with-tlib.]))
2406 fi
2407
2408 AC_MSG_CHECKING(whether we talk terminfo)
2409 AC_TRY_RUN([
2393 #ifdef HAVE_TERMCAP_H 2410 #ifdef HAVE_TERMCAP_H
2394 # include <termcap.h> 2411 # include <termcap.h>
2395 #endif 2412 #endif
2396 main() 2413 main()
2397 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }], 2414 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }],
2398 AC_MSG_RESULT([no -- we are in termcap land]), 2415 AC_MSG_RESULT([no -- we are in termcap land]),
2399 AC_MSG_RESULT([yes -- terminfo spoken here]); AC_DEFINE(TERMINFO), 2416 AC_MSG_RESULT([yes -- terminfo spoken here]); AC_DEFINE(TERMINFO),
2400 AC_MSG_ERROR(failed to compile test program.)) 2417 AC_MSG_ERROR(failed to compile test program.))
2401 else
2402 AC_MSG_RESULT(none found)
2403 fi
2404 2418
2405 if test "x$olibs" != "x$LIBS"; then 2419 if test "x$olibs" != "x$LIBS"; then
2406 AC_MSG_CHECKING(what tgetent() returns for an unknown terminal) 2420 AC_MSG_CHECKING(what tgetent() returns for an unknown terminal)
2407 AC_TRY_RUN([ 2421 AC_TRY_RUN([
2408 #ifdef HAVE_TERMCAP_H 2422 #ifdef HAVE_TERMCAP_H