Ignore:
Timestamp:
Mar 9, 2006, 1:47:37 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Added glue code to compile libcaca without a libc and build applications as multiboot kernels.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r554 r568  
    1212AM_PROG_CC_C_O
    1313AC_PROG_CPP
     14AM_PROG_AS
    1415
    1516AC_LIBTOOL_WIN32_DLL
     
    3940AC_ARG_ENABLE(network,
    4041  [  --enable-network        Network support (autodetected)])
     42AC_ARG_ENABLE(vga,
     43  [  --enable-vga            VGA support (default disabled)])
    4144
    4245dnl example programs features
     
    4851  [  --enable-doc            build documentation (needs doxygen and LaTeX)])
    4952
    50 AC_CHECK_HEADERS(signal.h sys/ioctl.h sys/time.h inttypes.h endian.h unistd.h)
     53AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.h endian.h unistd.h)
    5154AC_CHECK_FUNCS(signal ioctl vsnprintf getenv putenv strcasecmp)
    5255AC_CHECK_FUNCS(usleep gettimeofday)
     
    169172fi
    170173
     174if test "${enable_vga}" = "yes"; then
     175  ac_cv_my_have_vga="yes"
     176  CPPFLAGS="${CPPFLAGS} -I. -D__KERNEL__ -nostdinc -include kernel/kernel.h"
     177  CFLAGS="${CFLAGS} -fno-builtin -O2 -Wall"
     178  CCASFLAGS="${CCASFLAGS} -I."
     179  LDFLAGS="${LDFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,100000"
     180  AC_DEFINE(USE_VGA, 1, Define to activate the VGA backend driver)
     181  CACA_DRIVERS="${CACA_DRIVERS} vga"
     182fi
     183
    171184AC_MSG_CHECKING(valid output drivers)
    172185if test -z "${CACA_DRIVERS}"; then
     
    245258AC_CONFIG_FILES([
    246259  Makefile
     260  kernel/Makefile
    247261  cucul/Makefile
    248262  caca/Makefile
Note: See TracChangeset for help on using the changeset viewer.