-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
62 lines (45 loc) · 1.45 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
AC_PREREQ(2.63.2)
AC_INIT([Gcolor3], 2.1, [hjdskes@gmail.com], [gcolor3], [https://unia.github.io/gcolor3])
# Dependencies
GTK_REQUIRED=3.12.0
AC_CONFIG_HEADERS(config.h)
AC_DEFINE_UNQUOTED(UNUSED, [__attribute__ ((unused))], [Wrapper over __attribue__ ((unused))])
AM_INIT_AUTOMAKE([1.11 foreign dist-xz no-dist-gzip subdir-objects -Wno-portability])
AM_SILENT_RULES(yes)
# Check for programs
AC_PROG_CC
AC_PROG_CC_STDC
# Initialize libtool
LT_PREREQ(2.2.6)
LT_INIT(disable-static)
# Resources
AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
# Marshals
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
# Internationalization
IT_PROG_INTLTOOL(0.50.1)
AM_GLIB_GNU_GETTEXT
AC_SUBST(GETTEXT_PACKAGE, AC_PACKAGE_NAME)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package.])
# Package requirements
PKG_CHECK_MODULES([GCOLOR3], [gtk+-3.0 >= GTK_REQUIRED])
AC_CONFIG_FILES(Makefile
data/Makefile
data/gcolor3.desktop.in
data/icons/Makefile
src/Makefile
po/Makefile.in)
AC_OUTPUT
AC_MSG_RESULT([
$PACKAGE $VERSION
========
prefix: ${prefix}
libdir: ${libdir}
sysconfdir: ${sysconfdir}
exec_prefix: ${exec_prefix}
bindir: ${bindir}
datarootdir: ${datarootdir}
compiler: ${CC}
cflags: ${CFLAGS}
ldflags: ${LDFLAGS}
])