|
Packit |
9c2278 |
dnl Process this file with autoconf to produce a configure script.
|
|
Packit |
9c2278 |
AC_PREREQ(2.53)
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
AC_INIT([adwaita-icon-theme], [3.28.0],
|
|
Packit |
9c2278 |
[http://bugzilla.gnome.org/enter_bug.cgi?product=adwaita-icon-theme])
|
|
Packit |
9c2278 |
AC_CANONICAL_HOST
|
|
Packit |
9c2278 |
AC_CONFIG_MACRO_DIR([m4])
|
|
Packit |
9c2278 |
AC_CONFIG_SRCDIR([index.theme.in])
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
AM_INIT_AUTOMAKE([1.9 dist-xz no-dist-gzip tar-ustar foreign])
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
PKG_PROG_PKG_CONFIG([0.19])
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
GETTEXT_PACKAGE="${PACKAGE}"
|
|
Packit |
9c2278 |
AC_SUBST(GETTEXT_PACKAGE)
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
# Workaround to make aclocal get the right flags
|
|
Packit |
9c2278 |
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
# Define the toplevel path here
|
|
Packit |
9c2278 |
AC_SUBST(themedir, "\${datadir}/icons/Adwaita")
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
# Input and Output dirs for the rendering
|
|
Packit |
9c2278 |
AC_SUBST(SVGOUTDIR, "Adwaita")
|
|
Packit |
9c2278 |
AC_SUBST(SVGSRCDIR, "src/symbolic")
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
# Icon sizes we want to install
|
|
Packit |
9c2278 |
AC_SUBST([render_sizes], ["8x8 16x16 22x22 24x24 32x32 48x48 256x256 512x512"])
|
|
Packit |
9c2278 |
AC_SUBST([symbolic_render_sizes], [""])
|
|
Packit |
9c2278 |
AC_SUBST([install_sizes], ["8x8 16x16 22x22 24x24 32x32 48x48 64x64 96x96 256x256 512x512"])
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
AC_PROG_LN_S
|
|
Packit |
9c2278 |
AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache)
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
# need git, icontool, and inkscape for rendering
|
|
Packit |
9c2278 |
allow_rendering=yes
|
|
Packit |
9c2278 |
AC_PATH_PROG([GIT], [git], [false])
|
|
Packit |
9c2278 |
if test "x$GIT" = "xfalse"; then
|
|
Packit |
9c2278 |
allow_rendering=no
|
|
Packit |
9c2278 |
fi
|
|
Packit |
9c2278 |
AC_PATH_PROG([ICONTOOL_RENDER], [icontool-render], [false])
|
|
Packit |
9c2278 |
if test "x$ICONTOOL_RENDER" = "xfalse"; then
|
|
Packit |
9c2278 |
allow_rendering=no
|
|
Packit |
9c2278 |
fi
|
|
Packit |
9c2278 |
AC_PATH_PROG([INKSCAPE], [inkscape], [false])
|
|
Packit |
9c2278 |
if test "x$INKSCAPE" = "xfalse"; then
|
|
Packit |
9c2278 |
allow_rendering=no
|
|
Packit |
9c2278 |
fi
|
|
Packit |
9c2278 |
AM_CONDITIONAL(ALLOW_RENDERING, test "x$allow_rendering" = "xyes")
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
symbolic_encode_sizes="16x16 24x24 32x32 48x48 64x64 96x96"
|
|
Packit |
9c2278 |
AC_PATH_PROG([GTK_ENCODE_SYMBOLIC_SVG], [gtk-encode-symbolic-svg], [false])
|
|
Packit |
9c2278 |
if test "x$GTK_ENCODE_SYMBOLIC_SVG" = "xfalse"; then
|
|
Packit |
9c2278 |
symbolic_encode_sizes=""
|
|
Packit |
9c2278 |
fi
|
|
Packit |
9c2278 |
AC_SUBST(symbolic_encode_sizes)
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
case "$host" in
|
|
Packit |
9c2278 |
*-*-mingw*|*-*-cygwin*)
|
|
Packit |
9c2278 |
platform_win32=yes
|
|
Packit |
9c2278 |
;;
|
|
Packit |
9c2278 |
*)
|
|
Packit |
9c2278 |
platform_win32=no
|
|
Packit |
9c2278 |
;;
|
|
Packit |
9c2278 |
esac
|
|
Packit |
9c2278 |
AC_SUBST(platform_win32)
|
|
Packit |
9c2278 |
AM_CONDITIONAL([PLATFORM_WIN32], [test x$platform_win32 = xyes])
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
AC_ARG_ENABLE([l-xl-variants],
|
|
Packit |
9c2278 |
[AS_HELP_STRING([--enable-l-xl-variants],
|
|
Packit |
9c2278 |
[Also make and install Large and Extra Large Windows cursor versions])],
|
|
Packit |
9c2278 |
[case "${enableval}" in
|
|
Packit |
9c2278 |
yes) enable_l_xl_variants=yes ;;
|
|
Packit |
9c2278 |
no) enable_l_xl_variants=no ;;
|
|
Packit |
9c2278 |
*) AC_MSG_ERROR([bad value ${enableval} for --enable-l-xl-variants]) ;;
|
|
Packit |
9c2278 |
esac],
|
|
Packit |
9c2278 |
[enable_l_xl_variants=no])
|
|
Packit |
9c2278 |
AC_SUBST(enable_l_xl_variants)
|
|
Packit |
9c2278 |
AM_CONDITIONAL([ENABLE_L_XL_VARIANTS], [test x$enable_l_xl_variants = xyes])
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
AC_CONFIG_FILES([
|
|
Packit |
9c2278 |
Makefile
|
|
Packit |
9c2278 |
adwaita-icon-theme.pc
|
|
Packit |
9c2278 |
src/Makefile
|
|
Packit |
9c2278 |
src/fullcolor/Makefile
|
|
Packit |
9c2278 |
src/symbolic/Makefile
|
|
Packit |
9c2278 |
src/spinner/Makefile
|
|
Packit |
9c2278 |
win32/Makefile
|
|
Packit |
9c2278 |
win32/adwaita-msvc.mak
|
|
Packit |
9c2278 |
])
|
|
Packit |
9c2278 |
|
|
Packit |
9c2278 |
AC_OUTPUT
|