Codebase list virt-viewer / aa8c4e9
Merge commit 'upstream/0.2.1' Guido Günther 14 years ago
38 changed file(s) with 13184 addition(s) and 8932 deletion(s). Raw diff Collapse all Expand all
1414
1515 ...send patches to get your name here...
1616
17 The Translation team are listed in the .po files for their
18 languages under the po/ directory.
19
20
1721 -- End
0 2008-03-10 "Richard W.M. Jones" <rjones@redhat.com>
1
0 2010-01-13 raven <raven@fedoraproject.org>
1
2 * po/pl.po:
3 Sending translation for Polish
4 [d114aac4cfb8] [tip]
5
6 2010-01-12 "Daniel P. Berrange <berrange@redhat.com>
7
8 * src/viewer.c:
9 Add message dialog displays for important error scenarios
10 [6d1f30e5fb71]
11
12 * src/auth.glade:
13 Fix warning with default widget focus in auth dialog
14 [e0e91e221add]
15
16 * src/viewer.c:
17 Add dialog to alert user to unsuccessful authentication & retry
18 Alert user if VNC server has no compatible auth methods Support VNC
19 bell & cut text events
20 [f098a86755a7]
21
22 * configure.ac:
23 Turn on automake's silent build rules if available
24 [d388340febbc]
25
26 * src/main.c, src/viewer.c:
27 Various cleanups for Glib/GTK and BZ 474213
28 [c13f1d31eab7]
29
30 2010-01-11 raven <raven@fedoraproject.org>
31
32 * po/pl.po:
33 Sending translation for Polish
34 [31af732a9a55]
35
36 2010-01-11 "Daniel P. Berrange <berrange@redhat.com>
37
38 * .hgignore, mingw32-virt-viewer.spec.in, po/LINGUAS, po/virt-
39 viewer.pot, src/about.glade, virt-viewer.spec.in:
40 Add 'pl' to LINGUAS. Remove accidentally committed .pot file and add
41 it to .hgignore. Add RPM specfile magic for translations. Fix typo
42 in about.glade URL
43 [09c9db915104]
44
45 2010-01-11 raven <raven@fedoraproject.org>
46
47 * po/pl.po, po/virt-viewer.pot:
48 Sending translation for po/pl.po
49 [affb21844c39]
50
51 2010-01-11 "Daniel P. Berrange <berrange@redhat.com>
52
53 * .hgignore, Makefile.am, autogen.sh, configure.ac, intltool-
54 extract.in, intltool-merge.in, intltool-update.in, po/LINGUAS,
55 po/POTFILES.in, src/Makefile.am, src/main.c:
56 Add support for i18n of the UI
57
58 Add all the boilerplate code required for doing i18n of the UI. No
59 translations available yet though
60 [07db22b2f766]
61
62 2009-08-15 "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
63
64 * src/util.h:
65 viewer: fix build on 'old' GTK2
66
67 Debian lenny has gtk2 2.12.12, which is missing
68 gtk_widget_get_window. Provide our own function if GTK2 <= 2.12 .
69
70 Highly inspired from: http://osdir.com/ml/svn-commits-
71 list/2009-08/msg00725.html
72 [e05cd5be9c36]
73
74 2009-07-29 "Daniel P. Berrange <berrange@redhat.com>
75
76 * .hgtags:
77 Added tag release-0.2.0 for changeset b38a2c67ebfd
78 [99ba88ee7820]
79
80 * NEWS, configure.ac, virt-viewer.spec.in:
81 Update for 0.2.0 release
82 [b38a2c67ebfd] [release-0.2.0]
83
84 * plugin/Makefile.am:
85 Disable compile errors in plugin till we figure out what's up with
86 the header files
87 [f2fabc428441]
88
89 * mingw32-virt-viewer.spec.in, virt-viewer.spec.in:
90 Update deps in rpm
91 [d5ef17c7856e]
92
93 * src/viewer.c:
94 Ensure VNC display is centered if being scaled
95 [f5e758b7a271]
96
97 * src/auth.glade:
98 Ensure password is not echoed
99 [e826ca02a7d4]
100
101 * src/auth.c, src/auth.glade, src/auth.h, src/util.h, src/viewer.c:
102 Add support for libvirt graphical auth
103 [a8e92767179f]
104
105 * plugin/Makefile.am, src/Makefile.am, src/auth.c, src/auth.h,
106 src/events.c, src/events.h, src/util.c, src/util.h, src/viewer.c,
107 src/viewer.h:
108 Pull auth code out into separate file
109 [1471c65b8280]
110
111 2009-07-28 "Daniel P. Berrange <berrange@redhat.com>
112
113 * plugin/Makefile.am, plugin/npshell.c, plugin/npupp.h,
114 plugin/test.html, plugin/virt-viewer-plugin.c, plugin/virt-viewer-
115 plugin.h, src/viewer.c:
116 Make plugin work again
117 [68646d3db76d]
118
119 * src/viewer.c:
120 Add compatability logic for drivers without domain event support
121 [c29276a0f2ec]
122
123 * src/viewer.c:
124 Fix mouse / key grab vs modifier disabling mixup
125 [6cdf7dfa223d]
126
127 * configure.ac, mingw32-virt-viewer.spec.in, plugin/Makefile.am,
128 src/Makefile.am, src/events.c, src/events.h, src/viewer.c, virt-
129 viewer.spec.in:
130 Pull glib event loop integration into tree until libvirt-glib is
131 more mature
132 [dd92609022ac]
133
134 * src/viewer.c, src/viewer.glade:
135 Re-write the way scaling/resizing works
136
137 * Default to auto-resize mode where we try to fit the VNC widget 1:1
138 in the main window
139 * If local desktop is not large enough for VNC widget, scale down,
140 maintaining aspect ratio
141 * Allow the user to turn off auto-resize and have total manual control
142 over window size
143 * Always scale the display in fullscreen mode
144 [3521ee2a63e6]
145
146 * plugin/virt-viewer-plugin.c, src/main.c, src/viewer.c, src/viewer.h:
147 Add a --debug command line flag
148 [1a3b36e0b6f2]
149
150 * src/viewer.c:
151 Fix waiting for a VM that does not initially exist
152 [da53b8f99cdf]
153
154 * plugin/Makefile.am, plugin/npshell.c, src/Makefile.am, src/main.c,
155 src/viewer.c:
156 Move most of viewer code out into viewer.c
157 [8f237adf2792]
158
159 2008-11-28 "Daniel P. Berrange <berrange@redhat.com>
160
161 * autobuild.sh, configure.ac, mingw32-virt-viewer.spec.in, virt-
162 viewer.spec.in:
163 Initial mingw32 build support
164 [92da1556bbf9]
165
166 * src/main.c:
167 Use g_strdup & friends
168 [029b506ca4cf]
169
170 * configure.ac, src/main.c, src/usleep.c:
171 Remove unused usleep code
172 [ac45bee371c8]
173
174 2008-11-26 "Daniel P. Berrange <berrange@redhat.com>
175
176 * .hgignore, autogen.sh, configure.ac, man/virt-viewer.pod,
177 plugin/Makefile.am, plugin/npshell.c, plugin/virt-viewer-plugin.c,
178 plugin/virt-viewer-plugin.h, src/Makefile.am, src/about.glade,
179 src/auth.glade, src/main.c, src/viewer.glade, src/viewer.h, virt-
180 viewer.spec.in:
181 Re-write completely to use Glade, libvirt events, and libvirt-glib
182 integration
183 [8e98b3d44c8d]
184
185 2008-11-03 "Daniel P. Berrange <berrange@redhat.com>
186
187 * plugin/Makefile.am:
188 Fix rule to use DESTDIR on plugin install
189 [e70af57502f9]
190
191 2008-10-10 "Richard W.M. Jones <rjones@redhat.com>
192
193 * .hgignore, ChangeLog, configure.ac, src/Makefile.am, src/main.c,
194 src/usleep.c:
2195 * configure.ac, src/Makefile.am, src/main.c, src/usleep.c: Support
3196 for building on Windows using MinGW compiler toolchain (or
4197 for cross-compiling using the same).
5198
6 * .hgignore: Ignore some generated files.
199 * .hgignore: Ignore some generated files.
200 [2cce513346ae]
201
202 2008-06-17 "Daniel P. Berrange <berrange@redhat.com>
203
204 * src/main.c:
205 Add error message when conecting to inactive VM (Hiroyuki Kaguchi)
206 [57d1fb020d57]
207
208 2008-04-27 "Daniel P. Berrange <berrange@redhat.com>
209
210 * configure.ac, src/main.c:
211 Use GTK apis for option parsing (Guido G\374nther)
212 [5299a3aaebb5]
213
214 2008-04-23 "Daniel P. Berrange <berrange@redhat.com>
215
216 * AUTHORS, src/main.c:
217 Avoid caching inactive domain to workaround issues with older XenD
218 (Hiroyuki Kaguchi)
219 [7f20b8bb6abd]
220
221 2008-04-22 "Daniel P. Berrange <berrange@redhat.com>
222
223 * AUTHORS, src/main.c:
224 Call gtk_init early to ensure it grabs args like --sync
225 [5f14440985f8]
226
227 2008-04-08 "Daniel P. Berrange <berrange@redhat.com>
228
229 * man/virt-viewer.pod:
230 Fix manpage typo
231 [e2ee322e3d1a]
232
233 2008-03-21 "Daniel P. Berrange <berrange@redhat.com>
234
235 * configure.ac:
236 Bump GTK dep to 2.10.0
237 [d8cf9d390762]
238
239 2008-03-10 "Daniel P. Berrange <berrange@redhat.com>
240
241 * .hgtags:
242 Added tag release-0.0.3 for changeset 05f9c167354b
243 [5d426425c850]
244
245 * ChangeLog, NEWS:
246 Refresh news / changelog for release
247 [05f9c167354b] [release-0.0.3]
7248
8249 2008-03-09 "Daniel P. Berrange <berrange@redhat.com>
9250
10251 * autobuild.sh, configure.ac, virt-viewer.spec.in:
11252 Added -plugin sub RPM, disabled by default, except for autobuild
12 [efcac0fc56b5] [tip]
253 [efcac0fc56b5]
13254
14255 2008-03-08 "Daniel P. Berrange <berrange@redhat.com>
15256
114355 * Merge
115356 [c40130b3a7ec]
116357
117 * src/main.c:
118 Added initial ability to connect remote hosts
119 [ac9cae161efb]
120
121 * src/main.c:
122 Disable debug flag
123 [61d8448ba53f]
124
125 * src/main.c:
126 Fixed delete-event handler args
127 [21f7b4c5c93c]
128
129358 2007-08-15 "Daniel P. Berrange <berrange@redhat.com>
130359
131360 * COPYING, INSTALL:
132361 Added COPYING/INSTALL files
133362 [1f83ef35bb59]
363
364 2007-08-27 "Daniel P. Berrange <berrange@redhat.com>
365
366 * src/main.c:
367 Added initial ability to connect remote hosts
368 [ac9cae161efb]
369
370 * src/main.c:
371 Disable debug flag
372 [61d8448ba53f]
373
374 * src/main.c:
375 Fixed delete-event handler args
376 [21f7b4c5c93c]
377
378 2007-08-15 "Daniel P. Berrange <berrange@redhat.com>
134379
135380 * .hgtags:
136381 Added tag release-0.0.1 for changeset 2b78ab2d18ce
00
1 SUBDIRS = src man plugin
1 ACLOCAL_AMFLAGS = -I m4
22
3 EXTRA_DIST = @PACKAGE@.spec
3 SUBDIRS = src man plugin po
44
5 DISTCLEAN_FILES = @PACKAGE@.spec
5 EXTRA_DIST = @PACKAGE@.spec \
6 intltool-extract.in \
7 intltool-merge.in \
8 intltool-update.in
9
10 DISTCLEAN_FILES = @PACKAGE@.spec \
11 intltool-extract \
12 intltool-merge \
13 intltool-update
14
15 MAINTAINERCLEANFILES = \
16 m4/libtool.m4 \
17 m4/lt~obsolete.m4 \
18 m4/ltoptions.m4 \
19 m4/ltsugar.m4 \
20 m4/ltversion.m4
0 # Makefile.in generated by automake 1.11 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4040 COPYING ChangeLog INSTALL NEWS compile config.guess config.sub \
4141 depcomp install-sh ltmain.sh missing
4242 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
44 $(top_srcdir)/configure.ac
43 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
44 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
45 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
46 $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
4547 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4648 $(ACLOCAL_M4)
4749 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
5052 CONFIG_HEADER = config.h
5153 CONFIG_CLEAN_FILES = virt-viewer.spec mingw32-virt-viewer.spec
5254 CONFIG_CLEAN_VPATH_FILES =
55 AM_V_GEN = $(am__v_GEN_$(V))
56 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
57 am__v_GEN_0 = @echo " GEN " $@;
58 AM_V_at = $(am__v_at_$(V))
59 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
60 am__v_at_0 = @
5361 SOURCES =
5462 DIST_SOURCES =
5563 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
104112 distuninstallcheck_listfiles = find . -type f -print
105113 distcleancheck_listfiles = find . -type f -print
106114 ACLOCAL = @ACLOCAL@
115 ALL_LINGUAS = @ALL_LINGUAS@
107116 AMTAR = @AMTAR@
117 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
108118 AR = @AR@
109119 AUTOCONF = @AUTOCONF@
110120 AUTOHEADER = @AUTOHEADER@
111121 AUTOMAKE = @AUTOMAKE@
112122 AWK = @AWK@
123 CATALOGS = @CATALOGS@
124 CATOBJEXT = @CATOBJEXT@
113125 CC = @CC@
114126 CCDEPMODE = @CCDEPMODE@
115127 CFLAGS = @CFLAGS@
116128 CPP = @CPP@
117129 CPPFLAGS = @CPPFLAGS@
118130 CYGPATH_W = @CYGPATH_W@
131 DATADIRNAME = @DATADIRNAME@
119132 DEFS = @DEFS@
120133 DEPDIR = @DEPDIR@
121134 DSYMUTIL = @DSYMUTIL@
128141 FGREP = @FGREP@
129142 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
130143 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
144 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
145 GMOFILES = @GMOFILES@
146 GMSGFMT = @GMSGFMT@
131147 GREP = @GREP@
132148 GTK2_CFLAGS = @GTK2_CFLAGS@
133149 GTK2_LIBS = @GTK2_LIBS@
138154 INSTALL_PROGRAM = @INSTALL_PROGRAM@
139155 INSTALL_SCRIPT = @INSTALL_SCRIPT@
140156 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
157 INSTOBJEXT = @INSTOBJEXT@
158 INTLLIBS = @INTLLIBS@
159 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
160 INTLTOOL_MERGE = @INTLTOOL_MERGE@
161 INTLTOOL_PERL = @INTLTOOL_PERL@
162 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
141163 LD = @LD@
142164 LDFLAGS = @LDFLAGS@
143165 LIBGLADE2_CFLAGS = @LIBGLADE2_CFLAGS@
154176 LTLIBOBJS = @LTLIBOBJS@
155177 MAKEINFO = @MAKEINFO@
156178 MKDIR_P = @MKDIR_P@
179 MKINSTALLDIRS = @MKINSTALLDIRS@
157180 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
158181 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
182 MSGFMT = @MSGFMT@
183 MSGFMT_OPTS = @MSGFMT_OPTS@
184 MSGMERGE = @MSGMERGE@
159185 NM = @NM@
160186 NMEDIT = @NMEDIT@
161187 NSPR_CFLAGS = @NSPR_CFLAGS@
172198 PACKAGE_VERSION = @PACKAGE_VERSION@
173199 PATH_SEPARATOR = @PATH_SEPARATOR@
174200 PKG_CONFIG = @PKG_CONFIG@
201 POFILES = @POFILES@
202 POSUB = @POSUB@
203 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
204 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
175205 RANLIB = @RANLIB@
176206 SED = @SED@
177207 SET_MAKE = @SET_MAKE@
178208 SHELL = @SHELL@
179209 STRIP = @STRIP@
210 USE_NLS = @USE_NLS@
180211 VERSION = @VERSION@
181212 WARN_CFLAGS = @WARN_CFLAGS@
213 XGETTEXT = @XGETTEXT@
182214 abs_builddir = @abs_builddir@
183215 abs_srcdir = @abs_srcdir@
184216 abs_top_builddir = @abs_top_builddir@
231263 top_build_prefix = @top_build_prefix@
232264 top_builddir = @top_builddir@
233265 top_srcdir = @top_srcdir@
234 SUBDIRS = src man plugin
235 EXTRA_DIST = @PACKAGE@.spec
236 DISTCLEAN_FILES = @PACKAGE@.spec
266 ACLOCAL_AMFLAGS = -I m4
267 SUBDIRS = src man plugin po
268 EXTRA_DIST = @PACKAGE@.spec \
269 intltool-extract.in \
270 intltool-merge.in \
271 intltool-update.in
272
273 DISTCLEAN_FILES = @PACKAGE@.spec \
274 intltool-extract \
275 intltool-merge \
276 intltool-update
277
278 MAINTAINERCLEANFILES = \
279 m4/libtool.m4 \
280 m4/lt~obsolete.m4 \
281 m4/ltoptions.m4 \
282 m4/ltsugar.m4 \
283 m4/ltversion.m4
284
237285 all: config.h
238286 $(MAKE) $(AM_MAKEFLAGS) all-recursive
239287
310358 # (which will cause the Makefiles to be regenerated when you run `make');
311359 # (2) otherwise, pass the desired values on the `make' command line.
312360 $(RECURSIVE_TARGETS):
313 @failcom='exit 1'; \
361 @fail= failcom='exit 1'; \
314362 for f in x $$MAKEFLAGS; do \
315363 case $$f in \
316364 *=* | --[!k]*);; \
335383 fi; test -z "$$fail"
336384
337385 $(RECURSIVE_CLEAN_TARGETS):
338 @failcom='exit 1'; \
386 @fail= failcom='exit 1'; \
339387 for f in x $$MAKEFLAGS; do \
340388 case $$f in \
341389 *=* | --[!k]*);; \
499547 fi; \
500548 done
501549 -test -n "$(am__skip_mode_fix)" \
502 || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
550 || find "$(distdir)" -type d ! -perm -755 \
551 -exec chmod u+rwx,go+rx {} \; -o \
503552 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
504553 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
505554 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
543592 distcheck: dist
544593 case '$(DIST_ARCHIVES)' in \
545594 *.tar.gz*) \
546 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
595 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
547596 *.tar.bz2*) \
548 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
597 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
549598 *.tar.lzma*) \
550 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
599 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
551600 *.tar.xz*) \
552601 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
553602 *.tar.Z*) \
554603 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
555604 *.shar.gz*) \
556 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
605 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
557606 *.zip*) \
558607 unzip $(distdir).zip ;;\
559608 esac
642691 maintainer-clean-generic:
643692 @echo "This command is intended for maintainers to use"
644693 @echo "it deletes files that may require special tools to rebuild."
694 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
645695 clean: clean-recursive
646696
647697 clean-am: clean-generic clean-libtool mostlyclean-am
00 Virt Viewer News
11 ================
2
3 0.2.1: Jan 15, 2010
4 -------------------
5
6 - Add infrastructure for translation
7 - Display dialog to user if authentication fails
8 - Display dialog to user if domain cannot be found
9 - GTK/GLib best practice cleanups
10 - Add Polish translation
211
312 0.2.0: July 20, 2009
413 --------------------
44 display. At this time is supports guest OS using the VNC
55 protocol. Further protocols may be supported in the future
66 as user demand dicatates. The viewer can connect directly
7 to both local and remotely hosted guest OS, optionally
7 to both local and remotely hosted guest OS, optionally
88 using SSL/TLS encryption.
99
1010 Virt Viewer uses the GTK-VNC widget to provide a display
2222
2323 http://virt-manager.org/
2424
25 Feedback should be directed to the mailing list at
25 Feedback should be directed to the mailing list at
2626
2727 http://virt-manager.org/mailinglist.html
2828
0 # generated automatically by aclocal 1.11 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
33 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1818 If you have problems, you may need to regenerate the build system entirely.
1919 To do so, use the procedure documented by the package, typically `autoreconf'.])])
2020
21 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
22 #
23 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24 # 2006, 2007, 2008 Free Software Foundation, Inc.
25 # Written by Gordon Matzigkeit, 1996
26 #
27 # This file is free software; the Free Software Foundation gives
28 # unlimited permission to copy and/or distribute it, with or without
29 # modifications, as long as this notice is preserved.
30
31 m4_define([_LT_COPYING], [dnl
32 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33 # 2006, 2007, 2008 Free Software Foundation, Inc.
34 # Written by Gordon Matzigkeit, 1996
35 #
36 # This file is part of GNU Libtool.
37 #
38 # GNU Libtool is free software; you can redistribute it and/or
39 # modify it under the terms of the GNU General Public License as
40 # published by the Free Software Foundation; either version 2 of
41 # the License, or (at your option) any later version.
42 #
43 # As a special exception to the GNU General Public License,
44 # if you distribute this file as part of a program or library that
45 # is built using GNU Libtool, you may include this file under the
46 # same distribution terms that you use for the rest of that program.
47 #
48 # GNU Libtool is distributed in the hope that it will be useful,
49 # but WITHOUT ANY WARRANTY; without even the implied warranty of
50 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 # GNU General Public License for more details.
52 #
53 # You should have received a copy of the GNU General Public License
54 # along with GNU Libtool; see the file COPYING. If not, a copy
55 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
56 # obtained by writing to the Free Software Foundation, Inc.,
57 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
22 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
23 #
24 # This file is free software, distributed under the terms of the GNU
25 # General Public License. As a special exception to the GNU General
26 # Public License, this file may be distributed as part of a program
27 # that contains a configuration script generated by Autoconf, under
28 # the same distribution terms as the rest of that program.
29 #
30 # This file can be copied and used freely without restrictions. It can
31 # be used in projects which are not available under the GNU Public License
32 # but which still want to provide support for the GNU gettext functionality.
33 #
34 # Macro to add for using GNU gettext.
35 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
36 #
37 # Modified to never use included libintl.
38 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
39 #
40 # Major rework to remove unused code
41 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
42 #
43 # Added better handling of ALL_LINGUAS from GNU gettext version
44 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
45 #
46 # Modified to require ngettext
47 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
48 #
49 # We need this here as well, since someone might use autoconf-2.5x
50 # to configure GLib then an older version to configure a package
51 # using AM_GLIB_GNU_GETTEXT
52 AC_PREREQ(2.53)
53
54 dnl
55 dnl We go to great lengths to make sure that aclocal won't
56 dnl try to pull in the installed version of these macros
57 dnl when running aclocal in the glib directory.
58 dnl
59 m4_copy([AC_DEFUN],[glib_DEFUN])
60 m4_copy([AC_REQUIRE],[glib_REQUIRE])
61 dnl
62 dnl At the end, if we're not within glib, we'll define the public
63 dnl definitions in terms of our private definitions.
64 dnl
65
66 # GLIB_LC_MESSAGES
67 #--------------------
68 glib_DEFUN([GLIB_LC_MESSAGES],
69 [AC_CHECK_HEADERS([locale.h])
70 if test $ac_cv_header_locale_h = yes; then
71 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
72 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
73 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
74 if test $am_cv_val_LC_MESSAGES = yes; then
75 AC_DEFINE(HAVE_LC_MESSAGES, 1,
76 [Define if your <locale.h> file defines LC_MESSAGES.])
77 fi
78 fi])
79
80 # GLIB_PATH_PROG_WITH_TEST
81 #----------------------------
82 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
83 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
84 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
85 [# Extract the first word of "$2", so it can be a program name with args.
86 set dummy $2; ac_word=[$]2
87 AC_MSG_CHECKING([for $ac_word])
88 AC_CACHE_VAL(ac_cv_path_$1,
89 [case "[$]$1" in
90 /*)
91 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
92 ;;
93 *)
94 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
95 for ac_dir in ifelse([$5], , $PATH, [$5]); do
96 test -z "$ac_dir" && ac_dir=.
97 if test -f $ac_dir/$ac_word; then
98 if [$3]; then
99 ac_cv_path_$1="$ac_dir/$ac_word"
100 break
101 fi
102 fi
103 done
104 IFS="$ac_save_ifs"
105 dnl If no 4th arg is given, leave the cache variable unset,
106 dnl so AC_PATH_PROGS will keep looking.
107 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
108 ])dnl
109 ;;
110 esac])dnl
111 $1="$ac_cv_path_$1"
112 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
113 AC_MSG_RESULT([$]$1)
114 else
115 AC_MSG_RESULT(no)
116 fi
117 AC_SUBST($1)dnl
58118 ])
59119
60 # serial 56 LT_INIT
61
62
63 # LT_PREREQ(VERSION)
64 # ------------------
65 # Complain and exit if this libtool version is less that VERSION.
66 m4_defun([LT_PREREQ],
67 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
68 [m4_default([$3],
69 [m4_fatal([Libtool version $1 or higher is required],
70 63)])],
71 [$2])])
72
73
74 # _LT_CHECK_BUILDDIR
75 # ------------------
76 # Complain if the absolute build directory name contains unusual characters
77 m4_defun([_LT_CHECK_BUILDDIR],
78 [case `pwd` in
79 *\ * | *\ *)
80 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
81 esac
82 ])
83
84
85 # LT_INIT([OPTIONS])
86 # ------------------
87 AC_DEFUN([LT_INIT],
88 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
89 AC_BEFORE([$0], [LT_LANG])dnl
90 AC_BEFORE([$0], [LT_OUTPUT])dnl
91 AC_BEFORE([$0], [LTDL_INIT])dnl
92 m4_require([_LT_CHECK_BUILDDIR])dnl
93
94 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
95 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
96 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
97 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
98 dnl unless we require an AC_DEFUNed macro:
99 AC_REQUIRE([LTOPTIONS_VERSION])dnl
100 AC_REQUIRE([LTSUGAR_VERSION])dnl
101 AC_REQUIRE([LTVERSION_VERSION])dnl
102 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
103 m4_require([_LT_PROG_LTMAIN])dnl
104
105 dnl Parse OPTIONS
106 _LT_SET_OPTIONS([$0], [$1])
107
108 # This can be used to rebuild libtool when needed
109 LIBTOOL_DEPS="$ltmain"
110
111 # Always use our own libtool.
112 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
113 AC_SUBST(LIBTOOL)dnl
114
115 _LT_SETUP
116
117 # Only expand once:
118 m4_define([LT_INIT])
119 ])# LT_INIT
120
121 # Old names:
122 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
123 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
124 dnl aclocal-1.4 backwards compatibility:
125 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
126 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
127
128
129 # _LT_CC_BASENAME(CC)
130 # -------------------
131 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
132 m4_defun([_LT_CC_BASENAME],
133 [for cc_temp in $1""; do
134 case $cc_temp in
135 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
136 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
137 \-*) ;;
138 *) break;;
139 esac
140 done
141 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
142 ])
143
144
145 # _LT_FILEUTILS_DEFAULTS
146 # ----------------------
147 # It is okay to use these file commands and assume they have been set
148 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
149 m4_defun([_LT_FILEUTILS_DEFAULTS],
150 [: ${CP="cp -f"}
151 : ${MV="mv -f"}
152 : ${RM="rm -f"}
153 ])# _LT_FILEUTILS_DEFAULTS
154
155
156 # _LT_SETUP
157 # ---------
158 m4_defun([_LT_SETUP],
159 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
160 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
161 _LT_DECL([], [host_alias], [0], [The host system])dnl
162 _LT_DECL([], [host], [0])dnl
163 _LT_DECL([], [host_os], [0])dnl
164 dnl
165 _LT_DECL([], [build_alias], [0], [The build system])dnl
166 _LT_DECL([], [build], [0])dnl
167 _LT_DECL([], [build_os], [0])dnl
168 dnl
169 AC_REQUIRE([AC_PROG_CC])dnl
170 AC_REQUIRE([LT_PATH_LD])dnl
171 AC_REQUIRE([LT_PATH_NM])dnl
172 dnl
173 AC_REQUIRE([AC_PROG_LN_S])dnl
174 test -z "$LN_S" && LN_S="ln -s"
175 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
176 dnl
177 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
178 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
179 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
180 dnl
181 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
182 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
183 m4_require([_LT_CMD_RELOAD])dnl
184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
187
188 _LT_CONFIG_LIBTOOL_INIT([
189 # See if we are running on zsh, and set the options which allow our
190 # commands through without removal of \ escapes INIT.
191 if test -n "\${ZSH_VERSION+set}" ; then
192 setopt NO_GLOB_SUBST
193 fi
194 ])
195 if test -n "${ZSH_VERSION+set}" ; then
196 setopt NO_GLOB_SUBST
197 fi
198
199 _LT_CHECK_OBJDIR
200
201 m4_require([_LT_TAG_COMPILER])dnl
202 _LT_PROG_ECHO_BACKSLASH
203
204 case $host_os in
205 aix3*)
206 # AIX sometimes has problems with the GCC collect2 program. For some
207 # reason, if we set the COLLECT_NAMES environment variable, the problems
208 # vanish in a puff of smoke.
209 if test "X${COLLECT_NAMES+set}" != Xset; then
210 COLLECT_NAMES=
211 export COLLECT_NAMES
212 fi
213 ;;
214 esac
215
216 # Sed substitution that helps us do robust quoting. It backslashifies
217 # metacharacters that are still active within double-quoted strings.
218 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
219
220 # Same as above, but do not quote variable references.
221 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
222
223 # Sed substitution to delay expansion of an escaped shell variable in a
224 # double_quote_subst'ed string.
225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
226
227 # Sed substitution to delay expansion of an escaped single quote.
228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
229
230 # Sed substitution to avoid accidental globbing in evaled expressions
231 no_glob_subst='s/\*/\\\*/g'
232
233 # Global variables:
234 ofile=libtool
235 can_build_shared=yes
236
237 # All known linkers require a `.a' archive for static linking (except MSVC,
238 # which needs '.lib').
239 libext=a
240
241 with_gnu_ld="$lt_cv_prog_gnu_ld"
242
243 old_CC="$CC"
244 old_CFLAGS="$CFLAGS"
245
246 # Set sane defaults for various variables
247 test -z "$CC" && CC=cc
248 test -z "$LTCC" && LTCC=$CC
249 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
250 test -z "$LD" && LD=ld
251 test -z "$ac_objext" && ac_objext=o
252
253 _LT_CC_BASENAME([$compiler])
254
255 # Only perform the check for file, if the check method requires it
256 test -z "$MAGIC_CMD" && MAGIC_CMD=file
257 case $deplibs_check_method in
258 file_magic*)
259 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
260 _LT_PATH_MAGIC
261 fi
262 ;;
263 esac
264
265 # Use C for the default configuration in the libtool script
266 LT_SUPPORTED_TAG([CC])
267 _LT_LANG_C_CONFIG
268 _LT_LANG_DEFAULT_CONFIG
269 _LT_CONFIG_COMMANDS
270 ])# _LT_SETUP
271
272
273 # _LT_PROG_LTMAIN
274 # ---------------
275 # Note that this code is called both from `configure', and `config.status'
276 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
277 # `config.status' has no value for ac_aux_dir unless we are using Automake,
278 # so we pass a copy along to make sure it has a sensible value anyway.
279 m4_defun([_LT_PROG_LTMAIN],
280 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
281 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
282 ltmain="$ac_aux_dir/ltmain.sh"
283 ])# _LT_PROG_LTMAIN
284
285
286
287 # So that we can recreate a full libtool script including additional
288 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
289 # in macros and then make a single call at the end using the `libtool'
290 # label.
291
292
293 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
294 # ----------------------------------------
295 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
296 m4_define([_LT_CONFIG_LIBTOOL_INIT],
297 [m4_ifval([$1],
298 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
299 [$1
300 ])])])
301
302 # Initialize.
303 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
304
305
306 # _LT_CONFIG_LIBTOOL([COMMANDS])
307 # ------------------------------
308 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
309 m4_define([_LT_CONFIG_LIBTOOL],
310 [m4_ifval([$1],
311 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
312 [$1
313 ])])])
314
315 # Initialize.
316 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
317
318
319 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
320 # -----------------------------------------------------
321 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
322 [_LT_CONFIG_LIBTOOL([$1])
323 _LT_CONFIG_LIBTOOL_INIT([$2])
324 ])
325
326
327 # _LT_FORMAT_COMMENT([COMMENT])
328 # -----------------------------
329 # Add leading comment marks to the start of each line, and a trailing
330 # full-stop to the whole comment if one is not present already.
331 m4_define([_LT_FORMAT_COMMENT],
332 [m4_ifval([$1], [
333 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
334 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
335 )])
336
337
338
339
340
341 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
342 # -------------------------------------------------------------------
343 # CONFIGNAME is the name given to the value in the libtool script.
344 # VARNAME is the (base) name used in the configure script.
345 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
346 # VARNAME. Any other value will be used directly.
347 m4_define([_LT_DECL],
348 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
349 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
350 [m4_ifval([$1], [$1], [$2])])
351 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
352 m4_ifval([$4],
353 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
354 lt_dict_add_subkey([lt_decl_dict], [$2],
355 [tagged?], [m4_ifval([$5], [yes], [no])])])
356 ])
357
358
359 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
360 # --------------------------------------------------------
361 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
362
363
364 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
365 # ------------------------------------------------
366 m4_define([lt_decl_tag_varnames],
367 [_lt_decl_filter([tagged?], [yes], $@)])
368
369
370 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
371 # ---------------------------------------------------------
372 m4_define([_lt_decl_filter],
373 [m4_case([$#],
374 [0], [m4_fatal([$0: too few arguments: $#])],
375 [1], [m4_fatal([$0: too few arguments: $#: $1])],
376 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
377 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
378 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
379 ])
380
381
382 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
383 # --------------------------------------------------
384 m4_define([lt_decl_quote_varnames],
385 [_lt_decl_filter([value], [1], $@)])
386
387
388 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
389 # ---------------------------------------------------
390 m4_define([lt_decl_dquote_varnames],
391 [_lt_decl_filter([value], [2], $@)])
392
393
394 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
395 # ---------------------------------------------------
396 m4_define([lt_decl_varnames_tagged],
397 [m4_assert([$# <= 2])dnl
398 _$0(m4_quote(m4_default([$1], [[, ]])),
399 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
400 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
401 m4_define([_lt_decl_varnames_tagged],
402 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
403
404
405 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
406 # ------------------------------------------------
407 m4_define([lt_decl_all_varnames],
408 [_$0(m4_quote(m4_default([$1], [[, ]])),
409 m4_if([$2], [],
410 m4_quote(lt_decl_varnames),
411 m4_quote(m4_shift($@))))[]dnl
412 ])
413 m4_define([_lt_decl_all_varnames],
414 [lt_join($@, lt_decl_varnames_tagged([$1],
415 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
416 ])
417
418
419 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
420 # ------------------------------------
421 # Quote a variable value, and forward it to `config.status' so that its
422 # declaration there will have the same value as in `configure'. VARNAME
423 # must have a single quote delimited value for this to work.
424 m4_define([_LT_CONFIG_STATUS_DECLARE],
425 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
426
427
428 # _LT_CONFIG_STATUS_DECLARATIONS
429 # ------------------------------
430 # We delimit libtool config variables with single quotes, so when
431 # we write them to config.status, we have to be sure to quote all
432 # embedded single quotes properly. In configure, this macro expands
433 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
434 #
435 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
436 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
437 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
438 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
439
440
441 # _LT_LIBTOOL_TAGS
442 # ----------------
443 # Output comment and list of tags supported by the script
444 m4_defun([_LT_LIBTOOL_TAGS],
445 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
446 available_tags="_LT_TAGS"dnl
447 ])
448
449
450 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
451 # -----------------------------------
452 # Extract the dictionary values for VARNAME (optionally with TAG) and
453 # expand to a commented shell variable setting:
454 #
455 # # Some comment about what VAR is for.
456 # visible_name=$lt_internal_name
457 m4_define([_LT_LIBTOOL_DECLARE],
458 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
459 [description])))[]dnl
460 m4_pushdef([_libtool_name],
461 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
462 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
463 [0], [_libtool_name=[$]$1],
464 [1], [_libtool_name=$lt_[]$1],
465 [2], [_libtool_name=$lt_[]$1],
466 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
467 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
468 ])
469
470
471 # _LT_LIBTOOL_CONFIG_VARS
472 # -----------------------
473 # Produce commented declarations of non-tagged libtool config variables
474 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
475 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
476 # section) are produced by _LT_LIBTOOL_TAG_VARS.
477 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
478 [m4_foreach([_lt_var],
479 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
480 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
481
482
483 # _LT_LIBTOOL_TAG_VARS(TAG)
484 # -------------------------
485 m4_define([_LT_LIBTOOL_TAG_VARS],
486 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
487 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
488
489
490 # _LT_TAGVAR(VARNAME, [TAGNAME])
491 # ------------------------------
492 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
493
494
495 # _LT_CONFIG_COMMANDS
496 # -------------------
497 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
498 # variables for single and double quote escaping we saved from calls
499 # to _LT_DECL, we can put quote escaped variables declarations
500 # into `config.status', and then the shell code to quote escape them in
501 # for loops in `config.status'. Finally, any additional code accumulated
502 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
503 m4_defun([_LT_CONFIG_COMMANDS],
504 [AC_PROVIDE_IFELSE([LT_OUTPUT],
505 dnl If the libtool generation code has been placed in $CONFIG_LT,
506 dnl instead of duplicating it all over again into config.status,
507 dnl then we will have config.status run $CONFIG_LT later, so it
508 dnl needs to know what name is stored there:
509 [AC_CONFIG_COMMANDS([libtool],
510 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
511 dnl If the libtool generation code is destined for config.status,
512 dnl expand the accumulated commands and init code now:
513 [AC_CONFIG_COMMANDS([libtool],
514 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
515 ])#_LT_CONFIG_COMMANDS
516
517
518 # Initialize.
519 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
520 [
521
522 # The HP-UX ksh and POSIX shell print the target directory to stdout
523 # if CDPATH is set.
524 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
525
526 sed_quote_subst='$sed_quote_subst'
527 double_quote_subst='$double_quote_subst'
528 delay_variable_subst='$delay_variable_subst'
529 _LT_CONFIG_STATUS_DECLARATIONS
530 LTCC='$LTCC'
531 LTCFLAGS='$LTCFLAGS'
532 compiler='$compiler_DEFAULT'
533
534 # Quote evaled strings.
535 for var in lt_decl_all_varnames([[ \
536 ]], lt_decl_quote_varnames); do
537 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
538 *[[\\\\\\\`\\"\\\$]]*)
539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
540 ;;
541 *)
542 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
543 ;;
544 esac
545 done
546
547 # Double-quote double-evaled strings.
548 for var in lt_decl_all_varnames([[ \
549 ]], lt_decl_dquote_varnames); do
550 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
551 *[[\\\\\\\`\\"\\\$]]*)
552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
553 ;;
554 *)
555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
556 ;;
557 esac
558 done
559
560 # Fix-up fallback echo if it was mangled by the above quoting rules.
561 case \$lt_ECHO in
562 *'\\\[$]0 --fallback-echo"')dnl "
563 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
564 ;;
565 esac
566
567 _LT_OUTPUT_LIBTOOL_INIT
568 ])
569
570
571 # LT_OUTPUT
572 # ---------
573 # This macro allows early generation of the libtool script (before
574 # AC_OUTPUT is called), incase it is used in configure for compilation
575 # tests.
576 AC_DEFUN([LT_OUTPUT],
577 [: ${CONFIG_LT=./config.lt}
578 AC_MSG_NOTICE([creating $CONFIG_LT])
579 cat >"$CONFIG_LT" <<_LTEOF
580 #! $SHELL
581 # Generated by $as_me.
582 # Run this file to recreate a libtool stub with the current configuration.
583
584 lt_cl_silent=false
585 SHELL=\${CONFIG_SHELL-$SHELL}
586 _LTEOF
587
588 cat >>"$CONFIG_LT" <<\_LTEOF
589 AS_SHELL_SANITIZE
590 _AS_PREPARE
591
592 exec AS_MESSAGE_FD>&1
593 exec AS_MESSAGE_LOG_FD>>config.log
594 {
595 echo
596 AS_BOX([Running $as_me.])
597 } >&AS_MESSAGE_LOG_FD
598
599 lt_cl_help="\
600 \`$as_me' creates a local libtool stub from the current configuration,
601 for use in further configure time tests before the real libtool is
602 generated.
603
604 Usage: $[0] [[OPTIONS]]
605
606 -h, --help print this help, then exit
607 -V, --version print version number, then exit
608 -q, --quiet do not print progress messages
609 -d, --debug don't remove temporary files
610
611 Report bugs to <bug-libtool@gnu.org>."
612
613 lt_cl_version="\
614 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
615 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
616 configured by $[0], generated by m4_PACKAGE_STRING.
617
618 Copyright (C) 2008 Free Software Foundation, Inc.
619 This config.lt script is free software; the Free Software Foundation
620 gives unlimited permision to copy, distribute and modify it."
621
622 while test $[#] != 0
623 do
624 case $[1] in
625 --version | --v* | -V )
626 echo "$lt_cl_version"; exit 0 ;;
627 --help | --h* | -h )
628 echo "$lt_cl_help"; exit 0 ;;
629 --debug | --d* | -d )
630 debug=: ;;
631 --quiet | --q* | --silent | --s* | -q )
632 lt_cl_silent=: ;;
633
634 -*) AC_MSG_ERROR([unrecognized option: $[1]
635 Try \`$[0] --help' for more information.]) ;;
636
637 *) AC_MSG_ERROR([unrecognized argument: $[1]
638 Try \`$[0] --help' for more information.]) ;;
639 esac
640 shift
641 done
642
643 if $lt_cl_silent; then
644 exec AS_MESSAGE_FD>/dev/null
645 fi
646 _LTEOF
647
648 cat >>"$CONFIG_LT" <<_LTEOF
649 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
650 _LTEOF
651
652 cat >>"$CONFIG_LT" <<\_LTEOF
653 AC_MSG_NOTICE([creating $ofile])
654 _LT_OUTPUT_LIBTOOL_COMMANDS
655 AS_EXIT(0)
656 _LTEOF
657 chmod +x "$CONFIG_LT"
658
659 # configure is writing to config.log, but config.lt does its own redirection,
660 # appending to config.log, which fails on DOS, as config.log is still kept
661 # open by configure. Here we exec the FD to /dev/null, effectively closing
662 # config.log, so it can be properly (re)opened and appended to by config.lt.
663 if test "$no_create" != yes; then
664 lt_cl_success=:
665 test "$silent" = yes &&
666 lt_config_lt_args="$lt_config_lt_args --quiet"
667 exec AS_MESSAGE_LOG_FD>/dev/null
668 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
669 exec AS_MESSAGE_LOG_FD>>config.log
670 $lt_cl_success || AS_EXIT(1)
671 fi
672 ])# LT_OUTPUT
673
674
675 # _LT_CONFIG(TAG)
676 # ---------------
677 # If TAG is the built-in tag, create an initial libtool script with a
678 # default configuration from the untagged config vars. Otherwise add code
679 # to config.status for appending the configuration named by TAG from the
680 # matching tagged config vars.
681 m4_defun([_LT_CONFIG],
682 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
683 _LT_CONFIG_SAVE_COMMANDS([
684 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
685 m4_if(_LT_TAG, [C], [
686 # See if we are running on zsh, and set the options which allow our
687 # commands through without removal of \ escapes.
688 if test -n "${ZSH_VERSION+set}" ; then
689 setopt NO_GLOB_SUBST
690 fi
691
692 cfgfile="${ofile}T"
693 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
694 $RM "$cfgfile"
695
696 cat <<_LT_EOF >> "$cfgfile"
697 #! $SHELL
698
699 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
700 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
703 #
704 _LT_COPYING
705 _LT_LIBTOOL_TAGS
706
707 # ### BEGIN LIBTOOL CONFIG
708 _LT_LIBTOOL_CONFIG_VARS
709 _LT_LIBTOOL_TAG_VARS
710 # ### END LIBTOOL CONFIG
711
712 _LT_EOF
713
714 case $host_os in
715 aix3*)
716 cat <<\_LT_EOF >> "$cfgfile"
717 # AIX sometimes has problems with the GCC collect2 program. For some
718 # reason, if we set the COLLECT_NAMES environment variable, the problems
719 # vanish in a puff of smoke.
720 if test "X${COLLECT_NAMES+set}" != Xset; then
721 COLLECT_NAMES=
722 export COLLECT_NAMES
723 fi
724 _LT_EOF
725 ;;
726 esac
727
728 _LT_PROG_LTMAIN
729
730 # We use sed instead of cat because bash on DJGPP gets confused if
731 # if finds mixed CR/LF and LF-only lines. Since sed operates in
732 # text mode, it properly converts lines to CR/LF. This bash problem
733 # is reportedly fixed, but why not run on old versions too?
734 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
735 || (rm -f "$cfgfile"; exit 1)
736
737 _LT_PROG_XSI_SHELLFNS
738
739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
740 || (rm -f "$cfgfile"; exit 1)
741
742 mv -f "$cfgfile" "$ofile" ||
743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
744 chmod +x "$ofile"
120 # GLIB_WITH_NLS
121 #-----------------
122 glib_DEFUN([GLIB_WITH_NLS],
123 dnl NLS is obligatory
124 [USE_NLS=yes
125 AC_SUBST(USE_NLS)
126
127 gt_cv_have_gettext=no
128
129 CATOBJEXT=NONE
130 XGETTEXT=:
131 INTLLIBS=
132
133 AC_CHECK_HEADER(libintl.h,
134 [gt_cv_func_dgettext_libintl="no"
135 libintl_extra_libs=""
136
137 #
138 # First check in libc
139 #
140 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
141 [AC_TRY_LINK([
142 #include <libintl.h>
745143 ],
746 [cat <<_LT_EOF >> "$ofile"
747
748 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
749 dnl in a comment (ie after a #).
750 # ### BEGIN LIBTOOL TAG CONFIG: $1
751 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
752 # ### END LIBTOOL TAG CONFIG: $1
753 _LT_EOF
754 ])dnl /m4_if
144 [return !ngettext ("","", 1)],
145 gt_cv_func_ngettext_libc=yes,
146 gt_cv_func_ngettext_libc=no)
147 ])
148
149 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
150 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
151 [AC_TRY_LINK([
152 #include <libintl.h>
755153 ],
756 [m4_if([$1], [], [
757 PACKAGE='$PACKAGE'
758 VERSION='$VERSION'
759 TIMESTAMP='$TIMESTAMP'
760 RM='$RM'
761 ofile='$ofile'], [])
762 ])dnl /_LT_CONFIG_SAVE_COMMANDS
763 ])# _LT_CONFIG
764
765
766 # LT_SUPPORTED_TAG(TAG)
767 # ---------------------
768 # Trace this macro to discover what tags are supported by the libtool
769 # --tag option, using:
770 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
771 AC_DEFUN([LT_SUPPORTED_TAG], [])
772
773
774 # C support is built-in for now
775 m4_define([_LT_LANG_C_enabled], [])
776 m4_define([_LT_TAGS], [])
777
778
779 # LT_LANG(LANG)
780 # -------------
781 # Enable libtool support for the given language if not already enabled.
782 AC_DEFUN([LT_LANG],
783 [AC_BEFORE([$0], [LT_OUTPUT])dnl
784 m4_case([$1],
785 [C], [_LT_LANG(C)],
786 [C++], [_LT_LANG(CXX)],
787 [Java], [_LT_LANG(GCJ)],
788 [Fortran 77], [_LT_LANG(F77)],
789 [Fortran], [_LT_LANG(FC)],
790 [Windows Resource], [_LT_LANG(RC)],
791 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
792 [_LT_LANG($1)],
793 [m4_fatal([$0: unsupported language: "$1"])])])dnl
794 ])# LT_LANG
795
796
797 # _LT_LANG(LANGNAME)
798 # ------------------
799 m4_defun([_LT_LANG],
800 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
801 [LT_SUPPORTED_TAG([$1])dnl
802 m4_append([_LT_TAGS], [$1 ])dnl
803 m4_define([_LT_LANG_]$1[_enabled], [])dnl
804 _LT_LANG_$1_CONFIG($1)])dnl
805 ])# _LT_LANG
806
807
808 # _LT_LANG_DEFAULT_CONFIG
809 # -----------------------
810 m4_defun([_LT_LANG_DEFAULT_CONFIG],
811 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
812 [LT_LANG(CXX)],
813 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
814
815 AC_PROVIDE_IFELSE([AC_PROG_F77],
816 [LT_LANG(F77)],
817 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
818
819 AC_PROVIDE_IFELSE([AC_PROG_FC],
820 [LT_LANG(FC)],
821 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
822
823 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
824 dnl pulling things in needlessly.
825 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
826 [LT_LANG(GCJ)],
827 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
828 [LT_LANG(GCJ)],
829 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
830 [LT_LANG(GCJ)],
831 [m4_ifdef([AC_PROG_GCJ],
832 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
833 m4_ifdef([A][M_PROG_GCJ],
834 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
835 m4_ifdef([LT_PROG_GCJ],
836 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
837
838 AC_PROVIDE_IFELSE([LT_PROG_RC],
839 [LT_LANG(RC)],
840 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
841 ])# _LT_LANG_DEFAULT_CONFIG
842
843 # Obsolete macros:
844 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
845 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
846 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
847 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
848 dnl aclocal-1.4 backwards compatibility:
849 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
850 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
851 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
852 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
853
854
855 # _LT_TAG_COMPILER
856 # ----------------
857 m4_defun([_LT_TAG_COMPILER],
858 [AC_REQUIRE([AC_PROG_CC])dnl
859
860 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
861 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
862 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
863 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
864
865 # If no C compiler was specified, use CC.
866 LTCC=${LTCC-"$CC"}
867
868 # If no C compiler flags were specified, use CFLAGS.
869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
870
871 # Allow CC to be a program name with arguments.
872 compiler=$CC
873 ])# _LT_TAG_COMPILER
874
875
876 # _LT_COMPILER_BOILERPLATE
877 # ------------------------
878 # Check for compiler boilerplate output or warnings with
879 # the simple compiler test code.
880 m4_defun([_LT_COMPILER_BOILERPLATE],
881 [m4_require([_LT_DECL_SED])dnl
882 ac_outfile=conftest.$ac_objext
883 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
885 _lt_compiler_boilerplate=`cat conftest.err`
886 $RM conftest*
887 ])# _LT_COMPILER_BOILERPLATE
888
889
890 # _LT_LINKER_BOILERPLATE
891 # ----------------------
892 # Check for linker boilerplate output or warnings with
893 # the simple link test code.
894 m4_defun([_LT_LINKER_BOILERPLATE],
895 [m4_require([_LT_DECL_SED])dnl
896 ac_outfile=conftest.$ac_objext
897 echo "$lt_simple_link_test_code" >conftest.$ac_ext
898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
899 _lt_linker_boilerplate=`cat conftest.err`
900 $RM -r conftest*
901 ])# _LT_LINKER_BOILERPLATE
902
903 # _LT_REQUIRED_DARWIN_CHECKS
904 # -------------------------
905 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
906 case $host_os in
907 rhapsody* | darwin*)
908 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
909 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
910 AC_CHECK_TOOL([LIPO], [lipo], [:])
911 AC_CHECK_TOOL([OTOOL], [otool], [:])
912 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
913 _LT_DECL([], [DSYMUTIL], [1],
914 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
915 _LT_DECL([], [NMEDIT], [1],
916 [Tool to change global to local symbols on Mac OS X])
917 _LT_DECL([], [LIPO], [1],
918 [Tool to manipulate fat objects and archives on Mac OS X])
919 _LT_DECL([], [OTOOL], [1],
920 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
921 _LT_DECL([], [OTOOL64], [1],
922 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
923
924 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
925 [lt_cv_apple_cc_single_mod=no
926 if test -z "${LT_MULTI_MODULE}"; then
927 # By default we will add the -single_module flag. You can override
928 # by either setting the environment variable LT_MULTI_MODULE
929 # non-empty at configure time, or by adding -multi_module to the
930 # link flags.
931 rm -rf libconftest.dylib*
932 echo "int foo(void){return 1;}" > conftest.c
933 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
934 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
935 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
936 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
937 _lt_result=$?
938 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
939 lt_cv_apple_cc_single_mod=yes
940 else
941 cat conftest.err >&AS_MESSAGE_LOG_FD
942 fi
943 rm -rf libconftest.dylib*
944 rm -f conftest.*
945 fi])
946 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
947 [lt_cv_ld_exported_symbols_list],
948 [lt_cv_ld_exported_symbols_list=no
949 save_LDFLAGS=$LDFLAGS
950 echo "_main" > conftest.sym
951 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
952 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
953 [lt_cv_ld_exported_symbols_list=yes],
954 [lt_cv_ld_exported_symbols_list=no])
955 LDFLAGS="$save_LDFLAGS"
956 ])
957 case $host_os in
958 rhapsody* | darwin1.[[012]])
959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
960 darwin1.*)
961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
962 darwin*) # darwin 5.x on
963 # if running on 10.5 or later, the deployment target defaults
964 # to the OS version, if on x86, and 10.4, the deployment
965 # target defaults to 10.4. Don't you love it?
966 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
967 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
969 10.[[012]]*)
970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
971 10.*)
972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
973 esac
974 ;;
975 esac
976 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
977 _lt_dar_single_mod='$single_module'
978 fi
979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
981 else
982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
983 fi
984 if test "$DSYMUTIL" != ":"; then
985 _lt_dsymutil='~$DSYMUTIL $lib || :'
986 else
987 _lt_dsymutil=
988 fi
989 ;;
990 esac
991 ])
992
993
994 # _LT_DARWIN_LINKER_FEATURES
995 # --------------------------
996 # Checks for linker and compiler features on darwin
997 m4_defun([_LT_DARWIN_LINKER_FEATURES],
998 [
999 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1000 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1001 _LT_TAGVAR(hardcode_direct, $1)=no
1002 _LT_TAGVAR(hardcode_automatic, $1)=yes
1003 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1004 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1005 _LT_TAGVAR(link_all_deplibs, $1)=yes
1006 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1007 case $cc_basename in
1008 ifort*) _lt_dar_can_shared=yes ;;
1009 *) _lt_dar_can_shared=$GCC ;;
1010 esac
1011 if test "$_lt_dar_can_shared" = "yes"; then
1012 output_verbose_link_cmd=echo
1013 _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}"
1014 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1015 _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}"
1016 _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}"
1017 m4_if([$1], [CXX],
1018 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1019 _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}"
1020 _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}"
1021 fi
1022 ],[])
1023 else
1024 _LT_TAGVAR(ld_shlibs, $1)=no
1025 fi
1026 ])
1027
1028 # _LT_SYS_MODULE_PATH_AIX
1029 # -----------------------
1030 # Links a minimal program and checks the executable
1031 # for the system default hardcoded library path. In most cases,
1032 # this is /usr/lib:/lib, but when the MPI compilers are used
1033 # the location of the communication and MPI libs are included too.
1034 # If we don't find anything, use the default library path according
1035 # to the aix ld manual.
1036 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1037 [m4_require([_LT_DECL_SED])dnl
1038 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1039 lt_aix_libpath_sed='
1040 /Import File Strings/,/^$/ {
1041 /^0/ {
1042 s/^0 *\(.*\)$/\1/
1043 p
1044 }
1045 }'
1046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1047 # Check for a 64-bit object if we didn't find anything.
1048 if test -z "$aix_libpath"; then
1049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1050 fi],[])
1051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1052 ])# _LT_SYS_MODULE_PATH_AIX
1053
1054
1055 # _LT_SHELL_INIT(ARG)
1056 # -------------------
1057 m4_define([_LT_SHELL_INIT],
1058 [ifdef([AC_DIVERSION_NOTICE],
1059 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1060 [AC_DIVERT_PUSH(NOTICE)])
1061 $1
1062 AC_DIVERT_POP
1063 ])# _LT_SHELL_INIT
1064
1065
1066 # _LT_PROG_ECHO_BACKSLASH
1067 # -----------------------
1068 # Add some code to the start of the generated configure script which
1069 # will find an echo command which doesn't interpret backslashes.
1070 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1071 [_LT_SHELL_INIT([
1072 # Check that we are running under the correct shell.
1073 SHELL=${CONFIG_SHELL-/bin/sh}
1074
1075 case X$lt_ECHO in
1076 X*--fallback-echo)
1077 # Remove one level of quotation (which was required for Make).
1078 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1079 ;;
1080 esac
1081
1082 ECHO=${lt_ECHO-echo}
1083 if test "X[$]1" = X--no-reexec; then
1084 # Discard the --no-reexec flag, and continue.
1085 shift
1086 elif test "X[$]1" = X--fallback-echo; then
1087 # Avoid inline document here, it may be left over
1088 :
1089 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1090 # Yippee, $ECHO works!
1091 :
1092 else
1093 # Restart under the correct shell.
1094 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1095 fi
1096
1097 if test "X[$]1" = X--fallback-echo; then
1098 # used as fallback echo
1099 shift
1100 cat <<_LT_EOF
1101 [$]*
1102 _LT_EOF
1103 exit 0
1104 fi
1105
1106 # The HP-UX ksh and POSIX shell print the target directory to stdout
1107 # if CDPATH is set.
1108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1109
1110 if test -z "$lt_ECHO"; then
1111 if test "X${echo_test_string+set}" != Xset; then
1112 # find a string as large as possible, as long as the shell can cope with it
1113 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1114 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1115 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1116 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1117 then
1118 break
154 [return !dgettext ("","")],
155 gt_cv_func_dgettext_libc=yes,
156 gt_cv_func_dgettext_libc=no)
157 ])
1119158 fi
1120 done
1121 fi
1122
1123 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 :
1127 else
1128 # The Solaris, AIX, and Digital Unix default echo programs unquote
1129 # backslashes. This makes it impossible to quote backslashes using
1130 # echo "$something" | sed 's/\\/\\\\/g'
1131 #
1132 # So, first we look for a working echo in the user's PATH.
1133
1134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1135 for dir in $PATH /usr/ucb; do
1136 IFS="$lt_save_ifs"
1137 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1138 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1139 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1140 test "X$echo_testing_string" = "X$echo_test_string"; then
1141 ECHO="$dir/echo"
1142 break
159
160 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
161 AC_CHECK_FUNCS(bind_textdomain_codeset)
1143162 fi
1144 done
1145 IFS="$lt_save_ifs"
1146
1147 if test "X$ECHO" = Xecho; then
1148 # We didn't find a better echo, so look for alternatives.
1149 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1150 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1151 test "X$echo_testing_string" = "X$echo_test_string"; then
1152 # This shell has a builtin print -r that does the trick.
1153 ECHO='print -r'
1154 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1155 test "X$CONFIG_SHELL" != X/bin/ksh; then
1156 # If we have ksh, try running configure again with it.
1157 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1158 export ORIGINAL_CONFIG_SHELL
1159 CONFIG_SHELL=/bin/ksh
1160 export CONFIG_SHELL
1161 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1162 else
1163 # Try using printf.
1164 ECHO='printf %s\n'
1165 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1166 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1167 test "X$echo_testing_string" = "X$echo_test_string"; then
1168 # Cool, printf works
1169 :
1170 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1171 test "X$echo_testing_string" = 'X\t' &&
1172 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1173 test "X$echo_testing_string" = "X$echo_test_string"; then
1174 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1175 export CONFIG_SHELL
1176 SHELL="$CONFIG_SHELL"
1177 export SHELL
1178 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1179 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1180 test "X$echo_testing_string" = 'X\t' &&
1181 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1182 test "X$echo_testing_string" = "X$echo_test_string"; then
1183 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1184 else
1185 # maybe with a smaller string...
1186 prev=:
1187
1188 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1189 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1190 then
1191 break
1192 fi
1193 prev="$cmd"
1194 done
1195
1196 if test "$prev" != 'sed 50q "[$]0"'; then
1197 echo_test_string=`eval $prev`
1198 export echo_test_string
1199 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1200 else
1201 # Oops. We lost completely, so just stick with echo.
1202 ECHO=echo
1203 fi
163
164 #
165 # If we don't have everything we want, check in libintl
166 #
167 if test "$gt_cv_func_dgettext_libc" != "yes" \
168 || test "$gt_cv_func_ngettext_libc" != "yes" \
169 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
170
171 AC_CHECK_LIB(intl, bindtextdomain,
172 [AC_CHECK_LIB(intl, ngettext,
173 [AC_CHECK_LIB(intl, dgettext,
174 gt_cv_func_dgettext_libintl=yes)])])
175
176 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
177 AC_MSG_CHECKING([if -liconv is needed to use gettext])
178 AC_MSG_RESULT([])
179 AC_CHECK_LIB(intl, ngettext,
180 [AC_CHECK_LIB(intl, dcgettext,
181 [gt_cv_func_dgettext_libintl=yes
182 libintl_extra_libs=-liconv],
183 :,-liconv)],
184 :,-liconv)
185 fi
186
187 #
188 # If we found libintl, then check in it for bind_textdomain_codeset();
189 # we'll prefer libc if neither have bind_textdomain_codeset(),
190 # and both have dgettext and ngettext
191 #
192 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
193 glib_save_LIBS="$LIBS"
194 LIBS="$LIBS -lintl $libintl_extra_libs"
195 unset ac_cv_func_bind_textdomain_codeset
196 AC_CHECK_FUNCS(bind_textdomain_codeset)
197 LIBS="$glib_save_LIBS"
198
199 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
200 gt_cv_func_dgettext_libc=no
201 else
202 if test "$gt_cv_func_dgettext_libc" = "yes" \
203 && test "$gt_cv_func_ngettext_libc" = "yes"; then
204 gt_cv_func_dgettext_libintl=no
205 fi
206 fi
1204207 fi
1205208 fi
209
210 if test "$gt_cv_func_dgettext_libc" = "yes" \
211 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
212 gt_cv_have_gettext=yes
213 fi
214
215 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
216 INTLLIBS="-lintl $libintl_extra_libs"
217 fi
218
219 if test "$gt_cv_have_gettext" = "yes"; then
220 AC_DEFINE(HAVE_GETTEXT,1,
221 [Define if the GNU gettext() function is already present or preinstalled.])
222 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
223 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
224 if test "$MSGFMT" != "no"; then
225 glib_save_LIBS="$LIBS"
226 LIBS="$LIBS $INTLLIBS"
227 AC_CHECK_FUNCS(dcgettext)
228 MSGFMT_OPTS=
229 AC_MSG_CHECKING([if msgfmt accepts -c])
230 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
231 msgid ""
232 msgstr ""
233 "Content-Type: text/plain; charset=UTF-8\n"
234 "Project-Id-Version: test 1.0\n"
235 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
236 "Last-Translator: test <foo@bar.xx>\n"
237 "Language-Team: C <LL@li.org>\n"
238 "MIME-Version: 1.0\n"
239 "Content-Transfer-Encoding: 8bit\n"
240 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
241 AC_SUBST(MSGFMT_OPTS)
242 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
243 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
244 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
245 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
246 return _nl_msg_cat_cntr],
247 [CATOBJEXT=.gmo
248 DATADIRNAME=share],
249 [case $host in
250 *-*-solaris*)
251 dnl On Solaris, if bind_textdomain_codeset is in libc,
252 dnl GNU format message catalog is always supported,
253 dnl since both are added to the libc all together.
254 dnl Hence, we'd like to go with DATADIRNAME=share and
255 dnl and CATOBJEXT=.gmo in this case.
256 AC_CHECK_FUNC(bind_textdomain_codeset,
257 [CATOBJEXT=.gmo
258 DATADIRNAME=share],
259 [CATOBJEXT=.mo
260 DATADIRNAME=lib])
261 ;;
262 *)
263 CATOBJEXT=.mo
264 DATADIRNAME=lib
265 ;;
266 esac])
267 LIBS="$glib_save_LIBS"
268 INSTOBJEXT=.mo
269 else
270 gt_cv_have_gettext=no
271 fi
272 fi
273 ])
274
275 if test "$gt_cv_have_gettext" = "yes" ; then
276 AC_DEFINE(ENABLE_NLS, 1,
277 [always defined to indicate that i18n is enabled])
1206278 fi
1207 fi
1208 fi
1209
1210 # Copy echo and quote the copy suitably for passing to libtool from
1211 # the Makefile, instead of quoting the original, which is used later.
1212 lt_ECHO=$ECHO
1213 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1214 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1215 fi
1216
1217 AC_SUBST(lt_ECHO)
1218 ])
1219 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1220 _LT_DECL([], [ECHO], [1],
1221 [An echo program that does not interpret backslashes])
1222 ])# _LT_PROG_ECHO_BACKSLASH
1223
1224
1225 # _LT_ENABLE_LOCK
1226 # ---------------
1227 m4_defun([_LT_ENABLE_LOCK],
1228 [AC_ARG_ENABLE([libtool-lock],
1229 [AS_HELP_STRING([--disable-libtool-lock],
1230 [avoid locking (might break parallel builds)])])
1231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1232
1233 # Some flags need to be propagated to the compiler or linker for good
1234 # libtool support.
1235 case $host in
1236 ia64-*-hpux*)
1237 # Find out which ABI we are using.
1238 echo 'int i;' > conftest.$ac_ext
1239 if AC_TRY_EVAL(ac_compile); then
1240 case `/usr/bin/file conftest.$ac_objext` in
1241 *ELF-32*)
1242 HPUX_IA64_MODE="32"
1243 ;;
1244 *ELF-64*)
1245 HPUX_IA64_MODE="64"
1246 ;;
1247 esac
1248 fi
1249 rm -rf conftest*
1250 ;;
1251 *-*-irix6*)
1252 # Find out which ABI we are using.
1253 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1254 if AC_TRY_EVAL(ac_compile); then
1255 if test "$lt_cv_prog_gnu_ld" = yes; then
1256 case `/usr/bin/file conftest.$ac_objext` in
1257 *32-bit*)
1258 LD="${LD-ld} -melf32bsmip"
1259 ;;
1260 *N32*)
1261 LD="${LD-ld} -melf32bmipn32"
1262 ;;
1263 *64-bit*)
1264 LD="${LD-ld} -melf64bmip"
1265 ;;
1266 esac
1267 else
1268 case `/usr/bin/file conftest.$ac_objext` in
1269 *32-bit*)
1270 LD="${LD-ld} -32"
1271 ;;
1272 *N32*)
1273 LD="${LD-ld} -n32"
1274 ;;
1275 *64-bit*)
1276 LD="${LD-ld} -64"
1277 ;;
1278 esac
279
280 dnl Test whether we really found GNU xgettext.
281 if test "$XGETTEXT" != ":"; then
282 dnl If it is not GNU xgettext we define it as : so that the
283 dnl Makefiles still can work.
284 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
285 : ;
286 else
287 AC_MSG_RESULT(
288 [found xgettext program is not GNU xgettext; ignore it])
289 XGETTEXT=":"
290 fi
1279291 fi
1280 fi
1281 rm -rf conftest*
1282 ;;
1283
1284 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1285 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1286 # Find out which ABI we are using.
1287 echo 'int i;' > conftest.$ac_ext
1288 if AC_TRY_EVAL(ac_compile); then
1289 case `/usr/bin/file conftest.o` in
1290 *32-bit*)
1291 case $host in
1292 x86_64-*kfreebsd*-gnu)
1293 LD="${LD-ld} -m elf_i386_fbsd"
1294 ;;
1295 x86_64-*linux*)
1296 LD="${LD-ld} -m elf_i386"
1297 ;;
1298 ppc64-*linux*|powerpc64-*linux*)
1299 LD="${LD-ld} -m elf32ppclinux"
1300 ;;
1301 s390x-*linux*)
1302 LD="${LD-ld} -m elf_s390"
1303 ;;
1304 sparc64-*linux*)
1305 LD="${LD-ld} -m elf32_sparc"
1306 ;;
1307 esac
1308 ;;
1309 *64-bit*)
1310 case $host in
1311 x86_64-*kfreebsd*-gnu)
1312 LD="${LD-ld} -m elf_x86_64_fbsd"
1313 ;;
1314 x86_64-*linux*)
1315 LD="${LD-ld} -m elf_x86_64"
1316 ;;
1317 ppc*-*linux*|powerpc*-*linux*)
1318 LD="${LD-ld} -m elf64ppc"
1319 ;;
1320 s390*-*linux*|s390*-*tpf*)
1321 LD="${LD-ld} -m elf64_s390"
1322 ;;
1323 sparc*-*linux*)
1324 LD="${LD-ld} -m elf64_sparc"
1325 ;;
1326 esac
1327 ;;
1328 esac
1329 fi
1330 rm -rf conftest*
1331 ;;
1332
1333 *-*-sco3.2v5*)
1334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1335 SAVE_CFLAGS="$CFLAGS"
1336 CFLAGS="$CFLAGS -belf"
1337 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1338 [AC_LANG_PUSH(C)
1339 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1340 AC_LANG_POP])
1341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1343 CFLAGS="$SAVE_CFLAGS"
1344 fi
1345 ;;
1346 sparc*-*solaris*)
1347 # Find out which ABI we are using.
1348 echo 'int i;' > conftest.$ac_ext
1349 if AC_TRY_EVAL(ac_compile); then
1350 case `/usr/bin/file conftest.o` in
1351 *64-bit*)
1352 case $lt_cv_prog_gnu_ld in
1353 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1354 *)
1355 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1356 LD="${LD-ld} -64"
1357 fi
1358 ;;
1359 esac
1360 ;;
1361 esac
1362 fi
1363 rm -rf conftest*
1364 ;;
1365 esac
1366
1367 need_locks="$enable_libtool_lock"
1368 ])# _LT_ENABLE_LOCK
1369
1370
1371 # _LT_CMD_OLD_ARCHIVE
292
293 # We need to process the po/ directory.
294 POSUB=po
295
296 AC_OUTPUT_COMMANDS(
297 [case "$CONFIG_FILES" in *po/Makefile.in*)
298 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
299 esac])
300
301 dnl These rules are solely for the distribution goal. While doing this
302 dnl we only have to keep exactly one list of the available catalogs
303 dnl in configure.in.
304 for lang in $ALL_LINGUAS; do
305 GMOFILES="$GMOFILES $lang.gmo"
306 POFILES="$POFILES $lang.po"
307 done
308
309 dnl Make all variables we use known to autoconf.
310 AC_SUBST(CATALOGS)
311 AC_SUBST(CATOBJEXT)
312 AC_SUBST(DATADIRNAME)
313 AC_SUBST(GMOFILES)
314 AC_SUBST(INSTOBJEXT)
315 AC_SUBST(INTLLIBS)
316 AC_SUBST(PO_IN_DATADIR_TRUE)
317 AC_SUBST(PO_IN_DATADIR_FALSE)
318 AC_SUBST(POFILES)
319 AC_SUBST(POSUB)
320 ])
321
322 # AM_GLIB_GNU_GETTEXT
1372323 # -------------------
1373 m4_defun([_LT_CMD_OLD_ARCHIVE],
1374 [AC_CHECK_TOOL(AR, ar, false)
1375 test -z "$AR" && AR=ar
1376 test -z "$AR_FLAGS" && AR_FLAGS=cru
1377 _LT_DECL([], [AR], [1], [The archiver])
1378 _LT_DECL([], [AR_FLAGS], [1])
1379
1380 AC_CHECK_TOOL(STRIP, strip, :)
1381 test -z "$STRIP" && STRIP=:
1382 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1383
1384 AC_CHECK_TOOL(RANLIB, ranlib, :)
1385 test -z "$RANLIB" && RANLIB=:
1386 _LT_DECL([], [RANLIB], [1],
1387 [Commands used to install an old-style archive])
1388
1389 # Determine commands to create old-style static archives.
1390 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1391 old_postinstall_cmds='chmod 644 $oldlib'
1392 old_postuninstall_cmds=
1393
1394 if test -n "$RANLIB"; then
1395 case $host_os in
1396 openbsd*)
1397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1398 ;;
1399 *)
1400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1401 ;;
1402 esac
1403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1404 fi
1405 _LT_DECL([], [old_postinstall_cmds], [2])
1406 _LT_DECL([], [old_postuninstall_cmds], [2])
1407 _LT_TAGDECL([], [old_archive_cmds], [2],
1408 [Commands used to build an old-style archive])
1409 ])# _LT_CMD_OLD_ARCHIVE
1410
1411
1412 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1413 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1414 # ----------------------------------------------------------------
1415 # Check whether the given compiler option works
1416 AC_DEFUN([_LT_COMPILER_OPTION],
1417 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1418 m4_require([_LT_DECL_SED])dnl
1419 AC_CACHE_CHECK([$1], [$2],
1420 [$2=no
1421 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1423 lt_compiler_flag="$3"
1424 # Insert the option either (1) after the last *FLAGS variable, or
1425 # (2) before a word containing "conftest.", or (3) at the end.
1426 # Note that $ac_compile itself does not contain backslashes and begins
1427 # with a dollar sign (not a hyphen), so the echo should work correctly.
1428 # The option is referenced via a variable to avoid confusing sed.
1429 lt_compile=`echo "$ac_compile" | $SED \
1430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1431 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1432 -e 's:$: $lt_compiler_flag:'`
1433 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1434 (eval "$lt_compile" 2>conftest.err)
1435 ac_status=$?
1436 cat conftest.err >&AS_MESSAGE_LOG_FD
1437 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1438 if (exit $ac_status) && test -s "$ac_outfile"; then
1439 # The compiler can only warn and ignore the option if not recognized
1440 # So say no if there are warnings other than the usual output.
1441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1444 $2=yes
324 # Do checks necessary for use of gettext. If a suitable implementation
325 # of gettext is found in either in libintl or in the C library,
326 # it will set INTLLIBS to the libraries needed for use of gettext
327 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
328 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
329 # on various variables needed by the Makefile.in.in installed by
330 # glib-gettextize.
331 dnl
332 glib_DEFUN([GLIB_GNU_GETTEXT],
333 [AC_REQUIRE([AC_PROG_CC])dnl
334 AC_REQUIRE([AC_HEADER_STDC])dnl
335
336 GLIB_LC_MESSAGES
337 GLIB_WITH_NLS
338
339 if test "$gt_cv_have_gettext" = "yes"; then
340 if test "x$ALL_LINGUAS" = "x"; then
341 LINGUAS=
342 else
343 AC_MSG_CHECKING(for catalogs to be installed)
344 NEW_LINGUAS=
345 for presentlang in $ALL_LINGUAS; do
346 useit=no
347 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
348 desiredlanguages="$LINGUAS"
349 else
350 desiredlanguages="$ALL_LINGUAS"
351 fi
352 for desiredlang in $desiredlanguages; do
353 # Use the presentlang catalog if desiredlang is
354 # a. equal to presentlang, or
355 # b. a variant of presentlang (because in this case,
356 # presentlang can be used as a fallback for messages
357 # which are not translated in the desiredlang catalog).
358 case "$desiredlang" in
359 "$presentlang"*) useit=yes;;
360 esac
361 done
362 if test $useit = yes; then
363 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
364 fi
365 done
366 LINGUAS=$NEW_LINGUAS
367 AC_MSG_RESULT($LINGUAS)
368 fi
369
370 dnl Construct list of names of catalog files to be constructed.
371 if test -n "$LINGUAS"; then
372 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
1445373 fi
1446374 fi
1447 $RM conftest*
375
376 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
377 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
378 dnl Try to locate is.
379 MKINSTALLDIRS=
380 if test -n "$ac_aux_dir"; then
381 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
382 fi
383 if test -z "$MKINSTALLDIRS"; then
384 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
385 fi
386 AC_SUBST(MKINSTALLDIRS)
387
388 dnl Generate list of files to be processed by xgettext which will
389 dnl be included in po/Makefile.
390 test -d po || mkdir po
391 if test "x$srcdir" != "x."; then
392 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
393 posrcprefix="$srcdir/"
394 else
395 posrcprefix="../$srcdir/"
396 fi
397 else
398 posrcprefix="../"
399 fi
400 rm -f po/POTFILES
401 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
402 < $srcdir/po/POTFILES.in > po/POTFILES
403 ])
404
405 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
406 # -------------------------------
407 # Define VARIABLE to the location where catalog files will
408 # be installed by po/Makefile.
409 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
410 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
411 glib_save_prefix="$prefix"
412 glib_save_exec_prefix="$exec_prefix"
413 glib_save_datarootdir="$datarootdir"
414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
415 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
416 datarootdir=`eval echo "${datarootdir}"`
417 if test "x$CATOBJEXT" = "x.mo" ; then
418 localedir=`eval echo "${libdir}/locale"`
419 else
420 localedir=`eval echo "${datadir}/locale"`
421 fi
422 prefix="$glib_save_prefix"
423 exec_prefix="$glib_save_exec_prefix"
424 datarootdir="$glib_save_datarootdir"
425 AC_DEFINE_UNQUOTED($1, "$localedir",
426 [Define the location where the catalogs will be installed])
1448427 ])
1449428
1450 if test x"[$]$2" = xyes; then
1451 m4_if([$5], , :, [$5])
1452 else
1453 m4_if([$6], , :, [$6])
1454 fi
1455 ])# _LT_COMPILER_OPTION
1456
1457 # Old name:
1458 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1459 dnl aclocal-1.4 backwards compatibility:
1460 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1461
1462
1463 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1464 # [ACTION-SUCCESS], [ACTION-FAILURE])
1465 # ----------------------------------------------------
1466 # Check whether the given linker option works
1467 AC_DEFUN([_LT_LINKER_OPTION],
1468 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1469 m4_require([_LT_DECL_SED])dnl
1470 AC_CACHE_CHECK([$1], [$2],
1471 [$2=no
1472 save_LDFLAGS="$LDFLAGS"
1473 LDFLAGS="$LDFLAGS $3"
1474 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1475 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1476 # The linker can only warn and ignore the option if not recognized
1477 # So say no if there are warnings
1478 if test -s conftest.err; then
1479 # Append any errors to the config.log.
1480 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1481 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1483 if diff conftest.exp conftest.er2 >/dev/null; then
1484 $2=yes
1485 fi
1486 else
1487 $2=yes
1488 fi
1489 fi
1490 $RM -r conftest*
1491 LDFLAGS="$save_LDFLAGS"
1492 ])
1493
1494 if test x"[$]$2" = xyes; then
1495 m4_if([$4], , :, [$4])
1496 else
1497 m4_if([$5], , :, [$5])
1498 fi
1499 ])# _LT_LINKER_OPTION
1500
1501 # Old name:
1502 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1503 dnl aclocal-1.4 backwards compatibility:
1504 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1505
1506
1507 # LT_CMD_MAX_LEN
1508 #---------------
1509 AC_DEFUN([LT_CMD_MAX_LEN],
1510 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1511 # find the maximum length of command line arguments
1512 AC_MSG_CHECKING([the maximum length of command line arguments])
1513 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1514 i=0
1515 teststring="ABCD"
1516
1517 case $build_os in
1518 msdosdjgpp*)
1519 # On DJGPP, this test can blow up pretty badly due to problems in libc
1520 # (any single argument exceeding 2000 bytes causes a buffer overrun
1521 # during glob expansion). Even if it were fixed, the result of this
1522 # check would be larger than it should be.
1523 lt_cv_sys_max_cmd_len=12288; # 12K is about right
429 dnl
430 dnl Now the definitions that aclocal will find
431 dnl
432 ifdef(glib_configure_in,[],[
433 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
434 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
435 ])dnl
436
437 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
438 #
439 # Create a temporary file with TEST-FILE as its contents and pass the
440 # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
441 # 0 and perform ACTION-IF-FAIL for any other exit status.
442 AC_DEFUN([GLIB_RUN_PROG],
443 [cat >conftest.foo <<_ACEOF
444 $2
445 _ACEOF
446 if AC_RUN_LOG([$1 conftest.foo]); then
447 m4_ifval([$3], [$3], [:])
448 m4_ifvaln([$4], [else $4])dnl
449 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
450 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
451 fi])
452
453
454
455 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
456 # serial 40 IT_PROG_INTLTOOL
457 AC_DEFUN([IT_PROG_INTLTOOL], [
458 AC_PREREQ([2.50])dnl
459 AC_REQUIRE([AM_NLS])dnl
460
461 case "$am__api_version" in
462 1.[01234])
463 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
1524464 ;;
1525
1526 gnu*)
1527 # Under GNU Hurd, this test is not required because there is
1528 # no limit to the length of command line arguments.
1529 # Libtool will interpret -1 as no limit whatsoever
1530 lt_cv_sys_max_cmd_len=-1;
1531 ;;
1532
1533 cygwin* | mingw* | cegcc*)
1534 # On Win9x/ME, this test blows up -- it succeeds, but takes
1535 # about 5 minutes as the teststring grows exponentially.
1536 # Worse, since 9x/ME are not pre-emptively multitasking,
1537 # you end up with a "frozen" computer, even though with patience
1538 # the test eventually succeeds (with a max line length of 256k).
1539 # Instead, let's just punt: use the minimum linelength reported by
1540 # all of the supported platforms: 8192 (on NT/2K/XP).
1541 lt_cv_sys_max_cmd_len=8192;
1542 ;;
1543
1544 amigaos*)
1545 # On AmigaOS with pdksh, this test takes hours, literally.
1546 # So we just punt and use a minimum line length of 8192.
1547 lt_cv_sys_max_cmd_len=8192;
1548 ;;
1549
1550 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1551 # This has been around since 386BSD, at least. Likely further.
1552 if test -x /sbin/sysctl; then
1553 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1554 elif test -x /usr/sbin/sysctl; then
1555 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1556 else
1557 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1558 fi
1559 # And add a safety zone
1560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1562 ;;
1563
1564 interix*)
1565 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1566 lt_cv_sys_max_cmd_len=196608
1567 ;;
1568
1569 osf*)
1570 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1571 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1572 # nice to cause kernel panics so lets avoid the loop below.
1573 # First set a reasonable default.
1574 lt_cv_sys_max_cmd_len=16384
1575 #
1576 if test -x /sbin/sysconfig; then
1577 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1578 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1579 esac
1580 fi
1581 ;;
1582 sco3.2v5*)
1583 lt_cv_sys_max_cmd_len=102400
1584 ;;
1585 sysv5* | sco5v6* | sysv4.2uw2*)
1586 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1587 if test -n "$kargmax"; then
1588 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1589 else
1590 lt_cv_sys_max_cmd_len=32768
1591 fi
1592 ;;
1593 *)
1594 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1595 if test -n "$lt_cv_sys_max_cmd_len"; then
1596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1598 else
1599 # Make teststring a little bigger before we do anything with it.
1600 # a 1K string should be a reasonable start.
1601 for i in 1 2 3 4 5 6 7 8 ; do
1602 teststring=$teststring$teststring
1603 done
1604 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1605 # If test is not a shell built-in, we'll probably end up computing a
1606 # maximum length that is only half of the actual maximum length, but
1607 # we can't tell.
1608 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1609 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1610 test $i != 17 # 1/2 MB should be enough
1611 do
1612 i=`expr $i + 1`
1613 teststring=$teststring$teststring
1614 done
1615 # Only check the string length outside the loop.
1616 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1617 teststring=
1618 # Add a significant safety factor because C++ compilers can tack on
1619 # massive amounts of additional arguments before passing them to the
1620 # linker. It appears as though 1/2 is a usable value.
1621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1622 fi
1623 ;;
1624 esac
1625 ])
1626 if test -n $lt_cv_sys_max_cmd_len ; then
1627 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1628 else
1629 AC_MSG_RESULT(none)
1630 fi
1631 max_cmd_len=$lt_cv_sys_max_cmd_len
1632 _LT_DECL([], [max_cmd_len], [0],
1633 [What is the maximum length of a command?])
1634 ])# LT_CMD_MAX_LEN
1635
1636 # Old name:
1637 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1638 dnl aclocal-1.4 backwards compatibility:
1639 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1640
1641
1642 # _LT_HEADER_DLFCN
1643 # ----------------
1644 m4_defun([_LT_HEADER_DLFCN],
1645 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1646 ])# _LT_HEADER_DLFCN
1647
1648
1649 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1650 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1651 # ----------------------------------------------------------------
1652 m4_defun([_LT_TRY_DLOPEN_SELF],
1653 [m4_require([_LT_HEADER_DLFCN])dnl
1654 if test "$cross_compiling" = yes; then :
1655 [$4]
1656 else
1657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1658 lt_status=$lt_dlunknown
1659 cat > conftest.$ac_ext <<_LT_EOF
1660 [#line __oline__ "configure"
1661 #include "confdefs.h"
1662
1663 #if HAVE_DLFCN_H
1664 #include <dlfcn.h>
1665 #endif
1666
1667 #include <stdio.h>
1668
1669 #ifdef RTLD_GLOBAL
1670 # define LT_DLGLOBAL RTLD_GLOBAL
1671 #else
1672 # ifdef DL_GLOBAL
1673 # define LT_DLGLOBAL DL_GLOBAL
1674 # else
1675 # define LT_DLGLOBAL 0
1676 # endif
1677 #endif
1678
1679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1680 find out it does not work in some platform. */
1681 #ifndef LT_DLLAZY_OR_NOW
1682 # ifdef RTLD_LAZY
1683 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1684 # else
1685 # ifdef DL_LAZY
1686 # define LT_DLLAZY_OR_NOW DL_LAZY
1687 # else
1688 # ifdef RTLD_NOW
1689 # define LT_DLLAZY_OR_NOW RTLD_NOW
1690 # else
1691 # ifdef DL_NOW
1692 # define LT_DLLAZY_OR_NOW DL_NOW
1693 # else
1694 # define LT_DLLAZY_OR_NOW 0
1695 # endif
1696 # endif
1697 # endif
1698 # endif
1699 #endif
1700
1701 void fnord() { int i=42;}
1702 int main ()
1703 {
1704 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1705 int status = $lt_dlunknown;
1706
1707 if (self)
1708 {
1709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1710 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1711 /* dlclose (self); */
1712 }
1713 else
1714 puts (dlerror ());
1715
1716 return status;
1717 }]
1718 _LT_EOF
1719 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1720 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1721 lt_status=$?
1722 case x$lt_status in
1723 x$lt_dlno_uscore) $1 ;;
1724 x$lt_dlneed_uscore) $2 ;;
1725 x$lt_dlunknown|x*) $3 ;;
1726 esac
1727 else :
1728 # compilation failed
1729 $3
1730 fi
1731 fi
1732 rm -fr conftest*
1733 ])# _LT_TRY_DLOPEN_SELF
1734
1735
1736 # LT_SYS_DLOPEN_SELF
1737 # ------------------
1738 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1739 [m4_require([_LT_HEADER_DLFCN])dnl
1740 if test "x$enable_dlopen" != xyes; then
1741 enable_dlopen=unknown
1742 enable_dlopen_self=unknown
1743 enable_dlopen_self_static=unknown
1744 else
1745 lt_cv_dlopen=no
1746 lt_cv_dlopen_libs=
1747
1748 case $host_os in
1749 beos*)
1750 lt_cv_dlopen="load_add_on"
1751 lt_cv_dlopen_libs=
1752 lt_cv_dlopen_self=yes
1753 ;;
1754
1755 mingw* | pw32* | cegcc*)
1756 lt_cv_dlopen="LoadLibrary"
1757 lt_cv_dlopen_libs=
1758 ;;
1759
1760 cygwin*)
1761 lt_cv_dlopen="dlopen"
1762 lt_cv_dlopen_libs=
1763 ;;
1764
1765 darwin*)
1766 # if libdl is installed we need to link against it
1767 AC_CHECK_LIB([dl], [dlopen],
1768 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1769 lt_cv_dlopen="dyld"
1770 lt_cv_dlopen_libs=
1771 lt_cv_dlopen_self=yes
1772 ])
1773 ;;
1774
1775 *)
1776 AC_CHECK_FUNC([shl_load],
1777 [lt_cv_dlopen="shl_load"],
1778 [AC_CHECK_LIB([dld], [shl_load],
1779 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1780 [AC_CHECK_FUNC([dlopen],
1781 [lt_cv_dlopen="dlopen"],
1782 [AC_CHECK_LIB([dl], [dlopen],
1783 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1784 [AC_CHECK_LIB([svld], [dlopen],
1785 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1786 [AC_CHECK_LIB([dld], [dld_link],
1787 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1788 ])
1789 ])
1790 ])
1791 ])
1792 ])
1793 ;;
1794 esac
1795
1796 if test "x$lt_cv_dlopen" != xno; then
1797 enable_dlopen=yes
1798 else
1799 enable_dlopen=no
1800 fi
1801
1802 case $lt_cv_dlopen in
1803 dlopen)
1804 save_CPPFLAGS="$CPPFLAGS"
1805 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1806
1807 save_LDFLAGS="$LDFLAGS"
1808 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1809
1810 save_LIBS="$LIBS"
1811 LIBS="$lt_cv_dlopen_libs $LIBS"
1812
1813 AC_CACHE_CHECK([whether a program can dlopen itself],
1814 lt_cv_dlopen_self, [dnl
1815 _LT_TRY_DLOPEN_SELF(
1816 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1817 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1818 ])
1819
1820 if test "x$lt_cv_dlopen_self" = xyes; then
1821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1822 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1823 lt_cv_dlopen_self_static, [dnl
1824 _LT_TRY_DLOPEN_SELF(
1825 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1826 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1827 ])
1828 fi
1829
1830 CPPFLAGS="$save_CPPFLAGS"
1831 LDFLAGS="$save_LDFLAGS"
1832 LIBS="$save_LIBS"
1833 ;;
1834 esac
1835
1836 case $lt_cv_dlopen_self in
1837 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1838 *) enable_dlopen_self=unknown ;;
1839 esac
1840
1841 case $lt_cv_dlopen_self_static in
1842 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1843 *) enable_dlopen_self_static=unknown ;;
1844 esac
1845 fi
1846 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1847 [Whether dlopen is supported])
1848 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1849 [Whether dlopen of programs is supported])
1850 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1851 [Whether dlopen of statically linked programs is supported])
1852 ])# LT_SYS_DLOPEN_SELF
1853
1854 # Old name:
1855 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1856 dnl aclocal-1.4 backwards compatibility:
1857 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1858
1859
1860 # _LT_COMPILER_C_O([TAGNAME])
1861 # ---------------------------
1862 # Check to see if options -c and -o are simultaneously supported by compiler.
1863 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1864 m4_defun([_LT_COMPILER_C_O],
1865 [m4_require([_LT_DECL_SED])dnl
1866 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1867 m4_require([_LT_TAG_COMPILER])dnl
1868 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1869 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1870 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1871 $RM -r conftest 2>/dev/null
1872 mkdir conftest
1873 cd conftest
1874 mkdir out
1875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1876
1877 lt_compiler_flag="-o out/conftest2.$ac_objext"
1878 # Insert the option either (1) after the last *FLAGS variable, or
1879 # (2) before a word containing "conftest.", or (3) at the end.
1880 # Note that $ac_compile itself does not contain backslashes and begins
1881 # with a dollar sign (not a hyphen), so the echo should work correctly.
1882 lt_compile=`echo "$ac_compile" | $SED \
1883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1884 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1885 -e 's:$: $lt_compiler_flag:'`
1886 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1887 (eval "$lt_compile" 2>out/conftest.err)
1888 ac_status=$?
1889 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1890 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1892 then
1893 # The compiler can only warn and ignore the option if not recognized
1894 # So say no if there are warnings
1895 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1898 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1899 fi
1900 fi
1901 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1902 $RM conftest*
1903 # SGI C++ compiler will create directory out/ii_files/ for
1904 # template instantiation
1905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1906 $RM out/* && rmdir out
1907 cd ..
1908 $RM -r conftest
1909 $RM conftest*
1910 ])
1911 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1912 [Does compiler simultaneously support -c and -o options?])
1913 ])# _LT_COMPILER_C_O
1914
1915
1916 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1917 # ----------------------------------
1918 # Check to see if we can do hard links to lock some files if needed
1919 m4_defun([_LT_COMPILER_FILE_LOCKS],
1920 [m4_require([_LT_ENABLE_LOCK])dnl
1921 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1922 _LT_COMPILER_C_O([$1])
1923
1924 hard_links="nottested"
1925 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1926 # do not overwrite the value of need_locks provided by the user
1927 AC_MSG_CHECKING([if we can lock with hard links])
1928 hard_links=yes
1929 $RM conftest*
1930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1931 touch conftest.a
1932 ln conftest.a conftest.b 2>&5 || hard_links=no
1933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1934 AC_MSG_RESULT([$hard_links])
1935 if test "$hard_links" = no; then
1936 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1937 need_locks=warn
1938 fi
1939 else
1940 need_locks=no
1941 fi
1942 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1943 ])# _LT_COMPILER_FILE_LOCKS
1944
1945
1946 # _LT_CHECK_OBJDIR
1947 # ----------------
1948 m4_defun([_LT_CHECK_OBJDIR],
1949 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1950 [rm -f .libs 2>/dev/null
1951 mkdir .libs 2>/dev/null
1952 if test -d .libs; then
1953 lt_cv_objdir=.libs
1954 else
1955 # MS-DOS does not allow filenames that begin with a dot.
1956 lt_cv_objdir=_libs
1957 fi
1958 rmdir .libs 2>/dev/null])
1959 objdir=$lt_cv_objdir
1960 _LT_DECL([], [objdir], [0],
1961 [The name of the directory that contains temporary libtool files])dnl
1962 m4_pattern_allow([LT_OBJDIR])dnl
1963 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1964 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1965 ])# _LT_CHECK_OBJDIR
1966
1967
1968 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1969 # --------------------------------------
1970 # Check hardcoding attributes.
1971 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1972 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1973 _LT_TAGVAR(hardcode_action, $1)=
1974 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1975 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1976 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1977
1978 # We can hardcode non-existent directories.
1979 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1981 # have to relink, otherwise we might link with an installed library
1982 # when we should be linking with a yet-to-be-installed one
1983 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1984 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1985 # Linking always hardcodes the temporary library directory.
1986 _LT_TAGVAR(hardcode_action, $1)=relink
1987 else
1988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1989 _LT_TAGVAR(hardcode_action, $1)=immediate
1990 fi
1991 else
1992 # We cannot hardcode anything, or else we can only hardcode existing
1993 # directories.
1994 _LT_TAGVAR(hardcode_action, $1)=unsupported
1995 fi
1996 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1997
1998 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1999 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2000 # Fast installation is not supported
2001 enable_fast_install=no
2002 elif test "$shlibpath_overrides_runpath" = yes ||
2003 test "$enable_shared" = no; then
2004 # Fast installation is not necessary
2005 enable_fast_install=needless
2006 fi
2007 _LT_TAGDECL([], [hardcode_action], [0],
2008 [How to hardcode a shared library path into an executable])
2009 ])# _LT_LINKER_HARDCODE_LIBPATH
2010
2011
2012 # _LT_CMD_STRIPLIB
2013 # ----------------
2014 m4_defun([_LT_CMD_STRIPLIB],
2015 [m4_require([_LT_DECL_EGREP])
2016 striplib=
2017 old_striplib=
2018 AC_MSG_CHECKING([whether stripping libraries is possible])
2019 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2020 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2021 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2022 AC_MSG_RESULT([yes])
2023 else
2024 # FIXME - insert some real tests, host_os isn't really good enough
2025 case $host_os in
2026 darwin*)
2027 if test -n "$STRIP" ; then
2028 striplib="$STRIP -x"
2029 old_striplib="$STRIP -S"
2030 AC_MSG_RESULT([yes])
2031 else
2032 AC_MSG_RESULT([no])
2033 fi
2034 ;;
2035 *)
2036 AC_MSG_RESULT([no])
2037 ;;
2038 esac
2039 fi
2040 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2041 _LT_DECL([], [striplib], [1])
2042 ])# _LT_CMD_STRIPLIB
2043
2044
2045 # _LT_SYS_DYNAMIC_LINKER([TAG])
2046 # -----------------------------
2047 # PORTME Fill in your ld.so characteristics
2048 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2049 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2050 m4_require([_LT_DECL_EGREP])dnl
2051 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2052 m4_require([_LT_DECL_OBJDUMP])dnl
2053 m4_require([_LT_DECL_SED])dnl
2054 AC_MSG_CHECKING([dynamic linker characteristics])
2055 m4_if([$1],
2056 [], [
2057 if test "$GCC" = yes; then
2058 case $host_os in
2059 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2060 *) lt_awk_arg="/^libraries:/" ;;
2061 esac
2062 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2063 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2064 # if the path contains ";" then we assume it to be the separator
2065 # otherwise default to the standard path separator (i.e. ":") - it is
2066 # assumed that no part of a normal pathname contains ";" but that should
2067 # okay in the real world where ";" in dirpaths is itself problematic.
2068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2069 else
2070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2071 fi
2072 # Ok, now we have the path, separated by spaces, we can step through it
2073 # and add multilib dir if necessary.
2074 lt_tmp_lt_search_path_spec=
2075 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2076 for lt_sys_path in $lt_search_path_spec; do
2077 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2078 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2079 else
2080 test -d "$lt_sys_path" && \
2081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2082 fi
2083 done
2084 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2085 BEGIN {RS=" "; FS="/|\n";} {
2086 lt_foo="";
2087 lt_count=0;
2088 for (lt_i = NF; lt_i > 0; lt_i--) {
2089 if ($lt_i != "" && $lt_i != ".") {
2090 if ($lt_i == "..") {
2091 lt_count++;
2092 } else {
2093 if (lt_count == 0) {
2094 lt_foo="/" $lt_i lt_foo;
2095 } else {
2096 lt_count--;
2097 }
2098 }
2099 }
2100 }
2101 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2102 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2103 }'`
2104 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2105 else
2106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2107 fi])
2108 library_names_spec=
2109 libname_spec='lib$name'
2110 soname_spec=
2111 shrext_cmds=".so"
2112 postinstall_cmds=
2113 postuninstall_cmds=
2114 finish_cmds=
2115 finish_eval=
2116 shlibpath_var=
2117 shlibpath_overrides_runpath=unknown
2118 version_type=none
2119 dynamic_linker="$host_os ld.so"
2120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2121 need_lib_prefix=unknown
2122 hardcode_into_libs=no
2123
2124 # when you set need_version to no, make sure it does not cause -set_version
2125 # flags to be left without arguments
2126 need_version=unknown
2127
2128 case $host_os in
2129 aix3*)
2130 version_type=linux
2131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2132 shlibpath_var=LIBPATH
2133
2134 # AIX 3 has no versioning support, so we append a major version to the name.
2135 soname_spec='${libname}${release}${shared_ext}$major'
2136 ;;
2137
2138 aix[[4-9]]*)
2139 version_type=linux
2140 need_lib_prefix=no
2141 need_version=no
2142 hardcode_into_libs=yes
2143 if test "$host_cpu" = ia64; then
2144 # AIX 5 supports IA64
2145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2146 shlibpath_var=LD_LIBRARY_PATH
2147 else
2148 # With GCC up to 2.95.x, collect2 would create an import file
2149 # for dependence libraries. The import file would start with
2150 # the line `#! .'. This would cause the generated library to
2151 # depend on `.', always an invalid library. This was fixed in
2152 # development snapshots of GCC prior to 3.0.
2153 case $host_os in
2154 aix4 | aix4.[[01]] | aix4.[[01]].*)
2155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2156 echo ' yes '
2157 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2158 :
2159 else
2160 can_build_shared=no
2161 fi
2162 ;;
2163 esac
2164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2165 # soname into executable. Probably we can add versioning support to
2166 # collect2, so additional links can be useful in future.
2167 if test "$aix_use_runtimelinking" = yes; then
2168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2169 # instead of lib<name>.a to let people know that these are not
2170 # typical AIX shared libraries.
2171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2172 else
2173 # We preserve .a as extension for shared libraries through AIX4.2
2174 # and later when we are not doing run time linking.
2175 library_names_spec='${libname}${release}.a $libname.a'
2176 soname_spec='${libname}${release}${shared_ext}$major'
2177 fi
2178 shlibpath_var=LIBPATH
2179 fi
2180 ;;
2181
2182 amigaos*)
2183 case $host_cpu in
2184 powerpc)
2185 # Since July 2007 AmigaOS4 officially supports .so libraries.
2186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2188 ;;
2189 m68k)
2190 library_names_spec='$libname.ixlibrary $libname.a'
2191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2192 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
2193 ;;
2194 esac
2195 ;;
2196
2197 beos*)
2198 library_names_spec='${libname}${shared_ext}'
2199 dynamic_linker="$host_os ld.so"
2200 shlibpath_var=LIBRARY_PATH
2201 ;;
2202
2203 bsdi[[45]]*)
2204 version_type=linux
2205 need_version=no
2206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2207 soname_spec='${libname}${release}${shared_ext}$major'
2208 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2209 shlibpath_var=LD_LIBRARY_PATH
2210 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2211 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2212 # the default ld.so.conf also contains /usr/contrib/lib and
2213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2214 # libtool to hard-code these into programs
2215 ;;
2216
2217 cygwin* | mingw* | pw32* | cegcc*)
2218 version_type=windows
2219 shrext_cmds=".dll"
2220 need_version=no
2221 need_lib_prefix=no
2222
2223 case $GCC,$host_os in
2224 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2225 library_names_spec='$libname.dll.a'
2226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2227 postinstall_cmds='base_file=`basename \${file}`~
2228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2229 dldir=$destdir/`dirname \$dlpath`~
2230 test -d \$dldir || mkdir -p \$dldir~
2231 $install_prog $dir/$dlname \$dldir/$dlname~
2232 chmod a+x \$dldir/$dlname~
2233 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2234 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2235 fi'
2236 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2237 dlpath=$dir/\$dldll~
2238 $RM \$dlpath'
2239 shlibpath_overrides_runpath=yes
2240
2241 case $host_os in
2242 cygwin*)
2243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2246 ;;
2247 mingw* | cegcc*)
2248 # MinGW DLLs use traditional 'lib' prefix
2249 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2250 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2251 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2252 # It is most probably a Windows format PATH printed by
2253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2254 # path with ; separators, and with drive letters. We can handle the
2255 # drive letters (cygwin fileutils understands them), so leave them,
2256 # especially as we might pass files found there to a mingw objdump,
2257 # which wouldn't understand a cygwinified path. Ahh.
2258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2259 else
2260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2261 fi
2262 ;;
2263 pw32*)
2264 # pw32 DLLs use 'pw' prefix rather than 'lib'
2265 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2266 ;;
2267 esac
2268 ;;
2269
2270 *)
2271 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2272 ;;
2273 esac
2274 dynamic_linker='Win32 ld.exe'
2275 # FIXME: first we should search . and the directory the executable is in
2276 shlibpath_var=PATH
2277 ;;
2278
2279 darwin* | rhapsody*)
2280 dynamic_linker="$host_os dyld"
2281 version_type=darwin
2282 need_lib_prefix=no
2283 need_version=no
2284 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2285 soname_spec='${libname}${release}${major}$shared_ext'
2286 shlibpath_overrides_runpath=yes
2287 shlibpath_var=DYLD_LIBRARY_PATH
2288 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2289 m4_if([$1], [],[
2290 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2292 ;;
2293
2294 dgux*)
2295 version_type=linux
2296 need_lib_prefix=no
2297 need_version=no
2298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2299 soname_spec='${libname}${release}${shared_ext}$major'
2300 shlibpath_var=LD_LIBRARY_PATH
2301 ;;
2302
2303 freebsd1*)
2304 dynamic_linker=no
2305 ;;
2306
2307 freebsd* | dragonfly*)
2308 # DragonFly does not have aout. When/if they implement a new
2309 # versioning mechanism, adjust this.
2310 if test -x /usr/bin/objformat; then
2311 objformat=`/usr/bin/objformat`
2312 else
2313 case $host_os in
2314 freebsd[[123]]*) objformat=aout ;;
2315 *) objformat=elf ;;
2316 esac
2317 fi
2318 version_type=freebsd-$objformat
2319 case $version_type in
2320 freebsd-elf*)
2321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2322 need_version=no
2323 need_lib_prefix=no
2324 ;;
2325 freebsd-*)
2326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2327 need_version=yes
2328 ;;
2329 esac
2330 shlibpath_var=LD_LIBRARY_PATH
2331 case $host_os in
2332 freebsd2*)
2333 shlibpath_overrides_runpath=yes
2334 ;;
2335 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2336 shlibpath_overrides_runpath=yes
2337 hardcode_into_libs=yes
2338 ;;
2339 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2340 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2341 shlibpath_overrides_runpath=no
2342 hardcode_into_libs=yes
2343 ;;
2344 *) # from 4.6 on, and DragonFly
2345 shlibpath_overrides_runpath=yes
2346 hardcode_into_libs=yes
2347 ;;
2348 esac
2349 ;;
2350
2351 gnu*)
2352 version_type=linux
2353 need_lib_prefix=no
2354 need_version=no
2355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2356 soname_spec='${libname}${release}${shared_ext}$major'
2357 shlibpath_var=LD_LIBRARY_PATH
2358 hardcode_into_libs=yes
2359 ;;
2360
2361 hpux9* | hpux10* | hpux11*)
2362 # Give a soname corresponding to the major version so that dld.sl refuses to
2363 # link against other versions.
2364 version_type=sunos
2365 need_lib_prefix=no
2366 need_version=no
2367 case $host_cpu in
2368 ia64*)
2369 shrext_cmds='.so'
2370 hardcode_into_libs=yes
2371 dynamic_linker="$host_os dld.so"
2372 shlibpath_var=LD_LIBRARY_PATH
2373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2375 soname_spec='${libname}${release}${shared_ext}$major'
2376 if test "X$HPUX_IA64_MODE" = X32; then
2377 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2378 else
2379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2380 fi
2381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2382 ;;
2383 hppa*64*)
2384 shrext_cmds='.sl'
2385 hardcode_into_libs=yes
2386 dynamic_linker="$host_os dld.sl"
2387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2390 soname_spec='${libname}${release}${shared_ext}$major'
2391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2393 ;;
2394 *)
2395 shrext_cmds='.sl'
2396 dynamic_linker="$host_os dld.sl"
2397 shlibpath_var=SHLIB_PATH
2398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2400 soname_spec='${libname}${release}${shared_ext}$major'
2401 ;;
2402 esac
2403 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2404 postinstall_cmds='chmod 555 $lib'
2405 ;;
2406
2407 interix[[3-9]]*)
2408 version_type=linux
2409 need_lib_prefix=no
2410 need_version=no
2411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2412 soname_spec='${libname}${release}${shared_ext}$major'
2413 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2414 shlibpath_var=LD_LIBRARY_PATH
2415 shlibpath_overrides_runpath=no
2416 hardcode_into_libs=yes
2417 ;;
2418
2419 irix5* | irix6* | nonstopux*)
2420 case $host_os in
2421 nonstopux*) version_type=nonstopux ;;
2422465 *)
2423 if test "$lt_cv_prog_gnu_ld" = yes; then
2424 version_type=linux
2425 else
2426 version_type=irix
2427 fi ;;
2428 esac
2429 need_lib_prefix=no
2430 need_version=no
2431 soname_spec='${libname}${release}${shared_ext}$major'
2432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2433 case $host_os in
2434 irix5* | nonstopux*)
2435 libsuff= shlibsuff=
2436 ;;
2437 *)
2438 case $LD in # libtool.m4 will add one of these switches to LD
2439 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2440 libsuff= shlibsuff= libmagic=32-bit;;
2441 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2442 libsuff=32 shlibsuff=N32 libmagic=N32;;
2443 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2444 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2445 *) libsuff= shlibsuff= libmagic=never-match;;
2446 esac
2447 ;;
2448 esac
2449 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2450 shlibpath_overrides_runpath=no
2451 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2452 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2453 hardcode_into_libs=yes
2454 ;;
2455
2456 # No shared lib support for Linux oldld, aout, or coff.
2457 linux*oldld* | linux*aout* | linux*coff*)
2458 dynamic_linker=no
2459 ;;
2460
2461 # This must be Linux ELF.
2462 linux* | k*bsd*-gnu)
2463 version_type=linux
2464 need_lib_prefix=no
2465 need_version=no
2466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2467 soname_spec='${libname}${release}${shared_ext}$major'
2468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2469 shlibpath_var=LD_LIBRARY_PATH
2470 shlibpath_overrides_runpath=no
2471 # Some binutils ld are patched to set DT_RUNPATH
2472 save_LDFLAGS=$LDFLAGS
2473 save_libdir=$libdir
2474 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2475 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2476 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2477 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2478 [shlibpath_overrides_runpath=yes])])
2479 LDFLAGS=$save_LDFLAGS
2480 libdir=$save_libdir
2481
2482 # This implies no fast_install, which is unacceptable.
2483 # Some rework will be needed to allow for fast_install
2484 # before this can be enabled.
2485 hardcode_into_libs=yes
2486
2487 # Add ABI-specific directories to the system library path.
2488 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2489
2490 # Append ld.so.conf contents to the search path
2491 if test -f /etc/ld.so.conf; then
2492 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;/^$/d' | tr '\n' ' '`
2493 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2494 fi
2495
2496 # We used to test for /lib/ld.so.1 and disable shared libraries on
2497 # powerpc, because MkLinux only supported shared libraries with the
2498 # GNU dynamic linker. Since this was broken with cross compilers,
2499 # most powerpc-linux boxes support dynamic linking these days and
2500 # people can always --disable-shared, the test was removed, and we
2501 # assume the GNU/Linux dynamic linker is in use.
2502 dynamic_linker='GNU/Linux ld.so'
2503 ;;
2504
2505 netbsd*)
2506 version_type=sunos
2507 need_lib_prefix=no
2508 need_version=no
2509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2512 dynamic_linker='NetBSD (a.out) ld.so'
2513 else
2514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2515 soname_spec='${libname}${release}${shared_ext}$major'
2516 dynamic_linker='NetBSD ld.elf_so'
2517 fi
2518 shlibpath_var=LD_LIBRARY_PATH
2519 shlibpath_overrides_runpath=yes
2520 hardcode_into_libs=yes
2521 ;;
2522
2523 newsos6)
2524 version_type=linux
2525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2526 shlibpath_var=LD_LIBRARY_PATH
2527 shlibpath_overrides_runpath=yes
2528 ;;
2529
2530 *nto* | *qnx*)
2531 version_type=qnx
2532 need_lib_prefix=no
2533 need_version=no
2534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2535 soname_spec='${libname}${release}${shared_ext}$major'
2536 shlibpath_var=LD_LIBRARY_PATH
2537 shlibpath_overrides_runpath=no
2538 hardcode_into_libs=yes
2539 dynamic_linker='ldqnx.so'
2540 ;;
2541
2542 openbsd*)
2543 version_type=sunos
2544 sys_lib_dlsearch_path_spec="/usr/lib"
2545 need_lib_prefix=no
2546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2547 case $host_os in
2548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2549 *) need_version=no ;;
2550 esac
2551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2553 shlibpath_var=LD_LIBRARY_PATH
2554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2555 case $host_os in
2556 openbsd2.[[89]] | openbsd2.[[89]].*)
2557 shlibpath_overrides_runpath=no
2558 ;;
2559 *)
2560 shlibpath_overrides_runpath=yes
2561 ;;
2562 esac
2563 else
2564 shlibpath_overrides_runpath=yes
2565 fi
2566 ;;
2567
2568 os2*)
2569 libname_spec='$name'
2570 shrext_cmds=".dll"
2571 need_lib_prefix=no
2572 library_names_spec='$libname${shared_ext} $libname.a'
2573 dynamic_linker='OS/2 ld.exe'
2574 shlibpath_var=LIBPATH
2575 ;;
2576
2577 osf3* | osf4* | osf5*)
2578 version_type=osf
2579 need_lib_prefix=no
2580 need_version=no
2581 soname_spec='${libname}${release}${shared_ext}$major'
2582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2583 shlibpath_var=LD_LIBRARY_PATH
2584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2586 ;;
2587
2588 rdos*)
2589 dynamic_linker=no
2590 ;;
2591
2592 solaris*)
2593 version_type=linux
2594 need_lib_prefix=no
2595 need_version=no
2596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2597 soname_spec='${libname}${release}${shared_ext}$major'
2598 shlibpath_var=LD_LIBRARY_PATH
2599 shlibpath_overrides_runpath=yes
2600 hardcode_into_libs=yes
2601 # ldd complains unless libraries are executable
2602 postinstall_cmds='chmod +x $lib'
2603 ;;
2604
2605 sunos4*)
2606 version_type=sunos
2607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2609 shlibpath_var=LD_LIBRARY_PATH
2610 shlibpath_overrides_runpath=yes
2611 if test "$with_gnu_ld" = yes; then
2612 need_lib_prefix=no
2613 fi
2614 need_version=yes
2615 ;;
2616
2617 sysv4 | sysv4.3*)
2618 version_type=linux
2619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2620 soname_spec='${libname}${release}${shared_ext}$major'
2621 shlibpath_var=LD_LIBRARY_PATH
2622 case $host_vendor in
2623 sni)
2624 shlibpath_overrides_runpath=no
2625 need_lib_prefix=no
2626 runpath_var=LD_RUN_PATH
2627 ;;
2628 siemens)
2629 need_lib_prefix=no
2630 ;;
2631 motorola)
2632 need_lib_prefix=no
2633 need_version=no
2634 shlibpath_overrides_runpath=no
2635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2636 ;;
2637 esac
2638 ;;
2639
2640 sysv4*MP*)
2641 if test -d /usr/nec ;then
2642 version_type=linux
2643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2644 soname_spec='$libname${shared_ext}.$major'
2645 shlibpath_var=LD_LIBRARY_PATH
2646 fi
2647 ;;
2648
2649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2650 version_type=freebsd-elf
2651 need_lib_prefix=no
2652 need_version=no
2653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2654 soname_spec='${libname}${release}${shared_ext}$major'
2655 shlibpath_var=LD_LIBRARY_PATH
2656 shlibpath_overrides_runpath=yes
2657 hardcode_into_libs=yes
2658 if test "$with_gnu_ld" = yes; then
2659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2660 else
2661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2662 case $host_os in
2663 sco3.2v5*)
2664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2665 ;;
2666 esac
2667 fi
2668 sys_lib_dlsearch_path_spec='/usr/lib'
2669 ;;
2670
2671 tpf*)
2672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2673 version_type=linux
2674 need_lib_prefix=no
2675 need_version=no
2676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2677 shlibpath_var=LD_LIBRARY_PATH
2678 shlibpath_overrides_runpath=no
2679 hardcode_into_libs=yes
2680 ;;
2681
2682 uts4*)
2683 version_type=linux
2684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2685 soname_spec='${libname}${release}${shared_ext}$major'
2686 shlibpath_var=LD_LIBRARY_PATH
2687 ;;
2688
2689 *)
2690 dynamic_linker=no
2691 ;;
2692 esac
2693 AC_MSG_RESULT([$dynamic_linker])
2694 test "$dynamic_linker" = no && can_build_shared=no
2695
2696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2697 if test "$GCC" = yes; then
2698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2699 fi
2700
2701 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2702 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2703 fi
2704 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2705 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2706 fi
2707
2708 _LT_DECL([], [variables_saved_for_relink], [1],
2709 [Variables whose values should be saved in libtool wrapper scripts and
2710 restored at link time])
2711 _LT_DECL([], [need_lib_prefix], [0],
2712 [Do we need the "lib" prefix for modules?])
2713 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2714 _LT_DECL([], [version_type], [0], [Library versioning type])
2715 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2716 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2717 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2718 [Is shlibpath searched before the hard-coded library search path?])
2719 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2720 _LT_DECL([], [library_names_spec], [1],
2721 [[List of archive names. First name is the real one, the rest are links.
2722 The last name is the one that the linker finds with -lNAME]])
2723 _LT_DECL([], [soname_spec], [1],
2724 [[The coded name of the library, if different from the real name]])
2725 _LT_DECL([], [postinstall_cmds], [2],
2726 [Command to use after installation of a shared archive])
2727 _LT_DECL([], [postuninstall_cmds], [2],
2728 [Command to use after uninstallation of a shared archive])
2729 _LT_DECL([], [finish_cmds], [2],
2730 [Commands used to finish a libtool library installation in a directory])
2731 _LT_DECL([], [finish_eval], [1],
2732 [[As "finish_cmds", except a single script fragment to be evaled but
2733 not shown]])
2734 _LT_DECL([], [hardcode_into_libs], [0],
2735 [Whether we should hardcode library paths into libraries])
2736 _LT_DECL([], [sys_lib_search_path_spec], [2],
2737 [Compile-time system search path for libraries])
2738 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2739 [Run-time system search path for libraries])
2740 ])# _LT_SYS_DYNAMIC_LINKER
2741
2742
2743 # _LT_PATH_TOOL_PREFIX(TOOL)
2744 # --------------------------
2745 # find a file program which can recognize shared library
2746 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2747 [m4_require([_LT_DECL_EGREP])dnl
2748 AC_MSG_CHECKING([for $1])
2749 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2750 [case $MAGIC_CMD in
2751 [[\\/*] | ?:[\\/]*])
2752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2753 ;;
2754 *)
2755 lt_save_MAGIC_CMD="$MAGIC_CMD"
2756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2757 dnl $ac_dummy forces splitting on constant user-supplied paths.
2758 dnl POSIX.2 word splitting is done only on the output of word expansions,
2759 dnl not every word. This closes a longstanding sh security hole.
2760 ac_dummy="m4_if([$2], , $PATH, [$2])"
2761 for ac_dir in $ac_dummy; do
2762 IFS="$lt_save_ifs"
2763 test -z "$ac_dir" && ac_dir=.
2764 if test -f $ac_dir/$1; then
2765 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2766 if test -n "$file_magic_test_file"; then
2767 case $deplibs_check_method in
2768 "file_magic "*)
2769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2772 $EGREP "$file_magic_regex" > /dev/null; then
2773 :
2774 else
2775 cat <<_LT_EOF 1>&2
2776
2777 *** Warning: the command libtool uses to detect shared libraries,
2778 *** $file_magic_cmd, produces output that libtool cannot recognize.
2779 *** The result is that libtool may fail to recognize shared libraries
2780 *** as such. This will affect the creation of libtool libraries that
2781 *** depend on shared libraries, but programs linked with such libtool
2782 *** libraries will work regardless of this problem. Nevertheless, you
2783 *** may want to report the problem to your system manager and/or to
2784 *** bug-libtool@gnu.org
2785
2786 _LT_EOF
2787 fi ;;
2788 esac
2789 fi
2790 break
2791 fi
2792 done
2793 IFS="$lt_save_ifs"
2794 MAGIC_CMD="$lt_save_MAGIC_CMD"
2795 ;;
2796 esac])
2797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2798 if test -n "$MAGIC_CMD"; then
2799 AC_MSG_RESULT($MAGIC_CMD)
2800 else
2801 AC_MSG_RESULT(no)
2802 fi
2803 _LT_DECL([], [MAGIC_CMD], [0],
2804 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2805 ])# _LT_PATH_TOOL_PREFIX
2806
2807 # Old name:
2808 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2809 dnl aclocal-1.4 backwards compatibility:
2810 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2811
2812
2813 # _LT_PATH_MAGIC
2814 # --------------
2815 # find a file program which can recognize a shared library
2816 m4_defun([_LT_PATH_MAGIC],
2817 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2818 if test -z "$lt_cv_path_MAGIC_CMD"; then
2819 if test -n "$ac_tool_prefix"; then
2820 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2821 else
2822 MAGIC_CMD=:
2823 fi
2824 fi
2825 ])# _LT_PATH_MAGIC
2826
2827
2828 # LT_PATH_LD
2829 # ----------
2830 # find the pathname to the GNU or non-GNU linker
2831 AC_DEFUN([LT_PATH_LD],
2832 [AC_REQUIRE([AC_PROG_CC])dnl
2833 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2834 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2835 m4_require([_LT_DECL_SED])dnl
2836 m4_require([_LT_DECL_EGREP])dnl
2837
2838 AC_ARG_WITH([gnu-ld],
2839 [AS_HELP_STRING([--with-gnu-ld],
2840 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2841 [test "$withval" = no || with_gnu_ld=yes],
2842 [with_gnu_ld=no])dnl
2843
2844 ac_prog=ld
2845 if test "$GCC" = yes; then
2846 # Check if gcc -print-prog-name=ld gives a path.
2847 AC_MSG_CHECKING([for ld used by $CC])
2848 case $host in
2849 *-*-mingw*)
2850 # gcc leaves a trailing carriage return which upsets mingw
2851 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2852 *)
2853 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2854 esac
2855 case $ac_prog in
2856 # Accept absolute paths.
2857 [[\\/]]* | ?:[[\\/]]*)
2858 re_direlt='/[[^/]][[^/]]*/\.\./'
2859 # Canonicalize the pathname of ld
2860 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2861 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2862 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2863 done
2864 test -z "$LD" && LD="$ac_prog"
2865 ;;
2866 "")
2867 # If it fails, then pretend we aren't using GCC.
2868 ac_prog=ld
2869 ;;
2870 *)
2871 # If it is relative, then search for the first ld in PATH.
2872 with_gnu_ld=unknown
2873 ;;
2874 esac
2875 elif test "$with_gnu_ld" = yes; then
2876 AC_MSG_CHECKING([for GNU ld])
2877 else
2878 AC_MSG_CHECKING([for non-GNU ld])
2879 fi
2880 AC_CACHE_VAL(lt_cv_path_LD,
2881 [if test -z "$LD"; then
2882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2883 for ac_dir in $PATH; do
2884 IFS="$lt_save_ifs"
2885 test -z "$ac_dir" && ac_dir=.
2886 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2887 lt_cv_path_LD="$ac_dir/$ac_prog"
2888 # Check to see if the program is GNU ld. I'd rather use --version,
2889 # but apparently some variants of GNU ld only accept -v.
2890 # Break only if it was the GNU/non-GNU ld that we prefer.
2891 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2892 *GNU* | *'with BFD'*)
2893 test "$with_gnu_ld" != no && break
2894 ;;
2895 *)
2896 test "$with_gnu_ld" != yes && break
2897 ;;
2898 esac
2899 fi
2900 done
2901 IFS="$lt_save_ifs"
2902 else
2903 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2904 fi])
2905 LD="$lt_cv_path_LD"
2906 if test -n "$LD"; then
2907 AC_MSG_RESULT($LD)
2908 else
2909 AC_MSG_RESULT(no)
2910 fi
2911 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2912 _LT_PATH_LD_GNU
2913 AC_SUBST([LD])
2914
2915 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2916 ])# LT_PATH_LD
2917
2918 # Old names:
2919 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2920 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2921 dnl aclocal-1.4 backwards compatibility:
2922 dnl AC_DEFUN([AM_PROG_LD], [])
2923 dnl AC_DEFUN([AC_PROG_LD], [])
2924
2925
2926 # _LT_PATH_LD_GNU
2927 #- --------------
2928 m4_defun([_LT_PATH_LD_GNU],
2929 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2930 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2931 case `$LD -v 2>&1 </dev/null` in
2932 *GNU* | *'with BFD'*)
2933 lt_cv_prog_gnu_ld=yes
2934 ;;
2935 *)
2936 lt_cv_prog_gnu_ld=no
2937 ;;
2938 esac])
2939 with_gnu_ld=$lt_cv_prog_gnu_ld
2940 ])# _LT_PATH_LD_GNU
2941
2942
2943 # _LT_CMD_RELOAD
2944 # --------------
2945 # find reload flag for linker
2946 # -- PORTME Some linkers may need a different reload flag.
2947 m4_defun([_LT_CMD_RELOAD],
2948 [AC_CACHE_CHECK([for $LD option to reload object files],
2949 lt_cv_ld_reload_flag,
2950 [lt_cv_ld_reload_flag='-r'])
2951 reload_flag=$lt_cv_ld_reload_flag
2952 case $reload_flag in
2953 "" | " "*) ;;
2954 *) reload_flag=" $reload_flag" ;;
2955 esac
2956 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2957 case $host_os in
2958 darwin*)
2959 if test "$GCC" = yes; then
2960 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2961 else
2962 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2963 fi
2964466 ;;
2965467 esac
2966 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2967 _LT_DECL([], [reload_cmds], [2])dnl
2968 ])# _LT_CMD_RELOAD
2969
2970
2971 # _LT_CHECK_MAGIC_METHOD
2972 # ----------------------
2973 # how to check for library dependencies
2974 # -- PORTME fill in with the dynamic library characteristics
2975 m4_defun([_LT_CHECK_MAGIC_METHOD],
2976 [m4_require([_LT_DECL_EGREP])
2977 m4_require([_LT_DECL_OBJDUMP])
2978 AC_CACHE_CHECK([how to recognize dependent libraries],
2979 lt_cv_deplibs_check_method,
2980 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2981 lt_cv_file_magic_test_file=
2982 lt_cv_deplibs_check_method='unknown'
2983 # Need to set the preceding variable on all platforms that support
2984 # interlibrary dependencies.
2985 # 'none' -- dependencies not supported.
2986 # `unknown' -- same as none, but documents that we really don't know.
2987 # 'pass_all' -- all dependencies passed with no checks.
2988 # 'test_compile' -- check by making test program.
2989 # 'file_magic [[regex]]' -- check by looking for files in library path
2990 # which responds to the $file_magic_cmd with a given extended regex.
2991 # If you have `file' or equivalent on your system and you're not sure
2992 # whether `pass_all' will *always* work, you probably want this one.
2993
2994 case $host_os in
2995 aix[[4-9]]*)
2996 lt_cv_deplibs_check_method=pass_all
2997 ;;
2998
2999 beos*)
3000 lt_cv_deplibs_check_method=pass_all
3001 ;;
3002
3003 bsdi[[45]]*)
3004 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3005 lt_cv_file_magic_cmd='/usr/bin/file -L'
3006 lt_cv_file_magic_test_file=/shlib/libc.so
3007 ;;
3008
3009 cygwin*)
3010 # func_win32_libid is a shell function defined in ltmain.sh
3011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3012 lt_cv_file_magic_cmd='func_win32_libid'
3013 ;;
3014
3015 mingw* | pw32*)
3016 # Base MSYS/MinGW do not provide the 'file' command needed by
3017 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3018 # unless we find 'file', for example because we are cross-compiling.
3019 if ( file / ) >/dev/null 2>&1; then
3020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3021 lt_cv_file_magic_cmd='func_win32_libid'
3022 else
3023 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3024 lt_cv_file_magic_cmd='$OBJDUMP -f'
3025 fi
3026 ;;
3027
3028 cegcc)
3029 # use the weaker test based on 'objdump'. See mingw*.
3030 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3031 lt_cv_file_magic_cmd='$OBJDUMP -f'
3032 ;;
3033
3034 darwin* | rhapsody*)
3035 lt_cv_deplibs_check_method=pass_all
3036 ;;
3037
3038 freebsd* | dragonfly*)
3039 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3040 case $host_cpu in
3041 i*86 )
3042 # Not sure whether the presence of OpenBSD here was a mistake.
3043 # Let's accept both of them until this is cleared up.
3044 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3045 lt_cv_file_magic_cmd=/usr/bin/file
3046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3047 ;;
3048 esac
3049 else
3050 lt_cv_deplibs_check_method=pass_all
3051 fi
3052 ;;
3053
3054 gnu*)
3055 lt_cv_deplibs_check_method=pass_all
3056 ;;
3057
3058 hpux10.20* | hpux11*)
3059 lt_cv_file_magic_cmd=/usr/bin/file
3060 case $host_cpu in
3061 ia64*)
3062 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3063 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
468
469 if test -n "$1"; then
470 AC_MSG_CHECKING([for intltool >= $1])
471
472 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
473 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
474 [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
475 ]
476 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
477 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
478 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
479 fi
480
481 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
482 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
483 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
484 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
485 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
486 fi
487
488 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
489 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
490 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
491 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
492 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
493 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
494 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
495 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
496 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
497 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
498 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
499 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
500 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
501 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
502 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
503 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
504 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
505 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
506 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
507
508 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
509 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
510 _IT_SUBST(INTLTOOL_KEYS_RULE)
511 _IT_SUBST(INTLTOOL_PROP_RULE)
512 _IT_SUBST(INTLTOOL_OAF_RULE)
513 _IT_SUBST(INTLTOOL_PONG_RULE)
514 _IT_SUBST(INTLTOOL_SERVER_RULE)
515 _IT_SUBST(INTLTOOL_SHEET_RULE)
516 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
517 _IT_SUBST(INTLTOOL_UI_RULE)
518 _IT_SUBST(INTLTOOL_XAM_RULE)
519 _IT_SUBST(INTLTOOL_KBD_RULE)
520 _IT_SUBST(INTLTOOL_XML_RULE)
521 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
522 _IT_SUBST(INTLTOOL_CAVES_RULE)
523 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
524 _IT_SUBST(INTLTOOL_THEME_RULE)
525 _IT_SUBST(INTLTOOL_SERVICE_RULE)
526 _IT_SUBST(INTLTOOL_POLICY_RULE)
527
528 # Check the gettext tools to make sure they are GNU
529 AC_PATH_PROG(XGETTEXT, xgettext)
530 AC_PATH_PROG(MSGMERGE, msgmerge)
531 AC_PATH_PROG(MSGFMT, msgfmt)
532 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
533 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
534 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
535 fi
536 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
537 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
538 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
539 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
540 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
541 fi
542
543 AC_PATH_PROG(INTLTOOL_PERL, perl)
544 if test -z "$INTLTOOL_PERL"; then
545 AC_MSG_ERROR([perl not found])
546 fi
547 AC_MSG_CHECKING([for perl >= 5.8.1])
548 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
549 if test $? -ne 0; then
550 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
551 else
552 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
553 AC_MSG_RESULT([$IT_PERL_VERSION])
554 fi
555 if test "x$2" != "xno-xml"; then
556 AC_MSG_CHECKING([for XML::Parser])
557 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
558 AC_MSG_RESULT([ok])
559 else
560 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
561 fi
562 fi
563
564 # Substitute ALL_LINGUAS so we can use it in po/Makefile
565 AC_SUBST(ALL_LINGUAS)
566
567 # Set DATADIRNAME correctly if it is not set yet
568 # (copied from glib-gettext.m4)
569 if test -z "$DATADIRNAME"; then
570 AC_LINK_IFELSE(
571 [AC_LANG_PROGRAM([[]],
572 [[extern int _nl_msg_cat_cntr;
573 return _nl_msg_cat_cntr]])],
574 [DATADIRNAME=share],
575 [case $host in
576 *-*-solaris*)
577 dnl On Solaris, if bind_textdomain_codeset is in libc,
578 dnl GNU format message catalog is always supported,
579 dnl since both are added to the libc all together.
580 dnl Hence, we'd like to go with DATADIRNAME=share
581 dnl in this case.
582 AC_CHECK_FUNC(bind_textdomain_codeset,
583 [DATADIRNAME=share], [DATADIRNAME=lib])
3064584 ;;
3065 hppa*64*)
3066 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3067 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
585 *)
586 [DATADIRNAME=lib]
3068587 ;;
3069 *)
3070 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3071 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3072 ;;
3073 esac
3074 ;;
3075
3076 interix[[3-9]]*)
3077 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3078 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3079 ;;
3080
3081 irix5* | irix6* | nonstopux*)
3082 case $LD in
3083 *-32|*"-32 ") libmagic=32-bit;;
3084 *-n32|*"-n32 ") libmagic=N32;;
3085 *-64|*"-64 ") libmagic=64-bit;;
3086 *) libmagic=never-match;;
3087 esac
3088 lt_cv_deplibs_check_method=pass_all
3089 ;;
3090
3091 # This must be Linux ELF.
3092 linux* | k*bsd*-gnu)
3093 lt_cv_deplibs_check_method=pass_all
3094 ;;
3095
3096 netbsd*)
3097 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3098 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3099 else
3100 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3101 fi
3102 ;;
3103
3104 newos6*)
3105 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3106 lt_cv_file_magic_cmd=/usr/bin/file
3107 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3108 ;;
3109
3110 *nto* | *qnx*)
3111 lt_cv_deplibs_check_method=pass_all
3112 ;;
3113
3114 openbsd*)
3115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3116 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3117 else
3118 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3119 fi
3120 ;;
3121
3122 osf3* | osf4* | osf5*)
3123 lt_cv_deplibs_check_method=pass_all
3124 ;;
3125
3126 rdos*)
3127 lt_cv_deplibs_check_method=pass_all
3128 ;;
3129
3130 solaris*)
3131 lt_cv_deplibs_check_method=pass_all
3132 ;;
3133
3134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3135 lt_cv_deplibs_check_method=pass_all
3136 ;;
3137
3138 sysv4 | sysv4.3*)
3139 case $host_vendor in
3140 motorola)
3141 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3142 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3143 ;;
3144 ncr)
3145 lt_cv_deplibs_check_method=pass_all
3146 ;;
3147 sequent)
3148 lt_cv_file_magic_cmd='/bin/file'
3149 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3150 ;;
3151 sni)
3152 lt_cv_file_magic_cmd='/bin/file'
3153 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3154 lt_cv_file_magic_test_file=/lib/libc.so
3155 ;;
3156 siemens)
3157 lt_cv_deplibs_check_method=pass_all
3158 ;;
3159 pc)
3160 lt_cv_deplibs_check_method=pass_all
3161 ;;
3162 esac
3163 ;;
3164
3165 tpf*)
3166 lt_cv_deplibs_check_method=pass_all
3167 ;;
3168 esac
588 esac])
589 fi
590 AC_SUBST(DATADIRNAME)
591
592 IT_PO_SUBDIR([po])
593
3169594 ])
3170 file_magic_cmd=$lt_cv_file_magic_cmd
3171 deplibs_check_method=$lt_cv_deplibs_check_method
3172 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3173
3174 _LT_DECL([], [deplibs_check_method], [1],
3175 [Method to check whether dependent libraries are shared objects])
3176 _LT_DECL([], [file_magic_cmd], [1],
3177 [Command to use when deplibs_check_method == "file_magic"])
3178 ])# _LT_CHECK_MAGIC_METHOD
3179
3180
3181 # LT_PATH_NM
3182 # ----------
3183 # find the pathname to a BSD- or MS-compatible name lister
3184 AC_DEFUN([LT_PATH_NM],
3185 [AC_REQUIRE([AC_PROG_CC])dnl
3186 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3187 [if test -n "$NM"; then
3188 # Let the user override the test.
3189 lt_cv_path_NM="$NM"
3190 else
3191 lt_nm_to_check="${ac_tool_prefix}nm"
3192 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3193 lt_nm_to_check="$lt_nm_to_check nm"
3194 fi
3195 for lt_tmp_nm in $lt_nm_to_check; do
3196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3197 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3198 IFS="$lt_save_ifs"
3199 test -z "$ac_dir" && ac_dir=.
3200 tmp_nm="$ac_dir/$lt_tmp_nm"
3201 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3202 # Check to see if the nm accepts a BSD-compat flag.
3203 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3204 # nm: unknown option "B" ignored
3205 # Tru64's nm complains that /dev/null is an invalid object file
3206 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3207 */dev/null* | *'Invalid file or object type'*)
3208 lt_cv_path_NM="$tmp_nm -B"
3209 break
3210 ;;
3211 *)
3212 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3213 */dev/null*)
3214 lt_cv_path_NM="$tmp_nm -p"
3215 break
3216 ;;
3217 *)
3218 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3219 continue # so that we can try to find one that supports BSD flags
3220 ;;
3221 esac
3222 ;;
3223 esac
3224 fi
3225 done
3226 IFS="$lt_save_ifs"
3227 done
3228 : ${lt_cv_path_NM=no}
3229 fi])
3230 if test "$lt_cv_path_NM" != "no"; then
3231 NM="$lt_cv_path_NM"
3232 else
3233 # Didn't find any BSD compatible name lister, look for dumpbin.
3234 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3235 AC_SUBST([DUMPBIN])
3236 if test "$DUMPBIN" != ":"; then
3237 NM="$DUMPBIN"
3238 fi
3239 fi
3240 test -z "$NM" && NM=nm
3241 AC_SUBST([NM])
3242 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3243
3244 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3245 [lt_cv_nm_interface="BSD nm"
3246 echo "int some_variable = 0;" > conftest.$ac_ext
3247 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3248 (eval "$ac_compile" 2>conftest.err)
3249 cat conftest.err >&AS_MESSAGE_LOG_FD
3250 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3251 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3252 cat conftest.err >&AS_MESSAGE_LOG_FD
3253 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3254 cat conftest.out >&AS_MESSAGE_LOG_FD
3255 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3256 lt_cv_nm_interface="MS dumpbin"
3257 fi
3258 rm -f conftest*])
3259 ])# LT_PATH_NM
3260
3261 # Old names:
3262 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3263 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3264 dnl aclocal-1.4 backwards compatibility:
3265 dnl AC_DEFUN([AM_PROG_NM], [])
3266 dnl AC_DEFUN([AC_PROG_NM], [])
3267
3268
3269 # LT_LIB_M
3270 # --------
3271 # check for math library
3272 AC_DEFUN([LT_LIB_M],
3273 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3274 LIBM=
3275 case $host in
3276 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3277 # These system don't have libm, or don't need it
3278 ;;
3279 *-ncr-sysv4.3*)
3280 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3281 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3282 ;;
3283 *)
3284 AC_CHECK_LIB(m, cos, LIBM="-lm")
3285 ;;
3286 esac
3287 AC_SUBST([LIBM])
3288 ])# LT_LIB_M
3289
3290 # Old name:
3291 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3292 dnl aclocal-1.4 backwards compatibility:
3293 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3294
3295
3296 # _LT_COMPILER_NO_RTTI([TAGNAME])
3297 # -------------------------------
3298 m4_defun([_LT_COMPILER_NO_RTTI],
3299 [m4_require([_LT_TAG_COMPILER])dnl
3300
3301 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3302
3303 if test "$GCC" = yes; then
3304 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3305
3306 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3307 lt_cv_prog_compiler_rtti_exceptions,
3308 [-fno-rtti -fno-exceptions], [],
3309 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3310 fi
3311 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3312 [Compiler flag to turn off builtin functions])
3313 ])# _LT_COMPILER_NO_RTTI
3314
3315
3316 # _LT_CMD_GLOBAL_SYMBOLS
3317 # ----------------------
3318 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3319 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3320 AC_REQUIRE([AC_PROG_CC])dnl
3321 AC_REQUIRE([LT_PATH_NM])dnl
3322 AC_REQUIRE([LT_PATH_LD])dnl
3323 m4_require([_LT_DECL_SED])dnl
3324 m4_require([_LT_DECL_EGREP])dnl
3325 m4_require([_LT_TAG_COMPILER])dnl
3326
3327 # Check for command to grab the raw symbol name followed by C symbol from nm.
3328 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3329 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
595
596
597 # IT_PO_SUBDIR(DIRNAME)
598 # ---------------------
599 # All po subdirs have to be declared with this macro; the subdir "po" is
600 # declared by IT_PROG_INTLTOOL.
601 #
602 AC_DEFUN([IT_PO_SUBDIR],
603 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
604 dnl
605 dnl The following CONFIG_COMMANDS should be exetuted at the very end
606 dnl of config.status.
607 AC_CONFIG_COMMANDS_PRE([
608 AC_CONFIG_COMMANDS([$1/stamp-it], [
609 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
610 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
611 fi
612 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
613 >"$1/stamp-it.tmp"
614 [sed '/^#/d
615 s/^[[].*] *//
616 /^[ ]*$/d
617 '"s|^| $ac_top_srcdir/|" \
618 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
619 ]
620 [sed '/^POTFILES =/,/[^\\]$/ {
621 /^POTFILES =/!d
622 r $1/POTFILES
623 }
624 ' "$1/Makefile.in" >"$1/Makefile"]
625 rm -f "$1/Makefile.tmp"
626 mv "$1/stamp-it.tmp" "$1/stamp-it"
627 ])
628 ])dnl
629 ])
630
631 # _IT_SUBST(VARIABLE)
632 # -------------------
633 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
634 #
635 AC_DEFUN([_IT_SUBST],
3330636 [
3331 # These are sane defaults that work on at least a few old systems.
3332 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3333
3334 # Character class describing NM global symbol codes.
3335 symcode='[[BCDEGRST]]'
3336
3337 # Regexp to match symbols that can be accessed directly from C.
3338 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3339
3340 # Define system-specific variables.
3341 case $host_os in
3342 aix*)
3343 symcode='[[BCDT]]'
3344 ;;
3345 cygwin* | mingw* | pw32* | cegcc*)
3346 symcode='[[ABCDGISTW]]'
3347 ;;
3348 hpux*)
3349 if test "$host_cpu" = ia64; then
3350 symcode='[[ABCDEGRST]]'
3351 fi
3352 ;;
3353 irix* | nonstopux*)
3354 symcode='[[BCDEGRST]]'
3355 ;;
3356 osf*)
3357 symcode='[[BCDEGQRST]]'
3358 ;;
3359 solaris*)
3360 symcode='[[BDRT]]'
3361 ;;
3362 sco3.2v5*)
3363 symcode='[[DT]]'
3364 ;;
3365 sysv4.2uw2*)
3366 symcode='[[DT]]'
3367 ;;
3368 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3369 symcode='[[ABDT]]'
3370 ;;
3371 sysv4)
3372 symcode='[[DFNSTU]]'
3373 ;;
3374 esac
3375
3376 # If we're using GNU nm, then use its standard symbol codes.
3377 case `$NM -V 2>&1` in
3378 *GNU* | *'with BFD'*)
3379 symcode='[[ABCDGIRSTW]]' ;;
3380 esac
3381
3382 # Transform an extracted symbol line into a proper C declaration.
3383 # Some systems (esp. on ia64) link data and code symbols differently,
3384 # so use this general approach.
3385 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3386
3387 # Transform an extracted symbol line into symbol name and symbol address
3388 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3389 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3390
3391 # Handle CRLF in mingw tool chain
3392 opt_cr=
3393 case $build_os in
3394 mingw*)
3395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3396 ;;
3397 esac
3398
3399 # Try without a prefix underscore, then with it.
3400 for ac_symprfx in "" "_"; do
3401
3402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3403 symxfrm="\\1 $ac_symprfx\\2 \\2"
3404
3405 # Write the raw and C identifiers.
3406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3407 # Fake it for dumpbin and say T for any non-static function
3408 # and D for any global variable.
3409 # Also find C++ and __fastcall symbols from MSVC++,
3410 # which start with @ or ?.
3411 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3412 " {last_section=section; section=\$ 3};"\
3413 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3414 " \$ 0!~/External *\|/{next};"\
3415 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3416 " {if(hide[section]) next};"\
3417 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3418 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3419 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3420 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3421 " ' prfx=^$ac_symprfx]"
3422 else
3423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3424 fi
3425
3426 # Check to see that the pipe works correctly.
3427 pipe_works=no
3428
3429 rm -f conftest*
3430 cat > conftest.$ac_ext <<_LT_EOF
3431 #ifdef __cplusplus
3432 extern "C" {
3433 #endif
3434 char nm_test_var;
3435 void nm_test_func(void);
3436 void nm_test_func(void){}
3437 #ifdef __cplusplus
3438 }
3439 #endif
3440 int main(){nm_test_var='a';nm_test_func();return(0);}
3441 _LT_EOF
3442
3443 if AC_TRY_EVAL(ac_compile); then
3444 # Now try to grab the symbols.
3445 nlist=conftest.nm
3446 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3447 # Try sorting and uniquifying the output.
3448 if sort "$nlist" | uniq > "$nlist"T; then
3449 mv -f "$nlist"T "$nlist"
3450 else
3451 rm -f "$nlist"T
3452 fi
3453
3454 # Make sure that we snagged all the symbols we need.
3455 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3456 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3457 cat <<_LT_EOF > conftest.$ac_ext
3458 #ifdef __cplusplus
3459 extern "C" {
3460 #endif
3461
3462 _LT_EOF
3463 # Now generate the symbol file.
3464 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3465
3466 cat <<_LT_EOF >> conftest.$ac_ext
3467
3468 /* The mapping between symbol names and symbols. */
3469 const struct {
3470 const char *name;
3471 void *address;
3472 }
3473 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3474 {
3475 { "@PROGRAM@", (void *) 0 },
3476 _LT_EOF
3477 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3478 cat <<\_LT_EOF >> conftest.$ac_ext
3479 {0, (void *) 0}
3480 };
3481
3482 /* This works around a problem in FreeBSD linker */
3483 #ifdef FREEBSD_WORKAROUND
3484 static const void *lt_preloaded_setup() {
3485 return lt__PROGRAM__LTX_preloaded_symbols;
3486 }
3487 #endif
3488
3489 #ifdef __cplusplus
3490 }
3491 #endif
3492 _LT_EOF
3493 # Now try linking the two files.
3494 mv conftest.$ac_objext conftstm.$ac_objext
3495 lt_save_LIBS="$LIBS"
3496 lt_save_CFLAGS="$CFLAGS"
3497 LIBS="conftstm.$ac_objext"
3498 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3499 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3500 pipe_works=yes
3501 fi
3502 LIBS="$lt_save_LIBS"
3503 CFLAGS="$lt_save_CFLAGS"
3504 else
3505 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3506 fi
3507 else
3508 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3509 fi
3510 else
3511 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3512 fi
3513 else
3514 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3515 cat conftest.$ac_ext >&5
3516 fi
3517 rm -rf conftest* conftst*
3518
3519 # Do not use the global_symbol_pipe unless it works.
3520 if test "$pipe_works" = yes; then
3521 break
3522 else
3523 lt_cv_sys_global_symbol_pipe=
3524 fi
3525 done
637 AC_SUBST([$1])
638 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
639 ]
640 )
641
642 # deprecated macros
643 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
644 # A hint is needed for aclocal from Automake <= 1.9.4:
645 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
646
647
648 # nls.m4 serial 3 (gettext-0.15)
649 dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
650 dnl This file is free software; the Free Software Foundation
651 dnl gives unlimited permission to copy and/or distribute it,
652 dnl with or without modifications, as long as this notice is preserved.
653 dnl
654 dnl This file can can be used in projects which are not available under
655 dnl the GNU General Public License or the GNU Library General Public
656 dnl License but which still want to provide support for the GNU gettext
657 dnl functionality.
658 dnl Please note that the actual code of the GNU gettext library is covered
659 dnl by the GNU Library General Public License, and the rest of the GNU
660 dnl gettext package package is covered by the GNU General Public License.
661 dnl They are *not* in the public domain.
662
663 dnl Authors:
664 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
665 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
666
667 AC_PREREQ(2.50)
668
669 AC_DEFUN([AM_NLS],
670 [
671 AC_MSG_CHECKING([whether NLS is requested])
672 dnl Default is enabled NLS
673 AC_ARG_ENABLE(nls,
674 [ --disable-nls do not use Native Language Support],
675 USE_NLS=$enableval, USE_NLS=yes)
676 AC_MSG_RESULT($USE_NLS)
677 AC_SUBST(USE_NLS)
3526678 ])
3527 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3528 lt_cv_sys_global_symbol_to_cdecl=
3529 fi
3530 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3531 AC_MSG_RESULT(failed)
3532 else
3533 AC_MSG_RESULT(ok)
3534 fi
3535
3536 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3537 [Take the output of nm and produce a listing of raw symbols and C names])
3538 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3539 [Transform the output of nm in a proper C declaration])
3540 _LT_DECL([global_symbol_to_c_name_address],
3541 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3542 [Transform the output of nm in a C name address pair])
3543 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3544 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3545 [Transform the output of nm in a C name address pair when lib prefix is needed])
3546 ]) # _LT_CMD_GLOBAL_SYMBOLS
3547
3548
3549 # _LT_COMPILER_PIC([TAGNAME])
3550 # ---------------------------
3551 m4_defun([_LT_COMPILER_PIC],
3552 [m4_require([_LT_TAG_COMPILER])dnl
3553 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3554 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3555 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3556
3557 AC_MSG_CHECKING([for $compiler option to produce PIC])
3558 m4_if([$1], [CXX], [
3559 # C++ specific cases for pic, static, wl, etc.
3560 if test "$GXX" = yes; then
3561 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3562 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3563
3564 case $host_os in
3565 aix*)
3566 # All AIX code is PIC.
3567 if test "$host_cpu" = ia64; then
3568 # AIX 5 now supports IA64 processor
3569 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3570 fi
3571 ;;
3572
3573 amigaos*)
3574 case $host_cpu in
3575 powerpc)
3576 # see comment about AmigaOS4 .so support
3577 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3578 ;;
3579 m68k)
3580 # FIXME: we need at least 68020 code to build shared libraries, but
3581 # adding the `-m68020' flag to GCC prevents building anything better,
3582 # like `-m68040'.
3583 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3584 ;;
3585 esac
3586 ;;
3587
3588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3589 # PIC is the default for these OSes.
3590 ;;
3591 mingw* | cygwin* | os2* | pw32* | cegcc*)
3592 # This hack is so that the source file can tell whether it is being
3593 # built for inclusion in a dll (and should export symbols for example).
3594 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3595 # (--disable-auto-import) libraries
3596 m4_if([$1], [GCJ], [],
3597 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3598 ;;
3599 darwin* | rhapsody*)
3600 # PIC is the default on this platform
3601 # Common symbols not allowed in MH_DYLIB files
3602 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3603 ;;
3604 *djgpp*)
3605 # DJGPP does not support shared libraries at all
3606 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3607 ;;
3608 interix[[3-9]]*)
3609 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3610 # Instead, we relocate shared libraries at runtime.
3611 ;;
3612 sysv4*MP*)
3613 if test -d /usr/nec; then
3614 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3615 fi
3616 ;;
3617 hpux*)
3618 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3619 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3620 # sets the default TLS model and affects inlining.
3621 case $host_cpu in
3622 hppa*64*)
3623 ;;
3624 *)
3625 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3626 ;;
3627 esac
3628 ;;
3629 *qnx* | *nto*)
3630 # QNX uses GNU C++, but need to define -shared option too, otherwise
3631 # it will coredump.
3632 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3633 ;;
3634 *)
3635 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3636 ;;
3637 esac
3638 else
3639 case $host_os in
3640 aix[[4-9]]*)
3641 # All AIX code is PIC.
3642 if test "$host_cpu" = ia64; then
3643 # AIX 5 now supports IA64 processor
3644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3645 else
3646 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3647 fi
3648 ;;
3649 chorus*)
3650 case $cc_basename in
3651 cxch68*)
3652 # Green Hills C++ Compiler
3653 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3654 ;;
3655 esac
3656 ;;
3657 dgux*)
3658 case $cc_basename in
3659 ec++*)
3660 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3661 ;;
3662 ghcx*)
3663 # Green Hills C++ Compiler
3664 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3665 ;;
3666 *)
3667 ;;
3668 esac
3669 ;;
3670 freebsd* | dragonfly*)
3671 # FreeBSD uses GNU C++
3672 ;;
3673 hpux9* | hpux10* | hpux11*)
3674 case $cc_basename in
3675 CC*)
3676 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3677 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3678 if test "$host_cpu" != ia64; then
3679 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3680 fi
3681 ;;
3682 aCC*)
3683 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3684 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3685 case $host_cpu in
3686 hppa*64*|ia64*)
3687 # +Z the default
3688 ;;
3689 *)
3690 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3691 ;;
3692 esac
3693 ;;
3694 *)
3695 ;;
3696 esac
3697 ;;
3698 interix*)
3699 # This is c89, which is MS Visual C++ (no shared libs)
3700 # Anyone wants to do a port?
3701 ;;
3702 irix5* | irix6* | nonstopux*)
3703 case $cc_basename in
3704 CC*)
3705 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3706 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3707 # CC pic flag -KPIC is the default.
3708 ;;
3709 *)
3710 ;;
3711 esac
3712 ;;
3713 linux* | k*bsd*-gnu)
3714 case $cc_basename in
3715 KCC*)
3716 # KAI C++ Compiler
3717 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3718 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3719 ;;
3720 ecpc* )
3721 # old Intel C++ for x86_64 which still supported -KPIC.
3722 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3723 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3724 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3725 ;;
3726 icpc* )
3727 # Intel C++, used to be incompatible with GCC.
3728 # ICC 10 doesn't accept -KPIC any more.
3729 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3730 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3731 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3732 ;;
3733 pgCC* | pgcpp*)
3734 # Portland Group C++ compiler
3735 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3736 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3737 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3738 ;;
3739 cxx*)
3740 # Compaq C++
3741 # Make sure the PIC flag is empty. It appears that all Alpha
3742 # Linux and Compaq Tru64 Unix objects are PIC.
3743 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3744 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3745 ;;
3746 xlc* | xlC*)
3747 # IBM XL 8.0 on PPC
3748 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3749 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3750 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3751 ;;
3752 *)
3753 case `$CC -V 2>&1 | sed 5q` in
3754 *Sun\ C*)
3755 # Sun C++ 5.9
3756 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3757 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3758 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3759 ;;
3760 esac
3761 ;;
3762 esac
3763 ;;
3764 lynxos*)
3765 ;;
3766 m88k*)
3767 ;;
3768 mvs*)
3769 case $cc_basename in
3770 cxx*)
3771 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3772 ;;
3773 *)
3774 ;;
3775 esac
3776 ;;
3777 netbsd*)
3778 ;;
3779 *qnx* | *nto*)
3780 # QNX uses GNU C++, but need to define -shared option too, otherwise
3781 # it will coredump.
3782 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3783 ;;
3784 osf3* | osf4* | osf5*)
3785 case $cc_basename in
3786 KCC*)
3787 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3788 ;;
3789 RCC*)
3790 # Rational C++ 2.4.1
3791 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3792 ;;
3793 cxx*)
3794 # Digital/Compaq C++
3795 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3796 # Make sure the PIC flag is empty. It appears that all Alpha
3797 # Linux and Compaq Tru64 Unix objects are PIC.
3798 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3799 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3800 ;;
3801 *)
3802 ;;
3803 esac
3804 ;;
3805 psos*)
3806 ;;
3807 solaris*)
3808 case $cc_basename in
3809 CC*)
3810 # Sun C++ 4.2, 5.x and Centerline C++
3811 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3812 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3813 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3814 ;;
3815 gcx*)
3816 # Green Hills C++ Compiler
3817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3818 ;;
3819 *)
3820 ;;
3821 esac
3822 ;;
3823 sunos4*)
3824 case $cc_basename in
3825 CC*)
3826 # Sun C++ 4.x
3827 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3828 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3829 ;;
3830 lcc*)
3831 # Lucid
3832 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3833 ;;
3834 *)
3835 ;;
3836 esac
3837 ;;
3838 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3839 case $cc_basename in
3840 CC*)
3841 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3842 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3843 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3844 ;;
3845 esac
3846 ;;
3847 tandem*)
3848 case $cc_basename in
3849 NCC*)
3850 # NonStop-UX NCC 3.20
3851 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3852 ;;
3853 *)
3854 ;;
3855 esac
3856 ;;
3857 vxworks*)
3858 ;;
3859 *)
3860 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3861 ;;
3862 esac
3863 fi
3864 ],
3865 [
3866 if test "$GCC" = yes; then
3867 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3868 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3869
3870 case $host_os in
3871 aix*)
3872 # All AIX code is PIC.
3873 if test "$host_cpu" = ia64; then
3874 # AIX 5 now supports IA64 processor
3875 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3876 fi
3877 ;;
3878
3879 amigaos*)
3880 case $host_cpu in
3881 powerpc)
3882 # see comment about AmigaOS4 .so support
3883 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3884 ;;
3885 m68k)
3886 # FIXME: we need at least 68020 code to build shared libraries, but
3887 # adding the `-m68020' flag to GCC prevents building anything better,
3888 # like `-m68040'.
3889 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3890 ;;
3891 esac
3892 ;;
3893
3894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3895 # PIC is the default for these OSes.
3896 ;;
3897
3898 mingw* | cygwin* | pw32* | os2* | cegcc*)
3899 # This hack is so that the source file can tell whether it is being
3900 # built for inclusion in a dll (and should export symbols for example).
3901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3902 # (--disable-auto-import) libraries
3903 m4_if([$1], [GCJ], [],
3904 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3905 ;;
3906
3907 darwin* | rhapsody*)
3908 # PIC is the default on this platform
3909 # Common symbols not allowed in MH_DYLIB files
3910 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3911 ;;
3912
3913 hpux*)
3914 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3915 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3916 # sets the default TLS model and affects inlining.
3917 case $host_cpu in
3918 hppa*64*)
3919 # +Z the default
3920 ;;
3921 *)
3922 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3923 ;;
3924 esac
3925 ;;
3926
3927 interix[[3-9]]*)
3928 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3929 # Instead, we relocate shared libraries at runtime.
3930 ;;
3931
3932 msdosdjgpp*)
3933 # Just because we use GCC doesn't mean we suddenly get shared libraries
3934 # on systems that don't support them.
3935 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3936 enable_shared=no
3937 ;;
3938
3939 *nto* | *qnx*)
3940 # QNX uses GNU C++, but need to define -shared option too, otherwise
3941 # it will coredump.
3942 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3943 ;;
3944
3945 sysv4*MP*)
3946 if test -d /usr/nec; then
3947 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3948 fi
3949 ;;
3950
3951 *)
3952 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3953 ;;
3954 esac
3955 else
3956 # PORTME Check for flag to pass linker flags through the system compiler.
3957 case $host_os in
3958 aix*)
3959 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3960 if test "$host_cpu" = ia64; then
3961 # AIX 5 now supports IA64 processor
3962 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3963 else
3964 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3965 fi
3966 ;;
3967
3968 mingw* | cygwin* | pw32* | os2* | cegcc*)
3969 # This hack is so that the source file can tell whether it is being
3970 # built for inclusion in a dll (and should export symbols for example).
3971 m4_if([$1], [GCJ], [],
3972 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3973 ;;
3974
3975 hpux9* | hpux10* | hpux11*)
3976 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3978 # not for PA HP-UX.
3979 case $host_cpu in
3980 hppa*64*|ia64*)
3981 # +Z the default
3982 ;;
3983 *)
3984 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3985 ;;
3986 esac
3987 # Is there a better lt_prog_compiler_static that works with the bundled CC?
3988 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3989 ;;
3990
3991 irix5* | irix6* | nonstopux*)
3992 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3993 # PIC (with -KPIC) is the default.
3994 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3995 ;;
3996
3997 linux* | k*bsd*-gnu)
3998 case $cc_basename in
3999 # old Intel for x86_64 which still supported -KPIC.
4000 ecc*)
4001 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4002 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4003 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4004 ;;
4005 # icc used to be incompatible with GCC.
4006 # ICC 10 doesn't accept -KPIC any more.
4007 icc* | ifort*)
4008 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4009 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4010 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4011 ;;
4012 # Lahey Fortran 8.1.
4013 lf95*)
4014 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4015 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4016 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4017 ;;
4018 pgcc* | pgf77* | pgf90* | pgf95*)
4019 # Portland Group compilers (*not* the Pentium gcc compiler,
4020 # which looks to be a dead project)
4021 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4022 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4023 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4024 ;;
4025 ccc*)
4026 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4027 # All Alpha code is PIC.
4028 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4029 ;;
4030 xl*)
4031 # IBM XL C 8.0/Fortran 10.1 on PPC
4032 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4033 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4034 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4035 ;;
4036 *)
4037 case `$CC -V 2>&1 | sed 5q` in
4038 *Sun\ C*)
4039 # Sun C 5.9
4040 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4041 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4042 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4043 ;;
4044 *Sun\ F*)
4045 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4046 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4047 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4048 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4049 ;;
4050 esac
4051 ;;
4052 esac
4053 ;;
4054
4055 newsos6)
4056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4057 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4058 ;;
4059
4060 *nto* | *qnx*)
4061 # QNX uses GNU C++, but need to define -shared option too, otherwise
4062 # it will coredump.
4063 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4064 ;;
4065
4066 osf3* | osf4* | osf5*)
4067 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4068 # All OSF/1 code is PIC.
4069 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4070 ;;
4071
4072 rdos*)
4073 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4074 ;;
4075
4076 solaris*)
4077 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4078 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4079 case $cc_basename in
4080 f77* | f90* | f95*)
4081 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4082 *)
4083 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4084 esac
4085 ;;
4086
4087 sunos4*)
4088 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4089 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4090 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4091 ;;
4092
4093 sysv4 | sysv4.2uw2* | sysv4.3*)
4094 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4095 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4096 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4097 ;;
4098
4099 sysv4*MP*)
4100 if test -d /usr/nec ;then
4101 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4102 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4103 fi
4104 ;;
4105
4106 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4107 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4108 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4109 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4110 ;;
4111
4112 unicos*)
4113 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4114 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4115 ;;
4116
4117 uts4*)
4118 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4119 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4120 ;;
4121
4122 *)
4123 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4124 ;;
4125 esac
4126 fi
4127 ])
4128 case $host_os in
4129 # For platforms which do not support PIC, -DPIC is meaningless:
4130 *djgpp*)
4131 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4132 ;;
4133 *)
4134 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4135 ;;
4136 esac
4137 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4138 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4139 [How to pass a linker flag through the compiler])
4140
4141 #
4142 # Check to make sure the PIC flag actually works.
4143 #
4144 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4145 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4146 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4147 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4148 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4149 "" | " "*) ;;
4150 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4151 esac],
4152 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4153 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4154 fi
4155 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4156 [Additional compiler flags for building library objects])
4157
4158 #
4159 # Check to make sure the static flag actually works.
4160 #
4161 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4162 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4163 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4164 $lt_tmp_static_flag,
4165 [],
4166 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4167 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4168 [Compiler flag to prevent dynamic linking])
4169 ])# _LT_COMPILER_PIC
4170
4171
4172 # _LT_LINKER_SHLIBS([TAGNAME])
4173 # ----------------------------
4174 # See if the linker supports building shared libraries.
4175 m4_defun([_LT_LINKER_SHLIBS],
4176 [AC_REQUIRE([LT_PATH_LD])dnl
4177 AC_REQUIRE([LT_PATH_NM])dnl
4178 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4179 m4_require([_LT_DECL_EGREP])dnl
4180 m4_require([_LT_DECL_SED])dnl
4181 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4182 m4_require([_LT_TAG_COMPILER])dnl
4183 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4184 m4_if([$1], [CXX], [
4185 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4186 case $host_os in
4187 aix[[4-9]]*)
4188 # If we're using GNU nm, then we don't want the "-C" option.
4189 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4190 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4191 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4192 else
4193 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4194 fi
4195 ;;
4196 pw32*)
4197 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4198 ;;
4199 cygwin* | mingw* | cegcc*)
4200 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4201 ;;
4202 *)
4203 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4204 ;;
4205 esac
4206 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4207 ], [
4208 runpath_var=
4209 _LT_TAGVAR(allow_undefined_flag, $1)=
4210 _LT_TAGVAR(always_export_symbols, $1)=no
4211 _LT_TAGVAR(archive_cmds, $1)=
4212 _LT_TAGVAR(archive_expsym_cmds, $1)=
4213 _LT_TAGVAR(compiler_needs_object, $1)=no
4214 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4215 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4216 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4217 _LT_TAGVAR(hardcode_automatic, $1)=no
4218 _LT_TAGVAR(hardcode_direct, $1)=no
4219 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4220 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4221 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4222 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4223 _LT_TAGVAR(hardcode_minus_L, $1)=no
4224 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4225 _LT_TAGVAR(inherit_rpath, $1)=no
4226 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4227 _LT_TAGVAR(module_cmds, $1)=
4228 _LT_TAGVAR(module_expsym_cmds, $1)=
4229 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4230 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4231 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4232 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4233 # include_expsyms should be a list of space-separated symbols to be *always*
4234 # included in the symbol list
4235 _LT_TAGVAR(include_expsyms, $1)=
4236 # exclude_expsyms can be an extended regexp of symbols to exclude
4237 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4238 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4239 # as well as any symbol that contains `d'.
4240 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4241 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4242 # platforms (ab)use it in PIC code, but their linkers get confused if
4243 # the symbol is explicitly referenced. Since portable code cannot
4244 # rely on this symbol name, it's probably fine to never include it in
4245 # preloaded symbol tables.
4246 # Exclude shared library initialization/finalization symbols.
4247 dnl Note also adjust exclude_expsyms for C++ above.
4248 extract_expsyms_cmds=
4249
4250 case $host_os in
4251 cygwin* | mingw* | pw32* | cegcc*)
4252 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4253 # When not using gcc, we currently assume that we are using
4254 # Microsoft Visual C++.
4255 if test "$GCC" != yes; then
4256 with_gnu_ld=no
4257 fi
4258 ;;
4259 interix*)
4260 # we just hope/assume this is gcc and not c89 (= MSVC++)
4261 with_gnu_ld=yes
4262 ;;
4263 openbsd*)
4264 with_gnu_ld=no
4265 ;;
4266 esac
4267
4268 _LT_TAGVAR(ld_shlibs, $1)=yes
4269 if test "$with_gnu_ld" = yes; then
4270 # If archive_cmds runs LD, not CC, wlarc should be empty
4271 wlarc='${wl}'
4272
4273 # Set some defaults for GNU ld with shared library support. These
4274 # are reset later if shared libraries are not supported. Putting them
4275 # here allows them to be overridden if necessary.
4276 runpath_var=LD_RUN_PATH
4277 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4278 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4279 # ancient GNU ld didn't support --whole-archive et. al.
4280 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4281 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4282 else
4283 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4284 fi
4285 supports_anon_versioning=no
4286 case `$LD -v 2>&1` in
4287 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4288 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4289 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4290 *\ 2.11.*) ;; # other 2.11 versions
4291 *) supports_anon_versioning=yes ;;
4292 esac
4293
4294 # See if GNU ld supports shared libraries.
4295 case $host_os in
4296 aix[[3-9]]*)
4297 # On AIX/PPC, the GNU linker is very broken
4298 if test "$host_cpu" != ia64; then
4299 _LT_TAGVAR(ld_shlibs, $1)=no
4300 cat <<_LT_EOF 1>&2
4301
4302 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4303 *** to be unable to reliably create shared libraries on AIX.
4304 *** Therefore, libtool is disabling shared libraries support. If you
4305 *** really care for shared libraries, you may want to modify your PATH
4306 *** so that a non-GNU linker is found, and then restart.
4307
4308 _LT_EOF
4309 fi
4310 ;;
4311
4312 amigaos*)
4313 case $host_cpu in
4314 powerpc)
4315 # see comment about AmigaOS4 .so support
4316 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4317 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4318 ;;
4319 m68k)
4320 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4321 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4322 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4323 ;;
4324 esac
4325 ;;
4326
4327 beos*)
4328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4329 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4330 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4331 # support --undefined. This deserves some investigation. FIXME
4332 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4333 else
4334 _LT_TAGVAR(ld_shlibs, $1)=no
4335 fi
4336 ;;
4337
4338 cygwin* | mingw* | pw32* | cegcc*)
4339 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4340 # as there is no search path for DLLs.
4341 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4342 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4343 _LT_TAGVAR(always_export_symbols, $1)=no
4344 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4345 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4346
4347 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4348 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4349 # If the export-symbols file already is a .def file (1st line
4350 # is EXPORTS), use it as is; otherwise, prepend...
4351 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4352 cp $export_symbols $output_objdir/$soname.def;
4353 else
4354 echo EXPORTS > $output_objdir/$soname.def;
4355 cat $export_symbols >> $output_objdir/$soname.def;
4356 fi~
4357 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4358 else
4359 _LT_TAGVAR(ld_shlibs, $1)=no
4360 fi
4361 ;;
4362
4363 interix[[3-9]]*)
4364 _LT_TAGVAR(hardcode_direct, $1)=no
4365 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4367 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4368 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4369 # Instead, shared libraries are loaded at an image base (0x10000000 by
4370 # default) and relocated if they conflict, which is a slow very memory
4371 # consuming and fragmenting process. To avoid this, we pick a random,
4372 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4373 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4374 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4375 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4376 ;;
4377
4378 gnu* | linux* | tpf* | k*bsd*-gnu)
4379 tmp_diet=no
4380 if test "$host_os" = linux-dietlibc; then
4381 case $cc_basename in
4382 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4383 esac
4384 fi
4385 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4386 && test "$tmp_diet" = no
4387 then
4388 tmp_addflag=
4389 tmp_sharedflag='-shared'
4390 case $cc_basename,$host_cpu in
4391 pgcc*) # Portland Group C compiler
4392 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4393 tmp_addflag=' $pic_flag'
4394 ;;
4395 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4396 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4397 tmp_addflag=' $pic_flag -Mnomain' ;;
4398 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4399 tmp_addflag=' -i_dynamic' ;;
4400 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4401 tmp_addflag=' -i_dynamic -nofor_main' ;;
4402 ifc* | ifort*) # Intel Fortran compiler
4403 tmp_addflag=' -nofor_main' ;;
4404 lf95*) # Lahey Fortran 8.1
4405 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4406 tmp_sharedflag='--shared' ;;
4407 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4408 tmp_sharedflag='-qmkshrobj'
4409 tmp_addflag= ;;
4410 esac
4411 case `$CC -V 2>&1 | sed 5q` in
4412 *Sun\ C*) # Sun C 5.9
4413 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4414 _LT_TAGVAR(compiler_needs_object, $1)=yes
4415 tmp_sharedflag='-G' ;;
4416 *Sun\ F*) # Sun Fortran 8.3
4417 tmp_sharedflag='-G' ;;
4418 esac
4419 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4420
4421 if test "x$supports_anon_versioning" = xyes; then
4422 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4423 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4424 echo "local: *; };" >> $output_objdir/$libname.ver~
4425 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4426 fi
4427
4428 case $cc_basename in
4429 xlf*)
4430 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4431 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4432 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4433 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4434 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4435 if test "x$supports_anon_versioning" = xyes; then
4436 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4438 echo "local: *; };" >> $output_objdir/$libname.ver~
4439 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4440 fi
4441 ;;
4442 esac
4443 else
4444 _LT_TAGVAR(ld_shlibs, $1)=no
4445 fi
4446 ;;
4447
4448 netbsd*)
4449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4450 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4451 wlarc=
4452 else
4453 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4454 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4455 fi
4456 ;;
4457
4458 solaris*)
4459 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4460 _LT_TAGVAR(ld_shlibs, $1)=no
4461 cat <<_LT_EOF 1>&2
4462
4463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4464 *** create shared libraries on Solaris systems. Therefore, libtool
4465 *** is disabling shared libraries support. We urge you to upgrade GNU
4466 *** binutils to release 2.9.1 or newer. Another option is to modify
4467 *** your PATH or compiler configuration so that the native linker is
4468 *** used, and then restart.
4469
4470 _LT_EOF
4471 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4472 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4473 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4474 else
4475 _LT_TAGVAR(ld_shlibs, $1)=no
4476 fi
4477 ;;
4478
4479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4480 case `$LD -v 2>&1` in
4481 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4482 _LT_TAGVAR(ld_shlibs, $1)=no
4483 cat <<_LT_EOF 1>&2
4484
4485 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4486 *** reliably create shared libraries on SCO systems. Therefore, libtool
4487 *** is disabling shared libraries support. We urge you to upgrade GNU
4488 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4489 *** your PATH or compiler configuration so that the native linker is
4490 *** used, and then restart.
4491
4492 _LT_EOF
4493 ;;
4494 *)
4495 # For security reasons, it is highly recommended that you always
4496 # use absolute paths for naming shared libraries, and exclude the
4497 # DT_RUNPATH tag from executables and libraries. But doing so
4498 # requires that you compile everything twice, which is a pain.
4499 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4501 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4502 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4503 else
4504 _LT_TAGVAR(ld_shlibs, $1)=no
4505 fi
4506 ;;
4507 esac
4508 ;;
4509
4510 sunos4*)
4511 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4512 wlarc=
4513 _LT_TAGVAR(hardcode_direct, $1)=yes
4514 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4515 ;;
4516
4517 *)
4518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4519 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4520 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4521 else
4522 _LT_TAGVAR(ld_shlibs, $1)=no
4523 fi
4524 ;;
4525 esac
4526
4527 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4528 runpath_var=
4529 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4530 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4531 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4532 fi
4533 else
4534 # PORTME fill in a description of your system's linker (not GNU ld)
4535 case $host_os in
4536 aix3*)
4537 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4538 _LT_TAGVAR(always_export_symbols, $1)=yes
4539 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4540 # Note: this linker hardcodes the directories in LIBPATH if there
4541 # are no directories specified by -L.
4542 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4543 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4544 # Neither direct hardcoding nor static linking is supported with a
4545 # broken collect2.
4546 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4547 fi
4548 ;;
4549
4550 aix[[4-9]]*)
4551 if test "$host_cpu" = ia64; then
4552 # On IA64, the linker does run time linking by default, so we don't
4553 # have to do anything special.
4554 aix_use_runtimelinking=no
4555 exp_sym_flag='-Bexport'
4556 no_entry_flag=""
4557 else
4558 # If we're using GNU nm, then we don't want the "-C" option.
4559 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4560 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4561 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4562 else
4563 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4564 fi
4565 aix_use_runtimelinking=no
4566
4567 # Test if we are trying to use run time linking or normal
4568 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4569 # need to do runtime linking.
4570 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4571 for ld_flag in $LDFLAGS; do
4572 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4573 aix_use_runtimelinking=yes
4574 break
4575 fi
4576 done
4577 ;;
4578 esac
4579
4580 exp_sym_flag='-bexport'
4581 no_entry_flag='-bnoentry'
4582 fi
4583
4584 # When large executables or shared objects are built, AIX ld can
4585 # have problems creating the table of contents. If linking a library
4586 # or program results in "error TOC overflow" add -mminimal-toc to
4587 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4588 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4589
4590 _LT_TAGVAR(archive_cmds, $1)=''
4591 _LT_TAGVAR(hardcode_direct, $1)=yes
4592 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4593 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4594 _LT_TAGVAR(link_all_deplibs, $1)=yes
4595 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
4596
4597 if test "$GCC" = yes; then
4598 case $host_os in aix4.[[012]]|aix4.[[012]].*)
4599 # We only want to do this on AIX 4.2 and lower, the check
4600 # below for broken collect2 doesn't work under 4.3+
4601 collect2name=`${CC} -print-prog-name=collect2`
4602 if test -f "$collect2name" &&
4603 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
4604 then
4605 # We have reworked collect2
4606 :
4607 else
4608 # We have old collect2
4609 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4610 # It fails to find uninstalled libraries when the uninstalled
4611 # path is not listed in the libpath. Setting hardcode_minus_L
4612 # to unsupported forces relinking
4613 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4614 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4615 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4616 fi
4617 ;;
4618 esac
4619 shared_flag='-shared'
4620 if test "$aix_use_runtimelinking" = yes; then
4621 shared_flag="$shared_flag "'${wl}-G'
4622 fi
4623 else
4624 # not using gcc
4625 if test "$host_cpu" = ia64; then
4626 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4627 # chokes on -Wl,-G. The following line is correct:
4628 shared_flag='-G'
4629 else
4630 if test "$aix_use_runtimelinking" = yes; then
4631 shared_flag='${wl}-G'
4632 else
4633 shared_flag='${wl}-bM:SRE'
4634 fi
4635 fi
4636 fi
4637
4638 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4639 # It seems that -bexpall does not export symbols beginning with
4640 # underscore (_), so it is better to generate a list of symbols to export.
4641 _LT_TAGVAR(always_export_symbols, $1)=yes
4642 if test "$aix_use_runtimelinking" = yes; then
4643 # Warning - without using the other runtime loading flags (-brtl),
4644 # -berok will link without error, but may produce a broken library.
4645 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4646 # Determine the default libpath from the value encoded in an
4647 # empty executable.
4648 _LT_SYS_MODULE_PATH_AIX
4649 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4650 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4651 else
4652 if test "$host_cpu" = ia64; then
4653 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4654 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4655 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4656 else
4657 # Determine the default libpath from the value encoded in an
4658 # empty executable.
4659 _LT_SYS_MODULE_PATH_AIX
4660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4661 # Warning - without using the other run time loading flags,
4662 # -berok will link without error, but may produce a broken library.
4663 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4664 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4665 # Exported symbols can be pulled into shared objects from archives
4666 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4667 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4668 # This is similar to how AIX traditionally builds its shared libraries.
4669 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4670 fi
4671 fi
4672 ;;
4673
4674 amigaos*)
4675 case $host_cpu in
4676 powerpc)
4677 # see comment about AmigaOS4 .so support
4678 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4679 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4680 ;;
4681 m68k)
4682 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4684 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4685 ;;
4686 esac
4687 ;;
4688
4689 bsdi[[45]]*)
4690 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4691 ;;
4692
4693 cygwin* | mingw* | pw32* | cegcc*)
4694 # When not using gcc, we currently assume that we are using
4695 # Microsoft Visual C++.
4696 # hardcode_libdir_flag_spec is actually meaningless, as there is
4697 # no search path for DLLs.
4698 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4699 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4700 # Tell ltmain to make .lib files, not .a files.
4701 libext=lib
4702 # Tell ltmain to make .dll files, not .so files.
4703 shrext_cmds=".dll"
4704 # FIXME: Setting linknames here is a bad hack.
4705 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4706 # The linker will automatically build a .lib file if we build a DLL.
4707 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4708 # FIXME: Should let the user specify the lib program.
4709 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4710 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4711 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4712 ;;
4713
4714 darwin* | rhapsody*)
4715 _LT_DARWIN_LINKER_FEATURES($1)
4716 ;;
4717
4718 dgux*)
4719 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4720 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4721 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4722 ;;
4723
4724 freebsd1*)
4725 _LT_TAGVAR(ld_shlibs, $1)=no
4726 ;;
4727
4728 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4729 # support. Future versions do this automatically, but an explicit c++rt0.o
4730 # does not break anything, and helps significantly (at the cost of a little
4731 # extra space).
4732 freebsd2.2*)
4733 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4734 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4735 _LT_TAGVAR(hardcode_direct, $1)=yes
4736 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4737 ;;
4738
4739 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4740 freebsd2*)
4741 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4742 _LT_TAGVAR(hardcode_direct, $1)=yes
4743 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4744 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4745 ;;
4746
4747 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4748 freebsd* | dragonfly*)
4749 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4750 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4751 _LT_TAGVAR(hardcode_direct, $1)=yes
4752 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4753 ;;
4754
4755 hpux9*)
4756 if test "$GCC" = yes; then
4757 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4758 else
4759 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4760 fi
4761 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4762 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4763 _LT_TAGVAR(hardcode_direct, $1)=yes
4764
4765 # hardcode_minus_L: Not really in the search PATH,
4766 # but as the default location of the library.
4767 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4768 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4769 ;;
4770
4771 hpux10*)
4772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4773 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4774 else
4775 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4776 fi
4777 if test "$with_gnu_ld" = no; then
4778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4779 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4780 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4781 _LT_TAGVAR(hardcode_direct, $1)=yes
4782 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4783 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4784 # hardcode_minus_L: Not really in the search PATH,
4785 # but as the default location of the library.
4786 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4787 fi
4788 ;;
4789
4790 hpux11*)
4791 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4792 case $host_cpu in
4793 hppa*64*)
4794 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4795 ;;
4796 ia64*)
4797 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4798 ;;
4799 *)
4800 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4801 ;;
4802 esac
4803 else
4804 case $host_cpu in
4805 hppa*64*)
4806 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4807 ;;
4808 ia64*)
4809 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4810 ;;
4811 *)
4812 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4813 ;;
4814 esac
4815 fi
4816 if test "$with_gnu_ld" = no; then
4817 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4818 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4819
4820 case $host_cpu in
4821 hppa*64*|ia64*)
4822 _LT_TAGVAR(hardcode_direct, $1)=no
4823 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4824 ;;
4825 *)
4826 _LT_TAGVAR(hardcode_direct, $1)=yes
4827 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4828 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4829
4830 # hardcode_minus_L: Not really in the search PATH,
4831 # but as the default location of the library.
4832 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4833 ;;
4834 esac
4835 fi
4836 ;;
4837
4838 irix5* | irix6* | nonstopux*)
4839 if test "$GCC" = yes; then
4840 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4841 # Try to use the -exported_symbol ld option, if it does not
4842 # work, assume that -exports_file does not work either and
4843 # implicitly export all symbols.
4844 save_LDFLAGS="$LDFLAGS"
4845 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4846 AC_LINK_IFELSE(int foo(void) {},
4847 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4848 )
4849 LDFLAGS="$save_LDFLAGS"
4850 else
4851 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4852 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4853 fi
4854 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4855 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4856 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4857 _LT_TAGVAR(inherit_rpath, $1)=yes
4858 _LT_TAGVAR(link_all_deplibs, $1)=yes
4859 ;;
4860
4861 netbsd*)
4862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4863 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4864 else
4865 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4866 fi
4867 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4868 _LT_TAGVAR(hardcode_direct, $1)=yes
4869 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4870 ;;
4871
4872 newsos6)
4873 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4874 _LT_TAGVAR(hardcode_direct, $1)=yes
4875 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4876 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4877 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4878 ;;
4879
4880 *nto* | *qnx*)
4881 ;;
4882
4883 openbsd*)
4884 if test -f /usr/libexec/ld.so; then
4885 _LT_TAGVAR(hardcode_direct, $1)=yes
4886 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4887 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4888 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4889 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4890 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4891 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4892 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4893 else
4894 case $host_os in
4895 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4896 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4897 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4898 ;;
4899 *)
4900 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4901 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4902 ;;
4903 esac
4904 fi
4905 else
4906 _LT_TAGVAR(ld_shlibs, $1)=no
4907 fi
4908 ;;
4909
4910 os2*)
4911 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4912 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4913 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4914 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4915 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4916 ;;
4917
4918 osf3*)
4919 if test "$GCC" = yes; then
4920 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4921 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4922 else
4923 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4924 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4925 fi
4926 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4927 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4928 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4929 ;;
4930
4931 osf4* | osf5*) # as osf3* with the addition of -msym flag
4932 if test "$GCC" = yes; then
4933 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4934 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4935 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4936 else
4937 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4939 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4940 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4941
4942 # Both c and cxx compiler support -rpath directly
4943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4944 fi
4945 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4946 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4947 ;;
4948
4949 solaris*)
4950 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4951 if test "$GCC" = yes; then
4952 wlarc='${wl}'
4953 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4954 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4955 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4956 else
4957 case `$CC -V 2>&1` in
4958 *"Compilers 5.0"*)
4959 wlarc=''
4960 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4961 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4962 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4963 ;;
4964 *)
4965 wlarc='${wl}'
4966 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4967 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4968 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4969 ;;
4970 esac
4971 fi
4972 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4973 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4974 case $host_os in
4975 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4976 *)
4977 # The compiler driver will combine and reorder linker options,
4978 # but understands `-z linker_flag'. GCC discards it without `$wl',
4979 # but is careful enough not to reorder.
4980 # Supported since Solaris 2.6 (maybe 2.5.1?)
4981 if test "$GCC" = yes; then
4982 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4983 else
4984 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4985 fi
4986 ;;
4987 esac
4988 _LT_TAGVAR(link_all_deplibs, $1)=yes
4989 ;;
4990
4991 sunos4*)
4992 if test "x$host_vendor" = xsequent; then
4993 # Use $CC to link under sequent, because it throws in some extra .o
4994 # files that make .init and .fini sections work.
4995 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4996 else
4997 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4998 fi
4999 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5000 _LT_TAGVAR(hardcode_direct, $1)=yes
5001 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5002 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5003 ;;
5004
5005 sysv4)
5006 case $host_vendor in
5007 sni)
5008 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5009 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5010 ;;
5011 siemens)
5012 ## LD is ld it makes a PLAMLIB
5013 ## CC just makes a GrossModule.
5014 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5015 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5016 _LT_TAGVAR(hardcode_direct, $1)=no
5017 ;;
5018 motorola)
5019 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5020 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5021 ;;
5022 esac
5023 runpath_var='LD_RUN_PATH'
5024 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5025 ;;
5026
5027 sysv4.3*)
5028 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5029 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5030 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5031 ;;
5032
5033 sysv4*MP*)
5034 if test -d /usr/nec; then
5035 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5036 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5037 runpath_var=LD_RUN_PATH
5038 hardcode_runpath_var=yes
5039 _LT_TAGVAR(ld_shlibs, $1)=yes
5040 fi
5041 ;;
5042
5043 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5044 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5045 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5046 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5047 runpath_var='LD_RUN_PATH'
5048
5049 if test "$GCC" = yes; then
5050 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5051 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5052 else
5053 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5054 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5055 fi
5056 ;;
5057
5058 sysv5* | sco3.2v5* | sco5v6*)
5059 # Note: We can NOT use -z defs as we might desire, because we do not
5060 # link with -lc, and that would cause any symbols used from libc to
5061 # always be unresolved, which means just about no library would
5062 # ever link correctly. If we're not using GNU ld we use -z text
5063 # though, which does catch some bad symbols but isn't as heavy-handed
5064 # as -z defs.
5065 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5066 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5067 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5068 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5070 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5071 _LT_TAGVAR(link_all_deplibs, $1)=yes
5072 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5073 runpath_var='LD_RUN_PATH'
5074
5075 if test "$GCC" = yes; then
5076 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5077 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5078 else
5079 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5080 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5081 fi
5082 ;;
5083
5084 uts4*)
5085 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5086 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5087 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5088 ;;
5089
5090 *)
5091 _LT_TAGVAR(ld_shlibs, $1)=no
5092 ;;
5093 esac
5094
5095 if test x$host_vendor = xsni; then
5096 case $host in
5097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5098 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5099 ;;
5100 esac
5101 fi
5102 fi
5103 ])
5104 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5105 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5106
5107 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5108
5109 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5110 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5111 _LT_DECL([], [extract_expsyms_cmds], [2],
5112 [The commands to extract the exported symbol list from a shared archive])
5113
5114 #
5115 # Do we need to explicitly link libc?
5116 #
5117 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5118 x|xyes)
5119 # Assume -lc should be added
5120 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5121
5122 if test "$enable_shared" = yes && test "$GCC" = yes; then
5123 case $_LT_TAGVAR(archive_cmds, $1) in
5124 *'~'*)
5125 # FIXME: we may have to deal with multi-command sequences.
5126 ;;
5127 '$CC '*)
5128 # Test whether the compiler implicitly links with -lc since on some
5129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5130 # to ld, don't add -lc before -lgcc.
5131 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5132 $RM conftest*
5133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5134
5135 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5136 soname=conftest
5137 lib=conftest
5138 libobjs=conftest.$ac_objext
5139 deplibs=
5140 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5141 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5142 compiler_flags=-v
5143 linker_flags=-v
5144 verstring=
5145 output_objdir=.
5146 libname=conftest
5147 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5148 _LT_TAGVAR(allow_undefined_flag, $1)=
5149 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5150 then
5151 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5152 else
5153 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5154 fi
5155 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5156 else
5157 cat conftest.err 1>&5
5158 fi
5159 $RM conftest*
5160 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5161 ;;
5162 esac
5163 fi
5164 ;;
5165 esac
5166
5167 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5168 [Whether or not to add -lc for building shared libraries])
5169 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5170 [enable_shared_with_static_runtimes], [0],
5171 [Whether or not to disallow shared libs when runtime libs are static])
5172 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5173 [Compiler flag to allow reflexive dlopens])
5174 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5175 [Compiler flag to generate shared objects directly from archives])
5176 _LT_TAGDECL([], [compiler_needs_object], [1],
5177 [Whether the compiler copes with passing no objects directly])
5178 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5179 [Create an old-style archive from a shared archive])
5180 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5181 [Create a temporary old-style archive to link instead of a shared archive])
5182 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5183 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5184 _LT_TAGDECL([], [module_cmds], [2],
5185 [Commands used to build a loadable module if different from building
5186 a shared archive.])
5187 _LT_TAGDECL([], [module_expsym_cmds], [2])
5188 _LT_TAGDECL([], [with_gnu_ld], [1],
5189 [Whether we are building with GNU ld or not])
5190 _LT_TAGDECL([], [allow_undefined_flag], [1],
5191 [Flag that allows shared libraries with undefined symbols to be built])
5192 _LT_TAGDECL([], [no_undefined_flag], [1],
5193 [Flag that enforces no undefined symbols])
5194 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5195 [Flag to hardcode $libdir into a binary during linking.
5196 This must work even if $libdir does not exist])
5197 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5198 [[If ld is used when linking, flag to hardcode $libdir into a binary
5199 during linking. This must work even if $libdir does not exist]])
5200 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5201 [Whether we need a single "-rpath" flag with a separated argument])
5202 _LT_TAGDECL([], [hardcode_direct], [0],
5203 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5204 DIR into the resulting binary])
5205 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5206 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5207 DIR into the resulting binary and the resulting library dependency is
5208 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5209 library is relocated])
5210 _LT_TAGDECL([], [hardcode_minus_L], [0],
5211 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5212 into the resulting binary])
5213 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5214 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5215 into the resulting binary])
5216 _LT_TAGDECL([], [hardcode_automatic], [0],
5217 [Set to "yes" if building a shared library automatically hardcodes DIR
5218 into the library and all subsequent libraries and executables linked
5219 against it])
5220 _LT_TAGDECL([], [inherit_rpath], [0],
5221 [Set to yes if linker adds runtime paths of dependent libraries
5222 to runtime path list])
5223 _LT_TAGDECL([], [link_all_deplibs], [0],
5224 [Whether libtool must link a program against all its dependency libraries])
5225 _LT_TAGDECL([], [fix_srcfile_path], [1],
5226 [Fix the shell variable $srcfile for the compiler])
5227 _LT_TAGDECL([], [always_export_symbols], [0],
5228 [Set to "yes" if exported symbols are required])
5229 _LT_TAGDECL([], [export_symbols_cmds], [2],
5230 [The commands to list exported symbols])
5231 _LT_TAGDECL([], [exclude_expsyms], [1],
5232 [Symbols that should not be listed in the preloaded symbols])
5233 _LT_TAGDECL([], [include_expsyms], [1],
5234 [Symbols that must always be exported])
5235 _LT_TAGDECL([], [prelink_cmds], [2],
5236 [Commands necessary for linking programs (against libraries) with templates])
5237 _LT_TAGDECL([], [file_list_spec], [1],
5238 [Specify filename containing input files])
5239 dnl FIXME: Not yet implemented
5240 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5241 dnl [Compiler flag to generate thread safe objects])
5242 ])# _LT_LINKER_SHLIBS
5243
5244
5245 # _LT_LANG_C_CONFIG([TAG])
5246 # ------------------------
5247 # Ensure that the configuration variables for a C compiler are suitably
5248 # defined. These variables are subsequently used by _LT_CONFIG to write
5249 # the compiler configuration to `libtool'.
5250 m4_defun([_LT_LANG_C_CONFIG],
5251 [m4_require([_LT_DECL_EGREP])dnl
5252 lt_save_CC="$CC"
5253 AC_LANG_PUSH(C)
5254
5255 # Source file extension for C test sources.
5256 ac_ext=c
5257
5258 # Object file extension for compiled C test sources.
5259 objext=o
5260 _LT_TAGVAR(objext, $1)=$objext
5261
5262 # Code to be used in simple compile tests
5263 lt_simple_compile_test_code="int some_variable = 0;"
5264
5265 # Code to be used in simple link tests
5266 lt_simple_link_test_code='int main(){return(0);}'
5267
5268 _LT_TAG_COMPILER
5269 # Save the default compiler, since it gets overwritten when the other
5270 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5271 compiler_DEFAULT=$CC
5272
5273 # save warnings/boilerplate of simple test code
5274 _LT_COMPILER_BOILERPLATE
5275 _LT_LINKER_BOILERPLATE
5276
5277 if test -n "$compiler"; then
5278 _LT_COMPILER_NO_RTTI($1)
5279 _LT_COMPILER_PIC($1)
5280 _LT_COMPILER_C_O($1)
5281 _LT_COMPILER_FILE_LOCKS($1)
5282 _LT_LINKER_SHLIBS($1)
5283 _LT_SYS_DYNAMIC_LINKER($1)
5284 _LT_LINKER_HARDCODE_LIBPATH($1)
5285 LT_SYS_DLOPEN_SELF
5286 _LT_CMD_STRIPLIB
5287
5288 # Report which library types will actually be built
5289 AC_MSG_CHECKING([if libtool supports shared libraries])
5290 AC_MSG_RESULT([$can_build_shared])
5291
5292 AC_MSG_CHECKING([whether to build shared libraries])
5293 test "$can_build_shared" = "no" && enable_shared=no
5294
5295 # On AIX, shared libraries and static libraries use the same namespace, and
5296 # are all built from PIC.
5297 case $host_os in
5298 aix3*)
5299 test "$enable_shared" = yes && enable_static=no
5300 if test -n "$RANLIB"; then
5301 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5302 postinstall_cmds='$RANLIB $lib'
5303 fi
5304 ;;
5305
5306 aix[[4-9]]*)
5307 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5308 test "$enable_shared" = yes && enable_static=no
5309 fi
5310 ;;
5311 esac
5312 AC_MSG_RESULT([$enable_shared])
5313
5314 AC_MSG_CHECKING([whether to build static libraries])
5315 # Make sure either enable_shared or enable_static is yes.
5316 test "$enable_shared" = yes || enable_static=yes
5317 AC_MSG_RESULT([$enable_static])
5318
5319 _LT_CONFIG($1)
5320 fi
5321 AC_LANG_POP
5322 CC="$lt_save_CC"
5323 ])# _LT_LANG_C_CONFIG
5324
5325
5326 # _LT_PROG_CXX
5327 # ------------
5328 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5329 # compiler, we have our own version here.
5330 m4_defun([_LT_PROG_CXX],
5331 [
5332 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5333 AC_PROG_CXX
5334 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5335 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5336 (test "X$CXX" != "Xg++"))) ; then
5337 AC_PROG_CXXCPP
5338 else
5339 _lt_caught_CXX_error=yes
5340 fi
5341 popdef([AC_MSG_ERROR])
5342 ])# _LT_PROG_CXX
5343
5344 dnl aclocal-1.4 backwards compatibility:
5345 dnl AC_DEFUN([_LT_PROG_CXX], [])
5346
5347
5348 # _LT_LANG_CXX_CONFIG([TAG])
5349 # --------------------------
5350 # Ensure that the configuration variables for a C++ compiler are suitably
5351 # defined. These variables are subsequently used by _LT_CONFIG to write
5352 # the compiler configuration to `libtool'.
5353 m4_defun([_LT_LANG_CXX_CONFIG],
5354 [AC_REQUIRE([_LT_PROG_CXX])dnl
5355 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5356 m4_require([_LT_DECL_EGREP])dnl
5357
5358 AC_LANG_PUSH(C++)
5359 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5360 _LT_TAGVAR(allow_undefined_flag, $1)=
5361 _LT_TAGVAR(always_export_symbols, $1)=no
5362 _LT_TAGVAR(archive_expsym_cmds, $1)=
5363 _LT_TAGVAR(compiler_needs_object, $1)=no
5364 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5365 _LT_TAGVAR(hardcode_direct, $1)=no
5366 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5367 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5368 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5369 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5370 _LT_TAGVAR(hardcode_minus_L, $1)=no
5371 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5372 _LT_TAGVAR(hardcode_automatic, $1)=no
5373 _LT_TAGVAR(inherit_rpath, $1)=no
5374 _LT_TAGVAR(module_cmds, $1)=
5375 _LT_TAGVAR(module_expsym_cmds, $1)=
5376 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5377 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5378 _LT_TAGVAR(no_undefined_flag, $1)=
5379 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5380 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5381
5382 # Source file extension for C++ test sources.
5383 ac_ext=cpp
5384
5385 # Object file extension for compiled C++ test sources.
5386 objext=o
5387 _LT_TAGVAR(objext, $1)=$objext
5388
5389 # No sense in running all these tests if we already determined that
5390 # the CXX compiler isn't working. Some variables (like enable_shared)
5391 # are currently assumed to apply to all compilers on this platform,
5392 # and will be corrupted by setting them based on a non-working compiler.
5393 if test "$_lt_caught_CXX_error" != yes; then
5394 # Code to be used in simple compile tests
5395 lt_simple_compile_test_code="int some_variable = 0;"
5396
5397 # Code to be used in simple link tests
5398 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5399
5400 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5401 _LT_TAG_COMPILER
5402
5403 # save warnings/boilerplate of simple test code
5404 _LT_COMPILER_BOILERPLATE
5405 _LT_LINKER_BOILERPLATE
5406
5407 # Allow CC to be a program name with arguments.
5408 lt_save_CC=$CC
5409 lt_save_LD=$LD
5410 lt_save_GCC=$GCC
5411 GCC=$GXX
5412 lt_save_with_gnu_ld=$with_gnu_ld
5413 lt_save_path_LD=$lt_cv_path_LD
5414 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5415 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5416 else
5417 $as_unset lt_cv_prog_gnu_ld
5418 fi
5419 if test -n "${lt_cv_path_LDCXX+set}"; then
5420 lt_cv_path_LD=$lt_cv_path_LDCXX
5421 else
5422 $as_unset lt_cv_path_LD
5423 fi
5424 test -z "${LDCXX+set}" || LD=$LDCXX
5425 CC=${CXX-"c++"}
5426 compiler=$CC
5427 _LT_TAGVAR(compiler, $1)=$CC
5428 _LT_CC_BASENAME([$compiler])
5429
5430 if test -n "$compiler"; then
5431 # We don't want -fno-exception when compiling C++ code, so set the
5432 # no_builtin_flag separately
5433 if test "$GXX" = yes; then
5434 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5435 else
5436 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5437 fi
5438
5439 if test "$GXX" = yes; then
5440 # Set up default GNU C++ configuration
5441
5442 LT_PATH_LD
5443
5444 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5445 # archiving commands below assume that GNU ld is being used.
5446 if test "$with_gnu_ld" = yes; then
5447 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5448 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5449
5450 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5451 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5452
5453 # If archive_cmds runs LD, not CC, wlarc should be empty
5454 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5455 # investigate it a little bit more. (MM)
5456 wlarc='${wl}'
5457
5458 # ancient GNU ld didn't support --whole-archive et. al.
5459 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5460 $GREP 'no-whole-archive' > /dev/null; then
5461 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5462 else
5463 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5464 fi
5465 else
5466 with_gnu_ld=no
5467 wlarc=
5468
5469 # A generic and very simple default shared library creation
5470 # command for GNU C++ for the case where it uses the native
5471 # linker, instead of GNU ld. If possible, this setting should
5472 # overridden to take advantage of the native linker features on
5473 # the platform it is being used on.
5474 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5475 fi
5476
5477 # Commands to make compiler produce verbose output that lists
5478 # what "hidden" libraries, object files and flags are used when
5479 # linking a shared library.
5480 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5481
5482 else
5483 GXX=no
5484 with_gnu_ld=no
5485 wlarc=
5486 fi
5487
5488 # PORTME: fill in a description of your system's C++ link characteristics
5489 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5490 _LT_TAGVAR(ld_shlibs, $1)=yes
5491 case $host_os in
5492 aix3*)
5493 # FIXME: insert proper C++ library support
5494 _LT_TAGVAR(ld_shlibs, $1)=no
5495 ;;
5496 aix[[4-9]]*)
5497 if test "$host_cpu" = ia64; then
5498 # On IA64, the linker does run time linking by default, so we don't
5499 # have to do anything special.
5500 aix_use_runtimelinking=no
5501 exp_sym_flag='-Bexport'
5502 no_entry_flag=""
5503 else
5504 aix_use_runtimelinking=no
5505
5506 # Test if we are trying to use run time linking or normal
5507 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5508 # need to do runtime linking.
5509 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5510 for ld_flag in $LDFLAGS; do
5511 case $ld_flag in
5512 *-brtl*)
5513 aix_use_runtimelinking=yes
5514 break
5515 ;;
5516 esac
5517 done
5518 ;;
5519 esac
5520
5521 exp_sym_flag='-bexport'
5522 no_entry_flag='-bnoentry'
5523 fi
5524
5525 # When large executables or shared objects are built, AIX ld can
5526 # have problems creating the table of contents. If linking a library
5527 # or program results in "error TOC overflow" add -mminimal-toc to
5528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5530
5531 _LT_TAGVAR(archive_cmds, $1)=''
5532 _LT_TAGVAR(hardcode_direct, $1)=yes
5533 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5534 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5535 _LT_TAGVAR(link_all_deplibs, $1)=yes
5536 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5537
5538 if test "$GXX" = yes; then
5539 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5540 # We only want to do this on AIX 4.2 and lower, the check
5541 # below for broken collect2 doesn't work under 4.3+
5542 collect2name=`${CC} -print-prog-name=collect2`
5543 if test -f "$collect2name" &&
5544 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5545 then
5546 # We have reworked collect2
5547 :
5548 else
5549 # We have old collect2
5550 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5551 # It fails to find uninstalled libraries when the uninstalled
5552 # path is not listed in the libpath. Setting hardcode_minus_L
5553 # to unsupported forces relinking
5554 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5555 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5556 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5557 fi
5558 esac
5559 shared_flag='-shared'
5560 if test "$aix_use_runtimelinking" = yes; then
5561 shared_flag="$shared_flag "'${wl}-G'
5562 fi
5563 else
5564 # not using gcc
5565 if test "$host_cpu" = ia64; then
5566 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5567 # chokes on -Wl,-G. The following line is correct:
5568 shared_flag='-G'
5569 else
5570 if test "$aix_use_runtimelinking" = yes; then
5571 shared_flag='${wl}-G'
5572 else
5573 shared_flag='${wl}-bM:SRE'
5574 fi
5575 fi
5576 fi
5577
5578 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5579 # It seems that -bexpall does not export symbols beginning with
5580 # underscore (_), so it is better to generate a list of symbols to
5581 # export.
5582 _LT_TAGVAR(always_export_symbols, $1)=yes
5583 if test "$aix_use_runtimelinking" = yes; then
5584 # Warning - without using the other runtime loading flags (-brtl),
5585 # -berok will link without error, but may produce a broken library.
5586 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5587 # Determine the default libpath from the value encoded in an empty
5588 # executable.
5589 _LT_SYS_MODULE_PATH_AIX
5590 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5591
5592 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5593 else
5594 if test "$host_cpu" = ia64; then
5595 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5596 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5597 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5598 else
5599 # Determine the default libpath from the value encoded in an
5600 # empty executable.
5601 _LT_SYS_MODULE_PATH_AIX
5602 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5603 # Warning - without using the other run time loading flags,
5604 # -berok will link without error, but may produce a broken library.
5605 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5606 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5607 # Exported symbols can be pulled into shared objects from archives
5608 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5609 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5610 # This is similar to how AIX traditionally builds its shared
5611 # libraries.
5612 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5613 fi
5614 fi
5615 ;;
5616
5617 beos*)
5618 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5619 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5620 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5621 # support --undefined. This deserves some investigation. FIXME
5622 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5623 else
5624 _LT_TAGVAR(ld_shlibs, $1)=no
5625 fi
5626 ;;
5627
5628 chorus*)
5629 case $cc_basename in
5630 *)
5631 # FIXME: insert proper C++ library support
5632 _LT_TAGVAR(ld_shlibs, $1)=no
5633 ;;
5634 esac
5635 ;;
5636
5637 cygwin* | mingw* | pw32* | cegcc*)
5638 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5639 # as there is no search path for DLLs.
5640 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5641 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5642 _LT_TAGVAR(always_export_symbols, $1)=no
5643 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5644
5645 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5646 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5647 # If the export-symbols file already is a .def file (1st line
5648 # is EXPORTS), use it as is; otherwise, prepend...
5649 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5650 cp $export_symbols $output_objdir/$soname.def;
5651 else
5652 echo EXPORTS > $output_objdir/$soname.def;
5653 cat $export_symbols >> $output_objdir/$soname.def;
5654 fi~
5655 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5656 else
5657 _LT_TAGVAR(ld_shlibs, $1)=no
5658 fi
5659 ;;
5660 darwin* | rhapsody*)
5661 _LT_DARWIN_LINKER_FEATURES($1)
5662 ;;
5663
5664 dgux*)
5665 case $cc_basename in
5666 ec++*)
5667 # FIXME: insert proper C++ library support
5668 _LT_TAGVAR(ld_shlibs, $1)=no
5669 ;;
5670 ghcx*)
5671 # Green Hills C++ Compiler
5672 # FIXME: insert proper C++ library support
5673 _LT_TAGVAR(ld_shlibs, $1)=no
5674 ;;
5675 *)
5676 # FIXME: insert proper C++ library support
5677 _LT_TAGVAR(ld_shlibs, $1)=no
5678 ;;
5679 esac
5680 ;;
5681
5682 freebsd[[12]]*)
5683 # C++ shared libraries reported to be fairly broken before
5684 # switch to ELF
5685 _LT_TAGVAR(ld_shlibs, $1)=no
5686 ;;
5687
5688 freebsd-elf*)
5689 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5690 ;;
5691
5692 freebsd* | dragonfly*)
5693 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5694 # conventions
5695 _LT_TAGVAR(ld_shlibs, $1)=yes
5696 ;;
5697
5698 gnu*)
5699 ;;
5700
5701 hpux9*)
5702 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5703 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5704 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5705 _LT_TAGVAR(hardcode_direct, $1)=yes
5706 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5707 # but as the default
5708 # location of the library.
5709
5710 case $cc_basename in
5711 CC*)
5712 # FIXME: insert proper C++ library support
5713 _LT_TAGVAR(ld_shlibs, $1)=no
5714 ;;
5715 aCC*)
5716 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5717 # Commands to make compiler produce verbose output that lists
5718 # what "hidden" libraries, object files and flags are used when
5719 # linking a shared library.
5720 #
5721 # There doesn't appear to be a way to prevent this compiler from
5722 # explicitly linking system object files so we need to strip them
5723 # from the output so that they don't get included in the library
5724 # dependencies.
5725 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5726 ;;
5727 *)
5728 if test "$GXX" = yes; then
5729 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5730 else
5731 # FIXME: insert proper C++ library support
5732 _LT_TAGVAR(ld_shlibs, $1)=no
5733 fi
5734 ;;
5735 esac
5736 ;;
5737
5738 hpux10*|hpux11*)
5739 if test $with_gnu_ld = no; then
5740 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5741 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5742
5743 case $host_cpu in
5744 hppa*64*|ia64*)
5745 ;;
5746 *)
5747 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5748 ;;
5749 esac
5750 fi
5751 case $host_cpu in
5752 hppa*64*|ia64*)
5753 _LT_TAGVAR(hardcode_direct, $1)=no
5754 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5755 ;;
5756 *)
5757 _LT_TAGVAR(hardcode_direct, $1)=yes
5758 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5759 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5760 # but as the default
5761 # location of the library.
5762 ;;
5763 esac
5764
5765 case $cc_basename in
5766 CC*)
5767 # FIXME: insert proper C++ library support
5768 _LT_TAGVAR(ld_shlibs, $1)=no
5769 ;;
5770 aCC*)
5771 case $host_cpu in
5772 hppa*64*)
5773 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5774 ;;
5775 ia64*)
5776 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5777 ;;
5778 *)
5779 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5780 ;;
5781 esac
5782 # Commands to make compiler produce verbose output that lists
5783 # what "hidden" libraries, object files and flags are used when
5784 # linking a shared library.
5785 #
5786 # There doesn't appear to be a way to prevent this compiler from
5787 # explicitly linking system object files so we need to strip them
5788 # from the output so that they don't get included in the library
5789 # dependencies.
5790 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5791 ;;
5792 *)
5793 if test "$GXX" = yes; then
5794 if test $with_gnu_ld = no; then
5795 case $host_cpu in
5796 hppa*64*)
5797 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5798 ;;
5799 ia64*)
5800 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5801 ;;
5802 *)
5803 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5804 ;;
5805 esac
5806 fi
5807 else
5808 # FIXME: insert proper C++ library support
5809 _LT_TAGVAR(ld_shlibs, $1)=no
5810 fi
5811 ;;
5812 esac
5813 ;;
5814
5815 interix[[3-9]]*)
5816 _LT_TAGVAR(hardcode_direct, $1)=no
5817 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5818 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5819 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5820 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5821 # Instead, shared libraries are loaded at an image base (0x10000000 by
5822 # default) and relocated if they conflict, which is a slow very memory
5823 # consuming and fragmenting process. To avoid this, we pick a random,
5824 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5825 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5826 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5827 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5828 ;;
5829 irix5* | irix6*)
5830 case $cc_basename in
5831 CC*)
5832 # SGI C++
5833 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5834
5835 # Archives containing C++ object files must be created using
5836 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5837 # necessary to make sure instantiated templates are included
5838 # in the archive.
5839 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5840 ;;
5841 *)
5842 if test "$GXX" = yes; then
5843 if test "$with_gnu_ld" = no; then
5844 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5845 else
5846 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5847 fi
5848 fi
5849 _LT_TAGVAR(link_all_deplibs, $1)=yes
5850 ;;
5851 esac
5852 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5853 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5854 _LT_TAGVAR(inherit_rpath, $1)=yes
5855 ;;
5856
5857 linux* | k*bsd*-gnu)
5858 case $cc_basename in
5859 KCC*)
5860 # Kuck and Associates, Inc. (KAI) C++ Compiler
5861
5862 # KCC will only create a shared library if the output file
5863 # ends with ".so" (or ".sl" for HP-UX), so rename the library
5864 # to its proper name (with version) after linking.
5865 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5866 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5867 # Commands to make compiler produce verbose output that lists
5868 # what "hidden" libraries, object files and flags are used when
5869 # linking a shared library.
5870 #
5871 # There doesn't appear to be a way to prevent this compiler from
5872 # explicitly linking system object files so we need to strip them
5873 # from the output so that they don't get included in the library
5874 # dependencies.
5875 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5876
5877 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5878 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5879
5880 # Archives containing C++ object files must be created using
5881 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5882 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5883 ;;
5884 icpc* | ecpc* )
5885 # Intel C++
5886 with_gnu_ld=yes
5887 # version 8.0 and above of icpc choke on multiply defined symbols
5888 # if we add $predep_objects and $postdep_objects, however 7.1 and
5889 # earlier do not add the objects themselves.
5890 case `$CC -V 2>&1` in
5891 *"Version 7."*)
5892 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5893 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5894 ;;
5895 *) # Version 8.0 or newer
5896 tmp_idyn=
5897 case $host_cpu in
5898 ia64*) tmp_idyn=' -i_dynamic';;
5899 esac
5900 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5901 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5902 ;;
5903 esac
5904 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5905 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5906 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5907 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5908 ;;
5909 pgCC* | pgcpp*)
5910 # Portland Group C++ compiler
5911 case `$CC -V` in
5912 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5913 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5914 rm -rf $tpldir~
5915 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5916 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5917 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5918 rm -rf $tpldir~
5919 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5920 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5921 $RANLIB $oldlib'
5922 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5923 rm -rf $tpldir~
5924 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5925 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5926 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5927 rm -rf $tpldir~
5928 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5929 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5930 ;;
5931 *) # Version 6 will use weak symbols
5932 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5933 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5934 ;;
5935 esac
5936
5937 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5938 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5939 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5940 ;;
5941 cxx*)
5942 # Compaq C++
5943 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5944 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5945
5946 runpath_var=LD_RUN_PATH
5947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5948 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5949
5950 # Commands to make compiler produce verbose output that lists
5951 # what "hidden" libraries, object files and flags are used when
5952 # linking a shared library.
5953 #
5954 # There doesn't appear to be a way to prevent this compiler from
5955 # explicitly linking system object files so we need to strip them
5956 # from the output so that they don't get included in the library
5957 # dependencies.
5958 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5959 ;;
5960 xl*)
5961 # IBM XL 8.0 on PPC, with GNU ld
5962 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5963 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5964 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5965 if test "x$supports_anon_versioning" = xyes; then
5966 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5968 echo "local: *; };" >> $output_objdir/$libname.ver~
5969 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5970 fi
5971 ;;
5972 *)
5973 case `$CC -V 2>&1 | sed 5q` in
5974 *Sun\ C*)
5975 # Sun C++ 5.9
5976 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5977 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5978 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5979 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5980 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5981 _LT_TAGVAR(compiler_needs_object, $1)=yes
5982
5983 # Not sure whether something based on
5984 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5985 # would be better.
5986 output_verbose_link_cmd='echo'
5987
5988 # Archives containing C++ object files must be created using
5989 # "CC -xar", where "CC" is the Sun C++ compiler. This is
5990 # necessary to make sure instantiated templates are included
5991 # in the archive.
5992 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5993 ;;
5994 esac
5995 ;;
5996 esac
5997 ;;
5998
5999 lynxos*)
6000 # FIXME: insert proper C++ library support
6001 _LT_TAGVAR(ld_shlibs, $1)=no
6002 ;;
6003
6004 m88k*)
6005 # FIXME: insert proper C++ library support
6006 _LT_TAGVAR(ld_shlibs, $1)=no
6007 ;;
6008
6009 mvs*)
6010 case $cc_basename in
6011 cxx*)
6012 # FIXME: insert proper C++ library support
6013 _LT_TAGVAR(ld_shlibs, $1)=no
6014 ;;
6015 *)
6016 # FIXME: insert proper C++ library support
6017 _LT_TAGVAR(ld_shlibs, $1)=no
6018 ;;
6019 esac
6020 ;;
6021
6022 netbsd*)
6023 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6024 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6025 wlarc=
6026 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6027 _LT_TAGVAR(hardcode_direct, $1)=yes
6028 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6029 fi
6030 # Workaround some broken pre-1.5 toolchains
6031 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6032 ;;
6033
6034 *nto* | *qnx*)
6035 _LT_TAGVAR(ld_shlibs, $1)=yes
6036 ;;
6037
6038 openbsd2*)
6039 # C++ shared libraries are fairly broken
6040 _LT_TAGVAR(ld_shlibs, $1)=no
6041 ;;
6042
6043 openbsd*)
6044 if test -f /usr/libexec/ld.so; then
6045 _LT_TAGVAR(hardcode_direct, $1)=yes
6046 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6047 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6048 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6049 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6051 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6052 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6053 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6054 fi
6055 output_verbose_link_cmd=echo
6056 else
6057 _LT_TAGVAR(ld_shlibs, $1)=no
6058 fi
6059 ;;
6060
6061 osf3* | osf4* | osf5*)
6062 case $cc_basename in
6063 KCC*)
6064 # Kuck and Associates, Inc. (KAI) C++ Compiler
6065
6066 # KCC will only create a shared library if the output file
6067 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6068 # to its proper name (with version) after linking.
6069 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6070
6071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6072 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6073
6074 # Archives containing C++ object files must be created using
6075 # the KAI C++ compiler.
6076 case $host in
6077 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6078 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6079 esac
6080 ;;
6081 RCC*)
6082 # Rational C++ 2.4.1
6083 # FIXME: insert proper C++ library support
6084 _LT_TAGVAR(ld_shlibs, $1)=no
6085 ;;
6086 cxx*)
6087 case $host in
6088 osf3*)
6089 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6090 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6091 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6092 ;;
6093 *)
6094 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6095 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6096 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6097 echo "-hidden">> $lib.exp~
6098 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6099 $RM $lib.exp'
6100 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6101 ;;
6102 esac
6103
6104 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6105
6106 # Commands to make compiler produce verbose output that lists
6107 # what "hidden" libraries, object files and flags are used when
6108 # linking a shared library.
6109 #
6110 # There doesn't appear to be a way to prevent this compiler from
6111 # explicitly linking system object files so we need to strip them
6112 # from the output so that they don't get included in the library
6113 # dependencies.
6114 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6115 ;;
6116 *)
6117 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6118 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6119 case $host in
6120 osf3*)
6121 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6122 ;;
6123 *)
6124 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6125 ;;
6126 esac
6127
6128 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6129 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6130
6131 # Commands to make compiler produce verbose output that lists
6132 # what "hidden" libraries, object files and flags are used when
6133 # linking a shared library.
6134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6135
6136 else
6137 # FIXME: insert proper C++ library support
6138 _LT_TAGVAR(ld_shlibs, $1)=no
6139 fi
6140 ;;
6141 esac
6142 ;;
6143
6144 psos*)
6145 # FIXME: insert proper C++ library support
6146 _LT_TAGVAR(ld_shlibs, $1)=no
6147 ;;
6148
6149 sunos4*)
6150 case $cc_basename in
6151 CC*)
6152 # Sun C++ 4.x
6153 # FIXME: insert proper C++ library support
6154 _LT_TAGVAR(ld_shlibs, $1)=no
6155 ;;
6156 lcc*)
6157 # Lucid
6158 # FIXME: insert proper C++ library support
6159 _LT_TAGVAR(ld_shlibs, $1)=no
6160 ;;
6161 *)
6162 # FIXME: insert proper C++ library support
6163 _LT_TAGVAR(ld_shlibs, $1)=no
6164 ;;
6165 esac
6166 ;;
6167
6168 solaris*)
6169 case $cc_basename in
6170 CC*)
6171 # Sun C++ 4.2, 5.x and Centerline C++
6172 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6173 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6174 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6175 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6176 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6177
6178 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6179 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6180 case $host_os in
6181 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6182 *)
6183 # The compiler driver will combine and reorder linker options,
6184 # but understands `-z linker_flag'.
6185 # Supported since Solaris 2.6 (maybe 2.5.1?)
6186 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6187 ;;
6188 esac
6189 _LT_TAGVAR(link_all_deplibs, $1)=yes
6190
6191 output_verbose_link_cmd='echo'
6192
6193 # Archives containing C++ object files must be created using
6194 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6195 # necessary to make sure instantiated templates are included
6196 # in the archive.
6197 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6198 ;;
6199 gcx*)
6200 # Green Hills C++ Compiler
6201 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6202
6203 # The C++ compiler must be used to create the archive.
6204 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6205 ;;
6206 *)
6207 # GNU C++ compiler with Solaris linker
6208 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6209 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6210 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6211 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6212 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6213 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6214
6215 # Commands to make compiler produce verbose output that lists
6216 # what "hidden" libraries, object files and flags are used when
6217 # linking a shared library.
6218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6219 else
6220 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6221 # platform.
6222 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6223 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6224 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6225
6226 # Commands to make compiler produce verbose output that lists
6227 # what "hidden" libraries, object files and flags are used when
6228 # linking a shared library.
6229 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6230 fi
6231
6232 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6233 case $host_os in
6234 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6235 *)
6236 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6237 ;;
6238 esac
6239 fi
6240 ;;
6241 esac
6242 ;;
6243
6244 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6245 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6246 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6247 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6248 runpath_var='LD_RUN_PATH'
6249
6250 case $cc_basename in
6251 CC*)
6252 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6253 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6254 ;;
6255 *)
6256 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6257 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6258 ;;
6259 esac
6260 ;;
6261
6262 sysv5* | sco3.2v5* | sco5v6*)
6263 # Note: We can NOT use -z defs as we might desire, because we do not
6264 # link with -lc, and that would cause any symbols used from libc to
6265 # always be unresolved, which means just about no library would
6266 # ever link correctly. If we're not using GNU ld we use -z text
6267 # though, which does catch some bad symbols but isn't as heavy-handed
6268 # as -z defs.
6269 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6270 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6271 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6272 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6273 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6274 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6275 _LT_TAGVAR(link_all_deplibs, $1)=yes
6276 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6277 runpath_var='LD_RUN_PATH'
6278
6279 case $cc_basename in
6280 CC*)
6281 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6282 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6283 ;;
6284 *)
6285 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6286 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6287 ;;
6288 esac
6289 ;;
6290
6291 tandem*)
6292 case $cc_basename in
6293 NCC*)
6294 # NonStop-UX NCC 3.20
6295 # FIXME: insert proper C++ library support
6296 _LT_TAGVAR(ld_shlibs, $1)=no
6297 ;;
6298 *)
6299 # FIXME: insert proper C++ library support
6300 _LT_TAGVAR(ld_shlibs, $1)=no
6301 ;;
6302 esac
6303 ;;
6304
6305 vxworks*)
6306 # FIXME: insert proper C++ library support
6307 _LT_TAGVAR(ld_shlibs, $1)=no
6308 ;;
6309
6310 *)
6311 # FIXME: insert proper C++ library support
6312 _LT_TAGVAR(ld_shlibs, $1)=no
6313 ;;
6314 esac
6315
6316 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6317 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6318
6319 _LT_TAGVAR(GCC, $1)="$GXX"
6320 _LT_TAGVAR(LD, $1)="$LD"
6321
6322 ## CAVEAT EMPTOR:
6323 ## There is no encapsulation within the following macros, do not change
6324 ## the running order or otherwise move them around unless you know exactly
6325 ## what you are doing...
6326 _LT_SYS_HIDDEN_LIBDEPS($1)
6327 _LT_COMPILER_PIC($1)
6328 _LT_COMPILER_C_O($1)
6329 _LT_COMPILER_FILE_LOCKS($1)
6330 _LT_LINKER_SHLIBS($1)
6331 _LT_SYS_DYNAMIC_LINKER($1)
6332 _LT_LINKER_HARDCODE_LIBPATH($1)
6333
6334 _LT_CONFIG($1)
6335 fi # test -n "$compiler"
6336
6337 CC=$lt_save_CC
6338 LDCXX=$LD
6339 LD=$lt_save_LD
6340 GCC=$lt_save_GCC
6341 with_gnu_ld=$lt_save_with_gnu_ld
6342 lt_cv_path_LDCXX=$lt_cv_path_LD
6343 lt_cv_path_LD=$lt_save_path_LD
6344 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6345 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6346 fi # test "$_lt_caught_CXX_error" != yes
6347
6348 AC_LANG_POP
6349 ])# _LT_LANG_CXX_CONFIG
6350
6351
6352 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6353 # ---------------------------------
6354 # Figure out "hidden" library dependencies from verbose
6355 # compiler output when linking a shared library.
6356 # Parse the compiler output and extract the necessary
6357 # objects, libraries and library flags.
6358 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6359 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6360 # Dependencies to place before and after the object being linked:
6361 _LT_TAGVAR(predep_objects, $1)=
6362 _LT_TAGVAR(postdep_objects, $1)=
6363 _LT_TAGVAR(predeps, $1)=
6364 _LT_TAGVAR(postdeps, $1)=
6365 _LT_TAGVAR(compiler_lib_search_path, $1)=
6366
6367 dnl we can't use the lt_simple_compile_test_code here,
6368 dnl because it contains code intended for an executable,
6369 dnl not a library. It's possible we should let each
6370 dnl tag define a new lt_????_link_test_code variable,
6371 dnl but it's only used here...
6372 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6373 int a;
6374 void foo (void) { a = 0; }
6375 _LT_EOF
6376 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6377 class Foo
6378 {
6379 public:
6380 Foo (void) { a = 0; }
6381 private:
6382 int a;
6383 };
6384 _LT_EOF
6385 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6386 subroutine foo
6387 implicit none
6388 integer*4 a
6389 a=0
6390 return
6391 end
6392 _LT_EOF
6393 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6394 subroutine foo
6395 implicit none
6396 integer a
6397 a=0
6398 return
6399 end
6400 _LT_EOF
6401 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6402 public class foo {
6403 private int a;
6404 public void bar (void) {
6405 a = 0;
6406 }
6407 };
6408 _LT_EOF
6409 ])
6410 dnl Parse the compiler output and extract the necessary
6411 dnl objects, libraries and library flags.
6412 if AC_TRY_EVAL(ac_compile); then
6413 # Parse the compiler output and extract the necessary
6414 # objects, libraries and library flags.
6415
6416 # Sentinel used to keep track of whether or not we are before
6417 # the conftest object file.
6418 pre_test_object_deps_done=no
6419
6420 for p in `eval "$output_verbose_link_cmd"`; do
6421 case $p in
6422
6423 -L* | -R* | -l*)
6424 # Some compilers place space between "-{L,R}" and the path.
6425 # Remove the space.
6426 if test $p = "-L" ||
6427 test $p = "-R"; then
6428 prev=$p
6429 continue
6430 else
6431 prev=
6432 fi
6433
6434 if test "$pre_test_object_deps_done" = no; then
6435 case $p in
6436 -L* | -R*)
6437 # Internal compiler library paths should come after those
6438 # provided the user. The postdeps already come after the
6439 # user supplied libs so there is no need to process them.
6440 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6441 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6442 else
6443 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6444 fi
6445 ;;
6446 # The "-l" case would never come before the object being
6447 # linked, so don't bother handling this case.
6448 esac
6449 else
6450 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6451 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6452 else
6453 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6454 fi
6455 fi
6456 ;;
6457
6458 *.$objext)
6459 # This assumes that the test object file only shows up
6460 # once in the compiler output.
6461 if test "$p" = "conftest.$objext"; then
6462 pre_test_object_deps_done=yes
6463 continue
6464 fi
6465
6466 if test "$pre_test_object_deps_done" = no; then
6467 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6468 _LT_TAGVAR(predep_objects, $1)="$p"
6469 else
6470 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6471 fi
6472 else
6473 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6474 _LT_TAGVAR(postdep_objects, $1)="$p"
6475 else
6476 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6477 fi
6478 fi
6479 ;;
6480
6481 *) ;; # Ignore the rest.
6482
6483 esac
6484 done
6485
6486 # Clean up.
6487 rm -f a.out a.exe
6488 else
6489 echo "libtool.m4: error: problem compiling $1 test program"
6490 fi
6491
6492 $RM -f confest.$objext
6493
6494 # PORTME: override above test on systems where it is broken
6495 m4_if([$1], [CXX],
6496 [case $host_os in
6497 interix[[3-9]]*)
6498 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6499 # hack all around it, let's just trust "g++" to DTRT.
6500 _LT_TAGVAR(predep_objects,$1)=
6501 _LT_TAGVAR(postdep_objects,$1)=
6502 _LT_TAGVAR(postdeps,$1)=
6503 ;;
6504
6505 linux*)
6506 case `$CC -V 2>&1 | sed 5q` in
6507 *Sun\ C*)
6508 # Sun C++ 5.9
6509
6510 # The more standards-conforming stlport4 library is
6511 # incompatible with the Cstd library. Avoid specifying
6512 # it if it's in CXXFLAGS. Ignore libCrun as
6513 # -library=stlport4 depends on it.
6514 case " $CXX $CXXFLAGS " in
6515 *" -library=stlport4 "*)
6516 solaris_use_stlport4=yes
6517 ;;
6518 esac
6519
6520 if test "$solaris_use_stlport4" != yes; then
6521 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6522 fi
6523 ;;
6524 esac
6525 ;;
6526
6527 solaris*)
6528 case $cc_basename in
6529 CC*)
6530 # The more standards-conforming stlport4 library is
6531 # incompatible with the Cstd library. Avoid specifying
6532 # it if it's in CXXFLAGS. Ignore libCrun as
6533 # -library=stlport4 depends on it.
6534 case " $CXX $CXXFLAGS " in
6535 *" -library=stlport4 "*)
6536 solaris_use_stlport4=yes
6537 ;;
6538 esac
6539
6540 # Adding this requires a known-good setup of shared libraries for
6541 # Sun compiler versions before 5.6, else PIC objects from an old
6542 # archive will be linked into the output, leading to subtle bugs.
6543 if test "$solaris_use_stlport4" != yes; then
6544 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6545 fi
6546 ;;
6547 esac
6548 ;;
6549 esac
6550 ])
6551
6552 case " $_LT_TAGVAR(postdeps, $1) " in
6553 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6554 esac
6555 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6556 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6557 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6558 fi
6559 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6560 [The directories searched by this compiler when creating a shared library])
6561 _LT_TAGDECL([], [predep_objects], [1],
6562 [Dependencies to place before and after the objects being linked to
6563 create a shared library])
6564 _LT_TAGDECL([], [postdep_objects], [1])
6565 _LT_TAGDECL([], [predeps], [1])
6566 _LT_TAGDECL([], [postdeps], [1])
6567 _LT_TAGDECL([], [compiler_lib_search_path], [1],
6568 [The library search path used internally by the compiler when linking
6569 a shared library])
6570 ])# _LT_SYS_HIDDEN_LIBDEPS
6571
6572
6573 # _LT_PROG_F77
6574 # ------------
6575 # Since AC_PROG_F77 is broken, in that it returns the empty string
6576 # if there is no fortran compiler, we have our own version here.
6577 m4_defun([_LT_PROG_F77],
6578 [
6579 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6580 AC_PROG_F77
6581 if test -z "$F77" || test "X$F77" = "Xno"; then
6582 _lt_disable_F77=yes
6583 fi
6584 popdef([AC_MSG_ERROR])
6585 ])# _LT_PROG_F77
6586
6587 dnl aclocal-1.4 backwards compatibility:
6588 dnl AC_DEFUN([_LT_PROG_F77], [])
6589
6590
6591 # _LT_LANG_F77_CONFIG([TAG])
6592 # --------------------------
6593 # Ensure that the configuration variables for a Fortran 77 compiler are
6594 # suitably defined. These variables are subsequently used by _LT_CONFIG
6595 # to write the compiler configuration to `libtool'.
6596 m4_defun([_LT_LANG_F77_CONFIG],
6597 [AC_REQUIRE([_LT_PROG_F77])dnl
6598 AC_LANG_PUSH(Fortran 77)
6599
6600 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6601 _LT_TAGVAR(allow_undefined_flag, $1)=
6602 _LT_TAGVAR(always_export_symbols, $1)=no
6603 _LT_TAGVAR(archive_expsym_cmds, $1)=
6604 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6605 _LT_TAGVAR(hardcode_direct, $1)=no
6606 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6607 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6608 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6609 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6610 _LT_TAGVAR(hardcode_minus_L, $1)=no
6611 _LT_TAGVAR(hardcode_automatic, $1)=no
6612 _LT_TAGVAR(inherit_rpath, $1)=no
6613 _LT_TAGVAR(module_cmds, $1)=
6614 _LT_TAGVAR(module_expsym_cmds, $1)=
6615 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6616 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6617 _LT_TAGVAR(no_undefined_flag, $1)=
6618 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6619 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6620
6621 # Source file extension for f77 test sources.
6622 ac_ext=f
6623
6624 # Object file extension for compiled f77 test sources.
6625 objext=o
6626 _LT_TAGVAR(objext, $1)=$objext
6627
6628 # No sense in running all these tests if we already determined that
6629 # the F77 compiler isn't working. Some variables (like enable_shared)
6630 # are currently assumed to apply to all compilers on this platform,
6631 # and will be corrupted by setting them based on a non-working compiler.
6632 if test "$_lt_disable_F77" != yes; then
6633 # Code to be used in simple compile tests
6634 lt_simple_compile_test_code="\
6635 subroutine t
6636 return
6637 end
6638 "
6639
6640 # Code to be used in simple link tests
6641 lt_simple_link_test_code="\
6642 program t
6643 end
6644 "
6645
6646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6647 _LT_TAG_COMPILER
6648
6649 # save warnings/boilerplate of simple test code
6650 _LT_COMPILER_BOILERPLATE
6651 _LT_LINKER_BOILERPLATE
6652
6653 # Allow CC to be a program name with arguments.
6654 lt_save_CC="$CC"
6655 lt_save_GCC=$GCC
6656 CC=${F77-"f77"}
6657 compiler=$CC
6658 _LT_TAGVAR(compiler, $1)=$CC
6659 _LT_CC_BASENAME([$compiler])
6660 GCC=$G77
6661 if test -n "$compiler"; then
6662 AC_MSG_CHECKING([if libtool supports shared libraries])
6663 AC_MSG_RESULT([$can_build_shared])
6664
6665 AC_MSG_CHECKING([whether to build shared libraries])
6666 test "$can_build_shared" = "no" && enable_shared=no
6667
6668 # On AIX, shared libraries and static libraries use the same namespace, and
6669 # are all built from PIC.
6670 case $host_os in
6671 aix3*)
6672 test "$enable_shared" = yes && enable_static=no
6673 if test -n "$RANLIB"; then
6674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6675 postinstall_cmds='$RANLIB $lib'
6676 fi
6677 ;;
6678 aix[[4-9]]*)
6679 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6680 test "$enable_shared" = yes && enable_static=no
6681 fi
6682 ;;
6683 esac
6684 AC_MSG_RESULT([$enable_shared])
6685
6686 AC_MSG_CHECKING([whether to build static libraries])
6687 # Make sure either enable_shared or enable_static is yes.
6688 test "$enable_shared" = yes || enable_static=yes
6689 AC_MSG_RESULT([$enable_static])
6690
6691 _LT_TAGVAR(GCC, $1)="$G77"
6692 _LT_TAGVAR(LD, $1)="$LD"
6693
6694 ## CAVEAT EMPTOR:
6695 ## There is no encapsulation within the following macros, do not change
6696 ## the running order or otherwise move them around unless you know exactly
6697 ## what you are doing...
6698 _LT_COMPILER_PIC($1)
6699 _LT_COMPILER_C_O($1)
6700 _LT_COMPILER_FILE_LOCKS($1)
6701 _LT_LINKER_SHLIBS($1)
6702 _LT_SYS_DYNAMIC_LINKER($1)
6703 _LT_LINKER_HARDCODE_LIBPATH($1)
6704
6705 _LT_CONFIG($1)
6706 fi # test -n "$compiler"
6707
6708 GCC=$lt_save_GCC
6709 CC="$lt_save_CC"
6710 fi # test "$_lt_disable_F77" != yes
6711
6712 AC_LANG_POP
6713 ])# _LT_LANG_F77_CONFIG
6714
6715
6716 # _LT_PROG_FC
6717 # -----------
6718 # Since AC_PROG_FC is broken, in that it returns the empty string
6719 # if there is no fortran compiler, we have our own version here.
6720 m4_defun([_LT_PROG_FC],
6721 [
6722 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6723 AC_PROG_FC
6724 if test -z "$FC" || test "X$FC" = "Xno"; then
6725 _lt_disable_FC=yes
6726 fi
6727 popdef([AC_MSG_ERROR])
6728 ])# _LT_PROG_FC
6729
6730 dnl aclocal-1.4 backwards compatibility:
6731 dnl AC_DEFUN([_LT_PROG_FC], [])
6732
6733
6734 # _LT_LANG_FC_CONFIG([TAG])
6735 # -------------------------
6736 # Ensure that the configuration variables for a Fortran compiler are
6737 # suitably defined. These variables are subsequently used by _LT_CONFIG
6738 # to write the compiler configuration to `libtool'.
6739 m4_defun([_LT_LANG_FC_CONFIG],
6740 [AC_REQUIRE([_LT_PROG_FC])dnl
6741 AC_LANG_PUSH(Fortran)
6742
6743 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6744 _LT_TAGVAR(allow_undefined_flag, $1)=
6745 _LT_TAGVAR(always_export_symbols, $1)=no
6746 _LT_TAGVAR(archive_expsym_cmds, $1)=
6747 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6748 _LT_TAGVAR(hardcode_direct, $1)=no
6749 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6750 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6751 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6752 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6753 _LT_TAGVAR(hardcode_minus_L, $1)=no
6754 _LT_TAGVAR(hardcode_automatic, $1)=no
6755 _LT_TAGVAR(inherit_rpath, $1)=no
6756 _LT_TAGVAR(module_cmds, $1)=
6757 _LT_TAGVAR(module_expsym_cmds, $1)=
6758 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6759 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6760 _LT_TAGVAR(no_undefined_flag, $1)=
6761 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6762 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6763
6764 # Source file extension for fc test sources.
6765 ac_ext=${ac_fc_srcext-f}
6766
6767 # Object file extension for compiled fc test sources.
6768 objext=o
6769 _LT_TAGVAR(objext, $1)=$objext
6770
6771 # No sense in running all these tests if we already determined that
6772 # the FC compiler isn't working. Some variables (like enable_shared)
6773 # are currently assumed to apply to all compilers on this platform,
6774 # and will be corrupted by setting them based on a non-working compiler.
6775 if test "$_lt_disable_FC" != yes; then
6776 # Code to be used in simple compile tests
6777 lt_simple_compile_test_code="\
6778 subroutine t
6779 return
6780 end
6781 "
6782
6783 # Code to be used in simple link tests
6784 lt_simple_link_test_code="\
6785 program t
6786 end
6787 "
6788
6789 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6790 _LT_TAG_COMPILER
6791
6792 # save warnings/boilerplate of simple test code
6793 _LT_COMPILER_BOILERPLATE
6794 _LT_LINKER_BOILERPLATE
6795
6796 # Allow CC to be a program name with arguments.
6797 lt_save_CC="$CC"
6798 lt_save_GCC=$GCC
6799 CC=${FC-"f95"}
6800 compiler=$CC
6801 GCC=$ac_cv_fc_compiler_gnu
6802
6803 _LT_TAGVAR(compiler, $1)=$CC
6804 _LT_CC_BASENAME([$compiler])
6805
6806 if test -n "$compiler"; then
6807 AC_MSG_CHECKING([if libtool supports shared libraries])
6808 AC_MSG_RESULT([$can_build_shared])
6809
6810 AC_MSG_CHECKING([whether to build shared libraries])
6811 test "$can_build_shared" = "no" && enable_shared=no
6812
6813 # On AIX, shared libraries and static libraries use the same namespace, and
6814 # are all built from PIC.
6815 case $host_os in
6816 aix3*)
6817 test "$enable_shared" = yes && enable_static=no
6818 if test -n "$RANLIB"; then
6819 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6820 postinstall_cmds='$RANLIB $lib'
6821 fi
6822 ;;
6823 aix[[4-9]]*)
6824 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6825 test "$enable_shared" = yes && enable_static=no
6826 fi
6827 ;;
6828 esac
6829 AC_MSG_RESULT([$enable_shared])
6830
6831 AC_MSG_CHECKING([whether to build static libraries])
6832 # Make sure either enable_shared or enable_static is yes.
6833 test "$enable_shared" = yes || enable_static=yes
6834 AC_MSG_RESULT([$enable_static])
6835
6836 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6837 _LT_TAGVAR(LD, $1)="$LD"
6838
6839 ## CAVEAT EMPTOR:
6840 ## There is no encapsulation within the following macros, do not change
6841 ## the running order or otherwise move them around unless you know exactly
6842 ## what you are doing...
6843 _LT_SYS_HIDDEN_LIBDEPS($1)
6844 _LT_COMPILER_PIC($1)
6845 _LT_COMPILER_C_O($1)
6846 _LT_COMPILER_FILE_LOCKS($1)
6847 _LT_LINKER_SHLIBS($1)
6848 _LT_SYS_DYNAMIC_LINKER($1)
6849 _LT_LINKER_HARDCODE_LIBPATH($1)
6850
6851 _LT_CONFIG($1)
6852 fi # test -n "$compiler"
6853
6854 GCC=$lt_save_GCC
6855 CC="$lt_save_CC"
6856 fi # test "$_lt_disable_FC" != yes
6857
6858 AC_LANG_POP
6859 ])# _LT_LANG_FC_CONFIG
6860
6861
6862 # _LT_LANG_GCJ_CONFIG([TAG])
6863 # --------------------------
6864 # Ensure that the configuration variables for the GNU Java Compiler compiler
6865 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6866 # to write the compiler configuration to `libtool'.
6867 m4_defun([_LT_LANG_GCJ_CONFIG],
6868 [AC_REQUIRE([LT_PROG_GCJ])dnl
6869 AC_LANG_SAVE
6870
6871 # Source file extension for Java test sources.
6872 ac_ext=java
6873
6874 # Object file extension for compiled Java test sources.
6875 objext=o
6876 _LT_TAGVAR(objext, $1)=$objext
6877
6878 # Code to be used in simple compile tests
6879 lt_simple_compile_test_code="class foo {}"
6880
6881 # Code to be used in simple link tests
6882 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6883
6884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6885 _LT_TAG_COMPILER
6886
6887 # save warnings/boilerplate of simple test code
6888 _LT_COMPILER_BOILERPLATE
6889 _LT_LINKER_BOILERPLATE
6890
6891 # Allow CC to be a program name with arguments.
6892 lt_save_CC="$CC"
6893 lt_save_GCC=$GCC
6894 GCC=yes
6895 CC=${GCJ-"gcj"}
6896 compiler=$CC
6897 _LT_TAGVAR(compiler, $1)=$CC
6898 _LT_TAGVAR(LD, $1)="$LD"
6899 _LT_CC_BASENAME([$compiler])
6900
6901 # GCJ did not exist at the time GCC didn't implicitly link libc in.
6902 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6903
6904 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6905
6906 if test -n "$compiler"; then
6907 _LT_COMPILER_NO_RTTI($1)
6908 _LT_COMPILER_PIC($1)
6909 _LT_COMPILER_C_O($1)
6910 _LT_COMPILER_FILE_LOCKS($1)
6911 _LT_LINKER_SHLIBS($1)
6912 _LT_LINKER_HARDCODE_LIBPATH($1)
6913
6914 _LT_CONFIG($1)
6915 fi
6916
6917 AC_LANG_RESTORE
6918
6919 GCC=$lt_save_GCC
6920 CC="$lt_save_CC"
6921 ])# _LT_LANG_GCJ_CONFIG
6922
6923
6924 # _LT_LANG_RC_CONFIG([TAG])
6925 # -------------------------
6926 # Ensure that the configuration variables for the Windows resource compiler
6927 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6928 # to write the compiler configuration to `libtool'.
6929 m4_defun([_LT_LANG_RC_CONFIG],
6930 [AC_REQUIRE([LT_PROG_RC])dnl
6931 AC_LANG_SAVE
6932
6933 # Source file extension for RC test sources.
6934 ac_ext=rc
6935
6936 # Object file extension for compiled RC test sources.
6937 objext=o
6938 _LT_TAGVAR(objext, $1)=$objext
6939
6940 # Code to be used in simple compile tests
6941 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6942
6943 # Code to be used in simple link tests
6944 lt_simple_link_test_code="$lt_simple_compile_test_code"
6945
6946 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6947 _LT_TAG_COMPILER
6948
6949 # save warnings/boilerplate of simple test code
6950 _LT_COMPILER_BOILERPLATE
6951 _LT_LINKER_BOILERPLATE
6952
6953 # Allow CC to be a program name with arguments.
6954 lt_save_CC="$CC"
6955 lt_save_GCC=$GCC
6956 GCC=
6957 CC=${RC-"windres"}
6958 compiler=$CC
6959 _LT_TAGVAR(compiler, $1)=$CC
6960 _LT_CC_BASENAME([$compiler])
6961 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6962
6963 if test -n "$compiler"; then
6964 :
6965 _LT_CONFIG($1)
6966 fi
6967
6968 GCC=$lt_save_GCC
6969 AC_LANG_RESTORE
6970 CC="$lt_save_CC"
6971 ])# _LT_LANG_RC_CONFIG
6972
6973
6974 # LT_PROG_GCJ
6975 # -----------
6976 AC_DEFUN([LT_PROG_GCJ],
6977 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6978 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6979 [AC_CHECK_TOOL(GCJ, gcj,)
6980 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6981 AC_SUBST(GCJFLAGS)])])[]dnl
6982 ])
6983
6984 # Old name:
6985 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6986 dnl aclocal-1.4 backwards compatibility:
6987 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6988
6989
6990 # LT_PROG_RC
6991 # ----------
6992 AC_DEFUN([LT_PROG_RC],
6993 [AC_CHECK_TOOL(RC, windres,)
6994 ])
6995
6996 # Old name:
6997 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
6998 dnl aclocal-1.4 backwards compatibility:
6999 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7000
7001
7002 # _LT_DECL_EGREP
7003 # --------------
7004 # If we don't have a new enough Autoconf to choose the best grep
7005 # available, choose the one first in the user's PATH.
7006 m4_defun([_LT_DECL_EGREP],
7007 [AC_REQUIRE([AC_PROG_EGREP])dnl
7008 AC_REQUIRE([AC_PROG_FGREP])dnl
7009 test -z "$GREP" && GREP=grep
7010 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7011 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7012 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7013 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7014 AC_SUBST([GREP])
7015 ])
7016
7017
7018 # _LT_DECL_OBJDUMP
7019 # --------------
7020 # If we don't have a new enough Autoconf to choose the best objdump
7021 # available, choose the one first in the user's PATH.
7022 m4_defun([_LT_DECL_OBJDUMP],
7023 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7024 test -z "$OBJDUMP" && OBJDUMP=objdump
7025 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7026 AC_SUBST([OBJDUMP])
7027 ])
7028
7029
7030 # _LT_DECL_SED
7031 # ------------
7032 # Check for a fully-functional sed program, that truncates
7033 # as few characters as possible. Prefer GNU sed if found.
7034 m4_defun([_LT_DECL_SED],
7035 [AC_PROG_SED
7036 test -z "$SED" && SED=sed
7037 Xsed="$SED -e 1s/^X//"
7038 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7039 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7040 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7041 ])# _LT_DECL_SED
7042
7043 m4_ifndef([AC_PROG_SED], [
7044 # NOTE: This macro has been submitted for inclusion into #
7045 # GNU Autoconf as AC_PROG_SED. When it is available in #
7046 # a released version of Autoconf we should remove this #
7047 # macro and use it instead. #
7048
7049 m4_defun([AC_PROG_SED],
7050 [AC_MSG_CHECKING([for a sed that does not truncate output])
7051 AC_CACHE_VAL(lt_cv_path_SED,
7052 [# Loop through the user's path and test for sed and gsed.
7053 # Then use that list of sed's as ones to test for truncation.
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for lt_ac_prog in sed gsed; do
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7062 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7063 fi
7064 done
7065 done
7066 done
7067 IFS=$as_save_IFS
7068 lt_ac_max=0
7069 lt_ac_count=0
7070 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7071 # along with /bin/sed that truncates output.
7072 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7073 test ! -f $lt_ac_sed && continue
7074 cat /dev/null > conftest.in
7075 lt_ac_count=0
7076 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7077 # Check for GNU sed and select it if it is found.
7078 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7079 lt_cv_path_SED=$lt_ac_sed
7080 break
7081 fi
7082 while true; do
7083 cat conftest.in conftest.in >conftest.tmp
7084 mv conftest.tmp conftest.in
7085 cp conftest.in conftest.nl
7086 echo >>conftest.nl
7087 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7088 cmp -s conftest.out conftest.nl || break
7089 # 10000 chars as input seems more than enough
7090 test $lt_ac_count -gt 10 && break
7091 lt_ac_count=`expr $lt_ac_count + 1`
7092 if test $lt_ac_count -gt $lt_ac_max; then
7093 lt_ac_max=$lt_ac_count
7094 lt_cv_path_SED=$lt_ac_sed
7095 fi
7096 done
7097 done
7098 ])
7099 SED=$lt_cv_path_SED
7100 AC_SUBST([SED])
7101 AC_MSG_RESULT([$SED])
7102 ])#AC_PROG_SED
7103 ])#m4_ifndef
7104
7105 # Old name:
7106 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7107 dnl aclocal-1.4 backwards compatibility:
7108 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7109
7110
7111 # _LT_CHECK_SHELL_FEATURES
7112 # ------------------------
7113 # Find out whether the shell is Bourne or XSI compatible,
7114 # or has some other useful features.
7115 m4_defun([_LT_CHECK_SHELL_FEATURES],
7116 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7117 # Try some XSI features
7118 xsi_shell=no
7119 ( _lt_dummy="a/b/c"
7120 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7121 = c,a/b,, \
7122 && eval 'test $(( 1 + 1 )) -eq 2 \
7123 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7124 && xsi_shell=yes
7125 AC_MSG_RESULT([$xsi_shell])
7126 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7127
7128 AC_MSG_CHECKING([whether the shell understands "+="])
7129 lt_shell_append=no
7130 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7131 >/dev/null 2>&1 \
7132 && lt_shell_append=yes
7133 AC_MSG_RESULT([$lt_shell_append])
7134 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7135
7136 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7137 lt_unset=unset
7138 else
7139 lt_unset=false
7140 fi
7141 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7142
7143 # test EBCDIC or ASCII
7144 case `echo X|tr X '\101'` in
7145 A) # ASCII based system
7146 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7147 lt_SP2NL='tr \040 \012'
7148 lt_NL2SP='tr \015\012 \040\040'
7149 ;;
7150 *) # EBCDIC based system
7151 lt_SP2NL='tr \100 \n'
7152 lt_NL2SP='tr \r\n \100\100'
7153 ;;
7154 esac
7155 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7156 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7157 ])# _LT_CHECK_SHELL_FEATURES
7158
7159
7160 # _LT_PROG_XSI_SHELLFNS
7161 # ---------------------
7162 # Bourne and XSI compatible variants of some useful shell functions.
7163 m4_defun([_LT_PROG_XSI_SHELLFNS],
7164 [case $xsi_shell in
7165 yes)
7166 cat << \_LT_EOF >> "$cfgfile"
7167
7168 # func_dirname file append nondir_replacement
7169 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7170 # otherwise set result to NONDIR_REPLACEMENT.
7171 func_dirname ()
7172 {
7173 case ${1} in
7174 */*) func_dirname_result="${1%/*}${2}" ;;
7175 * ) func_dirname_result="${3}" ;;
7176 esac
7177 }
7178
7179 # func_basename file
7180 func_basename ()
7181 {
7182 func_basename_result="${1##*/}"
7183 }
7184
7185 # func_dirname_and_basename file append nondir_replacement
7186 # perform func_basename and func_dirname in a single function
7187 # call:
7188 # dirname: Compute the dirname of FILE. If nonempty,
7189 # add APPEND to the result, otherwise set result
7190 # to NONDIR_REPLACEMENT.
7191 # value returned in "$func_dirname_result"
7192 # basename: Compute filename of FILE.
7193 # value retuned in "$func_basename_result"
7194 # Implementation must be kept synchronized with func_dirname
7195 # and func_basename. For efficiency, we do not delegate to
7196 # those functions but instead duplicate the functionality here.
7197 func_dirname_and_basename ()
7198 {
7199 case ${1} in
7200 */*) func_dirname_result="${1%/*}${2}" ;;
7201 * ) func_dirname_result="${3}" ;;
7202 esac
7203 func_basename_result="${1##*/}"
7204 }
7205
7206 # func_stripname prefix suffix name
7207 # strip PREFIX and SUFFIX off of NAME.
7208 # PREFIX and SUFFIX must not contain globbing or regex special
7209 # characters, hashes, percent signs, but SUFFIX may contain a leading
7210 # dot (in which case that matches only a dot).
7211 func_stripname ()
7212 {
7213 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7214 # positional parameters, so assign one to ordinary parameter first.
7215 func_stripname_result=${3}
7216 func_stripname_result=${func_stripname_result#"${1}"}
7217 func_stripname_result=${func_stripname_result%"${2}"}
7218 }
7219
7220 # func_opt_split
7221 func_opt_split ()
7222 {
7223 func_opt_split_opt=${1%%=*}
7224 func_opt_split_arg=${1#*=}
7225 }
7226
7227 # func_lo2o object
7228 func_lo2o ()
7229 {
7230 case ${1} in
7231 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7232 *) func_lo2o_result=${1} ;;
7233 esac
7234 }
7235
7236 # func_xform libobj-or-source
7237 func_xform ()
7238 {
7239 func_xform_result=${1%.*}.lo
7240 }
7241
7242 # func_arith arithmetic-term...
7243 func_arith ()
7244 {
7245 func_arith_result=$(( $[*] ))
7246 }
7247
7248 # func_len string
7249 # STRING may not start with a hyphen.
7250 func_len ()
7251 {
7252 func_len_result=${#1}
7253 }
7254
7255 _LT_EOF
7256 ;;
7257 *) # Bourne compatible functions.
7258 cat << \_LT_EOF >> "$cfgfile"
7259
7260 # func_dirname file append nondir_replacement
7261 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7262 # otherwise set result to NONDIR_REPLACEMENT.
7263 func_dirname ()
7264 {
7265 # Extract subdirectory from the argument.
7266 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7267 if test "X$func_dirname_result" = "X${1}"; then
7268 func_dirname_result="${3}"
7269 else
7270 func_dirname_result="$func_dirname_result${2}"
7271 fi
7272 }
7273
7274 # func_basename file
7275 func_basename ()
7276 {
7277 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7278 }
7279
7280 dnl func_dirname_and_basename
7281 dnl A portable version of this function is already defined in general.m4sh
7282 dnl so there is no need for it here.
7283
7284 # func_stripname prefix suffix name
7285 # strip PREFIX and SUFFIX off of NAME.
7286 # PREFIX and SUFFIX must not contain globbing or regex special
7287 # characters, hashes, percent signs, but SUFFIX may contain a leading
7288 # dot (in which case that matches only a dot).
7289 # func_strip_suffix prefix name
7290 func_stripname ()
7291 {
7292 case ${2} in
7293 .*) func_stripname_result=`$ECHO "X${3}" \
7294 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7295 *) func_stripname_result=`$ECHO "X${3}" \
7296 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7297 esac
7298 }
7299
7300 # sed scripts:
7301 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7302 my_sed_long_arg='1s/^-[[^=]]*=//'
7303
7304 # func_opt_split
7305 func_opt_split ()
7306 {
7307 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7308 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7309 }
7310
7311 # func_lo2o object
7312 func_lo2o ()
7313 {
7314 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7315 }
7316
7317 # func_xform libobj-or-source
7318 func_xform ()
7319 {
7320 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7321 }
7322
7323 # func_arith arithmetic-term...
7324 func_arith ()
7325 {
7326 func_arith_result=`expr "$[@]"`
7327 }
7328
7329 # func_len string
7330 # STRING may not start with a hyphen.
7331 func_len ()
7332 {
7333 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7334 }
7335
7336 _LT_EOF
7337 esac
7338
7339 case $lt_shell_append in
7340 yes)
7341 cat << \_LT_EOF >> "$cfgfile"
7342
7343 # func_append var value
7344 # Append VALUE to the end of shell variable VAR.
7345 func_append ()
7346 {
7347 eval "$[1]+=\$[2]"
7348 }
7349 _LT_EOF
7350 ;;
7351 *)
7352 cat << \_LT_EOF >> "$cfgfile"
7353
7354 # func_append var value
7355 # Append VALUE to the end of shell variable VAR.
7356 func_append ()
7357 {
7358 eval "$[1]=\$$[1]\$[2]"
7359 }
7360
7361 _LT_EOF
7362 ;;
7363 esac
7364 ])
7365
7366 # Helper functions for option handling. -*- Autoconf -*-
7367 #
7368 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7369 # Written by Gary V. Vaughan, 2004
7370 #
7371 # This file is free software; the Free Software Foundation gives
7372 # unlimited permission to copy and/or distribute it, with or without
7373 # modifications, as long as this notice is preserved.
7374
7375 # serial 6 ltoptions.m4
7376
7377 # This is to help aclocal find these macros, as it can't see m4_define.
7378 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7379
7380
7381 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7382 # ------------------------------------------
7383 m4_define([_LT_MANGLE_OPTION],
7384 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7385
7386
7387 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7388 # ---------------------------------------
7389 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7390 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
7391 # saved as a flag.
7392 m4_define([_LT_SET_OPTION],
7393 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7394 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7395 _LT_MANGLE_DEFUN([$1], [$2]),
7396 [m4_warning([Unknown $1 option `$2'])])[]dnl
7397 ])
7398
7399
7400 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7401 # ------------------------------------------------------------
7402 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7403 m4_define([_LT_IF_OPTION],
7404 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7405
7406
7407 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7408 # -------------------------------------------------------
7409 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7410 # are set.
7411 m4_define([_LT_UNLESS_OPTIONS],
7412 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7413 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7414 [m4_define([$0_found])])])[]dnl
7415 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7416 ])[]dnl
7417 ])
7418
7419
7420 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7421 # ----------------------------------------
7422 # OPTION-LIST is a space-separated list of Libtool options associated
7423 # with MACRO-NAME. If any OPTION has a matching handler declared with
7424 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7425 # the unknown option and exit.
7426 m4_defun([_LT_SET_OPTIONS],
7427 [# Set options
7428 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7429 [_LT_SET_OPTION([$1], _LT_Option)])
7430
7431 m4_if([$1],[LT_INIT],[
7432 dnl
7433 dnl Simply set some default values (i.e off) if boolean options were not
7434 dnl specified:
7435 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7436 ])
7437 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7438 ])
7439 dnl
7440 dnl If no reference was made to various pairs of opposing options, then
7441 dnl we run the default mode handler for the pair. For example, if neither
7442 dnl `shared' nor `disable-shared' was passed, we enable building of shared
7443 dnl archives by default:
7444 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7445 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7446 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7447 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7448 [_LT_ENABLE_FAST_INSTALL])
7449 ])
7450 ])# _LT_SET_OPTIONS
7451
7452
7453
7454 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7455 # -----------------------------------------
7456 m4_define([_LT_MANGLE_DEFUN],
7457 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7458
7459
7460 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7461 # -----------------------------------------------
7462 m4_define([LT_OPTION_DEFINE],
7463 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7464 ])# LT_OPTION_DEFINE
7465
7466
7467 # dlopen
7468 # ------
7469 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7470 ])
7471
7472 AU_DEFUN([AC_LIBTOOL_DLOPEN],
7473 [_LT_SET_OPTION([LT_INIT], [dlopen])
7474 AC_DIAGNOSE([obsolete],
7475 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7476 put the `dlopen' option into LT_INIT's first parameter.])
7477 ])
7478
7479 dnl aclocal-1.4 backwards compatibility:
7480 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7481
7482
7483 # win32-dll
7484 # ---------
7485 # Declare package support for building win32 dll's.
7486 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7487 [enable_win32_dll=yes
7488
7489 case $host in
7490 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7491 AC_CHECK_TOOL(AS, as, false)
7492 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7493 AC_CHECK_TOOL(OBJDUMP, objdump, false)
7494 ;;
7495 esac
7496
7497 test -z "$AS" && AS=as
7498 _LT_DECL([], [AS], [0], [Assembler program])dnl
7499
7500 test -z "$DLLTOOL" && DLLTOOL=dlltool
7501 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7502
7503 test -z "$OBJDUMP" && OBJDUMP=objdump
7504 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7505 ])# win32-dll
7506
7507 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7508 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7509 _LT_SET_OPTION([LT_INIT], [win32-dll])
7510 AC_DIAGNOSE([obsolete],
7511 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7512 put the `win32-dll' option into LT_INIT's first parameter.])
7513 ])
7514
7515 dnl aclocal-1.4 backwards compatibility:
7516 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7517
7518
7519 # _LT_ENABLE_SHARED([DEFAULT])
7520 # ----------------------------
7521 # implement the --enable-shared flag, and supports the `shared' and
7522 # `disable-shared' LT_INIT options.
7523 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7524 m4_define([_LT_ENABLE_SHARED],
7525 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7526 AC_ARG_ENABLE([shared],
7527 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7528 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7529 [p=${PACKAGE-default}
7530 case $enableval in
7531 yes) enable_shared=yes ;;
7532 no) enable_shared=no ;;
7533 *)
7534 enable_shared=no
7535 # Look at the argument we got. We use all the common list separators.
7536 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7537 for pkg in $enableval; do
7538 IFS="$lt_save_ifs"
7539 if test "X$pkg" = "X$p"; then
7540 enable_shared=yes
7541 fi
7542 done
7543 IFS="$lt_save_ifs"
7544 ;;
7545 esac],
7546 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7547
7548 _LT_DECL([build_libtool_libs], [enable_shared], [0],
7549 [Whether or not to build shared libraries])
7550 ])# _LT_ENABLE_SHARED
7551
7552 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7553 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7554
7555 # Old names:
7556 AC_DEFUN([AC_ENABLE_SHARED],
7557 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7558 ])
7559
7560 AC_DEFUN([AC_DISABLE_SHARED],
7561 [_LT_SET_OPTION([LT_INIT], [disable-shared])
7562 ])
7563
7564 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7565 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7566
7567 dnl aclocal-1.4 backwards compatibility:
7568 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7569 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7570
7571
7572
7573 # _LT_ENABLE_STATIC([DEFAULT])
7574 # ----------------------------
7575 # implement the --enable-static flag, and support the `static' and
7576 # `disable-static' LT_INIT options.
7577 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7578 m4_define([_LT_ENABLE_STATIC],
7579 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7580 AC_ARG_ENABLE([static],
7581 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7582 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7583 [p=${PACKAGE-default}
7584 case $enableval in
7585 yes) enable_static=yes ;;
7586 no) enable_static=no ;;
7587 *)
7588 enable_static=no
7589 # Look at the argument we got. We use all the common list separators.
7590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7591 for pkg in $enableval; do
7592 IFS="$lt_save_ifs"
7593 if test "X$pkg" = "X$p"; then
7594 enable_static=yes
7595 fi
7596 done
7597 IFS="$lt_save_ifs"
7598 ;;
7599 esac],
7600 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7601
7602 _LT_DECL([build_old_libs], [enable_static], [0],
7603 [Whether or not to build static libraries])
7604 ])# _LT_ENABLE_STATIC
7605
7606 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7607 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7608
7609 # Old names:
7610 AC_DEFUN([AC_ENABLE_STATIC],
7611 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7612 ])
7613
7614 AC_DEFUN([AC_DISABLE_STATIC],
7615 [_LT_SET_OPTION([LT_INIT], [disable-static])
7616 ])
7617
7618 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7619 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7620
7621 dnl aclocal-1.4 backwards compatibility:
7622 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7623 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7624
7625
7626
7627 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
7628 # ----------------------------------
7629 # implement the --enable-fast-install flag, and support the `fast-install'
7630 # and `disable-fast-install' LT_INIT options.
7631 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7632 m4_define([_LT_ENABLE_FAST_INSTALL],
7633 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7634 AC_ARG_ENABLE([fast-install],
7635 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7636 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7637 [p=${PACKAGE-default}
7638 case $enableval in
7639 yes) enable_fast_install=yes ;;
7640 no) enable_fast_install=no ;;
7641 *)
7642 enable_fast_install=no
7643 # Look at the argument we got. We use all the common list separators.
7644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7645 for pkg in $enableval; do
7646 IFS="$lt_save_ifs"
7647 if test "X$pkg" = "X$p"; then
7648 enable_fast_install=yes
7649 fi
7650 done
7651 IFS="$lt_save_ifs"
7652 ;;
7653 esac],
7654 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7655
7656 _LT_DECL([fast_install], [enable_fast_install], [0],
7657 [Whether or not to optimize for fast installation])dnl
7658 ])# _LT_ENABLE_FAST_INSTALL
7659
7660 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7661 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7662
7663 # Old names:
7664 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7665 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7666 AC_DIAGNOSE([obsolete],
7667 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7668 the `fast-install' option into LT_INIT's first parameter.])
7669 ])
7670
7671 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7672 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7673 AC_DIAGNOSE([obsolete],
7674 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7675 the `disable-fast-install' option into LT_INIT's first parameter.])
7676 ])
7677
7678 dnl aclocal-1.4 backwards compatibility:
7679 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7680 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7681
7682
7683 # _LT_WITH_PIC([MODE])
7684 # --------------------
7685 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
7686 # LT_INIT options.
7687 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
7688 m4_define([_LT_WITH_PIC],
7689 [AC_ARG_WITH([pic],
7690 [AS_HELP_STRING([--with-pic],
7691 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7692 [pic_mode="$withval"],
7693 [pic_mode=default])
7694
7695 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7696
7697 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7698 ])# _LT_WITH_PIC
7699
7700 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7701 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7702
7703 # Old name:
7704 AU_DEFUN([AC_LIBTOOL_PICMODE],
7705 [_LT_SET_OPTION([LT_INIT], [pic-only])
7706 AC_DIAGNOSE([obsolete],
7707 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7708 put the `pic-only' option into LT_INIT's first parameter.])
7709 ])
7710
7711 dnl aclocal-1.4 backwards compatibility:
7712 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7713
7714
7715 m4_define([_LTDL_MODE], [])
7716 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7717 [m4_define([_LTDL_MODE], [nonrecursive])])
7718 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7719 [m4_define([_LTDL_MODE], [recursive])])
7720 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7721 [m4_define([_LTDL_MODE], [subproject])])
7722
7723 m4_define([_LTDL_TYPE], [])
7724 LT_OPTION_DEFINE([LTDL_INIT], [installable],
7725 [m4_define([_LTDL_TYPE], [installable])])
7726 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7727 [m4_define([_LTDL_TYPE], [convenience])])
7728
7729 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
7730 #
7731 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7732 # Written by Gary V. Vaughan, 2004
7733 #
7734 # This file is free software; the Free Software Foundation gives
7735 # unlimited permission to copy and/or distribute it, with or without
7736 # modifications, as long as this notice is preserved.
7737
7738 # serial 6 ltsugar.m4
7739
7740 # This is to help aclocal find these macros, as it can't see m4_define.
7741 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7742
7743
7744 # lt_join(SEP, ARG1, [ARG2...])
7745 # -----------------------------
7746 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7747 # associated separator.
7748 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7749 # versions in m4sugar had bugs.
7750 m4_define([lt_join],
7751 [m4_if([$#], [1], [],
7752 [$#], [2], [[$2]],
7753 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7754 m4_define([_lt_join],
7755 [m4_if([$#$2], [2], [],
7756 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7757
7758
7759 # lt_car(LIST)
7760 # lt_cdr(LIST)
7761 # ------------
7762 # Manipulate m4 lists.
7763 # These macros are necessary as long as will still need to support
7764 # Autoconf-2.59 which quotes differently.
7765 m4_define([lt_car], [[$1]])
7766 m4_define([lt_cdr],
7767 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7768 [$#], 1, [],
7769 [m4_dquote(m4_shift($@))])])
7770 m4_define([lt_unquote], $1)
7771
7772
7773 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
7774 # ------------------------------------------
7775 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7776 # Note that neither SEPARATOR nor STRING are expanded; they are appended
7777 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7778 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
7779 # than defined and empty).
7780 #
7781 # This macro is needed until we can rely on Autoconf 2.62, since earlier
7782 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7783 m4_define([lt_append],
7784 [m4_define([$1],
7785 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7786
7787
7788
7789 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7790 # ----------------------------------------------------------
7791 # Produce a SEP delimited list of all paired combinations of elements of
7792 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
7793 # has the form PREFIXmINFIXSUFFIXn.
7794 # Needed until we can rely on m4_combine added in Autoconf 2.62.
7795 m4_define([lt_combine],
7796 [m4_if(m4_eval([$# > 3]), [1],
7797 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
7798 [[m4_foreach([_Lt_prefix], [$2],
7799 [m4_foreach([_Lt_suffix],
7800 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
7801 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
7802
7803
7804 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7805 # -----------------------------------------------------------------------
7806 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7807 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7808 m4_define([lt_if_append_uniq],
7809 [m4_ifdef([$1],
7810 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7811 [lt_append([$1], [$2], [$3])$4],
7812 [$5])],
7813 [lt_append([$1], [$2], [$3])$4])])
7814
7815
7816 # lt_dict_add(DICT, KEY, VALUE)
7817 # -----------------------------
7818 m4_define([lt_dict_add],
7819 [m4_define([$1($2)], [$3])])
7820
7821
7822 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7823 # --------------------------------------------
7824 m4_define([lt_dict_add_subkey],
7825 [m4_define([$1($2:$3)], [$4])])
7826
7827
7828 # lt_dict_fetch(DICT, KEY, [SUBKEY])
7829 # ----------------------------------
7830 m4_define([lt_dict_fetch],
7831 [m4_ifval([$3],
7832 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7833 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7834
7835
7836 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7837 # -----------------------------------------------------------------
7838 m4_define([lt_if_dict_fetch],
7839 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7840 [$5],
7841 [$6])])
7842
7843
7844 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7845 # --------------------------------------------------------------
7846 m4_define([lt_dict_filter],
7847 [m4_if([$5], [], [],
7848 [lt_join(m4_quote(m4_default([$4], [[, ]])),
7849 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7850 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7851 ])
7852
7853 # ltversion.m4 -- version numbers -*- Autoconf -*-
7854 #
7855 # Copyright (C) 2004 Free Software Foundation, Inc.
7856 # Written by Scott James Remnant, 2004
7857 #
7858 # This file is free software; the Free Software Foundation gives
7859 # unlimited permission to copy and/or distribute it, with or without
7860 # modifications, as long as this notice is preserved.
7861
7862 # Generated from ltversion.in.
7863
7864 # serial 3012 ltversion.m4
7865 # This file is part of GNU Libtool
7866
7867 m4_define([LT_PACKAGE_VERSION], [2.2.6])
7868 m4_define([LT_PACKAGE_REVISION], [1.3012])
7869
7870 AC_DEFUN([LTVERSION_VERSION],
7871 [macro_version='2.2.6'
7872 macro_revision='1.3012'
7873 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7874 _LT_DECL(, macro_revision, 0)
7875 ])
7876
7877 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7878 #
7879 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7880 # Written by Scott James Remnant, 2004.
7881 #
7882 # This file is free software; the Free Software Foundation gives
7883 # unlimited permission to copy and/or distribute it, with or without
7884 # modifications, as long as this notice is preserved.
7885
7886 # serial 4 lt~obsolete.m4
7887
7888 # These exist entirely to fool aclocal when bootstrapping libtool.
7889 #
7890 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7891 # which have later been changed to m4_define as they aren't part of the
7892 # exported API, or moved to Autoconf or Automake where they belong.
7893 #
7894 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
7895 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7896 # using a macro with the same name in our local m4/libtool.m4 it'll
7897 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7898 # and doesn't know about Autoconf macros at all.)
7899 #
7900 # So we provide this file, which has a silly filename so it's always
7901 # included after everything else. This provides aclocal with the
7902 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7903 # because those macros already exist, or will be overwritten later.
7904 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7905 #
7906 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7907 # Yes, that means every name once taken will need to remain here until
7908 # we give up compatibility with versions before 1.7, at which point
7909 # we need to keep only those names which we still refer to.
7910
7911 # This is to help aclocal find these macros, as it can't see m4_define.
7912 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7913
7914 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7915 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
7916 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7917 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
7918 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7919 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
7920 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
7921 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7922 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
7923 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7924 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
7925 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7926 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7927 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7928 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7929 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7930 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
7931 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7932 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7933 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
7934 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
7935 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7936 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7937 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7938 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7939 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7940 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7941 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7942 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
7943 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
7944 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
7945 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7946 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7947 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
7948 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
7949 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7950 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7951 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
7952 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7953 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7954 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7955 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7956 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7957 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7958 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7959 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7960 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7961 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7962 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7963 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7964 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7965 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7966 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7967 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7968 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7969679
7970680 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7971681 #
8138848 [am__api_version='1.11'
8139849 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8140850 dnl require some minimum version. Point them to the right macro.
8141 m4_if([$1], [1.11], [],
851 m4_if([$1], [1.11.1], [],
8142852 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8143853 ])
8144854
8154864 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8155865 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8156866 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8157 [AM_AUTOMAKE_VERSION([1.11])dnl
867 [AM_AUTOMAKE_VERSION([1.11.1])dnl
8158868 m4_ifndef([AC_AUTOCONF_VERSION],
8159869 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8160870 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
89571667 fi
89581668 AC_MSG_RESULT(yes)])
89591669
1670 # Copyright (C) 2009 Free Software Foundation, Inc.
1671 #
1672 # This file is free software; the Free Software Foundation
1673 # gives unlimited permission to copy and/or distribute it,
1674 # with or without modifications, as long as this notice is preserved.
1675
1676 # serial 1
1677
1678 # AM_SILENT_RULES([DEFAULT])
1679 # --------------------------
1680 # Enable less verbose build rules; with the default set to DEFAULT
1681 # (`yes' being less verbose, `no' or empty being verbose).
1682 AC_DEFUN([AM_SILENT_RULES],
1683 [AC_ARG_ENABLE([silent-rules],
1684 [ --enable-silent-rules less verbose build output (undo: `make V=1')
1685 --disable-silent-rules verbose build output (undo: `make V=0')])
1686 case $enable_silent_rules in
1687 yes) AM_DEFAULT_VERBOSITY=0;;
1688 no) AM_DEFAULT_VERBOSITY=1;;
1689 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1690 esac
1691 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1692 AM_BACKSLASH='\'
1693 AC_SUBST([AM_BACKSLASH])dnl
1694 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1695 ])
1696
89601697 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
89611698 #
89621699 # This file is free software; the Free Software Foundation
91001837 AC_SUBST([am__untar])
91011838 ]) # _AM_PROG_TAR
91021839
1840 m4_include([m4/libtool.m4])
1841 m4_include([m4/ltoptions.m4])
1842 m4_include([m4/ltsugar.m4])
1843 m4_include([m4/ltversion.m4])
1844 m4_include([m4/lt~obsolete.m4])
91031845 m4_include([acinclude.m4])
00 #! /bin/sh
11 # Wrapper for compilers which do not understand `-c -o'.
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2009-10-06.20; # UTC
44
55 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
66 # Foundation, Inc.
123123 ret=$?
124124
125125 if test -f "$cofile"; then
126 mv "$cofile" "$ofile"
126 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
127127 elif test -f "${cofile}bj"; then
128 mv "${cofile}bj" "$ofile"
128 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
129129 fi
130130
131131 rmdir "$lockdir"
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
44 # Free Software Foundation, Inc.
55
6 timestamp='2009-04-27'
6 timestamp='2009-11-20'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
2626 # the same distribution terms that you use for the rest of that program.
2727
2828
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
29 # Originally written by Per Bothner. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # entry.
3232 #
3333 # This script attempts to guess a canonical system name similar to
3434 # config.sub. If it succeeds, it prints the system name on stdout, and
3535 # exits with 0. Otherwise, it exits with 1.
3636 #
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
37 # You can get the latest version of this script from:
38 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
3939
4040 me=`echo "$0" | sed -e 's,.*/,,'`
4141
169169 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170170 eval $set_cc_for_build
171171 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
172 | grep __ELF__ >/dev/null
172 | grep -q __ELF__
173173 then
174174 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175175 # Return netbsd for either. FIX?
332332 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
333333 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334334 exit ;;
335 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
336 echo i386-pc-auroraux${UNAME_RELEASE}
337 exit ;;
335338 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
336339 eval $set_cc_for_build
337340 SUN_ARCH="i386"
655658 # => hppa64-hp-hpux11.23
656659
657660 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
658 grep __LP64__ >/dev/null
661 grep -q __LP64__
659662 then
660663 HP_ARCH="hppa2.0w"
661664 else
806809 i*:PW*:*)
807810 echo ${UNAME_MACHINE}-pc-pw32
808811 exit ;;
809 *:Interix*:[3456]*)
812 *:Interix*:*)
810813 case ${UNAME_MACHINE} in
811814 x86)
812815 echo i586-pc-interix${UNAME_RELEASE}
813816 exit ;;
814 EM64T | authenticamd | genuineintel)
817 authenticamd | genuineintel | EM64T)
815818 echo x86_64-unknown-interix${UNAME_RELEASE}
816819 exit ;;
817820 IA64)
821824 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
822825 echo i${UNAME_MACHINE}-pc-mks
823826 exit ;;
827 8664:Windows_NT:*)
828 echo x86_64-pc-mks
829 exit ;;
824830 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
825831 # How do we know it's Interix rather than the generic POSIX subsystem?
826832 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
849855 exit ;;
850856 i*86:Minix:*:*)
851857 echo ${UNAME_MACHINE}-pc-minix
852 exit ;;
853 arm*:Linux:*:*)
854 eval $set_cc_for_build
855 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
856 | grep -q __ARM_EABI__
857 then
858 echo ${UNAME_MACHINE}-unknown-linux-gnu
859 else
860 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
861 fi
862 exit ;;
863 avr32*:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu
865 exit ;;
866 cris:Linux:*:*)
867 echo cris-axis-linux-gnu
868 exit ;;
869 crisv32:Linux:*:*)
870 echo crisv32-axis-linux-gnu
871 exit ;;
872 frv:Linux:*:*)
873 echo frv-unknown-linux-gnu
874 exit ;;
875 ia64:Linux:*:*)
876 echo ${UNAME_MACHINE}-unknown-linux-gnu
877 exit ;;
878 m32r*:Linux:*:*)
879 echo ${UNAME_MACHINE}-unknown-linux-gnu
880 exit ;;
881 m68*:Linux:*:*)
882 echo ${UNAME_MACHINE}-unknown-linux-gnu
883 exit ;;
884 mips:Linux:*:*)
885 eval $set_cc_for_build
886 sed 's/^ //' << EOF >$dummy.c
887 #undef CPU
888 #undef mips
889 #undef mipsel
890 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
891 CPU=mipsel
892 #else
893 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
894 CPU=mips
895 #else
896 CPU=
897 #endif
898 #endif
899 EOF
900 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
901 /^CPU/{
902 s: ::g
903 p
904 }'`"
905 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
906 ;;
907 mips64:Linux:*:*)
908 eval $set_cc_for_build
909 sed 's/^ //' << EOF >$dummy.c
910 #undef CPU
911 #undef mips64
912 #undef mips64el
913 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
914 CPU=mips64el
915 #else
916 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
917 CPU=mips64
918 #else
919 CPU=
920 #endif
921 #endif
922 EOF
923 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
924 /^CPU/{
925 s: ::g
926 p
927 }'`"
928 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
929 ;;
930 or32:Linux:*:*)
931 echo or32-unknown-linux-gnu
932 exit ;;
933 ppc:Linux:*:*)
934 echo powerpc-unknown-linux-gnu
935 exit ;;
936 ppc64:Linux:*:*)
937 echo powerpc64-unknown-linux-gnu
938858 exit ;;
939859 alpha:Linux:*:*)
940860 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
946866 EV67) UNAME_MACHINE=alphaev67 ;;
947867 EV68*) UNAME_MACHINE=alphaev68 ;;
948868 esac
949 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
869 objdump --private-headers /bin/sh | grep -q ld.so.1
950870 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
951871 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
952872 exit ;;
873 arm*:Linux:*:*)
874 eval $set_cc_for_build
875 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
876 | grep -q __ARM_EABI__
877 then
878 echo ${UNAME_MACHINE}-unknown-linux-gnu
879 else
880 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
881 fi
882 exit ;;
883 avr32*:Linux:*:*)
884 echo ${UNAME_MACHINE}-unknown-linux-gnu
885 exit ;;
886 cris:Linux:*:*)
887 echo cris-axis-linux-gnu
888 exit ;;
889 crisv32:Linux:*:*)
890 echo crisv32-axis-linux-gnu
891 exit ;;
892 frv:Linux:*:*)
893 echo frv-unknown-linux-gnu
894 exit ;;
895 i*86:Linux:*:*)
896 LIBC=gnu
897 eval $set_cc_for_build
898 sed 's/^ //' << EOF >$dummy.c
899 #ifdef __dietlibc__
900 LIBC=dietlibc
901 #endif
902 EOF
903 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
904 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
905 exit ;;
906 ia64:Linux:*:*)
907 echo ${UNAME_MACHINE}-unknown-linux-gnu
908 exit ;;
909 m32r*:Linux:*:*)
910 echo ${UNAME_MACHINE}-unknown-linux-gnu
911 exit ;;
912 m68*:Linux:*:*)
913 echo ${UNAME_MACHINE}-unknown-linux-gnu
914 exit ;;
915 mips:Linux:*:* | mips64:Linux:*:*)
916 eval $set_cc_for_build
917 sed 's/^ //' << EOF >$dummy.c
918 #undef CPU
919 #undef ${UNAME_MACHINE}
920 #undef ${UNAME_MACHINE}el
921 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
922 CPU=${UNAME_MACHINE}el
923 #else
924 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
925 CPU=${UNAME_MACHINE}
926 #else
927 CPU=
928 #endif
929 #endif
930 EOF
931 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
932 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
933 ;;
934 or32:Linux:*:*)
935 echo or32-unknown-linux-gnu
936 exit ;;
953937 padre:Linux:*:*)
954938 echo sparc-unknown-linux-gnu
939 exit ;;
940 parisc64:Linux:*:* | hppa64:Linux:*:*)
941 echo hppa64-unknown-linux-gnu
955942 exit ;;
956943 parisc:Linux:*:* | hppa:Linux:*:*)
957944 # Look for CPU level
961948 *) echo hppa-unknown-linux-gnu ;;
962949 esac
963950 exit ;;
964 parisc64:Linux:*:* | hppa64:Linux:*:*)
965 echo hppa64-unknown-linux-gnu
951 ppc64:Linux:*:*)
952 echo powerpc64-unknown-linux-gnu
953 exit ;;
954 ppc:Linux:*:*)
955 echo powerpc-unknown-linux-gnu
966956 exit ;;
967957 s390:Linux:*:* | s390x:Linux:*:*)
968958 echo ${UNAME_MACHINE}-ibm-linux
985975 xtensa*:Linux:*:*)
986976 echo ${UNAME_MACHINE}-unknown-linux-gnu
987977 exit ;;
988 i*86:Linux:*:*)
989 # The BFD linker knows what the default object file format is, so
990 # first see if it will tell us. cd to the root directory to prevent
991 # problems with other programs or directories called `ld' in the path.
992 # Set LC_ALL=C to ensure ld outputs messages in English.
993 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
994 | sed -ne '/supported targets:/!d
995 s/[ ][ ]*/ /g
996 s/.*supported targets: *//
997 s/ .*//
998 p'`
999 case "$ld_supported_targets" in
1000 elf32-i386)
1001 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
1002 ;;
1003 a.out-i386-linux)
1004 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
1005 exit ;;
1006 "")
1007 # Either a pre-BFD a.out linker (linux-gnuoldld) or
1008 # one that does not give us useful --help.
1009 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
1010 exit ;;
1011 esac
1012 # Determine whether the default compiler is a.out or elf
1013 eval $set_cc_for_build
1014 sed 's/^ //' << EOF >$dummy.c
1015 #include <features.h>
1016 #ifdef __ELF__
1017 # ifdef __GLIBC__
1018 # if __GLIBC__ >= 2
1019 LIBC=gnu
1020 # else
1021 LIBC=gnulibc1
1022 # endif
1023 # else
1024 LIBC=gnulibc1
1025 # endif
1026 #else
1027 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1028 LIBC=gnu
1029 #else
1030 LIBC=gnuaout
1031 #endif
1032 #endif
1033 #ifdef __dietlibc__
1034 LIBC=dietlibc
1035 #endif
1036 EOF
1037 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1038 /^LIBC/{
1039 s: ::g
1040 p
1041 }'`"
1042 test x"${LIBC}" != x && {
1043 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1044 exit
1045 }
1046 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1047 ;;
1048978 i*86:DYNIX/ptx:4*:*)
1049979 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1050980 # earlier versions are messed up and put the nodename in both
10731003 i*86:syllable:*:*)
10741004 echo ${UNAME_MACHINE}-pc-syllable
10751005 exit ;;
1076 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1006 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
10771007 echo i386-unknown-lynxos${UNAME_RELEASE}
10781008 exit ;;
10791009 i*86:*DOS:*:*)
11811111 rs6000:LynxOS:2.*:*)
11821112 echo rs6000-unknown-lynxos${UNAME_RELEASE}
11831113 exit ;;
1184 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1114 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
11851115 echo powerpc-unknown-lynxos${UNAME_RELEASE}
11861116 exit ;;
11871117 SM[BE]S:UNIX_SV:*:*)
12741204 *:Darwin:*:*)
12751205 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
12761206 case $UNAME_PROCESSOR in
1207 i386)
1208 eval $set_cc_for_build
1209 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1210 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1211 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1212 grep IS_64BIT_ARCH >/dev/null
1213 then
1214 UNAME_PROCESSOR="x86_64"
1215 fi
1216 fi ;;
12771217 unknown) UNAME_PROCESSOR=powerpc ;;
12781218 esac
12791219 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
00 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* always defined to indicate that i18n is enabled */
3 #undef ENABLE_NLS
4
5 /* GETTEXT package name */
6 #undef GETTEXT_PACKAGE
7
8 /* Define to 1 if you have the `bind_textdomain_codeset' function. */
9 #undef HAVE_BIND_TEXTDOMAIN_CODESET
10
11 /* Define to 1 if you have the `dcgettext' function. */
12 #undef HAVE_DCGETTEXT
113
214 /* Define to 1 if you have the <dlfcn.h> header file. */
315 #undef HAVE_DLFCN_H
517 /* Define to 1 if you have the `fork' function. */
618 #undef HAVE_FORK
719
20 /* Define if the GNU gettext() function is already present or preinstalled. */
21 #undef HAVE_GETTEXT
22
823 /* Define to 1 if you have the <inttypes.h> header file. */
924 #undef HAVE_INTTYPES_H
25
26 /* Define if your <locale.h> file defines LC_MESSAGES. */
27 #undef HAVE_LC_MESSAGES
28
29 /* Define to 1 if you have the <locale.h> header file. */
30 #undef HAVE_LOCALE_H
1031
1132 /* Define to 1 if you have the <memory.h> header file. */
1233 #undef HAVE_MEMORY_H
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
44 # Free Software Foundation, Inc.
55
6 timestamp='2009-04-17'
6 timestamp='2009-11-20'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
3131
3232
3333 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted ChangeLog entry.
34 # diff and a properly formatted GNU ChangeLog entry.
3535 #
3636 # Configuration subroutine to validate and canonicalize a configuration type.
3737 # Supply the specified configuration type as an argument.
3838 # If it is invalid, we print an error message on stderr and exit with code 1.
3939 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # You can get the latest version of this script from:
42 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
4043
4144 # This file is supposed to be the same for all GNU packages
4245 # and recognize all the CPU types, system types and aliases
148151 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149152 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150153 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151 -apple | -axis | -knuth | -cray)
154 -apple | -axis | -knuth | -cray | -microblaze)
152155 os=
153156 basic_machine=$1
157 ;;
158 -bluegene*)
159 os=-cnk
154160 ;;
155161 -sim | -cisco | -oki | -wec | -winbond)
156162 os=
280286 | pdp10 | pdp11 | pj | pjl \
281287 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
282288 | pyramid \
289 | rx \
283290 | score \
284291 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
285292 | sh64 | sh64le \
287294 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
288295 | spu | strongarm \
289296 | tahoe | thumb | tic4x | tic80 | tron \
297 | ubicom32 \
290298 | v850 | v850e \
291299 | we32k \
292300 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
293301 | z8k | z80)
294302 basic_machine=$basic_machine-unknown
295303 ;;
296 m6811 | m68hc11 | m6812 | m68hc12)
304 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
297305 # Motorola 68HC11/12.
298306 basic_machine=$basic_machine-unknown
299307 os=-none
336344 | lm32-* \
337345 | m32c-* | m32r-* | m32rle-* \
338346 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
339 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
347 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
340348 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
341349 | mips16-* \
342350 | mips64-* | mips64el-* \
364372 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
365373 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
366374 | pyramid-* \
367 | romp-* | rs6000-* \
375 | romp-* | rs6000-* | rx-* \
368376 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
369377 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
370378 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
373381 | tahoe-* | thumb-* \
374382 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
375383 | tron-* \
384 | ubicom32-* \
376385 | v850-* | v850e-* | vax-* \
377386 | we32k-* \
378387 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
465474 blackfin-*)
466475 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
467476 os=-linux
477 ;;
478 bluegene*)
479 basic_machine=powerpc-ibm
480 os=-cnk
468481 ;;
469482 c90)
470483 basic_machine=c90-cray
717730 merlin)
718731 basic_machine=ns32k-utek
719732 os=-sysv
733 ;;
734 microblaze)
735 basic_machine=microblaze-xilinx
720736 ;;
721737 mingw32)
722738 basic_machine=i386-pc
12391255 # First match some system type aliases
12401256 # that might get confused with valid system types.
12411257 # -solaris* is a basic system type, with this one exception.
1258 -auroraux)
1259 os=-auroraux
1260 ;;
12421261 -solaris1 | -solaris1.*)
12431262 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12441263 ;;
12591278 # Each alternative MUST END IN A *, to match a version number.
12601279 # -sysv* is not here because it comes later, after sysvr4.
12611280 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1262 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1263 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1264 | -kopensolaris* \
1281 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1282 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1283 | -sym* | -kopensolaris* \
12651284 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
12661285 | -aos* | -aros* \
12671286 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
12821301 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
12831302 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
12841303 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1285 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1304 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
12861305 # Remember, each alternative MUST END IN *, to match a version number.
12871306 ;;
12881307 -qnx*)
16121631 -sunos*)
16131632 vendor=sun
16141633 ;;
1615 -aix*)
1634 -cnk*|-aix*)
16161635 vendor=ibm
16171636 ;;
16181637 -beos*)
+3013
-630
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.63 for virt-viewer 0.2.0.
2 # Generated by GNU Autoconf 2.63 for virt-viewer 0.2.1.
33 #
44 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
55 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
742742 # Identity of this package.
743743 PACKAGE_NAME='virt-viewer'
744744 PACKAGE_TARNAME='virt-viewer'
745 PACKAGE_VERSION='0.2.0'
746 PACKAGE_STRING='virt-viewer 0.2.0'
745 PACKAGE_VERSION='0.2.1'
746 PACKAGE_STRING='virt-viewer 0.2.1'
747747 PACKAGE_BUGREPORT=''
748748
749749 ac_unique_file="src/main.c"
807807 LIBXML2_LIBS
808808 LIBXML2_CFLAGS
809809 PKG_CONFIG
810 MKINSTALLDIRS
811 POSUB
812 POFILES
813 PO_IN_DATADIR_FALSE
814 PO_IN_DATADIR_TRUE
815 INTLLIBS
816 INSTOBJEXT
817 GMOFILES
818 CATOBJEXT
819 CATALOGS
820 MSGFMT_OPTS
821 DATADIRNAME
822 ALL_LINGUAS
823 INTLTOOL_PERL
824 GMSGFMT
825 MSGFMT
826 MSGMERGE
827 XGETTEXT
828 INTLTOOL_POLICY_RULE
829 INTLTOOL_SERVICE_RULE
830 INTLTOOL_THEME_RULE
831 INTLTOOL_SCHEMAS_RULE
832 INTLTOOL_CAVES_RULE
833 INTLTOOL_XML_NOMERGE_RULE
834 INTLTOOL_XML_RULE
835 INTLTOOL_KBD_RULE
836 INTLTOOL_XAM_RULE
837 INTLTOOL_UI_RULE
838 INTLTOOL_SOUNDLIST_RULE
839 INTLTOOL_SHEET_RULE
840 INTLTOOL_SERVER_RULE
841 INTLTOOL_PONG_RULE
842 INTLTOOL_OAF_RULE
843 INTLTOOL_PROP_RULE
844 INTLTOOL_KEYS_RULE
845 INTLTOOL_DIRECTORY_RULE
846 INTLTOOL_DESKTOP_RULE
847 INTLTOOL_EXTRACT
848 INTLTOOL_MERGE
849 INTLTOOL_UPDATE
850 USE_NLS
851 GETTEXT_PACKAGE
810852 WARN_CFLAGS
811853 CPP
812854 OTOOL64
844886 LDFLAGS
845887 CFLAGS
846888 CC
889 AM_BACKSLASH
890 AM_DEFAULT_VERBOSITY
847891 host_os
848892 host_vendor
849893 host_cpu
915959 ac_subst_files=''
916960 ac_user_opts='
917961 enable_option_checking
962 enable_silent_rules
918963 enable_dependency_tracking
919964 enable_shared
920965 enable_static
924969 enable_libtool_lock
925970 enable_compile_warnings
926971 enable_iso_c
972 enable_nls
927973 enable_plugin
928974 '
929975 ac_precious_vars='build_alias
15041550 # Omit some internal or obsolete options to make the list less imposing.
15051551 # This message is too long to be a string in the A/UX 3.1 sh.
15061552 cat <<_ACEOF
1507 \`configure' configures virt-viewer 0.2.0 to adapt to many kinds of systems.
1553 \`configure' configures virt-viewer 0.2.1 to adapt to many kinds of systems.
15081554
15091555 Usage: $0 [OPTION]... [VAR=VALUE]...
15101556
15741620
15751621 if test -n "$ac_init_help"; then
15761622 case $ac_init_help in
1577 short | recursive ) echo "Configuration of virt-viewer 0.2.0:";;
1623 short | recursive ) echo "Configuration of virt-viewer 0.2.1:";;
15781624 esac
15791625 cat <<\_ACEOF
15801626
15821628 --disable-option-checking ignore unrecognized --enable/--with options
15831629 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
15841630 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1631 --enable-silent-rules less verbose build output (undo: `make V=1')
1632 --disable-silent-rules verbose build output (undo: `make V=0')
15851633 --disable-dependency-tracking speeds up one-time build
15861634 --enable-dependency-tracking do not reject slow dependency extractors
15871635 --enable-shared[=PKGS] build shared libraries [default=yes]
15921640 --enable-compile-warnings=[no/minimum/yes/maximum/error]
15931641 Turn on compiler warnings
15941642 --enable-iso-c Try to warn if code is not ISO C
1643 --disable-nls do not use Native Language Support
15951644 --enable-plugin=no/yes enable browser plugin default=no
15961645
15971646 Optional Packages:
17041753 test -n "$ac_init_help" && exit $ac_status
17051754 if $ac_init_version; then
17061755 cat <<\_ACEOF
1707 virt-viewer configure 0.2.0
1756 virt-viewer configure 0.2.1
17081757 generated by GNU Autoconf 2.63
17091758
17101759 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17181767 This file contains any messages produced by compilers while
17191768 running configure, to aid debugging if configure makes a mistake.
17201769
1721 It was created by virt-viewer $as_me 0.2.0, which was
1770 It was created by virt-viewer $as_me 0.2.1, which was
17221771 generated by GNU Autoconf 2.63. Invocation command line was
17231772
17241773 $ $0 $@
25702619
25712620 # Define the identity of the package.
25722621 PACKAGE='virt-viewer'
2573 VERSION='0.2.0'
2622 VERSION='0.2.1'
25742623
25752624
25762625 cat >>confdefs.h <<_ACEOF
26922741 IFS=$ac_save_IFS
26932742 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
26942743
2744
2745
2746 # Use the silent-rules feature when possible.
2747
2748 # Check whether --enable-silent-rules was given.
2749 if test "${enable_silent_rules+set}" = set; then
2750 enableval=$enable_silent_rules;
2751 fi
2752
2753 case $enable_silent_rules in
2754 yes) AM_DEFAULT_VERBOSITY=0;;
2755 no) AM_DEFAULT_VERBOSITY=1;;
2756 *) AM_DEFAULT_VERBOSITY=0;;
2757 esac
2758 AM_BACKSLASH='\'
26952759
26962760
26972761 ac_ext=c
39564020
39574021
39584022
3959 macro_version='2.2.6'
3960 macro_revision='1.3012'
4023 macro_version='2.2.6b'
4024 macro_revision='1.3017'
39614025
39624026
39634027
45674631 else
45684632 lt_cv_nm_interface="BSD nm"
45694633 echo "int some_variable = 0;" > conftest.$ac_ext
4570 (eval echo "\"\$as_me:4571: $ac_compile\"" >&5)
4634 (eval echo "\"\$as_me:4635: $ac_compile\"" >&5)
45714635 (eval "$ac_compile" 2>conftest.err)
45724636 cat conftest.err >&5
4573 (eval echo "\"\$as_me:4574: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4637 (eval echo "\"\$as_me:4638: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
45744638 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
45754639 cat conftest.err >&5
4576 (eval echo "\"\$as_me:4577: output\"" >&5)
4640 (eval echo "\"\$as_me:4641: output\"" >&5)
45774641 cat conftest.out >&5
45784642 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
45794643 lt_cv_nm_interface="MS dumpbin"
57795843 ;;
57805844 *-*-irix6*)
57815845 # Find out which ABI we are using.
5782 echo '#line 5783 "configure"' > conftest.$ac_ext
5846 echo '#line 5847 "configure"' > conftest.$ac_ext
57835847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57845848 (eval $ac_compile) 2>&5
57855849 ac_status=$?
76077671 $RM -r conftest*
76087672
76097673
7674 ## CAVEAT EMPTOR:
7675 ## There is no encapsulation within the following macros, do not change
7676 ## the running order or otherwise move them around unless you know exactly
7677 ## what you are doing...
76107678 if test -n "$compiler"; then
76117679
76127680 lt_prog_compiler_no_builtin_flag=
76327700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
76337701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
76347702 -e 's:$: $lt_compiler_flag:'`
7635 (eval echo "\"\$as_me:7636: $lt_compile\"" >&5)
7703 (eval echo "\"\$as_me:7704: $lt_compile\"" >&5)
76367704 (eval "$lt_compile" 2>conftest.err)
76377705 ac_status=$?
76387706 cat conftest.err >&5
7639 echo "$as_me:7640: \$? = $ac_status" >&5
7707 echo "$as_me:7708: \$? = $ac_status" >&5
76407708 if (exit $ac_status) && test -s "$ac_outfile"; then
76417709 # The compiler can only warn and ignore the option if not recognized
76427710 # So say no if there are warnings other than the usual output.
79718039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
79728040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
79738041 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:7975: $lt_compile\"" >&5)
8042 (eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
79758043 (eval "$lt_compile" 2>conftest.err)
79768044 ac_status=$?
79778045 cat conftest.err >&5
7978 echo "$as_me:7979: \$? = $ac_status" >&5
8046 echo "$as_me:8047: \$? = $ac_status" >&5
79798047 if (exit $ac_status) && test -s "$ac_outfile"; then
79808048 # The compiler can only warn and ignore the option if not recognized
79818049 # So say no if there are warnings other than the usual output.
80768144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
80778145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
80788146 -e 's:$: $lt_compiler_flag:'`
8079 (eval echo "\"\$as_me:8080: $lt_compile\"" >&5)
8147 (eval echo "\"\$as_me:8148: $lt_compile\"" >&5)
80808148 (eval "$lt_compile" 2>out/conftest.err)
80818149 ac_status=$?
80828150 cat out/conftest.err >&5
8083 echo "$as_me:8084: \$? = $ac_status" >&5
8151 echo "$as_me:8152: \$? = $ac_status" >&5
80848152 if (exit $ac_status) && test -s out/conftest2.$ac_objext
80858153 then
80868154 # The compiler can only warn and ignore the option if not recognized
81318199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
81328200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
81338201 -e 's:$: $lt_compiler_flag:'`
8134 (eval echo "\"\$as_me:8135: $lt_compile\"" >&5)
8202 (eval echo "\"\$as_me:8203: $lt_compile\"" >&5)
81358203 (eval "$lt_compile" 2>out/conftest.err)
81368204 ac_status=$?
81378205 cat out/conftest.err >&5
8138 echo "$as_me:8139: \$? = $ac_status" >&5
8206 echo "$as_me:8207: \$? = $ac_status" >&5
81398207 if (exit $ac_status) && test -s out/conftest2.$ac_objext
81408208 then
81418209 # The compiler can only warn and ignore the option if not recognized
1093411002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1093511003 lt_status=$lt_dlunknown
1093611004 cat > conftest.$ac_ext <<_LT_EOF
10937 #line 10938 "configure"
11005 #line 11006 "configure"
1093811006 #include "confdefs.h"
1093911007
1094011008 #if HAVE_DLFCN_H
1103011098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1103111099 lt_status=$lt_dlunknown
1103211100 cat > conftest.$ac_ext <<_LT_EOF
11033 #line 11034 "configure"
11101 #line 11102 "configure"
1103411102 #include "confdefs.h"
1103511103
1103611104 #if HAVE_DLFCN_H
1139511463
1139611464
1139711465
11398
11399
11400 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11401 if test -n "$ac_tool_prefix"; then
11402 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11403 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11466 GETTEXT_PACKAGE=virt-viewer
11467
11468
11469 cat >>confdefs.h <<_ACEOF
11470 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11471 _ACEOF
11472
11473
11474
11475 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11476 $as_echo_n "checking whether NLS is requested... " >&6; }
11477 # Check whether --enable-nls was given.
11478 if test "${enable_nls+set}" = set; then
11479 enableval=$enable_nls; USE_NLS=$enableval
11480 else
11481 USE_NLS=yes
11482 fi
11483
11484 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11485 $as_echo "$USE_NLS" >&6; }
11486
11487
11488
11489
11490 case "$am__api_version" in
11491 1.01234)
11492 { { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
11493 $as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
11494 { (exit 1); exit 1; }; }
11495 ;;
11496 *)
11497 ;;
11498 esac
11499
11500 if test -n "0.35.0"; then
11501 { $as_echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
11502 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
11503
11504 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
11505 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
11506 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
11507
11508 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
11509 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
11510 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
11511 { { $as_echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.35.0 or later." >&5
11512 $as_echo "$as_me: error: Your intltool is too old. You need intltool 0.35.0 or later." >&2;}
11513 { (exit 1); exit 1; }; }
11514 fi
11515
11516 # Extract the first word of "intltool-update", so it can be a program name with args.
11517 set dummy intltool-update; ac_word=$2
1140411518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1140511519 $as_echo_n "checking for $ac_word... " >&6; }
11406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11520 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
1140711521 $as_echo_n "(cached) " >&6
1140811522 else
11409 case $PKG_CONFIG in
11523 case $INTLTOOL_UPDATE in
1141011524 [\\/]* | ?:[\\/]*)
11411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11525 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
1141211526 ;;
1141311527 *)
1141411528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1141811532 test -z "$as_dir" && as_dir=.
1141911533 for ac_exec_ext in '' $ac_executable_extensions; do
1142011534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11535 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
1142211536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1142311537 break 2
1142411538 fi
1142911543 ;;
1143011544 esac
1143111545 fi
11432 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11433 if test -n "$PKG_CONFIG"; then
11434 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11435 $as_echo "$PKG_CONFIG" >&6; }
11546 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
11547 if test -n "$INTLTOOL_UPDATE"; then
11548 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
11549 $as_echo "$INTLTOOL_UPDATE" >&6; }
1143611550 else
1143711551 { $as_echo "$as_me:$LINENO: result: no" >&5
1143811552 $as_echo "no" >&6; }
1143911553 fi
1144011554
1144111555
11442 fi
11443 if test -z "$ac_cv_path_PKG_CONFIG"; then
11444 ac_pt_PKG_CONFIG=$PKG_CONFIG
11445 # Extract the first word of "pkg-config", so it can be a program name with args.
11446 set dummy pkg-config; ac_word=$2
11556 # Extract the first word of "intltool-merge", so it can be a program name with args.
11557 set dummy intltool-merge; ac_word=$2
1144711558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1144811559 $as_echo_n "checking for $ac_word... " >&6; }
11449 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11560 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
1145011561 $as_echo_n "(cached) " >&6
1145111562 else
11452 case $ac_pt_PKG_CONFIG in
11563 case $INTLTOOL_MERGE in
1145311564 [\\/]* | ?:[\\/]*)
11454 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11565 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
1145511566 ;;
1145611567 *)
1145711568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1146111572 test -z "$as_dir" && as_dir=.
1146211573 for ac_exec_ext in '' $ac_executable_extensions; do
1146311574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11464 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11575 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
1146511576 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1146611577 break 2
1146711578 fi
1147211583 ;;
1147311584 esac
1147411585 fi
11475 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11476 if test -n "$ac_pt_PKG_CONFIG"; then
11477 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11478 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11586 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
11587 if test -n "$INTLTOOL_MERGE"; then
11588 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
11589 $as_echo "$INTLTOOL_MERGE" >&6; }
1147911590 else
1148011591 { $as_echo "$as_me:$LINENO: result: no" >&5
1148111592 $as_echo "no" >&6; }
1148211593 fi
1148311594
11484 if test "x$ac_pt_PKG_CONFIG" = x; then
11485 PKG_CONFIG=""
11486 else
11487 case $cross_compiling:$ac_tool_warned in
11488 yes:)
11489 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11491 ac_tool_warned=yes ;;
11595
11596 # Extract the first word of "intltool-extract", so it can be a program name with args.
11597 set dummy intltool-extract; ac_word=$2
11598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
11601 $as_echo_n "(cached) " >&6
11602 else
11603 case $INTLTOOL_EXTRACT in
11604 [\\/]* | ?:[\\/]*)
11605 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
11606 ;;
11607 *)
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11615 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
11616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11618 fi
11619 done
11620 done
11621 IFS=$as_save_IFS
11622
11623 ;;
1149211624 esac
11493 PKG_CONFIG=$ac_pt_PKG_CONFIG
11625 fi
11626 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
11627 if test -n "$INTLTOOL_EXTRACT"; then
11628 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
11629 $as_echo "$INTLTOOL_EXTRACT" >&6; }
11630 else
11631 { $as_echo "$as_me:$LINENO: result: no" >&5
11632 $as_echo "no" >&6; }
11633 fi
11634
11635
11636 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
11637 { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
11638 $as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
11639 { (exit 1); exit 1; }; }
11640 fi
11641
11642 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11643 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11644 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11645 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11646 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
11647 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11648 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11649 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11650 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11651 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11652 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11653 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
11654 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11655 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11656 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11657 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11658 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11659 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11660 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758 # Check the gettext tools to make sure they are GNU
11759 # Extract the first word of "xgettext", so it can be a program name with args.
11760 set dummy xgettext; ac_word=$2
11761 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11764 $as_echo_n "(cached) " >&6
11765 else
11766 case $XGETTEXT in
11767 [\\/]* | ?:[\\/]*)
11768 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11769 ;;
11770 *)
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11773 do
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11778 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
11779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11780 break 2
1149411781 fi
11495 else
11496 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11497 fi
11498
11499 fi
11500 if test -n "$PKG_CONFIG"; then
11501 _pkg_min_version=0.9.0
11502 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11503 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11504 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11505 { $as_echo "$as_me:$LINENO: result: yes" >&5
11506 $as_echo "yes" >&6; }
11507 else
11508 { $as_echo "$as_me:$LINENO: result: no" >&5
11782 done
11783 done
11784 IFS=$as_save_IFS
11785
11786 ;;
11787 esac
11788 fi
11789 XGETTEXT=$ac_cv_path_XGETTEXT
11790 if test -n "$XGETTEXT"; then
11791 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11792 $as_echo "$XGETTEXT" >&6; }
11793 else
11794 { $as_echo "$as_me:$LINENO: result: no" >&5
1150911795 $as_echo "no" >&6; }
11510 PKG_CONFIG=""
11511 fi
11512
11513 fi
11514
11515 pkg_failed=no
11516 { $as_echo "$as_me:$LINENO: checking for LIBXML2" >&5
11517 $as_echo_n "checking for LIBXML2... " >&6; }
11518
11519 if test -n "$LIBXML2_CFLAGS"; then
11520 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
11521 elif test -n "$PKG_CONFIG"; then
11522 if test -n "$PKG_CONFIG" && \
11523 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\"") >&5
11524 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
11796 fi
11797
11798
11799 # Extract the first word of "msgmerge", so it can be a program name with args.
11800 set dummy msgmerge; ac_word=$2
11801 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11802 $as_echo_n "checking for $ac_word... " >&6; }
11803 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11804 $as_echo_n "(cached) " >&6
11805 else
11806 case $MSGMERGE in
11807 [\\/]* | ?:[\\/]*)
11808 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11809 ;;
11810 *)
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11813 do
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11818 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
11819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11821 fi
11822 done
11823 done
11824 IFS=$as_save_IFS
11825
11826 ;;
11827 esac
11828 fi
11829 MSGMERGE=$ac_cv_path_MSGMERGE
11830 if test -n "$MSGMERGE"; then
11831 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11832 $as_echo "$MSGMERGE" >&6; }
11833 else
11834 { $as_echo "$as_me:$LINENO: result: no" >&5
11835 $as_echo "no" >&6; }
11836 fi
11837
11838
11839 # Extract the first word of "msgfmt", so it can be a program name with args.
11840 set dummy msgfmt; ac_word=$2
11841 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if test "${ac_cv_path_MSGFMT+set}" = set; then
11844 $as_echo_n "(cached) " >&6
11845 else
11846 case $MSGFMT in
11847 [\\/]* | ?:[\\/]*)
11848 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11849 ;;
11850 *)
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11853 do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11858 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
11859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 break 2
11861 fi
11862 done
11863 done
11864 IFS=$as_save_IFS
11865
11866 ;;
11867 esac
11868 fi
11869 MSGFMT=$ac_cv_path_MSGFMT
11870 if test -n "$MSGFMT"; then
11871 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
11872 $as_echo "$MSGFMT" >&6; }
11873 else
11874 { $as_echo "$as_me:$LINENO: result: no" >&5
11875 $as_echo "no" >&6; }
11876 fi
11877
11878
11879 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11880 set dummy gmsgfmt; ac_word=$2
11881 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11884 $as_echo_n "(cached) " >&6
11885 else
11886 case $GMSGFMT in
11887 [\\/]* | ?:[\\/]*)
11888 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11889 ;;
11890 *)
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11893 do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11901 fi
11902 done
11903 done
11904 IFS=$as_save_IFS
11905
11906 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11907 ;;
11908 esac
11909 fi
11910 GMSGFMT=$ac_cv_path_GMSGFMT
11911 if test -n "$GMSGFMT"; then
11912 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11913 $as_echo "$GMSGFMT" >&6; }
11914 else
11915 { $as_echo "$as_me:$LINENO: result: no" >&5
11916 $as_echo "no" >&6; }
11917 fi
11918
11919
11920 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
11921 { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
11922 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
11923 { (exit 1); exit 1; }; }
11924 fi
11925 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
11926 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
11927 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
11928 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
11929 { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
11930 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
11931 { (exit 1); exit 1; }; }
11932 fi
11933
11934 # Extract the first word of "perl", so it can be a program name with args.
11935 set dummy perl; ac_word=$2
11936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
11939 $as_echo_n "(cached) " >&6
11940 else
11941 case $INTLTOOL_PERL in
11942 [\\/]* | ?:[\\/]*)
11943 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
11944 ;;
11945 *)
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11948 do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11953 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
11954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11955 break 2
11956 fi
11957 done
11958 done
11959 IFS=$as_save_IFS
11960
11961 ;;
11962 esac
11963 fi
11964 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
11965 if test -n "$INTLTOOL_PERL"; then
11966 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
11967 $as_echo "$INTLTOOL_PERL" >&6; }
11968 else
11969 { $as_echo "$as_me:$LINENO: result: no" >&5
11970 $as_echo "no" >&6; }
11971 fi
11972
11973
11974 if test -z "$INTLTOOL_PERL"; then
11975 { { $as_echo "$as_me:$LINENO: error: perl not found" >&5
11976 $as_echo "$as_me: error: perl not found" >&2;}
11977 { (exit 1); exit 1; }; }
11978 fi
11979 { $as_echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
11980 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
11981 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
11982 if test $? -ne 0; then
11983 { { $as_echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
11984 $as_echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
11985 { (exit 1); exit 1; }; }
11986 else
11987 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
11988 { $as_echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
11989 $as_echo "$IT_PERL_VERSION" >&6; }
11990 fi
11991 if test "x" != "xno-xml"; then
11992 { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
11993 $as_echo_n "checking for XML::Parser... " >&6; }
11994 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
11995 { $as_echo "$as_me:$LINENO: result: ok" >&5
11996 $as_echo "ok" >&6; }
11997 else
11998 { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
11999 $as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
12000 { (exit 1); exit 1; }; }
12001 fi
12002 fi
12003
12004 # Substitute ALL_LINGUAS so we can use it in po/Makefile
12005
12006
12007 # Set DATADIRNAME correctly if it is not set yet
12008 # (copied from glib-gettext.m4)
12009 if test -z "$DATADIRNAME"; then
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h. */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016
12017 int
12018 main ()
12019 {
12020 extern int _nl_msg_cat_cntr;
12021 return _nl_msg_cat_cntr
12022 ;
12023 return 0;
12024 }
12025 _ACEOF
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (ac_try="$ac_link"
12028 case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031 esac
12032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12033 $as_echo "$ac_try_echo") >&5
12034 (eval "$ac_link") 2>conftest.er1
1152512035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
1152612039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; then
11528 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
11529 else
11530 pkg_failed=yes
11531 fi
11532 else
11533 pkg_failed=untried
11534 fi
11535 if test -n "$LIBXML2_LIBS"; then
11536 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
11537 elif test -n "$PKG_CONFIG"; then
11538 if test -n "$PKG_CONFIG" && \
11539 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\"") >&5
11540 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest$ac_exeext && {
12044 test "$cross_compiling" = yes ||
12045 $as_test_x conftest$ac_exeext
12046 }; then
12047 DATADIRNAME=share
12048 else
12049 $as_echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 case $host in
12053 *-*-solaris*)
12054 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
12055 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
12056 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
12057 $as_echo_n "(cached) " >&6
12058 else
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
12066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12067 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
12068
12069 /* System header to define __stub macros and hopefully few prototypes,
12070 which can conflict with char bind_textdomain_codeset (); below.
12071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072 <limits.h> exists even on freestanding compilers. */
12073
12074 #ifdef __STDC__
12075 # include <limits.h>
12076 #else
12077 # include <assert.h>
12078 #endif
12079
12080 #undef bind_textdomain_codeset
12081
12082 /* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12085 #ifdef __cplusplus
12086 extern "C"
12087 #endif
12088 char bind_textdomain_codeset ();
12089 /* The GNU C library defines this for functions which it implements
12090 to always fail with ENOSYS. Some functions are actually named
12091 something starting with __ and the normal name is an alias. */
12092 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
12093 choke me
12094 #endif
12095
12096 int
12097 main ()
12098 {
12099 return bind_textdomain_codeset ();
12100 ;
12101 return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12111 $as_echo "$ac_try_echo") >&5
12112 (eval "$ac_link") 2>conftest.er1
1154112113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
1154212117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; then
11544 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
11545 else
11546 pkg_failed=yes
11547 fi
11548 else
11549 pkg_failed=untried
11550 fi
11551
11552
11553
11554 if test $pkg_failed = yes; then
11555
11556 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11557 _pkg_short_errors_supported=yes
11558 else
11559 _pkg_short_errors_supported=no
11560 fi
11561 if test $_pkg_short_errors_supported = yes; then
11562 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= 2.6.0" 2>&1`
11563 else
11564 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= 2.6.0" 2>&1`
11565 fi
11566 # Put the nasty error message in config.log where it belongs
11567 echo "$LIBXML2_PKG_ERRORS" >&5
11568
11569 { { $as_echo "$as_me:$LINENO: error: Package requirements (libxml-2.0 >= 2.6.0) were not met:
11570
11571 $LIBXML2_PKG_ERRORS
11572
11573 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11574 installed software in a non-standard prefix.
11575
11576 Alternatively, you may set the environment variables LIBXML2_CFLAGS
11577 and LIBXML2_LIBS to avoid the need to call pkg-config.
11578 See the pkg-config man page for more details.
11579 " >&5
11580 $as_echo "$as_me: error: Package requirements (libxml-2.0 >= 2.6.0) were not met:
11581
11582 $LIBXML2_PKG_ERRORS
11583
11584 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11585 installed software in a non-standard prefix.
11586
11587 Alternatively, you may set the environment variables LIBXML2_CFLAGS
11588 and LIBXML2_LIBS to avoid the need to call pkg-config.
11589 See the pkg-config man page for more details.
11590 " >&2;}
11591 { (exit 1); exit 1; }; }
11592 elif test $pkg_failed = untried; then
11593 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11595 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11596 is in your PATH or set the PKG_CONFIG environment variable to the full
11597 path to pkg-config.
11598
11599 Alternatively, you may set the environment variables LIBXML2_CFLAGS
11600 and LIBXML2_LIBS to avoid the need to call pkg-config.
11601 See the pkg-config man page for more details.
11602
11603 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11604 See \`config.log' for more details." >&5
11605 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11606 is in your PATH or set the PKG_CONFIG environment variable to the full
11607 path to pkg-config.
11608
11609 Alternatively, you may set the environment variables LIBXML2_CFLAGS
11610 and LIBXML2_LIBS to avoid the need to call pkg-config.
11611 See the pkg-config man page for more details.
11612
11613 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11614 See \`config.log' for more details." >&2;}
11615 { (exit 1); exit 1; }; }; }
11616 else
11617 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
11618 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
11619 { $as_echo "$as_me:$LINENO: result: yes" >&5
11620 $as_echo "yes" >&6; }
11621 :
11622 fi
11623
11624 pkg_failed=no
11625 { $as_echo "$as_me:$LINENO: checking for LIBVIRT" >&5
11626 $as_echo_n "checking for LIBVIRT... " >&6; }
11627
11628 if test -n "$LIBVIRT_CFLAGS"; then
11629 pkg_cv_LIBVIRT_CFLAGS="$LIBVIRT_CFLAGS"
11630 elif test -n "$PKG_CONFIG"; then
11631 if test -n "$PKG_CONFIG" && \
11632 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libvirt >= 0.6.0\"") >&5
11633 ($PKG_CONFIG --exists --print-errors "libvirt >= 0.6.0") 2>&5
11634 ac_status=$?
11635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; then
11637 pkg_cv_LIBVIRT_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 0.6.0" 2>/dev/null`
11638 else
11639 pkg_failed=yes
11640 fi
11641 else
11642 pkg_failed=untried
11643 fi
11644 if test -n "$LIBVIRT_LIBS"; then
11645 pkg_cv_LIBVIRT_LIBS="$LIBVIRT_LIBS"
11646 elif test -n "$PKG_CONFIG"; then
11647 if test -n "$PKG_CONFIG" && \
11648 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libvirt >= 0.6.0\"") >&5
11649 ($PKG_CONFIG --exists --print-errors "libvirt >= 0.6.0") 2>&5
11650 ac_status=$?
11651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; then
11653 pkg_cv_LIBVIRT_LIBS=`$PKG_CONFIG --libs "libvirt >= 0.6.0" 2>/dev/null`
11654 else
11655 pkg_failed=yes
11656 fi
11657 else
11658 pkg_failed=untried
11659 fi
11660
11661
11662
11663 if test $pkg_failed = yes; then
11664
11665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11666 _pkg_short_errors_supported=yes
11667 else
11668 _pkg_short_errors_supported=no
11669 fi
11670 if test $_pkg_short_errors_supported = yes; then
11671 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libvirt >= 0.6.0" 2>&1`
11672 else
11673 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libvirt >= 0.6.0" 2>&1`
11674 fi
11675 # Put the nasty error message in config.log where it belongs
11676 echo "$LIBVIRT_PKG_ERRORS" >&5
11677
11678 { { $as_echo "$as_me:$LINENO: error: Package requirements (libvirt >= 0.6.0) were not met:
11679
11680 $LIBVIRT_PKG_ERRORS
11681
11682 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11683 installed software in a non-standard prefix.
11684
11685 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
11686 and LIBVIRT_LIBS to avoid the need to call pkg-config.
11687 See the pkg-config man page for more details.
11688 " >&5
11689 $as_echo "$as_me: error: Package requirements (libvirt >= 0.6.0) were not met:
11690
11691 $LIBVIRT_PKG_ERRORS
11692
11693 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11694 installed software in a non-standard prefix.
11695
11696 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
11697 and LIBVIRT_LIBS to avoid the need to call pkg-config.
11698 See the pkg-config man page for more details.
11699 " >&2;}
11700 { (exit 1); exit 1; }; }
11701 elif test $pkg_failed = untried; then
11702 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11704 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11705 is in your PATH or set the PKG_CONFIG environment variable to the full
11706 path to pkg-config.
11707
11708 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
11709 and LIBVIRT_LIBS to avoid the need to call pkg-config.
11710 See the pkg-config man page for more details.
11711
11712 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11713 See \`config.log' for more details." >&5
11714 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11715 is in your PATH or set the PKG_CONFIG environment variable to the full
11716 path to pkg-config.
11717
11718 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
11719 and LIBVIRT_LIBS to avoid the need to call pkg-config.
11720 See the pkg-config man page for more details.
11721
11722 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11723 See \`config.log' for more details." >&2;}
11724 { (exit 1); exit 1; }; }; }
11725 else
11726 LIBVIRT_CFLAGS=$pkg_cv_LIBVIRT_CFLAGS
11727 LIBVIRT_LIBS=$pkg_cv_LIBVIRT_LIBS
11728 { $as_echo "$as_me:$LINENO: result: yes" >&5
11729 $as_echo "yes" >&6; }
11730 :
11731 fi
11732
11733 pkg_failed=no
11734 { $as_echo "$as_me:$LINENO: checking for GTK2" >&5
11735 $as_echo_n "checking for GTK2... " >&6; }
11736
11737 if test -n "$GTK2_CFLAGS"; then
11738 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
11739 elif test -n "$PKG_CONFIG"; then
11740 if test -n "$PKG_CONFIG" && \
11741 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\"") >&5
11742 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
11743 ac_status=$?
11744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; then
11746 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.10.0" 2>/dev/null`
11747 else
11748 pkg_failed=yes
11749 fi
11750 else
11751 pkg_failed=untried
11752 fi
11753 if test -n "$GTK2_LIBS"; then
11754 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
11755 elif test -n "$PKG_CONFIG"; then
11756 if test -n "$PKG_CONFIG" && \
11757 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\"") >&5
11758 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
11759 ac_status=$?
11760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; then
11762 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.10.0" 2>/dev/null`
11763 else
11764 pkg_failed=yes
11765 fi
11766 else
11767 pkg_failed=untried
11768 fi
11769
11770
11771
11772 if test $pkg_failed = yes; then
11773
11774 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11775 _pkg_short_errors_supported=yes
11776 else
11777 _pkg_short_errors_supported=no
11778 fi
11779 if test $_pkg_short_errors_supported = yes; then
11780 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.10.0" 2>&1`
11781 else
11782 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.10.0" 2>&1`
11783 fi
11784 # Put the nasty error message in config.log where it belongs
11785 echo "$GTK2_PKG_ERRORS" >&5
11786
11787 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.10.0) were not met:
11788
11789 $GTK2_PKG_ERRORS
11790
11791 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11792 installed software in a non-standard prefix.
11793
11794 Alternatively, you may set the environment variables GTK2_CFLAGS
11795 and GTK2_LIBS to avoid the need to call pkg-config.
11796 See the pkg-config man page for more details.
11797 " >&5
11798 $as_echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.10.0) were not met:
11799
11800 $GTK2_PKG_ERRORS
11801
11802 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11803 installed software in a non-standard prefix.
11804
11805 Alternatively, you may set the environment variables GTK2_CFLAGS
11806 and GTK2_LIBS to avoid the need to call pkg-config.
11807 See the pkg-config man page for more details.
11808 " >&2;}
11809 { (exit 1); exit 1; }; }
11810 elif test $pkg_failed = untried; then
11811 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11813 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11814 is in your PATH or set the PKG_CONFIG environment variable to the full
11815 path to pkg-config.
11816
11817 Alternatively, you may set the environment variables GTK2_CFLAGS
11818 and GTK2_LIBS to avoid the need to call pkg-config.
11819 See the pkg-config man page for more details.
11820
11821 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11822 See \`config.log' for more details." >&5
11823 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11824 is in your PATH or set the PKG_CONFIG environment variable to the full
11825 path to pkg-config.
11826
11827 Alternatively, you may set the environment variables GTK2_CFLAGS
11828 and GTK2_LIBS to avoid the need to call pkg-config.
11829 See the pkg-config man page for more details.
11830
11831 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11832 See \`config.log' for more details." >&2;}
11833 { (exit 1); exit 1; }; }; }
11834 else
11835 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
11836 GTK2_LIBS=$pkg_cv_GTK2_LIBS
11837 { $as_echo "$as_me:$LINENO: result: yes" >&5
11838 $as_echo "yes" >&6; }
11839 :
11840 fi
11841
11842 pkg_failed=no
11843 { $as_echo "$as_me:$LINENO: checking for LIBGLADE2" >&5
11844 $as_echo_n "checking for LIBGLADE2... " >&6; }
11845
11846 if test -n "$LIBGLADE2_CFLAGS"; then
11847 pkg_cv_LIBGLADE2_CFLAGS="$LIBGLADE2_CFLAGS"
11848 elif test -n "$PKG_CONFIG"; then
11849 if test -n "$PKG_CONFIG" && \
11850 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= 2.6.0\"") >&5
11851 ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= 2.6.0") 2>&5
11852 ac_status=$?
11853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; then
11855 pkg_cv_LIBGLADE2_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0 >= 2.6.0" 2>/dev/null`
11856 else
11857 pkg_failed=yes
11858 fi
11859 else
11860 pkg_failed=untried
11861 fi
11862 if test -n "$LIBGLADE2_LIBS"; then
11863 pkg_cv_LIBGLADE2_LIBS="$LIBGLADE2_LIBS"
11864 elif test -n "$PKG_CONFIG"; then
11865 if test -n "$PKG_CONFIG" && \
11866 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= 2.6.0\"") >&5
11867 ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= 2.6.0") 2>&5
11868 ac_status=$?
11869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; then
11871 pkg_cv_LIBGLADE2_LIBS=`$PKG_CONFIG --libs "libglade-2.0 >= 2.6.0" 2>/dev/null`
11872 else
11873 pkg_failed=yes
11874 fi
11875 else
11876 pkg_failed=untried
11877 fi
11878
11879
11880
11881 if test $pkg_failed = yes; then
11882
11883 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11884 _pkg_short_errors_supported=yes
11885 else
11886 _pkg_short_errors_supported=no
11887 fi
11888 if test $_pkg_short_errors_supported = yes; then
11889 LIBGLADE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libglade-2.0 >= 2.6.0" 2>&1`
11890 else
11891 LIBGLADE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libglade-2.0 >= 2.6.0" 2>&1`
11892 fi
11893 # Put the nasty error message in config.log where it belongs
11894 echo "$LIBGLADE2_PKG_ERRORS" >&5
11895
11896 { { $as_echo "$as_me:$LINENO: error: Package requirements (libglade-2.0 >= 2.6.0) were not met:
11897
11898 $LIBGLADE2_PKG_ERRORS
11899
11900 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11901 installed software in a non-standard prefix.
11902
11903 Alternatively, you may set the environment variables LIBGLADE2_CFLAGS
11904 and LIBGLADE2_LIBS to avoid the need to call pkg-config.
11905 See the pkg-config man page for more details.
11906 " >&5
11907 $as_echo "$as_me: error: Package requirements (libglade-2.0 >= 2.6.0) were not met:
11908
11909 $LIBGLADE2_PKG_ERRORS
11910
11911 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11912 installed software in a non-standard prefix.
11913
11914 Alternatively, you may set the environment variables LIBGLADE2_CFLAGS
11915 and LIBGLADE2_LIBS to avoid the need to call pkg-config.
11916 See the pkg-config man page for more details.
11917 " >&2;}
11918 { (exit 1); exit 1; }; }
11919 elif test $pkg_failed = untried; then
11920 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11922 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11923 is in your PATH or set the PKG_CONFIG environment variable to the full
11924 path to pkg-config.
11925
11926 Alternatively, you may set the environment variables LIBGLADE2_CFLAGS
11927 and LIBGLADE2_LIBS to avoid the need to call pkg-config.
11928 See the pkg-config man page for more details.
11929
11930 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11931 See \`config.log' for more details." >&5
11932 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11933 is in your PATH or set the PKG_CONFIG environment variable to the full
11934 path to pkg-config.
11935
11936 Alternatively, you may set the environment variables LIBGLADE2_CFLAGS
11937 and LIBGLADE2_LIBS to avoid the need to call pkg-config.
11938 See the pkg-config man page for more details.
11939
11940 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11941 See \`config.log' for more details." >&2;}
11942 { (exit 1); exit 1; }; }; }
11943 else
11944 LIBGLADE2_CFLAGS=$pkg_cv_LIBGLADE2_CFLAGS
11945 LIBGLADE2_LIBS=$pkg_cv_LIBGLADE2_LIBS
11946 { $as_echo "$as_me:$LINENO: result: yes" >&5
11947 $as_echo "yes" >&6; }
11948 :
11949 fi
11950
11951 pkg_failed=no
11952 { $as_echo "$as_me:$LINENO: checking for GTKVNC" >&5
11953 $as_echo_n "checking for GTKVNC... " >&6; }
11954
11955 if test -n "$GTKVNC_CFLAGS"; then
11956 pkg_cv_GTKVNC_CFLAGS="$GTKVNC_CFLAGS"
11957 elif test -n "$PKG_CONFIG"; then
11958 if test -n "$PKG_CONFIG" && \
11959 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-vnc-1.0 >= 0.3.8\"") >&5
11960 ($PKG_CONFIG --exists --print-errors "gtk-vnc-1.0 >= 0.3.8") 2>&5
11961 ac_status=$?
11962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; then
11964 pkg_cv_GTKVNC_CFLAGS=`$PKG_CONFIG --cflags "gtk-vnc-1.0 >= 0.3.8" 2>/dev/null`
11965 else
11966 pkg_failed=yes
11967 fi
11968 else
11969 pkg_failed=untried
11970 fi
11971 if test -n "$GTKVNC_LIBS"; then
11972 pkg_cv_GTKVNC_LIBS="$GTKVNC_LIBS"
11973 elif test -n "$PKG_CONFIG"; then
11974 if test -n "$PKG_CONFIG" && \
11975 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-vnc-1.0 >= 0.3.8\"") >&5
11976 ($PKG_CONFIG --exists --print-errors "gtk-vnc-1.0 >= 0.3.8") 2>&5
11977 ac_status=$?
11978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; then
11980 pkg_cv_GTKVNC_LIBS=`$PKG_CONFIG --libs "gtk-vnc-1.0 >= 0.3.8" 2>/dev/null`
11981 else
11982 pkg_failed=yes
11983 fi
11984 else
11985 pkg_failed=untried
11986 fi
11987
11988
11989
11990 if test $pkg_failed = yes; then
11991
11992 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11993 _pkg_short_errors_supported=yes
11994 else
11995 _pkg_short_errors_supported=no
11996 fi
11997 if test $_pkg_short_errors_supported = yes; then
11998 GTKVNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk-vnc-1.0 >= 0.3.8" 2>&1`
11999 else
12000 GTKVNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk-vnc-1.0 >= 0.3.8" 2>&1`
12001 fi
12002 # Put the nasty error message in config.log where it belongs
12003 echo "$GTKVNC_PKG_ERRORS" >&5
12004
12005 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk-vnc-1.0 >= 0.3.8) were not met:
12006
12007 $GTKVNC_PKG_ERRORS
12008
12009 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12010 installed software in a non-standard prefix.
12011
12012 Alternatively, you may set the environment variables GTKVNC_CFLAGS
12013 and GTKVNC_LIBS to avoid the need to call pkg-config.
12014 See the pkg-config man page for more details.
12015 " >&5
12016 $as_echo "$as_me: error: Package requirements (gtk-vnc-1.0 >= 0.3.8) were not met:
12017
12018 $GTKVNC_PKG_ERRORS
12019
12020 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12021 installed software in a non-standard prefix.
12022
12023 Alternatively, you may set the environment variables GTKVNC_CFLAGS
12024 and GTKVNC_LIBS to avoid the need to call pkg-config.
12025 See the pkg-config man page for more details.
12026 " >&2;}
12027 { (exit 1); exit 1; }; }
12028 elif test $pkg_failed = untried; then
12029 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12031 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12032 is in your PATH or set the PKG_CONFIG environment variable to the full
12033 path to pkg-config.
12034
12035 Alternatively, you may set the environment variables GTKVNC_CFLAGS
12036 and GTKVNC_LIBS to avoid the need to call pkg-config.
12037 See the pkg-config man page for more details.
12038
12039 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12040 See \`config.log' for more details." >&5
12041 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12042 is in your PATH or set the PKG_CONFIG environment variable to the full
12043 path to pkg-config.
12044
12045 Alternatively, you may set the environment variables GTKVNC_CFLAGS
12046 and GTKVNC_LIBS to avoid the need to call pkg-config.
12047 See the pkg-config man page for more details.
12048
12049 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12050 See \`config.log' for more details." >&2;}
12051 { (exit 1); exit 1; }; }; }
12052 else
12053 GTKVNC_CFLAGS=$pkg_cv_GTKVNC_CFLAGS
12054 GTKVNC_LIBS=$pkg_cv_GTKVNC_LIBS
12055 { $as_echo "$as_me:$LINENO: result: yes" >&5
12056 $as_echo "yes" >&6; }
12057 :
12058 fi
12059
12060
12061
12062
12063 for ac_header in sys/socket.h sys/un.h windows.h
12118 (exit $ac_status); } && {
12119 test -z "$ac_c_werror_flag" ||
12120 test ! -s conftest.err
12121 } && test -s conftest$ac_exeext && {
12122 test "$cross_compiling" = yes ||
12123 $as_test_x conftest$ac_exeext
12124 }; then
12125 ac_cv_func_bind_textdomain_codeset=yes
12126 else
12127 $as_echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 ac_cv_func_bind_textdomain_codeset=no
12131 fi
12132
12133 rm -rf conftest.dSYM
12134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12135 conftest$ac_exeext conftest.$ac_ext
12136 fi
12137 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
12138 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
12139 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
12140 DATADIRNAME=share
12141 else
12142 DATADIRNAME=lib
12143 fi
12144
12145 ;;
12146 *)
12147 DATADIRNAME=lib
12148 ;;
12149 esac
12150 fi
12151
12152 rm -rf conftest.dSYM
12153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154 conftest$ac_exeext conftest.$ac_ext
12155 fi
12156
12157
12158
12159
12160
12161
12162
12163 for ac_header in locale.h
1206412164 do
1206512165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1206612166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1220512305
1220612306 done
1220712307
12208
12209
12210 for ac_func in fork socketpair
12308 if test $ac_cv_header_locale_h = yes; then
12309 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12310 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12311 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12312 $as_echo_n "(cached) " >&6
12313 else
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 #include <locale.h>
12321 int
12322 main ()
12323 {
12324 return LC_MESSAGES
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336 $as_echo "$ac_try_echo") >&5
12337 (eval "$ac_link") 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext && {
12347 test "$cross_compiling" = yes ||
12348 $as_test_x conftest$ac_exeext
12349 }; then
12350 am_cv_val_LC_MESSAGES=yes
12351 else
12352 $as_echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 am_cv_val_LC_MESSAGES=no
12356 fi
12357
12358 rm -rf conftest.dSYM
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
12361 fi
12362 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12363 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12364 if test $am_cv_val_LC_MESSAGES = yes; then
12365
12366 cat >>confdefs.h <<\_ACEOF
12367 #define HAVE_LC_MESSAGES 1
12368 _ACEOF
12369
12370 fi
12371 fi
12372 USE_NLS=yes
12373
12374
12375 gt_cv_have_gettext=no
12376
12377 CATOBJEXT=NONE
12378 XGETTEXT=:
12379 INTLLIBS=
12380
12381 if test "${ac_cv_header_libintl_h+set}" = set; then
12382 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12383 $as_echo_n "checking for libintl.h... " >&6; }
12384 if test "${ac_cv_header_libintl_h+set}" = set; then
12385 $as_echo_n "(cached) " >&6
12386 fi
12387 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12388 $as_echo "$ac_cv_header_libintl_h" >&6; }
12389 else
12390 # Is the header compilable?
12391 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
12392 $as_echo_n "checking libintl.h usability... " >&6; }
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 $ac_includes_default
12400 #include <libintl.h>
12401 _ACEOF
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407 esac
12408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12409 $as_echo "$ac_try_echo") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } && {
12417 test -z "$ac_c_werror_flag" ||
12418 test ! -s conftest.err
12419 } && test -s conftest.$ac_objext; then
12420 ac_header_compiler=yes
12421 else
12422 $as_echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 ac_header_compiler=no
12426 fi
12427
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12430 $as_echo "$ac_header_compiler" >&6; }
12431
12432 # Is the header present?
12433 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
12434 $as_echo_n "checking libintl.h presence... " >&6; }
12435 cat >conftest.$ac_ext <<_ACEOF
12436 /* confdefs.h. */
12437 _ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12441 #include <libintl.h>
12442 _ACEOF
12443 if { (ac_try="$ac_cpp conftest.$ac_ext"
12444 case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12447 esac
12448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12449 $as_echo "$ac_try_echo") >&5
12450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12451 ac_status=$?
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
12455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } >/dev/null && {
12457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12458 test ! -s conftest.err
12459 }; then
12460 ac_header_preproc=yes
12461 else
12462 $as_echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465 ac_header_preproc=no
12466 fi
12467
12468 rm -f conftest.err conftest.$ac_ext
12469 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12470 $as_echo "$ac_header_preproc" >&6; }
12471
12472 # So? What about this header?
12473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12474 yes:no: )
12475 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12476 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12477 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
12478 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
12479 ac_header_preproc=yes
12480 ;;
12481 no:yes:* )
12482 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
12483 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
12484 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
12485 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
12486 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
12487 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
12488 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
12489 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12490 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
12491 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
12492 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
12493 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
12494
12495 ;;
12496 esac
12497 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12498 $as_echo_n "checking for libintl.h... " >&6; }
12499 if test "${ac_cv_header_libintl_h+set}" = set; then
12500 $as_echo_n "(cached) " >&6
12501 else
12502 ac_cv_header_libintl_h=$ac_header_preproc
12503 fi
12504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12505 $as_echo "$ac_cv_header_libintl_h" >&6; }
12506
12507 fi
12508 if test "x$ac_cv_header_libintl_h" = x""yes; then
12509 gt_cv_func_dgettext_libintl="no"
12510 libintl_extra_libs=""
12511
12512 #
12513 # First check in libc
12514 #
12515 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
12516 $as_echo_n "checking for ngettext in libc... " >&6; }
12517 if test "${gt_cv_func_ngettext_libc+set}" = set; then
12518 $as_echo_n "(cached) " >&6
12519 else
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526
12527 #include <libintl.h>
12528
12529 int
12530 main ()
12531 {
12532 return !ngettext ("","", 1)
12533 ;
12534 return 0;
12535 }
12536 _ACEOF
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (ac_try="$ac_link"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542 esac
12543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12544 $as_echo "$ac_try_echo") >&5
12545 (eval "$ac_link") 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } && {
12552 test -z "$ac_c_werror_flag" ||
12553 test ! -s conftest.err
12554 } && test -s conftest$ac_exeext && {
12555 test "$cross_compiling" = yes ||
12556 $as_test_x conftest$ac_exeext
12557 }; then
12558 gt_cv_func_ngettext_libc=yes
12559 else
12560 $as_echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563 gt_cv_func_ngettext_libc=no
12564 fi
12565
12566 rm -rf conftest.dSYM
12567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12568 conftest$ac_exeext conftest.$ac_ext
12569
12570 fi
12571 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
12572 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
12573
12574 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12575 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
12576 $as_echo_n "checking for dgettext in libc... " >&6; }
12577 if test "${gt_cv_func_dgettext_libc+set}" = set; then
12578 $as_echo_n "(cached) " >&6
12579 else
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586
12587 #include <libintl.h>
12588
12589 int
12590 main ()
12591 {
12592 return !dgettext ("","")
12593 ;
12594 return 0;
12595 }
12596 _ACEOF
12597 rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (ac_try="$ac_link"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602 esac
12603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12604 $as_echo "$ac_try_echo") >&5
12605 (eval "$ac_link") 2>conftest.er1
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && {
12612 test -z "$ac_c_werror_flag" ||
12613 test ! -s conftest.err
12614 } && test -s conftest$ac_exeext && {
12615 test "$cross_compiling" = yes ||
12616 $as_test_x conftest$ac_exeext
12617 }; then
12618 gt_cv_func_dgettext_libc=yes
12619 else
12620 $as_echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12622
12623 gt_cv_func_dgettext_libc=no
12624 fi
12625
12626 rm -rf conftest.dSYM
12627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12628 conftest$ac_exeext conftest.$ac_ext
12629
12630 fi
12631 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
12632 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
12633 fi
12634
12635 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12636
12637 for ac_func in bind_textdomain_codeset
1221112638 do
1221212639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1221312640 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
1230712734 fi
1230812735 done
1230912736
12737 fi
12738
12739 #
12740 # If we don't have everything we want, check in libintl
12741 #
12742 if test "$gt_cv_func_dgettext_libc" != "yes" \
12743 || test "$gt_cv_func_ngettext_libc" != "yes" \
12744 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
12745
12746 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
12747 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
12748 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12749 $as_echo_n "(cached) " >&6
12750 else
12751 ac_check_lib_save_LIBS=$LIBS
12752 LIBS="-lintl $LIBS"
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h. */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 char bindtextdomain ();
12767 int
12768 main ()
12769 {
12770 return bindtextdomain ();
12771 ;
12772 return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12780 esac
12781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12782 $as_echo "$ac_try_echo") >&5
12783 (eval "$ac_link") 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest$ac_exeext && {
12793 test "$cross_compiling" = yes ||
12794 $as_test_x conftest$ac_exeext
12795 }; then
12796 ac_cv_lib_intl_bindtextdomain=yes
12797 else
12798 $as_echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 ac_cv_lib_intl_bindtextdomain=no
12802 fi
12803
12804 rm -rf conftest.dSYM
12805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12808 fi
12809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
12810 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
12811 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
12812 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12813 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12814 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12815 $as_echo_n "(cached) " >&6
12816 else
12817 ac_check_lib_save_LIBS=$LIBS
12818 LIBS="-lintl $LIBS"
12819 cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h. */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12825
12826 /* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
12829 #ifdef __cplusplus
12830 extern "C"
12831 #endif
12832 char ngettext ();
12833 int
12834 main ()
12835 {
12836 return ngettext ();
12837 ;
12838 return 0;
12839 }
12840 _ACEOF
12841 rm -f conftest.$ac_objext conftest$ac_exeext
12842 if { (ac_try="$ac_link"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846 esac
12847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12848 $as_echo "$ac_try_echo") >&5
12849 (eval "$ac_link") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest$ac_exeext && {
12859 test "$cross_compiling" = yes ||
12860 $as_test_x conftest$ac_exeext
12861 }; then
12862 ac_cv_lib_intl_ngettext=yes
12863 else
12864 $as_echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12866
12867 ac_cv_lib_intl_ngettext=no
12868 fi
12869
12870 rm -rf conftest.dSYM
12871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12872 conftest$ac_exeext conftest.$ac_ext
12873 LIBS=$ac_check_lib_save_LIBS
12874 fi
12875 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12876 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12877 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12878 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12879 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12880 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12881 $as_echo_n "(cached) " >&6
12882 else
12883 ac_check_lib_save_LIBS=$LIBS
12884 LIBS="-lintl $LIBS"
12885 cat >conftest.$ac_ext <<_ACEOF
12886 /* confdefs.h. */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891
12892 /* Override any GCC internal prototype to avoid an error.
12893 Use char because int might match the return type of a GCC
12894 builtin and then its argument prototype would still apply. */
12895 #ifdef __cplusplus
12896 extern "C"
12897 #endif
12898 char dgettext ();
12899 int
12900 main ()
12901 {
12902 return dgettext ();
12903 ;
12904 return 0;
12905 }
12906 _ACEOF
12907 rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (ac_try="$ac_link"
12909 case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912 esac
12913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12914 $as_echo "$ac_try_echo") >&5
12915 (eval "$ac_link") 2>conftest.er1
12916 ac_status=$?
12917 grep -v '^ *+' conftest.er1 >conftest.err
12918 rm -f conftest.er1
12919 cat conftest.err >&5
12920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } && {
12922 test -z "$ac_c_werror_flag" ||
12923 test ! -s conftest.err
12924 } && test -s conftest$ac_exeext && {
12925 test "$cross_compiling" = yes ||
12926 $as_test_x conftest$ac_exeext
12927 }; then
12928 ac_cv_lib_intl_dgettext=yes
12929 else
12930 $as_echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12932
12933 ac_cv_lib_intl_dgettext=no
12934 fi
12935
12936 rm -rf conftest.dSYM
12937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12938 conftest$ac_exeext conftest.$ac_ext
12939 LIBS=$ac_check_lib_save_LIBS
12940 fi
12941 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12942 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12943 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
12944 gt_cv_func_dgettext_libintl=yes
12945 fi
12946
12947 fi
12948
12949 fi
12950
12951
12952 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12953 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
12954 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
12955 { $as_echo "$as_me:$LINENO: result: " >&5
12956 $as_echo "" >&6; }
12957 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12958 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12959 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12960 $as_echo_n "(cached) " >&6
12961 else
12962 ac_check_lib_save_LIBS=$LIBS
12963 LIBS="-lintl -liconv $LIBS"
12964 cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h. */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970
12971 /* Override any GCC internal prototype to avoid an error.
12972 Use char because int might match the return type of a GCC
12973 builtin and then its argument prototype would still apply. */
12974 #ifdef __cplusplus
12975 extern "C"
12976 #endif
12977 char ngettext ();
12978 int
12979 main ()
12980 {
12981 return ngettext ();
12982 ;
12983 return 0;
12984 }
12985 _ACEOF
12986 rm -f conftest.$ac_objext conftest$ac_exeext
12987 if { (ac_try="$ac_link"
12988 case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991 esac
12992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12993 $as_echo "$ac_try_echo") >&5
12994 (eval "$ac_link") 2>conftest.er1
12995 ac_status=$?
12996 grep -v '^ *+' conftest.er1 >conftest.err
12997 rm -f conftest.er1
12998 cat conftest.err >&5
12999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } && {
13001 test -z "$ac_c_werror_flag" ||
13002 test ! -s conftest.err
13003 } && test -s conftest$ac_exeext && {
13004 test "$cross_compiling" = yes ||
13005 $as_test_x conftest$ac_exeext
13006 }; then
13007 ac_cv_lib_intl_ngettext=yes
13008 else
13009 $as_echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 ac_cv_lib_intl_ngettext=no
13013 fi
13014
13015 rm -rf conftest.dSYM
13016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13017 conftest$ac_exeext conftest.$ac_ext
13018 LIBS=$ac_check_lib_save_LIBS
13019 fi
13020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
13021 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
13022 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
13023 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
13024 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
13025 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
13026 $as_echo_n "(cached) " >&6
13027 else
13028 ac_check_lib_save_LIBS=$LIBS
13029 LIBS="-lintl -liconv $LIBS"
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h. */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036
13037 /* Override any GCC internal prototype to avoid an error.
13038 Use char because int might match the return type of a GCC
13039 builtin and then its argument prototype would still apply. */
13040 #ifdef __cplusplus
13041 extern "C"
13042 #endif
13043 char dcgettext ();
13044 int
13045 main ()
13046 {
13047 return dcgettext ();
13048 ;
13049 return 0;
13050 }
13051 _ACEOF
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057 esac
13058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13059 $as_echo "$ac_try_echo") >&5
13060 (eval "$ac_link") 2>conftest.er1
13061 ac_status=$?
13062 grep -v '^ *+' conftest.er1 >conftest.err
13063 rm -f conftest.er1
13064 cat conftest.err >&5
13065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } && {
13067 test -z "$ac_c_werror_flag" ||
13068 test ! -s conftest.err
13069 } && test -s conftest$ac_exeext && {
13070 test "$cross_compiling" = yes ||
13071 $as_test_x conftest$ac_exeext
13072 }; then
13073 ac_cv_lib_intl_dcgettext=yes
13074 else
13075 $as_echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13077
13078 ac_cv_lib_intl_dcgettext=no
13079 fi
13080
13081 rm -rf conftest.dSYM
13082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13083 conftest$ac_exeext conftest.$ac_ext
13084 LIBS=$ac_check_lib_save_LIBS
13085 fi
13086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
13087 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
13088 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
13089 gt_cv_func_dgettext_libintl=yes
13090 libintl_extra_libs=-liconv
13091 else
13092 :
13093 fi
13094
13095 else
13096 :
13097 fi
13098
13099 fi
13100
13101 #
13102 # If we found libintl, then check in it for bind_textdomain_codeset();
13103 # we'll prefer libc if neither have bind_textdomain_codeset(),
13104 # and both have dgettext and ngettext
13105 #
13106 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
13107 glib_save_LIBS="$LIBS"
13108 LIBS="$LIBS -lintl $libintl_extra_libs"
13109 unset ac_cv_func_bind_textdomain_codeset
13110
13111 for ac_func in bind_textdomain_codeset
13112 do
13113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13114 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13115 $as_echo_n "checking for $ac_func... " >&6; }
13116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13117 $as_echo_n "(cached) " >&6
13118 else
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13127 #define $ac_func innocuous_$ac_func
13128
13129 /* System header to define __stub macros and hopefully few prototypes,
13130 which can conflict with char $ac_func (); below.
13131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13132 <limits.h> exists even on freestanding compilers. */
13133
13134 #ifdef __STDC__
13135 # include <limits.h>
13136 #else
13137 # include <assert.h>
13138 #endif
13139
13140 #undef $ac_func
13141
13142 /* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13145 #ifdef __cplusplus
13146 extern "C"
13147 #endif
13148 char $ac_func ();
13149 /* The GNU C library defines this for functions which it implements
13150 to always fail with ENOSYS. Some functions are actually named
13151 something starting with __ and the normal name is an alias. */
13152 #if defined __stub_$ac_func || defined __stub___$ac_func
13153 choke me
13154 #endif
13155
13156 int
13157 main ()
13158 {
13159 return $ac_func ();
13160 ;
13161 return 0;
13162 }
13163 _ACEOF
13164 rm -f conftest.$ac_objext conftest$ac_exeext
13165 if { (ac_try="$ac_link"
13166 case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13169 esac
13170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13171 $as_echo "$ac_try_echo") >&5
13172 (eval "$ac_link") 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } && {
13179 test -z "$ac_c_werror_flag" ||
13180 test ! -s conftest.err
13181 } && test -s conftest$ac_exeext && {
13182 test "$cross_compiling" = yes ||
13183 $as_test_x conftest$ac_exeext
13184 }; then
13185 eval "$as_ac_var=yes"
13186 else
13187 $as_echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 eval "$as_ac_var=no"
13191 fi
13192
13193 rm -rf conftest.dSYM
13194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13195 conftest$ac_exeext conftest.$ac_ext
13196 fi
13197 ac_res=`eval 'as_val=${'$as_ac_var'}
13198 $as_echo "$as_val"'`
13199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13200 $as_echo "$ac_res" >&6; }
13201 as_val=`eval 'as_val=${'$as_ac_var'}
13202 $as_echo "$as_val"'`
13203 if test "x$as_val" = x""yes; then
13204 cat >>confdefs.h <<_ACEOF
13205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13206 _ACEOF
13207
13208 fi
13209 done
13210
13211 LIBS="$glib_save_LIBS"
13212
13213 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
13214 gt_cv_func_dgettext_libc=no
13215 else
13216 if test "$gt_cv_func_dgettext_libc" = "yes" \
13217 && test "$gt_cv_func_ngettext_libc" = "yes"; then
13218 gt_cv_func_dgettext_libintl=no
13219 fi
13220 fi
13221 fi
13222 fi
13223
13224 if test "$gt_cv_func_dgettext_libc" = "yes" \
13225 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
13226 gt_cv_have_gettext=yes
13227 fi
13228
13229 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
13230 INTLLIBS="-lintl $libintl_extra_libs"
13231 fi
13232
13233 if test "$gt_cv_have_gettext" = "yes"; then
13234
13235 cat >>confdefs.h <<\_ACEOF
13236 #define HAVE_GETTEXT 1
13237 _ACEOF
13238
13239 # Extract the first word of "msgfmt", so it can be a program name with args.
13240 set dummy msgfmt; ac_word=$2
13241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if test "${ac_cv_path_MSGFMT+set}" = set; then
13244 $as_echo_n "(cached) " >&6
13245 else
13246 case "$MSGFMT" in
13247 /*)
13248 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13249 ;;
13250 *)
13251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13252 for ac_dir in $PATH; do
13253 test -z "$ac_dir" && ac_dir=.
13254 if test -f $ac_dir/$ac_word; then
13255 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13256 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13257 break
13258 fi
13259 fi
13260 done
13261 IFS="$ac_save_ifs"
13262 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
13263 ;;
13264 esac
13265 fi
13266 MSGFMT="$ac_cv_path_MSGFMT"
13267 if test "$MSGFMT" != "no"; then
13268 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13269 $as_echo "$MSGFMT" >&6; }
13270 else
13271 { $as_echo "$as_me:$LINENO: result: no" >&5
13272 $as_echo "no" >&6; }
13273 fi
13274 if test "$MSGFMT" != "no"; then
13275 glib_save_LIBS="$LIBS"
13276 LIBS="$LIBS $INTLLIBS"
13277
13278 for ac_func in dcgettext
13279 do
13280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13281 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13282 $as_echo_n "checking for $ac_func... " >&6; }
13283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13284 $as_echo_n "(cached) " >&6
13285 else
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13294 #define $ac_func innocuous_$ac_func
13295
13296 /* System header to define __stub macros and hopefully few prototypes,
13297 which can conflict with char $ac_func (); below.
13298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13299 <limits.h> exists even on freestanding compilers. */
13300
13301 #ifdef __STDC__
13302 # include <limits.h>
13303 #else
13304 # include <assert.h>
13305 #endif
13306
13307 #undef $ac_func
13308
13309 /* Override any GCC internal prototype to avoid an error.
13310 Use char because int might match the return type of a GCC
13311 builtin and then its argument prototype would still apply. */
13312 #ifdef __cplusplus
13313 extern "C"
13314 #endif
13315 char $ac_func ();
13316 /* The GNU C library defines this for functions which it implements
13317 to always fail with ENOSYS. Some functions are actually named
13318 something starting with __ and the normal name is an alias. */
13319 #if defined __stub_$ac_func || defined __stub___$ac_func
13320 choke me
13321 #endif
13322
13323 int
13324 main ()
13325 {
13326 return $ac_func ();
13327 ;
13328 return 0;
13329 }
13330 _ACEOF
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (ac_try="$ac_link"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336 esac
13337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13338 $as_echo "$ac_try_echo") >&5
13339 (eval "$ac_link") 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest$ac_exeext && {
13349 test "$cross_compiling" = yes ||
13350 $as_test_x conftest$ac_exeext
13351 }; then
13352 eval "$as_ac_var=yes"
13353 else
13354 $as_echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357 eval "$as_ac_var=no"
13358 fi
13359
13360 rm -rf conftest.dSYM
13361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13362 conftest$ac_exeext conftest.$ac_ext
13363 fi
13364 ac_res=`eval 'as_val=${'$as_ac_var'}
13365 $as_echo "$as_val"'`
13366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13367 $as_echo "$ac_res" >&6; }
13368 as_val=`eval 'as_val=${'$as_ac_var'}
13369 $as_echo "$as_val"'`
13370 if test "x$as_val" = x""yes; then
13371 cat >>confdefs.h <<_ACEOF
13372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13373 _ACEOF
13374
13375 fi
13376 done
13377
13378 MSGFMT_OPTS=
13379 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
13380 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
13381 cat >conftest.foo <<_ACEOF
13382
13383 msgid ""
13384 msgstr ""
13385 "Content-Type: text/plain; charset=UTF-8\n"
13386 "Project-Id-Version: test 1.0\n"
13387 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
13388 "Last-Translator: test <foo@bar.xx>\n"
13389 "Language-Team: C <LL@li.org>\n"
13390 "MIME-Version: 1.0\n"
13391 "Content-Transfer-Encoding: 8bit\n"
13392
13393 _ACEOF
13394 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
13395 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
13396 ac_status=$?
13397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; then
13399 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
13400 $as_echo "yes" >&6; }
13401 else { $as_echo "$as_me:$LINENO: result: no" >&5
13402 $as_echo "no" >&6; }
13403 echo "$as_me: failed input was:" >&5
13404 sed 's/^/| /' conftest.foo >&5
13405 fi
13406
13407 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13408 set dummy gmsgfmt; ac_word=$2
13409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13410 $as_echo_n "checking for $ac_word... " >&6; }
13411 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13412 $as_echo_n "(cached) " >&6
13413 else
13414 case $GMSGFMT in
13415 [\\/]* | ?:[\\/]*)
13416 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13417 ;;
13418 *)
13419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420 for as_dir in $PATH
13421 do
13422 IFS=$as_save_IFS
13423 test -z "$as_dir" && as_dir=.
13424 for ac_exec_ext in '' $ac_executable_extensions; do
13425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13426 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13428 break 2
13429 fi
13430 done
13431 done
13432 IFS=$as_save_IFS
13433
13434 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13435 ;;
13436 esac
13437 fi
13438 GMSGFMT=$ac_cv_path_GMSGFMT
13439 if test -n "$GMSGFMT"; then
13440 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13441 $as_echo "$GMSGFMT" >&6; }
13442 else
13443 { $as_echo "$as_me:$LINENO: result: no" >&5
13444 $as_echo "no" >&6; }
13445 fi
13446
13447
13448 # Extract the first word of "xgettext", so it can be a program name with args.
13449 set dummy xgettext; ac_word=$2
13450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13451 $as_echo_n "checking for $ac_word... " >&6; }
13452 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13453 $as_echo_n "(cached) " >&6
13454 else
13455 case "$XGETTEXT" in
13456 /*)
13457 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13458 ;;
13459 *)
13460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13461 for ac_dir in $PATH; do
13462 test -z "$ac_dir" && ac_dir=.
13463 if test -f $ac_dir/$ac_word; then
13464 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13465 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13466 break
13467 fi
13468 fi
13469 done
13470 IFS="$ac_save_ifs"
13471 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13472 ;;
13473 esac
13474 fi
13475 XGETTEXT="$ac_cv_path_XGETTEXT"
13476 if test "$XGETTEXT" != ":"; then
13477 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13478 $as_echo "$XGETTEXT" >&6; }
13479 else
13480 { $as_echo "$as_me:$LINENO: result: no" >&5
13481 $as_echo "no" >&6; }
13482 fi
13483
13484 cat >conftest.$ac_ext <<_ACEOF
13485 /* confdefs.h. */
13486 _ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13490
13491 int
13492 main ()
13493 {
13494 extern int _nl_msg_cat_cntr;
13495 return _nl_msg_cat_cntr
13496 ;
13497 return 0;
13498 }
13499 _ACEOF
13500 rm -f conftest.$ac_objext conftest$ac_exeext
13501 if { (ac_try="$ac_link"
13502 case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13505 esac
13506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13507 $as_echo "$ac_try_echo") >&5
13508 (eval "$ac_link") 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } && {
13515 test -z "$ac_c_werror_flag" ||
13516 test ! -s conftest.err
13517 } && test -s conftest$ac_exeext && {
13518 test "$cross_compiling" = yes ||
13519 $as_test_x conftest$ac_exeext
13520 }; then
13521 CATOBJEXT=.gmo
13522 DATADIRNAME=share
13523 else
13524 $as_echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 case $host in
13528 *-*-solaris*)
13529 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
13530 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
13531 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
13532 $as_echo_n "(cached) " >&6
13533 else
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h. */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
13541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13542 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
13543
13544 /* System header to define __stub macros and hopefully few prototypes,
13545 which can conflict with char bind_textdomain_codeset (); below.
13546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13547 <limits.h> exists even on freestanding compilers. */
13548
13549 #ifdef __STDC__
13550 # include <limits.h>
13551 #else
13552 # include <assert.h>
13553 #endif
13554
13555 #undef bind_textdomain_codeset
13556
13557 /* Override any GCC internal prototype to avoid an error.
13558 Use char because int might match the return type of a GCC
13559 builtin and then its argument prototype would still apply. */
13560 #ifdef __cplusplus
13561 extern "C"
13562 #endif
13563 char bind_textdomain_codeset ();
13564 /* The GNU C library defines this for functions which it implements
13565 to always fail with ENOSYS. Some functions are actually named
13566 something starting with __ and the normal name is an alias. */
13567 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
13568 choke me
13569 #endif
13570
13571 int
13572 main ()
13573 {
13574 return bind_textdomain_codeset ();
13575 ;
13576 return 0;
13577 }
13578 _ACEOF
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (ac_try="$ac_link"
13581 case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584 esac
13585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13586 $as_echo "$ac_try_echo") >&5
13587 (eval "$ac_link") 2>conftest.er1
13588 ac_status=$?
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
13592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } && {
13594 test -z "$ac_c_werror_flag" ||
13595 test ! -s conftest.err
13596 } && test -s conftest$ac_exeext && {
13597 test "$cross_compiling" = yes ||
13598 $as_test_x conftest$ac_exeext
13599 }; then
13600 ac_cv_func_bind_textdomain_codeset=yes
13601 else
13602 $as_echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 ac_cv_func_bind_textdomain_codeset=no
13606 fi
13607
13608 rm -rf conftest.dSYM
13609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13610 conftest$ac_exeext conftest.$ac_ext
13611 fi
13612 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
13613 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
13614 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
13615 CATOBJEXT=.gmo
13616 DATADIRNAME=share
13617 else
13618 CATOBJEXT=.mo
13619 DATADIRNAME=lib
13620 fi
13621
13622 ;;
13623 *)
13624 CATOBJEXT=.mo
13625 DATADIRNAME=lib
13626 ;;
13627 esac
13628 fi
13629
13630 rm -rf conftest.dSYM
13631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13632 conftest$ac_exeext conftest.$ac_ext
13633 LIBS="$glib_save_LIBS"
13634 INSTOBJEXT=.mo
13635 else
13636 gt_cv_have_gettext=no
13637 fi
13638 fi
13639
13640 fi
13641
13642
13643
13644 if test "$gt_cv_have_gettext" = "yes" ; then
13645
13646 cat >>confdefs.h <<\_ACEOF
13647 #define ENABLE_NLS 1
13648 _ACEOF
13649
13650 fi
13651
13652 if test "$XGETTEXT" != ":"; then
13653 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13654 : ;
13655 else
13656 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13657 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13658 XGETTEXT=":"
13659 fi
13660 fi
13661
13662 # We need to process the po/ directory.
13663 POSUB=po
13664
13665 ac_config_commands="$ac_config_commands default-1"
13666
13667
13668 for lang in $ALL_LINGUAS; do
13669 GMOFILES="$GMOFILES $lang.gmo"
13670 POFILES="$POFILES $lang.po"
13671 done
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685 if test "$gt_cv_have_gettext" = "yes"; then
13686 if test "x$ALL_LINGUAS" = "x"; then
13687 LINGUAS=
13688 else
13689 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13690 $as_echo_n "checking for catalogs to be installed... " >&6; }
13691 NEW_LINGUAS=
13692 for presentlang in $ALL_LINGUAS; do
13693 useit=no
13694 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
13695 desiredlanguages="$LINGUAS"
13696 else
13697 desiredlanguages="$ALL_LINGUAS"
13698 fi
13699 for desiredlang in $desiredlanguages; do
13700 # Use the presentlang catalog if desiredlang is
13701 # a. equal to presentlang, or
13702 # b. a variant of presentlang (because in this case,
13703 # presentlang can be used as a fallback for messages
13704 # which are not translated in the desiredlang catalog).
13705 case "$desiredlang" in
13706 "$presentlang"*) useit=yes;;
13707 esac
13708 done
13709 if test $useit = yes; then
13710 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13711 fi
13712 done
13713 LINGUAS=$NEW_LINGUAS
13714 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
13715 $as_echo "$LINGUAS" >&6; }
13716 fi
13717
13718 if test -n "$LINGUAS"; then
13719 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13720 fi
13721 fi
13722
13723 MKINSTALLDIRS=
13724 if test -n "$ac_aux_dir"; then
13725 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13726 fi
13727 if test -z "$MKINSTALLDIRS"; then
13728 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13729 fi
13730
13731
13732 test -d po || mkdir po
13733 if test "x$srcdir" != "x."; then
13734 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
13735 posrcprefix="$srcdir/"
13736 else
13737 posrcprefix="../$srcdir/"
13738 fi
13739 else
13740 posrcprefix="../"
13741 fi
13742 rm -f po/POTFILES
13743 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13744 < $srcdir/po/POTFILES.in > po/POTFILES
13745
13746
13747
13748
13749
13750 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13751 if test -n "$ac_tool_prefix"; then
13752 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13753 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13755 $as_echo_n "checking for $ac_word... " >&6; }
13756 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13757 $as_echo_n "(cached) " >&6
13758 else
13759 case $PKG_CONFIG in
13760 [\\/]* | ?:[\\/]*)
13761 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13762 ;;
13763 *)
13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765 for as_dir in $PATH
13766 do
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
13769 for ac_exec_ext in '' $ac_executable_extensions; do
13770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13771 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13773 break 2
13774 fi
13775 done
13776 done
13777 IFS=$as_save_IFS
13778
13779 ;;
13780 esac
13781 fi
13782 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13783 if test -n "$PKG_CONFIG"; then
13784 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13785 $as_echo "$PKG_CONFIG" >&6; }
13786 else
13787 { $as_echo "$as_me:$LINENO: result: no" >&5
13788 $as_echo "no" >&6; }
13789 fi
13790
13791
13792 fi
13793 if test -z "$ac_cv_path_PKG_CONFIG"; then
13794 ac_pt_PKG_CONFIG=$PKG_CONFIG
13795 # Extract the first word of "pkg-config", so it can be a program name with args.
13796 set dummy pkg-config; ac_word=$2
13797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13798 $as_echo_n "checking for $ac_word... " >&6; }
13799 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
13800 $as_echo_n "(cached) " >&6
13801 else
13802 case $ac_pt_PKG_CONFIG in
13803 [\\/]* | ?:[\\/]*)
13804 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13805 ;;
13806 *)
13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13809 do
13810 IFS=$as_save_IFS
13811 test -z "$as_dir" && as_dir=.
13812 for ac_exec_ext in '' $ac_executable_extensions; do
13813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13814 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13816 break 2
13817 fi
13818 done
13819 done
13820 IFS=$as_save_IFS
13821
13822 ;;
13823 esac
13824 fi
13825 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13826 if test -n "$ac_pt_PKG_CONFIG"; then
13827 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
13828 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13829 else
13830 { $as_echo "$as_me:$LINENO: result: no" >&5
13831 $as_echo "no" >&6; }
13832 fi
13833
13834 if test "x$ac_pt_PKG_CONFIG" = x; then
13835 PKG_CONFIG=""
13836 else
13837 case $cross_compiling:$ac_tool_warned in
13838 yes:)
13839 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13841 ac_tool_warned=yes ;;
13842 esac
13843 PKG_CONFIG=$ac_pt_PKG_CONFIG
13844 fi
13845 else
13846 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13847 fi
13848
13849 fi
13850 if test -n "$PKG_CONFIG"; then
13851 _pkg_min_version=0.9.0
13852 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
13853 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13854 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13855 { $as_echo "$as_me:$LINENO: result: yes" >&5
13856 $as_echo "yes" >&6; }
13857 else
13858 { $as_echo "$as_me:$LINENO: result: no" >&5
13859 $as_echo "no" >&6; }
13860 PKG_CONFIG=""
13861 fi
13862
13863 fi
13864
13865 pkg_failed=no
13866 { $as_echo "$as_me:$LINENO: checking for LIBXML2" >&5
13867 $as_echo_n "checking for LIBXML2... " >&6; }
13868
13869 if test -n "$LIBXML2_CFLAGS"; then
13870 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
13871 elif test -n "$PKG_CONFIG"; then
13872 if test -n "$PKG_CONFIG" && \
13873 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\"") >&5
13874 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
13875 ac_status=$?
13876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; then
13878 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
13879 else
13880 pkg_failed=yes
13881 fi
13882 else
13883 pkg_failed=untried
13884 fi
13885 if test -n "$LIBXML2_LIBS"; then
13886 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
13887 elif test -n "$PKG_CONFIG"; then
13888 if test -n "$PKG_CONFIG" && \
13889 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\"") >&5
13890 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
13891 ac_status=$?
13892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; then
13894 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
13895 else
13896 pkg_failed=yes
13897 fi
13898 else
13899 pkg_failed=untried
13900 fi
13901
13902
13903
13904 if test $pkg_failed = yes; then
13905
13906 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13907 _pkg_short_errors_supported=yes
13908 else
13909 _pkg_short_errors_supported=no
13910 fi
13911 if test $_pkg_short_errors_supported = yes; then
13912 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= 2.6.0" 2>&1`
13913 else
13914 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= 2.6.0" 2>&1`
13915 fi
13916 # Put the nasty error message in config.log where it belongs
13917 echo "$LIBXML2_PKG_ERRORS" >&5
13918
13919 { { $as_echo "$as_me:$LINENO: error: Package requirements (libxml-2.0 >= 2.6.0) were not met:
13920
13921 $LIBXML2_PKG_ERRORS
13922
13923 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13924 installed software in a non-standard prefix.
13925
13926 Alternatively, you may set the environment variables LIBXML2_CFLAGS
13927 and LIBXML2_LIBS to avoid the need to call pkg-config.
13928 See the pkg-config man page for more details.
13929 " >&5
13930 $as_echo "$as_me: error: Package requirements (libxml-2.0 >= 2.6.0) were not met:
13931
13932 $LIBXML2_PKG_ERRORS
13933
13934 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13935 installed software in a non-standard prefix.
13936
13937 Alternatively, you may set the environment variables LIBXML2_CFLAGS
13938 and LIBXML2_LIBS to avoid the need to call pkg-config.
13939 See the pkg-config man page for more details.
13940 " >&2;}
13941 { (exit 1); exit 1; }; }
13942 elif test $pkg_failed = untried; then
13943 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13945 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13946 is in your PATH or set the PKG_CONFIG environment variable to the full
13947 path to pkg-config.
13948
13949 Alternatively, you may set the environment variables LIBXML2_CFLAGS
13950 and LIBXML2_LIBS to avoid the need to call pkg-config.
13951 See the pkg-config man page for more details.
13952
13953 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13954 See \`config.log' for more details." >&5
13955 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13956 is in your PATH or set the PKG_CONFIG environment variable to the full
13957 path to pkg-config.
13958
13959 Alternatively, you may set the environment variables LIBXML2_CFLAGS
13960 and LIBXML2_LIBS to avoid the need to call pkg-config.
13961 See the pkg-config man page for more details.
13962
13963 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13964 See \`config.log' for more details." >&2;}
13965 { (exit 1); exit 1; }; }; }
13966 else
13967 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
13968 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
13969 { $as_echo "$as_me:$LINENO: result: yes" >&5
13970 $as_echo "yes" >&6; }
13971 :
13972 fi
13973
13974 pkg_failed=no
13975 { $as_echo "$as_me:$LINENO: checking for LIBVIRT" >&5
13976 $as_echo_n "checking for LIBVIRT... " >&6; }
13977
13978 if test -n "$LIBVIRT_CFLAGS"; then
13979 pkg_cv_LIBVIRT_CFLAGS="$LIBVIRT_CFLAGS"
13980 elif test -n "$PKG_CONFIG"; then
13981 if test -n "$PKG_CONFIG" && \
13982 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libvirt >= 0.6.0\"") >&5
13983 ($PKG_CONFIG --exists --print-errors "libvirt >= 0.6.0") 2>&5
13984 ac_status=$?
13985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; then
13987 pkg_cv_LIBVIRT_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 0.6.0" 2>/dev/null`
13988 else
13989 pkg_failed=yes
13990 fi
13991 else
13992 pkg_failed=untried
13993 fi
13994 if test -n "$LIBVIRT_LIBS"; then
13995 pkg_cv_LIBVIRT_LIBS="$LIBVIRT_LIBS"
13996 elif test -n "$PKG_CONFIG"; then
13997 if test -n "$PKG_CONFIG" && \
13998 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libvirt >= 0.6.0\"") >&5
13999 ($PKG_CONFIG --exists --print-errors "libvirt >= 0.6.0") 2>&5
14000 ac_status=$?
14001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; then
14003 pkg_cv_LIBVIRT_LIBS=`$PKG_CONFIG --libs "libvirt >= 0.6.0" 2>/dev/null`
14004 else
14005 pkg_failed=yes
14006 fi
14007 else
14008 pkg_failed=untried
14009 fi
14010
14011
14012
14013 if test $pkg_failed = yes; then
14014
14015 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14016 _pkg_short_errors_supported=yes
14017 else
14018 _pkg_short_errors_supported=no
14019 fi
14020 if test $_pkg_short_errors_supported = yes; then
14021 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libvirt >= 0.6.0" 2>&1`
14022 else
14023 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libvirt >= 0.6.0" 2>&1`
14024 fi
14025 # Put the nasty error message in config.log where it belongs
14026 echo "$LIBVIRT_PKG_ERRORS" >&5
14027
14028 { { $as_echo "$as_me:$LINENO: error: Package requirements (libvirt >= 0.6.0) were not met:
14029
14030 $LIBVIRT_PKG_ERRORS
14031
14032 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14033 installed software in a non-standard prefix.
14034
14035 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
14036 and LIBVIRT_LIBS to avoid the need to call pkg-config.
14037 See the pkg-config man page for more details.
14038 " >&5
14039 $as_echo "$as_me: error: Package requirements (libvirt >= 0.6.0) were not met:
14040
14041 $LIBVIRT_PKG_ERRORS
14042
14043 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14044 installed software in a non-standard prefix.
14045
14046 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
14047 and LIBVIRT_LIBS to avoid the need to call pkg-config.
14048 See the pkg-config man page for more details.
14049 " >&2;}
14050 { (exit 1); exit 1; }; }
14051 elif test $pkg_failed = untried; then
14052 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14054 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14055 is in your PATH or set the PKG_CONFIG environment variable to the full
14056 path to pkg-config.
14057
14058 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
14059 and LIBVIRT_LIBS to avoid the need to call pkg-config.
14060 See the pkg-config man page for more details.
14061
14062 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14063 See \`config.log' for more details." >&5
14064 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14065 is in your PATH or set the PKG_CONFIG environment variable to the full
14066 path to pkg-config.
14067
14068 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
14069 and LIBVIRT_LIBS to avoid the need to call pkg-config.
14070 See the pkg-config man page for more details.
14071
14072 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14073 See \`config.log' for more details." >&2;}
14074 { (exit 1); exit 1; }; }; }
14075 else
14076 LIBVIRT_CFLAGS=$pkg_cv_LIBVIRT_CFLAGS
14077 LIBVIRT_LIBS=$pkg_cv_LIBVIRT_LIBS
14078 { $as_echo "$as_me:$LINENO: result: yes" >&5
14079 $as_echo "yes" >&6; }
14080 :
14081 fi
14082
14083 pkg_failed=no
14084 { $as_echo "$as_me:$LINENO: checking for GTK2" >&5
14085 $as_echo_n "checking for GTK2... " >&6; }
14086
14087 if test -n "$GTK2_CFLAGS"; then
14088 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
14089 elif test -n "$PKG_CONFIG"; then
14090 if test -n "$PKG_CONFIG" && \
14091 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\"") >&5
14092 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
14093 ac_status=$?
14094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; then
14096 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.10.0" 2>/dev/null`
14097 else
14098 pkg_failed=yes
14099 fi
14100 else
14101 pkg_failed=untried
14102 fi
14103 if test -n "$GTK2_LIBS"; then
14104 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
14105 elif test -n "$PKG_CONFIG"; then
14106 if test -n "$PKG_CONFIG" && \
14107 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\"") >&5
14108 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
14109 ac_status=$?
14110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; then
14112 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.10.0" 2>/dev/null`
14113 else
14114 pkg_failed=yes
14115 fi
14116 else
14117 pkg_failed=untried
14118 fi
14119
14120
14121
14122 if test $pkg_failed = yes; then
14123
14124 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14125 _pkg_short_errors_supported=yes
14126 else
14127 _pkg_short_errors_supported=no
14128 fi
14129 if test $_pkg_short_errors_supported = yes; then
14130 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.10.0" 2>&1`
14131 else
14132 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.10.0" 2>&1`
14133 fi
14134 # Put the nasty error message in config.log where it belongs
14135 echo "$GTK2_PKG_ERRORS" >&5
14136
14137 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.10.0) were not met:
14138
14139 $GTK2_PKG_ERRORS
14140
14141 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14142 installed software in a non-standard prefix.
14143
14144 Alternatively, you may set the environment variables GTK2_CFLAGS
14145 and GTK2_LIBS to avoid the need to call pkg-config.
14146 See the pkg-config man page for more details.
14147 " >&5
14148 $as_echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.10.0) were not met:
14149
14150 $GTK2_PKG_ERRORS
14151
14152 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14153 installed software in a non-standard prefix.
14154
14155 Alternatively, you may set the environment variables GTK2_CFLAGS
14156 and GTK2_LIBS to avoid the need to call pkg-config.
14157 See the pkg-config man page for more details.
14158 " >&2;}
14159 { (exit 1); exit 1; }; }
14160 elif test $pkg_failed = untried; then
14161 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14163 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14164 is in your PATH or set the PKG_CONFIG environment variable to the full
14165 path to pkg-config.
14166
14167 Alternatively, you may set the environment variables GTK2_CFLAGS
14168 and GTK2_LIBS to avoid the need to call pkg-config.
14169 See the pkg-config man page for more details.
14170
14171 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14172 See \`config.log' for more details." >&5
14173 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14174 is in your PATH or set the PKG_CONFIG environment variable to the full
14175 path to pkg-config.
14176
14177 Alternatively, you may set the environment variables GTK2_CFLAGS
14178 and GTK2_LIBS to avoid the need to call pkg-config.
14179 See the pkg-config man page for more details.
14180
14181 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14182 See \`config.log' for more details." >&2;}
14183 { (exit 1); exit 1; }; }; }
14184 else
14185 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
14186 GTK2_LIBS=$pkg_cv_GTK2_LIBS
14187 { $as_echo "$as_me:$LINENO: result: yes" >&5
14188 $as_echo "yes" >&6; }
14189 :
14190 fi
14191
14192 pkg_failed=no
14193 { $as_echo "$as_me:$LINENO: checking for LIBGLADE2" >&5
14194 $as_echo_n "checking for LIBGLADE2... " >&6; }
14195
14196 if test -n "$LIBGLADE2_CFLAGS"; then
14197 pkg_cv_LIBGLADE2_CFLAGS="$LIBGLADE2_CFLAGS"
14198 elif test -n "$PKG_CONFIG"; then
14199 if test -n "$PKG_CONFIG" && \
14200 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= 2.6.0\"") >&5
14201 ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= 2.6.0") 2>&5
14202 ac_status=$?
14203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; then
14205 pkg_cv_LIBGLADE2_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0 >= 2.6.0" 2>/dev/null`
14206 else
14207 pkg_failed=yes
14208 fi
14209 else
14210 pkg_failed=untried
14211 fi
14212 if test -n "$LIBGLADE2_LIBS"; then
14213 pkg_cv_LIBGLADE2_LIBS="$LIBGLADE2_LIBS"
14214 elif test -n "$PKG_CONFIG"; then
14215 if test -n "$PKG_CONFIG" && \
14216 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= 2.6.0\"") >&5
14217 ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= 2.6.0") 2>&5
14218 ac_status=$?
14219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; then
14221 pkg_cv_LIBGLADE2_LIBS=`$PKG_CONFIG --libs "libglade-2.0 >= 2.6.0" 2>/dev/null`
14222 else
14223 pkg_failed=yes
14224 fi
14225 else
14226 pkg_failed=untried
14227 fi
14228
14229
14230
14231 if test $pkg_failed = yes; then
14232
14233 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14234 _pkg_short_errors_supported=yes
14235 else
14236 _pkg_short_errors_supported=no
14237 fi
14238 if test $_pkg_short_errors_supported = yes; then
14239 LIBGLADE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libglade-2.0 >= 2.6.0" 2>&1`
14240 else
14241 LIBGLADE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libglade-2.0 >= 2.6.0" 2>&1`
14242 fi
14243 # Put the nasty error message in config.log where it belongs
14244 echo "$LIBGLADE2_PKG_ERRORS" >&5
14245
14246 { { $as_echo "$as_me:$LINENO: error: Package requirements (libglade-2.0 >= 2.6.0) were not met:
14247
14248 $LIBGLADE2_PKG_ERRORS
14249
14250 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14251 installed software in a non-standard prefix.
14252
14253 Alternatively, you may set the environment variables LIBGLADE2_CFLAGS
14254 and LIBGLADE2_LIBS to avoid the need to call pkg-config.
14255 See the pkg-config man page for more details.
14256 " >&5
14257 $as_echo "$as_me: error: Package requirements (libglade-2.0 >= 2.6.0) were not met:
14258
14259 $LIBGLADE2_PKG_ERRORS
14260
14261 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14262 installed software in a non-standard prefix.
14263
14264 Alternatively, you may set the environment variables LIBGLADE2_CFLAGS
14265 and LIBGLADE2_LIBS to avoid the need to call pkg-config.
14266 See the pkg-config man page for more details.
14267 " >&2;}
14268 { (exit 1); exit 1; }; }
14269 elif test $pkg_failed = untried; then
14270 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14272 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14273 is in your PATH or set the PKG_CONFIG environment variable to the full
14274 path to pkg-config.
14275
14276 Alternatively, you may set the environment variables LIBGLADE2_CFLAGS
14277 and LIBGLADE2_LIBS to avoid the need to call pkg-config.
14278 See the pkg-config man page for more details.
14279
14280 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14281 See \`config.log' for more details." >&5
14282 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14283 is in your PATH or set the PKG_CONFIG environment variable to the full
14284 path to pkg-config.
14285
14286 Alternatively, you may set the environment variables LIBGLADE2_CFLAGS
14287 and LIBGLADE2_LIBS to avoid the need to call pkg-config.
14288 See the pkg-config man page for more details.
14289
14290 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14291 See \`config.log' for more details." >&2;}
14292 { (exit 1); exit 1; }; }; }
14293 else
14294 LIBGLADE2_CFLAGS=$pkg_cv_LIBGLADE2_CFLAGS
14295 LIBGLADE2_LIBS=$pkg_cv_LIBGLADE2_LIBS
14296 { $as_echo "$as_me:$LINENO: result: yes" >&5
14297 $as_echo "yes" >&6; }
14298 :
14299 fi
14300
14301 pkg_failed=no
14302 { $as_echo "$as_me:$LINENO: checking for GTKVNC" >&5
14303 $as_echo_n "checking for GTKVNC... " >&6; }
14304
14305 if test -n "$GTKVNC_CFLAGS"; then
14306 pkg_cv_GTKVNC_CFLAGS="$GTKVNC_CFLAGS"
14307 elif test -n "$PKG_CONFIG"; then
14308 if test -n "$PKG_CONFIG" && \
14309 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-vnc-1.0 >= 0.3.8\"") >&5
14310 ($PKG_CONFIG --exists --print-errors "gtk-vnc-1.0 >= 0.3.8") 2>&5
14311 ac_status=$?
14312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; then
14314 pkg_cv_GTKVNC_CFLAGS=`$PKG_CONFIG --cflags "gtk-vnc-1.0 >= 0.3.8" 2>/dev/null`
14315 else
14316 pkg_failed=yes
14317 fi
14318 else
14319 pkg_failed=untried
14320 fi
14321 if test -n "$GTKVNC_LIBS"; then
14322 pkg_cv_GTKVNC_LIBS="$GTKVNC_LIBS"
14323 elif test -n "$PKG_CONFIG"; then
14324 if test -n "$PKG_CONFIG" && \
14325 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-vnc-1.0 >= 0.3.8\"") >&5
14326 ($PKG_CONFIG --exists --print-errors "gtk-vnc-1.0 >= 0.3.8") 2>&5
14327 ac_status=$?
14328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; then
14330 pkg_cv_GTKVNC_LIBS=`$PKG_CONFIG --libs "gtk-vnc-1.0 >= 0.3.8" 2>/dev/null`
14331 else
14332 pkg_failed=yes
14333 fi
14334 else
14335 pkg_failed=untried
14336 fi
14337
14338
14339
14340 if test $pkg_failed = yes; then
14341
14342 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14343 _pkg_short_errors_supported=yes
14344 else
14345 _pkg_short_errors_supported=no
14346 fi
14347 if test $_pkg_short_errors_supported = yes; then
14348 GTKVNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk-vnc-1.0 >= 0.3.8" 2>&1`
14349 else
14350 GTKVNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk-vnc-1.0 >= 0.3.8" 2>&1`
14351 fi
14352 # Put the nasty error message in config.log where it belongs
14353 echo "$GTKVNC_PKG_ERRORS" >&5
14354
14355 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk-vnc-1.0 >= 0.3.8) were not met:
14356
14357 $GTKVNC_PKG_ERRORS
14358
14359 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14360 installed software in a non-standard prefix.
14361
14362 Alternatively, you may set the environment variables GTKVNC_CFLAGS
14363 and GTKVNC_LIBS to avoid the need to call pkg-config.
14364 See the pkg-config man page for more details.
14365 " >&5
14366 $as_echo "$as_me: error: Package requirements (gtk-vnc-1.0 >= 0.3.8) were not met:
14367
14368 $GTKVNC_PKG_ERRORS
14369
14370 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14371 installed software in a non-standard prefix.
14372
14373 Alternatively, you may set the environment variables GTKVNC_CFLAGS
14374 and GTKVNC_LIBS to avoid the need to call pkg-config.
14375 See the pkg-config man page for more details.
14376 " >&2;}
14377 { (exit 1); exit 1; }; }
14378 elif test $pkg_failed = untried; then
14379 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14381 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14382 is in your PATH or set the PKG_CONFIG environment variable to the full
14383 path to pkg-config.
14384
14385 Alternatively, you may set the environment variables GTKVNC_CFLAGS
14386 and GTKVNC_LIBS to avoid the need to call pkg-config.
14387 See the pkg-config man page for more details.
14388
14389 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14390 See \`config.log' for more details." >&5
14391 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14392 is in your PATH or set the PKG_CONFIG environment variable to the full
14393 path to pkg-config.
14394
14395 Alternatively, you may set the environment variables GTKVNC_CFLAGS
14396 and GTKVNC_LIBS to avoid the need to call pkg-config.
14397 See the pkg-config man page for more details.
14398
14399 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14400 See \`config.log' for more details." >&2;}
14401 { (exit 1); exit 1; }; }; }
14402 else
14403 GTKVNC_CFLAGS=$pkg_cv_GTKVNC_CFLAGS
14404 GTKVNC_LIBS=$pkg_cv_GTKVNC_LIBS
14405 { $as_echo "$as_me:$LINENO: result: yes" >&5
14406 $as_echo "yes" >&6; }
14407 :
14408 fi
14409
14410
14411
14412
14413 for ac_header in sys/socket.h sys/un.h windows.h
14414 do
14415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14417 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14418 $as_echo_n "checking for $ac_header... " >&6; }
14419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14420 $as_echo_n "(cached) " >&6
14421 fi
14422 ac_res=`eval 'as_val=${'$as_ac_Header'}
14423 $as_echo "$as_val"'`
14424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14425 $as_echo "$ac_res" >&6; }
14426 else
14427 # Is the header compilable?
14428 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14429 $as_echo_n "checking $ac_header usability... " >&6; }
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h. */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 $ac_includes_default
14437 #include <$ac_header>
14438 _ACEOF
14439 rm -f conftest.$ac_objext
14440 if { (ac_try="$ac_compile"
14441 case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444 esac
14445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14446 $as_echo "$ac_try_echo") >&5
14447 (eval "$ac_compile") 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest.$ac_objext; then
14457 ac_header_compiler=yes
14458 else
14459 $as_echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14461
14462 ac_header_compiler=no
14463 fi
14464
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467 $as_echo "$ac_header_compiler" >&6; }
14468
14469 # Is the header present?
14470 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14471 $as_echo_n "checking $ac_header presence... " >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #include <$ac_header>
14479 _ACEOF
14480 if { (ac_try="$ac_cpp conftest.$ac_ext"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14486 $as_echo "$ac_try_echo") >&5
14487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev/null && {
14494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 }; then
14497 ac_header_preproc=yes
14498 else
14499 $as_echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_header_preproc=no
14503 fi
14504
14505 rm -f conftest.err conftest.$ac_ext
14506 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14507 $as_echo "$ac_header_preproc" >&6; }
14508
14509 # So? What about this header?
14510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14511 yes:no: )
14512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14513 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14515 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14516 ac_header_preproc=yes
14517 ;;
14518 no:yes:* )
14519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14520 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14522 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14524 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14526 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14528 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14530 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14531
14532 ;;
14533 esac
14534 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14535 $as_echo_n "checking for $ac_header... " >&6; }
14536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14537 $as_echo_n "(cached) " >&6
14538 else
14539 eval "$as_ac_Header=\$ac_header_preproc"
14540 fi
14541 ac_res=`eval 'as_val=${'$as_ac_Header'}
14542 $as_echo "$as_val"'`
14543 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14544 $as_echo "$ac_res" >&6; }
14545
14546 fi
14547 as_val=`eval 'as_val=${'$as_ac_Header'}
14548 $as_echo "$as_val"'`
14549 if test "x$as_val" = x""yes; then
14550 cat >>confdefs.h <<_ACEOF
14551 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14552 _ACEOF
14553
14554 fi
14555
14556 done
14557
14558
14559
14560 for ac_func in fork socketpair
14561 do
14562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14563 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14564 $as_echo_n "checking for $ac_func... " >&6; }
14565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14566 $as_echo_n "(cached) " >&6
14567 else
14568 cat >conftest.$ac_ext <<_ACEOF
14569 /* confdefs.h. */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h. */
14574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14576 #define $ac_func innocuous_$ac_func
14577
14578 /* System header to define __stub macros and hopefully few prototypes,
14579 which can conflict with char $ac_func (); below.
14580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14581 <limits.h> exists even on freestanding compilers. */
14582
14583 #ifdef __STDC__
14584 # include <limits.h>
14585 #else
14586 # include <assert.h>
14587 #endif
14588
14589 #undef $ac_func
14590
14591 /* Override any GCC internal prototype to avoid an error.
14592 Use char because int might match the return type of a GCC
14593 builtin and then its argument prototype would still apply. */
14594 #ifdef __cplusplus
14595 extern "C"
14596 #endif
14597 char $ac_func ();
14598 /* The GNU C library defines this for functions which it implements
14599 to always fail with ENOSYS. Some functions are actually named
14600 something starting with __ and the normal name is an alias. */
14601 #if defined __stub_$ac_func || defined __stub___$ac_func
14602 choke me
14603 #endif
14604
14605 int
14606 main ()
14607 {
14608 return $ac_func ();
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext conftest$ac_exeext
14614 if { (ac_try="$ac_link"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618 esac
14619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14620 $as_echo "$ac_try_echo") >&5
14621 (eval "$ac_link") 2>conftest.er1
14622 ac_status=$?
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
14626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && {
14628 test -z "$ac_c_werror_flag" ||
14629 test ! -s conftest.err
14630 } && test -s conftest$ac_exeext && {
14631 test "$cross_compiling" = yes ||
14632 $as_test_x conftest$ac_exeext
14633 }; then
14634 eval "$as_ac_var=yes"
14635 else
14636 $as_echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14638
14639 eval "$as_ac_var=no"
14640 fi
14641
14642 rm -rf conftest.dSYM
14643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14644 conftest$ac_exeext conftest.$ac_ext
14645 fi
14646 ac_res=`eval 'as_val=${'$as_ac_var'}
14647 $as_echo "$as_val"'`
14648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14649 $as_echo "$ac_res" >&6; }
14650 as_val=`eval 'as_val=${'$as_ac_var'}
14651 $as_echo "$as_val"'`
14652 if test "x$as_val" = x""yes; then
14653 cat >>confdefs.h <<_ACEOF
14654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14655 _ACEOF
14656
14657 fi
14658 done
14659
1231014660
1231114661 NSPR_REQUIRED=4.0.0
1231214662 FIREFOX_PLUGIN_REQUIRED=1.5.0
1273115081 fi
1273215082
1273315083
12734 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile plugin/Makefile virt-viewer.spec mingw32-virt-viewer.spec"
15084 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile po/Makefile.in plugin/Makefile virt-viewer.spec mingw32-virt-viewer.spec"
1273515085
1273615086 cat >confcache <<\_ACEOF
1273715087 # This file is a shell script that caches the results of configure
1285215202 Usually this means the macro was only invoked conditionally." >&2;}
1285315203 { (exit 1); exit 1; }; }
1285415204 fi
15205
15206 ac_config_commands="$ac_config_commands po/stamp-it"
15207
15208
1285515209 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
1285615210 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
1285715211 Usually this means the macro was only invoked conditionally." >&5
1318115535 # report actual input values of CONFIG_FILES etc. instead of their
1318215536 # values after options handling.
1318315537 ac_log="
13184 This file was extended by virt-viewer $as_me 0.2.0, which was
15538 This file was extended by virt-viewer $as_me 0.2.1, which was
1318515539 generated by GNU Autoconf 2.63. Invocation command line was
1318615540
1318715541 CONFIG_FILES = $CONFIG_FILES
1324415598 _ACEOF
1324515599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1324615600 ac_cs_version="\\
13247 virt-viewer config.status 0.2.0
15601 virt-viewer config.status 0.2.1
1324815602 configured by $0, generated by GNU Autoconf 2.63,
1324915603 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1325015604
1361415968
1361515969
1361615970
15971
1361715972 _ACEOF
1361815973
1361915974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1362515980 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1362615981 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1362715982 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15983 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
1362815984 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1362915985 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
1363015986 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15987 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
1363115988 "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
1363215989 "virt-viewer.spec") CONFIG_FILES="$CONFIG_FILES virt-viewer.spec" ;;
1363315990 "mingw32-virt-viewer.spec") CONFIG_FILES="$CONFIG_FILES mingw32-virt-viewer.spec" ;;
15991 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
1363415992
1363515993 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
1363615994 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1505617414 chmod +x "$ofile"
1505717415
1505817416 ;;
17417 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17418 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17419 esac ;;
17420 "po/stamp-it":C)
17421 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
17422 { { $as_echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
17423 $as_echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
17424 { (exit 1); exit 1; }; }
17425 fi
17426 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
17427 >"po/stamp-it.tmp"
17428 sed '/^#/d
17429 s/^[[].*] *//
17430 /^[ ]*$/d
17431 '"s|^| $ac_top_srcdir/|" \
17432 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
17433
17434 sed '/^POTFILES =/,/[^\\]$/ {
17435 /^POTFILES =/!d
17436 r po/POTFILES
17437 }
17438 ' "po/Makefile.in" >"po/Makefile"
17439 rm -f "po/Makefile.tmp"
17440 mv "po/stamp-it.tmp" "po/stamp-it"
17441 ;;
1505917442
1506017443 esac
1506117444 done # for ac_tag
00
1 AC_INIT(virt-viewer, 0.2.0)
1 AC_INIT(virt-viewer, 0.2.1)
22 AC_CONFIG_SRCDIR(src/main.c)
33 AM_CONFIG_HEADER(config.h)
44 dnl Make automake keep quiet about wildcards & other GNUmake-isms
55 AM_INIT_AUTOMAKE([-Wno-portability])
66 AC_CANONICAL_HOST
7
8 # Use the silent-rules feature when possible.
9 m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
10 AM_SILENT_RULES([yes])
711
812 AC_PROG_CC
913 AM_PROG_CC_C_O
1418 AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions])
1519
1620 VIRT_VIEWER_COMPILE_WARNINGS(maximum)
21
22 GETTEXT_PACKAGE=virt-viewer
23 AC_SUBST(GETTEXT_PACKAGE)
24 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
25
26 IT_PROG_INTLTOOL([0.35.0])
27 AM_GLIB_GNU_GETTEXT
28
1729
1830 PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.6.0)
1931 PKG_CHECK_MODULES(LIBVIRT, libvirt >= 0.6.0)
5163 AC_OUTPUT(Makefile
5264 src/Makefile
5365 man/Makefile
66 po/Makefile.in
5467 plugin/Makefile
5568 virt-viewer.spec
5669 mingw32-virt-viewer.spec)
(New empty file)
(New empty file)
(New empty file)
00 # Generated from ltmain.m4sh.
11
2 # ltmain.sh (GNU libtool) 2.2.6
2 # ltmain.sh (GNU libtool) 2.2.6b
33 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
44
55 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
6464 # compiler: $LTCC
6565 # compiler flags: $LTCFLAGS
6666 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.6
67 # $progname: (GNU libtool) 2.2.6b
6868 # automake: $automake_version
6969 # autoconf: $autoconf_version
7070 #
7272
7373 PROGRAM=ltmain.sh
7474 PACKAGE=libtool
75 VERSION=2.2.6
75 VERSION=2.2.6b
7676 TIMESTAMP=""
77 package_revision=1.3012
77 package_revision=1.3017
7878
7979 # Be Bourne compatible
8080 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008 Free Software Foundation, Inc.
4 # Written by Gordon Matzigkeit, 1996
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 m4_define([_LT_COPYING], [dnl
11 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12 # 2006, 2007, 2008 Free Software Foundation, Inc.
13 # Written by Gordon Matzigkeit, 1996
14 #
15 # This file is part of GNU Libtool.
16 #
17 # GNU Libtool is free software; you can redistribute it and/or
18 # modify it under the terms of the GNU General Public License as
19 # published by the Free Software Foundation; either version 2 of
20 # the License, or (at your option) any later version.
21 #
22 # As a special exception to the GNU General Public License,
23 # if you distribute this file as part of a program or library that
24 # is built using GNU Libtool, you may include this file under the
25 # same distribution terms that you use for the rest of that program.
26 #
27 # GNU Libtool is distributed in the hope that it will be useful,
28 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 # GNU General Public License for more details.
31 #
32 # You should have received a copy of the GNU General Public License
33 # along with GNU Libtool; see the file COPYING. If not, a copy
34 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35 # obtained by writing to the Free Software Foundation, Inc.,
36 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37 ])
38
39 # serial 56 LT_INIT
40
41
42 # LT_PREREQ(VERSION)
43 # ------------------
44 # Complain and exit if this libtool version is less that VERSION.
45 m4_defun([LT_PREREQ],
46 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
47 [m4_default([$3],
48 [m4_fatal([Libtool version $1 or higher is required],
49 63)])],
50 [$2])])
51
52
53 # _LT_CHECK_BUILDDIR
54 # ------------------
55 # Complain if the absolute build directory name contains unusual characters
56 m4_defun([_LT_CHECK_BUILDDIR],
57 [case `pwd` in
58 *\ * | *\ *)
59 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
60 esac
61 ])
62
63
64 # LT_INIT([OPTIONS])
65 # ------------------
66 AC_DEFUN([LT_INIT],
67 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
68 AC_BEFORE([$0], [LT_LANG])dnl
69 AC_BEFORE([$0], [LT_OUTPUT])dnl
70 AC_BEFORE([$0], [LTDL_INIT])dnl
71 m4_require([_LT_CHECK_BUILDDIR])dnl
72
73 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
74 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
75 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
76 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
77 dnl unless we require an AC_DEFUNed macro:
78 AC_REQUIRE([LTOPTIONS_VERSION])dnl
79 AC_REQUIRE([LTSUGAR_VERSION])dnl
80 AC_REQUIRE([LTVERSION_VERSION])dnl
81 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
82 m4_require([_LT_PROG_LTMAIN])dnl
83
84 dnl Parse OPTIONS
85 _LT_SET_OPTIONS([$0], [$1])
86
87 # This can be used to rebuild libtool when needed
88 LIBTOOL_DEPS="$ltmain"
89
90 # Always use our own libtool.
91 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
92 AC_SUBST(LIBTOOL)dnl
93
94 _LT_SETUP
95
96 # Only expand once:
97 m4_define([LT_INIT])
98 ])# LT_INIT
99
100 # Old names:
101 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
102 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
103 dnl aclocal-1.4 backwards compatibility:
104 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
105 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
106
107
108 # _LT_CC_BASENAME(CC)
109 # -------------------
110 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
111 m4_defun([_LT_CC_BASENAME],
112 [for cc_temp in $1""; do
113 case $cc_temp in
114 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
115 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
116 \-*) ;;
117 *) break;;
118 esac
119 done
120 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
121 ])
122
123
124 # _LT_FILEUTILS_DEFAULTS
125 # ----------------------
126 # It is okay to use these file commands and assume they have been set
127 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
128 m4_defun([_LT_FILEUTILS_DEFAULTS],
129 [: ${CP="cp -f"}
130 : ${MV="mv -f"}
131 : ${RM="rm -f"}
132 ])# _LT_FILEUTILS_DEFAULTS
133
134
135 # _LT_SETUP
136 # ---------
137 m4_defun([_LT_SETUP],
138 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
139 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
140 _LT_DECL([], [host_alias], [0], [The host system])dnl
141 _LT_DECL([], [host], [0])dnl
142 _LT_DECL([], [host_os], [0])dnl
143 dnl
144 _LT_DECL([], [build_alias], [0], [The build system])dnl
145 _LT_DECL([], [build], [0])dnl
146 _LT_DECL([], [build_os], [0])dnl
147 dnl
148 AC_REQUIRE([AC_PROG_CC])dnl
149 AC_REQUIRE([LT_PATH_LD])dnl
150 AC_REQUIRE([LT_PATH_NM])dnl
151 dnl
152 AC_REQUIRE([AC_PROG_LN_S])dnl
153 test -z "$LN_S" && LN_S="ln -s"
154 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
155 dnl
156 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
157 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
158 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
159 dnl
160 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
161 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
162 m4_require([_LT_CMD_RELOAD])dnl
163 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
164 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
165 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
166
167 _LT_CONFIG_LIBTOOL_INIT([
168 # See if we are running on zsh, and set the options which allow our
169 # commands through without removal of \ escapes INIT.
170 if test -n "\${ZSH_VERSION+set}" ; then
171 setopt NO_GLOB_SUBST
172 fi
173 ])
174 if test -n "${ZSH_VERSION+set}" ; then
175 setopt NO_GLOB_SUBST
176 fi
177
178 _LT_CHECK_OBJDIR
179
180 m4_require([_LT_TAG_COMPILER])dnl
181 _LT_PROG_ECHO_BACKSLASH
182
183 case $host_os in
184 aix3*)
185 # AIX sometimes has problems with the GCC collect2 program. For some
186 # reason, if we set the COLLECT_NAMES environment variable, the problems
187 # vanish in a puff of smoke.
188 if test "X${COLLECT_NAMES+set}" != Xset; then
189 COLLECT_NAMES=
190 export COLLECT_NAMES
191 fi
192 ;;
193 esac
194
195 # Sed substitution that helps us do robust quoting. It backslashifies
196 # metacharacters that are still active within double-quoted strings.
197 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
198
199 # Same as above, but do not quote variable references.
200 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
201
202 # Sed substitution to delay expansion of an escaped shell variable in a
203 # double_quote_subst'ed string.
204 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
205
206 # Sed substitution to delay expansion of an escaped single quote.
207 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
208
209 # Sed substitution to avoid accidental globbing in evaled expressions
210 no_glob_subst='s/\*/\\\*/g'
211
212 # Global variables:
213 ofile=libtool
214 can_build_shared=yes
215
216 # All known linkers require a `.a' archive for static linking (except MSVC,
217 # which needs '.lib').
218 libext=a
219
220 with_gnu_ld="$lt_cv_prog_gnu_ld"
221
222 old_CC="$CC"
223 old_CFLAGS="$CFLAGS"
224
225 # Set sane defaults for various variables
226 test -z "$CC" && CC=cc
227 test -z "$LTCC" && LTCC=$CC
228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
229 test -z "$LD" && LD=ld
230 test -z "$ac_objext" && ac_objext=o
231
232 _LT_CC_BASENAME([$compiler])
233
234 # Only perform the check for file, if the check method requires it
235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
236 case $deplibs_check_method in
237 file_magic*)
238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
239 _LT_PATH_MAGIC
240 fi
241 ;;
242 esac
243
244 # Use C for the default configuration in the libtool script
245 LT_SUPPORTED_TAG([CC])
246 _LT_LANG_C_CONFIG
247 _LT_LANG_DEFAULT_CONFIG
248 _LT_CONFIG_COMMANDS
249 ])# _LT_SETUP
250
251
252 # _LT_PROG_LTMAIN
253 # ---------------
254 # Note that this code is called both from `configure', and `config.status'
255 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
256 # `config.status' has no value for ac_aux_dir unless we are using Automake,
257 # so we pass a copy along to make sure it has a sensible value anyway.
258 m4_defun([_LT_PROG_LTMAIN],
259 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
260 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
261 ltmain="$ac_aux_dir/ltmain.sh"
262 ])# _LT_PROG_LTMAIN
263
264
265 ## ------------------------------------- ##
266 ## Accumulate code for creating libtool. ##
267 ## ------------------------------------- ##
268
269 # So that we can recreate a full libtool script including additional
270 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
271 # in macros and then make a single call at the end using the `libtool'
272 # label.
273
274
275 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
276 # ----------------------------------------
277 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
278 m4_define([_LT_CONFIG_LIBTOOL_INIT],
279 [m4_ifval([$1],
280 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
281 [$1
282 ])])])
283
284 # Initialize.
285 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
286
287
288 # _LT_CONFIG_LIBTOOL([COMMANDS])
289 # ------------------------------
290 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
291 m4_define([_LT_CONFIG_LIBTOOL],
292 [m4_ifval([$1],
293 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
294 [$1
295 ])])])
296
297 # Initialize.
298 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
299
300
301 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
302 # -----------------------------------------------------
303 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
304 [_LT_CONFIG_LIBTOOL([$1])
305 _LT_CONFIG_LIBTOOL_INIT([$2])
306 ])
307
308
309 # _LT_FORMAT_COMMENT([COMMENT])
310 # -----------------------------
311 # Add leading comment marks to the start of each line, and a trailing
312 # full-stop to the whole comment if one is not present already.
313 m4_define([_LT_FORMAT_COMMENT],
314 [m4_ifval([$1], [
315 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
316 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
317 )])
318
319
320
321 ## ------------------------ ##
322 ## FIXME: Eliminate VARNAME ##
323 ## ------------------------ ##
324
325
326 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
327 # -------------------------------------------------------------------
328 # CONFIGNAME is the name given to the value in the libtool script.
329 # VARNAME is the (base) name used in the configure script.
330 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
331 # VARNAME. Any other value will be used directly.
332 m4_define([_LT_DECL],
333 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
334 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
335 [m4_ifval([$1], [$1], [$2])])
336 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
337 m4_ifval([$4],
338 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
339 lt_dict_add_subkey([lt_decl_dict], [$2],
340 [tagged?], [m4_ifval([$5], [yes], [no])])])
341 ])
342
343
344 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
345 # --------------------------------------------------------
346 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
347
348
349 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
350 # ------------------------------------------------
351 m4_define([lt_decl_tag_varnames],
352 [_lt_decl_filter([tagged?], [yes], $@)])
353
354
355 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
356 # ---------------------------------------------------------
357 m4_define([_lt_decl_filter],
358 [m4_case([$#],
359 [0], [m4_fatal([$0: too few arguments: $#])],
360 [1], [m4_fatal([$0: too few arguments: $#: $1])],
361 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
362 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
363 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
364 ])
365
366
367 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
368 # --------------------------------------------------
369 m4_define([lt_decl_quote_varnames],
370 [_lt_decl_filter([value], [1], $@)])
371
372
373 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
374 # ---------------------------------------------------
375 m4_define([lt_decl_dquote_varnames],
376 [_lt_decl_filter([value], [2], $@)])
377
378
379 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
380 # ---------------------------------------------------
381 m4_define([lt_decl_varnames_tagged],
382 [m4_assert([$# <= 2])dnl
383 _$0(m4_quote(m4_default([$1], [[, ]])),
384 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
385 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
386 m4_define([_lt_decl_varnames_tagged],
387 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
388
389
390 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
391 # ------------------------------------------------
392 m4_define([lt_decl_all_varnames],
393 [_$0(m4_quote(m4_default([$1], [[, ]])),
394 m4_if([$2], [],
395 m4_quote(lt_decl_varnames),
396 m4_quote(m4_shift($@))))[]dnl
397 ])
398 m4_define([_lt_decl_all_varnames],
399 [lt_join($@, lt_decl_varnames_tagged([$1],
400 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
401 ])
402
403
404 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
405 # ------------------------------------
406 # Quote a variable value, and forward it to `config.status' so that its
407 # declaration there will have the same value as in `configure'. VARNAME
408 # must have a single quote delimited value for this to work.
409 m4_define([_LT_CONFIG_STATUS_DECLARE],
410 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
411
412
413 # _LT_CONFIG_STATUS_DECLARATIONS
414 # ------------------------------
415 # We delimit libtool config variables with single quotes, so when
416 # we write them to config.status, we have to be sure to quote all
417 # embedded single quotes properly. In configure, this macro expands
418 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
419 #
420 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
421 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
422 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
423 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
424
425
426 # _LT_LIBTOOL_TAGS
427 # ----------------
428 # Output comment and list of tags supported by the script
429 m4_defun([_LT_LIBTOOL_TAGS],
430 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
431 available_tags="_LT_TAGS"dnl
432 ])
433
434
435 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
436 # -----------------------------------
437 # Extract the dictionary values for VARNAME (optionally with TAG) and
438 # expand to a commented shell variable setting:
439 #
440 # # Some comment about what VAR is for.
441 # visible_name=$lt_internal_name
442 m4_define([_LT_LIBTOOL_DECLARE],
443 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
444 [description])))[]dnl
445 m4_pushdef([_libtool_name],
446 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
447 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
448 [0], [_libtool_name=[$]$1],
449 [1], [_libtool_name=$lt_[]$1],
450 [2], [_libtool_name=$lt_[]$1],
451 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
452 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
453 ])
454
455
456 # _LT_LIBTOOL_CONFIG_VARS
457 # -----------------------
458 # Produce commented declarations of non-tagged libtool config variables
459 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
460 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
461 # section) are produced by _LT_LIBTOOL_TAG_VARS.
462 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
463 [m4_foreach([_lt_var],
464 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
465 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
466
467
468 # _LT_LIBTOOL_TAG_VARS(TAG)
469 # -------------------------
470 m4_define([_LT_LIBTOOL_TAG_VARS],
471 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
472 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
473
474
475 # _LT_TAGVAR(VARNAME, [TAGNAME])
476 # ------------------------------
477 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
478
479
480 # _LT_CONFIG_COMMANDS
481 # -------------------
482 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
483 # variables for single and double quote escaping we saved from calls
484 # to _LT_DECL, we can put quote escaped variables declarations
485 # into `config.status', and then the shell code to quote escape them in
486 # for loops in `config.status'. Finally, any additional code accumulated
487 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
488 m4_defun([_LT_CONFIG_COMMANDS],
489 [AC_PROVIDE_IFELSE([LT_OUTPUT],
490 dnl If the libtool generation code has been placed in $CONFIG_LT,
491 dnl instead of duplicating it all over again into config.status,
492 dnl then we will have config.status run $CONFIG_LT later, so it
493 dnl needs to know what name is stored there:
494 [AC_CONFIG_COMMANDS([libtool],
495 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
496 dnl If the libtool generation code is destined for config.status,
497 dnl expand the accumulated commands and init code now:
498 [AC_CONFIG_COMMANDS([libtool],
499 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
500 ])#_LT_CONFIG_COMMANDS
501
502
503 # Initialize.
504 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
505 [
506
507 # The HP-UX ksh and POSIX shell print the target directory to stdout
508 # if CDPATH is set.
509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
510
511 sed_quote_subst='$sed_quote_subst'
512 double_quote_subst='$double_quote_subst'
513 delay_variable_subst='$delay_variable_subst'
514 _LT_CONFIG_STATUS_DECLARATIONS
515 LTCC='$LTCC'
516 LTCFLAGS='$LTCFLAGS'
517 compiler='$compiler_DEFAULT'
518
519 # Quote evaled strings.
520 for var in lt_decl_all_varnames([[ \
521 ]], lt_decl_quote_varnames); do
522 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
523 *[[\\\\\\\`\\"\\\$]]*)
524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
525 ;;
526 *)
527 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
528 ;;
529 esac
530 done
531
532 # Double-quote double-evaled strings.
533 for var in lt_decl_all_varnames([[ \
534 ]], lt_decl_dquote_varnames); do
535 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
536 *[[\\\\\\\`\\"\\\$]]*)
537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
538 ;;
539 *)
540 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
541 ;;
542 esac
543 done
544
545 # Fix-up fallback echo if it was mangled by the above quoting rules.
546 case \$lt_ECHO in
547 *'\\\[$]0 --fallback-echo"')dnl "
548 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
549 ;;
550 esac
551
552 _LT_OUTPUT_LIBTOOL_INIT
553 ])
554
555
556 # LT_OUTPUT
557 # ---------
558 # This macro allows early generation of the libtool script (before
559 # AC_OUTPUT is called), incase it is used in configure for compilation
560 # tests.
561 AC_DEFUN([LT_OUTPUT],
562 [: ${CONFIG_LT=./config.lt}
563 AC_MSG_NOTICE([creating $CONFIG_LT])
564 cat >"$CONFIG_LT" <<_LTEOF
565 #! $SHELL
566 # Generated by $as_me.
567 # Run this file to recreate a libtool stub with the current configuration.
568
569 lt_cl_silent=false
570 SHELL=\${CONFIG_SHELL-$SHELL}
571 _LTEOF
572
573 cat >>"$CONFIG_LT" <<\_LTEOF
574 AS_SHELL_SANITIZE
575 _AS_PREPARE
576
577 exec AS_MESSAGE_FD>&1
578 exec AS_MESSAGE_LOG_FD>>config.log
579 {
580 echo
581 AS_BOX([Running $as_me.])
582 } >&AS_MESSAGE_LOG_FD
583
584 lt_cl_help="\
585 \`$as_me' creates a local libtool stub from the current configuration,
586 for use in further configure time tests before the real libtool is
587 generated.
588
589 Usage: $[0] [[OPTIONS]]
590
591 -h, --help print this help, then exit
592 -V, --version print version number, then exit
593 -q, --quiet do not print progress messages
594 -d, --debug don't remove temporary files
595
596 Report bugs to <bug-libtool@gnu.org>."
597
598 lt_cl_version="\
599 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
600 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
601 configured by $[0], generated by m4_PACKAGE_STRING.
602
603 Copyright (C) 2008 Free Software Foundation, Inc.
604 This config.lt script is free software; the Free Software Foundation
605 gives unlimited permision to copy, distribute and modify it."
606
607 while test $[#] != 0
608 do
609 case $[1] in
610 --version | --v* | -V )
611 echo "$lt_cl_version"; exit 0 ;;
612 --help | --h* | -h )
613 echo "$lt_cl_help"; exit 0 ;;
614 --debug | --d* | -d )
615 debug=: ;;
616 --quiet | --q* | --silent | --s* | -q )
617 lt_cl_silent=: ;;
618
619 -*) AC_MSG_ERROR([unrecognized option: $[1]
620 Try \`$[0] --help' for more information.]) ;;
621
622 *) AC_MSG_ERROR([unrecognized argument: $[1]
623 Try \`$[0] --help' for more information.]) ;;
624 esac
625 shift
626 done
627
628 if $lt_cl_silent; then
629 exec AS_MESSAGE_FD>/dev/null
630 fi
631 _LTEOF
632
633 cat >>"$CONFIG_LT" <<_LTEOF
634 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
635 _LTEOF
636
637 cat >>"$CONFIG_LT" <<\_LTEOF
638 AC_MSG_NOTICE([creating $ofile])
639 _LT_OUTPUT_LIBTOOL_COMMANDS
640 AS_EXIT(0)
641 _LTEOF
642 chmod +x "$CONFIG_LT"
643
644 # configure is writing to config.log, but config.lt does its own redirection,
645 # appending to config.log, which fails on DOS, as config.log is still kept
646 # open by configure. Here we exec the FD to /dev/null, effectively closing
647 # config.log, so it can be properly (re)opened and appended to by config.lt.
648 if test "$no_create" != yes; then
649 lt_cl_success=:
650 test "$silent" = yes &&
651 lt_config_lt_args="$lt_config_lt_args --quiet"
652 exec AS_MESSAGE_LOG_FD>/dev/null
653 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
654 exec AS_MESSAGE_LOG_FD>>config.log
655 $lt_cl_success || AS_EXIT(1)
656 fi
657 ])# LT_OUTPUT
658
659
660 # _LT_CONFIG(TAG)
661 # ---------------
662 # If TAG is the built-in tag, create an initial libtool script with a
663 # default configuration from the untagged config vars. Otherwise add code
664 # to config.status for appending the configuration named by TAG from the
665 # matching tagged config vars.
666 m4_defun([_LT_CONFIG],
667 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
668 _LT_CONFIG_SAVE_COMMANDS([
669 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
670 m4_if(_LT_TAG, [C], [
671 # See if we are running on zsh, and set the options which allow our
672 # commands through without removal of \ escapes.
673 if test -n "${ZSH_VERSION+set}" ; then
674 setopt NO_GLOB_SUBST
675 fi
676
677 cfgfile="${ofile}T"
678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
679 $RM "$cfgfile"
680
681 cat <<_LT_EOF >> "$cfgfile"
682 #! $SHELL
683
684 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
685 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
686 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
687 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
688 #
689 _LT_COPYING
690 _LT_LIBTOOL_TAGS
691
692 # ### BEGIN LIBTOOL CONFIG
693 _LT_LIBTOOL_CONFIG_VARS
694 _LT_LIBTOOL_TAG_VARS
695 # ### END LIBTOOL CONFIG
696
697 _LT_EOF
698
699 case $host_os in
700 aix3*)
701 cat <<\_LT_EOF >> "$cfgfile"
702 # AIX sometimes has problems with the GCC collect2 program. For some
703 # reason, if we set the COLLECT_NAMES environment variable, the problems
704 # vanish in a puff of smoke.
705 if test "X${COLLECT_NAMES+set}" != Xset; then
706 COLLECT_NAMES=
707 export COLLECT_NAMES
708 fi
709 _LT_EOF
710 ;;
711 esac
712
713 _LT_PROG_LTMAIN
714
715 # We use sed instead of cat because bash on DJGPP gets confused if
716 # if finds mixed CR/LF and LF-only lines. Since sed operates in
717 # text mode, it properly converts lines to CR/LF. This bash problem
718 # is reportedly fixed, but why not run on old versions too?
719 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
720 || (rm -f "$cfgfile"; exit 1)
721
722 _LT_PROG_XSI_SHELLFNS
723
724 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
725 || (rm -f "$cfgfile"; exit 1)
726
727 mv -f "$cfgfile" "$ofile" ||
728 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
729 chmod +x "$ofile"
730 ],
731 [cat <<_LT_EOF >> "$ofile"
732
733 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
734 dnl in a comment (ie after a #).
735 # ### BEGIN LIBTOOL TAG CONFIG: $1
736 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
737 # ### END LIBTOOL TAG CONFIG: $1
738 _LT_EOF
739 ])dnl /m4_if
740 ],
741 [m4_if([$1], [], [
742 PACKAGE='$PACKAGE'
743 VERSION='$VERSION'
744 TIMESTAMP='$TIMESTAMP'
745 RM='$RM'
746 ofile='$ofile'], [])
747 ])dnl /_LT_CONFIG_SAVE_COMMANDS
748 ])# _LT_CONFIG
749
750
751 # LT_SUPPORTED_TAG(TAG)
752 # ---------------------
753 # Trace this macro to discover what tags are supported by the libtool
754 # --tag option, using:
755 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
756 AC_DEFUN([LT_SUPPORTED_TAG], [])
757
758
759 # C support is built-in for now
760 m4_define([_LT_LANG_C_enabled], [])
761 m4_define([_LT_TAGS], [])
762
763
764 # LT_LANG(LANG)
765 # -------------
766 # Enable libtool support for the given language if not already enabled.
767 AC_DEFUN([LT_LANG],
768 [AC_BEFORE([$0], [LT_OUTPUT])dnl
769 m4_case([$1],
770 [C], [_LT_LANG(C)],
771 [C++], [_LT_LANG(CXX)],
772 [Java], [_LT_LANG(GCJ)],
773 [Fortran 77], [_LT_LANG(F77)],
774 [Fortran], [_LT_LANG(FC)],
775 [Windows Resource], [_LT_LANG(RC)],
776 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
777 [_LT_LANG($1)],
778 [m4_fatal([$0: unsupported language: "$1"])])])dnl
779 ])# LT_LANG
780
781
782 # _LT_LANG(LANGNAME)
783 # ------------------
784 m4_defun([_LT_LANG],
785 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
786 [LT_SUPPORTED_TAG([$1])dnl
787 m4_append([_LT_TAGS], [$1 ])dnl
788 m4_define([_LT_LANG_]$1[_enabled], [])dnl
789 _LT_LANG_$1_CONFIG($1)])dnl
790 ])# _LT_LANG
791
792
793 # _LT_LANG_DEFAULT_CONFIG
794 # -----------------------
795 m4_defun([_LT_LANG_DEFAULT_CONFIG],
796 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
797 [LT_LANG(CXX)],
798 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
799
800 AC_PROVIDE_IFELSE([AC_PROG_F77],
801 [LT_LANG(F77)],
802 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
803
804 AC_PROVIDE_IFELSE([AC_PROG_FC],
805 [LT_LANG(FC)],
806 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
807
808 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
809 dnl pulling things in needlessly.
810 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
811 [LT_LANG(GCJ)],
812 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
813 [LT_LANG(GCJ)],
814 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
815 [LT_LANG(GCJ)],
816 [m4_ifdef([AC_PROG_GCJ],
817 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
818 m4_ifdef([A][M_PROG_GCJ],
819 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
820 m4_ifdef([LT_PROG_GCJ],
821 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
822
823 AC_PROVIDE_IFELSE([LT_PROG_RC],
824 [LT_LANG(RC)],
825 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
826 ])# _LT_LANG_DEFAULT_CONFIG
827
828 # Obsolete macros:
829 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
830 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
831 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
832 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
833 dnl aclocal-1.4 backwards compatibility:
834 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
835 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
836 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
837 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
838
839
840 # _LT_TAG_COMPILER
841 # ----------------
842 m4_defun([_LT_TAG_COMPILER],
843 [AC_REQUIRE([AC_PROG_CC])dnl
844
845 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
846 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
847 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
848 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
849
850 # If no C compiler was specified, use CC.
851 LTCC=${LTCC-"$CC"}
852
853 # If no C compiler flags were specified, use CFLAGS.
854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
855
856 # Allow CC to be a program name with arguments.
857 compiler=$CC
858 ])# _LT_TAG_COMPILER
859
860
861 # _LT_COMPILER_BOILERPLATE
862 # ------------------------
863 # Check for compiler boilerplate output or warnings with
864 # the simple compiler test code.
865 m4_defun([_LT_COMPILER_BOILERPLATE],
866 [m4_require([_LT_DECL_SED])dnl
867 ac_outfile=conftest.$ac_objext
868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
870 _lt_compiler_boilerplate=`cat conftest.err`
871 $RM conftest*
872 ])# _LT_COMPILER_BOILERPLATE
873
874
875 # _LT_LINKER_BOILERPLATE
876 # ----------------------
877 # Check for linker boilerplate output or warnings with
878 # the simple link test code.
879 m4_defun([_LT_LINKER_BOILERPLATE],
880 [m4_require([_LT_DECL_SED])dnl
881 ac_outfile=conftest.$ac_objext
882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
884 _lt_linker_boilerplate=`cat conftest.err`
885 $RM -r conftest*
886 ])# _LT_LINKER_BOILERPLATE
887
888 # _LT_REQUIRED_DARWIN_CHECKS
889 # -------------------------
890 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
891 case $host_os in
892 rhapsody* | darwin*)
893 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
894 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
895 AC_CHECK_TOOL([LIPO], [lipo], [:])
896 AC_CHECK_TOOL([OTOOL], [otool], [:])
897 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
898 _LT_DECL([], [DSYMUTIL], [1],
899 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
900 _LT_DECL([], [NMEDIT], [1],
901 [Tool to change global to local symbols on Mac OS X])
902 _LT_DECL([], [LIPO], [1],
903 [Tool to manipulate fat objects and archives on Mac OS X])
904 _LT_DECL([], [OTOOL], [1],
905 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
906 _LT_DECL([], [OTOOL64], [1],
907 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
908
909 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
910 [lt_cv_apple_cc_single_mod=no
911 if test -z "${LT_MULTI_MODULE}"; then
912 # By default we will add the -single_module flag. You can override
913 # by either setting the environment variable LT_MULTI_MODULE
914 # non-empty at configure time, or by adding -multi_module to the
915 # link flags.
916 rm -rf libconftest.dylib*
917 echo "int foo(void){return 1;}" > conftest.c
918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
919 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
922 _lt_result=$?
923 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
924 lt_cv_apple_cc_single_mod=yes
925 else
926 cat conftest.err >&AS_MESSAGE_LOG_FD
927 fi
928 rm -rf libconftest.dylib*
929 rm -f conftest.*
930 fi])
931 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
932 [lt_cv_ld_exported_symbols_list],
933 [lt_cv_ld_exported_symbols_list=no
934 save_LDFLAGS=$LDFLAGS
935 echo "_main" > conftest.sym
936 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
937 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
938 [lt_cv_ld_exported_symbols_list=yes],
939 [lt_cv_ld_exported_symbols_list=no])
940 LDFLAGS="$save_LDFLAGS"
941 ])
942 case $host_os in
943 rhapsody* | darwin1.[[012]])
944 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
945 darwin1.*)
946 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
947 darwin*) # darwin 5.x on
948 # if running on 10.5 or later, the deployment target defaults
949 # to the OS version, if on x86, and 10.4, the deployment
950 # target defaults to 10.4. Don't you love it?
951 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
952 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
954 10.[[012]]*)
955 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
956 10.*)
957 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
958 esac
959 ;;
960 esac
961 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
962 _lt_dar_single_mod='$single_module'
963 fi
964 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
965 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
966 else
967 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
968 fi
969 if test "$DSYMUTIL" != ":"; then
970 _lt_dsymutil='~$DSYMUTIL $lib || :'
971 else
972 _lt_dsymutil=
973 fi
974 ;;
975 esac
976 ])
977
978
979 # _LT_DARWIN_LINKER_FEATURES
980 # --------------------------
981 # Checks for linker and compiler features on darwin
982 m4_defun([_LT_DARWIN_LINKER_FEATURES],
983 [
984 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
985 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
986 _LT_TAGVAR(hardcode_direct, $1)=no
987 _LT_TAGVAR(hardcode_automatic, $1)=yes
988 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
989 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
990 _LT_TAGVAR(link_all_deplibs, $1)=yes
991 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
992 case $cc_basename in
993 ifort*) _lt_dar_can_shared=yes ;;
994 *) _lt_dar_can_shared=$GCC ;;
995 esac
996 if test "$_lt_dar_can_shared" = "yes"; then
997 output_verbose_link_cmd=echo
998 _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}"
999 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1000 _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}"
1001 _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}"
1002 m4_if([$1], [CXX],
1003 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1004 _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}"
1005 _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}"
1006 fi
1007 ],[])
1008 else
1009 _LT_TAGVAR(ld_shlibs, $1)=no
1010 fi
1011 ])
1012
1013 # _LT_SYS_MODULE_PATH_AIX
1014 # -----------------------
1015 # Links a minimal program and checks the executable
1016 # for the system default hardcoded library path. In most cases,
1017 # this is /usr/lib:/lib, but when the MPI compilers are used
1018 # the location of the communication and MPI libs are included too.
1019 # If we don't find anything, use the default library path according
1020 # to the aix ld manual.
1021 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1022 [m4_require([_LT_DECL_SED])dnl
1023 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1024 lt_aix_libpath_sed='
1025 /Import File Strings/,/^$/ {
1026 /^0/ {
1027 s/^0 *\(.*\)$/\1/
1028 p
1029 }
1030 }'
1031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1032 # Check for a 64-bit object if we didn't find anything.
1033 if test -z "$aix_libpath"; then
1034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1035 fi],[])
1036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1037 ])# _LT_SYS_MODULE_PATH_AIX
1038
1039
1040 # _LT_SHELL_INIT(ARG)
1041 # -------------------
1042 m4_define([_LT_SHELL_INIT],
1043 [ifdef([AC_DIVERSION_NOTICE],
1044 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1045 [AC_DIVERT_PUSH(NOTICE)])
1046 $1
1047 AC_DIVERT_POP
1048 ])# _LT_SHELL_INIT
1049
1050
1051 # _LT_PROG_ECHO_BACKSLASH
1052 # -----------------------
1053 # Add some code to the start of the generated configure script which
1054 # will find an echo command which doesn't interpret backslashes.
1055 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1056 [_LT_SHELL_INIT([
1057 # Check that we are running under the correct shell.
1058 SHELL=${CONFIG_SHELL-/bin/sh}
1059
1060 case X$lt_ECHO in
1061 X*--fallback-echo)
1062 # Remove one level of quotation (which was required for Make).
1063 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1064 ;;
1065 esac
1066
1067 ECHO=${lt_ECHO-echo}
1068 if test "X[$]1" = X--no-reexec; then
1069 # Discard the --no-reexec flag, and continue.
1070 shift
1071 elif test "X[$]1" = X--fallback-echo; then
1072 # Avoid inline document here, it may be left over
1073 :
1074 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1075 # Yippee, $ECHO works!
1076 :
1077 else
1078 # Restart under the correct shell.
1079 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1080 fi
1081
1082 if test "X[$]1" = X--fallback-echo; then
1083 # used as fallback echo
1084 shift
1085 cat <<_LT_EOF
1086 [$]*
1087 _LT_EOF
1088 exit 0
1089 fi
1090
1091 # The HP-UX ksh and POSIX shell print the target directory to stdout
1092 # if CDPATH is set.
1093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1094
1095 if test -z "$lt_ECHO"; then
1096 if test "X${echo_test_string+set}" != Xset; then
1097 # find a string as large as possible, as long as the shell can cope with it
1098 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1099 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1100 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1101 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1102 then
1103 break
1104 fi
1105 done
1106 fi
1107
1108 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1109 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1110 test "X$echo_testing_string" = "X$echo_test_string"; then
1111 :
1112 else
1113 # The Solaris, AIX, and Digital Unix default echo programs unquote
1114 # backslashes. This makes it impossible to quote backslashes using
1115 # echo "$something" | sed 's/\\/\\\\/g'
1116 #
1117 # So, first we look for a working echo in the user's PATH.
1118
1119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1120 for dir in $PATH /usr/ucb; do
1121 IFS="$lt_save_ifs"
1122 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1123 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 ECHO="$dir/echo"
1127 break
1128 fi
1129 done
1130 IFS="$lt_save_ifs"
1131
1132 if test "X$ECHO" = Xecho; then
1133 # We didn't find a better echo, so look for alternatives.
1134 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1135 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1136 test "X$echo_testing_string" = "X$echo_test_string"; then
1137 # This shell has a builtin print -r that does the trick.
1138 ECHO='print -r'
1139 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1140 test "X$CONFIG_SHELL" != X/bin/ksh; then
1141 # If we have ksh, try running configure again with it.
1142 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1143 export ORIGINAL_CONFIG_SHELL
1144 CONFIG_SHELL=/bin/ksh
1145 export CONFIG_SHELL
1146 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1147 else
1148 # Try using printf.
1149 ECHO='printf %s\n'
1150 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1151 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1152 test "X$echo_testing_string" = "X$echo_test_string"; then
1153 # Cool, printf works
1154 :
1155 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1156 test "X$echo_testing_string" = 'X\t' &&
1157 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1158 test "X$echo_testing_string" = "X$echo_test_string"; then
1159 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1160 export CONFIG_SHELL
1161 SHELL="$CONFIG_SHELL"
1162 export SHELL
1163 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1164 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1165 test "X$echo_testing_string" = 'X\t' &&
1166 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1167 test "X$echo_testing_string" = "X$echo_test_string"; then
1168 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1169 else
1170 # maybe with a smaller string...
1171 prev=:
1172
1173 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1174 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1175 then
1176 break
1177 fi
1178 prev="$cmd"
1179 done
1180
1181 if test "$prev" != 'sed 50q "[$]0"'; then
1182 echo_test_string=`eval $prev`
1183 export echo_test_string
1184 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1185 else
1186 # Oops. We lost completely, so just stick with echo.
1187 ECHO=echo
1188 fi
1189 fi
1190 fi
1191 fi
1192 fi
1193 fi
1194
1195 # Copy echo and quote the copy suitably for passing to libtool from
1196 # the Makefile, instead of quoting the original, which is used later.
1197 lt_ECHO=$ECHO
1198 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1199 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1200 fi
1201
1202 AC_SUBST(lt_ECHO)
1203 ])
1204 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1205 _LT_DECL([], [ECHO], [1],
1206 [An echo program that does not interpret backslashes])
1207 ])# _LT_PROG_ECHO_BACKSLASH
1208
1209
1210 # _LT_ENABLE_LOCK
1211 # ---------------
1212 m4_defun([_LT_ENABLE_LOCK],
1213 [AC_ARG_ENABLE([libtool-lock],
1214 [AS_HELP_STRING([--disable-libtool-lock],
1215 [avoid locking (might break parallel builds)])])
1216 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1217
1218 # Some flags need to be propagated to the compiler or linker for good
1219 # libtool support.
1220 case $host in
1221 ia64-*-hpux*)
1222 # Find out which ABI we are using.
1223 echo 'int i;' > conftest.$ac_ext
1224 if AC_TRY_EVAL(ac_compile); then
1225 case `/usr/bin/file conftest.$ac_objext` in
1226 *ELF-32*)
1227 HPUX_IA64_MODE="32"
1228 ;;
1229 *ELF-64*)
1230 HPUX_IA64_MODE="64"
1231 ;;
1232 esac
1233 fi
1234 rm -rf conftest*
1235 ;;
1236 *-*-irix6*)
1237 # Find out which ABI we are using.
1238 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1239 if AC_TRY_EVAL(ac_compile); then
1240 if test "$lt_cv_prog_gnu_ld" = yes; then
1241 case `/usr/bin/file conftest.$ac_objext` in
1242 *32-bit*)
1243 LD="${LD-ld} -melf32bsmip"
1244 ;;
1245 *N32*)
1246 LD="${LD-ld} -melf32bmipn32"
1247 ;;
1248 *64-bit*)
1249 LD="${LD-ld} -melf64bmip"
1250 ;;
1251 esac
1252 else
1253 case `/usr/bin/file conftest.$ac_objext` in
1254 *32-bit*)
1255 LD="${LD-ld} -32"
1256 ;;
1257 *N32*)
1258 LD="${LD-ld} -n32"
1259 ;;
1260 *64-bit*)
1261 LD="${LD-ld} -64"
1262 ;;
1263 esac
1264 fi
1265 fi
1266 rm -rf conftest*
1267 ;;
1268
1269 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1270 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1271 # Find out which ABI we are using.
1272 echo 'int i;' > conftest.$ac_ext
1273 if AC_TRY_EVAL(ac_compile); then
1274 case `/usr/bin/file conftest.o` in
1275 *32-bit*)
1276 case $host in
1277 x86_64-*kfreebsd*-gnu)
1278 LD="${LD-ld} -m elf_i386_fbsd"
1279 ;;
1280 x86_64-*linux*)
1281 LD="${LD-ld} -m elf_i386"
1282 ;;
1283 ppc64-*linux*|powerpc64-*linux*)
1284 LD="${LD-ld} -m elf32ppclinux"
1285 ;;
1286 s390x-*linux*)
1287 LD="${LD-ld} -m elf_s390"
1288 ;;
1289 sparc64-*linux*)
1290 LD="${LD-ld} -m elf32_sparc"
1291 ;;
1292 esac
1293 ;;
1294 *64-bit*)
1295 case $host in
1296 x86_64-*kfreebsd*-gnu)
1297 LD="${LD-ld} -m elf_x86_64_fbsd"
1298 ;;
1299 x86_64-*linux*)
1300 LD="${LD-ld} -m elf_x86_64"
1301 ;;
1302 ppc*-*linux*|powerpc*-*linux*)
1303 LD="${LD-ld} -m elf64ppc"
1304 ;;
1305 s390*-*linux*|s390*-*tpf*)
1306 LD="${LD-ld} -m elf64_s390"
1307 ;;
1308 sparc*-*linux*)
1309 LD="${LD-ld} -m elf64_sparc"
1310 ;;
1311 esac
1312 ;;
1313 esac
1314 fi
1315 rm -rf conftest*
1316 ;;
1317
1318 *-*-sco3.2v5*)
1319 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1320 SAVE_CFLAGS="$CFLAGS"
1321 CFLAGS="$CFLAGS -belf"
1322 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1323 [AC_LANG_PUSH(C)
1324 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1325 AC_LANG_POP])
1326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1328 CFLAGS="$SAVE_CFLAGS"
1329 fi
1330 ;;
1331 sparc*-*solaris*)
1332 # Find out which ABI we are using.
1333 echo 'int i;' > conftest.$ac_ext
1334 if AC_TRY_EVAL(ac_compile); then
1335 case `/usr/bin/file conftest.o` in
1336 *64-bit*)
1337 case $lt_cv_prog_gnu_ld in
1338 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1339 *)
1340 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1341 LD="${LD-ld} -64"
1342 fi
1343 ;;
1344 esac
1345 ;;
1346 esac
1347 fi
1348 rm -rf conftest*
1349 ;;
1350 esac
1351
1352 need_locks="$enable_libtool_lock"
1353 ])# _LT_ENABLE_LOCK
1354
1355
1356 # _LT_CMD_OLD_ARCHIVE
1357 # -------------------
1358 m4_defun([_LT_CMD_OLD_ARCHIVE],
1359 [AC_CHECK_TOOL(AR, ar, false)
1360 test -z "$AR" && AR=ar
1361 test -z "$AR_FLAGS" && AR_FLAGS=cru
1362 _LT_DECL([], [AR], [1], [The archiver])
1363 _LT_DECL([], [AR_FLAGS], [1])
1364
1365 AC_CHECK_TOOL(STRIP, strip, :)
1366 test -z "$STRIP" && STRIP=:
1367 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1368
1369 AC_CHECK_TOOL(RANLIB, ranlib, :)
1370 test -z "$RANLIB" && RANLIB=:
1371 _LT_DECL([], [RANLIB], [1],
1372 [Commands used to install an old-style archive])
1373
1374 # Determine commands to create old-style static archives.
1375 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1376 old_postinstall_cmds='chmod 644 $oldlib'
1377 old_postuninstall_cmds=
1378
1379 if test -n "$RANLIB"; then
1380 case $host_os in
1381 openbsd*)
1382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1383 ;;
1384 *)
1385 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1386 ;;
1387 esac
1388 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1389 fi
1390 _LT_DECL([], [old_postinstall_cmds], [2])
1391 _LT_DECL([], [old_postuninstall_cmds], [2])
1392 _LT_TAGDECL([], [old_archive_cmds], [2],
1393 [Commands used to build an old-style archive])
1394 ])# _LT_CMD_OLD_ARCHIVE
1395
1396
1397 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1398 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1399 # ----------------------------------------------------------------
1400 # Check whether the given compiler option works
1401 AC_DEFUN([_LT_COMPILER_OPTION],
1402 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1403 m4_require([_LT_DECL_SED])dnl
1404 AC_CACHE_CHECK([$1], [$2],
1405 [$2=no
1406 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1408 lt_compiler_flag="$3"
1409 # Insert the option either (1) after the last *FLAGS variable, or
1410 # (2) before a word containing "conftest.", or (3) at the end.
1411 # Note that $ac_compile itself does not contain backslashes and begins
1412 # with a dollar sign (not a hyphen), so the echo should work correctly.
1413 # The option is referenced via a variable to avoid confusing sed.
1414 lt_compile=`echo "$ac_compile" | $SED \
1415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1416 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1417 -e 's:$: $lt_compiler_flag:'`
1418 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1419 (eval "$lt_compile" 2>conftest.err)
1420 ac_status=$?
1421 cat conftest.err >&AS_MESSAGE_LOG_FD
1422 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1423 if (exit $ac_status) && test -s "$ac_outfile"; then
1424 # The compiler can only warn and ignore the option if not recognized
1425 # So say no if there are warnings other than the usual output.
1426 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1429 $2=yes
1430 fi
1431 fi
1432 $RM conftest*
1433 ])
1434
1435 if test x"[$]$2" = xyes; then
1436 m4_if([$5], , :, [$5])
1437 else
1438 m4_if([$6], , :, [$6])
1439 fi
1440 ])# _LT_COMPILER_OPTION
1441
1442 # Old name:
1443 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1444 dnl aclocal-1.4 backwards compatibility:
1445 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1446
1447
1448 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1449 # [ACTION-SUCCESS], [ACTION-FAILURE])
1450 # ----------------------------------------------------
1451 # Check whether the given linker option works
1452 AC_DEFUN([_LT_LINKER_OPTION],
1453 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1454 m4_require([_LT_DECL_SED])dnl
1455 AC_CACHE_CHECK([$1], [$2],
1456 [$2=no
1457 save_LDFLAGS="$LDFLAGS"
1458 LDFLAGS="$LDFLAGS $3"
1459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1461 # The linker can only warn and ignore the option if not recognized
1462 # So say no if there are warnings
1463 if test -s conftest.err; then
1464 # Append any errors to the config.log.
1465 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1466 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1468 if diff conftest.exp conftest.er2 >/dev/null; then
1469 $2=yes
1470 fi
1471 else
1472 $2=yes
1473 fi
1474 fi
1475 $RM -r conftest*
1476 LDFLAGS="$save_LDFLAGS"
1477 ])
1478
1479 if test x"[$]$2" = xyes; then
1480 m4_if([$4], , :, [$4])
1481 else
1482 m4_if([$5], , :, [$5])
1483 fi
1484 ])# _LT_LINKER_OPTION
1485
1486 # Old name:
1487 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1488 dnl aclocal-1.4 backwards compatibility:
1489 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1490
1491
1492 # LT_CMD_MAX_LEN
1493 #---------------
1494 AC_DEFUN([LT_CMD_MAX_LEN],
1495 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1496 # find the maximum length of command line arguments
1497 AC_MSG_CHECKING([the maximum length of command line arguments])
1498 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1499 i=0
1500 teststring="ABCD"
1501
1502 case $build_os in
1503 msdosdjgpp*)
1504 # On DJGPP, this test can blow up pretty badly due to problems in libc
1505 # (any single argument exceeding 2000 bytes causes a buffer overrun
1506 # during glob expansion). Even if it were fixed, the result of this
1507 # check would be larger than it should be.
1508 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1509 ;;
1510
1511 gnu*)
1512 # Under GNU Hurd, this test is not required because there is
1513 # no limit to the length of command line arguments.
1514 # Libtool will interpret -1 as no limit whatsoever
1515 lt_cv_sys_max_cmd_len=-1;
1516 ;;
1517
1518 cygwin* | mingw* | cegcc*)
1519 # On Win9x/ME, this test blows up -- it succeeds, but takes
1520 # about 5 minutes as the teststring grows exponentially.
1521 # Worse, since 9x/ME are not pre-emptively multitasking,
1522 # you end up with a "frozen" computer, even though with patience
1523 # the test eventually succeeds (with a max line length of 256k).
1524 # Instead, let's just punt: use the minimum linelength reported by
1525 # all of the supported platforms: 8192 (on NT/2K/XP).
1526 lt_cv_sys_max_cmd_len=8192;
1527 ;;
1528
1529 amigaos*)
1530 # On AmigaOS with pdksh, this test takes hours, literally.
1531 # So we just punt and use a minimum line length of 8192.
1532 lt_cv_sys_max_cmd_len=8192;
1533 ;;
1534
1535 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1536 # This has been around since 386BSD, at least. Likely further.
1537 if test -x /sbin/sysctl; then
1538 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1539 elif test -x /usr/sbin/sysctl; then
1540 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1541 else
1542 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1543 fi
1544 # And add a safety zone
1545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1547 ;;
1548
1549 interix*)
1550 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1551 lt_cv_sys_max_cmd_len=196608
1552 ;;
1553
1554 osf*)
1555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1557 # nice to cause kernel panics so lets avoid the loop below.
1558 # First set a reasonable default.
1559 lt_cv_sys_max_cmd_len=16384
1560 #
1561 if test -x /sbin/sysconfig; then
1562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1563 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1564 esac
1565 fi
1566 ;;
1567 sco3.2v5*)
1568 lt_cv_sys_max_cmd_len=102400
1569 ;;
1570 sysv5* | sco5v6* | sysv4.2uw2*)
1571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1572 if test -n "$kargmax"; then
1573 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1574 else
1575 lt_cv_sys_max_cmd_len=32768
1576 fi
1577 ;;
1578 *)
1579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1580 if test -n "$lt_cv_sys_max_cmd_len"; then
1581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1583 else
1584 # Make teststring a little bigger before we do anything with it.
1585 # a 1K string should be a reasonable start.
1586 for i in 1 2 3 4 5 6 7 8 ; do
1587 teststring=$teststring$teststring
1588 done
1589 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1590 # If test is not a shell built-in, we'll probably end up computing a
1591 # maximum length that is only half of the actual maximum length, but
1592 # we can't tell.
1593 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1594 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1595 test $i != 17 # 1/2 MB should be enough
1596 do
1597 i=`expr $i + 1`
1598 teststring=$teststring$teststring
1599 done
1600 # Only check the string length outside the loop.
1601 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1602 teststring=
1603 # Add a significant safety factor because C++ compilers can tack on
1604 # massive amounts of additional arguments before passing them to the
1605 # linker. It appears as though 1/2 is a usable value.
1606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1607 fi
1608 ;;
1609 esac
1610 ])
1611 if test -n $lt_cv_sys_max_cmd_len ; then
1612 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1613 else
1614 AC_MSG_RESULT(none)
1615 fi
1616 max_cmd_len=$lt_cv_sys_max_cmd_len
1617 _LT_DECL([], [max_cmd_len], [0],
1618 [What is the maximum length of a command?])
1619 ])# LT_CMD_MAX_LEN
1620
1621 # Old name:
1622 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1623 dnl aclocal-1.4 backwards compatibility:
1624 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1625
1626
1627 # _LT_HEADER_DLFCN
1628 # ----------------
1629 m4_defun([_LT_HEADER_DLFCN],
1630 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1631 ])# _LT_HEADER_DLFCN
1632
1633
1634 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1635 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1636 # ----------------------------------------------------------------
1637 m4_defun([_LT_TRY_DLOPEN_SELF],
1638 [m4_require([_LT_HEADER_DLFCN])dnl
1639 if test "$cross_compiling" = yes; then :
1640 [$4]
1641 else
1642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1643 lt_status=$lt_dlunknown
1644 cat > conftest.$ac_ext <<_LT_EOF
1645 [#line __oline__ "configure"
1646 #include "confdefs.h"
1647
1648 #if HAVE_DLFCN_H
1649 #include <dlfcn.h>
1650 #endif
1651
1652 #include <stdio.h>
1653
1654 #ifdef RTLD_GLOBAL
1655 # define LT_DLGLOBAL RTLD_GLOBAL
1656 #else
1657 # ifdef DL_GLOBAL
1658 # define LT_DLGLOBAL DL_GLOBAL
1659 # else
1660 # define LT_DLGLOBAL 0
1661 # endif
1662 #endif
1663
1664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1665 find out it does not work in some platform. */
1666 #ifndef LT_DLLAZY_OR_NOW
1667 # ifdef RTLD_LAZY
1668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1669 # else
1670 # ifdef DL_LAZY
1671 # define LT_DLLAZY_OR_NOW DL_LAZY
1672 # else
1673 # ifdef RTLD_NOW
1674 # define LT_DLLAZY_OR_NOW RTLD_NOW
1675 # else
1676 # ifdef DL_NOW
1677 # define LT_DLLAZY_OR_NOW DL_NOW
1678 # else
1679 # define LT_DLLAZY_OR_NOW 0
1680 # endif
1681 # endif
1682 # endif
1683 # endif
1684 #endif
1685
1686 void fnord() { int i=42;}
1687 int main ()
1688 {
1689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1690 int status = $lt_dlunknown;
1691
1692 if (self)
1693 {
1694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1695 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1696 /* dlclose (self); */
1697 }
1698 else
1699 puts (dlerror ());
1700
1701 return status;
1702 }]
1703 _LT_EOF
1704 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1705 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1706 lt_status=$?
1707 case x$lt_status in
1708 x$lt_dlno_uscore) $1 ;;
1709 x$lt_dlneed_uscore) $2 ;;
1710 x$lt_dlunknown|x*) $3 ;;
1711 esac
1712 else :
1713 # compilation failed
1714 $3
1715 fi
1716 fi
1717 rm -fr conftest*
1718 ])# _LT_TRY_DLOPEN_SELF
1719
1720
1721 # LT_SYS_DLOPEN_SELF
1722 # ------------------
1723 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1724 [m4_require([_LT_HEADER_DLFCN])dnl
1725 if test "x$enable_dlopen" != xyes; then
1726 enable_dlopen=unknown
1727 enable_dlopen_self=unknown
1728 enable_dlopen_self_static=unknown
1729 else
1730 lt_cv_dlopen=no
1731 lt_cv_dlopen_libs=
1732
1733 case $host_os in
1734 beos*)
1735 lt_cv_dlopen="load_add_on"
1736 lt_cv_dlopen_libs=
1737 lt_cv_dlopen_self=yes
1738 ;;
1739
1740 mingw* | pw32* | cegcc*)
1741 lt_cv_dlopen="LoadLibrary"
1742 lt_cv_dlopen_libs=
1743 ;;
1744
1745 cygwin*)
1746 lt_cv_dlopen="dlopen"
1747 lt_cv_dlopen_libs=
1748 ;;
1749
1750 darwin*)
1751 # if libdl is installed we need to link against it
1752 AC_CHECK_LIB([dl], [dlopen],
1753 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1754 lt_cv_dlopen="dyld"
1755 lt_cv_dlopen_libs=
1756 lt_cv_dlopen_self=yes
1757 ])
1758 ;;
1759
1760 *)
1761 AC_CHECK_FUNC([shl_load],
1762 [lt_cv_dlopen="shl_load"],
1763 [AC_CHECK_LIB([dld], [shl_load],
1764 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1765 [AC_CHECK_FUNC([dlopen],
1766 [lt_cv_dlopen="dlopen"],
1767 [AC_CHECK_LIB([dl], [dlopen],
1768 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1769 [AC_CHECK_LIB([svld], [dlopen],
1770 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1771 [AC_CHECK_LIB([dld], [dld_link],
1772 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1773 ])
1774 ])
1775 ])
1776 ])
1777 ])
1778 ;;
1779 esac
1780
1781 if test "x$lt_cv_dlopen" != xno; then
1782 enable_dlopen=yes
1783 else
1784 enable_dlopen=no
1785 fi
1786
1787 case $lt_cv_dlopen in
1788 dlopen)
1789 save_CPPFLAGS="$CPPFLAGS"
1790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1791
1792 save_LDFLAGS="$LDFLAGS"
1793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1794
1795 save_LIBS="$LIBS"
1796 LIBS="$lt_cv_dlopen_libs $LIBS"
1797
1798 AC_CACHE_CHECK([whether a program can dlopen itself],
1799 lt_cv_dlopen_self, [dnl
1800 _LT_TRY_DLOPEN_SELF(
1801 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1802 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1803 ])
1804
1805 if test "x$lt_cv_dlopen_self" = xyes; then
1806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1807 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1808 lt_cv_dlopen_self_static, [dnl
1809 _LT_TRY_DLOPEN_SELF(
1810 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1811 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1812 ])
1813 fi
1814
1815 CPPFLAGS="$save_CPPFLAGS"
1816 LDFLAGS="$save_LDFLAGS"
1817 LIBS="$save_LIBS"
1818 ;;
1819 esac
1820
1821 case $lt_cv_dlopen_self in
1822 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1823 *) enable_dlopen_self=unknown ;;
1824 esac
1825
1826 case $lt_cv_dlopen_self_static in
1827 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1828 *) enable_dlopen_self_static=unknown ;;
1829 esac
1830 fi
1831 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1832 [Whether dlopen is supported])
1833 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1834 [Whether dlopen of programs is supported])
1835 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1836 [Whether dlopen of statically linked programs is supported])
1837 ])# LT_SYS_DLOPEN_SELF
1838
1839 # Old name:
1840 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1841 dnl aclocal-1.4 backwards compatibility:
1842 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1843
1844
1845 # _LT_COMPILER_C_O([TAGNAME])
1846 # ---------------------------
1847 # Check to see if options -c and -o are simultaneously supported by compiler.
1848 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1849 m4_defun([_LT_COMPILER_C_O],
1850 [m4_require([_LT_DECL_SED])dnl
1851 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1852 m4_require([_LT_TAG_COMPILER])dnl
1853 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1854 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1855 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1856 $RM -r conftest 2>/dev/null
1857 mkdir conftest
1858 cd conftest
1859 mkdir out
1860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1861
1862 lt_compiler_flag="-o out/conftest2.$ac_objext"
1863 # Insert the option either (1) after the last *FLAGS variable, or
1864 # (2) before a word containing "conftest.", or (3) at the end.
1865 # Note that $ac_compile itself does not contain backslashes and begins
1866 # with a dollar sign (not a hyphen), so the echo should work correctly.
1867 lt_compile=`echo "$ac_compile" | $SED \
1868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1869 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1870 -e 's:$: $lt_compiler_flag:'`
1871 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1872 (eval "$lt_compile" 2>out/conftest.err)
1873 ac_status=$?
1874 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1875 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1877 then
1878 # The compiler can only warn and ignore the option if not recognized
1879 # So say no if there are warnings
1880 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1883 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1884 fi
1885 fi
1886 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1887 $RM conftest*
1888 # SGI C++ compiler will create directory out/ii_files/ for
1889 # template instantiation
1890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1891 $RM out/* && rmdir out
1892 cd ..
1893 $RM -r conftest
1894 $RM conftest*
1895 ])
1896 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1897 [Does compiler simultaneously support -c and -o options?])
1898 ])# _LT_COMPILER_C_O
1899
1900
1901 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1902 # ----------------------------------
1903 # Check to see if we can do hard links to lock some files if needed
1904 m4_defun([_LT_COMPILER_FILE_LOCKS],
1905 [m4_require([_LT_ENABLE_LOCK])dnl
1906 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1907 _LT_COMPILER_C_O([$1])
1908
1909 hard_links="nottested"
1910 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1911 # do not overwrite the value of need_locks provided by the user
1912 AC_MSG_CHECKING([if we can lock with hard links])
1913 hard_links=yes
1914 $RM conftest*
1915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1916 touch conftest.a
1917 ln conftest.a conftest.b 2>&5 || hard_links=no
1918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1919 AC_MSG_RESULT([$hard_links])
1920 if test "$hard_links" = no; then
1921 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1922 need_locks=warn
1923 fi
1924 else
1925 need_locks=no
1926 fi
1927 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1928 ])# _LT_COMPILER_FILE_LOCKS
1929
1930
1931 # _LT_CHECK_OBJDIR
1932 # ----------------
1933 m4_defun([_LT_CHECK_OBJDIR],
1934 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1935 [rm -f .libs 2>/dev/null
1936 mkdir .libs 2>/dev/null
1937 if test -d .libs; then
1938 lt_cv_objdir=.libs
1939 else
1940 # MS-DOS does not allow filenames that begin with a dot.
1941 lt_cv_objdir=_libs
1942 fi
1943 rmdir .libs 2>/dev/null])
1944 objdir=$lt_cv_objdir
1945 _LT_DECL([], [objdir], [0],
1946 [The name of the directory that contains temporary libtool files])dnl
1947 m4_pattern_allow([LT_OBJDIR])dnl
1948 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1949 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1950 ])# _LT_CHECK_OBJDIR
1951
1952
1953 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1954 # --------------------------------------
1955 # Check hardcoding attributes.
1956 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1957 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1958 _LT_TAGVAR(hardcode_action, $1)=
1959 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1960 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1961 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1962
1963 # We can hardcode non-existent directories.
1964 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1965 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1966 # have to relink, otherwise we might link with an installed library
1967 # when we should be linking with a yet-to-be-installed one
1968 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1969 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1970 # Linking always hardcodes the temporary library directory.
1971 _LT_TAGVAR(hardcode_action, $1)=relink
1972 else
1973 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1974 _LT_TAGVAR(hardcode_action, $1)=immediate
1975 fi
1976 else
1977 # We cannot hardcode anything, or else we can only hardcode existing
1978 # directories.
1979 _LT_TAGVAR(hardcode_action, $1)=unsupported
1980 fi
1981 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1982
1983 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1984 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1985 # Fast installation is not supported
1986 enable_fast_install=no
1987 elif test "$shlibpath_overrides_runpath" = yes ||
1988 test "$enable_shared" = no; then
1989 # Fast installation is not necessary
1990 enable_fast_install=needless
1991 fi
1992 _LT_TAGDECL([], [hardcode_action], [0],
1993 [How to hardcode a shared library path into an executable])
1994 ])# _LT_LINKER_HARDCODE_LIBPATH
1995
1996
1997 # _LT_CMD_STRIPLIB
1998 # ----------------
1999 m4_defun([_LT_CMD_STRIPLIB],
2000 [m4_require([_LT_DECL_EGREP])
2001 striplib=
2002 old_striplib=
2003 AC_MSG_CHECKING([whether stripping libraries is possible])
2004 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2005 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2006 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2007 AC_MSG_RESULT([yes])
2008 else
2009 # FIXME - insert some real tests, host_os isn't really good enough
2010 case $host_os in
2011 darwin*)
2012 if test -n "$STRIP" ; then
2013 striplib="$STRIP -x"
2014 old_striplib="$STRIP -S"
2015 AC_MSG_RESULT([yes])
2016 else
2017 AC_MSG_RESULT([no])
2018 fi
2019 ;;
2020 *)
2021 AC_MSG_RESULT([no])
2022 ;;
2023 esac
2024 fi
2025 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2026 _LT_DECL([], [striplib], [1])
2027 ])# _LT_CMD_STRIPLIB
2028
2029
2030 # _LT_SYS_DYNAMIC_LINKER([TAG])
2031 # -----------------------------
2032 # PORTME Fill in your ld.so characteristics
2033 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2034 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2035 m4_require([_LT_DECL_EGREP])dnl
2036 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2037 m4_require([_LT_DECL_OBJDUMP])dnl
2038 m4_require([_LT_DECL_SED])dnl
2039 AC_MSG_CHECKING([dynamic linker characteristics])
2040 m4_if([$1],
2041 [], [
2042 if test "$GCC" = yes; then
2043 case $host_os in
2044 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2045 *) lt_awk_arg="/^libraries:/" ;;
2046 esac
2047 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2048 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2049 # if the path contains ";" then we assume it to be the separator
2050 # otherwise default to the standard path separator (i.e. ":") - it is
2051 # assumed that no part of a normal pathname contains ";" but that should
2052 # okay in the real world where ";" in dirpaths is itself problematic.
2053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2054 else
2055 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2056 fi
2057 # Ok, now we have the path, separated by spaces, we can step through it
2058 # and add multilib dir if necessary.
2059 lt_tmp_lt_search_path_spec=
2060 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2061 for lt_sys_path in $lt_search_path_spec; do
2062 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2064 else
2065 test -d "$lt_sys_path" && \
2066 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2067 fi
2068 done
2069 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2070 BEGIN {RS=" "; FS="/|\n";} {
2071 lt_foo="";
2072 lt_count=0;
2073 for (lt_i = NF; lt_i > 0; lt_i--) {
2074 if ($lt_i != "" && $lt_i != ".") {
2075 if ($lt_i == "..") {
2076 lt_count++;
2077 } else {
2078 if (lt_count == 0) {
2079 lt_foo="/" $lt_i lt_foo;
2080 } else {
2081 lt_count--;
2082 }
2083 }
2084 }
2085 }
2086 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2087 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2088 }'`
2089 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2090 else
2091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2092 fi])
2093 library_names_spec=
2094 libname_spec='lib$name'
2095 soname_spec=
2096 shrext_cmds=".so"
2097 postinstall_cmds=
2098 postuninstall_cmds=
2099 finish_cmds=
2100 finish_eval=
2101 shlibpath_var=
2102 shlibpath_overrides_runpath=unknown
2103 version_type=none
2104 dynamic_linker="$host_os ld.so"
2105 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2106 need_lib_prefix=unknown
2107 hardcode_into_libs=no
2108
2109 # when you set need_version to no, make sure it does not cause -set_version
2110 # flags to be left without arguments
2111 need_version=unknown
2112
2113 case $host_os in
2114 aix3*)
2115 version_type=linux
2116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2117 shlibpath_var=LIBPATH
2118
2119 # AIX 3 has no versioning support, so we append a major version to the name.
2120 soname_spec='${libname}${release}${shared_ext}$major'
2121 ;;
2122
2123 aix[[4-9]]*)
2124 version_type=linux
2125 need_lib_prefix=no
2126 need_version=no
2127 hardcode_into_libs=yes
2128 if test "$host_cpu" = ia64; then
2129 # AIX 5 supports IA64
2130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2131 shlibpath_var=LD_LIBRARY_PATH
2132 else
2133 # With GCC up to 2.95.x, collect2 would create an import file
2134 # for dependence libraries. The import file would start with
2135 # the line `#! .'. This would cause the generated library to
2136 # depend on `.', always an invalid library. This was fixed in
2137 # development snapshots of GCC prior to 3.0.
2138 case $host_os in
2139 aix4 | aix4.[[01]] | aix4.[[01]].*)
2140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2141 echo ' yes '
2142 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2143 :
2144 else
2145 can_build_shared=no
2146 fi
2147 ;;
2148 esac
2149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2150 # soname into executable. Probably we can add versioning support to
2151 # collect2, so additional links can be useful in future.
2152 if test "$aix_use_runtimelinking" = yes; then
2153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2154 # instead of lib<name>.a to let people know that these are not
2155 # typical AIX shared libraries.
2156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2157 else
2158 # We preserve .a as extension for shared libraries through AIX4.2
2159 # and later when we are not doing run time linking.
2160 library_names_spec='${libname}${release}.a $libname.a'
2161 soname_spec='${libname}${release}${shared_ext}$major'
2162 fi
2163 shlibpath_var=LIBPATH
2164 fi
2165 ;;
2166
2167 amigaos*)
2168 case $host_cpu in
2169 powerpc)
2170 # Since July 2007 AmigaOS4 officially supports .so libraries.
2171 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2173 ;;
2174 m68k)
2175 library_names_spec='$libname.ixlibrary $libname.a'
2176 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2177 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
2178 ;;
2179 esac
2180 ;;
2181
2182 beos*)
2183 library_names_spec='${libname}${shared_ext}'
2184 dynamic_linker="$host_os ld.so"
2185 shlibpath_var=LIBRARY_PATH
2186 ;;
2187
2188 bsdi[[45]]*)
2189 version_type=linux
2190 need_version=no
2191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2192 soname_spec='${libname}${release}${shared_ext}$major'
2193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2194 shlibpath_var=LD_LIBRARY_PATH
2195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2197 # the default ld.so.conf also contains /usr/contrib/lib and
2198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2199 # libtool to hard-code these into programs
2200 ;;
2201
2202 cygwin* | mingw* | pw32* | cegcc*)
2203 version_type=windows
2204 shrext_cmds=".dll"
2205 need_version=no
2206 need_lib_prefix=no
2207
2208 case $GCC,$host_os in
2209 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2210 library_names_spec='$libname.dll.a'
2211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2212 postinstall_cmds='base_file=`basename \${file}`~
2213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2214 dldir=$destdir/`dirname \$dlpath`~
2215 test -d \$dldir || mkdir -p \$dldir~
2216 $install_prog $dir/$dlname \$dldir/$dlname~
2217 chmod a+x \$dldir/$dlname~
2218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2220 fi'
2221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2222 dlpath=$dir/\$dldll~
2223 $RM \$dlpath'
2224 shlibpath_overrides_runpath=yes
2225
2226 case $host_os in
2227 cygwin*)
2228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2229 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2230 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2231 ;;
2232 mingw* | cegcc*)
2233 # MinGW DLLs use traditional 'lib' prefix
2234 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2235 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2236 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2237 # It is most probably a Windows format PATH printed by
2238 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2239 # path with ; separators, and with drive letters. We can handle the
2240 # drive letters (cygwin fileutils understands them), so leave them,
2241 # especially as we might pass files found there to a mingw objdump,
2242 # which wouldn't understand a cygwinified path. Ahh.
2243 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2244 else
2245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2246 fi
2247 ;;
2248 pw32*)
2249 # pw32 DLLs use 'pw' prefix rather than 'lib'
2250 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2251 ;;
2252 esac
2253 ;;
2254
2255 *)
2256 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2257 ;;
2258 esac
2259 dynamic_linker='Win32 ld.exe'
2260 # FIXME: first we should search . and the directory the executable is in
2261 shlibpath_var=PATH
2262 ;;
2263
2264 darwin* | rhapsody*)
2265 dynamic_linker="$host_os dyld"
2266 version_type=darwin
2267 need_lib_prefix=no
2268 need_version=no
2269 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2270 soname_spec='${libname}${release}${major}$shared_ext'
2271 shlibpath_overrides_runpath=yes
2272 shlibpath_var=DYLD_LIBRARY_PATH
2273 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2274 m4_if([$1], [],[
2275 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2277 ;;
2278
2279 dgux*)
2280 version_type=linux
2281 need_lib_prefix=no
2282 need_version=no
2283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2284 soname_spec='${libname}${release}${shared_ext}$major'
2285 shlibpath_var=LD_LIBRARY_PATH
2286 ;;
2287
2288 freebsd1*)
2289 dynamic_linker=no
2290 ;;
2291
2292 freebsd* | dragonfly*)
2293 # DragonFly does not have aout. When/if they implement a new
2294 # versioning mechanism, adjust this.
2295 if test -x /usr/bin/objformat; then
2296 objformat=`/usr/bin/objformat`
2297 else
2298 case $host_os in
2299 freebsd[[123]]*) objformat=aout ;;
2300 *) objformat=elf ;;
2301 esac
2302 fi
2303 version_type=freebsd-$objformat
2304 case $version_type in
2305 freebsd-elf*)
2306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2307 need_version=no
2308 need_lib_prefix=no
2309 ;;
2310 freebsd-*)
2311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2312 need_version=yes
2313 ;;
2314 esac
2315 shlibpath_var=LD_LIBRARY_PATH
2316 case $host_os in
2317 freebsd2*)
2318 shlibpath_overrides_runpath=yes
2319 ;;
2320 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2321 shlibpath_overrides_runpath=yes
2322 hardcode_into_libs=yes
2323 ;;
2324 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2325 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2326 shlibpath_overrides_runpath=no
2327 hardcode_into_libs=yes
2328 ;;
2329 *) # from 4.6 on, and DragonFly
2330 shlibpath_overrides_runpath=yes
2331 hardcode_into_libs=yes
2332 ;;
2333 esac
2334 ;;
2335
2336 gnu*)
2337 version_type=linux
2338 need_lib_prefix=no
2339 need_version=no
2340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2341 soname_spec='${libname}${release}${shared_ext}$major'
2342 shlibpath_var=LD_LIBRARY_PATH
2343 hardcode_into_libs=yes
2344 ;;
2345
2346 hpux9* | hpux10* | hpux11*)
2347 # Give a soname corresponding to the major version so that dld.sl refuses to
2348 # link against other versions.
2349 version_type=sunos
2350 need_lib_prefix=no
2351 need_version=no
2352 case $host_cpu in
2353 ia64*)
2354 shrext_cmds='.so'
2355 hardcode_into_libs=yes
2356 dynamic_linker="$host_os dld.so"
2357 shlibpath_var=LD_LIBRARY_PATH
2358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2360 soname_spec='${libname}${release}${shared_ext}$major'
2361 if test "X$HPUX_IA64_MODE" = X32; then
2362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2363 else
2364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2365 fi
2366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2367 ;;
2368 hppa*64*)
2369 shrext_cmds='.sl'
2370 hardcode_into_libs=yes
2371 dynamic_linker="$host_os dld.sl"
2372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2375 soname_spec='${libname}${release}${shared_ext}$major'
2376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2378 ;;
2379 *)
2380 shrext_cmds='.sl'
2381 dynamic_linker="$host_os dld.sl"
2382 shlibpath_var=SHLIB_PATH
2383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2385 soname_spec='${libname}${release}${shared_ext}$major'
2386 ;;
2387 esac
2388 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2389 postinstall_cmds='chmod 555 $lib'
2390 ;;
2391
2392 interix[[3-9]]*)
2393 version_type=linux
2394 need_lib_prefix=no
2395 need_version=no
2396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2397 soname_spec='${libname}${release}${shared_ext}$major'
2398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2399 shlibpath_var=LD_LIBRARY_PATH
2400 shlibpath_overrides_runpath=no
2401 hardcode_into_libs=yes
2402 ;;
2403
2404 irix5* | irix6* | nonstopux*)
2405 case $host_os in
2406 nonstopux*) version_type=nonstopux ;;
2407 *)
2408 if test "$lt_cv_prog_gnu_ld" = yes; then
2409 version_type=linux
2410 else
2411 version_type=irix
2412 fi ;;
2413 esac
2414 need_lib_prefix=no
2415 need_version=no
2416 soname_spec='${libname}${release}${shared_ext}$major'
2417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2418 case $host_os in
2419 irix5* | nonstopux*)
2420 libsuff= shlibsuff=
2421 ;;
2422 *)
2423 case $LD in # libtool.m4 will add one of these switches to LD
2424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2425 libsuff= shlibsuff= libmagic=32-bit;;
2426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2427 libsuff=32 shlibsuff=N32 libmagic=N32;;
2428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2429 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2430 *) libsuff= shlibsuff= libmagic=never-match;;
2431 esac
2432 ;;
2433 esac
2434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2435 shlibpath_overrides_runpath=no
2436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2438 hardcode_into_libs=yes
2439 ;;
2440
2441 # No shared lib support for Linux oldld, aout, or coff.
2442 linux*oldld* | linux*aout* | linux*coff*)
2443 dynamic_linker=no
2444 ;;
2445
2446 # This must be Linux ELF.
2447 linux* | k*bsd*-gnu)
2448 version_type=linux
2449 need_lib_prefix=no
2450 need_version=no
2451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2452 soname_spec='${libname}${release}${shared_ext}$major'
2453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2454 shlibpath_var=LD_LIBRARY_PATH
2455 shlibpath_overrides_runpath=no
2456 # Some binutils ld are patched to set DT_RUNPATH
2457 save_LDFLAGS=$LDFLAGS
2458 save_libdir=$libdir
2459 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2460 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2461 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2462 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2463 [shlibpath_overrides_runpath=yes])])
2464 LDFLAGS=$save_LDFLAGS
2465 libdir=$save_libdir
2466
2467 # This implies no fast_install, which is unacceptable.
2468 # Some rework will be needed to allow for fast_install
2469 # before this can be enabled.
2470 hardcode_into_libs=yes
2471
2472 # Add ABI-specific directories to the system library path.
2473 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2474
2475 # Append ld.so.conf contents to the search path
2476 if test -f /etc/ld.so.conf; then
2477 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;/^$/d' | tr '\n' ' '`
2478 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2479 fi
2480
2481 # We used to test for /lib/ld.so.1 and disable shared libraries on
2482 # powerpc, because MkLinux only supported shared libraries with the
2483 # GNU dynamic linker. Since this was broken with cross compilers,
2484 # most powerpc-linux boxes support dynamic linking these days and
2485 # people can always --disable-shared, the test was removed, and we
2486 # assume the GNU/Linux dynamic linker is in use.
2487 dynamic_linker='GNU/Linux ld.so'
2488 ;;
2489
2490 netbsd*)
2491 version_type=sunos
2492 need_lib_prefix=no
2493 need_version=no
2494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2497 dynamic_linker='NetBSD (a.out) ld.so'
2498 else
2499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2500 soname_spec='${libname}${release}${shared_ext}$major'
2501 dynamic_linker='NetBSD ld.elf_so'
2502 fi
2503 shlibpath_var=LD_LIBRARY_PATH
2504 shlibpath_overrides_runpath=yes
2505 hardcode_into_libs=yes
2506 ;;
2507
2508 newsos6)
2509 version_type=linux
2510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2511 shlibpath_var=LD_LIBRARY_PATH
2512 shlibpath_overrides_runpath=yes
2513 ;;
2514
2515 *nto* | *qnx*)
2516 version_type=qnx
2517 need_lib_prefix=no
2518 need_version=no
2519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2520 soname_spec='${libname}${release}${shared_ext}$major'
2521 shlibpath_var=LD_LIBRARY_PATH
2522 shlibpath_overrides_runpath=no
2523 hardcode_into_libs=yes
2524 dynamic_linker='ldqnx.so'
2525 ;;
2526
2527 openbsd*)
2528 version_type=sunos
2529 sys_lib_dlsearch_path_spec="/usr/lib"
2530 need_lib_prefix=no
2531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2532 case $host_os in
2533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2534 *) need_version=no ;;
2535 esac
2536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2538 shlibpath_var=LD_LIBRARY_PATH
2539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2540 case $host_os in
2541 openbsd2.[[89]] | openbsd2.[[89]].*)
2542 shlibpath_overrides_runpath=no
2543 ;;
2544 *)
2545 shlibpath_overrides_runpath=yes
2546 ;;
2547 esac
2548 else
2549 shlibpath_overrides_runpath=yes
2550 fi
2551 ;;
2552
2553 os2*)
2554 libname_spec='$name'
2555 shrext_cmds=".dll"
2556 need_lib_prefix=no
2557 library_names_spec='$libname${shared_ext} $libname.a'
2558 dynamic_linker='OS/2 ld.exe'
2559 shlibpath_var=LIBPATH
2560 ;;
2561
2562 osf3* | osf4* | osf5*)
2563 version_type=osf
2564 need_lib_prefix=no
2565 need_version=no
2566 soname_spec='${libname}${release}${shared_ext}$major'
2567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2568 shlibpath_var=LD_LIBRARY_PATH
2569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2571 ;;
2572
2573 rdos*)
2574 dynamic_linker=no
2575 ;;
2576
2577 solaris*)
2578 version_type=linux
2579 need_lib_prefix=no
2580 need_version=no
2581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2582 soname_spec='${libname}${release}${shared_ext}$major'
2583 shlibpath_var=LD_LIBRARY_PATH
2584 shlibpath_overrides_runpath=yes
2585 hardcode_into_libs=yes
2586 # ldd complains unless libraries are executable
2587 postinstall_cmds='chmod +x $lib'
2588 ;;
2589
2590 sunos4*)
2591 version_type=sunos
2592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2594 shlibpath_var=LD_LIBRARY_PATH
2595 shlibpath_overrides_runpath=yes
2596 if test "$with_gnu_ld" = yes; then
2597 need_lib_prefix=no
2598 fi
2599 need_version=yes
2600 ;;
2601
2602 sysv4 | sysv4.3*)
2603 version_type=linux
2604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2605 soname_spec='${libname}${release}${shared_ext}$major'
2606 shlibpath_var=LD_LIBRARY_PATH
2607 case $host_vendor in
2608 sni)
2609 shlibpath_overrides_runpath=no
2610 need_lib_prefix=no
2611 runpath_var=LD_RUN_PATH
2612 ;;
2613 siemens)
2614 need_lib_prefix=no
2615 ;;
2616 motorola)
2617 need_lib_prefix=no
2618 need_version=no
2619 shlibpath_overrides_runpath=no
2620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2621 ;;
2622 esac
2623 ;;
2624
2625 sysv4*MP*)
2626 if test -d /usr/nec ;then
2627 version_type=linux
2628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2629 soname_spec='$libname${shared_ext}.$major'
2630 shlibpath_var=LD_LIBRARY_PATH
2631 fi
2632 ;;
2633
2634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2635 version_type=freebsd-elf
2636 need_lib_prefix=no
2637 need_version=no
2638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2639 soname_spec='${libname}${release}${shared_ext}$major'
2640 shlibpath_var=LD_LIBRARY_PATH
2641 shlibpath_overrides_runpath=yes
2642 hardcode_into_libs=yes
2643 if test "$with_gnu_ld" = yes; then
2644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2645 else
2646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2647 case $host_os in
2648 sco3.2v5*)
2649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2650 ;;
2651 esac
2652 fi
2653 sys_lib_dlsearch_path_spec='/usr/lib'
2654 ;;
2655
2656 tpf*)
2657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2658 version_type=linux
2659 need_lib_prefix=no
2660 need_version=no
2661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2662 shlibpath_var=LD_LIBRARY_PATH
2663 shlibpath_overrides_runpath=no
2664 hardcode_into_libs=yes
2665 ;;
2666
2667 uts4*)
2668 version_type=linux
2669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2670 soname_spec='${libname}${release}${shared_ext}$major'
2671 shlibpath_var=LD_LIBRARY_PATH
2672 ;;
2673
2674 *)
2675 dynamic_linker=no
2676 ;;
2677 esac
2678 AC_MSG_RESULT([$dynamic_linker])
2679 test "$dynamic_linker" = no && can_build_shared=no
2680
2681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2682 if test "$GCC" = yes; then
2683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2684 fi
2685
2686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2688 fi
2689 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2691 fi
2692
2693 _LT_DECL([], [variables_saved_for_relink], [1],
2694 [Variables whose values should be saved in libtool wrapper scripts and
2695 restored at link time])
2696 _LT_DECL([], [need_lib_prefix], [0],
2697 [Do we need the "lib" prefix for modules?])
2698 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2699 _LT_DECL([], [version_type], [0], [Library versioning type])
2700 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2701 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2702 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2703 [Is shlibpath searched before the hard-coded library search path?])
2704 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2705 _LT_DECL([], [library_names_spec], [1],
2706 [[List of archive names. First name is the real one, the rest are links.
2707 The last name is the one that the linker finds with -lNAME]])
2708 _LT_DECL([], [soname_spec], [1],
2709 [[The coded name of the library, if different from the real name]])
2710 _LT_DECL([], [postinstall_cmds], [2],
2711 [Command to use after installation of a shared archive])
2712 _LT_DECL([], [postuninstall_cmds], [2],
2713 [Command to use after uninstallation of a shared archive])
2714 _LT_DECL([], [finish_cmds], [2],
2715 [Commands used to finish a libtool library installation in a directory])
2716 _LT_DECL([], [finish_eval], [1],
2717 [[As "finish_cmds", except a single script fragment to be evaled but
2718 not shown]])
2719 _LT_DECL([], [hardcode_into_libs], [0],
2720 [Whether we should hardcode library paths into libraries])
2721 _LT_DECL([], [sys_lib_search_path_spec], [2],
2722 [Compile-time system search path for libraries])
2723 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2724 [Run-time system search path for libraries])
2725 ])# _LT_SYS_DYNAMIC_LINKER
2726
2727
2728 # _LT_PATH_TOOL_PREFIX(TOOL)
2729 # --------------------------
2730 # find a file program which can recognize shared library
2731 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2732 [m4_require([_LT_DECL_EGREP])dnl
2733 AC_MSG_CHECKING([for $1])
2734 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2735 [case $MAGIC_CMD in
2736 [[\\/*] | ?:[\\/]*])
2737 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2738 ;;
2739 *)
2740 lt_save_MAGIC_CMD="$MAGIC_CMD"
2741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2742 dnl $ac_dummy forces splitting on constant user-supplied paths.
2743 dnl POSIX.2 word splitting is done only on the output of word expansions,
2744 dnl not every word. This closes a longstanding sh security hole.
2745 ac_dummy="m4_if([$2], , $PATH, [$2])"
2746 for ac_dir in $ac_dummy; do
2747 IFS="$lt_save_ifs"
2748 test -z "$ac_dir" && ac_dir=.
2749 if test -f $ac_dir/$1; then
2750 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2751 if test -n "$file_magic_test_file"; then
2752 case $deplibs_check_method in
2753 "file_magic "*)
2754 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2756 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2757 $EGREP "$file_magic_regex" > /dev/null; then
2758 :
2759 else
2760 cat <<_LT_EOF 1>&2
2761
2762 *** Warning: the command libtool uses to detect shared libraries,
2763 *** $file_magic_cmd, produces output that libtool cannot recognize.
2764 *** The result is that libtool may fail to recognize shared libraries
2765 *** as such. This will affect the creation of libtool libraries that
2766 *** depend on shared libraries, but programs linked with such libtool
2767 *** libraries will work regardless of this problem. Nevertheless, you
2768 *** may want to report the problem to your system manager and/or to
2769 *** bug-libtool@gnu.org
2770
2771 _LT_EOF
2772 fi ;;
2773 esac
2774 fi
2775 break
2776 fi
2777 done
2778 IFS="$lt_save_ifs"
2779 MAGIC_CMD="$lt_save_MAGIC_CMD"
2780 ;;
2781 esac])
2782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2783 if test -n "$MAGIC_CMD"; then
2784 AC_MSG_RESULT($MAGIC_CMD)
2785 else
2786 AC_MSG_RESULT(no)
2787 fi
2788 _LT_DECL([], [MAGIC_CMD], [0],
2789 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2790 ])# _LT_PATH_TOOL_PREFIX
2791
2792 # Old name:
2793 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2794 dnl aclocal-1.4 backwards compatibility:
2795 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2796
2797
2798 # _LT_PATH_MAGIC
2799 # --------------
2800 # find a file program which can recognize a shared library
2801 m4_defun([_LT_PATH_MAGIC],
2802 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2803 if test -z "$lt_cv_path_MAGIC_CMD"; then
2804 if test -n "$ac_tool_prefix"; then
2805 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2806 else
2807 MAGIC_CMD=:
2808 fi
2809 fi
2810 ])# _LT_PATH_MAGIC
2811
2812
2813 # LT_PATH_LD
2814 # ----------
2815 # find the pathname to the GNU or non-GNU linker
2816 AC_DEFUN([LT_PATH_LD],
2817 [AC_REQUIRE([AC_PROG_CC])dnl
2818 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2819 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2820 m4_require([_LT_DECL_SED])dnl
2821 m4_require([_LT_DECL_EGREP])dnl
2822
2823 AC_ARG_WITH([gnu-ld],
2824 [AS_HELP_STRING([--with-gnu-ld],
2825 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2826 [test "$withval" = no || with_gnu_ld=yes],
2827 [with_gnu_ld=no])dnl
2828
2829 ac_prog=ld
2830 if test "$GCC" = yes; then
2831 # Check if gcc -print-prog-name=ld gives a path.
2832 AC_MSG_CHECKING([for ld used by $CC])
2833 case $host in
2834 *-*-mingw*)
2835 # gcc leaves a trailing carriage return which upsets mingw
2836 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2837 *)
2838 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2839 esac
2840 case $ac_prog in
2841 # Accept absolute paths.
2842 [[\\/]]* | ?:[[\\/]]*)
2843 re_direlt='/[[^/]][[^/]]*/\.\./'
2844 # Canonicalize the pathname of ld
2845 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2846 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2847 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2848 done
2849 test -z "$LD" && LD="$ac_prog"
2850 ;;
2851 "")
2852 # If it fails, then pretend we aren't using GCC.
2853 ac_prog=ld
2854 ;;
2855 *)
2856 # If it is relative, then search for the first ld in PATH.
2857 with_gnu_ld=unknown
2858 ;;
2859 esac
2860 elif test "$with_gnu_ld" = yes; then
2861 AC_MSG_CHECKING([for GNU ld])
2862 else
2863 AC_MSG_CHECKING([for non-GNU ld])
2864 fi
2865 AC_CACHE_VAL(lt_cv_path_LD,
2866 [if test -z "$LD"; then
2867 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2868 for ac_dir in $PATH; do
2869 IFS="$lt_save_ifs"
2870 test -z "$ac_dir" && ac_dir=.
2871 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2872 lt_cv_path_LD="$ac_dir/$ac_prog"
2873 # Check to see if the program is GNU ld. I'd rather use --version,
2874 # but apparently some variants of GNU ld only accept -v.
2875 # Break only if it was the GNU/non-GNU ld that we prefer.
2876 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2877 *GNU* | *'with BFD'*)
2878 test "$with_gnu_ld" != no && break
2879 ;;
2880 *)
2881 test "$with_gnu_ld" != yes && break
2882 ;;
2883 esac
2884 fi
2885 done
2886 IFS="$lt_save_ifs"
2887 else
2888 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2889 fi])
2890 LD="$lt_cv_path_LD"
2891 if test -n "$LD"; then
2892 AC_MSG_RESULT($LD)
2893 else
2894 AC_MSG_RESULT(no)
2895 fi
2896 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2897 _LT_PATH_LD_GNU
2898 AC_SUBST([LD])
2899
2900 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2901 ])# LT_PATH_LD
2902
2903 # Old names:
2904 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2905 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2906 dnl aclocal-1.4 backwards compatibility:
2907 dnl AC_DEFUN([AM_PROG_LD], [])
2908 dnl AC_DEFUN([AC_PROG_LD], [])
2909
2910
2911 # _LT_PATH_LD_GNU
2912 #- --------------
2913 m4_defun([_LT_PATH_LD_GNU],
2914 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2915 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2916 case `$LD -v 2>&1 </dev/null` in
2917 *GNU* | *'with BFD'*)
2918 lt_cv_prog_gnu_ld=yes
2919 ;;
2920 *)
2921 lt_cv_prog_gnu_ld=no
2922 ;;
2923 esac])
2924 with_gnu_ld=$lt_cv_prog_gnu_ld
2925 ])# _LT_PATH_LD_GNU
2926
2927
2928 # _LT_CMD_RELOAD
2929 # --------------
2930 # find reload flag for linker
2931 # -- PORTME Some linkers may need a different reload flag.
2932 m4_defun([_LT_CMD_RELOAD],
2933 [AC_CACHE_CHECK([for $LD option to reload object files],
2934 lt_cv_ld_reload_flag,
2935 [lt_cv_ld_reload_flag='-r'])
2936 reload_flag=$lt_cv_ld_reload_flag
2937 case $reload_flag in
2938 "" | " "*) ;;
2939 *) reload_flag=" $reload_flag" ;;
2940 esac
2941 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2942 case $host_os in
2943 darwin*)
2944 if test "$GCC" = yes; then
2945 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2946 else
2947 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2948 fi
2949 ;;
2950 esac
2951 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2952 _LT_DECL([], [reload_cmds], [2])dnl
2953 ])# _LT_CMD_RELOAD
2954
2955
2956 # _LT_CHECK_MAGIC_METHOD
2957 # ----------------------
2958 # how to check for library dependencies
2959 # -- PORTME fill in with the dynamic library characteristics
2960 m4_defun([_LT_CHECK_MAGIC_METHOD],
2961 [m4_require([_LT_DECL_EGREP])
2962 m4_require([_LT_DECL_OBJDUMP])
2963 AC_CACHE_CHECK([how to recognize dependent libraries],
2964 lt_cv_deplibs_check_method,
2965 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2966 lt_cv_file_magic_test_file=
2967 lt_cv_deplibs_check_method='unknown'
2968 # Need to set the preceding variable on all platforms that support
2969 # interlibrary dependencies.
2970 # 'none' -- dependencies not supported.
2971 # `unknown' -- same as none, but documents that we really don't know.
2972 # 'pass_all' -- all dependencies passed with no checks.
2973 # 'test_compile' -- check by making test program.
2974 # 'file_magic [[regex]]' -- check by looking for files in library path
2975 # which responds to the $file_magic_cmd with a given extended regex.
2976 # If you have `file' or equivalent on your system and you're not sure
2977 # whether `pass_all' will *always* work, you probably want this one.
2978
2979 case $host_os in
2980 aix[[4-9]]*)
2981 lt_cv_deplibs_check_method=pass_all
2982 ;;
2983
2984 beos*)
2985 lt_cv_deplibs_check_method=pass_all
2986 ;;
2987
2988 bsdi[[45]]*)
2989 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2990 lt_cv_file_magic_cmd='/usr/bin/file -L'
2991 lt_cv_file_magic_test_file=/shlib/libc.so
2992 ;;
2993
2994 cygwin*)
2995 # func_win32_libid is a shell function defined in ltmain.sh
2996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2997 lt_cv_file_magic_cmd='func_win32_libid'
2998 ;;
2999
3000 mingw* | pw32*)
3001 # Base MSYS/MinGW do not provide the 'file' command needed by
3002 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3003 # unless we find 'file', for example because we are cross-compiling.
3004 if ( file / ) >/dev/null 2>&1; then
3005 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3006 lt_cv_file_magic_cmd='func_win32_libid'
3007 else
3008 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3009 lt_cv_file_magic_cmd='$OBJDUMP -f'
3010 fi
3011 ;;
3012
3013 cegcc)
3014 # use the weaker test based on 'objdump'. See mingw*.
3015 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3016 lt_cv_file_magic_cmd='$OBJDUMP -f'
3017 ;;
3018
3019 darwin* | rhapsody*)
3020 lt_cv_deplibs_check_method=pass_all
3021 ;;
3022
3023 freebsd* | dragonfly*)
3024 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3025 case $host_cpu in
3026 i*86 )
3027 # Not sure whether the presence of OpenBSD here was a mistake.
3028 # Let's accept both of them until this is cleared up.
3029 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3030 lt_cv_file_magic_cmd=/usr/bin/file
3031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3032 ;;
3033 esac
3034 else
3035 lt_cv_deplibs_check_method=pass_all
3036 fi
3037 ;;
3038
3039 gnu*)
3040 lt_cv_deplibs_check_method=pass_all
3041 ;;
3042
3043 hpux10.20* | hpux11*)
3044 lt_cv_file_magic_cmd=/usr/bin/file
3045 case $host_cpu in
3046 ia64*)
3047 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3048 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3049 ;;
3050 hppa*64*)
3051 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3053 ;;
3054 *)
3055 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3056 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3057 ;;
3058 esac
3059 ;;
3060
3061 interix[[3-9]]*)
3062 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3063 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3064 ;;
3065
3066 irix5* | irix6* | nonstopux*)
3067 case $LD in
3068 *-32|*"-32 ") libmagic=32-bit;;
3069 *-n32|*"-n32 ") libmagic=N32;;
3070 *-64|*"-64 ") libmagic=64-bit;;
3071 *) libmagic=never-match;;
3072 esac
3073 lt_cv_deplibs_check_method=pass_all
3074 ;;
3075
3076 # This must be Linux ELF.
3077 linux* | k*bsd*-gnu)
3078 lt_cv_deplibs_check_method=pass_all
3079 ;;
3080
3081 netbsd*)
3082 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3083 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3084 else
3085 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3086 fi
3087 ;;
3088
3089 newos6*)
3090 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3091 lt_cv_file_magic_cmd=/usr/bin/file
3092 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3093 ;;
3094
3095 *nto* | *qnx*)
3096 lt_cv_deplibs_check_method=pass_all
3097 ;;
3098
3099 openbsd*)
3100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3101 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3102 else
3103 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3104 fi
3105 ;;
3106
3107 osf3* | osf4* | osf5*)
3108 lt_cv_deplibs_check_method=pass_all
3109 ;;
3110
3111 rdos*)
3112 lt_cv_deplibs_check_method=pass_all
3113 ;;
3114
3115 solaris*)
3116 lt_cv_deplibs_check_method=pass_all
3117 ;;
3118
3119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3120 lt_cv_deplibs_check_method=pass_all
3121 ;;
3122
3123 sysv4 | sysv4.3*)
3124 case $host_vendor in
3125 motorola)
3126 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3128 ;;
3129 ncr)
3130 lt_cv_deplibs_check_method=pass_all
3131 ;;
3132 sequent)
3133 lt_cv_file_magic_cmd='/bin/file'
3134 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3135 ;;
3136 sni)
3137 lt_cv_file_magic_cmd='/bin/file'
3138 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3139 lt_cv_file_magic_test_file=/lib/libc.so
3140 ;;
3141 siemens)
3142 lt_cv_deplibs_check_method=pass_all
3143 ;;
3144 pc)
3145 lt_cv_deplibs_check_method=pass_all
3146 ;;
3147 esac
3148 ;;
3149
3150 tpf*)
3151 lt_cv_deplibs_check_method=pass_all
3152 ;;
3153 esac
3154 ])
3155 file_magic_cmd=$lt_cv_file_magic_cmd
3156 deplibs_check_method=$lt_cv_deplibs_check_method
3157 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3158
3159 _LT_DECL([], [deplibs_check_method], [1],
3160 [Method to check whether dependent libraries are shared objects])
3161 _LT_DECL([], [file_magic_cmd], [1],
3162 [Command to use when deplibs_check_method == "file_magic"])
3163 ])# _LT_CHECK_MAGIC_METHOD
3164
3165
3166 # LT_PATH_NM
3167 # ----------
3168 # find the pathname to a BSD- or MS-compatible name lister
3169 AC_DEFUN([LT_PATH_NM],
3170 [AC_REQUIRE([AC_PROG_CC])dnl
3171 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3172 [if test -n "$NM"; then
3173 # Let the user override the test.
3174 lt_cv_path_NM="$NM"
3175 else
3176 lt_nm_to_check="${ac_tool_prefix}nm"
3177 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3178 lt_nm_to_check="$lt_nm_to_check nm"
3179 fi
3180 for lt_tmp_nm in $lt_nm_to_check; do
3181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3182 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3183 IFS="$lt_save_ifs"
3184 test -z "$ac_dir" && ac_dir=.
3185 tmp_nm="$ac_dir/$lt_tmp_nm"
3186 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3187 # Check to see if the nm accepts a BSD-compat flag.
3188 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3189 # nm: unknown option "B" ignored
3190 # Tru64's nm complains that /dev/null is an invalid object file
3191 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3192 */dev/null* | *'Invalid file or object type'*)
3193 lt_cv_path_NM="$tmp_nm -B"
3194 break
3195 ;;
3196 *)
3197 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3198 */dev/null*)
3199 lt_cv_path_NM="$tmp_nm -p"
3200 break
3201 ;;
3202 *)
3203 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3204 continue # so that we can try to find one that supports BSD flags
3205 ;;
3206 esac
3207 ;;
3208 esac
3209 fi
3210 done
3211 IFS="$lt_save_ifs"
3212 done
3213 : ${lt_cv_path_NM=no}
3214 fi])
3215 if test "$lt_cv_path_NM" != "no"; then
3216 NM="$lt_cv_path_NM"
3217 else
3218 # Didn't find any BSD compatible name lister, look for dumpbin.
3219 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3220 AC_SUBST([DUMPBIN])
3221 if test "$DUMPBIN" != ":"; then
3222 NM="$DUMPBIN"
3223 fi
3224 fi
3225 test -z "$NM" && NM=nm
3226 AC_SUBST([NM])
3227 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3228
3229 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3230 [lt_cv_nm_interface="BSD nm"
3231 echo "int some_variable = 0;" > conftest.$ac_ext
3232 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3233 (eval "$ac_compile" 2>conftest.err)
3234 cat conftest.err >&AS_MESSAGE_LOG_FD
3235 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3236 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3237 cat conftest.err >&AS_MESSAGE_LOG_FD
3238 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3239 cat conftest.out >&AS_MESSAGE_LOG_FD
3240 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3241 lt_cv_nm_interface="MS dumpbin"
3242 fi
3243 rm -f conftest*])
3244 ])# LT_PATH_NM
3245
3246 # Old names:
3247 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3248 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3249 dnl aclocal-1.4 backwards compatibility:
3250 dnl AC_DEFUN([AM_PROG_NM], [])
3251 dnl AC_DEFUN([AC_PROG_NM], [])
3252
3253
3254 # LT_LIB_M
3255 # --------
3256 # check for math library
3257 AC_DEFUN([LT_LIB_M],
3258 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3259 LIBM=
3260 case $host in
3261 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3262 # These system don't have libm, or don't need it
3263 ;;
3264 *-ncr-sysv4.3*)
3265 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3266 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3267 ;;
3268 *)
3269 AC_CHECK_LIB(m, cos, LIBM="-lm")
3270 ;;
3271 esac
3272 AC_SUBST([LIBM])
3273 ])# LT_LIB_M
3274
3275 # Old name:
3276 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3277 dnl aclocal-1.4 backwards compatibility:
3278 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3279
3280
3281 # _LT_COMPILER_NO_RTTI([TAGNAME])
3282 # -------------------------------
3283 m4_defun([_LT_COMPILER_NO_RTTI],
3284 [m4_require([_LT_TAG_COMPILER])dnl
3285
3286 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3287
3288 if test "$GCC" = yes; then
3289 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3290
3291 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3292 lt_cv_prog_compiler_rtti_exceptions,
3293 [-fno-rtti -fno-exceptions], [],
3294 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3295 fi
3296 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3297 [Compiler flag to turn off builtin functions])
3298 ])# _LT_COMPILER_NO_RTTI
3299
3300
3301 # _LT_CMD_GLOBAL_SYMBOLS
3302 # ----------------------
3303 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3304 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3305 AC_REQUIRE([AC_PROG_CC])dnl
3306 AC_REQUIRE([LT_PATH_NM])dnl
3307 AC_REQUIRE([LT_PATH_LD])dnl
3308 m4_require([_LT_DECL_SED])dnl
3309 m4_require([_LT_DECL_EGREP])dnl
3310 m4_require([_LT_TAG_COMPILER])dnl
3311
3312 # Check for command to grab the raw symbol name followed by C symbol from nm.
3313 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3314 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3315 [
3316 # These are sane defaults that work on at least a few old systems.
3317 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3318
3319 # Character class describing NM global symbol codes.
3320 symcode='[[BCDEGRST]]'
3321
3322 # Regexp to match symbols that can be accessed directly from C.
3323 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3324
3325 # Define system-specific variables.
3326 case $host_os in
3327 aix*)
3328 symcode='[[BCDT]]'
3329 ;;
3330 cygwin* | mingw* | pw32* | cegcc*)
3331 symcode='[[ABCDGISTW]]'
3332 ;;
3333 hpux*)
3334 if test "$host_cpu" = ia64; then
3335 symcode='[[ABCDEGRST]]'
3336 fi
3337 ;;
3338 irix* | nonstopux*)
3339 symcode='[[BCDEGRST]]'
3340 ;;
3341 osf*)
3342 symcode='[[BCDEGQRST]]'
3343 ;;
3344 solaris*)
3345 symcode='[[BDRT]]'
3346 ;;
3347 sco3.2v5*)
3348 symcode='[[DT]]'
3349 ;;
3350 sysv4.2uw2*)
3351 symcode='[[DT]]'
3352 ;;
3353 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3354 symcode='[[ABDT]]'
3355 ;;
3356 sysv4)
3357 symcode='[[DFNSTU]]'
3358 ;;
3359 esac
3360
3361 # If we're using GNU nm, then use its standard symbol codes.
3362 case `$NM -V 2>&1` in
3363 *GNU* | *'with BFD'*)
3364 symcode='[[ABCDGIRSTW]]' ;;
3365 esac
3366
3367 # Transform an extracted symbol line into a proper C declaration.
3368 # Some systems (esp. on ia64) link data and code symbols differently,
3369 # so use this general approach.
3370 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3371
3372 # Transform an extracted symbol line into symbol name and symbol address
3373 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3374 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3375
3376 # Handle CRLF in mingw tool chain
3377 opt_cr=
3378 case $build_os in
3379 mingw*)
3380 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3381 ;;
3382 esac
3383
3384 # Try without a prefix underscore, then with it.
3385 for ac_symprfx in "" "_"; do
3386
3387 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3388 symxfrm="\\1 $ac_symprfx\\2 \\2"
3389
3390 # Write the raw and C identifiers.
3391 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3392 # Fake it for dumpbin and say T for any non-static function
3393 # and D for any global variable.
3394 # Also find C++ and __fastcall symbols from MSVC++,
3395 # which start with @ or ?.
3396 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3397 " {last_section=section; section=\$ 3};"\
3398 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3399 " \$ 0!~/External *\|/{next};"\
3400 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3401 " {if(hide[section]) next};"\
3402 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3403 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3404 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3405 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3406 " ' prfx=^$ac_symprfx]"
3407 else
3408 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3409 fi
3410
3411 # Check to see that the pipe works correctly.
3412 pipe_works=no
3413
3414 rm -f conftest*
3415 cat > conftest.$ac_ext <<_LT_EOF
3416 #ifdef __cplusplus
3417 extern "C" {
3418 #endif
3419 char nm_test_var;
3420 void nm_test_func(void);
3421 void nm_test_func(void){}
3422 #ifdef __cplusplus
3423 }
3424 #endif
3425 int main(){nm_test_var='a';nm_test_func();return(0);}
3426 _LT_EOF
3427
3428 if AC_TRY_EVAL(ac_compile); then
3429 # Now try to grab the symbols.
3430 nlist=conftest.nm
3431 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3432 # Try sorting and uniquifying the output.
3433 if sort "$nlist" | uniq > "$nlist"T; then
3434 mv -f "$nlist"T "$nlist"
3435 else
3436 rm -f "$nlist"T
3437 fi
3438
3439 # Make sure that we snagged all the symbols we need.
3440 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3441 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3442 cat <<_LT_EOF > conftest.$ac_ext
3443 #ifdef __cplusplus
3444 extern "C" {
3445 #endif
3446
3447 _LT_EOF
3448 # Now generate the symbol file.
3449 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3450
3451 cat <<_LT_EOF >> conftest.$ac_ext
3452
3453 /* The mapping between symbol names and symbols. */
3454 const struct {
3455 const char *name;
3456 void *address;
3457 }
3458 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3459 {
3460 { "@PROGRAM@", (void *) 0 },
3461 _LT_EOF
3462 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3463 cat <<\_LT_EOF >> conftest.$ac_ext
3464 {0, (void *) 0}
3465 };
3466
3467 /* This works around a problem in FreeBSD linker */
3468 #ifdef FREEBSD_WORKAROUND
3469 static const void *lt_preloaded_setup() {
3470 return lt__PROGRAM__LTX_preloaded_symbols;
3471 }
3472 #endif
3473
3474 #ifdef __cplusplus
3475 }
3476 #endif
3477 _LT_EOF
3478 # Now try linking the two files.
3479 mv conftest.$ac_objext conftstm.$ac_objext
3480 lt_save_LIBS="$LIBS"
3481 lt_save_CFLAGS="$CFLAGS"
3482 LIBS="conftstm.$ac_objext"
3483 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3484 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3485 pipe_works=yes
3486 fi
3487 LIBS="$lt_save_LIBS"
3488 CFLAGS="$lt_save_CFLAGS"
3489 else
3490 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3491 fi
3492 else
3493 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3494 fi
3495 else
3496 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3497 fi
3498 else
3499 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3500 cat conftest.$ac_ext >&5
3501 fi
3502 rm -rf conftest* conftst*
3503
3504 # Do not use the global_symbol_pipe unless it works.
3505 if test "$pipe_works" = yes; then
3506 break
3507 else
3508 lt_cv_sys_global_symbol_pipe=
3509 fi
3510 done
3511 ])
3512 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3513 lt_cv_sys_global_symbol_to_cdecl=
3514 fi
3515 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3516 AC_MSG_RESULT(failed)
3517 else
3518 AC_MSG_RESULT(ok)
3519 fi
3520
3521 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3522 [Take the output of nm and produce a listing of raw symbols and C names])
3523 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3524 [Transform the output of nm in a proper C declaration])
3525 _LT_DECL([global_symbol_to_c_name_address],
3526 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3527 [Transform the output of nm in a C name address pair])
3528 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3529 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3530 [Transform the output of nm in a C name address pair when lib prefix is needed])
3531 ]) # _LT_CMD_GLOBAL_SYMBOLS
3532
3533
3534 # _LT_COMPILER_PIC([TAGNAME])
3535 # ---------------------------
3536 m4_defun([_LT_COMPILER_PIC],
3537 [m4_require([_LT_TAG_COMPILER])dnl
3538 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3539 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3540 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3541
3542 AC_MSG_CHECKING([for $compiler option to produce PIC])
3543 m4_if([$1], [CXX], [
3544 # C++ specific cases for pic, static, wl, etc.
3545 if test "$GXX" = yes; then
3546 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3547 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3548
3549 case $host_os in
3550 aix*)
3551 # All AIX code is PIC.
3552 if test "$host_cpu" = ia64; then
3553 # AIX 5 now supports IA64 processor
3554 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3555 fi
3556 ;;
3557
3558 amigaos*)
3559 case $host_cpu in
3560 powerpc)
3561 # see comment about AmigaOS4 .so support
3562 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3563 ;;
3564 m68k)
3565 # FIXME: we need at least 68020 code to build shared libraries, but
3566 # adding the `-m68020' flag to GCC prevents building anything better,
3567 # like `-m68040'.
3568 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3569 ;;
3570 esac
3571 ;;
3572
3573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3574 # PIC is the default for these OSes.
3575 ;;
3576 mingw* | cygwin* | os2* | pw32* | cegcc*)
3577 # This hack is so that the source file can tell whether it is being
3578 # built for inclusion in a dll (and should export symbols for example).
3579 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3580 # (--disable-auto-import) libraries
3581 m4_if([$1], [GCJ], [],
3582 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3583 ;;
3584 darwin* | rhapsody*)
3585 # PIC is the default on this platform
3586 # Common symbols not allowed in MH_DYLIB files
3587 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3588 ;;
3589 *djgpp*)
3590 # DJGPP does not support shared libraries at all
3591 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3592 ;;
3593 interix[[3-9]]*)
3594 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3595 # Instead, we relocate shared libraries at runtime.
3596 ;;
3597 sysv4*MP*)
3598 if test -d /usr/nec; then
3599 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3600 fi
3601 ;;
3602 hpux*)
3603 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3604 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3605 # sets the default TLS model and affects inlining.
3606 case $host_cpu in
3607 hppa*64*)
3608 ;;
3609 *)
3610 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3611 ;;
3612 esac
3613 ;;
3614 *qnx* | *nto*)
3615 # QNX uses GNU C++, but need to define -shared option too, otherwise
3616 # it will coredump.
3617 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3618 ;;
3619 *)
3620 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3621 ;;
3622 esac
3623 else
3624 case $host_os in
3625 aix[[4-9]]*)
3626 # All AIX code is PIC.
3627 if test "$host_cpu" = ia64; then
3628 # AIX 5 now supports IA64 processor
3629 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3630 else
3631 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3632 fi
3633 ;;
3634 chorus*)
3635 case $cc_basename in
3636 cxch68*)
3637 # Green Hills C++ Compiler
3638 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3639 ;;
3640 esac
3641 ;;
3642 dgux*)
3643 case $cc_basename in
3644 ec++*)
3645 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3646 ;;
3647 ghcx*)
3648 # Green Hills C++ Compiler
3649 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3650 ;;
3651 *)
3652 ;;
3653 esac
3654 ;;
3655 freebsd* | dragonfly*)
3656 # FreeBSD uses GNU C++
3657 ;;
3658 hpux9* | hpux10* | hpux11*)
3659 case $cc_basename in
3660 CC*)
3661 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3662 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3663 if test "$host_cpu" != ia64; then
3664 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3665 fi
3666 ;;
3667 aCC*)
3668 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3669 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3670 case $host_cpu in
3671 hppa*64*|ia64*)
3672 # +Z the default
3673 ;;
3674 *)
3675 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3676 ;;
3677 esac
3678 ;;
3679 *)
3680 ;;
3681 esac
3682 ;;
3683 interix*)
3684 # This is c89, which is MS Visual C++ (no shared libs)
3685 # Anyone wants to do a port?
3686 ;;
3687 irix5* | irix6* | nonstopux*)
3688 case $cc_basename in
3689 CC*)
3690 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3691 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3692 # CC pic flag -KPIC is the default.
3693 ;;
3694 *)
3695 ;;
3696 esac
3697 ;;
3698 linux* | k*bsd*-gnu)
3699 case $cc_basename in
3700 KCC*)
3701 # KAI C++ Compiler
3702 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3703 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3704 ;;
3705 ecpc* )
3706 # old Intel C++ for x86_64 which still supported -KPIC.
3707 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3708 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3709 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3710 ;;
3711 icpc* )
3712 # Intel C++, used to be incompatible with GCC.
3713 # ICC 10 doesn't accept -KPIC any more.
3714 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3715 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3716 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3717 ;;
3718 pgCC* | pgcpp*)
3719 # Portland Group C++ compiler
3720 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3721 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3722 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3723 ;;
3724 cxx*)
3725 # Compaq C++
3726 # Make sure the PIC flag is empty. It appears that all Alpha
3727 # Linux and Compaq Tru64 Unix objects are PIC.
3728 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3729 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3730 ;;
3731 xlc* | xlC*)
3732 # IBM XL 8.0 on PPC
3733 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3734 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3735 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3736 ;;
3737 *)
3738 case `$CC -V 2>&1 | sed 5q` in
3739 *Sun\ C*)
3740 # Sun C++ 5.9
3741 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3742 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3743 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3744 ;;
3745 esac
3746 ;;
3747 esac
3748 ;;
3749 lynxos*)
3750 ;;
3751 m88k*)
3752 ;;
3753 mvs*)
3754 case $cc_basename in
3755 cxx*)
3756 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3757 ;;
3758 *)
3759 ;;
3760 esac
3761 ;;
3762 netbsd*)
3763 ;;
3764 *qnx* | *nto*)
3765 # QNX uses GNU C++, but need to define -shared option too, otherwise
3766 # it will coredump.
3767 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3768 ;;
3769 osf3* | osf4* | osf5*)
3770 case $cc_basename in
3771 KCC*)
3772 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3773 ;;
3774 RCC*)
3775 # Rational C++ 2.4.1
3776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3777 ;;
3778 cxx*)
3779 # Digital/Compaq C++
3780 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3781 # Make sure the PIC flag is empty. It appears that all Alpha
3782 # Linux and Compaq Tru64 Unix objects are PIC.
3783 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3784 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3785 ;;
3786 *)
3787 ;;
3788 esac
3789 ;;
3790 psos*)
3791 ;;
3792 solaris*)
3793 case $cc_basename in
3794 CC*)
3795 # Sun C++ 4.2, 5.x and Centerline C++
3796 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3797 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3798 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3799 ;;
3800 gcx*)
3801 # Green Hills C++ Compiler
3802 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3803 ;;
3804 *)
3805 ;;
3806 esac
3807 ;;
3808 sunos4*)
3809 case $cc_basename in
3810 CC*)
3811 # Sun C++ 4.x
3812 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3813 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3814 ;;
3815 lcc*)
3816 # Lucid
3817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3818 ;;
3819 *)
3820 ;;
3821 esac
3822 ;;
3823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3824 case $cc_basename in
3825 CC*)
3826 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3827 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3828 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3829 ;;
3830 esac
3831 ;;
3832 tandem*)
3833 case $cc_basename in
3834 NCC*)
3835 # NonStop-UX NCC 3.20
3836 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3837 ;;
3838 *)
3839 ;;
3840 esac
3841 ;;
3842 vxworks*)
3843 ;;
3844 *)
3845 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3846 ;;
3847 esac
3848 fi
3849 ],
3850 [
3851 if test "$GCC" = yes; then
3852 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3853 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3854
3855 case $host_os in
3856 aix*)
3857 # All AIX code is PIC.
3858 if test "$host_cpu" = ia64; then
3859 # AIX 5 now supports IA64 processor
3860 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3861 fi
3862 ;;
3863
3864 amigaos*)
3865 case $host_cpu in
3866 powerpc)
3867 # see comment about AmigaOS4 .so support
3868 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3869 ;;
3870 m68k)
3871 # FIXME: we need at least 68020 code to build shared libraries, but
3872 # adding the `-m68020' flag to GCC prevents building anything better,
3873 # like `-m68040'.
3874 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3875 ;;
3876 esac
3877 ;;
3878
3879 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3880 # PIC is the default for these OSes.
3881 ;;
3882
3883 mingw* | cygwin* | pw32* | os2* | cegcc*)
3884 # This hack is so that the source file can tell whether it is being
3885 # built for inclusion in a dll (and should export symbols for example).
3886 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3887 # (--disable-auto-import) libraries
3888 m4_if([$1], [GCJ], [],
3889 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3890 ;;
3891
3892 darwin* | rhapsody*)
3893 # PIC is the default on this platform
3894 # Common symbols not allowed in MH_DYLIB files
3895 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3896 ;;
3897
3898 hpux*)
3899 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3900 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3901 # sets the default TLS model and affects inlining.
3902 case $host_cpu in
3903 hppa*64*)
3904 # +Z the default
3905 ;;
3906 *)
3907 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3908 ;;
3909 esac
3910 ;;
3911
3912 interix[[3-9]]*)
3913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3914 # Instead, we relocate shared libraries at runtime.
3915 ;;
3916
3917 msdosdjgpp*)
3918 # Just because we use GCC doesn't mean we suddenly get shared libraries
3919 # on systems that don't support them.
3920 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3921 enable_shared=no
3922 ;;
3923
3924 *nto* | *qnx*)
3925 # QNX uses GNU C++, but need to define -shared option too, otherwise
3926 # it will coredump.
3927 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3928 ;;
3929
3930 sysv4*MP*)
3931 if test -d /usr/nec; then
3932 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3933 fi
3934 ;;
3935
3936 *)
3937 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3938 ;;
3939 esac
3940 else
3941 # PORTME Check for flag to pass linker flags through the system compiler.
3942 case $host_os in
3943 aix*)
3944 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3945 if test "$host_cpu" = ia64; then
3946 # AIX 5 now supports IA64 processor
3947 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3948 else
3949 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3950 fi
3951 ;;
3952
3953 mingw* | cygwin* | pw32* | os2* | cegcc*)
3954 # This hack is so that the source file can tell whether it is being
3955 # built for inclusion in a dll (and should export symbols for example).
3956 m4_if([$1], [GCJ], [],
3957 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3958 ;;
3959
3960 hpux9* | hpux10* | hpux11*)
3961 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3963 # not for PA HP-UX.
3964 case $host_cpu in
3965 hppa*64*|ia64*)
3966 # +Z the default
3967 ;;
3968 *)
3969 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3970 ;;
3971 esac
3972 # Is there a better lt_prog_compiler_static that works with the bundled CC?
3973 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3974 ;;
3975
3976 irix5* | irix6* | nonstopux*)
3977 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3978 # PIC (with -KPIC) is the default.
3979 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3980 ;;
3981
3982 linux* | k*bsd*-gnu)
3983 case $cc_basename in
3984 # old Intel for x86_64 which still supported -KPIC.
3985 ecc*)
3986 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3987 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3988 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3989 ;;
3990 # icc used to be incompatible with GCC.
3991 # ICC 10 doesn't accept -KPIC any more.
3992 icc* | ifort*)
3993 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3994 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3995 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3996 ;;
3997 # Lahey Fortran 8.1.
3998 lf95*)
3999 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4000 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4001 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4002 ;;
4003 pgcc* | pgf77* | pgf90* | pgf95*)
4004 # Portland Group compilers (*not* the Pentium gcc compiler,
4005 # which looks to be a dead project)
4006 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4007 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4008 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4009 ;;
4010 ccc*)
4011 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4012 # All Alpha code is PIC.
4013 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4014 ;;
4015 xl*)
4016 # IBM XL C 8.0/Fortran 10.1 on PPC
4017 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4018 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4019 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4020 ;;
4021 *)
4022 case `$CC -V 2>&1 | sed 5q` in
4023 *Sun\ C*)
4024 # Sun C 5.9
4025 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4026 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4027 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4028 ;;
4029 *Sun\ F*)
4030 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4031 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4032 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4033 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4034 ;;
4035 esac
4036 ;;
4037 esac
4038 ;;
4039
4040 newsos6)
4041 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043 ;;
4044
4045 *nto* | *qnx*)
4046 # QNX uses GNU C++, but need to define -shared option too, otherwise
4047 # it will coredump.
4048 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4049 ;;
4050
4051 osf3* | osf4* | osf5*)
4052 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4053 # All OSF/1 code is PIC.
4054 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4055 ;;
4056
4057 rdos*)
4058 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4059 ;;
4060
4061 solaris*)
4062 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4063 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4064 case $cc_basename in
4065 f77* | f90* | f95*)
4066 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4067 *)
4068 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4069 esac
4070 ;;
4071
4072 sunos4*)
4073 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4074 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4075 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4076 ;;
4077
4078 sysv4 | sysv4.2uw2* | sysv4.3*)
4079 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4080 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4081 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4082 ;;
4083
4084 sysv4*MP*)
4085 if test -d /usr/nec ;then
4086 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4087 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4088 fi
4089 ;;
4090
4091 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4092 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4093 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4094 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4095 ;;
4096
4097 unicos*)
4098 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4099 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4100 ;;
4101
4102 uts4*)
4103 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4104 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4105 ;;
4106
4107 *)
4108 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4109 ;;
4110 esac
4111 fi
4112 ])
4113 case $host_os in
4114 # For platforms which do not support PIC, -DPIC is meaningless:
4115 *djgpp*)
4116 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4117 ;;
4118 *)
4119 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4120 ;;
4121 esac
4122 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4123 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4124 [How to pass a linker flag through the compiler])
4125
4126 #
4127 # Check to make sure the PIC flag actually works.
4128 #
4129 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4130 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4131 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4132 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4133 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4134 "" | " "*) ;;
4135 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4136 esac],
4137 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4138 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4139 fi
4140 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4141 [Additional compiler flags for building library objects])
4142
4143 #
4144 # Check to make sure the static flag actually works.
4145 #
4146 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4147 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4148 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4149 $lt_tmp_static_flag,
4150 [],
4151 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4152 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4153 [Compiler flag to prevent dynamic linking])
4154 ])# _LT_COMPILER_PIC
4155
4156
4157 # _LT_LINKER_SHLIBS([TAGNAME])
4158 # ----------------------------
4159 # See if the linker supports building shared libraries.
4160 m4_defun([_LT_LINKER_SHLIBS],
4161 [AC_REQUIRE([LT_PATH_LD])dnl
4162 AC_REQUIRE([LT_PATH_NM])dnl
4163 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4164 m4_require([_LT_DECL_EGREP])dnl
4165 m4_require([_LT_DECL_SED])dnl
4166 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4167 m4_require([_LT_TAG_COMPILER])dnl
4168 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4169 m4_if([$1], [CXX], [
4170 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4171 case $host_os in
4172 aix[[4-9]]*)
4173 # If we're using GNU nm, then we don't want the "-C" option.
4174 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4175 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4176 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4177 else
4178 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4179 fi
4180 ;;
4181 pw32*)
4182 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4183 ;;
4184 cygwin* | mingw* | cegcc*)
4185 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4186 ;;
4187 *)
4188 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4189 ;;
4190 esac
4191 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4192 ], [
4193 runpath_var=
4194 _LT_TAGVAR(allow_undefined_flag, $1)=
4195 _LT_TAGVAR(always_export_symbols, $1)=no
4196 _LT_TAGVAR(archive_cmds, $1)=
4197 _LT_TAGVAR(archive_expsym_cmds, $1)=
4198 _LT_TAGVAR(compiler_needs_object, $1)=no
4199 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4200 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4201 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4202 _LT_TAGVAR(hardcode_automatic, $1)=no
4203 _LT_TAGVAR(hardcode_direct, $1)=no
4204 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4206 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4207 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4208 _LT_TAGVAR(hardcode_minus_L, $1)=no
4209 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4210 _LT_TAGVAR(inherit_rpath, $1)=no
4211 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4212 _LT_TAGVAR(module_cmds, $1)=
4213 _LT_TAGVAR(module_expsym_cmds, $1)=
4214 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4215 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4216 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4217 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4218 # include_expsyms should be a list of space-separated symbols to be *always*
4219 # included in the symbol list
4220 _LT_TAGVAR(include_expsyms, $1)=
4221 # exclude_expsyms can be an extended regexp of symbols to exclude
4222 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4223 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4224 # as well as any symbol that contains `d'.
4225 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4226 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4227 # platforms (ab)use it in PIC code, but their linkers get confused if
4228 # the symbol is explicitly referenced. Since portable code cannot
4229 # rely on this symbol name, it's probably fine to never include it in
4230 # preloaded symbol tables.
4231 # Exclude shared library initialization/finalization symbols.
4232 dnl Note also adjust exclude_expsyms for C++ above.
4233 extract_expsyms_cmds=
4234
4235 case $host_os in
4236 cygwin* | mingw* | pw32* | cegcc*)
4237 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4238 # When not using gcc, we currently assume that we are using
4239 # Microsoft Visual C++.
4240 if test "$GCC" != yes; then
4241 with_gnu_ld=no
4242 fi
4243 ;;
4244 interix*)
4245 # we just hope/assume this is gcc and not c89 (= MSVC++)
4246 with_gnu_ld=yes
4247 ;;
4248 openbsd*)
4249 with_gnu_ld=no
4250 ;;
4251 esac
4252
4253 _LT_TAGVAR(ld_shlibs, $1)=yes
4254 if test "$with_gnu_ld" = yes; then
4255 # If archive_cmds runs LD, not CC, wlarc should be empty
4256 wlarc='${wl}'
4257
4258 # Set some defaults for GNU ld with shared library support. These
4259 # are reset later if shared libraries are not supported. Putting them
4260 # here allows them to be overridden if necessary.
4261 runpath_var=LD_RUN_PATH
4262 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4263 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4264 # ancient GNU ld didn't support --whole-archive et. al.
4265 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4266 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4267 else
4268 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4269 fi
4270 supports_anon_versioning=no
4271 case `$LD -v 2>&1` in
4272 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4273 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4274 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4275 *\ 2.11.*) ;; # other 2.11 versions
4276 *) supports_anon_versioning=yes ;;
4277 esac
4278
4279 # See if GNU ld supports shared libraries.
4280 case $host_os in
4281 aix[[3-9]]*)
4282 # On AIX/PPC, the GNU linker is very broken
4283 if test "$host_cpu" != ia64; then
4284 _LT_TAGVAR(ld_shlibs, $1)=no
4285 cat <<_LT_EOF 1>&2
4286
4287 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4288 *** to be unable to reliably create shared libraries on AIX.
4289 *** Therefore, libtool is disabling shared libraries support. If you
4290 *** really care for shared libraries, you may want to modify your PATH
4291 *** so that a non-GNU linker is found, and then restart.
4292
4293 _LT_EOF
4294 fi
4295 ;;
4296
4297 amigaos*)
4298 case $host_cpu in
4299 powerpc)
4300 # see comment about AmigaOS4 .so support
4301 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4302 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4303 ;;
4304 m68k)
4305 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4306 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4307 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4308 ;;
4309 esac
4310 ;;
4311
4312 beos*)
4313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4314 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4315 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4316 # support --undefined. This deserves some investigation. FIXME
4317 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4318 else
4319 _LT_TAGVAR(ld_shlibs, $1)=no
4320 fi
4321 ;;
4322
4323 cygwin* | mingw* | pw32* | cegcc*)
4324 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4325 # as there is no search path for DLLs.
4326 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4327 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4328 _LT_TAGVAR(always_export_symbols, $1)=no
4329 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4330 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4331
4332 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4333 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4334 # If the export-symbols file already is a .def file (1st line
4335 # is EXPORTS), use it as is; otherwise, prepend...
4336 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4337 cp $export_symbols $output_objdir/$soname.def;
4338 else
4339 echo EXPORTS > $output_objdir/$soname.def;
4340 cat $export_symbols >> $output_objdir/$soname.def;
4341 fi~
4342 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4343 else
4344 _LT_TAGVAR(ld_shlibs, $1)=no
4345 fi
4346 ;;
4347
4348 interix[[3-9]]*)
4349 _LT_TAGVAR(hardcode_direct, $1)=no
4350 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4351 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4352 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4353 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4354 # Instead, shared libraries are loaded at an image base (0x10000000 by
4355 # default) and relocated if they conflict, which is a slow very memory
4356 # consuming and fragmenting process. To avoid this, we pick a random,
4357 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4358 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4359 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4360 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4361 ;;
4362
4363 gnu* | linux* | tpf* | k*bsd*-gnu)
4364 tmp_diet=no
4365 if test "$host_os" = linux-dietlibc; then
4366 case $cc_basename in
4367 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4368 esac
4369 fi
4370 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4371 && test "$tmp_diet" = no
4372 then
4373 tmp_addflag=
4374 tmp_sharedflag='-shared'
4375 case $cc_basename,$host_cpu in
4376 pgcc*) # Portland Group C compiler
4377 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4378 tmp_addflag=' $pic_flag'
4379 ;;
4380 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4381 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4382 tmp_addflag=' $pic_flag -Mnomain' ;;
4383 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4384 tmp_addflag=' -i_dynamic' ;;
4385 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4386 tmp_addflag=' -i_dynamic -nofor_main' ;;
4387 ifc* | ifort*) # Intel Fortran compiler
4388 tmp_addflag=' -nofor_main' ;;
4389 lf95*) # Lahey Fortran 8.1
4390 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4391 tmp_sharedflag='--shared' ;;
4392 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4393 tmp_sharedflag='-qmkshrobj'
4394 tmp_addflag= ;;
4395 esac
4396 case `$CC -V 2>&1 | sed 5q` in
4397 *Sun\ C*) # Sun C 5.9
4398 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4399 _LT_TAGVAR(compiler_needs_object, $1)=yes
4400 tmp_sharedflag='-G' ;;
4401 *Sun\ F*) # Sun Fortran 8.3
4402 tmp_sharedflag='-G' ;;
4403 esac
4404 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4405
4406 if test "x$supports_anon_versioning" = xyes; then
4407 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4408 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4409 echo "local: *; };" >> $output_objdir/$libname.ver~
4410 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4411 fi
4412
4413 case $cc_basename in
4414 xlf*)
4415 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4416 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4417 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4418 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4419 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4420 if test "x$supports_anon_versioning" = xyes; then
4421 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4423 echo "local: *; };" >> $output_objdir/$libname.ver~
4424 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4425 fi
4426 ;;
4427 esac
4428 else
4429 _LT_TAGVAR(ld_shlibs, $1)=no
4430 fi
4431 ;;
4432
4433 netbsd*)
4434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4435 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4436 wlarc=
4437 else
4438 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4439 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4440 fi
4441 ;;
4442
4443 solaris*)
4444 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4445 _LT_TAGVAR(ld_shlibs, $1)=no
4446 cat <<_LT_EOF 1>&2
4447
4448 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4449 *** create shared libraries on Solaris systems. Therefore, libtool
4450 *** is disabling shared libraries support. We urge you to upgrade GNU
4451 *** binutils to release 2.9.1 or newer. Another option is to modify
4452 *** your PATH or compiler configuration so that the native linker is
4453 *** used, and then restart.
4454
4455 _LT_EOF
4456 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4457 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4458 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4459 else
4460 _LT_TAGVAR(ld_shlibs, $1)=no
4461 fi
4462 ;;
4463
4464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4465 case `$LD -v 2>&1` in
4466 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4467 _LT_TAGVAR(ld_shlibs, $1)=no
4468 cat <<_LT_EOF 1>&2
4469
4470 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4471 *** reliably create shared libraries on SCO systems. Therefore, libtool
4472 *** is disabling shared libraries support. We urge you to upgrade GNU
4473 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4474 *** your PATH or compiler configuration so that the native linker is
4475 *** used, and then restart.
4476
4477 _LT_EOF
4478 ;;
4479 *)
4480 # For security reasons, it is highly recommended that you always
4481 # use absolute paths for naming shared libraries, and exclude the
4482 # DT_RUNPATH tag from executables and libraries. But doing so
4483 # requires that you compile everything twice, which is a pain.
4484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4485 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4486 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4487 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4488 else
4489 _LT_TAGVAR(ld_shlibs, $1)=no
4490 fi
4491 ;;
4492 esac
4493 ;;
4494
4495 sunos4*)
4496 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4497 wlarc=
4498 _LT_TAGVAR(hardcode_direct, $1)=yes
4499 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4500 ;;
4501
4502 *)
4503 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4504 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4505 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4506 else
4507 _LT_TAGVAR(ld_shlibs, $1)=no
4508 fi
4509 ;;
4510 esac
4511
4512 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4513 runpath_var=
4514 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4515 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4516 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4517 fi
4518 else
4519 # PORTME fill in a description of your system's linker (not GNU ld)
4520 case $host_os in
4521 aix3*)
4522 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4523 _LT_TAGVAR(always_export_symbols, $1)=yes
4524 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4525 # Note: this linker hardcodes the directories in LIBPATH if there
4526 # are no directories specified by -L.
4527 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4528 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4529 # Neither direct hardcoding nor static linking is supported with a
4530 # broken collect2.
4531 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4532 fi
4533 ;;
4534
4535 aix[[4-9]]*)
4536 if test "$host_cpu" = ia64; then
4537 # On IA64, the linker does run time linking by default, so we don't
4538 # have to do anything special.
4539 aix_use_runtimelinking=no
4540 exp_sym_flag='-Bexport'
4541 no_entry_flag=""
4542 else
4543 # If we're using GNU nm, then we don't want the "-C" option.
4544 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4545 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4546 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4547 else
4548 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4549 fi
4550 aix_use_runtimelinking=no
4551
4552 # Test if we are trying to use run time linking or normal
4553 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4554 # need to do runtime linking.
4555 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4556 for ld_flag in $LDFLAGS; do
4557 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4558 aix_use_runtimelinking=yes
4559 break
4560 fi
4561 done
4562 ;;
4563 esac
4564
4565 exp_sym_flag='-bexport'
4566 no_entry_flag='-bnoentry'
4567 fi
4568
4569 # When large executables or shared objects are built, AIX ld can
4570 # have problems creating the table of contents. If linking a library
4571 # or program results in "error TOC overflow" add -mminimal-toc to
4572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4574
4575 _LT_TAGVAR(archive_cmds, $1)=''
4576 _LT_TAGVAR(hardcode_direct, $1)=yes
4577 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4578 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4579 _LT_TAGVAR(link_all_deplibs, $1)=yes
4580 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
4581
4582 if test "$GCC" = yes; then
4583 case $host_os in aix4.[[012]]|aix4.[[012]].*)
4584 # We only want to do this on AIX 4.2 and lower, the check
4585 # below for broken collect2 doesn't work under 4.3+
4586 collect2name=`${CC} -print-prog-name=collect2`
4587 if test -f "$collect2name" &&
4588 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
4589 then
4590 # We have reworked collect2
4591 :
4592 else
4593 # We have old collect2
4594 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4595 # It fails to find uninstalled libraries when the uninstalled
4596 # path is not listed in the libpath. Setting hardcode_minus_L
4597 # to unsupported forces relinking
4598 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4599 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4600 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4601 fi
4602 ;;
4603 esac
4604 shared_flag='-shared'
4605 if test "$aix_use_runtimelinking" = yes; then
4606 shared_flag="$shared_flag "'${wl}-G'
4607 fi
4608 else
4609 # not using gcc
4610 if test "$host_cpu" = ia64; then
4611 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4612 # chokes on -Wl,-G. The following line is correct:
4613 shared_flag='-G'
4614 else
4615 if test "$aix_use_runtimelinking" = yes; then
4616 shared_flag='${wl}-G'
4617 else
4618 shared_flag='${wl}-bM:SRE'
4619 fi
4620 fi
4621 fi
4622
4623 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4624 # It seems that -bexpall does not export symbols beginning with
4625 # underscore (_), so it is better to generate a list of symbols to export.
4626 _LT_TAGVAR(always_export_symbols, $1)=yes
4627 if test "$aix_use_runtimelinking" = yes; then
4628 # Warning - without using the other runtime loading flags (-brtl),
4629 # -berok will link without error, but may produce a broken library.
4630 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4631 # Determine the default libpath from the value encoded in an
4632 # empty executable.
4633 _LT_SYS_MODULE_PATH_AIX
4634 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4635 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4636 else
4637 if test "$host_cpu" = ia64; then
4638 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4639 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4640 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4641 else
4642 # Determine the default libpath from the value encoded in an
4643 # empty executable.
4644 _LT_SYS_MODULE_PATH_AIX
4645 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4646 # Warning - without using the other run time loading flags,
4647 # -berok will link without error, but may produce a broken library.
4648 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4649 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4650 # Exported symbols can be pulled into shared objects from archives
4651 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4652 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4653 # This is similar to how AIX traditionally builds its shared libraries.
4654 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4655 fi
4656 fi
4657 ;;
4658
4659 amigaos*)
4660 case $host_cpu in
4661 powerpc)
4662 # see comment about AmigaOS4 .so support
4663 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4664 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4665 ;;
4666 m68k)
4667 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4668 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4669 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4670 ;;
4671 esac
4672 ;;
4673
4674 bsdi[[45]]*)
4675 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4676 ;;
4677
4678 cygwin* | mingw* | pw32* | cegcc*)
4679 # When not using gcc, we currently assume that we are using
4680 # Microsoft Visual C++.
4681 # hardcode_libdir_flag_spec is actually meaningless, as there is
4682 # no search path for DLLs.
4683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4684 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4685 # Tell ltmain to make .lib files, not .a files.
4686 libext=lib
4687 # Tell ltmain to make .dll files, not .so files.
4688 shrext_cmds=".dll"
4689 # FIXME: Setting linknames here is a bad hack.
4690 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4691 # The linker will automatically build a .lib file if we build a DLL.
4692 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4693 # FIXME: Should let the user specify the lib program.
4694 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4695 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4696 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4697 ;;
4698
4699 darwin* | rhapsody*)
4700 _LT_DARWIN_LINKER_FEATURES($1)
4701 ;;
4702
4703 dgux*)
4704 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4705 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4706 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4707 ;;
4708
4709 freebsd1*)
4710 _LT_TAGVAR(ld_shlibs, $1)=no
4711 ;;
4712
4713 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4714 # support. Future versions do this automatically, but an explicit c++rt0.o
4715 # does not break anything, and helps significantly (at the cost of a little
4716 # extra space).
4717 freebsd2.2*)
4718 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4719 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4720 _LT_TAGVAR(hardcode_direct, $1)=yes
4721 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4722 ;;
4723
4724 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4725 freebsd2*)
4726 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4727 _LT_TAGVAR(hardcode_direct, $1)=yes
4728 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4729 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4730 ;;
4731
4732 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4733 freebsd* | dragonfly*)
4734 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4735 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4736 _LT_TAGVAR(hardcode_direct, $1)=yes
4737 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4738 ;;
4739
4740 hpux9*)
4741 if test "$GCC" = yes; then
4742 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4743 else
4744 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4745 fi
4746 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4747 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4748 _LT_TAGVAR(hardcode_direct, $1)=yes
4749
4750 # hardcode_minus_L: Not really in the search PATH,
4751 # but as the default location of the library.
4752 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4753 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4754 ;;
4755
4756 hpux10*)
4757 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4758 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4759 else
4760 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4761 fi
4762 if test "$with_gnu_ld" = no; then
4763 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4764 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4765 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4766 _LT_TAGVAR(hardcode_direct, $1)=yes
4767 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4768 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4769 # hardcode_minus_L: Not really in the search PATH,
4770 # but as the default location of the library.
4771 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4772 fi
4773 ;;
4774
4775 hpux11*)
4776 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4777 case $host_cpu in
4778 hppa*64*)
4779 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4780 ;;
4781 ia64*)
4782 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4783 ;;
4784 *)
4785 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4786 ;;
4787 esac
4788 else
4789 case $host_cpu in
4790 hppa*64*)
4791 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4792 ;;
4793 ia64*)
4794 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4795 ;;
4796 *)
4797 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4798 ;;
4799 esac
4800 fi
4801 if test "$with_gnu_ld" = no; then
4802 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4803 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4804
4805 case $host_cpu in
4806 hppa*64*|ia64*)
4807 _LT_TAGVAR(hardcode_direct, $1)=no
4808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4809 ;;
4810 *)
4811 _LT_TAGVAR(hardcode_direct, $1)=yes
4812 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4813 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4814
4815 # hardcode_minus_L: Not really in the search PATH,
4816 # but as the default location of the library.
4817 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4818 ;;
4819 esac
4820 fi
4821 ;;
4822
4823 irix5* | irix6* | nonstopux*)
4824 if test "$GCC" = yes; then
4825 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4826 # Try to use the -exported_symbol ld option, if it does not
4827 # work, assume that -exports_file does not work either and
4828 # implicitly export all symbols.
4829 save_LDFLAGS="$LDFLAGS"
4830 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4831 AC_LINK_IFELSE(int foo(void) {},
4832 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4833 )
4834 LDFLAGS="$save_LDFLAGS"
4835 else
4836 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4837 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4838 fi
4839 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4840 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4841 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4842 _LT_TAGVAR(inherit_rpath, $1)=yes
4843 _LT_TAGVAR(link_all_deplibs, $1)=yes
4844 ;;
4845
4846 netbsd*)
4847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4848 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4849 else
4850 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4851 fi
4852 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4853 _LT_TAGVAR(hardcode_direct, $1)=yes
4854 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4855 ;;
4856
4857 newsos6)
4858 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4859 _LT_TAGVAR(hardcode_direct, $1)=yes
4860 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4861 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4862 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4863 ;;
4864
4865 *nto* | *qnx*)
4866 ;;
4867
4868 openbsd*)
4869 if test -f /usr/libexec/ld.so; then
4870 _LT_TAGVAR(hardcode_direct, $1)=yes
4871 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4872 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4874 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4875 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4876 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4877 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4878 else
4879 case $host_os in
4880 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4881 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4882 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4883 ;;
4884 *)
4885 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4887 ;;
4888 esac
4889 fi
4890 else
4891 _LT_TAGVAR(ld_shlibs, $1)=no
4892 fi
4893 ;;
4894
4895 os2*)
4896 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4897 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4898 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4899 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4900 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4901 ;;
4902
4903 osf3*)
4904 if test "$GCC" = yes; then
4905 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4906 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4907 else
4908 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4909 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4910 fi
4911 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4912 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4913 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4914 ;;
4915
4916 osf4* | osf5*) # as osf3* with the addition of -msym flag
4917 if test "$GCC" = yes; then
4918 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4920 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4921 else
4922 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4923 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4924 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4925 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4926
4927 # Both c and cxx compiler support -rpath directly
4928 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4929 fi
4930 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4931 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4932 ;;
4933
4934 solaris*)
4935 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4936 if test "$GCC" = yes; then
4937 wlarc='${wl}'
4938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4939 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4940 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4941 else
4942 case `$CC -V 2>&1` in
4943 *"Compilers 5.0"*)
4944 wlarc=''
4945 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4946 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4947 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4948 ;;
4949 *)
4950 wlarc='${wl}'
4951 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4952 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4953 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4954 ;;
4955 esac
4956 fi
4957 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4958 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4959 case $host_os in
4960 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4961 *)
4962 # The compiler driver will combine and reorder linker options,
4963 # but understands `-z linker_flag'. GCC discards it without `$wl',
4964 # but is careful enough not to reorder.
4965 # Supported since Solaris 2.6 (maybe 2.5.1?)
4966 if test "$GCC" = yes; then
4967 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4968 else
4969 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4970 fi
4971 ;;
4972 esac
4973 _LT_TAGVAR(link_all_deplibs, $1)=yes
4974 ;;
4975
4976 sunos4*)
4977 if test "x$host_vendor" = xsequent; then
4978 # Use $CC to link under sequent, because it throws in some extra .o
4979 # files that make .init and .fini sections work.
4980 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4981 else
4982 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4983 fi
4984 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4985 _LT_TAGVAR(hardcode_direct, $1)=yes
4986 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4987 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4988 ;;
4989
4990 sysv4)
4991 case $host_vendor in
4992 sni)
4993 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4994 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
4995 ;;
4996 siemens)
4997 ## LD is ld it makes a PLAMLIB
4998 ## CC just makes a GrossModule.
4999 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5000 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5001 _LT_TAGVAR(hardcode_direct, $1)=no
5002 ;;
5003 motorola)
5004 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5005 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5006 ;;
5007 esac
5008 runpath_var='LD_RUN_PATH'
5009 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5010 ;;
5011
5012 sysv4.3*)
5013 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5014 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5015 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5016 ;;
5017
5018 sysv4*MP*)
5019 if test -d /usr/nec; then
5020 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5021 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5022 runpath_var=LD_RUN_PATH
5023 hardcode_runpath_var=yes
5024 _LT_TAGVAR(ld_shlibs, $1)=yes
5025 fi
5026 ;;
5027
5028 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5029 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5030 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5031 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5032 runpath_var='LD_RUN_PATH'
5033
5034 if test "$GCC" = yes; then
5035 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5036 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5037 else
5038 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5039 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5040 fi
5041 ;;
5042
5043 sysv5* | sco3.2v5* | sco5v6*)
5044 # Note: We can NOT use -z defs as we might desire, because we do not
5045 # link with -lc, and that would cause any symbols used from libc to
5046 # always be unresolved, which means just about no library would
5047 # ever link correctly. If we're not using GNU ld we use -z text
5048 # though, which does catch some bad symbols but isn't as heavy-handed
5049 # as -z defs.
5050 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5051 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5052 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5053 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5054 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5055 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5056 _LT_TAGVAR(link_all_deplibs, $1)=yes
5057 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5058 runpath_var='LD_RUN_PATH'
5059
5060 if test "$GCC" = yes; then
5061 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5062 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5063 else
5064 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5065 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5066 fi
5067 ;;
5068
5069 uts4*)
5070 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5072 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5073 ;;
5074
5075 *)
5076 _LT_TAGVAR(ld_shlibs, $1)=no
5077 ;;
5078 esac
5079
5080 if test x$host_vendor = xsni; then
5081 case $host in
5082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5083 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5084 ;;
5085 esac
5086 fi
5087 fi
5088 ])
5089 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5090 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5091
5092 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5093
5094 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5095 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5096 _LT_DECL([], [extract_expsyms_cmds], [2],
5097 [The commands to extract the exported symbol list from a shared archive])
5098
5099 #
5100 # Do we need to explicitly link libc?
5101 #
5102 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5103 x|xyes)
5104 # Assume -lc should be added
5105 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5106
5107 if test "$enable_shared" = yes && test "$GCC" = yes; then
5108 case $_LT_TAGVAR(archive_cmds, $1) in
5109 *'~'*)
5110 # FIXME: we may have to deal with multi-command sequences.
5111 ;;
5112 '$CC '*)
5113 # Test whether the compiler implicitly links with -lc since on some
5114 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5115 # to ld, don't add -lc before -lgcc.
5116 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5117 $RM conftest*
5118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5119
5120 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5121 soname=conftest
5122 lib=conftest
5123 libobjs=conftest.$ac_objext
5124 deplibs=
5125 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5126 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5127 compiler_flags=-v
5128 linker_flags=-v
5129 verstring=
5130 output_objdir=.
5131 libname=conftest
5132 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5133 _LT_TAGVAR(allow_undefined_flag, $1)=
5134 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5135 then
5136 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5137 else
5138 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5139 fi
5140 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5141 else
5142 cat conftest.err 1>&5
5143 fi
5144 $RM conftest*
5145 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5146 ;;
5147 esac
5148 fi
5149 ;;
5150 esac
5151
5152 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5153 [Whether or not to add -lc for building shared libraries])
5154 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5155 [enable_shared_with_static_runtimes], [0],
5156 [Whether or not to disallow shared libs when runtime libs are static])
5157 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5158 [Compiler flag to allow reflexive dlopens])
5159 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5160 [Compiler flag to generate shared objects directly from archives])
5161 _LT_TAGDECL([], [compiler_needs_object], [1],
5162 [Whether the compiler copes with passing no objects directly])
5163 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5164 [Create an old-style archive from a shared archive])
5165 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5166 [Create a temporary old-style archive to link instead of a shared archive])
5167 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5168 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5169 _LT_TAGDECL([], [module_cmds], [2],
5170 [Commands used to build a loadable module if different from building
5171 a shared archive.])
5172 _LT_TAGDECL([], [module_expsym_cmds], [2])
5173 _LT_TAGDECL([], [with_gnu_ld], [1],
5174 [Whether we are building with GNU ld or not])
5175 _LT_TAGDECL([], [allow_undefined_flag], [1],
5176 [Flag that allows shared libraries with undefined symbols to be built])
5177 _LT_TAGDECL([], [no_undefined_flag], [1],
5178 [Flag that enforces no undefined symbols])
5179 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5180 [Flag to hardcode $libdir into a binary during linking.
5181 This must work even if $libdir does not exist])
5182 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5183 [[If ld is used when linking, flag to hardcode $libdir into a binary
5184 during linking. This must work even if $libdir does not exist]])
5185 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5186 [Whether we need a single "-rpath" flag with a separated argument])
5187 _LT_TAGDECL([], [hardcode_direct], [0],
5188 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5189 DIR into the resulting binary])
5190 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5191 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5192 DIR into the resulting binary and the resulting library dependency is
5193 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5194 library is relocated])
5195 _LT_TAGDECL([], [hardcode_minus_L], [0],
5196 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5197 into the resulting binary])
5198 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5199 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5200 into the resulting binary])
5201 _LT_TAGDECL([], [hardcode_automatic], [0],
5202 [Set to "yes" if building a shared library automatically hardcodes DIR
5203 into the library and all subsequent libraries and executables linked
5204 against it])
5205 _LT_TAGDECL([], [inherit_rpath], [0],
5206 [Set to yes if linker adds runtime paths of dependent libraries
5207 to runtime path list])
5208 _LT_TAGDECL([], [link_all_deplibs], [0],
5209 [Whether libtool must link a program against all its dependency libraries])
5210 _LT_TAGDECL([], [fix_srcfile_path], [1],
5211 [Fix the shell variable $srcfile for the compiler])
5212 _LT_TAGDECL([], [always_export_symbols], [0],
5213 [Set to "yes" if exported symbols are required])
5214 _LT_TAGDECL([], [export_symbols_cmds], [2],
5215 [The commands to list exported symbols])
5216 _LT_TAGDECL([], [exclude_expsyms], [1],
5217 [Symbols that should not be listed in the preloaded symbols])
5218 _LT_TAGDECL([], [include_expsyms], [1],
5219 [Symbols that must always be exported])
5220 _LT_TAGDECL([], [prelink_cmds], [2],
5221 [Commands necessary for linking programs (against libraries) with templates])
5222 _LT_TAGDECL([], [file_list_spec], [1],
5223 [Specify filename containing input files])
5224 dnl FIXME: Not yet implemented
5225 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5226 dnl [Compiler flag to generate thread safe objects])
5227 ])# _LT_LINKER_SHLIBS
5228
5229
5230 # _LT_LANG_C_CONFIG([TAG])
5231 # ------------------------
5232 # Ensure that the configuration variables for a C compiler are suitably
5233 # defined. These variables are subsequently used by _LT_CONFIG to write
5234 # the compiler configuration to `libtool'.
5235 m4_defun([_LT_LANG_C_CONFIG],
5236 [m4_require([_LT_DECL_EGREP])dnl
5237 lt_save_CC="$CC"
5238 AC_LANG_PUSH(C)
5239
5240 # Source file extension for C test sources.
5241 ac_ext=c
5242
5243 # Object file extension for compiled C test sources.
5244 objext=o
5245 _LT_TAGVAR(objext, $1)=$objext
5246
5247 # Code to be used in simple compile tests
5248 lt_simple_compile_test_code="int some_variable = 0;"
5249
5250 # Code to be used in simple link tests
5251 lt_simple_link_test_code='int main(){return(0);}'
5252
5253 _LT_TAG_COMPILER
5254 # Save the default compiler, since it gets overwritten when the other
5255 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5256 compiler_DEFAULT=$CC
5257
5258 # save warnings/boilerplate of simple test code
5259 _LT_COMPILER_BOILERPLATE
5260 _LT_LINKER_BOILERPLATE
5261
5262 ## CAVEAT EMPTOR:
5263 ## There is no encapsulation within the following macros, do not change
5264 ## the running order or otherwise move them around unless you know exactly
5265 ## what you are doing...
5266 if test -n "$compiler"; then
5267 _LT_COMPILER_NO_RTTI($1)
5268 _LT_COMPILER_PIC($1)
5269 _LT_COMPILER_C_O($1)
5270 _LT_COMPILER_FILE_LOCKS($1)
5271 _LT_LINKER_SHLIBS($1)
5272 _LT_SYS_DYNAMIC_LINKER($1)
5273 _LT_LINKER_HARDCODE_LIBPATH($1)
5274 LT_SYS_DLOPEN_SELF
5275 _LT_CMD_STRIPLIB
5276
5277 # Report which library types will actually be built
5278 AC_MSG_CHECKING([if libtool supports shared libraries])
5279 AC_MSG_RESULT([$can_build_shared])
5280
5281 AC_MSG_CHECKING([whether to build shared libraries])
5282 test "$can_build_shared" = "no" && enable_shared=no
5283
5284 # On AIX, shared libraries and static libraries use the same namespace, and
5285 # are all built from PIC.
5286 case $host_os in
5287 aix3*)
5288 test "$enable_shared" = yes && enable_static=no
5289 if test -n "$RANLIB"; then
5290 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5291 postinstall_cmds='$RANLIB $lib'
5292 fi
5293 ;;
5294
5295 aix[[4-9]]*)
5296 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5297 test "$enable_shared" = yes && enable_static=no
5298 fi
5299 ;;
5300 esac
5301 AC_MSG_RESULT([$enable_shared])
5302
5303 AC_MSG_CHECKING([whether to build static libraries])
5304 # Make sure either enable_shared or enable_static is yes.
5305 test "$enable_shared" = yes || enable_static=yes
5306 AC_MSG_RESULT([$enable_static])
5307
5308 _LT_CONFIG($1)
5309 fi
5310 AC_LANG_POP
5311 CC="$lt_save_CC"
5312 ])# _LT_LANG_C_CONFIG
5313
5314
5315 # _LT_PROG_CXX
5316 # ------------
5317 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5318 # compiler, we have our own version here.
5319 m4_defun([_LT_PROG_CXX],
5320 [
5321 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5322 AC_PROG_CXX
5323 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5324 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5325 (test "X$CXX" != "Xg++"))) ; then
5326 AC_PROG_CXXCPP
5327 else
5328 _lt_caught_CXX_error=yes
5329 fi
5330 popdef([AC_MSG_ERROR])
5331 ])# _LT_PROG_CXX
5332
5333 dnl aclocal-1.4 backwards compatibility:
5334 dnl AC_DEFUN([_LT_PROG_CXX], [])
5335
5336
5337 # _LT_LANG_CXX_CONFIG([TAG])
5338 # --------------------------
5339 # Ensure that the configuration variables for a C++ compiler are suitably
5340 # defined. These variables are subsequently used by _LT_CONFIG to write
5341 # the compiler configuration to `libtool'.
5342 m4_defun([_LT_LANG_CXX_CONFIG],
5343 [AC_REQUIRE([_LT_PROG_CXX])dnl
5344 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5345 m4_require([_LT_DECL_EGREP])dnl
5346
5347 AC_LANG_PUSH(C++)
5348 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5349 _LT_TAGVAR(allow_undefined_flag, $1)=
5350 _LT_TAGVAR(always_export_symbols, $1)=no
5351 _LT_TAGVAR(archive_expsym_cmds, $1)=
5352 _LT_TAGVAR(compiler_needs_object, $1)=no
5353 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5354 _LT_TAGVAR(hardcode_direct, $1)=no
5355 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5356 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5357 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5358 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5359 _LT_TAGVAR(hardcode_minus_L, $1)=no
5360 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5361 _LT_TAGVAR(hardcode_automatic, $1)=no
5362 _LT_TAGVAR(inherit_rpath, $1)=no
5363 _LT_TAGVAR(module_cmds, $1)=
5364 _LT_TAGVAR(module_expsym_cmds, $1)=
5365 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5366 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5367 _LT_TAGVAR(no_undefined_flag, $1)=
5368 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5369 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5370
5371 # Source file extension for C++ test sources.
5372 ac_ext=cpp
5373
5374 # Object file extension for compiled C++ test sources.
5375 objext=o
5376 _LT_TAGVAR(objext, $1)=$objext
5377
5378 # No sense in running all these tests if we already determined that
5379 # the CXX compiler isn't working. Some variables (like enable_shared)
5380 # are currently assumed to apply to all compilers on this platform,
5381 # and will be corrupted by setting them based on a non-working compiler.
5382 if test "$_lt_caught_CXX_error" != yes; then
5383 # Code to be used in simple compile tests
5384 lt_simple_compile_test_code="int some_variable = 0;"
5385
5386 # Code to be used in simple link tests
5387 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5388
5389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5390 _LT_TAG_COMPILER
5391
5392 # save warnings/boilerplate of simple test code
5393 _LT_COMPILER_BOILERPLATE
5394 _LT_LINKER_BOILERPLATE
5395
5396 # Allow CC to be a program name with arguments.
5397 lt_save_CC=$CC
5398 lt_save_LD=$LD
5399 lt_save_GCC=$GCC
5400 GCC=$GXX
5401 lt_save_with_gnu_ld=$with_gnu_ld
5402 lt_save_path_LD=$lt_cv_path_LD
5403 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5404 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5405 else
5406 $as_unset lt_cv_prog_gnu_ld
5407 fi
5408 if test -n "${lt_cv_path_LDCXX+set}"; then
5409 lt_cv_path_LD=$lt_cv_path_LDCXX
5410 else
5411 $as_unset lt_cv_path_LD
5412 fi
5413 test -z "${LDCXX+set}" || LD=$LDCXX
5414 CC=${CXX-"c++"}
5415 compiler=$CC
5416 _LT_TAGVAR(compiler, $1)=$CC
5417 _LT_CC_BASENAME([$compiler])
5418
5419 if test -n "$compiler"; then
5420 # We don't want -fno-exception when compiling C++ code, so set the
5421 # no_builtin_flag separately
5422 if test "$GXX" = yes; then
5423 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5424 else
5425 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5426 fi
5427
5428 if test "$GXX" = yes; then
5429 # Set up default GNU C++ configuration
5430
5431 LT_PATH_LD
5432
5433 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5434 # archiving commands below assume that GNU ld is being used.
5435 if test "$with_gnu_ld" = yes; then
5436 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5437 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5438
5439 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5440 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5441
5442 # If archive_cmds runs LD, not CC, wlarc should be empty
5443 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5444 # investigate it a little bit more. (MM)
5445 wlarc='${wl}'
5446
5447 # ancient GNU ld didn't support --whole-archive et. al.
5448 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5449 $GREP 'no-whole-archive' > /dev/null; then
5450 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5451 else
5452 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5453 fi
5454 else
5455 with_gnu_ld=no
5456 wlarc=
5457
5458 # A generic and very simple default shared library creation
5459 # command for GNU C++ for the case where it uses the native
5460 # linker, instead of GNU ld. If possible, this setting should
5461 # overridden to take advantage of the native linker features on
5462 # the platform it is being used on.
5463 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5464 fi
5465
5466 # Commands to make compiler produce verbose output that lists
5467 # what "hidden" libraries, object files and flags are used when
5468 # linking a shared library.
5469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5470
5471 else
5472 GXX=no
5473 with_gnu_ld=no
5474 wlarc=
5475 fi
5476
5477 # PORTME: fill in a description of your system's C++ link characteristics
5478 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5479 _LT_TAGVAR(ld_shlibs, $1)=yes
5480 case $host_os in
5481 aix3*)
5482 # FIXME: insert proper C++ library support
5483 _LT_TAGVAR(ld_shlibs, $1)=no
5484 ;;
5485 aix[[4-9]]*)
5486 if test "$host_cpu" = ia64; then
5487 # On IA64, the linker does run time linking by default, so we don't
5488 # have to do anything special.
5489 aix_use_runtimelinking=no
5490 exp_sym_flag='-Bexport'
5491 no_entry_flag=""
5492 else
5493 aix_use_runtimelinking=no
5494
5495 # Test if we are trying to use run time linking or normal
5496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5497 # need to do runtime linking.
5498 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5499 for ld_flag in $LDFLAGS; do
5500 case $ld_flag in
5501 *-brtl*)
5502 aix_use_runtimelinking=yes
5503 break
5504 ;;
5505 esac
5506 done
5507 ;;
5508 esac
5509
5510 exp_sym_flag='-bexport'
5511 no_entry_flag='-bnoentry'
5512 fi
5513
5514 # When large executables or shared objects are built, AIX ld can
5515 # have problems creating the table of contents. If linking a library
5516 # or program results in "error TOC overflow" add -mminimal-toc to
5517 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5518 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5519
5520 _LT_TAGVAR(archive_cmds, $1)=''
5521 _LT_TAGVAR(hardcode_direct, $1)=yes
5522 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5523 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5524 _LT_TAGVAR(link_all_deplibs, $1)=yes
5525 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5526
5527 if test "$GXX" = yes; then
5528 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5529 # We only want to do this on AIX 4.2 and lower, the check
5530 # below for broken collect2 doesn't work under 4.3+
5531 collect2name=`${CC} -print-prog-name=collect2`
5532 if test -f "$collect2name" &&
5533 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5534 then
5535 # We have reworked collect2
5536 :
5537 else
5538 # We have old collect2
5539 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5540 # It fails to find uninstalled libraries when the uninstalled
5541 # path is not listed in the libpath. Setting hardcode_minus_L
5542 # to unsupported forces relinking
5543 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5544 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5545 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5546 fi
5547 esac
5548 shared_flag='-shared'
5549 if test "$aix_use_runtimelinking" = yes; then
5550 shared_flag="$shared_flag "'${wl}-G'
5551 fi
5552 else
5553 # not using gcc
5554 if test "$host_cpu" = ia64; then
5555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5556 # chokes on -Wl,-G. The following line is correct:
5557 shared_flag='-G'
5558 else
5559 if test "$aix_use_runtimelinking" = yes; then
5560 shared_flag='${wl}-G'
5561 else
5562 shared_flag='${wl}-bM:SRE'
5563 fi
5564 fi
5565 fi
5566
5567 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5568 # It seems that -bexpall does not export symbols beginning with
5569 # underscore (_), so it is better to generate a list of symbols to
5570 # export.
5571 _LT_TAGVAR(always_export_symbols, $1)=yes
5572 if test "$aix_use_runtimelinking" = yes; then
5573 # Warning - without using the other runtime loading flags (-brtl),
5574 # -berok will link without error, but may produce a broken library.
5575 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5576 # Determine the default libpath from the value encoded in an empty
5577 # executable.
5578 _LT_SYS_MODULE_PATH_AIX
5579 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5580
5581 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5582 else
5583 if test "$host_cpu" = ia64; then
5584 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5585 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5586 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5587 else
5588 # Determine the default libpath from the value encoded in an
5589 # empty executable.
5590 _LT_SYS_MODULE_PATH_AIX
5591 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5592 # Warning - without using the other run time loading flags,
5593 # -berok will link without error, but may produce a broken library.
5594 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5595 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5596 # Exported symbols can be pulled into shared objects from archives
5597 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5598 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5599 # This is similar to how AIX traditionally builds its shared
5600 # libraries.
5601 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5602 fi
5603 fi
5604 ;;
5605
5606 beos*)
5607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5608 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5610 # support --undefined. This deserves some investigation. FIXME
5611 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5612 else
5613 _LT_TAGVAR(ld_shlibs, $1)=no
5614 fi
5615 ;;
5616
5617 chorus*)
5618 case $cc_basename in
5619 *)
5620 # FIXME: insert proper C++ library support
5621 _LT_TAGVAR(ld_shlibs, $1)=no
5622 ;;
5623 esac
5624 ;;
5625
5626 cygwin* | mingw* | pw32* | cegcc*)
5627 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5628 # as there is no search path for DLLs.
5629 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5630 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5631 _LT_TAGVAR(always_export_symbols, $1)=no
5632 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5633
5634 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5635 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5636 # If the export-symbols file already is a .def file (1st line
5637 # is EXPORTS), use it as is; otherwise, prepend...
5638 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5639 cp $export_symbols $output_objdir/$soname.def;
5640 else
5641 echo EXPORTS > $output_objdir/$soname.def;
5642 cat $export_symbols >> $output_objdir/$soname.def;
5643 fi~
5644 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5645 else
5646 _LT_TAGVAR(ld_shlibs, $1)=no
5647 fi
5648 ;;
5649 darwin* | rhapsody*)
5650 _LT_DARWIN_LINKER_FEATURES($1)
5651 ;;
5652
5653 dgux*)
5654 case $cc_basename in
5655 ec++*)
5656 # FIXME: insert proper C++ library support
5657 _LT_TAGVAR(ld_shlibs, $1)=no
5658 ;;
5659 ghcx*)
5660 # Green Hills C++ Compiler
5661 # FIXME: insert proper C++ library support
5662 _LT_TAGVAR(ld_shlibs, $1)=no
5663 ;;
5664 *)
5665 # FIXME: insert proper C++ library support
5666 _LT_TAGVAR(ld_shlibs, $1)=no
5667 ;;
5668 esac
5669 ;;
5670
5671 freebsd[[12]]*)
5672 # C++ shared libraries reported to be fairly broken before
5673 # switch to ELF
5674 _LT_TAGVAR(ld_shlibs, $1)=no
5675 ;;
5676
5677 freebsd-elf*)
5678 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5679 ;;
5680
5681 freebsd* | dragonfly*)
5682 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5683 # conventions
5684 _LT_TAGVAR(ld_shlibs, $1)=yes
5685 ;;
5686
5687 gnu*)
5688 ;;
5689
5690 hpux9*)
5691 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5692 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5693 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5694 _LT_TAGVAR(hardcode_direct, $1)=yes
5695 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5696 # but as the default
5697 # location of the library.
5698
5699 case $cc_basename in
5700 CC*)
5701 # FIXME: insert proper C++ library support
5702 _LT_TAGVAR(ld_shlibs, $1)=no
5703 ;;
5704 aCC*)
5705 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5706 # Commands to make compiler produce verbose output that lists
5707 # what "hidden" libraries, object files and flags are used when
5708 # linking a shared library.
5709 #
5710 # There doesn't appear to be a way to prevent this compiler from
5711 # explicitly linking system object files so we need to strip them
5712 # from the output so that they don't get included in the library
5713 # dependencies.
5714 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5715 ;;
5716 *)
5717 if test "$GXX" = yes; then
5718 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5719 else
5720 # FIXME: insert proper C++ library support
5721 _LT_TAGVAR(ld_shlibs, $1)=no
5722 fi
5723 ;;
5724 esac
5725 ;;
5726
5727 hpux10*|hpux11*)
5728 if test $with_gnu_ld = no; then
5729 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5730 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5731
5732 case $host_cpu in
5733 hppa*64*|ia64*)
5734 ;;
5735 *)
5736 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5737 ;;
5738 esac
5739 fi
5740 case $host_cpu in
5741 hppa*64*|ia64*)
5742 _LT_TAGVAR(hardcode_direct, $1)=no
5743 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5744 ;;
5745 *)
5746 _LT_TAGVAR(hardcode_direct, $1)=yes
5747 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5748 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5749 # but as the default
5750 # location of the library.
5751 ;;
5752 esac
5753
5754 case $cc_basename in
5755 CC*)
5756 # FIXME: insert proper C++ library support
5757 _LT_TAGVAR(ld_shlibs, $1)=no
5758 ;;
5759 aCC*)
5760 case $host_cpu in
5761 hppa*64*)
5762 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5763 ;;
5764 ia64*)
5765 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5766 ;;
5767 *)
5768 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5769 ;;
5770 esac
5771 # Commands to make compiler produce verbose output that lists
5772 # what "hidden" libraries, object files and flags are used when
5773 # linking a shared library.
5774 #
5775 # There doesn't appear to be a way to prevent this compiler from
5776 # explicitly linking system object files so we need to strip them
5777 # from the output so that they don't get included in the library
5778 # dependencies.
5779 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5780 ;;
5781 *)
5782 if test "$GXX" = yes; then
5783 if test $with_gnu_ld = no; then
5784 case $host_cpu in
5785 hppa*64*)
5786 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5787 ;;
5788 ia64*)
5789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5790 ;;
5791 *)
5792 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5793 ;;
5794 esac
5795 fi
5796 else
5797 # FIXME: insert proper C++ library support
5798 _LT_TAGVAR(ld_shlibs, $1)=no
5799 fi
5800 ;;
5801 esac
5802 ;;
5803
5804 interix[[3-9]]*)
5805 _LT_TAGVAR(hardcode_direct, $1)=no
5806 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5807 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5808 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5809 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5810 # Instead, shared libraries are loaded at an image base (0x10000000 by
5811 # default) and relocated if they conflict, which is a slow very memory
5812 # consuming and fragmenting process. To avoid this, we pick a random,
5813 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5814 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5815 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5816 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5817 ;;
5818 irix5* | irix6*)
5819 case $cc_basename in
5820 CC*)
5821 # SGI C++
5822 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5823
5824 # Archives containing C++ object files must be created using
5825 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5826 # necessary to make sure instantiated templates are included
5827 # in the archive.
5828 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5829 ;;
5830 *)
5831 if test "$GXX" = yes; then
5832 if test "$with_gnu_ld" = no; then
5833 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5834 else
5835 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5836 fi
5837 fi
5838 _LT_TAGVAR(link_all_deplibs, $1)=yes
5839 ;;
5840 esac
5841 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5842 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5843 _LT_TAGVAR(inherit_rpath, $1)=yes
5844 ;;
5845
5846 linux* | k*bsd*-gnu)
5847 case $cc_basename in
5848 KCC*)
5849 # Kuck and Associates, Inc. (KAI) C++ Compiler
5850
5851 # KCC will only create a shared library if the output file
5852 # ends with ".so" (or ".sl" for HP-UX), so rename the library
5853 # to its proper name (with version) after linking.
5854 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5855 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5856 # Commands to make compiler produce verbose output that lists
5857 # what "hidden" libraries, object files and flags are used when
5858 # linking a shared library.
5859 #
5860 # There doesn't appear to be a way to prevent this compiler from
5861 # explicitly linking system object files so we need to strip them
5862 # from the output so that they don't get included in the library
5863 # dependencies.
5864 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5865
5866 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5867 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5868
5869 # Archives containing C++ object files must be created using
5870 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5871 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5872 ;;
5873 icpc* | ecpc* )
5874 # Intel C++
5875 with_gnu_ld=yes
5876 # version 8.0 and above of icpc choke on multiply defined symbols
5877 # if we add $predep_objects and $postdep_objects, however 7.1 and
5878 # earlier do not add the objects themselves.
5879 case `$CC -V 2>&1` in
5880 *"Version 7."*)
5881 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5882 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5883 ;;
5884 *) # Version 8.0 or newer
5885 tmp_idyn=
5886 case $host_cpu in
5887 ia64*) tmp_idyn=' -i_dynamic';;
5888 esac
5889 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5890 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5891 ;;
5892 esac
5893 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5894 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5895 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5896 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5897 ;;
5898 pgCC* | pgcpp*)
5899 # Portland Group C++ compiler
5900 case `$CC -V` in
5901 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5902 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5903 rm -rf $tpldir~
5904 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5905 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5906 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5907 rm -rf $tpldir~
5908 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5909 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5910 $RANLIB $oldlib'
5911 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5912 rm -rf $tpldir~
5913 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5914 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5915 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5916 rm -rf $tpldir~
5917 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5918 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5919 ;;
5920 *) # Version 6 will use weak symbols
5921 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5922 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5923 ;;
5924 esac
5925
5926 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5927 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5928 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5929 ;;
5930 cxx*)
5931 # Compaq C++
5932 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5933 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5934
5935 runpath_var=LD_RUN_PATH
5936 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5937 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5938
5939 # Commands to make compiler produce verbose output that lists
5940 # what "hidden" libraries, object files and flags are used when
5941 # linking a shared library.
5942 #
5943 # There doesn't appear to be a way to prevent this compiler from
5944 # explicitly linking system object files so we need to strip them
5945 # from the output so that they don't get included in the library
5946 # dependencies.
5947 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5948 ;;
5949 xl*)
5950 # IBM XL 8.0 on PPC, with GNU ld
5951 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5952 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5953 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5954 if test "x$supports_anon_versioning" = xyes; then
5955 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5956 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5957 echo "local: *; };" >> $output_objdir/$libname.ver~
5958 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5959 fi
5960 ;;
5961 *)
5962 case `$CC -V 2>&1 | sed 5q` in
5963 *Sun\ C*)
5964 # Sun C++ 5.9
5965 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5966 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5967 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5969 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5970 _LT_TAGVAR(compiler_needs_object, $1)=yes
5971
5972 # Not sure whether something based on
5973 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5974 # would be better.
5975 output_verbose_link_cmd='echo'
5976
5977 # Archives containing C++ object files must be created using
5978 # "CC -xar", where "CC" is the Sun C++ compiler. This is
5979 # necessary to make sure instantiated templates are included
5980 # in the archive.
5981 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5982 ;;
5983 esac
5984 ;;
5985 esac
5986 ;;
5987
5988 lynxos*)
5989 # FIXME: insert proper C++ library support
5990 _LT_TAGVAR(ld_shlibs, $1)=no
5991 ;;
5992
5993 m88k*)
5994 # FIXME: insert proper C++ library support
5995 _LT_TAGVAR(ld_shlibs, $1)=no
5996 ;;
5997
5998 mvs*)
5999 case $cc_basename in
6000 cxx*)
6001 # FIXME: insert proper C++ library support
6002 _LT_TAGVAR(ld_shlibs, $1)=no
6003 ;;
6004 *)
6005 # FIXME: insert proper C++ library support
6006 _LT_TAGVAR(ld_shlibs, $1)=no
6007 ;;
6008 esac
6009 ;;
6010
6011 netbsd*)
6012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6013 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6014 wlarc=
6015 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6016 _LT_TAGVAR(hardcode_direct, $1)=yes
6017 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6018 fi
6019 # Workaround some broken pre-1.5 toolchains
6020 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6021 ;;
6022
6023 *nto* | *qnx*)
6024 _LT_TAGVAR(ld_shlibs, $1)=yes
6025 ;;
6026
6027 openbsd2*)
6028 # C++ shared libraries are fairly broken
6029 _LT_TAGVAR(ld_shlibs, $1)=no
6030 ;;
6031
6032 openbsd*)
6033 if test -f /usr/libexec/ld.so; then
6034 _LT_TAGVAR(hardcode_direct, $1)=yes
6035 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6036 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6037 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6038 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6040 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6041 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6042 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6043 fi
6044 output_verbose_link_cmd=echo
6045 else
6046 _LT_TAGVAR(ld_shlibs, $1)=no
6047 fi
6048 ;;
6049
6050 osf3* | osf4* | osf5*)
6051 case $cc_basename in
6052 KCC*)
6053 # Kuck and Associates, Inc. (KAI) C++ Compiler
6054
6055 # KCC will only create a shared library if the output file
6056 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6057 # to its proper name (with version) after linking.
6058 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6059
6060 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6061 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6062
6063 # Archives containing C++ object files must be created using
6064 # the KAI C++ compiler.
6065 case $host in
6066 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6067 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6068 esac
6069 ;;
6070 RCC*)
6071 # Rational C++ 2.4.1
6072 # FIXME: insert proper C++ library support
6073 _LT_TAGVAR(ld_shlibs, $1)=no
6074 ;;
6075 cxx*)
6076 case $host in
6077 osf3*)
6078 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6079 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6081 ;;
6082 *)
6083 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6084 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6085 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6086 echo "-hidden">> $lib.exp~
6087 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6088 $RM $lib.exp'
6089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6090 ;;
6091 esac
6092
6093 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6094
6095 # Commands to make compiler produce verbose output that lists
6096 # what "hidden" libraries, object files and flags are used when
6097 # linking a shared library.
6098 #
6099 # There doesn't appear to be a way to prevent this compiler from
6100 # explicitly linking system object files so we need to strip them
6101 # from the output so that they don't get included in the library
6102 # dependencies.
6103 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6104 ;;
6105 *)
6106 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6107 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6108 case $host in
6109 osf3*)
6110 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6111 ;;
6112 *)
6113 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6114 ;;
6115 esac
6116
6117 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6118 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6119
6120 # Commands to make compiler produce verbose output that lists
6121 # what "hidden" libraries, object files and flags are used when
6122 # linking a shared library.
6123 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6124
6125 else
6126 # FIXME: insert proper C++ library support
6127 _LT_TAGVAR(ld_shlibs, $1)=no
6128 fi
6129 ;;
6130 esac
6131 ;;
6132
6133 psos*)
6134 # FIXME: insert proper C++ library support
6135 _LT_TAGVAR(ld_shlibs, $1)=no
6136 ;;
6137
6138 sunos4*)
6139 case $cc_basename in
6140 CC*)
6141 # Sun C++ 4.x
6142 # FIXME: insert proper C++ library support
6143 _LT_TAGVAR(ld_shlibs, $1)=no
6144 ;;
6145 lcc*)
6146 # Lucid
6147 # FIXME: insert proper C++ library support
6148 _LT_TAGVAR(ld_shlibs, $1)=no
6149 ;;
6150 *)
6151 # FIXME: insert proper C++ library support
6152 _LT_TAGVAR(ld_shlibs, $1)=no
6153 ;;
6154 esac
6155 ;;
6156
6157 solaris*)
6158 case $cc_basename in
6159 CC*)
6160 # Sun C++ 4.2, 5.x and Centerline C++
6161 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6162 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6163 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6164 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6165 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6166
6167 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6168 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6169 case $host_os in
6170 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6171 *)
6172 # The compiler driver will combine and reorder linker options,
6173 # but understands `-z linker_flag'.
6174 # Supported since Solaris 2.6 (maybe 2.5.1?)
6175 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6176 ;;
6177 esac
6178 _LT_TAGVAR(link_all_deplibs, $1)=yes
6179
6180 output_verbose_link_cmd='echo'
6181
6182 # Archives containing C++ object files must be created using
6183 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6184 # necessary to make sure instantiated templates are included
6185 # in the archive.
6186 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6187 ;;
6188 gcx*)
6189 # Green Hills C++ Compiler
6190 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6191
6192 # The C++ compiler must be used to create the archive.
6193 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6194 ;;
6195 *)
6196 # GNU C++ compiler with Solaris linker
6197 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6198 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6199 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6200 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6201 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6202 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6203
6204 # Commands to make compiler produce verbose output that lists
6205 # what "hidden" libraries, object files and flags are used when
6206 # linking a shared library.
6207 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6208 else
6209 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6210 # platform.
6211 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6212 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6213 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6214
6215 # Commands to make compiler produce verbose output that lists
6216 # what "hidden" libraries, object files and flags are used when
6217 # linking a shared library.
6218 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6219 fi
6220
6221 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6222 case $host_os in
6223 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6224 *)
6225 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6226 ;;
6227 esac
6228 fi
6229 ;;
6230 esac
6231 ;;
6232
6233 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6234 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6235 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6236 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6237 runpath_var='LD_RUN_PATH'
6238
6239 case $cc_basename in
6240 CC*)
6241 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6242 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6243 ;;
6244 *)
6245 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6246 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6247 ;;
6248 esac
6249 ;;
6250
6251 sysv5* | sco3.2v5* | sco5v6*)
6252 # Note: We can NOT use -z defs as we might desire, because we do not
6253 # link with -lc, and that would cause any symbols used from libc to
6254 # always be unresolved, which means just about no library would
6255 # ever link correctly. If we're not using GNU ld we use -z text
6256 # though, which does catch some bad symbols but isn't as heavy-handed
6257 # as -z defs.
6258 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6259 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6260 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6261 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6262 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6263 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6264 _LT_TAGVAR(link_all_deplibs, $1)=yes
6265 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6266 runpath_var='LD_RUN_PATH'
6267
6268 case $cc_basename in
6269 CC*)
6270 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6271 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6272 ;;
6273 *)
6274 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6275 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6276 ;;
6277 esac
6278 ;;
6279
6280 tandem*)
6281 case $cc_basename in
6282 NCC*)
6283 # NonStop-UX NCC 3.20
6284 # FIXME: insert proper C++ library support
6285 _LT_TAGVAR(ld_shlibs, $1)=no
6286 ;;
6287 *)
6288 # FIXME: insert proper C++ library support
6289 _LT_TAGVAR(ld_shlibs, $1)=no
6290 ;;
6291 esac
6292 ;;
6293
6294 vxworks*)
6295 # FIXME: insert proper C++ library support
6296 _LT_TAGVAR(ld_shlibs, $1)=no
6297 ;;
6298
6299 *)
6300 # FIXME: insert proper C++ library support
6301 _LT_TAGVAR(ld_shlibs, $1)=no
6302 ;;
6303 esac
6304
6305 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6306 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6307
6308 _LT_TAGVAR(GCC, $1)="$GXX"
6309 _LT_TAGVAR(LD, $1)="$LD"
6310
6311 ## CAVEAT EMPTOR:
6312 ## There is no encapsulation within the following macros, do not change
6313 ## the running order or otherwise move them around unless you know exactly
6314 ## what you are doing...
6315 _LT_SYS_HIDDEN_LIBDEPS($1)
6316 _LT_COMPILER_PIC($1)
6317 _LT_COMPILER_C_O($1)
6318 _LT_COMPILER_FILE_LOCKS($1)
6319 _LT_LINKER_SHLIBS($1)
6320 _LT_SYS_DYNAMIC_LINKER($1)
6321 _LT_LINKER_HARDCODE_LIBPATH($1)
6322
6323 _LT_CONFIG($1)
6324 fi # test -n "$compiler"
6325
6326 CC=$lt_save_CC
6327 LDCXX=$LD
6328 LD=$lt_save_LD
6329 GCC=$lt_save_GCC
6330 with_gnu_ld=$lt_save_with_gnu_ld
6331 lt_cv_path_LDCXX=$lt_cv_path_LD
6332 lt_cv_path_LD=$lt_save_path_LD
6333 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6334 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6335 fi # test "$_lt_caught_CXX_error" != yes
6336
6337 AC_LANG_POP
6338 ])# _LT_LANG_CXX_CONFIG
6339
6340
6341 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6342 # ---------------------------------
6343 # Figure out "hidden" library dependencies from verbose
6344 # compiler output when linking a shared library.
6345 # Parse the compiler output and extract the necessary
6346 # objects, libraries and library flags.
6347 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6348 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6349 # Dependencies to place before and after the object being linked:
6350 _LT_TAGVAR(predep_objects, $1)=
6351 _LT_TAGVAR(postdep_objects, $1)=
6352 _LT_TAGVAR(predeps, $1)=
6353 _LT_TAGVAR(postdeps, $1)=
6354 _LT_TAGVAR(compiler_lib_search_path, $1)=
6355
6356 dnl we can't use the lt_simple_compile_test_code here,
6357 dnl because it contains code intended for an executable,
6358 dnl not a library. It's possible we should let each
6359 dnl tag define a new lt_????_link_test_code variable,
6360 dnl but it's only used here...
6361 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6362 int a;
6363 void foo (void) { a = 0; }
6364 _LT_EOF
6365 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6366 class Foo
6367 {
6368 public:
6369 Foo (void) { a = 0; }
6370 private:
6371 int a;
6372 };
6373 _LT_EOF
6374 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6375 subroutine foo
6376 implicit none
6377 integer*4 a
6378 a=0
6379 return
6380 end
6381 _LT_EOF
6382 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6383 subroutine foo
6384 implicit none
6385 integer a
6386 a=0
6387 return
6388 end
6389 _LT_EOF
6390 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6391 public class foo {
6392 private int a;
6393 public void bar (void) {
6394 a = 0;
6395 }
6396 };
6397 _LT_EOF
6398 ])
6399 dnl Parse the compiler output and extract the necessary
6400 dnl objects, libraries and library flags.
6401 if AC_TRY_EVAL(ac_compile); then
6402 # Parse the compiler output and extract the necessary
6403 # objects, libraries and library flags.
6404
6405 # Sentinel used to keep track of whether or not we are before
6406 # the conftest object file.
6407 pre_test_object_deps_done=no
6408
6409 for p in `eval "$output_verbose_link_cmd"`; do
6410 case $p in
6411
6412 -L* | -R* | -l*)
6413 # Some compilers place space between "-{L,R}" and the path.
6414 # Remove the space.
6415 if test $p = "-L" ||
6416 test $p = "-R"; then
6417 prev=$p
6418 continue
6419 else
6420 prev=
6421 fi
6422
6423 if test "$pre_test_object_deps_done" = no; then
6424 case $p in
6425 -L* | -R*)
6426 # Internal compiler library paths should come after those
6427 # provided the user. The postdeps already come after the
6428 # user supplied libs so there is no need to process them.
6429 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6430 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6431 else
6432 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6433 fi
6434 ;;
6435 # The "-l" case would never come before the object being
6436 # linked, so don't bother handling this case.
6437 esac
6438 else
6439 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6440 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6441 else
6442 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6443 fi
6444 fi
6445 ;;
6446
6447 *.$objext)
6448 # This assumes that the test object file only shows up
6449 # once in the compiler output.
6450 if test "$p" = "conftest.$objext"; then
6451 pre_test_object_deps_done=yes
6452 continue
6453 fi
6454
6455 if test "$pre_test_object_deps_done" = no; then
6456 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6457 _LT_TAGVAR(predep_objects, $1)="$p"
6458 else
6459 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6460 fi
6461 else
6462 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6463 _LT_TAGVAR(postdep_objects, $1)="$p"
6464 else
6465 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6466 fi
6467 fi
6468 ;;
6469
6470 *) ;; # Ignore the rest.
6471
6472 esac
6473 done
6474
6475 # Clean up.
6476 rm -f a.out a.exe
6477 else
6478 echo "libtool.m4: error: problem compiling $1 test program"
6479 fi
6480
6481 $RM -f confest.$objext
6482
6483 # PORTME: override above test on systems where it is broken
6484 m4_if([$1], [CXX],
6485 [case $host_os in
6486 interix[[3-9]]*)
6487 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6488 # hack all around it, let's just trust "g++" to DTRT.
6489 _LT_TAGVAR(predep_objects,$1)=
6490 _LT_TAGVAR(postdep_objects,$1)=
6491 _LT_TAGVAR(postdeps,$1)=
6492 ;;
6493
6494 linux*)
6495 case `$CC -V 2>&1 | sed 5q` in
6496 *Sun\ C*)
6497 # Sun C++ 5.9
6498
6499 # The more standards-conforming stlport4 library is
6500 # incompatible with the Cstd library. Avoid specifying
6501 # it if it's in CXXFLAGS. Ignore libCrun as
6502 # -library=stlport4 depends on it.
6503 case " $CXX $CXXFLAGS " in
6504 *" -library=stlport4 "*)
6505 solaris_use_stlport4=yes
6506 ;;
6507 esac
6508
6509 if test "$solaris_use_stlport4" != yes; then
6510 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6511 fi
6512 ;;
6513 esac
6514 ;;
6515
6516 solaris*)
6517 case $cc_basename in
6518 CC*)
6519 # The more standards-conforming stlport4 library is
6520 # incompatible with the Cstd library. Avoid specifying
6521 # it if it's in CXXFLAGS. Ignore libCrun as
6522 # -library=stlport4 depends on it.
6523 case " $CXX $CXXFLAGS " in
6524 *" -library=stlport4 "*)
6525 solaris_use_stlport4=yes
6526 ;;
6527 esac
6528
6529 # Adding this requires a known-good setup of shared libraries for
6530 # Sun compiler versions before 5.6, else PIC objects from an old
6531 # archive will be linked into the output, leading to subtle bugs.
6532 if test "$solaris_use_stlport4" != yes; then
6533 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6534 fi
6535 ;;
6536 esac
6537 ;;
6538 esac
6539 ])
6540
6541 case " $_LT_TAGVAR(postdeps, $1) " in
6542 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6543 esac
6544 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6545 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6546 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6547 fi
6548 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6549 [The directories searched by this compiler when creating a shared library])
6550 _LT_TAGDECL([], [predep_objects], [1],
6551 [Dependencies to place before and after the objects being linked to
6552 create a shared library])
6553 _LT_TAGDECL([], [postdep_objects], [1])
6554 _LT_TAGDECL([], [predeps], [1])
6555 _LT_TAGDECL([], [postdeps], [1])
6556 _LT_TAGDECL([], [compiler_lib_search_path], [1],
6557 [The library search path used internally by the compiler when linking
6558 a shared library])
6559 ])# _LT_SYS_HIDDEN_LIBDEPS
6560
6561
6562 # _LT_PROG_F77
6563 # ------------
6564 # Since AC_PROG_F77 is broken, in that it returns the empty string
6565 # if there is no fortran compiler, we have our own version here.
6566 m4_defun([_LT_PROG_F77],
6567 [
6568 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6569 AC_PROG_F77
6570 if test -z "$F77" || test "X$F77" = "Xno"; then
6571 _lt_disable_F77=yes
6572 fi
6573 popdef([AC_MSG_ERROR])
6574 ])# _LT_PROG_F77
6575
6576 dnl aclocal-1.4 backwards compatibility:
6577 dnl AC_DEFUN([_LT_PROG_F77], [])
6578
6579
6580 # _LT_LANG_F77_CONFIG([TAG])
6581 # --------------------------
6582 # Ensure that the configuration variables for a Fortran 77 compiler are
6583 # suitably defined. These variables are subsequently used by _LT_CONFIG
6584 # to write the compiler configuration to `libtool'.
6585 m4_defun([_LT_LANG_F77_CONFIG],
6586 [AC_REQUIRE([_LT_PROG_F77])dnl
6587 AC_LANG_PUSH(Fortran 77)
6588
6589 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6590 _LT_TAGVAR(allow_undefined_flag, $1)=
6591 _LT_TAGVAR(always_export_symbols, $1)=no
6592 _LT_TAGVAR(archive_expsym_cmds, $1)=
6593 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6594 _LT_TAGVAR(hardcode_direct, $1)=no
6595 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6596 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6597 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6598 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6599 _LT_TAGVAR(hardcode_minus_L, $1)=no
6600 _LT_TAGVAR(hardcode_automatic, $1)=no
6601 _LT_TAGVAR(inherit_rpath, $1)=no
6602 _LT_TAGVAR(module_cmds, $1)=
6603 _LT_TAGVAR(module_expsym_cmds, $1)=
6604 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6605 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6606 _LT_TAGVAR(no_undefined_flag, $1)=
6607 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6608 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6609
6610 # Source file extension for f77 test sources.
6611 ac_ext=f
6612
6613 # Object file extension for compiled f77 test sources.
6614 objext=o
6615 _LT_TAGVAR(objext, $1)=$objext
6616
6617 # No sense in running all these tests if we already determined that
6618 # the F77 compiler isn't working. Some variables (like enable_shared)
6619 # are currently assumed to apply to all compilers on this platform,
6620 # and will be corrupted by setting them based on a non-working compiler.
6621 if test "$_lt_disable_F77" != yes; then
6622 # Code to be used in simple compile tests
6623 lt_simple_compile_test_code="\
6624 subroutine t
6625 return
6626 end
6627 "
6628
6629 # Code to be used in simple link tests
6630 lt_simple_link_test_code="\
6631 program t
6632 end
6633 "
6634
6635 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6636 _LT_TAG_COMPILER
6637
6638 # save warnings/boilerplate of simple test code
6639 _LT_COMPILER_BOILERPLATE
6640 _LT_LINKER_BOILERPLATE
6641
6642 # Allow CC to be a program name with arguments.
6643 lt_save_CC="$CC"
6644 lt_save_GCC=$GCC
6645 CC=${F77-"f77"}
6646 compiler=$CC
6647 _LT_TAGVAR(compiler, $1)=$CC
6648 _LT_CC_BASENAME([$compiler])
6649 GCC=$G77
6650 if test -n "$compiler"; then
6651 AC_MSG_CHECKING([if libtool supports shared libraries])
6652 AC_MSG_RESULT([$can_build_shared])
6653
6654 AC_MSG_CHECKING([whether to build shared libraries])
6655 test "$can_build_shared" = "no" && enable_shared=no
6656
6657 # On AIX, shared libraries and static libraries use the same namespace, and
6658 # are all built from PIC.
6659 case $host_os in
6660 aix3*)
6661 test "$enable_shared" = yes && enable_static=no
6662 if test -n "$RANLIB"; then
6663 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6664 postinstall_cmds='$RANLIB $lib'
6665 fi
6666 ;;
6667 aix[[4-9]]*)
6668 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6669 test "$enable_shared" = yes && enable_static=no
6670 fi
6671 ;;
6672 esac
6673 AC_MSG_RESULT([$enable_shared])
6674
6675 AC_MSG_CHECKING([whether to build static libraries])
6676 # Make sure either enable_shared or enable_static is yes.
6677 test "$enable_shared" = yes || enable_static=yes
6678 AC_MSG_RESULT([$enable_static])
6679
6680 _LT_TAGVAR(GCC, $1)="$G77"
6681 _LT_TAGVAR(LD, $1)="$LD"
6682
6683 ## CAVEAT EMPTOR:
6684 ## There is no encapsulation within the following macros, do not change
6685 ## the running order or otherwise move them around unless you know exactly
6686 ## what you are doing...
6687 _LT_COMPILER_PIC($1)
6688 _LT_COMPILER_C_O($1)
6689 _LT_COMPILER_FILE_LOCKS($1)
6690 _LT_LINKER_SHLIBS($1)
6691 _LT_SYS_DYNAMIC_LINKER($1)
6692 _LT_LINKER_HARDCODE_LIBPATH($1)
6693
6694 _LT_CONFIG($1)
6695 fi # test -n "$compiler"
6696
6697 GCC=$lt_save_GCC
6698 CC="$lt_save_CC"
6699 fi # test "$_lt_disable_F77" != yes
6700
6701 AC_LANG_POP
6702 ])# _LT_LANG_F77_CONFIG
6703
6704
6705 # _LT_PROG_FC
6706 # -----------
6707 # Since AC_PROG_FC is broken, in that it returns the empty string
6708 # if there is no fortran compiler, we have our own version here.
6709 m4_defun([_LT_PROG_FC],
6710 [
6711 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6712 AC_PROG_FC
6713 if test -z "$FC" || test "X$FC" = "Xno"; then
6714 _lt_disable_FC=yes
6715 fi
6716 popdef([AC_MSG_ERROR])
6717 ])# _LT_PROG_FC
6718
6719 dnl aclocal-1.4 backwards compatibility:
6720 dnl AC_DEFUN([_LT_PROG_FC], [])
6721
6722
6723 # _LT_LANG_FC_CONFIG([TAG])
6724 # -------------------------
6725 # Ensure that the configuration variables for a Fortran compiler are
6726 # suitably defined. These variables are subsequently used by _LT_CONFIG
6727 # to write the compiler configuration to `libtool'.
6728 m4_defun([_LT_LANG_FC_CONFIG],
6729 [AC_REQUIRE([_LT_PROG_FC])dnl
6730 AC_LANG_PUSH(Fortran)
6731
6732 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6733 _LT_TAGVAR(allow_undefined_flag, $1)=
6734 _LT_TAGVAR(always_export_symbols, $1)=no
6735 _LT_TAGVAR(archive_expsym_cmds, $1)=
6736 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6737 _LT_TAGVAR(hardcode_direct, $1)=no
6738 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6739 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6740 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6741 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6742 _LT_TAGVAR(hardcode_minus_L, $1)=no
6743 _LT_TAGVAR(hardcode_automatic, $1)=no
6744 _LT_TAGVAR(inherit_rpath, $1)=no
6745 _LT_TAGVAR(module_cmds, $1)=
6746 _LT_TAGVAR(module_expsym_cmds, $1)=
6747 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6748 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6749 _LT_TAGVAR(no_undefined_flag, $1)=
6750 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6751 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6752
6753 # Source file extension for fc test sources.
6754 ac_ext=${ac_fc_srcext-f}
6755
6756 # Object file extension for compiled fc test sources.
6757 objext=o
6758 _LT_TAGVAR(objext, $1)=$objext
6759
6760 # No sense in running all these tests if we already determined that
6761 # the FC compiler isn't working. Some variables (like enable_shared)
6762 # are currently assumed to apply to all compilers on this platform,
6763 # and will be corrupted by setting them based on a non-working compiler.
6764 if test "$_lt_disable_FC" != yes; then
6765 # Code to be used in simple compile tests
6766 lt_simple_compile_test_code="\
6767 subroutine t
6768 return
6769 end
6770 "
6771
6772 # Code to be used in simple link tests
6773 lt_simple_link_test_code="\
6774 program t
6775 end
6776 "
6777
6778 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6779 _LT_TAG_COMPILER
6780
6781 # save warnings/boilerplate of simple test code
6782 _LT_COMPILER_BOILERPLATE
6783 _LT_LINKER_BOILERPLATE
6784
6785 # Allow CC to be a program name with arguments.
6786 lt_save_CC="$CC"
6787 lt_save_GCC=$GCC
6788 CC=${FC-"f95"}
6789 compiler=$CC
6790 GCC=$ac_cv_fc_compiler_gnu
6791
6792 _LT_TAGVAR(compiler, $1)=$CC
6793 _LT_CC_BASENAME([$compiler])
6794
6795 if test -n "$compiler"; then
6796 AC_MSG_CHECKING([if libtool supports shared libraries])
6797 AC_MSG_RESULT([$can_build_shared])
6798
6799 AC_MSG_CHECKING([whether to build shared libraries])
6800 test "$can_build_shared" = "no" && enable_shared=no
6801
6802 # On AIX, shared libraries and static libraries use the same namespace, and
6803 # are all built from PIC.
6804 case $host_os in
6805 aix3*)
6806 test "$enable_shared" = yes && enable_static=no
6807 if test -n "$RANLIB"; then
6808 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6809 postinstall_cmds='$RANLIB $lib'
6810 fi
6811 ;;
6812 aix[[4-9]]*)
6813 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6814 test "$enable_shared" = yes && enable_static=no
6815 fi
6816 ;;
6817 esac
6818 AC_MSG_RESULT([$enable_shared])
6819
6820 AC_MSG_CHECKING([whether to build static libraries])
6821 # Make sure either enable_shared or enable_static is yes.
6822 test "$enable_shared" = yes || enable_static=yes
6823 AC_MSG_RESULT([$enable_static])
6824
6825 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6826 _LT_TAGVAR(LD, $1)="$LD"
6827
6828 ## CAVEAT EMPTOR:
6829 ## There is no encapsulation within the following macros, do not change
6830 ## the running order or otherwise move them around unless you know exactly
6831 ## what you are doing...
6832 _LT_SYS_HIDDEN_LIBDEPS($1)
6833 _LT_COMPILER_PIC($1)
6834 _LT_COMPILER_C_O($1)
6835 _LT_COMPILER_FILE_LOCKS($1)
6836 _LT_LINKER_SHLIBS($1)
6837 _LT_SYS_DYNAMIC_LINKER($1)
6838 _LT_LINKER_HARDCODE_LIBPATH($1)
6839
6840 _LT_CONFIG($1)
6841 fi # test -n "$compiler"
6842
6843 GCC=$lt_save_GCC
6844 CC="$lt_save_CC"
6845 fi # test "$_lt_disable_FC" != yes
6846
6847 AC_LANG_POP
6848 ])# _LT_LANG_FC_CONFIG
6849
6850
6851 # _LT_LANG_GCJ_CONFIG([TAG])
6852 # --------------------------
6853 # Ensure that the configuration variables for the GNU Java Compiler compiler
6854 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6855 # to write the compiler configuration to `libtool'.
6856 m4_defun([_LT_LANG_GCJ_CONFIG],
6857 [AC_REQUIRE([LT_PROG_GCJ])dnl
6858 AC_LANG_SAVE
6859
6860 # Source file extension for Java test sources.
6861 ac_ext=java
6862
6863 # Object file extension for compiled Java test sources.
6864 objext=o
6865 _LT_TAGVAR(objext, $1)=$objext
6866
6867 # Code to be used in simple compile tests
6868 lt_simple_compile_test_code="class foo {}"
6869
6870 # Code to be used in simple link tests
6871 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6872
6873 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6874 _LT_TAG_COMPILER
6875
6876 # save warnings/boilerplate of simple test code
6877 _LT_COMPILER_BOILERPLATE
6878 _LT_LINKER_BOILERPLATE
6879
6880 # Allow CC to be a program name with arguments.
6881 lt_save_CC="$CC"
6882 lt_save_GCC=$GCC
6883 GCC=yes
6884 CC=${GCJ-"gcj"}
6885 compiler=$CC
6886 _LT_TAGVAR(compiler, $1)=$CC
6887 _LT_TAGVAR(LD, $1)="$LD"
6888 _LT_CC_BASENAME([$compiler])
6889
6890 # GCJ did not exist at the time GCC didn't implicitly link libc in.
6891 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6892
6893 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6894
6895 ## CAVEAT EMPTOR:
6896 ## There is no encapsulation within the following macros, do not change
6897 ## the running order or otherwise move them around unless you know exactly
6898 ## what you are doing...
6899 if test -n "$compiler"; then
6900 _LT_COMPILER_NO_RTTI($1)
6901 _LT_COMPILER_PIC($1)
6902 _LT_COMPILER_C_O($1)
6903 _LT_COMPILER_FILE_LOCKS($1)
6904 _LT_LINKER_SHLIBS($1)
6905 _LT_LINKER_HARDCODE_LIBPATH($1)
6906
6907 _LT_CONFIG($1)
6908 fi
6909
6910 AC_LANG_RESTORE
6911
6912 GCC=$lt_save_GCC
6913 CC="$lt_save_CC"
6914 ])# _LT_LANG_GCJ_CONFIG
6915
6916
6917 # _LT_LANG_RC_CONFIG([TAG])
6918 # -------------------------
6919 # Ensure that the configuration variables for the Windows resource compiler
6920 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6921 # to write the compiler configuration to `libtool'.
6922 m4_defun([_LT_LANG_RC_CONFIG],
6923 [AC_REQUIRE([LT_PROG_RC])dnl
6924 AC_LANG_SAVE
6925
6926 # Source file extension for RC test sources.
6927 ac_ext=rc
6928
6929 # Object file extension for compiled RC test sources.
6930 objext=o
6931 _LT_TAGVAR(objext, $1)=$objext
6932
6933 # Code to be used in simple compile tests
6934 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6935
6936 # Code to be used in simple link tests
6937 lt_simple_link_test_code="$lt_simple_compile_test_code"
6938
6939 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6940 _LT_TAG_COMPILER
6941
6942 # save warnings/boilerplate of simple test code
6943 _LT_COMPILER_BOILERPLATE
6944 _LT_LINKER_BOILERPLATE
6945
6946 # Allow CC to be a program name with arguments.
6947 lt_save_CC="$CC"
6948 lt_save_GCC=$GCC
6949 GCC=
6950 CC=${RC-"windres"}
6951 compiler=$CC
6952 _LT_TAGVAR(compiler, $1)=$CC
6953 _LT_CC_BASENAME([$compiler])
6954 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6955
6956 if test -n "$compiler"; then
6957 :
6958 _LT_CONFIG($1)
6959 fi
6960
6961 GCC=$lt_save_GCC
6962 AC_LANG_RESTORE
6963 CC="$lt_save_CC"
6964 ])# _LT_LANG_RC_CONFIG
6965
6966
6967 # LT_PROG_GCJ
6968 # -----------
6969 AC_DEFUN([LT_PROG_GCJ],
6970 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6971 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6972 [AC_CHECK_TOOL(GCJ, gcj,)
6973 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6974 AC_SUBST(GCJFLAGS)])])[]dnl
6975 ])
6976
6977 # Old name:
6978 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6979 dnl aclocal-1.4 backwards compatibility:
6980 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6981
6982
6983 # LT_PROG_RC
6984 # ----------
6985 AC_DEFUN([LT_PROG_RC],
6986 [AC_CHECK_TOOL(RC, windres,)
6987 ])
6988
6989 # Old name:
6990 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
6991 dnl aclocal-1.4 backwards compatibility:
6992 dnl AC_DEFUN([LT_AC_PROG_RC], [])
6993
6994
6995 # _LT_DECL_EGREP
6996 # --------------
6997 # If we don't have a new enough Autoconf to choose the best grep
6998 # available, choose the one first in the user's PATH.
6999 m4_defun([_LT_DECL_EGREP],
7000 [AC_REQUIRE([AC_PROG_EGREP])dnl
7001 AC_REQUIRE([AC_PROG_FGREP])dnl
7002 test -z "$GREP" && GREP=grep
7003 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7004 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7005 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7006 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7007 AC_SUBST([GREP])
7008 ])
7009
7010
7011 # _LT_DECL_OBJDUMP
7012 # --------------
7013 # If we don't have a new enough Autoconf to choose the best objdump
7014 # available, choose the one first in the user's PATH.
7015 m4_defun([_LT_DECL_OBJDUMP],
7016 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7017 test -z "$OBJDUMP" && OBJDUMP=objdump
7018 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7019 AC_SUBST([OBJDUMP])
7020 ])
7021
7022
7023 # _LT_DECL_SED
7024 # ------------
7025 # Check for a fully-functional sed program, that truncates
7026 # as few characters as possible. Prefer GNU sed if found.
7027 m4_defun([_LT_DECL_SED],
7028 [AC_PROG_SED
7029 test -z "$SED" && SED=sed
7030 Xsed="$SED -e 1s/^X//"
7031 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7032 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7033 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7034 ])# _LT_DECL_SED
7035
7036 m4_ifndef([AC_PROG_SED], [
7037 ############################################################
7038 # NOTE: This macro has been submitted for inclusion into #
7039 # GNU Autoconf as AC_PROG_SED. When it is available in #
7040 # a released version of Autoconf we should remove this #
7041 # macro and use it instead. #
7042 ############################################################
7043
7044 m4_defun([AC_PROG_SED],
7045 [AC_MSG_CHECKING([for a sed that does not truncate output])
7046 AC_CACHE_VAL(lt_cv_path_SED,
7047 [# Loop through the user's path and test for sed and gsed.
7048 # Then use that list of sed's as ones to test for truncation.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for lt_ac_prog in sed gsed; do
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7057 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7058 fi
7059 done
7060 done
7061 done
7062 IFS=$as_save_IFS
7063 lt_ac_max=0
7064 lt_ac_count=0
7065 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7066 # along with /bin/sed that truncates output.
7067 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7068 test ! -f $lt_ac_sed && continue
7069 cat /dev/null > conftest.in
7070 lt_ac_count=0
7071 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7072 # Check for GNU sed and select it if it is found.
7073 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7074 lt_cv_path_SED=$lt_ac_sed
7075 break
7076 fi
7077 while true; do
7078 cat conftest.in conftest.in >conftest.tmp
7079 mv conftest.tmp conftest.in
7080 cp conftest.in conftest.nl
7081 echo >>conftest.nl
7082 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7083 cmp -s conftest.out conftest.nl || break
7084 # 10000 chars as input seems more than enough
7085 test $lt_ac_count -gt 10 && break
7086 lt_ac_count=`expr $lt_ac_count + 1`
7087 if test $lt_ac_count -gt $lt_ac_max; then
7088 lt_ac_max=$lt_ac_count
7089 lt_cv_path_SED=$lt_ac_sed
7090 fi
7091 done
7092 done
7093 ])
7094 SED=$lt_cv_path_SED
7095 AC_SUBST([SED])
7096 AC_MSG_RESULT([$SED])
7097 ])#AC_PROG_SED
7098 ])#m4_ifndef
7099
7100 # Old name:
7101 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7102 dnl aclocal-1.4 backwards compatibility:
7103 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7104
7105
7106 # _LT_CHECK_SHELL_FEATURES
7107 # ------------------------
7108 # Find out whether the shell is Bourne or XSI compatible,
7109 # or has some other useful features.
7110 m4_defun([_LT_CHECK_SHELL_FEATURES],
7111 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7112 # Try some XSI features
7113 xsi_shell=no
7114 ( _lt_dummy="a/b/c"
7115 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7116 = c,a/b,, \
7117 && eval 'test $(( 1 + 1 )) -eq 2 \
7118 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7119 && xsi_shell=yes
7120 AC_MSG_RESULT([$xsi_shell])
7121 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7122
7123 AC_MSG_CHECKING([whether the shell understands "+="])
7124 lt_shell_append=no
7125 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7126 >/dev/null 2>&1 \
7127 && lt_shell_append=yes
7128 AC_MSG_RESULT([$lt_shell_append])
7129 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7130
7131 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7132 lt_unset=unset
7133 else
7134 lt_unset=false
7135 fi
7136 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7137
7138 # test EBCDIC or ASCII
7139 case `echo X|tr X '\101'` in
7140 A) # ASCII based system
7141 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7142 lt_SP2NL='tr \040 \012'
7143 lt_NL2SP='tr \015\012 \040\040'
7144 ;;
7145 *) # EBCDIC based system
7146 lt_SP2NL='tr \100 \n'
7147 lt_NL2SP='tr \r\n \100\100'
7148 ;;
7149 esac
7150 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7151 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7152 ])# _LT_CHECK_SHELL_FEATURES
7153
7154
7155 # _LT_PROG_XSI_SHELLFNS
7156 # ---------------------
7157 # Bourne and XSI compatible variants of some useful shell functions.
7158 m4_defun([_LT_PROG_XSI_SHELLFNS],
7159 [case $xsi_shell in
7160 yes)
7161 cat << \_LT_EOF >> "$cfgfile"
7162
7163 # func_dirname file append nondir_replacement
7164 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7165 # otherwise set result to NONDIR_REPLACEMENT.
7166 func_dirname ()
7167 {
7168 case ${1} in
7169 */*) func_dirname_result="${1%/*}${2}" ;;
7170 * ) func_dirname_result="${3}" ;;
7171 esac
7172 }
7173
7174 # func_basename file
7175 func_basename ()
7176 {
7177 func_basename_result="${1##*/}"
7178 }
7179
7180 # func_dirname_and_basename file append nondir_replacement
7181 # perform func_basename and func_dirname in a single function
7182 # call:
7183 # dirname: Compute the dirname of FILE. If nonempty,
7184 # add APPEND to the result, otherwise set result
7185 # to NONDIR_REPLACEMENT.
7186 # value returned in "$func_dirname_result"
7187 # basename: Compute filename of FILE.
7188 # value retuned in "$func_basename_result"
7189 # Implementation must be kept synchronized with func_dirname
7190 # and func_basename. For efficiency, we do not delegate to
7191 # those functions but instead duplicate the functionality here.
7192 func_dirname_and_basename ()
7193 {
7194 case ${1} in
7195 */*) func_dirname_result="${1%/*}${2}" ;;
7196 * ) func_dirname_result="${3}" ;;
7197 esac
7198 func_basename_result="${1##*/}"
7199 }
7200
7201 # func_stripname prefix suffix name
7202 # strip PREFIX and SUFFIX off of NAME.
7203 # PREFIX and SUFFIX must not contain globbing or regex special
7204 # characters, hashes, percent signs, but SUFFIX may contain a leading
7205 # dot (in which case that matches only a dot).
7206 func_stripname ()
7207 {
7208 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7209 # positional parameters, so assign one to ordinary parameter first.
7210 func_stripname_result=${3}
7211 func_stripname_result=${func_stripname_result#"${1}"}
7212 func_stripname_result=${func_stripname_result%"${2}"}
7213 }
7214
7215 # func_opt_split
7216 func_opt_split ()
7217 {
7218 func_opt_split_opt=${1%%=*}
7219 func_opt_split_arg=${1#*=}
7220 }
7221
7222 # func_lo2o object
7223 func_lo2o ()
7224 {
7225 case ${1} in
7226 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7227 *) func_lo2o_result=${1} ;;
7228 esac
7229 }
7230
7231 # func_xform libobj-or-source
7232 func_xform ()
7233 {
7234 func_xform_result=${1%.*}.lo
7235 }
7236
7237 # func_arith arithmetic-term...
7238 func_arith ()
7239 {
7240 func_arith_result=$(( $[*] ))
7241 }
7242
7243 # func_len string
7244 # STRING may not start with a hyphen.
7245 func_len ()
7246 {
7247 func_len_result=${#1}
7248 }
7249
7250 _LT_EOF
7251 ;;
7252 *) # Bourne compatible functions.
7253 cat << \_LT_EOF >> "$cfgfile"
7254
7255 # func_dirname file append nondir_replacement
7256 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7257 # otherwise set result to NONDIR_REPLACEMENT.
7258 func_dirname ()
7259 {
7260 # Extract subdirectory from the argument.
7261 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7262 if test "X$func_dirname_result" = "X${1}"; then
7263 func_dirname_result="${3}"
7264 else
7265 func_dirname_result="$func_dirname_result${2}"
7266 fi
7267 }
7268
7269 # func_basename file
7270 func_basename ()
7271 {
7272 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7273 }
7274
7275 dnl func_dirname_and_basename
7276 dnl A portable version of this function is already defined in general.m4sh
7277 dnl so there is no need for it here.
7278
7279 # func_stripname prefix suffix name
7280 # strip PREFIX and SUFFIX off of NAME.
7281 # PREFIX and SUFFIX must not contain globbing or regex special
7282 # characters, hashes, percent signs, but SUFFIX may contain a leading
7283 # dot (in which case that matches only a dot).
7284 # func_strip_suffix prefix name
7285 func_stripname ()
7286 {
7287 case ${2} in
7288 .*) func_stripname_result=`$ECHO "X${3}" \
7289 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7290 *) func_stripname_result=`$ECHO "X${3}" \
7291 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7292 esac
7293 }
7294
7295 # sed scripts:
7296 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7297 my_sed_long_arg='1s/^-[[^=]]*=//'
7298
7299 # func_opt_split
7300 func_opt_split ()
7301 {
7302 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7303 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7304 }
7305
7306 # func_lo2o object
7307 func_lo2o ()
7308 {
7309 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7310 }
7311
7312 # func_xform libobj-or-source
7313 func_xform ()
7314 {
7315 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7316 }
7317
7318 # func_arith arithmetic-term...
7319 func_arith ()
7320 {
7321 func_arith_result=`expr "$[@]"`
7322 }
7323
7324 # func_len string
7325 # STRING may not start with a hyphen.
7326 func_len ()
7327 {
7328 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7329 }
7330
7331 _LT_EOF
7332 esac
7333
7334 case $lt_shell_append in
7335 yes)
7336 cat << \_LT_EOF >> "$cfgfile"
7337
7338 # func_append var value
7339 # Append VALUE to the end of shell variable VAR.
7340 func_append ()
7341 {
7342 eval "$[1]+=\$[2]"
7343 }
7344 _LT_EOF
7345 ;;
7346 *)
7347 cat << \_LT_EOF >> "$cfgfile"
7348
7349 # func_append var value
7350 # Append VALUE to the end of shell variable VAR.
7351 func_append ()
7352 {
7353 eval "$[1]=\$$[1]\$[2]"
7354 }
7355
7356 _LT_EOF
7357 ;;
7358 esac
7359 ])
0 # Helper functions for option handling. -*- Autoconf -*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltoptions.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
13
14
15 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
16 # ------------------------------------------
17 m4_define([_LT_MANGLE_OPTION],
18 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
19
20
21 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
22 # ---------------------------------------
23 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
24 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
25 # saved as a flag.
26 m4_define([_LT_SET_OPTION],
27 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
28 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
29 _LT_MANGLE_DEFUN([$1], [$2]),
30 [m4_warning([Unknown $1 option `$2'])])[]dnl
31 ])
32
33
34 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
35 # ------------------------------------------------------------
36 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
37 m4_define([_LT_IF_OPTION],
38 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
39
40
41 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
42 # -------------------------------------------------------
43 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
44 # are set.
45 m4_define([_LT_UNLESS_OPTIONS],
46 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
47 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
48 [m4_define([$0_found])])])[]dnl
49 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
50 ])[]dnl
51 ])
52
53
54 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
55 # ----------------------------------------
56 # OPTION-LIST is a space-separated list of Libtool options associated
57 # with MACRO-NAME. If any OPTION has a matching handler declared with
58 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
59 # the unknown option and exit.
60 m4_defun([_LT_SET_OPTIONS],
61 [# Set options
62 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
63 [_LT_SET_OPTION([$1], _LT_Option)])
64
65 m4_if([$1],[LT_INIT],[
66 dnl
67 dnl Simply set some default values (i.e off) if boolean options were not
68 dnl specified:
69 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
70 ])
71 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
72 ])
73 dnl
74 dnl If no reference was made to various pairs of opposing options, then
75 dnl we run the default mode handler for the pair. For example, if neither
76 dnl `shared' nor `disable-shared' was passed, we enable building of shared
77 dnl archives by default:
78 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
79 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
80 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
82 [_LT_ENABLE_FAST_INSTALL])
83 ])
84 ])# _LT_SET_OPTIONS
85
86
87 ## --------------------------------- ##
88 ## Macros to handle LT_INIT options. ##
89 ## --------------------------------- ##
90
91 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
92 # -----------------------------------------
93 m4_define([_LT_MANGLE_DEFUN],
94 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
95
96
97 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
98 # -----------------------------------------------
99 m4_define([LT_OPTION_DEFINE],
100 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
101 ])# LT_OPTION_DEFINE
102
103
104 # dlopen
105 # ------
106 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
107 ])
108
109 AU_DEFUN([AC_LIBTOOL_DLOPEN],
110 [_LT_SET_OPTION([LT_INIT], [dlopen])
111 AC_DIAGNOSE([obsolete],
112 [$0: Remove this warning and the call to _LT_SET_OPTION when you
113 put the `dlopen' option into LT_INIT's first parameter.])
114 ])
115
116 dnl aclocal-1.4 backwards compatibility:
117 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
118
119
120 # win32-dll
121 # ---------
122 # Declare package support for building win32 dll's.
123 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
124 [enable_win32_dll=yes
125
126 case $host in
127 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
128 AC_CHECK_TOOL(AS, as, false)
129 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
130 AC_CHECK_TOOL(OBJDUMP, objdump, false)
131 ;;
132 esac
133
134 test -z "$AS" && AS=as
135 _LT_DECL([], [AS], [0], [Assembler program])dnl
136
137 test -z "$DLLTOOL" && DLLTOOL=dlltool
138 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
139
140 test -z "$OBJDUMP" && OBJDUMP=objdump
141 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
142 ])# win32-dll
143
144 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
145 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
146 _LT_SET_OPTION([LT_INIT], [win32-dll])
147 AC_DIAGNOSE([obsolete],
148 [$0: Remove this warning and the call to _LT_SET_OPTION when you
149 put the `win32-dll' option into LT_INIT's first parameter.])
150 ])
151
152 dnl aclocal-1.4 backwards compatibility:
153 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
154
155
156 # _LT_ENABLE_SHARED([DEFAULT])
157 # ----------------------------
158 # implement the --enable-shared flag, and supports the `shared' and
159 # `disable-shared' LT_INIT options.
160 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
161 m4_define([_LT_ENABLE_SHARED],
162 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
163 AC_ARG_ENABLE([shared],
164 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
165 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
166 [p=${PACKAGE-default}
167 case $enableval in
168 yes) enable_shared=yes ;;
169 no) enable_shared=no ;;
170 *)
171 enable_shared=no
172 # Look at the argument we got. We use all the common list separators.
173 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
174 for pkg in $enableval; do
175 IFS="$lt_save_ifs"
176 if test "X$pkg" = "X$p"; then
177 enable_shared=yes
178 fi
179 done
180 IFS="$lt_save_ifs"
181 ;;
182 esac],
183 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
184
185 _LT_DECL([build_libtool_libs], [enable_shared], [0],
186 [Whether or not to build shared libraries])
187 ])# _LT_ENABLE_SHARED
188
189 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
190 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
191
192 # Old names:
193 AC_DEFUN([AC_ENABLE_SHARED],
194 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
195 ])
196
197 AC_DEFUN([AC_DISABLE_SHARED],
198 [_LT_SET_OPTION([LT_INIT], [disable-shared])
199 ])
200
201 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
202 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
203
204 dnl aclocal-1.4 backwards compatibility:
205 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
206 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
207
208
209
210 # _LT_ENABLE_STATIC([DEFAULT])
211 # ----------------------------
212 # implement the --enable-static flag, and support the `static' and
213 # `disable-static' LT_INIT options.
214 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
215 m4_define([_LT_ENABLE_STATIC],
216 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
217 AC_ARG_ENABLE([static],
218 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
219 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
220 [p=${PACKAGE-default}
221 case $enableval in
222 yes) enable_static=yes ;;
223 no) enable_static=no ;;
224 *)
225 enable_static=no
226 # Look at the argument we got. We use all the common list separators.
227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
228 for pkg in $enableval; do
229 IFS="$lt_save_ifs"
230 if test "X$pkg" = "X$p"; then
231 enable_static=yes
232 fi
233 done
234 IFS="$lt_save_ifs"
235 ;;
236 esac],
237 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
238
239 _LT_DECL([build_old_libs], [enable_static], [0],
240 [Whether or not to build static libraries])
241 ])# _LT_ENABLE_STATIC
242
243 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
244 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
245
246 # Old names:
247 AC_DEFUN([AC_ENABLE_STATIC],
248 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
249 ])
250
251 AC_DEFUN([AC_DISABLE_STATIC],
252 [_LT_SET_OPTION([LT_INIT], [disable-static])
253 ])
254
255 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
256 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
257
258 dnl aclocal-1.4 backwards compatibility:
259 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
260 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
261
262
263
264 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
265 # ----------------------------------
266 # implement the --enable-fast-install flag, and support the `fast-install'
267 # and `disable-fast-install' LT_INIT options.
268 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
269 m4_define([_LT_ENABLE_FAST_INSTALL],
270 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
271 AC_ARG_ENABLE([fast-install],
272 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
273 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
274 [p=${PACKAGE-default}
275 case $enableval in
276 yes) enable_fast_install=yes ;;
277 no) enable_fast_install=no ;;
278 *)
279 enable_fast_install=no
280 # Look at the argument we got. We use all the common list separators.
281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
282 for pkg in $enableval; do
283 IFS="$lt_save_ifs"
284 if test "X$pkg" = "X$p"; then
285 enable_fast_install=yes
286 fi
287 done
288 IFS="$lt_save_ifs"
289 ;;
290 esac],
291 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
292
293 _LT_DECL([fast_install], [enable_fast_install], [0],
294 [Whether or not to optimize for fast installation])dnl
295 ])# _LT_ENABLE_FAST_INSTALL
296
297 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
298 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
299
300 # Old names:
301 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
302 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
303 AC_DIAGNOSE([obsolete],
304 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
305 the `fast-install' option into LT_INIT's first parameter.])
306 ])
307
308 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
309 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
310 AC_DIAGNOSE([obsolete],
311 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
312 the `disable-fast-install' option into LT_INIT's first parameter.])
313 ])
314
315 dnl aclocal-1.4 backwards compatibility:
316 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
317 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
318
319
320 # _LT_WITH_PIC([MODE])
321 # --------------------
322 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
323 # LT_INIT options.
324 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
325 m4_define([_LT_WITH_PIC],
326 [AC_ARG_WITH([pic],
327 [AS_HELP_STRING([--with-pic],
328 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
329 [pic_mode="$withval"],
330 [pic_mode=default])
331
332 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
333
334 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
335 ])# _LT_WITH_PIC
336
337 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
338 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
339
340 # Old name:
341 AU_DEFUN([AC_LIBTOOL_PICMODE],
342 [_LT_SET_OPTION([LT_INIT], [pic-only])
343 AC_DIAGNOSE([obsolete],
344 [$0: Remove this warning and the call to _LT_SET_OPTION when you
345 put the `pic-only' option into LT_INIT's first parameter.])
346 ])
347
348 dnl aclocal-1.4 backwards compatibility:
349 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
350
351 ## ----------------- ##
352 ## LTDL_INIT Options ##
353 ## ----------------- ##
354
355 m4_define([_LTDL_MODE], [])
356 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
357 [m4_define([_LTDL_MODE], [nonrecursive])])
358 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
359 [m4_define([_LTDL_MODE], [recursive])])
360 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
361 [m4_define([_LTDL_MODE], [subproject])])
362
363 m4_define([_LTDL_TYPE], [])
364 LT_OPTION_DEFINE([LTDL_INIT], [installable],
365 [m4_define([_LTDL_TYPE], [installable])])
366 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
367 [m4_define([_LTDL_TYPE], [convenience])])
0 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltsugar.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
13
14
15 # lt_join(SEP, ARG1, [ARG2...])
16 # -----------------------------
17 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
18 # associated separator.
19 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
20 # versions in m4sugar had bugs.
21 m4_define([lt_join],
22 [m4_if([$#], [1], [],
23 [$#], [2], [[$2]],
24 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
25 m4_define([_lt_join],
26 [m4_if([$#$2], [2], [],
27 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
28
29
30 # lt_car(LIST)
31 # lt_cdr(LIST)
32 # ------------
33 # Manipulate m4 lists.
34 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 m4_define([lt_car], [[$1]])
37 m4_define([lt_cdr],
38 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
39 [$#], 1, [],
40 [m4_dquote(m4_shift($@))])])
41 m4_define([lt_unquote], $1)
42
43
44 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
45 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Note that neither SEPARATOR nor STRING are expanded; they are appended
48 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
49 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
50 # than defined and empty).
51 #
52 # This macro is needed until we can rely on Autoconf 2.62, since earlier
53 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
54 m4_define([lt_append],
55 [m4_define([$1],
56 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
57
58
59
60 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
61 # ----------------------------------------------------------
62 # Produce a SEP delimited list of all paired combinations of elements of
63 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
64 # has the form PREFIXmINFIXSUFFIXn.
65 # Needed until we can rely on m4_combine added in Autoconf 2.62.
66 m4_define([lt_combine],
67 [m4_if(m4_eval([$# > 3]), [1],
68 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
69 [[m4_foreach([_Lt_prefix], [$2],
70 [m4_foreach([_Lt_suffix],
71 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
72 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
73
74
75 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
76 # -----------------------------------------------------------------------
77 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
78 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
79 m4_define([lt_if_append_uniq],
80 [m4_ifdef([$1],
81 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
82 [lt_append([$1], [$2], [$3])$4],
83 [$5])],
84 [lt_append([$1], [$2], [$3])$4])])
85
86
87 # lt_dict_add(DICT, KEY, VALUE)
88 # -----------------------------
89 m4_define([lt_dict_add],
90 [m4_define([$1($2)], [$3])])
91
92
93 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
94 # --------------------------------------------
95 m4_define([lt_dict_add_subkey],
96 [m4_define([$1($2:$3)], [$4])])
97
98
99 # lt_dict_fetch(DICT, KEY, [SUBKEY])
100 # ----------------------------------
101 m4_define([lt_dict_fetch],
102 [m4_ifval([$3],
103 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
104 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
105
106
107 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
108 # -----------------------------------------------------------------
109 m4_define([lt_if_dict_fetch],
110 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
111 [$5],
112 [$6])])
113
114
115 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
116 # --------------------------------------------------------------
117 m4_define([lt_dict_filter],
118 [m4_if([$5], [], [],
119 [lt_join(m4_quote(m4_default([$4], [[, ]])),
120 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
121 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
122 ])
0 # ltversion.m4 -- version numbers -*- Autoconf -*-
1 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # Generated from ltversion.in.
10
11 # serial 3017 ltversion.m4
12 # This file is part of GNU Libtool
13
14 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
15 m4_define([LT_PACKAGE_REVISION], [1.3017])
16
17 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.2.6b'
19 macro_revision='1.3017'
20 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
21 _LT_DECL(, macro_revision, 0)
22 ])
0 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004.
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 4 lt~obsolete.m4
10
11 # These exist entirely to fool aclocal when bootstrapping libtool.
12 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # which have later been changed to m4_define as they aren't part of the
15 # exported API, or moved to Autoconf or Automake where they belong.
16 #
17 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
18 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
19 # using a macro with the same name in our local m4/libtool.m4 it'll
20 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
21 # and doesn't know about Autoconf macros at all.)
22 #
23 # So we provide this file, which has a silly filename so it's always
24 # included after everything else. This provides aclocal with the
25 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
26 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 #
29 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
30 # Yes, that means every name once taken will need to remain here until
31 # we give up compatibility with versions before 1.7, at which point
32 # we need to keep only those names which we still refer to.
33
34 # This is to help aclocal find these macros, as it can't see m4_define.
35 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
36
37 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
38 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
39 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
40 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
41 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
42 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
43 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
44 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
45 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
46 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
47 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
48 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
49 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
50 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
51 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
52 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
53 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
54 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
55 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
56 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
57 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
58 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
59 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
60 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
61 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
62 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
63 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
64 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
65 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
66 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
67 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
68 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
69 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
70 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
71 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
72 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
73 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
74 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
75 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
76 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
77 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
78 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
79 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
80 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
81 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
82 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
83 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
84 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
85 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
86 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
87 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
88 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
89 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
90 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
91 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
0 # Makefile.in generated by automake 1.11 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
3535 subdir = man
3636 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
3737 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
39 $(top_srcdir)/configure.ac
38 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
39 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
40 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
41 $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
4042 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4143 $(ACLOCAL_M4)
4244 mkinstalldirs = $(install_sh) -d
4345 CONFIG_HEADER = $(top_builddir)/config.h
4446 CONFIG_CLEAN_FILES =
4547 CONFIG_CLEAN_VPATH_FILES =
48 AM_V_GEN = $(am__v_GEN_$(V))
49 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
50 am__v_GEN_0 = @echo " GEN " $@;
51 AM_V_at = $(am__v_at_$(V))
52 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
53 am__v_at_0 = @
4654 SOURCES =
4755 DIST_SOURCES =
4856 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
7280 MANS = $(man_MANS)
7381 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
7482 ACLOCAL = @ACLOCAL@
83 ALL_LINGUAS = @ALL_LINGUAS@
7584 AMTAR = @AMTAR@
85 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
7686 AR = @AR@
7787 AUTOCONF = @AUTOCONF@
7888 AUTOHEADER = @AUTOHEADER@
7989 AUTOMAKE = @AUTOMAKE@
8090 AWK = @AWK@
91 CATALOGS = @CATALOGS@
92 CATOBJEXT = @CATOBJEXT@
8193 CC = @CC@
8294 CCDEPMODE = @CCDEPMODE@
8395 CFLAGS = @CFLAGS@
8496 CPP = @CPP@
8597 CPPFLAGS = @CPPFLAGS@
8698 CYGPATH_W = @CYGPATH_W@
99 DATADIRNAME = @DATADIRNAME@
87100 DEFS = @DEFS@
88101 DEPDIR = @DEPDIR@
89102 DSYMUTIL = @DSYMUTIL@
96109 FGREP = @FGREP@
97110 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
98111 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
112 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
113 GMOFILES = @GMOFILES@
114 GMSGFMT = @GMSGFMT@
99115 GREP = @GREP@
100116 GTK2_CFLAGS = @GTK2_CFLAGS@
101117 GTK2_LIBS = @GTK2_LIBS@
106122 INSTALL_PROGRAM = @INSTALL_PROGRAM@
107123 INSTALL_SCRIPT = @INSTALL_SCRIPT@
108124 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125 INSTOBJEXT = @INSTOBJEXT@
126 INTLLIBS = @INTLLIBS@
127 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
128 INTLTOOL_MERGE = @INTLTOOL_MERGE@
129 INTLTOOL_PERL = @INTLTOOL_PERL@
130 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
109131 LD = @LD@
110132 LDFLAGS = @LDFLAGS@
111133 LIBGLADE2_CFLAGS = @LIBGLADE2_CFLAGS@
122144 LTLIBOBJS = @LTLIBOBJS@
123145 MAKEINFO = @MAKEINFO@
124146 MKDIR_P = @MKDIR_P@
147 MKINSTALLDIRS = @MKINSTALLDIRS@
125148 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
126149 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
150 MSGFMT = @MSGFMT@
151 MSGFMT_OPTS = @MSGFMT_OPTS@
152 MSGMERGE = @MSGMERGE@
127153 NM = @NM@
128154 NMEDIT = @NMEDIT@
129155 NSPR_CFLAGS = @NSPR_CFLAGS@
140166 PACKAGE_VERSION = @PACKAGE_VERSION@
141167 PATH_SEPARATOR = @PATH_SEPARATOR@
142168 PKG_CONFIG = @PKG_CONFIG@
169 POFILES = @POFILES@
170 POSUB = @POSUB@
171 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
172 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
143173 RANLIB = @RANLIB@
144174 SED = @SED@
145175 SET_MAKE = @SET_MAKE@
146176 SHELL = @SHELL@
147177 STRIP = @STRIP@
178 USE_NLS = @USE_NLS@
148179 VERSION = @VERSION@
149180 WARN_CFLAGS = @WARN_CFLAGS@
181 XGETTEXT = @XGETTEXT@
150182 abs_builddir = @abs_builddir@
151183 abs_srcdir = @abs_srcdir@
152184 abs_top_builddir = @abs_top_builddir@
4343
4444 make DESTDIR=$RPM_BUILD_ROOT install
4545
46 %find_lang virt-viewer
47
4648 %clean
4749 rm -rf $RPM_BUILD_ROOT
4850
4951
50 %files
52 %files -f virt-viewer.lang
5153 %defattr(-,root,root)
5254 %{_mingw32_bindir}/virt-viewer.exe
5355
0 # Makefile.in generated by automake 1.11 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
3636 subdir = plugin
3737 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
3838 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
40 $(top_srcdir)/configure.ac
39 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
41 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
42 $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
4143 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4244 $(ACLOCAL_M4)
4345 mkinstalldirs = $(install_sh) -d
8183 @ENABLE_PLUGIN_TRUE@ virt_viewer_plugin_la-npshell.lo \
8284 @ENABLE_PLUGIN_TRUE@ virt_viewer_plugin_la-npunix.lo
8385 virt_viewer_plugin_la_OBJECTS = $(am_virt_viewer_plugin_la_OBJECTS)
84 virt_viewer_plugin_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
85 $(LIBTOOLFLAGS) --mode=link $(CCLD) \
86 AM_V_lt = $(am__v_lt_$(V))
87 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88 am__v_lt_0 = --silent
89 virt_viewer_plugin_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
90 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
8691 $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) \
8792 $(virt_viewer_plugin_la_LDFLAGS) $(LDFLAGS) -o $@
8893 @ENABLE_PLUGIN_TRUE@am_virt_viewer_plugin_la_rpath = -rpath \
9398 am__mv = mv -f
9499 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
95100 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
96 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
97 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
98 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
101 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
102 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
103 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
104 $(AM_CFLAGS) $(CFLAGS)
105 AM_V_CC = $(am__v_CC_$(V))
106 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
107 am__v_CC_0 = @echo " CC " $@;
108 AM_V_at = $(am__v_at_$(V))
109 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
110 am__v_at_0 = @
99111 CCLD = $(CC)
100 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
101 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
102 $(LDFLAGS) -o $@
112 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
113 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
114 $(AM_LDFLAGS) $(LDFLAGS) -o $@
115 AM_V_CCLD = $(am__v_CCLD_$(V))
116 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
117 am__v_CCLD_0 = @echo " CCLD " $@;
118 AM_V_GEN = $(am__v_GEN_$(V))
119 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
120 am__v_GEN_0 = @echo " GEN " $@;
103121 SOURCES = $(virt_viewer_plugin_la_SOURCES)
104122 DIST_SOURCES = $(am__virt_viewer_plugin_la_SOURCES_DIST)
105123 ETAGS = etags
106124 CTAGS = ctags
107125 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
108126 ACLOCAL = @ACLOCAL@
127 ALL_LINGUAS = @ALL_LINGUAS@
109128 AMTAR = @AMTAR@
129 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
110130 AR = @AR@
111131 AUTOCONF = @AUTOCONF@
112132 AUTOHEADER = @AUTOHEADER@
113133 AUTOMAKE = @AUTOMAKE@
114134 AWK = @AWK@
135 CATALOGS = @CATALOGS@
136 CATOBJEXT = @CATOBJEXT@
115137 CC = @CC@
116138 CCDEPMODE = @CCDEPMODE@
117139 CFLAGS = @CFLAGS@
118140 CPP = @CPP@
119141 CPPFLAGS = @CPPFLAGS@
120142 CYGPATH_W = @CYGPATH_W@
143 DATADIRNAME = @DATADIRNAME@
121144 DEFS = @DEFS@
122145 DEPDIR = @DEPDIR@
123146 DSYMUTIL = @DSYMUTIL@
130153 FGREP = @FGREP@
131154 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
132155 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
156 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
157 GMOFILES = @GMOFILES@
158 GMSGFMT = @GMSGFMT@
133159 GREP = @GREP@
134160 GTK2_CFLAGS = @GTK2_CFLAGS@
135161 GTK2_LIBS = @GTK2_LIBS@
140166 INSTALL_PROGRAM = @INSTALL_PROGRAM@
141167 INSTALL_SCRIPT = @INSTALL_SCRIPT@
142168 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
169 INSTOBJEXT = @INSTOBJEXT@
170 INTLLIBS = @INTLLIBS@
171 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
172 INTLTOOL_MERGE = @INTLTOOL_MERGE@
173 INTLTOOL_PERL = @INTLTOOL_PERL@
174 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
143175 LD = @LD@
144176 LDFLAGS = @LDFLAGS@
145177 LIBGLADE2_CFLAGS = @LIBGLADE2_CFLAGS@
156188 LTLIBOBJS = @LTLIBOBJS@
157189 MAKEINFO = @MAKEINFO@
158190 MKDIR_P = @MKDIR_P@
191 MKINSTALLDIRS = @MKINSTALLDIRS@
159192 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
160193 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
194 MSGFMT = @MSGFMT@
195 MSGFMT_OPTS = @MSGFMT_OPTS@
196 MSGMERGE = @MSGMERGE@
161197 NM = @NM@
162198 NMEDIT = @NMEDIT@
163199 NSPR_CFLAGS = @NSPR_CFLAGS@
174210 PACKAGE_VERSION = @PACKAGE_VERSION@
175211 PATH_SEPARATOR = @PATH_SEPARATOR@
176212 PKG_CONFIG = @PKG_CONFIG@
213 POFILES = @POFILES@
214 POSUB = @POSUB@
215 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
216 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
177217 RANLIB = @RANLIB@
178218 SED = @SED@
179219 SET_MAKE = @SET_MAKE@
180220 SHELL = @SHELL@
181221 STRIP = @STRIP@
222 USE_NLS = @USE_NLS@
182223 VERSION = @VERSION@
183224 WARN_CFLAGS = @WARN_CFLAGS@
225 XGETTEXT = @XGETTEXT@
184226 abs_builddir = @abs_builddir@
185227 abs_srcdir = @abs_srcdir@
186228 abs_top_builddir = @abs_top_builddir@
332374 rm -f "$${dir}/so_locations"; \
333375 done
334376 virt-viewer-plugin.la: $(virt_viewer_plugin_la_OBJECTS) $(virt_viewer_plugin_la_DEPENDENCIES)
335 $(virt_viewer_plugin_la_LINK) $(am_virt_viewer_plugin_la_rpath) $(virt_viewer_plugin_la_OBJECTS) $(virt_viewer_plugin_la_LIBADD) $(LIBS)
377 $(AM_V_CCLD)$(virt_viewer_plugin_la_LINK) $(am_virt_viewer_plugin_la_rpath) $(virt_viewer_plugin_la_OBJECTS) $(virt_viewer_plugin_la_LIBADD) $(LIBS)
336378
337379 mostlyclean-compile:
338380 -rm -f *.$(OBJEXT)
349391 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Plo@am__quote@
350392
351393 .c.o:
352 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
353 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
394 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
395 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
396 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
354397 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
355398 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
356399 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
357400
358401 .c.obj:
359 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
360 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
402 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
403 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
404 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
361405 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
362406 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
363407 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
364408
365409 .c.lo:
366 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
367 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
410 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
411 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
412 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
368413 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
369414 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
370415 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
371416
372417 virt_viewer_plugin_la-util.lo: ../src/util.c
373 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-util.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-util.Tpo -c -o virt_viewer_plugin_la-util.lo `test -f '../src/util.c' || echo '$(srcdir)/'`../src/util.c
374 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer_plugin_la-util.Tpo $(DEPDIR)/virt_viewer_plugin_la-util.Plo
418 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-util.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-util.Tpo -c -o virt_viewer_plugin_la-util.lo `test -f '../src/util.c' || echo '$(srcdir)/'`../src/util.c
419 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer_plugin_la-util.Tpo $(DEPDIR)/virt_viewer_plugin_la-util.Plo
420 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
375421 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/util.c' object='virt_viewer_plugin_la-util.lo' libtool=yes @AMDEPBACKSLASH@
376422 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
377 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-util.lo `test -f '../src/util.c' || echo '$(srcdir)/'`../src/util.c
423 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-util.lo `test -f '../src/util.c' || echo '$(srcdir)/'`../src/util.c
378424
379425 virt_viewer_plugin_la-auth.lo: ../src/auth.c
380 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-auth.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-auth.Tpo -c -o virt_viewer_plugin_la-auth.lo `test -f '../src/auth.c' || echo '$(srcdir)/'`../src/auth.c
381 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer_plugin_la-auth.Tpo $(DEPDIR)/virt_viewer_plugin_la-auth.Plo
426 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-auth.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-auth.Tpo -c -o virt_viewer_plugin_la-auth.lo `test -f '../src/auth.c' || echo '$(srcdir)/'`../src/auth.c
427 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer_plugin_la-auth.Tpo $(DEPDIR)/virt_viewer_plugin_la-auth.Plo
428 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
382429 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/auth.c' object='virt_viewer_plugin_la-auth.lo' libtool=yes @AMDEPBACKSLASH@
383430 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
384 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-auth.lo `test -f '../src/auth.c' || echo '$(srcdir)/'`../src/auth.c
431 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-auth.lo `test -f '../src/auth.c' || echo '$(srcdir)/'`../src/auth.c
385432
386433 virt_viewer_plugin_la-viewer.lo: ../src/viewer.c
387 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-viewer.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-viewer.Tpo -c -o virt_viewer_plugin_la-viewer.lo `test -f '../src/viewer.c' || echo '$(srcdir)/'`../src/viewer.c
388 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer_plugin_la-viewer.Tpo $(DEPDIR)/virt_viewer_plugin_la-viewer.Plo
434 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-viewer.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-viewer.Tpo -c -o virt_viewer_plugin_la-viewer.lo `test -f '../src/viewer.c' || echo '$(srcdir)/'`../src/viewer.c
435 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer_plugin_la-viewer.Tpo $(DEPDIR)/virt_viewer_plugin_la-viewer.Plo
436 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
389437 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/viewer.c' object='virt_viewer_plugin_la-viewer.lo' libtool=yes @AMDEPBACKSLASH@
390438 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
391 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-viewer.lo `test -f '../src/viewer.c' || echo '$(srcdir)/'`../src/viewer.c
439 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-viewer.lo `test -f '../src/viewer.c' || echo '$(srcdir)/'`../src/viewer.c
392440
393441 virt_viewer_plugin_la-events.lo: ../src/events.c
394 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-events.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-events.Tpo -c -o virt_viewer_plugin_la-events.lo `test -f '../src/events.c' || echo '$(srcdir)/'`../src/events.c
395 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer_plugin_la-events.Tpo $(DEPDIR)/virt_viewer_plugin_la-events.Plo
442 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-events.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-events.Tpo -c -o virt_viewer_plugin_la-events.lo `test -f '../src/events.c' || echo '$(srcdir)/'`../src/events.c
443 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer_plugin_la-events.Tpo $(DEPDIR)/virt_viewer_plugin_la-events.Plo
444 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
396445 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/events.c' object='virt_viewer_plugin_la-events.lo' libtool=yes @AMDEPBACKSLASH@
397446 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
398 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-events.lo `test -f '../src/events.c' || echo '$(srcdir)/'`../src/events.c
447 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-events.lo `test -f '../src/events.c' || echo '$(srcdir)/'`../src/events.c
399448
400449 virt_viewer_plugin_la-virt-viewer-plugin.lo: virt-viewer-plugin.c
401 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-virt-viewer-plugin.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Tpo -c -o virt_viewer_plugin_la-virt-viewer-plugin.lo `test -f 'virt-viewer-plugin.c' || echo '$(srcdir)/'`virt-viewer-plugin.c
402 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Tpo $(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Plo
450 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-virt-viewer-plugin.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Tpo -c -o virt_viewer_plugin_la-virt-viewer-plugin.lo `test -f 'virt-viewer-plugin.c' || echo '$(srcdir)/'`virt-viewer-plugin.c
451 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Tpo $(DEPDIR)/virt_viewer_plugin_la-virt-viewer-plugin.Plo
452 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
403453 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='virt-viewer-plugin.c' object='virt_viewer_plugin_la-virt-viewer-plugin.lo' libtool=yes @AMDEPBACKSLASH@
404454 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
405 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-virt-viewer-plugin.lo `test -f 'virt-viewer-plugin.c' || echo '$(srcdir)/'`virt-viewer-plugin.c
455 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-virt-viewer-plugin.lo `test -f 'virt-viewer-plugin.c' || echo '$(srcdir)/'`virt-viewer-plugin.c
406456
407457 virt_viewer_plugin_la-npshell.lo: npshell.c
408 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-npshell.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-npshell.Tpo -c -o virt_viewer_plugin_la-npshell.lo `test -f 'npshell.c' || echo '$(srcdir)/'`npshell.c
409 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer_plugin_la-npshell.Tpo $(DEPDIR)/virt_viewer_plugin_la-npshell.Plo
458 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-npshell.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-npshell.Tpo -c -o virt_viewer_plugin_la-npshell.lo `test -f 'npshell.c' || echo '$(srcdir)/'`npshell.c
459 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer_plugin_la-npshell.Tpo $(DEPDIR)/virt_viewer_plugin_la-npshell.Plo
460 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
410461 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='npshell.c' object='virt_viewer_plugin_la-npshell.lo' libtool=yes @AMDEPBACKSLASH@
411462 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
412 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-npshell.lo `test -f 'npshell.c' || echo '$(srcdir)/'`npshell.c
463 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-npshell.lo `test -f 'npshell.c' || echo '$(srcdir)/'`npshell.c
413464
414465 virt_viewer_plugin_la-npunix.lo: npunix.c
415 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-npunix.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-npunix.Tpo -c -o virt_viewer_plugin_la-npunix.lo `test -f 'npunix.c' || echo '$(srcdir)/'`npunix.c
416 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer_plugin_la-npunix.Tpo $(DEPDIR)/virt_viewer_plugin_la-npunix.Plo
466 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -MT virt_viewer_plugin_la-npunix.lo -MD -MP -MF $(DEPDIR)/virt_viewer_plugin_la-npunix.Tpo -c -o virt_viewer_plugin_la-npunix.lo `test -f 'npunix.c' || echo '$(srcdir)/'`npunix.c
467 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer_plugin_la-npunix.Tpo $(DEPDIR)/virt_viewer_plugin_la-npunix.Plo
468 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
417469 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='npunix.c' object='virt_viewer_plugin_la-npunix.lo' libtool=yes @AMDEPBACKSLASH@
418470 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
419 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-npunix.lo `test -f 'npunix.c' || echo '$(srcdir)/'`npunix.c
471 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_plugin_la_CFLAGS) $(CFLAGS) -c -o virt_viewer_plugin_la-npunix.lo `test -f 'npunix.c' || echo '$(srcdir)/'`npunix.c
420472
421473 mostlyclean-libtool:
422474 -rm -f *.lo
0 # Makefile for program source directory in GNU NLS utilities package.
1 # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
2 # Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns@gmail.com>
3 #
4 # This file may be copied and used freely without restrictions. It may
5 # be used in projects which are not available under a GNU Public License,
6 # but which still want to provide support for the GNU gettext functionality.
7 #
8 # - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
9 # instead of PACKAGE and to look for po2tbl in ./ not in intl/
10 #
11 # - Modified by jacob berkman <jacob@ximian.com> to install
12 # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
13 #
14 # - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
15 #
16 # We have the following line for use by intltoolize:
17 # INTLTOOL_MAKEFILE
18
19 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
20 PACKAGE = @PACKAGE@
21 VERSION = @VERSION@
22
23 SHELL = @SHELL@
24
25 srcdir = @srcdir@
26 top_srcdir = @top_srcdir@
27 top_builddir = @top_builddir@
28 VPATH = @srcdir@
29
30 prefix = @prefix@
31 exec_prefix = @exec_prefix@
32 datadir = @datadir@
33 datarootdir = @datarootdir@
34 libdir = @libdir@
35 DATADIRNAME = @DATADIRNAME@
36 itlocaledir = $(prefix)/$(DATADIRNAME)/locale
37 subdir = po
38 install_sh = @install_sh@
39 # Automake >= 1.8 provides @mkdir_p@.
40 # Until it can be supposed, use the safe fallback:
41 mkdir_p = $(install_sh) -d
42
43 INSTALL = @INSTALL@
44 INSTALL_DATA = @INSTALL_DATA@
45
46 GMSGFMT = @GMSGFMT@
47 MSGFMT = @MSGFMT@
48 XGETTEXT = @XGETTEXT@
49 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
50 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
51 MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
52 GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
53
54 ALL_LINGUAS = @ALL_LINGUAS@
55
56 PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
57
58 USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
59
60 USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
61
62 POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
63
64 DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
65 EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
66
67 POTFILES = \
68 # This comment gets stripped out
69
70 CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
71
72 .SUFFIXES:
73 .SUFFIXES: .po .pox .gmo .mo .msg .cat
74
75 .po.pox:
76 $(MAKE) $(GETTEXT_PACKAGE).pot
77 $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
78
79 .po.mo:
80 $(MSGFMT) -o $@ $<
81
82 .po.gmo:
83 file=`echo $* | sed 's,.*/,,'`.gmo \
84 && rm -f $$file && $(GMSGFMT) -o $$file $<
85
86 .po.cat:
87 sed -f ../intl/po2msg.sed < $< > $*.msg \
88 && rm -f $@ && gencat $@ $*.msg
89
90
91 all: all-@USE_NLS@
92
93 all-yes: $(CATALOGS)
94 all-no:
95
96 $(GETTEXT_PACKAGE).pot: $(POTFILES)
97 $(GENPOT)
98
99 install: install-data
100 install-data: install-data-@USE_NLS@
101 install-data-no: all
102 install-data-yes: all
103 linguas="$(USE_LINGUAS)"; \
104 for lang in $$linguas; do \
105 dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
106 $(mkdir_p) $$dir; \
107 if test -r $$lang.gmo; then \
108 $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
109 echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
110 else \
111 $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
112 echo "installing $(srcdir)/$$lang.gmo as" \
113 "$$dir/$(GETTEXT_PACKAGE).mo"; \
114 fi; \
115 if test -r $$lang.gmo.m; then \
116 $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
117 echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
118 else \
119 if test -r $(srcdir)/$$lang.gmo.m ; then \
120 $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
121 $$dir/$(GETTEXT_PACKAGE).mo.m; \
122 echo "installing $(srcdir)/$$lang.gmo.m as" \
123 "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
124 else \
125 true; \
126 fi; \
127 fi; \
128 done
129
130 # Empty stubs to satisfy archaic automake needs
131 dvi info ctags tags CTAGS TAGS ID:
132
133 # Define this as empty until I found a useful application.
134 install-exec installcheck:
135
136 uninstall:
137 linguas="$(USE_LINGUAS)"; \
138 for lang in $$linguas; do \
139 rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
140 rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
141 done
142
143 check: all $(GETTEXT_PACKAGE).pot
144 rm -f missing notexist
145 srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
146 if [ -r missing -o -r notexist ]; then \
147 exit 1; \
148 fi
149
150 mostlyclean:
151 rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
152 rm -f .intltool-merge-cache
153
154 clean: mostlyclean
155
156 distclean: clean
157 rm -f Makefile Makefile.in POTFILES stamp-it
158 rm -f *.mo *.msg *.cat *.cat.m *.gmo
159
160 maintainer-clean: distclean
161 @echo "This command is intended for maintainers to use;"
162 @echo "it deletes files that may require special tools to rebuild."
163 rm -f Makefile.in.in
164
165 distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
166 dist distdir: $(DISTFILES)
167 dists="$(DISTFILES)"; \
168 extra_dists="$(EXTRA_DISTFILES)"; \
169 for file in $$extra_dists; do \
170 test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
171 done; \
172 for file in $$dists; do \
173 test -f $$file || file="$(srcdir)/$$file"; \
174 ln $$file $(distdir) 2> /dev/null \
175 || cp -p $$file $(distdir); \
176 done
177
178 update-po: Makefile
179 $(MAKE) $(GETTEXT_PACKAGE).pot
180 tmpdir=`pwd`; \
181 linguas="$(USE_LINGUAS)"; \
182 for lang in $$linguas; do \
183 echo "$$lang:"; \
184 result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
185 if $$result; then \
186 if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
187 rm -f $$tmpdir/$$lang.new.po; \
188 else \
189 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
190 :; \
191 else \
192 echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
193 rm -f $$tmpdir/$$lang.new.po; \
194 exit 1; \
195 fi; \
196 fi; \
197 else \
198 echo "msgmerge for $$lang.gmo failed!"; \
199 rm -f $$tmpdir/$$lang.new.po; \
200 fi; \
201 done
202
203 Makefile POTFILES: stamp-it
204 @if test ! -f $@; then \
205 rm -f stamp-it; \
206 $(MAKE) stamp-it; \
207 fi
208
209 stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
210 cd $(top_builddir) \
211 && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
212 $(SHELL) ./config.status
213
214 # Tell versions [3.59,3.63) of GNU make not to export all variables.
215 # Otherwise a system limit (for SysV at least) may be exceeded.
216 .NOEXPORT:
0 src/auth.c
1 src/events.c
2 src/main.c
3 src/util.c
4 src/viewer.c
5 src/about.glade
6 src/auth.glade
7 src/viewer.glade
0 # translation of pl.po to Polish
1 # Piotr Drąg <piotrdrag@gmail.com>, 2010.
2 #
3 msgid ""
4 msgstr ""
5 "Project-Id-Version: pl\n"
6 "Report-Msgid-Bugs-To: \n"
7 "POT-Creation-Date: 2010-01-13 15:48+0000\n"
8 "PO-Revision-Date: 2010-01-13 19:15+0100\n"
9 "Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
10 "Language-Team: Polish <trans-pl@lists.fedoraproject.org>\n"
11 "MIME-Version: 1.0\n"
12 "Content-Type: text/plain; charset=UTF-8\n"
13 "Content-Transfer-Encoding: 8bit\n"
14
15 #: ../src/main.c:34
16 #, c-format
17 msgid "%s version %s\n"
18 msgstr "%s wersja %s\n"
19
20 #: ../src/main.c:52
21 msgid "Run '"
22 msgstr "Należy wykonać \""
23
24 #: ../src/main.c:55
25 msgid "display version information"
26 msgstr "wyświetla informację o wersji"
27
28 #: ../src/main.c:57
29 msgid "display verbose information"
30 msgstr "wyświetla więcej informacji"
31
32 #: ../src/main.c:59
33 msgid "direct connection with no automatic tunnels"
34 msgstr "bezpośrednie połączenie bez automatycznych tuneli"
35
36 #: ../src/main.c:61
37 msgid "connect to hypervisor"
38 msgstr "łączy z nadzorcą"
39
40 #: ../src/main.c:63
41 msgid "wait for domain to start"
42 msgstr "oczekuje na uruchomienie domeny"
43
44 #: ../src/main.c:65
45 msgid "reconnect to domain upon restart"
46 msgstr "ponownie łączy z domeną po ponownym uruchomieniu"
47
48 #: ../src/main.c:67
49 msgid "display debugging information"
50 msgstr "wyświetla informacje o debugowaniu"
51
52 #. Setup command line options
53 #: ../src/main.c:79
54 msgid "- Virtual machine graphical console"
55 msgstr "- graficzna konsola maszyny wirtualnej"
56
57 #: ../src/main.c:95
58 #, c-format
59 msgid ""
60 "\n"
61 "Usage: %s [OPTIONS] DOMAIN-NAME|ID|UUID\n"
62 "\n"
63 "%s\n"
64 "\n"
65 msgstr ""
66 "\n"
67 "Użycie: %s [OPCJE] NAZWA-DOMENY|IDENTYFIKATOR|UUID\n"
68 "\n"
69 "%s\n"
70 "\n"
71
72 #: ../src/viewer.c:878
73 #, c-format
74 msgid "Cannot determine the VNC port for the guest %s"
75 msgstr "Nie można określić portu VNC dla gościa %s"
76
77 #: ../src/viewer.c:884
78 #, c-format
79 msgid "Cannot determine the VNC host for the guest %s"
80 msgstr "Nie można określić gospodarza VNC dla gościa %s"
81
82 #: ../src/viewer.c:984
83 #, c-format
84 msgid "Unable to connect to the VNC server %s"
85 msgstr "Nie można połączyć się z serwerem VNC %s"
86
87 #: ../src/viewer.c:1001
88 #, c-format
89 msgid ""
90 "Unable to authenticate with VNC server at %s: %s\n"
91 "Retry connection again?"
92 msgstr ""
93 "Nie można uwierzytelnić z serwerem VNC na %s: %s\n"
94 "Ponownie ponowić połączenie?"
95
96 #: ../src/viewer.c:1019
97 #, c-format
98 msgid ""
99 "Unable to authenticate with VNC server at %s\n"
100 "Unsupported authentication type %d"
101 msgstr ""
102 "Nie można uwierzytelnić z serwerem VNC na %s\n"
103 "Nieobsługiwany typ uwierzytelniania %d"
104
105 #: ../src/viewer.c:1111
106 #, c-format
107 msgid "Cannot find guest domain %s"
108 msgstr "Nie można odnaleźć domeny gościa %s"
109
110 #: ../src/viewer.c:1213
111 #, c-format
112 msgid "Unable to connect to libvirt with URI %s"
113 msgstr "Nie można połączyć się z biblioteką libvirt za pomocą adresu URL %s"
114
115 #: ../src/viewer.c:1214
116 msgid "[none]"
117 msgstr "[brak]"
118
119 #.
120 #. * Local variables:
121 #. * c-indent-level: 8
122 #. * c-basic-offset: 8
123 #. * tab-width: 8
124 #. * End:
125 #.
126 #: ../src/about.glade.h:1
127 msgid "A remote desktop client built with GTK-VNC and libvirt"
128 msgstr "Zdalny klient zbudowany za pomocą bibliotek GTK-VNC i libvirt"
129
130 #: ../src/about.glade.h:2
131 msgid "About Glade"
132 msgstr "O programie Glade"
133
134 #: ../src/about.glade.h:3
135 msgid ""
136 "Copyright 2007-2008 Daniel P. Berrange\n"
137 "Copyright 2007-2008 Red Hat, Inc."
138 msgstr ""
139 "Copyright 2007-2008 Daniel P. Berrange\n"
140 "Copyright 2007-2008 Red Hat, Inc."
141
142 #: ../src/about.glade.h:5
143 msgid "The Fedora Translation Team"
144 msgstr "Zespół tłumaczenia Fedory"
145
146 #: ../src/about.glade.h:6
147 msgid ""
148 "This program is free software; you can redistribute it and/or modify\n"
149 "it under the terms of the GNU General Public License as published by\n"
150 "the Free Software Foundation; either version 2 of the License, or\n"
151 "(at your option) any later version.\n"
152 "\n"
153 "This program is distributed in the hope that it will be useful,\n"
154 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
155 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
156 "GNU General Public License for more details.\n"
157 "\n"
158 "You should have received a copy of the GNU General Public License\n"
159 "along with this program; if not, write to the Free Software\n"
160 "Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n"
161 msgstr ""
162 "Niniejszy program jest wolnym oprogramowaniem; można go rozprowadzać\n"
163 "dalej i/lub modyfikować na warunkach Powszechnej Licencji Publicznej\n"
164 "GNU, wydanej przez Fundację Wolnego Oprogramowania (Free Software\n"
165 "Foundation) - według wersji drugiej tej Licencji lub którejś z\n"
166 "późniejszych wersji.\n"
167 "\n"
168 "Niniejszy program rozpowszechniany jest z nadzieją, iż będzie on\n"
169 "użyteczny - jednak BEZ JAKIEJKOLWIEK GWARANCJI, nawet domyślnej\n"
170 "gwarancji PRZYDATNOŚCI HANDLOWEJ albo PRZYDATNOŚCI DO OKREŚLONYCH\n"
171 "ZASTOSOWAŃ. W celu uzyskania bliższych informacji należy zapoznać\n"
172 "się z Powszechną Licencją Publiczną GNU.\n"
173 "\n"
174 "Z pewnością wraz z niniejszym programem dostarczono także egzemplarz\n"
175 "Powszechnej Licencji Publicznej GNU (GNU General Public License);\n"
176 "jeśli nie - proszę napisać do Free Software Foundation, Inc., 51\n"
177 "Franklin Street, Fifth Floor, Boston, MA 02110-130159 USA.\n"
178
179 #: ../src/about.glade.h:20
180 msgid "virt-manager.org"
181 msgstr "virt-manager.org"
182
183 #: ../src/auth.glade.h:1
184 msgid "Authentication required"
185 msgstr "Wymagane jest uwierzytelnienie"
186
187 #: ../src/auth.glade.h:2
188 msgid "Password:"
189 msgstr "Hasło:"
190
191 #: ../src/auth.glade.h:3
192 msgid "Username:"
193 msgstr "Nazwa użytkownika:"
194
195 #: ../src/auth.glade.h:4
196 msgid "gtk-cancel"
197 msgstr "gtk-cancel"
198
199 #: ../src/auth.glade.h:5
200 msgid "gtk-ok"
201 msgstr "gtk-ok"
202
203 #: ../src/auth.glade.h:6
204 msgid "label"
205 msgstr "etykieta"
206
207 #: ../src/viewer.glade.h:1
208 msgid "Automatically resize"
209 msgstr "Automatyczna zmiana rozmiaru"
210
211 #: ../src/viewer.glade.h:2
212 msgid "Ctrl+Alt+F11"
213 msgstr "Ctrl+Alt+F11"
214
215 #: ../src/viewer.glade.h:3
216 msgid "Ctrl+Alt+F12"
217 msgstr "Ctrl+Alt+F12"
218
219 #: ../src/viewer.glade.h:4
220 msgid "Ctrl+Alt+F1_0"
221 msgstr "Ctrl+Alt+F1_0"
222
223 #: ../src/viewer.glade.h:5
224 msgid "Ctrl+Alt+F_1"
225 msgstr "Ctrl+Alt+F_1"
226
227 #: ../src/viewer.glade.h:6
228 msgid "Ctrl+Alt+F_2"
229 msgstr "Ctrl+Alt+F_2"
230
231 #: ../src/viewer.glade.h:7
232 msgid "Ctrl+Alt+F_3"
233 msgstr "Ctrl+Alt+F_3"
234
235 #: ../src/viewer.glade.h:8
236 msgid "Ctrl+Alt+F_4"
237 msgstr "Ctrl+Alt+F_4"
238
239 #: ../src/viewer.glade.h:9
240 msgid "Ctrl+Alt+F_5"
241 msgstr "Ctrl+Alt+F_5"
242
243 #: ../src/viewer.glade.h:10
244 msgid "Ctrl+Alt+F_6"
245 msgstr "Ctrl+Alt+F_6"
246
247 #: ../src/viewer.glade.h:11
248 msgid "Ctrl+Alt+F_7"
249 msgstr "Ctrl+Alt+F_7"
250
251 #: ../src/viewer.glade.h:12
252 msgid "Ctrl+Alt+F_8"
253 msgstr "Ctrl+Alt+F_8"
254
255 #: ../src/viewer.glade.h:13
256 msgid "Ctrl+Alt+F_9"
257 msgstr "Ctrl+Alt+F_9"
258
259 #: ../src/viewer.glade.h:14
260 msgid "Ctrl+Alt+_Backspace"
261 msgstr "Ctrl+Alt+_Backspace"
262
263 #: ../src/viewer.glade.h:15
264 msgid "Ctrl+Alt+_Del"
265 msgstr "Ctrl+Alt+_Del"
266
267 #: ../src/viewer.glade.h:16
268 msgid "Full screen"
269 msgstr "Pełny ekran"
270
271 #: ../src/viewer.glade.h:17
272 msgid "Screenshot"
273 msgstr "Zrzut ekranu"
274
275 #: ../src/viewer.glade.h:18
276 msgid "_File"
277 msgstr "_Plik"
278
279 #: ../src/viewer.glade.h:19
280 msgid "_Help"
281 msgstr "Pomo_c"
282
283 #: ../src/viewer.glade.h:20
284 msgid "_PrintScreen"
285 msgstr "Zrzut _ekranu"
286
287 #: ../src/viewer.glade.h:21
288 msgid "_Send key"
289 msgstr "Wyślij klawi_sz"
290
291 #: ../src/viewer.glade.h:22
292 msgid "_View"
293 msgstr "_Widok"
294
295 #: ../src/viewer.glade.h:23
296 msgid "gtk-about"
297 msgstr "gtk-about"
298
299 #: ../src/viewer.glade.h:24
300 msgid "gtk-quit"
301 msgstr "gtk-quit"
302
303 #: ../src/viewer.glade.h:25
304 msgid "page 1"
305 msgstr "strona 1"
306
307 #: ../src/viewer.glade.h:26
308 msgid "page 2"
309 msgstr "strona 2"
2626 @LIBGLADE2_CFLAGS@ \
2727 @LIBVIRT_CFLAGS@ \
2828 @WARN_CFLAGS@ \
29 -DGLADE_DIR="\"$(gladedir)\""
29 -DGLADE_DIR="\"$(gladedir)\"" \
30 -DLOCALE_DIR=\""$(datadir)/locale"\"
0 # Makefile.in generated by automake 1.11 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
3838 subdir = src
3939 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
4040 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
42 $(top_srcdir)/configure.ac
41 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
4345 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4446 $(ACLOCAL_M4)
4547 mkinstalldirs = $(install_sh) -d
5355 virt_viewer-events.$(OBJEXT) virt_viewer-viewer.$(OBJEXT)
5456 virt_viewer_OBJECTS = $(am_virt_viewer_OBJECTS)
5557 virt_viewer_DEPENDENCIES =
56 virt_viewer_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
58 AM_V_lt = $(am__v_lt_$(V))
59 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
60 am__v_lt_0 = --silent
61 virt_viewer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
5762 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(virt_viewer_CFLAGS) \
5863 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
5964 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
6267 am__mv = mv -f
6368 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
6469 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
71 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
72 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
73 $(AM_CFLAGS) $(CFLAGS)
74 AM_V_CC = $(am__v_CC_$(V))
75 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
76 am__v_CC_0 = @echo " CC " $@;
77 AM_V_at = $(am__v_at_$(V))
78 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
79 am__v_at_0 = @
6880 CCLD = $(CC)
69 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
81 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
82 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
83 $(AM_LDFLAGS) $(LDFLAGS) -o $@
84 AM_V_CCLD = $(am__v_CCLD_$(V))
85 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
86 am__v_CCLD_0 = @echo " CCLD " $@;
87 AM_V_GEN = $(am__v_GEN_$(V))
88 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
89 am__v_GEN_0 = @echo " GEN " $@;
7290 SOURCES = $(virt_viewer_SOURCES)
7391 DIST_SOURCES = $(virt_viewer_SOURCES)
7492 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
97115 CTAGS = ctags
98116 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
99117 ACLOCAL = @ACLOCAL@
118 ALL_LINGUAS = @ALL_LINGUAS@
100119 AMTAR = @AMTAR@
120 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
101121 AR = @AR@
102122 AUTOCONF = @AUTOCONF@
103123 AUTOHEADER = @AUTOHEADER@
104124 AUTOMAKE = @AUTOMAKE@
105125 AWK = @AWK@
126 CATALOGS = @CATALOGS@
127 CATOBJEXT = @CATOBJEXT@
106128 CC = @CC@
107129 CCDEPMODE = @CCDEPMODE@
108130 CFLAGS = @CFLAGS@
109131 CPP = @CPP@
110132 CPPFLAGS = @CPPFLAGS@
111133 CYGPATH_W = @CYGPATH_W@
134 DATADIRNAME = @DATADIRNAME@
112135 DEFS = @DEFS@
113136 DEPDIR = @DEPDIR@
114137 DSYMUTIL = @DSYMUTIL@
121144 FGREP = @FGREP@
122145 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
123146 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
147 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
148 GMOFILES = @GMOFILES@
149 GMSGFMT = @GMSGFMT@
124150 GREP = @GREP@
125151 GTK2_CFLAGS = @GTK2_CFLAGS@
126152 GTK2_LIBS = @GTK2_LIBS@
131157 INSTALL_PROGRAM = @INSTALL_PROGRAM@
132158 INSTALL_SCRIPT = @INSTALL_SCRIPT@
133159 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
160 INSTOBJEXT = @INSTOBJEXT@
161 INTLLIBS = @INTLLIBS@
162 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
163 INTLTOOL_MERGE = @INTLTOOL_MERGE@
164 INTLTOOL_PERL = @INTLTOOL_PERL@
165 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
134166 LD = @LD@
135167 LDFLAGS = @LDFLAGS@
136168 LIBGLADE2_CFLAGS = @LIBGLADE2_CFLAGS@
147179 LTLIBOBJS = @LTLIBOBJS@
148180 MAKEINFO = @MAKEINFO@
149181 MKDIR_P = @MKDIR_P@
182 MKINSTALLDIRS = @MKINSTALLDIRS@
150183 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
151184 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
185 MSGFMT = @MSGFMT@
186 MSGFMT_OPTS = @MSGFMT_OPTS@
187 MSGMERGE = @MSGMERGE@
152188 NM = @NM@
153189 NMEDIT = @NMEDIT@
154190 NSPR_CFLAGS = @NSPR_CFLAGS@
165201 PACKAGE_VERSION = @PACKAGE_VERSION@
166202 PATH_SEPARATOR = @PATH_SEPARATOR@
167203 PKG_CONFIG = @PKG_CONFIG@
204 POFILES = @POFILES@
205 POSUB = @POSUB@
206 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
207 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
168208 RANLIB = @RANLIB@
169209 SED = @SED@
170210 SET_MAKE = @SET_MAKE@
171211 SHELL = @SHELL@
172212 STRIP = @STRIP@
213 USE_NLS = @USE_NLS@
173214 VERSION = @VERSION@
174215 WARN_CFLAGS = @WARN_CFLAGS@
216 XGETTEXT = @XGETTEXT@
175217 abs_builddir = @abs_builddir@
176218 abs_srcdir = @abs_srcdir@
177219 abs_top_builddir = @abs_top_builddir@
248290 @LIBGLADE2_CFLAGS@ \
249291 @LIBVIRT_CFLAGS@ \
250292 @WARN_CFLAGS@ \
251 -DGLADE_DIR="\"$(gladedir)\""
293 -DGLADE_DIR="\"$(gladedir)\"" \
294 -DLOCALE_DIR=\""$(datadir)/locale"\"
252295
253296 all: all-am
254297
329372 rm -f $$list
330373 virt-viewer$(EXEEXT): $(virt_viewer_OBJECTS) $(virt_viewer_DEPENDENCIES)
331374 @rm -f virt-viewer$(EXEEXT)
332 $(virt_viewer_LINK) $(virt_viewer_OBJECTS) $(virt_viewer_LDADD) $(LIBS)
375 $(AM_V_CCLD)$(virt_viewer_LINK) $(virt_viewer_OBJECTS) $(virt_viewer_LDADD) $(LIBS)
333376
334377 mostlyclean-compile:
335378 -rm -f *.$(OBJEXT)
344387 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer-viewer.Po@am__quote@
345388
346389 .c.o:
347 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
348 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
390 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
391 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
392 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
349393 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
350394 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
351395 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
352396
353397 .c.obj:
354 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
355 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
398 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
399 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
400 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
356401 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
357402 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
358403 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
359404
360405 .c.lo:
361 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
362 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
406 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
407 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
408 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
363409 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
364410 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
365411 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
366412
367413 virt_viewer-main.o: main.c
368 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-main.o -MD -MP -MF $(DEPDIR)/virt_viewer-main.Tpo -c -o virt_viewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
369 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer-main.Tpo $(DEPDIR)/virt_viewer-main.Po
414 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-main.o -MD -MP -MF $(DEPDIR)/virt_viewer-main.Tpo -c -o virt_viewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
415 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-main.Tpo $(DEPDIR)/virt_viewer-main.Po
416 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
370417 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='virt_viewer-main.o' libtool=no @AMDEPBACKSLASH@
371418 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
372419 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
373420
374421 virt_viewer-main.obj: main.c
375 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-main.obj -MD -MP -MF $(DEPDIR)/virt_viewer-main.Tpo -c -o virt_viewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
376 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer-main.Tpo $(DEPDIR)/virt_viewer-main.Po
422 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-main.obj -MD -MP -MF $(DEPDIR)/virt_viewer-main.Tpo -c -o virt_viewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
423 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-main.Tpo $(DEPDIR)/virt_viewer-main.Po
424 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
377425 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='virt_viewer-main.obj' libtool=no @AMDEPBACKSLASH@
378426 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
379427 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
380428
381429 virt_viewer-util.o: util.c
382 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-util.o -MD -MP -MF $(DEPDIR)/virt_viewer-util.Tpo -c -o virt_viewer-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c
383 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer-util.Tpo $(DEPDIR)/virt_viewer-util.Po
430 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-util.o -MD -MP -MF $(DEPDIR)/virt_viewer-util.Tpo -c -o virt_viewer-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c
431 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-util.Tpo $(DEPDIR)/virt_viewer-util.Po
432 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
384433 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='util.c' object='virt_viewer-util.o' libtool=no @AMDEPBACKSLASH@
385434 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386435 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c
387436
388437 virt_viewer-util.obj: util.c
389 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-util.obj -MD -MP -MF $(DEPDIR)/virt_viewer-util.Tpo -c -o virt_viewer-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi`
390 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer-util.Tpo $(DEPDIR)/virt_viewer-util.Po
438 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-util.obj -MD -MP -MF $(DEPDIR)/virt_viewer-util.Tpo -c -o virt_viewer-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi`
439 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-util.Tpo $(DEPDIR)/virt_viewer-util.Po
440 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
391441 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='util.c' object='virt_viewer-util.obj' libtool=no @AMDEPBACKSLASH@
392442 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
393443 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi`
394444
395445 virt_viewer-auth.o: auth.c
396 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-auth.o -MD -MP -MF $(DEPDIR)/virt_viewer-auth.Tpo -c -o virt_viewer-auth.o `test -f 'auth.c' || echo '$(srcdir)/'`auth.c
397 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer-auth.Tpo $(DEPDIR)/virt_viewer-auth.Po
446 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-auth.o -MD -MP -MF $(DEPDIR)/virt_viewer-auth.Tpo -c -o virt_viewer-auth.o `test -f 'auth.c' || echo '$(srcdir)/'`auth.c
447 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-auth.Tpo $(DEPDIR)/virt_viewer-auth.Po
448 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
398449 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='auth.c' object='virt_viewer-auth.o' libtool=no @AMDEPBACKSLASH@
399450 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
400451 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-auth.o `test -f 'auth.c' || echo '$(srcdir)/'`auth.c
401452
402453 virt_viewer-auth.obj: auth.c
403 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-auth.obj -MD -MP -MF $(DEPDIR)/virt_viewer-auth.Tpo -c -o virt_viewer-auth.obj `if test -f 'auth.c'; then $(CYGPATH_W) 'auth.c'; else $(CYGPATH_W) '$(srcdir)/auth.c'; fi`
404 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer-auth.Tpo $(DEPDIR)/virt_viewer-auth.Po
454 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-auth.obj -MD -MP -MF $(DEPDIR)/virt_viewer-auth.Tpo -c -o virt_viewer-auth.obj `if test -f 'auth.c'; then $(CYGPATH_W) 'auth.c'; else $(CYGPATH_W) '$(srcdir)/auth.c'; fi`
455 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-auth.Tpo $(DEPDIR)/virt_viewer-auth.Po
456 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
405457 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='auth.c' object='virt_viewer-auth.obj' libtool=no @AMDEPBACKSLASH@
406458 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
407459 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-auth.obj `if test -f 'auth.c'; then $(CYGPATH_W) 'auth.c'; else $(CYGPATH_W) '$(srcdir)/auth.c'; fi`
408460
409461 virt_viewer-events.o: events.c
410 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-events.o -MD -MP -MF $(DEPDIR)/virt_viewer-events.Tpo -c -o virt_viewer-events.o `test -f 'events.c' || echo '$(srcdir)/'`events.c
411 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer-events.Tpo $(DEPDIR)/virt_viewer-events.Po
462 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-events.o -MD -MP -MF $(DEPDIR)/virt_viewer-events.Tpo -c -o virt_viewer-events.o `test -f 'events.c' || echo '$(srcdir)/'`events.c
463 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-events.Tpo $(DEPDIR)/virt_viewer-events.Po
464 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
412465 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='events.c' object='virt_viewer-events.o' libtool=no @AMDEPBACKSLASH@
413466 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
414467 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-events.o `test -f 'events.c' || echo '$(srcdir)/'`events.c
415468
416469 virt_viewer-events.obj: events.c
417 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-events.obj -MD -MP -MF $(DEPDIR)/virt_viewer-events.Tpo -c -o virt_viewer-events.obj `if test -f 'events.c'; then $(CYGPATH_W) 'events.c'; else $(CYGPATH_W) '$(srcdir)/events.c'; fi`
418 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer-events.Tpo $(DEPDIR)/virt_viewer-events.Po
470 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-events.obj -MD -MP -MF $(DEPDIR)/virt_viewer-events.Tpo -c -o virt_viewer-events.obj `if test -f 'events.c'; then $(CYGPATH_W) 'events.c'; else $(CYGPATH_W) '$(srcdir)/events.c'; fi`
471 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-events.Tpo $(DEPDIR)/virt_viewer-events.Po
472 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
419473 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='events.c' object='virt_viewer-events.obj' libtool=no @AMDEPBACKSLASH@
420474 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
421475 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-events.obj `if test -f 'events.c'; then $(CYGPATH_W) 'events.c'; else $(CYGPATH_W) '$(srcdir)/events.c'; fi`
422476
423477 virt_viewer-viewer.o: viewer.c
424 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-viewer.o -MD -MP -MF $(DEPDIR)/virt_viewer-viewer.Tpo -c -o virt_viewer-viewer.o `test -f 'viewer.c' || echo '$(srcdir)/'`viewer.c
425 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer-viewer.Tpo $(DEPDIR)/virt_viewer-viewer.Po
478 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-viewer.o -MD -MP -MF $(DEPDIR)/virt_viewer-viewer.Tpo -c -o virt_viewer-viewer.o `test -f 'viewer.c' || echo '$(srcdir)/'`viewer.c
479 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-viewer.Tpo $(DEPDIR)/virt_viewer-viewer.Po
480 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
426481 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='viewer.c' object='virt_viewer-viewer.o' libtool=no @AMDEPBACKSLASH@
427482 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
428483 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-viewer.o `test -f 'viewer.c' || echo '$(srcdir)/'`viewer.c
429484
430485 virt_viewer-viewer.obj: viewer.c
431 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-viewer.obj -MD -MP -MF $(DEPDIR)/virt_viewer-viewer.Tpo -c -o virt_viewer-viewer.obj `if test -f 'viewer.c'; then $(CYGPATH_W) 'viewer.c'; else $(CYGPATH_W) '$(srcdir)/viewer.c'; fi`
432 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/virt_viewer-viewer.Tpo $(DEPDIR)/virt_viewer-viewer.Po
486 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-viewer.obj -MD -MP -MF $(DEPDIR)/virt_viewer-viewer.Tpo -c -o virt_viewer-viewer.obj `if test -f 'viewer.c'; then $(CYGPATH_W) 'viewer.c'; else $(CYGPATH_W) '$(srcdir)/viewer.c'; fi`
487 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/virt_viewer-viewer.Tpo $(DEPDIR)/virt_viewer-viewer.Po
488 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
433489 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='viewer.c' object='virt_viewer-viewer.obj' libtool=no @AMDEPBACKSLASH@
434490 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
435491 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-viewer.obj `if test -f 'viewer.c'; then $(CYGPATH_W) 'viewer.c'; else $(CYGPATH_W) '$(srcdir)/viewer.c'; fi`
1313 Copyright 2007-2008 Red Hat, Inc.</property>
1414 <property name="comments" translatable="yes">A remote desktop client built with GTK-VNC and libvirt</property>
1515 <property name="website">http://virt-manager.org/</property>
16 <property name="website_label" translatable="yes">virt-vmanager.org</property>
16 <property name="website_label" translatable="yes">virt-manager.org</property>
1717 <property name="license" translatable="yes">This program is free software; you can redistribute it and/or modify
1818 it under the terms of the GNU General Public License as published by
1919 the Free Software Foundation; either version 2 of the License, or
9494 <widget class="GtkButton" id="button-ok">
9595 <property name="visible">True</property>
9696 <property name="can_focus">True</property>
97 <property name="can_default">True</property>
98 <property name="has_default">True</property>
9799 <property name="receives_default">True</property>
98100 <property name="label" translatable="yes">gtk-ok</property>
99101 <property name="use_stock">True</property>
2020 */
2121
2222 #include <config.h>
23
23 #include <locale.h>
2424 #include <vncdisplay.h>
2525 #include <gtk/gtk.h>
26 #include <glib/gi18n.h>
27 #include <stdlib.h>
2628
2729 #include "viewer.h"
2830
29 static void viewer_version(FILE *out)
31 static void viewer_version(void)
3032 {
31 fprintf(out, "%s version %s\n", PACKAGE, VERSION);
33 g_print(_("%s version %s\n"), PACKAGE, VERSION);
34
35 exit(0);
3236 }
3337
3438
3943 int ret;
4044 char *uri = NULL;
4145 gchar **args = NULL;
42 gboolean print_version = FALSE;
4346 gboolean verbose = FALSE;
4447 gboolean debug = FALSE;
4548 gboolean direct = FALSE;
4649 gboolean waitvm = FALSE;
4750 gboolean reconnect = FALSE;
48 const char *help_msg = "Run '" PACKAGE " --help' to see a full list of available command line options";
51 const char *help_msg = N_("Run '" PACKAGE " --help' to see a full list of available command line options");
4952 const GOptionEntry options [] = {
50 { "version", 'V', 0, G_OPTION_ARG_NONE, &print_version,
51 "display version information", NULL },
53 { "version", 'V', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK,
54 viewer_version, N_("display version information"), NULL },
5255 { "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
53 "display verbose information", NULL },
56 N_("display verbose information"), NULL },
5457 { "direct", 'd', 0, G_OPTION_ARG_NONE, &direct,
55 "direct connection with no automatic tunnels", NULL },
58 N_("direct connection with no automatic tunnels"), NULL },
5659 { "connect", 'c', 0, G_OPTION_ARG_STRING, &uri,
57 "connect to hypervisor", "URI"},
60 N_("connect to hypervisor"), "URI"},
5861 { "wait", 'w', 0, G_OPTION_ARG_NONE, &waitvm,
59 "wait for domain to start", NULL },
62 N_("wait for domain to start"), NULL },
6063 { "reconnect", 'r', 0, G_OPTION_ARG_NONE, &reconnect,
61 "reconnect to domain upon restart", NULL },
64 N_("reconnect to domain upon restart"), NULL },
6265 { "debug", '\0', 0, G_OPTION_ARG_NONE, &debug,
63 "display debugging information", NULL },
66 N_("display debugging information"), NULL },
6467 { G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_STRING_ARRAY, &args,
6568 NULL, "DOMAIN-NAME|ID|UUID" },
6669 { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
6770 };
6871
72 setlocale(LC_ALL, "");
73 bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR);
74 bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
75 textdomain(GETTEXT_PACKAGE);
76
6977 /* Setup command line options */
70 context = g_option_context_new ("- Virtual machine graphical console");
78 context = g_option_context_new (_("- Virtual machine graphical console"));
7179 g_option_context_add_main_entries (context, options, NULL);
7280 g_option_context_add_group (context, gtk_get_option_group (TRUE));
7381 g_option_context_add_group (context, vnc_display_get_option_group ());
7482 g_option_context_parse (context, &argc, &argv, &error);
7583 if (error) {
76 g_print ("%s\n%s\n",
77 error->message,
78 help_msg);
79 g_error_free (error);
84 g_printerr("%s\n%s\n",
85 error->message,
86 gettext(help_msg));
87 g_error_free(error);
8088 return 1;
8189 }
82 if (print_version) {
83 viewer_version(stdout);
84 return 0;
85 }
90
91 g_option_context_free(context);
8692
8793 if (!args || (g_strv_length(args) != 1)) {
88 fprintf(stderr, "\nUsage: %s [OPTIONS] DOMAIN-NAME|ID|UUID\n\n%s\n\n", argv[0], help_msg);
94 fprintf(stderr, _("\nUsage: %s [OPTIONS] DOMAIN-NAME|ID|UUID\n\n%s\n\n"), argv[0], help_msg);
8995 return 1;
9096 }
9197
2626 #include <gtk/gtk.h>
2727 #include <glade/glade.h>
2828
29 #if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION <= 12)
30 #define gtk_widget_get_window(widget) ((widget)->window)
31 #endif
2932
3033 extern gboolean doDebug;
3134
2929 #include <stdlib.h>
3030 #include <string.h>
3131 #include <unistd.h>
32 #include <locale.h>
33 #include <glib/gi18n.h>
3234 #include <libvirt/libvirt.h>
3335 #include <libvirt/virterror.h>
3436 #include <libxml/xpath.h>
5153 #include "auth.h"
5254
5355 gboolean doDebug = FALSE;
54
55 static gboolean viewer_connect_timer(void *opaque);
5656
5757 enum menuNums {
5858 FILE_MENU,
113113 gboolean fullscreen;
114114 gboolean withEvents;
115115
116 int active;
116 gboolean active;
117117 char *vncAddress;
118118
119119 gboolean accelEnabled;
121121 GSList *accelList;
122122 int accelMenuSig[LAST_MENU];
123123
124 int waitvm;
125 int reconnect;
126 int direct;
127 int verbose;
124 gboolean waitvm;
125 gboolean reconnect;
126 gboolean direct;
127 gboolean verbose;
128 gboolean authretry;
129 gboolean connected;
130
131 gchar *clipboard;
128132 } VirtViewer;
129133
130134 typedef struct VirtViewerSize {
133137 gulong sig_id;
134138 } VirtViewerSize;
135139
140
141 static gboolean viewer_connect_timer(void *opaque);
142 static int viewer_initial_connect(VirtViewer *viewer);
143
144
145 static void viewer_simple_message_dialog(GtkWidget *window, const char *fmt, ...)
146 {
147 GtkWidget *dialog;
148 char *msg;
149 va_list vargs;
150
151 va_start(vargs, fmt);
152
153 msg = g_strdup_vprintf(fmt, vargs);
154
155 va_end(vargs);
156
157 dialog = gtk_message_dialog_new(GTK_WINDOW(window),
158 GTK_DIALOG_MODAL |
159 GTK_DIALOG_DESTROY_WITH_PARENT,
160 GTK_MESSAGE_ERROR,
161 GTK_BUTTONS_OK,
162 "%s",
163 msg);
164
165 gtk_dialog_run(GTK_DIALOG(dialog));
166
167 gtk_widget_destroy(dialog);
168
169 g_free(msg);
170 }
136171
137172
138173 /* Now that the size is set to our preferred sizing, this
335370
336371 static void viewer_set_title(VirtViewer *viewer, gboolean grabbed)
337372 {
338 char title[1024];
373 char *title;
339374 const char *subtitle;
340375
341376 if (!viewer->window)
346381 else
347382 subtitle = "";
348383
349 snprintf(title, sizeof(title), "%s%s - Virt Viewer",
350 subtitle, viewer->domtitle);
384 title = g_strdup_printf("%s%s - Virt Viewer",
385 subtitle, viewer->domtitle);
351386
352387 gtk_window_set_title(GTK_WINDOW(viewer->window), title);
388
389 g_free(title);
353390 }
354391
355392 static gboolean viewer_ignore_accel(GtkWidget *menu G_GNUC_UNUSED,
388425 for (i = 0 ; i < LAST_MENU ; i++) {
389426 GtkWidget *menu = glade_xml_get_widget(viewer->glade, menuNames[i]);
390427 viewer->accelMenuSig[i] =
391 g_signal_connect(GTK_OBJECT(menu), "mnemonic-activate",
392 GTK_SIGNAL_FUNC(viewer_ignore_accel), viewer);
428 g_signal_connect(menu, "mnemonic-activate",
429 G_CALLBACK(viewer_ignore_accel), viewer);
393430 }
394431
395432 viewer->accelEnabled = FALSE;
419456 /* This allows menu bar shortcuts like Alt+F == File */
420457 for (i = 0 ; i < LAST_MENU ; i++) {
421458 GtkWidget *menu = glade_xml_get_widget(viewer->glade, menuNames[i]);
422 g_signal_handler_disconnect(GTK_OBJECT(menu),
423 viewer->accelMenuSig[i]);
459 g_signal_handler_disconnect(menu, viewer->accelMenuSig[i]);
424460 }
425461
426462 viewer->accelEnabled = TRUE;
493529 GtkWidget *label = gtk_bin_get_child(GTK_BIN(menu));
494530 const char *text = gtk_label_get_label(GTK_LABEL(label));
495531
496 for (i = 0 ; i < (sizeof(keyCombos)/sizeof(keyCombos[0])) ; i++) {
532 for (i = 0 ; i < G_N_ELEMENTS(keyCombos) ; i++) {
497533 if (!strcmp(text, keyCombos[i].label)) {
498534 DEBUG_LOG("Sending key combo %s", gtk_label_get_text(GTK_LABEL(label)));
499535 vnc_display_send_keys(VNC_DISPLAY(viewer->vnc),
837873 if (viewer->active)
838874 goto cleanup;
839875
840 if ((vncport = viewer_extract_vnc_port(dom)) == NULL)
876 if ((vncport = viewer_extract_vnc_port(dom)) == NULL) {
877 viewer_simple_message_dialog(viewer->window, _("Cannot determine the VNC port for the guest %s"),
878 viewer->domkey);
841879 goto cleanup;
842
843 if (viewer_extract_host(viewer->uri, &host, &transport, &user, &port) < 0)
880 }
881
882 if (viewer_extract_host(viewer->uri, &host, &transport, &user, &port) < 0) {
883 viewer_simple_message_dialog(viewer->window, _("Cannot determine the VNC host for the guest %s"),
884 viewer->domkey);
844885 goto cleanup;
886 }
845887
846888 DEBUG_LOG("Remote host is %s and transport %s user %s",
847889 host, transport ? transport : "", user ? user : "");
866908 free(viewer->domtitle);
867909 viewer->domtitle = g_strdup(virDomainGetName(dom));
868910
869 viewer->active = 1;
911 viewer->connected = FALSE;
912 viewer->active = TRUE;
870913 viewer_set_title(viewer, FALSE);
871914
872915 ret = 0;
879922
880923 }
881924
925
926 static gboolean viewer_retryauth(gpointer opaque)
927 {
928 VirtViewer *viewer = opaque;
929 viewer_initial_connect(viewer);
930
931 return FALSE;
932 }
933
882934 static void viewer_deactivate(VirtViewer *viewer)
883935 {
884936 if (!viewer->active)
888940 free(viewer->domtitle);
889941 viewer->domtitle = NULL;
890942
891 if (viewer->reconnect) {
943 viewer->connected = FALSE;
944 viewer->active = FALSE;
945 g_free(viewer->vncAddress);
946 viewer->vncAddress = NULL;
947 viewer_set_title(viewer, FALSE);
948
949 if (viewer->authretry) {
950 viewer->authretry = FALSE;
951 g_idle_add(viewer_retryauth, viewer);
952 } else if (viewer->reconnect) {
892953 if (!viewer->withEvents) {
893954 DEBUG_LOG("No domain events, falling back to polling");
894955 g_timeout_add(500,
901962 viewer_set_status(viewer, "Guest domain has shutdown");
902963 gtk_main_quit();
903964 }
904 viewer->active = 0;
905 g_free(viewer->vncAddress);
906 viewer->vncAddress = NULL;
907 viewer_set_title(viewer, FALSE);
908965 }
909966
910967 static void viewer_connected(GtkWidget *vnc G_GNUC_UNUSED, VirtViewer *viewer)
911968 {
969 viewer->connected = TRUE;
912970 viewer_set_status(viewer, "Connected to VNC server");
913971 }
914972
921979
922980 static void viewer_disconnected(GtkWidget *vnc G_GNUC_UNUSED, VirtViewer *viewer)
923981 {
982 if (!viewer->connected) {
983 viewer_simple_message_dialog(viewer->window, _("Unable to connect to the VNC server %s"),
984 viewer->vncAddress);
985 }
924986 viewer_deactivate(viewer);
987 }
988
989
990 static void viewer_vnc_auth_failure(GtkWidget *vnc G_GNUC_UNUSED, const char *reason, VirtViewer *viewer)
991 {
992 GtkWidget *dialog;
993 int ret;
994
995 dialog = gtk_message_dialog_new(GTK_WINDOW(viewer->window),
996 GTK_DIALOG_MODAL |
997 GTK_DIALOG_DESTROY_WITH_PARENT,
998 GTK_MESSAGE_ERROR,
999 GTK_BUTTONS_YES_NO,
1000 _("Unable to authenticate with VNC server at %s: %s\n"
1001 "Retry connection again?"),
1002 viewer->vncAddress, reason);
1003
1004 ret = gtk_dialog_run(GTK_DIALOG(dialog));
1005
1006 gtk_widget_destroy(dialog);
1007
1008 if (ret == GTK_RESPONSE_YES)
1009 viewer->authretry = TRUE;
1010 else
1011 viewer->authretry = FALSE;
1012 }
1013
1014
1015 static void viewer_vnc_auth_unsupported(GtkWidget *vnc G_GNUC_UNUSED, unsigned int authType, VirtViewer *viewer)
1016 {
1017 viewer_simple_message_dialog(viewer->window,
1018 _("Unable to authenticate with VNC server at %s\n"
1019 "Unsupported authentication type %d"),
1020 viewer->vncAddress, authType);
1021 }
1022
1023
1024 static void viewer_vnc_bell(GtkWidget *vnc G_GNUC_UNUSED, VirtViewer *viewer)
1025 {
1026 gdk_window_beep(GTK_WIDGET(viewer->window)->window);
1027 }
1028
1029
1030 /* text was actually requested */
1031 static void viewer_vnc_clipboard_copy(GtkClipboard *clipboard G_GNUC_UNUSED,
1032 GtkSelectionData *data,
1033 guint info G_GNUC_UNUSED,
1034 VirtViewer *viewer)
1035 {
1036 gtk_selection_data_set_text(data, viewer->clipboard, -1);
1037 }
1038
1039 static void viewer_vnc_server_cut_text(VncDisplay *vnc G_GNUC_UNUSED,
1040 const gchar *text, VirtViewer *viewer)
1041 {
1042 GtkClipboard *cb;
1043 gsize a, b;
1044 GtkTargetEntry targets[] = {
1045 {g_strdup("UTF8_STRING"), 0, 0},
1046 {g_strdup("COMPOUND_TEXT"), 0, 0},
1047 {g_strdup("TEXT"), 0, 0},
1048 {g_strdup("STRING"), 0, 0},
1049 };
1050
1051 if (!text)
1052 return;
1053
1054 g_free (viewer->clipboard);
1055 viewer->clipboard = g_convert (text, -1, "utf-8", "iso8859-1", &a, &b, NULL);
1056
1057 if (viewer->clipboard) {
1058 cb = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
1059
1060 gtk_clipboard_set_with_owner (cb,
1061 targets,
1062 G_N_ELEMENTS(targets),
1063 (GtkClipboardGetFunc)viewer_vnc_clipboard_copy,
1064 NULL,
1065 G_OBJECT (viewer));
1066 }
9251067 }
9261068
9271069
9651107 viewer_set_status(viewer, "Waiting for guest domain to be created");
9661108 goto done;
9671109 } else {
968 DEBUG_LOG("Cannot find guest");
1110 viewer_simple_message_dialog(viewer->window, _("Cannot find guest domain %s"),
1111 viewer->domkey);
1112 DEBUG_LOG("Cannot find guest %s", viewer->domkey);
9691113 goto cleanup;
9701114 }
9711115 }
10651209 &auth_libvirt,
10661210 VIR_CONNECT_RO);
10671211 if (!viewer->conn) {
1068 fprintf(stderr, "unable to connect to libvirt %s\n",
1069 uri ? uri : "xen");
1212 viewer_simple_message_dialog(NULL, _("Unable to connect to libvirt with URI %s"),
1213 uri ? uri : _("[none]"));
10701214 return -1;
10711215 }
10721216
11081252 vnc_display_set_force_size(VNC_DISPLAY(viewer->vnc), FALSE);
11091253 vnc_display_set_scaling(VNC_DISPLAY(viewer->vnc), TRUE);
11101254
1111 g_signal_connect(GTK_OBJECT(viewer->vnc), "vnc-connected",
1112 GTK_SIGNAL_FUNC(viewer_connected), viewer);
1113 g_signal_connect(GTK_OBJECT(viewer->vnc), "vnc-initialized",
1114 GTK_SIGNAL_FUNC(viewer_initialized), viewer);
1115 g_signal_connect(GTK_OBJECT(viewer->vnc), "vnc-disconnected",
1116 GTK_SIGNAL_FUNC(viewer_disconnected), viewer);
1255 g_signal_connect(viewer->vnc, "vnc-connected",
1256 G_CALLBACK(viewer_connected), viewer);
1257 g_signal_connect(viewer->vnc, "vnc-initialized",
1258 G_CALLBACK(viewer_initialized), viewer);
1259 g_signal_connect(viewer->vnc, "vnc-disconnected",
1260 G_CALLBACK(viewer_disconnected), viewer);
11171261
11181262 /* When VNC desktop resizes, we have to resize the containing widget */
1119 g_signal_connect(GTK_OBJECT(viewer->vnc), "vnc-desktop-resize",
1120 GTK_SIGNAL_FUNC(viewer_resize_desktop), viewer);
1121 g_signal_connect(GTK_OBJECT(viewer->vnc), "vnc-pointer-grab",
1122 GTK_SIGNAL_FUNC(viewer_mouse_grab), viewer);
1123 g_signal_connect(GTK_OBJECT(viewer->vnc), "vnc-pointer-ungrab",
1124 GTK_SIGNAL_FUNC(viewer_mouse_ungrab), viewer);
1125 g_signal_connect(GTK_OBJECT(viewer->vnc), "vnc-keyboard-grab",
1126 GTK_SIGNAL_FUNC(viewer_key_grab), viewer);
1127 g_signal_connect(GTK_OBJECT(viewer->vnc), "vnc-keyboard-ungrab",
1128 GTK_SIGNAL_FUNC(viewer_key_ungrab), viewer);
1129
1130 g_signal_connect(GTK_OBJECT(viewer->vnc), "vnc-auth-credential",
1131 GTK_SIGNAL_FUNC(viewer_auth_vnc_credentials), &viewer->vncAddress);
1263 g_signal_connect(viewer->vnc, "vnc-desktop-resize",
1264 G_CALLBACK(viewer_resize_desktop), viewer);
1265 g_signal_connect(viewer->vnc, "vnc-pointer-grab",
1266 G_CALLBACK(viewer_mouse_grab), viewer);
1267 g_signal_connect(viewer->vnc, "vnc-pointer-ungrab",
1268 G_CALLBACK(viewer_mouse_ungrab), viewer);
1269 g_signal_connect(viewer->vnc, "vnc-keyboard-grab",
1270 G_CALLBACK(viewer_key_grab), viewer);
1271 g_signal_connect(viewer->vnc, "vnc-keyboard-ungrab",
1272 G_CALLBACK(viewer_key_ungrab), viewer);
1273
1274 g_signal_connect(viewer->vnc, "vnc-auth-credential",
1275 G_CALLBACK(viewer_auth_vnc_credentials), &viewer->vncAddress);
1276 g_signal_connect(viewer->vnc, "vnc-auth-failure",
1277 G_CALLBACK(viewer_vnc_auth_failure), viewer);
1278 g_signal_connect(viewer->vnc, "vnc-auth-unsupported",
1279 G_CALLBACK(viewer_vnc_auth_unsupported), viewer);
1280
1281 g_signal_connect(viewer->vnc, "vnc-bell",
1282 G_CALLBACK(viewer_vnc_bell), viewer);
1283 g_signal_connect(viewer->vnc, "vnc-server-cut-text",
1284 G_CALLBACK(viewer_vnc_server_cut_text), viewer);
11321285
11331286 notebook = glade_xml_get_widget(viewer->glade, "notebook");
11341287
11361289 align = glade_xml_get_widget(viewer->glade, "vnc-align");
11371290 gtk_container_add(GTK_CONTAINER(align), viewer->vnc);
11381291
1139 g_signal_connect(GTK_OBJECT(align), "size-allocate",
1140 GTK_SIGNAL_FUNC(viewer_resize_align), viewer);
1292 g_signal_connect(align, "size-allocate",
1293 G_CALLBACK(viewer_resize_align), viewer);
11411294
11421295 if (container) {
11431296 viewer->container = container;
11481301 GSList *accels;
11491302 viewer->container = window;
11501303 viewer->window = window;
1151 g_signal_connect(GTK_OBJECT(window), "delete-event",
1152 GTK_SIGNAL_FUNC(viewer_shutdown), viewer);
1304 g_signal_connect(window, "delete-event",
1305 G_CALLBACK(viewer_shutdown), viewer);
11531306 gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
11541307 viewer->accelEnabled = TRUE;
11551308 accels = gtk_accel_groups_from_object(G_OBJECT(window));
44 %define _with_plugin %{?with_plugin:1}%{!?with_plugin:0}
55
66 Name: virt-viewer
7 Version: 0.2.0
7 Version: 0.2.1
88 Release: 1%{?dist}%{?extra_release}
99 Summary: Virtual Machine Viewer
1010 Group: Applications/System
6666 rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.a
6767 rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.la
6868 %endif
69 %find_lang %{name}
6970
7071 %clean
7172 rm -rf $RPM_BUILD_ROOT
7273
73 %files
74 %files -f %{name}.lang
7475 %defattr(-,root,root,-)
7576 %doc README COPYING AUTHORS ChangeLog NEWS
7677 %{_bindir}/%{name}
6666 rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.a
6767 rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.la
6868 %endif
69 %find_lang %{name}
6970
7071 %clean
7172 rm -rf $RPM_BUILD_ROOT
7273
73 %files
74 %files -f %{name}.lang
7475 %defattr(-,root,root,-)
7576 %doc README COPYING AUTHORS ChangeLog NEWS
7677 %{_bindir}/%{name}