aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 342990c578721894d4a01086421dea78607c0e90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Process this file with autoconf to produce a configure script.
AC_INIT(xinebrowser.c)
AM_INIT_AUTOMAKE(mb-desktop-xine, 0.4)
AM_CONFIG_HEADER(config.h)

MB_LIBS=""

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h sys/param.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

# Checks for library functions.
AC_FUNC_MALLOC
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([strchr strdup])

PKG_CHECK_MODULES(MB, libmb >= 1.1 matchbox-desktop,,
	         AC_MSG_ERROR([*** Matchbox depencies not found***]))

dnl check for debug build
AC_ARG_ENABLE(debug,
  [  --enable-debug         enable debug build],
  [if test x$enable_debug = xyes; then
      MB_CFLAGS="$MB_CFLAGS -DDEBUG"
  fi])

AM_PATH_XINE(1.0.0,, AC_MSG_ERROR(*** Please install xine-lib first ***))

AC_SUBST(MB_LIBS)
AC_SUBST(MB_CFLAGS)

AC_OUTPUT([
Makefile
theme/Makefile
])