forked from lem-project/lem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
55 lines (44 loc) · 1.42 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
AC_INIT([lem],[1.10.0])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([Makefile contrib/Makefile scripts/gen-contrib/Makefile])
AC_CHECK_PROG([ROSWELL], [ros], [yes])
if test "x$ROSWELL" != xyes; then
AC_MSG_ERROR([roswell required]);
fi
dnl [TBD] cross compile possible?
lisp_impl=sbcl-bin
frontend=ncurses
if test `ros roswell-internal-use uname -m` == "armhf"; then
if test `ros roswell-internal-use uname` == "linux"; then
lisp_impl=ccl-bin
fi
fi
AC_SUBST([LISP_IMPL],$lisp_impl)
if test `ros roswell-internal-use uname` == "windows"; then
soext=dll
else
soext=so
fi
AC_SUBST([SOEXT],$soext)
ncurses=no
AC_CHECK_HEADERS(ncurses.h,[ncurses=yes])
if test "x$ncurses" = xno; then
if test frontend=ncurses; then
AC_MSG_ERROR([ncurses required]);
fi
fi
AC_ARG_WITH([name_launcher],
[AC_HELP_STRING([--with-name-launcher=lem],[name launcher for lem frontend])],
[LEM_LAUNCHER=$withval],[LEM_LAUNCHER="lem"])
AC_SUBST([LEM_LAUNCHER])
AC_ARG_WITH([default_frontend],
[AC_HELP_STRING([--with-default-frontend=ncurses],[default frontend.])],
[DEFAULT_FRONTEND=$withval],[DEFAULT_FRONTEND="$frontend"])
AC_SUBST([DEFAULT_FRONTEND])
AC_ARG_ENABLE([ncurses],
AS_HELP_STRING([--disable-ncurses], [Disable ncurses]))
AM_CONDITIONAL(GENERATE_NCURSES,[test "x$enable_ncurses" != "xno"])
AC_ARG_ENABLE([rpc],
AS_HELP_STRING([--enable-rpc], [Enable rpc]))
AM_CONDITIONAL(GENERATE_RPC,[test "x$enable_rpc" = "xyes"])
AC_OUTPUT