This repository has been archived by the owner on May 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
/
configure.ac
71 lines (63 loc) · 2.92 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
AC_INIT(
[arc-theme],
[20190917],
[https://github.com/arc-design/arc-theme/issues],
[arc-theme],
[https://github.com/arc-design/arc-theme],
[]
)
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([no-dist-gzip dist-xz foreign])
AC_PROG_LN_S
AC_PROG_MKDIR_P
ARC_ENABLE([LIGHT], [light], [Arc Light], [disable])
ARC_ENABLE([DARKER], [darker], [Arc Darker], [disable])
ARC_ENABLE([DARK], [dark], [Arc Dark], [disable])
ARC_ENABLE([CINNAMON], [cinnamon], [Cinnamon], [disable])
ARC_ENABLE([GNOME_SHELL], [gnome-shell], [GNOME Shell], [disable])
ARC_ENABLE([GTK2], [gtk2], [GTK2], [disable])
ARC_ENABLE([GTK3], [gtk3], [GTK3], [disable])
ARC_ENABLE([METACITY], [metacity], [Metacity], [disable])
ARC_ENABLE([UNITY], [unity], [Unity], [disable])
ARC_ENABLE([XFWM], [xfwm], [XFWM], [disable])
ARC_ENABLE([TRANSPARENCY], [transparency], [transparency], [disable])
ARC_ENABLE([PLANK], [plank], [Plank theme], [disable])
ARC_ENABLE([OPENBOX], [openbox], [Openbox], [disable])
AS_IF([test "x$ENABLE_TRANSPARENCY" != xno], [
AC_SUBST([themedir], [${datadir}/themes/Arc])
AC_SUBST([themedarkerdir], [${datadir}/themes/Arc-Darker])
AC_SUBST([themedarkdir], [${datadir}/themes/Arc-Dark])
], [
AC_SUBST([themedir], [${datadir}/themes/Arc-solid])
AC_SUBST([themedarkerdir], [${datadir}/themes/Arc-Darker-solid])
AC_SUBST([themedarkdir], [${datadir}/themes/Arc-Dark-solid])
])
AS_IF([test "x$ENABLE_GTK3" != xno], [ARC_GTK3])
AS_IF([test "x$ENABLE_GNOME_SHELL" != xno], [ARC_GNOME_SHELL])
AS_IF([test "x$ENABLE_GTK2" != xno -o "x$ENABLE_GTK3" != xno -o "x$ENABLE_XFWM" != xno], [
AC_PATH_PROG([RENDERSVG], [rendersvg])
AS_IF([test "x$ac_cv_path_RENDERSVG" = x], [AC_MSG_WARN([rendersvg not found, using inkscape instead])])
AM_CONDITIONAL([RENDERSVG], [test ! "x$ac_cv_path_RENDERSVG" = x])
AC_PATH_PROG([INKSCAPE], [inkscape])
AS_IF([test "x$ac_cv_path_INKSCAPE" = x -a "x$RENDERSVG" = x], [AC_MSG_ERROR([inkscape not found])])
AM_CONDITIONAL([INKSCAPE], [test ! "x$ac_cv_path_INKSCAPE" = x])
AC_PATH_PROG([OPTIPNG], [optipng])
AS_IF([test "x$ac_cv_path_OPTIPNG" = x], [AC_MSG_WARN([optipng not found, PNG assets won't be optimized])])
AM_CONDITIONAL([OPTIPNG], [test ! "x$ac_cv_path_OPTIPNG" = x])
])
AS_IF([test "x$ENABLE_GTK3" != xno -o "x$ENABLE_CINNAMON" != xno -o "x$ENABLE_GNOME_SHELL" != xno], [
AC_PATH_PROG([SASSC], [sassc])
AS_IF([test "x$ac_cv_path_SASSC" = x], [AC_MSG_ERROR([sassc not found])])
])
AC_CONFIG_FILES([
common/gtk-2.0/Makefile
common/gtk-3.0/Makefile
common/gtk-3.0/3.18/Makefile
common/gtk-3.0/3.20/Makefile
common/xfwm4/Makefile
common/Makefile
extra/Makefile
Makefile
])
AC_OUTPUT