-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfigure.ac
76 lines (69 loc) · 1.97 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
m4_define([tym_major_version],[3])
m4_define([tym_minor_version],[5])
m4_define([tym_micro_version],[2])
m4_define([tym_version],[tym_major_version().tym_minor_version().tym_micro_version()])
AC_PREREQ([2.69])
AC_INIT([tym], [tym_version()], [], [tym], [/~https://github.com/endaaman/tym])
AM_INIT_AUTOMAKE([foreign])
DATE="`date '+%Y-%m-%d'`"
AC_SUBST(DATE)
AC_CONFIG_SRCDIR([src/tym.c])
AC_CONFIG_HEADERS([app-config.h], [])
AC_CONFIG_FILES([
Makefile
src/Makefile
include/Makefile
include/common.h
tym-daemon.service
tym.1
])
AC_PROG_CC
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES(TYM, [gtk+-3.0 vte-2.91 libpcre2-8])
AC_ARG_ENABLE(luajit,
[AC_HELP_STRING([--enable-luajit], [use LuaJIT instead of the official Lua interpreter(default=no)])],
[\
case "${enableval}" in
yes) enable_luajit=yes ;;
no) enable_luajit=no ;;
*) AC_MSG_ERROR(bad value for --enable-luajit) ;;
esac],
[enable_luajit=no]
)
if test x"${enable_luajit}" = x"yes"; then
PKG_CHECK_MODULES(LUA, [luajit])
AC_DEFINE([USES_LUAJIT], 1, [Define to 1 to enable LuaJIT specific code])
else
PKG_CHECK_MODULES(LUA, [lua], [], [
PKG_CHECK_MODULES(LUA, [lua5.3])
])
fi
AC_ARG_ENABLE(debug,
[AC_HELP_STRING([--enable-debug],[turn on debugging(default=no)])],
[\
case "${enableval}" in
yes) enable_debug=yes ;;
no) enable_debug=no ;;
*) AC_MSG_ERROR(bad value for --enable-debug) ;;
esac],
[enable_debug=no]
)
if test x"${enable_debug}" = x"yes"; then
AC_DEFINE(DEBUG, 1, [Define to 1 if you want to debug])
fi
AM_CONDITIONAL([DEBUG], [test "$enable_debug" = yes])
# --enable-old-vte
AC_ARG_ENABLE(old-vte,
[AC_HELP_STRING([--enable-old-vte], [use old VTE API(default=no)])],
[\
case "${enableval}" in
yes) enable_old_vte=yes ;;
no) enable_old_vte=no ;;
*) AC_MSG_ERROR(bad value for --enable-old-vte) ;;
esac],
[enable_old_vte=no]
)
if test x"${enable_old_vte}" = x"yes"; then
AC_DEFINE([TYM_USE_OLD_VTE], 1, [Define to 1 if using old VTE API])
fi
AC_OUTPUT