Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: work
Fetching contributors…

Cannot retrieve contributors at this time

78 lines (63 sloc) 2.022 kB
# Initial blurb
AC_PREREQ(2.52)
AC_INIT(devilspie, 0.22, http://www.burtonini.com/)
AC_CONFIG_SRCDIR(src/devilspie.c)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(src/config.h)
# Use AM_SILENT_RULES if present
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Honor aclocal flags
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
AC_PROG_CC
AM_PROG_CC_STDC
GNOME_COMPILE_WARNINGS(yes)
# Do the gettext/i18n stuff
AC_PROG_INTLTOOL([0.40])
GETTEXT_PACKAGE=devilspie
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
AM_GLIB_GNU_GETTEXT
# Check that we actually have the libraries required to build
PKG_CHECK_MODULES(WNCK,
glib-2.0 >= 2.9.1
gdk-3.0
libwnck-3.0)
AC_SUBST(WNCK_CFLAGS)
AC_SUBST(WNCK_LIBS)
AC_MSG_CHECKING([whether Unique support is requested])
AC_ARG_ENABLE([unique],
[AS_HELP_STRING([--enable-unique],
[Enable Unique (single-instance application) support (default: autodetect)])],
[], [enable_unique=auto])
AC_MSG_RESULT([$enable_unique])
if test x"$enable_unique" != "xno" ; then
PKG_CHECK_MODULES([UNIQUE], [unique-3.0], [have_unique=yes], [have_unique=no])
if test x"$enable_unique" = "xyes" -a x"$have_unique" = "xno"; then
AC_MSG_ERROR([Unique support was requested but libunique was not found])
elif test x"$have_unique" = x"yes"; then
enable_unique=yes
else
enable_unique=no
fi
fi
if test x"$enable_unique" = "xyes"; then
AC_DEFINE([ENABLE_UNIQUE], [1], [Define whether Unique support is enabled])
fi
# Check for the POSIX regexpr functions and headers
AC_CHECK_FUNCS([regcomp regexec regfree])
AC_CHECK_HEADERS([sys/types.h regex.h])
AC_OUTPUT([
devilspie.spec
Makefile
data/Makefile
src/Makefile
po/Makefile.in
tests/Makefile
])
echo "
Devilspie was configured with the following options:
Source code location: : $srcdir
Compiler : $CC
Prefix : $prefix
Unique support : $enable_unique
"
Jump to Line
Something went wrong with that request. Please try again.