dnl Autoconf configuration script ac3dec
dnl 
dnl Aaron Holtzman - May 1999
dnl
AC_INIT(ac3dec.c)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
AC_PREREQ(2.13)
AM_INIT_AUTOMAKE(ac3dec, 0.6.1)

AM_MAINTAINER_MODE
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
AC_PROG_RANLIB

AC_C_BIGENDIAN

AM_PATH_ALSA(0.9.0)

dnl Set the appropriate architecture define
case "$host" in
i?86-*) AC_DEFINE(__i386__, 1, [Using i386 architecture]);;
alpha*-*) AC_DEFINE(__alpha__, 1, [Using Alpha architecture]);;
sparc-*) AC_DEFINE(__sparc__, 1, [Using SPARC architecture]);;
ppc-*|powerpc-*) AC_DEFINE(__ppc__, 1, [Using PowerPC architecture]);;
ia64-*) AC_DEFINE(__ia64__, 1, [Using IA-64 architecture]);;
*) echo "$host is not currently supported by ac3dec"; exit 1;;
esac

AC_OUTPUT(libac3/Makefile tools/Makefile test/Makefile Makefile ) 
