-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
31 lines (24 loc) · 1.12 KB
/
configure.ac
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
AC_INIT([Gloa], [0.1])
AC_CONFIG_SRCDIR([gloa.scm])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([color-tests parallel-tests -Wall -Werror foreign])
GUILE_PKG([3.0])
GUILE_PROGS
if test "x$GUILD" = "x"; then
AC_MSG_ERROR(['guild' binary not found; please check your guile-3.x installation.])
fi
dnl Provide an early evaluation of the --prefix to use for expansion elsewhere.
gloa_prefix="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
dnl Place things inside share/gloa
gloa_pkgdatadir="`eval echo ${datarootdir}/gloa | sed -e "s|NONE|$gloa_prefix|g"`"
AC_SUBST([gloa_pkgdatadir])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
AC_CONFIG_FILES([scripts/gloa], [chmod +x scripts/gloa])
dnl Installation directories for .scm and .go files.
gloa_libdir="`eval echo $libdir | sed -e"s|NONE|$gloa_prefix|g"`"
guilemoduledir="`eval echo ${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION | sed -e "s|NONE|$gloa_prefix|g"`"
guileobjectdir="`eval echo ${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache | sed -e "s|NONE|$gloa_prefix|g"`"
AC_SUBST([guilemoduledir])
AC_SUBST([guileobjectdir])
AC_OUTPUT