Ignore:
Timestamp:
Nov 29, 2003, 3:41:37 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • configure.ac: + Default to ncurses, not slang, because slang only has 128 colour pairs.
  • src/caca.c: + Disable scrolling to avoid hashmap scrolling optimization code.
  • src/graphics.c: + Swap fg and bg in the colour pair indexing, so that bg is always

right.

+ Disable alt charset support to exploit my patched slang.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r227 r231  
    1818AC_EGREP_CPP(foo,foo)
    1919
     20AC_ARG_ENABLE(ncurses,
     21  [  --enable-ncurses        ncurses graphics support (default enabled)])
    2022AC_ARG_ENABLE(slang,
    21   [  --enable-slang          slang graphics support (default enabled)])
    22 AC_ARG_ENABLE(ncurses,
    23   [  --enable-ncurses        ncurses graphics support (default disabled)])
     23  [  --enable-slang          slang graphics support (default disabled)])
    2424AC_ARG_ENABLE(conio,
    2525  [  --enable-conio          DOS conio.h graphics support (default disabled)])
     
    4141  AC_DEFINE(USE_CONIO, 1, Define if the backend driver is conio.h)
    4242  USE_CONIO=:
    43 elif test "${enable_ncurses}" = "yes"; then
     43elif test "${enable_slang}" = "yes"; then
     44  AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
     45  AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
     46  AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
     47  USE_SLANG=:
     48elif test "${enable_ncurses}" != "no"; then
    4449  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
    4550  AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
    4651  AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses)
    4752  USE_NCURSES=:
    48 elif test "${enable_slang}" != "no"; then
    49   AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
    50   AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
    51   AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
    52   USE_SLANG=:
    5353else
    5454  AC_MSG_ERROR([could not find any terminal graphics interface])
Note: See TracChangeset for help on using the changeset viewer.