Browse Source

* configure.ac:

+ More sensible imlib2 detection, works with cross-compilation.
  * Makefile.am:
    + Don't forget to include NOTES to the dist tarball.
tags/v0.99.beta14
Sam Hocevar sam 21 years ago
parent
commit
760bdaf690
3 changed files with 10 additions and 3 deletions
  1. +1
    -1
      Makefile.am
  2. +8
    -1
      configure.ac
  3. +1
    -1
      examples/Makefile.am

+ 1
- 1
Makefile.am View File

@@ -5,7 +5,7 @@
SUBDIRS = src examples doc
DIST_SUBDIRS = $(SUBDIRS) autotools debian

EXTRA_DIST = BUGS bootstrap caca-config.in
EXTRA_DIST = BUGS NOTES bootstrap caca-config.in
AUTOMAKE_OPTIONS = dist-bzip2

bin_SCRIPTS = caca-config


+ 8
- 1
configure.ac View File

@@ -25,6 +25,7 @@ AC_ARG_ENABLE(conio,
[ --enable-conio DOS conio.h graphics support (default disabled)])

AC_CHECK_HEADERS(inttypes.h)
AC_CHECK_FUNCS(vsnprintf)

USE_SLANG=false
USE_NCURSES=false
@@ -73,8 +74,14 @@ esac
AM_CONDITIONAL(NEED_PIC, ${NEED_PIC})

# Build cacaview?
save_CPPFLAGS="${CPPFLAGS}"
AC_PATH_PROG(IMLIB2_CONFIG, imlib2-config, no)
AM_CONDITIONAL(IMLIB2_CONFIG, test "${IMLIB2_CONFIG}" != "no")
if test "${IMLIB2_CONFIG}" != "no"; then
CPPFLAGS="${CPPFLAGS} `imlib2-config --cflags` -DX_DISPLAY_MISSING=1"
fi
AC_CHECK_HEADER(Imlib2.h, USE_IMLIB2=:, USE_IMLIB2=false)
CPPFLAGS="${save_CPPFLAGS}"
AM_CONDITIONAL(USE_IMLIB2, ${USE_IMLIB2})

# Build documentation?
AC_PATH_PROG(DOXYGEN, doxygen, no)


+ 1
- 1
examples/Makefile.am View File

@@ -23,7 +23,7 @@ caca_spritedit_SOURCES = spritedit.c
caca_spritedit_LDADD = ../src/libcaca.a $(LDFLAGS_slang) $(LDFLAGS_ncurses) -lm
caca_spritedit_CPPFLAGS = -I$(top_srcdir)/src

if IMLIB2_CONFIG
if USE_IMLIB2
cacaview = cacaview
cacaview_SOURCES = view.c
cacaview_LDADD = ../src/libcaca.a $(LDFLAGS_slang) $(LDFLAGS_ncurses)


Loading…
Cancel
Save