-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
91 lines (59 loc) · 1.59 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
81
82
83
84
85
86
87
88
89
90
91
# Initialization
AC_INIT
PACKAGE=nemo-open-terminal
VERSION=1.0.0
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
AM_CONFIG_HEADER(config.h)
# Used programs
AC_PROG_CC
AM_PROG_LIBTOOL
# Check for pkg-config
AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$HAVE_PKGCONFIG" = "xno"; then
AC_MSG_ERROR(you need to have pkgconfig installed !)
fi
# Dependency checks
NEMO_REQUIRED=1.0.0
LIBGNOME_DESKTOP_REQUIRED=2.91.90
GLIB_REQUIRED=2.16.0
PKG_CHECK_MODULES(NEMO, [
libnemo-extension >= $NEMO_REQUIRED
glib-2.0 >= $GLIB_REQUIRED
gio-2.0,
gconf-2.0
])
PKG_CHECK_MODULES(GCONF, gconf-2.0)
PKG_CHECK_MODULES(GNOMEDESKTOP, gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED)
# Make dependency CFLAGS and LIBS available
AC_SUBST(NEMO_CFLAGS)
AC_SUBST(NEMO_LIBS)
AC_SUBST(GCONF_CFLAGS)
AC_SUBST(GCONF_LIBS)
AC_SUBST(GNOMEDESKTOP_CFLAGS)
AC_SUBST(GNOMEDESKTOP_LIBS)
AM_MAINTAINER_MODE([enable])
GNOME_MAINTAINER_MODE_DEFINES
# Get nemo extensions directory
NEMO_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnemo-extension`
AC_SUBST(NEMO_EXTENSION_DIR)
# GConf
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
if test x"$GCONFTOOL" = xno; then
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
fi
AM_GCONF_SOURCE_2
# i18n
GETTEXT_PACKAGE=nemo-open-terminal
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.35.0])
# output
AC_OUTPUT([
Makefile
src/Makefile
po/Makefile.in
])