Implements drag and drop
[nautilus-actions.git] / m4 / na-nautilus-extdir.m4
blobb32a85f5d97e9809ec56816a2e6e666b5fb1e12b
1 # Nautilus Actions
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 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.
23 # Authors:
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)
29 # serial 2 change NACT_ prefix to NA_ (Nautilus Actions)
31 # let the user specify an alternate nautilus-extension dir
32 # --with-nautilus-extdir=<dir>
34 AC_DEFUN([NA_NAUTILUS_EXTDIR],[
35         AC_REQUIRE([_AC_ARG_NA_NAUTILUS_EXTDIR])dnl
36         AC_REQUIRE([_AC_NA_CHECK_NAUTILUS_EXTDIR])dnl
37         if test "${ac_with_nact_nautilus_extdir}" = ""; then
38                 AC_MSG_ERROR([Unable to determine nautilus extension folder, please use --with-nautilus-extdir option])
39         else
40                 AC_MSG_NOTICE([installing plugin in ${ac_with_nact_nautilus_extdir}])
41                 AC_SUBST([NAUTILUS_EXTENSIONS_DIR],[${ac_with_nact_nautilus_extdir}])
42         fi
45 AC_DEFUN([_AC_ARG_NA_NAUTILUS_EXTDIR],[
46         AC_ARG_WITH(
47                 [nautilus-extdir],
48                 AC_HELP_STRING(
49                         [--with-nautilus-extdir=DIR],
50                         [nautilus plugins extension directory @<:@auto@:>@]
51                 ),
52         [ac_with_nact_nautilus_extdir=$withval],
53         [ac_with_nact_nautilus_extdir=""]
54         )
57 AC_DEFUN([_AC_NA_CHECK_NAUTILUS_EXTDIR],[
58         if test "${ac_with_nact_nautilus_extdir}" = ""; then
59                 if test "{PKG_CONFIG}" != ""; then
60                         ac_with_nact_nautilus_extdir=`${PKG_CONFIG} --variable=extensiondir libnautilus-extension`
61                 fi
62         fi