forked from lem-project/lem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
56 lines (45 loc) · 1.6 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
56
AC_INIT([lem],[1.5])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([Makefile 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?
frontend=ncurses
if test `ros roswell-internal-use uname -m` == "armhf"; then
if test `ros roswell-internal-use uname` == "linux"; then
ros install ccl-bin
enable_ncurses_ccl=yes
enable_ncurses=no
frontend=ncurses-ccl
fi
fi
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_ARG_ENABLE([xcb],
AS_HELP_STRING([--enable-xcb], [Enable xcb]))
AM_CONDITIONAL(GENERATE_XCB,[test "x$enable_xcb" = "xyes"])
AC_ARG_ENABLE([ncurses_ccl],
AS_HELP_STRING([--enable-ncurses-ccl], [Enable ncurses-ccl]))
AM_CONDITIONAL(GENERATE_NCURSES_CCL,[test "x$enable_ncurses_ccl" = "xyes"])
AC_OUTPUT