Arc-39-theme/configure.ac

72 lines
2.9 KiB
Plaintext

AC_INIT(
[arc-theme],
[20180114],
[https://github.com/NicoHood/arc-theme/issues],
[arc-theme],
[https://github.com/NicoHood/arc-theme],
[]
)
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([no-dist-gzip dist-xz foreign])
AC_PROG_LN_S
AC_PROG_MKDIR_P
ARC_ENABLE([LIGHT], [light], [Arc Light], [disable])
ARC_ENABLE([DARKER], [darker], [Arc Darker], [disable])
ARC_ENABLE([DARK], [dark], [Arc Dark], [disable])
ARC_ENABLE([CINNAMON], [cinnamon], [Cinnamon], [disable])
ARC_ENABLE([GNOME_SHELL], [gnome-shell], [GNOME Shell], [disable])
ARC_ENABLE([GTK2], [gtk2], [GTK2], [disable])
ARC_ENABLE([GTK3], [gtk3], [GTK3], [disable])
ARC_ENABLE([METACITY], [metacity], [Metacity], [disable])
ARC_ENABLE([UNITY], [unity], [Unity], [disable])
ARC_ENABLE([XFWM], [xfwm], [XFWM], [disable])
ARC_ENABLE([TRANSPARENCY], [transparency], [transparency], [disable])
ARC_ENABLE([PLANK], [plank], [Plank theme], [disable])
ARC_ENABLE([OPENBOX], [openbox], [Openbox], [disable])
AS_IF([test "x$ENABLE_TRANSPARENCY" != xno], [
AC_SUBST([themedir], [${datadir}/themes/Arc])
AC_SUBST([themedarkerdir], [${datadir}/themes/Arc-Darker])
AC_SUBST([themedarkdir], [${datadir}/themes/Arc-39])
], [
AC_SUBST([themedir], [${datadir}/themes/Arc-solid])
AC_SUBST([themedarkerdir], [${datadir}/themes/Arc-Darker-solid])
AC_SUBST([themedarkdir], [${datadir}/themes/Arc-39-solid])
])
AS_IF([test "x$ENABLE_GTK3" != xno], [ARC_GTK3])
AS_IF([test "x$ENABLE_GNOME_SHELL" != xno], [ARC_GNOME_SHELL])
AS_IF([test "x$ENABLE_GTK2" != xno -o "x$ENABLE_GTK3" != xno -o "x$ENABLE_XFWM" != xno], [
AC_PATH_PROG([RENDERSVG], [rendersvg])
AS_IF([test "x$ac_cv_path_RENDERSVG" = x], [AC_MSG_WARN([rendersvg not found, using inkscape instead])])
AM_CONDITIONAL([RENDERSVG], [test ! "x$ac_cv_path_RENDERSVG" = x])
AC_PATH_PROG([INKSCAPE], [inkscape])
AS_IF([test "x$ac_cv_path_INKSCAPE" = x -a "x$RENDERSVG" = x], [AC_MSG_ERROR([inkscape not found])])
AM_CONDITIONAL([INKSCAPE], [test ! "x$ac_cv_path_INKSCAPE" = x])
AC_PATH_PROG([OPTIPNG], [optipng])
AS_IF([test "x$ac_cv_path_OPTIPNG" = x], [AC_MSG_WARN([optipng not found, PNG assets won't be optimized])])
AM_CONDITIONAL([OPTIPNG], [test ! "x$ac_cv_path_OPTIPNG" = x])
])
AS_IF([test "x$ENABLE_GTK3" != xno -o "x$ENABLE_CINNAMON" != xno -o "x$ENABLE_GNOME_SHELL" != xno], [
AC_PATH_PROG([SASSC], [sassc])
AS_IF([test "x$ac_cv_path_SASSC" = x], [AC_MSG_ERROR([sassc not found])])
])
AC_CONFIG_FILES([
common/gtk-2.0/Makefile
common/gtk-3.0/Makefile
common/gtk-3.0/3.18/Makefile
common/gtk-3.0/3.20/Makefile
common/xfwm4/Makefile
common/Makefile
extra/Makefile
Makefile
])
AC_OUTPUT