1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(configure.in)
3
4AM_INIT_AUTOMAKE(Maaate, 0.3.1)
5AM_CONFIG_HEADER(config.h)
6
7dnl Usage of C++
8AC_PROG_CXX
9
10AC_PROG_INSTALL
11
12AM_PROG_LIBTOOL
13
14LDFLAGS="$LDFLAGS -lstdc++"
15
16dnl Checks for libraries.
17AC_CHECK_LIB(m,cos)
18dnl AC_CHECK_LIB(xml,xmlParseFile)
19
20dnl Checks for header files.
21AC_HEADER_STDC
22
23dnl Checks for typedefs, structures, and compiler characteristics.
24AC_C_CONST
25
26dnl Checks for Bigendianness of the machine
27AC_C_BIGENDIAN
28
29dnl Test for OSS
30AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h)
31if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \
32   test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
33   AC_DEFINE(DRIVER_OSS)
34fi
35
36dnl Test for Solaris audio
37AC_CHECK_HEADERS(sys/audioio.h)
38if test "${ac_cv_header_sys_audioio_h}" = "yes"; then
39   AC_DEFINE(DRIVER_SOLARIS_AUDIO)
40fi
41
42dnl set PACKAGE_PLUGIN_DIR in Makefiles and config.h
43if test "x${prefix}" = "xNONE"; then
44  PACKAGE_PLUGIN_DIR="${ac_default_prefix}/lib/${PACKAGE}"
45else
46  PACKAGE_PLUGIN_DIR="${prefix}/lib/${PACKAGE}"
47fi
48AC_DEFINE_UNQUOTED(PACKAGE_PLUGIN_DIR, "${PACKAGE_PLUGIN_DIR}")
49AC_SUBST(PACKAGE_PLUGIN_DIR)
50
51AC_OUTPUT([
52Makefile
53src/Makefile
54src/mpeg/Makefile
55src/tier1/Makefile
56src/tier2/Makefile
57src/plugins/Makefile
58src/plugins_brief/Makefile
59VisualC++/Makefile
60demos/Makefile
61Maaate.spec
62])
63
64