Merge tag 'upstream/3.2.0'
Upstream version 3.2.0
Margarita Manterola
7 years ago
0 | #!/bin/bash | |
0 | #!/bin/sh | |
1 | 1 | # Run this to generate all the initial makefiles, etc. |
2 | test -n "$srcdir" || srcdir=$(dirname "$0") | |
3 | test -n "$srcdir" || srcdir=. | |
2 | 4 | |
3 | srcdir=`dirname $0` | |
4 | test -z "$srcdir" && srcdir=. | |
5 | olddir=$(pwd) | |
5 | 6 | |
6 | PKG_NAME="cinnamon-menus" | |
7 | REQUIRED_AUTOMAKE_VERSION=1.10 | |
7 | cd $srcdir | |
8 | 8 | |
9 | which gnome-autogen.sh || { | |
10 | echo "You need to install gnome-common from GNOME Subversion (or from" | |
11 | echo "your distribution's package manager)." | |
9 | (test -f configure.ac) || { | |
10 | echo "*** ERROR: Directory '$srcdir' does not look like the top-level project directory ***" | |
12 | 11 | exit 1 |
13 | 12 | } |
14 | USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh | |
13 | ||
14 | # shellcheck disable=SC2016 | |
15 | PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac) | |
16 | ||
17 | if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then | |
18 | echo "*** WARNING: I am going to run 'configure' with no arguments." >&2 | |
19 | echo "*** If you wish to pass any to it, please specify them on the" >&2 | |
20 | echo "*** '$0' command line." >&2 | |
21 | echo "" >&2 | |
22 | fi | |
23 | ||
24 | aclocal --install || exit 1 | |
25 | glib-gettextize --force --copy || exit 1 | |
26 | intltoolize --force --copy --automake || exit 1 | |
27 | autoreconf --verbose --force --install || exit 1 | |
28 | ||
29 | cd "$olddir" | |
30 | if [ "$NOCONFIGURE" = "" ]; then | |
31 | $srcdir/configure "$@" || exit 1 | |
32 | ||
33 | if [ "$1" = "--help" ]; then exit 0 else | |
34 | echo "Now type 'make' to compile $PKG_NAME" || exit 1 | |
35 | fi | |
36 | else | |
37 | echo "Skipping configure process." | |
38 | fi |
0 | 0 | AC_PREREQ(2.62) |
1 | 1 | |
2 | AC_INIT([cinnamon-menus], [3.0.2]) | |
2 | AC_INIT([cinnamon-menus], [3.2.0]) | |
3 | 3 | AC_CONFIG_SRCDIR(libmenu/gmenu-tree.h) |
4 | ||
5 | m4_ifdef([AX_IS_RELEASE], [AX_IS_RELEASE([always])]) | |
4 | 6 | |
5 | 7 | AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz]) |
6 | 8 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
7 | 9 | AC_CONFIG_MACRO_DIR([m4]) |
10 | AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \${ACLOCAL_FLAGS}"]) | |
8 | 11 | AC_CONFIG_HEADERS(config.h) |
9 | 12 | |
10 | 13 | AM_MAINTAINER_MODE |
11 | GNOME_MAINTAINER_MODE_DEFINES | |
12 | 14 | |
13 | 15 | # Before making a release, the LT_VERSION string should be modified. |
14 | 16 | # The string is of the form C:R:A. |
31 | 33 | AC_SUBST(GIO_UNIX_CFLAGS) |
32 | 34 | AC_SUBST(GIO_UNIX_LIBS) |
33 | 35 | |
34 | GNOME_COMPILE_WARNINGS(yes) | |
36 | m4_ifdef([AX_COMPILER_FLAGS], | |
37 | [AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS])]) | |
35 | 38 | |
36 | 39 | AC_ARG_ENABLE(deprecation_flags, |
37 | 40 | [AC_HELP_STRING([--enable-deprecation-flags], |
1 | 1 | |
2 | 2 | AM_CPPFLAGS = \ |
3 | 3 | $(GIO_UNIX_CFLAGS) \ |
4 | $(WARN_CFLAGS) \ | |
4 | 5 | -DGMENU_I_KNOW_THIS_IS_UNSTABLE \ |
5 | 6 | $(DISABLE_DEPRECATED_CFLAGS) \ |
6 | 7 | $(DEBUG_CFLAGS) |
34 | 35 | $(GIO_UNIX_LIBS) |
35 | 36 | |
36 | 37 | libcinnamon_menu_3_la_LDFLAGS = \ |
38 | $(WARN_LDFLAGS) \ | |
37 | 39 | -version-info $(LIB_MENU_LT_VERSION) \ |
38 | 40 | -no-undefined \ |
39 | 41 | -export-symbols-regex gmenu_tree |
60 | 62 | CMenu_3_0_gir_INCLUDES = Gio-2.0 |
61 | 63 | CMenu_3_0_gir_CFLAGS = $(AM_CPPFLAGS) |
62 | 64 | CMenu_3_0_gir_LIBS = libcinnamon-menu-3.la |
63 | CMenu_3_0_gir_SCANNERFLAGS = --identifier-prefix=GMenu --symbol-prefix=gmenu --pkg-export=libcinnamon-menu-3.0 --c-include=gmenu-tree.h | |
65 | CMenu_3_0_gir_SCANNERFLAGS = $(WARN_SCANNERFLAGS) --identifier-prefix=GMenu --symbol-prefix=gmenu --pkg-export=libcinnamon-menu-3.0 --c-include=gmenu-tree.h | |
64 | 66 | CMenu_3_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_sources)) |
65 | 67 | INTROSPECTION_GIRS += CMenu-3.0.gir |
66 | 68 |