From 783bf11df04627b63812812fc7ba756248499883 Mon Sep 17 00:00:00 2001 From: Perberos Date: Thu, 1 Dec 2011 22:26:22 -0300 Subject: moving from https://github.com/perberos/mate-desktop-environment --- configure.ac | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..e3e8fe6 --- /dev/null +++ b/configure.ac @@ -0,0 +1,66 @@ +dnl Process this file with autoconf to produce a configure script. +AC_PREREQ(2.53) + +AC_INIT([mate-icon-theme], [2011.11.16], [https://github.com/perberos/mate-desktop-environment]) +AC_CONFIG_SRCDIR([index.theme.in.in]) + +AM_INIT_AUTOMAKE([1.9 tar-ustar foreign]) + +PKG_PROG_PKG_CONFIG([0.19]) +IT_PROG_INTLTOOL([0.40.0]) + +GETTEXT_PACKAGE="${PACKAGE}" +AC_SUBST(GETTEXT_PACKAGE) +localedir='$(prefix)/$(DATADIRNAME)/locale' +AC_SUBST(localedir) + +# Workaround to make aclocal get the right flags +AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}") + +# Define the toplevel path here +AC_SUBST(themedir, "\${datadir}/icons/mate") + +# Input and Output dirs for the rendering +AC_SUBST(SVGSRCDIR, "src") +AC_SUBST(SVGOUTDIR, "mate") + +# Icon sizes we want to install +AC_SUBST([render_sizes], ["8x8 16x16 22x22 24x24 32x32 48x48 256x256"]) + +# Allow icon mapping to be disabled +AC_ARG_ENABLE([icon-mapping], + AC_HELP_STRING([--enable-icon-mapping], + [Enable compatibility symlinks [default=auto]]), + [enable_mapping=$enableval], + [enable_mapping=yes]) + +ICONMAP="true" +if test "x$enable_mapping" != "xno"; then + UTILS_REQUIRED=0.8.7 + + AC_MSG_CHECKING([icon-naming-utils >= $UTILS_REQUIRED]) + PKG_CHECK_EXISTS(icon-naming-utils >= $UTILS_REQUIRED, + have_utils=yes, have_utils=no) + if test "x$have_utils" = "xyes"; then + UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`" + ICONMAP="$UTILS_PATH/icon-name-mapping" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build + and install mate-icon-theme]) + fi +else + ICONMAP="false" +fi + +AC_SUBST(ICONMAP) + +AC_CONFIG_FILES([ +Makefile +mate-icon-theme.pc +po/Makefile.in +src/Makefile +]) + +AC_OUTPUT -- cgit v1.2.1