Ignore:
Timestamp:
Dec 15, 2003, 11:38:03 AM (17 years ago)
Author:
Sam Hocevar
Message:
  • src/graphics.c src/io.c: + Beginning of an X11 driver. Currently we merely open the window and

check keyboard events.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r250 r251  
    2424AC_ARG_ENABLE(conio,
    2525  [  --enable-conio          DOS conio.h graphics support (default disabled)])
     26AC_ARG_ENABLE(x11,
     27  [  --enable-x11            X11 support (default disabled)])
    2628
    2729AC_CHECK_HEADERS(inttypes.h endian.h)
     
    4244  AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
    4345  CACA_LIBS="${CACA_LIBS} -lslang"
     46elif test "${enable_x11}" = "yes"; then
     47  AC_PATH_X
     48  AC_CHECK_LIB(X11, XOpenDisplay,
     49   [ac_cv_my_have_x11=yes
     50    X_CFLAGS="-I${x_includes}"
     51    X_LIBS="-lX11 -L${x_libraries}"],
     52   [ac_cv_my_have_x11=no],
     53   [[-lXt -L${x_libraries}]])
     54  if test "${ac_cv_my_have_x11}" != "yes"; then
     55    AC_MSG_ERROR([cannot find X11 development files])
     56  fi
     57  AC_DEFINE(USE_X11, 1, Define if the backend driver is X11)
     58  CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
     59  CACA_LIBS="${CACA_LIBS} ${X_LIBS}"
    4460elif test "${enable_ncurses}" != "no"; then
    4561  AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
Note: See TracChangeset for help on using the changeset viewer.