blob: 66be3c089c51ae51386521266e563d3289354232 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
dnl -*- Autoconf -*-
AC_INIT(chickadee, 0.4.0)
AC_CONFIG_SRCDIR(chickadee)
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability foreign])
AM_SILENT_RULES([yes])
AC_PATH_PROG([GUILE], [guile])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
AC_CONFIG_FILES([chickadee/config.scm])
# Prepare a version of $datadir that does not contain references to
# shell variables.
chickadee_prefix="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
chickadee_datadir="`eval eval echo $datadir | sed -e "s|NONE|$chickadee_prefix|g"`"
AC_SUBST([chickadee_datadir])
GUILE_PKG([3.0 2.2])
GUILE_PROGS
GUILE_MODULE_REQUIRED([gl])
GUILE_MODULE_REQUIRED([sdl2])
PKG_CHECK_MODULES([OpenAL], [openal])
PKG_CHECK_VAR([OPENAL_LIBDIR], [openal], [libdir])
AC_MSG_CHECKING([OpenAL library path])
AS_IF([test "x$OPENAL_LIBDIR" = "x"], [
AC_MSG_FAILURE([Unable to identify OpenAL lib path.])
], [
AC_MSG_RESULT([$OPENAL_LIBDIR])
])
AC_SUBST([OPENAL_LIBDIR])
AC_OUTPUT
|