-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
80 lines (64 loc) · 2.18 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
77
78
79
80
AC_INIT([Budgie Next], 1, [[email protected]], [budgie-next], [https://solus-project.com/])
AM_INIT_AUTOMAKE([-Wno-portability no-dist-gzip dist-xz foreign subdir-objects])
AC_PROG_CC
AC_PROG_CC_STDC
LT_PREREQ(2.2)
LT_INIT([disable-static])
AC_PREFIX_DEFAULT(/usr/local)
AM_SILENT_RULES([yes])
AC_CONFIG_MACRO_DIR([m4])
m4_define([glib_required_version], [2.48.0])
m4_define([gtk_required_version], [3.20.0])
m4_define([theme_required_version], [2])
PKG_CHECK_MODULES([GTK],
[
gobject-2.0 >= glib_required_version,
gio-2.0 >= glib_required_version,
gio-unix-2.0 >= glib_required_version,
gtk+-3.0 >= gtk_required_version
]
)
# For now we'll just leach the existing Budgie Desktop theming
PKG_CHECK_MODULES([BUDGIE_THEME],
[
budgie-theme-1.0 >= theme_required_version
]
)
# We require support for a number of GCC attributes in budgie-next
AX_GCC_VAR_ATTRIBUTE(cleanup)
AX_GCC_VAR_ATTRIBUTE(unused)
AH_TOP([#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED 1])
AH_BOTTOM([#endif])
AC_CONFIG_HEADERS([config.h])
# Check if demos are requested
have_demos="no"
AC_ARG_ENABLE(demos, AS_HELP_STRING([--enable-demos], [enable demos]))
if test "x$enable_demos" = "xyes" ; then
AC_DEFINE([HAVE_DEMOS], [1], [Enabled demos])
have_demos="yes"
else
have_demos="no"
fi
AM_CONDITIONAL([HAVE_DEMOS], [test x$have_demos = "xyes"])
AC_CONFIG_FILES([Makefile
src/Makefile
src/libsolus/Makefile
src/libsolus-ui/Makefile
src/panel/Makefile
demos/Makefile])
AC_OUTPUT
AC_MSG_RESULT([
budgie-next $VERSION
=====================
prefix: ${prefix}
libdir: ${libdir}
sysconfdir: ${sysconfdir}
exec_prefix: ${exec_prefix}
bindir: ${bindir}
datarootdir: ${datarootdir}
compiler: ${CC}
cflags: ${CFLAGS}
ldflags: ${LDFLAGS}
demos: ${have_demos}
])