~ubuntu-branches/ubuntu/trusty/idjc/trusty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-12-03 16:33:59 UTC
  • mfrom: (0.2.6)
  • Revision ID: package-import@ubuntu.com-20111203163359-dq5fy9i756jpoy29
Tags: 0.8.6-1
* New upstream release.
* debian/control:
  - Wrap and sort.
  - Build-depend on autopoint.
  - Drop autotools-dev, unnecessary.
* Drop the whole patch set, none of them is still needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Process this file with autoconf to produce a configure script.
3
3
 
4
4
AC_PREREQ(2.59)
5
 
AC_INIT(idjc, 0.8.5, s-fairchild@users.sourceforge.net)
 
5
AC_INIT([idjc], [0.8.6], 
 
6
                [https://sourceforge.net/tracker/?group_id=135773])
 
7
AC_SUBST(COPYRIGHT_YEAR, [2011])
6
8
AC_CONFIG_SRCDIR([config.h.in])
7
9
AM_INIT_AUTOMAKE
8
10
AM_CONFIG_HEADER([config.h])
9
11
 
10
12
# Generate python installation stuff
11
 
AM_PATH_PYTHON(2.6)
 
13
AM_PATH_PYTHON([2.7])
12
14
 
13
15
# Checks for programs.
14
16
AM_PROG_CC_C_O
15
17
 
 
18
# Cause autoconfiguration to look for an external libintl.
 
19
AM_GNU_GETTEXT([external])
 
20
AM_GNU_GETTEXT_VERSION([0.18.1])
 
21
 
16
22
# We need libjack in order to compile.
17
23
PKG_CHECK_MODULES(LIBJACK, [jack >= 0.98.0])
18
24
AC_CHECK_LIB([jack],[jack_set_info_function],[AC_DEFINE(HAVE_JACK_SET_INFO_FUNCTION, 1, [set for presence of])], [])
43
49
PKG_CHECK_MODULES([GLIB], [glib-2.0])
44
50
 
45
51
AC_ARG_ENABLE([ffmpeg],
46
 
   AC_HELP_STRING([--disable-ffmpeg],[remove capability to decode m4a/wma/avi files]),[makeffmpeg=$enableval],[makeffmpeg="maybe"])
 
52
   AC_HELP_STRING([--disable-libav],[remove capability to decode m4a/wma/avi files]),[makelibav=$enableval],[makelibav="maybe"])
47
53
 
48
 
if test $makeffmpeg != "no" ; then
 
54
if test $makelibav != "no" ; then
49
55
   PKG_CHECK_MODULES([LIBAVCODEC], [libavcodec], [AC_DEFINE(HAVE_AVCODEC, 1, [Set if libavcodec was found])
50
56
            AC_SUBST(HAVE_AVCODEC, 1)
51
57
            
61
67
            AC_CHECK_LIB([avcodec],[avcodec_decode_audio3], AC_DEFINE(DECODE_AUDIO_3, 1,[Used in avcodecdecode.c]))],
62
68
            AC_SUBST(HAVE_AVCODEC, 0)
63
69
 
64
 
            if test $makeffmpeg = "yes" ; then
65
 
               AC_MSG_ERROR([libavcodec not detected but specifically requested in configure options (ffmpeg)])
 
70
            if test $makelibav = "yes" ; then
 
71
               AC_MSG_ERROR([libavcodec not detected but specifically requested in configure options (libav)])
66
72
            else
67
73
               AC_MSG_WARN([IDJC will be built without wma/mp4/ape support])
68
74
            fi)
71
77
            AC_SUBST(HAVE_AVFORMAT, 1),
72
78
            AC_SUBST(HAVE_AVFORMAT, 0)
73
79
 
74
 
            if test $makeffmpeg = "yes" ; then
75
 
               AC_MSG_ERROR([libavformat not detected but specifically requested in configure options (ffmpeg)])
76
 
            else
77
 
               AC_MSG_WARN([IDJC will be built without wma/mp4/ape support])
78
 
            fi)
79
 
 
 
80
            if test $makelibav = "yes" ; then
 
81
               AC_MSG_ERROR([libavformat not detected but specifically requested in configure options (libav)])
 
82
            else
 
83
               AC_MSG_WARN([IDJC will be built without wma/mp4/ape support])
 
84
            fi)
 
85
 
 
86
   PKG_CHECK_MODULES([LIBAVUTIL], [libavutil], AC_DEFINE(HAVE_AVUTIL, 1, [Set if libavutil was found])
 
87
            AC_SUBST(HAVE_AVUTIL, 1),
 
88
            AC_SUBST(HAVE_AVUTIL, 0)
 
89
 
 
90
            if test $makelibav = "yes" ; then
 
91
               AC_MSG_ERROR([libavutil not detected but specifically requested in configure options (libav)])
 
92
            else
 
93
               AC_MSG_WARN([IDJC will be built without wma/mp4/ape support])
 
94
            fi)
80
95
else
81
96
   AC_SUBST(HAVE_AVCODEC, 0)
82
97
   AC_SUBST(HAVE_AVFORMAT, 0)
 
98
   AC_SUBST(HAVE_AVUTIL, 0)
83
99
fi
84
100
 
85
101
AC_ARG_ENABLE([speex],
108
124
PKG_CHECK_MODULES([PYGTK], [pygtk-2.0 >= 2.6.0])
109
125
 
110
126
AC_MSG_CHECKING([for mutagen])
111
 
python -c "import mutagen" >/dev/null 2>$1
 
127
${PYTHON}${PYTHON_VERSION} -c "import mutagen" >/dev/null 2>&1
112
128
if test $? -ne 0 ; then
113
129
    AC_MSG_RESULT([no])
114
 
    AC_MSG_ERROR([required dependency (mutagen / python-mutagen) is missing])
 
130
    AC_MSG_WARN([runtime dependency (mutagen / python-mutagen) is missing])
115
131
else
116
132
    AC_MSG_RESULT([yes])
117
133
fi
123
139
if test $makeflac != "no" ; then
124
140
   PKG_CHECK_MODULES([LIBFLAC],[flac >= 1.1.3],
125
141
            [AC_DEFINE([HAVE_FLAC],[1],[Set if libflac >= 1.1.3 was found])
126
 
            AC_DEFINE([FLAC_POST1_1_3],[2],[Set for new(er) flac API])
127
142
            AC_SUBST([HAVE_FLAC],[1])
128
143
 
129
144
            AC_CHECK_LIB([FLAC], [FLAC__stream_decoder_init_ogg_stream],
191
206
 
192
207
if test x$static = "xyes" ; then
193
208
   AC_CONFIG_SUBDIRS([libshout])
194
 
   AC_SUBST([LIBSHOUT_CFLAGS],['-I$(top_srcdir)/libshout/include/shout'])
195
 
   AC_SUBST([LIBSHOUT_LIBS],['$(top_srcdir)/libshout/src/.libs/libshout.a'])
 
209
   AC_SUBST([LIBSHOUT_CFLAGS],['-I$(top_builddir)/libshout/include/shout'])
 
210
   AC_SUBST([LIBSHOUT_LIBS],['$(top_builddir)/libshout/src/.libs/libshout.a'])
196
211
   AC_SUBST([MAYBE_LIBSHOUT],[libshout])
197
212
   AC_SUBST([ENH_SHOUT],[1])
198
213
   AC_DEFINE([ENH_SHOUT],[1],[Set if using an enhanced libshout])
208
223
fi
209
224
 
210
225
AC_CONFIG_FILES([Makefile
 
226
                  po/Makefile.in
211
227
                  c/Makefile
212
 
                  idjcpython/Makefile
 
228
                  python/Makefile
 
229
                  python/prelims/Makefile
213
230
                  artwork/Makefile
214
231
                  Man/Makefile
215
 
                  doc/Makefile])
 
232
                  doc/Makefile
 
233
                  python/__init__.py.in
 
234
                  idjc.in
 
235
                  idjc.desktop.in])
216
236
 
217
237
AC_OUTPUT