2 # A Nautilus extension which offers configurable context menu actions.
4 # Copyright (C) 2005 The GNOME Foundation
5 # Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
6 # Copyright (C) 2009, 2010, 2011 Pierre Wieser and others (see AUTHORS)
8 # This Program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 2 of
11 # the License, or (at your option) any later version.
13 # This Program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public
19 # License along with this Library; see the file COPYING. If not,
20 # write to the Free Software Foundation, Inc., 59 Temple Place,
21 # Suite 330, Boston, MA 02111-1307, USA.
24 # Frederic Ruaudel <grumz@grumz.net>
25 # Rodrigo Moya <rodrigo@gnome-db.org>
26 # Pierre Wieser <pwieser@trychlos.org>
27 # ... and many others (see AUTHORS)
31 dnl --with-default-io-provider=gconf|desktop
32 dnl Defines the default I/O Provider when creating a new action
33 dnl Default to 'desktop'
35 dnl usage: NA_SET_DEFAULT_IO_PROVIDER([default_io_provider])
37 dnl ac_define NA_DEFAULT_IO_PROVIDER variable
39 AC_DEFUN([NA_SET_DEFAULT_IO_PROVIDER],[
40 _AC_ARG_NA_WITH_DEFAULT_IO_PROVIDER([$1])
41 _CHECK_FOR_DEFAULT_IO_PROVIDER
44 AC_DEFUN([_AC_ARG_NA_WITH_DEFAULT_IO_PROVIDER],[
46 [default-io-provider],
48 [--with-default-io-provider@<:@=na-gconf|na-desktop@:>@],
49 [define default I/O provider @<:@$1@:>@]),
50 [with_default_io_provider=$withval],
51 [with_default_io_provider="$1"])
54 AC_DEFUN([_CHECK_FOR_DEFAULT_IO_PROVIDER],[
55 AC_MSG_CHECKING([for default I/O provider on new actions])
56 AC_MSG_RESULT([${with_default_io_provider}])
57 if test "x${with_default_io_provider}" != "xna-gconf"; then
58 if test "x${with_default_io_provider}" != "xna-desktop"; then
59 AC_MSG_ERROR([a default I/O provider must be specified, must be 'na-gconf' or 'na-desktop'])
63 AC_DEFINE_UNQUOTED([NA_DEFAULT_IO_PROVIDER],["${with_default_io_provider}"],[Default I/O Provider])