forked from nicolasdanelon/quirky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
64 lines (51 loc) · 1.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
AC_INIT([Quirky IRC Client], 1, [[email protected]], [quirky], [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)
AC_CONFIG_HEADERS([config.h])
AC_PREFIX_DEFAULT(/usr/local)
AM_SILENT_RULES([yes])
LT_INIT([disable-static])
# Package requirements
PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.40.0])
PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.40.0])
PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.12.0])
AC_CONFIG_MACRO_DIR([m4])
AC_ARG_ENABLE(windows-build, AS_HELP_STRING([--enable-windows-build], [enable windows build @<:@default=no@:>@]),
[], [enable_windows_build=no])
AS_IF([test "x$enable_windows_build" = "xyes"],
[AC_DEFINE([BUILD_WINDOWS], [1], [Building with Windows specific features])],
[])
AM_CONDITIONAL([BUILD_WINDOWS], [test x$enable_windows_build = x"yes"])
if test "x$enable_windows_build" = "xyes"; then
if test "$WINDRES" = no; then
AC_MSG_ERROR([*** Could not find an implementation of windres in your PATH.])
fi
VALAFLAGS="--define WINDOWSBUILD"
WINFLAGS="-mwindows"
fi
AC_SUBST(VALAFLAGS)
AC_SUBST(WINFLAGS)
AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
# Need Vala.
AM_PROG_VALAC([0.24], [], [AC_MSG_ERROR([valac is required to build Quirky])])
AC_CONFIG_FILES([Makefile
data/Makefile
src/Makefile
src/quirky.rc])
AC_OUTPUT
AC_MSG_RESULT([
quirky $VERSION
========
prefix: ${prefix}
libdir: ${libdir}
sysconfdir: ${sysconfdir}
exec_prefix: ${exec_prefix}
bindir: ${bindir}
datarootdir: ${datarootdir}
compiler: ${CC}
cflags: ${CFLAGS}
ldflags: ${LDFLAGS}
windows-build: ${enable_windows_build}
])