Ignore:
Timestamp:
Jan 8, 2004, 7:40:29 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • test/event.c: + Display at least two digits for keycodes.
  • configure.ac: + ScreenUpdate? is actually mandatory for our conio driver.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r327 r330  
    3333
    3434if test "${enable_conio}" != "no"; then
     35  ac_cv_my_have_conio="no"
    3536  AC_CHECK_HEADERS(conio.h,
    36    [ac_cv_my_have_conio="yes"
    37     AC_MSG_CHECKING(for ScreenUpdate in pc.h)
     37   [AC_MSG_CHECKING(for ScreenUpdate in pc.h)
    3838    AC_EGREP_HEADER(ScreenUpdate,pc.h,
    39      [AC_MSG_RESULT(yes)
     39     [ac_cv_my_have_conio="yes"
     40      AC_MSG_RESULT(yes)
    4041      AC_DEFINE(SCREENUPDATE_IN_PC_H, 1,
    41                 Define if <pc.h> defines ScreenUpdate.)],
    42      [AC_MSG_RESULT(no)])
    43     AC_DEFINE(USE_CONIO, 1, Define to activate the conio.h backend driver)
    44     CACA_DRIVERS="${CACA_DRIVERS} conio"],
    45    [ac_cv_my_have_conio="no"])
     42                Define if <pc.h> defines ScreenUpdate.)
     43      AC_DEFINE(USE_CONIO, 1, Define to activate the conio.h backend driver)
     44      CACA_DRIVERS="${CACA_DRIVERS} conio"],
     45     [AC_MSG_RESULT(no)])])
    4646  if test "${ac_cv_my_have_conio}" = "no" -a "${enable_conio}" = "yes"; then
    4747    AC_MSG_ERROR([cannot find conio.h])
     
    5050
    5151if test "${enable_slang}" != "no"; then
     52  ac_cv_my_have_slang="no"
    5253  AC_CHECK_HEADERS(slang.h slang/slang.h,
    53    ac_cv_my_have_slang="no"
    5454   [AC_CHECK_LIB(slang, SLkp_init,
    5555     [ac_cv_my_have_slang="yes"
     
    8282
    8383if test "${enable_ncurses}" != "no"; then
     84  ac_cv_my_have_ncurses="no"
    8485  AC_CHECK_HEADERS(ncurses.h,
    8586   [AC_CHECK_LIB(ncurses, initscr,
     
    8788      AC_DEFINE(USE_NCURSES, 1, Define to activate the ncurses backend driver)
    8889      CACA_LIBS="${CACA_LIBS} -lncurses"
    89       CACA_DRIVERS="${CACA_DRIVERS} ncurses"],
    90      [ac_cv_my_have_ncurses="no"])],
    91    [ac_cv_my_have_ncurses="no"])
     90      CACA_DRIVERS="${CACA_DRIVERS} ncurses"])])
    9291  if test "${ac_cv_my_have_ncurses}" = "no" -a "${enable_ncurses}" = "yes"; then
    9392    AC_MSG_ERROR([cannot find ncurses development files])
Note: See TracChangeset for help on using the changeset viewer.