~ubuntu-branches/ubuntu/trusty/libdv/trusty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2006-09-26 14:22:15 UTC
  • mfrom: (1.3.1 upstream) (3.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060926142215-q2arp4stpw6lrb5p
Tags: 1.0.0-1
* New upstream version.
* Removed patches:
  + [01_changelog_update_CVS]
  + [10_amd64_linkage_fix_CVS]
  + [10_inline_fixes_CVS]
  + [20_no_exec_stack_CVS]
  + [30_unload_memleak_fix_CVS]
  + [40_playdv_exit_fix_CVS]
  + [50_gcc41_asm_constraint_fixes_CVS]
    All of the above are part of the new upstream version.
* debian/control: In Build-Depends, remove alternative dependencies on
  obsolete SDL and X packages.
* debian/control: Complies with version 3.7.2 of Debian policy.
* debian/libdv4.README.Debian: Document lack of position-independent code
  in i386 version of libdv's shared library as mandated by recent versions
  of Debian policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
RPM_RELEASE=1
7
7
AC_CANONICAL_HOST
8
8
AC_CANONICAL_TARGET
9
 
AM_INIT_AUTOMAKE(libdv, 0.103)
 
9
AM_INIT_AUTOMAKE(libdv, 1.0.0)
10
10
 
11
 
dnl AM_MAINTAINER_MODE
 
11
AM_MAINTAINER_MODE
12
12
AC_LIBTOOL_PICMODE(no)
13
13
 
14
14
dnl Checks for programs.
34
34
AH_TEMPLATE([ARCH_X86],
35
35
            [Define as 1 if host is an IA32])
36
36
 
 
37
AH_TEMPLATE([ARCH_X86_64],
 
38
            [Define as 1 if host is an AMD64])
 
39
 
37
40
AH_TEMPLATE([DEBUG], 
38
41
            [Define to indicate DEBUGGING is enabled possibly with a level])
39
42
 
53
56
 
54
57
use_asm=:
55
58
arch_x86=false
 
59
arch_x86_64=false
56
60
 
57
61
AC_ARG_ENABLE(asm,
58
62
[  --disable-asm           disable use of architecture specific assembly code],
95
99
if $use_asm; then
96
100
        case "$host_cpu" in
97
101
                i?86)
98
 
                        arch_x86=:
 
102
                        arch_x86=true
99
103
                        AC_DEFINE(ARCH_X86)
100
104
                        ;;
 
105
                x86_64)
 
106
                        arch_x86_64=true
 
107
                        AC_DEFINE(ARCH_X86_64)
 
108
                        ;;
101
109
                *)
102
110
                        ;;
103
111
        esac
146
154
)
147
155
 
148
156
 
149
 
 
150
 
AM_CONDITIONAL(HOST_X86, $arch_x86)
 
157
AM_CONDITIONAL(HOST_X86, test x$arch_x86 = xtrue)
 
158
AM_CONDITIONAL(HOST_X86_64, test x$arch_x86_64 = xtrue)
 
159
 
 
160
 
151
161
 
152
162
dnl Checks for libraries.
153
 
 
 
163
have_gtk="false"
154
164
if $use_gtk; then
155
165
        REQUIRES='glib >= 1.2.4 gtk+ >= 1.2.4'
156
 
        PKG_CHECK_MODULES(GTK,$REQUIRES)
 
166
        PKG_CHECK_MODULES(GTK,$REQUIRES,have_gtk="true",have_gtk="false")
 
167
        AC_DEFINE(HAVE_GTK)
157
168
fi
158
169
 
 
170
AM_CONDITIONAL(HAVE_GTK, test x$have_gtk = xtrue)
 
171
 
159
172
dnl used in Makefile.am
160
173
AC_SUBST(GTK_CFLAGS)
161
174
AC_SUBST(GTK_LIBS)
162
 
dnl CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
163
 
dnl LDFLAGS="$LDFLAGS $GTK_LIBS"
164
175
 
165
176
if $use_sdl; then
166
177
        AM_PATH_SDL(1.1.6,
169
180
        ])
170
181
fi
171
182
 
172
 
if $use_gtk; then
173
 
        AM_PATH_GTK(1.2.4,
174
 
        [
175
 
                AC_DEFINE(HAVE_GTK)
176
 
        ])
177
 
fi
178
 
 
179
183
if [ $use_gtk && $use_xv ]; then
180
184
        AC_CHECK_LIB(Xv, XvQueryAdaptors,
181
185
                [AC_DEFINE(HAVE_LIBXV)
187
191
        )
188
192
fi
189
193
 
190
 
if $use_gtk; then
191
 
        PLAYDV_SUBDIR='playdv'
192
 
else
193
 
        PLAYDV_SUBDIR=''
194
 
fi
195
 
AC_SUBST(PLAYDV_SUBDIR)
196
 
 
197
194
 
198
195
dnl *********************************************************************
199
196
dnl Check for the pthread lib