# 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 ])