1 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT([gnome-icon-theme], [3.12.0],
5 [http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-icon-theme])
6 AC_CONFIG_MACRO_DIR([m4])
7 AC_CONFIG_SRCDIR([index.theme.in.in])
9 AM_INIT_AUTOMAKE([1.9 dist-xz no-dist-gzip tar-ustar foreign])
11 PKG_PROG_PKG_CONFIG([0.19])
12 IT_PROG_INTLTOOL([0.40.0])
14 GETTEXT_PACKAGE="${PACKAGE}"
15 AC_SUBST(GETTEXT_PACKAGE)
16 localedir='$(prefix)/$(DATADIRNAME)/locale'
19 # Workaround to make aclocal get the right flags
20 AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
22 # Define the toplevel path here
23 AC_SUBST(themedir, "\${datadir}/icons/gnome")
25 # Input and Output dirs for the rendering
26 AC_SUBST(SVGSRCDIR, "src")
27 AC_SUBST(SVGOUTDIR, "gnome")
29 # Icon sizes we want to install
30 AC_SUBST([render_sizes], ["8x8 16x16 22x22 24x24 32x32 48x48 256x256"])
32 # Allow icon mapping to be disabled
33 AC_ARG_ENABLE([icon-mapping],
34 AC_HELP_STRING([--enable-icon-mapping],
35 [Enable compatibility symlinks [default=auto]]),
36 [enable_mapping=$enableval],
40 if test "x$enable_mapping" != "xno"; then
43 AC_MSG_CHECKING([icon-naming-utils >= $UTILS_REQUIRED])
44 PKG_CHECK_EXISTS(icon-naming-utils >= $UTILS_REQUIRED,
45 have_utils=yes, have_utils=no)
46 if test "x$have_utils" = "xyes"; then
47 UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`"
48 ICONMAP="$UTILS_PATH/icon-name-mapping"
52 AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build
53 and install gnome-icon-theme])
61 AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache)
62 if test -z "$GTK_UPDATE_ICON_CACHE"; then
63 AC_MSG_ERROR([Could not find gtk-update-icon-cache])