~ubuntu-branches/debian/squeeze/kdelibs/squeeze

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2010-08-07 23:20:21 UTC
  • Revision ID: james.westby@ubuntu.com-20100807232021-owvkgp5wpc076s33
Tags: 4:3.5.10.dfsg.1-5
* Change by email address to @debian.org.
* Drop common HTML docs from kdelibs-data package. Instead suggest
  kdelibs5-data which ships them (Closes: #591609). What's more, whoever
  wants to view docs, will have to install khelpcenter4 which pulls in
  kdelibs5-data anyway.
* Switch to dpkg-source format 3.0 (quilt):
  - drop simple-patchsys.mk from debian/rules;
  - add debian/patches/series file.
* Fix corruption of zip files caused by wrong encoding of umlauts in kzip
  (patch 67_kio_zip_file_encoding.diff). (Closes: #563942) Thanks to Bjoern
  Ricks for the patch.
* Support opening of KDE 4 khelpcenter in Help -> Handbook. (Closes: #525621)
  Thanks to Ben Burton for the patch.
* Do not recurse into .pc subdirectory with doxygen 
  (patch debian/patches/02_exclude_pc_from_dox.diff).
* Urgency=medium due to multiple RC bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
 
[m4_warning([this file was generated for autoconf 2.61.
 
16
m4_if(AC_AUTOCONF_VERSION, [2.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
 
22
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
23
 
24
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
25
#
 
26
# This program is free software; you can redistribute it and/or modify
 
27
# it under the terms of the GNU General Public License as published by
 
28
# the Free Software Foundation; either version 2 of the License, or
 
29
# (at your option) any later version.
 
30
#
 
31
# This program is distributed in the hope that it will be useful, but
 
32
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
33
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
34
# General Public License for more details.
 
35
#
 
36
# You should have received a copy of the GNU General Public License
 
37
# along with this program; if not, write to the Free Software
 
38
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
39
#
 
40
# As a special exception to the GNU General Public License, if you
 
41
# distribute this file as part of a program that contains a
 
42
# configuration script generated by Autoconf, you may include it under
 
43
# the same distribution terms that you use for the rest of that program.
 
44
 
 
45
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
46
# ----------------------------------
 
47
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
48
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
49
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
50
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
51
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
52
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
53
fi
 
54
if test -n "$PKG_CONFIG"; then
 
55
        _pkg_min_version=m4_default([$1], [0.9.0])
 
56
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
57
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
58
                AC_MSG_RESULT([yes])
 
59
        else
 
60
                AC_MSG_RESULT([no])
 
61
                PKG_CONFIG=""
 
62
        fi
 
63
                
 
64
fi[]dnl
 
65
])# PKG_PROG_PKG_CONFIG
 
66
 
 
67
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
68
#
 
69
# Check to see whether a particular set of modules exists.  Similar
 
70
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
71
#
 
72
#
 
73
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
74
# this or PKG_CHECK_MODULES is called, or make sure to call
 
75
# PKG_CHECK_EXISTS manually
 
76
# --------------------------------------------------------------
 
77
AC_DEFUN([PKG_CHECK_EXISTS],
 
78
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
79
if test -n "$PKG_CONFIG" && \
 
80
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
81
  m4_ifval([$2], [$2], [:])
 
82
m4_ifvaln([$3], [else
 
83
  $3])dnl
 
84
fi])
 
85
 
 
86
 
 
87
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
88
# ---------------------------------------------
 
89
m4_define([_PKG_CONFIG],
 
90
[if test -n "$PKG_CONFIG"; then
 
91
    if test -n "$$1"; then
 
92
        pkg_cv_[]$1="$$1"
 
93
    else
 
94
        PKG_CHECK_EXISTS([$3],
 
95
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
96
                         [pkg_failed=yes])
 
97
    fi
 
98
else
 
99
        pkg_failed=untried
 
100
fi[]dnl
 
101
])# _PKG_CONFIG
 
102
 
 
103
# _PKG_SHORT_ERRORS_SUPPORTED
 
104
# -----------------------------
 
105
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
106
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
107
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
108
        _pkg_short_errors_supported=yes
 
109
else
 
110
        _pkg_short_errors_supported=no
 
111
fi[]dnl
 
112
])# _PKG_SHORT_ERRORS_SUPPORTED
 
113
 
 
114
 
 
115
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
116
# [ACTION-IF-NOT-FOUND])
 
117
#
 
118
#
 
119
# Note that if there is a possibility the first call to
 
120
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
121
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
122
#
 
123
#
 
124
# --------------------------------------------------------------
 
125
AC_DEFUN([PKG_CHECK_MODULES],
 
126
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
127
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
128
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
129
 
 
130
pkg_failed=no
 
131
AC_MSG_CHECKING([for $1])
 
132
 
 
133
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
134
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
135
 
 
136
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
137
and $1[]_LIBS to avoid the need to call pkg-config.
 
138
See the pkg-config man page for more details.])
 
139
 
 
140
if test $pkg_failed = yes; then
 
141
        _PKG_SHORT_ERRORS_SUPPORTED
 
142
        if test $_pkg_short_errors_supported = yes; then
 
143
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
144
        else 
 
145
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
146
        fi
 
147
        # Put the nasty error message in config.log where it belongs
 
148
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
149
 
 
150
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
151
[Package requirements ($2) were not met:
 
152
 
 
153
$$1_PKG_ERRORS
 
154
 
 
155
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
156
installed software in a non-standard prefix.
 
157
 
 
158
_PKG_TEXT
 
159
])],
 
160
                [AC_MSG_RESULT([no])
 
161
                $4])
 
162
elif test $pkg_failed = untried; then
 
163
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
164
[The pkg-config script could not be found or is too old.  Make sure it
 
165
is in your PATH or set the PKG_CONFIG environment variable to the full
 
166
path to pkg-config.
 
167
 
 
168
_PKG_TEXT
 
169
 
 
170
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
 
171
                [$4])
 
172
else
 
173
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
174
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
175
        AC_MSG_RESULT([yes])
 
176
        ifelse([$3], , :, [$3])
 
177
fi[]dnl
 
178
])# PKG_CHECK_MODULES
 
179
 
22
180
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
23
181
#
24
182
# This file is free software; the Free Software Foundation
543
701
rmdir .tst 2>/dev/null
544
702
AC_SUBST([am__leading_dot])])
545
703
 
 
704
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
705
# From Jim Meyering
 
706
 
 
707
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
708
# Free Software Foundation, Inc.
 
709
#
 
710
# This file is free software; the Free Software Foundation
 
711
# gives unlimited permission to copy and/or distribute it,
 
712
# with or without modifications, as long as this notice is preserved.
 
713
 
 
714
# serial 4
 
715
 
 
716
AC_DEFUN([AM_MAINTAINER_MODE],
 
717
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
718
  dnl maintainer-mode is disabled by default
 
719
  AC_ARG_ENABLE(maintainer-mode,
 
720
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
721
                          (and sometimes confusing) to the casual installer],
 
722
      USE_MAINTAINER_MODE=$enableval,
 
723
      USE_MAINTAINER_MODE=no)
 
724
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
725
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
726
  MAINT=$MAINTAINER_MODE_TRUE
 
727
  AC_SUBST(MAINT)dnl
 
728
]
 
729
)
 
730
 
 
731
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
732
 
546
733
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
547
734
 
548
735
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.