1
dnl Process this file with autoconf to produce a configure script.
5
m4_define([gnac_major_version], [0])
6
m4_define([gnac_minor_version], [2])
7
m4_define([gnac_micro_version], [4])
8
m4_define([gnac_version],
9
gnac_major_version.gnac_minor_version.gnac_micro_version)
11
AC_INIT([Gnac], [gnac_version],
12
[http://bugzilla.gnome.org/enter_bug.cgi?product=gnac],
13
[gnac], [http://gnac.sf.net])
15
AC_CONFIG_HEADER([config.h])
16
AC_CONFIG_SRCDIR([src/gnac-main.c])
17
AC_CONFIG_MACRO_DIR([m4])
19
AC_DEFINE([GNAC_MAJOR_VERSION], [gnac_major_version], [Gnac major version])
20
AC_SUBST([GNAC_MAJOR_VERSION], [gnac_major_version])
21
AC_DEFINE([GNAC_MINOR_VERSION], [gnac_minor_version], [Gnac minor version])
22
AC_SUBST([GNAC_MINOR_VERSION], [gnac_minor_version])
23
AC_DEFINE([GNAC_MICRO_VERSION], [gnac_micro_version], [Gnac micro version])
24
AC_SUBST([GNAC_MICRO_VERSION], [gnac_micro_version])
26
AM_INIT_AUTOMAKE([1.11.1 dist-bzip2])
27
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
29
dnl Checks for programs
39
dnl Initialize libtool
43
dnl Internationalization support (gettext/i18n stuff)
48
[Define to the full name of the gettext package.])
49
AC_SUBST([GETTEXT_PACKAGE])
50
IT_PROG_INTLTOOL([0.41.1])
51
AM_GNU_GETTEXT_VERSION([0.17])
54
dnl Check for GSettings macros
57
GNOME_DOC_INIT([0.17.2])
59
GNOME_COMPILE_WARNINGS([maximum])
60
GNOME_CXX_WARNINGS([yes])
61
GNOME_MAINTAINER_MODE_DEFINES
63
PKG_CHECK_MODULES(LIBXML, [
66
AC_SUBST(LIBXML_CFLAGS)
69
dnl Find the UI libraries
73
PKG_CHECK_MODULES(NOTIFY,
75
AC_DEFINE(HAVE_LIBNOTIFY, 1,
76
[Define to 1 if you have the <libnotify/notify.h> header file.]),
77
AC_MSG_WARN(['libnotify' was not found. Notifications will not be displayed.])
79
AC_SUBST(NOTIFY_CFLAGS)
83
PKG_CHECK_MODULES(UNIQUE,
85
AC_DEFINE(HAVE_LIBUNIQUE, 1,
86
[Define to 1 if you have the <unique/unique.h> header file.]),
87
AC_MSG_WARN(['libunique' was not found. Multiple instances of Gnac will be allowed.])
89
AC_SUBST(UNIQUE_CFLAGS)
92
dnl Find the GStreamer libraries
93
GSTREAMER_REQUIRED_VERSION=0.10.31
94
PKG_CHECK_MODULES(GSTREAMER, [
95
gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
96
gstreamer-base-0.10 >= $GSTREAMER_REQUIRED_VERSION
97
gstreamer-pbutils-0.10 >= $GSTREAMER_REQUIRED_VERSION
98
gstreamer-plugins-base-0.10 >= $GSTREAMER_REQUIRED_VERSION
99
gstreamer-tag-0.10 >= $GSTREAMER_REQUIRED_VERSION
101
AC_SUBST(GSTREAMER_CFLAGS)
102
AC_SUBST(GSTREAMER_LIBS)
104
dnl Find the GStreamer elements we use, and warn if they are not present
105
AM_GST_ELEMENT_CHECK(faac, , AC_MSG_WARN([The 'faac' element was not found. This will cause encoding to AAC to fail.]))
106
AM_GST_ELEMENT_CHECK(flacenc, , AC_MSG_WARN([The 'flacenc' element was not found. This will cause encoding to FLAC to fail.]))
107
AM_GST_ELEMENT_CHECK(lame, , AC_MSG_WARN([The 'lame' element was not found. This will cause encoding to MP3 to fail.]))
108
AM_GST_ELEMENT_CHECK(wavenc, , AC_MSG_WARN([The 'wavenc' element was not found. This will cause encoding to WAV to fail.]))
109
AM_GST_ELEMENT_CHECK(wavpackenc, , AC_MSG_WARN([The 'wavpackenc' element was not found. This will cause encoding to WAVPACK to fail.]))
111
dnl Optionnaly enable G* deprecations
112
AC_MSG_CHECKING([Wether to enable deprecation warnings])
113
AC_ARG_ENABLE([deprecation],
114
[AS_HELP_STRING([--enable-deprecations],
115
[enable deprecation warnings [default=no]])],
116
[], [enable_deprecations=no])
117
AC_MSG_RESULT([$enable_deprecations])
119
if test "$enable_deprecations" = "no"; then
120
DISABLE_DEPRECATED=""
121
AC_SUBST(DISABLE_DEPRECATED)
125
AC_ARG_ENABLE([debug], [],
126
[ if test "$enableval" = "yes"; then
127
CFLAGS="-g -ggdb -O0"
134
AC_SUBST([AM_CPPFLAGS])
135
AC_SUBST([AM_CFLAGS])
136
AC_SUBST([AM_LDFLAGS])
138
dnl Finally, generate the files
144
data/profiles/Makefile
145
data/profiles/default/Makefile
146
data/profiles/ui/Makefile
153
src/profiles/Makefile
154
src/profiles/formats/Makefile