dnl Process this file with autoconf to produce a configure script.

AC_INIT(configfile.c)

AM_CONFIG_HEADER(config.h)

dnl libtool version:
LIBXMMS_MAJOR_VERSION=3
LIBXMMS_MINOR_VERSION=1
LIBXMMS_MICRO_VERSION=2
LIBXMMS_VERSION=$LIBXMMS_MAJOR_VERSION.$LIBXMMS_MINOR_VERSION.$LIBXMMS_MICRO_VERSION

AM_INIT_AUTOMAKE(libxmms, $LIBXMMS_VERSION)

AC_SUBST(LIBXMMS_MAJOR_VERSION)
AC_SUBST(LIBXMMS_MINOR_VERSION)
AC_SUBST(LIBXMMS_MICRO_VERSION)

AC_PREFIX_PROGRAM(xmms)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

AM_PROG_LIBTOOL
AM_ENABLE_STATIC
AM_ENABLE_SHARED

XMMS_FUNC_POSIX(sched_setscheduler nanosleep)

AM_PATH_GLIB(1.2.2,,AC_MSG_ERROR([*** GLIB >= 1.2.2 not installed - please install first ***]))
AM_PATH_GTK(1.2.2,,AC_MSG_ERROR([*** GTK+ >= 1.2.2 not installed - please install first ***]),gthread)

if test -n "$GCC"
then
  CFLAGS="$CFLAGS -Wall -Wpointer-arith"
fi

AC_HEADER_TIME

AC_CHECK_HEADERS(sched.h)
AC_CHECK_HEADERS(sys/sched.h)
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(sys/time.h)

AC_OUTPUT(
Makefile
)
