configure.ac 2.56 KB
Newer Older
1 2 3
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.53)

4
AC_INIT([adwaita-icon-theme], [3.32.0],
5
        [http://bugzilla.gnome.org/enter_bug.cgi?product=adwaita-icon-theme])
6
AC_CANONICAL_HOST
7
AC_CONFIG_MACRO_DIR([m4])
Debarshi Ray's avatar
Debarshi Ray committed
8
AC_CONFIG_SRCDIR([index.theme.in])
9

Jeremy Bicha's avatar
Jeremy Bicha committed
10
AM_INIT_AUTOMAKE([1.9 dist-xz no-dist-gzip tar-ustar foreign])
11 12 13 14 15 16 17 18 19 20

PKG_PROG_PKG_CONFIG([0.19])

GETTEXT_PACKAGE="${PACKAGE}"
AC_SUBST(GETTEXT_PACKAGE)

# Workaround to make aclocal get the right flags
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")

# Define the toplevel path here
21
AC_SUBST(themedir, "\${datadir}/icons/Adwaita")
22 23

# Input and Output dirs for the rendering
24
AC_SUBST(SVGOUTDIR, "Adwaita")
William Jon McCann's avatar
William Jon McCann committed
25
AC_SUBST(SVGSRCDIR, "src/symbolic")
26 27

# Icon sizes we want to install
Jakub Steiner's avatar
Jakub Steiner committed
28
AC_SUBST([render_sizes], ["8x8 16x16 22x22 24x24 32x32 48x48 256x256 512x512"])
29
AC_SUBST([symbolic_render_sizes], [""])
Jakub Steiner's avatar
Jakub Steiner committed
30
AC_SUBST([install_sizes], ["8x8 16x16 22x22 24x24 32x32 48x48 64x64 96x96 256x256 512x512"])
31

32
AC_PROG_LN_S
33 34
AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache)

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
# need git, icontool, and inkscape for rendering
allow_rendering=yes
AC_PATH_PROG([GIT], [git], [false])
if test "x$GIT" = "xfalse"; then
   allow_rendering=no
fi
AC_PATH_PROG([ICONTOOL_RENDER], [icontool-render], [false])
if test "x$ICONTOOL_RENDER" = "xfalse"; then
   allow_rendering=no
fi
AC_PATH_PROG([INKSCAPE], [inkscape], [false])
if test "x$INKSCAPE" = "xfalse"; then
   allow_rendering=no
fi
AM_CONDITIONAL(ALLOW_RENDERING, test "x$allow_rendering" = "xyes")

51
symbolic_encode_sizes="16x16 24x24 32x32 48x48 64x64 96x96"
52 53 54 55 56 57
AC_PATH_PROG([GTK_ENCODE_SYMBOLIC_SVG], [gtk-encode-symbolic-svg], [false])
if test "x$GTK_ENCODE_SYMBOLIC_SVG" = "xfalse"; then
   symbolic_encode_sizes=""
fi
AC_SUBST(symbolic_encode_sizes)

58 59 60 61 62 63 64 65 66 67
case "$host" in
  *-*-mingw*|*-*-cygwin*)
    platform_win32=yes
    ;;
  *)
    platform_win32=no
    ;;
esac
AC_SUBST(platform_win32)
AM_CONDITIONAL([PLATFORM_WIN32], [test x$platform_win32 = xyes])
68 69 70 71 72 73 74 75 76 77 78 79 80

AC_ARG_ENABLE([l-xl-variants],
  [AS_HELP_STRING([--enable-l-xl-variants],
    [Also make and install Large and Extra Large Windows cursor versions])],
  [case "${enableval}" in
    yes) enable_l_xl_variants=yes ;;
    no)  enable_l_xl_variants=no ;;
    *) AC_MSG_ERROR([bad value ${enableval} for --enable-l-xl-variants]) ;;
   esac],
  [enable_l_xl_variants=no])
AC_SUBST(enable_l_xl_variants)
AM_CONDITIONAL([ENABLE_L_XL_VARIANTS], [test x$enable_l_xl_variants = xyes])

81 82
AC_CONFIG_FILES([
Makefile
83
adwaita-icon-theme.pc
84
src/Makefile
85
src/fullcolor/Makefile
86
src/symbolic/Makefile
87
src/spinner/Makefile
88
win32/Makefile
89
win32/adwaita-msvc.mak
90 91 92
])

AC_OUTPUT