-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
73 lines (53 loc) · 1.21 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
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.
AC_INIT(ref-lect, 0.6)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([dist-bzip2 dist-zip subdir-objects])
AM_SILENT_RULES([yes])
AC_PROG_CC
AC_PROG_LIBTOOL
LT_INIT
# I18N
GETTEXT_PACKAGE=gitg
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_DEFINE_LOCALEDIR(LOCALEDIR)
AM_GNU_GETTEXT_VERSION([0.17])
AM_GNU_GETTEXT([external])
dnl Check for vala
AM_PROG_VALAC([0.10.0])
dnl Checks for libraries.
AC_CHECK_HEADER([security/pam_modules.h],, [AC_MSG_ERROR([*** Sorry, you have to install the PAM development files ***])])
LIBS="$LIBS -ldl -lpam -lpam_misc"
case "$host" in
*-*-linux*)
PAM_MODDIR="${libdir}/security"
;;
*)
PAM_MODDIR="${libdir}"
;;
esac
AC_SUBST(PAM_MODDIR)
PKG_CHECK_MODULES(REF_LECT, [
glib-2.0
gio-2.0
gee-1.0
dbus-1
])
PKG_CHECK_MODULES(PAM_REF_LECT, [
glib-2.0
dbus-1
dbus-glib-1
])
iconsdir=$datadir/reflect/icons
AC_SUBST([iconsdir], [$iconsdir])
AC_OUTPUT([
Makefile
src/Makefile
data/Makefile
erawrim/Makefile
erawrim/examples/Makefile
pam_ref-lect/Makefile
tools/Makefile
])