1
dnl Process this file with autoconf to produce a configure script.
2
dnl Created by Anjuta application wizard.
6
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
7
AC_CONFIG_HEADERS([config.h])
18
dnl ***************************************************************************
19
dnl Internatinalization
20
dnl ***************************************************************************
1
# Process this file with autoconf to produce a configure script.
5
m4_define([curtain_version], [0.3])
6
m4_define([gtk_required_version], [2.99.3])
8
AC_INIT([curtain], [curtain_version],
9
http://code.google.com/p/ardesia/issues/list,
12
AC_PREFIX_DEFAULT(/usr)
13
AC_CONFIG_SRCDIR([src/curtain.c])
14
AC_CONFIG_MACRO_DIR([m4macros])
16
AM_INIT_AUTOMAKE(no-define dist-bzip2)
17
AM_CONFIG_HEADER(config.h)
19
# Enable silent build rules by default, requires at least
20
# Automake-1.11. Disable by either passing --disable-silent-rules to
21
# configure or passing V=1 to make
22
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
24
# gettext i18n support
21
25
GETTEXT_PACKAGE=curtain
22
26
AC_SUBST(GETTEXT_PACKAGE)
23
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
25
IT_PROG_INTLTOOL([0.35.0])
29
dnl Libraries are dynamic by default.
30
dnl User can override by passing the flag --enable-static
27
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
28
[The prefix for our gettext translation domains.])
30
# Determine a C compiler to use
41
# Initialize maintainer mode
45
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
48
# Check for pkg-config
49
PKG_PROG_PKG_CONFIG(0.16)
36
55
*-*-mingw*|*-*-cygwin*)
63
######################
64
# Internationalisation
65
######################
67
IT_PROG_INTLTOOL([0.35.0],[no-xml])
75
AM_PATH_GTK_3_0(gtk_required_version, :,
76
AC_MSG_ERROR(Test for GTK3+ failed. See the file 'INSTALL' for help.),
80
AC_MSG_CHECKING([if GTK+ is version 2.99.3 or newer])
81
if $PKG_CONFIG --atleast-version=2.99.3 gtk+-3.0; then
87
AC_MSG_RESULT($have_gtk_3)
44
89
AM_CONDITIONAL(WITH_GNU_LD, test "$with_gnu_ld" = "yes")
45
90
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = yes)
47
dnl See if there is the static linking option
48
AM_CONDITIONAL(ENABLE_STATIC, test "$enable_static" = "yes")
51
PKG_CHECK_MODULES(CURTAIN, [gtk+-2.0 >= 2.12 ])
92
PKG_CHECK_MODULES(curtain, [gtk+-3.0])
94
AC_CHECK_PROGS(XDG_UTILS, [xdg-desktop-menu], [])