~ubuntu-branches/ubuntu/quantal/gecko-mediaplayer/quantal

« back to all changes in this revision

Viewing changes to .pc/force-no-gsettings.patch/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2011-08-20 15:53:32 UTC
  • mfrom: (0.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20110820155332-yv31mm5eutw0jv31
Tags: 1.0.4-2ubuntu1
* Sync with Debian unstable.
* debian/patches
 - force-no-gsettings.patch: Remove, since gnome-mplayer provide the
   gsettings schemas.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script.
2
 
dnl Created by Anjuta application wizard.
3
 
 
4
 
AC_INIT(configure.in)
5
 
AM_INIT_AUTOMAKE(gecko-mediaplayer, 1.0.4)
6
 
AM_CONFIG_HEADER(config.h)
7
 
AM_MAINTAINER_MODE
8
 
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9
 
 
10
 
AC_ISC_POSIX
11
 
AC_PROG_CC
12
 
AM_PROG_CC_STDC
13
 
AC_HEADER_STDC
14
 
 
15
 
 
16
 
AC_PROG_CPP
17
 
AC_PROG_CXX
18
 
AM_PROG_CC_C_O
19
 
AC_PROG_RANLIB
20
 
 
21
 
dnl Set gettext package name
22
 
GETTEXT_PACKAGE=gecko-mediaplayer
23
 
AC_SUBST(GETTEXT_PACKAGE)
24
 
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
25
 
 
26
 
dnl Add the languages which your application supports here.
27
 
ALL_LINGUAS="cs de es fr ja it nl pl pt pt_BR tr"
28
 
AM_GLIB_GNU_GETTEXT
29
 
 
30
 
PKG_CHECK_MODULES(GLIB, [glib-2.0])
31
 
AC_SUBST(GLIB_CFLAGS)
32
 
AC_SUBST(GLIB_LIBS)
33
 
 
34
 
AC_ARG_WITH([gconf],
35
 
    [AS_HELP_STRING([--with-gconf],
36
 
        [Use Gconf to store preferences])],
37
 
        [],
38
 
        [with_gconf=check])
39
 
AS_IF([test "x$with_gconf" != xyes],        
40
 
    [PKG_CHECK_MODULES(GLIB2_26,[glib-2.0 >= 2.26.0],[with_gconf=no with_gsettings=yes with_gio=yes GLIB2_26_DEFINES="-DGLIB2_26_ENABLED" AC_DEFINE([GLIB2_26_ENABLED],[1],[Define to 1 if you have GLIB 2.26 or higher])],AC_MSG_NOTICE([Using GLIB < 2.26 specific features]))
41
 
    ])    
42
 
 
43
 
AC_SUBST(GLIB2_26_DEFINES)
44
 
AC_SUBST(ALSA_CFLAGS)
45
 
AC_SUBST(PULSE_CFLAGS)
46
 
 
47
 
 
48
 
AC_ARG_WITH([xulrunner-sdk],
49
 
    [AS_HELP_STRING([--with-xulrunner-sdk=path_to_sdk],
50
 
        [Path to xulrunner SDK for build --with-xulrunner-sdk=/path/to/sdk])],
51
 
        [
52
 
        XULRUNNER_SDK_PREFIX=$with_xulrunner_sdk
53
 
        GECKO_CFLAGS="-I$XULRUNNER_SDK_PREFIX/include -I$XULRUNNER_SDK_PREFIX/include/plugin -I$XULRUNNER_SDK_PREFIX/include/nspr -I$XULRUNNER_SDK_PREFIX/include/xpcom -I$XULRUNNER_SDK_PREFIX/include/string -I$XULRUNNER_SDK_PREFIX/include/java"
54
 
        GECKO_LIBS="-L$XULRUNNER_SDK_PREFIX/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
55
 
        AC_ARG_ENABLE(new-libxul,
56
 
                AC_HELP_STRING([--enable-new-libxul],[libxul/xulrunner-sdk is 1.9.2 or higher]),
57
 
                [usenewlibxul=$enableval],[usenewlibxul=no])
58
 
 
59
 
        if test "$usenewlibxul" = "yes"; then
60
 
                GECKO_CFLAGS="$GECKO_CFLAGS -DMOZ_NO_MOZALLOC"
61
 
                AC_DEFINE([HAVE_NEW_XULRUNNER],[1],[Define to 1 if using libxul 1.9.2 or higher])
62
 
        fi
63
 
        
64
 
        ],
65
 
        [])
66
 
 
67
 
if test "$GECKO_CFLAGS" = ""; then
68
 
PKG_CHECK_MODULES(GECKO, [libxul >= 2],[GECKO_CFLAGS="$GECKO_CFLAGS -DMOZ_NO_MOZALLOC" AC_DEFINE([HAVE_NEW_XULRUNNER],[1],[Define to 1 if using libxul 2.0.0 or higher]) AC_MSG_NOTICE([Using libxul >= 2.0 ])
69
 
    ],[AC_MSG_NOTICE([libxul >= 2 not found, trying another])])
70
 
fi
71
 
 
72
 
if test "$GECKO_CFLAGS" = ""; then
73
 
PKG_CHECK_MODULES(GECKO, [libxul >= 1.9.2],[ AC_DEFINE([HAVE_NEW_XULRUNNER],[1],[Define to 1 if using libxul 1.9.2 or higher]) AC_MSG_NOTICE([Using libxul >= 1.9.2])
74
 
    ],[AC_MSG_NOTICE([libxul >= 1.9.2 not found, trying another])])
75
 
fi
76
 
 
77
 
if test "$GECKO_CFLAGS" = ""; then
78
 
PKG_CHECK_MODULES(GECKO, [libxul < 1.9.2],[ AC_MSG_NOTICE([Using libxul < 1.9.2])
79
 
    ],[AC_MSG_WARN([libxul < 1.9.2 not found, trying another])])
80
 
fi
81
 
 
82
 
if test "$GECKO_CFLAGS" = ""; then
83
 
PKG_CHECK_MODULES(GECKO, [libxul-unstable],[ AC_MSG_NOTICE([Using libxul-unstable])
84
 
    ],[AC_MSG_WARN([libxul-unstable not found, trying another])])
85
 
fi
86
 
 
87
 
if test "$GECKO_CFLAGS" = ""; then
88
 
PKG_CHECK_MODULES(GECKO, [mozilla-plugin mozilla-xpcom],[ AC_MSG_NOTICE([Using mozilla])
89
 
    ],[AC_MSG_WARN([mozilla-plugin not found, trying another])])
90
 
fi
91
 
 
92
 
if test "$GECKO_CFLAGS" = ""; then
93
 
PKG_CHECK_MODULES(GECKO, [firefox-plugin firefox-xpcom],[ AC_MSG_NOTICE([Using firefox])
94
 
    ],[AC_MSG_WARN([firefox-plugin not found, trying another])])
95
 
fi
96
 
 
97
 
if test "$GECKO_CFLAGS" = ""; then
98
 
PKG_CHECK_MODULES(GECKO, [seamonkey-plugin seamonkey-xpcom],[ AC_MSG_NOTICE([Using seamonkey])
99
 
    ],[AC_MSG_WARN([seamokey-plugin not found, trying another])])
100
 
fi
101
 
 
102
 
if test "$GECKO_CFLAGS" = ""; then
103
 
PKG_CHECK_MODULES(GECKO, [xulrunner-plugin xulrunner-xpcom],[ AC_MSG_NOTICE([Using xulrunner])
104
 
    ],[AC_MSG_WARN([xulrunner-plugin not found, trying another])])
105
 
fi
106
 
 
107
 
if test "$GECKO_CFLAGS" = ""; then
108
 
PKG_CHECK_MODULES(GECKO, [iceape-plugin iceape-xpcom],[ AC_MSG_NOTICE([Using iceape])
109
 
    ],[AC_MSG_WARN([iceape-plugin not found, trying another])])
110
 
fi
111
 
 
112
 
PKG_CHECK_MODULES(NSPR, [nspr],[
113
 
    libdir=`$PKG_CONFIG --variable=libdir nspr`
114
 
    AC_SUBST(libdir)
115
 
    ],[AC_MSG_WARN([nspr not found, may not be needed])])
116
 
 
117
 
 
118
 
AC_SUBST(GECKO_CFLAGS)
119
 
AC_SUBST(GECKO_LIBS)
120
 
 
121
 
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.95 dbus-glib-1 >= 0.70])
122
 
AC_SUBST(DBUS_CFLAGS)
123
 
AC_SUBST(DBUS_LIBS)
124
 
 
125
 
USE_GCONF=0
126
 
AC_ARG_WITH([gconf],
127
 
    [AS_HELP_STRING([--with-gconf],
128
 
        [Use Gconf to store preferences])],
129
 
        [AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL],[false])],
130
 
        [with_gconf=check])
131
 
AS_IF([test "x$with_gconf" != xno],        
132
 
    [PKG_CHECK_MODULES(GCONF, [gconf-2.0],[AM_GCONF_SOURCE_2 USE_GCONF=1
133
 
 GCONF_DEFINES="-DHAVE_GCONF" AC_DEFINE([HAVE_GCONF],[1],[Define to 1 to use GConf to store preferences])],[AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL],[false]) AC_MSG_NOTICE([Using keystore for preferences])])
134
 
    AC_SUBST(GCONF_DEFINES)
135
 
    AC_SUBST(GCONF_CFLAGS)
136
 
    AC_SUBST(GCONF_LIBS)
137
 
    ])
138
 
AC_SUBST(USE_GCONF)
139
 
 
140
 
AC_ARG_WITH([gio],
141
 
    [AS_HELP_STRING([--with-gio],
142
 
        [Use GIO for file I/O])],
143
 
        [],
144
 
        [with_gio=check])
145
 
AS_IF([test "x$with_gio" != xno], 
146
 
    [PKG_CHECK_MODULES(GIO,[gio-2.0],[GIO_DEFINES="-DGIO_ENABLED" AC_DEFINE([GIO_ENABLED],[1],[Define to 1 if you have GIO support])],AC_MSG_WARN([Compiling without gio support]))
147
 
    AC_SUBST(GIO_DEFINES)
148
 
    AC_SUBST(GIO_CFLAGS)
149
 
    AC_SUBST(GIO_LIBS)
150
 
    ])
151
 
 
152
 
AC_ARG_WITH([plugin_dir],
153
 
    [AS_HELP_STRING([--with-plugin-dir=dir],
154
 
        [Directory where plugins are stored])],
155
 
        [plugindir=$withval],
156
 
        [plugindir='$(libdir)/mozilla/plugins'])
157
 
AC_SUBST(plugindir)
158
 
 
159
 
AC_ARG_ENABLE(caching,
160
 
        AC_HELP_STRING([--disable-caching],[Disable caching of remote media to local storage]),
161
 
        [usecache=$enableval],[usecache=yes])
162
 
 
163
 
if test $usecache != yes; then
164
 
        GECKO_CFLAGS="$GECKO_CFLAGS -DDISABLE_CACHE"
165
 
fi
166
 
 
167
 
AC_ARG_WITH([libcurl],
168
 
    [AS_HELP_STRING([--with-libcurl],
169
 
        [Add support for libcurl])],
170
 
        [],
171
 
        [with_libcurl=check])
172
 
AS_IF([test "x$with_libcurl" != xno], 
173
 
    [PKG_CHECK_MODULES(CURL,[libcurl],[CURL_DEFINES="-DHAVE_CURL" AC_DEFINE([CURL_ENABLED],[1],[Define to 1 if you have curl support])],AC_MSG_NOTICE([Compiling without curl support. May disable apple.com sites]))
174
 
    AC_SUBST(CURL_DEFINES)
175
 
    AC_SUBST(CURL_CFLAGS)
176
 
    AC_SUBST(CURL_LIBS)
177
 
    ])    
178
 
 
179
 
 
180
 
AC_OUTPUT([
181
 
Makefile
182
 
gecko-mediaplayer.spec
183
 
src/Makefile
184
 
src/libgmlib/Makefile
185
 
po/Makefile.in
186
 
])
187