-
Notifications
You must be signed in to change notification settings - Fork 8
/
configure.ac
39 lines (32 loc) · 1015 Bytes
/
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
AC_PREREQ([2.68])
AC_INIT([submarine], [0.1.3], [blaz.tomazic@gmail.com])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AM_SILENT_RULES([yes])
AC_CONFIG_FILES([Makefile
lib/Makefile
submarine/Makefile
doc/Makefile])
# Checks for programs.
AM_PROG_AR
LT_INIT
AC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_VALAC
PKG_PROG_PKG_CONFIG
# Checks for libraries.
libsubmarine_modules="glib-2.0 gobject-2.0 libsoup-2.4 gee-1.0 libarchive"
PKG_CHECK_MODULES([LIBSUBMARINE], [$libsubmarine_modules])
AC_SUBST([LIBSUBMARINE_CFLAGS])
AC_SUBST([LIBSUBMARINE_LIBS])
LIBSUBMARINE_VALAPACKAGES="--pkg gee-1.0 --pkg libsoup-2.4 --pkg libarchive"
AC_SUBST([LIBSUBMARINE_VALAPACKAGES])
submarine_modules="$libsubmarine_modules gio-2.0"
PKG_CHECK_MODULES([SUBMARINE], [$submarine_modules])
AC_SUBST([SUBMARINE_CFLAGS])
AC_SUBST([SUBMARINE_LIBS])
SUBMARINE_VALAPACKAGES="--pkg gee-1.0 --pkg gio-2.0"
AC_SUBST([SUBMARINE_VALAPACKAGES])
AC_OUTPUT