Browse Source

* configure.ac:

+ Search for <slang/slang.h> in addition of <slang.h>.
tags/v0.99.beta14
Sam Hocevar sam 21 years ago
parent
commit
9d47c48cb2
4 changed files with 18 additions and 7 deletions
  1. +3
    -4
      configure.ac
  2. +5
    -1
      src/caca.c
  3. +5
    -1
      src/graphics.c
  4. +5
    -1
      src/io.c

+ 3
- 4
configure.ac View File

@@ -49,15 +49,14 @@ if test "${enable_conio}" != "no"; then
fi

if test "${enable_slang}" != "no"; then
AC_CHECK_HEADERS(slang.h,
AC_CHECK_HEADERS(slang.h slang/slang.h,
ac_cv_my_have_slang="no"
[AC_CHECK_LIB(slang, SLkp_init,
[ac_cv_my_have_slang="yes"
AC_DEFINE(USE_SLANG, 1, Define to activate the slang backend driver)
CPPFLAGS="${CPPFLAGS} -DOPTIMISE_SLANG_PALETTE=1"
CACA_LIBS="${CACA_LIBS} -lslang"
CACA_DRIVERS="${CACA_DRIVERS} slang"],
[ac_cv_my_have_slang="no"])],
[ac_cv_my_have_slang="no"])
CACA_DRIVERS="${CACA_DRIVERS} slang"])])
if test "${ac_cv_my_have_slang}" = "no" -a "${enable_slang}" = "yes"; then
AC_MSG_ERROR([cannot find slang development files])
fi


+ 5
- 1
src/caca.c View File

@@ -32,7 +32,11 @@
#include "config.h"

#if defined(USE_SLANG)
# include <slang.h>
# if defined(HAVE_SLANG_SLANG_H)
# include <slang/slang.h>
# else
# include <slang.h>
# endif
#endif
#if defined(USE_NCURSES)
# include <curses.h>


+ 5
- 1
src/graphics.c View File

@@ -30,7 +30,11 @@
#include "config.h"

#if defined(USE_SLANG)
# include <slang.h>
# if defined(HAVE_SLANG_SLANG_H)
# include <slang/slang.h>
# else
# include <slang.h>
# endif
#endif
#if defined(USE_NCURSES)
# include <curses.h>


+ 5
- 1
src/io.c View File

@@ -30,7 +30,11 @@
#include "config.h"

#if defined(USE_SLANG)
# include <slang.h>
# if defined(HAVE_SLANG_SLANG_H)
# include <slang/slang.h>
# else
# include <slang.h>
# endif
#endif
#if defined(USE_NCURSES)
# include <curses.h>


Loading…
Cancel
Save