110ab4c49f02e13cd5bdb972f2ee3aecfbb7fa1c
[chickadee.git] / configure.ac
1 dnl -*- Autoconf -*-
2
3 AC_INIT(chickadee, 0.3.0)
4 AC_CONFIG_SRCDIR(chickadee)
5 AC_CONFIG_AUX_DIR([build-aux])
6 AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability foreign])
7 AM_SILENT_RULES([yes])
8
9 AC_PATH_PROG([GUILE], [guile])
10 AC_CONFIG_FILES([Makefile])
11 AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
12 AC_CONFIG_FILES([chickadee/config.scm])
13
14 # Prepare a version of $datadir that does not contain references to
15 # shell variables.
16 chickadee_prefix="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
17 chickadee_datadir="`eval eval echo $datadir | sed -e "s|NONE|$chickadee_prefix|g"`"
18 AC_SUBST([chickadee_datadir])
19
20 GUILE_PKG([3.0 2.2])
21 GUILE_PROGS
22
23 GUILE_MODULE_REQUIRED([gl])
24 GUILE_MODULE_REQUIRED([sdl2])
25
26 AC_OUTPUT