File: configure.ac

package info (click to toggle)
postr 0.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 2,160 kB
  • ctags: 485
  • sloc: sh: 4,139; python: 4,058; makefile: 141
file content (50 lines) | stat: -rw-r--r-- 1,584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
AC_PREREQ([2.67])

AC_INIT([Postr],[0.13.1],[https://bugzilla.gnome.org/browse.cgi?product=postr],[postr],[http://projects.gnome.org/postr/])
AC_CONFIG_SRCDIR([src/postr.py])
AM_INIT_AUTOMAKE([1.11.1])

AC_CONFIG_MACRO_DIR([m4])

AM_PATH_PYTHON
PKG_CHECK_MODULES(POSTR,
		  pygtk-2.0
		  nautilus-python >= 0.6.1)

AC_ARG_WITH(nautilus-extension-dir,
	    [AS_HELP_STRING([--with-nautilus-extension-dir],
		    [specify the nautilus extension directory])])

AC_MSG_CHECKING([for nautilus extension directory])
if test -n "$with_nautilus_extension_dir"; then
    NAUTILUS_EXTENSION_DIR=$with_nautilus_extension_dir
else
dnl nautilus-python provides the pythondir variable, however its
dnl path is absolute and the prefix can not be overrided (aarrgh!).
dnl So, we have to use a workaround.
  test "x$prefix" != "xNONE" && NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=pythondir nautilus-python | sed -n -e 's,/$,,' -e '/.*\/lib\/nautilus\/.*\/python$/{s,.*/\(lib/nautilus/.*/python\)$,\1,;p;q;}'`
  NAUTILUS_EXTENSION_DIR=[$prefix/$NAUTILUS_EXTENSION_DIR]
fi
AC_SUBST([nautilusextensiondir], [$NAUTILUS_EXTENSION_DIR])

dnl i10n support / gettext
IT_PROG_INTLTOOL([0.40.0])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])
GETTEXT_PACKAGE="postr"
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Gettext package])

GNOME_DOC_INIT

AC_CONFIG_FILES([
Makefile
po/Makefile.in
data/postr.desktop.in
help/Makefile
])
AC_OUTPUT

echo $PACKAGE......... : $VERSION
echo Prefix........... : $prefix
echo Nautilus Python.. : $nautilusextensiondir