-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
73 lines (54 loc) · 1.78 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
# Process this file with autoconf to produce a configure script.
AC_INIT(gedit-gutachter-plugin, 0.0.2, http://bugzilla.gnome.org/enter_bug.cgi?product=gedit)
AC_CONFIG_SRCDIR([gutachter])
AC_CONFIG_MACRO_DIR([m4])
AC_PREFIX_PROGRAM([gedit-gutachter-plugin])
AC_PREREQ(2.59)
AM_INIT_AUTOMAKE([1.8 dist-bzip2 no-dist-gzip])
AM_MAINTAINER_MODE
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CONFIG_HEADERS([config.h])
AC_DISABLE_STATIC
IT_PROG_INTLTOOL([0.35.0])
AC_PROG_LIBTOOL
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
# make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4")
# ================================================================
# Gettext stuff.
# ================================================================
GETTEXT_PACKAGE=gedit-gutachter-plugin
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_GNU_GETTEXT
# ================================================================
# Start of pkg-config checks
# ================================================================
PKG_CHECK_MODULES(GEDIT_GUTACHTER_PLUGIN, [
glib-2.0 >= 2.16.0
gtk+-2.0 >= 2.16.0
gedit-2.20 >= 2.28.3
gutachter-0.0.2
])
AC_ARG_ENABLE(deprecations,
[AC_HELP_STRING([--enable-deprecations],
[warn about deprecated usages [default=no]])],,
[enable_deprecations=no])
if test "x$enable_deprecations" = "xyes"
then
DISABLE_DEPRECATED_CFLAGS="\
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DGDK_PIXBUF_DISABLE_DEPRECATED \
-DGNOME_DISABLE_DEPRECATED"
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
fi
AC_CONFIG_FILES([
Makefile
gutachter/Makefile
po/Makefile.in])
AC_OUTPUT