1 # -*- Mode: m4; indent-tabs-mode: nil; tab-width: 2 -*-
3 # Copyright (C) 2009,2010 Canonical Ltd.
5 # Gustavo Sverzut Barbieri <gustavo.barbieri@canonical.com>
6 # Michael Terry <michael.terry@canonical.com>
8 # This file is part of Netbook Launcher EFL.
10 # Netbook Launcher EFL is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, version 3 of the License.
14 # Netbook Launcher EFL is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with Netbook Launcher EFL. If not, see <http://www.gnu.org/licenses/>.
22 AC_INIT([Netbook Launcher EFL],[0.3.3],[oem-services@canonical.com])
24 AC_CONFIG_SRCDIR([configure.ac])
25 AC_CONFIG_MACRO_DIR([m4])
28 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
29 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
30 AM_CONFIG_HEADER(config.h)
32 AC_USE_SYSTEM_EXTENSIONS
39 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])
40 define([AC_LIBTOOL_LANG_GCJ_CONFIG], [:])
41 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])
45 GETTEXT_PACKAGE=netbook-launcher-efl
46 AC_SUBST(GETTEXT_PACKAGE)
47 AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
48 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Define to the Gettext package name])
49 ALL_LINGUAS="`cat "$srcdir/po/LINGUAS" | grep -v '^#'`"
51 IT_PROG_INTLTOOL([0.34])
64 ecore-evas >= $EFL_VER
66 ecore-file >= $EFL_VER
67 ecore-input >= $EFL_VER
69 elementary >= $ELM_VER
77 libnotify >= $NOTIFY_VER
81 AC_ARG_ENABLE([google-gadgets],
82 AS_HELP_STRING([--enable-google-gadgets],[enable google gadgets]),
84 if test "x${enableval}" = "xyes"; then
89 ], [use_ggadgets="no"])
91 if test "x${use_ggadgets}" = "xyes"; then
94 [cairo gdk-2.0 gadget],
95 [AC_DEFINE(HAVE_GOOGLE_GADGETS, 1, [have google gadgets.])])
98 AM_CONDITIONAL(USE_GOOGLE_GADGETS, test "x${use_ggadgets}" = "xyes")
100 AC_ARG_ENABLE([quit],
101 AS_HELP_STRING([--enable-quit],[enable quit button (yes, no, gnome)]),
103 if test "x${enableval}" = "xyes"; then
105 elif test "x${enableval}" = "xgnome"; then
112 if test "x${use_quit}" = "xyes"; then
114 elif test "x${use_quit}" = "xgnome"; then
120 AC_DEFINE_UNQUOTED([USE_QUIT], $quit_val, [whether to use a quit button])
121 AM_CONDITIONAL(BUILD_QUIT, test "x${use_quit}" = "xyes")
123 if test "x${use_quit}" = "xyes"; then
125 [NETBOOK_LAUNCHER_QUIT],
126 [gtk+-2.0 dbus-glib-1 libgnome-2.0 libgnomeui-2.0 xau])
129 AC_ARG_WITH([edje-cc],
130 [AS_HELP_STRING([--with-edje-cc=PATH],
131 [specify a specific path to edje_cc])],
134 AC_MSG_NOTICE([edje_cc explicitly set to $edje_cc])
136 edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
140 # use --as-needed if supported
141 LDFLAGS_SAVE="${LDFLAGS}"
142 LDFLAGS="${LDFLAGS} -Wl,--as-needed"
144 [AC_LANG_PROGRAM([[]], [])],
146 [LDFLAGS="${LDFLAGS_SAVE}"]
149 # use --fvisibility=hidden if supported
150 LDFLAGS_SAVE="${LDFLAGS}"
151 CFLAGS_SAVE="${CFLAGS}"
152 LDFLAGS="${LDFLAGS} -fvisibility=hidden"
153 CFLAGS="${CFLAGS} -fvisibility=hidden"
155 [AC_LANG_PROGRAM([[]], [])],
158 LDFLAGS="${LDFLAGS_SAVE}"
159 CFLAGS="${CFLAGS_SAVE}"
163 AC_PATH_PROG(GCONFTOOL, gconftool-2)
172 data/themes/default/Makefile
173 data/themes/alternative/Makefile
174 data/desktop/Makefile
175 data/schemas/Makefile
177 src/launcher/Makefile
186 PROJECT: $PACKAGE_NAME $PACKAGE_VERSION
192 * Google gadgets: $use_ggadgets
193 * Quit button: $use_quit
195 Type 'make all' to compile.