~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to m4/lib-prefix.m4

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-09-17 21:56:14 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20080917215614-tj0vx8xzd57e52t8
Tags: 0.9.2-1ubuntu1
* New Upstream Release, exception granted by
    - dktrkranz, norsetto, Hobbsee (via irc). LP: #270404

Changes done in ubuntu:

* add libxul-dev to build-depends
* make sure that vlc is build against libxul in configure. This doesn't
  change anything in the package, but makes it more robust if building
  in an 'unclean' chroot or when modifying the package.
* debian/control: make Vcs-* fields point to the motumedia branch
* add libx264-dev and libass-dev to build-depends
  LP: #210354, #199870
* actually enable libass support by passing --enable-libass to configure
* enable libdca: add libdca-dev to build depends and --enable-libdca
* install the x264 plugin.

Changes already in the pkg-multimedia branch in debian:

* don't install usr/share/vlc/mozilla in debian/mozilla-plugin-vlc.install  
* new upstream .desktop file now registers flash video mimetype LP: #261567
* add Xb-Npp-Applications to mozilla-plugin-vlc
* remove duplicate entries in debian/vlc-nox.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# lib-prefix.m4 serial 1 (gettext-0.11)
2
 
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
3
 
dnl This file is free software, distributed under the terms of the GNU
4
 
dnl General Public License.  As a special exception to the GNU General
5
 
dnl Public License, this file may be distributed as part of a program
6
 
dnl that contains a configuration script generated by Autoconf, under
7
 
dnl the same distribution terms as the rest of that program.
 
1
# lib-prefix.m4 serial 5 (gettext-0.15)
 
2
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
 
3
dnl This file is free software; the Free Software Foundation
 
4
dnl gives unlimited permission to copy and/or distribute it,
 
5
dnl with or without modifications, as long as this notice is preserved.
8
6
 
9
7
dnl From Bruno Haible.
10
8
 
 
9
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
 
10
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
 
11
dnl require excessive bracketing.
 
12
ifdef([AC_HELP_STRING],
 
13
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
 
14
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
 
15
 
11
16
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
12
17
dnl to access previously installed libraries. The basic assumption is that
13
18
dnl a user will want packages to use other packages he previously installed
19
24
  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
20
25
  AC_REQUIRE([AC_PROG_CC])
21
26
  AC_REQUIRE([AC_CANONICAL_HOST])
 
27
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
22
28
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
23
29
  dnl By default, look in $includedir and $libdir.
24
30
  use_additional=yes
26
32
    eval additional_includedir=\"$includedir\"
27
33
    eval additional_libdir=\"$libdir\"
28
34
  ])
29
 
  AC_ARG_WITH([lib-prefix],
 
35
  AC_LIB_ARG_WITH([lib-prefix],
30
36
[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
31
37
  --without-lib-prefix    don't search for libraries in includedir and libdir],
32
38
[
40
46
        ])
41
47
      else
42
48
        additional_includedir="$withval/include"
43
 
        additional_libdir="$withval/lib"
 
49
        additional_libdir="$withval/$acl_libdirstem"
44
50
      fi
45
51
    fi
46
52
])
64
70
        if test "X$additional_includedir" = "X/usr/local/include"; then
65
71
          if test -n "$GCC"; then
66
72
            case $host_os in
67
 
              linux*) haveit=yes;;
 
73
              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
68
74
            esac
69
75
          fi
70
76
        fi
82
88
    dnl   2. if it's already present in $LDFLAGS,
83
89
    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
84
90
    dnl   4. if it doesn't exist as a directory.
85
 
    if test "X$additional_libdir" != "X/usr/lib"; then
 
91
    if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
86
92
      haveit=
87
93
      for x in $LDFLAGS; do
88
94
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
92
98
        fi
93
99
      done
94
100
      if test -z "$haveit"; then
95
 
        if test "X$additional_libdir" = "X/usr/local/lib"; then
 
101
        if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
96
102
          if test -n "$GCC"; then
97
103
            case $host_os in
98
104
              linux*) haveit=yes;;
146
152
  exec_prefix="$acl_save_exec_prefix"
147
153
  prefix="$acl_save_prefix"
148
154
])
 
155
 
 
156
dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
 
157
dnl the basename of the libdir, either "lib" or "lib64".
 
158
AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
 
159
[
 
160
  dnl There is no formal standard regarding lib and lib64. The current
 
161
  dnl practice is that on a system supporting 32-bit and 64-bit instruction
 
162
  dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
 
163
  dnl libraries go under $prefix/lib. We determine the compiler's default
 
164
  dnl mode by looking at the compiler's library search path. If at least
 
165
  dnl of its elements ends in /lib64 or points to a directory whose absolute
 
166
  dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
 
167
  dnl default, namely "lib".
 
168
  acl_libdirstem=lib
 
169
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
170
  if test -n "$searchpath"; then
 
171
    acl_save_IFS="${IFS=        }"; IFS=":"
 
172
    for searchdir in $searchpath; do
 
173
      if test -d "$searchdir"; then
 
174
        case "$searchdir" in
 
175
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
176
          *) searchdir=`cd "$searchdir" && pwd`
 
177
             case "$searchdir" in
 
178
               */lib64 ) acl_libdirstem=lib64 ;;
 
179
             esac ;;
 
180
        esac
 
181
      fi
 
182
    done
 
183
    IFS="$acl_save_IFS"
 
184
  fi
 
185
])