Merge lp:~victored/indicator-sound/lp-1014955 into lp:indicator-sound/12.10

Proposed by Conor Curran
Status: Merged
Merge reported by: Conor Curran
Merged at revision: not available
Proposed branch: lp:~victored/indicator-sound/lp-1014955
Merge into: lp:indicator-sound/12.10
Diff against target: 66791 lines (+64977/-1041) (has conflicts)
72 files modified
.bzrignore (+0/-90)
INSTALL (+370/-0)
Makefile.am.coverage (+48/-0)
Makefile.in (+853/-0)
aclocal.m4 (+10680/-0)
compile (+310/-0)
config.guess (+1530/-0)
config.h.in (+89/-0)
config.sub (+1773/-0)
configure (+17597/-0)
data/Makefile.in (+689/-0)
data/com.canonical.indicator.sound.gschema.xml (+7/-0)
data/icons/16x16/Makefile.in (+620/-0)
data/icons/16x16/status/Makefile.in (+474/-0)
data/icons/Makefile.in (+635/-0)
data/icons/scalable/Makefile.in (+620/-0)
data/icons/scalable/status/Makefile.in (+474/-0)
debian/changelog (+838/-0)
debian/compat (+1/-0)
debian/control (+48/-0)
debian/copyright (+37/-0)
debian/indicator-sound-gtk2.install (+1/-0)
debian/indicator-sound.install (+1/-0)
debian/patches/lp_902715.patch (+50/-0)
debian/patches/lp_992262.patch (+365/-0)
debian/patches/series (+5/-0)
debian/patches/sound_nua.patch (+20/-0)
debian/patches/sound_ubuntustudio.patch (+18/-0)
debian/patches/sound_xubuntu.patch (+17/-0)
debian/rules (+25/-0)
debian/source/format (+1/-0)
debian/watch (+2/-0)
depcomp (+688/-0)
install-sh (+527/-0)
ltmain.sh (+9661/-0)
missing (+331/-0)
mkinstalldirs (+162/-0)
po/Makefile.in.in (+222/-0)
src/Makefile.in (+1314/-0)
src/fetch-file.c (+561/-0)
src/fetch-file.vala (+0/-86)
src/freedesktop-interfaces.c (+862/-0)
src/gen-sound-service.xml.c (+36/-0)
src/gen-sound-service.xml.h (+1/-0)
src/metadata-menu-item.c (+863/-0)
src/mpris2-controller.c (+1769/-0)
src/mpris2-interfaces.c (+2655/-0)
src/mpris2-watcher.c (+838/-0)
src/music-player-bridge.c (+1420/-0)
src/music-player-bridge.h (+605/-0)
src/music-player-bridge.vala (+84/-2)
src/player-controller.c (+1082/-0)
src/player-controller.vala (+21/-4)
src/player-item.c (+598/-0)
src/player-item.vala (+0/-104)
src/playlists-menu-item.c (+873/-0)
src/scrub-menu-item.vala (+0/-56)
src/settings-manager.c (+491/-0)
src/settings-manager.vala (+24/-2)
src/sound-service-marshal.c (+89/-0)
src/sound-service-marshal.h (+20/-0)
src/specific-items-manager.c (+598/-0)
src/transport-menu-item.c (+384/-0)
tests/Makefile.am (+0/-151)
tests/mockpulse.c (+0/-105)
tests/mockpulse.h (+0/-26)
tests/run-xvfb.sh (+0/-8)
tests/test-defines.h (+0/-25)
tests/test-indicator-sound-dbus-client.c (+0/-110)
tests/test-indicator-sound-dbus-server.c (+0/-63)
tests/test-pulse-manager.c (+0/-139)
vapi/common-defs.vapi (+0/-70)
Conflict adding file Makefile.am.coverage.  Moved existing file to Makefile.am.coverage.moved.
Text conflict in src/music-player-bridge.vala
Text conflict in src/player-controller.vala
Conflict: can't delete tests because it is not empty.  Not deleting.
Conflict because tests is not versioned, but has versioned children.  Versioned directory.
Contents conflict in tests/test-indicator-sound.c
To merge this branch: bzr merge lp:~victored/indicator-sound/lp-1014955
Reviewer Review Type Date Requested Status
Conor Curran (community) Approve
Review via email: mp+111439@code.launchpad.net

Description of the change

Allows easy access to change the preferred media player through gsettings. Very useful for the user who cares about their music player.

To post a comment you must log in.
Revision history for this message
Conor Curran (cjcurran) wrote :

Lovely work, Thanks a million !

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== removed file '.bzrignore'
--- .bzrignore 2011-10-26 16:30:16 +0000
+++ .bzrignore 1970-01-01 00:00:00 +0000
@@ -1,90 +0,0 @@
1*.o
2*~
3compile
4m4
5depcomp
6Makefile.in
7Makefile
8configure
9aclocal.m4
10autom4te.cache
11config.guess
12config.h
13config.h.in
14config.log
15config.status
16config.ac
17configure
18config.sub.cdbs-orig
19install-sh
20INSTALL
21libtool
22ltmain.sh
23missing
24mkinstalldirs
25ruby_dbus_scripts
26stamp-h1
27data/indicator-sound.schemas
28data/Makefile.in
29data/Makefile
30data/indicator-sound.service
31.deps
32.libs
33po/stamp-it
34po/POTFILES
35po/.intltool-merge-cache
36po/Makefile.in.in
37config.h
38config.log
39config.sub
40src/Makefile
41src/Makefile.in
42src/libsoundmenu.la
43src/indicator-sound-service
44src/sound-service-client.h
45src/sound-service-server.h
46src/sound-service-marshal.c
47src/sound-service-marshal.h
48src/sound_service_outtakes.txt
49src/libsoundmenu_la-indicator-sound.lo
50src/libsoundmenu_la-sound-service-marshal.lo
51ruby_dbus_scripts/dbus_monitor.rb
52
53.anjuta
54.anjuta_sym_db.db
55TODO.tasks
56make_output.txt
57swap-over.anjuta
58src/fetch-file.c
59src/freedesktop-interfaces.c
60src/gen-sound-service.xml.c
61src/gen-sound-service.xml.h
62src/libsoundmenu_la-metadata-widget.lo
63src/libsoundmenu_la-title-widget.lo
64src/libsoundmenu_la-transport-widget.lo
65src/libsoundmenu_la-volume-widget.lo
66src/metadata-menu-item.c
67src/mpris2-controller.c
68src/mpris2-interfaces.c
69src/mpris2-watcher.c
70src/music-player-bridge.c
71src/music-player-bridge.h
72src/music_bridge_vala.stamp
73src/player-controller.c
74src/player-item.c
75src/playlists-menu-item.c
76src/settings-manager.c
77src/title-menu-item.c
78src/transport-menu-item.c
79modified:
80src/indicator-sound.c
81data/com.canonical.indicators.sound.gschema.valid
82tests/libmockpulse.la
83tests/libmockpulse_la-mockpulse.lo
84src/libsoundmenu_la-gen-sound-service.xml.lo
85src/libsoundmenu_la-mute-widget.lo
86src/libsoundmenu_la-sound-state-manager.lo
87src/libsoundmenu_la-sound-state.lo
88src/libsoundmenu_la-voip-input-widget.lo
89src/specific-items-manager.c
90src/stamp-marshal
910
=== added file 'INSTALL'
--- INSTALL 1970-01-01 00:00:00 +0000
+++ INSTALL 2012-06-21 16:16:33 +0000
@@ -0,0 +1,370 @@
1Installation Instructions
2*************************
3
4Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
5Inc.
6
7 Copying and distribution of this file, with or without modification,
8are permitted in any medium without royalty provided the copyright
9notice and this notice are preserved. This file is offered as-is,
10without warranty of any kind.
11
12Basic Installation
13==================
14
15 Briefly, the shell commands `./configure; make; make install' should
16configure, build, and install this package. The following
17more-detailed instructions are generic; see the `README' file for
18instructions specific to this package. Some packages provide this
19`INSTALL' file but do not implement all of the features documented
20below. The lack of an optional feature in a given package is not
21necessarily a bug. More recommendations for GNU packages can be found
22in *note Makefile Conventions: (standards)Makefile Conventions.
23
24 The `configure' shell script attempts to guess correct values for
25various system-dependent variables used during compilation. It uses
26those values to create a `Makefile' in each directory of the package.
27It may also create one or more `.h' files containing system-dependent
28definitions. Finally, it creates a shell script `config.status' that
29you can run in the future to recreate the current configuration, and a
30file `config.log' containing compiler output (useful mainly for
31debugging `configure').
32
33 It can also use an optional file (typically called `config.cache'
34and enabled with `--cache-file=config.cache' or simply `-C') that saves
35the results of its tests to speed up reconfiguring. Caching is
36disabled by default to prevent problems with accidental use of stale
37cache files.
38
39 If you need to do unusual things to compile the package, please try
40to figure out how `configure' could check whether to do them, and mail
41diffs or instructions to the address given in the `README' so they can
42be considered for the next release. If you are using the cache, and at
43some point `config.cache' contains results you don't want to keep, you
44may remove or edit it.
45
46 The file `configure.ac' (or `configure.in') is used to create
47`configure' by a program called `autoconf'. You need `configure.ac' if
48you want to change it or regenerate `configure' using a newer version
49of `autoconf'.
50
51 The simplest way to compile this package is:
52
53 1. `cd' to the directory containing the package's source code and type
54 `./configure' to configure the package for your system.
55
56 Running `configure' might take a while. While running, it prints
57 some messages telling which features it is checking for.
58
59 2. Type `make' to compile the package.
60
61 3. Optionally, type `make check' to run any self-tests that come with
62 the package, generally using the just-built uninstalled binaries.
63
64 4. Type `make install' to install the programs and any data files and
65 documentation. When installing into a prefix owned by root, it is
66 recommended that the package be configured and built as a regular
67 user, and only the `make install' phase executed with root
68 privileges.
69
70 5. Optionally, type `make installcheck' to repeat any self-tests, but
71 this time using the binaries in their final installed location.
72 This target does not install anything. Running this target as a
73 regular user, particularly if the prior `make install' required
74 root privileges, verifies that the installation completed
75 correctly.
76
77 6. You can remove the program binaries and object files from the
78 source code directory by typing `make clean'. To also remove the
79 files that `configure' created (so you can compile the package for
80 a different kind of computer), type `make distclean'. There is
81 also a `make maintainer-clean' target, but that is intended mainly
82 for the package's developers. If you use it, you may have to get
83 all sorts of other programs in order to regenerate files that came
84 with the distribution.
85
86 7. Often, you can also type `make uninstall' to remove the installed
87 files again. In practice, not all packages have tested that
88 uninstallation works correctly, even though it is required by the
89 GNU Coding Standards.
90
91 8. Some packages, particularly those that use Automake, provide `make
92 distcheck', which can by used by developers to test that all other
93 targets like `make install' and `make uninstall' work correctly.
94 This target is generally not run by end users.
95
96Compilers and Options
97=====================
98
99 Some systems require unusual options for compilation or linking that
100the `configure' script does not know about. Run `./configure --help'
101for details on some of the pertinent environment variables.
102
103 You can give `configure' initial values for configuration parameters
104by setting variables in the command line or in the environment. Here
105is an example:
106
107 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
108
109 *Note Defining Variables::, for more details.
110
111Compiling For Multiple Architectures
112====================================
113
114 You can compile the package for more than one kind of computer at the
115same time, by placing the object files for each architecture in their
116own directory. To do this, you can use GNU `make'. `cd' to the
117directory where you want the object files and executables to go and run
118the `configure' script. `configure' automatically checks for the
119source code in the directory that `configure' is in and in `..'. This
120is known as a "VPATH" build.
121
122 With a non-GNU `make', it is safer to compile the package for one
123architecture at a time in the source code directory. After you have
124installed the package for one architecture, use `make distclean' before
125reconfiguring for another architecture.
126
127 On MacOS X 10.5 and later systems, you can create libraries and
128executables that work on multiple system types--known as "fat" or
129"universal" binaries--by specifying multiple `-arch' options to the
130compiler but only a single `-arch' option to the preprocessor. Like
131this:
132
133 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
134 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
135 CPP="gcc -E" CXXCPP="g++ -E"
136
137 This is not guaranteed to produce working output in all cases, you
138may have to build one architecture at a time and combine the results
139using the `lipo' tool if you have problems.
140
141Installation Names
142==================
143
144 By default, `make install' installs the package's commands under
145`/usr/local/bin', include files under `/usr/local/include', etc. You
146can specify an installation prefix other than `/usr/local' by giving
147`configure' the option `--prefix=PREFIX', where PREFIX must be an
148absolute file name.
149
150 You can specify separate installation prefixes for
151architecture-specific files and architecture-independent files. If you
152pass the option `--exec-prefix=PREFIX' to `configure', the package uses
153PREFIX as the prefix for installing programs and libraries.
154Documentation and other data files still use the regular prefix.
155
156 In addition, if you use an unusual directory layout you can give
157options like `--bindir=DIR' to specify different values for particular
158kinds of files. Run `configure --help' for a list of the directories
159you can set and what kinds of files go in them. In general, the
160default for these options is expressed in terms of `${prefix}', so that
161specifying just `--prefix' will affect all of the other directory
162specifications that were not explicitly provided.
163
164 The most portable way to affect installation locations is to pass the
165correct locations to `configure'; however, many packages provide one or
166both of the following shortcuts of passing variable assignments to the
167`make install' command line to change installation locations without
168having to reconfigure or recompile.
169
170 The first method involves providing an override variable for each
171affected directory. For example, `make install
172prefix=/alternate/directory' will choose an alternate location for all
173directory configuration variables that were expressed in terms of
174`${prefix}'. Any directories that were specified during `configure',
175but not in terms of `${prefix}', must each be overridden at install
176time for the entire installation to be relocated. The approach of
177makefile variable overrides for each directory variable is required by
178the GNU Coding Standards, and ideally causes no recompilation.
179However, some platforms have known limitations with the semantics of
180shared libraries that end up requiring recompilation when using this
181method, particularly noticeable in packages that use GNU Libtool.
182
183 The second method involves providing the `DESTDIR' variable. For
184example, `make install DESTDIR=/alternate/directory' will prepend
185`/alternate/directory' before all installation names. The approach of
186`DESTDIR' overrides is not required by the GNU Coding Standards, and
187does not work on platforms that have drive letters. On the other hand,
188it does better at avoiding recompilation issues, and works well even
189when some directory options were not specified in terms of `${prefix}'
190at `configure' time.
191
192Optional Features
193=================
194
195 If the package supports it, you can cause programs to be installed
196with an extra prefix or suffix on their names by giving `configure' the
197option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
198
199 Some packages pay attention to `--enable-FEATURE' options to
200`configure', where FEATURE indicates an optional part of the package.
201They may also pay attention to `--with-PACKAGE' options, where PACKAGE
202is something like `gnu-as' or `x' (for the X Window System). The
203`README' should mention any `--enable-' and `--with-' options that the
204package recognizes.
205
206 For packages that use the X Window System, `configure' can usually
207find the X include and library files automatically, but if it doesn't,
208you can use the `configure' options `--x-includes=DIR' and
209`--x-libraries=DIR' to specify their locations.
210
211 Some packages offer the ability to configure how verbose the
212execution of `make' will be. For these packages, running `./configure
213--enable-silent-rules' sets the default to minimal output, which can be
214overridden with `make V=1'; while running `./configure
215--disable-silent-rules' sets the default to verbose, which can be
216overridden with `make V=0'.
217
218Particular systems
219==================
220
221 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
222CC is not installed, it is recommended to use the following options in
223order to use an ANSI C compiler:
224
225 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
226
227and if that doesn't work, install pre-built binaries of GCC for HP-UX.
228
229 HP-UX `make' updates targets which have the same time stamps as
230their prerequisites, which makes it generally unusable when shipped
231generated files such as `configure' are involved. Use GNU `make'
232instead.
233
234 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
235parse its `<wchar.h>' header file. The option `-nodtk' can be used as
236a workaround. If GNU CC is not installed, it is therefore recommended
237to try
238
239 ./configure CC="cc"
240
241and if that doesn't work, try
242
243 ./configure CC="cc -nodtk"
244
245 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
246directory contains several dysfunctional programs; working variants of
247these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
248in your `PATH', put it _after_ `/usr/bin'.
249
250 On Haiku, software installed for all users goes in `/boot/common',
251not `/usr/local'. It is recommended to use the following options:
252
253 ./configure --prefix=/boot/common
254
255Specifying the System Type
256==========================
257
258 There may be some features `configure' cannot figure out
259automatically, but needs to determine by the type of machine the package
260will run on. Usually, assuming the package is built to be run on the
261_same_ architectures, `configure' can figure that out, but if it prints
262a message saying it cannot guess the machine type, give it the
263`--build=TYPE' option. TYPE can either be a short name for the system
264type, such as `sun4', or a canonical name which has the form:
265
266 CPU-COMPANY-SYSTEM
267
268where SYSTEM can have one of these forms:
269
270 OS
271 KERNEL-OS
272
273 See the file `config.sub' for the possible values of each field. If
274`config.sub' isn't included in this package, then this package doesn't
275need to know the machine type.
276
277 If you are _building_ compiler tools for cross-compiling, you should
278use the option `--target=TYPE' to select the type of system they will
279produce code for.
280
281 If you want to _use_ a cross compiler, that generates code for a
282platform different from the build platform, you should specify the
283"host" platform (i.e., that on which the generated programs will
284eventually be run) with `--host=TYPE'.
285
286Sharing Defaults
287================
288
289 If you want to set default values for `configure' scripts to share,
290you can create a site shell script called `config.site' that gives
291default values for variables like `CC', `cache_file', and `prefix'.
292`configure' looks for `PREFIX/share/config.site' if it exists, then
293`PREFIX/etc/config.site' if it exists. Or, you can set the
294`CONFIG_SITE' environment variable to the location of the site script.
295A warning: not all `configure' scripts look for a site script.
296
297Defining Variables
298==================
299
300 Variables not defined in a site shell script can be set in the
301environment passed to `configure'. However, some packages may run
302configure again during the build, and the customized values of these
303variables may be lost. In order to avoid this problem, you should set
304them in the `configure' command line, using `VAR=value'. For example:
305
306 ./configure CC=/usr/local2/bin/gcc
307
308causes the specified `gcc' to be used as the C compiler (unless it is
309overridden in the site shell script).
310
311Unfortunately, this technique does not work for `CONFIG_SHELL' due to
312an Autoconf bug. Until the bug is fixed you can use this workaround:
313
314 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
315
316`configure' Invocation
317======================
318
319 `configure' recognizes the following options to control how it
320operates.
321
322`--help'
323`-h'
324 Print a summary of all of the options to `configure', and exit.
325
326`--help=short'
327`--help=recursive'
328 Print a summary of the options unique to this package's
329 `configure', and exit. The `short' variant lists options used
330 only in the top level, while the `recursive' variant lists options
331 also present in any nested packages.
332
333`--version'
334`-V'
335 Print the version of Autoconf used to generate the `configure'
336 script, and exit.
337
338`--cache-file=FILE'
339 Enable the cache: use and save the results of the tests in FILE,
340 traditionally `config.cache'. FILE defaults to `/dev/null' to
341 disable caching.
342
343`--config-cache'
344`-C'
345 Alias for `--cache-file=config.cache'.
346
347`--quiet'
348`--silent'
349`-q'
350 Do not print messages saying which checks are being made. To
351 suppress all normal output, redirect it to `/dev/null' (any error
352 messages will still be shown).
353
354`--srcdir=DIR'
355 Look for the package's source code in directory DIR. Usually
356 `configure' can determine that directory automatically.
357
358`--prefix=DIR'
359 Use DIR as the installation prefix. *note Installation Names::
360 for more details, including other options available for fine-tuning
361 the installation locations.
362
363`--no-create'
364`-n'
365 Run the configure checks, but stop before creating any output
366 files.
367
368`configure' also accepts some other, not widely useful, options. Run
369`configure --help' for more details.
370
0371
=== added file 'Makefile.am.coverage'
--- Makefile.am.coverage 1970-01-01 00:00:00 +0000
+++ Makefile.am.coverage 2012-06-21 16:16:33 +0000
@@ -0,0 +1,48 @@
1
2# Coverage targets
3
4.PHONY: clean-gcno clean-gcda \
5 coverage-html generate-coverage-html clean-coverage-html \
6 coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr
7
8clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr
9
10if HAVE_GCOV
11
12clean-gcno:
13 @echo Removing old coverage instrumentation
14 -find -name '*.gcno' -print | xargs -r rm
15
16clean-gcda:
17 @echo Removing old coverage results
18 -find -name '*.gcda' -print | xargs -r rm
19
20coverage-html: clean-gcda
21 -$(MAKE) $(AM_MAKEFLAGS) -k check
22 $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
23
24generate-coverage-html:
25 @echo Collecting coverage data
26 $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
27 LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
28
29clean-coverage-html: clean-gcda
30 -$(LCOV) --directory $(top_builddir) -z
31 -rm -rf coverage.info coveragereport
32
33if HAVE_GCOVR
34
35coverage-gcovr: clean-gcda
36 -$(MAKE) $(AM_MAKEFLAGS) -k check
37 $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr
38
39generate-coverage-gcovr:
40 @echo Generating coverage GCOVR report
41 $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
42
43clean-coverage-gcovr: clean-gcda
44 -rm -rf $(top_builddir)/coverage.xml
45
46endif # HAVE_GCOVR
47
48endif # HAVE_GCOV
049
=== renamed file 'Makefile.am.coverage' => 'Makefile.am.coverage.moved'
=== added file 'Makefile.in'
--- Makefile.in 1970-01-01 00:00:00 +0000
+++ Makefile.in 2012-06-21 16:16:33 +0000
@@ -0,0 +1,853 @@
1# Makefile.in generated by automake 1.11.3 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6# Foundation, Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17
18# Coverage targets
19VPATH = @srcdir@
20pkgdatadir = $(datadir)/@PACKAGE@
21pkgincludedir = $(includedir)/@PACKAGE@
22pkglibdir = $(libdir)/@PACKAGE@
23pkglibexecdir = $(libexecdir)/@PACKAGE@
24am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25install_sh_DATA = $(install_sh) -c -m 644
26install_sh_PROGRAM = $(install_sh) -c
27install_sh_SCRIPT = $(install_sh) -c
28INSTALL_HEADER = $(INSTALL_DATA)
29transform = $(program_transform_name)
30NORMAL_INSTALL = :
31PRE_INSTALL = :
32POST_INSTALL = :
33NORMAL_UNINSTALL = :
34PRE_UNINSTALL = :
35POST_UNINSTALL = :
36build_triplet = @build@
37host_triplet = @host@
38DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
39 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
40 $(top_srcdir)/Makefile.am.coverage $(top_srcdir)/configure \
41 AUTHORS COPYING ChangeLog INSTALL NEWS compile config.guess \
42 config.sub depcomp install-sh ltmain.sh missing mkinstalldirs
43subdir = .
44ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
45am__aclocal_m4_deps = $(top_srcdir)/m4/gcov.m4 \
46 $(top_srcdir)/configure.ac
47am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
48 $(ACLOCAL_M4)
49am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
50 configure.lineno config.status.lineno
51mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
52CONFIG_HEADER = config.h
53CONFIG_CLEAN_FILES =
54CONFIG_CLEAN_VPATH_FILES =
55AM_V_GEN = $(am__v_GEN_@AM_V@)
56am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
57am__v_GEN_0 = @echo " GEN " $@;
58AM_V_at = $(am__v_at_@AM_V@)
59am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
60am__v_at_0 = @
61SOURCES =
62DIST_SOURCES =
63RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
64 html-recursive info-recursive install-data-recursive \
65 install-dvi-recursive install-exec-recursive \
66 install-html-recursive install-info-recursive \
67 install-pdf-recursive install-ps-recursive install-recursive \
68 installcheck-recursive installdirs-recursive pdf-recursive \
69 ps-recursive uninstall-recursive
70RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
71 distclean-recursive maintainer-clean-recursive
72AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
73 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
74 distdir dist dist-all distcheck
75ETAGS = etags
76CTAGS = ctags
77DIST_SUBDIRS = $(SUBDIRS)
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79distdir = $(PACKAGE)-$(VERSION)
80top_distdir = $(distdir)
81am__remove_distdir = \
82 if test -d "$(distdir)"; then \
83 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
84 && rm -rf "$(distdir)" \
85 || { sleep 5 && rm -rf "$(distdir)"; }; \
86 else :; fi
87am__relativize = \
88 dir0=`pwd`; \
89 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
90 sed_rest='s,^[^/]*/*,,'; \
91 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
92 sed_butlast='s,/*[^/]*$$,,'; \
93 while test -n "$$dir1"; do \
94 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
95 if test "$$first" != "."; then \
96 if test "$$first" = ".."; then \
97 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
98 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
99 else \
100 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
101 if test "$$first2" = "$$first"; then \
102 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
103 else \
104 dir2="../$$dir2"; \
105 fi; \
106 dir0="$$dir0"/"$$first"; \
107 fi; \
108 fi; \
109 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
110 done; \
111 reldir="$$dir2"
112DIST_ARCHIVES = $(distdir).tar.gz
113GZIP_ENV = --best
114distuninstallcheck_listfiles = find . -type f -print
115am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
116 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
117distcleancheck_listfiles = find . -type f -print
118ACLOCAL = @ACLOCAL@
119ALL_LINGUAS = @ALL_LINGUAS@
120AMTAR = @AMTAR@
121AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
122APPLET_CFLAGS = @APPLET_CFLAGS@
123APPLET_LIBS = @APPLET_LIBS@
124AR = @AR@
125AUTOCONF = @AUTOCONF@
126AUTOHEADER = @AUTOHEADER@
127AUTOMAKE = @AUTOMAKE@
128AWK = @AWK@
129CATALOGS = @CATALOGS@
130CATOBJEXT = @CATOBJEXT@
131CC = @CC@
132CCDEPMODE = @CCDEPMODE@
133CFLAGS = @CFLAGS@
134COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
135COVERAGE_CXXFLAGS = @COVERAGE_CXXFLAGS@
136COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
137CPP = @CPP@
138CPPFLAGS = @CPPFLAGS@
139CYGPATH_W = @CYGPATH_W@
140DATADIRNAME = @DATADIRNAME@
141DBUSSERVICEDIR = @DBUSSERVICEDIR@
142DEFS = @DEFS@
143DEPDIR = @DEPDIR@
144DLLTOOL = @DLLTOOL@
145DSYMUTIL = @DSYMUTIL@
146DUMPBIN = @DUMPBIN@
147ECHO_C = @ECHO_C@
148ECHO_N = @ECHO_N@
149ECHO_T = @ECHO_T@
150EGREP = @EGREP@
151EXEEXT = @EXEEXT@
152FGREP = @FGREP@
153GCOVR = @GCOVR@
154GENHTML = @GENHTML@
155GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
156GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@
157GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
158GMOFILES = @GMOFILES@
159GMSGFMT = @GMSGFMT@
160GNOMELOCALEDIR = @GNOMELOCALEDIR@
161GREP = @GREP@
162GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@
163INDICATORDIR = @INDICATORDIR@
164INDICATORICONSDIR = @INDICATORICONSDIR@
165INSTALL = @INSTALL@
166INSTALL_DATA = @INSTALL_DATA@
167INSTALL_PROGRAM = @INSTALL_PROGRAM@
168INSTALL_SCRIPT = @INSTALL_SCRIPT@
169INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
170INSTOBJEXT = @INSTOBJEXT@
171INTLLIBS = @INTLLIBS@
172INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
173INTLTOOL_MERGE = @INTLTOOL_MERGE@
174INTLTOOL_PERL = @INTLTOOL_PERL@
175INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
176INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
177INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
178INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
179INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
180LCOV = @LCOV@
181LD = @LD@
182LDFLAGS = @LDFLAGS@
183LIBOBJS = @LIBOBJS@
184LIBS = @LIBS@
185LIBTOOL = @LIBTOOL@
186LIPO = @LIPO@
187LN_S = @LN_S@
188LTLIBOBJS = @LTLIBOBJS@
189MAINT = @MAINT@
190MAKEINFO = @MAKEINFO@
191MANIFEST_TOOL = @MANIFEST_TOOL@
192MKDIR_P = @MKDIR_P@
193MKINSTALLDIRS = @MKINSTALLDIRS@
194MSGFMT = @MSGFMT@
195MSGFMT_OPTS = @MSGFMT_OPTS@
196MSGMERGE = @MSGMERGE@
197NM = @NM@
198NMEDIT = @NMEDIT@
199OBJDUMP = @OBJDUMP@
200OBJEXT = @OBJEXT@
201OTOOL = @OTOOL@
202OTOOL64 = @OTOOL64@
203PACKAGE = @PACKAGE@
204PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
205PACKAGE_NAME = @PACKAGE_NAME@
206PACKAGE_STRING = @PACKAGE_STRING@
207PACKAGE_TARNAME = @PACKAGE_TARNAME@
208PACKAGE_URL = @PACKAGE_URL@
209PACKAGE_VERSION = @PACKAGE_VERSION@
210PATH_SEPARATOR = @PATH_SEPARATOR@
211PKG_CONFIG = @PKG_CONFIG@
212PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
213PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
214POFILES = @POFILES@
215POSUB = @POSUB@
216PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
217PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
218PULSEAUDIO_CFLAGS = @PULSEAUDIO_CFLAGS@
219PULSEAUDIO_LIBS = @PULSEAUDIO_LIBS@
220RANLIB = @RANLIB@
221SED = @SED@
222SET_MAKE = @SET_MAKE@
223SHELL = @SHELL@
224SHTOOL = @SHTOOL@
225SOUNDSERVICE_CFLAGS = @SOUNDSERVICE_CFLAGS@
226SOUNDSERVICE_LIBS = @SOUNDSERVICE_LIBS@
227STRIP = @STRIP@
228USE_NLS = @USE_NLS@
229VALAC = @VALAC@
230VERSION = @VERSION@
231XGETTEXT = @XGETTEXT@
232abs_builddir = @abs_builddir@
233abs_srcdir = @abs_srcdir@
234abs_top_builddir = @abs_top_builddir@
235abs_top_srcdir = @abs_top_srcdir@
236ac_ct_AR = @ac_ct_AR@
237ac_ct_CC = @ac_ct_CC@
238ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
239am__include = @am__include@
240am__leading_dot = @am__leading_dot@
241am__quote = @am__quote@
242am__tar = @am__tar@
243am__untar = @am__untar@
244bindir = @bindir@
245build = @build@
246build_alias = @build_alias@
247build_cpu = @build_cpu@
248build_os = @build_os@
249build_vendor = @build_vendor@
250builddir = @builddir@
251datadir = @datadir@
252datarootdir = @datarootdir@
253docdir = @docdir@
254dvidir = @dvidir@
255exec_prefix = @exec_prefix@
256gsettingsschemadir = @gsettingsschemadir@
257host = @host@
258host_alias = @host_alias@
259host_cpu = @host_cpu@
260host_os = @host_os@
261host_vendor = @host_vendor@
262htmldir = @htmldir@
263includedir = @includedir@
264infodir = @infodir@
265install_sh = @install_sh@
266intltool__v_merge_options_ = @intltool__v_merge_options_@
267intltool__v_merge_options_0 = @intltool__v_merge_options_0@
268libdir = @libdir@
269libexecdir = @libexecdir@
270localedir = @localedir@
271localstatedir = @localstatedir@
272mandir = @mandir@
273mkdir_p = @mkdir_p@
274oldincludedir = @oldincludedir@
275pdfdir = @pdfdir@
276prefix = @prefix@
277program_transform_name = @program_transform_name@
278psdir = @psdir@
279sbindir = @sbindir@
280sharedstatedir = @sharedstatedir@
281srcdir = @srcdir@
282sysconfdir = @sysconfdir@
283target_alias = @target_alias@
284top_build_prefix = @top_build_prefix@
285top_builddir = @top_builddir@
286top_srcdir = @top_srcdir@
287SUBDIRS = \
288 src \
289 data \
290 po
291
292EXTRA_DIST = \
293 autogen.sh \
294 vapi/common-defs.vapi \
295 vapi/config.vapi
296
297DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall
298all: config.h
299 $(MAKE) $(AM_MAKEFLAGS) all-recursive
300
301.SUFFIXES:
302am--refresh: Makefile
303 @:
304$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.coverage $(am__configure_deps)
305 @for dep in $?; do \
306 case '$(am__configure_deps)' in \
307 *$$dep*) \
308 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
309 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
310 && exit 0; \
311 exit 1;; \
312 esac; \
313 done; \
314 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
315 $(am__cd) $(top_srcdir) && \
316 $(AUTOMAKE) --gnu Makefile
317.PRECIOUS: Makefile
318Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
319 @case '$?' in \
320 *config.status*) \
321 echo ' $(SHELL) ./config.status'; \
322 $(SHELL) ./config.status;; \
323 *) \
324 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
325 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
326 esac;
327$(top_srcdir)/Makefile.am.coverage:
328
329$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
330 $(SHELL) ./config.status --recheck
331
332$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
333 $(am__cd) $(srcdir) && $(AUTOCONF)
334$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
335 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
336$(am__aclocal_m4_deps):
337
338config.h: stamp-h1
339 @if test ! -f $@; then rm -f stamp-h1; else :; fi
340 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
341
342stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
343 @rm -f stamp-h1
344 cd $(top_builddir) && $(SHELL) ./config.status config.h
345$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
346 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
347 rm -f stamp-h1
348 touch $@
349
350distclean-hdr:
351 -rm -f config.h stamp-h1
352
353mostlyclean-libtool:
354 -rm -f *.lo
355
356clean-libtool:
357 -rm -rf .libs _libs
358
359distclean-libtool:
360 -rm -f libtool config.lt
361
362# This directory's subdirectories are mostly independent; you can cd
363# into them and run `make' without going through this Makefile.
364# To change the values of `make' variables: instead of editing Makefiles,
365# (1) if the variable is set in `config.status', edit `config.status'
366# (which will cause the Makefiles to be regenerated when you run `make');
367# (2) otherwise, pass the desired values on the `make' command line.
368$(RECURSIVE_TARGETS):
369 @fail= failcom='exit 1'; \
370 for f in x $$MAKEFLAGS; do \
371 case $$f in \
372 *=* | --[!k]*);; \
373 *k*) failcom='fail=yes';; \
374 esac; \
375 done; \
376 dot_seen=no; \
377 target=`echo $@ | sed s/-recursive//`; \
378 list='$(SUBDIRS)'; for subdir in $$list; do \
379 echo "Making $$target in $$subdir"; \
380 if test "$$subdir" = "."; then \
381 dot_seen=yes; \
382 local_target="$$target-am"; \
383 else \
384 local_target="$$target"; \
385 fi; \
386 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
387 || eval $$failcom; \
388 done; \
389 if test "$$dot_seen" = "no"; then \
390 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
391 fi; test -z "$$fail"
392
393$(RECURSIVE_CLEAN_TARGETS):
394 @fail= failcom='exit 1'; \
395 for f in x $$MAKEFLAGS; do \
396 case $$f in \
397 *=* | --[!k]*);; \
398 *k*) failcom='fail=yes';; \
399 esac; \
400 done; \
401 dot_seen=no; \
402 case "$@" in \
403 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
404 *) list='$(SUBDIRS)' ;; \
405 esac; \
406 rev=''; for subdir in $$list; do \
407 if test "$$subdir" = "."; then :; else \
408 rev="$$subdir $$rev"; \
409 fi; \
410 done; \
411 rev="$$rev ."; \
412 target=`echo $@ | sed s/-recursive//`; \
413 for subdir in $$rev; do \
414 echo "Making $$target in $$subdir"; \
415 if test "$$subdir" = "."; then \
416 local_target="$$target-am"; \
417 else \
418 local_target="$$target"; \
419 fi; \
420 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
421 || eval $$failcom; \
422 done && test -z "$$fail"
423tags-recursive:
424 list='$(SUBDIRS)'; for subdir in $$list; do \
425 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
426 done
427ctags-recursive:
428 list='$(SUBDIRS)'; for subdir in $$list; do \
429 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
430 done
431
432ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
433 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
434 unique=`for i in $$list; do \
435 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
436 done | \
437 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
438 END { if (nonempty) { for (i in files) print i; }; }'`; \
439 mkid -fID $$unique
440tags: TAGS
441
442TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
443 $(TAGS_FILES) $(LISP)
444 set x; \
445 here=`pwd`; \
446 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
447 include_option=--etags-include; \
448 empty_fix=.; \
449 else \
450 include_option=--include; \
451 empty_fix=; \
452 fi; \
453 list='$(SUBDIRS)'; for subdir in $$list; do \
454 if test "$$subdir" = .; then :; else \
455 test ! -f $$subdir/TAGS || \
456 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
457 fi; \
458 done; \
459 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
460 unique=`for i in $$list; do \
461 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
462 done | \
463 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
464 END { if (nonempty) { for (i in files) print i; }; }'`; \
465 shift; \
466 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
467 test -n "$$unique" || unique=$$empty_fix; \
468 if test $$# -gt 0; then \
469 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
470 "$$@" $$unique; \
471 else \
472 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
473 $$unique; \
474 fi; \
475 fi
476ctags: CTAGS
477CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
478 $(TAGS_FILES) $(LISP)
479 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
480 unique=`for i in $$list; do \
481 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
482 done | \
483 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
484 END { if (nonempty) { for (i in files) print i; }; }'`; \
485 test -z "$(CTAGS_ARGS)$$unique" \
486 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
487 $$unique
488
489GTAGS:
490 here=`$(am__cd) $(top_builddir) && pwd` \
491 && $(am__cd) $(top_srcdir) \
492 && gtags -i $(GTAGS_ARGS) "$$here"
493
494distclean-tags:
495 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
496
497distdir: $(DISTFILES)
498 $(am__remove_distdir)
499 test -d "$(distdir)" || mkdir "$(distdir)"
500 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
501 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
502 list='$(DISTFILES)'; \
503 dist_files=`for file in $$list; do echo $$file; done | \
504 sed -e "s|^$$srcdirstrip/||;t" \
505 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
506 case $$dist_files in \
507 */*) $(MKDIR_P) `echo "$$dist_files" | \
508 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
509 sort -u` ;; \
510 esac; \
511 for file in $$dist_files; do \
512 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
513 if test -d $$d/$$file; then \
514 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
515 if test -d "$(distdir)/$$file"; then \
516 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
517 fi; \
518 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
519 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
520 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
521 fi; \
522 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
523 else \
524 test -f "$(distdir)/$$file" \
525 || cp -p $$d/$$file "$(distdir)/$$file" \
526 || exit 1; \
527 fi; \
528 done
529 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
530 if test "$$subdir" = .; then :; else \
531 test -d "$(distdir)/$$subdir" \
532 || $(MKDIR_P) "$(distdir)/$$subdir" \
533 || exit 1; \
534 fi; \
535 done
536 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
537 if test "$$subdir" = .; then :; else \
538 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
539 $(am__relativize); \
540 new_distdir=$$reldir; \
541 dir1=$$subdir; dir2="$(top_distdir)"; \
542 $(am__relativize); \
543 new_top_distdir=$$reldir; \
544 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
545 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
546 ($(am__cd) $$subdir && \
547 $(MAKE) $(AM_MAKEFLAGS) \
548 top_distdir="$$new_top_distdir" \
549 distdir="$$new_distdir" \
550 am__remove_distdir=: \
551 am__skip_length_check=: \
552 am__skip_mode_fix=: \
553 distdir) \
554 || exit 1; \
555 fi; \
556 done
557 -test -n "$(am__skip_mode_fix)" \
558 || find "$(distdir)" -type d ! -perm -755 \
559 -exec chmod u+rwx,go+rx {} \; -o \
560 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
561 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
562 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
563 || chmod -R a+r "$(distdir)"
564dist-gzip: distdir
565 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
566 $(am__remove_distdir)
567
568dist-bzip2: distdir
569 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
570 $(am__remove_distdir)
571
572dist-lzip: distdir
573 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
574 $(am__remove_distdir)
575
576dist-lzma: distdir
577 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
578 $(am__remove_distdir)
579
580dist-xz: distdir
581 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
582 $(am__remove_distdir)
583
584dist-tarZ: distdir
585 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
586 $(am__remove_distdir)
587
588dist-shar: distdir
589 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
590 $(am__remove_distdir)
591
592dist-zip: distdir
593 -rm -f $(distdir).zip
594 zip -rq $(distdir).zip $(distdir)
595 $(am__remove_distdir)
596
597dist dist-all: distdir
598 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
599 $(am__remove_distdir)
600
601# This target untars the dist file and tries a VPATH configuration. Then
602# it guarantees that the distribution is self-contained by making another
603# tarfile.
604distcheck: dist
605 case '$(DIST_ARCHIVES)' in \
606 *.tar.gz*) \
607 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
608 *.tar.bz2*) \
609 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
610 *.tar.lzma*) \
611 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
612 *.tar.lz*) \
613 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
614 *.tar.xz*) \
615 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
616 *.tar.Z*) \
617 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
618 *.shar.gz*) \
619 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
620 *.zip*) \
621 unzip $(distdir).zip ;;\
622 esac
623 chmod -R a-w $(distdir); chmod a+w $(distdir)
624 mkdir $(distdir)/_build
625 mkdir $(distdir)/_inst
626 chmod a-w $(distdir)
627 test -d $(distdir)/_build || exit 0; \
628 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
629 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
630 && am__cwd=`pwd` \
631 && $(am__cd) $(distdir)/_build \
632 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
633 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
634 $(DISTCHECK_CONFIGURE_FLAGS) \
635 && $(MAKE) $(AM_MAKEFLAGS) \
636 && $(MAKE) $(AM_MAKEFLAGS) dvi \
637 && $(MAKE) $(AM_MAKEFLAGS) check \
638 && $(MAKE) $(AM_MAKEFLAGS) install \
639 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
640 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
641 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
642 distuninstallcheck \
643 && chmod -R a-w "$$dc_install_base" \
644 && ({ \
645 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
646 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
647 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
648 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
649 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
650 } || { rm -rf "$$dc_destdir"; exit 1; }) \
651 && rm -rf "$$dc_destdir" \
652 && $(MAKE) $(AM_MAKEFLAGS) dist \
653 && rm -rf $(DIST_ARCHIVES) \
654 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
655 && cd "$$am__cwd" \
656 || exit 1
657 $(am__remove_distdir)
658 @(echo "$(distdir) archives ready for distribution: "; \
659 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
660 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
661distuninstallcheck:
662 @test -n '$(distuninstallcheck_dir)' || { \
663 echo 'ERROR: trying to run $@ with an empty' \
664 '$$(distuninstallcheck_dir)' >&2; \
665 exit 1; \
666 }; \
667 $(am__cd) '$(distuninstallcheck_dir)' || { \
668 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
669 exit 1; \
670 }; \
671 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
672 || { echo "ERROR: files left after uninstall:" ; \
673 if test -n "$(DESTDIR)"; then \
674 echo " (check DESTDIR support)"; \
675 fi ; \
676 $(distuninstallcheck_listfiles) ; \
677 exit 1; } >&2
678distcleancheck: distclean
679 @if test '$(srcdir)' = . ; then \
680 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
681 exit 1 ; \
682 fi
683 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
684 || { echo "ERROR: files left in build directory after distclean:" ; \
685 $(distcleancheck_listfiles) ; \
686 exit 1; } >&2
687check-am: all-am
688check: check-recursive
689all-am: Makefile config.h
690installdirs: installdirs-recursive
691installdirs-am:
692install: install-recursive
693install-exec: install-exec-recursive
694install-data: install-data-recursive
695uninstall: uninstall-recursive
696
697install-am: all-am
698 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
699
700installcheck: installcheck-recursive
701install-strip:
702 if test -z '$(STRIP)'; then \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 install; \
706 else \
707 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
708 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
709 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
710 fi
711mostlyclean-generic:
712
713clean-generic:
714
715distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722clean: clean-recursive
723
724clean-am: clean-generic clean-libtool clean-local mostlyclean-am
725
726distclean: distclean-recursive
727 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
728 -rm -f Makefile
729distclean-am: clean-am distclean-generic distclean-hdr \
730 distclean-libtool distclean-tags
731
732dvi: dvi-recursive
733
734dvi-am:
735
736html: html-recursive
737
738html-am:
739
740info: info-recursive
741
742info-am:
743
744install-data-am:
745
746install-dvi: install-dvi-recursive
747
748install-dvi-am:
749
750install-exec-am:
751
752install-html: install-html-recursive
753
754install-html-am:
755
756install-info: install-info-recursive
757
758install-info-am:
759
760install-man:
761
762install-pdf: install-pdf-recursive
763
764install-pdf-am:
765
766install-ps: install-ps-recursive
767
768install-ps-am:
769
770installcheck-am:
771
772maintainer-clean: maintainer-clean-recursive
773 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
774 -rm -rf $(top_srcdir)/autom4te.cache
775 -rm -f Makefile
776maintainer-clean-am: distclean-am maintainer-clean-generic
777
778mostlyclean: mostlyclean-recursive
779
780mostlyclean-am: mostlyclean-generic mostlyclean-libtool
781
782pdf: pdf-recursive
783
784pdf-am:
785
786ps: ps-recursive
787
788ps-am:
789
790uninstall-am:
791
792.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
793 ctags-recursive install-am install-strip tags-recursive
794
795.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
796 all all-am am--refresh check check-am clean clean-generic \
797 clean-libtool clean-local ctags ctags-recursive dist dist-all \
798 dist-bzip2 dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ \
799 dist-xz dist-zip distcheck distclean distclean-generic \
800 distclean-hdr distclean-libtool distclean-tags distcleancheck \
801 distdir distuninstallcheck dvi dvi-am html html-am info \
802 info-am install install-am install-data install-data-am \
803 install-dvi install-dvi-am install-exec install-exec-am \
804 install-html install-html-am install-info install-info-am \
805 install-man install-pdf install-pdf-am install-ps \
806 install-ps-am install-strip installcheck installcheck-am \
807 installdirs installdirs-am maintainer-clean \
808 maintainer-clean-generic mostlyclean mostlyclean-generic \
809 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
810 uninstall uninstall-am
811
812
813.PHONY: clean-gcno clean-gcda \
814 coverage-html generate-coverage-html clean-coverage-html \
815 coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr
816
817clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr
818
819@HAVE_GCOV_TRUE@clean-gcno:
820@HAVE_GCOV_TRUE@ @echo Removing old coverage instrumentation
821@HAVE_GCOV_TRUE@ -find -name '*.gcno' -print | xargs -r rm
822
823@HAVE_GCOV_TRUE@clean-gcda:
824@HAVE_GCOV_TRUE@ @echo Removing old coverage results
825@HAVE_GCOV_TRUE@ -find -name '*.gcda' -print | xargs -r rm
826
827@HAVE_GCOV_TRUE@coverage-html: clean-gcda
828@HAVE_GCOV_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check
829@HAVE_GCOV_TRUE@ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
830
831@HAVE_GCOV_TRUE@generate-coverage-html:
832@HAVE_GCOV_TRUE@ @echo Collecting coverage data
833@HAVE_GCOV_TRUE@ $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
834@HAVE_GCOV_TRUE@ LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
835
836@HAVE_GCOV_TRUE@clean-coverage-html: clean-gcda
837@HAVE_GCOV_TRUE@ -$(LCOV) --directory $(top_builddir) -z
838@HAVE_GCOV_TRUE@ -rm -rf coverage.info coveragereport
839
840@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@coverage-gcovr: clean-gcda
841@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check
842@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr
843
844@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@generate-coverage-gcovr:
845@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ @echo Generating coverage GCOVR report
846@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
847
848@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@clean-coverage-gcovr: clean-gcda
849@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ -rm -rf $(top_builddir)/coverage.xml
850
851# Tell versions [3.59,3.63) of GNU make to not export all variables.
852# Otherwise a system limit (for SysV at least) may be exceeded.
853.NOEXPORT:
0854
=== added file 'aclocal.m4'
--- aclocal.m4 1970-01-01 00:00:00 +0000
+++ aclocal.m4 2012-06-21 16:16:33 +0000
@@ -0,0 +1,10680 @@
1# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5# Inc.
6# This file is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18[m4_warning([this file was generated for autoconf 2.68.
19You have another version of autoconf. It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
23# Copyright (C) 1995-2002 Free Software Foundation, Inc.
24# Copyright (C) 2001-2003,2004 Red Hat, Inc.
25#
26# This file is free software, distributed under the terms of the GNU
27# General Public License. As a special exception to the GNU General
28# Public License, this file may be distributed as part of a program
29# that contains a configuration script generated by Autoconf, under
30# the same distribution terms as the rest of that program.
31#
32# This file can be copied and used freely without restrictions. It can
33# be used in projects which are not available under the GNU Public License
34# but which still want to provide support for the GNU gettext functionality.
35#
36# Macro to add for using GNU gettext.
37# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
38#
39# Modified to never use included libintl.
40# Owen Taylor <otaylor@redhat.com>, 12/15/1998
41#
42# Major rework to remove unused code
43# Owen Taylor <otaylor@redhat.com>, 12/11/2002
44#
45# Added better handling of ALL_LINGUAS from GNU gettext version
46# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
47#
48# Modified to require ngettext
49# Matthias Clasen <mclasen@redhat.com> 08/06/2004
50#
51# We need this here as well, since someone might use autoconf-2.5x
52# to configure GLib then an older version to configure a package
53# using AM_GLIB_GNU_GETTEXT
54AC_PREREQ(2.53)
55
56dnl
57dnl We go to great lengths to make sure that aclocal won't
58dnl try to pull in the installed version of these macros
59dnl when running aclocal in the glib directory.
60dnl
61m4_copy([AC_DEFUN],[glib_DEFUN])
62m4_copy([AC_REQUIRE],[glib_REQUIRE])
63dnl
64dnl At the end, if we're not within glib, we'll define the public
65dnl definitions in terms of our private definitions.
66dnl
67
68# GLIB_LC_MESSAGES
69#--------------------
70glib_DEFUN([GLIB_LC_MESSAGES],
71 [AC_CHECK_HEADERS([locale.h])
72 if test $ac_cv_header_locale_h = yes; then
73 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
74 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
75 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
76 if test $am_cv_val_LC_MESSAGES = yes; then
77 AC_DEFINE(HAVE_LC_MESSAGES, 1,
78 [Define if your <locale.h> file defines LC_MESSAGES.])
79 fi
80 fi])
81
82# GLIB_PATH_PROG_WITH_TEST
83#----------------------------
84dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
85dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
86glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
87[# Extract the first word of "$2", so it can be a program name with args.
88set dummy $2; ac_word=[$]2
89AC_MSG_CHECKING([for $ac_word])
90AC_CACHE_VAL(ac_cv_path_$1,
91[case "[$]$1" in
92 /*)
93 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
94 ;;
95 *)
96 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
97 for ac_dir in ifelse([$5], , $PATH, [$5]); do
98 test -z "$ac_dir" && ac_dir=.
99 if test -f $ac_dir/$ac_word; then
100 if [$3]; then
101 ac_cv_path_$1="$ac_dir/$ac_word"
102 break
103 fi
104 fi
105 done
106 IFS="$ac_save_ifs"
107dnl If no 4th arg is given, leave the cache variable unset,
108dnl so AC_PATH_PROGS will keep looking.
109ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
110])dnl
111 ;;
112esac])dnl
113$1="$ac_cv_path_$1"
114if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
115 AC_MSG_RESULT([$]$1)
116else
117 AC_MSG_RESULT(no)
118fi
119AC_SUBST($1)dnl
120])
121
122# GLIB_WITH_NLS
123#-----------------
124glib_DEFUN([GLIB_WITH_NLS],
125 dnl NLS is obligatory
126 [USE_NLS=yes
127 AC_SUBST(USE_NLS)
128
129 gt_cv_have_gettext=no
130
131 CATOBJEXT=NONE
132 XGETTEXT=:
133 INTLLIBS=
134
135 AC_CHECK_HEADER(libintl.h,
136 [gt_cv_func_dgettext_libintl="no"
137 libintl_extra_libs=""
138
139 #
140 # First check in libc
141 #
142 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
143 [AC_TRY_LINK([
144#include <libintl.h>
145],
146 [return !ngettext ("","", 1)],
147 gt_cv_func_ngettext_libc=yes,
148 gt_cv_func_ngettext_libc=no)
149 ])
150
151 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
152 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
153 [AC_TRY_LINK([
154#include <libintl.h>
155],
156 [return !dgettext ("","")],
157 gt_cv_func_dgettext_libc=yes,
158 gt_cv_func_dgettext_libc=no)
159 ])
160 fi
161
162 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
163 AC_CHECK_FUNCS(bind_textdomain_codeset)
164 fi
165
166 #
167 # If we don't have everything we want, check in libintl
168 #
169 if test "$gt_cv_func_dgettext_libc" != "yes" \
170 || test "$gt_cv_func_ngettext_libc" != "yes" \
171 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
172
173 AC_CHECK_LIB(intl, bindtextdomain,
174 [AC_CHECK_LIB(intl, ngettext,
175 [AC_CHECK_LIB(intl, dgettext,
176 gt_cv_func_dgettext_libintl=yes)])])
177
178 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
179 AC_MSG_CHECKING([if -liconv is needed to use gettext])
180 AC_MSG_RESULT([])
181 AC_CHECK_LIB(intl, ngettext,
182 [AC_CHECK_LIB(intl, dcgettext,
183 [gt_cv_func_dgettext_libintl=yes
184 libintl_extra_libs=-liconv],
185 :,-liconv)],
186 :,-liconv)
187 fi
188
189 #
190 # If we found libintl, then check in it for bind_textdomain_codeset();
191 # we'll prefer libc if neither have bind_textdomain_codeset(),
192 # and both have dgettext and ngettext
193 #
194 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
195 glib_save_LIBS="$LIBS"
196 LIBS="$LIBS -lintl $libintl_extra_libs"
197 unset ac_cv_func_bind_textdomain_codeset
198 AC_CHECK_FUNCS(bind_textdomain_codeset)
199 LIBS="$glib_save_LIBS"
200
201 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
202 gt_cv_func_dgettext_libc=no
203 else
204 if test "$gt_cv_func_dgettext_libc" = "yes" \
205 && test "$gt_cv_func_ngettext_libc" = "yes"; then
206 gt_cv_func_dgettext_libintl=no
207 fi
208 fi
209 fi
210 fi
211
212 if test "$gt_cv_func_dgettext_libc" = "yes" \
213 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
214 gt_cv_have_gettext=yes
215 fi
216
217 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
218 INTLLIBS="-lintl $libintl_extra_libs"
219 fi
220
221 if test "$gt_cv_have_gettext" = "yes"; then
222 AC_DEFINE(HAVE_GETTEXT,1,
223 [Define if the GNU gettext() function is already present or preinstalled.])
224 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
225 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
226 if test "$MSGFMT" != "no"; then
227 glib_save_LIBS="$LIBS"
228 LIBS="$LIBS $INTLLIBS"
229 AC_CHECK_FUNCS(dcgettext)
230 MSGFMT_OPTS=
231 AC_MSG_CHECKING([if msgfmt accepts -c])
232 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
233msgid ""
234msgstr ""
235"Content-Type: text/plain; charset=UTF-8\n"
236"Project-Id-Version: test 1.0\n"
237"PO-Revision-Date: 2007-02-15 12:01+0100\n"
238"Last-Translator: test <foo@bar.xx>\n"
239"Language-Team: C <LL@li.org>\n"
240"MIME-Version: 1.0\n"
241"Content-Transfer-Encoding: 8bit\n"
242], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
243 AC_SUBST(MSGFMT_OPTS)
244 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
245 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
246 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
247 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
248 return _nl_msg_cat_cntr],
249 [CATOBJEXT=.gmo
250 DATADIRNAME=share],
251 [case $host in
252 *-*-solaris*)
253 dnl On Solaris, if bind_textdomain_codeset is in libc,
254 dnl GNU format message catalog is always supported,
255 dnl since both are added to the libc all together.
256 dnl Hence, we'd like to go with DATADIRNAME=share and
257 dnl and CATOBJEXT=.gmo in this case.
258 AC_CHECK_FUNC(bind_textdomain_codeset,
259 [CATOBJEXT=.gmo
260 DATADIRNAME=share],
261 [CATOBJEXT=.mo
262 DATADIRNAME=lib])
263 ;;
264 *-*-openbsd*)
265 CATOBJEXT=.mo
266 DATADIRNAME=share
267 ;;
268 *)
269 CATOBJEXT=.mo
270 DATADIRNAME=lib
271 ;;
272 esac])
273 LIBS="$glib_save_LIBS"
274 INSTOBJEXT=.mo
275 else
276 gt_cv_have_gettext=no
277 fi
278 fi
279 ])
280
281 if test "$gt_cv_have_gettext" = "yes" ; then
282 AC_DEFINE(ENABLE_NLS, 1,
283 [always defined to indicate that i18n is enabled])
284 fi
285
286 dnl Test whether we really found GNU xgettext.
287 if test "$XGETTEXT" != ":"; then
288 dnl If it is not GNU xgettext we define it as : so that the
289 dnl Makefiles still can work.
290 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
291 : ;
292 else
293 AC_MSG_RESULT(
294 [found xgettext program is not GNU xgettext; ignore it])
295 XGETTEXT=":"
296 fi
297 fi
298
299 # We need to process the po/ directory.
300 POSUB=po
301
302 AC_OUTPUT_COMMANDS(
303 [case "$CONFIG_FILES" in *po/Makefile.in*)
304 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
305 esac])
306
307 dnl These rules are solely for the distribution goal. While doing this
308 dnl we only have to keep exactly one list of the available catalogs
309 dnl in configure.ac.
310 for lang in $ALL_LINGUAS; do
311 GMOFILES="$GMOFILES $lang.gmo"
312 POFILES="$POFILES $lang.po"
313 done
314
315 dnl Make all variables we use known to autoconf.
316 AC_SUBST(CATALOGS)
317 AC_SUBST(CATOBJEXT)
318 AC_SUBST(DATADIRNAME)
319 AC_SUBST(GMOFILES)
320 AC_SUBST(INSTOBJEXT)
321 AC_SUBST(INTLLIBS)
322 AC_SUBST(PO_IN_DATADIR_TRUE)
323 AC_SUBST(PO_IN_DATADIR_FALSE)
324 AC_SUBST(POFILES)
325 AC_SUBST(POSUB)
326 ])
327
328# AM_GLIB_GNU_GETTEXT
329# -------------------
330# Do checks necessary for use of gettext. If a suitable implementation
331# of gettext is found in either in libintl or in the C library,
332# it will set INTLLIBS to the libraries needed for use of gettext
333# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
334# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
335# on various variables needed by the Makefile.in.in installed by
336# glib-gettextize.
337dnl
338glib_DEFUN([GLIB_GNU_GETTEXT],
339 [AC_REQUIRE([AC_PROG_CC])dnl
340 AC_REQUIRE([AC_HEADER_STDC])dnl
341
342 GLIB_LC_MESSAGES
343 GLIB_WITH_NLS
344
345 if test "$gt_cv_have_gettext" = "yes"; then
346 if test "x$ALL_LINGUAS" = "x"; then
347 LINGUAS=
348 else
349 AC_MSG_CHECKING(for catalogs to be installed)
350 NEW_LINGUAS=
351 for presentlang in $ALL_LINGUAS; do
352 useit=no
353 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
354 desiredlanguages="$LINGUAS"
355 else
356 desiredlanguages="$ALL_LINGUAS"
357 fi
358 for desiredlang in $desiredlanguages; do
359 # Use the presentlang catalog if desiredlang is
360 # a. equal to presentlang, or
361 # b. a variant of presentlang (because in this case,
362 # presentlang can be used as a fallback for messages
363 # which are not translated in the desiredlang catalog).
364 case "$desiredlang" in
365 "$presentlang"*) useit=yes;;
366 esac
367 done
368 if test $useit = yes; then
369 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
370 fi
371 done
372 LINGUAS=$NEW_LINGUAS
373 AC_MSG_RESULT($LINGUAS)
374 fi
375
376 dnl Construct list of names of catalog files to be constructed.
377 if test -n "$LINGUAS"; then
378 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
379 fi
380 fi
381
382 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
383 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
384 dnl Try to locate is.
385 MKINSTALLDIRS=
386 if test -n "$ac_aux_dir"; then
387 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
388 fi
389 if test -z "$MKINSTALLDIRS"; then
390 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
391 fi
392 AC_SUBST(MKINSTALLDIRS)
393
394 dnl Generate list of files to be processed by xgettext which will
395 dnl be included in po/Makefile.
396 test -d po || mkdir po
397 if test "x$srcdir" != "x."; then
398 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
399 posrcprefix="$srcdir/"
400 else
401 posrcprefix="../$srcdir/"
402 fi
403 else
404 posrcprefix="../"
405 fi
406 rm -f po/POTFILES
407 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
408 < $srcdir/po/POTFILES.in > po/POTFILES
409 ])
410
411# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
412# -------------------------------
413# Define VARIABLE to the location where catalog files will
414# be installed by po/Makefile.
415glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
416[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
417glib_save_prefix="$prefix"
418glib_save_exec_prefix="$exec_prefix"
419glib_save_datarootdir="$datarootdir"
420test "x$prefix" = xNONE && prefix=$ac_default_prefix
421test "x$exec_prefix" = xNONE && exec_prefix=$prefix
422datarootdir=`eval echo "${datarootdir}"`
423if test "x$CATOBJEXT" = "x.mo" ; then
424 localedir=`eval echo "${libdir}/locale"`
425else
426 localedir=`eval echo "${datadir}/locale"`
427fi
428prefix="$glib_save_prefix"
429exec_prefix="$glib_save_exec_prefix"
430datarootdir="$glib_save_datarootdir"
431AC_DEFINE_UNQUOTED($1, "$localedir",
432 [Define the location where the catalogs will be installed])
433])
434
435dnl
436dnl Now the definitions that aclocal will find
437dnl
438ifdef(glib_configure_ac,[],[
439AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
440AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
441])dnl
442
443# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
444#
445# Create a temporary file with TEST-FILE as its contents and pass the
446# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
447# 0 and perform ACTION-IF-FAIL for any other exit status.
448AC_DEFUN([GLIB_RUN_PROG],
449[cat >conftest.foo <<_ACEOF
450$2
451_ACEOF
452if AC_RUN_LOG([$1 conftest.foo]); then
453 m4_ifval([$3], [$3], [:])
454m4_ifvaln([$4], [else $4])dnl
455echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
456sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
457fi])
458
459
460dnl GLIB_GSETTINGS
461dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
462dnl the schema should be compiled
463dnl
464
465AC_DEFUN([GLIB_GSETTINGS],
466[
467 m4_pattern_allow([AM_V_GEN])
468 AC_ARG_ENABLE(schemas-compile,
469 AS_HELP_STRING([--disable-schemas-compile],
470 [Disable regeneration of gschemas.compiled on install]),
471 [case ${enableval} in
472 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
473 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
474 *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
475 esac])
476 AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
477 PKG_PROG_PKG_CONFIG([0.16])
478 AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
479 if test x$cross_compiling != xyes; then
480 GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
481 else
482 AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
483 fi
484 AC_SUBST(GLIB_COMPILE_SCHEMAS)
485 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
486 ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
487 else
488 ifelse([$1],,[:],[$1])
489 fi
490
491 GSETTINGS_RULES='
492.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
493
494mostlyclean-am: clean-gsettings-schemas
495
496gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
497
498%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
499 $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
500
501all-am: $(gsettings_SCHEMAS:.xml=.valid)
502uninstall-am: uninstall-gsettings-schemas
503install-data-am: install-gsettings-schemas
504
505.SECONDARY: $(gsettings_SCHEMAS)
506
507install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
508 @$(NORMAL_INSTALL)
509 if test -n "$^"; then \
510 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
511 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
512 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
513 fi
514
515uninstall-gsettings-schemas:
516 @$(NORMAL_UNINSTALL)
517 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
518 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
519 test -n "$$files" || exit 0; \
520 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
521 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
522 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
523
524clean-gsettings-schemas:
525 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
526
527ifdef gsettings_ENUM_NAMESPACE
528$(gsettings__enum_file): $(gsettings_ENUM_FILES)
529 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
530endif
531'
532 _GSETTINGS_SUBST(GSETTINGS_RULES)
533])
534
535dnl _GSETTINGS_SUBST(VARIABLE)
536dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
537AC_DEFUN([_GSETTINGS_SUBST],
538[
539AC_SUBST([$1])
540m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
541]
542)
543
544
545dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
546# serial 42 IT_PROG_INTLTOOL
547AC_DEFUN([IT_PROG_INTLTOOL], [
548AC_PREREQ([2.50])dnl
549AC_REQUIRE([AM_NLS])dnl
550
551case "$am__api_version" in
552 1.[01234])
553 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
554 ;;
555 *)
556 ;;
557esac
558
559INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
560INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
561INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
562if test -n "$1"; then
563 AC_MSG_CHECKING([for intltool >= $1])
564 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
565 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
566 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
567fi
568
569AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
570AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
571AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
572if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
573 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
574fi
575
576if test -z "$AM_DEFAULT_VERBOSITY"; then
577 AM_DEFAULT_VERBOSITY=1
578fi
579AC_SUBST([AM_DEFAULT_VERBOSITY])
580
581INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
582INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
583INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
584AC_SUBST(INTLTOOL_V_MERGE)
585AC_SUBST(INTLTOOL__v_MERGE_)
586AC_SUBST(INTLTOOL__v_MERGE_0)
587
588INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
589intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
590intltool__v_merge_options_0='-q'
591AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
592AC_SUBST(intltool__v_merge_options_)
593AC_SUBST(intltool__v_merge_options_0)
594
595 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
596INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
597 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
598 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
599 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
600 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
601 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
602 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
603INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
604 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
605 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
606if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
607 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
608else
609 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
610fi
611 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
612 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
613 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
614 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
615 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
616 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
617 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
618
619_IT_SUBST(INTLTOOL_DESKTOP_RULE)
620_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
621_IT_SUBST(INTLTOOL_KEYS_RULE)
622_IT_SUBST(INTLTOOL_PROP_RULE)
623_IT_SUBST(INTLTOOL_OAF_RULE)
624_IT_SUBST(INTLTOOL_PONG_RULE)
625_IT_SUBST(INTLTOOL_SERVER_RULE)
626_IT_SUBST(INTLTOOL_SHEET_RULE)
627_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
628_IT_SUBST(INTLTOOL_UI_RULE)
629_IT_SUBST(INTLTOOL_XAM_RULE)
630_IT_SUBST(INTLTOOL_KBD_RULE)
631_IT_SUBST(INTLTOOL_XML_RULE)
632_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
633_IT_SUBST(INTLTOOL_CAVES_RULE)
634_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
635_IT_SUBST(INTLTOOL_THEME_RULE)
636_IT_SUBST(INTLTOOL_SERVICE_RULE)
637_IT_SUBST(INTLTOOL_POLICY_RULE)
638
639# Check the gettext tools to make sure they are GNU
640AC_PATH_PROG(XGETTEXT, xgettext)
641AC_PATH_PROG(MSGMERGE, msgmerge)
642AC_PATH_PROG(MSGFMT, msgfmt)
643AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
644if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
645 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
646fi
647xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
648mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
649mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
650if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
651 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
652fi
653
654AC_PATH_PROG(INTLTOOL_PERL, perl)
655if test -z "$INTLTOOL_PERL"; then
656 AC_MSG_ERROR([perl not found])
657fi
658AC_MSG_CHECKING([for perl >= 5.8.1])
659$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
660if test $? -ne 0; then
661 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
662else
663 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
664 AC_MSG_RESULT([$IT_PERL_VERSION])
665fi
666if test "x$2" != "xno-xml"; then
667 AC_MSG_CHECKING([for XML::Parser])
668 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
669 AC_MSG_RESULT([ok])
670 else
671 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
672 fi
673fi
674
675# Substitute ALL_LINGUAS so we can use it in po/Makefile
676AC_SUBST(ALL_LINGUAS)
677
678# Set DATADIRNAME correctly if it is not set yet
679# (copied from glib-gettext.m4)
680if test -z "$DATADIRNAME"; then
681 AC_LINK_IFELSE(
682 [AC_LANG_PROGRAM([[]],
683 [[extern int _nl_msg_cat_cntr;
684 return _nl_msg_cat_cntr]])],
685 [DATADIRNAME=share],
686 [case $host in
687 *-*-solaris*)
688 dnl On Solaris, if bind_textdomain_codeset is in libc,
689 dnl GNU format message catalog is always supported,
690 dnl since both are added to the libc all together.
691 dnl Hence, we'd like to go with DATADIRNAME=share
692 dnl in this case.
693 AC_CHECK_FUNC(bind_textdomain_codeset,
694 [DATADIRNAME=share], [DATADIRNAME=lib])
695 ;;
696 *)
697 [DATADIRNAME=lib]
698 ;;
699 esac])
700fi
701AC_SUBST(DATADIRNAME)
702
703IT_PO_SUBDIR([po])
704
705])
706
707
708# IT_PO_SUBDIR(DIRNAME)
709# ---------------------
710# All po subdirs have to be declared with this macro; the subdir "po" is
711# declared by IT_PROG_INTLTOOL.
712#
713AC_DEFUN([IT_PO_SUBDIR],
714[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
715dnl
716dnl The following CONFIG_COMMANDS should be executed at the very end
717dnl of config.status.
718AC_CONFIG_COMMANDS_PRE([
719 AC_CONFIG_COMMANDS([$1/stamp-it], [
720 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
721 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
722 fi
723 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
724 >"$1/stamp-it.tmp"
725 [sed '/^#/d
726 s/^[[].*] *//
727 /^[ ]*$/d
728 '"s|^| $ac_top_srcdir/|" \
729 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
730 ]
731 [sed '/^POTFILES =/,/[^\\]$/ {
732 /^POTFILES =/!d
733 r $1/POTFILES
734 }
735 ' "$1/Makefile.in" >"$1/Makefile"]
736 rm -f "$1/Makefile.tmp"
737 mv "$1/stamp-it.tmp" "$1/stamp-it"
738 ])
739])dnl
740])
741
742# _IT_SUBST(VARIABLE)
743# -------------------
744# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
745#
746AC_DEFUN([_IT_SUBST],
747[
748AC_SUBST([$1])
749m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
750]
751)
752
753# deprecated macros
754AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
755# A hint is needed for aclocal from Automake <= 1.9.4:
756# AC_DEFUN([AC_PROG_INTLTOOL], ...)
757
758
759# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
760#
761# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
762# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
763# Foundation, Inc.
764# Written by Gordon Matzigkeit, 1996
765#
766# This file is free software; the Free Software Foundation gives
767# unlimited permission to copy and/or distribute it, with or without
768# modifications, as long as this notice is preserved.
769
770m4_define([_LT_COPYING], [dnl
771# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
772# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
773# Foundation, Inc.
774# Written by Gordon Matzigkeit, 1996
775#
776# This file is part of GNU Libtool.
777#
778# GNU Libtool is free software; you can redistribute it and/or
779# modify it under the terms of the GNU General Public License as
780# published by the Free Software Foundation; either version 2 of
781# the License, or (at your option) any later version.
782#
783# As a special exception to the GNU General Public License,
784# if you distribute this file as part of a program or library that
785# is built using GNU Libtool, you may include this file under the
786# same distribution terms that you use for the rest of that program.
787#
788# GNU Libtool is distributed in the hope that it will be useful,
789# but WITHOUT ANY WARRANTY; without even the implied warranty of
790# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
791# GNU General Public License for more details.
792#
793# You should have received a copy of the GNU General Public License
794# along with GNU Libtool; see the file COPYING. If not, a copy
795# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
796# obtained by writing to the Free Software Foundation, Inc.,
797# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
798])
799
800# serial 57 LT_INIT
801
802
803# LT_PREREQ(VERSION)
804# ------------------
805# Complain and exit if this libtool version is less that VERSION.
806m4_defun([LT_PREREQ],
807[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
808 [m4_default([$3],
809 [m4_fatal([Libtool version $1 or higher is required],
810 63)])],
811 [$2])])
812
813
814# _LT_CHECK_BUILDDIR
815# ------------------
816# Complain if the absolute build directory name contains unusual characters
817m4_defun([_LT_CHECK_BUILDDIR],
818[case `pwd` in
819 *\ * | *\ *)
820 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
821esac
822])
823
824
825# LT_INIT([OPTIONS])
826# ------------------
827AC_DEFUN([LT_INIT],
828[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
829AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
830AC_BEFORE([$0], [LT_LANG])dnl
831AC_BEFORE([$0], [LT_OUTPUT])dnl
832AC_BEFORE([$0], [LTDL_INIT])dnl
833m4_require([_LT_CHECK_BUILDDIR])dnl
834
835dnl Autoconf doesn't catch unexpanded LT_ macros by default:
836m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
837m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
838dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
839dnl unless we require an AC_DEFUNed macro:
840AC_REQUIRE([LTOPTIONS_VERSION])dnl
841AC_REQUIRE([LTSUGAR_VERSION])dnl
842AC_REQUIRE([LTVERSION_VERSION])dnl
843AC_REQUIRE([LTOBSOLETE_VERSION])dnl
844m4_require([_LT_PROG_LTMAIN])dnl
845
846_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
847
848dnl Parse OPTIONS
849_LT_SET_OPTIONS([$0], [$1])
850
851# This can be used to rebuild libtool when needed
852LIBTOOL_DEPS="$ltmain"
853
854# Always use our own libtool.
855LIBTOOL='$(SHELL) $(top_builddir)/libtool'
856AC_SUBST(LIBTOOL)dnl
857
858_LT_SETUP
859
860# Only expand once:
861m4_define([LT_INIT])
862])# LT_INIT
863
864# Old names:
865AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
866AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
867dnl aclocal-1.4 backwards compatibility:
868dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
869dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
870
871
872# _LT_CC_BASENAME(CC)
873# -------------------
874# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
875m4_defun([_LT_CC_BASENAME],
876[for cc_temp in $1""; do
877 case $cc_temp in
878 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
879 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
880 \-*) ;;
881 *) break;;
882 esac
883done
884cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
885])
886
887
888# _LT_FILEUTILS_DEFAULTS
889# ----------------------
890# It is okay to use these file commands and assume they have been set
891# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
892m4_defun([_LT_FILEUTILS_DEFAULTS],
893[: ${CP="cp -f"}
894: ${MV="mv -f"}
895: ${RM="rm -f"}
896])# _LT_FILEUTILS_DEFAULTS
897
898
899# _LT_SETUP
900# ---------
901m4_defun([_LT_SETUP],
902[AC_REQUIRE([AC_CANONICAL_HOST])dnl
903AC_REQUIRE([AC_CANONICAL_BUILD])dnl
904AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
905AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
906
907_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
908dnl
909_LT_DECL([], [host_alias], [0], [The host system])dnl
910_LT_DECL([], [host], [0])dnl
911_LT_DECL([], [host_os], [0])dnl
912dnl
913_LT_DECL([], [build_alias], [0], [The build system])dnl
914_LT_DECL([], [build], [0])dnl
915_LT_DECL([], [build_os], [0])dnl
916dnl
917AC_REQUIRE([AC_PROG_CC])dnl
918AC_REQUIRE([LT_PATH_LD])dnl
919AC_REQUIRE([LT_PATH_NM])dnl
920dnl
921AC_REQUIRE([AC_PROG_LN_S])dnl
922test -z "$LN_S" && LN_S="ln -s"
923_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
924dnl
925AC_REQUIRE([LT_CMD_MAX_LEN])dnl
926_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
927_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
928dnl
929m4_require([_LT_FILEUTILS_DEFAULTS])dnl
930m4_require([_LT_CHECK_SHELL_FEATURES])dnl
931m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
932m4_require([_LT_CMD_RELOAD])dnl
933m4_require([_LT_CHECK_MAGIC_METHOD])dnl
934m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
935m4_require([_LT_CMD_OLD_ARCHIVE])dnl
936m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
937m4_require([_LT_WITH_SYSROOT])dnl
938
939_LT_CONFIG_LIBTOOL_INIT([
940# See if we are running on zsh, and set the options which allow our
941# commands through without removal of \ escapes INIT.
942if test -n "\${ZSH_VERSION+set}" ; then
943 setopt NO_GLOB_SUBST
944fi
945])
946if test -n "${ZSH_VERSION+set}" ; then
947 setopt NO_GLOB_SUBST
948fi
949
950_LT_CHECK_OBJDIR
951
952m4_require([_LT_TAG_COMPILER])dnl
953
954case $host_os in
955aix3*)
956 # AIX sometimes has problems with the GCC collect2 program. For some
957 # reason, if we set the COLLECT_NAMES environment variable, the problems
958 # vanish in a puff of smoke.
959 if test "X${COLLECT_NAMES+set}" != Xset; then
960 COLLECT_NAMES=
961 export COLLECT_NAMES
962 fi
963 ;;
964esac
965
966# Global variables:
967ofile=libtool
968can_build_shared=yes
969
970# All known linkers require a `.a' archive for static linking (except MSVC,
971# which needs '.lib').
972libext=a
973
974with_gnu_ld="$lt_cv_prog_gnu_ld"
975
976old_CC="$CC"
977old_CFLAGS="$CFLAGS"
978
979# Set sane defaults for various variables
980test -z "$CC" && CC=cc
981test -z "$LTCC" && LTCC=$CC
982test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
983test -z "$LD" && LD=ld
984test -z "$ac_objext" && ac_objext=o
985
986_LT_CC_BASENAME([$compiler])
987
988# Only perform the check for file, if the check method requires it
989test -z "$MAGIC_CMD" && MAGIC_CMD=file
990case $deplibs_check_method in
991file_magic*)
992 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
993 _LT_PATH_MAGIC
994 fi
995 ;;
996esac
997
998# Use C for the default configuration in the libtool script
999LT_SUPPORTED_TAG([CC])
1000_LT_LANG_C_CONFIG
1001_LT_LANG_DEFAULT_CONFIG
1002_LT_CONFIG_COMMANDS
1003])# _LT_SETUP
1004
1005
1006# _LT_PREPARE_SED_QUOTE_VARS
1007# --------------------------
1008# Define a few sed substitution that help us do robust quoting.
1009m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
1010[# Backslashify metacharacters that are still active within
1011# double-quoted strings.
1012sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1013
1014# Same as above, but do not quote variable references.
1015double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1016
1017# Sed substitution to delay expansion of an escaped shell variable in a
1018# double_quote_subst'ed string.
1019delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1020
1021# Sed substitution to delay expansion of an escaped single quote.
1022delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1023
1024# Sed substitution to avoid accidental globbing in evaled expressions
1025no_glob_subst='s/\*/\\\*/g'
1026])
1027
1028# _LT_PROG_LTMAIN
1029# ---------------
1030# Note that this code is called both from `configure', and `config.status'
1031# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1032# `config.status' has no value for ac_aux_dir unless we are using Automake,
1033# so we pass a copy along to make sure it has a sensible value anyway.
1034m4_defun([_LT_PROG_LTMAIN],
1035[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1036_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1037ltmain="$ac_aux_dir/ltmain.sh"
1038])# _LT_PROG_LTMAIN
1039
1040
1041
1042# So that we can recreate a full libtool script including additional
1043# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1044# in macros and then make a single call at the end using the `libtool'
1045# label.
1046
1047
1048# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1049# ----------------------------------------
1050# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1051m4_define([_LT_CONFIG_LIBTOOL_INIT],
1052[m4_ifval([$1],
1053 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1054 [$1
1055])])])
1056
1057# Initialize.
1058m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1059
1060
1061# _LT_CONFIG_LIBTOOL([COMMANDS])
1062# ------------------------------
1063# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1064m4_define([_LT_CONFIG_LIBTOOL],
1065[m4_ifval([$1],
1066 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1067 [$1
1068])])])
1069
1070# Initialize.
1071m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1072
1073
1074# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1075# -----------------------------------------------------
1076m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1077[_LT_CONFIG_LIBTOOL([$1])
1078_LT_CONFIG_LIBTOOL_INIT([$2])
1079])
1080
1081
1082# _LT_FORMAT_COMMENT([COMMENT])
1083# -----------------------------
1084# Add leading comment marks to the start of each line, and a trailing
1085# full-stop to the whole comment if one is not present already.
1086m4_define([_LT_FORMAT_COMMENT],
1087[m4_ifval([$1], [
1088m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1089 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1090)])
1091
1092
1093
1094
1095
1096# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1097# -------------------------------------------------------------------
1098# CONFIGNAME is the name given to the value in the libtool script.
1099# VARNAME is the (base) name used in the configure script.
1100# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1101# VARNAME. Any other value will be used directly.
1102m4_define([_LT_DECL],
1103[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1104 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1105 [m4_ifval([$1], [$1], [$2])])
1106 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1107 m4_ifval([$4],
1108 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1109 lt_dict_add_subkey([lt_decl_dict], [$2],
1110 [tagged?], [m4_ifval([$5], [yes], [no])])])
1111])
1112
1113
1114# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1115# --------------------------------------------------------
1116m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1117
1118
1119# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1120# ------------------------------------------------
1121m4_define([lt_decl_tag_varnames],
1122[_lt_decl_filter([tagged?], [yes], $@)])
1123
1124
1125# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1126# ---------------------------------------------------------
1127m4_define([_lt_decl_filter],
1128[m4_case([$#],
1129 [0], [m4_fatal([$0: too few arguments: $#])],
1130 [1], [m4_fatal([$0: too few arguments: $#: $1])],
1131 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1132 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1133 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1134])
1135
1136
1137# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1138# --------------------------------------------------
1139m4_define([lt_decl_quote_varnames],
1140[_lt_decl_filter([value], [1], $@)])
1141
1142
1143# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1144# ---------------------------------------------------
1145m4_define([lt_decl_dquote_varnames],
1146[_lt_decl_filter([value], [2], $@)])
1147
1148
1149# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1150# ---------------------------------------------------
1151m4_define([lt_decl_varnames_tagged],
1152[m4_assert([$# <= 2])dnl
1153_$0(m4_quote(m4_default([$1], [[, ]])),
1154 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1155 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1156m4_define([_lt_decl_varnames_tagged],
1157[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1158
1159
1160# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1161# ------------------------------------------------
1162m4_define([lt_decl_all_varnames],
1163[_$0(m4_quote(m4_default([$1], [[, ]])),
1164 m4_if([$2], [],
1165 m4_quote(lt_decl_varnames),
1166 m4_quote(m4_shift($@))))[]dnl
1167])
1168m4_define([_lt_decl_all_varnames],
1169[lt_join($@, lt_decl_varnames_tagged([$1],
1170 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1171])
1172
1173
1174# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1175# ------------------------------------
1176# Quote a variable value, and forward it to `config.status' so that its
1177# declaration there will have the same value as in `configure'. VARNAME
1178# must have a single quote delimited value for this to work.
1179m4_define([_LT_CONFIG_STATUS_DECLARE],
1180[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1181
1182
1183# _LT_CONFIG_STATUS_DECLARATIONS
1184# ------------------------------
1185# We delimit libtool config variables with single quotes, so when
1186# we write them to config.status, we have to be sure to quote all
1187# embedded single quotes properly. In configure, this macro expands
1188# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1189#
1190# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1191m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1192[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1193 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1194
1195
1196# _LT_LIBTOOL_TAGS
1197# ----------------
1198# Output comment and list of tags supported by the script
1199m4_defun([_LT_LIBTOOL_TAGS],
1200[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1201available_tags="_LT_TAGS"dnl
1202])
1203
1204
1205# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1206# -----------------------------------
1207# Extract the dictionary values for VARNAME (optionally with TAG) and
1208# expand to a commented shell variable setting:
1209#
1210# # Some comment about what VAR is for.
1211# visible_name=$lt_internal_name
1212m4_define([_LT_LIBTOOL_DECLARE],
1213[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1214 [description])))[]dnl
1215m4_pushdef([_libtool_name],
1216 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1217m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1218 [0], [_libtool_name=[$]$1],
1219 [1], [_libtool_name=$lt_[]$1],
1220 [2], [_libtool_name=$lt_[]$1],
1221 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1222m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1223])
1224
1225
1226# _LT_LIBTOOL_CONFIG_VARS
1227# -----------------------
1228# Produce commented declarations of non-tagged libtool config variables
1229# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1230# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1231# section) are produced by _LT_LIBTOOL_TAG_VARS.
1232m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1233[m4_foreach([_lt_var],
1234 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1235 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1236
1237
1238# _LT_LIBTOOL_TAG_VARS(TAG)
1239# -------------------------
1240m4_define([_LT_LIBTOOL_TAG_VARS],
1241[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1242 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1243
1244
1245# _LT_TAGVAR(VARNAME, [TAGNAME])
1246# ------------------------------
1247m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1248
1249
1250# _LT_CONFIG_COMMANDS
1251# -------------------
1252# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1253# variables for single and double quote escaping we saved from calls
1254# to _LT_DECL, we can put quote escaped variables declarations
1255# into `config.status', and then the shell code to quote escape them in
1256# for loops in `config.status'. Finally, any additional code accumulated
1257# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1258m4_defun([_LT_CONFIG_COMMANDS],
1259[AC_PROVIDE_IFELSE([LT_OUTPUT],
1260 dnl If the libtool generation code has been placed in $CONFIG_LT,
1261 dnl instead of duplicating it all over again into config.status,
1262 dnl then we will have config.status run $CONFIG_LT later, so it
1263 dnl needs to know what name is stored there:
1264 [AC_CONFIG_COMMANDS([libtool],
1265 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1266 dnl If the libtool generation code is destined for config.status,
1267 dnl expand the accumulated commands and init code now:
1268 [AC_CONFIG_COMMANDS([libtool],
1269 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1270])#_LT_CONFIG_COMMANDS
1271
1272
1273# Initialize.
1274m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1275[
1276
1277# The HP-UX ksh and POSIX shell print the target directory to stdout
1278# if CDPATH is set.
1279(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1280
1281sed_quote_subst='$sed_quote_subst'
1282double_quote_subst='$double_quote_subst'
1283delay_variable_subst='$delay_variable_subst'
1284_LT_CONFIG_STATUS_DECLARATIONS
1285LTCC='$LTCC'
1286LTCFLAGS='$LTCFLAGS'
1287compiler='$compiler_DEFAULT'
1288
1289# A function that is used when there is no print builtin or printf.
1290func_fallback_echo ()
1291{
1292 eval 'cat <<_LTECHO_EOF
1293\$[]1
1294_LTECHO_EOF'
1295}
1296
1297# Quote evaled strings.
1298for var in lt_decl_all_varnames([[ \
1299]], lt_decl_quote_varnames); do
1300 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1301 *[[\\\\\\\`\\"\\\$]]*)
1302 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1303 ;;
1304 *)
1305 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1306 ;;
1307 esac
1308done
1309
1310# Double-quote double-evaled strings.
1311for var in lt_decl_all_varnames([[ \
1312]], lt_decl_dquote_varnames); do
1313 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1314 *[[\\\\\\\`\\"\\\$]]*)
1315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1316 ;;
1317 *)
1318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1319 ;;
1320 esac
1321done
1322
1323_LT_OUTPUT_LIBTOOL_INIT
1324])
1325
1326# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1327# ------------------------------------
1328# Generate a child script FILE with all initialization necessary to
1329# reuse the environment learned by the parent script, and make the
1330# file executable. If COMMENT is supplied, it is inserted after the
1331# `#!' sequence but before initialization text begins. After this
1332# macro, additional text can be appended to FILE to form the body of
1333# the child script. The macro ends with non-zero status if the
1334# file could not be fully written (such as if the disk is full).
1335m4_ifdef([AS_INIT_GENERATED],
1336[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1337[m4_defun([_LT_GENERATED_FILE_INIT],
1338[m4_require([AS_PREPARE])]dnl
1339[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1340[lt_write_fail=0
1341cat >$1 <<_ASEOF || lt_write_fail=1
1342#! $SHELL
1343# Generated by $as_me.
1344$2
1345SHELL=\${CONFIG_SHELL-$SHELL}
1346export SHELL
1347_ASEOF
1348cat >>$1 <<\_ASEOF || lt_write_fail=1
1349AS_SHELL_SANITIZE
1350_AS_PREPARE
1351exec AS_MESSAGE_FD>&1
1352_ASEOF
1353test $lt_write_fail = 0 && chmod +x $1[]dnl
1354m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1355
1356# LT_OUTPUT
1357# ---------
1358# This macro allows early generation of the libtool script (before
1359# AC_OUTPUT is called), incase it is used in configure for compilation
1360# tests.
1361AC_DEFUN([LT_OUTPUT],
1362[: ${CONFIG_LT=./config.lt}
1363AC_MSG_NOTICE([creating $CONFIG_LT])
1364_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1365[# Run this file to recreate a libtool stub with the current configuration.])
1366
1367cat >>"$CONFIG_LT" <<\_LTEOF
1368lt_cl_silent=false
1369exec AS_MESSAGE_LOG_FD>>config.log
1370{
1371 echo
1372 AS_BOX([Running $as_me.])
1373} >&AS_MESSAGE_LOG_FD
1374
1375lt_cl_help="\
1376\`$as_me' creates a local libtool stub from the current configuration,
1377for use in further configure time tests before the real libtool is
1378generated.
1379
1380Usage: $[0] [[OPTIONS]]
1381
1382 -h, --help print this help, then exit
1383 -V, --version print version number, then exit
1384 -q, --quiet do not print progress messages
1385 -d, --debug don't remove temporary files
1386
1387Report bugs to <bug-libtool@gnu.org>."
1388
1389lt_cl_version="\
1390m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1391m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1392configured by $[0], generated by m4_PACKAGE_STRING.
1393
1394Copyright (C) 2011 Free Software Foundation, Inc.
1395This config.lt script is free software; the Free Software Foundation
1396gives unlimited permision to copy, distribute and modify it."
1397
1398while test $[#] != 0
1399do
1400 case $[1] in
1401 --version | --v* | -V )
1402 echo "$lt_cl_version"; exit 0 ;;
1403 --help | --h* | -h )
1404 echo "$lt_cl_help"; exit 0 ;;
1405 --debug | --d* | -d )
1406 debug=: ;;
1407 --quiet | --q* | --silent | --s* | -q )
1408 lt_cl_silent=: ;;
1409
1410 -*) AC_MSG_ERROR([unrecognized option: $[1]
1411Try \`$[0] --help' for more information.]) ;;
1412
1413 *) AC_MSG_ERROR([unrecognized argument: $[1]
1414Try \`$[0] --help' for more information.]) ;;
1415 esac
1416 shift
1417done
1418
1419if $lt_cl_silent; then
1420 exec AS_MESSAGE_FD>/dev/null
1421fi
1422_LTEOF
1423
1424cat >>"$CONFIG_LT" <<_LTEOF
1425_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1426_LTEOF
1427
1428cat >>"$CONFIG_LT" <<\_LTEOF
1429AC_MSG_NOTICE([creating $ofile])
1430_LT_OUTPUT_LIBTOOL_COMMANDS
1431AS_EXIT(0)
1432_LTEOF
1433chmod +x "$CONFIG_LT"
1434
1435# configure is writing to config.log, but config.lt does its own redirection,
1436# appending to config.log, which fails on DOS, as config.log is still kept
1437# open by configure. Here we exec the FD to /dev/null, effectively closing
1438# config.log, so it can be properly (re)opened and appended to by config.lt.
1439lt_cl_success=:
1440test "$silent" = yes &&
1441 lt_config_lt_args="$lt_config_lt_args --quiet"
1442exec AS_MESSAGE_LOG_FD>/dev/null
1443$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1444exec AS_MESSAGE_LOG_FD>>config.log
1445$lt_cl_success || AS_EXIT(1)
1446])# LT_OUTPUT
1447
1448
1449# _LT_CONFIG(TAG)
1450# ---------------
1451# If TAG is the built-in tag, create an initial libtool script with a
1452# default configuration from the untagged config vars. Otherwise add code
1453# to config.status for appending the configuration named by TAG from the
1454# matching tagged config vars.
1455m4_defun([_LT_CONFIG],
1456[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1457_LT_CONFIG_SAVE_COMMANDS([
1458 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1459 m4_if(_LT_TAG, [C], [
1460 # See if we are running on zsh, and set the options which allow our
1461 # commands through without removal of \ escapes.
1462 if test -n "${ZSH_VERSION+set}" ; then
1463 setopt NO_GLOB_SUBST
1464 fi
1465
1466 cfgfile="${ofile}T"
1467 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1468 $RM "$cfgfile"
1469
1470 cat <<_LT_EOF >> "$cfgfile"
1471#! $SHELL
1472
1473# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1474# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1475# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1476# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1477#
1478_LT_COPYING
1479_LT_LIBTOOL_TAGS
1480
1481# ### BEGIN LIBTOOL CONFIG
1482_LT_LIBTOOL_CONFIG_VARS
1483_LT_LIBTOOL_TAG_VARS
1484# ### END LIBTOOL CONFIG
1485
1486_LT_EOF
1487
1488 case $host_os in
1489 aix3*)
1490 cat <<\_LT_EOF >> "$cfgfile"
1491# AIX sometimes has problems with the GCC collect2 program. For some
1492# reason, if we set the COLLECT_NAMES environment variable, the problems
1493# vanish in a puff of smoke.
1494if test "X${COLLECT_NAMES+set}" != Xset; then
1495 COLLECT_NAMES=
1496 export COLLECT_NAMES
1497fi
1498_LT_EOF
1499 ;;
1500 esac
1501
1502 _LT_PROG_LTMAIN
1503
1504 # We use sed instead of cat because bash on DJGPP gets confused if
1505 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1506 # text mode, it properly converts lines to CR/LF. This bash problem
1507 # is reportedly fixed, but why not run on old versions too?
1508 sed '$q' "$ltmain" >> "$cfgfile" \
1509 || (rm -f "$cfgfile"; exit 1)
1510
1511 _LT_PROG_REPLACE_SHELLFNS
1512
1513 mv -f "$cfgfile" "$ofile" ||
1514 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1515 chmod +x "$ofile"
1516],
1517[cat <<_LT_EOF >> "$ofile"
1518
1519dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1520dnl in a comment (ie after a #).
1521# ### BEGIN LIBTOOL TAG CONFIG: $1
1522_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1523# ### END LIBTOOL TAG CONFIG: $1
1524_LT_EOF
1525])dnl /m4_if
1526],
1527[m4_if([$1], [], [
1528 PACKAGE='$PACKAGE'
1529 VERSION='$VERSION'
1530 TIMESTAMP='$TIMESTAMP'
1531 RM='$RM'
1532 ofile='$ofile'], [])
1533])dnl /_LT_CONFIG_SAVE_COMMANDS
1534])# _LT_CONFIG
1535
1536
1537# LT_SUPPORTED_TAG(TAG)
1538# ---------------------
1539# Trace this macro to discover what tags are supported by the libtool
1540# --tag option, using:
1541# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1542AC_DEFUN([LT_SUPPORTED_TAG], [])
1543
1544
1545# C support is built-in for now
1546m4_define([_LT_LANG_C_enabled], [])
1547m4_define([_LT_TAGS], [])
1548
1549
1550# LT_LANG(LANG)
1551# -------------
1552# Enable libtool support for the given language if not already enabled.
1553AC_DEFUN([LT_LANG],
1554[AC_BEFORE([$0], [LT_OUTPUT])dnl
1555m4_case([$1],
1556 [C], [_LT_LANG(C)],
1557 [C++], [_LT_LANG(CXX)],
1558 [Go], [_LT_LANG(GO)],
1559 [Java], [_LT_LANG(GCJ)],
1560 [Fortran 77], [_LT_LANG(F77)],
1561 [Fortran], [_LT_LANG(FC)],
1562 [Windows Resource], [_LT_LANG(RC)],
1563 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1564 [_LT_LANG($1)],
1565 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1566])# LT_LANG
1567
1568
1569# _LT_LANG(LANGNAME)
1570# ------------------
1571m4_defun([_LT_LANG],
1572[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1573 [LT_SUPPORTED_TAG([$1])dnl
1574 m4_append([_LT_TAGS], [$1 ])dnl
1575 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1576 _LT_LANG_$1_CONFIG($1)])dnl
1577])# _LT_LANG
1578
1579
1580m4_ifndef([AC_PROG_GO], [
1581# NOTE: This macro has been submitted for inclusion into #
1582# GNU Autoconf as AC_PROG_GO. When it is available in #
1583# a released version of Autoconf we should remove this #
1584# macro and use it instead. #
1585m4_defun([AC_PROG_GO],
1586[AC_LANG_PUSH(Go)dnl
1587AC_ARG_VAR([GOC], [Go compiler command])dnl
1588AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1589_AC_ARG_VAR_LDFLAGS()dnl
1590AC_CHECK_TOOL(GOC, gccgo)
1591if test -z "$GOC"; then
1592 if test -n "$ac_tool_prefix"; then
1593 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1594 fi
1595fi
1596if test -z "$GOC"; then
1597 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1598fi
1599])#m4_defun
1600])#m4_ifndef
1601
1602
1603# _LT_LANG_DEFAULT_CONFIG
1604# -----------------------
1605m4_defun([_LT_LANG_DEFAULT_CONFIG],
1606[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1607 [LT_LANG(CXX)],
1608 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1609
1610AC_PROVIDE_IFELSE([AC_PROG_F77],
1611 [LT_LANG(F77)],
1612 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1613
1614AC_PROVIDE_IFELSE([AC_PROG_FC],
1615 [LT_LANG(FC)],
1616 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1617
1618dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1619dnl pulling things in needlessly.
1620AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1621 [LT_LANG(GCJ)],
1622 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1623 [LT_LANG(GCJ)],
1624 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1625 [LT_LANG(GCJ)],
1626 [m4_ifdef([AC_PROG_GCJ],
1627 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1628 m4_ifdef([A][M_PROG_GCJ],
1629 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1630 m4_ifdef([LT_PROG_GCJ],
1631 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1632
1633AC_PROVIDE_IFELSE([AC_PROG_GO],
1634 [LT_LANG(GO)],
1635 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1636
1637AC_PROVIDE_IFELSE([LT_PROG_RC],
1638 [LT_LANG(RC)],
1639 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1640])# _LT_LANG_DEFAULT_CONFIG
1641
1642# Obsolete macros:
1643AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1644AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1645AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1646AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1647AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1648dnl aclocal-1.4 backwards compatibility:
1649dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1650dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1651dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1652dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1653dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1654
1655
1656# _LT_TAG_COMPILER
1657# ----------------
1658m4_defun([_LT_TAG_COMPILER],
1659[AC_REQUIRE([AC_PROG_CC])dnl
1660
1661_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1662_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1663_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1664_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1665
1666# If no C compiler was specified, use CC.
1667LTCC=${LTCC-"$CC"}
1668
1669# If no C compiler flags were specified, use CFLAGS.
1670LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1671
1672# Allow CC to be a program name with arguments.
1673compiler=$CC
1674])# _LT_TAG_COMPILER
1675
1676
1677# _LT_COMPILER_BOILERPLATE
1678# ------------------------
1679# Check for compiler boilerplate output or warnings with
1680# the simple compiler test code.
1681m4_defun([_LT_COMPILER_BOILERPLATE],
1682[m4_require([_LT_DECL_SED])dnl
1683ac_outfile=conftest.$ac_objext
1684echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1685eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1686_lt_compiler_boilerplate=`cat conftest.err`
1687$RM conftest*
1688])# _LT_COMPILER_BOILERPLATE
1689
1690
1691# _LT_LINKER_BOILERPLATE
1692# ----------------------
1693# Check for linker boilerplate output or warnings with
1694# the simple link test code.
1695m4_defun([_LT_LINKER_BOILERPLATE],
1696[m4_require([_LT_DECL_SED])dnl
1697ac_outfile=conftest.$ac_objext
1698echo "$lt_simple_link_test_code" >conftest.$ac_ext
1699eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1700_lt_linker_boilerplate=`cat conftest.err`
1701$RM -r conftest*
1702])# _LT_LINKER_BOILERPLATE
1703
1704# _LT_REQUIRED_DARWIN_CHECKS
1705# -------------------------
1706m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1707 case $host_os in
1708 rhapsody* | darwin*)
1709 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1710 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1711 AC_CHECK_TOOL([LIPO], [lipo], [:])
1712 AC_CHECK_TOOL([OTOOL], [otool], [:])
1713 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1714 _LT_DECL([], [DSYMUTIL], [1],
1715 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1716 _LT_DECL([], [NMEDIT], [1],
1717 [Tool to change global to local symbols on Mac OS X])
1718 _LT_DECL([], [LIPO], [1],
1719 [Tool to manipulate fat objects and archives on Mac OS X])
1720 _LT_DECL([], [OTOOL], [1],
1721 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1722 _LT_DECL([], [OTOOL64], [1],
1723 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1724
1725 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1726 [lt_cv_apple_cc_single_mod=no
1727 if test -z "${LT_MULTI_MODULE}"; then
1728 # By default we will add the -single_module flag. You can override
1729 # by either setting the environment variable LT_MULTI_MODULE
1730 # non-empty at configure time, or by adding -multi_module to the
1731 # link flags.
1732 rm -rf libconftest.dylib*
1733 echo "int foo(void){return 1;}" > conftest.c
1734 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1735-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1736 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1737 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1738 _lt_result=$?
1739 # If there is a non-empty error log, and "single_module"
1740 # appears in it, assume the flag caused a linker warning
1741 if test -s conftest.err && $GREP single_module conftest.err; then
1742 cat conftest.err >&AS_MESSAGE_LOG_FD
1743 # Otherwise, if the output was created with a 0 exit code from
1744 # the compiler, it worked.
1745 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1746 lt_cv_apple_cc_single_mod=yes
1747 else
1748 cat conftest.err >&AS_MESSAGE_LOG_FD
1749 fi
1750 rm -rf libconftest.dylib*
1751 rm -f conftest.*
1752 fi])
1753
1754 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1755 [lt_cv_ld_exported_symbols_list],
1756 [lt_cv_ld_exported_symbols_list=no
1757 save_LDFLAGS=$LDFLAGS
1758 echo "_main" > conftest.sym
1759 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1760 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1761 [lt_cv_ld_exported_symbols_list=yes],
1762 [lt_cv_ld_exported_symbols_list=no])
1763 LDFLAGS="$save_LDFLAGS"
1764 ])
1765
1766 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1767 [lt_cv_ld_force_load=no
1768 cat > conftest.c << _LT_EOF
1769int forced_loaded() { return 2;}
1770_LT_EOF
1771 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1772 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1773 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1774 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1775 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1776 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1777 cat > conftest.c << _LT_EOF
1778int main() { return 0;}
1779_LT_EOF
1780 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1781 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1782 _lt_result=$?
1783 if test -s conftest.err && $GREP force_load conftest.err; then
1784 cat conftest.err >&AS_MESSAGE_LOG_FD
1785 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1786 lt_cv_ld_force_load=yes
1787 else
1788 cat conftest.err >&AS_MESSAGE_LOG_FD
1789 fi
1790 rm -f conftest.err libconftest.a conftest conftest.c
1791 rm -rf conftest.dSYM
1792 ])
1793 case $host_os in
1794 rhapsody* | darwin1.[[012]])
1795 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1796 darwin1.*)
1797 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1798 darwin*) # darwin 5.x on
1799 # if running on 10.5 or later, the deployment target defaults
1800 # to the OS version, if on x86, and 10.4, the deployment
1801 # target defaults to 10.4. Don't you love it?
1802 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1803 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1804 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1805 10.[[012]]*)
1806 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1807 10.*)
1808 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1809 esac
1810 ;;
1811 esac
1812 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1813 _lt_dar_single_mod='$single_module'
1814 fi
1815 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1816 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1817 else
1818 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1819 fi
1820 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1821 _lt_dsymutil='~$DSYMUTIL $lib || :'
1822 else
1823 _lt_dsymutil=
1824 fi
1825 ;;
1826 esac
1827])
1828
1829
1830# _LT_DARWIN_LINKER_FEATURES([TAG])
1831# ---------------------------------
1832# Checks for linker and compiler features on darwin
1833m4_defun([_LT_DARWIN_LINKER_FEATURES],
1834[
1835 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1836 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1837 _LT_TAGVAR(hardcode_direct, $1)=no
1838 _LT_TAGVAR(hardcode_automatic, $1)=yes
1839 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1840 if test "$lt_cv_ld_force_load" = "yes"; then
1841 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1842 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1843 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1844 else
1845 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1846 fi
1847 _LT_TAGVAR(link_all_deplibs, $1)=yes
1848 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1849 case $cc_basename in
1850 ifort*) _lt_dar_can_shared=yes ;;
1851 *) _lt_dar_can_shared=$GCC ;;
1852 esac
1853 if test "$_lt_dar_can_shared" = "yes"; then
1854 output_verbose_link_cmd=func_echo_all
1855 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1856 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1857 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1858 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1859 m4_if([$1], [CXX],
1860[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1861 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1862 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1863 fi
1864],[])
1865 else
1866 _LT_TAGVAR(ld_shlibs, $1)=no
1867 fi
1868])
1869
1870# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1871# ----------------------------------
1872# Links a minimal program and checks the executable
1873# for the system default hardcoded library path. In most cases,
1874# this is /usr/lib:/lib, but when the MPI compilers are used
1875# the location of the communication and MPI libs are included too.
1876# If we don't find anything, use the default library path according
1877# to the aix ld manual.
1878# Store the results from the different compilers for each TAGNAME.
1879# Allow to override them for all tags through lt_cv_aix_libpath.
1880m4_defun([_LT_SYS_MODULE_PATH_AIX],
1881[m4_require([_LT_DECL_SED])dnl
1882if test "${lt_cv_aix_libpath+set}" = set; then
1883 aix_libpath=$lt_cv_aix_libpath
1884else
1885 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1886 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1887 lt_aix_libpath_sed='[
1888 /Import File Strings/,/^$/ {
1889 /^0/ {
1890 s/^0 *\([^ ]*\) *$/\1/
1891 p
1892 }
1893 }]'
1894 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1895 # Check for a 64-bit object if we didn't find anything.
1896 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1897 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1898 fi],[])
1899 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1900 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1901 fi
1902 ])
1903 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1904fi
1905])# _LT_SYS_MODULE_PATH_AIX
1906
1907
1908# _LT_SHELL_INIT(ARG)
1909# -------------------
1910m4_define([_LT_SHELL_INIT],
1911[m4_divert_text([M4SH-INIT], [$1
1912])])# _LT_SHELL_INIT
1913
1914
1915
1916# _LT_PROG_ECHO_BACKSLASH
1917# -----------------------
1918# Find how we can fake an echo command that does not interpret backslash.
1919# In particular, with Autoconf 2.60 or later we add some code to the start
1920# of the generated configure script which will find a shell with a builtin
1921# printf (which we can use as an echo command).
1922m4_defun([_LT_PROG_ECHO_BACKSLASH],
1923[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1924ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1925ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1926
1927AC_MSG_CHECKING([how to print strings])
1928# Test print first, because it will be a builtin if present.
1929if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1930 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1931 ECHO='print -r --'
1932elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1933 ECHO='printf %s\n'
1934else
1935 # Use this function as a fallback that always works.
1936 func_fallback_echo ()
1937 {
1938 eval 'cat <<_LTECHO_EOF
1939$[]1
1940_LTECHO_EOF'
1941 }
1942 ECHO='func_fallback_echo'
1943fi
1944
1945# func_echo_all arg...
1946# Invoke $ECHO with all args, space-separated.
1947func_echo_all ()
1948{
1949 $ECHO "$*"
1950}
1951
1952case "$ECHO" in
1953 printf*) AC_MSG_RESULT([printf]) ;;
1954 print*) AC_MSG_RESULT([print -r]) ;;
1955 *) AC_MSG_RESULT([cat]) ;;
1956esac
1957
1958m4_ifdef([_AS_DETECT_SUGGESTED],
1959[_AS_DETECT_SUGGESTED([
1960 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1961 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1963 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1964 PATH=/empty FPATH=/empty; export PATH FPATH
1965 test "X`printf %s $ECHO`" = "X$ECHO" \
1966 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1967
1968_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1969_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1970])# _LT_PROG_ECHO_BACKSLASH
1971
1972
1973# _LT_WITH_SYSROOT
1974# ----------------
1975AC_DEFUN([_LT_WITH_SYSROOT],
1976[AC_MSG_CHECKING([for sysroot])
1977AC_ARG_WITH([sysroot],
1978[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1979 (or the compiler's sysroot if not specified).],
1980[], [with_sysroot=no])
1981
1982dnl lt_sysroot will always be passed unquoted. We quote it here
1983dnl in case the user passed a directory name.
1984lt_sysroot=
1985case ${with_sysroot} in #(
1986 yes)
1987 if test "$GCC" = yes; then
1988 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1989 fi
1990 ;; #(
1991 /*)
1992 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1993 ;; #(
1994 no|'')
1995 ;; #(
1996 *)
1997 AC_MSG_RESULT([${with_sysroot}])
1998 AC_MSG_ERROR([The sysroot must be an absolute path.])
1999 ;;
2000esac
2001
2002 AC_MSG_RESULT([${lt_sysroot:-no}])
2003_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
2004[dependent libraries, and in which our libraries should be installed.])])
2005
2006# _LT_ENABLE_LOCK
2007# ---------------
2008m4_defun([_LT_ENABLE_LOCK],
2009[AC_ARG_ENABLE([libtool-lock],
2010 [AS_HELP_STRING([--disable-libtool-lock],
2011 [avoid locking (might break parallel builds)])])
2012test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2013
2014# Some flags need to be propagated to the compiler or linker for good
2015# libtool support.
2016case $host in
2017ia64-*-hpux*)
2018 # Find out which ABI we are using.
2019 echo 'int i;' > conftest.$ac_ext
2020 if AC_TRY_EVAL(ac_compile); then
2021 case `/usr/bin/file conftest.$ac_objext` in
2022 *ELF-32*)
2023 HPUX_IA64_MODE="32"
2024 ;;
2025 *ELF-64*)
2026 HPUX_IA64_MODE="64"
2027 ;;
2028 esac
2029 fi
2030 rm -rf conftest*
2031 ;;
2032*-*-irix6*)
2033 # Find out which ABI we are using.
2034 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
2035 if AC_TRY_EVAL(ac_compile); then
2036 if test "$lt_cv_prog_gnu_ld" = yes; then
2037 case `/usr/bin/file conftest.$ac_objext` in
2038 *32-bit*)
2039 LD="${LD-ld} -melf32bsmip"
2040 ;;
2041 *N32*)
2042 LD="${LD-ld} -melf32bmipn32"
2043 ;;
2044 *64-bit*)
2045 LD="${LD-ld} -melf64bmip"
2046 ;;
2047 esac
2048 else
2049 case `/usr/bin/file conftest.$ac_objext` in
2050 *32-bit*)
2051 LD="${LD-ld} -32"
2052 ;;
2053 *N32*)
2054 LD="${LD-ld} -n32"
2055 ;;
2056 *64-bit*)
2057 LD="${LD-ld} -64"
2058 ;;
2059 esac
2060 fi
2061 fi
2062 rm -rf conftest*
2063 ;;
2064
2065x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2066s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2067 # Find out which ABI we are using.
2068 echo 'int i;' > conftest.$ac_ext
2069 if AC_TRY_EVAL(ac_compile); then
2070 case `/usr/bin/file conftest.o` in
2071 *32-bit*)
2072 case $host in
2073 x86_64-*kfreebsd*-gnu)
2074 LD="${LD-ld} -m elf_i386_fbsd"
2075 ;;
2076 x86_64-*linux*)
2077 LD="${LD-ld} -m elf_i386"
2078 ;;
2079 ppc64-*linux*|powerpc64-*linux*)
2080 LD="${LD-ld} -m elf32ppclinux"
2081 ;;
2082 s390x-*linux*)
2083 LD="${LD-ld} -m elf_s390"
2084 ;;
2085 sparc64-*linux*)
2086 LD="${LD-ld} -m elf32_sparc"
2087 ;;
2088 esac
2089 ;;
2090 *64-bit*)
2091 case $host in
2092 x86_64-*kfreebsd*-gnu)
2093 LD="${LD-ld} -m elf_x86_64_fbsd"
2094 ;;
2095 x86_64-*linux*)
2096 LD="${LD-ld} -m elf_x86_64"
2097 ;;
2098 ppc*-*linux*|powerpc*-*linux*)
2099 LD="${LD-ld} -m elf64ppc"
2100 ;;
2101 s390*-*linux*|s390*-*tpf*)
2102 LD="${LD-ld} -m elf64_s390"
2103 ;;
2104 sparc*-*linux*)
2105 LD="${LD-ld} -m elf64_sparc"
2106 ;;
2107 esac
2108 ;;
2109 esac
2110 fi
2111 rm -rf conftest*
2112 ;;
2113
2114*-*-sco3.2v5*)
2115 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2116 SAVE_CFLAGS="$CFLAGS"
2117 CFLAGS="$CFLAGS -belf"
2118 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2119 [AC_LANG_PUSH(C)
2120 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2121 AC_LANG_POP])
2122 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2123 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2124 CFLAGS="$SAVE_CFLAGS"
2125 fi
2126 ;;
2127*-*solaris*)
2128 # Find out which ABI we are using.
2129 echo 'int i;' > conftest.$ac_ext
2130 if AC_TRY_EVAL(ac_compile); then
2131 case `/usr/bin/file conftest.o` in
2132 *64-bit*)
2133 case $lt_cv_prog_gnu_ld in
2134 yes*)
2135 case $host in
2136 i?86-*-solaris*)
2137 LD="${LD-ld} -m elf_x86_64"
2138 ;;
2139 sparc*-*-solaris*)
2140 LD="${LD-ld} -m elf64_sparc"
2141 ;;
2142 esac
2143 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
2144 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
2145 LD="${LD-ld}_sol2"
2146 fi
2147 ;;
2148 *)
2149 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2150 LD="${LD-ld} -64"
2151 fi
2152 ;;
2153 esac
2154 ;;
2155 esac
2156 fi
2157 rm -rf conftest*
2158 ;;
2159esac
2160
2161need_locks="$enable_libtool_lock"
2162])# _LT_ENABLE_LOCK
2163
2164
2165# _LT_PROG_AR
2166# -----------
2167m4_defun([_LT_PROG_AR],
2168[AC_CHECK_TOOLS(AR, [ar], false)
2169: ${AR=ar}
2170: ${AR_FLAGS=cru}
2171_LT_DECL([], [AR], [1], [The archiver])
2172_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
2173
2174AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
2175 [lt_cv_ar_at_file=no
2176 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
2177 [echo conftest.$ac_objext > conftest.lst
2178 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
2179 AC_TRY_EVAL([lt_ar_try])
2180 if test "$ac_status" -eq 0; then
2181 # Ensure the archiver fails upon bogus file names.
2182 rm -f conftest.$ac_objext libconftest.a
2183 AC_TRY_EVAL([lt_ar_try])
2184 if test "$ac_status" -ne 0; then
2185 lt_cv_ar_at_file=@
2186 fi
2187 fi
2188 rm -f conftest.* libconftest.a
2189 ])
2190 ])
2191
2192if test "x$lt_cv_ar_at_file" = xno; then
2193 archiver_list_spec=
2194else
2195 archiver_list_spec=$lt_cv_ar_at_file
2196fi
2197_LT_DECL([], [archiver_list_spec], [1],
2198 [How to feed a file listing to the archiver])
2199])# _LT_PROG_AR
2200
2201
2202# _LT_CMD_OLD_ARCHIVE
2203# -------------------
2204m4_defun([_LT_CMD_OLD_ARCHIVE],
2205[_LT_PROG_AR
2206
2207AC_CHECK_TOOL(STRIP, strip, :)
2208test -z "$STRIP" && STRIP=:
2209_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2210
2211AC_CHECK_TOOL(RANLIB, ranlib, :)
2212test -z "$RANLIB" && RANLIB=:
2213_LT_DECL([], [RANLIB], [1],
2214 [Commands used to install an old-style archive])
2215
2216# Determine commands to create old-style static archives.
2217old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2218old_postinstall_cmds='chmod 644 $oldlib'
2219old_postuninstall_cmds=
2220
2221if test -n "$RANLIB"; then
2222 case $host_os in
2223 openbsd*)
2224 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2225 ;;
2226 *)
2227 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2228 ;;
2229 esac
2230 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2231fi
2232
2233case $host_os in
2234 darwin*)
2235 lock_old_archive_extraction=yes ;;
2236 *)
2237 lock_old_archive_extraction=no ;;
2238esac
2239_LT_DECL([], [old_postinstall_cmds], [2])
2240_LT_DECL([], [old_postuninstall_cmds], [2])
2241_LT_TAGDECL([], [old_archive_cmds], [2],
2242 [Commands used to build an old-style archive])
2243_LT_DECL([], [lock_old_archive_extraction], [0],
2244 [Whether to use a lock for old archive extraction])
2245])# _LT_CMD_OLD_ARCHIVE
2246
2247
2248# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2249# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2250# ----------------------------------------------------------------
2251# Check whether the given compiler option works
2252AC_DEFUN([_LT_COMPILER_OPTION],
2253[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2254m4_require([_LT_DECL_SED])dnl
2255AC_CACHE_CHECK([$1], [$2],
2256 [$2=no
2257 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2259 lt_compiler_flag="$3"
2260 # Insert the option either (1) after the last *FLAGS variable, or
2261 # (2) before a word containing "conftest.", or (3) at the end.
2262 # Note that $ac_compile itself does not contain backslashes and begins
2263 # with a dollar sign (not a hyphen), so the echo should work correctly.
2264 # The option is referenced via a variable to avoid confusing sed.
2265 lt_compile=`echo "$ac_compile" | $SED \
2266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2267 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2268 -e 's:$: $lt_compiler_flag:'`
2269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2270 (eval "$lt_compile" 2>conftest.err)
2271 ac_status=$?
2272 cat conftest.err >&AS_MESSAGE_LOG_FD
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2274 if (exit $ac_status) && test -s "$ac_outfile"; then
2275 # The compiler can only warn and ignore the option if not recognized
2276 # So say no if there are warnings other than the usual output.
2277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2280 $2=yes
2281 fi
2282 fi
2283 $RM conftest*
2284])
2285
2286if test x"[$]$2" = xyes; then
2287 m4_if([$5], , :, [$5])
2288else
2289 m4_if([$6], , :, [$6])
2290fi
2291])# _LT_COMPILER_OPTION
2292
2293# Old name:
2294AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2295dnl aclocal-1.4 backwards compatibility:
2296dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2297
2298
2299# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2300# [ACTION-SUCCESS], [ACTION-FAILURE])
2301# ----------------------------------------------------
2302# Check whether the given linker option works
2303AC_DEFUN([_LT_LINKER_OPTION],
2304[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2305m4_require([_LT_DECL_SED])dnl
2306AC_CACHE_CHECK([$1], [$2],
2307 [$2=no
2308 save_LDFLAGS="$LDFLAGS"
2309 LDFLAGS="$LDFLAGS $3"
2310 echo "$lt_simple_link_test_code" > conftest.$ac_ext
2311 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2312 # The linker can only warn and ignore the option if not recognized
2313 # So say no if there are warnings
2314 if test -s conftest.err; then
2315 # Append any errors to the config.log.
2316 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2317 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2319 if diff conftest.exp conftest.er2 >/dev/null; then
2320 $2=yes
2321 fi
2322 else
2323 $2=yes
2324 fi
2325 fi
2326 $RM -r conftest*
2327 LDFLAGS="$save_LDFLAGS"
2328])
2329
2330if test x"[$]$2" = xyes; then
2331 m4_if([$4], , :, [$4])
2332else
2333 m4_if([$5], , :, [$5])
2334fi
2335])# _LT_LINKER_OPTION
2336
2337# Old name:
2338AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2339dnl aclocal-1.4 backwards compatibility:
2340dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2341
2342
2343# LT_CMD_MAX_LEN
2344#---------------
2345AC_DEFUN([LT_CMD_MAX_LEN],
2346[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2347# find the maximum length of command line arguments
2348AC_MSG_CHECKING([the maximum length of command line arguments])
2349AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2350 i=0
2351 teststring="ABCD"
2352
2353 case $build_os in
2354 msdosdjgpp*)
2355 # On DJGPP, this test can blow up pretty badly due to problems in libc
2356 # (any single argument exceeding 2000 bytes causes a buffer overrun
2357 # during glob expansion). Even if it were fixed, the result of this
2358 # check would be larger than it should be.
2359 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2360 ;;
2361
2362 gnu*)
2363 # Under GNU Hurd, this test is not required because there is
2364 # no limit to the length of command line arguments.
2365 # Libtool will interpret -1 as no limit whatsoever
2366 lt_cv_sys_max_cmd_len=-1;
2367 ;;
2368
2369 cygwin* | mingw* | cegcc*)
2370 # On Win9x/ME, this test blows up -- it succeeds, but takes
2371 # about 5 minutes as the teststring grows exponentially.
2372 # Worse, since 9x/ME are not pre-emptively multitasking,
2373 # you end up with a "frozen" computer, even though with patience
2374 # the test eventually succeeds (with a max line length of 256k).
2375 # Instead, let's just punt: use the minimum linelength reported by
2376 # all of the supported platforms: 8192 (on NT/2K/XP).
2377 lt_cv_sys_max_cmd_len=8192;
2378 ;;
2379
2380 mint*)
2381 # On MiNT this can take a long time and run out of memory.
2382 lt_cv_sys_max_cmd_len=8192;
2383 ;;
2384
2385 amigaos*)
2386 # On AmigaOS with pdksh, this test takes hours, literally.
2387 # So we just punt and use a minimum line length of 8192.
2388 lt_cv_sys_max_cmd_len=8192;
2389 ;;
2390
2391 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2392 # This has been around since 386BSD, at least. Likely further.
2393 if test -x /sbin/sysctl; then
2394 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2395 elif test -x /usr/sbin/sysctl; then
2396 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2397 else
2398 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2399 fi
2400 # And add a safety zone
2401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2403 ;;
2404
2405 interix*)
2406 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2407 lt_cv_sys_max_cmd_len=196608
2408 ;;
2409
2410 os2*)
2411 # The test takes a long time on OS/2.
2412 lt_cv_sys_max_cmd_len=8192
2413 ;;
2414
2415 osf*)
2416 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2417 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2418 # nice to cause kernel panics so lets avoid the loop below.
2419 # First set a reasonable default.
2420 lt_cv_sys_max_cmd_len=16384
2421 #
2422 if test -x /sbin/sysconfig; then
2423 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2424 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2425 esac
2426 fi
2427 ;;
2428 sco3.2v5*)
2429 lt_cv_sys_max_cmd_len=102400
2430 ;;
2431 sysv5* | sco5v6* | sysv4.2uw2*)
2432 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2433 if test -n "$kargmax"; then
2434 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2435 else
2436 lt_cv_sys_max_cmd_len=32768
2437 fi
2438 ;;
2439 *)
2440 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2441 if test -n "$lt_cv_sys_max_cmd_len"; then
2442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2444 else
2445 # Make teststring a little bigger before we do anything with it.
2446 # a 1K string should be a reasonable start.
2447 for i in 1 2 3 4 5 6 7 8 ; do
2448 teststring=$teststring$teststring
2449 done
2450 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2451 # If test is not a shell built-in, we'll probably end up computing a
2452 # maximum length that is only half of the actual maximum length, but
2453 # we can't tell.
2454 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2455 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2456 test $i != 17 # 1/2 MB should be enough
2457 do
2458 i=`expr $i + 1`
2459 teststring=$teststring$teststring
2460 done
2461 # Only check the string length outside the loop.
2462 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2463 teststring=
2464 # Add a significant safety factor because C++ compilers can tack on
2465 # massive amounts of additional arguments before passing them to the
2466 # linker. It appears as though 1/2 is a usable value.
2467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2468 fi
2469 ;;
2470 esac
2471])
2472if test -n $lt_cv_sys_max_cmd_len ; then
2473 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2474else
2475 AC_MSG_RESULT(none)
2476fi
2477max_cmd_len=$lt_cv_sys_max_cmd_len
2478_LT_DECL([], [max_cmd_len], [0],
2479 [What is the maximum length of a command?])
2480])# LT_CMD_MAX_LEN
2481
2482# Old name:
2483AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2484dnl aclocal-1.4 backwards compatibility:
2485dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2486
2487
2488# _LT_HEADER_DLFCN
2489# ----------------
2490m4_defun([_LT_HEADER_DLFCN],
2491[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2492])# _LT_HEADER_DLFCN
2493
2494
2495# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2496# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2497# ----------------------------------------------------------------
2498m4_defun([_LT_TRY_DLOPEN_SELF],
2499[m4_require([_LT_HEADER_DLFCN])dnl
2500if test "$cross_compiling" = yes; then :
2501 [$4]
2502else
2503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2504 lt_status=$lt_dlunknown
2505 cat > conftest.$ac_ext <<_LT_EOF
2506[#line $LINENO "configure"
2507#include "confdefs.h"
2508
2509#if HAVE_DLFCN_H
2510#include <dlfcn.h>
2511#endif
2512
2513#include <stdio.h>
2514
2515#ifdef RTLD_GLOBAL
2516# define LT_DLGLOBAL RTLD_GLOBAL
2517#else
2518# ifdef DL_GLOBAL
2519# define LT_DLGLOBAL DL_GLOBAL
2520# else
2521# define LT_DLGLOBAL 0
2522# endif
2523#endif
2524
2525/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2526 find out it does not work in some platform. */
2527#ifndef LT_DLLAZY_OR_NOW
2528# ifdef RTLD_LAZY
2529# define LT_DLLAZY_OR_NOW RTLD_LAZY
2530# else
2531# ifdef DL_LAZY
2532# define LT_DLLAZY_OR_NOW DL_LAZY
2533# else
2534# ifdef RTLD_NOW
2535# define LT_DLLAZY_OR_NOW RTLD_NOW
2536# else
2537# ifdef DL_NOW
2538# define LT_DLLAZY_OR_NOW DL_NOW
2539# else
2540# define LT_DLLAZY_OR_NOW 0
2541# endif
2542# endif
2543# endif
2544# endif
2545#endif
2546
2547/* When -fvisbility=hidden is used, assume the code has been annotated
2548 correspondingly for the symbols needed. */
2549#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2550int fnord () __attribute__((visibility("default")));
2551#endif
2552
2553int fnord () { return 42; }
2554int main ()
2555{
2556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2557 int status = $lt_dlunknown;
2558
2559 if (self)
2560 {
2561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2562 else
2563 {
2564 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2565 else puts (dlerror ());
2566 }
2567 /* dlclose (self); */
2568 }
2569 else
2570 puts (dlerror ());
2571
2572 return status;
2573}]
2574_LT_EOF
2575 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2576 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2577 lt_status=$?
2578 case x$lt_status in
2579 x$lt_dlno_uscore) $1 ;;
2580 x$lt_dlneed_uscore) $2 ;;
2581 x$lt_dlunknown|x*) $3 ;;
2582 esac
2583 else :
2584 # compilation failed
2585 $3
2586 fi
2587fi
2588rm -fr conftest*
2589])# _LT_TRY_DLOPEN_SELF
2590
2591
2592# LT_SYS_DLOPEN_SELF
2593# ------------------
2594AC_DEFUN([LT_SYS_DLOPEN_SELF],
2595[m4_require([_LT_HEADER_DLFCN])dnl
2596if test "x$enable_dlopen" != xyes; then
2597 enable_dlopen=unknown
2598 enable_dlopen_self=unknown
2599 enable_dlopen_self_static=unknown
2600else
2601 lt_cv_dlopen=no
2602 lt_cv_dlopen_libs=
2603
2604 case $host_os in
2605 beos*)
2606 lt_cv_dlopen="load_add_on"
2607 lt_cv_dlopen_libs=
2608 lt_cv_dlopen_self=yes
2609 ;;
2610
2611 mingw* | pw32* | cegcc*)
2612 lt_cv_dlopen="LoadLibrary"
2613 lt_cv_dlopen_libs=
2614 ;;
2615
2616 cygwin*)
2617 lt_cv_dlopen="dlopen"
2618 lt_cv_dlopen_libs=
2619 ;;
2620
2621 darwin*)
2622 # if libdl is installed we need to link against it
2623 AC_CHECK_LIB([dl], [dlopen],
2624 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2625 lt_cv_dlopen="dyld"
2626 lt_cv_dlopen_libs=
2627 lt_cv_dlopen_self=yes
2628 ])
2629 ;;
2630
2631 *)
2632 AC_CHECK_FUNC([shl_load],
2633 [lt_cv_dlopen="shl_load"],
2634 [AC_CHECK_LIB([dld], [shl_load],
2635 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2636 [AC_CHECK_FUNC([dlopen],
2637 [lt_cv_dlopen="dlopen"],
2638 [AC_CHECK_LIB([dl], [dlopen],
2639 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2640 [AC_CHECK_LIB([svld], [dlopen],
2641 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2642 [AC_CHECK_LIB([dld], [dld_link],
2643 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2644 ])
2645 ])
2646 ])
2647 ])
2648 ])
2649 ;;
2650 esac
2651
2652 if test "x$lt_cv_dlopen" != xno; then
2653 enable_dlopen=yes
2654 else
2655 enable_dlopen=no
2656 fi
2657
2658 case $lt_cv_dlopen in
2659 dlopen)
2660 save_CPPFLAGS="$CPPFLAGS"
2661 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2662
2663 save_LDFLAGS="$LDFLAGS"
2664 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2665
2666 save_LIBS="$LIBS"
2667 LIBS="$lt_cv_dlopen_libs $LIBS"
2668
2669 AC_CACHE_CHECK([whether a program can dlopen itself],
2670 lt_cv_dlopen_self, [dnl
2671 _LT_TRY_DLOPEN_SELF(
2672 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2673 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2674 ])
2675
2676 if test "x$lt_cv_dlopen_self" = xyes; then
2677 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2678 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2679 lt_cv_dlopen_self_static, [dnl
2680 _LT_TRY_DLOPEN_SELF(
2681 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2682 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2683 ])
2684 fi
2685
2686 CPPFLAGS="$save_CPPFLAGS"
2687 LDFLAGS="$save_LDFLAGS"
2688 LIBS="$save_LIBS"
2689 ;;
2690 esac
2691
2692 case $lt_cv_dlopen_self in
2693 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2694 *) enable_dlopen_self=unknown ;;
2695 esac
2696
2697 case $lt_cv_dlopen_self_static in
2698 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2699 *) enable_dlopen_self_static=unknown ;;
2700 esac
2701fi
2702_LT_DECL([dlopen_support], [enable_dlopen], [0],
2703 [Whether dlopen is supported])
2704_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2705 [Whether dlopen of programs is supported])
2706_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2707 [Whether dlopen of statically linked programs is supported])
2708])# LT_SYS_DLOPEN_SELF
2709
2710# Old name:
2711AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2712dnl aclocal-1.4 backwards compatibility:
2713dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2714
2715
2716# _LT_COMPILER_C_O([TAGNAME])
2717# ---------------------------
2718# Check to see if options -c and -o are simultaneously supported by compiler.
2719# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2720m4_defun([_LT_COMPILER_C_O],
2721[m4_require([_LT_DECL_SED])dnl
2722m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2723m4_require([_LT_TAG_COMPILER])dnl
2724AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2725 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2726 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2727 $RM -r conftest 2>/dev/null
2728 mkdir conftest
2729 cd conftest
2730 mkdir out
2731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2732
2733 lt_compiler_flag="-o out/conftest2.$ac_objext"
2734 # Insert the option either (1) after the last *FLAGS variable, or
2735 # (2) before a word containing "conftest.", or (3) at the end.
2736 # Note that $ac_compile itself does not contain backslashes and begins
2737 # with a dollar sign (not a hyphen), so the echo should work correctly.
2738 lt_compile=`echo "$ac_compile" | $SED \
2739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2740 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2741 -e 's:$: $lt_compiler_flag:'`
2742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2743 (eval "$lt_compile" 2>out/conftest.err)
2744 ac_status=$?
2745 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2747 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2748 then
2749 # The compiler can only warn and ignore the option if not recognized
2750 # So say no if there are warnings
2751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2754 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2755 fi
2756 fi
2757 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2758 $RM conftest*
2759 # SGI C++ compiler will create directory out/ii_files/ for
2760 # template instantiation
2761 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2762 $RM out/* && rmdir out
2763 cd ..
2764 $RM -r conftest
2765 $RM conftest*
2766])
2767_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2768 [Does compiler simultaneously support -c and -o options?])
2769])# _LT_COMPILER_C_O
2770
2771
2772# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2773# ----------------------------------
2774# Check to see if we can do hard links to lock some files if needed
2775m4_defun([_LT_COMPILER_FILE_LOCKS],
2776[m4_require([_LT_ENABLE_LOCK])dnl
2777m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2778_LT_COMPILER_C_O([$1])
2779
2780hard_links="nottested"
2781if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2782 # do not overwrite the value of need_locks provided by the user
2783 AC_MSG_CHECKING([if we can lock with hard links])
2784 hard_links=yes
2785 $RM conftest*
2786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2787 touch conftest.a
2788 ln conftest.a conftest.b 2>&5 || hard_links=no
2789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2790 AC_MSG_RESULT([$hard_links])
2791 if test "$hard_links" = no; then
2792 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2793 need_locks=warn
2794 fi
2795else
2796 need_locks=no
2797fi
2798_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2799])# _LT_COMPILER_FILE_LOCKS
2800
2801
2802# _LT_CHECK_OBJDIR
2803# ----------------
2804m4_defun([_LT_CHECK_OBJDIR],
2805[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2806[rm -f .libs 2>/dev/null
2807mkdir .libs 2>/dev/null
2808if test -d .libs; then
2809 lt_cv_objdir=.libs
2810else
2811 # MS-DOS does not allow filenames that begin with a dot.
2812 lt_cv_objdir=_libs
2813fi
2814rmdir .libs 2>/dev/null])
2815objdir=$lt_cv_objdir
2816_LT_DECL([], [objdir], [0],
2817 [The name of the directory that contains temporary libtool files])dnl
2818m4_pattern_allow([LT_OBJDIR])dnl
2819AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2820 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2821])# _LT_CHECK_OBJDIR
2822
2823
2824# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2825# --------------------------------------
2826# Check hardcoding attributes.
2827m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2828[AC_MSG_CHECKING([how to hardcode library paths into programs])
2829_LT_TAGVAR(hardcode_action, $1)=
2830if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2831 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2832 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2833
2834 # We can hardcode non-existent directories.
2835 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2836 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2837 # have to relink, otherwise we might link with an installed library
2838 # when we should be linking with a yet-to-be-installed one
2839 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2840 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2841 # Linking always hardcodes the temporary library directory.
2842 _LT_TAGVAR(hardcode_action, $1)=relink
2843 else
2844 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2845 _LT_TAGVAR(hardcode_action, $1)=immediate
2846 fi
2847else
2848 # We cannot hardcode anything, or else we can only hardcode existing
2849 # directories.
2850 _LT_TAGVAR(hardcode_action, $1)=unsupported
2851fi
2852AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2853
2854if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2855 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2856 # Fast installation is not supported
2857 enable_fast_install=no
2858elif test "$shlibpath_overrides_runpath" = yes ||
2859 test "$enable_shared" = no; then
2860 # Fast installation is not necessary
2861 enable_fast_install=needless
2862fi
2863_LT_TAGDECL([], [hardcode_action], [0],
2864 [How to hardcode a shared library path into an executable])
2865])# _LT_LINKER_HARDCODE_LIBPATH
2866
2867
2868# _LT_CMD_STRIPLIB
2869# ----------------
2870m4_defun([_LT_CMD_STRIPLIB],
2871[m4_require([_LT_DECL_EGREP])
2872striplib=
2873old_striplib=
2874AC_MSG_CHECKING([whether stripping libraries is possible])
2875if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2876 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2877 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2878 AC_MSG_RESULT([yes])
2879else
2880# FIXME - insert some real tests, host_os isn't really good enough
2881 case $host_os in
2882 darwin*)
2883 if test -n "$STRIP" ; then
2884 striplib="$STRIP -x"
2885 old_striplib="$STRIP -S"
2886 AC_MSG_RESULT([yes])
2887 else
2888 AC_MSG_RESULT([no])
2889 fi
2890 ;;
2891 *)
2892 AC_MSG_RESULT([no])
2893 ;;
2894 esac
2895fi
2896_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2897_LT_DECL([], [striplib], [1])
2898])# _LT_CMD_STRIPLIB
2899
2900
2901# _LT_SYS_DYNAMIC_LINKER([TAG])
2902# -----------------------------
2903# PORTME Fill in your ld.so characteristics
2904m4_defun([_LT_SYS_DYNAMIC_LINKER],
2905[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2906m4_require([_LT_DECL_EGREP])dnl
2907m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2908m4_require([_LT_DECL_OBJDUMP])dnl
2909m4_require([_LT_DECL_SED])dnl
2910m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2911AC_MSG_CHECKING([dynamic linker characteristics])
2912m4_if([$1],
2913 [], [
2914if test "$GCC" = yes; then
2915 case $host_os in
2916 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2917 *) lt_awk_arg="/^libraries:/" ;;
2918 esac
2919 case $host_os in
2920 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2921 *) lt_sed_strip_eq="s,=/,/,g" ;;
2922 esac
2923 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2924 case $lt_search_path_spec in
2925 *\;*)
2926 # if the path contains ";" then we assume it to be the separator
2927 # otherwise default to the standard path separator (i.e. ":") - it is
2928 # assumed that no part of a normal pathname contains ";" but that should
2929 # okay in the real world where ";" in dirpaths is itself problematic.
2930 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2931 ;;
2932 *)
2933 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2934 ;;
2935 esac
2936 # Ok, now we have the path, separated by spaces, we can step through it
2937 # and add multilib dir if necessary.
2938 lt_tmp_lt_search_path_spec=
2939 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2940 for lt_sys_path in $lt_search_path_spec; do
2941 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2942 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2943 else
2944 test -d "$lt_sys_path" && \
2945 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2946 fi
2947 done
2948 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2949BEGIN {RS=" "; FS="/|\n";} {
2950 lt_foo="";
2951 lt_count=0;
2952 for (lt_i = NF; lt_i > 0; lt_i--) {
2953 if ($lt_i != "" && $lt_i != ".") {
2954 if ($lt_i == "..") {
2955 lt_count++;
2956 } else {
2957 if (lt_count == 0) {
2958 lt_foo="/" $lt_i lt_foo;
2959 } else {
2960 lt_count--;
2961 }
2962 }
2963 }
2964 }
2965 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2966 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2967}'`
2968 # AWK program above erroneously prepends '/' to C:/dos/paths
2969 # for these hosts.
2970 case $host_os in
2971 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2972 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2973 esac
2974 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2975else
2976 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2977fi])
2978library_names_spec=
2979libname_spec='lib$name'
2980soname_spec=
2981shrext_cmds=".so"
2982postinstall_cmds=
2983postuninstall_cmds=
2984finish_cmds=
2985finish_eval=
2986shlibpath_var=
2987shlibpath_overrides_runpath=unknown
2988version_type=none
2989dynamic_linker="$host_os ld.so"
2990sys_lib_dlsearch_path_spec="/lib /usr/lib"
2991need_lib_prefix=unknown
2992hardcode_into_libs=no
2993
2994# when you set need_version to no, make sure it does not cause -set_version
2995# flags to be left without arguments
2996need_version=unknown
2997
2998case $host_os in
2999aix3*)
3000 version_type=linux # correct to gnu/linux during the next big refactor
3001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3002 shlibpath_var=LIBPATH
3003
3004 # AIX 3 has no versioning support, so we append a major version to the name.
3005 soname_spec='${libname}${release}${shared_ext}$major'
3006 ;;
3007
3008aix[[4-9]]*)
3009 version_type=linux # correct to gnu/linux during the next big refactor
3010 need_lib_prefix=no
3011 need_version=no
3012 hardcode_into_libs=yes
3013 if test "$host_cpu" = ia64; then
3014 # AIX 5 supports IA64
3015 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3016 shlibpath_var=LD_LIBRARY_PATH
3017 else
3018 # With GCC up to 2.95.x, collect2 would create an import file
3019 # for dependence libraries. The import file would start with
3020 # the line `#! .'. This would cause the generated library to
3021 # depend on `.', always an invalid library. This was fixed in
3022 # development snapshots of GCC prior to 3.0.
3023 case $host_os in
3024 aix4 | aix4.[[01]] | aix4.[[01]].*)
3025 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3026 echo ' yes '
3027 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3028 :
3029 else
3030 can_build_shared=no
3031 fi
3032 ;;
3033 esac
3034 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3035 # soname into executable. Probably we can add versioning support to
3036 # collect2, so additional links can be useful in future.
3037 if test "$aix_use_runtimelinking" = yes; then
3038 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3039 # instead of lib<name>.a to let people know that these are not
3040 # typical AIX shared libraries.
3041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3042 else
3043 # We preserve .a as extension for shared libraries through AIX4.2
3044 # and later when we are not doing run time linking.
3045 library_names_spec='${libname}${release}.a $libname.a'
3046 soname_spec='${libname}${release}${shared_ext}$major'
3047 fi
3048 shlibpath_var=LIBPATH
3049 fi
3050 ;;
3051
3052amigaos*)
3053 case $host_cpu in
3054 powerpc)
3055 # Since July 2007 AmigaOS4 officially supports .so libraries.
3056 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3058 ;;
3059 m68k)
3060 library_names_spec='$libname.ixlibrary $libname.a'
3061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3062 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
3063 ;;
3064 esac
3065 ;;
3066
3067beos*)
3068 library_names_spec='${libname}${shared_ext}'
3069 dynamic_linker="$host_os ld.so"
3070 shlibpath_var=LIBRARY_PATH
3071 ;;
3072
3073bsdi[[45]]*)
3074 version_type=linux # correct to gnu/linux during the next big refactor
3075 need_version=no
3076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3077 soname_spec='${libname}${release}${shared_ext}$major'
3078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3079 shlibpath_var=LD_LIBRARY_PATH
3080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3082 # the default ld.so.conf also contains /usr/contrib/lib and
3083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3084 # libtool to hard-code these into programs
3085 ;;
3086
3087cygwin* | mingw* | pw32* | cegcc*)
3088 version_type=windows
3089 shrext_cmds=".dll"
3090 need_version=no
3091 need_lib_prefix=no
3092
3093 case $GCC,$cc_basename in
3094 yes,*)
3095 # gcc
3096 library_names_spec='$libname.dll.a'
3097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3098 postinstall_cmds='base_file=`basename \${file}`~
3099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3100 dldir=$destdir/`dirname \$dlpath`~
3101 test -d \$dldir || mkdir -p \$dldir~
3102 $install_prog $dir/$dlname \$dldir/$dlname~
3103 chmod a+x \$dldir/$dlname~
3104 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3105 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3106 fi'
3107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3108 dlpath=$dir/\$dldll~
3109 $RM \$dlpath'
3110 shlibpath_overrides_runpath=yes
3111
3112 case $host_os in
3113 cygwin*)
3114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3116m4_if([$1], [],[
3117 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3118 ;;
3119 mingw* | cegcc*)
3120 # MinGW DLLs use traditional 'lib' prefix
3121 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3122 ;;
3123 pw32*)
3124 # pw32 DLLs use 'pw' prefix rather than 'lib'
3125 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3126 ;;
3127 esac
3128 dynamic_linker='Win32 ld.exe'
3129 ;;
3130
3131 *,cl*)
3132 # Native MSVC
3133 libname_spec='$name'
3134 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3135 library_names_spec='${libname}.dll.lib'
3136
3137 case $build_os in
3138 mingw*)
3139 sys_lib_search_path_spec=
3140 lt_save_ifs=$IFS
3141 IFS=';'
3142 for lt_path in $LIB
3143 do
3144 IFS=$lt_save_ifs
3145 # Let DOS variable expansion print the short 8.3 style file name.
3146 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3147 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3148 done
3149 IFS=$lt_save_ifs
3150 # Convert to MSYS style.
3151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3152 ;;
3153 cygwin*)
3154 # Convert to unix form, then to dos form, then back to unix form
3155 # but this time dos style (no spaces!) so that the unix form looks
3156 # like /cygdrive/c/PROGRA~1:/cygdr...
3157 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3158 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3159 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3160 ;;
3161 *)
3162 sys_lib_search_path_spec="$LIB"
3163 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3164 # It is most probably a Windows format PATH.
3165 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3166 else
3167 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3168 fi
3169 # FIXME: find the short name or the path components, as spaces are
3170 # common. (e.g. "Program Files" -> "PROGRA~1")
3171 ;;
3172 esac
3173
3174 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3175 postinstall_cmds='base_file=`basename \${file}`~
3176 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3177 dldir=$destdir/`dirname \$dlpath`~
3178 test -d \$dldir || mkdir -p \$dldir~
3179 $install_prog $dir/$dlname \$dldir/$dlname'
3180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3181 dlpath=$dir/\$dldll~
3182 $RM \$dlpath'
3183 shlibpath_overrides_runpath=yes
3184 dynamic_linker='Win32 link.exe'
3185 ;;
3186
3187 *)
3188 # Assume MSVC wrapper
3189 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3190 dynamic_linker='Win32 ld.exe'
3191 ;;
3192 esac
3193 # FIXME: first we should search . and the directory the executable is in
3194 shlibpath_var=PATH
3195 ;;
3196
3197darwin* | rhapsody*)
3198 dynamic_linker="$host_os dyld"
3199 version_type=darwin
3200 need_lib_prefix=no
3201 need_version=no
3202 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3203 soname_spec='${libname}${release}${major}$shared_ext'
3204 shlibpath_overrides_runpath=yes
3205 shlibpath_var=DYLD_LIBRARY_PATH
3206 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3207m4_if([$1], [],[
3208 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3209 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3210 ;;
3211
3212dgux*)
3213 version_type=linux # correct to gnu/linux during the next big refactor
3214 need_lib_prefix=no
3215 need_version=no
3216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3217 soname_spec='${libname}${release}${shared_ext}$major'
3218 shlibpath_var=LD_LIBRARY_PATH
3219 ;;
3220
3221freebsd* | dragonfly*)
3222 # DragonFly does not have aout. When/if they implement a new
3223 # versioning mechanism, adjust this.
3224 if test -x /usr/bin/objformat; then
3225 objformat=`/usr/bin/objformat`
3226 else
3227 case $host_os in
3228 freebsd[[23]].*) objformat=aout ;;
3229 *) objformat=elf ;;
3230 esac
3231 fi
3232 version_type=freebsd-$objformat
3233 case $version_type in
3234 freebsd-elf*)
3235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3236 need_version=no
3237 need_lib_prefix=no
3238 ;;
3239 freebsd-*)
3240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3241 need_version=yes
3242 ;;
3243 esac
3244 shlibpath_var=LD_LIBRARY_PATH
3245 case $host_os in
3246 freebsd2.*)
3247 shlibpath_overrides_runpath=yes
3248 ;;
3249 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3250 shlibpath_overrides_runpath=yes
3251 hardcode_into_libs=yes
3252 ;;
3253 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3254 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3255 shlibpath_overrides_runpath=no
3256 hardcode_into_libs=yes
3257 ;;
3258 *) # from 4.6 on, and DragonFly
3259 shlibpath_overrides_runpath=yes
3260 hardcode_into_libs=yes
3261 ;;
3262 esac
3263 ;;
3264
3265gnu*)
3266 version_type=linux # correct to gnu/linux during the next big refactor
3267 need_lib_prefix=no
3268 need_version=no
3269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3270 soname_spec='${libname}${release}${shared_ext}$major'
3271 shlibpath_var=LD_LIBRARY_PATH
3272 shlibpath_overrides_runpath=no
3273 hardcode_into_libs=yes
3274 ;;
3275
3276haiku*)
3277 version_type=linux # correct to gnu/linux during the next big refactor
3278 need_lib_prefix=no
3279 need_version=no
3280 dynamic_linker="$host_os runtime_loader"
3281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3282 soname_spec='${libname}${release}${shared_ext}$major'
3283 shlibpath_var=LIBRARY_PATH
3284 shlibpath_overrides_runpath=yes
3285 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3286 hardcode_into_libs=yes
3287 ;;
3288
3289hpux9* | hpux10* | hpux11*)
3290 # Give a soname corresponding to the major version so that dld.sl refuses to
3291 # link against other versions.
3292 version_type=sunos
3293 need_lib_prefix=no
3294 need_version=no
3295 case $host_cpu in
3296 ia64*)
3297 shrext_cmds='.so'
3298 hardcode_into_libs=yes
3299 dynamic_linker="$host_os dld.so"
3300 shlibpath_var=LD_LIBRARY_PATH
3301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3303 soname_spec='${libname}${release}${shared_ext}$major'
3304 if test "X$HPUX_IA64_MODE" = X32; then
3305 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3306 else
3307 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3308 fi
3309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3310 ;;
3311 hppa*64*)
3312 shrext_cmds='.sl'
3313 hardcode_into_libs=yes
3314 dynamic_linker="$host_os dld.sl"
3315 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3318 soname_spec='${libname}${release}${shared_ext}$major'
3319 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3321 ;;
3322 *)
3323 shrext_cmds='.sl'
3324 dynamic_linker="$host_os dld.sl"
3325 shlibpath_var=SHLIB_PATH
3326 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3328 soname_spec='${libname}${release}${shared_ext}$major'
3329 ;;
3330 esac
3331 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3332 postinstall_cmds='chmod 555 $lib'
3333 # or fails outright, so override atomically:
3334 install_override_mode=555
3335 ;;
3336
3337interix[[3-9]]*)
3338 version_type=linux # correct to gnu/linux during the next big refactor
3339 need_lib_prefix=no
3340 need_version=no
3341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3342 soname_spec='${libname}${release}${shared_ext}$major'
3343 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3344 shlibpath_var=LD_LIBRARY_PATH
3345 shlibpath_overrides_runpath=no
3346 hardcode_into_libs=yes
3347 ;;
3348
3349irix5* | irix6* | nonstopux*)
3350 case $host_os in
3351 nonstopux*) version_type=nonstopux ;;
3352 *)
3353 if test "$lt_cv_prog_gnu_ld" = yes; then
3354 version_type=linux # correct to gnu/linux during the next big refactor
3355 else
3356 version_type=irix
3357 fi ;;
3358 esac
3359 need_lib_prefix=no
3360 need_version=no
3361 soname_spec='${libname}${release}${shared_ext}$major'
3362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3363 case $host_os in
3364 irix5* | nonstopux*)
3365 libsuff= shlibsuff=
3366 ;;
3367 *)
3368 case $LD in # libtool.m4 will add one of these switches to LD
3369 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3370 libsuff= shlibsuff= libmagic=32-bit;;
3371 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3372 libsuff=32 shlibsuff=N32 libmagic=N32;;
3373 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3374 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3375 *) libsuff= shlibsuff= libmagic=never-match;;
3376 esac
3377 ;;
3378 esac
3379 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3380 shlibpath_overrides_runpath=no
3381 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3382 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3383 hardcode_into_libs=yes
3384 ;;
3385
3386# No shared lib support for Linux oldld, aout, or coff.
3387linux*oldld* | linux*aout* | linux*coff*)
3388 dynamic_linker=no
3389 ;;
3390
3391# This must be glibc/ELF.
3392linux* | k*bsd*-gnu | kopensolaris*-gnu)
3393 version_type=linux # correct to gnu/linux during the next big refactor
3394 need_lib_prefix=no
3395 need_version=no
3396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3397 soname_spec='${libname}${release}${shared_ext}$major'
3398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3399 shlibpath_var=LD_LIBRARY_PATH
3400 shlibpath_overrides_runpath=no
3401
3402 # Some binutils ld are patched to set DT_RUNPATH
3403 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3404 [lt_cv_shlibpath_overrides_runpath=no
3405 save_LDFLAGS=$LDFLAGS
3406 save_libdir=$libdir
3407 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3408 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3409 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3410 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3411 [lt_cv_shlibpath_overrides_runpath=yes])])
3412 LDFLAGS=$save_LDFLAGS
3413 libdir=$save_libdir
3414 ])
3415 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3416
3417 # This implies no fast_install, which is unacceptable.
3418 # Some rework will be needed to allow for fast_install
3419 # before this can be enabled.
3420 hardcode_into_libs=yes
3421
3422 # Append ld.so.conf contents to the search path
3423 if test -f /etc/ld.so.conf; then
3424 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
3425 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3426 fi
3427
3428 # We used to test for /lib/ld.so.1 and disable shared libraries on
3429 # powerpc, because MkLinux only supported shared libraries with the
3430 # GNU dynamic linker. Since this was broken with cross compilers,
3431 # most powerpc-linux boxes support dynamic linking these days and
3432 # people can always --disable-shared, the test was removed, and we
3433 # assume the GNU/Linux dynamic linker is in use.
3434 dynamic_linker='GNU/Linux ld.so'
3435 ;;
3436
3437netbsdelf*-gnu)
3438 version_type=linux
3439 need_lib_prefix=no
3440 need_version=no
3441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3442 soname_spec='${libname}${release}${shared_ext}$major'
3443 shlibpath_var=LD_LIBRARY_PATH
3444 shlibpath_overrides_runpath=no
3445 hardcode_into_libs=yes
3446 dynamic_linker='NetBSD ld.elf_so'
3447 ;;
3448
3449netbsd*)
3450 version_type=sunos
3451 need_lib_prefix=no
3452 need_version=no
3453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3456 dynamic_linker='NetBSD (a.out) ld.so'
3457 else
3458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3459 soname_spec='${libname}${release}${shared_ext}$major'
3460 dynamic_linker='NetBSD ld.elf_so'
3461 fi
3462 shlibpath_var=LD_LIBRARY_PATH
3463 shlibpath_overrides_runpath=yes
3464 hardcode_into_libs=yes
3465 ;;
3466
3467newsos6)
3468 version_type=linux # correct to gnu/linux during the next big refactor
3469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3470 shlibpath_var=LD_LIBRARY_PATH
3471 shlibpath_overrides_runpath=yes
3472 ;;
3473
3474*nto* | *qnx*)
3475 version_type=qnx
3476 need_lib_prefix=no
3477 need_version=no
3478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3479 soname_spec='${libname}${release}${shared_ext}$major'
3480 shlibpath_var=LD_LIBRARY_PATH
3481 shlibpath_overrides_runpath=no
3482 hardcode_into_libs=yes
3483 dynamic_linker='ldqnx.so'
3484 ;;
3485
3486openbsd*)
3487 version_type=sunos
3488 sys_lib_dlsearch_path_spec="/usr/lib"
3489 need_lib_prefix=no
3490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3491 case $host_os in
3492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3493 *) need_version=no ;;
3494 esac
3495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3497 shlibpath_var=LD_LIBRARY_PATH
3498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3499 case $host_os in
3500 openbsd2.[[89]] | openbsd2.[[89]].*)
3501 shlibpath_overrides_runpath=no
3502 ;;
3503 *)
3504 shlibpath_overrides_runpath=yes
3505 ;;
3506 esac
3507 else
3508 shlibpath_overrides_runpath=yes
3509 fi
3510 ;;
3511
3512os2*)
3513 libname_spec='$name'
3514 shrext_cmds=".dll"
3515 need_lib_prefix=no
3516 library_names_spec='$libname${shared_ext} $libname.a'
3517 dynamic_linker='OS/2 ld.exe'
3518 shlibpath_var=LIBPATH
3519 ;;
3520
3521osf3* | osf4* | osf5*)
3522 version_type=osf
3523 need_lib_prefix=no
3524 need_version=no
3525 soname_spec='${libname}${release}${shared_ext}$major'
3526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3527 shlibpath_var=LD_LIBRARY_PATH
3528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3530 ;;
3531
3532rdos*)
3533 dynamic_linker=no
3534 ;;
3535
3536solaris*)
3537 version_type=linux # correct to gnu/linux during the next big refactor
3538 need_lib_prefix=no
3539 need_version=no
3540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3541 soname_spec='${libname}${release}${shared_ext}$major'
3542 shlibpath_var=LD_LIBRARY_PATH
3543 shlibpath_overrides_runpath=yes
3544 hardcode_into_libs=yes
3545 # ldd complains unless libraries are executable
3546 postinstall_cmds='chmod +x $lib'
3547 ;;
3548
3549sunos4*)
3550 version_type=sunos
3551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3553 shlibpath_var=LD_LIBRARY_PATH
3554 shlibpath_overrides_runpath=yes
3555 if test "$with_gnu_ld" = yes; then
3556 need_lib_prefix=no
3557 fi
3558 need_version=yes
3559 ;;
3560
3561sysv4 | sysv4.3*)
3562 version_type=linux # correct to gnu/linux during the next big refactor
3563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3564 soname_spec='${libname}${release}${shared_ext}$major'
3565 shlibpath_var=LD_LIBRARY_PATH
3566 case $host_vendor in
3567 sni)
3568 shlibpath_overrides_runpath=no
3569 need_lib_prefix=no
3570 runpath_var=LD_RUN_PATH
3571 ;;
3572 siemens)
3573 need_lib_prefix=no
3574 ;;
3575 motorola)
3576 need_lib_prefix=no
3577 need_version=no
3578 shlibpath_overrides_runpath=no
3579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3580 ;;
3581 esac
3582 ;;
3583
3584sysv4*MP*)
3585 if test -d /usr/nec ;then
3586 version_type=linux # correct to gnu/linux during the next big refactor
3587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3588 soname_spec='$libname${shared_ext}.$major'
3589 shlibpath_var=LD_LIBRARY_PATH
3590 fi
3591 ;;
3592
3593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3594 version_type=freebsd-elf
3595 need_lib_prefix=no
3596 need_version=no
3597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3598 soname_spec='${libname}${release}${shared_ext}$major'
3599 shlibpath_var=LD_LIBRARY_PATH
3600 shlibpath_overrides_runpath=yes
3601 hardcode_into_libs=yes
3602 if test "$with_gnu_ld" = yes; then
3603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3604 else
3605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3606 case $host_os in
3607 sco3.2v5*)
3608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3609 ;;
3610 esac
3611 fi
3612 sys_lib_dlsearch_path_spec='/usr/lib'
3613 ;;
3614
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches