summaryrefslogtreecommitdiff
path: root/configure.in.in
blob: 27602b947e281cc5e687c05e6976bd17e67776f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#MIN_CONFIG
KDE_ENABLE_HIDDEN_VISIBILITY
AM_INIT_AUTOMAKE(aquamarine,0.1.3)

AC_CHECK_RANDOM
AC_CHECK_USLEEP
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"

AC_DEFUN([AQUAMARINE_CHECK_KDECORATION],[HAVE_KDECORATION=0
KDE_CHECK_HEADER(kdecoration.h,HAVE_KDECORATION=1,
 AC_MSG_ERROR([Unable to find KDecoration. Make sure you have the kdebase development package installed.]))
])

BERYL_SETTINGS_REQUIRES="\
		    gtk+-2.0 >= 2.8.0 \
            berylsettings \
            beryl"

AC_ARG_ENABLE(berylsettings, AC_HELP_STRING([--disable-berylsettings], [disable beryl settings]), [berylsettings="${enableval}"], [berylsettings="yes"])
AM_CONDITIONAL(include_bs, test "$berylsettings" = "yes")

if test "$berylsettings" = "yes"; then
  KDE_PKG_CHECK_MODULES(BERYLSETTINGS, $BERYL_SETTINGS_REQUIRES,
    AC_DEFINE(HAVE_BERYL_SETTINGS,1,[check for berylsettings]),
      AC_MSG_WARN([berylsettings not found.]))
  AC_SUBST(BERYLSETTINGS_LIBS)
  AC_SUBST(BERYLSETTINGS_CFLAGS)
fi

AQUAMARINE_CHECK_KDECORATION