~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to libs/taglib/configure.in

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2013-09-21 19:05:02 UTC
  • Revision ID: package-import@ubuntu.com-20130921190502-8gsftrku6jnzhd7v
Tags: upstream-3.4~dfsg
ImportĀ upstreamĀ versionĀ 3.4~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl =======================================================
 
2
dnl FILE: configure.in.in
 
3
dnl =======================================================
 
4
 
 
5
dnl    This file is part of the KDE libraries/packages
 
6
dnl    Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
 
7
dnl                       modified by Walter Tasin (tasin@kdevelop.org)
 
8
dnl                       for c++ console applications
 
9
 
 
10
dnl    This file is free software; you can redistribute it and/or
 
11
dnl    modify it under the terms of the GNU Library General Public
 
12
dnl    License as published by the Free Software Foundation; either
 
13
dnl    version 2 of the License, or (at your option) any later version.
 
14
 
 
15
dnl    This library is distributed in the hope that it will be useful,
 
16
dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
dnl    Library General Public License for more details.
 
19
 
 
20
dnl    You should have received a copy of the GNU Library General Public License
 
21
dnl    along with this library; see the file COPYING.LIB.  If not, write to
 
22
dnl    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
23
dnl    Boston, MA 02111-1307, USA.
 
24
 
 
25
# Original Author was Kalle@kde.org
 
26
# I lifted it in some mater. (Stephan Kulow)
 
27
# I used much code from Janos Farkas
 
28
 
 
29
dnl Process this file with autoconf to produce a configure script.
 
30
 
 
31
AC_INIT(acinclude.m4) dnl a source file from your sub dir
 
32
 
 
33
dnl This is so we can use kde-common
 
34
AC_CONFIG_AUX_DIR(admin)
 
35
 
 
36
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
 
37
unset CDPATH
 
38
 
 
39
dnl Checking host/target/build systems, for make, install etc.
 
40
AC_CANONICAL_SYSTEM
 
41
dnl Perform program name transformation
 
42
AC_ARG_PROGRAM
 
43
 
 
44
dnl Automake doc recommends to do this only here. (Janos)
 
45
AM_INIT_AUTOMAKE(taglib,1.4)
 
46
 
 
47
dnl almost the same like KDE_SET_PEFIX but the path is /usr/local
 
48
dnl
 
49
unset CDPATH
 
50
dnl make /usr/local the default for the installation
 
51
AC_PREFIX_DEFAULT(/usr/local)
 
52
 
 
53
if test "x$prefix" = "xNONE"; then
 
54
  prefix=$ac_default_prefix
 
55
  ac_configure_args="$ac_configure_args --prefix $prefix"
 
56
fi
 
57
KDE_FAST_CONFIGURE
 
58
KDE_CONF_FILES
 
59
 
 
60
dnl without this order in this file, automake will be confused!
 
61
dnl
 
62
AM_CONFIG_HEADER(config.h)
 
63
 
 
64
dnl checks for programs.
 
65
dnl first check for c/c++ compilers
 
66
AC_CHECK_COMPILERS
 
67
 
 
68
dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
 
69
dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
 
70
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" dnl __kdevelop[exc]__
 
71
 
 
72
dnl create only shared libtool-libraries
 
73
AC_ENABLE_SHARED(yes)
 
74
 
 
75
dnl set the following to yes, if you want to create static
 
76
dnl libtool-libraries, too.
 
77
AC_ENABLE_STATIC(no)
 
78
 
 
79
dnl create a working libtool-script
 
80
KDE_PROG_LIBTOOL
 
81
 
 
82
dnl activate the next macro call for DLOPEN tests and setting LIBDL
 
83
dnl   (n.b. KDE_MISC_TESTS does the same to you, so use either this or the next one)
 
84
dnl KDE_CHECK_DLOPEN
 
85
 
 
86
dnl activate the next macro call for some additional tests
 
87
dnl   (compat, crypt, socket, nsl, dlopen, ...)
 
88
dnl KDE_MISC_TESTS dnl __kdevelop__
 
89
 
 
90
dnl KDE_NEED_FLEX dnl __kdevelop__
 
91
dnl AC_PROG_YACC dnl __kdevelop__
 
92
 
 
93
dnl KDE_CHECK_EXTRA_LIBS
 
94
all_libraries="$all_libraries $USER_LDFLAGS"
 
95
all_includes="$all_includes $USER_INCLUDES"
 
96
AC_SUBST(all_includes)
 
97
AC_SUBST(all_libraries)
 
98
 
 
99
AC_SUBST(AUTODIRS)
 
100
 
 
101
#AM_INIT_AUTOMAKE(taglib,1.0)
 
102
dnl don't remove the below
 
103
dnl AC_OUTPUT(taglib-config)
 
104
dnl AC_OUTPUT(taglib.pc)
 
105
 
 
106
AC_DEFUN([AC_HAVE_ZLIB],
 
107
[
 
108
        AC_DEFINE(HAVE_ZLIB, 1, [have zlib])
 
109
        have_zlib=true
 
110
])
 
111
 
 
112
AC_DEFUN([AC_NO_ZLIB],
 
113
[
 
114
        AC_DEFINE(HAVE_ZLIB, 0, [have zlib])
 
115
        have_zlib=false
 
116
])
 
117
 
 
118
AC_CHECK_HEADER(zlib.h, AC_HAVE_ZLIB, AC_NO_ZLIB)
 
119
AM_CONDITIONAL(link_zlib, test x$have_zlib = xtrue)
 
120
 
 
121
AC_DEFUN([AC_HAVE_CPPUNIT],
 
122
[
 
123
        AC_DEFINE(HAVE_CPPUNIT, 1, [have cppunit])
 
124
        have_cppunit=true
 
125
])
 
126
 
 
127
AC_DEFUN([AC_NO_CPPUNIT],
 
128
[
 
129
        AC_DEFINE(HAVE_CPPUNIT, 0, [have cppunit])
 
130
        have_cppunit=false
 
131
])
 
132
 
 
133
AC_LANG_SAVE
 
134
AC_LANG_CPLUSPLUS
 
135
AC_CHECK_HEADER(cppunit/extensions/HelperMacros.h, AC_HAVE_CPPUNIT, AC_NO_CPPUNIT)
 
136
AC_LANG_RESTORE
 
137
AM_CONDITIONAL(build_tests, test x$have_cppunit = xtrue)
 
138
dnl =======================================================
 
139
dnl FILE: ./bindings/c/configure.in.in
 
140
dnl =======================================================
 
141
 
 
142
dnl AC_OUTPUT(bindings/c/taglib_c.pc)
 
143
KDE_CREATE_SUBDIRSLIST
 
144
AC_CONFIG_FILES([ Makefile ])
 
145
AC_CONFIG_FILES([ bindings/Makefile ])
 
146
AC_CONFIG_FILES([ bindings/c/Makefile ])
 
147
AC_CONFIG_FILES([ examples/Makefile ])
 
148
AC_CONFIG_FILES([ taglib/Makefile ])
 
149
AC_CONFIG_FILES([ taglib/ape/Makefile ])
 
150
AC_CONFIG_FILES([ taglib/flac/Makefile ])
 
151
AC_CONFIG_FILES([ taglib/mpc/Makefile ])
 
152
AC_CONFIG_FILES([ taglib/mpeg/Makefile ])
 
153
AC_CONFIG_FILES([ taglib/mpeg/id3v1/Makefile ])
 
154
AC_CONFIG_FILES([ taglib/mpeg/id3v2/Makefile ])
 
155
AC_CONFIG_FILES([ taglib/mpeg/id3v2/frames/Makefile ])
 
156
AC_CONFIG_FILES([ taglib/ogg/Makefile ])
 
157
AC_CONFIG_FILES([ taglib/ogg/flac/Makefile ])
 
158
AC_CONFIG_FILES([ taglib/ogg/speex/Makefile ])
 
159
AC_CONFIG_FILES([ taglib/ogg/vorbis/Makefile ])
 
160
AC_CONFIG_FILES([ taglib/toolkit/Makefile ])
 
161
AC_CONFIG_FILES([ taglib/trueaudio/Makefile ])
 
162
AC_CONFIG_FILES([ taglib/wavpack/Makefile ])
 
163
AC_CONFIG_FILES([ tests/Makefile ])
 
164
AC_CONFIG_FILES([ taglib-config ])
 
165
AC_CONFIG_FILES([ taglib.pc ])
 
166
AC_CONFIG_FILES([ bindings/c/taglib_c.pc ])
 
167
AC_OUTPUT
 
168
if test "x$have_zlib" = "xfalse"; then
 
169
        echo "**************************************************"
 
170
        echo "*"
 
171
        echo "* You don't seem to have libz / zlib.h installed."
 
172
        echo "* Compressed frames have been disabled."
 
173
        echo "*"
 
174
        echo "**************************************************"
 
175
fi
 
176
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
 
177
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
 
178
  # And if so, warn when they don't match
 
179
  if test "$kde_libs_prefix" != "$given_prefix"; then
 
180
    # And if kde doesn't know about the prefix yet
 
181
    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
 
182
    if test $? -ne 0; then
 
183
      echo ""
 
184
      echo "Warning: you chose to install this package in $given_prefix,"
 
185
      echo "but KDE was found in $kde_libs_prefix."
 
186
      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
 
187
      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
 
188
      echo "Then restart KDE."
 
189
      echo ""
 
190
    fi
 
191
  fi
 
192
fi
 
193
 
 
194
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
 
195
  echo ""
 
196
  echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
 
197
  echo "was not included. Therefore, GCC symbol visibility support remains disabled."
 
198
  echo ""
 
199
  echo "For better performance, consider including the Qt visibility supporting patch"
 
200
  echo "located at:"
 
201
  echo ""
 
202
  echo "http://bugs.kde.org/show_bug.cgi?id=109386"
 
203
  echo ""
 
204
  echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
 
205
  echo "everything will continue to work just fine without it."
 
206
  echo ""
 
207
fi
 
208
 
 
209
if test "$all_tests" = "bad"; then
 
210
  if test ! "$cache_file" = "/dev/null"; then
 
211
    echo ""
 
212
    echo "Please remove the file $cache_file after changing your setup"
 
213
    echo "so that configure will find the changes next time."
 
214
    echo ""
 
215
  fi
 
216
else
 
217
  echo ""
 
218
  echo "Good - your configure finished. Start make now"
 
219
  echo ""
 
220
fi