AM_PROG_CC_C_O
AC_PROG_GCC_TRADITIONAL
AC_USE_SYSTEM_EXTENSIONS
+AM_PROG_AR
AC_PATH_PROG([M4], [m4 gm4], [no])
if test "x$M4" = xno ; then
PKG_CHECK_MODULES(PULSEDEVEL, [pulseaudio-module-devel])
AC_SUBST(PULSEDEVEL_CFLAGS)
AC_SUBST(PULSEDEVEL_LIBS)
+PKG_CHECK_VAR([modlibexecdir], [pulseaudio-module-devel], [modlibexecdir])
+AC_SUBST([modlibexecdir])
PKG_CHECK_MODULES(MURPHYCOMMON, [murphy-common])
AC_SUBST(MURPHYCOMMON_CFLAGS)
AC_SUBST(LUA_CFLAGS)
AC_SUBST(LUA_LIBS)
+PKG_CHECK_MODULES(AUL, aul, [have_aul=yes], [have_aul=no])
+if test "$have_aul" = "no" -a "$enable_aul" = "yes"; then
+ AC_MSG_ERROR([AUL development headers not found.])
+fi
+AC_SUBST(AUL_CFLAGS)
+AC_SUBST(AUL_LIBS)
+
+AM_CONDITIONAL(HAVE_AUL, [ test x$have_aul = "xyes" ])
# D-Bus
AC_ARG_WITH([dbus],
AC_SUBST(MURPHYDOMCTL_CFLAGS)
AC_SUBST(MURPHYDOMCTL_LIBS)
-
-
-
-# module directory
-AC_ARG_WITH([module-dir],
- [AS_HELP_STRING([--with-module-dir], [Directory where to install the modules to (defaults to ${LIBDIR}/pulse-${PA_MAJORMINOR}/modules/])],
- [modlibexecdir=$withval],
- [modlibexecdir=${LIBDIR}/pulse-${PA_MAJORMINOR}/modules]
-)
-
-AC_SUBST(modlibexecdir)
-
-
# documentation
AC_ARG_WITH([documentation],
[AS_HELP_STRING([--with-documentation],
LIBPULSE_LIBS: ${LIBPULSE_LIBS}
LIBPULSECORE_CFLAGS: ${LIBPULSECORE_CFLAGS}
LIBPULSECORE_LIBS: ${LIBPULSECORE_LIBS}
+ PULSEDEVEL_CFLAGS ${PULSEDEVEL_CFLAGS}
+ PULSEDEVEL_LIBS ${PULSEDEVEL_LIBS}
MAJORMINOR: ${PA_MAJORMINOR}
DBUS_CFLAGS: ${DBUS_CFLAGS}
DBUS_LIBS: ${DBUS_LIBS}
LUAUTILS_LIBS ${LUAUTILS_LIBS}
LUA_CFLAGS: ${LUA_CFLAGS}
LUA_LIBS: ${LUA_LIBS}
+ AUL_CFLAGS ${AUL_CFLAGS}
+ AUL_LIBS ${AUL_LIBS}
murphyif enabled: $build_with_murphyif
MURPHYIF_CFLAGS ${MURPHYIF_CFLAGS}
MURPHYIF_LIBS ${MURPHYIF_LIBS}