~ubuntu-branches/ubuntu/raring/soundconverter/raring-201211220242

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-04-29 08:22:10 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070429082210-xuevbgf7bhttdr3g
Tags: 0.9.6-0ubuntu1
* New upstream release
  - Don't write to URL-encoded filenames (LP: #109365)
* debian/copyright: Update.
* debian/watch: Add.
* debian/control: Add python-gnome2 to build-depends, as configure wants it.
* debian/patches/01_add_desktop_icon.patch: Drop, now included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
dnl Process this file with autoconf to produce a configure script.
3
3
AC_PREREQ(2.53)
4
4
AC_INIT(src/soundconverter.py)
5
 
AM_INIT_AUTOMAKE(soundconverter, 0.9.4)
 
5
AM_INIT_AUTOMAKE([soundconverter], [0.9.6])
6
6
 
7
 
m4_define(required_python_abi, 2.3)
8
 
m4_define(required_python_version, 2.3.3)
9
 
m4_define(required_pygtk_version, 2.0)
 
7
m4_define(required_python_abi, [2.4])
 
8
m4_define(required_python_version, [2.4])
 
9
m4_define(required_pygtk_version, [2.10])
 
10
m4_define(required_pygnome_version, [2.10])
10
11
 
11
12
dnl put the ACLOCAL flags in the makefile
12
13
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
13
14
 
14
 
ALL_LINGUAS="fr pl pt_BR sv_SE"
 
15
ALL_LINGUAS="fr pl pt_BR sv_SE hu"
15
16
GETTEXT_PACKAGE=soundconverter
16
17
AC_SUBST(GETTEXT_PACKAGE)
17
18
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
21
22
AM_PATH_PYTHON(required_python_version)
22
23
 
23
24
dnl Check for correctly installed pygtk
24
 
AC_MSG_CHECKING(for pygtk required_pygtk_version installed for python required_python_abi)
 
25
AC_MSG_CHECKING(for pygtk required_pygtk_version installed)
25
26
prog="
26
27
import pygtk; pygtk.require('2.0')
27
28
import gobject
34
35
    AC_MSG_ERROR(required pygtk version not found)
35
36
fi
36
37
 
 
38
dnl Check for correctly installed pygnome
 
39
AC_MSG_CHECKING(for python-gnome required_pygnome_version installed)
 
40
prog="
 
41
import pygtk; pygtk.require('2.0')
 
42
import gnome
 
43
assert gnome.gnome_python_version >= tuple(map(int, 'required_pygnome_version'.split('.')))
 
44
"
 
45
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
 
46
    AC_MSG_RESULT(found)
 
47
else
 
48
    AC_MSG_RESULT(not found)
 
49
    AC_MSG_ERROR(required python-gnome version not found)
 
50
fi
 
51
 
37
52
AC_OUTPUT(
38
53
        Makefile
39
54
        po/Makefile.in