comparison src/libglade-1-fixes.patch @ 2564:9b2fb0f5e812

libglade : autoreconf executed before recording patch
author William <r.3@libertysurf.fr>
date Mon, 21 May 2012 23:49:06 +0200
parents 73d89a70785d
children 464981aec153
comparison
equal deleted inserted replaced
2563:73d89a70785d 2564:9b2fb0f5e812
1 This file is part of MXE. 1 This file is part of MXE.
2 See index.html for further information. 2 See index.html for further information.
3 3
4 Contains ad hoc patches for cross building. 4 Contains ad hoc patches for cross building.
5 5
6 [master 7902cc9] new version 6 [master f4cc210] new version
7 2 files changed, 11 insertions(+), 9 deletions(-) 7 10 files changed, 23905 insertions(+), 26293 deletions(-)
8 From 7902cc9d22a0c7866d685117d78b3512a5719af6 Mon Sep 17 00:00:00 2001 8 rewrite aclocal.m4 (80%)
9 From f4cc2105833fb9597123a5967b6b0e994ecde441 Mon Sep 17 00:00:00 2001
9 From: MXE 10 From: MXE
10 Date: Sat, 12 May 2012 13:22:19 +0200 11 Date: Mon, 21 May 2012 23:23:11 +0200
11 Subject: [PATCH] new version 12 Subject: [PATCH] new version
12 13
13 14
15 diff --git a/Makefile.in b/Makefile.in
16 index b850edd..d069fbf 100644
17 --- a/Makefile.in
18 +++ b/Makefile.in
19 @@ -1,8 +1,9 @@
20 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
21 +# Makefile.in generated by automake 1.11.3 from Makefile.am.
22 # @configure_input@
23
24 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
25 -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
26 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27 +# Foundation, Inc.
28 # This Makefile.in is free software; the Free Software Foundation
29 # gives unlimited permission to copy and/or distribute it,
30 # with or without modifications, as long as this notice is preserved.
31 @@ -18,8 +19,9 @@
32
33 VPATH = @srcdir@
34 pkgdatadir = $(datadir)/@PACKAGE@
35 -pkglibdir = $(libdir)/@PACKAGE@
36 pkgincludedir = $(includedir)/@PACKAGE@
37 +pkglibdir = $(libdir)/@PACKAGE@
38 +pkglibexecdir = $(libexecdir)/@PACKAGE@
39 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
40 install_sh_DATA = $(install_sh) -c -m 644
41 install_sh_PROGRAM = $(install_sh) -c
42 @@ -46,7 +48,10 @@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
43 mkinstalldirs
44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
45 am__aclocal_m4_deps = $(top_srcdir)/m4/gtk-doc.m4 \
46 - $(top_srcdir)/m4/jh-xml-catalog.m4 $(top_srcdir)/configure.in
47 + $(top_srcdir)/m4/jh-xml-catalog.m4 $(top_srcdir)/m4/libtool.m4 \
48 + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
49 + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
50 + $(top_srcdir)/configure.in
51 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
52 $(ACLOCAL_M4)
53 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
54 @@ -55,19 +60,47 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
55 CONFIG_HEADER = config.h
56 CONFIG_CLEAN_FILES = libglade.spec libglade-zip libglade-2.0.pc \
57 libglade-2.0-uninstalled.pc libglade-convert
58 +CONFIG_CLEAN_VPATH_FILES =
59 PROGRAMS = $(noinst_PROGRAMS)
60 am_test_libglade_OBJECTS = test-libglade.$(OBJEXT)
61 test_libglade_OBJECTS = $(am_test_libglade_OBJECTS)
62 am__DEPENDENCIES_1 =
63 test_libglade_DEPENDENCIES = glade/libglade-2.0.la \
64 $(am__DEPENDENCIES_1)
65 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
66 +am__vpath_adj = case $$p in \
67 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
68 + *) f=$$p;; \
69 + esac;
70 +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
71 +am__install_max = 40
72 +am__nobase_strip_setup = \
73 + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
74 +am__nobase_strip = \
75 + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
76 +am__nobase_list = $(am__nobase_strip_setup); \
77 + for p in $$list; do echo "$$p $$p"; done | \
78 + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
79 + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
80 + if (++n[$$2] == $(am__install_max)) \
81 + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
82 + END { for (dir in files) print dir, files[dir] }'
83 +am__base_list = \
84 + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
85 + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
86 +am__uninstall_files_from_dir = { \
87 + test -z "$$files" \
88 + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
89 + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
90 + $(am__cd) "$$dir" && rm -f $$files; }; \
91 + }
92 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)" \
93 "$(DESTDIR)$(xmldir)"
94 -binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
95 SCRIPTS = $(bin_SCRIPTS)
96 DEFAULT_INCLUDES = -I.@am__isrc@
97 depcomp = $(SHELL) $(top_srcdir)/depcomp
98 am__depfiles_maybe = depfiles
99 +am__mv = mv -f
100 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
101 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
102 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
103 @@ -86,17 +119,12 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
104 install-pdf-recursive install-ps-recursive install-recursive \
105 installcheck-recursive installdirs-recursive pdf-recursive \
106 ps-recursive uninstall-recursive
107 -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
108 -am__vpath_adj = case $$p in \
109 - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
110 - *) f=$$p;; \
111 - esac;
112 -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
113 -pkgconfigDATA_INSTALL = $(INSTALL_DATA)
114 -xmlDATA_INSTALL = $(INSTALL_DATA)
115 DATA = $(pkgconfig_DATA) $(xml_DATA)
116 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
117 distclean-recursive maintainer-clean-recursive
118 +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
119 + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
120 + distdir dist dist-all distcheck
121 ETAGS = etags
122 CTAGS = ctags
123 DIST_SUBDIRS = $(SUBDIRS)
124 @@ -104,15 +132,43 @@ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
125 distdir = $(PACKAGE)-$(VERSION)
126 top_distdir = $(distdir)
127 am__remove_distdir = \
128 - { test ! -d $(distdir) \
129 - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
130 - && rm -fr $(distdir); }; }
131 + if test -d "$(distdir)"; then \
132 + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
133 + && rm -rf "$(distdir)" \
134 + || { sleep 5 && rm -rf "$(distdir)"; }; \
135 + else :; fi
136 +am__relativize = \
137 + dir0=`pwd`; \
138 + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
139 + sed_rest='s,^[^/]*/*,,'; \
140 + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
141 + sed_butlast='s,/*[^/]*$$,,'; \
142 + while test -n "$$dir1"; do \
143 + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
144 + if test "$$first" != "."; then \
145 + if test "$$first" = ".."; then \
146 + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
147 + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
148 + else \
149 + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
150 + if test "$$first2" = "$$first"; then \
151 + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
152 + else \
153 + dir2="../$$dir2"; \
154 + fi; \
155 + dir0="$$dir0"/"$$first"; \
156 + fi; \
157 + fi; \
158 + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
159 + done; \
160 + reldir="$$dir2"
161 GZIP_ENV = --best
162 DIST_ARCHIVES = $(distdir).tar.bz2
163 distuninstallcheck_listfiles = find . -type f -print
164 +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
165 + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
166 distcleancheck_listfiles = find . -type f -print
167 ACLOCAL = @ACLOCAL@
168 -ACLOCAL_AMFLAGS = -I m4
169 AMTAR = @AMTAR@
170 AR = @AR@
171 AS = @AS@
172 @@ -133,12 +189,13 @@ DEFS = @DEFS@
173 DEPDIR = @DEPDIR@
174 DLLTOOL = @DLLTOOL@
175 DSYMUTIL = @DSYMUTIL@
176 -ECHO = @ECHO@
177 +DUMPBIN = @DUMPBIN@
178 ECHO_C = @ECHO_C@
179 ECHO_N = @ECHO_N@
180 ECHO_T = @ECHO_T@
181 EGREP = @EGREP@
182 EXEEXT = @EXEEXT@
183 +FGREP = @FGREP@
184 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
185 GMOFILES = @GMOFILES@
186 GMSGFMT = @GMSGFMT@
187 @@ -155,30 +212,39 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
188 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
189 INSTOBJEXT = @INSTOBJEXT@
190 INTLLIBS = @INTLLIBS@
191 +LD = @LD@
192 LDFLAGS = @LDFLAGS@
193 LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@
194 LIBGLADE_LIBS = @LIBGLADE_LIBS@
195 LIBOBJS = @LIBOBJS@
196 LIBS = @LIBS@
197 LIBTOOL = @LIBTOOL@
198 +LIPO = @LIPO@
199 LN_S = @LN_S@
200 LTLIBOBJS = @LTLIBOBJS@
201 MAKEINFO = @MAKEINFO@
202 +MANIFEST_TOOL = @MANIFEST_TOOL@
203 MKDIR_P = @MKDIR_P@
204 MKINSTALLDIRS = @MKINSTALLDIRS@
205 MSGFMT = @MSGFMT@
206 MSGFMT_OPTS = @MSGFMT_OPTS@
207 +NM = @NM@
208 NMEDIT = @NMEDIT@
209 OBJDUMP = @OBJDUMP@
210 OBJEXT = @OBJEXT@
211 +OTOOL = @OTOOL@
212 +OTOOL64 = @OTOOL64@
213 PACKAGE = @PACKAGE@
214 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
215 PACKAGE_NAME = @PACKAGE_NAME@
216 PACKAGE_STRING = @PACKAGE_STRING@
217 PACKAGE_TARNAME = @PACKAGE_TARNAME@
218 +PACKAGE_URL = @PACKAGE_URL@
219 PACKAGE_VERSION = @PACKAGE_VERSION@
220 PATH_SEPARATOR = @PATH_SEPARATOR@
221 PKG_CONFIG = @PKG_CONFIG@
222 +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
223 +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
224 POFILES = @POFILES@
225 POSUB = @POSUB@
226 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
227 @@ -202,7 +268,9 @@ abs_builddir = @abs_builddir@
228 abs_srcdir = @abs_srcdir@
229 abs_top_builddir = @abs_top_builddir@
230 abs_top_srcdir = @abs_top_srcdir@
231 +ac_ct_AR = @ac_ct_AR@
232 ac_ct_CC = @ac_ct_CC@
233 +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
234 am__include = @am__include@
235 am__leading_dot = @am__leading_dot@
236 am__quote = @am__quote@
237 @@ -253,6 +321,7 @@ top_build_prefix = @top_build_prefix@
238 top_builddir = @top_builddir@
239 top_srcdir = @top_srcdir@
240 SUBDIRS = glade doc tests
241 +ACLOCAL_AMFLAGS = -I m4
242 INCLUDES = $(LIBGLADE_CFLAGS)
243
244 # build documentation when doing a distcheck.
245 @@ -285,21 +354,21 @@ all: config.h
246
247 .SUFFIXES:
248 .SUFFIXES: .c .lo .o .obj
249 -am--refresh:
250 +am--refresh: Makefile
251 @:
252 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
253 @for dep in $?; do \
254 case '$(am__configure_deps)' in \
255 *$$dep*) \
256 - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
257 - cd $(srcdir) && $(AUTOMAKE) --gnu \
258 + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
259 + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
260 && exit 0; \
261 exit 1;; \
262 esac; \
263 done; \
264 - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
265 - cd $(top_srcdir) && \
266 - $(AUTOMAKE) --gnu Makefile
267 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
268 + $(am__cd) $(top_srcdir) && \
269 + $(AUTOMAKE) --gnu Makefile
270 .PRECIOUS: Makefile
271 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
272 @case '$?' in \
273 @@ -315,21 +384,20 @@ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENC
274 $(SHELL) ./config.status --recheck
275
276 $(top_srcdir)/configure: $(am__configure_deps)
277 - cd $(srcdir) && $(AUTOCONF)
278 + $(am__cd) $(srcdir) && $(AUTOCONF)
279 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
280 - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
281 + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
282 +$(am__aclocal_m4_deps):
283
284 config.h: stamp-h1
285 - @if test ! -f $@; then \
286 - rm -f stamp-h1; \
287 - $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
288 - else :; fi
289 + @if test ! -f $@; then rm -f stamp-h1; else :; fi
290 + @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
291
292 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
293 @rm -f stamp-h1
294 cd $(top_builddir) && $(SHELL) ./config.status config.h
295 $(srcdir)/config.h.in: $(am__configure_deps)
296 - cd $(top_srcdir) && $(AUTOHEADER)
297 + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
298 rm -f stamp-h1
299 touch $@
300
301 @@ -347,33 +415,48 @@ libglade-convert: $(top_builddir)/config.status $(srcdir)/libglade-convert.in
302 cd $(top_builddir) && $(SHELL) ./config.status $@
303
304 clean-noinstPROGRAMS:
305 - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
306 - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
307 - echo " rm -f $$p $$f"; \
308 - rm -f $$p $$f ; \
309 - done
310 -test-libglade$(EXEEXT): $(test_libglade_OBJECTS) $(test_libglade_DEPENDENCIES)
311 + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
312 + echo " rm -f" $$list; \
313 + rm -f $$list || exit $$?; \
314 + test -n "$(EXEEXT)" || exit 0; \
315 + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
316 + echo " rm -f" $$list; \
317 + rm -f $$list
318 +test-libglade$(EXEEXT): $(test_libglade_OBJECTS) $(test_libglade_DEPENDENCIES) $(EXTRA_test_libglade_DEPENDENCIES)
319 @rm -f test-libglade$(EXEEXT)
320 $(LINK) $(test_libglade_OBJECTS) $(test_libglade_LDADD) $(LIBS)
321 install-binSCRIPTS: $(bin_SCRIPTS)
322 @$(NORMAL_INSTALL)
323 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
324 - @list='$(bin_SCRIPTS)'; for p in $$list; do \
325 + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
326 + for p in $$list; do \
327 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
328 - if test -f $$d$$p; then \
329 - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
330 - echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
331 - $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
332 - else :; fi; \
333 - done
334 + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
335 + done | \
336 + sed -e 'p;s,.*/,,;n' \
337 + -e 'h;s|.*|.|' \
338 + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
339 + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
340 + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
341 + if ($$2 == $$4) { files[d] = files[d] " " $$1; \
342 + if (++n[d] == $(am__install_max)) { \
343 + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
344 + else { print "f", d "/" $$4, $$1 } } \
345 + END { for (d in files) print "f", d, files[d] }' | \
346 + while read type dir files; do \
347 + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
348 + test -z "$$files" || { \
349 + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
350 + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
351 + } \
352 + ; done
353
354 uninstall-binSCRIPTS:
355 @$(NORMAL_UNINSTALL)
356 - @list='$(bin_SCRIPTS)'; for p in $$list; do \
357 - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
358 - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
359 - rm -f "$(DESTDIR)$(bindir)/$$f"; \
360 - done
361 + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
362 + files=`for p in $$list; do echo "$$p"; done | \
363 + sed -e 's,.*/,,;$(transform)'`; \
364 + dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir)
365
366 mostlyclean-compile:
367 -rm -f *.$(OBJEXT)
368 @@ -385,21 +468,21 @@ distclean-compile:
369
370 .c.o:
371 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
372 -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
373 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
374 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
375 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
376 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
377
378 .c.obj:
379 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
380 -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
381 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
382 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
383 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
384 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
385
386 .c.lo:
387 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
388 -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
389 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
390 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
391 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
392 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
393 @@ -411,41 +494,43 @@ clean-libtool:
394 -rm -rf .libs _libs
395
396 distclean-libtool:
397 - -rm -f libtool
398 + -rm -f libtool config.lt
399 install-pkgconfigDATA: $(pkgconfig_DATA)
400 @$(NORMAL_INSTALL)
401 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
402 - @list='$(pkgconfig_DATA)'; for p in $$list; do \
403 + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
404 + for p in $$list; do \
405 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
406 - f=$(am__strip_dir) \
407 - echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
408 - $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
409 + echo "$$d$$p"; \
410 + done | $(am__base_list) | \
411 + while read files; do \
412 + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
413 + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
414 done
415
416 uninstall-pkgconfigDATA:
417 @$(NORMAL_UNINSTALL)
418 - @list='$(pkgconfig_DATA)'; for p in $$list; do \
419 - f=$(am__strip_dir) \
420 - echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
421 - rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
422 - done
423 + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
424 + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
425 + dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
426 install-xmlDATA: $(xml_DATA)
427 @$(NORMAL_INSTALL)
428 test -z "$(xmldir)" || $(MKDIR_P) "$(DESTDIR)$(xmldir)"
429 - @list='$(xml_DATA)'; for p in $$list; do \
430 + @list='$(xml_DATA)'; test -n "$(xmldir)" || list=; \
431 + for p in $$list; do \
432 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
433 - f=$(am__strip_dir) \
434 - echo " $(xmlDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(xmldir)/$$f'"; \
435 - $(xmlDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(xmldir)/$$f"; \
436 + echo "$$d$$p"; \
437 + done | $(am__base_list) | \
438 + while read files; do \
439 + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xmldir)'"; \
440 + $(INSTALL_DATA) $$files "$(DESTDIR)$(xmldir)" || exit $$?; \
441 done
442
443 uninstall-xmlDATA:
444 @$(NORMAL_UNINSTALL)
445 - @list='$(xml_DATA)'; for p in $$list; do \
446 - f=$(am__strip_dir) \
447 - echo " rm -f '$(DESTDIR)$(xmldir)/$$f'"; \
448 - rm -f "$(DESTDIR)$(xmldir)/$$f"; \
449 - done
450 + @list='$(xml_DATA)'; test -n "$(xmldir)" || list=; \
451 + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
452 + dir='$(DESTDIR)$(xmldir)'; $(am__uninstall_files_from_dir)
453
454 # This directory's subdirectories are mostly independent; you can cd
455 # into them and run `make' without going through this Makefile.
456 @@ -454,7 +539,7 @@ uninstall-xmlDATA:
457 # (which will cause the Makefiles to be regenerated when you run `make');
458 # (2) otherwise, pass the desired values on the `make' command line.
459 $(RECURSIVE_TARGETS):
460 - @failcom='exit 1'; \
461 + @fail= failcom='exit 1'; \
462 for f in x $$MAKEFLAGS; do \
463 case $$f in \
464 *=* | --[!k]*);; \
465 @@ -471,7 +556,7 @@ $(RECURSIVE_TARGETS):
466 else \
467 local_target="$$target"; \
468 fi; \
469 - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
470 + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
471 || eval $$failcom; \
472 done; \
473 if test "$$dot_seen" = "no"; then \
474 @@ -479,7 +564,7 @@ $(RECURSIVE_TARGETS):
475 fi; test -z "$$fail"
476
477 $(RECURSIVE_CLEAN_TARGETS):
478 - @failcom='exit 1'; \
479 + @fail= failcom='exit 1'; \
480 for f in x $$MAKEFLAGS; do \
481 case $$f in \
482 *=* | --[!k]*);; \
483 @@ -505,16 +590,16 @@ $(RECURSIVE_CLEAN_TARGETS):
484 else \
485 local_target="$$target"; \
486 fi; \
487 - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
488 + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
489 || eval $$failcom; \
490 done && test -z "$$fail"
491 tags-recursive:
492 list='$(SUBDIRS)'; for subdir in $$list; do \
493 - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
494 + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
495 done
496 ctags-recursive:
497 list='$(SUBDIRS)'; for subdir in $$list; do \
498 - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
499 + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
500 done
501
502 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
503 @@ -522,14 +607,14 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
504 unique=`for i in $$list; do \
505 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
506 done | \
507 - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
508 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
509 END { if (nonempty) { for (i in files) print i; }; }'`; \
510 mkid -fID $$unique
511 tags: TAGS
512
513 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
514 $(TAGS_FILES) $(LISP)
515 - tags=; \
516 + set x; \
517 here=`pwd`; \
518 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
519 include_option=--etags-include; \
520 @@ -541,7 +626,7 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
521 list='$(SUBDIRS)'; for subdir in $$list; do \
522 if test "$$subdir" = .; then :; else \
523 test ! -f $$subdir/TAGS || \
524 - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
525 + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
526 fi; \
527 done; \
528 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
529 @@ -550,36 +635,41 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
530 done | \
531 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
532 END { if (nonempty) { for (i in files) print i; }; }'`; \
533 - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
534 + shift; \
535 + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
536 test -n "$$unique" || unique=$$empty_fix; \
537 - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
538 - $$tags $$unique; \
539 + if test $$# -gt 0; then \
540 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
541 + "$$@" $$unique; \
542 + else \
543 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
544 + $$unique; \
545 + fi; \
546 fi
547 ctags: CTAGS
548 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
549 $(TAGS_FILES) $(LISP)
550 - tags=; \
551 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
552 unique=`for i in $$list; do \
553 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
554 done | \
555 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
556 END { if (nonempty) { for (i in files) print i; }; }'`; \
557 - test -z "$(CTAGS_ARGS)$$tags$$unique" \
558 + test -z "$(CTAGS_ARGS)$$unique" \
559 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
560 - $$tags $$unique
561 + $$unique
562
563 GTAGS:
564 here=`$(am__cd) $(top_builddir) && pwd` \
565 - && cd $(top_srcdir) \
566 - && gtags -i $(GTAGS_ARGS) $$here
567 + && $(am__cd) $(top_srcdir) \
568 + && gtags -i $(GTAGS_ARGS) "$$here"
569
570 distclean-tags:
571 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
572
573 distdir: $(DISTFILES)
574 $(am__remove_distdir)
575 - test -d $(distdir) || mkdir $(distdir)
576 + test -d "$(distdir)" || mkdir "$(distdir)"
577 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
578 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
579 list='$(DISTFILES)'; \
580 @@ -595,49 +685,74 @@ distdir: $(DISTFILES)
581 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
582 if test -d $$d/$$file; then \
583 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
584 + if test -d "$(distdir)/$$file"; then \
585 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
586 + fi; \
587 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
588 - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
589 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
590 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
591 fi; \
592 - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
593 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
594 else \
595 - test -f $(distdir)/$$file \
596 - || cp -p $$d/$$file $(distdir)/$$file \
597 + test -f "$(distdir)/$$file" \
598 + || cp -p $$d/$$file "$(distdir)/$$file" \
599 || exit 1; \
600 fi; \
601 done
602 - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
603 + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
604 if test "$$subdir" = .; then :; else \
605 test -d "$(distdir)/$$subdir" \
606 || $(MKDIR_P) "$(distdir)/$$subdir" \
607 || exit 1; \
608 - distdir=`$(am__cd) $(distdir) && pwd`; \
609 - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
610 - (cd $$subdir && \
611 + fi; \
612 + done
613 + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
614 + if test "$$subdir" = .; then :; else \
615 + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
616 + $(am__relativize); \
617 + new_distdir=$$reldir; \
618 + dir1=$$subdir; dir2="$(top_distdir)"; \
619 + $(am__relativize); \
620 + new_top_distdir=$$reldir; \
621 + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
622 + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
623 + ($(am__cd) $$subdir && \
624 $(MAKE) $(AM_MAKEFLAGS) \
625 - top_distdir="$$top_distdir" \
626 - distdir="$$distdir/$$subdir" \
627 + top_distdir="$$new_top_distdir" \
628 + distdir="$$new_distdir" \
629 am__remove_distdir=: \
630 am__skip_length_check=: \
631 + am__skip_mode_fix=: \
632 distdir) \
633 || exit 1; \
634 fi; \
635 done
636 - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
637 + -test -n "$(am__skip_mode_fix)" \
638 + || find "$(distdir)" -type d ! -perm -755 \
639 + -exec chmod u+rwx,go+rx {} \; -o \
640 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
641 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
642 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
643 - || chmod -R a+r $(distdir)
644 + || chmod -R a+r "$(distdir)"
645 dist-gzip: distdir
646 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
647 $(am__remove_distdir)
648 dist-bzip2: distdir
649 - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
650 + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
651 + $(am__remove_distdir)
652 +
653 +dist-lzip: distdir
654 + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
655 $(am__remove_distdir)
656
657 dist-lzma: distdir
658 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
659 $(am__remove_distdir)
660
661 +dist-xz: distdir
662 + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
663 + $(am__remove_distdir)
664 +
665 dist-tarZ: distdir
666 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
667 $(am__remove_distdir)
668 @@ -652,7 +767,7 @@ dist-zip: distdir
669 $(am__remove_distdir)
670
671 dist dist-all: distdir
672 - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
673 + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
674 $(am__remove_distdir)
675
676 # This target untars the dist file and tries a VPATH configuration. Then
677 @@ -661,15 +776,19 @@ dist dist-all: distdir
678 distcheck: dist
679 case '$(DIST_ARCHIVES)' in \
680 *.tar.gz*) \
681 - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
682 + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
683 *.tar.bz2*) \
684 - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
685 + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
686 *.tar.lzma*) \
687 - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
688 + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
689 + *.tar.lz*) \
690 + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
691 + *.tar.xz*) \
692 + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
693 *.tar.Z*) \
694 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
695 *.shar.gz*) \
696 - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
697 + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
698 *.zip*) \
699 unzip $(distdir).zip ;;\
700 esac
701 @@ -677,10 +796,13 @@ distcheck: dist
702 mkdir $(distdir)/_build
703 mkdir $(distdir)/_inst
704 chmod a-w $(distdir)
705 + test -d $(distdir)/_build || exit 0; \
706 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
707 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
708 - && cd $(distdir)/_build \
709 + && am__cwd=`pwd` \
710 + && $(am__cd) $(distdir)/_build \
711 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
712 + $(AM_DISTCHECK_CONFIGURE_FLAGS) \
713 $(DISTCHECK_CONFIGURE_FLAGS) \
714 && $(MAKE) $(AM_MAKEFLAGS) \
715 && $(MAKE) $(AM_MAKEFLAGS) dvi \
716 @@ -701,14 +823,24 @@ distcheck: dist
717 && rm -rf "$$dc_destdir" \
718 && $(MAKE) $(AM_MAKEFLAGS) dist \
719 && rm -rf $(DIST_ARCHIVES) \
720 - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
721 + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
722 + && cd "$$am__cwd" \
723 + || exit 1
724 $(am__remove_distdir)
725 @(echo "$(distdir) archives ready for distribution: "; \
726 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
727 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
728 distuninstallcheck:
729 - @cd $(distuninstallcheck_dir) \
730 - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
731 + @test -n '$(distuninstallcheck_dir)' || { \
732 + echo 'ERROR: trying to run $@ with an empty' \
733 + '$$(distuninstallcheck_dir)' >&2; \
734 + exit 1; \
735 + }; \
736 + $(am__cd) '$(distuninstallcheck_dir)' || { \
737 + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
738 + exit 1; \
739 + }; \
740 + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
741 || { echo "ERROR: files left after uninstall:" ; \
742 if test -n "$(DESTDIR)"; then \
743 echo " (check DESTDIR support)"; \
744 @@ -742,16 +874,22 @@ install-am: all-am
745
746 installcheck: installcheck-recursive
747 install-strip:
748 - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
749 - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
750 - `test -z '$(STRIP)' || \
751 - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
752 + if test -z '$(STRIP)'; then \
753 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
754 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
755 + install; \
756 + else \
757 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
758 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
759 + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
760 + fi
761 mostlyclean-generic:
762
763 clean-generic:
764
765 distclean-generic:
766 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
767 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
768
769 maintainer-clean-generic:
770 @echo "This command is intended for maintainers to use"
771 @@ -776,6 +914,8 @@ dvi-am:
772
773 html: html-recursive
774
775 +html-am:
776 +
777 info: info-recursive
778
779 info-am:
780 @@ -785,18 +925,28 @@ install-data-am: install-data-local install-pkgconfigDATA \
781
782 install-dvi: install-dvi-recursive
783
784 +install-dvi-am:
785 +
786 install-exec-am: install-binSCRIPTS
787
788 install-html: install-html-recursive
789
790 +install-html-am:
791 +
792 install-info: install-info-recursive
793
794 +install-info-am:
795 +
796 install-man:
797
798 install-pdf: install-pdf-recursive
799
800 +install-pdf-am:
801 +
802 install-ps: install-ps-recursive
803
804 +install-ps-am:
805 +
806 installcheck-am:
807
808 maintainer-clean: maintainer-clean-recursive
809 @@ -822,15 +972,15 @@ ps-am:
810 uninstall-am: uninstall-binSCRIPTS uninstall-local \
811 uninstall-pkgconfigDATA uninstall-xmlDATA
812
813 -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
814 - install-strip
815 +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
816 + ctags-recursive install-am install-strip tags-recursive
817
818 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
819 all all-am am--refresh check check-am clean clean-generic \
820 clean-libtool clean-local clean-noinstPROGRAMS ctags \
821 - ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzma \
822 - dist-shar dist-tarZ dist-zip distcheck distclean \
823 - distclean-compile distclean-generic distclean-hdr \
824 + ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzip \
825 + dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
826 + distclean distclean-compile distclean-generic distclean-hdr \
827 distclean-libtool distclean-tags distcleancheck distdir \
828 distuninstallcheck dvi dvi-am html html-am info info-am \
829 install install-am install-binSCRIPTS install-data \
830 @@ -855,6 +1005,7 @@ uninstall-am: uninstall-binSCRIPTS uninstall-local \
831 #small hack to get distcheck to work
832 clean-local:
833 rm -f intl/po2tbl.sed .memdump
834 +
835 # Tell versions [3.59,3.63) of GNU make to not export all variables.
836 # Otherwise a system limit (for SysV at least) may be exceeded.
837 .NOEXPORT:
838 diff --git a/aclocal.m4 b/aclocal.m4
839 index 0727474..c99d2fa 100644
840 --- a/aclocal.m4
841 +++ b/aclocal.m4
842 @@ -1,7 +1,8 @@
843 -# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
844 +# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
845
846 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
847 -# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
848 +# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
849 +# Inc.
850 # This file is free software; the Free Software Foundation
851 # gives unlimited permission to copy and/or distribute it,
852 # with or without modifications, as long as this notice is preserved.
853 @@ -13,6091 +14,650 @@
854
855 m4_ifndef([AC_AUTOCONF_VERSION],
856 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
857 -m4_if(AC_AUTOCONF_VERSION, [2.62],,
858 -[m4_warning([this file was generated for autoconf 2.62.
859 +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
860 +[m4_warning([this file was generated for autoconf 2.68.
861 You have another version of autoconf. It may work, but is not guaranteed to.
862 If you have problems, you may need to regenerate the build system entirely.
863 To do so, use the procedure documented by the package, typically `autoreconf'.])])
864
865 -# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
866 -#
867 -# This file is free software; the Free Software Foundation
868 -# gives unlimited permission to copy and/or distribute it,
869 -# with or without modifications, as long as this notice is preserved.
870 -
871 -# AM_AUTOMAKE_VERSION(VERSION)
872 -# ----------------------------
873 -# Automake X.Y traces this macro to ensure aclocal.m4 has been
874 -# generated from the m4 files accompanying Automake X.Y.
875 -# (This private macro should not be called outside this file.)
876 -AC_DEFUN([AM_AUTOMAKE_VERSION],
877 -[am__api_version='1.10'
878 -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
879 -dnl require some minimum version. Point them to the right macro.
880 -m4_if([$1], [1.10.1], [],
881 - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
882 -])
883 -
884 -# _AM_AUTOCONF_VERSION(VERSION)
885 -# -----------------------------
886 -# aclocal traces this macro to find the Autoconf version.
887 -# This is a private macro too. Using m4_define simplifies
888 -# the logic in aclocal, which can simply ignore this definition.
889 -m4_define([_AM_AUTOCONF_VERSION], [])
890 -
891 -# AM_SET_CURRENT_AUTOMAKE_VERSION
892 -# -------------------------------
893 -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
894 -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
895 -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
896 -[AM_AUTOMAKE_VERSION([1.10.1])dnl
897 -m4_ifndef([AC_AUTOCONF_VERSION],
898 - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
899 -_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
900 -
901 -# AM_AUX_DIR_EXPAND -*- Autoconf -*-
902 -
903 -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
904 -#
905 -# This file is free software; the Free Software Foundation
906 -# gives unlimited permission to copy and/or distribute it,
907 -# with or without modifications, as long as this notice is preserved.
908 -
909 -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
910 -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
911 -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
912 -#
913 -# Of course, Automake must honor this variable whenever it calls a
914 -# tool from the auxiliary directory. The problem is that $srcdir (and
915 -# therefore $ac_aux_dir as well) can be either absolute or relative,
916 -# depending on how configure is run. This is pretty annoying, since
917 -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
918 -# source directory, any form will work fine, but in subdirectories a
919 -# relative path needs to be adjusted first.
920 +# Copyright (C) 1995-2002 Free Software Foundation, Inc.
921 +# Copyright (C) 2001-2003,2004 Red Hat, Inc.
922 #
923 -# $ac_aux_dir/missing
924 -# fails when called from a subdirectory if $ac_aux_dir is relative
925 -# $top_srcdir/$ac_aux_dir/missing
926 -# fails if $ac_aux_dir is absolute,
927 -# fails when called from a subdirectory in a VPATH build with
928 -# a relative $ac_aux_dir
929 +# This file is free software, distributed under the terms of the GNU
930 +# General Public License. As a special exception to the GNU General
931 +# Public License, this file may be distributed as part of a program
932 +# that contains a configuration script generated by Autoconf, under
933 +# the same distribution terms as the rest of that program.
934 #
935 -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
936 -# are both prefixed by $srcdir. In an in-source build this is usually
937 -# harmless because $srcdir is `.', but things will broke when you
938 -# start a VPATH build or use an absolute $srcdir.
939 +# This file can be copied and used freely without restrictions. It can
940 +# be used in projects which are not available under the GNU Public License
941 +# but which still want to provide support for the GNU gettext functionality.
942 #
943 -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
944 -# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
945 -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
946 -# and then we would define $MISSING as
947 -# MISSING="\${SHELL} $am_aux_dir/missing"
948 -# This will work as long as MISSING is not called from configure, because
949 -# unfortunately $(top_srcdir) has no meaning in configure.
950 -# However there are other variables, like CC, which are often used in
951 -# configure, and could therefore not use this "fixed" $ac_aux_dir.
952 +# Macro to add for using GNU gettext.
953 +# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
954 #
955 -# Another solution, used here, is to always expand $ac_aux_dir to an
956 -# absolute PATH. The drawback is that using absolute paths prevent a
957 -# configured tree to be moved without reconfiguration.
958 -
959 -AC_DEFUN([AM_AUX_DIR_EXPAND],
960 -[dnl Rely on autoconf to set up CDPATH properly.
961 -AC_PREREQ([2.50])dnl
962 -# expand $ac_aux_dir to an absolute path
963 -am_aux_dir=`cd $ac_aux_dir && pwd`
964 -])
965 -
966 -# AM_CONDITIONAL -*- Autoconf -*-
967 -
968 -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
969 -# Free Software Foundation, Inc.
970 +# Modified to never use included libintl.
971 +# Owen Taylor <otaylor@redhat.com>, 12/15/1998
972 #
973 -# This file is free software; the Free Software Foundation
974 -# gives unlimited permission to copy and/or distribute it,
975 -# with or without modifications, as long as this notice is preserved.
976 -
977 -# serial 8
978 -
979 -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
980 -# -------------------------------------
981 -# Define a conditional.
982 -AC_DEFUN([AM_CONDITIONAL],
983 -[AC_PREREQ(2.52)dnl
984 - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
985 - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
986 -AC_SUBST([$1_TRUE])dnl
987 -AC_SUBST([$1_FALSE])dnl
988 -_AM_SUBST_NOTMAKE([$1_TRUE])dnl
989 -_AM_SUBST_NOTMAKE([$1_FALSE])dnl
990 -if $2; then
991 - $1_TRUE=
992 - $1_FALSE='#'
993 -else
994 - $1_TRUE='#'
995 - $1_FALSE=
996 -fi
997 -AC_CONFIG_COMMANDS_PRE(
998 -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
999 - AC_MSG_ERROR([[conditional "$1" was never defined.
1000 -Usually this means the macro was only invoked conditionally.]])
1001 -fi])])
1002 -
1003 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
1004 -# Free Software Foundation, Inc.
1005 +# Major rework to remove unused code
1006 +# Owen Taylor <otaylor@redhat.com>, 12/11/2002
1007 #
1008 -# This file is free software; the Free Software Foundation
1009 -# gives unlimited permission to copy and/or distribute it,
1010 -# with or without modifications, as long as this notice is preserved.
1011 -
1012 -# serial 9
1013 -
1014 -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1015 -# written in clear, in which case automake, when reading aclocal.m4,
1016 -# will think it sees a *use*, and therefore will trigger all it's
1017 -# C support machinery. Also note that it means that autoscan, seeing
1018 -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1019 -
1020 -
1021 -# _AM_DEPENDENCIES(NAME)
1022 -# ----------------------
1023 -# See how the compiler implements dependency checking.
1024 -# NAME is "CC", "CXX", "GCJ", or "OBJC".
1025 -# We try a few techniques and use that to set a single cache variable.
1026 +# Added better handling of ALL_LINGUAS from GNU gettext version
1027 +# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
1028 #
1029 -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1030 -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1031 -# dependency, and given that the user is not expected to run this macro,
1032 -# just rely on AC_PROG_CC.
1033 -AC_DEFUN([_AM_DEPENDENCIES],
1034 -[AC_REQUIRE([AM_SET_DEPDIR])dnl
1035 -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1036 -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1037 -AC_REQUIRE([AM_DEP_TRACK])dnl
1038 -
1039 -ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1040 - [$1], CXX, [depcc="$CXX" am_compiler_list=],
1041 - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1042 - [$1], UPC, [depcc="$UPC" am_compiler_list=],
1043 - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1044 - [depcc="$$1" am_compiler_list=])
1045 -
1046 -AC_CACHE_CHECK([dependency style of $depcc],
1047 - [am_cv_$1_dependencies_compiler_type],
1048 -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1049 - # We make a subdir and do the tests there. Otherwise we can end up
1050 - # making bogus files that we don't know about and never remove. For
1051 - # instance it was reported that on HP-UX the gcc test will end up
1052 - # making a dummy file named `D' -- because `-MD' means `put the output
1053 - # in D'.
1054 - mkdir conftest.dir
1055 - # Copy depcomp to subdir because otherwise we won't find it if we're
1056 - # using a relative directory.
1057 - cp "$am_depcomp" conftest.dir
1058 - cd conftest.dir
1059 - # We will build objects and dependencies in a subdirectory because
1060 - # it helps to detect inapplicable dependency modes. For instance
1061 - # both Tru64's cc and ICC support -MD to output dependencies as a
1062 - # side effect of compilation, but ICC will put the dependencies in
1063 - # the current directory while Tru64 will put them in the object
1064 - # directory.
1065 - mkdir sub
1066 -
1067 - am_cv_$1_dependencies_compiler_type=none
1068 - if test "$am_compiler_list" = ""; then
1069 - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1070 - fi
1071 - for depmode in $am_compiler_list; do
1072 - # Setup a source with many dependencies, because some compilers
1073 - # like to wrap large dependency lists on column 80 (with \), and
1074 - # we should not choose a depcomp mode which is confused by this.
1075 - #
1076 - # We need to recreate these files for each test, as the compiler may
1077 - # overwrite some of them when testing with obscure command lines.
1078 - # This happens at least with the AIX C compiler.
1079 - : > sub/conftest.c
1080 - for i in 1 2 3 4 5 6; do
1081 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1082 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1083 - # Solaris 8's {/usr,}/bin/sh.
1084 - touch sub/conftst$i.h
1085 - done
1086 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1087 -
1088 - case $depmode in
1089 - nosideeffect)
1090 - # after this tag, mechanisms are not by side-effect, so they'll
1091 - # only be used when explicitly requested
1092 - if test "x$enable_dependency_tracking" = xyes; then
1093 - continue
1094 - else
1095 - break
1096 - fi
1097 - ;;
1098 - none) break ;;
1099 - esac
1100 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1101 - # mode. It turns out that the SunPro C++ compiler does not properly
1102 - # handle `-M -o', and we need to detect this.
1103 - if depmode=$depmode \
1104 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1105 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1106 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1107 - >/dev/null 2>conftest.err &&
1108 - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1109 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1110 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1111 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1112 - # icc doesn't choke on unknown options, it will just issue warnings
1113 - # or remarks (even with -Werror). So we grep stderr for any message
1114 - # that says an option was ignored or not supported.
1115 - # When given -MP, icc 7.0 and 7.1 complain thusly:
1116 - # icc: Command line warning: ignoring option '-M'; no argument required
1117 - # The diagnosis changed in icc 8.0:
1118 - # icc: Command line remark: option '-MP' not supported
1119 - if (grep 'ignoring option' conftest.err ||
1120 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1121 - am_cv_$1_dependencies_compiler_type=$depmode
1122 - break
1123 - fi
1124 - fi
1125 - done
1126 -
1127 - cd ..
1128 - rm -rf conftest.dir
1129 -else
1130 - am_cv_$1_dependencies_compiler_type=none
1131 -fi
1132 -])
1133 -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1134 -AM_CONDITIONAL([am__fastdep$1], [
1135 - test "x$enable_dependency_tracking" != xno \
1136 - && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1137 -])
1138 -
1139 -
1140 -# AM_SET_DEPDIR
1141 -# -------------
1142 -# Choose a directory name for dependency files.
1143 -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1144 -AC_DEFUN([AM_SET_DEPDIR],
1145 -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1146 -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1147 -])
1148 -
1149 -
1150 -# AM_DEP_TRACK
1151 -# ------------
1152 -AC_DEFUN([AM_DEP_TRACK],
1153 -[AC_ARG_ENABLE(dependency-tracking,
1154 -[ --disable-dependency-tracking speeds up one-time build
1155 - --enable-dependency-tracking do not reject slow dependency extractors])
1156 -if test "x$enable_dependency_tracking" != xno; then
1157 - am_depcomp="$ac_aux_dir/depcomp"
1158 - AMDEPBACKSLASH='\'
1159 -fi
1160 -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1161 -AC_SUBST([AMDEPBACKSLASH])dnl
1162 -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1163 -])
1164 -
1165 -# Generate code to set up dependency tracking. -*- Autoconf -*-
1166 -
1167 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1168 -# Free Software Foundation, Inc.
1169 -#
1170 -# This file is free software; the Free Software Foundation
1171 -# gives unlimited permission to copy and/or distribute it,
1172 -# with or without modifications, as long as this notice is preserved.
1173 -
1174 -#serial 3
1175 -
1176 -# _AM_OUTPUT_DEPENDENCY_COMMANDS
1177 -# ------------------------------
1178 -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1179 -[for mf in $CONFIG_FILES; do
1180 - # Strip MF so we end up with the name of the file.
1181 - mf=`echo "$mf" | sed -e 's/:.*$//'`
1182 - # Check whether this is an Automake generated Makefile or not.
1183 - # We used to match only the files named `Makefile.in', but
1184 - # some people rename them; so instead we look at the file content.
1185 - # Grep'ing the first line is not enough: some people post-process
1186 - # each Makefile.in and add a new line on top of each file to say so.
1187 - # Grep'ing the whole file is not good either: AIX grep has a line
1188 - # limit of 2048, but all sed's we know have understand at least 4000.
1189 - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1190 - dirpart=`AS_DIRNAME("$mf")`
1191 - else
1192 - continue
1193 - fi
1194 - # Extract the definition of DEPDIR, am__include, and am__quote
1195 - # from the Makefile without running `make'.
1196 - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1197 - test -z "$DEPDIR" && continue
1198 - am__include=`sed -n 's/^am__include = //p' < "$mf"`
1199 - test -z "am__include" && continue
1200 - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1201 - # When using ansi2knr, U may be empty or an underscore; expand it
1202 - U=`sed -n 's/^U = //p' < "$mf"`
1203 - # Find all dependency output files, they are included files with
1204 - # $(DEPDIR) in their names. We invoke sed twice because it is the
1205 - # simplest approach to changing $(DEPDIR) to its actual value in the
1206 - # expansion.
1207 - for file in `sed -n "
1208 - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1209 - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1210 - # Make sure the directory exists.
1211 - test -f "$dirpart/$file" && continue
1212 - fdir=`AS_DIRNAME(["$file"])`
1213 - AS_MKDIR_P([$dirpart/$fdir])
1214 - # echo "creating $dirpart/$file"
1215 - echo '# dummy' > "$dirpart/$file"
1216 - done
1217 -done
1218 -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1219 -
1220 -
1221 -# AM_OUTPUT_DEPENDENCY_COMMANDS
1222 -# -----------------------------
1223 -# This macro should only be invoked once -- use via AC_REQUIRE.
1224 -#
1225 -# This code is only required when automatic dependency tracking
1226 -# is enabled. FIXME. This creates each `.P' file that we will
1227 -# need in order to bootstrap the dependency handling code.
1228 -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1229 -[AC_CONFIG_COMMANDS([depfiles],
1230 - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1231 - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1232 -])
1233 -
1234 -# Do all the work for Automake. -*- Autoconf -*-
1235 -
1236 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1237 -# 2005, 2006, 2008 Free Software Foundation, Inc.
1238 -#
1239 -# This file is free software; the Free Software Foundation
1240 -# gives unlimited permission to copy and/or distribute it,
1241 -# with or without modifications, as long as this notice is preserved.
1242 -
1243 -# serial 13
1244 -
1245 -# This macro actually does too much. Some checks are only needed if
1246 -# your package does certain things. But this isn't really a big deal.
1247 -
1248 -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1249 -# AM_INIT_AUTOMAKE([OPTIONS])
1250 -# -----------------------------------------------
1251 -# The call with PACKAGE and VERSION arguments is the old style
1252 -# call (pre autoconf-2.50), which is being phased out. PACKAGE
1253 -# and VERSION should now be passed to AC_INIT and removed from
1254 -# the call to AM_INIT_AUTOMAKE.
1255 -# We support both call styles for the transition. After
1256 -# the next Automake release, Autoconf can make the AC_INIT
1257 -# arguments mandatory, and then we can depend on a new Autoconf
1258 -# release and drop the old call support.
1259 -AC_DEFUN([AM_INIT_AUTOMAKE],
1260 -[AC_PREREQ([2.60])dnl
1261 -dnl Autoconf wants to disallow AM_ names. We explicitly allow
1262 -dnl the ones we care about.
1263 -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1264 -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1265 -AC_REQUIRE([AC_PROG_INSTALL])dnl
1266 -if test "`cd $srcdir && pwd`" != "`pwd`"; then
1267 - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1268 - # is not polluted with repeated "-I."
1269 - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1270 - # test to see if srcdir already configured
1271 - if test -f $srcdir/config.status; then
1272 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1273 - fi
1274 -fi
1275 -
1276 -# test whether we have cygpath
1277 -if test -z "$CYGPATH_W"; then
1278 - if (cygpath --version) >/dev/null 2>/dev/null; then
1279 - CYGPATH_W='cygpath -w'
1280 - else
1281 - CYGPATH_W=echo
1282 - fi
1283 -fi
1284 -AC_SUBST([CYGPATH_W])
1285 -
1286 -# Define the identity of the package.
1287 -dnl Distinguish between old-style and new-style calls.
1288 -m4_ifval([$2],
1289 -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1290 - AC_SUBST([PACKAGE], [$1])dnl
1291 - AC_SUBST([VERSION], [$2])],
1292 -[_AM_SET_OPTIONS([$1])dnl
1293 -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1294 -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1295 - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1296 - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1297 - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1298 -
1299 -_AM_IF_OPTION([no-define],,
1300 -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1301 - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1302 -
1303 -# Some tools Automake needs.
1304 -AC_REQUIRE([AM_SANITY_CHECK])dnl
1305 -AC_REQUIRE([AC_ARG_PROGRAM])dnl
1306 -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1307 -AM_MISSING_PROG(AUTOCONF, autoconf)
1308 -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1309 -AM_MISSING_PROG(AUTOHEADER, autoheader)
1310 -AM_MISSING_PROG(MAKEINFO, makeinfo)
1311 -AM_PROG_INSTALL_SH
1312 -AM_PROG_INSTALL_STRIP
1313 -AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1314 -# We need awk for the "check" target. The system "awk" is bad on
1315 -# some platforms.
1316 -AC_REQUIRE([AC_PROG_AWK])dnl
1317 -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1318 -AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1319 -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1320 - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1321 - [_AM_PROG_TAR([v7])])])
1322 -_AM_IF_OPTION([no-dependencies],,
1323 -[AC_PROVIDE_IFELSE([AC_PROG_CC],
1324 - [_AM_DEPENDENCIES(CC)],
1325 - [define([AC_PROG_CC],
1326 - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1327 -AC_PROVIDE_IFELSE([AC_PROG_CXX],
1328 - [_AM_DEPENDENCIES(CXX)],
1329 - [define([AC_PROG_CXX],
1330 - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1331 -AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1332 - [_AM_DEPENDENCIES(OBJC)],
1333 - [define([AC_PROG_OBJC],
1334 - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1335 -])
1336 -])
1337 -
1338 -
1339 -# When config.status generates a header, we must update the stamp-h file.
1340 -# This file resides in the same directory as the config header
1341 -# that is generated. The stamp files are numbered to have different names.
1342 -
1343 -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1344 -# loop where config.status creates the headers, so we can generate
1345 -# our stamp files there.
1346 -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1347 -[# Compute $1's index in $config_headers.
1348 -_am_arg=$1
1349 -_am_stamp_count=1
1350 -for _am_header in $config_headers :; do
1351 - case $_am_header in
1352 - $_am_arg | $_am_arg:* )
1353 - break ;;
1354 - * )
1355 - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1356 - esac
1357 -done
1358 -echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1359 -
1360 -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1361 -#
1362 -# This file is free software; the Free Software Foundation
1363 -# gives unlimited permission to copy and/or distribute it,
1364 -# with or without modifications, as long as this notice is preserved.
1365 -
1366 -# AM_PROG_INSTALL_SH
1367 -# ------------------
1368 -# Define $install_sh.
1369 -AC_DEFUN([AM_PROG_INSTALL_SH],
1370 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1371 -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1372 -AC_SUBST(install_sh)])
1373 -
1374 -# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1375 -#
1376 -# This file is free software; the Free Software Foundation
1377 -# gives unlimited permission to copy and/or distribute it,
1378 -# with or without modifications, as long as this notice is preserved.
1379 -
1380 -# serial 2
1381 -
1382 -# Check whether the underlying file-system supports filenames
1383 -# with a leading dot. For instance MS-DOS doesn't.
1384 -AC_DEFUN([AM_SET_LEADING_DOT],
1385 -[rm -rf .tst 2>/dev/null
1386 -mkdir .tst 2>/dev/null
1387 -if test -d .tst; then
1388 - am__leading_dot=.
1389 -else
1390 - am__leading_dot=_
1391 -fi
1392 -rmdir .tst 2>/dev/null
1393 -AC_SUBST([am__leading_dot])])
1394 -
1395 -# Check to see how 'make' treats includes. -*- Autoconf -*-
1396 -
1397 -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1398 -#
1399 -# This file is free software; the Free Software Foundation
1400 -# gives unlimited permission to copy and/or distribute it,
1401 -# with or without modifications, as long as this notice is preserved.
1402 -
1403 -# serial 3
1404 -
1405 -# AM_MAKE_INCLUDE()
1406 -# -----------------
1407 -# Check to see how make treats includes.
1408 -AC_DEFUN([AM_MAKE_INCLUDE],
1409 -[am_make=${MAKE-make}
1410 -cat > confinc << 'END'
1411 -am__doit:
1412 - @echo done
1413 -.PHONY: am__doit
1414 -END
1415 -# If we don't find an include directive, just comment out the code.
1416 -AC_MSG_CHECKING([for style of include used by $am_make])
1417 -am__include="#"
1418 -am__quote=
1419 -_am_result=none
1420 -# First try GNU make style include.
1421 -echo "include confinc" > confmf
1422 -# We grep out `Entering directory' and `Leaving directory'
1423 -# messages which can occur if `w' ends up in MAKEFLAGS.
1424 -# In particular we don't look at `^make:' because GNU make might
1425 -# be invoked under some other name (usually "gmake"), in which
1426 -# case it prints its new name instead of `make'.
1427 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1428 - am__include=include
1429 - am__quote=
1430 - _am_result=GNU
1431 -fi
1432 -# Now try BSD make style include.
1433 -if test "$am__include" = "#"; then
1434 - echo '.include "confinc"' > confmf
1435 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1436 - am__include=.include
1437 - am__quote="\""
1438 - _am_result=BSD
1439 - fi
1440 -fi
1441 -AC_SUBST([am__include])
1442 -AC_SUBST([am__quote])
1443 -AC_MSG_RESULT([$_am_result])
1444 -rm -f confinc confmf
1445 -])
1446 -
1447 -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1448 -
1449 -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1450 -# Free Software Foundation, Inc.
1451 -#
1452 -# This file is free software; the Free Software Foundation
1453 -# gives unlimited permission to copy and/or distribute it,
1454 -# with or without modifications, as long as this notice is preserved.
1455 -
1456 -# serial 5
1457 -
1458 -# AM_MISSING_PROG(NAME, PROGRAM)
1459 -# ------------------------------
1460 -AC_DEFUN([AM_MISSING_PROG],
1461 -[AC_REQUIRE([AM_MISSING_HAS_RUN])
1462 -$1=${$1-"${am_missing_run}$2"}
1463 -AC_SUBST($1)])
1464 -
1465 -
1466 -# AM_MISSING_HAS_RUN
1467 -# ------------------
1468 -# Define MISSING if not defined so far and test if it supports --run.
1469 -# If it does, set am_missing_run to use it, otherwise, to nothing.
1470 -AC_DEFUN([AM_MISSING_HAS_RUN],
1471 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1472 -AC_REQUIRE_AUX_FILE([missing])dnl
1473 -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1474 -# Use eval to expand $SHELL
1475 -if eval "$MISSING --run true"; then
1476 - am_missing_run="$MISSING --run "
1477 -else
1478 - am_missing_run=
1479 - AC_MSG_WARN([`missing' script is too old or missing])
1480 -fi
1481 -])
1482 -
1483 -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1484 -#
1485 -# This file is free software; the Free Software Foundation
1486 -# gives unlimited permission to copy and/or distribute it,
1487 -# with or without modifications, as long as this notice is preserved.
1488 -
1489 -# AM_PROG_MKDIR_P
1490 -# ---------------
1491 -# Check for `mkdir -p'.
1492 -AC_DEFUN([AM_PROG_MKDIR_P],
1493 -[AC_PREREQ([2.60])dnl
1494 -AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1495 -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1496 -dnl while keeping a definition of mkdir_p for backward compatibility.
1497 -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1498 -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1499 -dnl Makefile.ins that do not define MKDIR_P, so we do our own
1500 -dnl adjustment using top_builddir (which is defined more often than
1501 -dnl MKDIR_P).
1502 -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1503 -case $mkdir_p in
1504 - [[\\/$]]* | ?:[[\\/]]*) ;;
1505 - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1506 -esac
1507 -])
1508 -
1509 -# Helper functions for option handling. -*- Autoconf -*-
1510 -
1511 -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1512 -#
1513 -# This file is free software; the Free Software Foundation
1514 -# gives unlimited permission to copy and/or distribute it,
1515 -# with or without modifications, as long as this notice is preserved.
1516 -
1517 -# serial 3
1518 -
1519 -# _AM_MANGLE_OPTION(NAME)
1520 -# -----------------------
1521 -AC_DEFUN([_AM_MANGLE_OPTION],
1522 -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1523 -
1524 -# _AM_SET_OPTION(NAME)
1525 -# ------------------------------
1526 -# Set option NAME. Presently that only means defining a flag for this option.
1527 -AC_DEFUN([_AM_SET_OPTION],
1528 -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1529 -
1530 -# _AM_SET_OPTIONS(OPTIONS)
1531 -# ----------------------------------
1532 -# OPTIONS is a space-separated list of Automake options.
1533 -AC_DEFUN([_AM_SET_OPTIONS],
1534 -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1535 -
1536 -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1537 -# -------------------------------------------
1538 -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1539 -AC_DEFUN([_AM_IF_OPTION],
1540 -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1541 -
1542 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1543 -# Free Software Foundation, Inc.
1544 -#
1545 -# This file is free software; the Free Software Foundation
1546 -# gives unlimited permission to copy and/or distribute it,
1547 -# with or without modifications, as long as this notice is preserved.
1548 -
1549 -# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1550 -# ---------------------------------------------------------------------------
1551 -# Adds support for distributing Python modules and packages. To
1552 -# install modules, copy them to $(pythondir), using the python_PYTHON
1553 -# automake variable. To install a package with the same name as the
1554 -# automake package, install to $(pkgpythondir), or use the
1555 -# pkgpython_PYTHON automake variable.
1556 -#
1557 -# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
1558 -# locations to install python extension modules (shared libraries).
1559 -# Another macro is required to find the appropriate flags to compile
1560 -# extension modules.
1561 -#
1562 -# If your package is configured with a different prefix to python,
1563 -# users will have to add the install directory to the PYTHONPATH
1564 -# environment variable, or create a .pth file (see the python
1565 -# documentation for details).
1566 -#
1567 -# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
1568 -# cause an error if the version of python installed on the system
1569 -# doesn't meet the requirement. MINIMUM-VERSION should consist of
1570 -# numbers and dots only.
1571 -AC_DEFUN([AM_PATH_PYTHON],
1572 - [
1573 - dnl Find a Python interpreter. Python versions prior to 1.5 are not
1574 - dnl supported because the default installation locations changed from
1575 - dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
1576 - dnl in 1.5.
1577 - m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
1578 - [python python2 python2.5 python2.4 python2.3 python2.2 dnl
1579 -python2.1 python2.0 python1.6 python1.5])
1580 -
1581 - m4_if([$1],[],[
1582 - dnl No version check is needed.
1583 - # Find any Python interpreter.
1584 - if test -z "$PYTHON"; then
1585 - AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
1586 - fi
1587 - am_display_PYTHON=python
1588 - ], [
1589 - dnl A version check is needed.
1590 - if test -n "$PYTHON"; then
1591 - # If the user set $PYTHON, use it and don't search something else.
1592 - AC_MSG_CHECKING([whether $PYTHON version >= $1])
1593 - AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
1594 - [AC_MSG_RESULT(yes)],
1595 - [AC_MSG_ERROR(too old)])
1596 - am_display_PYTHON=$PYTHON
1597 - else
1598 - # Otherwise, try each interpreter until we find one that satisfies
1599 - # VERSION.
1600 - AC_CACHE_CHECK([for a Python interpreter with version >= $1],
1601 - [am_cv_pathless_PYTHON],[
1602 - for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
1603 - test "$am_cv_pathless_PYTHON" = none && break
1604 - AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
1605 - done])
1606 - # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1607 - if test "$am_cv_pathless_PYTHON" = none; then
1608 - PYTHON=:
1609 - else
1610 - AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
1611 - fi
1612 - am_display_PYTHON=$am_cv_pathless_PYTHON
1613 - fi
1614 - ])
1615 -
1616 - if test "$PYTHON" = :; then
1617 - dnl Run any user-specified action, or abort.
1618 - m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
1619 - else
1620 -
1621 - dnl Query Python for its version number. Getting [:3] seems to be
1622 - dnl the best way to do this; it's what "site.py" does in the standard
1623 - dnl library.
1624 -
1625 - AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
1626 - [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
1627 - AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
1628 -
1629 - dnl Use the values of $prefix and $exec_prefix for the corresponding
1630 - dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
1631 - dnl distinct variables so they can be overridden if need be. However,
1632 - dnl general consensus is that you shouldn't need this ability.
1633 -
1634 - AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
1635 - AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
1636 -
1637 - dnl At times (like when building shared libraries) you may want
1638 - dnl to know which OS platform Python thinks this is.
1639 -
1640 - AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
1641 - [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
1642 - AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
1643 -
1644 -
1645 - dnl Set up 4 directories:
1646 -
1647 - dnl pythondir -- where to install python scripts. This is the
1648 - dnl site-packages directory, not the python standard library
1649 - dnl directory like in previous automake betas. This behavior
1650 - dnl is more consistent with lispdir.m4 for example.
1651 - dnl Query distutils for this directory. distutils does not exist in
1652 - dnl Python 1.5, so we fall back to the hardcoded directory if it
1653 - dnl doesn't work.
1654 - AC_CACHE_CHECK([for $am_display_PYTHON script directory],
1655 - [am_cv_python_pythondir],
1656 - [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
1657 - echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
1658 - AC_SUBST([pythondir], [$am_cv_python_pythondir])
1659 -
1660 - dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
1661 - dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
1662 - dnl more consistent with the rest of automake.
1663 -
1664 - AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
1665 -
1666 - dnl pyexecdir -- directory for installing python extension modules
1667 - dnl (shared libraries)
1668 - dnl Query distutils for this directory. distutils does not exist in
1669 - dnl Python 1.5, so we fall back to the hardcoded directory if it
1670 - dnl doesn't work.
1671 - AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
1672 - [am_cv_python_pyexecdir],
1673 - [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
1674 - echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
1675 - AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
1676 -
1677 - dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
1678 -
1679 - AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
1680 -
1681 - dnl Run any user-specified action.
1682 - $2
1683 - fi
1684 -
1685 -])
1686 -
1687 -
1688 -# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
1689 -# ---------------------------------------------------------------------------
1690 -# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
1691 -# Run ACTION-IF-FALSE otherwise.
1692 -# This test uses sys.hexversion instead of the string equivalent (first
1693 -# word of sys.version), in order to cope with versions such as 2.2c1.
1694 -# hexversion has been introduced in Python 1.5.2; it's probably not
1695 -# worth to support older versions (1.5.1 was released on October 31, 1998).
1696 -AC_DEFUN([AM_PYTHON_CHECK_VERSION],
1697 - [prog="import sys, string
1698 -# split strings by '.' and convert to numeric. Append some zeros
1699 -# because we need at least 4 digits for the hex conversion.
1700 -minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
1701 -minverhex = 0
1702 -for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
1703 -sys.exit(sys.hexversion < minverhex)"
1704 - AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1705 -
1706 -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1707 -#
1708 -# This file is free software; the Free Software Foundation
1709 -# gives unlimited permission to copy and/or distribute it,
1710 -# with or without modifications, as long as this notice is preserved.
1711 -
1712 -# AM_RUN_LOG(COMMAND)
1713 -# -------------------
1714 -# Run COMMAND, save the exit status in ac_status, and log it.
1715 -# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1716 -AC_DEFUN([AM_RUN_LOG],
1717 -[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1718 - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1719 - ac_status=$?
1720 - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1721 - (exit $ac_status); }])
1722 -
1723 -# Check to make sure that the build environment is sane. -*- Autoconf -*-
1724 -
1725 -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1726 -# Free Software Foundation, Inc.
1727 -#
1728 -# This file is free software; the Free Software Foundation
1729 -# gives unlimited permission to copy and/or distribute it,
1730 -# with or without modifications, as long as this notice is preserved.
1731 -
1732 -# serial 4
1733 -
1734 -# AM_SANITY_CHECK
1735 -# ---------------
1736 -AC_DEFUN([AM_SANITY_CHECK],
1737 -[AC_MSG_CHECKING([whether build environment is sane])
1738 -# Just in case
1739 -sleep 1
1740 -echo timestamp > conftest.file
1741 -# Do `set' in a subshell so we don't clobber the current shell's
1742 -# arguments. Must try -L first in case configure is actually a
1743 -# symlink; some systems play weird games with the mod time of symlinks
1744 -# (eg FreeBSD returns the mod time of the symlink's containing
1745 -# directory).
1746 -if (
1747 - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1748 - if test "$[*]" = "X"; then
1749 - # -L didn't work.
1750 - set X `ls -t $srcdir/configure conftest.file`
1751 - fi
1752 - rm -f conftest.file
1753 - if test "$[*]" != "X $srcdir/configure conftest.file" \
1754 - && test "$[*]" != "X conftest.file $srcdir/configure"; then
1755 -
1756 - # If neither matched, then we have a broken ls. This can happen
1757 - # if, for instance, CONFIG_SHELL is bash and it inherits a
1758 - # broken ls alias from the environment. This has actually
1759 - # happened. Such a system could not be considered "sane".
1760 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1761 -alias in your environment])
1762 - fi
1763 -
1764 - test "$[2]" = conftest.file
1765 - )
1766 -then
1767 - # Ok.
1768 - :
1769 -else
1770 - AC_MSG_ERROR([newly created file is older than distributed files!
1771 -Check your system clock])
1772 -fi
1773 -AC_MSG_RESULT(yes)])
1774 -
1775 -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1776 -#
1777 -# This file is free software; the Free Software Foundation
1778 -# gives unlimited permission to copy and/or distribute it,
1779 -# with or without modifications, as long as this notice is preserved.
1780 -
1781 -# AM_PROG_INSTALL_STRIP
1782 -# ---------------------
1783 -# One issue with vendor `install' (even GNU) is that you can't
1784 -# specify the program used to strip binaries. This is especially
1785 -# annoying in cross-compiling environments, where the build's strip
1786 -# is unlikely to handle the host's binaries.
1787 -# Fortunately install-sh will honor a STRIPPROG variable, so we
1788 -# always use install-sh in `make install-strip', and initialize
1789 -# STRIPPROG with the value of the STRIP variable (set by the user).
1790 -AC_DEFUN([AM_PROG_INSTALL_STRIP],
1791 -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1792 -# Installed binaries are usually stripped using `strip' when the user
1793 -# run `make install-strip'. However `strip' might not be the right
1794 -# tool to use in cross-compilation environments, therefore Automake
1795 -# will honor the `STRIP' environment variable to overrule this program.
1796 -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1797 -if test "$cross_compiling" != no; then
1798 - AC_CHECK_TOOL([STRIP], [strip], :)
1799 -fi
1800 -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1801 -AC_SUBST([INSTALL_STRIP_PROGRAM])])
1802 -
1803 -# Copyright (C) 2006 Free Software Foundation, Inc.
1804 -#
1805 -# This file is free software; the Free Software Foundation
1806 -# gives unlimited permission to copy and/or distribute it,
1807 -# with or without modifications, as long as this notice is preserved.
1808 -
1809 -# _AM_SUBST_NOTMAKE(VARIABLE)
1810 -# ---------------------------
1811 -# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1812 -# This macro is traced by Automake.
1813 -AC_DEFUN([_AM_SUBST_NOTMAKE])
1814 -
1815 -# Check how to create a tarball. -*- Autoconf -*-
1816 -
1817 -# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1818 -#
1819 -# This file is free software; the Free Software Foundation
1820 -# gives unlimited permission to copy and/or distribute it,
1821 -# with or without modifications, as long as this notice is preserved.
1822 -
1823 -# serial 2
1824 -
1825 -# _AM_PROG_TAR(FORMAT)
1826 -# --------------------
1827 -# Check how to create a tarball in format FORMAT.
1828 -# FORMAT should be one of `v7', `ustar', or `pax'.
1829 -#
1830 -# Substitute a variable $(am__tar) that is a command
1831 -# writing to stdout a FORMAT-tarball containing the directory
1832 -# $tardir.
1833 -# tardir=directory && $(am__tar) > result.tar
1834 -#
1835 -# Substitute a variable $(am__untar) that extract such
1836 -# a tarball read from stdin.
1837 -# $(am__untar) < result.tar
1838 -AC_DEFUN([_AM_PROG_TAR],
1839 -[# Always define AMTAR for backward compatibility.
1840 -AM_MISSING_PROG([AMTAR], [tar])
1841 -m4_if([$1], [v7],
1842 - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1843 - [m4_case([$1], [ustar],, [pax],,
1844 - [m4_fatal([Unknown tar format])])
1845 -AC_MSG_CHECKING([how to create a $1 tar archive])
1846 -# Loop over all known methods to create a tar archive until one works.
1847 -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1848 -_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1849 -# Do not fold the above two line into one, because Tru64 sh and
1850 -# Solaris sh will not grok spaces in the rhs of `-'.
1851 -for _am_tool in $_am_tools
1852 -do
1853 - case $_am_tool in
1854 - gnutar)
1855 - for _am_tar in tar gnutar gtar;
1856 - do
1857 - AM_RUN_LOG([$_am_tar --version]) && break
1858 - done
1859 - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1860 - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1861 - am__untar="$_am_tar -xf -"
1862 - ;;
1863 - plaintar)
1864 - # Must skip GNU tar: if it does not support --format= it doesn't create
1865 - # ustar tarball either.
1866 - (tar --version) >/dev/null 2>&1 && continue
1867 - am__tar='tar chf - "$$tardir"'
1868 - am__tar_='tar chf - "$tardir"'
1869 - am__untar='tar xf -'
1870 - ;;
1871 - pax)
1872 - am__tar='pax -L -x $1 -w "$$tardir"'
1873 - am__tar_='pax -L -x $1 -w "$tardir"'
1874 - am__untar='pax -r'
1875 - ;;
1876 - cpio)
1877 - am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1878 - am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1879 - am__untar='cpio -i -H $1 -d'
1880 - ;;
1881 - none)
1882 - am__tar=false
1883 - am__tar_=false
1884 - am__untar=false
1885 - ;;
1886 - esac
1887 -
1888 - # If the value was cached, stop now. We just wanted to have am__tar
1889 - # and am__untar set.
1890 - test -n "${am_cv_prog_tar_$1}" && break
1891 -
1892 - # tar/untar a dummy directory, and stop if the command works
1893 - rm -rf conftest.dir
1894 - mkdir conftest.dir
1895 - echo GrepMe > conftest.dir/file
1896 - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1897 - rm -rf conftest.dir
1898 - if test -s conftest.tar; then
1899 - AM_RUN_LOG([$am__untar <conftest.tar])
1900 - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1901 - fi
1902 -done
1903 -rm -rf conftest.dir
1904 -
1905 -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1906 -AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1907 -AC_SUBST([am__tar])
1908 -AC_SUBST([am__untar])
1909 -]) # _AM_PROG_TAR
1910 -
1911 -# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1912 -# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1913 -#
1914 -# This file is free software, distributed under the terms of the GNU
1915 -# General Public License. As a special exception to the GNU General
1916 -# Public License, this file may be distributed as part of a program
1917 -# that contains a configuration script generated by Autoconf, under
1918 -# the same distribution terms as the rest of that program.
1919 -#
1920 -# This file can be copied and used freely without restrictions. It can
1921 -# be used in projects which are not available under the GNU Public License
1922 -# but which still want to provide support for the GNU gettext functionality.
1923 -#
1924 -# Macro to add for using GNU gettext.
1925 -# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
1926 -#
1927 -# Modified to never use included libintl.
1928 -# Owen Taylor <otaylor@redhat.com>, 12/15/1998
1929 -#
1930 -# Major rework to remove unused code
1931 -# Owen Taylor <otaylor@redhat.com>, 12/11/2002
1932 -#
1933 -# Added better handling of ALL_LINGUAS from GNU gettext version
1934 -# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
1935 -#
1936 -# Modified to require ngettext
1937 -# Matthias Clasen <mclasen@redhat.com> 08/06/2004
1938 -#
1939 -# We need this here as well, since someone might use autoconf-2.5x
1940 -# to configure GLib then an older version to configure a package
1941 -# using AM_GLIB_GNU_GETTEXT
1942 -AC_PREREQ(2.53)
1943 -
1944 -dnl
1945 -dnl We go to great lengths to make sure that aclocal won't
1946 -dnl try to pull in the installed version of these macros
1947 -dnl when running aclocal in the glib directory.
1948 -dnl
1949 -m4_copy([AC_DEFUN],[glib_DEFUN])
1950 -m4_copy([AC_REQUIRE],[glib_REQUIRE])
1951 -dnl
1952 -dnl At the end, if we're not within glib, we'll define the public
1953 -dnl definitions in terms of our private definitions.
1954 -dnl
1955 -
1956 -# GLIB_LC_MESSAGES
1957 -#--------------------
1958 -glib_DEFUN([GLIB_LC_MESSAGES],
1959 - [AC_CHECK_HEADERS([locale.h])
1960 - if test $ac_cv_header_locale_h = yes; then
1961 - AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
1962 - [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
1963 - am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
1964 - if test $am_cv_val_LC_MESSAGES = yes; then
1965 - AC_DEFINE(HAVE_LC_MESSAGES, 1,
1966 - [Define if your <locale.h> file defines LC_MESSAGES.])
1967 - fi
1968 - fi])
1969 -
1970 -# GLIB_PATH_PROG_WITH_TEST
1971 -#----------------------------
1972 -dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1973 -dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1974 -glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
1975 -[# Extract the first word of "$2", so it can be a program name with args.
1976 -set dummy $2; ac_word=[$]2
1977 -AC_MSG_CHECKING([for $ac_word])
1978 -AC_CACHE_VAL(ac_cv_path_$1,
1979 -[case "[$]$1" in
1980 - /*)
1981 - ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
1982 - ;;
1983 - *)
1984 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1985 - for ac_dir in ifelse([$5], , $PATH, [$5]); do
1986 - test -z "$ac_dir" && ac_dir=.
1987 - if test -f $ac_dir/$ac_word; then
1988 - if [$3]; then
1989 - ac_cv_path_$1="$ac_dir/$ac_word"
1990 - break
1991 - fi
1992 - fi
1993 - done
1994 - IFS="$ac_save_ifs"
1995 -dnl If no 4th arg is given, leave the cache variable unset,
1996 -dnl so AC_PATH_PROGS will keep looking.
1997 -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
1998 -])dnl
1999 - ;;
2000 -esac])dnl
2001 -$1="$ac_cv_path_$1"
2002 -if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
2003 - AC_MSG_RESULT([$]$1)
2004 -else
2005 - AC_MSG_RESULT(no)
2006 -fi
2007 -AC_SUBST($1)dnl
2008 -])
2009 -
2010 -# GLIB_WITH_NLS
2011 -#-----------------
2012 -glib_DEFUN([GLIB_WITH_NLS],
2013 - dnl NLS is obligatory
2014 - [USE_NLS=yes
2015 - AC_SUBST(USE_NLS)
2016 -
2017 - gt_cv_have_gettext=no
2018 -
2019 - CATOBJEXT=NONE
2020 - XGETTEXT=:
2021 - INTLLIBS=
2022 -
2023 - AC_CHECK_HEADER(libintl.h,
2024 - [gt_cv_func_dgettext_libintl="no"
2025 - libintl_extra_libs=""
2026 -
2027 - #
2028 - # First check in libc
2029 - #
2030 - AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
2031 - [AC_TRY_LINK([
2032 -#include <libintl.h>
2033 -],
2034 - [return !ngettext ("","", 1)],
2035 - gt_cv_func_ngettext_libc=yes,
2036 - gt_cv_func_ngettext_libc=no)
2037 - ])
2038 -
2039 - if test "$gt_cv_func_ngettext_libc" = "yes" ; then
2040 - AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
2041 - [AC_TRY_LINK([
2042 -#include <libintl.h>
2043 -],
2044 - [return !dgettext ("","")],
2045 - gt_cv_func_dgettext_libc=yes,
2046 - gt_cv_func_dgettext_libc=no)
2047 - ])
2048 - fi
2049 -
2050 - if test "$gt_cv_func_ngettext_libc" = "yes" ; then
2051 - AC_CHECK_FUNCS(bind_textdomain_codeset)
2052 - fi
2053 -
2054 - #
2055 - # If we don't have everything we want, check in libintl
2056 - #
2057 - if test "$gt_cv_func_dgettext_libc" != "yes" \
2058 - || test "$gt_cv_func_ngettext_libc" != "yes" \
2059 - || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
2060 -
2061 - AC_CHECK_LIB(intl, bindtextdomain,
2062 - [AC_CHECK_LIB(intl, ngettext,
2063 - [AC_CHECK_LIB(intl, dgettext,
2064 - gt_cv_func_dgettext_libintl=yes)])])
2065 -
2066 - if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
2067 - AC_MSG_CHECKING([if -liconv is needed to use gettext])
2068 - AC_MSG_RESULT([])
2069 - AC_CHECK_LIB(intl, ngettext,
2070 - [AC_CHECK_LIB(intl, dcgettext,
2071 - [gt_cv_func_dgettext_libintl=yes
2072 - libintl_extra_libs=-liconv],
2073 - :,-liconv)],
2074 - :,-liconv)
2075 - fi
2076 -
2077 - #
2078 - # If we found libintl, then check in it for bind_textdomain_codeset();
2079 - # we'll prefer libc if neither have bind_textdomain_codeset(),
2080 - # and both have dgettext and ngettext
2081 - #
2082 - if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
2083 - glib_save_LIBS="$LIBS"
2084 - LIBS="$LIBS -lintl $libintl_extra_libs"
2085 - unset ac_cv_func_bind_textdomain_codeset
2086 - AC_CHECK_FUNCS(bind_textdomain_codeset)
2087 - LIBS="$glib_save_LIBS"
2088 -
2089 - if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
2090 - gt_cv_func_dgettext_libc=no
2091 - else
2092 - if test "$gt_cv_func_dgettext_libc" = "yes" \
2093 - && test "$gt_cv_func_ngettext_libc" = "yes"; then
2094 - gt_cv_func_dgettext_libintl=no
2095 - fi
2096 - fi
2097 - fi
2098 - fi
2099 -
2100 - if test "$gt_cv_func_dgettext_libc" = "yes" \
2101 - || test "$gt_cv_func_dgettext_libintl" = "yes"; then
2102 - gt_cv_have_gettext=yes
2103 - fi
2104 -
2105 - if test "$gt_cv_func_dgettext_libintl" = "yes"; then
2106 - INTLLIBS="-lintl $libintl_extra_libs"
2107 - fi
2108 -
2109 - if test "$gt_cv_have_gettext" = "yes"; then
2110 - AC_DEFINE(HAVE_GETTEXT,1,
2111 - [Define if the GNU gettext() function is already present or preinstalled.])
2112 - GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
2113 - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
2114 - if test "$MSGFMT" != "no"; then
2115 - glib_save_LIBS="$LIBS"
2116 - LIBS="$LIBS $INTLLIBS"
2117 - AC_CHECK_FUNCS(dcgettext)
2118 - MSGFMT_OPTS=
2119 - AC_MSG_CHECKING([if msgfmt accepts -c])
2120 - GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
2121 -msgid ""
2122 -msgstr ""
2123 -"Content-Type: text/plain; charset=UTF-8\n"
2124 -"Project-Id-Version: test 1.0\n"
2125 -"PO-Revision-Date: 2007-02-15 12:01+0100\n"
2126 -"Last-Translator: test <foo@bar.xx>\n"
2127 -"Language-Team: C <LL@li.org>\n"
2128 -"MIME-Version: 1.0\n"
2129 -"Content-Transfer-Encoding: 8bit\n"
2130 -], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
2131 - AC_SUBST(MSGFMT_OPTS)
2132 - AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
2133 - GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
2134 - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
2135 - AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
2136 - return _nl_msg_cat_cntr],
2137 - [CATOBJEXT=.gmo
2138 - DATADIRNAME=share],
2139 - [case $host in
2140 - *-*-solaris*)
2141 - dnl On Solaris, if bind_textdomain_codeset is in libc,
2142 - dnl GNU format message catalog is always supported,
2143 - dnl since both are added to the libc all together.
2144 - dnl Hence, we'd like to go with DATADIRNAME=share and
2145 - dnl and CATOBJEXT=.gmo in this case.
2146 - AC_CHECK_FUNC(bind_textdomain_codeset,
2147 - [CATOBJEXT=.gmo
2148 - DATADIRNAME=share],
2149 - [CATOBJEXT=.mo
2150 - DATADIRNAME=lib])
2151 - ;;
2152 - *)
2153 - CATOBJEXT=.mo
2154 - DATADIRNAME=lib
2155 - ;;
2156 - esac])
2157 - LIBS="$glib_save_LIBS"
2158 - INSTOBJEXT=.mo
2159 - else
2160 - gt_cv_have_gettext=no
2161 - fi
2162 - fi
2163 - ])
2164 -
2165 - if test "$gt_cv_have_gettext" = "yes" ; then
2166 - AC_DEFINE(ENABLE_NLS, 1,
2167 - [always defined to indicate that i18n is enabled])
2168 - fi
2169 -
2170 - dnl Test whether we really found GNU xgettext.
2171 - if test "$XGETTEXT" != ":"; then
2172 - dnl If it is not GNU xgettext we define it as : so that the
2173 - dnl Makefiles still can work.
2174 - if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2175 - : ;
2176 - else
2177 - AC_MSG_RESULT(
2178 - [found xgettext program is not GNU xgettext; ignore it])
2179 - XGETTEXT=":"
2180 - fi
2181 - fi
2182 -
2183 - # We need to process the po/ directory.
2184 - POSUB=po
2185 -
2186 - AC_OUTPUT_COMMANDS(
2187 - [case "$CONFIG_FILES" in *po/Makefile.in*)
2188 - sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
2189 - esac])
2190 -
2191 - dnl These rules are solely for the distribution goal. While doing this
2192 - dnl we only have to keep exactly one list of the available catalogs
2193 - dnl in configure.in.
2194 - for lang in $ALL_LINGUAS; do
2195 - GMOFILES="$GMOFILES $lang.gmo"
2196 - POFILES="$POFILES $lang.po"
2197 - done
2198 -
2199 - dnl Make all variables we use known to autoconf.
2200 - AC_SUBST(CATALOGS)
2201 - AC_SUBST(CATOBJEXT)
2202 - AC_SUBST(DATADIRNAME)
2203 - AC_SUBST(GMOFILES)
2204 - AC_SUBST(INSTOBJEXT)
2205 - AC_SUBST(INTLLIBS)
2206 - AC_SUBST(PO_IN_DATADIR_TRUE)
2207 - AC_SUBST(PO_IN_DATADIR_FALSE)
2208 - AC_SUBST(POFILES)
2209 - AC_SUBST(POSUB)
2210 - ])
2211 -
2212 -# AM_GLIB_GNU_GETTEXT
2213 -# -------------------
2214 -# Do checks necessary for use of gettext. If a suitable implementation
2215 -# of gettext is found in either in libintl or in the C library,
2216 -# it will set INTLLIBS to the libraries needed for use of gettext
2217 -# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
2218 -# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
2219 -# on various variables needed by the Makefile.in.in installed by
2220 -# glib-gettextize.
2221 -dnl
2222 -glib_DEFUN([GLIB_GNU_GETTEXT],
2223 - [AC_REQUIRE([AC_PROG_CC])dnl
2224 - AC_REQUIRE([AC_HEADER_STDC])dnl
2225 -
2226 - GLIB_LC_MESSAGES
2227 - GLIB_WITH_NLS
2228 -
2229 - if test "$gt_cv_have_gettext" = "yes"; then
2230 - if test "x$ALL_LINGUAS" = "x"; then
2231 - LINGUAS=
2232 - else
2233 - AC_MSG_CHECKING(for catalogs to be installed)
2234 - NEW_LINGUAS=
2235 - for presentlang in $ALL_LINGUAS; do
2236 - useit=no
2237 - if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
2238 - desiredlanguages="$LINGUAS"
2239 - else
2240 - desiredlanguages="$ALL_LINGUAS"
2241 - fi
2242 - for desiredlang in $desiredlanguages; do
2243 - # Use the presentlang catalog if desiredlang is
2244 - # a. equal to presentlang, or
2245 - # b. a variant of presentlang (because in this case,
2246 - # presentlang can be used as a fallback for messages
2247 - # which are not translated in the desiredlang catalog).
2248 - case "$desiredlang" in
2249 - "$presentlang"*) useit=yes;;
2250 - esac
2251 - done
2252 - if test $useit = yes; then
2253 - NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2254 - fi
2255 - done
2256 - LINGUAS=$NEW_LINGUAS
2257 - AC_MSG_RESULT($LINGUAS)
2258 - fi
2259 -
2260 - dnl Construct list of names of catalog files to be constructed.
2261 - if test -n "$LINGUAS"; then
2262 - for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2263 - fi
2264 - fi
2265 -
2266 - dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
2267 - dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
2268 - dnl Try to locate is.
2269 - MKINSTALLDIRS=
2270 - if test -n "$ac_aux_dir"; then
2271 - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2272 - fi
2273 - if test -z "$MKINSTALLDIRS"; then
2274 - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2275 - fi
2276 - AC_SUBST(MKINSTALLDIRS)
2277 -
2278 - dnl Generate list of files to be processed by xgettext which will
2279 - dnl be included in po/Makefile.
2280 - test -d po || mkdir po
2281 - if test "x$srcdir" != "x."; then
2282 - if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2283 - posrcprefix="$srcdir/"
2284 - else
2285 - posrcprefix="../$srcdir/"
2286 - fi
2287 - else
2288 - posrcprefix="../"
2289 - fi
2290 - rm -f po/POTFILES
2291 - sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2292 - < $srcdir/po/POTFILES.in > po/POTFILES
2293 - ])
2294 -
2295 -# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
2296 -# -------------------------------
2297 -# Define VARIABLE to the location where catalog files will
2298 -# be installed by po/Makefile.
2299 -glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
2300 -[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
2301 -glib_save_prefix="$prefix"
2302 -glib_save_exec_prefix="$exec_prefix"
2303 -glib_save_datarootdir="$datarootdir"
2304 -test "x$prefix" = xNONE && prefix=$ac_default_prefix
2305 -test "x$exec_prefix" = xNONE && exec_prefix=$prefix
2306 -datarootdir=`eval echo "${datarootdir}"`
2307 -if test "x$CATOBJEXT" = "x.mo" ; then
2308 - localedir=`eval echo "${libdir}/locale"`
2309 -else
2310 - localedir=`eval echo "${datadir}/locale"`
2311 -fi
2312 -prefix="$glib_save_prefix"
2313 -exec_prefix="$glib_save_exec_prefix"
2314 -datarootdir="$glib_save_datarootdir"
2315 -AC_DEFINE_UNQUOTED($1, "$localedir",
2316 - [Define the location where the catalogs will be installed])
2317 -])
2318 -
2319 -dnl
2320 -dnl Now the definitions that aclocal will find
2321 -dnl
2322 -ifdef(glib_configure_in,[],[
2323 -AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
2324 -AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
2325 -])dnl
2326 -
2327 -# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
2328 -#
2329 -# Create a temporary file with TEST-FILE as its contents and pass the
2330 -# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
2331 -# 0 and perform ACTION-IF-FAIL for any other exit status.
2332 -AC_DEFUN([GLIB_RUN_PROG],
2333 -[cat >conftest.foo <<_ACEOF
2334 -$2
2335 -_ACEOF
2336 -if AC_RUN_LOG([$1 conftest.foo]); then
2337 - m4_ifval([$3], [$3], [:])
2338 -m4_ifvaln([$4], [else $4])dnl
2339 -echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
2340 -sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
2341 -fi])
2342 -
2343 -
2344 -# gnome-common.m4
2345 -#
2346 -
2347 -dnl GNOME_COMMON_INIT
2348 -
2349 -AC_DEFUN([GNOME_COMMON_INIT],
2350 -[
2351 - dnl this macro should come after AC_CONFIG_MACRO_DIR
2352 - AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
2353 -
2354 - dnl ensure that when the Automake generated makefile calls aclocal,
2355 - dnl it honours the $ACLOCAL_FLAGS environment variable
2356 - ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
2357 - if test -n "$ac_macro_dir"; then
2358 - ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
2359 - fi
2360 -
2361 - AC_SUBST([ACLOCAL_AMFLAGS])
2362 -])
2363 -
2364 -AC_DEFUN([GNOME_DEBUG_CHECK],
2365 -[
2366 - AC_ARG_ENABLE([debug],
2367 - AC_HELP_STRING([--enable-debug],
2368 - [turn on debugging]),,
2369 - [enable_debug=no])
2370 -
2371 - if test x$enable_debug = xyes ; then
2372 - AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
2373 - [Enable additional debugging at the expense of performance and size])
2374 - fi
2375 -])
2376 -
2377 -dnl GNOME_MAINTAINER_MODE_DEFINES ()
2378 -dnl define DISABLE_DEPRECATED
2379 -dnl
2380 -AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
2381 -[
2382 - AC_REQUIRE([AM_MAINTAINER_MODE])
2383 -
2384 - if test $USE_MAINTAINER_MODE = yes; then
2385 - DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -DWNCK_DISABLE_DEPRECATED -DLIBSOUP_DISABLE_DEPRECATED"
2386 - else
2387 - DISABLE_DEPRECATED=""
2388 - fi
2389 - AC_SUBST(DISABLE_DEPRECATED)
2390 -])
2391 -
2392 -# Configure paths for GTK+
2393 -# Owen Taylor 1997-2001
2394 -
2395 -dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
2396 -dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
2397 -dnl pass to pkg-config
2398 -dnl
2399 -AC_DEFUN([AM_PATH_GTK_2_0],
2400 -[dnl
2401 -dnl Get the cflags and libraries from pkg-config
2402 -dnl
2403 -AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program],
2404 - , enable_gtktest=yes)
2405 -
2406 - pkg_config_args=gtk+-2.0
2407 - for module in . $4
2408 - do
2409 - case "$module" in
2410 - gthread)
2411 - pkg_config_args="$pkg_config_args gthread-2.0"
2412 - ;;
2413 - esac
2414 - done
2415 -
2416 - no_gtk=""
2417 -
2418 - AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
2419 -
2420 - if test x$PKG_CONFIG != xno ; then
2421 - if pkg-config --atleast-pkgconfig-version 0.7 ; then
2422 - :
2423 - else
2424 - echo "*** pkg-config too old; version 0.7 or better required."
2425 - no_gtk=yes
2426 - PKG_CONFIG=no
2427 - fi
2428 - else
2429 - no_gtk=yes
2430 - fi
2431 -
2432 - min_gtk_version=ifelse([$1], ,2.0.0,$1)
2433 - AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
2434 -
2435 - if test x$PKG_CONFIG != xno ; then
2436 - ## don't try to run the test against uninstalled libtool libs
2437 - if $PKG_CONFIG --uninstalled $pkg_config_args; then
2438 - echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
2439 - enable_gtktest=no
2440 - fi
2441 -
2442 - if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
2443 - :
2444 - else
2445 - no_gtk=yes
2446 - fi
2447 - fi
2448 -
2449 - if test x"$no_gtk" = x ; then
2450 - GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
2451 - GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
2452 - gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
2453 - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
2454 - gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
2455 - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
2456 - gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
2457 - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
2458 - if test "x$enable_gtktest" = "xyes" ; then
2459 - ac_save_CFLAGS="$CFLAGS"
2460 - ac_save_LIBS="$LIBS"
2461 - CFLAGS="$CFLAGS $GTK_CFLAGS"
2462 - LIBS="$GTK_LIBS $LIBS"
2463 -dnl
2464 -dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
2465 -dnl checks the results of pkg-config to some extent)
2466 -dnl
2467 - rm -f conf.gtktest
2468 - AC_TRY_RUN([
2469 -#include <gtk/gtk.h>
2470 -#include <stdio.h>
2471 -#include <stdlib.h>
2472 -
2473 -int
2474 -main ()
2475 -{
2476 - int major, minor, micro;
2477 - char *tmp_version;
2478 -
2479 - system ("touch conf.gtktest");
2480 -
2481 - /* HP/UX 9 (%@#!) writes to sscanf strings */
2482 - tmp_version = g_strdup("$min_gtk_version");
2483 - if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2484 - printf("%s, bad version string\n", "$min_gtk_version");
2485 - exit(1);
2486 - }
2487 -
2488 - if ((gtk_major_version != $gtk_config_major_version) ||
2489 - (gtk_minor_version != $gtk_config_minor_version) ||
2490 - (gtk_micro_version != $gtk_config_micro_version))
2491 - {
2492 - printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2493 - $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2494 - gtk_major_version, gtk_minor_version, gtk_micro_version);
2495 - printf ("*** was found! If pkg-config was correct, then it is best\n");
2496 - printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2497 - printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2498 - printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2499 - printf("*** required on your system.\n");
2500 - printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
2501 - printf("*** to point to the correct configuration files\n");
2502 - }
2503 - else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
2504 - (gtk_minor_version != GTK_MINOR_VERSION) ||
2505 - (gtk_micro_version != GTK_MICRO_VERSION))
2506 - {
2507 - printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
2508 - GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
2509 - printf("*** library (version %d.%d.%d)\n",
2510 - gtk_major_version, gtk_minor_version, gtk_micro_version);
2511 - }
2512 - else
2513 - {
2514 - if ((gtk_major_version > major) ||
2515 - ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2516 - ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2517 - {
2518 - return 0;
2519 - }
2520 - else
2521 - {
2522 - printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2523 - gtk_major_version, gtk_minor_version, gtk_micro_version);
2524 - printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2525 - major, minor, micro);
2526 - printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2527 - printf("***\n");
2528 - printf("*** If you have already installed a sufficiently new version, this error\n");
2529 - printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
2530 - printf("*** being found. The easiest way to fix this is to remove the old version\n");
2531 - printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
2532 - printf("*** correct copy of pkg-config. (In this case, you will have to\n");
2533 - printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2534 - printf("*** so that the correct libraries are found at run-time))\n");
2535 - }
2536 - }
2537 - return 1;
2538 -}
2539 -],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
2540 - CFLAGS="$ac_save_CFLAGS"
2541 - LIBS="$ac_save_LIBS"
2542 - fi
2543 - fi
2544 - if test "x$no_gtk" = x ; then
2545 - AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
2546 - ifelse([$2], , :, [$2])
2547 - else
2548 - AC_MSG_RESULT(no)
2549 - if test "$PKG_CONFIG" = "no" ; then
2550 - echo "*** A new enough version of pkg-config was not found."
2551 - echo "*** See http://pkgconfig.sourceforge.net"
2552 - else
2553 - if test -f conf.gtktest ; then
2554 - :
2555 - else
2556 - echo "*** Could not run GTK+ test program, checking why..."
2557 - ac_save_CFLAGS="$CFLAGS"
2558 - ac_save_LIBS="$LIBS"
2559 - CFLAGS="$CFLAGS $GTK_CFLAGS"
2560 - LIBS="$LIBS $GTK_LIBS"
2561 - AC_TRY_LINK([
2562 -#include <gtk/gtk.h>
2563 -#include <stdio.h>
2564 -], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
2565 - [ echo "*** The test program compiled, but did not run. This usually means"
2566 - echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
2567 - echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
2568 - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2569 - echo "*** to the installed location Also, make sure you have run ldconfig if that"
2570 - echo "*** is required on your system"
2571 - echo "***"
2572 - echo "*** If you have an old version installed, it is best to remove it, although"
2573 - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
2574 - [ echo "*** The test program failed to compile or link. See the file config.log for the"
2575 - echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
2576 - CFLAGS="$ac_save_CFLAGS"
2577 - LIBS="$ac_save_LIBS"
2578 - fi
2579 - fi
2580 - GTK_CFLAGS=""
2581 - GTK_LIBS=""
2582 - ifelse([$3], , :, [$3])
2583 - fi
2584 - AC_SUBST(GTK_CFLAGS)
2585 - AC_SUBST(GTK_LIBS)
2586 - rm -f conf.gtktest
2587 -])
2588 -
2589 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2590 -
2591 -# serial 52 AC_PROG_LIBTOOL
2592 -
2593 -
2594 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2595 -# -----------------------------------------------------------
2596 -# If this macro is not defined by Autoconf, define it here.
2597 -m4_ifdef([AC_PROVIDE_IFELSE],
2598 - [],
2599 - [m4_define([AC_PROVIDE_IFELSE],
2600 - [m4_ifdef([AC_PROVIDE_$1],
2601 - [$2], [$3])])])
2602 -
2603 -
2604 -# AC_PROG_LIBTOOL
2605 -# ---------------
2606 -AC_DEFUN([AC_PROG_LIBTOOL],
2607 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
2608 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
2609 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
2610 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
2611 - [AC_LIBTOOL_CXX],
2612 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
2613 - ])])
2614 -dnl And a similar setup for Fortran 77 support
2615 - AC_PROVIDE_IFELSE([AC_PROG_F77],
2616 - [AC_LIBTOOL_F77],
2617 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
2618 -])])
2619 -
2620 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
2621 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
2622 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
2623 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2624 - [AC_LIBTOOL_GCJ],
2625 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2626 - [AC_LIBTOOL_GCJ],
2627 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
2628 - [AC_LIBTOOL_GCJ],
2629 - [ifdef([AC_PROG_GCJ],
2630 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2631 - ifdef([A][M_PROG_GCJ],
2632 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2633 - ifdef([LT_AC_PROG_GCJ],
2634 - [define([LT_AC_PROG_GCJ],
2635 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
2636 -])])# AC_PROG_LIBTOOL
2637 -
2638 -
2639 -# _AC_PROG_LIBTOOL
2640 -# ----------------
2641 -AC_DEFUN([_AC_PROG_LIBTOOL],
2642 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
2643 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
2644 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
2645 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
2646 -
2647 -# This can be used to rebuild libtool when needed
2648 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
2649 -
2650 -# Always use our own libtool.
2651 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2652 -AC_SUBST(LIBTOOL)dnl
2653 -
2654 -# Prevent multiple expansion
2655 -define([AC_PROG_LIBTOOL], [])
2656 -])# _AC_PROG_LIBTOOL
2657 -
2658 -
2659 -# AC_LIBTOOL_SETUP
2660 -# ----------------
2661 -AC_DEFUN([AC_LIBTOOL_SETUP],
2662 -[AC_PREREQ(2.50)dnl
2663 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
2664 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
2665 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
2666 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
2667 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2668 -AC_REQUIRE([AC_PROG_CC])dnl
2669 -AC_REQUIRE([AC_PROG_LD])dnl
2670 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
2671 -AC_REQUIRE([AC_PROG_NM])dnl
2672 -
2673 -AC_REQUIRE([AC_PROG_LN_S])dnl
2674 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
2675 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2676 -AC_REQUIRE([AC_OBJEXT])dnl
2677 -AC_REQUIRE([AC_EXEEXT])dnl
2678 -dnl
2679 -AC_LIBTOOL_SYS_MAX_CMD_LEN
2680 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2681 -AC_LIBTOOL_OBJDIR
2682 -
2683 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2684 -_LT_AC_PROG_ECHO_BACKSLASH
2685 -
2686 -case $host_os in
2687 -aix3*)
2688 - # AIX sometimes has problems with the GCC collect2 program. For some
2689 - # reason, if we set the COLLECT_NAMES environment variable, the problems
2690 - # vanish in a puff of smoke.
2691 - if test "X${COLLECT_NAMES+set}" != Xset; then
2692 - COLLECT_NAMES=
2693 - export COLLECT_NAMES
2694 - fi
2695 - ;;
2696 -esac
2697 -
2698 -# Sed substitution that helps us do robust quoting. It backslashifies
2699 -# metacharacters that are still active within double-quoted strings.
2700 -Xsed='sed -e 1s/^X//'
2701 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
2702 -
2703 -# Same as above, but do not quote variable references.
2704 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
2705 -
2706 -# Sed substitution to delay expansion of an escaped shell variable in a
2707 -# double_quote_subst'ed string.
2708 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2709 -
2710 -# Sed substitution to avoid accidental globbing in evaled expressions
2711 -no_glob_subst='s/\*/\\\*/g'
2712 -
2713 -# Constants:
2714 -rm="rm -f"
2715 -
2716 -# Global variables:
2717 -default_ofile=libtool
2718 -can_build_shared=yes
2719 -
2720 -# All known linkers require a `.a' archive for static linking (except MSVC,
2721 -# which needs '.lib').
2722 -libext=a
2723 -ltmain="$ac_aux_dir/ltmain.sh"
2724 -ofile="$default_ofile"
2725 -with_gnu_ld="$lt_cv_prog_gnu_ld"
2726 -
2727 -AC_CHECK_TOOL(AR, ar, false)
2728 -AC_CHECK_TOOL(RANLIB, ranlib, :)
2729 -AC_CHECK_TOOL(STRIP, strip, :)
2730 -
2731 -old_CC="$CC"
2732 -old_CFLAGS="$CFLAGS"
2733 -
2734 -# Set sane defaults for various variables
2735 -test -z "$AR" && AR=ar
2736 -test -z "$AR_FLAGS" && AR_FLAGS=cru
2737 -test -z "$AS" && AS=as
2738 -test -z "$CC" && CC=cc
2739 -test -z "$LTCC" && LTCC=$CC
2740 -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2741 -test -z "$DLLTOOL" && DLLTOOL=dlltool
2742 -test -z "$LD" && LD=ld
2743 -test -z "$LN_S" && LN_S="ln -s"
2744 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
2745 -test -z "$NM" && NM=nm
2746 -test -z "$SED" && SED=sed
2747 -test -z "$OBJDUMP" && OBJDUMP=objdump
2748 -test -z "$RANLIB" && RANLIB=:
2749 -test -z "$STRIP" && STRIP=:
2750 -test -z "$ac_objext" && ac_objext=o
2751 -
2752 -# Determine commands to create old-style static archives.
2753 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2754 -old_postinstall_cmds='chmod 644 $oldlib'
2755 -old_postuninstall_cmds=
2756 -
2757 -if test -n "$RANLIB"; then
2758 - case $host_os in
2759 - openbsd*)
2760 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2761 - ;;
2762 - *)
2763 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2764 - ;;
2765 - esac
2766 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2767 -fi
2768 -
2769 -_LT_CC_BASENAME([$compiler])
2770 -
2771 -# Only perform the check for file, if the check method requires it
2772 -case $deplibs_check_method in
2773 -file_magic*)
2774 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2775 - AC_PATH_MAGIC
2776 - fi
2777 - ;;
2778 -esac
2779 -
2780 -_LT_REQUIRED_DARWIN_CHECKS
2781 -
2782 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
2783 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2784 -enable_win32_dll=yes, enable_win32_dll=no)
2785 -
2786 -AC_ARG_ENABLE([libtool-lock],
2787 - [AC_HELP_STRING([--disable-libtool-lock],
2788 - [avoid locking (might break parallel builds)])])
2789 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2790 -
2791 -AC_ARG_WITH([pic],
2792 - [AC_HELP_STRING([--with-pic],
2793 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
2794 - [pic_mode="$withval"],
2795 - [pic_mode=default])
2796 -test -z "$pic_mode" && pic_mode=default
2797 -
2798 -# Use C for the default configuration in the libtool script
2799 -tagname=
2800 -AC_LIBTOOL_LANG_C_CONFIG
2801 -_LT_AC_TAGCONFIG
2802 -])# AC_LIBTOOL_SETUP
2803 -
2804 -
2805 -# _LT_AC_SYS_COMPILER
2806 -# -------------------
2807 -AC_DEFUN([_LT_AC_SYS_COMPILER],
2808 -[AC_REQUIRE([AC_PROG_CC])dnl
2809 -
2810 -# If no C compiler was specified, use CC.
2811 -LTCC=${LTCC-"$CC"}
2812 -
2813 -# If no C compiler flags were specified, use CFLAGS.
2814 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
2815 -
2816 -# Allow CC to be a program name with arguments.
2817 -compiler=$CC
2818 -])# _LT_AC_SYS_COMPILER
2819 -
2820 -
2821 -# _LT_CC_BASENAME(CC)
2822 -# -------------------
2823 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2824 -AC_DEFUN([_LT_CC_BASENAME],
2825 -[for cc_temp in $1""; do
2826 - case $cc_temp in
2827 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
2828 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
2829 - \-*) ;;
2830 - *) break;;
2831 - esac
2832 -done
2833 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
2834 -])
2835 -
2836 -
2837 -# _LT_COMPILER_BOILERPLATE
2838 -# ------------------------
2839 -# Check for compiler boilerplate output or warnings with
2840 -# the simple compiler test code.
2841 -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
2842 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
2843 -ac_outfile=conftest.$ac_objext
2844 -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2845 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2846 -_lt_compiler_boilerplate=`cat conftest.err`
2847 -$rm conftest*
2848 -])# _LT_COMPILER_BOILERPLATE
2849 -
2850 -
2851 -# _LT_LINKER_BOILERPLATE
2852 -# ----------------------
2853 -# Check for linker boilerplate output or warnings with
2854 -# the simple link test code.
2855 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
2856 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
2857 -ac_outfile=conftest.$ac_objext
2858 -echo "$lt_simple_link_test_code" >conftest.$ac_ext
2859 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2860 -_lt_linker_boilerplate=`cat conftest.err`
2861 -$rm -r conftest*
2862 -])# _LT_LINKER_BOILERPLATE
2863 -
2864 -# _LT_REQUIRED_DARWIN_CHECKS
2865 -# --------------------------
2866 -# Check for some things on darwin
2867 -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
2868 - case $host_os in
2869 - rhapsody* | darwin*)
2870 - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
2871 - AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
2872 -
2873 - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
2874 - [lt_cv_apple_cc_single_mod=no
2875 - if test -z "${LT_MULTI_MODULE}"; then
2876 - # By default we will add the -single_module flag. You can override
2877 - # by either setting the environment variable LT_MULTI_MODULE
2878 - # non-empty at configure time, or by adding -multi_module to the
2879 - # link flags.
2880 - echo "int foo(void){return 1;}" > conftest.c
2881 - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2882 - -dynamiclib ${wl}-single_module conftest.c
2883 - if test -f libconftest.dylib; then
2884 - lt_cv_apple_cc_single_mod=yes
2885 - rm -rf libconftest.dylib*
2886 - fi
2887 - rm conftest.c
2888 - fi])
2889 - AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2890 - [lt_cv_ld_exported_symbols_list],
2891 - [lt_cv_ld_exported_symbols_list=no
2892 - save_LDFLAGS=$LDFLAGS
2893 - echo "_main" > conftest.sym
2894 - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2895 - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2896 - [lt_cv_ld_exported_symbols_list=yes],
2897 - [lt_cv_ld_exported_symbols_list=no])
2898 - LDFLAGS="$save_LDFLAGS"
2899 - ])
2900 - case $host_os in
2901 - rhapsody* | darwin1.[[0123]])
2902 - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2903 - darwin1.*)
2904 - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2905 - darwin*)
2906 - # if running on 10.5 or later, the deployment target defaults
2907 - # to the OS version, if on x86, and 10.4, the deployment
2908 - # target defaults to 10.4. Don't you love it?
2909 - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2910 - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
2911 - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2912 - 10.[[012]]*)
2913 - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2914 - 10.*)
2915 - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2916 - esac
2917 - ;;
2918 - esac
2919 - if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2920 - _lt_dar_single_mod='$single_module'
2921 - fi
2922 - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2923 - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2924 - else
2925 - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
2926 - fi
2927 - if test "$DSYMUTIL" != ":"; then
2928 - _lt_dsymutil="~$DSYMUTIL \$lib || :"
2929 - else
2930 - _lt_dsymutil=
2931 - fi
2932 - ;;
2933 - esac
2934 -])
2935 -
2936 -# _LT_AC_SYS_LIBPATH_AIX
2937 -# ----------------------
2938 -# Links a minimal program and checks the executable
2939 -# for the system default hardcoded library path. In most cases,
2940 -# this is /usr/lib:/lib, but when the MPI compilers are used
2941 -# the location of the communication and MPI libs are included too.
2942 -# If we don't find anything, use the default library path according
2943 -# to the aix ld manual.
2944 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
2945 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
2946 -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2947 -lt_aix_libpath_sed='
2948 - /Import File Strings/,/^$/ {
2949 - /^0/ {
2950 - s/^0 *\(.*\)$/\1/
2951 - p
2952 - }
2953 - }'
2954 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2955 -# Check for a 64-bit object if we didn't find anything.
2956 -if test -z "$aix_libpath"; then
2957 - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2958 -fi],[])
2959 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2960 -])# _LT_AC_SYS_LIBPATH_AIX
2961 -
2962 -
2963 -# _LT_AC_SHELL_INIT(ARG)
2964 -# ----------------------
2965 -AC_DEFUN([_LT_AC_SHELL_INIT],
2966 -[ifdef([AC_DIVERSION_NOTICE],
2967 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2968 - [AC_DIVERT_PUSH(NOTICE)])
2969 -$1
2970 -AC_DIVERT_POP
2971 -])# _LT_AC_SHELL_INIT
2972 -
2973 -
2974 -# _LT_AC_PROG_ECHO_BACKSLASH
2975 -# --------------------------
2976 -# Add some code to the start of the generated configure script which
2977 -# will find an echo command which doesn't interpret backslashes.
2978 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
2979 -[_LT_AC_SHELL_INIT([
2980 -# Check that we are running under the correct shell.
2981 -SHELL=${CONFIG_SHELL-/bin/sh}
2982 -
2983 -case X$ECHO in
2984 -X*--fallback-echo)
2985 - # Remove one level of quotation (which was required for Make).
2986 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2987 - ;;
2988 -esac
2989 -
2990 -echo=${ECHO-echo}
2991 -if test "X[$]1" = X--no-reexec; then
2992 - # Discard the --no-reexec flag, and continue.
2993 - shift
2994 -elif test "X[$]1" = X--fallback-echo; then
2995 - # Avoid inline document here, it may be left over
2996 - :
2997 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
2998 - # Yippee, $echo works!
2999 - :
3000 -else
3001 - # Restart under the correct shell.
3002 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
3003 -fi
3004 -
3005 -if test "X[$]1" = X--fallback-echo; then
3006 - # used as fallback echo
3007 - shift
3008 - cat <<EOF
3009 -[$]*
3010 -EOF
3011 - exit 0
3012 -fi
3013 -
3014 -# The HP-UX ksh and POSIX shell print the target directory to stdout
3015 -# if CDPATH is set.
3016 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3017 -
3018 -if test -z "$ECHO"; then
3019 -if test "X${echo_test_string+set}" != Xset; then
3020 -# find a string as large as possible, as long as the shell can cope with it
3021 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
3022 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
3023 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
3024 - echo_test_string=`eval $cmd` &&
3025 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
3026 - then
3027 - break
3028 - fi
3029 - done
3030 -fi
3031 -
3032 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
3033 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
3034 - test "X$echo_testing_string" = "X$echo_test_string"; then
3035 - :
3036 -else
3037 - # The Solaris, AIX, and Digital Unix default echo programs unquote
3038 - # backslashes. This makes it impossible to quote backslashes using
3039 - # echo "$something" | sed 's/\\/\\\\/g'
3040 - #
3041 - # So, first we look for a working echo in the user's PATH.
3042 -
3043 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3044 - for dir in $PATH /usr/ucb; do
3045 - IFS="$lt_save_ifs"
3046 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
3047 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
3048 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
3049 - test "X$echo_testing_string" = "X$echo_test_string"; then
3050 - echo="$dir/echo"
3051 - break
3052 - fi
3053 - done
3054 - IFS="$lt_save_ifs"
3055 -
3056 - if test "X$echo" = Xecho; then
3057 - # We didn't find a better echo, so look for alternatives.
3058 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
3059 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
3060 - test "X$echo_testing_string" = "X$echo_test_string"; then
3061 - # This shell has a builtin print -r that does the trick.
3062 - echo='print -r'
3063 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
3064 - test "X$CONFIG_SHELL" != X/bin/ksh; then
3065 - # If we have ksh, try running configure again with it.
3066 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3067 - export ORIGINAL_CONFIG_SHELL
3068 - CONFIG_SHELL=/bin/ksh
3069 - export CONFIG_SHELL
3070 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
3071 - else
3072 - # Try using printf.
3073 - echo='printf %s\n'
3074 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
3075 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
3076 - test "X$echo_testing_string" = "X$echo_test_string"; then
3077 - # Cool, printf works
3078 - :
3079 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3080 - test "X$echo_testing_string" = 'X\t' &&
3081 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3082 - test "X$echo_testing_string" = "X$echo_test_string"; then
3083 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
3084 - export CONFIG_SHELL
3085 - SHELL="$CONFIG_SHELL"
3086 - export SHELL
3087 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
3088 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3089 - test "X$echo_testing_string" = 'X\t' &&
3090 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3091 - test "X$echo_testing_string" = "X$echo_test_string"; then
3092 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
3093 - else
3094 - # maybe with a smaller string...
3095 - prev=:
3096 -
3097 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
3098 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
3099 - then
3100 - break
3101 - fi
3102 - prev="$cmd"
3103 - done
3104 -
3105 - if test "$prev" != 'sed 50q "[$]0"'; then
3106 - echo_test_string=`eval $prev`
3107 - export echo_test_string
3108 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
3109 - else
3110 - # Oops. We lost completely, so just stick with echo.
3111 - echo=echo
3112 - fi
3113 - fi
3114 - fi
3115 - fi
3116 -fi
3117 -fi
3118 -
3119 -# Copy echo and quote the copy suitably for passing to libtool from
3120 -# the Makefile, instead of quoting the original, which is used later.
3121 -ECHO=$echo
3122 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
3123 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
3124 -fi
3125 -
3126 -AC_SUBST(ECHO)
3127 -])])# _LT_AC_PROG_ECHO_BACKSLASH
3128 -
3129 -
3130 -# _LT_AC_LOCK
3131 -# -----------
3132 -AC_DEFUN([_LT_AC_LOCK],
3133 -[AC_ARG_ENABLE([libtool-lock],
3134 - [AC_HELP_STRING([--disable-libtool-lock],
3135 - [avoid locking (might break parallel builds)])])
3136 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3137 -
3138 -# Some flags need to be propagated to the compiler or linker for good
3139 -# libtool support.
3140 -case $host in
3141 -ia64-*-hpux*)
3142 - # Find out which ABI we are using.
3143 - echo 'int i;' > conftest.$ac_ext
3144 - if AC_TRY_EVAL(ac_compile); then
3145 - case `/usr/bin/file conftest.$ac_objext` in
3146 - *ELF-32*)
3147 - HPUX_IA64_MODE="32"
3148 - ;;
3149 - *ELF-64*)
3150 - HPUX_IA64_MODE="64"
3151 - ;;
3152 - esac
3153 - fi
3154 - rm -rf conftest*
3155 - ;;
3156 -*-*-irix6*)
3157 - # Find out which ABI we are using.
3158 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3159 - if AC_TRY_EVAL(ac_compile); then
3160 - if test "$lt_cv_prog_gnu_ld" = yes; then
3161 - case `/usr/bin/file conftest.$ac_objext` in
3162 - *32-bit*)
3163 - LD="${LD-ld} -melf32bsmip"
3164 - ;;
3165 - *N32*)
3166 - LD="${LD-ld} -melf32bmipn32"
3167 - ;;
3168 - *64-bit*)
3169 - LD="${LD-ld} -melf64bmip"
3170 - ;;
3171 - esac
3172 - else
3173 - case `/usr/bin/file conftest.$ac_objext` in
3174 - *32-bit*)
3175 - LD="${LD-ld} -32"
3176 - ;;
3177 - *N32*)
3178 - LD="${LD-ld} -n32"
3179 - ;;
3180 - *64-bit*)
3181 - LD="${LD-ld} -64"
3182 - ;;
3183 - esac
3184 - fi
3185 - fi
3186 - rm -rf conftest*
3187 - ;;
3188 -
3189 -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3190 -s390*-*linux*|sparc*-*linux*)
3191 - # Find out which ABI we are using.
3192 - echo 'int i;' > conftest.$ac_ext
3193 - if AC_TRY_EVAL(ac_compile); then
3194 - case `/usr/bin/file conftest.o` in
3195 - *32-bit*)
3196 - case $host in
3197 - x86_64-*kfreebsd*-gnu)
3198 - LD="${LD-ld} -m elf_i386_fbsd"
3199 - ;;
3200 - x86_64-*linux*)
3201 - LD="${LD-ld} -m elf_i386"
3202 - ;;
3203 - ppc64-*linux*|powerpc64-*linux*)
3204 - LD="${LD-ld} -m elf32ppclinux"
3205 - ;;
3206 - s390x-*linux*)
3207 - LD="${LD-ld} -m elf_s390"
3208 - ;;
3209 - sparc64-*linux*)
3210 - LD="${LD-ld} -m elf32_sparc"
3211 - ;;
3212 - esac
3213 - ;;
3214 - *64-bit*)
3215 - libsuff=64
3216 - case $host in
3217 - x86_64-*kfreebsd*-gnu)
3218 - LD="${LD-ld} -m elf_x86_64_fbsd"
3219 - ;;
3220 - x86_64-*linux*)
3221 - LD="${LD-ld} -m elf_x86_64"
3222 - ;;
3223 - ppc*-*linux*|powerpc*-*linux*)
3224 - LD="${LD-ld} -m elf64ppc"
3225 - ;;
3226 - s390*-*linux*)
3227 - LD="${LD-ld} -m elf64_s390"
3228 - ;;
3229 - sparc*-*linux*)
3230 - LD="${LD-ld} -m elf64_sparc"
3231 - ;;
3232 - esac
3233 - ;;
3234 - esac
3235 - fi
3236 - rm -rf conftest*
3237 - ;;
3238 -
3239 -*-*-sco3.2v5*)
3240 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3241 - SAVE_CFLAGS="$CFLAGS"
3242 - CFLAGS="$CFLAGS -belf"
3243 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3244 - [AC_LANG_PUSH(C)
3245 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3246 - AC_LANG_POP])
3247 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3248 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3249 - CFLAGS="$SAVE_CFLAGS"
3250 - fi
3251 - ;;
3252 -sparc*-*solaris*)
3253 - # Find out which ABI we are using.
3254 - echo 'int i;' > conftest.$ac_ext
3255 - if AC_TRY_EVAL(ac_compile); then
3256 - case `/usr/bin/file conftest.o` in
3257 - *64-bit*)
3258 - case $lt_cv_prog_gnu_ld in
3259 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
3260 - *)
3261 - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
3262 - LD="${LD-ld} -64"
3263 - fi
3264 - ;;
3265 - esac
3266 - ;;
3267 - esac
3268 - fi
3269 - rm -rf conftest*
3270 - ;;
3271 -
3272 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3273 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3274 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
3275 - AC_CHECK_TOOL(AS, as, false)
3276 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
3277 - ;;
3278 - ])
3279 -esac
3280 -
3281 -need_locks="$enable_libtool_lock"
3282 -
3283 -])# _LT_AC_LOCK
3284 -
3285 -
3286 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3287 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3288 -# ----------------------------------------------------------------
3289 -# Check whether the given compiler option works
3290 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
3291 -[AC_REQUIRE([LT_AC_PROG_SED])
3292 -AC_CACHE_CHECK([$1], [$2],
3293 - [$2=no
3294 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3295 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3296 - lt_compiler_flag="$3"
3297 - # Insert the option either (1) after the last *FLAGS variable, or
3298 - # (2) before a word containing "conftest.", or (3) at the end.
3299 - # Note that $ac_compile itself does not contain backslashes and begins
3300 - # with a dollar sign (not a hyphen), so the echo should work correctly.
3301 - # The option is referenced via a variable to avoid confusing sed.
3302 - lt_compile=`echo "$ac_compile" | $SED \
3303 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3304 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3305 - -e 's:$: $lt_compiler_flag:'`
3306 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3307 - (eval "$lt_compile" 2>conftest.err)
3308 - ac_status=$?
3309 - cat conftest.err >&AS_MESSAGE_LOG_FD
3310 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3311 - if (exit $ac_status) && test -s "$ac_outfile"; then
3312 - # The compiler can only warn and ignore the option if not recognized
3313 - # So say no if there are warnings other than the usual output.
3314 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
3315 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3316 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3317 - $2=yes
3318 - fi
3319 - fi
3320 - $rm conftest*
3321 -])
3322 -
3323 -if test x"[$]$2" = xyes; then
3324 - ifelse([$5], , :, [$5])
3325 -else
3326 - ifelse([$6], , :, [$6])
3327 -fi
3328 -])# AC_LIBTOOL_COMPILER_OPTION
3329 -
3330 -
3331 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3332 -# [ACTION-SUCCESS], [ACTION-FAILURE])
3333 -# ------------------------------------------------------------
3334 -# Check whether the given compiler option works
3335 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
3336 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
3337 -AC_CACHE_CHECK([$1], [$2],
3338 - [$2=no
3339 - save_LDFLAGS="$LDFLAGS"
3340 - LDFLAGS="$LDFLAGS $3"
3341 - echo "$lt_simple_link_test_code" > conftest.$ac_ext
3342 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3343 - # The linker can only warn and ignore the option if not recognized
3344 - # So say no if there are warnings
3345 - if test -s conftest.err; then
3346 - # Append any errors to the config.log.
3347 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
3348 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
3349 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3350 - if diff conftest.exp conftest.er2 >/dev/null; then
3351 - $2=yes
3352 - fi
3353 - else
3354 - $2=yes
3355 - fi
3356 - fi
3357 - $rm -r conftest*
3358 - LDFLAGS="$save_LDFLAGS"
3359 -])
3360 -
3361 -if test x"[$]$2" = xyes; then
3362 - ifelse([$4], , :, [$4])
3363 -else
3364 - ifelse([$5], , :, [$5])
3365 -fi
3366 -])# AC_LIBTOOL_LINKER_OPTION
3367 -
3368 -
3369 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
3370 -# --------------------------
3371 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
3372 -[# find the maximum length of command line arguments
3373 -AC_MSG_CHECKING([the maximum length of command line arguments])
3374 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3375 - i=0
3376 - teststring="ABCD"
3377 -
3378 - case $build_os in
3379 - msdosdjgpp*)
3380 - # On DJGPP, this test can blow up pretty badly due to problems in libc
3381 - # (any single argument exceeding 2000 bytes causes a buffer overrun
3382 - # during glob expansion). Even if it were fixed, the result of this
3383 - # check would be larger than it should be.
3384 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
3385 - ;;
3386 -
3387 - gnu*)
3388 - # Under GNU Hurd, this test is not required because there is
3389 - # no limit to the length of command line arguments.
3390 - # Libtool will interpret -1 as no limit whatsoever
3391 - lt_cv_sys_max_cmd_len=-1;
3392 - ;;
3393 -
3394 - cygwin* | mingw*)
3395 - # On Win9x/ME, this test blows up -- it succeeds, but takes
3396 - # about 5 minutes as the teststring grows exponentially.
3397 - # Worse, since 9x/ME are not pre-emptively multitasking,
3398 - # you end up with a "frozen" computer, even though with patience
3399 - # the test eventually succeeds (with a max line length of 256k).
3400 - # Instead, let's just punt: use the minimum linelength reported by
3401 - # all of the supported platforms: 8192 (on NT/2K/XP).
3402 - lt_cv_sys_max_cmd_len=8192;
3403 - ;;
3404 -
3405 - amigaos*)
3406 - # On AmigaOS with pdksh, this test takes hours, literally.
3407 - # So we just punt and use a minimum line length of 8192.
3408 - lt_cv_sys_max_cmd_len=8192;
3409 - ;;
3410 -
3411 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3412 - # This has been around since 386BSD, at least. Likely further.
3413 - if test -x /sbin/sysctl; then
3414 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3415 - elif test -x /usr/sbin/sysctl; then
3416 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3417 - else
3418 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3419 - fi
3420 - # And add a safety zone
3421 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3422 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3423 - ;;
3424 -
3425 - interix*)
3426 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
3427 - lt_cv_sys_max_cmd_len=196608
3428 - ;;
3429 -
3430 - osf*)
3431 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3432 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3433 - # nice to cause kernel panics so lets avoid the loop below.
3434 - # First set a reasonable default.
3435 - lt_cv_sys_max_cmd_len=16384
3436 - #
3437 - if test -x /sbin/sysconfig; then
3438 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3439 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
3440 - esac
3441 - fi
3442 - ;;
3443 - sco3.2v5*)
3444 - lt_cv_sys_max_cmd_len=102400
3445 - ;;
3446 - sysv5* | sco5v6* | sysv4.2uw2*)
3447 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3448 - if test -n "$kargmax"; then
3449 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
3450 - else
3451 - lt_cv_sys_max_cmd_len=32768
3452 - fi
3453 - ;;
3454 - *)
3455 - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3456 - if test -n "$lt_cv_sys_max_cmd_len"; then
3457 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3458 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3459 - else
3460 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3461 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
3462 - = "XX$teststring") >/dev/null 2>&1 &&
3463 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
3464 - lt_cv_sys_max_cmd_len=$new_result &&
3465 - test $i != 17 # 1/2 MB should be enough
3466 - do
3467 - i=`expr $i + 1`
3468 - teststring=$teststring$teststring
3469 - done
3470 - teststring=
3471 - # Add a significant safety factor because C++ compilers can tack on massive
3472 - # amounts of additional arguments before passing them to the linker.
3473 - # It appears as though 1/2 is a usable value.
3474 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3475 - fi
3476 - ;;
3477 - esac
3478 -])
3479 -if test -n $lt_cv_sys_max_cmd_len ; then
3480 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
3481 -else
3482 - AC_MSG_RESULT(none)
3483 -fi
3484 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
3485 -
3486 -
3487 -# _LT_AC_CHECK_DLFCN
3488 -# ------------------
3489 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
3490 -[AC_CHECK_HEADERS(dlfcn.h)dnl
3491 -])# _LT_AC_CHECK_DLFCN
3492 -
3493 -
3494 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3495 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3496 -# ---------------------------------------------------------------------
3497 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
3498 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
3499 -if test "$cross_compiling" = yes; then :
3500 - [$4]
3501 -else
3502 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3503 - lt_status=$lt_dlunknown
3504 - cat > conftest.$ac_ext <<EOF
3505 -[#line __oline__ "configure"
3506 -#include "confdefs.h"
3507 -
3508 -#if HAVE_DLFCN_H
3509 -#include <dlfcn.h>
3510 -#endif
3511 -
3512 -#include <stdio.h>
3513 -
3514 -#ifdef RTLD_GLOBAL
3515 -# define LT_DLGLOBAL RTLD_GLOBAL
3516 -#else
3517 -# ifdef DL_GLOBAL
3518 -# define LT_DLGLOBAL DL_GLOBAL
3519 -# else
3520 -# define LT_DLGLOBAL 0
3521 -# endif
3522 -#endif
3523 -
3524 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3525 - find out it does not work in some platform. */
3526 -#ifndef LT_DLLAZY_OR_NOW
3527 -# ifdef RTLD_LAZY
3528 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
3529 -# else
3530 -# ifdef DL_LAZY
3531 -# define LT_DLLAZY_OR_NOW DL_LAZY
3532 -# else
3533 -# ifdef RTLD_NOW
3534 -# define LT_DLLAZY_OR_NOW RTLD_NOW
3535 -# else
3536 -# ifdef DL_NOW
3537 -# define LT_DLLAZY_OR_NOW DL_NOW
3538 -# else
3539 -# define LT_DLLAZY_OR_NOW 0
3540 -# endif
3541 -# endif
3542 -# endif
3543 -# endif
3544 -#endif
3545 -
3546 -#ifdef __cplusplus
3547 -extern "C" void exit (int);
3548 -#endif
3549 -
3550 -void fnord() { int i=42;}
3551 -int main ()
3552 -{
3553 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3554 - int status = $lt_dlunknown;
3555 -
3556 - if (self)
3557 - {
3558 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3559 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
3560 - /* dlclose (self); */
3561 - }
3562 - else
3563 - puts (dlerror ());
3564 -
3565 - exit (status);
3566 -}]
3567 -EOF
3568 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3569 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
3570 - lt_status=$?
3571 - case x$lt_status in
3572 - x$lt_dlno_uscore) $1 ;;
3573 - x$lt_dlneed_uscore) $2 ;;
3574 - x$lt_dlunknown|x*) $3 ;;
3575 - esac
3576 - else :
3577 - # compilation failed
3578 - $3
3579 - fi
3580 -fi
3581 -rm -fr conftest*
3582 -])# _LT_AC_TRY_DLOPEN_SELF
3583 -
3584 -
3585 -# AC_LIBTOOL_DLOPEN_SELF
3586 -# ----------------------
3587 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
3588 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
3589 -if test "x$enable_dlopen" != xyes; then
3590 - enable_dlopen=unknown
3591 - enable_dlopen_self=unknown
3592 - enable_dlopen_self_static=unknown
3593 -else
3594 - lt_cv_dlopen=no
3595 - lt_cv_dlopen_libs=
3596 -
3597 - case $host_os in
3598 - beos*)
3599 - lt_cv_dlopen="load_add_on"
3600 - lt_cv_dlopen_libs=
3601 - lt_cv_dlopen_self=yes
3602 - ;;
3603 -
3604 - mingw* | pw32*)
3605 - lt_cv_dlopen="LoadLibrary"
3606 - lt_cv_dlopen_libs=
3607 - ;;
3608 -
3609 - cygwin*)
3610 - lt_cv_dlopen="dlopen"
3611 - lt_cv_dlopen_libs=
3612 - ;;
3613 -
3614 - darwin*)
3615 - # if libdl is installed we need to link against it
3616 - AC_CHECK_LIB([dl], [dlopen],
3617 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
3618 - lt_cv_dlopen="dyld"
3619 - lt_cv_dlopen_libs=
3620 - lt_cv_dlopen_self=yes
3621 - ])
3622 - ;;
3623 -
3624 - *)
3625 - AC_CHECK_FUNC([shl_load],
3626 - [lt_cv_dlopen="shl_load"],
3627 - [AC_CHECK_LIB([dld], [shl_load],
3628 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3629 - [AC_CHECK_FUNC([dlopen],
3630 - [lt_cv_dlopen="dlopen"],
3631 - [AC_CHECK_LIB([dl], [dlopen],
3632 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3633 - [AC_CHECK_LIB([svld], [dlopen],
3634 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3635 - [AC_CHECK_LIB([dld], [dld_link],
3636 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3637 - ])
3638 - ])
3639 - ])
3640 - ])
3641 - ])
3642 - ;;
3643 - esac
3644 -
3645 - if test "x$lt_cv_dlopen" != xno; then
3646 - enable_dlopen=yes
3647 - else
3648 - enable_dlopen=no
3649 - fi
3650 -
3651 - case $lt_cv_dlopen in
3652 - dlopen)
3653 - save_CPPFLAGS="$CPPFLAGS"
3654 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3655 -
3656 - save_LDFLAGS="$LDFLAGS"
3657 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3658 -
3659 - save_LIBS="$LIBS"
3660 - LIBS="$lt_cv_dlopen_libs $LIBS"
3661 -
3662 - AC_CACHE_CHECK([whether a program can dlopen itself],
3663 - lt_cv_dlopen_self, [dnl
3664 - _LT_AC_TRY_DLOPEN_SELF(
3665 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3666 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3667 - ])
3668 -
3669 - if test "x$lt_cv_dlopen_self" = xyes; then
3670 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3671 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3672 - lt_cv_dlopen_self_static, [dnl
3673 - _LT_AC_TRY_DLOPEN_SELF(
3674 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3675 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
3676 - ])
3677 - fi
3678 -
3679 - CPPFLAGS="$save_CPPFLAGS"
3680 - LDFLAGS="$save_LDFLAGS"
3681 - LIBS="$save_LIBS"
3682 - ;;
3683 - esac
3684 -
3685 - case $lt_cv_dlopen_self in
3686 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3687 - *) enable_dlopen_self=unknown ;;
3688 - esac
3689 -
3690 - case $lt_cv_dlopen_self_static in
3691 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3692 - *) enable_dlopen_self_static=unknown ;;
3693 - esac
3694 -fi
3695 -])# AC_LIBTOOL_DLOPEN_SELF
3696 -
3697 -
3698 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
3699 -# ---------------------------------
3700 -# Check to see if options -c and -o are simultaneously supported by compiler
3701 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
3702 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
3703 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
3704 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3705 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3706 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3707 - $rm -r conftest 2>/dev/null
3708 - mkdir conftest
3709 - cd conftest
3710 - mkdir out
3711 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3712 -
3713 - lt_compiler_flag="-o out/conftest2.$ac_objext"
3714 - # Insert the option either (1) after the last *FLAGS variable, or
3715 - # (2) before a word containing "conftest.", or (3) at the end.
3716 - # Note that $ac_compile itself does not contain backslashes and begins
3717 - # with a dollar sign (not a hyphen), so the echo should work correctly.
3718 - lt_compile=`echo "$ac_compile" | $SED \
3719 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3720 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3721 - -e 's:$: $lt_compiler_flag:'`
3722 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3723 - (eval "$lt_compile" 2>out/conftest.err)
3724 - ac_status=$?
3725 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
3726 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3727 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
3728 - then
3729 - # The compiler can only warn and ignore the option if not recognized
3730 - # So say no if there are warnings
3731 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
3732 - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3733 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3734 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3735 - fi
3736 - fi
3737 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
3738 - $rm conftest*
3739 - # SGI C++ compiler will create directory out/ii_files/ for
3740 - # template instantiation
3741 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
3742 - $rm out/* && rmdir out
3743 - cd ..
3744 - rmdir conftest
3745 - $rm conftest*
3746 -])
3747 -])# AC_LIBTOOL_PROG_CC_C_O
3748 -
3749 -
3750 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
3751 -# -----------------------------------------
3752 -# Check to see if we can do hard links to lock some files if needed
3753 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
3754 -[AC_REQUIRE([_LT_AC_LOCK])dnl
3755 -
3756 -hard_links="nottested"
3757 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3758 - # do not overwrite the value of need_locks provided by the user
3759 - AC_MSG_CHECKING([if we can lock with hard links])
3760 - hard_links=yes
3761 - $rm conftest*
3762 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
3763 - touch conftest.a
3764 - ln conftest.a conftest.b 2>&5 || hard_links=no
3765 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
3766 - AC_MSG_RESULT([$hard_links])
3767 - if test "$hard_links" = no; then
3768 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3769 - need_locks=warn
3770 - fi
3771 -else
3772 - need_locks=no
3773 -fi
3774 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
3775 -
3776 -
3777 -# AC_LIBTOOL_OBJDIR
3778 -# -----------------
3779 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
3780 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3781 -[rm -f .libs 2>/dev/null
3782 -mkdir .libs 2>/dev/null
3783 -if test -d .libs; then
3784 - lt_cv_objdir=.libs
3785 -else
3786 - # MS-DOS does not allow filenames that begin with a dot.
3787 - lt_cv_objdir=_libs
3788 -fi
3789 -rmdir .libs 2>/dev/null])
3790 -objdir=$lt_cv_objdir
3791 -])# AC_LIBTOOL_OBJDIR
3792 -
3793 -
3794 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
3795 -# ----------------------------------------------
3796 -# Check hardcoding attributes.
3797 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
3798 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
3799 -_LT_AC_TAGVAR(hardcode_action, $1)=
3800 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
3801 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
3802 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3803 -
3804 - # We can hardcode non-existant directories.
3805 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
3806 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
3807 - # have to relink, otherwise we might link with an installed library
3808 - # when we should be linking with a yet-to-be-installed one
3809 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3810 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
3811 - # Linking always hardcodes the temporary library directory.
3812 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
3813 - else
3814 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
3815 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
3816 - fi
3817 -else
3818 - # We cannot hardcode anything, or else we can only hardcode existing
3819 - # directories.
3820 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
3821 -fi
3822 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
3823 -
3824 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
3825 - # Fast installation is not supported
3826 - enable_fast_install=no
3827 -elif test "$shlibpath_overrides_runpath" = yes ||
3828 - test "$enable_shared" = no; then
3829 - # Fast installation is not necessary
3830 - enable_fast_install=needless
3831 -fi
3832 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
3833 -
3834 -
3835 -# AC_LIBTOOL_SYS_LIB_STRIP
3836 -# ------------------------
3837 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
3838 -[striplib=
3839 -old_striplib=
3840 -AC_MSG_CHECKING([whether stripping libraries is possible])
3841 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3842 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3843 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3844 - AC_MSG_RESULT([yes])
3845 -else
3846 -# FIXME - insert some real tests, host_os isn't really good enough
3847 - case $host_os in
3848 - darwin*)
3849 - if test -n "$STRIP" ; then
3850 - striplib="$STRIP -x"
3851 - old_striplib="$STRIP -S"
3852 - AC_MSG_RESULT([yes])
3853 - else
3854 - AC_MSG_RESULT([no])
3855 -fi
3856 - ;;
3857 - *)
3858 - AC_MSG_RESULT([no])
3859 - ;;
3860 - esac
3861 -fi
3862 -])# AC_LIBTOOL_SYS_LIB_STRIP
3863 -
3864 -
3865 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3866 -# -----------------------------
3867 -# PORTME Fill in your ld.so characteristics
3868 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
3869 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
3870 -AC_MSG_CHECKING([dynamic linker characteristics])
3871 -library_names_spec=
3872 -libname_spec='lib$name'
3873 -soname_spec=
3874 -shrext_cmds=".so"
3875 -postinstall_cmds=
3876 -postuninstall_cmds=
3877 -finish_cmds=
3878 -finish_eval=
3879 -shlibpath_var=
3880 -shlibpath_overrides_runpath=unknown
3881 -version_type=none
3882 -dynamic_linker="$host_os ld.so"
3883 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
3884 -m4_if($1,[],[
3885 -if test "$GCC" = yes; then
3886 - case $host_os in
3887 - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3888 - *) lt_awk_arg="/^libraries:/" ;;
3889 - esac
3890 - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3891 - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
3892 - # if the path contains ";" then we assume it to be the separator
3893 - # otherwise default to the standard path separator (i.e. ":") - it is
3894 - # assumed that no part of a normal pathname contains ";" but that should
3895 - # okay in the real world where ";" in dirpaths is itself problematic.
3896 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3897 - else
3898 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3899 - fi
3900 - # Ok, now we have the path, separated by spaces, we can step through it
3901 - # and add multilib dir if necessary.
3902 - lt_tmp_lt_search_path_spec=
3903 - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3904 - for lt_sys_path in $lt_search_path_spec; do
3905 - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3906 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3907 - else
3908 - test -d "$lt_sys_path" && \
3909 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3910 - fi
3911 - done
3912 - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
3913 -BEGIN {RS=" "; FS="/|\n";} {
3914 - lt_foo="";
3915 - lt_count=0;
3916 - for (lt_i = NF; lt_i > 0; lt_i--) {
3917 - if ($lt_i != "" && $lt_i != ".") {
3918 - if ($lt_i == "..") {
3919 - lt_count++;
3920 - } else {
3921 - if (lt_count == 0) {
3922 - lt_foo="/" $lt_i lt_foo;
3923 - } else {
3924 - lt_count--;
3925 - }
3926 - }
3927 - }
3928 - }
3929 - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3930 - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3931 -}'`
3932 - sys_lib_search_path_spec=`echo $lt_search_path_spec`
3933 -else
3934 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3935 -fi])
3936 -need_lib_prefix=unknown
3937 -hardcode_into_libs=no
3938 -
3939 -# when you set need_version to no, make sure it does not cause -set_version
3940 -# flags to be left without arguments
3941 -need_version=unknown
3942 -
3943 -case $host_os in
3944 -aix3*)
3945 - version_type=linux
3946 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3947 - shlibpath_var=LIBPATH
3948 -
3949 - # AIX 3 has no versioning support, so we append a major version to the name.
3950 - soname_spec='${libname}${release}${shared_ext}$major'
3951 - ;;
3952 -
3953 -aix[[4-9]]*)
3954 - version_type=linux
3955 - need_lib_prefix=no
3956 - need_version=no
3957 - hardcode_into_libs=yes
3958 - if test "$host_cpu" = ia64; then
3959 - # AIX 5 supports IA64
3960 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3961 - shlibpath_var=LD_LIBRARY_PATH
3962 - else
3963 - # With GCC up to 2.95.x, collect2 would create an import file
3964 - # for dependence libraries. The import file would start with
3965 - # the line `#! .'. This would cause the generated library to
3966 - # depend on `.', always an invalid library. This was fixed in
3967 - # development snapshots of GCC prior to 3.0.
3968 - case $host_os in
3969 - aix4 | aix4.[[01]] | aix4.[[01]].*)
3970 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3971 - echo ' yes '
3972 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3973 - :
3974 - else
3975 - can_build_shared=no
3976 - fi
3977 - ;;
3978 - esac
3979 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3980 - # soname into executable. Probably we can add versioning support to
3981 - # collect2, so additional links can be useful in future.
3982 - if test "$aix_use_runtimelinking" = yes; then
3983 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3984 - # instead of lib<name>.a to let people know that these are not
3985 - # typical AIX shared libraries.
3986 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3987 - else
3988 - # We preserve .a as extension for shared libraries through AIX4.2
3989 - # and later when we are not doing run time linking.
3990 - library_names_spec='${libname}${release}.a $libname.a'
3991 - soname_spec='${libname}${release}${shared_ext}$major'
3992 - fi
3993 - shlibpath_var=LIBPATH
3994 - fi
3995 - ;;
3996 -
3997 -amigaos*)
3998 - library_names_spec='$libname.ixlibrary $libname.a'
3999 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
4000 - 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'
4001 - ;;
4002 -
4003 -beos*)
4004 - library_names_spec='${libname}${shared_ext}'
4005 - dynamic_linker="$host_os ld.so"
4006 - shlibpath_var=LIBRARY_PATH
4007 - ;;
4008 -
4009 -bsdi[[45]]*)
4010 - version_type=linux
4011 - need_version=no
4012 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4013 - soname_spec='${libname}${release}${shared_ext}$major'
4014 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4015 - shlibpath_var=LD_LIBRARY_PATH
4016 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4017 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4018 - # the default ld.so.conf also contains /usr/contrib/lib and
4019 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4020 - # libtool to hard-code these into programs
4021 - ;;
4022 -
4023 -cygwin* | mingw* | pw32*)
4024 - version_type=windows
4025 - shrext_cmds=".dll"
4026 - need_version=no
4027 - need_lib_prefix=no
4028 -
4029 - case $GCC,$host_os in
4030 - yes,cygwin* | yes,mingw* | yes,pw32*)
4031 - library_names_spec='$libname.dll.a'
4032 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
4033 - postinstall_cmds='base_file=`basename \${file}`~
4034 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4035 - dldir=$destdir/`dirname \$dlpath`~
4036 - test -d \$dldir || mkdir -p \$dldir~
4037 - $install_prog $dir/$dlname \$dldir/$dlname~
4038 - chmod a+x \$dldir/$dlname'
4039 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4040 - dlpath=$dir/\$dldll~
4041 - $rm \$dlpath'
4042 - shlibpath_overrides_runpath=yes
4043 -
4044 - case $host_os in
4045 - cygwin*)
4046 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4047 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4048 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4049 - ;;
4050 - mingw*)
4051 - # MinGW DLLs use traditional 'lib' prefix
4052 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4053 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4054 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
4055 - # It is most probably a Windows format PATH printed by
4056 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
4057 - # path with ; separators, and with drive letters. We can handle the
4058 - # drive letters (cygwin fileutils understands them), so leave them,
4059 - # especially as we might pass files found there to a mingw objdump,
4060 - # which wouldn't understand a cygwinified path. Ahh.
4061 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4062 - else
4063 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4064 - fi
4065 - ;;
4066 - pw32*)
4067 - # pw32 DLLs use 'pw' prefix rather than 'lib'
4068 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4069 - ;;
4070 - esac
4071 - ;;
4072 -
4073 - *)
4074 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4075 - ;;
4076 - esac
4077 - dynamic_linker='Win32 ld.exe'
4078 - # FIXME: first we should search . and the directory the executable is in
4079 - shlibpath_var=PATH
4080 - ;;
4081 -
4082 -darwin* | rhapsody*)
4083 - dynamic_linker="$host_os dyld"
4084 - version_type=darwin
4085 - need_lib_prefix=no
4086 - need_version=no
4087 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4088 - soname_spec='${libname}${release}${major}$shared_ext'
4089 - shlibpath_overrides_runpath=yes
4090 - shlibpath_var=DYLD_LIBRARY_PATH
4091 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4092 - m4_if([$1], [],[
4093 - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
4094 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4095 - ;;
4096 -
4097 -dgux*)
4098 - version_type=linux
4099 - need_lib_prefix=no
4100 - need_version=no
4101 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4102 - soname_spec='${libname}${release}${shared_ext}$major'
4103 - shlibpath_var=LD_LIBRARY_PATH
4104 - ;;
4105 -
4106 -freebsd1*)
4107 - dynamic_linker=no
4108 - ;;
4109 -
4110 -freebsd* | dragonfly*)
4111 - # DragonFly does not have aout. When/if they implement a new
4112 - # versioning mechanism, adjust this.
4113 - if test -x /usr/bin/objformat; then
4114 - objformat=`/usr/bin/objformat`
4115 - else
4116 - case $host_os in
4117 - freebsd[[123]]*) objformat=aout ;;
4118 - *) objformat=elf ;;
4119 - esac
4120 - fi
4121 - version_type=freebsd-$objformat
4122 - case $version_type in
4123 - freebsd-elf*)
4124 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4125 - need_version=no
4126 - need_lib_prefix=no
4127 - ;;
4128 - freebsd-*)
4129 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4130 - need_version=yes
4131 - ;;
4132 - esac
4133 - shlibpath_var=LD_LIBRARY_PATH
4134 - case $host_os in
4135 - freebsd2*)
4136 - shlibpath_overrides_runpath=yes
4137 - ;;
4138 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
4139 - shlibpath_overrides_runpath=yes
4140 - hardcode_into_libs=yes
4141 - ;;
4142 - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4143 - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4144 - shlibpath_overrides_runpath=no
4145 - hardcode_into_libs=yes
4146 - ;;
4147 - *) # from 4.6 on, and DragonFly
4148 - shlibpath_overrides_runpath=yes
4149 - hardcode_into_libs=yes
4150 - ;;
4151 - esac
4152 - ;;
4153 -
4154 -gnu*)
4155 - version_type=linux
4156 - need_lib_prefix=no
4157 - need_version=no
4158 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4159 - soname_spec='${libname}${release}${shared_ext}$major'
4160 - shlibpath_var=LD_LIBRARY_PATH
4161 - hardcode_into_libs=yes
4162 - ;;
4163 -
4164 -hpux9* | hpux10* | hpux11*)
4165 - # Give a soname corresponding to the major version so that dld.sl refuses to
4166 - # link against other versions.
4167 - version_type=sunos
4168 - need_lib_prefix=no
4169 - need_version=no
4170 - case $host_cpu in
4171 - ia64*)
4172 - shrext_cmds='.so'
4173 - hardcode_into_libs=yes
4174 - dynamic_linker="$host_os dld.so"
4175 - shlibpath_var=LD_LIBRARY_PATH
4176 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4177 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4178 - soname_spec='${libname}${release}${shared_ext}$major'
4179 - if test "X$HPUX_IA64_MODE" = X32; then
4180 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4181 - else
4182 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4183 - fi
4184 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4185 - ;;
4186 - hppa*64*)
4187 - shrext_cmds='.sl'
4188 - hardcode_into_libs=yes
4189 - dynamic_linker="$host_os dld.sl"
4190 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4191 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4192 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4193 - soname_spec='${libname}${release}${shared_ext}$major'
4194 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4195 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4196 - ;;
4197 - *)
4198 - shrext_cmds='.sl'
4199 - dynamic_linker="$host_os dld.sl"
4200 - shlibpath_var=SHLIB_PATH
4201 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4202 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4203 - soname_spec='${libname}${release}${shared_ext}$major'
4204 - ;;
4205 - esac
4206 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
4207 - postinstall_cmds='chmod 555 $lib'
4208 - ;;
4209 -
4210 -interix[[3-9]]*)
4211 - version_type=linux
4212 - need_lib_prefix=no
4213 - need_version=no
4214 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4215 - soname_spec='${libname}${release}${shared_ext}$major'
4216 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4217 - shlibpath_var=LD_LIBRARY_PATH
4218 - shlibpath_overrides_runpath=no
4219 - hardcode_into_libs=yes
4220 - ;;
4221 -
4222 -irix5* | irix6* | nonstopux*)
4223 - case $host_os in
4224 - nonstopux*) version_type=nonstopux ;;
4225 - *)
4226 - if test "$lt_cv_prog_gnu_ld" = yes; then
4227 - version_type=linux
4228 - else
4229 - version_type=irix
4230 - fi ;;
4231 - esac
4232 - need_lib_prefix=no
4233 - need_version=no
4234 - soname_spec='${libname}${release}${shared_ext}$major'
4235 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4236 - case $host_os in
4237 - irix5* | nonstopux*)
4238 - libsuff= shlibsuff=
4239 - ;;
4240 - *)
4241 - case $LD in # libtool.m4 will add one of these switches to LD
4242 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4243 - libsuff= shlibsuff= libmagic=32-bit;;
4244 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4245 - libsuff=32 shlibsuff=N32 libmagic=N32;;
4246 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4247 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
4248 - *) libsuff= shlibsuff= libmagic=never-match;;
4249 - esac
4250 - ;;
4251 - esac
4252 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4253 - shlibpath_overrides_runpath=no
4254 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4255 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4256 - hardcode_into_libs=yes
4257 - ;;
4258 -
4259 -# No shared lib support for Linux oldld, aout, or coff.
4260 -linux*oldld* | linux*aout* | linux*coff*)
4261 - dynamic_linker=no
4262 - ;;
4263 -
4264 -# This must be Linux ELF.
4265 -linux* | k*bsd*-gnu)
4266 - version_type=linux
4267 - need_lib_prefix=no
4268 - need_version=no
4269 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4270 - soname_spec='${libname}${release}${shared_ext}$major'
4271 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4272 - shlibpath_var=LD_LIBRARY_PATH
4273 - shlibpath_overrides_runpath=no
4274 - # This implies no fast_install, which is unacceptable.
4275 - # Some rework will be needed to allow for fast_install
4276 - # before this can be enabled.
4277 - hardcode_into_libs=yes
4278 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4279 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4280 -
4281 - # Append ld.so.conf contents to the search path
4282 - if test -f /etc/ld.so.conf; then
4283 - 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' ' '`
4284 - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
4285 - fi
4286 -
4287 - # We used to test for /lib/ld.so.1 and disable shared libraries on
4288 - # powerpc, because MkLinux only supported shared libraries with the
4289 - # GNU dynamic linker. Since this was broken with cross compilers,
4290 - # most powerpc-linux boxes support dynamic linking these days and
4291 - # people can always --disable-shared, the test was removed, and we
4292 - # assume the GNU/Linux dynamic linker is in use.
4293 - dynamic_linker='GNU/Linux ld.so'
4294 - ;;
4295 -
4296 -netbsd*)
4297 - version_type=sunos
4298 - need_lib_prefix=no
4299 - need_version=no
4300 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4301 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4302 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4303 - dynamic_linker='NetBSD (a.out) ld.so'
4304 - else
4305 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4306 - soname_spec='${libname}${release}${shared_ext}$major'
4307 - dynamic_linker='NetBSD ld.elf_so'
4308 - fi
4309 - shlibpath_var=LD_LIBRARY_PATH
4310 - shlibpath_overrides_runpath=yes
4311 - hardcode_into_libs=yes
4312 - ;;
4313 -
4314 -newsos6)
4315 - version_type=linux
4316 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4317 - shlibpath_var=LD_LIBRARY_PATH
4318 - shlibpath_overrides_runpath=yes
4319 - ;;
4320 -
4321 -nto-qnx*)
4322 - version_type=linux
4323 - need_lib_prefix=no
4324 - need_version=no
4325 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4326 - soname_spec='${libname}${release}${shared_ext}$major'
4327 - shlibpath_var=LD_LIBRARY_PATH
4328 - shlibpath_overrides_runpath=yes
4329 - ;;
4330 -
4331 -openbsd*)
4332 - version_type=sunos
4333 - sys_lib_dlsearch_path_spec="/usr/lib"
4334 - need_lib_prefix=no
4335 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4336 - case $host_os in
4337 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4338 - *) need_version=no ;;
4339 - esac
4340 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4341 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4342 - shlibpath_var=LD_LIBRARY_PATH
4343 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4344 - case $host_os in
4345 - openbsd2.[[89]] | openbsd2.[[89]].*)
4346 - shlibpath_overrides_runpath=no
4347 - ;;
4348 - *)
4349 - shlibpath_overrides_runpath=yes
4350 - ;;
4351 - esac
4352 - else
4353 - shlibpath_overrides_runpath=yes
4354 - fi
4355 - ;;
4356 -
4357 -os2*)
4358 - libname_spec='$name'
4359 - shrext_cmds=".dll"
4360 - need_lib_prefix=no
4361 - library_names_spec='$libname${shared_ext} $libname.a'
4362 - dynamic_linker='OS/2 ld.exe'
4363 - shlibpath_var=LIBPATH
4364 - ;;
4365 -
4366 -osf3* | osf4* | osf5*)
4367 - version_type=osf
4368 - need_lib_prefix=no
4369 - need_version=no
4370 - soname_spec='${libname}${release}${shared_ext}$major'
4371 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4372 - shlibpath_var=LD_LIBRARY_PATH
4373 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4374 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4375 - ;;
4376 -
4377 -rdos*)
4378 - dynamic_linker=no
4379 - ;;
4380 -
4381 -solaris*)
4382 - version_type=linux
4383 - need_lib_prefix=no
4384 - need_version=no
4385 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4386 - soname_spec='${libname}${release}${shared_ext}$major'
4387 - shlibpath_var=LD_LIBRARY_PATH
4388 - shlibpath_overrides_runpath=yes
4389 - hardcode_into_libs=yes
4390 - # ldd complains unless libraries are executable
4391 - postinstall_cmds='chmod +x $lib'
4392 - ;;
4393 -
4394 -sunos4*)
4395 - version_type=sunos
4396 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4397 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4398 - shlibpath_var=LD_LIBRARY_PATH
4399 - shlibpath_overrides_runpath=yes
4400 - if test "$with_gnu_ld" = yes; then
4401 - need_lib_prefix=no
4402 - fi
4403 - need_version=yes
4404 - ;;
4405 -
4406 -sysv4 | sysv4.3*)
4407 - version_type=linux
4408 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4409 - soname_spec='${libname}${release}${shared_ext}$major'
4410 - shlibpath_var=LD_LIBRARY_PATH
4411 - case $host_vendor in
4412 - sni)
4413 - shlibpath_overrides_runpath=no
4414 - need_lib_prefix=no
4415 - export_dynamic_flag_spec='${wl}-Blargedynsym'
4416 - runpath_var=LD_RUN_PATH
4417 - ;;
4418 - siemens)
4419 - need_lib_prefix=no
4420 - ;;
4421 - motorola)
4422 - need_lib_prefix=no
4423 - need_version=no
4424 - shlibpath_overrides_runpath=no
4425 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4426 - ;;
4427 - esac
4428 - ;;
4429 -
4430 -sysv4*MP*)
4431 - if test -d /usr/nec ;then
4432 - version_type=linux
4433 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4434 - soname_spec='$libname${shared_ext}.$major'
4435 - shlibpath_var=LD_LIBRARY_PATH
4436 - fi
4437 - ;;
4438 -
4439 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4440 - version_type=freebsd-elf
4441 - need_lib_prefix=no
4442 - need_version=no
4443 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4444 - soname_spec='${libname}${release}${shared_ext}$major'
4445 - shlibpath_var=LD_LIBRARY_PATH
4446 - hardcode_into_libs=yes
4447 - if test "$with_gnu_ld" = yes; then
4448 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4449 - shlibpath_overrides_runpath=no
4450 - else
4451 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4452 - shlibpath_overrides_runpath=yes
4453 - case $host_os in
4454 - sco3.2v5*)
4455 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4456 - ;;
4457 - esac
4458 - fi
4459 - sys_lib_dlsearch_path_spec='/usr/lib'
4460 - ;;
4461 -
4462 -uts4*)
4463 - version_type=linux
4464 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4465 - soname_spec='${libname}${release}${shared_ext}$major'
4466 - shlibpath_var=LD_LIBRARY_PATH
4467 - ;;
4468 -
4469 -*)
4470 - dynamic_linker=no
4471 - ;;
4472 -esac
4473 -AC_MSG_RESULT([$dynamic_linker])
4474 -test "$dynamic_linker" = no && can_build_shared=no
4475 -
4476 -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
4477 -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
4478 -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
4479 -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
4480 -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
4481 -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
4482 -
4483 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4484 -if test "$GCC" = yes; then
4485 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4486 -fi
4487 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
4488 -
4489 -
4490 -# _LT_AC_TAGCONFIG
4491 -# ----------------
4492 -AC_DEFUN([_LT_AC_TAGCONFIG],
4493 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
4494 -AC_ARG_WITH([tags],
4495 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
4496 - [include additional configurations @<:@automatic@:>@])],
4497 - [tagnames="$withval"])
4498 -
4499 -if test -f "$ltmain" && test -n "$tagnames"; then
4500 - if test ! -f "${ofile}"; then
4501 - AC_MSG_WARN([output file `$ofile' does not exist])
4502 - fi
4503 -
4504 - if test -z "$LTCC"; then
4505 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
4506 - if test -z "$LTCC"; then
4507 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
4508 - else
4509 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
4510 - fi
4511 - fi
4512 - if test -z "$LTCFLAGS"; then
4513 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
4514 - fi
4515 -
4516 - # Extract list of available tagged configurations in $ofile.
4517 - # Note that this assumes the entire list is on one line.
4518 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
4519 -
4520 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4521 - for tagname in $tagnames; do
4522 - IFS="$lt_save_ifs"
4523 - # Check whether tagname contains only valid characters
4524 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
4525 - "") ;;
4526 - *) AC_MSG_ERROR([invalid tag name: $tagname])
4527 - ;;
4528 - esac
4529 -
4530 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
4531 - then
4532 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
4533 - fi
4534 -
4535 - # Update the list of available tags.
4536 - if test -n "$tagname"; then
4537 - echo appending configuration tag \"$tagname\" to $ofile
4538 -
4539 - case $tagname in
4540 - CXX)
4541 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4542 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4543 - (test "X$CXX" != "Xg++"))) ; then
4544 - AC_LIBTOOL_LANG_CXX_CONFIG
4545 - else
4546 - tagname=""
4547 - fi
4548 - ;;
4549 -
4550 - F77)
4551 - if test -n "$F77" && test "X$F77" != "Xno"; then
4552 - AC_LIBTOOL_LANG_F77_CONFIG
4553 - else
4554 - tagname=""
4555 - fi
4556 - ;;
4557 -
4558 - GCJ)
4559 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
4560 - AC_LIBTOOL_LANG_GCJ_CONFIG
4561 - else
4562 - tagname=""
4563 - fi
4564 - ;;
4565 -
4566 - RC)
4567 - AC_LIBTOOL_LANG_RC_CONFIG
4568 - ;;
4569 -
4570 - *)
4571 - AC_MSG_ERROR([Unsupported tag name: $tagname])
4572 - ;;
4573 - esac
4574 -
4575 - # Append the new tag name to the list of available tags.
4576 - if test -n "$tagname" ; then
4577 - available_tags="$available_tags $tagname"
4578 - fi
4579 - fi
4580 - done
4581 - IFS="$lt_save_ifs"
4582 -
4583 - # Now substitute the updated list of available tags.
4584 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
4585 - mv "${ofile}T" "$ofile"
4586 - chmod +x "$ofile"
4587 - else
4588 - rm -f "${ofile}T"
4589 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
4590 - fi
4591 -fi
4592 -])# _LT_AC_TAGCONFIG
4593 -
4594 -
4595 -# AC_LIBTOOL_DLOPEN
4596 -# -----------------
4597 -# enable checks for dlopen support
4598 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
4599 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
4600 -])# AC_LIBTOOL_DLOPEN
4601 -
4602 -
4603 -# AC_LIBTOOL_WIN32_DLL
4604 -# --------------------
4605 -# declare package support for building win32 DLLs
4606 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
4607 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
4608 -])# AC_LIBTOOL_WIN32_DLL
4609 -
4610 -
4611 -# AC_ENABLE_SHARED([DEFAULT])
4612 -# ---------------------------
4613 -# implement the --enable-shared flag
4614 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4615 -AC_DEFUN([AC_ENABLE_SHARED],
4616 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
4617 -AC_ARG_ENABLE([shared],
4618 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
4619 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
4620 - [p=${PACKAGE-default}
4621 - case $enableval in
4622 - yes) enable_shared=yes ;;
4623 - no) enable_shared=no ;;
4624 - *)
4625 - enable_shared=no
4626 - # Look at the argument we got. We use all the common list separators.
4627 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4628 - for pkg in $enableval; do
4629 - IFS="$lt_save_ifs"
4630 - if test "X$pkg" = "X$p"; then
4631 - enable_shared=yes
4632 - fi
4633 - done
4634 - IFS="$lt_save_ifs"
4635 - ;;
4636 - esac],
4637 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
4638 -])# AC_ENABLE_SHARED
4639 -
4640 -
4641 -# AC_DISABLE_SHARED
4642 -# -----------------
4643 -# set the default shared flag to --disable-shared
4644 -AC_DEFUN([AC_DISABLE_SHARED],
4645 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4646 -AC_ENABLE_SHARED(no)
4647 -])# AC_DISABLE_SHARED
4648 -
4649 -
4650 -# AC_ENABLE_STATIC([DEFAULT])
4651 -# ---------------------------
4652 -# implement the --enable-static flag
4653 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4654 -AC_DEFUN([AC_ENABLE_STATIC],
4655 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
4656 -AC_ARG_ENABLE([static],
4657 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
4658 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
4659 - [p=${PACKAGE-default}
4660 - case $enableval in
4661 - yes) enable_static=yes ;;
4662 - no) enable_static=no ;;
4663 - *)
4664 - enable_static=no
4665 - # Look at the argument we got. We use all the common list separators.
4666 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4667 - for pkg in $enableval; do
4668 - IFS="$lt_save_ifs"
4669 - if test "X$pkg" = "X$p"; then
4670 - enable_static=yes
4671 - fi
4672 - done
4673 - IFS="$lt_save_ifs"
4674 - ;;
4675 - esac],
4676 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
4677 -])# AC_ENABLE_STATIC
4678 -
4679 -
4680 -# AC_DISABLE_STATIC
4681 -# -----------------
4682 -# set the default static flag to --disable-static
4683 -AC_DEFUN([AC_DISABLE_STATIC],
4684 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4685 -AC_ENABLE_STATIC(no)
4686 -])# AC_DISABLE_STATIC
4687 -
4688 -
4689 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
4690 -# ---------------------------------
4691 -# implement the --enable-fast-install flag
4692 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4693 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
4694 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
4695 -AC_ARG_ENABLE([fast-install],
4696 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
4697 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
4698 - [p=${PACKAGE-default}
4699 - case $enableval in
4700 - yes) enable_fast_install=yes ;;
4701 - no) enable_fast_install=no ;;
4702 - *)
4703 - enable_fast_install=no
4704 - # Look at the argument we got. We use all the common list separators.
4705 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4706 - for pkg in $enableval; do
4707 - IFS="$lt_save_ifs"
4708 - if test "X$pkg" = "X$p"; then
4709 - enable_fast_install=yes
4710 - fi
4711 - done
4712 - IFS="$lt_save_ifs"
4713 - ;;
4714 - esac],
4715 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
4716 -])# AC_ENABLE_FAST_INSTALL
4717 -
4718 -
4719 -# AC_DISABLE_FAST_INSTALL
4720 -# -----------------------
4721 -# set the default to --disable-fast-install
4722 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
4723 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4724 -AC_ENABLE_FAST_INSTALL(no)
4725 -])# AC_DISABLE_FAST_INSTALL
4726 -
4727 -
4728 -# AC_LIBTOOL_PICMODE([MODE])
4729 -# --------------------------
4730 -# implement the --with-pic flag
4731 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
4732 -AC_DEFUN([AC_LIBTOOL_PICMODE],
4733 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4734 -pic_mode=ifelse($#,1,$1,default)
4735 -])# AC_LIBTOOL_PICMODE
4736 -
4737 -
4738 -# AC_PROG_EGREP
4739 -# -------------
4740 -# This is predefined starting with Autoconf 2.54, so this conditional
4741 -# definition can be removed once we require Autoconf 2.54 or later.
4742 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
4743 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
4744 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4745 - then ac_cv_prog_egrep='grep -E'
4746 - else ac_cv_prog_egrep='egrep'
4747 - fi])
4748 - EGREP=$ac_cv_prog_egrep
4749 - AC_SUBST([EGREP])
4750 -])])
4751 -
4752 -
4753 -# AC_PATH_TOOL_PREFIX
4754 -# -------------------
4755 -# find a file program which can recognize shared library
4756 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
4757 -[AC_REQUIRE([AC_PROG_EGREP])dnl
4758 -AC_MSG_CHECKING([for $1])
4759 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4760 -[case $MAGIC_CMD in
4761 -[[\\/*] | ?:[\\/]*])
4762 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4763 - ;;
4764 -*)
4765 - lt_save_MAGIC_CMD="$MAGIC_CMD"
4766 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4767 -dnl $ac_dummy forces splitting on constant user-supplied paths.
4768 -dnl POSIX.2 word splitting is done only on the output of word expansions,
4769 -dnl not every word. This closes a longstanding sh security hole.
4770 - ac_dummy="ifelse([$2], , $PATH, [$2])"
4771 - for ac_dir in $ac_dummy; do
4772 - IFS="$lt_save_ifs"
4773 - test -z "$ac_dir" && ac_dir=.
4774 - if test -f $ac_dir/$1; then
4775 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4776 - if test -n "$file_magic_test_file"; then
4777 - case $deplibs_check_method in
4778 - "file_magic "*)
4779 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
4780 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4781 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4782 - $EGREP "$file_magic_regex" > /dev/null; then
4783 - :
4784 - else
4785 - cat <<EOF 1>&2
4786 -
4787 -*** Warning: the command libtool uses to detect shared libraries,
4788 -*** $file_magic_cmd, produces output that libtool cannot recognize.
4789 -*** The result is that libtool may fail to recognize shared libraries
4790 -*** as such. This will affect the creation of libtool libraries that
4791 -*** depend on shared libraries, but programs linked with such libtool
4792 -*** libraries will work regardless of this problem. Nevertheless, you
4793 -*** may want to report the problem to your system manager and/or to
4794 -*** bug-libtool@gnu.org
4795 -
4796 -EOF
4797 - fi ;;
4798 - esac
4799 - fi
4800 - break
4801 - fi
4802 - done
4803 - IFS="$lt_save_ifs"
4804 - MAGIC_CMD="$lt_save_MAGIC_CMD"
4805 - ;;
4806 -esac])
4807 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4808 -if test -n "$MAGIC_CMD"; then
4809 - AC_MSG_RESULT($MAGIC_CMD)
4810 -else
4811 - AC_MSG_RESULT(no)
4812 -fi
4813 -])# AC_PATH_TOOL_PREFIX
4814 -
4815 -
4816 -# AC_PATH_MAGIC
4817 -# -------------
4818 -# find a file program which can recognize a shared library
4819 -AC_DEFUN([AC_PATH_MAGIC],
4820 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4821 -if test -z "$lt_cv_path_MAGIC_CMD"; then
4822 - if test -n "$ac_tool_prefix"; then
4823 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4824 - else
4825 - MAGIC_CMD=:
4826 - fi
4827 -fi
4828 -])# AC_PATH_MAGIC
4829 -
4830 -
4831 -# AC_PROG_LD
4832 -# ----------
4833 -# find the pathname to the GNU or non-GNU linker
4834 -AC_DEFUN([AC_PROG_LD],
4835 -[AC_ARG_WITH([gnu-ld],
4836 - [AC_HELP_STRING([--with-gnu-ld],
4837 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
4838 - [test "$withval" = no || with_gnu_ld=yes],
4839 - [with_gnu_ld=no])
4840 -AC_REQUIRE([LT_AC_PROG_SED])dnl
4841 -AC_REQUIRE([AC_PROG_CC])dnl
4842 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
4843 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4844 -ac_prog=ld
4845 -if test "$GCC" = yes; then
4846 - # Check if gcc -print-prog-name=ld gives a path.
4847 - AC_MSG_CHECKING([for ld used by $CC])
4848 - case $host in
4849 - *-*-mingw*)
4850 - # gcc leaves a trailing carriage return which upsets mingw
4851 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4852 - *)
4853 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4854 - esac
4855 - case $ac_prog in
4856 - # Accept absolute paths.
4857 - [[\\/]]* | ?:[[\\/]]*)
4858 - re_direlt='/[[^/]][[^/]]*/\.\./'
4859 - # Canonicalize the pathname of ld
4860 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4861 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4862 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4863 - done
4864 - test -z "$LD" && LD="$ac_prog"
4865 - ;;
4866 - "")
4867 - # If it fails, then pretend we aren't using GCC.
4868 - ac_prog=ld
4869 - ;;
4870 - *)
4871 - # If it is relative, then search for the first ld in PATH.
4872 - with_gnu_ld=unknown
4873 - ;;
4874 - esac
4875 -elif test "$with_gnu_ld" = yes; then
4876 - AC_MSG_CHECKING([for GNU ld])
4877 -else
4878 - AC_MSG_CHECKING([for non-GNU ld])
4879 -fi
4880 -AC_CACHE_VAL(lt_cv_path_LD,
4881 -[if test -z "$LD"; then
4882 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4883 - for ac_dir in $PATH; do
4884 - IFS="$lt_save_ifs"
4885 - test -z "$ac_dir" && ac_dir=.
4886 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4887 - lt_cv_path_LD="$ac_dir/$ac_prog"
4888 - # Check to see if the program is GNU ld. I'd rather use --version,
4889 - # but apparently some variants of GNU ld only accept -v.
4890 - # Break only if it was the GNU/non-GNU ld that we prefer.
4891 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4892 - *GNU* | *'with BFD'*)
4893 - test "$with_gnu_ld" != no && break
4894 - ;;
4895 - *)
4896 - test "$with_gnu_ld" != yes && break
4897 - ;;
4898 - esac
4899 - fi
4900 - done
4901 - IFS="$lt_save_ifs"
4902 -else
4903 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
4904 -fi])
4905 -LD="$lt_cv_path_LD"
4906 -if test -n "$LD"; then
4907 - AC_MSG_RESULT($LD)
4908 -else
4909 - AC_MSG_RESULT(no)
4910 -fi
4911 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4912 -AC_PROG_LD_GNU
4913 -])# AC_PROG_LD
4914 -
4915 -
4916 -# AC_PROG_LD_GNU
4917 -# --------------
4918 -AC_DEFUN([AC_PROG_LD_GNU],
4919 -[AC_REQUIRE([AC_PROG_EGREP])dnl
4920 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4921 -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
4922 -case `$LD -v 2>&1 </dev/null` in
4923 -*GNU* | *'with BFD'*)
4924 - lt_cv_prog_gnu_ld=yes
4925 - ;;
4926 -*)
4927 - lt_cv_prog_gnu_ld=no
4928 - ;;
4929 -esac])
4930 -with_gnu_ld=$lt_cv_prog_gnu_ld
4931 -])# AC_PROG_LD_GNU
4932 -
4933 -
4934 -# AC_PROG_LD_RELOAD_FLAG
4935 -# ----------------------
4936 -# find reload flag for linker
4937 -# -- PORTME Some linkers may need a different reload flag.
4938 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
4939 -[AC_CACHE_CHECK([for $LD option to reload object files],
4940 - lt_cv_ld_reload_flag,
4941 - [lt_cv_ld_reload_flag='-r'])
4942 -reload_flag=$lt_cv_ld_reload_flag
4943 -case $reload_flag in
4944 -"" | " "*) ;;
4945 -*) reload_flag=" $reload_flag" ;;
4946 -esac
4947 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
4948 -case $host_os in
4949 - darwin*)
4950 - if test "$GCC" = yes; then
4951 - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4952 - else
4953 - reload_cmds='$LD$reload_flag -o $output$reload_objs'
4954 - fi
4955 - ;;
4956 -esac
4957 -])# AC_PROG_LD_RELOAD_FLAG
4958 -
4959 -
4960 -# AC_DEPLIBS_CHECK_METHOD
4961 -# -----------------------
4962 -# how to check for library dependencies
4963 -# -- PORTME fill in with the dynamic library characteristics
4964 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4965 -[AC_CACHE_CHECK([how to recognize dependent libraries],
4966 -lt_cv_deplibs_check_method,
4967 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
4968 -lt_cv_file_magic_test_file=
4969 -lt_cv_deplibs_check_method='unknown'
4970 -# Need to set the preceding variable on all platforms that support
4971 -# interlibrary dependencies.
4972 -# 'none' -- dependencies not supported.
4973 -# `unknown' -- same as none, but documents that we really don't know.
4974 -# 'pass_all' -- all dependencies passed with no checks.
4975 -# 'test_compile' -- check by making test program.
4976 -# 'file_magic [[regex]]' -- check by looking for files in library path
4977 -# which responds to the $file_magic_cmd with a given extended regex.
4978 -# If you have `file' or equivalent on your system and you're not sure
4979 -# whether `pass_all' will *always* work, you probably want this one.
4980 -
4981 -case $host_os in
4982 -aix[[4-9]]*)
4983 - lt_cv_deplibs_check_method=pass_all
4984 - ;;
4985 -
4986 -beos*)
4987 - lt_cv_deplibs_check_method=pass_all
4988 - ;;
4989 -
4990 -bsdi[[45]]*)
4991 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4992 - lt_cv_file_magic_cmd='/usr/bin/file -L'
4993 - lt_cv_file_magic_test_file=/shlib/libc.so
4994 - ;;
4995 -
4996 -cygwin*)
4997 - # func_win32_libid is a shell function defined in ltmain.sh
4998 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4999 - lt_cv_file_magic_cmd='func_win32_libid'
5000 - ;;
5001 -
5002 -mingw* | pw32*)
5003 - # Base MSYS/MinGW do not provide the 'file' command needed by
5004 - # func_win32_libid shell function, so use a weaker test based on 'objdump',
5005 - # unless we find 'file', for example because we are cross-compiling.
5006 - if ( file / ) >/dev/null 2>&1; then
5007 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5008 - lt_cv_file_magic_cmd='func_win32_libid'
5009 - else
5010 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5011 - lt_cv_file_magic_cmd='$OBJDUMP -f'
5012 - fi
5013 - ;;
5014 -
5015 -darwin* | rhapsody*)
5016 - lt_cv_deplibs_check_method=pass_all
5017 - ;;
5018 -
5019 -freebsd* | dragonfly*)
5020 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5021 - case $host_cpu in
5022 - i*86 )
5023 - # Not sure whether the presence of OpenBSD here was a mistake.
5024 - # Let's accept both of them until this is cleared up.
5025 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
5026 - lt_cv_file_magic_cmd=/usr/bin/file
5027 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5028 - ;;
5029 - esac
5030 - else
5031 - lt_cv_deplibs_check_method=pass_all
5032 - fi
5033 - ;;
5034 -
5035 -gnu*)
5036 - lt_cv_deplibs_check_method=pass_all
5037 - ;;
5038 -
5039 -hpux10.20* | hpux11*)
5040 - lt_cv_file_magic_cmd=/usr/bin/file
5041 - case $host_cpu in
5042 - ia64*)
5043 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
5044 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5045 - ;;
5046 - hppa*64*)
5047 - [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]']
5048 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5049 - ;;
5050 - *)
5051 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
5052 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
5053 - ;;
5054 - esac
5055 - ;;
5056 -
5057 -interix[[3-9]]*)
5058 - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5059 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
5060 - ;;
5061 -
5062 -irix5* | irix6* | nonstopux*)
5063 - case $LD in
5064 - *-32|*"-32 ") libmagic=32-bit;;
5065 - *-n32|*"-n32 ") libmagic=N32;;
5066 - *-64|*"-64 ") libmagic=64-bit;;
5067 - *) libmagic=never-match;;
5068 - esac
5069 - lt_cv_deplibs_check_method=pass_all
5070 - ;;
5071 -
5072 -# This must be Linux ELF.
5073 -linux* | k*bsd*-gnu)
5074 - lt_cv_deplibs_check_method=pass_all
5075 - ;;
5076 -
5077 -netbsd*)
5078 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5079 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5080 - else
5081 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
5082 - fi
5083 - ;;
5084 -
5085 -newos6*)
5086 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
5087 - lt_cv_file_magic_cmd=/usr/bin/file
5088 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
5089 - ;;
5090 -
5091 -nto-qnx*)
5092 - lt_cv_deplibs_check_method=unknown
5093 - ;;
5094 -
5095 -openbsd*)
5096 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5097 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
5098 - else
5099 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5100 - fi
5101 - ;;
5102 -
5103 -osf3* | osf4* | osf5*)
5104 - lt_cv_deplibs_check_method=pass_all
5105 - ;;
5106 -
5107 -rdos*)
5108 - lt_cv_deplibs_check_method=pass_all
5109 - ;;
5110 -
5111 -solaris*)
5112 - lt_cv_deplibs_check_method=pass_all
5113 - ;;
5114 -
5115 -sysv4 | sysv4.3*)
5116 - case $host_vendor in
5117 - motorola)
5118 - 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]]'
5119 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5120 - ;;
5121 - ncr)
5122 - lt_cv_deplibs_check_method=pass_all
5123 - ;;
5124 - sequent)
5125 - lt_cv_file_magic_cmd='/bin/file'
5126 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
5127 - ;;
5128 - sni)
5129 - lt_cv_file_magic_cmd='/bin/file'
5130 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
5131 - lt_cv_file_magic_test_file=/lib/libc.so
5132 - ;;
5133 - siemens)
5134 - lt_cv_deplibs_check_method=pass_all
5135 - ;;
5136 - pc)
5137 - lt_cv_deplibs_check_method=pass_all
5138 - ;;
5139 - esac
5140 - ;;
5141 -
5142 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5143 - lt_cv_deplibs_check_method=pass_all
5144 - ;;
5145 -esac
5146 -])
5147 -file_magic_cmd=$lt_cv_file_magic_cmd
5148 -deplibs_check_method=$lt_cv_deplibs_check_method
5149 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
5150 -])# AC_DEPLIBS_CHECK_METHOD
5151 -
5152 -
5153 -# AC_PROG_NM
5154 -# ----------
5155 -# find the pathname to a BSD-compatible name lister
5156 -AC_DEFUN([AC_PROG_NM],
5157 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
5158 -[if test -n "$NM"; then
5159 - # Let the user override the test.
5160 - lt_cv_path_NM="$NM"
5161 -else
5162 - lt_nm_to_check="${ac_tool_prefix}nm"
5163 - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5164 - lt_nm_to_check="$lt_nm_to_check nm"
5165 - fi
5166 - for lt_tmp_nm in $lt_nm_to_check; do
5167 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5168 - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5169 - IFS="$lt_save_ifs"
5170 - test -z "$ac_dir" && ac_dir=.
5171 - tmp_nm="$ac_dir/$lt_tmp_nm"
5172 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5173 - # Check to see if the nm accepts a BSD-compat flag.
5174 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5175 - # nm: unknown option "B" ignored
5176 - # Tru64's nm complains that /dev/null is an invalid object file
5177 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5178 - */dev/null* | *'Invalid file or object type'*)
5179 - lt_cv_path_NM="$tmp_nm -B"
5180 - break
5181 - ;;
5182 - *)
5183 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5184 - */dev/null*)
5185 - lt_cv_path_NM="$tmp_nm -p"
5186 - break
5187 - ;;
5188 - *)
5189 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5190 - continue # so that we can try to find one that supports BSD flags
5191 - ;;
5192 - esac
5193 - ;;
5194 - esac
5195 - fi
5196 - done
5197 - IFS="$lt_save_ifs"
5198 - done
5199 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5200 -fi])
5201 -NM="$lt_cv_path_NM"
5202 -])# AC_PROG_NM
5203 -
5204 -
5205 -# AC_CHECK_LIBM
5206 -# -------------
5207 -# check for math library
5208 -AC_DEFUN([AC_CHECK_LIBM],
5209 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5210 -LIBM=
5211 -case $host in
5212 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
5213 - # These system don't have libm, or don't need it
5214 - ;;
5215 -*-ncr-sysv4.3*)
5216 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
5217 - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
5218 - ;;
5219 -*)
5220 - AC_CHECK_LIB(m, cos, LIBM="-lm")
5221 - ;;
5222 -esac
5223 -])# AC_CHECK_LIBM
5224 -
5225 -
5226 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
5227 -# -----------------------------------
5228 -# sets LIBLTDL to the link flags for the libltdl convenience library and
5229 -# LTDLINCL to the include flags for the libltdl header and adds
5230 -# --enable-ltdl-convenience to the configure arguments. Note that
5231 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
5232 -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
5233 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
5234 -# (note the single quotes!). If your package is not flat and you're not
5235 -# using automake, define top_builddir and top_srcdir appropriately in
5236 -# the Makefiles.
5237 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
5238 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5239 - case $enable_ltdl_convenience in
5240 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
5241 - "") enable_ltdl_convenience=yes
5242 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5243 - esac
5244 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
5245 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
5246 - # For backwards non-gettext consistent compatibility...
5247 - INCLTDL="$LTDLINCL"
5248 -])# AC_LIBLTDL_CONVENIENCE
5249 -
5250 -
5251 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
5252 -# -----------------------------------
5253 -# sets LIBLTDL to the link flags for the libltdl installable library and
5254 -# LTDLINCL to the include flags for the libltdl header and adds
5255 -# --enable-ltdl-install to the configure arguments. Note that
5256 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
5257 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
5258 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
5259 -# '${top_srcdir}/' (note the single quotes!). If your package is not
5260 -# flat and you're not using automake, define top_builddir and top_srcdir
5261 -# appropriately in the Makefiles.
5262 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
5263 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
5264 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5265 - AC_CHECK_LIB(ltdl, lt_dlinit,
5266 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
5267 - [if test x"$enable_ltdl_install" = xno; then
5268 - AC_MSG_WARN([libltdl not installed, but installation disabled])
5269 - else
5270 - enable_ltdl_install=yes
5271 - fi
5272 - ])
5273 - if test x"$enable_ltdl_install" = x"yes"; then
5274 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
5275 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
5276 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
5277 - else
5278 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5279 - LIBLTDL="-lltdl"
5280 - LTDLINCL=
5281 - fi
5282 - # For backwards non-gettext consistent compatibility...
5283 - INCLTDL="$LTDLINCL"
5284 -])# AC_LIBLTDL_INSTALLABLE
5285 -
5286 -
5287 -# AC_LIBTOOL_CXX
5288 -# --------------
5289 -# enable support for C++ libraries
5290 -AC_DEFUN([AC_LIBTOOL_CXX],
5291 -[AC_REQUIRE([_LT_AC_LANG_CXX])
5292 -])# AC_LIBTOOL_CXX
5293 -
5294 -
5295 -# _LT_AC_LANG_CXX
5296 -# ---------------
5297 -AC_DEFUN([_LT_AC_LANG_CXX],
5298 -[AC_REQUIRE([AC_PROG_CXX])
5299 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
5300 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
5301 -])# _LT_AC_LANG_CXX
5302 -
5303 -# _LT_AC_PROG_CXXCPP
5304 -# ------------------
5305 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
5306 -[
5307 -AC_REQUIRE([AC_PROG_CXX])
5308 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5309 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5310 - (test "X$CXX" != "Xg++"))) ; then
5311 - AC_PROG_CXXCPP
5312 -fi
5313 -])# _LT_AC_PROG_CXXCPP
5314 -
5315 -# AC_LIBTOOL_F77
5316 -# --------------
5317 -# enable support for Fortran 77 libraries
5318 -AC_DEFUN([AC_LIBTOOL_F77],
5319 -[AC_REQUIRE([_LT_AC_LANG_F77])
5320 -])# AC_LIBTOOL_F77
5321 -
5322 -
5323 -# _LT_AC_LANG_F77
5324 -# ---------------
5325 -AC_DEFUN([_LT_AC_LANG_F77],
5326 -[AC_REQUIRE([AC_PROG_F77])
5327 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
5328 -])# _LT_AC_LANG_F77
5329 -
5330 -
5331 -# AC_LIBTOOL_GCJ
5332 -# --------------
5333 -# enable support for GCJ libraries
5334 -AC_DEFUN([AC_LIBTOOL_GCJ],
5335 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
5336 -])# AC_LIBTOOL_GCJ
5337 -
5338 -
5339 -# _LT_AC_LANG_GCJ
5340 -# ---------------
5341 -AC_DEFUN([_LT_AC_LANG_GCJ],
5342 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
5343 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
5344 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
5345 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
5346 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
5347 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
5348 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
5349 -])# _LT_AC_LANG_GCJ
5350 -
5351 -
5352 -# AC_LIBTOOL_RC
5353 -# -------------
5354 -# enable support for Windows resource files
5355 -AC_DEFUN([AC_LIBTOOL_RC],
5356 -[AC_REQUIRE([LT_AC_PROG_RC])
5357 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
5358 -])# AC_LIBTOOL_RC
5359 -
5360 -
5361 -# AC_LIBTOOL_LANG_C_CONFIG
5362 -# ------------------------
5363 -# Ensure that the configuration vars for the C compiler are
5364 -# suitably defined. Those variables are subsequently used by
5365 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5366 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
5367 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
5368 -[lt_save_CC="$CC"
5369 -AC_LANG_PUSH(C)
5370 -
5371 -# Source file extension for C test sources.
5372 -ac_ext=c
5373 -
5374 -# Object file extension for compiled C test sources.
5375 -objext=o
5376 -_LT_AC_TAGVAR(objext, $1)=$objext
5377 -
5378 -# Code to be used in simple compile tests
5379 -lt_simple_compile_test_code="int some_variable = 0;"
5380 -
5381 -# Code to be used in simple link tests
5382 -lt_simple_link_test_code='int main(){return(0);}'
5383 -
5384 -_LT_AC_SYS_COMPILER
5385 -
5386 -# save warnings/boilerplate of simple test code
5387 -_LT_COMPILER_BOILERPLATE
5388 -_LT_LINKER_BOILERPLATE
5389 -
5390 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5391 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
5392 -AC_LIBTOOL_PROG_CC_C_O($1)
5393 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5394 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
5395 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5396 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5397 -AC_LIBTOOL_SYS_LIB_STRIP
5398 -AC_LIBTOOL_DLOPEN_SELF
5399 -
5400 -# Report which library types will actually be built
5401 -AC_MSG_CHECKING([if libtool supports shared libraries])
5402 -AC_MSG_RESULT([$can_build_shared])
5403 -
5404 -AC_MSG_CHECKING([whether to build shared libraries])
5405 -test "$can_build_shared" = "no" && enable_shared=no
5406 -
5407 -# On AIX, shared libraries and static libraries use the same namespace, and
5408 -# are all built from PIC.
5409 -case $host_os in
5410 -aix3*)
5411 - test "$enable_shared" = yes && enable_static=no
5412 - if test -n "$RANLIB"; then
5413 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
5414 - postinstall_cmds='$RANLIB $lib'
5415 - fi
5416 - ;;
5417 -
5418 -aix[[4-9]]*)
5419 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5420 - test "$enable_shared" = yes && enable_static=no
5421 - fi
5422 - ;;
5423 -esac
5424 -AC_MSG_RESULT([$enable_shared])
5425 -
5426 -AC_MSG_CHECKING([whether to build static libraries])
5427 -# Make sure either enable_shared or enable_static is yes.
5428 -test "$enable_shared" = yes || enable_static=yes
5429 -AC_MSG_RESULT([$enable_static])
5430 -
5431 -AC_LIBTOOL_CONFIG($1)
5432 -
5433 -AC_LANG_POP
5434 -CC="$lt_save_CC"
5435 -])# AC_LIBTOOL_LANG_C_CONFIG
5436 -
5437 -
5438 -# AC_LIBTOOL_LANG_CXX_CONFIG
5439 -# --------------------------
5440 -# Ensure that the configuration vars for the C compiler are
5441 -# suitably defined. Those variables are subsequently used by
5442 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5443 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
5444 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
5445 -[AC_LANG_PUSH(C++)
5446 -AC_REQUIRE([AC_PROG_CXX])
5447 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
5448 -
5449 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5450 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5451 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
5452 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5453 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5454 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
5455 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5456 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5457 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5458 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5459 -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5460 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5461 -_LT_AC_TAGVAR(module_cmds, $1)=
5462 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5463 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5464 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5465 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
5466 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5467 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5468 -
5469 -# Dependencies to place before and after the object being linked:
5470 -_LT_AC_TAGVAR(predep_objects, $1)=
5471 -_LT_AC_TAGVAR(postdep_objects, $1)=
5472 -_LT_AC_TAGVAR(predeps, $1)=
5473 -_LT_AC_TAGVAR(postdeps, $1)=
5474 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
5475 -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
5476 -
5477 -# Source file extension for C++ test sources.
5478 -ac_ext=cpp
5479 -
5480 -# Object file extension for compiled C++ test sources.
5481 -objext=o
5482 -_LT_AC_TAGVAR(objext, $1)=$objext
5483 -
5484 -# Code to be used in simple compile tests
5485 -lt_simple_compile_test_code="int some_variable = 0;"
5486 -
5487 -# Code to be used in simple link tests
5488 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5489 -
5490 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5491 -_LT_AC_SYS_COMPILER
5492 -
5493 -# save warnings/boilerplate of simple test code
5494 -_LT_COMPILER_BOILERPLATE
5495 -_LT_LINKER_BOILERPLATE
5496 -
5497 -# Allow CC to be a program name with arguments.
5498 -lt_save_CC=$CC
5499 -lt_save_LD=$LD
5500 -lt_save_GCC=$GCC
5501 -GCC=$GXX
5502 -lt_save_with_gnu_ld=$with_gnu_ld
5503 -lt_save_path_LD=$lt_cv_path_LD
5504 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5505 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5506 -else
5507 - $as_unset lt_cv_prog_gnu_ld
5508 -fi
5509 -if test -n "${lt_cv_path_LDCXX+set}"; then
5510 - lt_cv_path_LD=$lt_cv_path_LDCXX
5511 -else
5512 - $as_unset lt_cv_path_LD
5513 -fi
5514 -test -z "${LDCXX+set}" || LD=$LDCXX
5515 -CC=${CXX-"c++"}
5516 -compiler=$CC
5517 -_LT_AC_TAGVAR(compiler, $1)=$CC
5518 -_LT_CC_BASENAME([$compiler])
5519 -
5520 -# We don't want -fno-exception wen compiling C++ code, so set the
5521 -# no_builtin_flag separately
5522 -if test "$GXX" = yes; then
5523 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5524 -else
5525 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5526 -fi
5527 -
5528 -if test "$GXX" = yes; then
5529 - # Set up default GNU C++ configuration
5530 -
5531 - AC_PROG_LD
5532 -
5533 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
5534 - # archiving commands below assume that GNU ld is being used.
5535 - if test "$with_gnu_ld" = yes; then
5536 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5537 - _LT_AC_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'
5538 -
5539 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5540 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5541 -
5542 - # If archive_cmds runs LD, not CC, wlarc should be empty
5543 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5544 - # investigate it a little bit more. (MM)
5545 - wlarc='${wl}'
5546 -
5547 - # ancient GNU ld didn't support --whole-archive et. al.
5548 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5549 - grep 'no-whole-archive' > /dev/null; then
5550 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5551 - else
5552 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5553 - fi
5554 - else
5555 - with_gnu_ld=no
5556 - wlarc=
5557 -
5558 - # A generic and very simple default shared library creation
5559 - # command for GNU C++ for the case where it uses the native
5560 - # linker, instead of GNU ld. If possible, this setting should
5561 - # overridden to take advantage of the native linker features on
5562 - # the platform it is being used on.
5563 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5564 - fi
5565 -
5566 - # Commands to make compiler produce verbose output that lists
5567 - # what "hidden" libraries, object files and flags are used when
5568 - # linking a shared library.
5569 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5570 -
5571 -else
5572 - GXX=no
5573 - with_gnu_ld=no
5574 - wlarc=
5575 -fi
5576 -
5577 -# PORTME: fill in a description of your system's C++ link characteristics
5578 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5579 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5580 -case $host_os in
5581 - aix3*)
5582 - # FIXME: insert proper C++ library support
5583 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5584 - ;;
5585 - aix[[4-9]]*)
5586 - if test "$host_cpu" = ia64; then
5587 - # On IA64, the linker does run time linking by default, so we don't
5588 - # have to do anything special.
5589 - aix_use_runtimelinking=no
5590 - exp_sym_flag='-Bexport'
5591 - no_entry_flag=""
5592 - else
5593 - aix_use_runtimelinking=no
5594 -
5595 - # Test if we are trying to use run time linking or normal
5596 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5597 - # need to do runtime linking.
5598 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5599 - for ld_flag in $LDFLAGS; do
5600 - case $ld_flag in
5601 - *-brtl*)
5602 - aix_use_runtimelinking=yes
5603 - break
5604 - ;;
5605 - esac
5606 - done
5607 - ;;
5608 - esac
5609 -
5610 - exp_sym_flag='-bexport'
5611 - no_entry_flag='-bnoentry'
5612 - fi
5613 -
5614 - # When large executables or shared objects are built, AIX ld can
5615 - # have problems creating the table of contents. If linking a library
5616 - # or program results in "error TOC overflow" add -mminimal-toc to
5617 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5618 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5619 -
5620 - _LT_AC_TAGVAR(archive_cmds, $1)=''
5621 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5622 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5623 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5624 -
5625 - if test "$GXX" = yes; then
5626 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
5627 - # We only want to do this on AIX 4.2 and lower, the check
5628 - # below for broken collect2 doesn't work under 4.3+
5629 - collect2name=`${CC} -print-prog-name=collect2`
5630 - if test -f "$collect2name" && \
5631 - strings "$collect2name" | grep resolve_lib_name >/dev/null
5632 - then
5633 - # We have reworked collect2
5634 - :
5635 - else
5636 - # We have old collect2
5637 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5638 - # It fails to find uninstalled libraries when the uninstalled
5639 - # path is not listed in the libpath. Setting hardcode_minus_L
5640 - # to unsupported forces relinking
5641 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5642 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5643 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5644 - fi
5645 - ;;
5646 - esac
5647 - shared_flag='-shared'
5648 - if test "$aix_use_runtimelinking" = yes; then
5649 - shared_flag="$shared_flag "'${wl}-G'
5650 - fi
5651 - else
5652 - # not using gcc
5653 - if test "$host_cpu" = ia64; then
5654 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5655 - # chokes on -Wl,-G. The following line is correct:
5656 - shared_flag='-G'
5657 - else
5658 - if test "$aix_use_runtimelinking" = yes; then
5659 - shared_flag='${wl}-G'
5660 - else
5661 - shared_flag='${wl}-bM:SRE'
5662 - fi
5663 - fi
5664 - fi
5665 -
5666 - # It seems that -bexpall does not export symbols beginning with
5667 - # underscore (_), so it is better to generate a list of symbols to export.
5668 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5669 - if test "$aix_use_runtimelinking" = yes; then
5670 - # Warning - without using the other runtime loading flags (-brtl),
5671 - # -berok will link without error, but may produce a broken library.
5672 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5673 - # Determine the default libpath from the value encoded in an empty executable.
5674 - _LT_AC_SYS_LIBPATH_AIX
5675 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5676 -
5677 - _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5678 - else
5679 - if test "$host_cpu" = ia64; then
5680 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5681 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5682 - _LT_AC_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"
5683 - else
5684 - # Determine the default libpath from the value encoded in an empty executable.
5685 - _LT_AC_SYS_LIBPATH_AIX
5686 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5687 - # Warning - without using the other run time loading flags,
5688 - # -berok will link without error, but may produce a broken library.
5689 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5690 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5691 - # Exported symbols can be pulled into shared objects from archives
5692 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5693 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5694 - # This is similar to how AIX traditionally builds its shared libraries.
5695 - _LT_AC_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'
5696 - fi
5697 - fi
5698 - ;;
5699 -
5700 - beos*)
5701 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5702 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5703 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5704 - # support --undefined. This deserves some investigation. FIXME
5705 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5706 - else
5707 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5708 - fi
5709 - ;;
5710 -
5711 - chorus*)
5712 - case $cc_basename in
5713 - *)
5714 - # FIXME: insert proper C++ library support
5715 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5716 - ;;
5717 - esac
5718 - ;;
5719 -
5720 - cygwin* | mingw* | pw32*)
5721 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5722 - # as there is no search path for DLLs.
5723 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5724 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5725 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
5726 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5727 -
5728 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5729 - _LT_AC_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'
5730 - # If the export-symbols file already is a .def file (1st line
5731 - # is EXPORTS), use it as is; otherwise, prepend...
5732 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5733 - cp $export_symbols $output_objdir/$soname.def;
5734 - else
5735 - echo EXPORTS > $output_objdir/$soname.def;
5736 - cat $export_symbols >> $output_objdir/$soname.def;
5737 - fi~
5738 - $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'
5739 - else
5740 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5741 - fi
5742 - ;;
5743 - darwin* | rhapsody*)
5744 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5745 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5746 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5747 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5748 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5749 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5750 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
5751 - if test "$GXX" = yes ; then
5752 - output_verbose_link_cmd='echo'
5753 - _LT_AC_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}"
5754 - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
5755 - _LT_AC_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}"
5756 - _LT_AC_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}"
5757 - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
5758 - _LT_AC_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}"
5759 - _LT_AC_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}"
5760 - fi
5761 - else
5762 - case $cc_basename in
5763 - xlc*)
5764 - output_verbose_link_cmd='echo'
5765 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5766 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5767 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5768 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5769 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5770 - ;;
5771 - *)
5772 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5773 - ;;
5774 - esac
5775 - fi
5776 - ;;
5777 -
5778 - dgux*)
5779 - case $cc_basename in
5780 - ec++*)
5781 - # FIXME: insert proper C++ library support
5782 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5783 - ;;
5784 - ghcx*)
5785 - # Green Hills C++ Compiler
5786 - # FIXME: insert proper C++ library support
5787 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5788 - ;;
5789 - *)
5790 - # FIXME: insert proper C++ library support
5791 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5792 - ;;
5793 - esac
5794 - ;;
5795 - freebsd[[12]]*)
5796 - # C++ shared libraries reported to be fairly broken before switch to ELF
5797 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5798 - ;;
5799 - freebsd-elf*)
5800 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5801 - ;;
5802 - freebsd* | dragonfly*)
5803 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5804 - # conventions
5805 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5806 - ;;
5807 - gnu*)
5808 - ;;
5809 - hpux9*)
5810 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5811 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5812 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5813 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5814 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5815 - # but as the default
5816 - # location of the library.
5817 -
5818 - case $cc_basename in
5819 - CC*)
5820 - # FIXME: insert proper C++ library support
5821 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5822 - ;;
5823 - aCC*)
5824 - _LT_AC_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'
5825 - # Commands to make compiler produce verbose output that lists
5826 - # what "hidden" libraries, object files and flags are used when
5827 - # linking a shared library.
5828 - #
5829 - # There doesn't appear to be a way to prevent this compiler from
5830 - # explicitly linking system object files so we need to strip them
5831 - # from the output so that they don't get included in the library
5832 - # dependencies.
5833 - 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 $list'
5834 - ;;
5835 - *)
5836 - if test "$GXX" = yes; then
5837 - _LT_AC_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'
5838 - else
5839 - # FIXME: insert proper C++ library support
5840 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5841 - fi
5842 - ;;
5843 - esac
5844 - ;;
5845 - hpux10*|hpux11*)
5846 - if test $with_gnu_ld = no; then
5847 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5848 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5849 -
5850 - case $host_cpu in
5851 - hppa*64*|ia64*) ;;
5852 - *)
5853 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5854 - ;;
5855 - esac
5856 - fi
5857 - case $host_cpu in
5858 - hppa*64*|ia64*)
5859 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5860 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5861 - ;;
5862 - *)
5863 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5864 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5865 - # but as the default
5866 - # location of the library.
5867 - ;;
5868 - esac
5869 -
5870 - case $cc_basename in
5871 - CC*)
5872 - # FIXME: insert proper C++ library support
5873 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5874 - ;;
5875 - aCC*)
5876 - case $host_cpu in
5877 - hppa*64*)
5878 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5879 - ;;
5880 - ia64*)
5881 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5882 - ;;
5883 - *)
5884 - _LT_AC_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'
5885 - ;;
5886 - esac
5887 - # Commands to make compiler produce verbose output that lists
5888 - # what "hidden" libraries, object files and flags are used when
5889 - # linking a shared library.
5890 - #
5891 - # There doesn't appear to be a way to prevent this compiler from
5892 - # explicitly linking system object files so we need to strip them
5893 - # from the output so that they don't get included in the library
5894 - # dependencies.
5895 - 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 $list'
5896 - ;;
5897 - *)
5898 - if test "$GXX" = yes; then
5899 - if test $with_gnu_ld = no; then
5900 - case $host_cpu in
5901 - hppa*64*)
5902 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5903 - ;;
5904 - ia64*)
5905 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5906 - ;;
5907 - *)
5908 - _LT_AC_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'
5909 - ;;
5910 - esac
5911 - fi
5912 - else
5913 - # FIXME: insert proper C++ library support
5914 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5915 - fi
5916 - ;;
5917 - esac
5918 - ;;
5919 - interix[[3-9]]*)
5920 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5921 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5922 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5923 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5924 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5925 - # Instead, shared libraries are loaded at an image base (0x10000000 by
5926 - # default) and relocated if they conflict, which is a slow very memory
5927 - # consuming and fragmenting process. To avoid this, we pick a random,
5928 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5929 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5930 - _LT_AC_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'
5931 - _LT_AC_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'
5932 - ;;
5933 - irix5* | irix6*)
5934 - case $cc_basename in
5935 - CC*)
5936 - # SGI C++
5937 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5938 -
5939 - # Archives containing C++ object files must be created using
5940 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5941 - # necessary to make sure instantiated templates are included
5942 - # in the archive.
5943 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5944 - ;;
5945 - *)
5946 - if test "$GXX" = yes; then
5947 - if test "$with_gnu_ld" = no; then
5948 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5949 - else
5950 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
5951 - fi
5952 - fi
5953 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5954 - ;;
5955 - esac
5956 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5957 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5958 - ;;
5959 - linux* | k*bsd*-gnu)
5960 - case $cc_basename in
5961 - KCC*)
5962 - # Kuck and Associates, Inc. (KAI) C++ Compiler
5963 -
5964 - # KCC will only create a shared library if the output file
5965 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
5966 - # to its proper name (with version) after linking.
5967 - _LT_AC_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'
5968 - _LT_AC_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'
5969 - # Commands to make compiler produce verbose output that lists
5970 - # what "hidden" libraries, object files and flags are used when
5971 - # linking a shared library.
5972 - #
5973 - # There doesn't appear to be a way to prevent this compiler from
5974 - # explicitly linking system object files so we need to strip them
5975 - # from the output so that they don't get included in the library
5976 - # dependencies.
5977 - 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 $list'
5978 -
5979 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5980 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5981 -
5982 - # Archives containing C++ object files must be created using
5983 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5984 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5985 - ;;
5986 - icpc*)
5987 - # Intel C++
5988 - with_gnu_ld=yes
5989 - # version 8.0 and above of icpc choke on multiply defined symbols
5990 - # if we add $predep_objects and $postdep_objects, however 7.1 and
5991 - # earlier do not add the objects themselves.
5992 - case `$CC -V 2>&1` in
5993 - *"Version 7."*)
5994 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5995 - _LT_AC_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'
5996 - ;;
5997 - *) # Version 8.0 or newer
5998 - tmp_idyn=
5999 - case $host_cpu in
6000 - ia64*) tmp_idyn=' -i_dynamic';;
6001 - esac
6002 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6003 - _LT_AC_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'
6004 - ;;
6005 - esac
6006 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6007 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6008 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6009 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6010 - ;;
6011 - pgCC* | pgcpp*)
6012 - # Portland Group C++ compiler
6013 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6014 - _LT_AC_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'
6015 -
6016 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6017 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6018 - _LT_AC_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'
6019 - ;;
6020 - cxx*)
6021 - # Compaq C++
6022 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6023 - _LT_AC_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'
6024 -
6025 - runpath_var=LD_RUN_PATH
6026 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6027 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6028 -
6029 - # Commands to make compiler produce verbose output that lists
6030 - # what "hidden" libraries, object files and flags are used when
6031 - # linking a shared library.
6032 - #
6033 - # There doesn't appear to be a way to prevent this compiler from
6034 - # explicitly linking system object files so we need to strip them
6035 - # from the output so that they don't get included in the library
6036 - # dependencies.
6037 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
6038 - ;;
6039 - *)
6040 - case `$CC -V 2>&1 | sed 5q` in
6041 - *Sun\ C*)
6042 - # Sun C++ 5.9
6043 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6044 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6045 - _LT_AC_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'
6046 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6047 - _LT_AC_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'
6048 -
6049 - # Not sure whether something based on
6050 - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6051 - # would be better.
6052 - output_verbose_link_cmd='echo'
6053 -
6054 - # Archives containing C++ object files must be created using
6055 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
6056 - # necessary to make sure instantiated templates are included
6057 - # in the archive.
6058 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6059 - ;;
6060 - esac
6061 - ;;
6062 - esac
6063 - ;;
6064 - lynxos*)
6065 - # FIXME: insert proper C++ library support
6066 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6067 - ;;
6068 - m88k*)
6069 - # FIXME: insert proper C++ library support
6070 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6071 - ;;
6072 - mvs*)
6073 - case $cc_basename in
6074 - cxx*)
6075 - # FIXME: insert proper C++ library support
6076 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6077 - ;;
6078 - *)
6079 - # FIXME: insert proper C++ library support
6080 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6081 - ;;
6082 - esac
6083 - ;;
6084 - netbsd*)
6085 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6086 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6087 - wlarc=
6088 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6089 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6090 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6091 - fi
6092 - # Workaround some broken pre-1.5 toolchains
6093 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6094 - ;;
6095 - openbsd2*)
6096 - # C++ shared libraries are fairly broken
6097 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6098 - ;;
6099 - openbsd*)
6100 - if test -f /usr/libexec/ld.so; then
6101 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6102 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6103 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6104 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6105 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6106 - _LT_AC_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'
6107 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6108 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6109 - fi
6110 - output_verbose_link_cmd='echo'
6111 - else
6112 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6113 - fi
6114 - ;;
6115 - osf3*)
6116 - case $cc_basename in
6117 - KCC*)
6118 - # Kuck and Associates, Inc. (KAI) C++ Compiler
6119 -
6120 - # KCC will only create a shared library if the output file
6121 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
6122 - # to its proper name (with version) after linking.
6123 - _LT_AC_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'
6124 -
6125 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6126 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6127 -
6128 - # Archives containing C++ object files must be created using
6129 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6130 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6131 -
6132 - ;;
6133 - RCC*)
6134 - # Rational C++ 2.4.1
6135 - # FIXME: insert proper C++ library support
6136 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6137 - ;;
6138 - cxx*)
6139 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6140 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6141 -
6142 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6143 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6144 -
6145 - # Commands to make compiler produce verbose output that lists
6146 - # what "hidden" libraries, object files and flags are used when
6147 - # linking a shared library.
6148 - #
6149 - # There doesn't appear to be a way to prevent this compiler from
6150 - # explicitly linking system object files so we need to strip them
6151 - # from the output so that they don't get included in the library
6152 - # dependencies.
6153 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
6154 - ;;
6155 - *)
6156 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6157 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6158 - _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6159 -
6160 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6161 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6162 -
6163 - # Commands to make compiler produce verbose output that lists
6164 - # what "hidden" libraries, object files and flags are used when
6165 - # linking a shared library.
6166 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6167 -
6168 - else
6169 - # FIXME: insert proper C++ library support
6170 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6171 - fi
6172 - ;;
6173 - esac
6174 - ;;
6175 - osf4* | osf5*)
6176 - case $cc_basename in
6177 - KCC*)
6178 - # Kuck and Associates, Inc. (KAI) C++ Compiler
6179 -
6180 - # KCC will only create a shared library if the output file
6181 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
6182 - # to its proper name (with version) after linking.
6183 - _LT_AC_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'
6184 -
6185 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6186 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6187 -
6188 - # Archives containing C++ object files must be created using
6189 - # the KAI C++ compiler.
6190 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
6191 - ;;
6192 - RCC*)
6193 - # Rational C++ 2.4.1
6194 - # FIXME: insert proper C++ library support
6195 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6196 - ;;
6197 - cxx*)
6198 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6199 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6200 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6201 - echo "-hidden">> $lib.exp~
6202 - $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
6203 - $rm $lib.exp'
6204 -
6205 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6206 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6207 -
6208 - # Commands to make compiler produce verbose output that lists
6209 - # what "hidden" libraries, object files and flags are used when
6210 - # linking a shared library.
6211 - #
6212 - # There doesn't appear to be a way to prevent this compiler from
6213 - # explicitly linking system object files so we need to strip them
6214 - # from the output so that they don't get included in the library
6215 - # dependencies.
6216 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
6217 - ;;
6218 - *)
6219 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6220 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6221 - _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6222 -
6223 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6224 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
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 -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6230 -
6231 - else
6232 - # FIXME: insert proper C++ library support
6233 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6234 - fi
6235 - ;;
6236 - esac
6237 - ;;
6238 - psos*)
6239 - # FIXME: insert proper C++ library support
6240 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6241 - ;;
6242 - sunos4*)
6243 - case $cc_basename in
6244 - CC*)
6245 - # Sun C++ 4.x
6246 - # FIXME: insert proper C++ library support
6247 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6248 - ;;
6249 - lcc*)
6250 - # Lucid
6251 - # FIXME: insert proper C++ library support
6252 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6253 - ;;
6254 - *)
6255 - # FIXME: insert proper C++ library support
6256 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6257 - ;;
6258 - esac
6259 - ;;
6260 - solaris*)
6261 - case $cc_basename in
6262 - CC*)
6263 - # Sun C++ 4.2, 5.x and Centerline C++
6264 - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
6265 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6266 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6267 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6268 - $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'
6269 -
6270 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6271 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6272 - case $host_os in
6273 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6274 - *)
6275 - # The compiler driver will combine and reorder linker options,
6276 - # but understands `-z linker_flag'.
6277 - # Supported since Solaris 2.6 (maybe 2.5.1?)
6278 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6279 - ;;
6280 - esac
6281 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6282 -
6283 - output_verbose_link_cmd='echo'
6284 -
6285 - # Archives containing C++ object files must be created using
6286 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
6287 - # necessary to make sure instantiated templates are included
6288 - # in the archive.
6289 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6290 - ;;
6291 - gcx*)
6292 - # Green Hills C++ Compiler
6293 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6294 -
6295 - # The C++ compiler must be used to create the archive.
6296 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6297 - ;;
6298 - *)
6299 - # GNU C++ compiler with Solaris linker
6300 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6301 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6302 - if $CC --version | grep -v '^2\.7' > /dev/null; then
6303 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6304 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6305 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6306 -
6307 - # Commands to make compiler produce verbose output that lists
6308 - # what "hidden" libraries, object files and flags are used when
6309 - # linking a shared library.
6310 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6311 - else
6312 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
6313 - # platform.
6314 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6315 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6316 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6317 -
6318 - # Commands to make compiler produce verbose output that lists
6319 - # what "hidden" libraries, object files and flags are used when
6320 - # linking a shared library.
6321 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6322 - fi
6323 -
6324 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6325 - case $host_os in
6326 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6327 - *)
6328 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6329 - ;;
6330 - esac
6331 - fi
6332 - ;;
6333 - esac
6334 - ;;
6335 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6336 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6337 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6338 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6339 - runpath_var='LD_RUN_PATH'
6340 -
6341 - case $cc_basename in
6342 - CC*)
6343 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6344 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6345 - ;;
6346 - *)
6347 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6348 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6349 - ;;
6350 - esac
6351 - ;;
6352 - sysv5* | sco3.2v5* | sco5v6*)
6353 - # Note: We can NOT use -z defs as we might desire, because we do not
6354 - # link with -lc, and that would cause any symbols used from libc to
6355 - # always be unresolved, which means just about no library would
6356 - # ever link correctly. If we're not using GNU ld we use -z text
6357 - # though, which does catch some bad symbols but isn't as heavy-handed
6358 - # as -z defs.
6359 - # For security reasons, it is highly recommended that you always
6360 - # use absolute paths for naming shared libraries, and exclude the
6361 - # DT_RUNPATH tag from executables and libraries. But doing so
6362 - # requires that you compile everything twice, which is a pain.
6363 - # So that behaviour is only enabled if SCOABSPATH is set to a
6364 - # non-empty value in the environment. Most likely only useful for
6365 - # creating official distributions of packages.
6366 - # This is a hack until libtool officially supports absolute path
6367 - # names for shared libraries.
6368 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6369 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6370 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6371 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6372 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6373 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6374 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6375 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6376 - runpath_var='LD_RUN_PATH'
6377 -
6378 - case $cc_basename in
6379 - CC*)
6380 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6381 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6382 - ;;
6383 - *)
6384 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6385 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6386 - ;;
6387 - esac
6388 - ;;
6389 - tandem*)
6390 - case $cc_basename in
6391 - NCC*)
6392 - # NonStop-UX NCC 3.20
6393 - # FIXME: insert proper C++ library support
6394 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6395 - ;;
6396 - *)
6397 - # FIXME: insert proper C++ library support
6398 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6399 - ;;
6400 - esac
6401 - ;;
6402 - vxworks*)
6403 - # FIXME: insert proper C++ library support
6404 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6405 - ;;
6406 - *)
6407 - # FIXME: insert proper C++ library support
6408 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6409 - ;;
6410 -esac
6411 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6412 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6413 -
6414 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
6415 -_LT_AC_TAGVAR(LD, $1)="$LD"
6416 -
6417 -AC_LIBTOOL_POSTDEP_PREDEP($1)
6418 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
6419 -AC_LIBTOOL_PROG_CC_C_O($1)
6420 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6421 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
6422 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6423 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6424 -
6425 -AC_LIBTOOL_CONFIG($1)
6426 -
6427 -AC_LANG_POP
6428 -CC=$lt_save_CC
6429 -LDCXX=$LD
6430 -LD=$lt_save_LD
6431 -GCC=$lt_save_GCC
6432 -with_gnu_ldcxx=$with_gnu_ld
6433 -with_gnu_ld=$lt_save_with_gnu_ld
6434 -lt_cv_path_LDCXX=$lt_cv_path_LD
6435 -lt_cv_path_LD=$lt_save_path_LD
6436 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6437 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6438 -])# AC_LIBTOOL_LANG_CXX_CONFIG
6439 -
6440 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
6441 -# ------------------------------------
6442 -# Figure out "hidden" library dependencies from verbose
6443 -# compiler output when linking a shared library.
6444 -# Parse the compiler output and extract the necessary
6445 -# objects, libraries and library flags.
6446 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
6447 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
6448 -dnl we can't use the lt_simple_compile_test_code here,
6449 -dnl because it contains code intended for an executable,
6450 -dnl not a library. It's possible we should let each
6451 -dnl tag define a new lt_????_link_test_code variable,
6452 -dnl but it's only used here...
6453 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
6454 -int a;
6455 -void foo (void) { a = 0; }
6456 -EOF
6457 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
6458 -class Foo
6459 -{
6460 -public:
6461 - Foo (void) { a = 0; }
6462 -private:
6463 - int a;
6464 -};
6465 -EOF
6466 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
6467 - subroutine foo
6468 - implicit none
6469 - integer*4 a
6470 - a=0
6471 - return
6472 - end
6473 -EOF
6474 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
6475 -public class foo {
6476 - private int a;
6477 - public void bar (void) {
6478 - a = 0;
6479 - }
6480 -};
6481 -EOF
6482 -])
6483 -dnl Parse the compiler output and extract the necessary
6484 -dnl objects, libraries and library flags.
6485 -if AC_TRY_EVAL(ac_compile); then
6486 - # Parse the compiler output and extract the necessary
6487 - # objects, libraries and library flags.
6488 -
6489 - # Sentinel used to keep track of whether or not we are before
6490 - # the conftest object file.
6491 - pre_test_object_deps_done=no
6492 -
6493 - # The `*' in the case matches for architectures that use `case' in
6494 - # $output_verbose_cmd can trigger glob expansion during the loop
6495 - # eval without this substitution.
6496 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
6497 -
6498 - for p in `eval $output_verbose_link_cmd`; do
6499 - case $p in
6500 -
6501 - -L* | -R* | -l*)
6502 - # Some compilers place space between "-{L,R}" and the path.
6503 - # Remove the space.
6504 - if test $p = "-L" \
6505 - || test $p = "-R"; then
6506 - prev=$p
6507 - continue
6508 - else
6509 - prev=
6510 - fi
6511 -
6512 - if test "$pre_test_object_deps_done" = no; then
6513 - case $p in
6514 - -L* | -R*)
6515 - # Internal compiler library paths should come after those
6516 - # provided the user. The postdeps already come after the
6517 - # user supplied libs so there is no need to process them.
6518 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6519 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6520 - else
6521 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6522 - fi
6523 - ;;
6524 - # The "-l" case would never come before the object being
6525 - # linked, so don't bother handling this case.
6526 - esac
6527 - else
6528 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
6529 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
6530 - else
6531 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
6532 - fi
6533 - fi
6534 - ;;
6535 -
6536 - *.$objext)
6537 - # This assumes that the test object file only shows up
6538 - # once in the compiler output.
6539 - if test "$p" = "conftest.$objext"; then
6540 - pre_test_object_deps_done=yes
6541 - continue
6542 - fi
6543 +# Modified to require ngettext
6544 +# Matthias Clasen <mclasen@redhat.com> 08/06/2004
6545 +#
6546 +# We need this here as well, since someone might use autoconf-2.5x
6547 +# to configure GLib then an older version to configure a package
6548 +# using AM_GLIB_GNU_GETTEXT
6549 +AC_PREREQ(2.53)
6550
6551 - if test "$pre_test_object_deps_done" = no; then
6552 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
6553 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
6554 - else
6555 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
6556 - fi
6557 - else
6558 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
6559 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
6560 - else
6561 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
6562 - fi
6563 - fi
6564 - ;;
6565 +dnl
6566 +dnl We go to great lengths to make sure that aclocal won't
6567 +dnl try to pull in the installed version of these macros
6568 +dnl when running aclocal in the glib directory.
6569 +dnl
6570 +m4_copy([AC_DEFUN],[glib_DEFUN])
6571 +m4_copy([AC_REQUIRE],[glib_REQUIRE])
6572 +dnl
6573 +dnl At the end, if we're not within glib, we'll define the public
6574 +dnl definitions in terms of our private definitions.
6575 +dnl
6576
6577 - *) ;; # Ignore the rest.
6578 +# GLIB_LC_MESSAGES
6579 +#--------------------
6580 +glib_DEFUN([GLIB_LC_MESSAGES],
6581 + [AC_CHECK_HEADERS([locale.h])
6582 + if test $ac_cv_header_locale_h = yes; then
6583 + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
6584 + [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
6585 + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
6586 + if test $am_cv_val_LC_MESSAGES = yes; then
6587 + AC_DEFINE(HAVE_LC_MESSAGES, 1,
6588 + [Define if your <locale.h> file defines LC_MESSAGES.])
6589 + fi
6590 + fi])
6591
6592 - esac
6593 +# GLIB_PATH_PROG_WITH_TEST
6594 +#----------------------------
6595 +dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
6596 +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
6597 +glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
6598 +[# Extract the first word of "$2", so it can be a program name with args.
6599 +set dummy $2; ac_word=[$]2
6600 +AC_MSG_CHECKING([for $ac_word])
6601 +AC_CACHE_VAL(ac_cv_path_$1,
6602 +[case "[$]$1" in
6603 + /*)
6604 + ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
6605 + ;;
6606 + *)
6607 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6608 + for ac_dir in ifelse([$5], , $PATH, [$5]); do
6609 + test -z "$ac_dir" && ac_dir=.
6610 + if test -f $ac_dir/$ac_word; then
6611 + if [$3]; then
6612 + ac_cv_path_$1="$ac_dir/$ac_word"
6613 + break
6614 + fi
6615 + fi
6616 done
6617 -
6618 - # Clean up.
6619 - rm -f a.out a.exe
6620 + IFS="$ac_save_ifs"
6621 +dnl If no 4th arg is given, leave the cache variable unset,
6622 +dnl so AC_PATH_PROGS will keep looking.
6623 +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
6624 +])dnl
6625 + ;;
6626 +esac])dnl
6627 +$1="$ac_cv_path_$1"
6628 +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
6629 + AC_MSG_RESULT([$]$1)
6630 else
6631 - echo "libtool.m4: error: problem compiling $1 test program"
6632 + AC_MSG_RESULT(no)
6633 fi
6634 +AC_SUBST($1)dnl
6635 +])
6636
6637 -$rm -f confest.$objext
6638 +# GLIB_WITH_NLS
6639 +#-----------------
6640 +glib_DEFUN([GLIB_WITH_NLS],
6641 + dnl NLS is obligatory
6642 + [USE_NLS=yes
6643 + AC_SUBST(USE_NLS)
6644
6645 -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
6646 -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6647 - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6648 -fi
6649 + gt_cv_have_gettext=no
6650
6651 -# PORTME: override above test on systems where it is broken
6652 -ifelse([$1],[CXX],
6653 -[case $host_os in
6654 -interix[[3-9]]*)
6655 - # Interix 3.5 installs completely hosed .la files for C++, so rather than
6656 - # hack all around it, let's just trust "g++" to DTRT.
6657 - _LT_AC_TAGVAR(predep_objects,$1)=
6658 - _LT_AC_TAGVAR(postdep_objects,$1)=
6659 - _LT_AC_TAGVAR(postdeps,$1)=
6660 - ;;
6661 + CATOBJEXT=NONE
6662 + XGETTEXT=:
6663 + INTLLIBS=
6664
6665 -linux*)
6666 - case `$CC -V 2>&1 | sed 5q` in
6667 - *Sun\ C*)
6668 - # Sun C++ 5.9
6669 - #
6670 - # The more standards-conforming stlport4 library is
6671 - # incompatible with the Cstd library. Avoid specifying
6672 - # it if it's in CXXFLAGS. Ignore libCrun as
6673 - # -library=stlport4 depends on it.
6674 - case " $CXX $CXXFLAGS " in
6675 - *" -library=stlport4 "*)
6676 - solaris_use_stlport4=yes
6677 - ;;
6678 - esac
6679 - if test "$solaris_use_stlport4" != yes; then
6680 - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6681 - fi
6682 - ;;
6683 - esac
6684 - ;;
6685 + AC_CHECK_HEADER(libintl.h,
6686 + [gt_cv_func_dgettext_libintl="no"
6687 + libintl_extra_libs=""
6688
6689 -solaris*)
6690 - case $cc_basename in
6691 - CC*)
6692 - # The more standards-conforming stlport4 library is
6693 - # incompatible with the Cstd library. Avoid specifying
6694 - # it if it's in CXXFLAGS. Ignore libCrun as
6695 - # -library=stlport4 depends on it.
6696 - case " $CXX $CXXFLAGS " in
6697 - *" -library=stlport4 "*)
6698 - solaris_use_stlport4=yes
6699 - ;;
6700 - esac
6701 + #
6702 + # First check in libc
6703 + #
6704 + AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
6705 + [AC_TRY_LINK([
6706 +#include <libintl.h>
6707 +],
6708 + [return !ngettext ("","", 1)],
6709 + gt_cv_func_ngettext_libc=yes,
6710 + gt_cv_func_ngettext_libc=no)
6711 + ])
6712 +
6713 + if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6714 + AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
6715 + [AC_TRY_LINK([
6716 +#include <libintl.h>
6717 +],
6718 + [return !dgettext ("","")],
6719 + gt_cv_func_dgettext_libc=yes,
6720 + gt_cv_func_dgettext_libc=no)
6721 + ])
6722 + fi
6723 +
6724 + if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6725 + AC_CHECK_FUNCS(bind_textdomain_codeset)
6726 + fi
6727
6728 - # Adding this requires a known-good setup of shared libraries for
6729 - # Sun compiler versions before 5.6, else PIC objects from an old
6730 - # archive will be linked into the output, leading to subtle bugs.
6731 - if test "$solaris_use_stlport4" != yes; then
6732 - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6733 - fi
6734 - ;;
6735 - esac
6736 - ;;
6737 -esac
6738 -])
6739 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
6740 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6741 -esac
6742 -])# AC_LIBTOOL_POSTDEP_PREDEP
6743 + #
6744 + # If we don't have everything we want, check in libintl
6745 + #
6746 + if test "$gt_cv_func_dgettext_libc" != "yes" \
6747 + || test "$gt_cv_func_ngettext_libc" != "yes" \
6748 + || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6749 +
6750 + AC_CHECK_LIB(intl, bindtextdomain,
6751 + [AC_CHECK_LIB(intl, ngettext,
6752 + [AC_CHECK_LIB(intl, dgettext,
6753 + gt_cv_func_dgettext_libintl=yes)])])
6754
6755 -# AC_LIBTOOL_LANG_F77_CONFIG
6756 -# --------------------------
6757 -# Ensure that the configuration vars for the C compiler are
6758 -# suitably defined. Those variables are subsequently used by
6759 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6760 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
6761 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
6762 -[AC_REQUIRE([AC_PROG_F77])
6763 -AC_LANG_PUSH(Fortran 77)
6764 -
6765 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6766 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6767 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
6768 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6769 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6770 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
6771 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6772 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6773 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6774 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6775 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6776 -_LT_AC_TAGVAR(module_cmds, $1)=
6777 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6778 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6779 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6780 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
6781 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6782 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6783 -
6784 -# Source file extension for f77 test sources.
6785 -ac_ext=f
6786 -
6787 -# Object file extension for compiled f77 test sources.
6788 -objext=o
6789 -_LT_AC_TAGVAR(objext, $1)=$objext
6790 -
6791 -# Code to be used in simple compile tests
6792 -lt_simple_compile_test_code="\
6793 - subroutine t
6794 - return
6795 - end
6796 -"
6797 -
6798 -# Code to be used in simple link tests
6799 -lt_simple_link_test_code="\
6800 - program t
6801 - end
6802 -"
6803 -
6804 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6805 -_LT_AC_SYS_COMPILER
6806 -
6807 -# save warnings/boilerplate of simple test code
6808 -_LT_COMPILER_BOILERPLATE
6809 -_LT_LINKER_BOILERPLATE
6810 -
6811 -# Allow CC to be a program name with arguments.
6812 -lt_save_CC="$CC"
6813 -CC=${F77-"f77"}
6814 -compiler=$CC
6815 -_LT_AC_TAGVAR(compiler, $1)=$CC
6816 -_LT_CC_BASENAME([$compiler])
6817 -
6818 -AC_MSG_CHECKING([if libtool supports shared libraries])
6819 -AC_MSG_RESULT([$can_build_shared])
6820 -
6821 -AC_MSG_CHECKING([whether to build shared libraries])
6822 -test "$can_build_shared" = "no" && enable_shared=no
6823 -
6824 -# On AIX, shared libraries and static libraries use the same namespace, and
6825 -# are all built from PIC.
6826 -case $host_os in
6827 -aix3*)
6828 - test "$enable_shared" = yes && enable_static=no
6829 - if test -n "$RANLIB"; then
6830 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
6831 - postinstall_cmds='$RANLIB $lib'
6832 - fi
6833 - ;;
6834 -aix[[4-9]]*)
6835 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6836 - test "$enable_shared" = yes && enable_static=no
6837 - fi
6838 - ;;
6839 -esac
6840 -AC_MSG_RESULT([$enable_shared])
6841 + if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6842 + AC_MSG_CHECKING([if -liconv is needed to use gettext])
6843 + AC_MSG_RESULT([])
6844 + AC_CHECK_LIB(intl, ngettext,
6845 + [AC_CHECK_LIB(intl, dcgettext,
6846 + [gt_cv_func_dgettext_libintl=yes
6847 + libintl_extra_libs=-liconv],
6848 + :,-liconv)],
6849 + :,-liconv)
6850 + fi
6851
6852 -AC_MSG_CHECKING([whether to build static libraries])
6853 -# Make sure either enable_shared or enable_static is yes.
6854 -test "$enable_shared" = yes || enable_static=yes
6855 -AC_MSG_RESULT([$enable_static])
6856 + #
6857 + # If we found libintl, then check in it for bind_textdomain_codeset();
6858 + # we'll prefer libc if neither have bind_textdomain_codeset(),
6859 + # and both have dgettext and ngettext
6860 + #
6861 + if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6862 + glib_save_LIBS="$LIBS"
6863 + LIBS="$LIBS -lintl $libintl_extra_libs"
6864 + unset ac_cv_func_bind_textdomain_codeset
6865 + AC_CHECK_FUNCS(bind_textdomain_codeset)
6866 + LIBS="$glib_save_LIBS"
6867
6868 -_LT_AC_TAGVAR(GCC, $1)="$G77"
6869 -_LT_AC_TAGVAR(LD, $1)="$LD"
6870 + if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
6871 + gt_cv_func_dgettext_libc=no
6872 + else
6873 + if test "$gt_cv_func_dgettext_libc" = "yes" \
6874 + && test "$gt_cv_func_ngettext_libc" = "yes"; then
6875 + gt_cv_func_dgettext_libintl=no
6876 + fi
6877 + fi
6878 + fi
6879 + fi
6880
6881 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
6882 -AC_LIBTOOL_PROG_CC_C_O($1)
6883 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6884 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
6885 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6886 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6887 + if test "$gt_cv_func_dgettext_libc" = "yes" \
6888 + || test "$gt_cv_func_dgettext_libintl" = "yes"; then
6889 + gt_cv_have_gettext=yes
6890 + fi
6891 +
6892 + if test "$gt_cv_func_dgettext_libintl" = "yes"; then
6893 + INTLLIBS="-lintl $libintl_extra_libs"
6894 + fi
6895 +
6896 + if test "$gt_cv_have_gettext" = "yes"; then
6897 + AC_DEFINE(HAVE_GETTEXT,1,
6898 + [Define if the GNU gettext() function is already present or preinstalled.])
6899 + GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
6900 + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
6901 + if test "$MSGFMT" != "no"; then
6902 + glib_save_LIBS="$LIBS"
6903 + LIBS="$LIBS $INTLLIBS"
6904 + AC_CHECK_FUNCS(dcgettext)
6905 + MSGFMT_OPTS=
6906 + AC_MSG_CHECKING([if msgfmt accepts -c])
6907 + GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
6908 +msgid ""
6909 +msgstr ""
6910 +"Content-Type: text/plain; charset=UTF-8\n"
6911 +"Project-Id-Version: test 1.0\n"
6912 +"PO-Revision-Date: 2007-02-15 12:01+0100\n"
6913 +"Last-Translator: test <foo@bar.xx>\n"
6914 +"Language-Team: C <LL@li.org>\n"
6915 +"MIME-Version: 1.0\n"
6916 +"Content-Transfer-Encoding: 8bit\n"
6917 +], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
6918 + AC_SUBST(MSGFMT_OPTS)
6919 + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
6920 + GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
6921 + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
6922 + AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
6923 + return _nl_msg_cat_cntr],
6924 + [CATOBJEXT=.gmo
6925 + DATADIRNAME=share],
6926 + [case $host in
6927 + *-*-solaris*)
6928 + dnl On Solaris, if bind_textdomain_codeset is in libc,
6929 + dnl GNU format message catalog is always supported,
6930 + dnl since both are added to the libc all together.
6931 + dnl Hence, we'd like to go with DATADIRNAME=share and
6932 + dnl and CATOBJEXT=.gmo in this case.
6933 + AC_CHECK_FUNC(bind_textdomain_codeset,
6934 + [CATOBJEXT=.gmo
6935 + DATADIRNAME=share],
6936 + [CATOBJEXT=.mo
6937 + DATADIRNAME=lib])
6938 + ;;
6939 + *-*-openbsd*)
6940 + CATOBJEXT=.mo
6941 + DATADIRNAME=share
6942 + ;;
6943 + *)
6944 + CATOBJEXT=.mo
6945 + DATADIRNAME=lib
6946 + ;;
6947 + esac])
6948 + LIBS="$glib_save_LIBS"
6949 + INSTOBJEXT=.mo
6950 + else
6951 + gt_cv_have_gettext=no
6952 + fi
6953 + fi
6954 + ])
6955
6956 -AC_LIBTOOL_CONFIG($1)
6957 + if test "$gt_cv_have_gettext" = "yes" ; then
6958 + AC_DEFINE(ENABLE_NLS, 1,
6959 + [always defined to indicate that i18n is enabled])
6960 + fi
6961
6962 -AC_LANG_POP
6963 -CC="$lt_save_CC"
6964 -])# AC_LIBTOOL_LANG_F77_CONFIG
6965 + dnl Test whether we really found GNU xgettext.
6966 + if test "$XGETTEXT" != ":"; then
6967 + dnl If it is not GNU xgettext we define it as : so that the
6968 + dnl Makefiles still can work.
6969 + if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6970 + : ;
6971 + else
6972 + AC_MSG_RESULT(
6973 + [found xgettext program is not GNU xgettext; ignore it])
6974 + XGETTEXT=":"
6975 + fi
6976 + fi
6977
6978 + # We need to process the po/ directory.
6979 + POSUB=po
6980
6981 -# AC_LIBTOOL_LANG_GCJ_CONFIG
6982 -# --------------------------
6983 -# Ensure that the configuration vars for the C compiler are
6984 -# suitably defined. Those variables are subsequently used by
6985 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6986 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6987 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6988 -[AC_LANG_SAVE
6989 + AC_OUTPUT_COMMANDS(
6990 + [case "$CONFIG_FILES" in *po/Makefile.in*)
6991 + sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
6992 + esac])
6993
6994 -# Source file extension for Java test sources.
6995 -ac_ext=java
6996 + dnl These rules are solely for the distribution goal. While doing this
6997 + dnl we only have to keep exactly one list of the available catalogs
6998 + dnl in configure.ac.
6999 + for lang in $ALL_LINGUAS; do
7000 + GMOFILES="$GMOFILES $lang.gmo"
7001 + POFILES="$POFILES $lang.po"
7002 + done
7003
7004 -# Object file extension for compiled Java test sources.
7005 -objext=o
7006 -_LT_AC_TAGVAR(objext, $1)=$objext
7007 + dnl Make all variables we use known to autoconf.
7008 + AC_SUBST(CATALOGS)
7009 + AC_SUBST(CATOBJEXT)
7010 + AC_SUBST(DATADIRNAME)
7011 + AC_SUBST(GMOFILES)
7012 + AC_SUBST(INSTOBJEXT)
7013 + AC_SUBST(INTLLIBS)
7014 + AC_SUBST(PO_IN_DATADIR_TRUE)
7015 + AC_SUBST(PO_IN_DATADIR_FALSE)
7016 + AC_SUBST(POFILES)
7017 + AC_SUBST(POSUB)
7018 + ])
7019
7020 -# Code to be used in simple compile tests
7021 -lt_simple_compile_test_code="class foo {}"
7022 +# AM_GLIB_GNU_GETTEXT
7023 +# -------------------
7024 +# Do checks necessary for use of gettext. If a suitable implementation
7025 +# of gettext is found in either in libintl or in the C library,
7026 +# it will set INTLLIBS to the libraries needed for use of gettext
7027 +# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
7028 +# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
7029 +# on various variables needed by the Makefile.in.in installed by
7030 +# glib-gettextize.
7031 +dnl
7032 +glib_DEFUN([GLIB_GNU_GETTEXT],
7033 + [AC_REQUIRE([AC_PROG_CC])dnl
7034 + AC_REQUIRE([AC_HEADER_STDC])dnl
7035 +
7036 + GLIB_LC_MESSAGES
7037 + GLIB_WITH_NLS
7038
7039 -# Code to be used in simple link tests
7040 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7041 + if test "$gt_cv_have_gettext" = "yes"; then
7042 + if test "x$ALL_LINGUAS" = "x"; then
7043 + LINGUAS=
7044 + else
7045 + AC_MSG_CHECKING(for catalogs to be installed)
7046 + NEW_LINGUAS=
7047 + for presentlang in $ALL_LINGUAS; do
7048 + useit=no
7049 + if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7050 + desiredlanguages="$LINGUAS"
7051 + else
7052 + desiredlanguages="$ALL_LINGUAS"
7053 + fi
7054 + for desiredlang in $desiredlanguages; do
7055 + # Use the presentlang catalog if desiredlang is
7056 + # a. equal to presentlang, or
7057 + # b. a variant of presentlang (because in this case,
7058 + # presentlang can be used as a fallback for messages
7059 + # which are not translated in the desiredlang catalog).
7060 + case "$desiredlang" in
7061 + "$presentlang"*) useit=yes;;
7062 + esac
7063 + done
7064 + if test $useit = yes; then
7065 + NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7066 + fi
7067 + done
7068 + LINGUAS=$NEW_LINGUAS
7069 + AC_MSG_RESULT($LINGUAS)
7070 + fi
7071
7072 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7073 -_LT_AC_SYS_COMPILER
7074 + dnl Construct list of names of catalog files to be constructed.
7075 + if test -n "$LINGUAS"; then
7076 + for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7077 + fi
7078 + fi
7079
7080 -# save warnings/boilerplate of simple test code
7081 -_LT_COMPILER_BOILERPLATE
7082 -_LT_LINKER_BOILERPLATE
7083 + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
7084 + dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
7085 + dnl Try to locate is.
7086 + MKINSTALLDIRS=
7087 + if test -n "$ac_aux_dir"; then
7088 + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7089 + fi
7090 + if test -z "$MKINSTALLDIRS"; then
7091 + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7092 + fi
7093 + AC_SUBST(MKINSTALLDIRS)
7094
7095 -# Allow CC to be a program name with arguments.
7096 -lt_save_CC="$CC"
7097 -CC=${GCJ-"gcj"}
7098 -compiler=$CC
7099 -_LT_AC_TAGVAR(compiler, $1)=$CC
7100 -_LT_CC_BASENAME([$compiler])
7101 + dnl Generate list of files to be processed by xgettext which will
7102 + dnl be included in po/Makefile.
7103 + test -d po || mkdir po
7104 + if test "x$srcdir" != "x."; then
7105 + if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7106 + posrcprefix="$srcdir/"
7107 + else
7108 + posrcprefix="../$srcdir/"
7109 + fi
7110 + else
7111 + posrcprefix="../"
7112 + fi
7113 + rm -f po/POTFILES
7114 + sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7115 + < $srcdir/po/POTFILES.in > po/POTFILES
7116 + ])
7117
7118 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
7119 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7120 +# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
7121 +# -------------------------------
7122 +# Define VARIABLE to the location where catalog files will
7123 +# be installed by po/Makefile.
7124 +glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
7125 +[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
7126 +glib_save_prefix="$prefix"
7127 +glib_save_exec_prefix="$exec_prefix"
7128 +glib_save_datarootdir="$datarootdir"
7129 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
7130 +test "x$exec_prefix" = xNONE && exec_prefix=$prefix
7131 +datarootdir=`eval echo "${datarootdir}"`
7132 +if test "x$CATOBJEXT" = "x.mo" ; then
7133 + localedir=`eval echo "${libdir}/locale"`
7134 +else
7135 + localedir=`eval echo "${datadir}/locale"`
7136 +fi
7137 +prefix="$glib_save_prefix"
7138 +exec_prefix="$glib_save_exec_prefix"
7139 +datarootdir="$glib_save_datarootdir"
7140 +AC_DEFINE_UNQUOTED($1, "$localedir",
7141 + [Define the location where the catalogs will be installed])
7142 +])
7143
7144 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7145 +dnl
7146 +dnl Now the definitions that aclocal will find
7147 +dnl
7148 +ifdef(glib_configure_ac,[],[
7149 +AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
7150 +AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
7151 +])dnl
7152
7153 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7154 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
7155 -AC_LIBTOOL_PROG_CC_C_O($1)
7156 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7157 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
7158 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7159 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7160 +# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
7161 +#
7162 +# Create a temporary file with TEST-FILE as its contents and pass the
7163 +# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
7164 +# 0 and perform ACTION-IF-FAIL for any other exit status.
7165 +AC_DEFUN([GLIB_RUN_PROG],
7166 +[cat >conftest.foo <<_ACEOF
7167 +$2
7168 +_ACEOF
7169 +if AC_RUN_LOG([$1 conftest.foo]); then
7170 + m4_ifval([$3], [$3], [:])
7171 +m4_ifvaln([$4], [else $4])dnl
7172 +echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
7173 +sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
7174 +fi])
7175
7176 -AC_LIBTOOL_CONFIG($1)
7177
7178 -AC_LANG_RESTORE
7179 -CC="$lt_save_CC"
7180 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
7181 +# Configure paths for GTK+
7182 +# Owen Taylor 1997-2001
7183
7184 +dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
7185 +dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
7186 +dnl pass to pkg-config
7187 +dnl
7188 +AC_DEFUN([AM_PATH_GTK_2_0],
7189 +[dnl
7190 +dnl Get the cflags and libraries from pkg-config
7191 +dnl
7192 +AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program],
7193 + , enable_gtktest=yes)
7194
7195 -# AC_LIBTOOL_LANG_RC_CONFIG
7196 -# -------------------------
7197 -# Ensure that the configuration vars for the Windows resource compiler are
7198 -# suitably defined. Those variables are subsequently used by
7199 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7200 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
7201 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
7202 -[AC_LANG_SAVE
7203 + pkg_config_args=gtk+-2.0
7204 + for module in . $4
7205 + do
7206 + case "$module" in
7207 + gthread)
7208 + pkg_config_args="$pkg_config_args gthread-2.0"
7209 + ;;
7210 + esac
7211 + done
7212
7213 -# Source file extension for RC test sources.
7214 -ac_ext=rc
7215 + no_gtk=""
7216
7217 -# Object file extension for compiled RC test sources.
7218 -objext=o
7219 -_LT_AC_TAGVAR(objext, $1)=$objext
7220 + AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
7221
7222 -# Code to be used in simple compile tests
7223 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7224 + if test x$PKG_CONFIG != xno ; then
7225 + if pkg-config --atleast-pkgconfig-version 0.7 ; then
7226 + :
7227 + else
7228 + echo "*** pkg-config too old; version 0.7 or better required."
7229 + no_gtk=yes
7230 + PKG_CONFIG=no
7231 + fi
7232 + else
7233 + no_gtk=yes
7234 + fi
7235
7236 -# Code to be used in simple link tests
7237 -lt_simple_link_test_code="$lt_simple_compile_test_code"
7238 + min_gtk_version=ifelse([$1], ,2.0.0,$1)
7239 + AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
7240
7241 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7242 -_LT_AC_SYS_COMPILER
7243 + if test x$PKG_CONFIG != xno ; then
7244 + ## don't try to run the test against uninstalled libtool libs
7245 + if $PKG_CONFIG --uninstalled $pkg_config_args; then
7246 + echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7247 + enable_gtktest=no
7248 + fi
7249
7250 -# save warnings/boilerplate of simple test code
7251 -_LT_COMPILER_BOILERPLATE
7252 -_LT_LINKER_BOILERPLATE
7253 + if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7254 + :
7255 + else
7256 + no_gtk=yes
7257 + fi
7258 + fi
7259
7260 -# Allow CC to be a program name with arguments.
7261 -lt_save_CC="$CC"
7262 -CC=${RC-"windres"}
7263 -compiler=$CC
7264 -_LT_AC_TAGVAR(compiler, $1)=$CC
7265 -_LT_CC_BASENAME([$compiler])
7266 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7267 + if test x"$no_gtk" = x ; then
7268 + GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7269 + GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7270 + gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7271 + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
7272 + gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7273 + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
7274 + gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7275 + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
7276 + if test "x$enable_gtktest" = "xyes" ; then
7277 + ac_save_CFLAGS="$CFLAGS"
7278 + ac_save_LIBS="$LIBS"
7279 + CFLAGS="$CFLAGS $GTK_CFLAGS"
7280 + LIBS="$GTK_LIBS $LIBS"
7281 +dnl
7282 +dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
7283 +dnl checks the results of pkg-config to some extent)
7284 +dnl
7285 + rm -f conf.gtktest
7286 + AC_TRY_RUN([
7287 +#include <gtk/gtk.h>
7288 +#include <stdio.h>
7289 +#include <stdlib.h>
7290
7291 -AC_LIBTOOL_CONFIG($1)
7292 +int
7293 +main ()
7294 +{
7295 + int major, minor, micro;
7296 + char *tmp_version;
7297
7298 -AC_LANG_RESTORE
7299 -CC="$lt_save_CC"
7300 -])# AC_LIBTOOL_LANG_RC_CONFIG
7301 + fclose (fopen ("conf.gtktest", "w"));
7302
7303 + /* HP/UX 9 (%@#!) writes to sscanf strings */
7304 + tmp_version = g_strdup("$min_gtk_version");
7305 + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7306 + printf("%s, bad version string\n", "$min_gtk_version");
7307 + exit(1);
7308 + }
7309
7310 -# AC_LIBTOOL_CONFIG([TAGNAME])
7311 -# ----------------------------
7312 -# If TAGNAME is not passed, then create an initial libtool script
7313 -# with a default configuration from the untagged config vars. Otherwise
7314 -# add code to config.status for appending the configuration named by
7315 -# TAGNAME from the matching tagged config vars.
7316 -AC_DEFUN([AC_LIBTOOL_CONFIG],
7317 -[# The else clause should only fire when bootstrapping the
7318 -# libtool distribution, otherwise you forgot to ship ltmain.sh
7319 -# with your package, and you will get complaints that there are
7320 -# no rules to generate ltmain.sh.
7321 -if test -f "$ltmain"; then
7322 - # See if we are running on zsh, and set the options which allow our commands through
7323 - # without removal of \ escapes.
7324 - if test -n "${ZSH_VERSION+set}" ; then
7325 - setopt NO_GLOB_SUBST
7326 + if ((gtk_major_version != $gtk_config_major_version) ||
7327 + (gtk_minor_version != $gtk_config_minor_version) ||
7328 + (gtk_micro_version != $gtk_config_micro_version))
7329 + {
7330 + printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7331 + $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7332 + gtk_major_version, gtk_minor_version, gtk_micro_version);
7333 + printf ("*** was found! If pkg-config was correct, then it is best\n");
7334 + printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7335 + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7336 + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7337 + printf("*** required on your system.\n");
7338 + printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7339 + printf("*** to point to the correct configuration files\n");
7340 + }
7341 + else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7342 + (gtk_minor_version != GTK_MINOR_VERSION) ||
7343 + (gtk_micro_version != GTK_MICRO_VERSION))
7344 + {
7345 + printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7346 + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7347 + printf("*** library (version %d.%d.%d)\n",
7348 + gtk_major_version, gtk_minor_version, gtk_micro_version);
7349 + }
7350 + else
7351 + {
7352 + if ((gtk_major_version > major) ||
7353 + ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7354 + ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7355 + {
7356 + return 0;
7357 + }
7358 + else
7359 + {
7360 + printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7361 + gtk_major_version, gtk_minor_version, gtk_micro_version);
7362 + printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7363 + major, minor, micro);
7364 + printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7365 + printf("***\n");
7366 + printf("*** If you have already installed a sufficiently new version, this error\n");
7367 + printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7368 + printf("*** being found. The easiest way to fix this is to remove the old version\n");
7369 + printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7370 + printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7371 + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7372 + printf("*** so that the correct libraries are found at run-time))\n");
7373 + }
7374 + }
7375 + return 1;
7376 +}
7377 +],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
7378 + CFLAGS="$ac_save_CFLAGS"
7379 + LIBS="$ac_save_LIBS"
7380 + fi
7381 fi
7382 - # Now quote all the things that may contain metacharacters while being
7383 - # careful not to overquote the AC_SUBSTed values. We take copies of the
7384 - # variables and quote the copies for generation of the libtool script.
7385 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
7386 - SED SHELL STRIP \
7387 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7388 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7389 - deplibs_check_method reload_flag reload_cmds need_locks \
7390 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7391 - lt_cv_sys_global_symbol_to_c_name_address \
7392 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7393 - old_postinstall_cmds old_postuninstall_cmds \
7394 - _LT_AC_TAGVAR(compiler, $1) \
7395 - _LT_AC_TAGVAR(CC, $1) \
7396 - _LT_AC_TAGVAR(LD, $1) \
7397 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
7398 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
7399 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
7400 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
7401 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
7402 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
7403 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
7404 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
7405 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
7406 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
7407 - _LT_AC_TAGVAR(predep_objects, $1) \
7408 - _LT_AC_TAGVAR(postdep_objects, $1) \
7409 - _LT_AC_TAGVAR(predeps, $1) \
7410 - _LT_AC_TAGVAR(postdeps, $1) \
7411 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
7412 - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
7413 - _LT_AC_TAGVAR(archive_cmds, $1) \
7414 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
7415 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
7416 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
7417 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
7418 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
7419 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
7420 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
7421 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
7422 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
7423 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
7424 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
7425 - _LT_AC_TAGVAR(module_cmds, $1) \
7426 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
7427 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
7428 - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
7429 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
7430 - _LT_AC_TAGVAR(include_expsyms, $1); do
7431 -
7432 - case $var in
7433 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
7434 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
7435 - _LT_AC_TAGVAR(archive_cmds, $1) | \
7436 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
7437 - _LT_AC_TAGVAR(module_cmds, $1) | \
7438 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
7439 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
7440 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
7441 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
7442 - postinstall_cmds | postuninstall_cmds | \
7443 - old_postinstall_cmds | old_postuninstall_cmds | \
7444 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7445 - # Double-quote double-evaled strings.
7446 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7447 - ;;
7448 - *)
7449 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7450 - ;;
7451 - esac
7452 - done
7453 -
7454 - case $lt_echo in
7455 - *'\[$]0 --fallback-echo"')
7456 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
7457 - ;;
7458 - esac
7459 -
7460 -ifelse([$1], [],
7461 - [cfgfile="${ofile}T"
7462 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
7463 - $rm -f "$cfgfile"
7464 - AC_MSG_NOTICE([creating $ofile])],
7465 - [cfgfile="$ofile"])
7466 -
7467 - cat <<__EOF__ >> "$cfgfile"
7468 -ifelse([$1], [],
7469 -[#! $SHELL
7470 + if test "x$no_gtk" = x ; then
7471 + AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
7472 + ifelse([$2], , :, [$2])
7473 + else
7474 + AC_MSG_RESULT(no)
7475 + if test "$PKG_CONFIG" = "no" ; then
7476 + echo "*** A new enough version of pkg-config was not found."
7477 + echo "*** See http://pkgconfig.sourceforge.net"
7478 + else
7479 + if test -f conf.gtktest ; then
7480 + :
7481 + else
7482 + echo "*** Could not run GTK+ test program, checking why..."
7483 + ac_save_CFLAGS="$CFLAGS"
7484 + ac_save_LIBS="$LIBS"
7485 + CFLAGS="$CFLAGS $GTK_CFLAGS"
7486 + LIBS="$LIBS $GTK_LIBS"
7487 + AC_TRY_LINK([
7488 +#include <gtk/gtk.h>
7489 +#include <stdio.h>
7490 +], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
7491 + [ echo "*** The test program compiled, but did not run. This usually means"
7492 + echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7493 + echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7494 + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7495 + echo "*** to the installed location Also, make sure you have run ldconfig if that"
7496 + echo "*** is required on your system"
7497 + echo "***"
7498 + echo "*** If you have an old version installed, it is best to remove it, although"
7499 + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
7500 + [ echo "*** The test program failed to compile or link. See the file config.log for the"
7501 + echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
7502 + CFLAGS="$ac_save_CFLAGS"
7503 + LIBS="$ac_save_LIBS"
7504 + fi
7505 + fi
7506 + GTK_CFLAGS=""
7507 + GTK_LIBS=""
7508 + ifelse([$3], , :, [$3])
7509 + fi
7510 + AC_SUBST(GTK_CFLAGS)
7511 + AC_SUBST(GTK_LIBS)
7512 + rm -f conf.gtktest
7513 +])
7514
7515 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7516 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7517 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7518 -#
7519 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
7520 -# Free Software Foundation, Inc.
7521 -#
7522 -# This file is part of GNU Libtool:
7523 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7524 +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7525 +# serial 1 (pkg-config-0.24)
7526 +#
7527 +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
7528 #
7529 # This program is free software; you can redistribute it and/or modify
7530 # it under the terms of the GNU General Public License as published by
7531 @@ -6111,2414 +671,1324 @@ ifelse([$1], [],
7532 #
7533 # You should have received a copy of the GNU General Public License
7534 # along with this program; if not, write to the Free Software
7535 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
7536 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7537 #
7538 # As a special exception to the GNU General Public License, if you
7539 # distribute this file as part of a program that contains a
7540 # configuration script generated by Autoconf, you may include it under
7541 # the same distribution terms that you use for the rest of that program.
7542
7543 -# A sed program that does not truncate output.
7544 -SED=$lt_SED
7545 -
7546 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7547 -Xsed="$SED -e 1s/^X//"
7548 -
7549 -# The HP-UX ksh and POSIX shell print the target directory to stdout
7550 -# if CDPATH is set.
7551 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7552 -
7553 -# The names of the tagged configurations supported by this script.
7554 -available_tags=
7555 -
7556 -# ### BEGIN LIBTOOL CONFIG],
7557 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
7558 -
7559 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7560 -
7561 -# Shell to use when invoking shell scripts.
7562 -SHELL=$lt_SHELL
7563 -
7564 -# Whether or not to build shared libraries.
7565 -build_libtool_libs=$enable_shared
7566 -
7567 -# Whether or not to build static libraries.
7568 -build_old_libs=$enable_static
7569 -
7570 -# Whether or not to add -lc for building shared libraries.
7571 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
7572 -
7573 -# Whether or not to disallow shared libs when runtime libs are static
7574 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
7575 -
7576 -# Whether or not to optimize for fast installation.
7577 -fast_install=$enable_fast_install
7578 -
7579 -# The host system.
7580 -host_alias=$host_alias
7581 -host=$host
7582 -host_os=$host_os
7583 -
7584 -# The build system.
7585 -build_alias=$build_alias
7586 -build=$build
7587 -build_os=$build_os
7588 -
7589 -# An echo program that does not interpret backslashes.
7590 -echo=$lt_echo
7591 -
7592 -# The archiver.
7593 -AR=$lt_AR
7594 -AR_FLAGS=$lt_AR_FLAGS
7595 -
7596 -# A C compiler.
7597 -LTCC=$lt_LTCC
7598 -
7599 -# LTCC compiler flags.
7600 -LTCFLAGS=$lt_LTCFLAGS
7601 -
7602 -# A language-specific compiler.
7603 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
7604 -
7605 -# Is the compiler the GNU C compiler?
7606 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
7607 -
7608 -# An ERE matcher.
7609 -EGREP=$lt_EGREP
7610 -
7611 -# The linker used to build libraries.
7612 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
7613 -
7614 -# Whether we need hard or soft links.
7615 -LN_S=$lt_LN_S
7616 -
7617 -# A BSD-compatible nm program.
7618 -NM=$lt_NM
7619 -
7620 -# A symbol stripping program
7621 -STRIP=$lt_STRIP
7622 -
7623 -# Used to examine libraries when file_magic_cmd begins "file"
7624 -MAGIC_CMD=$MAGIC_CMD
7625 -
7626 -# Used on cygwin: DLL creation program.
7627 -DLLTOOL="$DLLTOOL"
7628 -
7629 -# Used on cygwin: object dumper.
7630 -OBJDUMP="$OBJDUMP"
7631 -
7632 -# Used on cygwin: assembler.
7633 -AS="$AS"
7634 -
7635 -# The name of the directory that contains temporary libtool files.
7636 -objdir=$objdir
7637 -
7638 -# How to create reloadable object files.
7639 -reload_flag=$lt_reload_flag
7640 -reload_cmds=$lt_reload_cmds
7641 -
7642 -# How to pass a linker flag through the compiler.
7643 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7644 -
7645 -# Object file suffix (normally "o").
7646 -objext="$ac_objext"
7647 -
7648 -# Old archive suffix (normally "a").
7649 -libext="$libext"
7650 -
7651 -# Shared library suffix (normally ".so").
7652 -shrext_cmds='$shrext_cmds'
7653 -
7654 -# Executable file suffix (normally "").
7655 -exeext="$exeext"
7656 -
7657 -# Additional compiler flags for building library objects.
7658 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7659 -pic_mode=$pic_mode
7660 -
7661 -# What is the maximum length of a command?
7662 -max_cmd_len=$lt_cv_sys_max_cmd_len
7663 -
7664 -# Does compiler simultaneously support -c and -o options?
7665 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
7666 -
7667 -# Must we lock files when doing compilation?
7668 -need_locks=$lt_need_locks
7669 -
7670 -# Do we need the lib prefix for modules?
7671 -need_lib_prefix=$need_lib_prefix
7672 -
7673 -# Do we need a version for libraries?
7674 -need_version=$need_version
7675 -
7676 -# Whether dlopen is supported.
7677 -dlopen_support=$enable_dlopen
7678 -
7679 -# Whether dlopen of programs is supported.
7680 -dlopen_self=$enable_dlopen_self
7681 -
7682 -# Whether dlopen of statically linked programs is supported.
7683 -dlopen_self_static=$enable_dlopen_self_static
7684 -
7685 -# Compiler flag to prevent dynamic linking.
7686 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
7687 -
7688 -# Compiler flag to turn off builtin functions.
7689 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
7690 -
7691 -# Compiler flag to allow reflexive dlopens.
7692 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
7693 -
7694 -# Compiler flag to generate shared objects directly from archives.
7695 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
7696 -
7697 -# Compiler flag to generate thread-safe objects.
7698 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
7699 -
7700 -# Library versioning type.
7701 -version_type=$version_type
7702 -
7703 -# Format of library name prefix.
7704 -libname_spec=$lt_libname_spec
7705 -
7706 -# List of archive names. First name is the real one, the rest are links.
7707 -# The last name is the one that the linker finds with -lNAME.
7708 -library_names_spec=$lt_library_names_spec
7709 -
7710 -# The coded name of the library, if different from the real name.
7711 -soname_spec=$lt_soname_spec
7712 -
7713 -# Commands used to build and install an old-style archive.
7714 -RANLIB=$lt_RANLIB
7715 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
7716 -old_postinstall_cmds=$lt_old_postinstall_cmds
7717 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
7718 -
7719 -# Create an old-style archive from a shared archive.
7720 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
7721 -
7722 -# Create a temporary old-style archive to link instead of a shared archive.
7723 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
7724 -
7725 -# Commands used to build and install a shared archive.
7726 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
7727 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
7728 -postinstall_cmds=$lt_postinstall_cmds
7729 -postuninstall_cmds=$lt_postuninstall_cmds
7730 -
7731 -# Commands used to build a loadable module (assumed same as above if empty)
7732 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
7733 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
7734 -
7735 -# Commands to strip libraries.
7736 -old_striplib=$lt_old_striplib
7737 -striplib=$lt_striplib
7738 -
7739 -# Dependencies to place before the objects being linked to create a
7740 -# shared library.
7741 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
7742 -
7743 -# Dependencies to place after the objects being linked to create a
7744 -# shared library.
7745 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
7746 -
7747 -# Dependencies to place before the objects being linked to create a
7748 -# shared library.
7749 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
7750 -
7751 -# Dependencies to place after the objects being linked to create a
7752 -# shared library.
7753 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
7754 -
7755 -# The directories searched by this compiler when creating a shared
7756 -# library
7757 -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
7758 -
7759 -# The library search path used internally by the compiler when linking
7760 -# a shared library.
7761 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
7762 -
7763 -# Method to check whether dependent libraries are shared objects.
7764 -deplibs_check_method=$lt_deplibs_check_method
7765 -
7766 -# Command to use when deplibs_check_method == file_magic.
7767 -file_magic_cmd=$lt_file_magic_cmd
7768 -
7769 -# Flag that allows shared libraries with undefined symbols to be built.
7770 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
7771 -
7772 -# Flag that forces no undefined symbols.
7773 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
7774 -
7775 -# Commands used to finish a libtool library installation in a directory.
7776 -finish_cmds=$lt_finish_cmds
7777 -
7778 -# Same as above, but a single script fragment to be evaled but not shown.
7779 -finish_eval=$lt_finish_eval
7780 -
7781 -# Take the output of nm and produce a listing of raw symbols and C names.
7782 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
7783 -
7784 -# Transform the output of nm in a proper C declaration
7785 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
7786 -
7787 -# Transform the output of nm in a C name address pair
7788 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
7789 -
7790 -# This is the shared library runtime path variable.
7791 -runpath_var=$runpath_var
7792 -
7793 -# This is the shared library path variable.
7794 -shlibpath_var=$shlibpath_var
7795 -
7796 -# Is shlibpath searched before the hard-coded library search path?
7797 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7798 -
7799 -# How to hardcode a shared library path into an executable.
7800 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
7801 -
7802 -# Whether we should hardcode library paths into libraries.
7803 -hardcode_into_libs=$hardcode_into_libs
7804 -
7805 -# Flag to hardcode \$libdir into a binary during linking.
7806 -# This must work even if \$libdir does not exist.
7807 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
7808 -
7809 -# If ld is used when linking, flag to hardcode \$libdir into
7810 -# a binary during linking. This must work even if \$libdir does
7811 -# not exist.
7812 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
7813 -
7814 -# Whether we need a single -rpath flag with a separated argument.
7815 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
7816 -
7817 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
7818 -# resulting binary.
7819 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
7820 +# PKG_PROG_PKG_CONFIG([MIN-VERSION])
7821 +# ----------------------------------
7822 +AC_DEFUN([PKG_PROG_PKG_CONFIG],
7823 +[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
7824 +m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
7825 +m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
7826 +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
7827 +AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
7828 +AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
7829
7830 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7831 -# resulting binary.
7832 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
7833 +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7834 + AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7835 +fi
7836 +if test -n "$PKG_CONFIG"; then
7837 + _pkg_min_version=m4_default([$1], [0.9.0])
7838 + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7839 + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7840 + AC_MSG_RESULT([yes])
7841 + else
7842 + AC_MSG_RESULT([no])
7843 + PKG_CONFIG=""
7844 + fi
7845 +fi[]dnl
7846 +])# PKG_PROG_PKG_CONFIG
7847
7848 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7849 -# the resulting binary.
7850 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
7851 +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7852 +#
7853 +# Check to see whether a particular set of modules exists. Similar
7854 +# to PKG_CHECK_MODULES(), but does not set variables or print errors.
7855 +#
7856 +# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
7857 +# only at the first occurence in configure.ac, so if the first place
7858 +# it's called might be skipped (such as if it is within an "if", you
7859 +# have to call PKG_CHECK_EXISTS manually
7860 +# --------------------------------------------------------------
7861 +AC_DEFUN([PKG_CHECK_EXISTS],
7862 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7863 +if test -n "$PKG_CONFIG" && \
7864 + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
7865 + m4_default([$2], [:])
7866 +m4_ifvaln([$3], [else
7867 + $3])dnl
7868 +fi])
7869
7870 -# Set to yes if building a shared library automatically hardcodes DIR into the library
7871 -# and all subsequent libraries and executables linked against it.
7872 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
7873 +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7874 +# ---------------------------------------------
7875 +m4_define([_PKG_CONFIG],
7876 +[if test -n "$$1"; then
7877 + pkg_cv_[]$1="$$1"
7878 + elif test -n "$PKG_CONFIG"; then
7879 + PKG_CHECK_EXISTS([$3],
7880 + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
7881 + test "x$?" != "x0" && pkg_failed=yes ],
7882 + [pkg_failed=yes])
7883 + else
7884 + pkg_failed=untried
7885 +fi[]dnl
7886 +])# _PKG_CONFIG
7887
7888 -# Variables whose values should be saved in libtool wrapper scripts and
7889 -# restored at relink time.
7890 -variables_saved_for_relink="$variables_saved_for_relink"
7891 +# _PKG_SHORT_ERRORS_SUPPORTED
7892 +# -----------------------------
7893 +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
7894 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
7895 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7896 + _pkg_short_errors_supported=yes
7897 +else
7898 + _pkg_short_errors_supported=no
7899 +fi[]dnl
7900 +])# _PKG_SHORT_ERRORS_SUPPORTED
7901
7902 -# Whether libtool must link a program against all its dependency libraries.
7903 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
7904
7905 -# Compile-time system search path for libraries
7906 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7907 +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7908 +# [ACTION-IF-NOT-FOUND])
7909 +#
7910 +#
7911 +# Note that if there is a possibility the first call to
7912 +# PKG_CHECK_MODULES might not happen, you should be sure to include an
7913 +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
7914 +#
7915 +#
7916 +# --------------------------------------------------------------
7917 +AC_DEFUN([PKG_CHECK_MODULES],
7918 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7919 +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
7920 +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
7921
7922 -# Run-time system search path for libraries
7923 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7924 +pkg_failed=no
7925 +AC_MSG_CHECKING([for $1])
7926
7927 -# Fix the shell variable \$srcfile for the compiler.
7928 -fix_srcfile_path=$lt_fix_srcfile_path
7929 +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7930 +_PKG_CONFIG([$1][_LIBS], [libs], [$2])
7931
7932 -# Set to yes if exported symbols are required.
7933 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
7934 +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
7935 +and $1[]_LIBS to avoid the need to call pkg-config.
7936 +See the pkg-config man page for more details.])
7937
7938 -# The commands to list exported symbols.
7939 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
7940 +if test $pkg_failed = yes; then
7941 + AC_MSG_RESULT([no])
7942 + _PKG_SHORT_ERRORS_SUPPORTED
7943 + if test $_pkg_short_errors_supported = yes; then
7944 + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
7945 + else
7946 + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
7947 + fi
7948 + # Put the nasty error message in config.log where it belongs
7949 + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7950
7951 -# The commands to extract the exported symbol list from a shared archive.
7952 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
7953 + m4_default([$4], [AC_MSG_ERROR(
7954 +[Package requirements ($2) were not met:
7955
7956 -# Symbols that should not be listed in the preloaded symbols.
7957 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
7958 +$$1_PKG_ERRORS
7959
7960 -# Symbols that must always be exported.
7961 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
7962 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
7963 +installed software in a non-standard prefix.
7964
7965 -ifelse([$1],[],
7966 -[# ### END LIBTOOL CONFIG],
7967 -[# ### END LIBTOOL TAG CONFIG: $tagname])
7968 +_PKG_TEXT])[]dnl
7969 + ])
7970 +elif test $pkg_failed = untried; then
7971 + AC_MSG_RESULT([no])
7972 + m4_default([$4], [AC_MSG_FAILURE(
7973 +[The pkg-config script could not be found or is too old. Make sure it
7974 +is in your PATH or set the PKG_CONFIG environment variable to the full
7975 +path to pkg-config.
7976
7977 -__EOF__
7978 +_PKG_TEXT
7979
7980 -ifelse([$1],[], [
7981 - case $host_os in
7982 - aix3*)
7983 - cat <<\EOF >> "$cfgfile"
7984 +To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
7985 + ])
7986 +else
7987 + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7988 + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
7989 + AC_MSG_RESULT([yes])
7990 + $3
7991 +fi[]dnl
7992 +])# PKG_CHECK_MODULES
7993
7994 -# AIX sometimes has problems with the GCC collect2 program. For some
7995 -# reason, if we set the COLLECT_NAMES environment variable, the problems
7996 -# vanish in a puff of smoke.
7997 -if test "X${COLLECT_NAMES+set}" != Xset; then
7998 - COLLECT_NAMES=
7999 - export COLLECT_NAMES
8000 -fi
8001 -EOF
8002 - ;;
8003 - esac
8004 +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
8005 +# Foundation, Inc.
8006 +#
8007 +# This file is free software; the Free Software Foundation
8008 +# gives unlimited permission to copy and/or distribute it,
8009 +# with or without modifications, as long as this notice is preserved.
8010
8011 - # We use sed instead of cat because bash on DJGPP gets confused if
8012 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
8013 - # text mode, it properly converts lines to CR/LF. This bash problem
8014 - # is reportedly fixed, but why not run on old versions too?
8015 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8016 +# serial 1
8017
8018 - mv -f "$cfgfile" "$ofile" || \
8019 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8020 - chmod +x "$ofile"
8021 +# AM_AUTOMAKE_VERSION(VERSION)
8022 +# ----------------------------
8023 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
8024 +# generated from the m4 files accompanying Automake X.Y.
8025 +# (This private macro should not be called outside this file.)
8026 +AC_DEFUN([AM_AUTOMAKE_VERSION],
8027 +[am__api_version='1.11'
8028 +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8029 +dnl require some minimum version. Point them to the right macro.
8030 +m4_if([$1], [1.11.3], [],
8031 + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8032 ])
8033 -else
8034 - # If there is no Makefile yet, we rely on a make rule to execute
8035 - # `config.status --recheck' to rerun these tests and create the
8036 - # libtool script then.
8037 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8038 - if test -f "$ltmain_in"; then
8039 - test -f Makefile && make "$ltmain"
8040 - fi
8041 -fi
8042 -])# AC_LIBTOOL_CONFIG
8043
8044 +# _AM_AUTOCONF_VERSION(VERSION)
8045 +# -----------------------------
8046 +# aclocal traces this macro to find the Autoconf version.
8047 +# This is a private macro too. Using m4_define simplifies
8048 +# the logic in aclocal, which can simply ignore this definition.
8049 +m4_define([_AM_AUTOCONF_VERSION], [])
8050
8051 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
8052 -# -------------------------------------------
8053 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
8054 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
8055 +# AM_SET_CURRENT_AUTOMAKE_VERSION
8056 +# -------------------------------
8057 +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8058 +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8059 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8060 +[AM_AUTOMAKE_VERSION([1.11.3])dnl
8061 +m4_ifndef([AC_AUTOCONF_VERSION],
8062 + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8063 +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8064
8065 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
8066 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
8067
8068 -if test "$GCC" = yes; then
8069 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
8070 +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8071 +#
8072 +# This file is free software; the Free Software Foundation
8073 +# gives unlimited permission to copy and/or distribute it,
8074 +# with or without modifications, as long as this notice is preserved.
8075
8076 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
8077 - lt_cv_prog_compiler_rtti_exceptions,
8078 - [-fno-rtti -fno-exceptions], [],
8079 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
8080 -fi
8081 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
8082 -
8083 -
8084 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
8085 -# ---------------------------------
8086 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
8087 -[AC_REQUIRE([AC_CANONICAL_HOST])
8088 -AC_REQUIRE([LT_AC_PROG_SED])
8089 -AC_REQUIRE([AC_PROG_NM])
8090 -AC_REQUIRE([AC_OBJEXT])
8091 -# Check for command to grab the raw symbol name followed by C symbol from nm.
8092 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
8093 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
8094 -[
8095 -# These are sane defaults that work on at least a few old systems.
8096 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8097 -
8098 -# Character class describing NM global symbol codes.
8099 -symcode='[[BCDEGRST]]'
8100 -
8101 -# Regexp to match symbols that can be accessed directly from C.
8102 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
8103 -
8104 -# Transform an extracted symbol line into a proper C declaration
8105 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8106 -
8107 -# Transform an extracted symbol line into symbol name and symbol address
8108 -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8109 -
8110 -# Define system-specific variables.
8111 -case $host_os in
8112 -aix*)
8113 - symcode='[[BCDT]]'
8114 - ;;
8115 -cygwin* | mingw* | pw32*)
8116 - symcode='[[ABCDGISTW]]'
8117 - ;;
8118 -hpux*) # Its linker distinguishes data from code symbols
8119 - if test "$host_cpu" = ia64; then
8120 - symcode='[[ABCDEGRST]]'
8121 - fi
8122 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8123 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8124 - ;;
8125 -linux* | k*bsd*-gnu)
8126 - if test "$host_cpu" = ia64; then
8127 - symcode='[[ABCDGIRSTW]]'
8128 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8129 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8130 - fi
8131 - ;;
8132 -irix* | nonstopux*)
8133 - symcode='[[BCDEGRST]]'
8134 - ;;
8135 -osf*)
8136 - symcode='[[BCDEGQRST]]'
8137 - ;;
8138 -solaris*)
8139 - symcode='[[BDRT]]'
8140 - ;;
8141 -sco3.2v5*)
8142 - symcode='[[DT]]'
8143 - ;;
8144 -sysv4.2uw2*)
8145 - symcode='[[DT]]'
8146 - ;;
8147 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
8148 - symcode='[[ABDT]]'
8149 - ;;
8150 -sysv4)
8151 - symcode='[[DFNSTU]]'
8152 - ;;
8153 -esac
8154 +# serial 1
8155
8156 -# Handle CRLF in mingw tool chain
8157 -opt_cr=
8158 -case $build_os in
8159 -mingw*)
8160 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8161 - ;;
8162 -esac
8163 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8164 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8165 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8166 +#
8167 +# Of course, Automake must honor this variable whenever it calls a
8168 +# tool from the auxiliary directory. The problem is that $srcdir (and
8169 +# therefore $ac_aux_dir as well) can be either absolute or relative,
8170 +# depending on how configure is run. This is pretty annoying, since
8171 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
8172 +# source directory, any form will work fine, but in subdirectories a
8173 +# relative path needs to be adjusted first.
8174 +#
8175 +# $ac_aux_dir/missing
8176 +# fails when called from a subdirectory if $ac_aux_dir is relative
8177 +# $top_srcdir/$ac_aux_dir/missing
8178 +# fails if $ac_aux_dir is absolute,
8179 +# fails when called from a subdirectory in a VPATH build with
8180 +# a relative $ac_aux_dir
8181 +#
8182 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8183 +# are both prefixed by $srcdir. In an in-source build this is usually
8184 +# harmless because $srcdir is `.', but things will broke when you
8185 +# start a VPATH build or use an absolute $srcdir.
8186 +#
8187 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8188 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8189 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8190 +# and then we would define $MISSING as
8191 +# MISSING="\${SHELL} $am_aux_dir/missing"
8192 +# This will work as long as MISSING is not called from configure, because
8193 +# unfortunately $(top_srcdir) has no meaning in configure.
8194 +# However there are other variables, like CC, which are often used in
8195 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
8196 +#
8197 +# Another solution, used here, is to always expand $ac_aux_dir to an
8198 +# absolute PATH. The drawback is that using absolute paths prevent a
8199 +# configured tree to be moved without reconfiguration.
8200
8201 -# If we're using GNU nm, then use its standard symbol codes.
8202 -case `$NM -V 2>&1` in
8203 -*GNU* | *'with BFD'*)
8204 - symcode='[[ABCDGIRSTW]]' ;;
8205 -esac
8206 +AC_DEFUN([AM_AUX_DIR_EXPAND],
8207 +[dnl Rely on autoconf to set up CDPATH properly.
8208 +AC_PREREQ([2.50])dnl
8209 +# expand $ac_aux_dir to an absolute path
8210 +am_aux_dir=`cd $ac_aux_dir && pwd`
8211 +])
8212
8213 -# Try without a prefix undercore, then with it.
8214 -for ac_symprfx in "" "_"; do
8215 +# AM_CONDITIONAL -*- Autoconf -*-
8216
8217 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8218 - symxfrm="\\1 $ac_symprfx\\2 \\2"
8219 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8220 +# Free Software Foundation, Inc.
8221 +#
8222 +# This file is free software; the Free Software Foundation
8223 +# gives unlimited permission to copy and/or distribute it,
8224 +# with or without modifications, as long as this notice is preserved.
8225
8226 - # Write the raw and C identifiers.
8227 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8228 +# serial 9
8229
8230 - # Check to see that the pipe works correctly.
8231 - pipe_works=no
8232 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8233 +# -------------------------------------
8234 +# Define a conditional.
8235 +AC_DEFUN([AM_CONDITIONAL],
8236 +[AC_PREREQ(2.52)dnl
8237 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8238 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8239 +AC_SUBST([$1_TRUE])dnl
8240 +AC_SUBST([$1_FALSE])dnl
8241 +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
8242 +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
8243 +m4_define([_AM_COND_VALUE_$1], [$2])dnl
8244 +if $2; then
8245 + $1_TRUE=
8246 + $1_FALSE='#'
8247 +else
8248 + $1_TRUE='#'
8249 + $1_FALSE=
8250 +fi
8251 +AC_CONFIG_COMMANDS_PRE(
8252 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8253 + AC_MSG_ERROR([[conditional "$1" was never defined.
8254 +Usually this means the macro was only invoked conditionally.]])
8255 +fi])])
8256
8257 - rm -f conftest*
8258 - cat > conftest.$ac_ext <<EOF
8259 -#ifdef __cplusplus
8260 -extern "C" {
8261 -#endif
8262 -char nm_test_var;
8263 -void nm_test_func(){}
8264 -#ifdef __cplusplus
8265 -}
8266 -#endif
8267 -int main(){nm_test_var='a';nm_test_func();return(0);}
8268 -EOF
8269 -
8270 - if AC_TRY_EVAL(ac_compile); then
8271 - # Now try to grab the symbols.
8272 - nlist=conftest.nm
8273 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
8274 - # Try sorting and uniquifying the output.
8275 - if sort "$nlist" | uniq > "$nlist"T; then
8276 - mv -f "$nlist"T "$nlist"
8277 - else
8278 - rm -f "$nlist"T
8279 - fi
8280 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
8281 +# 2010, 2011 Free Software Foundation, Inc.
8282 +#
8283 +# This file is free software; the Free Software Foundation
8284 +# gives unlimited permission to copy and/or distribute it,
8285 +# with or without modifications, as long as this notice is preserved.
8286
8287 - # Make sure that we snagged all the symbols we need.
8288 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
8289 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
8290 - cat <<EOF > conftest.$ac_ext
8291 -#ifdef __cplusplus
8292 -extern "C" {
8293 -#endif
8294 -
8295 -EOF
8296 - # Now generate the symbol file.
8297 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8298 -
8299 - cat <<EOF >> conftest.$ac_ext
8300 -#if defined (__STDC__) && __STDC__
8301 -# define lt_ptr_t void *
8302 -#else
8303 -# define lt_ptr_t char *
8304 -# define const
8305 -#endif
8306 -
8307 -/* The mapping between symbol names and symbols. */
8308 -const struct {
8309 - const char *name;
8310 - lt_ptr_t address;
8311 -}
8312 -lt_preloaded_symbols[[]] =
8313 -{
8314 -EOF
8315 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8316 - cat <<\EOF >> conftest.$ac_ext
8317 - {0, (lt_ptr_t) 0}
8318 -};
8319 +# serial 12
8320
8321 -#ifdef __cplusplus
8322 -}
8323 -#endif
8324 -EOF
8325 - # Now try linking the two files.
8326 - mv conftest.$ac_objext conftstm.$ac_objext
8327 - lt_save_LIBS="$LIBS"
8328 - lt_save_CFLAGS="$CFLAGS"
8329 - LIBS="conftstm.$ac_objext"
8330 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
8331 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
8332 - pipe_works=yes
8333 - fi
8334 - LIBS="$lt_save_LIBS"
8335 - CFLAGS="$lt_save_CFLAGS"
8336 - else
8337 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
8338 - fi
8339 - else
8340 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
8341 - fi
8342 - else
8343 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
8344 - fi
8345 - else
8346 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
8347 - cat conftest.$ac_ext >&5
8348 - fi
8349 - rm -rf conftest* conftst*
8350 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8351 +# written in clear, in which case automake, when reading aclocal.m4,
8352 +# will think it sees a *use*, and therefore will trigger all it's
8353 +# C support machinery. Also note that it means that autoscan, seeing
8354 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8355
8356 - # Do not use the global_symbol_pipe unless it works.
8357 - if test "$pipe_works" = yes; then
8358 - break
8359 - else
8360 - lt_cv_sys_global_symbol_pipe=
8361 - fi
8362 -done
8363 -])
8364 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
8365 - lt_cv_sys_global_symbol_to_cdecl=
8366 -fi
8367 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8368 - AC_MSG_RESULT(failed)
8369 -else
8370 - AC_MSG_RESULT(ok)
8371 -fi
8372 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
8373 -
8374 -
8375 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
8376 -# ---------------------------------------
8377 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
8378 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
8379 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8380 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
8381 -
8382 -AC_MSG_CHECKING([for $compiler option to produce PIC])
8383 - ifelse([$1],[CXX],[
8384 - # C++ specific cases for pic, static, wl, etc.
8385 - if test "$GXX" = yes; then
8386 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8387 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
8388 -
8389 - case $host_os in
8390 - aix*)
8391 - # All AIX code is PIC.
8392 - if test "$host_cpu" = ia64; then
8393 - # AIX 5 now supports IA64 processor
8394 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8395 - fi
8396 - ;;
8397 - amigaos*)
8398 - # FIXME: we need at least 68020 code to build shared libraries, but
8399 - # adding the `-m68020' flag to GCC prevents building anything better,
8400 - # like `-m68040'.
8401 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
8402 - ;;
8403 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8404 - # PIC is the default for these OSes.
8405 - ;;
8406 - mingw* | cygwin* | os2* | pw32*)
8407 - # This hack is so that the source file can tell whether it is being
8408 - # built for inclusion in a dll (and should export symbols for example).
8409 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
8410 - # (--disable-auto-import) libraries
8411 - m4_if([$1], [GCJ], [],
8412 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8413 - ;;
8414 - darwin* | rhapsody*)
8415 - # PIC is the default on this platform
8416 - # Common symbols not allowed in MH_DYLIB files
8417 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
8418 - ;;
8419 - *djgpp*)
8420 - # DJGPP does not support shared libraries at all
8421 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8422 - ;;
8423 - interix[[3-9]]*)
8424 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8425 - # Instead, we relocate shared libraries at runtime.
8426 - ;;
8427 - sysv4*MP*)
8428 - if test -d /usr/nec; then
8429 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
8430 - fi
8431 - ;;
8432 - hpux*)
8433 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8434 - # not for PA HP-UX.
8435 - case $host_cpu in
8436 - hppa*64*|ia64*)
8437 - ;;
8438 - *)
8439 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8440 - ;;
8441 - esac
8442 - ;;
8443 - *)
8444 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8445 - ;;
8446 - esac
8447 - else
8448 - case $host_os in
8449 - aix[[4-9]]*)
8450 - # All AIX code is PIC.
8451 - if test "$host_cpu" = ia64; then
8452 - # AIX 5 now supports IA64 processor
8453 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8454 - else
8455 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
8456 - fi
8457 - ;;
8458 - chorus*)
8459 - case $cc_basename in
8460 - cxch68*)
8461 - # Green Hills C++ Compiler
8462 - # _LT_AC_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"
8463 - ;;
8464 - esac
8465 - ;;
8466 - darwin*)
8467 - # PIC is the default on this platform
8468 - # Common symbols not allowed in MH_DYLIB files
8469 - case $cc_basename in
8470 - xlc*)
8471 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
8472 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8473 - ;;
8474 - esac
8475 - ;;
8476 - dgux*)
8477 - case $cc_basename in
8478 - ec++*)
8479 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8480 - ;;
8481 - ghcx*)
8482 - # Green Hills C++ Compiler
8483 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8484 - ;;
8485 - *)
8486 - ;;
8487 - esac
8488 - ;;
8489 - freebsd* | dragonfly*)
8490 - # FreeBSD uses GNU C++
8491 - ;;
8492 - hpux9* | hpux10* | hpux11*)
8493 - case $cc_basename in
8494 - CC*)
8495 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8496 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
8497 - if test "$host_cpu" != ia64; then
8498 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
8499 - fi
8500 - ;;
8501 - aCC*)
8502 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8503 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
8504 - case $host_cpu in
8505 - hppa*64*|ia64*)
8506 - # +Z the default
8507 - ;;
8508 - *)
8509 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
8510 - ;;
8511 - esac
8512 - ;;
8513 - *)
8514 - ;;
8515 - esac
8516 - ;;
8517 - interix*)
8518 - # This is c89, which is MS Visual C++ (no shared libs)
8519 - # Anyone wants to do a port?
8520 - ;;
8521 - irix5* | irix6* | nonstopux*)
8522 - case $cc_basename in
8523 - CC*)
8524 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8525 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8526 - # CC pic flag -KPIC is the default.
8527 - ;;
8528 - *)
8529 - ;;
8530 - esac
8531 - ;;
8532 - linux* | k*bsd*-gnu)
8533 - case $cc_basename in
8534 - KCC*)
8535 - # KAI C++ Compiler
8536 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
8537 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8538 - ;;
8539 - icpc* | ecpc*)
8540 - # Intel C++
8541 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8542 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8543 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
8544 - ;;
8545 - pgCC* | pgcpp*)
8546 - # Portland Group C++ compiler.
8547 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8548 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
8549 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8550 - ;;
8551 - cxx*)
8552 - # Compaq C++
8553 - # Make sure the PIC flag is empty. It appears that all Alpha
8554 - # Linux and Compaq Tru64 Unix objects are PIC.
8555 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8556 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8557 - ;;
8558 - *)
8559 - case `$CC -V 2>&1 | sed 5q` in
8560 - *Sun\ C*)
8561 - # Sun C++ 5.9
8562 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8563 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8564 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
8565 - ;;
8566 - esac
8567 - ;;
8568 - esac
8569 - ;;
8570 - lynxos*)
8571 - ;;
8572 - m88k*)
8573 - ;;
8574 - mvs*)
8575 - case $cc_basename in
8576 - cxx*)
8577 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
8578 - ;;
8579 - *)
8580 - ;;
8581 - esac
8582 - ;;
8583 - netbsd*)
8584 - ;;
8585 - osf3* | osf4* | osf5*)
8586 - case $cc_basename in
8587 - KCC*)
8588 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
8589 - ;;
8590 - RCC*)
8591 - # Rational C++ 2.4.1
8592 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8593 - ;;
8594 - cxx*)
8595 - # Digital/Compaq C++
8596 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8597 - # Make sure the PIC flag is empty. It appears that all Alpha
8598 - # Linux and Compaq Tru64 Unix objects are PIC.
8599 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8600 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8601 - ;;
8602 - *)
8603 - ;;
8604 - esac
8605 - ;;
8606 - psos*)
8607 - ;;
8608 - solaris*)
8609 - case $cc_basename in
8610 - CC*)
8611 - # Sun C++ 4.2, 5.x and Centerline C++
8612 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8613 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8614 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
8615 - ;;
8616 - gcx*)
8617 - # Green Hills C++ Compiler
8618 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
8619 - ;;
8620 - *)
8621 - ;;
8622 - esac
8623 - ;;
8624 - sunos4*)
8625 - case $cc_basename in
8626 - CC*)
8627 - # Sun C++ 4.x
8628 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8629 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8630 - ;;
8631 - lcc*)
8632 - # Lucid
8633 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8634 - ;;
8635 - *)
8636 - ;;
8637 - esac
8638 - ;;
8639 - tandem*)
8640 - case $cc_basename in
8641 - NCC*)
8642 - # NonStop-UX NCC 3.20
8643 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8644 - ;;
8645 - *)
8646 - ;;
8647 - esac
8648 - ;;
8649 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8650 - case $cc_basename in
8651 - CC*)
8652 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8653 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8654 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8655 - ;;
8656 - esac
8657 - ;;
8658 - vxworks*)
8659 - ;;
8660 - *)
8661 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8662 - ;;
8663 - esac
8664 - fi
8665 -],
8666 -[
8667 - if test "$GCC" = yes; then
8668 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8669 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
8670 -
8671 - case $host_os in
8672 - aix*)
8673 - # All AIX code is PIC.
8674 - if test "$host_cpu" = ia64; then
8675 - # AIX 5 now supports IA64 processor
8676 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8677 - fi
8678 - ;;
8679
8680 - amigaos*)
8681 - # FIXME: we need at least 68020 code to build shared libraries, but
8682 - # adding the `-m68020' flag to GCC prevents building anything better,
8683 - # like `-m68040'.
8684 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
8685 - ;;
8686 +# _AM_DEPENDENCIES(NAME)
8687 +# ----------------------
8688 +# See how the compiler implements dependency checking.
8689 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
8690 +# We try a few techniques and use that to set a single cache variable.
8691 +#
8692 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8693 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8694 +# dependency, and given that the user is not expected to run this macro,
8695 +# just rely on AC_PROG_CC.
8696 +AC_DEFUN([_AM_DEPENDENCIES],
8697 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
8698 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8699 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8700 +AC_REQUIRE([AM_DEP_TRACK])dnl
8701
8702 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8703 - # PIC is the default for these OSes.
8704 - ;;
8705 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8706 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
8707 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8708 + [$1], UPC, [depcc="$UPC" am_compiler_list=],
8709 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8710 + [depcc="$$1" am_compiler_list=])
8711
8712 - mingw* | cygwin* | pw32* | os2*)
8713 - # This hack is so that the source file can tell whether it is being
8714 - # built for inclusion in a dll (and should export symbols for example).
8715 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
8716 - # (--disable-auto-import) libraries
8717 - m4_if([$1], [GCJ], [],
8718 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8719 - ;;
8720 +AC_CACHE_CHECK([dependency style of $depcc],
8721 + [am_cv_$1_dependencies_compiler_type],
8722 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8723 + # We make a subdir and do the tests there. Otherwise we can end up
8724 + # making bogus files that we don't know about and never remove. For
8725 + # instance it was reported that on HP-UX the gcc test will end up
8726 + # making a dummy file named `D' -- because `-MD' means `put the output
8727 + # in D'.
8728 + rm -rf conftest.dir
8729 + mkdir conftest.dir
8730 + # Copy depcomp to subdir because otherwise we won't find it if we're
8731 + # using a relative directory.
8732 + cp "$am_depcomp" conftest.dir
8733 + cd conftest.dir
8734 + # We will build objects and dependencies in a subdirectory because
8735 + # it helps to detect inapplicable dependency modes. For instance
8736 + # both Tru64's cc and ICC support -MD to output dependencies as a
8737 + # side effect of compilation, but ICC will put the dependencies in
8738 + # the current directory while Tru64 will put them in the object
8739 + # directory.
8740 + mkdir sub
8741
8742 - darwin* | rhapsody*)
8743 - # PIC is the default on this platform
8744 - # Common symbols not allowed in MH_DYLIB files
8745 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
8746 - ;;
8747 + am_cv_$1_dependencies_compiler_type=none
8748 + if test "$am_compiler_list" = ""; then
8749 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8750 + fi
8751 + am__universal=false
8752 + m4_case([$1], [CC],
8753 + [case " $depcc " in #(
8754 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
8755 + esac],
8756 + [CXX],
8757 + [case " $depcc " in #(
8758 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
8759 + esac])
8760
8761 - interix[[3-9]]*)
8762 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8763 - # Instead, we relocate shared libraries at runtime.
8764 - ;;
8765 + for depmode in $am_compiler_list; do
8766 + # Setup a source with many dependencies, because some compilers
8767 + # like to wrap large dependency lists on column 80 (with \), and
8768 + # we should not choose a depcomp mode which is confused by this.
8769 + #
8770 + # We need to recreate these files for each test, as the compiler may
8771 + # overwrite some of them when testing with obscure command lines.
8772 + # This happens at least with the AIX C compiler.
8773 + : > sub/conftest.c
8774 + for i in 1 2 3 4 5 6; do
8775 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
8776 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8777 + # Solaris 8's {/usr,}/bin/sh.
8778 + touch sub/conftst$i.h
8779 + done
8780 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8781
8782 - msdosdjgpp*)
8783 - # Just because we use GCC doesn't mean we suddenly get shared libraries
8784 - # on systems that don't support them.
8785 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8786 - enable_shared=no
8787 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
8788 + # mode. It turns out that the SunPro C++ compiler does not properly
8789 + # handle `-M -o', and we need to detect this. Also, some Intel
8790 + # versions had trouble with output in subdirs
8791 + am__obj=sub/conftest.${OBJEXT-o}
8792 + am__minus_obj="-o $am__obj"
8793 + case $depmode in
8794 + gcc)
8795 + # This depmode causes a compiler race in universal mode.
8796 + test "$am__universal" = false || continue
8797 ;;
8798 -
8799 - sysv4*MP*)
8800 - if test -d /usr/nec; then
8801 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
8802 + nosideeffect)
8803 + # after this tag, mechanisms are not by side-effect, so they'll
8804 + # only be used when explicitly requested
8805 + if test "x$enable_dependency_tracking" = xyes; then
8806 + continue
8807 + else
8808 + break
8809 fi
8810 ;;
8811 -
8812 - hpux*)
8813 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8814 - # not for PA HP-UX.
8815 - case $host_cpu in
8816 - hppa*64*|ia64*)
8817 - # +Z the default
8818 - ;;
8819 - *)
8820 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8821 - ;;
8822 - esac
8823 - ;;
8824 -
8825 - *)
8826 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8827 + msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8828 + # This compiler won't grok `-c -o', but also, the minuso test has
8829 + # not run yet. These depmodes are late enough in the game, and
8830 + # so weak that their functioning should not be impacted.
8831 + am__obj=conftest.${OBJEXT-o}
8832 + am__minus_obj=
8833 ;;
8834 + none) break ;;
8835 esac
8836 - else
8837 - # PORTME Check for flag to pass linker flags through the system compiler.
8838 - case $host_os in
8839 - aix*)
8840 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8841 - if test "$host_cpu" = ia64; then
8842 - # AIX 5 now supports IA64 processor
8843 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8844 - else
8845 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
8846 + if depmode=$depmode \
8847 + source=sub/conftest.c object=$am__obj \
8848 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8849 + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8850 + >/dev/null 2>conftest.err &&
8851 + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8852 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8853 + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8854 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8855 + # icc doesn't choke on unknown options, it will just issue warnings
8856 + # or remarks (even with -Werror). So we grep stderr for any message
8857 + # that says an option was ignored or not supported.
8858 + # When given -MP, icc 7.0 and 7.1 complain thusly:
8859 + # icc: Command line warning: ignoring option '-M'; no argument required
8860 + # The diagnosis changed in icc 8.0:
8861 + # icc: Command line remark: option '-MP' not supported
8862 + if (grep 'ignoring option' conftest.err ||
8863 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8864 + am_cv_$1_dependencies_compiler_type=$depmode
8865 + break
8866 fi
8867 - ;;
8868 - darwin*)
8869 - # PIC is the default on this platform
8870 - # Common symbols not allowed in MH_DYLIB files
8871 - case $cc_basename in
8872 - xlc*)
8873 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
8874 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8875 - ;;
8876 - esac
8877 - ;;
8878 -
8879 - mingw* | cygwin* | pw32* | os2*)
8880 - # This hack is so that the source file can tell whether it is being
8881 - # built for inclusion in a dll (and should export symbols for example).
8882 - m4_if([$1], [GCJ], [],
8883 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8884 - ;;
8885 -
8886 - hpux9* | hpux10* | hpux11*)
8887 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8888 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8889 - # not for PA HP-UX.
8890 - case $host_cpu in
8891 - hppa*64*|ia64*)
8892 - # +Z the default
8893 - ;;
8894 - *)
8895 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
8896 - ;;
8897 - esac
8898 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
8899 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
8900 - ;;
8901 -
8902 - irix5* | irix6* | nonstopux*)
8903 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8904 - # PIC (with -KPIC) is the default.
8905 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8906 - ;;
8907 -
8908 - newsos6)
8909 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8910 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8911 - ;;
8912 -
8913 - linux* | k*bsd*-gnu)
8914 - case $cc_basename in
8915 - icc* | ecc*)
8916 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8917 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8918 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
8919 - ;;
8920 - pgcc* | pgf77* | pgf90* | pgf95*)
8921 - # Portland Group compilers (*not* the Pentium gcc compiler,
8922 - # which looks to be a dead project)
8923 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8924 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
8925 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8926 - ;;
8927 - ccc*)
8928 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8929 - # All Alpha code is PIC.
8930 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8931 - ;;
8932 - *)
8933 - case `$CC -V 2>&1 | sed 5q` in
8934 - *Sun\ C*)
8935 - # Sun C 5.9
8936 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8937 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8938 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8939 - ;;
8940 - *Sun\ F*)
8941 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
8942 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8943 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8944 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
8945 - ;;
8946 - esac
8947 - ;;
8948 - esac
8949 - ;;
8950 -
8951 - osf3* | osf4* | osf5*)
8952 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8953 - # All OSF/1 code is PIC.
8954 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8955 - ;;
8956 + fi
8957 + done
8958
8959 - rdos*)
8960 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8961 - ;;
8962 + cd ..
8963 + rm -rf conftest.dir
8964 +else
8965 + am_cv_$1_dependencies_compiler_type=none
8966 +fi
8967 +])
8968 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
8969 +AM_CONDITIONAL([am__fastdep$1], [
8970 + test "x$enable_dependency_tracking" != xno \
8971 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
8972 +])
8973
8974 - solaris*)
8975 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8976 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8977 - case $cc_basename in
8978 - f77* | f90* | f95*)
8979 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
8980 - *)
8981 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
8982 - esac
8983 - ;;
8984
8985 - sunos4*)
8986 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
8987 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
8988 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8989 - ;;
8990 +# AM_SET_DEPDIR
8991 +# -------------
8992 +# Choose a directory name for dependency files.
8993 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
8994 +AC_DEFUN([AM_SET_DEPDIR],
8995 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8996 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
8997 +])
8998
8999 - sysv4 | sysv4.2uw2* | sysv4.3*)
9000 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9001 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9002 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9003 - ;;
9004
9005 - sysv4*MP*)
9006 - if test -d /usr/nec ;then
9007 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
9008 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9009 - fi
9010 - ;;
9011 +# AM_DEP_TRACK
9012 +# ------------
9013 +AC_DEFUN([AM_DEP_TRACK],
9014 +[AC_ARG_ENABLE(dependency-tracking,
9015 +[ --disable-dependency-tracking speeds up one-time build
9016 + --enable-dependency-tracking do not reject slow dependency extractors])
9017 +if test "x$enable_dependency_tracking" != xno; then
9018 + am_depcomp="$ac_aux_dir/depcomp"
9019 + AMDEPBACKSLASH='\'
9020 + am__nodep='_no'
9021 +fi
9022 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9023 +AC_SUBST([AMDEPBACKSLASH])dnl
9024 +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9025 +AC_SUBST([am__nodep])dnl
9026 +_AM_SUBST_NOTMAKE([am__nodep])dnl
9027 +])
9028
9029 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9030 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9031 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9032 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9033 - ;;
9034 +# Generate code to set up dependency tracking. -*- Autoconf -*-
9035
9036 - unicos*)
9037 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9038 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
9039 - ;;
9040 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9041 +# Free Software Foundation, Inc.
9042 +#
9043 +# This file is free software; the Free Software Foundation
9044 +# gives unlimited permission to copy and/or distribute it,
9045 +# with or without modifications, as long as this notice is preserved.
9046
9047 - uts4*)
9048 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9049 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9050 - ;;
9051 +#serial 5
9052
9053 - *)
9054 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
9055 - ;;
9056 - esac
9057 - fi
9058 -])
9059 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
9060 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
9061 +# ------------------------------
9062 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9063 +[{
9064 + # Autoconf 2.62 quotes --file arguments for eval, but not when files
9065 + # are listed without --file. Let's play safe and only enable the eval
9066 + # if we detect the quoting.
9067 + case $CONFIG_FILES in
9068 + *\'*) eval set x "$CONFIG_FILES" ;;
9069 + *) set x $CONFIG_FILES ;;
9070 + esac
9071 + shift
9072 + for mf
9073 + do
9074 + # Strip MF so we end up with the name of the file.
9075 + mf=`echo "$mf" | sed -e 's/:.*$//'`
9076 + # Check whether this is an Automake generated Makefile or not.
9077 + # We used to match only the files named `Makefile.in', but
9078 + # some people rename them; so instead we look at the file content.
9079 + # Grep'ing the first line is not enough: some people post-process
9080 + # each Makefile.in and add a new line on top of each file to say so.
9081 + # Grep'ing the whole file is not good either: AIX grep has a line
9082 + # limit of 2048, but all sed's we know have understand at least 4000.
9083 + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9084 + dirpart=`AS_DIRNAME("$mf")`
9085 + else
9086 + continue
9087 + fi
9088 + # Extract the definition of DEPDIR, am__include, and am__quote
9089 + # from the Makefile without running `make'.
9090 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9091 + test -z "$DEPDIR" && continue
9092 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
9093 + test -z "am__include" && continue
9094 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9095 + # When using ansi2knr, U may be empty or an underscore; expand it
9096 + U=`sed -n 's/^U = //p' < "$mf"`
9097 + # Find all dependency output files, they are included files with
9098 + # $(DEPDIR) in their names. We invoke sed twice because it is the
9099 + # simplest approach to changing $(DEPDIR) to its actual value in the
9100 + # expansion.
9101 + for file in `sed -n "
9102 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9103 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9104 + # Make sure the directory exists.
9105 + test -f "$dirpart/$file" && continue
9106 + fdir=`AS_DIRNAME(["$file"])`
9107 + AS_MKDIR_P([$dirpart/$fdir])
9108 + # echo "creating $dirpart/$file"
9109 + echo '# dummy' > "$dirpart/$file"
9110 + done
9111 + done
9112 +}
9113 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9114
9115 -#
9116 -# Check to make sure the PIC flag actually works.
9117 -#
9118 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
9119 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
9120 - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
9121 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
9122 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
9123 - "" | " "*) ;;
9124 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
9125 - esac],
9126 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9127 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
9128 -fi
9129 -case $host_os in
9130 - # For platforms which do not support PIC, -DPIC is meaningless:
9131 - *djgpp*)
9132 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9133 - ;;
9134 - *)
9135 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
9136 - ;;
9137 -esac
9138
9139 +# AM_OUTPUT_DEPENDENCY_COMMANDS
9140 +# -----------------------------
9141 +# This macro should only be invoked once -- use via AC_REQUIRE.
9142 #
9143 -# Check to make sure the static flag actually works.
9144 -#
9145 -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
9146 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
9147 - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
9148 - $lt_tmp_static_flag,
9149 - [],
9150 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
9151 +# This code is only required when automatic dependency tracking
9152 +# is enabled. FIXME. This creates each `.P' file that we will
9153 +# need in order to bootstrap the dependency handling code.
9154 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9155 +[AC_CONFIG_COMMANDS([depfiles],
9156 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9157 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9158 ])
9159
9160 +# Do all the work for Automake. -*- Autoconf -*-
9161
9162 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
9163 -# ------------------------------------
9164 -# See if the linker supports building shared libraries.
9165 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
9166 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
9167 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
9168 -ifelse([$1],[CXX],[
9169 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9170 - case $host_os in
9171 - aix[[4-9]]*)
9172 - # If we're using GNU nm, then we don't want the "-C" option.
9173 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
9174 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9175 - _LT_AC_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'
9176 - else
9177 - _LT_AC_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'
9178 - fi
9179 - ;;
9180 - pw32*)
9181 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
9182 - ;;
9183 - cygwin* | mingw*)
9184 - _LT_AC_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'
9185 - ;;
9186 - *)
9187 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9188 - ;;
9189 - esac
9190 - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
9191 -],[
9192 - runpath_var=
9193 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
9194 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9195 - _LT_AC_TAGVAR(archive_cmds, $1)=
9196 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
9197 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
9198 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
9199 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
9200 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
9201 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
9202 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
9203 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9204 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
9205 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
9206 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
9207 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9208 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
9209 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
9210 - _LT_AC_TAGVAR(module_cmds, $1)=
9211 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
9212 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
9213 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9214 - # include_expsyms should be a list of space-separated symbols to be *always*
9215 - # included in the symbol list
9216 - _LT_AC_TAGVAR(include_expsyms, $1)=
9217 - # exclude_expsyms can be an extended regexp of symbols to exclude
9218 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
9219 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9220 - # as well as any symbol that contains `d'.
9221 - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
9222 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9223 - # platforms (ab)use it in PIC code, but their linkers get confused if
9224 - # the symbol is explicitly referenced. Since portable code cannot
9225 - # rely on this symbol name, it's probably fine to never include it in
9226 - # preloaded symbol tables.
9227 - # Exclude shared library initialization/finalization symbols.
9228 -dnl Note also adjust exclude_expsyms for C++ above.
9229 - extract_expsyms_cmds=
9230 - # Just being paranoid about ensuring that cc_basename is set.
9231 - _LT_CC_BASENAME([$compiler])
9232 - case $host_os in
9233 - cygwin* | mingw* | pw32*)
9234 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
9235 - # When not using gcc, we currently assume that we are using
9236 - # Microsoft Visual C++.
9237 - if test "$GCC" != yes; then
9238 - with_gnu_ld=no
9239 - fi
9240 - ;;
9241 - interix*)
9242 - # we just hope/assume this is gcc and not c89 (= MSVC++)
9243 - with_gnu_ld=yes
9244 - ;;
9245 - openbsd*)
9246 - with_gnu_ld=no
9247 - ;;
9248 - esac
9249 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9250 +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9251 +#
9252 +# This file is free software; the Free Software Foundation
9253 +# gives unlimited permission to copy and/or distribute it,
9254 +# with or without modifications, as long as this notice is preserved.
9255
9256 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
9257 - if test "$with_gnu_ld" = yes; then
9258 - # If archive_cmds runs LD, not CC, wlarc should be empty
9259 - wlarc='${wl}'
9260 -
9261 - # Set some defaults for GNU ld with shared library support. These
9262 - # are reset later if shared libraries are not supported. Putting them
9263 - # here allows them to be overridden if necessary.
9264 - runpath_var=LD_RUN_PATH
9265 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
9266 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9267 - # ancient GNU ld didn't support --whole-archive et. al.
9268 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9269 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9270 - else
9271 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
9272 - fi
9273 - supports_anon_versioning=no
9274 - case `$LD -v 2>/dev/null` in
9275 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
9276 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9277 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9278 - *\ 2.11.*) ;; # other 2.11 versions
9279 - *) supports_anon_versioning=yes ;;
9280 - esac
9281 +# serial 16
9282
9283 - # See if GNU ld supports shared libraries.
9284 - case $host_os in
9285 - aix[[3-9]]*)
9286 - # On AIX/PPC, the GNU linker is very broken
9287 - if test "$host_cpu" != ia64; then
9288 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9289 - cat <<EOF 1>&2
9290 -
9291 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9292 -*** to be unable to reliably create shared libraries on AIX.
9293 -*** Therefore, libtool is disabling shared libraries support. If you
9294 -*** really care for shared libraries, you may want to modify your PATH
9295 -*** so that a non-GNU linker is found, and then restart.
9296 -
9297 -EOF
9298 - fi
9299 - ;;
9300 +# This macro actually does too much. Some checks are only needed if
9301 +# your package does certain things. But this isn't really a big deal.
9302
9303 - amigaos*)
9304 - _LT_AC_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)'
9305 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9306 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9307 -
9308 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9309 - # that the semantics of dynamic libraries on AmigaOS, at least up
9310 - # to version 4, is to share data among multiple programs linked
9311 - # with the same dynamic library. Since this doesn't match the
9312 - # behavior of shared libraries on other platforms, we can't use
9313 - # them.
9314 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9315 - ;;
9316 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9317 +# AM_INIT_AUTOMAKE([OPTIONS])
9318 +# -----------------------------------------------
9319 +# The call with PACKAGE and VERSION arguments is the old style
9320 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
9321 +# and VERSION should now be passed to AC_INIT and removed from
9322 +# the call to AM_INIT_AUTOMAKE.
9323 +# We support both call styles for the transition. After
9324 +# the next Automake release, Autoconf can make the AC_INIT
9325 +# arguments mandatory, and then we can depend on a new Autoconf
9326 +# release and drop the old call support.
9327 +AC_DEFUN([AM_INIT_AUTOMAKE],
9328 +[AC_PREREQ([2.62])dnl
9329 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
9330 +dnl the ones we care about.
9331 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9332 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9333 +AC_REQUIRE([AC_PROG_INSTALL])dnl
9334 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
9335 + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9336 + # is not polluted with repeated "-I."
9337 + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9338 + # test to see if srcdir already configured
9339 + if test -f $srcdir/config.status; then
9340 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9341 + fi
9342 +fi
9343
9344 - beos*)
9345 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9346 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
9347 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9348 - # support --undefined. This deserves some investigation. FIXME
9349 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 - else
9351 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9352 - fi
9353 - ;;
9354 +# test whether we have cygpath
9355 +if test -z "$CYGPATH_W"; then
9356 + if (cygpath --version) >/dev/null 2>/dev/null; then
9357 + CYGPATH_W='cygpath -w'
9358 + else
9359 + CYGPATH_W=echo
9360 + fi
9361 +fi
9362 +AC_SUBST([CYGPATH_W])
9363
9364 - cygwin* | mingw* | pw32*)
9365 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
9366 - # as there is no search path for DLLs.
9367 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9368 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
9369 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
9370 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
9371 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
9372 -
9373 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9374 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9375 - # If the export-symbols file already is a .def file (1st line
9376 - # is EXPORTS), use it as is; otherwise, prepend...
9377 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9378 - cp $export_symbols $output_objdir/$soname.def;
9379 - else
9380 - echo EXPORTS > $output_objdir/$soname.def;
9381 - cat $export_symbols >> $output_objdir/$soname.def;
9382 - fi~
9383 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9384 - else
9385 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9386 - fi
9387 - ;;
9388 +# Define the identity of the package.
9389 +dnl Distinguish between old-style and new-style calls.
9390 +m4_ifval([$2],
9391 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9392 + AC_SUBST([PACKAGE], [$1])dnl
9393 + AC_SUBST([VERSION], [$2])],
9394 +[_AM_SET_OPTIONS([$1])dnl
9395 +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9396 +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9397 + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9398 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9399 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9400
9401 - interix[[3-9]]*)
9402 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
9403 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9404 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9405 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9406 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9407 - # Instead, shared libraries are loaded at an image base (0x10000000 by
9408 - # default) and relocated if they conflict, which is a slow very memory
9409 - # consuming and fragmenting process. To avoid this, we pick a random,
9410 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9411 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9412 - _LT_AC_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'
9413 - _LT_AC_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'
9414 - ;;
9415 +_AM_IF_OPTION([no-define],,
9416 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9417 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9418
9419 - gnu* | linux* | k*bsd*-gnu)
9420 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9421 - tmp_addflag=
9422 - case $cc_basename,$host_cpu in
9423 - pgcc*) # Portland Group C compiler
9424 - _LT_AC_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'
9425 - tmp_addflag=' $pic_flag'
9426 - ;;
9427 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9428 - _LT_AC_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'
9429 - tmp_addflag=' $pic_flag -Mnomain' ;;
9430 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9431 - tmp_addflag=' -i_dynamic' ;;
9432 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9433 - tmp_addflag=' -i_dynamic -nofor_main' ;;
9434 - ifc* | ifort*) # Intel Fortran compiler
9435 - tmp_addflag=' -nofor_main' ;;
9436 - esac
9437 - case `$CC -V 2>&1 | sed 5q` in
9438 - *Sun\ C*) # Sun C 5.9
9439 - _LT_AC_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'
9440 - tmp_sharedflag='-G' ;;
9441 - *Sun\ F*) # Sun Fortran 8.3
9442 - tmp_sharedflag='-G' ;;
9443 - *)
9444 - tmp_sharedflag='-shared' ;;
9445 - esac
9446 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447 -
9448 - if test $supports_anon_versioning = yes; then
9449 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
9450 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9451 - $echo "local: *; };" >> $output_objdir/$libname.ver~
9452 - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9453 - fi
9454 - else
9455 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9456 - fi
9457 - ;;
9458 +# Some tools Automake needs.
9459 +AC_REQUIRE([AM_SANITY_CHECK])dnl
9460 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
9461 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9462 +AM_MISSING_PROG(AUTOCONF, autoconf)
9463 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9464 +AM_MISSING_PROG(AUTOHEADER, autoheader)
9465 +AM_MISSING_PROG(MAKEINFO, makeinfo)
9466 +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9467 +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9468 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9469 +# We need awk for the "check" target. The system "awk" is bad on
9470 +# some platforms.
9471 +AC_REQUIRE([AC_PROG_AWK])dnl
9472 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9473 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9474 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9475 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9476 + [_AM_PROG_TAR([v7])])])
9477 +_AM_IF_OPTION([no-dependencies],,
9478 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
9479 + [_AM_DEPENDENCIES(CC)],
9480 + [define([AC_PROG_CC],
9481 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9482 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
9483 + [_AM_DEPENDENCIES(CXX)],
9484 + [define([AC_PROG_CXX],
9485 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9486 +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9487 + [_AM_DEPENDENCIES(OBJC)],
9488 + [define([AC_PROG_OBJC],
9489 + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9490 +])
9491 +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9492 +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9493 +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9494 +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9495 +AC_CONFIG_COMMANDS_PRE(dnl
9496 +[m4_provide_if([_AM_COMPILER_EXEEXT],
9497 + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9498 +])
9499
9500 - netbsd*)
9501 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9502 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9503 - wlarc=
9504 - else
9505 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9507 - fi
9508 - ;;
9509 +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9510 +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9511 +dnl mangled by Autoconf and run in a shell conditional statement.
9512 +m4_define([_AC_COMPILER_EXEEXT],
9513 +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9514
9515 - solaris*)
9516 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9517 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9518 - cat <<EOF 1>&2
9519 -
9520 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9521 -*** create shared libraries on Solaris systems. Therefore, libtool
9522 -*** is disabling shared libraries support. We urge you to upgrade GNU
9523 -*** binutils to release 2.9.1 or newer. Another option is to modify
9524 -*** your PATH or compiler configuration so that the native linker is
9525 -*** used, and then restart.
9526 -
9527 -EOF
9528 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9529 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9531 - else
9532 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9533 - fi
9534 - ;;
9535
9536 - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9537 - case `$LD -v 2>&1` in
9538 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
9539 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9540 - cat <<_LT_EOF 1>&2
9541 -
9542 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9543 -*** reliably create shared libraries on SCO systems. Therefore, libtool
9544 -*** is disabling shared libraries support. We urge you to upgrade GNU
9545 -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9546 -*** your PATH or compiler configuration so that the native linker is
9547 -*** used, and then restart.
9548 -
9549 -_LT_EOF
9550 - ;;
9551 - *)
9552 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9553 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9554 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9555 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9556 - else
9557 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9558 - fi
9559 - ;;
9560 - esac
9561 - ;;
9562 +# When config.status generates a header, we must update the stamp-h file.
9563 +# This file resides in the same directory as the config header
9564 +# that is generated. The stamp files are numbered to have different names.
9565
9566 - sunos4*)
9567 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9568 - wlarc=
9569 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9570 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9571 - ;;
9572 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9573 +# loop where config.status creates the headers, so we can generate
9574 +# our stamp files there.
9575 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9576 +[# Compute $1's index in $config_headers.
9577 +_am_arg=$1
9578 +_am_stamp_count=1
9579 +for _am_header in $config_headers :; do
9580 + case $_am_header in
9581 + $_am_arg | $_am_arg:* )
9582 + break ;;
9583 + * )
9584 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9585 + esac
9586 +done
9587 +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9588
9589 - *)
9590 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9591 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9592 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9593 - else
9594 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9595 - fi
9596 - ;;
9597 - esac
9598 +# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
9599 +# Inc.
9600 +#
9601 +# This file is free software; the Free Software Foundation
9602 +# gives unlimited permission to copy and/or distribute it,
9603 +# with or without modifications, as long as this notice is preserved.
9604
9605 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
9606 - runpath_var=
9607 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
9608 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
9609 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
9610 - fi
9611 - else
9612 - # PORTME fill in a description of your system's linker (not GNU ld)
9613 - case $host_os in
9614 - aix3*)
9615 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
9616 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
9617 - _LT_AC_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'
9618 - # Note: this linker hardcodes the directories in LIBPATH if there
9619 - # are no directories specified by -L.
9620 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9621 - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9622 - # Neither direct hardcoding nor static linking is supported with a
9623 - # broken collect2.
9624 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
9625 - fi
9626 - ;;
9627 +# serial 1
9628
9629 - aix[[4-9]]*)
9630 - if test "$host_cpu" = ia64; then
9631 - # On IA64, the linker does run time linking by default, so we don't
9632 - # have to do anything special.
9633 - aix_use_runtimelinking=no
9634 - exp_sym_flag='-Bexport'
9635 - no_entry_flag=""
9636 - else
9637 - # If we're using GNU nm, then we don't want the "-C" option.
9638 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
9639 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9640 - _LT_AC_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'
9641 - else
9642 - _LT_AC_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'
9643 - fi
9644 - aix_use_runtimelinking=no
9645 -
9646 - # Test if we are trying to use run time linking or normal
9647 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9648 - # need to do runtime linking.
9649 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
9650 - for ld_flag in $LDFLAGS; do
9651 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9652 - aix_use_runtimelinking=yes
9653 - break
9654 - fi
9655 - done
9656 - ;;
9657 - esac
9658 +# AM_PROG_INSTALL_SH
9659 +# ------------------
9660 +# Define $install_sh.
9661 +AC_DEFUN([AM_PROG_INSTALL_SH],
9662 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9663 +if test x"${install_sh}" != xset; then
9664 + case $am_aux_dir in
9665 + *\ * | *\ *)
9666 + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9667 + *)
9668 + install_sh="\${SHELL} $am_aux_dir/install-sh"
9669 + esac
9670 +fi
9671 +AC_SUBST(install_sh)])
9672
9673 - exp_sym_flag='-bexport'
9674 - no_entry_flag='-bnoentry'
9675 - fi
9676 +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9677 +#
9678 +# This file is free software; the Free Software Foundation
9679 +# gives unlimited permission to copy and/or distribute it,
9680 +# with or without modifications, as long as this notice is preserved.
9681
9682 - # When large executables or shared objects are built, AIX ld can
9683 - # have problems creating the table of contents. If linking a library
9684 - # or program results in "error TOC overflow" add -mminimal-toc to
9685 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9686 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9687 -
9688 - _LT_AC_TAGVAR(archive_cmds, $1)=''
9689 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9690 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
9691 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9692 -
9693 - if test "$GCC" = yes; then
9694 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
9695 - # We only want to do this on AIX 4.2 and lower, the check
9696 - # below for broken collect2 doesn't work under 4.3+
9697 - collect2name=`${CC} -print-prog-name=collect2`
9698 - if test -f "$collect2name" && \
9699 - strings "$collect2name" | grep resolve_lib_name >/dev/null
9700 - then
9701 - # We have reworked collect2
9702 - :
9703 - else
9704 - # We have old collect2
9705 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
9706 - # It fails to find uninstalled libraries when the uninstalled
9707 - # path is not listed in the libpath. Setting hardcode_minus_L
9708 - # to unsupported forces relinking
9709 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9710 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9711 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
9712 - fi
9713 - ;;
9714 - esac
9715 - shared_flag='-shared'
9716 - if test "$aix_use_runtimelinking" = yes; then
9717 - shared_flag="$shared_flag "'${wl}-G'
9718 - fi
9719 - else
9720 - # not using gcc
9721 - if test "$host_cpu" = ia64; then
9722 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9723 - # chokes on -Wl,-G. The following line is correct:
9724 - shared_flag='-G'
9725 - else
9726 - if test "$aix_use_runtimelinking" = yes; then
9727 - shared_flag='${wl}-G'
9728 - else
9729 - shared_flag='${wl}-bM:SRE'
9730 - fi
9731 - fi
9732 - fi
9733 +# serial 2
9734
9735 - # It seems that -bexpall does not export symbols beginning with
9736 - # underscore (_), so it is better to generate a list of symbols to export.
9737 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
9738 - if test "$aix_use_runtimelinking" = yes; then
9739 - # Warning - without using the other runtime loading flags (-brtl),
9740 - # -berok will link without error, but may produce a broken library.
9741 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
9742 - # Determine the default libpath from the value encoded in an empty executable.
9743 - _LT_AC_SYS_LIBPATH_AIX
9744 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9745 - _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9746 - else
9747 - if test "$host_cpu" = ia64; then
9748 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
9749 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
9750 - _LT_AC_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"
9751 - else
9752 - # Determine the default libpath from the value encoded in an empty executable.
9753 - _LT_AC_SYS_LIBPATH_AIX
9754 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9755 - # Warning - without using the other run time loading flags,
9756 - # -berok will link without error, but may produce a broken library.
9757 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
9758 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
9759 - # Exported symbols can be pulled into shared objects from archives
9760 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
9761 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
9762 - # This is similar to how AIX traditionally builds its shared libraries.
9763 - _LT_AC_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'
9764 - fi
9765 - fi
9766 - ;;
9767 +# Check whether the underlying file-system supports filenames
9768 +# with a leading dot. For instance MS-DOS doesn't.
9769 +AC_DEFUN([AM_SET_LEADING_DOT],
9770 +[rm -rf .tst 2>/dev/null
9771 +mkdir .tst 2>/dev/null
9772 +if test -d .tst; then
9773 + am__leading_dot=.
9774 +else
9775 + am__leading_dot=_
9776 +fi
9777 +rmdir .tst 2>/dev/null
9778 +AC_SUBST([am__leading_dot])])
9779
9780 - amigaos*)
9781 - _LT_AC_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)'
9782 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9783 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9784 - # see comment about different semantics on the GNU ld section
9785 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9786 - ;;
9787 +# Check to see how 'make' treats includes. -*- Autoconf -*-
9788
9789 - bsdi[[45]]*)
9790 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
9791 - ;;
9792 +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9793 +#
9794 +# This file is free software; the Free Software Foundation
9795 +# gives unlimited permission to copy and/or distribute it,
9796 +# with or without modifications, as long as this notice is preserved.
9797
9798 - cygwin* | mingw* | pw32*)
9799 - # When not using gcc, we currently assume that we are using
9800 - # Microsoft Visual C++.
9801 - # hardcode_libdir_flag_spec is actually meaningless, as there is
9802 - # no search path for DLLs.
9803 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
9804 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
9805 - # Tell ltmain to make .lib files, not .a files.
9806 - libext=lib
9807 - # Tell ltmain to make .dll files, not .so files.
9808 - shrext_cmds=".dll"
9809 - # FIXME: Setting linknames here is a bad hack.
9810 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9811 - # The linker will automatically build a .lib file if we build a DLL.
9812 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
9813 - # FIXME: Should let the user specify the lib program.
9814 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
9815 - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
9816 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
9817 - ;;
9818 +# serial 4
9819
9820 - darwin* | rhapsody*)
9821 - case $host_os in
9822 - rhapsody* | darwin1.[[012]])
9823 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
9824 - ;;
9825 - *) # Darwin 1.3 on
9826 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9827 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9828 - else
9829 - case ${MACOSX_DEPLOYMENT_TARGET} in
9830 - 10.[[012]])
9831 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9832 - ;;
9833 - 10.*)
9834 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
9835 - ;;
9836 - esac
9837 - fi
9838 - ;;
9839 - esac
9840 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9841 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
9842 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
9843 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9844 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
9845 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9846 - if test "$GCC" = yes ; then
9847 - output_verbose_link_cmd='echo'
9848 - _LT_AC_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}"
9849 - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9850 - _LT_AC_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}"
9851 - _LT_AC_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}"
9852 - else
9853 - case $cc_basename in
9854 - xlc*)
9855 - output_verbose_link_cmd='echo'
9856 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9857 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9858 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9859 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9860 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9861 - ;;
9862 - *)
9863 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9864 - ;;
9865 - esac
9866 - fi
9867 - ;;
9868 +# AM_MAKE_INCLUDE()
9869 +# -----------------
9870 +# Check to see how make treats includes.
9871 +AC_DEFUN([AM_MAKE_INCLUDE],
9872 +[am_make=${MAKE-make}
9873 +cat > confinc << 'END'
9874 +am__doit:
9875 + @echo this is the am__doit target
9876 +.PHONY: am__doit
9877 +END
9878 +# If we don't find an include directive, just comment out the code.
9879 +AC_MSG_CHECKING([for style of include used by $am_make])
9880 +am__include="#"
9881 +am__quote=
9882 +_am_result=none
9883 +# First try GNU make style include.
9884 +echo "include confinc" > confmf
9885 +# Ignore all kinds of additional output from `make'.
9886 +case `$am_make -s -f confmf 2> /dev/null` in #(
9887 +*the\ am__doit\ target*)
9888 + am__include=include
9889 + am__quote=
9890 + _am_result=GNU
9891 + ;;
9892 +esac
9893 +# Now try BSD make style include.
9894 +if test "$am__include" = "#"; then
9895 + echo '.include "confinc"' > confmf
9896 + case `$am_make -s -f confmf 2> /dev/null` in #(
9897 + *the\ am__doit\ target*)
9898 + am__include=.include
9899 + am__quote="\""
9900 + _am_result=BSD
9901 + ;;
9902 + esac
9903 +fi
9904 +AC_SUBST([am__include])
9905 +AC_SUBST([am__quote])
9906 +AC_MSG_RESULT([$_am_result])
9907 +rm -f confinc confmf
9908 +])
9909
9910 - dgux*)
9911 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9912 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9913 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9914 - ;;
9915 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9916
9917 - freebsd1*)
9918 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
9919 - ;;
9920 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9921 +# Free Software Foundation, Inc.
9922 +#
9923 +# This file is free software; the Free Software Foundation
9924 +# gives unlimited permission to copy and/or distribute it,
9925 +# with or without modifications, as long as this notice is preserved.
9926
9927 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9928 - # support. Future versions do this automatically, but an explicit c++rt0.o
9929 - # does not break anything, and helps significantly (at the cost of a little
9930 - # extra space).
9931 - freebsd2.2*)
9932 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9933 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9934 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9935 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9936 - ;;
9937 +# serial 6
9938
9939 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9940 - freebsd2*)
9941 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9942 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9943 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9944 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9945 - ;;
9946 +# AM_MISSING_PROG(NAME, PROGRAM)
9947 +# ------------------------------
9948 +AC_DEFUN([AM_MISSING_PROG],
9949 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
9950 +$1=${$1-"${am_missing_run}$2"}
9951 +AC_SUBST($1)])
9952
9953 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9954 - freebsd* | dragonfly*)
9955 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9956 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9957 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9958 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9959 - ;;
9960
9961 - hpux9*)
9962 - if test "$GCC" = yes; then
9963 - _LT_AC_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'
9964 - else
9965 - _LT_AC_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'
9966 - fi
9967 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9968 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9969 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9970 -
9971 - # hardcode_minus_L: Not really in the search PATH,
9972 - # but as the default location of the library.
9973 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9974 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9975 - ;;
9976 +# AM_MISSING_HAS_RUN
9977 +# ------------------
9978 +# Define MISSING if not defined so far and test if it supports --run.
9979 +# If it does, set am_missing_run to use it, otherwise, to nothing.
9980 +AC_DEFUN([AM_MISSING_HAS_RUN],
9981 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9982 +AC_REQUIRE_AUX_FILE([missing])dnl
9983 +if test x"${MISSING+set}" != xset; then
9984 + case $am_aux_dir in
9985 + *\ * | *\ *)
9986 + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9987 + *)
9988 + MISSING="\${SHELL} $am_aux_dir/missing" ;;
9989 + esac
9990 +fi
9991 +# Use eval to expand $SHELL
9992 +if eval "$MISSING --run true"; then
9993 + am_missing_run="$MISSING --run "
9994 +else
9995 + am_missing_run=
9996 + AC_MSG_WARN([`missing' script is too old or missing])
9997 +fi
9998 +])
9999
10000 - hpux10*)
10001 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10002 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10003 - else
10004 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10005 - fi
10006 - if test "$with_gnu_ld" = no; then
10007 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10008 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10009 +# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
10010 +# Inc.
10011 +#
10012 +# This file is free software; the Free Software Foundation
10013 +# gives unlimited permission to copy and/or distribute it,
10014 +# with or without modifications, as long as this notice is preserved.
10015
10016 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10017 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10018 +# serial 1
10019
10020 - # hardcode_minus_L: Not really in the search PATH,
10021 - # but as the default location of the library.
10022 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10023 - fi
10024 - ;;
10025 +# AM_PROG_MKDIR_P
10026 +# ---------------
10027 +# Check for `mkdir -p'.
10028 +AC_DEFUN([AM_PROG_MKDIR_P],
10029 +[AC_PREREQ([2.60])dnl
10030 +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10031 +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
10032 +dnl while keeping a definition of mkdir_p for backward compatibility.
10033 +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
10034 +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
10035 +dnl Makefile.ins that do not define MKDIR_P, so we do our own
10036 +dnl adjustment using top_builddir (which is defined more often than
10037 +dnl MKDIR_P).
10038 +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
10039 +case $mkdir_p in
10040 + [[\\/$]]* | ?:[[\\/]]*) ;;
10041 + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10042 +esac
10043 +])
10044
10045 - hpux11*)
10046 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10047 - case $host_cpu in
10048 - hppa*64*)
10049 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 - ;;
10051 - ia64*)
10052 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10053 - ;;
10054 - *)
10055 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10056 - ;;
10057 - esac
10058 - else
10059 - case $host_cpu in
10060 - hppa*64*)
10061 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 - ;;
10063 - ia64*)
10064 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10065 - ;;
10066 - *)
10067 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10068 - ;;
10069 - esac
10070 - fi
10071 - if test "$with_gnu_ld" = no; then
10072 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10073 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10074 -
10075 - case $host_cpu in
10076 - hppa*64*|ia64*)
10077 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
10078 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
10079 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10080 - ;;
10081 - *)
10082 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10083 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10084 +# Helper functions for option handling. -*- Autoconf -*-
10085
10086 - # hardcode_minus_L: Not really in the search PATH,
10087 - # but as the default location of the library.
10088 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10089 - ;;
10090 - esac
10091 - fi
10092 - ;;
10093 +# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
10094 +# Foundation, Inc.
10095 +#
10096 +# This file is free software; the Free Software Foundation
10097 +# gives unlimited permission to copy and/or distribute it,
10098 +# with or without modifications, as long as this notice is preserved.
10099
10100 - irix5* | irix6* | nonstopux*)
10101 - if test "$GCC" = yes; then
10102 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10103 - else
10104 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10105 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
10106 - fi
10107 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10108 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10109 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10110 - ;;
10111 +# serial 5
10112
10113 - netbsd*)
10114 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10115 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10116 - else
10117 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10118 - fi
10119 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10120 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10121 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10122 - ;;
10123 +# _AM_MANGLE_OPTION(NAME)
10124 +# -----------------------
10125 +AC_DEFUN([_AM_MANGLE_OPTION],
10126 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10127
10128 - newsos6)
10129 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10131 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10132 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10133 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10134 - ;;
10135 +# _AM_SET_OPTION(NAME)
10136 +# --------------------
10137 +# Set option NAME. Presently that only means defining a flag for this option.
10138 +AC_DEFUN([_AM_SET_OPTION],
10139 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10140
10141 - openbsd*)
10142 - if test -f /usr/libexec/ld.so; then
10143 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10144 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10145 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10146 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10147 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10148 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10149 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10150 - else
10151 - case $host_os in
10152 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
10153 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10154 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10155 - ;;
10156 - *)
10157 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10158 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10159 - ;;
10160 - esac
10161 - fi
10162 - else
10163 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
10164 - fi
10165 - ;;
10166 +# _AM_SET_OPTIONS(OPTIONS)
10167 +# ------------------------
10168 +# OPTIONS is a space-separated list of Automake options.
10169 +AC_DEFUN([_AM_SET_OPTIONS],
10170 +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10171
10172 - os2*)
10173 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10174 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10175 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10176 - _LT_AC_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'
10177 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10178 - ;;
10179 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10180 +# -------------------------------------------
10181 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10182 +AC_DEFUN([_AM_IF_OPTION],
10183 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10184
10185 - osf3*)
10186 - if test "$GCC" = yes; then
10187 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10188 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10189 - else
10190 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10191 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10192 - fi
10193 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10194 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10195 - ;;
10196 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
10197 +# 2011 Free Software Foundation, Inc.
10198 +#
10199 +# This file is free software; the Free Software Foundation
10200 +# gives unlimited permission to copy and/or distribute it,
10201 +# with or without modifications, as long as this notice is preserved.
10202
10203 - osf4* | osf5*) # as osf3* with the addition of -msym flag
10204 - if test "$GCC" = yes; then
10205 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10206 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10207 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10208 - else
10209 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10210 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10211 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10212 - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10213 +# serial 2
10214
10215 - # Both c and cxx compiler support -rpath directly
10216 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
10217 - fi
10218 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10219 - ;;
10220 +# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
10221 +# ---------------------------------------------------------------------------
10222 +# Adds support for distributing Python modules and packages. To
10223 +# install modules, copy them to $(pythondir), using the python_PYTHON
10224 +# automake variable. To install a package with the same name as the
10225 +# automake package, install to $(pkgpythondir), or use the
10226 +# pkgpython_PYTHON automake variable.
10227 +#
10228 +# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
10229 +# locations to install python extension modules (shared libraries).
10230 +# Another macro is required to find the appropriate flags to compile
10231 +# extension modules.
10232 +#
10233 +# If your package is configured with a different prefix to python,
10234 +# users will have to add the install directory to the PYTHONPATH
10235 +# environment variable, or create a .pth file (see the python
10236 +# documentation for details).
10237 +#
10238 +# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
10239 +# cause an error if the version of python installed on the system
10240 +# doesn't meet the requirement. MINIMUM-VERSION should consist of
10241 +# numbers and dots only.
10242 +AC_DEFUN([AM_PATH_PYTHON],
10243 + [
10244 + dnl Find a Python interpreter. Python versions prior to 2.0 are not
10245 + dnl supported. (2.0 was released on October 16, 2000).
10246 + m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
10247 +[python python2 python3 python3.2 python3.1 python3.0 python2.7 dnl
10248 + python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
10249
10250 - solaris*)
10251 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
10252 - if test "$GCC" = yes; then
10253 - wlarc='${wl}'
10254 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10255 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10256 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10257 - else
10258 - wlarc=''
10259 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10260 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10261 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10262 - fi
10263 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10264 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10265 - case $host_os in
10266 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10267 - *)
10268 - # The compiler driver will combine and reorder linker options,
10269 - # but understands `-z linker_flag'. GCC discards it without `$wl',
10270 - # but is careful enough not to reorder.
10271 - # Supported since Solaris 2.6 (maybe 2.5.1?)
10272 - if test "$GCC" = yes; then
10273 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10274 - else
10275 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
10276 - fi
10277 - ;;
10278 - esac
10279 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10280 - ;;
10281 + AC_ARG_VAR([PYTHON], [the Python interpreter])
10282
10283 - sunos4*)
10284 - if test "x$host_vendor" = xsequent; then
10285 - # Use $CC to link under sequent, because it throws in some extra .o
10286 - # files that make .init and .fini sections work.
10287 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10288 + m4_if([$1],[],[
10289 + dnl No version check is needed.
10290 + # Find any Python interpreter.
10291 + if test -z "$PYTHON"; then
10292 + AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
10293 + fi
10294 + am_display_PYTHON=python
10295 + ], [
10296 + dnl A version check is needed.
10297 + if test -n "$PYTHON"; then
10298 + # If the user set $PYTHON, use it and don't search something else.
10299 + AC_MSG_CHECKING([whether $PYTHON version >= $1])
10300 + AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
10301 + [AC_MSG_RESULT(yes)],
10302 + [AC_MSG_ERROR(too old)])
10303 + am_display_PYTHON=$PYTHON
10304 + else
10305 + # Otherwise, try each interpreter until we find one that satisfies
10306 + # VERSION.
10307 + AC_CACHE_CHECK([for a Python interpreter with version >= $1],
10308 + [am_cv_pathless_PYTHON],[
10309 + for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
10310 + test "$am_cv_pathless_PYTHON" = none && break
10311 + AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
10312 + done])
10313 + # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
10314 + if test "$am_cv_pathless_PYTHON" = none; then
10315 + PYTHON=:
10316 else
10317 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10318 + AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
10319 fi
10320 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10321 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10322 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10323 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10324 - ;;
10325 + am_display_PYTHON=$am_cv_pathless_PYTHON
10326 + fi
10327 + ])
10328
10329 - sysv4)
10330 - case $host_vendor in
10331 - sni)
10332 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10333 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
10334 - ;;
10335 - siemens)
10336 - ## LD is ld it makes a PLAMLIB
10337 - ## CC just makes a GrossModule.
10338 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10339 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
10340 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
10341 - ;;
10342 - motorola)
10343 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
10345 - ;;
10346 - esac
10347 - runpath_var='LD_RUN_PATH'
10348 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10349 - ;;
10350 + if test "$PYTHON" = :; then
10351 + dnl Run any user-specified action, or abort.
10352 + m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
10353 + else
10354
10355 - sysv4.3*)
10356 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10358 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
10359 - ;;
10360 + dnl Query Python for its version number. Getting [:3] seems to be
10361 + dnl the best way to do this; it's what "site.py" does in the standard
10362 + dnl library.
10363
10364 - sysv4*MP*)
10365 - if test -d /usr/nec; then
10366 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10367 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10368 - runpath_var=LD_RUN_PATH
10369 - hardcode_runpath_var=yes
10370 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
10371 - fi
10372 - ;;
10373 + AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
10374 + [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
10375 + AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
10376
10377 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
10378 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
10379 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
10380 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10381 - runpath_var='LD_RUN_PATH'
10382 + dnl Use the values of $prefix and $exec_prefix for the corresponding
10383 + dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
10384 + dnl distinct variables so they can be overridden if need be. However,
10385 + dnl general consensus is that you shouldn't need this ability.
10386
10387 - if test "$GCC" = yes; then
10388 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10389 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10390 - else
10391 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 - fi
10394 - ;;
10395 + AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
10396 + AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
10397
10398 - sysv5* | sco3.2v5* | sco5v6*)
10399 - # Note: We can NOT use -z defs as we might desire, because we do not
10400 - # link with -lc, and that would cause any symbols used from libc to
10401 - # always be unresolved, which means just about no library would
10402 - # ever link correctly. If we're not using GNU ld we use -z text
10403 - # though, which does catch some bad symbols but isn't as heavy-handed
10404 - # as -z defs.
10405 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
10406 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
10407 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
10408 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10409 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10410 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
10411 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10412 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
10413 - runpath_var='LD_RUN_PATH'
10414 -
10415 - if test "$GCC" = yes; then
10416 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10417 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 - else
10419 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 - fi
10422 - ;;
10423 + dnl At times (like when building shared libraries) you may want
10424 + dnl to know which OS platform Python thinks this is.
10425
10426 - uts4*)
10427 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10429 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10430 - ;;
10431 + AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
10432 + [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
10433 + AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
10434
10435 - *)
10436 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
10437 - ;;
10438 - esac
10439 - fi
10440 -])
10441 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
10442 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
10443
10444 -#
10445 -# Do we need to explicitly link libc?
10446 -#
10447 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
10448 -x|xyes)
10449 - # Assume -lc should be added
10450 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
10451 -
10452 - if test "$enable_shared" = yes && test "$GCC" = yes; then
10453 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
10454 - *'~'*)
10455 - # FIXME: we may have to deal with multi-command sequences.
10456 - ;;
10457 - '$CC '*)
10458 - # Test whether the compiler implicitly links with -lc since on some
10459 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
10460 - # to ld, don't add -lc before -lgcc.
10461 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
10462 - $rm conftest*
10463 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10464 -
10465 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
10466 - soname=conftest
10467 - lib=conftest
10468 - libobjs=conftest.$ac_objext
10469 - deplibs=
10470 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
10471 - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
10472 - compiler_flags=-v
10473 - linker_flags=-v
10474 - verstring=
10475 - output_objdir=.
10476 - libname=conftest
10477 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
10478 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
10479 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
10480 - then
10481 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
10482 - else
10483 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
10484 - fi
10485 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
10486 - else
10487 - cat conftest.err 1>&5
10488 - fi
10489 - $rm conftest*
10490 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
10491 - ;;
10492 - esac
10493 - fi
10494 - ;;
10495 -esac
10496 -])# AC_LIBTOOL_PROG_LD_SHLIBS
10497 + dnl Set up 4 directories:
10498
10499 + dnl pythondir -- where to install python scripts. This is the
10500 + dnl site-packages directory, not the python standard library
10501 + dnl directory like in previous automake betas. This behavior
10502 + dnl is more consistent with lispdir.m4 for example.
10503 + dnl Query distutils for this directory.
10504 + AC_CACHE_CHECK([for $am_display_PYTHON script directory],
10505 + [am_cv_python_pythondir],
10506 + [if test "x$prefix" = xNONE
10507 + then
10508 + am_py_prefix=$ac_default_prefix
10509 + else
10510 + am_py_prefix=$prefix
10511 + fi
10512 + am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
10513 + case $am_cv_python_pythondir in
10514 + $am_py_prefix*)
10515 + am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
10516 + am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
10517 + ;;
10518 + *)
10519 + case $am_py_prefix in
10520 + /usr|/System*) ;;
10521 + *)
10522 + am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
10523 + ;;
10524 + esac
10525 + ;;
10526 + esac
10527 + ])
10528 + AC_SUBST([pythondir], [$am_cv_python_pythondir])
10529
10530 -# _LT_AC_FILE_LTDLL_C
10531 -# -------------------
10532 -# Be careful that the start marker always follows a newline.
10533 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
10534 -# /* ltdll.c starts here */
10535 -# #define WIN32_LEAN_AND_MEAN
10536 -# #include <windows.h>
10537 -# #undef WIN32_LEAN_AND_MEAN
10538 -# #include <stdio.h>
10539 -#
10540 -# #ifndef __CYGWIN__
10541 -# # ifdef __CYGWIN32__
10542 -# # define __CYGWIN__ __CYGWIN32__
10543 -# # endif
10544 -# #endif
10545 -#
10546 -# #ifdef __cplusplus
10547 -# extern "C" {
10548 -# #endif
10549 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
10550 -# #ifdef __cplusplus
10551 -# }
10552 -# #endif
10553 -#
10554 -# #ifdef __CYGWIN__
10555 -# #include <cygwin/cygwin_dll.h>
10556 -# DECLARE_CYGWIN_DLL( DllMain );
10557 -# #endif
10558 -# HINSTANCE __hDllInstance_base;
10559 -#
10560 -# BOOL APIENTRY
10561 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
10562 -# {
10563 -# __hDllInstance_base = hInst;
10564 -# return TRUE;
10565 -# }
10566 -# /* ltdll.c ends here */
10567 -])# _LT_AC_FILE_LTDLL_C
10568 -
10569 -
10570 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
10571 -# ---------------------------------
10572 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
10573 -
10574 -
10575 -# old names
10576 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
10577 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
10578 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
10579 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
10580 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
10581 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
10582 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
10583 -
10584 -# This is just to silence aclocal about the macro not being used
10585 -ifelse([AC_DISABLE_FAST_INSTALL])
10586 -
10587 -AC_DEFUN([LT_AC_PROG_GCJ],
10588 -[AC_CHECK_TOOL(GCJ, gcj, no)
10589 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
10590 - AC_SUBST(GCJFLAGS)
10591 -])
10592 + dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
10593 + dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
10594 + dnl more consistent with the rest of automake.
10595
10596 -AC_DEFUN([LT_AC_PROG_RC],
10597 -[AC_CHECK_TOOL(RC, windres, no)
10598 -])
10599 + AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
10600
10601 + dnl pyexecdir -- directory for installing python extension modules
10602 + dnl (shared libraries)
10603 + dnl Query distutils for this directory.
10604 + AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
10605 + [am_cv_python_pyexecdir],
10606 + [if test "x$exec_prefix" = xNONE
10607 + then
10608 + am_py_exec_prefix=$am_py_prefix
10609 + else
10610 + am_py_exec_prefix=$exec_prefix
10611 + fi
10612 + am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
10613 + case $am_cv_python_pyexecdir in
10614 + $am_py_exec_prefix*)
10615 + am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
10616 + am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
10617 + ;;
10618 + *)
10619 + case $am_py_exec_prefix in
10620 + /usr|/System*) ;;
10621 + *)
10622 + am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
10623 + ;;
10624 + esac
10625 + ;;
10626 + esac
10627 + ])
10628 + AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
10629
10630 -# Cheap backport of AS_EXECUTABLE_P and required macros
10631 -# from Autoconf 2.59; we should not use $as_executable_p directly.
10632 + dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
10633
10634 -# _AS_TEST_PREPARE
10635 -# ----------------
10636 -m4_ifndef([_AS_TEST_PREPARE],
10637 -[m4_defun([_AS_TEST_PREPARE],
10638 -[if test -x / >/dev/null 2>&1; then
10639 - as_executable_p='test -x'
10640 -else
10641 - as_executable_p='test -f'
10642 -fi
10643 -])])# _AS_TEST_PREPARE
10644 + AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
10645
10646 -# AS_EXECUTABLE_P
10647 -# ---------------
10648 -# Check whether a file is executable.
10649 -m4_ifndef([AS_EXECUTABLE_P],
10650 -[m4_defun([AS_EXECUTABLE_P],
10651 -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
10652 -$as_executable_p $1[]dnl
10653 -])])# AS_EXECUTABLE_P
10654 -
10655 -# NOTE: This macro has been submitted for inclusion into #
10656 -# GNU Autoconf as AC_PROG_SED. When it is available in #
10657 -# a released version of Autoconf we should remove this #
10658 -# macro and use it instead. #
10659 -# LT_AC_PROG_SED
10660 -# --------------
10661 -# Check for a fully-functional sed program, that truncates
10662 -# as few characters as possible. Prefer GNU sed if found.
10663 -AC_DEFUN([LT_AC_PROG_SED],
10664 -[AC_MSG_CHECKING([for a sed that does not truncate output])
10665 -AC_CACHE_VAL(lt_cv_path_SED,
10666 -[# Loop through the user's path and test for sed and gsed.
10667 -# Then use that list of sed's as ones to test for truncation.
10668 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669 -for as_dir in $PATH
10670 -do
10671 - IFS=$as_save_IFS
10672 - test -z "$as_dir" && as_dir=.
10673 - for lt_ac_prog in sed gsed; do
10674 - for ac_exec_ext in '' $ac_executable_extensions; do
10675 - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
10676 - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10677 - fi
10678 - done
10679 - done
10680 -done
10681 -IFS=$as_save_IFS
10682 -lt_ac_max=0
10683 -lt_ac_count=0
10684 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10685 -# along with /bin/sed that truncates output.
10686 -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10687 - test ! -f $lt_ac_sed && continue
10688 - cat /dev/null > conftest.in
10689 - lt_ac_count=0
10690 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10691 - # Check for GNU sed and select it if it is found.
10692 - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10693 - lt_cv_path_SED=$lt_ac_sed
10694 - break
10695 + dnl Run any user-specified action.
10696 + $2
10697 fi
10698 - while true; do
10699 - cat conftest.in conftest.in >conftest.tmp
10700 - mv conftest.tmp conftest.in
10701 - cp conftest.in conftest.nl
10702 - echo >>conftest.nl
10703 - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10704 - cmp -s conftest.out conftest.nl || break
10705 - # 10000 chars as input seems more than enough
10706 - test $lt_ac_count -gt 10 && break
10707 - lt_ac_count=`expr $lt_ac_count + 1`
10708 - if test $lt_ac_count -gt $lt_ac_max; then
10709 - lt_ac_max=$lt_ac_count
10710 - lt_cv_path_SED=$lt_ac_sed
10711 - fi
10712 - done
10713 -done
10714 -])
10715 -SED=$lt_cv_path_SED
10716 -AC_SUBST([SED])
10717 -AC_MSG_RESULT([$SED])
10718 +
10719 ])
10720
10721 -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
10722 -#
10723 -# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
10724 -#
10725 -# This program is free software; you can redistribute it and/or modify
10726 -# it under the terms of the GNU General Public License as published by
10727 -# the Free Software Foundation; either version 2 of the License, or
10728 -# (at your option) any later version.
10729 -#
10730 -# This program is distributed in the hope that it will be useful, but
10731 -# WITHOUT ANY WARRANTY; without even the implied warranty of
10732 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10733 -# General Public License for more details.
10734 -#
10735 -# You should have received a copy of the GNU General Public License
10736 -# along with this program; if not, write to the Free Software
10737 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10738 -#
10739 -# As a special exception to the GNU General Public License, if you
10740 -# distribute this file as part of a program that contains a
10741 -# configuration script generated by Autoconf, you may include it under
10742 -# the same distribution terms that you use for the rest of that program.
10743
10744 -# PKG_PROG_PKG_CONFIG([MIN-VERSION])
10745 -# ----------------------------------
10746 -AC_DEFUN([PKG_PROG_PKG_CONFIG],
10747 -[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
10748 -m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
10749 -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
10750 -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10751 - AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
10752 -fi
10753 -if test -n "$PKG_CONFIG"; then
10754 - _pkg_min_version=m4_default([$1], [0.9.0])
10755 - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
10756 - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10757 - AC_MSG_RESULT([yes])
10758 - else
10759 - AC_MSG_RESULT([no])
10760 - PKG_CONFIG=""
10761 - fi
10762 -
10763 -fi[]dnl
10764 -])# PKG_PROG_PKG_CONFIG
10765 +# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
10766 +# ---------------------------------------------------------------------------
10767 +# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
10768 +# Run ACTION-IF-FALSE otherwise.
10769 +# This test uses sys.hexversion instead of the string equivalent (first
10770 +# word of sys.version), in order to cope with versions such as 2.2c1.
10771 +# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
10772 +AC_DEFUN([AM_PYTHON_CHECK_VERSION],
10773 + [prog="import sys
10774 +# split strings by '.' and convert to numeric. Append some zeros
10775 +# because we need at least 4 digits for the hex conversion.
10776 +# map returns an iterator in Python 3.0 and a list in 2.x
10777 +minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
10778 +minverhex = 0
10779 +# xrange is not present in Python 3.0 and range returns an iterator
10780 +for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
10781 +sys.exit(sys.hexversion < minverhex)"
10782 + AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
10783
10784 -# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
10785 -#
10786 -# Check to see whether a particular set of modules exists. Similar
10787 -# to PKG_CHECK_MODULES(), but does not set variables or print errors.
10788 +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
10789 #
10790 +# This file is free software; the Free Software Foundation
10791 +# gives unlimited permission to copy and/or distribute it,
10792 +# with or without modifications, as long as this notice is preserved.
10793 +
10794 +# serial 1
10795 +
10796 +# AM_RUN_LOG(COMMAND)
10797 +# -------------------
10798 +# Run COMMAND, save the exit status in ac_status, and log it.
10799 +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
10800 +AC_DEFUN([AM_RUN_LOG],
10801 +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
10802 + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
10803 + ac_status=$?
10804 + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
10805 + (exit $ac_status); }])
10806 +
10807 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
10808 +
10809 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
10810 +# Free Software Foundation, Inc.
10811 #
10812 -# Similar to PKG_CHECK_MODULES, make sure that the first instance of
10813 -# this or PKG_CHECK_MODULES is called, or make sure to call
10814 -# PKG_CHECK_EXISTS manually
10815 -# --------------------------------------------------------------
10816 -AC_DEFUN([PKG_CHECK_EXISTS],
10817 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
10818 -if test -n "$PKG_CONFIG" && \
10819 - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
10820 - m4_ifval([$2], [$2], [:])
10821 -m4_ifvaln([$3], [else
10822 - $3])dnl
10823 -fi])
10824 +# This file is free software; the Free Software Foundation
10825 +# gives unlimited permission to copy and/or distribute it,
10826 +# with or without modifications, as long as this notice is preserved.
10827
10828 +# serial 5
10829
10830 -# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
10831 -# ---------------------------------------------
10832 -m4_define([_PKG_CONFIG],
10833 -[if test -n "$$1"; then
10834 - pkg_cv_[]$1="$$1"
10835 - elif test -n "$PKG_CONFIG"; then
10836 - PKG_CHECK_EXISTS([$3],
10837 - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
10838 - [pkg_failed=yes])
10839 - else
10840 - pkg_failed=untried
10841 -fi[]dnl
10842 -])# _PKG_CONFIG
10843 +# AM_SANITY_CHECK
10844 +# ---------------
10845 +AC_DEFUN([AM_SANITY_CHECK],
10846 +[AC_MSG_CHECKING([whether build environment is sane])
10847 +# Just in case
10848 +sleep 1
10849 +echo timestamp > conftest.file
10850 +# Reject unsafe characters in $srcdir or the absolute working directory
10851 +# name. Accept space and tab only in the latter.
10852 +am_lf='
10853 +'
10854 +case `pwd` in
10855 + *[[\\\"\#\$\&\'\`$am_lf]]*)
10856 + AC_MSG_ERROR([unsafe absolute working directory name]);;
10857 +esac
10858 +case $srcdir in
10859 + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
10860 + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
10861 +esac
10862
10863 -# _PKG_SHORT_ERRORS_SUPPORTED
10864 -# -----------------------------
10865 -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
10866 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
10867 -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10868 - _pkg_short_errors_supported=yes
10869 -else
10870 - _pkg_short_errors_supported=no
10871 -fi[]dnl
10872 -])# _PKG_SHORT_ERRORS_SUPPORTED
10873 +# Do `set' in a subshell so we don't clobber the current shell's
10874 +# arguments. Must try -L first in case configure is actually a
10875 +# symlink; some systems play weird games with the mod time of symlinks
10876 +# (eg FreeBSD returns the mod time of the symlink's containing
10877 +# directory).
10878 +if (
10879 + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10880 + if test "$[*]" = "X"; then
10881 + # -L didn't work.
10882 + set X `ls -t "$srcdir/configure" conftest.file`
10883 + fi
10884 + rm -f conftest.file
10885 + if test "$[*]" != "X $srcdir/configure conftest.file" \
10886 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
10887
10888 + # If neither matched, then we have a broken ls. This can happen
10889 + # if, for instance, CONFIG_SHELL is bash and it inherits a
10890 + # broken ls alias from the environment. This has actually
10891 + # happened. Such a system could not be considered "sane".
10892 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
10893 +alias in your environment])
10894 + fi
10895
10896 -# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
10897 -# [ACTION-IF-NOT-FOUND])
10898 -#
10899 -#
10900 -# Note that if there is a possibility the first call to
10901 -# PKG_CHECK_MODULES might not happen, you should be sure to include an
10902 -# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
10903 + test "$[2]" = conftest.file
10904 + )
10905 +then
10906 + # Ok.
10907 + :
10908 +else
10909 + AC_MSG_ERROR([newly created file is older than distributed files!
10910 +Check your system clock])
10911 +fi
10912 +AC_MSG_RESULT(yes)])
10913 +
10914 +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
10915 #
10916 +# This file is free software; the Free Software Foundation
10917 +# gives unlimited permission to copy and/or distribute it,
10918 +# with or without modifications, as long as this notice is preserved.
10919 +
10920 +# serial 1
10921 +
10922 +# AM_PROG_INSTALL_STRIP
10923 +# ---------------------
10924 +# One issue with vendor `install' (even GNU) is that you can't
10925 +# specify the program used to strip binaries. This is especially
10926 +# annoying in cross-compiling environments, where the build's strip
10927 +# is unlikely to handle the host's binaries.
10928 +# Fortunately install-sh will honor a STRIPPROG variable, so we
10929 +# always use install-sh in `make install-strip', and initialize
10930 +# STRIPPROG with the value of the STRIP variable (set by the user).
10931 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
10932 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10933 +# Installed binaries are usually stripped using `strip' when the user
10934 +# run `make install-strip'. However `strip' might not be the right
10935 +# tool to use in cross-compilation environments, therefore Automake
10936 +# will honor the `STRIP' environment variable to overrule this program.
10937 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10938 +if test "$cross_compiling" != no; then
10939 + AC_CHECK_TOOL([STRIP], [strip], :)
10940 +fi
10941 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10942 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
10943 +
10944 +# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
10945 #
10946 -# --------------------------------------------------------------
10947 -AC_DEFUN([PKG_CHECK_MODULES],
10948 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
10949 -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
10950 -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
10951 +# This file is free software; the Free Software Foundation
10952 +# gives unlimited permission to copy and/or distribute it,
10953 +# with or without modifications, as long as this notice is preserved.
10954
10955 -pkg_failed=no
10956 -AC_MSG_CHECKING([for $1])
10957 +# serial 3
10958
10959 -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
10960 -_PKG_CONFIG([$1][_LIBS], [libs], [$2])
10961 +# _AM_SUBST_NOTMAKE(VARIABLE)
10962 +# ---------------------------
10963 +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10964 +# This macro is traced by Automake.
10965 +AC_DEFUN([_AM_SUBST_NOTMAKE])
10966
10967 -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
10968 -and $1[]_LIBS to avoid the need to call pkg-config.
10969 -See the pkg-config man page for more details.])
10970 +# AM_SUBST_NOTMAKE(VARIABLE)
10971 +# --------------------------
10972 +# Public sister of _AM_SUBST_NOTMAKE.
10973 +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10974
10975 -if test $pkg_failed = yes; then
10976 - _PKG_SHORT_ERRORS_SUPPORTED
10977 - if test $_pkg_short_errors_supported = yes; then
10978 - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
10979 - else
10980 - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
10981 - fi
10982 - # Put the nasty error message in config.log where it belongs
10983 - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
10984 +# Check how to create a tarball. -*- Autoconf -*-
10985
10986 - ifelse([$4], , [AC_MSG_ERROR(dnl
10987 -[Package requirements ($2) were not met:
10988 +# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
10989 +#
10990 +# This file is free software; the Free Software Foundation
10991 +# gives unlimited permission to copy and/or distribute it,
10992 +# with or without modifications, as long as this notice is preserved.
10993
10994 -$$1_PKG_ERRORS
10995 +# serial 2
10996
10997 -Consider adjusting the PKG_CONFIG_PATH environment variable if you
10998 -installed software in a non-standard prefix.
10999 +# _AM_PROG_TAR(FORMAT)
11000 +# --------------------
11001 +# Check how to create a tarball in format FORMAT.
11002 +# FORMAT should be one of `v7', `ustar', or `pax'.
11003 +#
11004 +# Substitute a variable $(am__tar) that is a command
11005 +# writing to stdout a FORMAT-tarball containing the directory
11006 +# $tardir.
11007 +# tardir=directory && $(am__tar) > result.tar
11008 +#
11009 +# Substitute a variable $(am__untar) that extract such
11010 +# a tarball read from stdin.
11011 +# $(am__untar) < result.tar
11012 +AC_DEFUN([_AM_PROG_TAR],
11013 +[# Always define AMTAR for backward compatibility. Yes, it's still used
11014 +# in the wild :-( We should find a proper way to deprecate it ...
11015 +AC_SUBST([AMTAR], ['$${TAR-tar}'])
11016 +m4_if([$1], [v7],
11017 + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
11018 + [m4_case([$1], [ustar],, [pax],,
11019 + [m4_fatal([Unknown tar format])])
11020 +AC_MSG_CHECKING([how to create a $1 tar archive])
11021 +# Loop over all known methods to create a tar archive until one works.
11022 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
11023 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
11024 +# Do not fold the above two line into one, because Tru64 sh and
11025 +# Solaris sh will not grok spaces in the rhs of `-'.
11026 +for _am_tool in $_am_tools
11027 +do
11028 + case $_am_tool in
11029 + gnutar)
11030 + for _am_tar in tar gnutar gtar;
11031 + do
11032 + AM_RUN_LOG([$_am_tar --version]) && break
11033 + done
11034 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
11035 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
11036 + am__untar="$_am_tar -xf -"
11037 + ;;
11038 + plaintar)
11039 + # Must skip GNU tar: if it does not support --format= it doesn't create
11040 + # ustar tarball either.
11041 + (tar --version) >/dev/null 2>&1 && continue
11042 + am__tar='tar chf - "$$tardir"'
11043 + am__tar_='tar chf - "$tardir"'
11044 + am__untar='tar xf -'
11045 + ;;
11046 + pax)
11047 + am__tar='pax -L -x $1 -w "$$tardir"'
11048 + am__tar_='pax -L -x $1 -w "$tardir"'
11049 + am__untar='pax -r'
11050 + ;;
11051 + cpio)
11052 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
11053 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
11054 + am__untar='cpio -i -H $1 -d'
11055 + ;;
11056 + none)
11057 + am__tar=false
11058 + am__tar_=false
11059 + am__untar=false
11060 + ;;
11061 + esac
11062
11063 -_PKG_TEXT
11064 -])],
11065 - [AC_MSG_RESULT([no])
11066 - $4])
11067 -elif test $pkg_failed = untried; then
11068 - ifelse([$4], , [AC_MSG_FAILURE(dnl
11069 -[The pkg-config script could not be found or is too old. Make sure it
11070 -is in your PATH or set the PKG_CONFIG environment variable to the full
11071 -path to pkg-config.
11072 + # If the value was cached, stop now. We just wanted to have am__tar
11073 + # and am__untar set.
11074 + test -n "${am_cv_prog_tar_$1}" && break
11075
11076 -_PKG_TEXT
11077 + # tar/untar a dummy directory, and stop if the command works
11078 + rm -rf conftest.dir
11079 + mkdir conftest.dir
11080 + echo GrepMe > conftest.dir/file
11081 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
11082 + rm -rf conftest.dir
11083 + if test -s conftest.tar; then
11084 + AM_RUN_LOG([$am__untar <conftest.tar])
11085 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
11086 + fi
11087 +done
11088 +rm -rf conftest.dir
11089
11090 -To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
11091 - [$4])
11092 -else
11093 - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
11094 - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
11095 - AC_MSG_RESULT([yes])
11096 - ifelse([$3], , :, [$3])
11097 -fi[]dnl
11098 -])# PKG_CHECK_MODULES
11099 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
11100 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
11101 +AC_SUBST([am__tar])
11102 +AC_SUBST([am__untar])
11103 +]) # _AM_PROG_TAR
11104
11105 m4_include([m4/gtk-doc.m4])
11106 m4_include([m4/jh-xml-catalog.m4])
11107 +m4_include([m4/libtool.m4])
11108 +m4_include([m4/ltoptions.m4])
11109 +m4_include([m4/ltsugar.m4])
11110 +m4_include([m4/ltversion.m4])
11111 +m4_include([m4/lt~obsolete.m4])
11112 diff --git a/config.h.in b/config.h.in
11113 index 5a2b16c..d8559ec 100644
11114 --- a/config.h.in
11115 +++ b/config.h.in
11116 @@ -57,6 +57,10 @@
11117 /* Define to 1 if you have the <unistd.h> header file. */
11118 #undef HAVE_UNISTD_H
11119
11120 +/* Define to the sub-directory in which libtool stores uninstalled libraries.
11121 + */
11122 +#undef LT_OBJDIR
11123 +
11124 /* Name of package */
11125 #undef PACKAGE
11126
11127 @@ -72,6 +76,9 @@
11128 /* Define to the one symbol short name of this package. */
11129 #undef PACKAGE_TARNAME
11130
11131 +/* Define to the home page for this package. */
11132 +#undef PACKAGE_URL
11133 +
11134 /* Define to the version of this package. */
11135 #undef PACKAGE_VERSION
11136
11137 diff --git a/configure b/configure
11138 index 1448b78..6024fc9 100755
11139 --- a/configure
11140 +++ b/configure
11141 @@ -1,20 +1,24 @@
11142 #! /bin/sh
11143 # Guess values for system-dependent variables and create Makefiles.
11144 -# Generated by GNU Autoconf 2.62 for libglade 2.6.4.
11145 +# Generated by GNU Autoconf 2.68 for libglade 2.6.4.
11146 #
11147 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libglade>.
11148 #
11149 +#
11150 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11151 -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
11152 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11153 +# Foundation, Inc.
11154 +#
11155 +#
11156 # This configure script is free software; the Free Software Foundation
11157 # gives unlimited permission to copy, distribute and modify it.
11158 -## --------------------- ##
11159 -## M4sh Initialization. ##
11160 -## --------------------- ##
11161 +## -------------------- ##
11162 +## M4sh Initialization. ##
11163 +## -------------------- ##
11164
11165 # Be more Bourne compatible
11166 DUALCASE=1; export DUALCASE # for MKS sh
11167 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11168 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11169 emulate sh
11170 NULLCMD=:
11171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11172 @@ -22,23 +26,15 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11173 alias -g '${1+"$@"}'='"$@"'
11174 setopt NO_GLOB_SUBST
11175 else
11176 - case `(set -o) 2>/dev/null` in
11177 - *posix*) set -o posix ;;
11178 + case `(set -o) 2>/dev/null` in #(
11179 + *posix*) :
11180 + set -o posix ;; #(
11181 + *) :
11182 + ;;
11183 esac
11184 -
11185 fi
11186
11187
11188 -
11189 -
11190 -# PATH needs CR
11191 -# Avoid depending upon Character Ranges.
11192 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11193 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11194 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11195 -as_cr_digits='0123456789'
11196 -as_cr_alnum=$as_cr_Letters$as_cr_digits
11197 -
11198 as_nl='
11199 '
11200 export as_nl
11201 @@ -46,7 +42,13 @@ export as_nl
11202 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11203 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11205 -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11206 +# Prefer a ksh shell builtin over an external printf program on Solaris,
11207 +# but without wasting forks for bash or zsh.
11208 +if test -z "$BASH_VERSION$ZSH_VERSION" \
11209 + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11210 + as_echo='print -r --'
11211 + as_echo_n='print -rn --'
11212 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11213 as_echo='printf %s\n'
11214 as_echo_n='printf %s'
11215 else
11216 @@ -57,7 +59,7 @@ else
11217 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11218 as_echo_n_body='eval
11219 arg=$1;
11220 - case $arg in
11221 + case $arg in #(
11222 *"$as_nl"*)
11223 expr "X$arg" : "X\\(.*\\)$as_nl";
11224 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11225 @@ -80,13 +82,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
11226 }
11227 fi
11228
11229 -# Support unset when possible.
11230 -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11231 - as_unset=unset
11232 -else
11233 - as_unset=false
11234 -fi
11235 -
11236
11237 # IFS
11238 # We need space, tab and new line, in precisely that order. Quoting is
11239 @@ -96,15 +91,16 @@ fi
11240 IFS=" "" $as_nl"
11241
11242 # Find who we are. Look in the path if we contain no directory separator.
11243 -case $0 in
11244 +as_myself=
11245 +case $0 in #((
11246 *[\\/]* ) as_myself=$0 ;;
11247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248 for as_dir in $PATH
11249 do
11250 IFS=$as_save_IFS
11251 test -z "$as_dir" && as_dir=.
11252 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11253 -done
11254 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11255 + done
11256 IFS=$as_save_IFS
11257
11258 ;;
11259 @@ -116,12 +112,16 @@ if test "x$as_myself" = x; then
11260 fi
11261 if test ! -f "$as_myself"; then
11262 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11263 - { (exit 1); exit 1; }
11264 + exit 1
11265 fi
11266
11267 -# Work around bugs in pre-3.0 UWIN ksh.
11268 -for as_var in ENV MAIL MAILPATH
11269 -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11270 +# Unset variables that we do not need and which cause bugs (e.g. in
11271 +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11272 +# suppresses any "Segmentation fault" message there. '((' could
11273 +# trigger a bug in pdksh 5.2.14.
11274 +for as_var in BASH_ENV ENV MAIL MAILPATH
11275 +do eval test x\${$as_var+set} = xset \
11276 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11277 done
11278 PS1='$ '
11279 PS2='> '
11280 @@ -133,7 +133,265 @@ export LC_ALL
11281 LANGUAGE=C
11282 export LANGUAGE
11283
11284 -# Required to use basename.
11285 +# CDPATH.
11286 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11287 +
11288 +if test "x$CONFIG_SHELL" = x; then
11289 + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
11290 + emulate sh
11291 + NULLCMD=:
11292 + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
11293 + # is contrary to our usage. Disable this feature.
11294 + alias -g '\${1+\"\$@\"}'='\"\$@\"'
11295 + setopt NO_GLOB_SUBST
11296 +else
11297 + case \`(set -o) 2>/dev/null\` in #(
11298 + *posix*) :
11299 + set -o posix ;; #(
11300 + *) :
11301 + ;;
11302 +esac
11303 +fi
11304 +"
11305 + as_required="as_fn_return () { (exit \$1); }
11306 +as_fn_success () { as_fn_return 0; }
11307 +as_fn_failure () { as_fn_return 1; }
11308 +as_fn_ret_success () { return 0; }
11309 +as_fn_ret_failure () { return 1; }
11310 +
11311 +exitcode=0
11312 +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
11313 +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
11314 +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
11315 +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
11316 +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
11317 +
11318 +else
11319 + exitcode=1; echo positional parameters were not saved.
11320 +fi
11321 +test x\$exitcode = x0 || exit 1"
11322 + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
11323 + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
11324 + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
11325 + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
11326 +test \$(( 1 + 1 )) = 2 || exit 1
11327 +
11328 + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
11329 + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11330 + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
11331 + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
11332 + PATH=/empty FPATH=/empty; export PATH FPATH
11333 + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
11334 + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
11335 + if (eval "$as_required") 2>/dev/null; then :
11336 + as_have_required=yes
11337 +else
11338 + as_have_required=no
11339 +fi
11340 + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
11341 +
11342 +else
11343 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 +as_found=false
11345 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11346 +do
11347 + IFS=$as_save_IFS
11348 + test -z "$as_dir" && as_dir=.
11349 + as_found=:
11350 + case $as_dir in #(
11351 + /*)
11352 + for as_base in sh bash ksh sh5; do
11353 + # Try only shells that exist, to save several forks.
11354 + as_shell=$as_dir/$as_base
11355 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
11356 + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
11357 + CONFIG_SHELL=$as_shell as_have_required=yes
11358 + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
11359 + break 2
11360 +fi
11361 +fi
11362 + done;;
11363 + esac
11364 + as_found=false
11365 +done
11366 +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
11367 + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
11368 + CONFIG_SHELL=$SHELL as_have_required=yes
11369 +fi; }
11370 +IFS=$as_save_IFS
11371 +
11372 +
11373 + if test "x$CONFIG_SHELL" != x; then :
11374 + # We cannot yet assume a decent shell, so we have to provide a
11375 + # neutralization value for shells without unset; and this also
11376 + # works around shells that cannot unset nonexistent variables.
11377 + # Preserve -v and -x to the replacement shell.
11378 + BASH_ENV=/dev/null
11379 + ENV=/dev/null
11380 + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
11381 + export CONFIG_SHELL
11382 + case $- in # ((((
11383 + *v*x* | *x*v* ) as_opts=-vx ;;
11384 + *v* ) as_opts=-v ;;
11385 + *x* ) as_opts=-x ;;
11386 + * ) as_opts= ;;
11387 + esac
11388 + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
11389 +fi
11390 +
11391 + if test x$as_have_required = xno; then :
11392 + $as_echo "$0: This script requires a shell more modern than all"
11393 + $as_echo "$0: the shells that I found on your system."
11394 + if test x${ZSH_VERSION+set} = xset ; then
11395 + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
11396 + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
11397 + else
11398 + $as_echo "$0: Please tell bug-autoconf@gnu.org and
11399 +$0: http://bugzilla.gnome.org/enter_bug.cgi?product=libglade
11400 +$0: about your system, including any error possibly output
11401 +$0: before this message. Then install a modern shell, or
11402 +$0: manually run the script under such a shell if you do
11403 +$0: have one."
11404 + fi
11405 + exit 1
11406 +fi
11407 +fi
11408 +fi
11409 +SHELL=${CONFIG_SHELL-/bin/sh}
11410 +export SHELL
11411 +# Unset more variables known to interfere with behavior of common tools.
11412 +CLICOLOR_FORCE= GREP_OPTIONS=
11413 +unset CLICOLOR_FORCE GREP_OPTIONS
11414 +
11415 +## --------------------- ##
11416 +## M4sh Shell Functions. ##
11417 +## --------------------- ##
11418 +# as_fn_unset VAR
11419 +# ---------------
11420 +# Portably unset VAR.
11421 +as_fn_unset ()
11422 +{
11423 + { eval $1=; unset $1;}
11424 +}
11425 +as_unset=as_fn_unset
11426 +
11427 +# as_fn_set_status STATUS
11428 +# -----------------------
11429 +# Set $? to STATUS, without forking.
11430 +as_fn_set_status ()
11431 +{
11432 + return $1
11433 +} # as_fn_set_status
11434 +
11435 +# as_fn_exit STATUS
11436 +# -----------------
11437 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11438 +as_fn_exit ()
11439 +{
11440 + set +e
11441 + as_fn_set_status $1
11442 + exit $1
11443 +} # as_fn_exit
11444 +
11445 +# as_fn_mkdir_p
11446 +# -------------
11447 +# Create "$as_dir" as a directory, including parents if necessary.
11448 +as_fn_mkdir_p ()
11449 +{
11450 +
11451 + case $as_dir in #(
11452 + -*) as_dir=./$as_dir;;
11453 + esac
11454 + test -d "$as_dir" || eval $as_mkdir_p || {
11455 + as_dirs=
11456 + while :; do
11457 + case $as_dir in #(
11458 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11459 + *) as_qdir=$as_dir;;
11460 + esac
11461 + as_dirs="'$as_qdir' $as_dirs"
11462 + as_dir=`$as_dirname -- "$as_dir" ||
11463 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11464 + X"$as_dir" : 'X\(//\)[^/]' \| \
11465 + X"$as_dir" : 'X\(//\)$' \| \
11466 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11467 +$as_echo X"$as_dir" |
11468 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11469 + s//\1/
11470 + q
11471 + }
11472 + /^X\(\/\/\)[^/].*/{
11473 + s//\1/
11474 + q
11475 + }
11476 + /^X\(\/\/\)$/{
11477 + s//\1/
11478 + q
11479 + }
11480 + /^X\(\/\).*/{
11481 + s//\1/
11482 + q
11483 + }
11484 + s/.*/./; q'`
11485 + test -d "$as_dir" && break
11486 + done
11487 + test -z "$as_dirs" || eval "mkdir $as_dirs"
11488 + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11489 +
11490 +
11491 +} # as_fn_mkdir_p
11492 +# as_fn_append VAR VALUE
11493 +# ----------------------
11494 +# Append the text in VALUE to the end of the definition contained in VAR. Take
11495 +# advantage of any shell optimizations that allow amortized linear growth over
11496 +# repeated appends, instead of the typical quadratic growth present in naive
11497 +# implementations.
11498 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11499 + eval 'as_fn_append ()
11500 + {
11501 + eval $1+=\$2
11502 + }'
11503 +else
11504 + as_fn_append ()
11505 + {
11506 + eval $1=\$$1\$2
11507 + }
11508 +fi # as_fn_append
11509 +
11510 +# as_fn_arith ARG...
11511 +# ------------------
11512 +# Perform arithmetic evaluation on the ARGs, and store the result in the
11513 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
11514 +# must be portable across $(()) and expr.
11515 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11516 + eval 'as_fn_arith ()
11517 + {
11518 + as_val=$(( $* ))
11519 + }'
11520 +else
11521 + as_fn_arith ()
11522 + {
11523 + as_val=`expr "$@" || test $? -eq 1`
11524 + }
11525 +fi # as_fn_arith
11526 +
11527 +
11528 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
11529 +# ----------------------------------------
11530 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11531 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11532 +# script with STATUS, using 1 if that was 0.
11533 +as_fn_error ()
11534 +{
11535 + as_status=$1; test $as_status -eq 0 && as_status=1
11536 + if test "$4"; then
11537 + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11538 + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11539 + fi
11540 + $as_echo "$as_me: error: $2" >&2
11541 + as_fn_exit $as_status
11542 +} # as_fn_error
11543 +
11544 if expr a : '\(a\)' >/dev/null 2>&1 &&
11545 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11546 as_expr=expr
11547 @@ -147,8 +405,12 @@ else
11548 as_basename=false
11549 fi
11550
11551 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11552 + as_dirname=dirname
11553 +else
11554 + as_dirname=false
11555 +fi
11556
11557 -# Name of the executable.
11558 as_me=`$as_basename -- "$0" ||
11559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11560 X"$0" : 'X\(//\)$' \| \
11561 @@ -168,1895 +430,4380 @@ $as_echo X/"$0" |
11562 }
11563 s/.*/./; q'`
11564
11565 -# CDPATH.
11566 -$as_unset CDPATH
11567 +# Avoid depending upon Character Ranges.
11568 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11569 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11570 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11571 +as_cr_digits='0123456789'
11572 +as_cr_alnum=$as_cr_Letters$as_cr_digits
11573
11574
11575 -if test "x$CONFIG_SHELL" = x; then
11576 - if (eval ":") 2>/dev/null; then
11577 - as_have_required=yes
11578 -else
11579 - as_have_required=no
11580 -fi
11581 + as_lineno_1=$LINENO as_lineno_1a=$LINENO
11582 + as_lineno_2=$LINENO as_lineno_2a=$LINENO
11583 + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
11584 + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
11585 + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
11586 + sed -n '
11587 + p
11588 + /[$]LINENO/=
11589 + ' <$as_myself |
11590 + sed '
11591 + s/[$]LINENO.*/&-/
11592 + t lineno
11593 + b
11594 + :lineno
11595 + N
11596 + :loop
11597 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11598 + t loop
11599 + s/-\n.*//
11600 + ' >$as_me.lineno &&
11601 + chmod +x "$as_me.lineno" ||
11602 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
11603
11604 - if test $as_have_required = yes && (eval ":
11605 -(as_func_return () {
11606 - (exit \$1)
11607 -}
11608 -as_func_success () {
11609 - as_func_return 0
11610 -}
11611 -as_func_failure () {
11612 - as_func_return 1
11613 -}
11614 -as_func_ret_success () {
11615 - return 0
11616 -}
11617 -as_func_ret_failure () {
11618 - return 1
11619 + # Don't try to exec as it changes $[0], causing all sort of problems
11620 + # (the dirname of $[0] is not the place where we might find the
11621 + # original and so on. Autoconf is especially sensitive to this).
11622 + . "./$as_me.lineno"
11623 + # Exit status is that of the last command.
11624 + exit
11625 }
11626
11627 -exitcode=0
11628 -if as_func_success; then
11629 - :
11630 -else
11631 - exitcode=1
11632 - echo as_func_success failed.
11633 -fi
11634 +ECHO_C= ECHO_N= ECHO_T=
11635 +case `echo -n x` in #(((((
11636 +-n*)
11637 + case `echo 'xy\c'` in
11638 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11639 + xy) ECHO_C='\c';;
11640 + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11641 + ECHO_T=' ';;
11642 + esac;;
11643 +*)
11644 + ECHO_N='-n';;
11645 +esac
11646
11647 -if as_func_failure; then
11648 - exitcode=1
11649 - echo as_func_failure succeeded.
11650 +rm -f conf$$ conf$$.exe conf$$.file
11651 +if test -d conf$$.dir; then
11652 + rm -f conf$$.dir/conf$$.file
11653 +else
11654 + rm -f conf$$.dir
11655 + mkdir conf$$.dir 2>/dev/null
11656 fi
11657 -
11658 -if as_func_ret_success; then
11659 - :
11660 +if (echo >conf$$.file) 2>/dev/null; then
11661 + if ln -s conf$$.file conf$$ 2>/dev/null; then
11662 + as_ln_s='ln -s'
11663 + # ... but there are two gotchas:
11664 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11665 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11666 + # In both cases, we have to default to `cp -p'.
11667 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11668 + as_ln_s='cp -p'
11669 + elif ln conf$$.file conf$$ 2>/dev/null; then
11670 + as_ln_s=ln
11671 + else
11672 + as_ln_s='cp -p'
11673 + fi
11674 else
11675 - exitcode=1
11676 - echo as_func_ret_success failed.
11677 + as_ln_s='cp -p'
11678 fi
11679 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11680 +rmdir conf$$.dir 2>/dev/null
11681
11682 -if as_func_ret_failure; then
11683 - exitcode=1
11684 - echo as_func_ret_failure succeeded.
11685 +if mkdir -p . 2>/dev/null; then
11686 + as_mkdir_p='mkdir -p "$as_dir"'
11687 +else
11688 + test -d ./-p && rmdir ./-p
11689 + as_mkdir_p=false
11690 fi
11691
11692 -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
11693 - :
11694 +if test -x / >/dev/null 2>&1; then
11695 + as_test_x='test -x'
11696 else
11697 - exitcode=1
11698 - echo positional parameters were not saved.
11699 + if ls -dL / >/dev/null 2>&1; then
11700 + as_ls_L_option=L
11701 + else
11702 + as_ls_L_option=
11703 + fi
11704 + as_test_x='
11705 + eval sh -c '\''
11706 + if test -d "$1"; then
11707 + test -d "$1/.";
11708 + else
11709 + case $1 in #(
11710 + -*)set "./$1";;
11711 + esac;
11712 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11713 + ???[sx]*):;;*)false;;esac;fi
11714 + '\'' sh
11715 + '
11716 fi
11717 +as_executable_p=$as_test_x
11718
11719 -test \$exitcode = 0) || { (exit 1); exit 1; }
11720 +# Sed expression to map a string onto a valid CPP name.
11721 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11722
11723 -(
11724 - as_lineno_1=\$LINENO
11725 - as_lineno_2=\$LINENO
11726 - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
11727 - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
11728 -") 2> /dev/null; then
11729 - :
11730 -else
11731 - as_candidate_shells=
11732 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11734 -do
11735 - IFS=$as_save_IFS
11736 - test -z "$as_dir" && as_dir=.
11737 - case $as_dir in
11738 - /*)
11739 - for as_base in sh bash ksh sh5; do
11740 - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
11741 - done;;
11742 - esac
11743 -done
11744 -IFS=$as_save_IFS
11745 +# Sed expression to map a string onto a valid variable name.
11746 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11747
11748 +SHELL=${CONFIG_SHELL-/bin/sh}
11749
11750 - for as_shell in $as_candidate_shells $SHELL; do
11751 - # Try only shells that exist, to save several forks.
11752 - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
11753 - { ("$as_shell") 2> /dev/null <<\_ASEOF
11754 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11755 - emulate sh
11756 - NULLCMD=:
11757 - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11758 - # is contrary to our usage. Disable this feature.
11759 - alias -g '${1+"$@"}'='"$@"'
11760 - setopt NO_GLOB_SUBST
11761 -else
11762 - case `(set -o) 2>/dev/null` in
11763 - *posix*) set -o posix ;;
11764 -esac
11765
11766 -fi
11767 +test -n "$DJDIR" || exec 7<&0 </dev/null
11768 +exec 6>&1
11769
11770 +# Name of the host.
11771 +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
11772 +# so uname gets run too.
11773 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
11774
11775 -:
11776 -_ASEOF
11777 -}; then
11778 - CONFIG_SHELL=$as_shell
11779 - as_have_required=yes
11780 - if { "$as_shell" 2> /dev/null <<\_ASEOF
11781 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11782 - emulate sh
11783 - NULLCMD=:
11784 - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11785 - # is contrary to our usage. Disable this feature.
11786 - alias -g '${1+"$@"}'='"$@"'
11787 - setopt NO_GLOB_SUBST
11788 -else
11789 - case `(set -o) 2>/dev/null` in
11790 - *posix*) set -o posix ;;
11791 -esac
11792 +#
11793 +# Initializations.
11794 +#
11795 +ac_default_prefix=/usr/local
11796 +ac_clean_files=
11797 +ac_config_libobj_dir=.
11798 +LIBOBJS=
11799 +cross_compiling=no
11800 +subdirs=
11801 +MFLAGS=
11802 +MAKEFLAGS=
11803
11804 -fi
11805 +# Identity of this package.
11806 +PACKAGE_NAME='libglade'
11807 +PACKAGE_TARNAME='libglade'
11808 +PACKAGE_VERSION='2.6.4'
11809 +PACKAGE_STRING='libglade 2.6.4'
11810 +PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libglade'
11811 +PACKAGE_URL=''
11812
11813 +ac_unique_file="test-libglade.c"
11814 +# Factoring default headers for most tests.
11815 +ac_includes_default="\
11816 +#include <stdio.h>
11817 +#ifdef HAVE_SYS_TYPES_H
11818 +# include <sys/types.h>
11819 +#endif
11820 +#ifdef HAVE_SYS_STAT_H
11821 +# include <sys/stat.h>
11822 +#endif
11823 +#ifdef STDC_HEADERS
11824 +# include <stdlib.h>
11825 +# include <stddef.h>
11826 +#else
11827 +# ifdef HAVE_STDLIB_H
11828 +# include <stdlib.h>
11829 +# endif
11830 +#endif
11831 +#ifdef HAVE_STRING_H
11832 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
11833 +# include <memory.h>
11834 +# endif
11835 +# include <string.h>
11836 +#endif
11837 +#ifdef HAVE_STRINGS_H
11838 +# include <strings.h>
11839 +#endif
11840 +#ifdef HAVE_INTTYPES_H
11841 +# include <inttypes.h>
11842 +#endif
11843 +#ifdef HAVE_STDINT_H
11844 +# include <stdint.h>
11845 +#endif
11846 +#ifdef HAVE_UNISTD_H
11847 +# include <unistd.h>
11848 +#endif"
11849
11850 -:
11851 -(as_func_return () {
11852 - (exit $1)
11853 -}
11854 -as_func_success () {
11855 - as_func_return 0
11856 -}
11857 -as_func_failure () {
11858 - as_func_return 1
11859 -}
11860 -as_func_ret_success () {
11861 - return 0
11862 -}
11863 -as_func_ret_failure () {
11864 - return 1
11865 -}
11866 +ac_subst_vars='am__EXEEXT_FALSE
11867 +am__EXEEXT_TRUE
11868 +LTLIBOBJS
11869 +LIBOBJS
11870 +HAVE_XMLCATALOG_FALSE
11871 +HAVE_XMLCATALOG_TRUE
11872 +XMLCATALOG
11873 +XML_CATALOG_FILE
11874 +HAVE_PYTHON_FALSE
11875 +HAVE_PYTHON_TRUE
11876 +pkgpyexecdir
11877 +pyexecdir
11878 +pkgpythondir
11879 +pythondir
11880 +PYTHON_PLATFORM
11881 +PYTHON_EXEC_PREFIX
11882 +PYTHON_PREFIX
11883 +PYTHON_VERSION
11884 +PYTHON
11885 +MKINSTALLDIRS
11886 +POSUB
11887 +POFILES
11888 +PO_IN_DATADIR_FALSE
11889 +PO_IN_DATADIR_TRUE
11890 +INTLLIBS
11891 +INSTOBJEXT
11892 +GMOFILES
11893 +DATADIRNAME
11894 +CATOBJEXT
11895 +CATALOGS
11896 +XGETTEXT
11897 +GMSGFMT
11898 +MSGFMT_OPTS
11899 +MSGFMT
11900 +USE_NLS
11901 +GETTEXT_PACKAGE
11902 +GTK_DOC_USE_REBASE_FALSE
11903 +GTK_DOC_USE_REBASE_TRUE
11904 +GTK_DOC_USE_LIBTOOL_FALSE
11905 +GTK_DOC_USE_LIBTOOL_TRUE
11906 +GTK_DOC_BUILD_PDF_FALSE
11907 +GTK_DOC_BUILD_PDF_TRUE
11908 +GTK_DOC_BUILD_HTML_FALSE
11909 +GTK_DOC_BUILD_HTML_TRUE
11910 +ENABLE_GTK_DOC_FALSE
11911 +ENABLE_GTK_DOC_TRUE
11912 +GTKDOC_REBASE
11913 +GTKDOC_CHECK
11914 +HTML_DIR
11915 +PLATFORM_WIN32_FALSE
11916 +PLATFORM_WIN32_TRUE
11917 +OS_WIN32_FALSE
11918 +OS_WIN32_TRUE
11919 +GTK_LIBS
11920 +GTK_CFLAGS
11921 +OTOOL64
11922 +OTOOL
11923 +LIPO
11924 +NMEDIT
11925 +DSYMUTIL
11926 +MANIFEST_TOOL
11927 +RANLIB
11928 +ac_ct_AR
11929 +AR
11930 +LN_S
11931 +NM
11932 +ac_ct_DUMPBIN
11933 +DUMPBIN
11934 +LD
11935 +FGREP
11936 +SED
11937 +LIBTOOL
11938 +OBJDUMP
11939 +DLLTOOL
11940 +AS
11941 +host_os
11942 +host_vendor
11943 +host_cpu
11944 +host
11945 +build_os
11946 +build_vendor
11947 +build_cpu
11948 +build
11949 +EGREP
11950 +GREP
11951 +CPP
11952 +am__fastdepCC_FALSE
11953 +am__fastdepCC_TRUE
11954 +CCDEPMODE
11955 +am__nodep
11956 +AMDEPBACKSLASH
11957 +AMDEP_FALSE
11958 +AMDEP_TRUE
11959 +am__quote
11960 +am__include
11961 +DEPDIR
11962 +OBJEXT
11963 +EXEEXT
11964 +ac_ct_CC
11965 +CPPFLAGS
11966 +LDFLAGS
11967 +CFLAGS
11968 +CC
11969 +LIBGLADE_LIBS
11970 +LIBGLADE_CFLAGS
11971 +PKG_CONFIG_LIBDIR
11972 +PKG_CONFIG_PATH
11973 +PKG_CONFIG
11974 +am__untar
11975 +am__tar
11976 +AMTAR
11977 +am__leading_dot
11978 +SET_MAKE
11979 +AWK
11980 +mkdir_p
11981 +MKDIR_P
11982 +INSTALL_STRIP_PROGRAM
11983 +STRIP
11984 +install_sh
11985 +MAKEINFO
11986 +AUTOHEADER
11987 +AUTOMAKE
11988 +AUTOCONF
11989 +ACLOCAL
11990 +VERSION
11991 +PACKAGE
11992 +CYGPATH_W
11993 +am__isrc
11994 +INSTALL_DATA
11995 +INSTALL_SCRIPT
11996 +INSTALL_PROGRAM
11997 +target_alias
11998 +host_alias
11999 +build_alias
12000 +LIBS
12001 +ECHO_T
12002 +ECHO_N
12003 +ECHO_C
12004 +DEFS
12005 +mandir
12006 +localedir
12007 +libdir
12008 +psdir
12009 +pdfdir
12010 +dvidir
12011 +htmldir
12012 +infodir
12013 +docdir
12014 +oldincludedir
12015 +includedir
12016 +localstatedir
12017 +sharedstatedir
12018 +sysconfdir
12019 +datadir
12020 +datarootdir
12021 +libexecdir
12022 +sbindir
12023 +bindir
12024 +program_transform_name
12025 +prefix
12026 +exec_prefix
12027 +PACKAGE_URL
12028 +PACKAGE_BUGREPORT
12029 +PACKAGE_STRING
12030 +PACKAGE_VERSION
12031 +PACKAGE_TARNAME
12032 +PACKAGE_NAME
12033 +PATH_SEPARATOR
12034 +SHELL'
12035 +ac_subst_files=''
12036 +ac_user_opts='
12037 +enable_option_checking
12038 +enable_dependency_tracking
12039 +enable_shared
12040 +enable_static
12041 +with_pic
12042 +enable_fast_install
12043 +with_gnu_ld
12044 +with_sysroot
12045 +enable_libtool_lock
12046 +enable_gtktest
12047 +with_html_dir
12048 +enable_gtk_doc
12049 +enable_gtk_doc_html
12050 +enable_gtk_doc_pdf
12051 +with_xml_catalog
12052 +'
12053 + ac_precious_vars='build_alias
12054 +host_alias
12055 +target_alias
12056 +PKG_CONFIG
12057 +PKG_CONFIG_PATH
12058 +PKG_CONFIG_LIBDIR
12059 +LIBGLADE_CFLAGS
12060 +LIBGLADE_LIBS
12061 +CC
12062 +CFLAGS
12063 +LDFLAGS
12064 +LIBS
12065 +CPPFLAGS
12066 +CPP
12067 +PYTHON'
12068
12069 -exitcode=0
12070 -if as_func_success; then
12071 - :
12072 -else
12073 - exitcode=1
12074 - echo as_func_success failed.
12075 -fi
12076
12077 -if as_func_failure; then
12078 - exitcode=1
12079 - echo as_func_failure succeeded.
12080 -fi
12081 +# Initialize some variables set by options.
12082 +ac_init_help=
12083 +ac_init_version=false
12084 +ac_unrecognized_opts=
12085 +ac_unrecognized_sep=
12086 +# The variables have the same names as the options, with
12087 +# dashes changed to underlines.
12088 +cache_file=/dev/null
12089 +exec_prefix=NONE
12090 +no_create=
12091 +no_recursion=
12092 +prefix=NONE
12093 +program_prefix=NONE
12094 +program_suffix=NONE
12095 +program_transform_name=s,x,x,
12096 +silent=
12097 +site=
12098 +srcdir=
12099 +verbose=
12100 +x_includes=NONE
12101 +x_libraries=NONE
12102
12103 -if as_func_ret_success; then
12104 - :
12105 -else
12106 - exitcode=1
12107 - echo as_func_ret_success failed.
12108 -fi
12109 +# Installation directory options.
12110 +# These are left unexpanded so users can "make install exec_prefix=/foo"
12111 +# and all the variables that are supposed to be based on exec_prefix
12112 +# by default will actually change.
12113 +# Use braces instead of parens because sh, perl, etc. also accept them.
12114 +# (The list follows the same order as the GNU Coding Standards.)
12115 +bindir='${exec_prefix}/bin'
12116 +sbindir='${exec_prefix}/sbin'
12117 +libexecdir='${exec_prefix}/libexec'
12118 +datarootdir='${prefix}/share'
12119 +datadir='${datarootdir}'
12120 +sysconfdir='${prefix}/etc'
12121 +sharedstatedir='${prefix}/com'
12122 +localstatedir='${prefix}/var'
12123 +includedir='${prefix}/include'
12124 +oldincludedir='/usr/include'
12125 +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
12126 +infodir='${datarootdir}/info'
12127 +htmldir='${docdir}'
12128 +dvidir='${docdir}'
12129 +pdfdir='${docdir}'
12130 +psdir='${docdir}'
12131 +libdir='${exec_prefix}/lib'
12132 +localedir='${datarootdir}/locale'
12133 +mandir='${datarootdir}/man'
12134
12135 -if as_func_ret_failure; then
12136 - exitcode=1
12137 - echo as_func_ret_failure succeeded.
12138 -fi
12139 +ac_prev=
12140 +ac_dashdash=
12141 +for ac_option
12142 +do
12143 + # If the previous option needs an argument, assign it.
12144 + if test -n "$ac_prev"; then
12145 + eval $ac_prev=\$ac_option
12146 + ac_prev=
12147 + continue
12148 + fi
12149
12150 -if ( set x; as_func_ret_success y && test x = "$1" ); then
12151 - :
12152 -else
12153 - exitcode=1
12154 - echo positional parameters were not saved.
12155 -fi
12156 + case $ac_option in
12157 + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
12158 + *=) ac_optarg= ;;
12159 + *) ac_optarg=yes ;;
12160 + esac
12161
12162 -test $exitcode = 0) || { (exit 1); exit 1; }
12163 + # Accept the important Cygnus configure options, so we can diagnose typos.
12164
12165 -(
12166 - as_lineno_1=$LINENO
12167 - as_lineno_2=$LINENO
12168 - test "x$as_lineno_1" != "x$as_lineno_2" &&
12169 - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
12170 + case $ac_dashdash$ac_option in
12171 + --)
12172 + ac_dashdash=yes ;;
12173
12174 -_ASEOF
12175 -}; then
12176 - break
12177 -fi
12178 + -bindir | --bindir | --bindi | --bind | --bin | --bi)
12179 + ac_prev=bindir ;;
12180 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
12181 + bindir=$ac_optarg ;;
12182
12183 -fi
12184 + -build | --build | --buil | --bui | --bu)
12185 + ac_prev=build_alias ;;
12186 + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
12187 + build_alias=$ac_optarg ;;
12188
12189 - done
12190 + -cache-file | --cache-file | --cache-fil | --cache-fi \
12191 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12192 + ac_prev=cache_file ;;
12193 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12194 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
12195 + cache_file=$ac_optarg ;;
12196
12197 - if test "x$CONFIG_SHELL" != x; then
12198 - for as_var in BASH_ENV ENV
12199 - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12200 - done
12201 - export CONFIG_SHELL
12202 - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
12203 -fi
12204 + --config-cache | -C)
12205 + cache_file=config.cache ;;
12206
12207 + -datadir | --datadir | --datadi | --datad)
12208 + ac_prev=datadir ;;
12209 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
12210 + datadir=$ac_optarg ;;
12211
12212 - if test $as_have_required = no; then
12213 - echo This script requires a shell more modern than all the
12214 - echo shells that I found on your system. Please install a
12215 - echo modern shell, or manually run the script under such a
12216 - echo shell if you do have one.
12217 - { (exit 1); exit 1; }
12218 -fi
12219 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
12220 + | --dataroo | --dataro | --datar)
12221 + ac_prev=datarootdir ;;
12222 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
12223 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
12224 + datarootdir=$ac_optarg ;;
12225
12226 + -disable-* | --disable-*)
12227 + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
12228 + # Reject names that are not valid shell variable names.
12229 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12230 + as_fn_error $? "invalid feature name: $ac_useropt"
12231 + ac_useropt_orig=$ac_useropt
12232 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
12233 + case $ac_user_opts in
12234 + *"
12235 +"enable_$ac_useropt"
12236 +"*) ;;
12237 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
12238 + ac_unrecognized_sep=', ';;
12239 + esac
12240 + eval enable_$ac_useropt=no ;;
12241
12242 -fi
12243 + -docdir | --docdir | --docdi | --doc | --do)
12244 + ac_prev=docdir ;;
12245 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
12246 + docdir=$ac_optarg ;;
12247
12248 -fi
12249 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
12250 + ac_prev=dvidir ;;
12251 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
12252 + dvidir=$ac_optarg ;;
12253
12254 + -enable-* | --enable-*)
12255 + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
12256 + # Reject names that are not valid shell variable names.
12257 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12258 + as_fn_error $? "invalid feature name: $ac_useropt"
12259 + ac_useropt_orig=$ac_useropt
12260 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
12261 + case $ac_user_opts in
12262 + *"
12263 +"enable_$ac_useropt"
12264 +"*) ;;
12265 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
12266 + ac_unrecognized_sep=', ';;
12267 + esac
12268 + eval enable_$ac_useropt=\$ac_optarg ;;
12269
12270 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
12271 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
12272 + | --exec | --exe | --ex)
12273 + ac_prev=exec_prefix ;;
12274 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
12275 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
12276 + | --exec=* | --exe=* | --ex=*)
12277 + exec_prefix=$ac_optarg ;;
12278
12279 -(eval "as_func_return () {
12280 - (exit \$1)
12281 -}
12282 -as_func_success () {
12283 - as_func_return 0
12284 -}
12285 -as_func_failure () {
12286 - as_func_return 1
12287 -}
12288 -as_func_ret_success () {
12289 - return 0
12290 -}
12291 -as_func_ret_failure () {
12292 - return 1
12293 -}
12294 + -gas | --gas | --ga | --g)
12295 + # Obsolete; use --with-gas.
12296 + with_gas=yes ;;
12297
12298 -exitcode=0
12299 -if as_func_success; then
12300 - :
12301 -else
12302 - exitcode=1
12303 - echo as_func_success failed.
12304 -fi
12305 + -help | --help | --hel | --he | -h)
12306 + ac_init_help=long ;;
12307 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
12308 + ac_init_help=recursive ;;
12309 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
12310 + ac_init_help=short ;;
12311
12312 -if as_func_failure; then
12313 - exitcode=1
12314 - echo as_func_failure succeeded.
12315 -fi
12316 + -host | --host | --hos | --ho)
12317 + ac_prev=host_alias ;;
12318 + -host=* | --host=* | --hos=* | --ho=*)
12319 + host_alias=$ac_optarg ;;
12320
12321 -if as_func_ret_success; then
12322 - :
12323 -else
12324 - exitcode=1
12325 - echo as_func_ret_success failed.
12326 -fi
12327 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
12328 + ac_prev=htmldir ;;
12329 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
12330 + | --ht=*)
12331 + htmldir=$ac_optarg ;;
12332
12333 -if as_func_ret_failure; then
12334 - exitcode=1
12335 - echo as_func_ret_failure succeeded.
12336 -fi
12337 + -includedir | --includedir | --includedi | --included | --include \
12338 + | --includ | --inclu | --incl | --inc)
12339 + ac_prev=includedir ;;
12340 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
12341 + | --includ=* | --inclu=* | --incl=* | --inc=*)
12342 + includedir=$ac_optarg ;;
12343
12344 -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
12345 - :
12346 -else
12347 - exitcode=1
12348 - echo positional parameters were not saved.
12349 -fi
12350 + -infodir | --infodir | --infodi | --infod | --info | --inf)
12351 + ac_prev=infodir ;;
12352 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
12353 + infodir=$ac_optarg ;;
12354
12355 -test \$exitcode = 0") || {
12356 - echo No shell found that supports shell functions.
12357 - echo Please tell bug-autoconf@gnu.org about your system,
12358 - echo including any error possibly output before this message.
12359 - echo This can help us improve future autoconf versions.
12360 - echo Configuration will now proceed without shell functions.
12361 -}
12362 + -libdir | --libdir | --libdi | --libd)
12363 + ac_prev=libdir ;;
12364 + -libdir=* | --libdir=* | --libdi=* | --libd=*)
12365 + libdir=$ac_optarg ;;
12366
12367 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
12368 + | --libexe | --libex | --libe)
12369 + ac_prev=libexecdir ;;
12370 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
12371 + | --libexe=* | --libex=* | --libe=*)
12372 + libexecdir=$ac_optarg ;;
12373
12374 + -localedir | --localedir | --localedi | --localed | --locale)
12375 + ac_prev=localedir ;;
12376 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
12377 + localedir=$ac_optarg ;;
12378
12379 - as_lineno_1=$LINENO
12380 - as_lineno_2=$LINENO
12381 - test "x$as_lineno_1" != "x$as_lineno_2" &&
12382 - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12383 + -localstatedir | --localstatedir | --localstatedi | --localstated \
12384 + | --localstate | --localstat | --localsta | --localst | --locals)
12385 + ac_prev=localstatedir ;;
12386 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
12387 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
12388 + localstatedir=$ac_optarg ;;
12389
12390 - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12391 - # uniformly replaced by the line number. The first 'sed' inserts a
12392 - # line-number line after each line using $LINENO; the second 'sed'
12393 - # does the real work. The second script uses 'N' to pair each
12394 - # line-number line with the line containing $LINENO, and appends
12395 - # trailing '-' during substitution so that $LINENO is not a special
12396 - # case at line end.
12397 - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12398 - # scripts with optimization help from Paolo Bonzini. Blame Lee
12399 - # E. McMahon (1931-1989) for sed's syntax. :-)
12400 - sed -n '
12401 - p
12402 - /[$]LINENO/=
12403 - ' <$as_myself |
12404 - sed '
12405 - s/[$]LINENO.*/&-/
12406 - t lineno
12407 - b
12408 - :lineno
12409 - N
12410 - :loop
12411 - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12412 - t loop
12413 - s/-\n.*//
12414 - ' >$as_me.lineno &&
12415 - chmod +x "$as_me.lineno" ||
12416 - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12417 - { (exit 1); exit 1; }; }
12418 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
12419 + ac_prev=mandir ;;
12420 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
12421 + mandir=$ac_optarg ;;
12422
12423 - # Don't try to exec as it changes $[0], causing all sort of problems
12424 - # (the dirname of $[0] is not the place where we might find the
12425 - # original and so on. Autoconf is especially sensitive to this).
12426 - . "./$as_me.lineno"
12427 - # Exit status is that of the last command.
12428 - exit
12429 -}
12430 + -nfp | --nfp | --nf)
12431 + # Obsolete; use --without-fp.
12432 + with_fp=no ;;
12433
12434 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
12435 + | --no-cr | --no-c | -n)
12436 + no_create=yes ;;
12437
12438 -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12439 - as_dirname=dirname
12440 -else
12441 - as_dirname=false
12442 -fi
12443 -
12444 -ECHO_C= ECHO_N= ECHO_T=
12445 -case `echo -n x` in
12446 --n*)
12447 - case `echo 'x\c'` in
12448 - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12449 - *) ECHO_C='\c';;
12450 - esac;;
12451 -*)
12452 - ECHO_N='-n';;
12453 -esac
12454 -if expr a : '\(a\)' >/dev/null 2>&1 &&
12455 - test "X`expr 00001 : '.*\(...\)'`" = X001; then
12456 - as_expr=expr
12457 -else
12458 - as_expr=false
12459 -fi
12460 -
12461 -rm -f conf$$ conf$$.exe conf$$.file
12462 -if test -d conf$$.dir; then
12463 - rm -f conf$$.dir/conf$$.file
12464 -else
12465 - rm -f conf$$.dir
12466 - mkdir conf$$.dir 2>/dev/null
12467 -fi
12468 -if (echo >conf$$.file) 2>/dev/null; then
12469 - if ln -s conf$$.file conf$$ 2>/dev/null; then
12470 - as_ln_s='ln -s'
12471 - # ... but there are two gotchas:
12472 - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12473 - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12474 - # In both cases, we have to default to `cp -p'.
12475 - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12476 - as_ln_s='cp -p'
12477 - elif ln conf$$.file conf$$ 2>/dev/null; then
12478 - as_ln_s=ln
12479 - else
12480 - as_ln_s='cp -p'
12481 - fi
12482 -else
12483 - as_ln_s='cp -p'
12484 -fi
12485 -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12486 -rmdir conf$$.dir 2>/dev/null
12487 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
12488 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
12489 + no_recursion=yes ;;
12490
12491 -if mkdir -p . 2>/dev/null; then
12492 - as_mkdir_p=:
12493 -else
12494 - test -d ./-p && rmdir ./-p
12495 - as_mkdir_p=false
12496 -fi
12497 + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
12498 + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
12499 + | --oldin | --oldi | --old | --ol | --o)
12500 + ac_prev=oldincludedir ;;
12501 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
12502 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
12503 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
12504 + oldincludedir=$ac_optarg ;;
12505
12506 -if test -x / >/dev/null 2>&1; then
12507 - as_test_x='test -x'
12508 -else
12509 - if ls -dL / >/dev/null 2>&1; then
12510 - as_ls_L_option=L
12511 - else
12512 - as_ls_L_option=
12513 - fi
12514 - as_test_x='
12515 - eval sh -c '\''
12516 - if test -d "$1"; then
12517 - test -d "$1/.";
12518 - else
12519 - case $1 in
12520 - -*)set "./$1";;
12521 - esac;
12522 - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12523 - ???[sx]*):;;*)false;;esac;fi
12524 - '\'' sh
12525 - '
12526 -fi
12527 -as_executable_p=$as_test_x
12528 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12529 + ac_prev=prefix ;;
12530 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12531 + prefix=$ac_optarg ;;
12532
12533 -# Sed expression to map a string onto a valid CPP name.
12534 -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12535 + -program-prefix | --program-prefix | --program-prefi | --program-pref \
12536 + | --program-pre | --program-pr | --program-p)
12537 + ac_prev=program_prefix ;;
12538 + -program-prefix=* | --program-prefix=* | --program-prefi=* \
12539 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
12540 + program_prefix=$ac_optarg ;;
12541
12542 -# Sed expression to map a string onto a valid variable name.
12543 -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12544 + -program-suffix | --program-suffix | --program-suffi | --program-suff \
12545 + | --program-suf | --program-su | --program-s)
12546 + ac_prev=program_suffix ;;
12547 + -program-suffix=* | --program-suffix=* | --program-suffi=* \
12548 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
12549 + program_suffix=$ac_optarg ;;
12550
12551 + -program-transform-name | --program-transform-name \
12552 + | --program-transform-nam | --program-transform-na \
12553 + | --program-transform-n | --program-transform- \
12554 + | --program-transform | --program-transfor \
12555 + | --program-transfo | --program-transf \
12556 + | --program-trans | --program-tran \
12557 + | --progr-tra | --program-tr | --program-t)
12558 + ac_prev=program_transform_name ;;
12559 + -program-transform-name=* | --program-transform-name=* \
12560 + | --program-transform-nam=* | --program-transform-na=* \
12561 + | --program-transform-n=* | --program-transform-=* \
12562 + | --program-transform=* | --program-transfor=* \
12563 + | --program-transfo=* | --program-transf=* \
12564 + | --program-trans=* | --program-tran=* \
12565 + | --progr-tra=* | --program-tr=* | --program-t=*)
12566 + program_transform_name=$ac_optarg ;;
12567
12568 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
12569 + ac_prev=pdfdir ;;
12570 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
12571 + pdfdir=$ac_optarg ;;
12572
12573 + -psdir | --psdir | --psdi | --psd | --ps)
12574 + ac_prev=psdir ;;
12575 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
12576 + psdir=$ac_optarg ;;
12577
12578 -# Check that we are running under the correct shell.
12579 -SHELL=${CONFIG_SHELL-/bin/sh}
12580 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12581 + | -silent | --silent | --silen | --sile | --sil)
12582 + silent=yes ;;
12583
12584 -case X$ECHO in
12585 -X*--fallback-echo)
12586 - # Remove one level of quotation (which was required for Make).
12587 - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
12588 - ;;
12589 -esac
12590 + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
12591 + ac_prev=sbindir ;;
12592 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12593 + | --sbi=* | --sb=*)
12594 + sbindir=$ac_optarg ;;
12595
12596 -echo=${ECHO-echo}
12597 -if test "X$1" = X--no-reexec; then
12598 - # Discard the --no-reexec flag, and continue.
12599 - shift
12600 -elif test "X$1" = X--fallback-echo; then
12601 - # Avoid inline document here, it may be left over
12602 - :
12603 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
12604 - # Yippee, $echo works!
12605 - :
12606 -else
12607 - # Restart under the correct shell.
12608 - exec $SHELL "$0" --no-reexec ${1+"$@"}
12609 -fi
12610 + -sharedstatedir | --sharedstatedir | --sharedstatedi \
12611 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
12612 + | --sharedst | --shareds | --shared | --share | --shar \
12613 + | --sha | --sh)
12614 + ac_prev=sharedstatedir ;;
12615 + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
12616 + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
12617 + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
12618 + | --sha=* | --sh=*)
12619 + sharedstatedir=$ac_optarg ;;
12620
12621 -if test "X$1" = X--fallback-echo; then
12622 - # used as fallback echo
12623 - shift
12624 - cat <<EOF
12625 -$*
12626 -EOF
12627 - exit 0
12628 -fi
12629 + -site | --site | --sit)
12630 + ac_prev=site ;;
12631 + -site=* | --site=* | --sit=*)
12632 + site=$ac_optarg ;;
12633
12634 -# The HP-UX ksh and POSIX shell print the target directory to stdout
12635 -# if CDPATH is set.
12636 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12637 + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12638 + ac_prev=srcdir ;;
12639 + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12640 + srcdir=$ac_optarg ;;
12641
12642 -if test -z "$ECHO"; then
12643 -if test "X${echo_test_string+set}" != Xset; then
12644 -# find a string as large as possible, as long as the shell can cope with it
12645 - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
12646 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
12647 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
12648 - echo_test_string=`eval $cmd` &&
12649 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
12650 - then
12651 - break
12652 - fi
12653 - done
12654 -fi
12655 + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
12656 + | --syscon | --sysco | --sysc | --sys | --sy)
12657 + ac_prev=sysconfdir ;;
12658 + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
12659 + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
12660 + sysconfdir=$ac_optarg ;;
12661
12662 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
12663 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
12664 - test "X$echo_testing_string" = "X$echo_test_string"; then
12665 - :
12666 -else
12667 - # The Solaris, AIX, and Digital Unix default echo programs unquote
12668 - # backslashes. This makes it impossible to quote backslashes using
12669 - # echo "$something" | sed 's/\\/\\\\/g'
12670 - #
12671 - # So, first we look for a working echo in the user's PATH.
12672 + -target | --target | --targe | --targ | --tar | --ta | --t)
12673 + ac_prev=target_alias ;;
12674 + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
12675 + target_alias=$ac_optarg ;;
12676
12677 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12678 - for dir in $PATH /usr/ucb; do
12679 - IFS="$lt_save_ifs"
12680 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
12681 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
12682 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
12683 - test "X$echo_testing_string" = "X$echo_test_string"; then
12684 - echo="$dir/echo"
12685 - break
12686 - fi
12687 - done
12688 - IFS="$lt_save_ifs"
12689 + -v | -verbose | --verbose | --verbos | --verbo | --verb)
12690 + verbose=yes ;;
12691
12692 - if test "X$echo" = Xecho; then
12693 - # We didn't find a better echo, so look for alternatives.
12694 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
12695 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
12696 - test "X$echo_testing_string" = "X$echo_test_string"; then
12697 - # This shell has a builtin print -r that does the trick.
12698 - echo='print -r'
12699 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
12700 - test "X$CONFIG_SHELL" != X/bin/ksh; then
12701 - # If we have ksh, try running configure again with it.
12702 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12703 - export ORIGINAL_CONFIG_SHELL
12704 - CONFIG_SHELL=/bin/ksh
12705 - export CONFIG_SHELL
12706 - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
12707 - else
12708 - # Try using printf.
12709 - echo='printf %s\n'
12710 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
12711 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
12712 - test "X$echo_testing_string" = "X$echo_test_string"; then
12713 - # Cool, printf works
12714 - :
12715 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
12716 - test "X$echo_testing_string" = 'X\t' &&
12717 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
12718 - test "X$echo_testing_string" = "X$echo_test_string"; then
12719 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
12720 - export CONFIG_SHELL
12721 - SHELL="$CONFIG_SHELL"
12722 - export SHELL
12723 - echo="$CONFIG_SHELL $0 --fallback-echo"
12724 - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
12725 - test "X$echo_testing_string" = 'X\t' &&
12726 - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
12727 - test "X$echo_testing_string" = "X$echo_test_string"; then
12728 - echo="$CONFIG_SHELL $0 --fallback-echo"
12729 - else
12730 - # maybe with a smaller string...
12731 - prev=:
12732 + -version | --version | --versio | --versi | --vers | -V)
12733 + ac_init_version=: ;;
12734
12735 - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
12736 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
12737 - then
12738 - break
12739 - fi
12740 - prev="$cmd"
12741 - done
12742 + -with-* | --with-*)
12743 + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
12744 + # Reject names that are not valid shell variable names.
12745 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12746 + as_fn_error $? "invalid package name: $ac_useropt"
12747 + ac_useropt_orig=$ac_useropt
12748 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
12749 + case $ac_user_opts in
12750 + *"
12751 +"with_$ac_useropt"
12752 +"*) ;;
12753 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
12754 + ac_unrecognized_sep=', ';;
12755 + esac
12756 + eval with_$ac_useropt=\$ac_optarg ;;
12757
12758 - if test "$prev" != 'sed 50q "$0"'; then
12759 - echo_test_string=`eval $prev`
12760 - export echo_test_string
12761 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
12762 - else
12763 - # Oops. We lost completely, so just stick with echo.
12764 - echo=echo
12765 - fi
12766 - fi
12767 - fi
12768 - fi
12769 -fi
12770 -fi
12771 + -without-* | --without-*)
12772 + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
12773 + # Reject names that are not valid shell variable names.
12774 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12775 + as_fn_error $? "invalid package name: $ac_useropt"
12776 + ac_useropt_orig=$ac_useropt
12777 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
12778 + case $ac_user_opts in
12779 + *"
12780 +"with_$ac_useropt"
12781 +"*) ;;
12782 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
12783 + ac_unrecognized_sep=', ';;
12784 + esac
12785 + eval with_$ac_useropt=no ;;
12786
12787 -# Copy echo and quote the copy suitably for passing to libtool from
12788 -# the Makefile, instead of quoting the original, which is used later.
12789 -ECHO=$echo
12790 -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
12791 - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
12792 -fi
12793 + --x)
12794 + # Obsolete; use --with-x.
12795 + with_x=yes ;;
12796
12797 + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
12798 + | --x-incl | --x-inc | --x-in | --x-i)
12799 + ac_prev=x_includes ;;
12800 + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
12801 + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
12802 + x_includes=$ac_optarg ;;
12803
12804 + -x-libraries | --x-libraries | --x-librarie | --x-librari \
12805 + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
12806 + ac_prev=x_libraries ;;
12807 + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
12808 + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
12809 + x_libraries=$ac_optarg ;;
12810
12811 + -*) as_fn_error $? "unrecognized option: \`$ac_option'
12812 +Try \`$0 --help' for more information"
12813 + ;;
12814
12815 -exec 7<&0 </dev/null 6>&1
12816 + *=*)
12817 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
12818 + # Reject names that are not valid shell variable names.
12819 + case $ac_envvar in #(
12820 + '' | [0-9]* | *[!_$as_cr_alnum]* )
12821 + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
12822 + esac
12823 + eval $ac_envvar=\$ac_optarg
12824 + export $ac_envvar ;;
12825
12826 -# Name of the host.
12827 -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
12828 -# so uname gets run too.
12829 -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
12830 + *)
12831 + # FIXME: should be removed in autoconf 3.0.
12832 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12833 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12834 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
12835 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12836 + ;;
12837 +
12838 + esac
12839 +done
12840 +
12841 +if test -n "$ac_prev"; then
12842 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12843 + as_fn_error $? "missing argument to $ac_option"
12844 +fi
12845 +
12846 +if test -n "$ac_unrecognized_opts"; then
12847 + case $enable_option_checking in
12848 + no) ;;
12849 + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
12850 + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12851 + esac
12852 +fi
12853 +
12854 +# Check all directory arguments for consistency.
12855 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12856 + datadir sysconfdir sharedstatedir localstatedir includedir \
12857 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12858 + libdir localedir mandir
12859 +do
12860 + eval ac_val=\$$ac_var
12861 + # Remove trailing slashes.
12862 + case $ac_val in
12863 + */ )
12864 + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12865 + eval $ac_var=\$ac_val;;
12866 + esac
12867 + # Be sure to have absolute directory names.
12868 + case $ac_val in
12869 + [\\/$]* | ?:[\\/]* ) continue;;
12870 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12871 + esac
12872 + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12873 +done
12874 +
12875 +# There might be people who depend on the old broken behavior: `$host'
12876 +# used to hold the argument of --host etc.
12877 +# FIXME: To remove some day.
12878 +build=$build_alias
12879 +host=$host_alias
12880 +target=$target_alias
12881 +
12882 +# FIXME: To remove some day.
12883 +if test "x$host_alias" != x; then
12884 + if test "x$build_alias" = x; then
12885 + cross_compiling=maybe
12886 + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12887 + If a cross compiler is detected then cross compile mode will be used" >&2
12888 + elif test "x$build_alias" != "x$host_alias"; then
12889 + cross_compiling=yes
12890 + fi
12891 +fi
12892 +
12893 +ac_tool_prefix=
12894 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
12895 +
12896 +test "$silent" = yes && exec 6>/dev/null
12897 +
12898 +
12899 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
12900 +ac_ls_di=`ls -di .` &&
12901 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12902 + as_fn_error $? "working directory cannot be determined"
12903 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12904 + as_fn_error $? "pwd does not report name of working directory"
12905 +
12906 +
12907 +# Find the source files, if location was not specified.
12908 +if test -z "$srcdir"; then
12909 + ac_srcdir_defaulted=yes
12910 + # Try the directory containing this script, then the parent directory.
12911 + ac_confdir=`$as_dirname -- "$as_myself" ||
12912 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12913 + X"$as_myself" : 'X\(//\)[^/]' \| \
12914 + X"$as_myself" : 'X\(//\)$' \| \
12915 + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12916 +$as_echo X"$as_myself" |
12917 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12918 + s//\1/
12919 + q
12920 + }
12921 + /^X\(\/\/\)[^/].*/{
12922 + s//\1/
12923 + q
12924 + }
12925 + /^X\(\/\/\)$/{
12926 + s//\1/
12927 + q
12928 + }
12929 + /^X\(\/\).*/{
12930 + s//\1/
12931 + q
12932 + }
12933 + s/.*/./; q'`
12934 + srcdir=$ac_confdir
12935 + if test ! -r "$srcdir/$ac_unique_file"; then
12936 + srcdir=..
12937 + fi
12938 +else
12939 + ac_srcdir_defaulted=no
12940 +fi
12941 +if test ! -r "$srcdir/$ac_unique_file"; then
12942 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12943 + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12944 +fi
12945 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12946 +ac_abs_confdir=`(
12947 + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12948 + pwd)`
12949 +# When building in place, set srcdir=.
12950 +if test "$ac_abs_confdir" = "$ac_pwd"; then
12951 + srcdir=.
12952 +fi
12953 +# Remove unnecessary trailing slashes from srcdir.
12954 +# Double slashes in file names in object file debugging info
12955 +# mess up M-x gdb in Emacs.
12956 +case $srcdir in
12957 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12958 +esac
12959 +for ac_var in $ac_precious_vars; do
12960 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
12961 + eval ac_env_${ac_var}_value=\$${ac_var}
12962 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12963 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
12964 +done
12965
12966 #
12967 -# Initializations.
12968 +# Report the --help message.
12969 #
12970 -ac_default_prefix=/usr/local
12971 -ac_clean_files=
12972 -ac_config_libobj_dir=.
12973 -LIBOBJS=
12974 -cross_compiling=no
12975 -subdirs=
12976 -MFLAGS=
12977 -MAKEFLAGS=
12978 -SHELL=${CONFIG_SHELL-/bin/sh}
12979 +if test "$ac_init_help" = "long"; then
12980 + # Omit some internal or obsolete options to make the list less imposing.
12981 + # This message is too long to be a string in the A/UX 3.1 sh.
12982 + cat <<_ACEOF
12983 +\`configure' configures libglade 2.6.4 to adapt to many kinds of systems.
12984
12985 -# Identity of this package.
12986 -PACKAGE_NAME='libglade'
12987 -PACKAGE_TARNAME='libglade'
12988 -PACKAGE_VERSION='2.6.4'
12989 -PACKAGE_STRING='libglade 2.6.4'
12990 -PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libglade'
12991 +Usage: $0 [OPTION]... [VAR=VALUE]...
12992
12993 -ac_unique_file="test-libglade.c"
12994 -# Factoring default headers for most tests.
12995 -ac_includes_default="\
12996 -#include <stdio.h>
12997 -#ifdef HAVE_SYS_TYPES_H
12998 -# include <sys/types.h>
12999 -#endif
13000 -#ifdef HAVE_SYS_STAT_H
13001 -# include <sys/stat.h>
13002 -#endif
13003 -#ifdef STDC_HEADERS
13004 -# include <stdlib.h>
13005 -# include <stddef.h>
13006 -#else
13007 -# ifdef HAVE_STDLIB_H
13008 -# include <stdlib.h>
13009 -# endif
13010 -#endif
13011 -#ifdef HAVE_STRING_H
13012 -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
13013 -# include <memory.h>
13014 -# endif
13015 -# include <string.h>
13016 -#endif
13017 -#ifdef HAVE_STRINGS_H
13018 -# include <strings.h>
13019 -#endif
13020 -#ifdef HAVE_INTTYPES_H
13021 -# include <inttypes.h>
13022 -#endif
13023 -#ifdef HAVE_STDINT_H
13024 -# include <stdint.h>
13025 -#endif
13026 -#ifdef HAVE_UNISTD_H
13027 -# include <unistd.h>
13028 -#endif"
13029 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
13030 +VAR=VALUE. See below for descriptions of some of the useful variables.
13031
13032 -ac_subst_vars='SHELL
13033 -PATH_SEPARATOR
13034 -PACKAGE_NAME
13035 -PACKAGE_TARNAME
13036 -PACKAGE_VERSION
13037 -PACKAGE_STRING
13038 -PACKAGE_BUGREPORT
13039 -exec_prefix
13040 -prefix
13041 -program_transform_name
13042 -bindir
13043 -sbindir
13044 -libexecdir
13045 -datarootdir
13046 -datadir
13047 -sysconfdir
13048 -sharedstatedir
13049 -localstatedir
13050 -includedir
13051 -oldincludedir
13052 -docdir
13053 -infodir
13054 -htmldir
13055 -dvidir
13056 -pdfdir
13057 -psdir
13058 -libdir
13059 -localedir
13060 -mandir
13061 -DEFS
13062 -ECHO_C
13063 -ECHO_N
13064 -ECHO_T
13065 -LIBS
13066 -build_alias
13067 -host_alias
13068 -target_alias
13069 -INSTALL_PROGRAM
13070 -INSTALL_SCRIPT
13071 -INSTALL_DATA
13072 -am__isrc
13073 -CYGPATH_W
13074 -PACKAGE
13075 -VERSION
13076 -ACLOCAL
13077 -AUTOCONF
13078 -AUTOMAKE
13079 -AUTOHEADER
13080 -MAKEINFO
13081 -install_sh
13082 -STRIP
13083 -INSTALL_STRIP_PROGRAM
13084 -MKDIR_P
13085 -mkdir_p
13086 -AWK
13087 -SET_MAKE
13088 -am__leading_dot
13089 -AMTAR
13090 -am__tar
13091 -am__untar
13092 -ACLOCAL_AMFLAGS
13093 -CC
13094 -CFLAGS
13095 -LDFLAGS
13096 -CPPFLAGS
13097 -ac_ct_CC
13098 -EXEEXT
13099 -OBJEXT
13100 -DEPDIR
13101 -am__include
13102 -am__quote
13103 -AMDEP_TRUE
13104 -AMDEP_FALSE
13105 -AMDEPBACKSLASH
13106 -CCDEPMODE
13107 -am__fastdepCC_TRUE
13108 -am__fastdepCC_FALSE
13109 -CPP
13110 -GREP
13111 -EGREP
13112 -build
13113 -build_cpu
13114 -build_vendor
13115 -build_os
13116 -host
13117 -host_cpu
13118 -host_vendor
13119 -host_os
13120 -SED
13121 -LN_S
13122 -ECHO
13123 -AR
13124 -RANLIB
13125 -DSYMUTIL
13126 -NMEDIT
13127 -DLLTOOL
13128 -AS
13129 -OBJDUMP
13130 -LIBTOOL
13131 -PKG_CONFIG
13132 -GTK_CFLAGS
13133 -GTK_LIBS
13134 -LIBGLADE_CFLAGS
13135 -LIBGLADE_LIBS
13136 -OS_WIN32_TRUE
13137 -OS_WIN32_FALSE
13138 -PLATFORM_WIN32_TRUE
13139 -PLATFORM_WIN32_FALSE
13140 -HTML_DIR
13141 -GTKDOC_CHECK
13142 -GTKDOC_REBASE
13143 -ENABLE_GTK_DOC_TRUE
13144 -ENABLE_GTK_DOC_FALSE
13145 -GTK_DOC_BUILD_HTML_TRUE
13146 -GTK_DOC_BUILD_HTML_FALSE
13147 -GTK_DOC_BUILD_PDF_TRUE
13148 -GTK_DOC_BUILD_PDF_FALSE
13149 -GTK_DOC_USE_LIBTOOL_TRUE
13150 -GTK_DOC_USE_LIBTOOL_FALSE
13151 -GTK_DOC_USE_REBASE_TRUE
13152 -GTK_DOC_USE_REBASE_FALSE
13153 -GETTEXT_PACKAGE
13154 -USE_NLS
13155 -MSGFMT
13156 -MSGFMT_OPTS
13157 -GMSGFMT
13158 -XGETTEXT
13159 -CATALOGS
13160 -CATOBJEXT
13161 -DATADIRNAME
13162 -GMOFILES
13163 -INSTOBJEXT
13164 -INTLLIBS
13165 -PO_IN_DATADIR_TRUE
13166 -PO_IN_DATADIR_FALSE
13167 -POFILES
13168 -POSUB
13169 -MKINSTALLDIRS
13170 -PYTHON
13171 -PYTHON_VERSION
13172 -PYTHON_PREFIX
13173 -PYTHON_EXEC_PREFIX
13174 -PYTHON_PLATFORM
13175 -pythondir
13176 -pkgpythondir
13177 -pyexecdir
13178 -pkgpyexecdir
13179 -HAVE_PYTHON_TRUE
13180 -HAVE_PYTHON_FALSE
13181 -XML_CATALOG_FILE
13182 -XMLCATALOG
13183 -HAVE_XMLCATALOG_TRUE
13184 -HAVE_XMLCATALOG_FALSE
13185 -LIBOBJS
13186 -LTLIBOBJS'
13187 -ac_subst_files=''
13188 -ac_user_opts='
13189 -enable_option_checking
13190 -enable_dependency_tracking
13191 -enable_shared
13192 -enable_static
13193 -enable_fast_install
13194 -with_gnu_ld
13195 -enable_libtool_lock
13196 -with_pic
13197 -enable_gtktest
13198 -with_html_dir
13199 -enable_gtk_doc
13200 -enable_gtk_doc_html
13201 -enable_gtk_doc_pdf
13202 -with_xml_catalog
13203 +Defaults for the options are specified in brackets.
13204 +
13205 +Configuration:
13206 + -h, --help display this help and exit
13207 + --help=short display options specific to this package
13208 + --help=recursive display the short help of all the included packages
13209 + -V, --version display version information and exit
13210 + -q, --quiet, --silent do not print \`checking ...' messages
13211 + --cache-file=FILE cache test results in FILE [disabled]
13212 + -C, --config-cache alias for \`--cache-file=config.cache'
13213 + -n, --no-create do not create output files
13214 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
13215 +
13216 +Installation directories:
13217 + --prefix=PREFIX install architecture-independent files in PREFIX
13218 + [$ac_default_prefix]
13219 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
13220 + [PREFIX]
13221 +
13222 +By default, \`make install' will install all the files in
13223 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
13224 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
13225 +for instance \`--prefix=\$HOME'.
13226 +
13227 +For better control, use the options below.
13228 +
13229 +Fine tuning of the installation directories:
13230 + --bindir=DIR user executables [EPREFIX/bin]
13231 + --sbindir=DIR system admin executables [EPREFIX/sbin]
13232 + --libexecdir=DIR program executables [EPREFIX/libexec]
13233 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
13234 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
13235 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
13236 + --libdir=DIR object code libraries [EPREFIX/lib]
13237 + --includedir=DIR C header files [PREFIX/include]
13238 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
13239 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
13240 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
13241 + --infodir=DIR info documentation [DATAROOTDIR/info]
13242 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
13243 + --mandir=DIR man documentation [DATAROOTDIR/man]
13244 + --docdir=DIR documentation root [DATAROOTDIR/doc/libglade]
13245 + --htmldir=DIR html documentation [DOCDIR]
13246 + --dvidir=DIR dvi documentation [DOCDIR]
13247 + --pdfdir=DIR pdf documentation [DOCDIR]
13248 + --psdir=DIR ps documentation [DOCDIR]
13249 +_ACEOF
13250 +
13251 + cat <<\_ACEOF
13252 +
13253 +Program names:
13254 + --program-prefix=PREFIX prepend PREFIX to installed program names
13255 + --program-suffix=SUFFIX append SUFFIX to installed program names
13256 + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
13257 +
13258 +System types:
13259 + --build=BUILD configure for building on BUILD [guessed]
13260 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
13261 +_ACEOF
13262 +fi
13263 +
13264 +if test -n "$ac_init_help"; then
13265 + case $ac_init_help in
13266 + short | recursive ) echo "Configuration of libglade 2.6.4:";;
13267 + esac
13268 + cat <<\_ACEOF
13269 +
13270 +Optional Features:
13271 + --disable-option-checking ignore unrecognized --enable/--with options
13272 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
13273 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
13274 + --disable-dependency-tracking speeds up one-time build
13275 + --enable-dependency-tracking do not reject slow dependency extractors
13276 + --enable-shared[=PKGS] build shared libraries [default=yes]
13277 + --enable-static[=PKGS] build static libraries [default=yes]
13278 + --enable-fast-install[=PKGS]
13279 + optimize for fast installation [default=yes]
13280 + --disable-libtool-lock avoid locking (might break parallel builds)
13281 + --disable-gtktest do not try to compile and run a test GTK+ program
13282 + --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
13283 + --enable-gtk-doc-html build documentation in html format [[default=yes]]
13284 + --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
13285 +
13286 +Optional Packages:
13287 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
13288 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
13289 + --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
13290 + both]
13291 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
13292 + --with-sysroot=DIR Search for dependent libraries within DIR
13293 + (or the compiler's sysroot if not specified).
13294 + --with-html-dir=PATH path to installed docs
13295 + --with-xml-catalog=CATALOG
13296 + path to xml catalog to use
13297 +
13298 +Some influential environment variables:
13299 + PKG_CONFIG path to pkg-config utility
13300 + PKG_CONFIG_PATH
13301 + directories to add to pkg-config's search path
13302 + PKG_CONFIG_LIBDIR
13303 + path overriding pkg-config's built-in search path
13304 + LIBGLADE_CFLAGS
13305 + C compiler flags for LIBGLADE, overriding pkg-config
13306 + LIBGLADE_LIBS
13307 + linker flags for LIBGLADE, overriding pkg-config
13308 + CC C compiler command
13309 + CFLAGS C compiler flags
13310 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
13311 + nonstandard directory <lib dir>
13312 + LIBS libraries to pass to the linker, e.g. -l<library>
13313 + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13314 + you have headers in a nonstandard directory <include dir>
13315 + CPP C preprocessor
13316 + PYTHON the Python interpreter
13317 +
13318 +Use these variables to override the choices made by `configure' or to help
13319 +it to find libraries and programs with nonstandard names/locations.
13320 +
13321 +Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libglade>.
13322 +_ACEOF
13323 +ac_status=$?
13324 +fi
13325 +
13326 +if test "$ac_init_help" = "recursive"; then
13327 + # If there are subdirs, report their specific --help.
13328 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
13329 + test -d "$ac_dir" ||
13330 + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
13331 + continue
13332 + ac_builddir=.
13333 +
13334 +case "$ac_dir" in
13335 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13336 +*)
13337 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13338 + # A ".." for each directory in $ac_dir_suffix.
13339 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13340 + case $ac_top_builddir_sub in
13341 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13342 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13343 + esac ;;
13344 +esac
13345 +ac_abs_top_builddir=$ac_pwd
13346 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
13347 +# for backward compatibility:
13348 +ac_top_builddir=$ac_top_build_prefix
13349 +
13350 +case $srcdir in
13351 + .) # We are building in place.
13352 + ac_srcdir=.
13353 + ac_top_srcdir=$ac_top_builddir_sub
13354 + ac_abs_top_srcdir=$ac_pwd ;;
13355 + [\\/]* | ?:[\\/]* ) # Absolute name.
13356 + ac_srcdir=$srcdir$ac_dir_suffix;
13357 + ac_top_srcdir=$srcdir
13358 + ac_abs_top_srcdir=$srcdir ;;
13359 + *) # Relative name.
13360 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13361 + ac_top_srcdir=$ac_top_build_prefix$srcdir
13362 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13363 +esac
13364 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13365 +
13366 + cd "$ac_dir" || { ac_status=$?; continue; }
13367 + # Check for guested configure.
13368 + if test -f "$ac_srcdir/configure.gnu"; then
13369 + echo &&
13370 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
13371 + elif test -f "$ac_srcdir/configure"; then
13372 + echo &&
13373 + $SHELL "$ac_srcdir/configure" --help=recursive
13374 + else
13375 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
13376 + fi || ac_status=$?
13377 + cd "$ac_pwd" || { ac_status=$?; break; }
13378 + done
13379 +fi
13380 +
13381 +test -n "$ac_init_help" && exit $ac_status
13382 +if $ac_init_version; then
13383 + cat <<\_ACEOF
13384 +libglade configure 2.6.4
13385 +generated by GNU Autoconf 2.68
13386 +
13387 +Copyright (C) 2010 Free Software Foundation, Inc.
13388 +This configure script is free software; the Free Software Foundation
13389 +gives unlimited permission to copy, distribute and modify it.
13390 +_ACEOF
13391 + exit
13392 +fi
13393 +
13394 +## ------------------------ ##
13395 +## Autoconf initialization. ##
13396 +## ------------------------ ##
13397 +
13398 +# ac_fn_c_try_compile LINENO
13399 +# --------------------------
13400 +# Try to compile conftest.$ac_ext, and return whether this succeeded.
13401 +ac_fn_c_try_compile ()
13402 +{
13403 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13404 + rm -f conftest.$ac_objext
13405 + if { { ac_try="$ac_compile"
13406 +case "(($ac_try" in
13407 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 + *) ac_try_echo=$ac_try;;
13409 +esac
13410 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13411 +$as_echo "$ac_try_echo"; } >&5
13412 + (eval "$ac_compile") 2>conftest.err
13413 + ac_status=$?
13414 + if test -s conftest.err; then
13415 + grep -v '^ *+' conftest.err >conftest.er1
13416 + cat conftest.er1 >&5
13417 + mv -f conftest.er1 conftest.err
13418 + fi
13419 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13420 + test $ac_status = 0; } && {
13421 + test -z "$ac_c_werror_flag" ||
13422 + test ! -s conftest.err
13423 + } && test -s conftest.$ac_objext; then :
13424 + ac_retval=0
13425 +else
13426 + $as_echo "$as_me: failed program was:" >&5
13427 +sed 's/^/| /' conftest.$ac_ext >&5
13428 +
13429 + ac_retval=1
13430 +fi
13431 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13432 + as_fn_set_status $ac_retval
13433 +
13434 +} # ac_fn_c_try_compile
13435 +
13436 +# ac_fn_c_try_link LINENO
13437 +# -----------------------
13438 +# Try to link conftest.$ac_ext, and return whether this succeeded.
13439 +ac_fn_c_try_link ()
13440 +{
13441 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13442 + rm -f conftest.$ac_objext conftest$ac_exeext
13443 + if { { ac_try="$ac_link"
13444 +case "(($ac_try" in
13445 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 + *) ac_try_echo=$ac_try;;
13447 +esac
13448 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13449 +$as_echo "$ac_try_echo"; } >&5
13450 + (eval "$ac_link") 2>conftest.err
13451 + ac_status=$?
13452 + if test -s conftest.err; then
13453 + grep -v '^ *+' conftest.err >conftest.er1
13454 + cat conftest.er1 >&5
13455 + mv -f conftest.er1 conftest.err
13456 + fi
13457 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13458 + test $ac_status = 0; } && {
13459 + test -z "$ac_c_werror_flag" ||
13460 + test ! -s conftest.err
13461 + } && test -s conftest$ac_exeext && {
13462 + test "$cross_compiling" = yes ||
13463 + $as_test_x conftest$ac_exeext
13464 + }; then :
13465 + ac_retval=0
13466 +else
13467 + $as_echo "$as_me: failed program was:" >&5
13468 +sed 's/^/| /' conftest.$ac_ext >&5
13469 +
13470 + ac_retval=1
13471 +fi
13472 + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
13473 + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
13474 + # interfere with the next link command; also delete a directory that is
13475 + # left behind by Apple's compiler. We do this before executing the actions.
13476 + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
13477 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13478 + as_fn_set_status $ac_retval
13479 +
13480 +} # ac_fn_c_try_link
13481 +
13482 +# ac_fn_c_try_cpp LINENO
13483 +# ----------------------
13484 +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
13485 +ac_fn_c_try_cpp ()
13486 +{
13487 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13488 + if { { ac_try="$ac_cpp conftest.$ac_ext"
13489 +case "(($ac_try" in
13490 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 + *) ac_try_echo=$ac_try;;
13492 +esac
13493 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13494 +$as_echo "$ac_try_echo"; } >&5
13495 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
13496 + ac_status=$?
13497 + if test -s conftest.err; then
13498 + grep -v '^ *+' conftest.err >conftest.er1
13499 + cat conftest.er1 >&5
13500 + mv -f conftest.er1 conftest.err
13501 + fi
13502 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503 + test $ac_status = 0; } > conftest.i && {
13504 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13505 + test ! -s conftest.err
13506 + }; then :
13507 + ac_retval=0
13508 +else
13509 + $as_echo "$as_me: failed program was:" >&5
13510 +sed 's/^/| /' conftest.$ac_ext >&5
13511 +
13512 + ac_retval=1
13513 +fi
13514 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13515 + as_fn_set_status $ac_retval
13516 +
13517 +} # ac_fn_c_try_cpp
13518 +
13519 +# ac_fn_c_try_run LINENO
13520 +# ----------------------
13521 +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
13522 +# that executables *can* be run.
13523 +ac_fn_c_try_run ()
13524 +{
13525 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13526 + if { { ac_try="$ac_link"
13527 +case "(($ac_try" in
13528 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 + *) ac_try_echo=$ac_try;;
13530 +esac
13531 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13532 +$as_echo "$ac_try_echo"; } >&5
13533 + (eval "$ac_link") 2>&5
13534 + ac_status=$?
13535 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13536 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
13537 + { { case "(($ac_try" in
13538 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 + *) ac_try_echo=$ac_try;;
13540 +esac
13541 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13542 +$as_echo "$ac_try_echo"; } >&5
13543 + (eval "$ac_try") 2>&5
13544 + ac_status=$?
13545 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13546 + test $ac_status = 0; }; }; then :
13547 + ac_retval=0
13548 +else
13549 + $as_echo "$as_me: program exited with status $ac_status" >&5
13550 + $as_echo "$as_me: failed program was:" >&5
13551 +sed 's/^/| /' conftest.$ac_ext >&5
13552 +
13553 + ac_retval=$ac_status
13554 +fi
13555 + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
13556 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13557 + as_fn_set_status $ac_retval
13558 +
13559 +} # ac_fn_c_try_run
13560 +
13561 +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
13562 +# -------------------------------------------------------
13563 +# Tests whether HEADER exists and can be compiled using the include files in
13564 +# INCLUDES, setting the cache variable VAR accordingly.
13565 +ac_fn_c_check_header_compile ()
13566 +{
13567 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13568 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13569 +$as_echo_n "checking for $2... " >&6; }
13570 +if eval \${$3+:} false; then :
13571 + $as_echo_n "(cached) " >&6
13572 +else
13573 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 +/* end confdefs.h. */
13575 +$4
13576 +#include <$2>
13577 +_ACEOF
13578 +if ac_fn_c_try_compile "$LINENO"; then :
13579 + eval "$3=yes"
13580 +else
13581 + eval "$3=no"
13582 +fi
13583 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584 +fi
13585 +eval ac_res=\$$3
13586 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13587 +$as_echo "$ac_res" >&6; }
13588 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13589 +
13590 +} # ac_fn_c_check_header_compile
13591 +
13592 +# ac_fn_c_check_func LINENO FUNC VAR
13593 +# ----------------------------------
13594 +# Tests whether FUNC exists, setting the cache variable VAR accordingly
13595 +ac_fn_c_check_func ()
13596 +{
13597 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13598 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13599 +$as_echo_n "checking for $2... " >&6; }
13600 +if eval \${$3+:} false; then :
13601 + $as_echo_n "(cached) " >&6
13602 +else
13603 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 +/* end confdefs.h. */
13605 +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
13606 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
13607 +#define $2 innocuous_$2
13608 +
13609 +/* System header to define __stub macros and hopefully few prototypes,
13610 + which can conflict with char $2 (); below.
13611 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13612 + <limits.h> exists even on freestanding compilers. */
13613 +
13614 +#ifdef __STDC__
13615 +# include <limits.h>
13616 +#else
13617 +# include <assert.h>
13618 +#endif
13619 +
13620 +#undef $2
13621 +
13622 +/* Override any GCC internal prototype to avoid an error.
13623 + Use char because int might match the return type of a GCC
13624 + builtin and then its argument prototype would still apply. */
13625 +#ifdef __cplusplus
13626 +extern "C"
13627 +#endif
13628 +char $2 ();
13629 +/* The GNU C library defines this for functions which it implements
13630 + to always fail with ENOSYS. Some functions are actually named
13631 + something starting with __ and the normal name is an alias. */
13632 +#if defined __stub_$2 || defined __stub___$2
13633 +choke me
13634 +#endif
13635 +
13636 +int
13637 +main ()
13638 +{
13639 +return $2 ();
13640 + ;
13641 + return 0;
13642 +}
13643 +_ACEOF
13644 +if ac_fn_c_try_link "$LINENO"; then :
13645 + eval "$3=yes"
13646 +else
13647 + eval "$3=no"
13648 +fi
13649 +rm -f core conftest.err conftest.$ac_objext \
13650 + conftest$ac_exeext conftest.$ac_ext
13651 +fi
13652 +eval ac_res=\$$3
13653 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13654 +$as_echo "$ac_res" >&6; }
13655 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13656 +
13657 +} # ac_fn_c_check_func
13658 +
13659 +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
13660 +# -------------------------------------------------------
13661 +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
13662 +# the include files in INCLUDES and setting the cache variable VAR
13663 +# accordingly.
13664 +ac_fn_c_check_header_mongrel ()
13665 +{
13666 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13667 + if eval \${$3+:} false; then :
13668 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13669 +$as_echo_n "checking for $2... " >&6; }
13670 +if eval \${$3+:} false; then :
13671 + $as_echo_n "(cached) " >&6
13672 +fi
13673 +eval ac_res=\$$3
13674 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13675 +$as_echo "$ac_res" >&6; }
13676 +else
13677 + # Is the header compilable?
13678 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
13679 +$as_echo_n "checking $2 usability... " >&6; }
13680 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 +/* end confdefs.h. */
13682 +$4
13683 +#include <$2>
13684 +_ACEOF
13685 +if ac_fn_c_try_compile "$LINENO"; then :
13686 + ac_header_compiler=yes
13687 +else
13688 + ac_header_compiler=no
13689 +fi
13690 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
13692 +$as_echo "$ac_header_compiler" >&6; }
13693 +
13694 +# Is the header present?
13695 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
13696 +$as_echo_n "checking $2 presence... " >&6; }
13697 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 +/* end confdefs.h. */
13699 +#include <$2>
13700 +_ACEOF
13701 +if ac_fn_c_try_cpp "$LINENO"; then :
13702 + ac_header_preproc=yes
13703 +else
13704 + ac_header_preproc=no
13705 +fi
13706 +rm -f conftest.err conftest.i conftest.$ac_ext
13707 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
13708 +$as_echo "$ac_header_preproc" >&6; }
13709 +
13710 +# So? What about this header?
13711 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
13712 + yes:no: )
13713 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
13714 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
13715 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
13716 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
13717 + ;;
13718 + no:yes:* )
13719 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
13720 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
13721 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
13722 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
13723 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
13724 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
13725 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
13726 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
13727 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
13728 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
13729 +( $as_echo "## ----------------------------------------------------------------------- ##
13730 +## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libglade ##
13731 +## ----------------------------------------------------------------------- ##"
13732 + ) | sed "s/^/$as_me: WARNING: /" >&2
13733 + ;;
13734 +esac
13735 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13736 +$as_echo_n "checking for $2... " >&6; }
13737 +if eval \${$3+:} false; then :
13738 + $as_echo_n "(cached) " >&6
13739 +else
13740 + eval "$3=\$ac_header_compiler"
13741 +fi
13742 +eval ac_res=\$$3
13743 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13744 +$as_echo "$ac_res" >&6; }
13745 +fi
13746 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13747 +
13748 +} # ac_fn_c_check_header_mongrel
13749 +cat >config.log <<_ACEOF
13750 +This file contains any messages produced by compilers while
13751 +running configure, to aid debugging if configure makes a mistake.
13752 +
13753 +It was created by libglade $as_me 2.6.4, which was
13754 +generated by GNU Autoconf 2.68. Invocation command line was
13755 +
13756 + $ $0 $@
13757 +
13758 +_ACEOF
13759 +exec 5>>config.log
13760 +{
13761 +cat <<_ASUNAME
13762 +## --------- ##
13763 +## Platform. ##
13764 +## --------- ##
13765 +
13766 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
13767 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
13768 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
13769 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
13770 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
13771 +
13772 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
13773 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
13774 +
13775 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13776 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
13777 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
13778 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13779 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
13780 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
13781 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
13782 +
13783 +_ASUNAME
13784 +
13785 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786 +for as_dir in $PATH
13787 +do
13788 + IFS=$as_save_IFS
13789 + test -z "$as_dir" && as_dir=.
13790 + $as_echo "PATH: $as_dir"
13791 + done
13792 +IFS=$as_save_IFS
13793 +
13794 +} >&5
13795 +
13796 +cat >&5 <<_ACEOF
13797 +
13798 +
13799 +## ----------- ##
13800 +## Core tests. ##
13801 +## ----------- ##
13802 +
13803 +_ACEOF
13804 +
13805 +
13806 +# Keep a trace of the command line.
13807 +# Strip out --no-create and --no-recursion so they do not pile up.
13808 +# Strip out --silent because we don't want to record it for future runs.
13809 +# Also quote any args containing shell meta-characters.
13810 +# Make two passes to allow for proper duplicate-argument suppression.
13811 +ac_configure_args=
13812 +ac_configure_args0=
13813 +ac_configure_args1=
13814 +ac_must_keep_next=false
13815 +for ac_pass in 1 2
13816 +do
13817 + for ac_arg
13818 + do
13819 + case $ac_arg in
13820 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
13821 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13822 + | -silent | --silent | --silen | --sile | --sil)
13823 + continue ;;
13824 + *\'*)
13825 + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13826 + esac
13827 + case $ac_pass in
13828 + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13829 + 2)
13830 + as_fn_append ac_configure_args1 " '$ac_arg'"
13831 + if test $ac_must_keep_next = true; then
13832 + ac_must_keep_next=false # Got value, back to normal.
13833 + else
13834 + case $ac_arg in
13835 + *=* | --config-cache | -C | -disable-* | --disable-* \
13836 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
13837 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
13838 + | -with-* | --with-* | -without-* | --without-* | --x)
13839 + case "$ac_configure_args0 " in
13840 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
13841 + esac
13842 + ;;
13843 + -* ) ac_must_keep_next=true ;;
13844 + esac
13845 + fi
13846 + as_fn_append ac_configure_args " '$ac_arg'"
13847 + ;;
13848 + esac
13849 + done
13850 +done
13851 +{ ac_configure_args0=; unset ac_configure_args0;}
13852 +{ ac_configure_args1=; unset ac_configure_args1;}
13853 +
13854 +# When interrupted or exit'd, cleanup temporary files, and complete
13855 +# config.log. We remove comments because anyway the quotes in there
13856 +# would cause problems or look ugly.
13857 +# WARNING: Use '\'' to represent an apostrophe within the trap.
13858 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13859 +trap 'exit_status=$?
13860 + # Save into config.log some information that might help in debugging.
13861 + {
13862 + echo
13863 +
13864 + $as_echo "## ---------------- ##
13865 +## Cache variables. ##
13866 +## ---------------- ##"
13867 + echo
13868 + # The following way of writing the cache mishandles newlines in values,
13869 +(
13870 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
13871 + eval ac_val=\$$ac_var
13872 + case $ac_val in #(
13873 + *${as_nl}*)
13874 + case $ac_var in #(
13875 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13876 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13877 + esac
13878 + case $ac_var in #(
13879 + _ | IFS | as_nl) ;; #(
13880 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13881 + *) { eval $ac_var=; unset $ac_var;} ;;
13882 + esac ;;
13883 + esac
13884 + done
13885 + (set) 2>&1 |
13886 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
13887 + *${as_nl}ac_space=\ *)
13888 + sed -n \
13889 + "s/'\''/'\''\\\\'\'''\''/g;
13890 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
13891 + ;; #(
13892 + *)
13893 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13894 + ;;
13895 + esac |
13896 + sort
13897 +)
13898 + echo
13899 +
13900 + $as_echo "## ----------------- ##
13901 +## Output variables. ##
13902 +## ----------------- ##"
13903 + echo
13904 + for ac_var in $ac_subst_vars
13905 + do
13906 + eval ac_val=\$$ac_var
13907 + case $ac_val in
13908 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
13909 + esac
13910 + $as_echo "$ac_var='\''$ac_val'\''"
13911 + done | sort
13912 + echo
13913 +
13914 + if test -n "$ac_subst_files"; then
13915 + $as_echo "## ------------------- ##
13916 +## File substitutions. ##
13917 +## ------------------- ##"
13918 + echo
13919 + for ac_var in $ac_subst_files
13920 + do
13921 + eval ac_val=\$$ac_var
13922 + case $ac_val in
13923 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
13924 + esac
13925 + $as_echo "$ac_var='\''$ac_val'\''"
13926 + done | sort
13927 + echo
13928 + fi
13929 +
13930 + if test -s confdefs.h; then
13931 + $as_echo "## ----------- ##
13932 +## confdefs.h. ##
13933 +## ----------- ##"
13934 + echo
13935 + cat confdefs.h
13936 + echo
13937 + fi
13938 + test "$ac_signal" != 0 &&
13939 + $as_echo "$as_me: caught signal $ac_signal"
13940 + $as_echo "$as_me: exit $exit_status"
13941 + } >&5
13942 + rm -f core *.core core.conftest.* &&
13943 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13944 + exit $exit_status
13945 +' 0
13946 +for ac_signal in 1 2 13 15; do
13947 + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13948 +done
13949 +ac_signal=0
13950 +
13951 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
13952 +rm -f -r conftest* confdefs.h
13953 +
13954 +$as_echo "/* confdefs.h */" > confdefs.h
13955 +
13956 +# Predefined preprocessor variables.
13957 +
13958 +cat >>confdefs.h <<_ACEOF
13959 +#define PACKAGE_NAME "$PACKAGE_NAME"
13960 +_ACEOF
13961 +
13962 +cat >>confdefs.h <<_ACEOF
13963 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
13964 +_ACEOF
13965 +
13966 +cat >>confdefs.h <<_ACEOF
13967 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
13968 +_ACEOF
13969 +
13970 +cat >>confdefs.h <<_ACEOF
13971 +#define PACKAGE_STRING "$PACKAGE_STRING"
13972 +_ACEOF
13973 +
13974 +cat >>confdefs.h <<_ACEOF
13975 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
13976 +_ACEOF
13977 +
13978 +cat >>confdefs.h <<_ACEOF
13979 +#define PACKAGE_URL "$PACKAGE_URL"
13980 +_ACEOF
13981 +
13982 +
13983 +# Let the site file select an alternate cache file if it wants to.
13984 +# Prefer an explicitly selected file to automatically selected ones.
13985 +ac_site_file1=NONE
13986 +ac_site_file2=NONE
13987 +if test -n "$CONFIG_SITE"; then
13988 + # We do not want a PATH search for config.site.
13989 + case $CONFIG_SITE in #((
13990 + -*) ac_site_file1=./$CONFIG_SITE;;
13991 + */*) ac_site_file1=$CONFIG_SITE;;
13992 + *) ac_site_file1=./$CONFIG_SITE;;
13993 + esac
13994 +elif test "x$prefix" != xNONE; then
13995 + ac_site_file1=$prefix/share/config.site
13996 + ac_site_file2=$prefix/etc/config.site
13997 +else
13998 + ac_site_file1=$ac_default_prefix/share/config.site
13999 + ac_site_file2=$ac_default_prefix/etc/config.site
14000 +fi
14001 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
14002 +do
14003 + test "x$ac_site_file" = xNONE && continue
14004 + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
14005 + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
14006 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
14007 + sed 's/^/| /' "$ac_site_file" >&5
14008 + . "$ac_site_file" \
14009 + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14010 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14011 +as_fn_error $? "failed to load site script $ac_site_file
14012 +See \`config.log' for more details" "$LINENO" 5; }
14013 + fi
14014 +done
14015 +
14016 +if test -r "$cache_file"; then
14017 + # Some versions of bash will fail to source /dev/null (special files
14018 + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
14019 + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
14020 + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
14021 +$as_echo "$as_me: loading cache $cache_file" >&6;}
14022 + case $cache_file in
14023 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
14024 + *) . "./$cache_file";;
14025 + esac
14026 + fi
14027 +else
14028 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
14029 +$as_echo "$as_me: creating cache $cache_file" >&6;}
14030 + >$cache_file
14031 +fi
14032 +
14033 +# Check that the precious variables saved in the cache have kept the same
14034 +# value.
14035 +ac_cache_corrupted=false
14036 +for ac_var in $ac_precious_vars; do
14037 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
14038 + eval ac_new_set=\$ac_env_${ac_var}_set
14039 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
14040 + eval ac_new_val=\$ac_env_${ac_var}_value
14041 + case $ac_old_set,$ac_new_set in
14042 + set,)
14043 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
14044 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
14045 + ac_cache_corrupted=: ;;
14046 + ,set)
14047 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
14048 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
14049 + ac_cache_corrupted=: ;;
14050 + ,);;
14051 + *)
14052 + if test "x$ac_old_val" != "x$ac_new_val"; then
14053 + # differences in whitespace do not lead to failure.
14054 + ac_old_val_w=`echo x $ac_old_val`
14055 + ac_new_val_w=`echo x $ac_new_val`
14056 + if test "$ac_old_val_w" != "$ac_new_val_w"; then
14057 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
14058 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
14059 + ac_cache_corrupted=:
14060 + else
14061 + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
14062 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
14063 + eval $ac_var=\$ac_old_val
14064 + fi
14065 + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
14066 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
14067 + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
14068 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
14069 + fi;;
14070 + esac
14071 + # Pass precious variables to config.status.
14072 + if test "$ac_new_set" = set; then
14073 + case $ac_new_val in
14074 + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
14075 + *) ac_arg=$ac_var=$ac_new_val ;;
14076 + esac
14077 + case " $ac_configure_args " in
14078 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
14079 + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
14080 + esac
14081 + fi
14082 +done
14083 +if $ac_cache_corrupted; then
14084 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14085 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14086 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
14087 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
14088 + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
14089 +fi
14090 +## -------------------- ##
14091 +## Main body of script. ##
14092 +## -------------------- ##
14093 +
14094 +ac_ext=c
14095 +ac_cpp='$CPP $CPPFLAGS'
14096 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14097 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14098 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14099 +
14100 +
14101 +
14102 +
14103 +
14104 +ac_config_headers="$ac_config_headers config.h"
14105 +
14106 +
14107 +am__api_version='1.11'
14108 +
14109 +ac_aux_dir=
14110 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
14111 + if test -f "$ac_dir/install-sh"; then
14112 + ac_aux_dir=$ac_dir
14113 + ac_install_sh="$ac_aux_dir/install-sh -c"
14114 + break
14115 + elif test -f "$ac_dir/install.sh"; then
14116 + ac_aux_dir=$ac_dir
14117 + ac_install_sh="$ac_aux_dir/install.sh -c"
14118 + break
14119 + elif test -f "$ac_dir/shtool"; then
14120 + ac_aux_dir=$ac_dir
14121 + ac_install_sh="$ac_aux_dir/shtool install -c"
14122 + break
14123 + fi
14124 +done
14125 +if test -z "$ac_aux_dir"; then
14126 + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
14127 +fi
14128 +
14129 +# These three variables are undocumented and unsupported,
14130 +# and are intended to be withdrawn in a future Autoconf release.
14131 +# They can cause serious problems if a builder's source tree is in a directory
14132 +# whose full name contains unusual characters.
14133 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
14134 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
14135 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
14136 +
14137 +
14138 +# Find a good install program. We prefer a C program (faster),
14139 +# so one script is as good as another. But avoid the broken or
14140 +# incompatible versions:
14141 +# SysV /etc/install, /usr/sbin/install
14142 +# SunOS /usr/etc/install
14143 +# IRIX /sbin/install
14144 +# AIX /bin/install
14145 +# AmigaOS /C/install, which installs bootblocks on floppy discs
14146 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14147 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14148 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14149 +# OS/2's system install, which has a completely different semantic
14150 +# ./install, which can be erroneously created by make from ./install.sh.
14151 +# Reject install programs that cannot install multiple files.
14152 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14153 +$as_echo_n "checking for a BSD-compatible install... " >&6; }
14154 +if test -z "$INSTALL"; then
14155 +if ${ac_cv_path_install+:} false; then :
14156 + $as_echo_n "(cached) " >&6
14157 +else
14158 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14159 +for as_dir in $PATH
14160 +do
14161 + IFS=$as_save_IFS
14162 + test -z "$as_dir" && as_dir=.
14163 + # Account for people who put trailing slashes in PATH elements.
14164 +case $as_dir/ in #((
14165 + ./ | .// | /[cC]/* | \
14166 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14167 + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14168 + /usr/ucb/* ) ;;
14169 + *)
14170 + # OSF1 and SCO ODT 3.0 have their own names for install.
14171 + # Don't use installbsd from OSF since it installs stuff as root
14172 + # by default.
14173 + for ac_prog in ginstall scoinst install; do
14174 + for ac_exec_ext in '' $ac_executable_extensions; do
14175 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14176 + if test $ac_prog = install &&
14177 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14178 + # AIX install. It has an incompatible calling convention.
14179 + :
14180 + elif test $ac_prog = install &&
14181 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14182 + # program-specific install script used by HP pwplus--don't use.
14183 + :
14184 + else
14185 + rm -rf conftest.one conftest.two conftest.dir
14186 + echo one > conftest.one
14187 + echo two > conftest.two
14188 + mkdir conftest.dir
14189 + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14190 + test -s conftest.one && test -s conftest.two &&
14191 + test -s conftest.dir/conftest.one &&
14192 + test -s conftest.dir/conftest.two
14193 + then
14194 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14195 + break 3
14196 + fi
14197 + fi
14198 + fi
14199 + done
14200 + done
14201 + ;;
14202 +esac
14203 +
14204 + done
14205 +IFS=$as_save_IFS
14206 +
14207 +rm -rf conftest.one conftest.two conftest.dir
14208 +
14209 +fi
14210 + if test "${ac_cv_path_install+set}" = set; then
14211 + INSTALL=$ac_cv_path_install
14212 + else
14213 + # As a last resort, use the slow shell script. Don't cache a
14214 + # value for INSTALL within a source directory, because that will
14215 + # break other packages using the cache if that directory is
14216 + # removed, or if the value is a relative name.
14217 + INSTALL=$ac_install_sh
14218 + fi
14219 +fi
14220 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14221 +$as_echo "$INSTALL" >&6; }
14222 +
14223 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14224 +# It thinks the first close brace ends the variable substitution.
14225 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14226 +
14227 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14228 +
14229 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14230 +
14231 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14232 +$as_echo_n "checking whether build environment is sane... " >&6; }
14233 +# Just in case
14234 +sleep 1
14235 +echo timestamp > conftest.file
14236 +# Reject unsafe characters in $srcdir or the absolute working directory
14237 +# name. Accept space and tab only in the latter.
14238 +am_lf='
14239 '
14240 - ac_precious_vars='build_alias
14241 -host_alias
14242 -target_alias
14243 -CC
14244 -CFLAGS
14245 -LDFLAGS
14246 -LIBS
14247 -CPPFLAGS
14248 -CPP
14249 -PKG_CONFIG
14250 -LIBGLADE_CFLAGS
14251 -LIBGLADE_LIBS'
14252 +case `pwd` in
14253 + *[\\\"\#\$\&\'\`$am_lf]*)
14254 + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
14255 +esac
14256 +case $srcdir in
14257 + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
14258 + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
14259 +esac
14260 +
14261 +# Do `set' in a subshell so we don't clobber the current shell's
14262 +# arguments. Must try -L first in case configure is actually a
14263 +# symlink; some systems play weird games with the mod time of symlinks
14264 +# (eg FreeBSD returns the mod time of the symlink's containing
14265 +# directory).
14266 +if (
14267 + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14268 + if test "$*" = "X"; then
14269 + # -L didn't work.
14270 + set X `ls -t "$srcdir/configure" conftest.file`
14271 + fi
14272 + rm -f conftest.file
14273 + if test "$*" != "X $srcdir/configure conftest.file" \
14274 + && test "$*" != "X conftest.file $srcdir/configure"; then
14275 +
14276 + # If neither matched, then we have a broken ls. This can happen
14277 + # if, for instance, CONFIG_SHELL is bash and it inherits a
14278 + # broken ls alias from the environment. This has actually
14279 + # happened. Such a system could not be considered "sane".
14280 + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
14281 +alias in your environment" "$LINENO" 5
14282 + fi
14283 +
14284 + test "$2" = conftest.file
14285 + )
14286 +then
14287 + # Ok.
14288 + :
14289 +else
14290 + as_fn_error $? "newly created file is older than distributed files!
14291 +Check your system clock" "$LINENO" 5
14292 +fi
14293 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14294 +$as_echo "yes" >&6; }
14295 +test "$program_prefix" != NONE &&
14296 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
14297 +# Use a double $ so make ignores it.
14298 +test "$program_suffix" != NONE &&
14299 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14300 +# Double any \ or $.
14301 +# By default was `s,x,x', remove it if useless.
14302 +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14303 +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14304 +
14305 +# expand $ac_aux_dir to an absolute path
14306 +am_aux_dir=`cd $ac_aux_dir && pwd`
14307 +
14308 +if test x"${MISSING+set}" != xset; then
14309 + case $am_aux_dir in
14310 + *\ * | *\ *)
14311 + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14312 + *)
14313 + MISSING="\${SHELL} $am_aux_dir/missing" ;;
14314 + esac
14315 +fi
14316 +# Use eval to expand $SHELL
14317 +if eval "$MISSING --run true"; then
14318 + am_missing_run="$MISSING --run "
14319 +else
14320 + am_missing_run=
14321 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14322 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14323 +fi
14324 +
14325 +if test x"${install_sh}" != xset; then
14326 + case $am_aux_dir in
14327 + *\ * | *\ *)
14328 + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14329 + *)
14330 + install_sh="\${SHELL} $am_aux_dir/install-sh"
14331 + esac
14332 +fi
14333 +
14334 +# Installed binaries are usually stripped using `strip' when the user
14335 +# run `make install-strip'. However `strip' might not be the right
14336 +# tool to use in cross-compilation environments, therefore Automake
14337 +# will honor the `STRIP' environment variable to overrule this program.
14338 +if test "$cross_compiling" != no; then
14339 + if test -n "$ac_tool_prefix"; then
14340 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14341 +set dummy ${ac_tool_prefix}strip; ac_word=$2
14342 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14343 +$as_echo_n "checking for $ac_word... " >&6; }
14344 +if ${ac_cv_prog_STRIP+:} false; then :
14345 + $as_echo_n "(cached) " >&6
14346 +else
14347 + if test -n "$STRIP"; then
14348 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14349 +else
14350 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 +for as_dir in $PATH
14352 +do
14353 + IFS=$as_save_IFS
14354 + test -z "$as_dir" && as_dir=.
14355 + for ac_exec_ext in '' $ac_executable_extensions; do
14356 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14357 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14358 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14359 + break 2
14360 + fi
14361 +done
14362 + done
14363 +IFS=$as_save_IFS
14364 +
14365 +fi
14366 +fi
14367 +STRIP=$ac_cv_prog_STRIP
14368 +if test -n "$STRIP"; then
14369 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14370 +$as_echo "$STRIP" >&6; }
14371 +else
14372 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14373 +$as_echo "no" >&6; }
14374 +fi
14375 +
14376 +
14377 +fi
14378 +if test -z "$ac_cv_prog_STRIP"; then
14379 + ac_ct_STRIP=$STRIP
14380 + # Extract the first word of "strip", so it can be a program name with args.
14381 +set dummy strip; ac_word=$2
14382 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14383 +$as_echo_n "checking for $ac_word... " >&6; }
14384 +if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14385 + $as_echo_n "(cached) " >&6
14386 +else
14387 + if test -n "$ac_ct_STRIP"; then
14388 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14389 +else
14390 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14391 +for as_dir in $PATH
14392 +do
14393 + IFS=$as_save_IFS
14394 + test -z "$as_dir" && as_dir=.
14395 + for ac_exec_ext in '' $ac_executable_extensions; do
14396 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14397 + ac_cv_prog_ac_ct_STRIP="strip"
14398 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14399 + break 2
14400 + fi
14401 +done
14402 + done
14403 +IFS=$as_save_IFS
14404 +
14405 +fi
14406 +fi
14407 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14408 +if test -n "$ac_ct_STRIP"; then
14409 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14410 +$as_echo "$ac_ct_STRIP" >&6; }
14411 +else
14412 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14413 +$as_echo "no" >&6; }
14414 +fi
14415 +
14416 + if test "x$ac_ct_STRIP" = x; then
14417 + STRIP=":"
14418 + else
14419 + case $cross_compiling:$ac_tool_warned in
14420 +yes:)
14421 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14422 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14423 +ac_tool_warned=yes ;;
14424 +esac
14425 + STRIP=$ac_ct_STRIP
14426 + fi
14427 +else
14428 + STRIP="$ac_cv_prog_STRIP"
14429 +fi
14430 +
14431 +fi
14432 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
14433 +
14434 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
14435 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14436 +if test -z "$MKDIR_P"; then
14437 + if ${ac_cv_path_mkdir+:} false; then :
14438 + $as_echo_n "(cached) " >&6
14439 +else
14440 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14442 +do
14443 + IFS=$as_save_IFS
14444 + test -z "$as_dir" && as_dir=.
14445 + for ac_prog in mkdir gmkdir; do
14446 + for ac_exec_ext in '' $ac_executable_extensions; do
14447 + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
14448 + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14449 + 'mkdir (GNU coreutils) '* | \
14450 + 'mkdir (coreutils) '* | \
14451 + 'mkdir (fileutils) '4.1*)
14452 + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14453 + break 3;;
14454 + esac
14455 + done
14456 + done
14457 + done
14458 +IFS=$as_save_IFS
14459 +
14460 +fi
14461 +
14462 + test -d ./--version && rmdir ./--version
14463 + if test "${ac_cv_path_mkdir+set}" = set; then
14464 + MKDIR_P="$ac_cv_path_mkdir -p"
14465 + else
14466 + # As a last resort, use the slow shell script. Don't cache a
14467 + # value for MKDIR_P within a source directory, because that will
14468 + # break other packages using the cache if that directory is
14469 + # removed, or if the value is a relative name.
14470 + MKDIR_P="$ac_install_sh -d"
14471 + fi
14472 +fi
14473 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
14474 +$as_echo "$MKDIR_P" >&6; }
14475 +
14476 +mkdir_p="$MKDIR_P"
14477 +case $mkdir_p in
14478 + [\\/$]* | ?:[\\/]*) ;;
14479 + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14480 +esac
14481 +
14482 +for ac_prog in gawk mawk nawk awk
14483 +do
14484 + # Extract the first word of "$ac_prog", so it can be a program name with args.
14485 +set dummy $ac_prog; ac_word=$2
14486 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14487 +$as_echo_n "checking for $ac_word... " >&6; }
14488 +if ${ac_cv_prog_AWK+:} false; then :
14489 + $as_echo_n "(cached) " >&6
14490 +else
14491 + if test -n "$AWK"; then
14492 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
14493 +else
14494 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14495 +for as_dir in $PATH
14496 +do
14497 + IFS=$as_save_IFS
14498 + test -z "$as_dir" && as_dir=.
14499 + for ac_exec_ext in '' $ac_executable_extensions; do
14500 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14501 + ac_cv_prog_AWK="$ac_prog"
14502 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14503 + break 2
14504 + fi
14505 +done
14506 + done
14507 +IFS=$as_save_IFS
14508 +
14509 +fi
14510 +fi
14511 +AWK=$ac_cv_prog_AWK
14512 +if test -n "$AWK"; then
14513 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14514 +$as_echo "$AWK" >&6; }
14515 +else
14516 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517 +$as_echo "no" >&6; }
14518 +fi
14519 +
14520 +
14521 + test -n "$AWK" && break
14522 +done
14523 +
14524 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14525 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14526 +set x ${MAKE-make}
14527 +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14528 +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
14529 + $as_echo_n "(cached) " >&6
14530 +else
14531 + cat >conftest.make <<\_ACEOF
14532 +SHELL = /bin/sh
14533 +all:
14534 + @echo '@@@%%%=$(MAKE)=@@@%%%'
14535 +_ACEOF
14536 +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14537 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
14538 + *@@@%%%=?*=@@@%%%*)
14539 + eval ac_cv_prog_make_${ac_make}_set=yes;;
14540 + *)
14541 + eval ac_cv_prog_make_${ac_make}_set=no;;
14542 +esac
14543 +rm -f conftest.make
14544 +fi
14545 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14546 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14547 +$as_echo "yes" >&6; }
14548 + SET_MAKE=
14549 +else
14550 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 +$as_echo "no" >&6; }
14552 + SET_MAKE="MAKE=${MAKE-make}"
14553 +fi
14554 +
14555 +rm -rf .tst 2>/dev/null
14556 +mkdir .tst 2>/dev/null
14557 +if test -d .tst; then
14558 + am__leading_dot=.
14559 +else
14560 + am__leading_dot=_
14561 +fi
14562 +rmdir .tst 2>/dev/null
14563 +
14564 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
14565 + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14566 + # is not polluted with repeated "-I."
14567 + am__isrc=' -I$(srcdir)'
14568 + # test to see if srcdir already configured
14569 + if test -f $srcdir/config.status; then
14570 + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14571 + fi
14572 +fi
14573 +
14574 +# test whether we have cygpath
14575 +if test -z "$CYGPATH_W"; then
14576 + if (cygpath --version) >/dev/null 2>/dev/null; then
14577 + CYGPATH_W='cygpath -w'
14578 + else
14579 + CYGPATH_W=echo
14580 + fi
14581 +fi
14582 +
14583 +
14584 +# Define the identity of the package.
14585 + PACKAGE='libglade'
14586 + VERSION='2.6.4'
14587 +
14588 +
14589 +cat >>confdefs.h <<_ACEOF
14590 +#define PACKAGE "$PACKAGE"
14591 +_ACEOF
14592 +
14593 +
14594 +cat >>confdefs.h <<_ACEOF
14595 +#define VERSION "$VERSION"
14596 +_ACEOF
14597 +
14598 +# Some tools Automake needs.
14599 +
14600 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14601 +
14602 +
14603 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14604 +
14605 +
14606 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14607 +
14608 +
14609 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14610 +
14611 +
14612 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14613 +
14614 +# We need awk for the "check" target. The system "awk" is bad on
14615 +# some platforms.
14616 +# Always define AMTAR for backward compatibility. Yes, it's still used
14617 +# in the wild :-( We should find a proper way to deprecate it ...
14618 +AMTAR='$${TAR-tar}'
14619 +
14620 +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
14621 +
14622 +
14623 +
14624 +
14625 +
14626 +
14627 +# pkg-config check put earlier in configure.in, because before LIBGLADE did not
14628 +# use the cross-compiled-pkg-cfg.
14629 +
14630 +
14631 +
14632 +
14633 +
14634 +
14635 +
14636 +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14637 + if test -n "$ac_tool_prefix"; then
14638 + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14639 +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14640 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14641 +$as_echo_n "checking for $ac_word... " >&6; }
14642 +if ${ac_cv_path_PKG_CONFIG+:} false; then :
14643 + $as_echo_n "(cached) " >&6
14644 +else
14645 + case $PKG_CONFIG in
14646 + [\\/]* | ?:[\\/]*)
14647 + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14648 + ;;
14649 + *)
14650 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 +for as_dir in $PATH
14652 +do
14653 + IFS=$as_save_IFS
14654 + test -z "$as_dir" && as_dir=.
14655 + for ac_exec_ext in '' $ac_executable_extensions; do
14656 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14657 + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14658 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14659 + break 2
14660 + fi
14661 +done
14662 + done
14663 +IFS=$as_save_IFS
14664 +
14665 + ;;
14666 +esac
14667 +fi
14668 +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14669 +if test -n "$PKG_CONFIG"; then
14670 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14671 +$as_echo "$PKG_CONFIG" >&6; }
14672 +else
14673 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674 +$as_echo "no" >&6; }
14675 +fi
14676 +
14677 +
14678 +fi
14679 +if test -z "$ac_cv_path_PKG_CONFIG"; then
14680 + ac_pt_PKG_CONFIG=$PKG_CONFIG
14681 + # Extract the first word of "pkg-config", so it can be a program name with args.
14682 +set dummy pkg-config; ac_word=$2
14683 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14684 +$as_echo_n "checking for $ac_word... " >&6; }
14685 +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14686 + $as_echo_n "(cached) " >&6
14687 +else
14688 + case $ac_pt_PKG_CONFIG in
14689 + [\\/]* | ?:[\\/]*)
14690 + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14691 + ;;
14692 + *)
14693 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14694 +for as_dir in $PATH
14695 +do
14696 + IFS=$as_save_IFS
14697 + test -z "$as_dir" && as_dir=.
14698 + for ac_exec_ext in '' $ac_executable_extensions; do
14699 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14700 + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14701 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14702 + break 2
14703 + fi
14704 +done
14705 + done
14706 +IFS=$as_save_IFS
14707 +
14708 + ;;
14709 +esac
14710 +fi
14711 +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14712 +if test -n "$ac_pt_PKG_CONFIG"; then
14713 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14714 +$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14715 +else
14716 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14717 +$as_echo "no" >&6; }
14718 +fi
14719 +
14720 + if test "x$ac_pt_PKG_CONFIG" = x; then
14721 + PKG_CONFIG=""
14722 + else
14723 + case $cross_compiling:$ac_tool_warned in
14724 +yes:)
14725 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14726 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14727 +ac_tool_warned=yes ;;
14728 +esac
14729 + PKG_CONFIG=$ac_pt_PKG_CONFIG
14730 + fi
14731 +else
14732 + PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14733 +fi
14734 +
14735 +fi
14736 +if test -n "$PKG_CONFIG"; then
14737 + _pkg_min_version=0.9.0
14738 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14739 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14740 + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14741 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14742 +$as_echo "yes" >&6; }
14743 + else
14744 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 +$as_echo "no" >&6; }
14746 + PKG_CONFIG=""
14747 + fi
14748 +fi
14749 +
14750 +
14751 +pkg_failed=no
14752 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLADE" >&5
14753 +$as_echo_n "checking for LIBGLADE... " >&6; }
14754 +
14755 +if test -n "$LIBGLADE_CFLAGS"; then
14756 + pkg_cv_LIBGLADE_CFLAGS="$LIBGLADE_CFLAGS"
14757 + elif test -n "$PKG_CONFIG"; then
14758 + if test -n "$PKG_CONFIG" && \
14759 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0\""; } >&5
14760 + ($PKG_CONFIG --exists --print-errors " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0") 2>&5
14761 + ac_status=$?
14762 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14763 + test $ac_status = 0; }; then
14764 + pkg_cv_LIBGLADE_CFLAGS=`$PKG_CONFIG --cflags " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0" 2>/dev/null`
14765 + test "x$?" != "x0" && pkg_failed=yes
14766 +else
14767 + pkg_failed=yes
14768 +fi
14769 + else
14770 + pkg_failed=untried
14771 +fi
14772 +if test -n "$LIBGLADE_LIBS"; then
14773 + pkg_cv_LIBGLADE_LIBS="$LIBGLADE_LIBS"
14774 + elif test -n "$PKG_CONFIG"; then
14775 + if test -n "$PKG_CONFIG" && \
14776 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0\""; } >&5
14777 + ($PKG_CONFIG --exists --print-errors " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0") 2>&5
14778 + ac_status=$?
14779 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14780 + test $ac_status = 0; }; then
14781 + pkg_cv_LIBGLADE_LIBS=`$PKG_CONFIG --libs " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0" 2>/dev/null`
14782 + test "x$?" != "x0" && pkg_failed=yes
14783 +else
14784 + pkg_failed=yes
14785 +fi
14786 + else
14787 + pkg_failed=untried
14788 +fi
14789 +
14790 +
14791 +
14792 +if test $pkg_failed = yes; then
14793 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794 +$as_echo "no" >&6; }
14795 +
14796 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14797 + _pkg_short_errors_supported=yes
14798 +else
14799 + _pkg_short_errors_supported=no
14800 +fi
14801 + if test $_pkg_short_errors_supported = yes; then
14802 + LIBGLADE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0" 2>&1`
14803 + else
14804 + LIBGLADE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0" 2>&1`
14805 + fi
14806 + # Put the nasty error message in config.log where it belongs
14807 + echo "$LIBGLADE_PKG_ERRORS" >&5
14808 +
14809 + as_fn_error $? "Package requirements ( libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0) were not met:
14810 +
14811 +$LIBGLADE_PKG_ERRORS
14812 +
14813 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
14814 +installed software in a non-standard prefix.
14815 +
14816 +Alternatively, you may set the environment variables LIBGLADE_CFLAGS
14817 +and LIBGLADE_LIBS to avoid the need to call pkg-config.
14818 +See the pkg-config man page for more details." "$LINENO" 5
14819 +elif test $pkg_failed = untried; then
14820 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14821 +$as_echo "no" >&6; }
14822 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14823 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14824 +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14825 +is in your PATH or set the PKG_CONFIG environment variable to the full
14826 +path to pkg-config.
14827 +
14828 +Alternatively, you may set the environment variables LIBGLADE_CFLAGS
14829 +and LIBGLADE_LIBS to avoid the need to call pkg-config.
14830 +See the pkg-config man page for more details.
14831 +
14832 +To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14833 +See \`config.log' for more details" "$LINENO" 5; }
14834 +else
14835 + LIBGLADE_CFLAGS=$pkg_cv_LIBGLADE_CFLAGS
14836 + LIBGLADE_LIBS=$pkg_cv_LIBGLADE_LIBS
14837 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14838 +$as_echo "yes" >&6; }
14839 +
14840 +fi
14841 +
14842 +GNOME_COMMON_INIT
14843 +
14844 +if test "$enable_debug" != "no"; then
14845 +
14846 +$as_echo "#define DEBUG 1" >>confdefs.h
14847 +
14848 +fi
14849 +
14850 +ac_ext=c
14851 +ac_cpp='$CPP $CPPFLAGS'
14852 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855 +if test -n "$ac_tool_prefix"; then
14856 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14857 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
14858 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14859 +$as_echo_n "checking for $ac_word... " >&6; }
14860 +if ${ac_cv_prog_CC+:} false; then :
14861 + $as_echo_n "(cached) " >&6
14862 +else
14863 + if test -n "$CC"; then
14864 + ac_cv_prog_CC="$CC" # Let the user override the test.
14865 +else
14866 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 +for as_dir in $PATH
14868 +do
14869 + IFS=$as_save_IFS
14870 + test -z "$as_dir" && as_dir=.
14871 + for ac_exec_ext in '' $ac_executable_extensions; do
14872 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14873 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
14874 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14875 + break 2
14876 + fi
14877 +done
14878 + done
14879 +IFS=$as_save_IFS
14880 +
14881 +fi
14882 +fi
14883 +CC=$ac_cv_prog_CC
14884 +if test -n "$CC"; then
14885 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14886 +$as_echo "$CC" >&6; }
14887 +else
14888 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889 +$as_echo "no" >&6; }
14890 +fi
14891 +
14892 +
14893 +fi
14894 +if test -z "$ac_cv_prog_CC"; then
14895 + ac_ct_CC=$CC
14896 + # Extract the first word of "gcc", so it can be a program name with args.
14897 +set dummy gcc; ac_word=$2
14898 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14899 +$as_echo_n "checking for $ac_word... " >&6; }
14900 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
14901 + $as_echo_n "(cached) " >&6
14902 +else
14903 + if test -n "$ac_ct_CC"; then
14904 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14905 +else
14906 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14907 +for as_dir in $PATH
14908 +do
14909 + IFS=$as_save_IFS
14910 + test -z "$as_dir" && as_dir=.
14911 + for ac_exec_ext in '' $ac_executable_extensions; do
14912 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14913 + ac_cv_prog_ac_ct_CC="gcc"
14914 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14915 + break 2
14916 + fi
14917 +done
14918 + done
14919 +IFS=$as_save_IFS
14920 +
14921 +fi
14922 +fi
14923 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
14924 +if test -n "$ac_ct_CC"; then
14925 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14926 +$as_echo "$ac_ct_CC" >&6; }
14927 +else
14928 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14929 +$as_echo "no" >&6; }
14930 +fi
14931
14932 + if test "x$ac_ct_CC" = x; then
14933 + CC=""
14934 + else
14935 + case $cross_compiling:$ac_tool_warned in
14936 +yes:)
14937 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14938 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14939 +ac_tool_warned=yes ;;
14940 +esac
14941 + CC=$ac_ct_CC
14942 + fi
14943 +else
14944 + CC="$ac_cv_prog_CC"
14945 +fi
14946
14947 -# Initialize some variables set by options.
14948 -ac_init_help=
14949 -ac_init_version=false
14950 -ac_unrecognized_opts=
14951 -ac_unrecognized_sep=
14952 -# The variables have the same names as the options, with
14953 -# dashes changed to underlines.
14954 -cache_file=/dev/null
14955 -exec_prefix=NONE
14956 -no_create=
14957 -no_recursion=
14958 -prefix=NONE
14959 -program_prefix=NONE
14960 -program_suffix=NONE
14961 -program_transform_name=s,x,x,
14962 -silent=
14963 -site=
14964 -srcdir=
14965 -verbose=
14966 -x_includes=NONE
14967 -x_libraries=NONE
14968 +if test -z "$CC"; then
14969 + if test -n "$ac_tool_prefix"; then
14970 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14971 +set dummy ${ac_tool_prefix}cc; ac_word=$2
14972 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14973 +$as_echo_n "checking for $ac_word... " >&6; }
14974 +if ${ac_cv_prog_CC+:} false; then :
14975 + $as_echo_n "(cached) " >&6
14976 +else
14977 + if test -n "$CC"; then
14978 + ac_cv_prog_CC="$CC" # Let the user override the test.
14979 +else
14980 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14981 +for as_dir in $PATH
14982 +do
14983 + IFS=$as_save_IFS
14984 + test -z "$as_dir" && as_dir=.
14985 + for ac_exec_ext in '' $ac_executable_extensions; do
14986 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14987 + ac_cv_prog_CC="${ac_tool_prefix}cc"
14988 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14989 + break 2
14990 + fi
14991 +done
14992 + done
14993 +IFS=$as_save_IFS
14994
14995 -# Installation directory options.
14996 -# These are left unexpanded so users can "make install exec_prefix=/foo"
14997 -# and all the variables that are supposed to be based on exec_prefix
14998 -# by default will actually change.
14999 -# Use braces instead of parens because sh, perl, etc. also accept them.
15000 -# (The list follows the same order as the GNU Coding Standards.)
15001 -bindir='${exec_prefix}/bin'
15002 -sbindir='${exec_prefix}/sbin'
15003 -libexecdir='${exec_prefix}/libexec'
15004 -datarootdir='${prefix}/share'
15005 -datadir='${datarootdir}'
15006 -sysconfdir='${prefix}/etc'
15007 -sharedstatedir='${prefix}/com'
15008 -localstatedir='${prefix}/var'
15009 -includedir='${prefix}/include'
15010 -oldincludedir='/usr/include'
15011 -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
15012 -infodir='${datarootdir}/info'
15013 -htmldir='${docdir}'
15014 -dvidir='${docdir}'
15015 -pdfdir='${docdir}'
15016 -psdir='${docdir}'
15017 -libdir='${exec_prefix}/lib'
15018 -localedir='${datarootdir}/locale'
15019 -mandir='${datarootdir}/man'
15020 +fi
15021 +fi
15022 +CC=$ac_cv_prog_CC
15023 +if test -n "$CC"; then
15024 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15025 +$as_echo "$CC" >&6; }
15026 +else
15027 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15028 +$as_echo "no" >&6; }
15029 +fi
15030 +
15031 +
15032 + fi
15033 +fi
15034 +if test -z "$CC"; then
15035 + # Extract the first word of "cc", so it can be a program name with args.
15036 +set dummy cc; ac_word=$2
15037 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15038 +$as_echo_n "checking for $ac_word... " >&6; }
15039 +if ${ac_cv_prog_CC+:} false; then :
15040 + $as_echo_n "(cached) " >&6
15041 +else
15042 + if test -n "$CC"; then
15043 + ac_cv_prog_CC="$CC" # Let the user override the test.
15044 +else
15045 + ac_prog_rejected=no
15046 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15047 +for as_dir in $PATH
15048 +do
15049 + IFS=$as_save_IFS
15050 + test -z "$as_dir" && as_dir=.
15051 + for ac_exec_ext in '' $ac_executable_extensions; do
15052 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15053 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15054 + ac_prog_rejected=yes
15055 + continue
15056 + fi
15057 + ac_cv_prog_CC="cc"
15058 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15059 + break 2
15060 + fi
15061 +done
15062 + done
15063 +IFS=$as_save_IFS
15064 +
15065 +if test $ac_prog_rejected = yes; then
15066 + # We found a bogon in the path, so make sure we never use it.
15067 + set dummy $ac_cv_prog_CC
15068 + shift
15069 + if test $# != 0; then
15070 + # We chose a different compiler from the bogus one.
15071 + # However, it has the same basename, so the bogon will be chosen
15072 + # first if we set CC to just the basename; use the full file name.
15073 + shift
15074 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15075 + fi
15076 +fi
15077 +fi
15078 +fi
15079 +CC=$ac_cv_prog_CC
15080 +if test -n "$CC"; then
15081 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15082 +$as_echo "$CC" >&6; }
15083 +else
15084 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15085 +$as_echo "no" >&6; }
15086 +fi
15087 +
15088 +
15089 +fi
15090 +if test -z "$CC"; then
15091 + if test -n "$ac_tool_prefix"; then
15092 + for ac_prog in cl.exe
15093 + do
15094 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15095 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15096 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15097 +$as_echo_n "checking for $ac_word... " >&6; }
15098 +if ${ac_cv_prog_CC+:} false; then :
15099 + $as_echo_n "(cached) " >&6
15100 +else
15101 + if test -n "$CC"; then
15102 + ac_cv_prog_CC="$CC" # Let the user override the test.
15103 +else
15104 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15105 +for as_dir in $PATH
15106 +do
15107 + IFS=$as_save_IFS
15108 + test -z "$as_dir" && as_dir=.
15109 + for ac_exec_ext in '' $ac_executable_extensions; do
15110 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15111 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15112 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15113 + break 2
15114 + fi
15115 +done
15116 + done
15117 +IFS=$as_save_IFS
15118 +
15119 +fi
15120 +fi
15121 +CC=$ac_cv_prog_CC
15122 +if test -n "$CC"; then
15123 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15124 +$as_echo "$CC" >&6; }
15125 +else
15126 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15127 +$as_echo "no" >&6; }
15128 +fi
15129 +
15130 +
15131 + test -n "$CC" && break
15132 + done
15133 +fi
15134 +if test -z "$CC"; then
15135 + ac_ct_CC=$CC
15136 + for ac_prog in cl.exe
15137 +do
15138 + # Extract the first word of "$ac_prog", so it can be a program name with args.
15139 +set dummy $ac_prog; ac_word=$2
15140 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15141 +$as_echo_n "checking for $ac_word... " >&6; }
15142 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
15143 + $as_echo_n "(cached) " >&6
15144 +else
15145 + if test -n "$ac_ct_CC"; then
15146 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15147 +else
15148 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15149 +for as_dir in $PATH
15150 +do
15151 + IFS=$as_save_IFS
15152 + test -z "$as_dir" && as_dir=.
15153 + for ac_exec_ext in '' $ac_executable_extensions; do
15154 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15155 + ac_cv_prog_ac_ct_CC="$ac_prog"
15156 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15157 + break 2
15158 + fi
15159 +done
15160 + done
15161 +IFS=$as_save_IFS
15162 +
15163 +fi
15164 +fi
15165 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
15166 +if test -n "$ac_ct_CC"; then
15167 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15168 +$as_echo "$ac_ct_CC" >&6; }
15169 +else
15170 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15171 +$as_echo "no" >&6; }
15172 +fi
15173 +
15174 +
15175 + test -n "$ac_ct_CC" && break
15176 +done
15177 +
15178 + if test "x$ac_ct_CC" = x; then
15179 + CC=""
15180 + else
15181 + case $cross_compiling:$ac_tool_warned in
15182 +yes:)
15183 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15184 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15185 +ac_tool_warned=yes ;;
15186 +esac
15187 + CC=$ac_ct_CC
15188 + fi
15189 +fi
15190 +
15191 +fi
15192 +
15193 +
15194 +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15195 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15196 +as_fn_error $? "no acceptable C compiler found in \$PATH
15197 +See \`config.log' for more details" "$LINENO" 5; }
15198 +
15199 +# Provide some information about the compiler.
15200 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
15201 +set X $ac_compile
15202 +ac_compiler=$2
15203 +for ac_option in --version -v -V -qversion; do
15204 + { { ac_try="$ac_compiler $ac_option >&5"
15205 +case "(($ac_try" in
15206 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 + *) ac_try_echo=$ac_try;;
15208 +esac
15209 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15210 +$as_echo "$ac_try_echo"; } >&5
15211 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15212 + ac_status=$?
15213 + if test -s conftest.err; then
15214 + sed '10a\
15215 +... rest of stderr output deleted ...
15216 + 10q' conftest.err >conftest.er1
15217 + cat conftest.er1 >&5
15218 + fi
15219 + rm -f conftest.er1 conftest.err
15220 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15221 + test $ac_status = 0; }
15222 +done
15223 +
15224 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 +/* end confdefs.h. */
15226 +
15227 +int
15228 +main ()
15229 +{
15230
15231 -ac_prev=
15232 -ac_dashdash=
15233 -for ac_option
15234 -do
15235 - # If the previous option needs an argument, assign it.
15236 - if test -n "$ac_prev"; then
15237 - eval $ac_prev=\$ac_option
15238 - ac_prev=
15239 - continue
15240 - fi
15241 + ;
15242 + return 0;
15243 +}
15244 +_ACEOF
15245 +ac_clean_files_save=$ac_clean_files
15246 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
15247 +# Try to create an executable without -o first, disregard a.out.
15248 +# It will help us diagnose broken compilers, and finding out an intuition
15249 +# of exeext.
15250 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
15251 +$as_echo_n "checking whether the C compiler works... " >&6; }
15252 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15253
15254 - case $ac_option in
15255 - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
15256 - *) ac_optarg=yes ;;
15257 - esac
15258 +# The possible output files:
15259 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
15260
15261 - # Accept the important Cygnus configure options, so we can diagnose typos.
15262 +ac_rmfiles=
15263 +for ac_file in $ac_files
15264 +do
15265 + case $ac_file in
15266 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
15267 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15268 + esac
15269 +done
15270 +rm -f $ac_rmfiles
15271
15272 - case $ac_dashdash$ac_option in
15273 - --)
15274 - ac_dashdash=yes ;;
15275 +if { { ac_try="$ac_link_default"
15276 +case "(($ac_try" in
15277 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 + *) ac_try_echo=$ac_try;;
15279 +esac
15280 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15281 +$as_echo "$ac_try_echo"; } >&5
15282 + (eval "$ac_link_default") 2>&5
15283 + ac_status=$?
15284 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15285 + test $ac_status = 0; }; then :
15286 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
15287 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
15288 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
15289 +# so that the user can short-circuit this test for compilers unknown to
15290 +# Autoconf.
15291 +for ac_file in $ac_files ''
15292 +do
15293 + test -f "$ac_file" || continue
15294 + case $ac_file in
15295 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
15296 + ;;
15297 + [ab].out )
15298 + # We found the default executable, but exeext='' is most
15299 + # certainly right.
15300 + break;;
15301 + *.* )
15302 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
15303 + then :; else
15304 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15305 + fi
15306 + # We set ac_cv_exeext here because the later test for it is not
15307 + # safe: cross compilers may not add the suffix if given an `-o'
15308 + # argument, so we may need to know it at that point already.
15309 + # Even if this section looks crufty: it has the advantage of
15310 + # actually working.
15311 + break;;
15312 + * )
15313 + break;;
15314 + esac
15315 +done
15316 +test "$ac_cv_exeext" = no && ac_cv_exeext=
15317
15318 - -bindir | --bindir | --bindi | --bind | --bin | --bi)
15319 - ac_prev=bindir ;;
15320 - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
15321 - bindir=$ac_optarg ;;
15322 +else
15323 + ac_file=''
15324 +fi
15325 +if test -z "$ac_file"; then :
15326 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 +$as_echo "no" >&6; }
15328 +$as_echo "$as_me: failed program was:" >&5
15329 +sed 's/^/| /' conftest.$ac_ext >&5
15330
15331 - -build | --build | --buil | --bui | --bu)
15332 - ac_prev=build_alias ;;
15333 - -build=* | --build=* | --buil=* | --bui=* | --bu=*)
15334 - build_alias=$ac_optarg ;;
15335 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15336 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15337 +as_fn_error 77 "C compiler cannot create executables
15338 +See \`config.log' for more details" "$LINENO" 5; }
15339 +else
15340 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15341 +$as_echo "yes" >&6; }
15342 +fi
15343 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
15344 +$as_echo_n "checking for C compiler default output file name... " >&6; }
15345 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
15346 +$as_echo "$ac_file" >&6; }
15347 +ac_exeext=$ac_cv_exeext
15348
15349 - -cache-file | --cache-file | --cache-fil | --cache-fi \
15350 - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15351 - ac_prev=cache_file ;;
15352 - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15353 - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
15354 - cache_file=$ac_optarg ;;
15355 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
15356 +ac_clean_files=$ac_clean_files_save
15357 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
15358 +$as_echo_n "checking for suffix of executables... " >&6; }
15359 +if { { ac_try="$ac_link"
15360 +case "(($ac_try" in
15361 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 + *) ac_try_echo=$ac_try;;
15363 +esac
15364 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15365 +$as_echo "$ac_try_echo"; } >&5
15366 + (eval "$ac_link") 2>&5
15367 + ac_status=$?
15368 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15369 + test $ac_status = 0; }; then :
15370 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
15371 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
15372 +# work properly (i.e., refer to `conftest.exe'), while it won't with
15373 +# `rm'.
15374 +for ac_file in conftest.exe conftest conftest.*; do
15375 + test -f "$ac_file" || continue
15376 + case $ac_file in
15377 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
15378 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15379 + break;;
15380 + * ) break;;
15381 + esac
15382 +done
15383 +else
15384 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15385 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15386 +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
15387 +See \`config.log' for more details" "$LINENO" 5; }
15388 +fi
15389 +rm -f conftest conftest$ac_cv_exeext
15390 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
15391 +$as_echo "$ac_cv_exeext" >&6; }
15392
15393 - --config-cache | -C)
15394 - cache_file=config.cache ;;
15395 +rm -f conftest.$ac_ext
15396 +EXEEXT=$ac_cv_exeext
15397 +ac_exeext=$EXEEXT
15398 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 +/* end confdefs.h. */
15400 +#include <stdio.h>
15401 +int
15402 +main ()
15403 +{
15404 +FILE *f = fopen ("conftest.out", "w");
15405 + return ferror (f) || fclose (f) != 0;
15406
15407 - -datadir | --datadir | --datadi | --datad)
15408 - ac_prev=datadir ;;
15409 - -datadir=* | --datadir=* | --datadi=* | --datad=*)
15410 - datadir=$ac_optarg ;;
15411 + ;
15412 + return 0;
15413 +}
15414 +_ACEOF
15415 +ac_clean_files="$ac_clean_files conftest.out"
15416 +# Check that the compiler produces executables we can run. If not, either
15417 +# the compiler is broken, or we cross compile.
15418 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
15419 +$as_echo_n "checking whether we are cross compiling... " >&6; }
15420 +if test "$cross_compiling" != yes; then
15421 + { { ac_try="$ac_link"
15422 +case "(($ac_try" in
15423 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 + *) ac_try_echo=$ac_try;;
15425 +esac
15426 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15427 +$as_echo "$ac_try_echo"; } >&5
15428 + (eval "$ac_link") 2>&5
15429 + ac_status=$?
15430 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15431 + test $ac_status = 0; }
15432 + if { ac_try='./conftest$ac_cv_exeext'
15433 + { { case "(($ac_try" in
15434 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 + *) ac_try_echo=$ac_try;;
15436 +esac
15437 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15438 +$as_echo "$ac_try_echo"; } >&5
15439 + (eval "$ac_try") 2>&5
15440 + ac_status=$?
15441 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15442 + test $ac_status = 0; }; }; then
15443 + cross_compiling=no
15444 + else
15445 + if test "$cross_compiling" = maybe; then
15446 + cross_compiling=yes
15447 + else
15448 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15449 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15450 +as_fn_error $? "cannot run C compiled programs.
15451 +If you meant to cross compile, use \`--host'.
15452 +See \`config.log' for more details" "$LINENO" 5; }
15453 + fi
15454 + fi
15455 +fi
15456 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
15457 +$as_echo "$cross_compiling" >&6; }
15458
15459 - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
15460 - | --dataroo | --dataro | --datar)
15461 - ac_prev=datarootdir ;;
15462 - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
15463 - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
15464 - datarootdir=$ac_optarg ;;
15465 +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
15466 +ac_clean_files=$ac_clean_files_save
15467 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
15468 +$as_echo_n "checking for suffix of object files... " >&6; }
15469 +if ${ac_cv_objext+:} false; then :
15470 + $as_echo_n "(cached) " >&6
15471 +else
15472 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 +/* end confdefs.h. */
15474
15475 - -disable-* | --disable-*)
15476 - ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
15477 - # Reject names that are not valid shell variable names.
15478 - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
15479 - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
15480 - { (exit 1); exit 1; }; }
15481 - ac_useropt_orig=$ac_useropt
15482 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
15483 - case $ac_user_opts in
15484 - *"
15485 -"enable_$ac_useropt"
15486 -"*) ;;
15487 - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
15488 - ac_unrecognized_sep=', ';;
15489 - esac
15490 - eval enable_$ac_useropt=no ;;
15491 +int
15492 +main ()
15493 +{
15494
15495 - -docdir | --docdir | --docdi | --doc | --do)
15496 - ac_prev=docdir ;;
15497 - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
15498 - docdir=$ac_optarg ;;
15499 + ;
15500 + return 0;
15501 +}
15502 +_ACEOF
15503 +rm -f conftest.o conftest.obj
15504 +if { { ac_try="$ac_compile"
15505 +case "(($ac_try" in
15506 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 + *) ac_try_echo=$ac_try;;
15508 +esac
15509 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15510 +$as_echo "$ac_try_echo"; } >&5
15511 + (eval "$ac_compile") 2>&5
15512 + ac_status=$?
15513 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15514 + test $ac_status = 0; }; then :
15515 + for ac_file in conftest.o conftest.obj conftest.*; do
15516 + test -f "$ac_file" || continue;
15517 + case $ac_file in
15518 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
15519 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15520 + break;;
15521 + esac
15522 +done
15523 +else
15524 + $as_echo "$as_me: failed program was:" >&5
15525 +sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
15528 - ac_prev=dvidir ;;
15529 - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
15530 - dvidir=$ac_optarg ;;
15531 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15532 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15533 +as_fn_error $? "cannot compute suffix of object files: cannot compile
15534 +See \`config.log' for more details" "$LINENO" 5; }
15535 +fi
15536 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
15537 +fi
15538 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
15539 +$as_echo "$ac_cv_objext" >&6; }
15540 +OBJEXT=$ac_cv_objext
15541 +ac_objext=$OBJEXT
15542 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
15543 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
15544 +if ${ac_cv_c_compiler_gnu+:} false; then :
15545 + $as_echo_n "(cached) " >&6
15546 +else
15547 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 +/* end confdefs.h. */
15549
15550 - -enable-* | --enable-*)
15551 - ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
15552 - # Reject names that are not valid shell variable names.
15553 - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
15554 - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
15555 - { (exit 1); exit 1; }; }
15556 - ac_useropt_orig=$ac_useropt
15557 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
15558 - case $ac_user_opts in
15559 - *"
15560 -"enable_$ac_useropt"
15561 -"*) ;;
15562 - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
15563 - ac_unrecognized_sep=', ';;
15564 - esac
15565 - eval enable_$ac_useropt=\$ac_optarg ;;
15566 +int
15567 +main ()
15568 +{
15569 +#ifndef __GNUC__
15570 + choke me
15571 +#endif
15572
15573 - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
15574 - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
15575 - | --exec | --exe | --ex)
15576 - ac_prev=exec_prefix ;;
15577 - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
15578 - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
15579 - | --exec=* | --exe=* | --ex=*)
15580 - exec_prefix=$ac_optarg ;;
15581 + ;
15582 + return 0;
15583 +}
15584 +_ACEOF
15585 +if ac_fn_c_try_compile "$LINENO"; then :
15586 + ac_compiler_gnu=yes
15587 +else
15588 + ac_compiler_gnu=no
15589 +fi
15590 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
15592
15593 - -gas | --gas | --ga | --g)
15594 - # Obsolete; use --with-gas.
15595 - with_gas=yes ;;
15596 +fi
15597 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
15598 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
15599 +if test $ac_compiler_gnu = yes; then
15600 + GCC=yes
15601 +else
15602 + GCC=
15603 +fi
15604 +ac_test_CFLAGS=${CFLAGS+set}
15605 +ac_save_CFLAGS=$CFLAGS
15606 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
15607 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
15608 +if ${ac_cv_prog_cc_g+:} false; then :
15609 + $as_echo_n "(cached) " >&6
15610 +else
15611 + ac_save_c_werror_flag=$ac_c_werror_flag
15612 + ac_c_werror_flag=yes
15613 + ac_cv_prog_cc_g=no
15614 + CFLAGS="-g"
15615 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 +/* end confdefs.h. */
15617
15618 - -help | --help | --hel | --he | -h)
15619 - ac_init_help=long ;;
15620 - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
15621 - ac_init_help=recursive ;;
15622 - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
15623 - ac_init_help=short ;;
15624 +int
15625 +main ()
15626 +{
15627
15628 - -host | --host | --hos | --ho)
15629 - ac_prev=host_alias ;;
15630 - -host=* | --host=* | --hos=* | --ho=*)
15631 - host_alias=$ac_optarg ;;
15632 + ;
15633 + return 0;
15634 +}
15635 +_ACEOF
15636 +if ac_fn_c_try_compile "$LINENO"; then :
15637 + ac_cv_prog_cc_g=yes
15638 +else
15639 + CFLAGS=""
15640 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15641 +/* end confdefs.h. */
15642
15643 - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
15644 - ac_prev=htmldir ;;
15645 - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
15646 - | --ht=*)
15647 - htmldir=$ac_optarg ;;
15648 +int
15649 +main ()
15650 +{
15651
15652 - -includedir | --includedir | --includedi | --included | --include \
15653 - | --includ | --inclu | --incl | --inc)
15654 - ac_prev=includedir ;;
15655 - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
15656 - | --includ=* | --inclu=* | --incl=* | --inc=*)
15657 - includedir=$ac_optarg ;;
15658 + ;
15659 + return 0;
15660 +}
15661 +_ACEOF
15662 +if ac_fn_c_try_compile "$LINENO"; then :
15663
15664 - -infodir | --infodir | --infodi | --infod | --info | --inf)
15665 - ac_prev=infodir ;;
15666 - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
15667 - infodir=$ac_optarg ;;
15668 +else
15669 + ac_c_werror_flag=$ac_save_c_werror_flag
15670 + CFLAGS="-g"
15671 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672 +/* end confdefs.h. */
15673
15674 - -libdir | --libdir | --libdi | --libd)
15675 - ac_prev=libdir ;;
15676 - -libdir=* | --libdir=* | --libdi=* | --libd=*)
15677 - libdir=$ac_optarg ;;
15678 +int
15679 +main ()
15680 +{
15681
15682 - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
15683 - | --libexe | --libex | --libe)
15684 - ac_prev=libexecdir ;;
15685 - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
15686 - | --libexe=* | --libex=* | --libe=*)
15687 - libexecdir=$ac_optarg ;;
15688 + ;
15689 + return 0;
15690 +}
15691 +_ACEOF
15692 +if ac_fn_c_try_compile "$LINENO"; then :
15693 + ac_cv_prog_cc_g=yes
15694 +fi
15695 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15696 +fi
15697 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 +fi
15699 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700 + ac_c_werror_flag=$ac_save_c_werror_flag
15701 +fi
15702 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
15703 +$as_echo "$ac_cv_prog_cc_g" >&6; }
15704 +if test "$ac_test_CFLAGS" = set; then
15705 + CFLAGS=$ac_save_CFLAGS
15706 +elif test $ac_cv_prog_cc_g = yes; then
15707 + if test "$GCC" = yes; then
15708 + CFLAGS="-g -O2"
15709 + else
15710 + CFLAGS="-g"
15711 + fi
15712 +else
15713 + if test "$GCC" = yes; then
15714 + CFLAGS="-O2"
15715 + else
15716 + CFLAGS=
15717 + fi
15718 +fi
15719 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
15720 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15721 +if ${ac_cv_prog_cc_c89+:} false; then :
15722 + $as_echo_n "(cached) " >&6
15723 +else
15724 + ac_cv_prog_cc_c89=no
15725 +ac_save_CC=$CC
15726 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 +/* end confdefs.h. */
15728 +#include <stdarg.h>
15729 +#include <stdio.h>
15730 +#include <sys/types.h>
15731 +#include <sys/stat.h>
15732 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15733 +struct buf { int x; };
15734 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
15735 +static char *e (p, i)
15736 + char **p;
15737 + int i;
15738 +{
15739 + return p[i];
15740 +}
15741 +static char *f (char * (*g) (char **, int), char **p, ...)
15742 +{
15743 + char *s;
15744 + va_list v;
15745 + va_start (v,p);
15746 + s = g (p, va_arg (v,int));
15747 + va_end (v);
15748 + return s;
15749 +}
15750
15751 - -localedir | --localedir | --localedi | --localed | --locale)
15752 - ac_prev=localedir ;;
15753 - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
15754 - localedir=$ac_optarg ;;
15755 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15756 + function prototypes and stuff, but not '\xHH' hex character constants.
15757 + These don't provoke an error unfortunately, instead are silently treated
15758 + as 'x'. The following induces an error, until -std is added to get
15759 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15760 + array size at least. It's necessary to write '\x00'==0 to get something
15761 + that's true only with -std. */
15762 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15763
15764 - -localstatedir | --localstatedir | --localstatedi | --localstated \
15765 - | --localstate | --localstat | --localsta | --localst | --locals)
15766 - ac_prev=localstatedir ;;
15767 - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
15768 - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
15769 - localstatedir=$ac_optarg ;;
15770 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15771 + inside strings and character constants. */
15772 +#define FOO(x) 'x'
15773 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15774
15775 - -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
15776 - ac_prev=mandir ;;
15777 - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
15778 - mandir=$ac_optarg ;;
15779 +int test (int i, double x);
15780 +struct s1 {int (*f) (int a);};
15781 +struct s2 {int (*f) (double a);};
15782 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15783 +int argc;
15784 +char **argv;
15785 +int
15786 +main ()
15787 +{
15788 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15789 + ;
15790 + return 0;
15791 +}
15792 +_ACEOF
15793 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15794 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15795 +do
15796 + CC="$ac_save_CC $ac_arg"
15797 + if ac_fn_c_try_compile "$LINENO"; then :
15798 + ac_cv_prog_cc_c89=$ac_arg
15799 +fi
15800 +rm -f core conftest.err conftest.$ac_objext
15801 + test "x$ac_cv_prog_cc_c89" != "xno" && break
15802 +done
15803 +rm -f conftest.$ac_ext
15804 +CC=$ac_save_CC
15805
15806 - -nfp | --nfp | --nf)
15807 - # Obsolete; use --without-fp.
15808 - with_fp=no ;;
15809 +fi
15810 +# AC_CACHE_VAL
15811 +case "x$ac_cv_prog_cc_c89" in
15812 + x)
15813 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15814 +$as_echo "none needed" >&6; } ;;
15815 + xno)
15816 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15817 +$as_echo "unsupported" >&6; } ;;
15818 + *)
15819 + CC="$CC $ac_cv_prog_cc_c89"
15820 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15821 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15822 +esac
15823 +if test "x$ac_cv_prog_cc_c89" != xno; then :
15824
15825 - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
15826 - | --no-cr | --no-c | -n)
15827 - no_create=yes ;;
15828 +fi
15829
15830 - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
15831 - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
15832 - no_recursion=yes ;;
15833 +ac_ext=c
15834 +ac_cpp='$CPP $CPPFLAGS'
15835 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15836 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15837 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
15838 +DEPDIR="${am__leading_dot}deps"
15839
15840 - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
15841 - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
15842 - | --oldin | --oldi | --old | --ol | --o)
15843 - ac_prev=oldincludedir ;;
15844 - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
15845 - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
15846 - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
15847 - oldincludedir=$ac_optarg ;;
15848 +ac_config_commands="$ac_config_commands depfiles"
15849 +
15850 +
15851 +am_make=${MAKE-make}
15852 +cat > confinc << 'END'
15853 +am__doit:
15854 + @echo this is the am__doit target
15855 +.PHONY: am__doit
15856 +END
15857 +# If we don't find an include directive, just comment out the code.
15858 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15859 +$as_echo_n "checking for style of include used by $am_make... " >&6; }
15860 +am__include="#"
15861 +am__quote=
15862 +_am_result=none
15863 +# First try GNU make style include.
15864 +echo "include confinc" > confmf
15865 +# Ignore all kinds of additional output from `make'.
15866 +case `$am_make -s -f confmf 2> /dev/null` in #(
15867 +*the\ am__doit\ target*)
15868 + am__include=include
15869 + am__quote=
15870 + _am_result=GNU
15871 + ;;
15872 +esac
15873 +# Now try BSD make style include.
15874 +if test "$am__include" = "#"; then
15875 + echo '.include "confinc"' > confmf
15876 + case `$am_make -s -f confmf 2> /dev/null` in #(
15877 + *the\ am__doit\ target*)
15878 + am__include=.include
15879 + am__quote="\""
15880 + _am_result=BSD
15881 + ;;
15882 + esac
15883 +fi
15884
15885 - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15886 - ac_prev=prefix ;;
15887 - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15888 - prefix=$ac_optarg ;;
15889
15890 - -program-prefix | --program-prefix | --program-prefi | --program-pref \
15891 - | --program-pre | --program-pr | --program-p)
15892 - ac_prev=program_prefix ;;
15893 - -program-prefix=* | --program-prefix=* | --program-prefi=* \
15894 - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
15895 - program_prefix=$ac_optarg ;;
15896 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15897 +$as_echo "$_am_result" >&6; }
15898 +rm -f confinc confmf
15899
15900 - -program-suffix | --program-suffix | --program-suffi | --program-suff \
15901 - | --program-suf | --program-su | --program-s)
15902 - ac_prev=program_suffix ;;
15903 - -program-suffix=* | --program-suffix=* | --program-suffi=* \
15904 - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
15905 - program_suffix=$ac_optarg ;;
15906 +# Check whether --enable-dependency-tracking was given.
15907 +if test "${enable_dependency_tracking+set}" = set; then :
15908 + enableval=$enable_dependency_tracking;
15909 +fi
15910
15911 - -program-transform-name | --program-transform-name \
15912 - | --program-transform-nam | --program-transform-na \
15913 - | --program-transform-n | --program-transform- \
15914 - | --program-transform | --program-transfor \
15915 - | --program-transfo | --program-transf \
15916 - | --program-trans | --program-tran \
15917 - | --progr-tra | --program-tr | --program-t)
15918 - ac_prev=program_transform_name ;;
15919 - -program-transform-name=* | --program-transform-name=* \
15920 - | --program-transform-nam=* | --program-transform-na=* \
15921 - | --program-transform-n=* | --program-transform-=* \
15922 - | --program-transform=* | --program-transfor=* \
15923 - | --program-transfo=* | --program-transf=* \
15924 - | --program-trans=* | --program-tran=* \
15925 - | --progr-tra=* | --program-tr=* | --program-t=*)
15926 - program_transform_name=$ac_optarg ;;
15927 +if test "x$enable_dependency_tracking" != xno; then
15928 + am_depcomp="$ac_aux_dir/depcomp"
15929 + AMDEPBACKSLASH='\'
15930 + am__nodep='_no'
15931 +fi
15932 + if test "x$enable_dependency_tracking" != xno; then
15933 + AMDEP_TRUE=
15934 + AMDEP_FALSE='#'
15935 +else
15936 + AMDEP_TRUE='#'
15937 + AMDEP_FALSE=
15938 +fi
15939
15940 - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
15941 - ac_prev=pdfdir ;;
15942 - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
15943 - pdfdir=$ac_optarg ;;
15944
15945 - -psdir | --psdir | --psdi | --psd | --ps)
15946 - ac_prev=psdir ;;
15947 - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
15948 - psdir=$ac_optarg ;;
15949
15950 - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15951 - | -silent | --silent | --silen | --sile | --sil)
15952 - silent=yes ;;
15953 +depcc="$CC" am_compiler_list=
15954
15955 - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
15956 - ac_prev=sbindir ;;
15957 - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
15958 - | --sbi=* | --sb=*)
15959 - sbindir=$ac_optarg ;;
15960 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15961 +$as_echo_n "checking dependency style of $depcc... " >&6; }
15962 +if ${am_cv_CC_dependencies_compiler_type+:} false; then :
15963 + $as_echo_n "(cached) " >&6
15964 +else
15965 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15966 + # We make a subdir and do the tests there. Otherwise we can end up
15967 + # making bogus files that we don't know about and never remove. For
15968 + # instance it was reported that on HP-UX the gcc test will end up
15969 + # making a dummy file named `D' -- because `-MD' means `put the output
15970 + # in D'.
15971 + rm -rf conftest.dir
15972 + mkdir conftest.dir
15973 + # Copy depcomp to subdir because otherwise we won't find it if we're
15974 + # using a relative directory.
15975 + cp "$am_depcomp" conftest.dir
15976 + cd conftest.dir
15977 + # We will build objects and dependencies in a subdirectory because
15978 + # it helps to detect inapplicable dependency modes. For instance
15979 + # both Tru64's cc and ICC support -MD to output dependencies as a
15980 + # side effect of compilation, but ICC will put the dependencies in
15981 + # the current directory while Tru64 will put them in the object
15982 + # directory.
15983 + mkdir sub
15984
15985 - -sharedstatedir | --sharedstatedir | --sharedstatedi \
15986 - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
15987 - | --sharedst | --shareds | --shared | --share | --shar \
15988 - | --sha | --sh)
15989 - ac_prev=sharedstatedir ;;
15990 - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
15991 - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
15992 - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
15993 - | --sha=* | --sh=*)
15994 - sharedstatedir=$ac_optarg ;;
15995 + am_cv_CC_dependencies_compiler_type=none
15996 + if test "$am_compiler_list" = ""; then
15997 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15998 + fi
15999 + am__universal=false
16000 + case " $depcc " in #(
16001 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
16002 + esac
16003
16004 - -site | --site | --sit)
16005 - ac_prev=site ;;
16006 - -site=* | --site=* | --sit=*)
16007 - site=$ac_optarg ;;
16008 + for depmode in $am_compiler_list; do
16009 + # Setup a source with many dependencies, because some compilers
16010 + # like to wrap large dependency lists on column 80 (with \), and
16011 + # we should not choose a depcomp mode which is confused by this.
16012 + #
16013 + # We need to recreate these files for each test, as the compiler may
16014 + # overwrite some of them when testing with obscure command lines.
16015 + # This happens at least with the AIX C compiler.
16016 + : > sub/conftest.c
16017 + for i in 1 2 3 4 5 6; do
16018 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
16019 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16020 + # Solaris 8's {/usr,}/bin/sh.
16021 + touch sub/conftst$i.h
16022 + done
16023 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16024
16025 - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16026 - ac_prev=srcdir ;;
16027 - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16028 - srcdir=$ac_optarg ;;
16029 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
16030 + # mode. It turns out that the SunPro C++ compiler does not properly
16031 + # handle `-M -o', and we need to detect this. Also, some Intel
16032 + # versions had trouble with output in subdirs
16033 + am__obj=sub/conftest.${OBJEXT-o}
16034 + am__minus_obj="-o $am__obj"
16035 + case $depmode in
16036 + gcc)
16037 + # This depmode causes a compiler race in universal mode.
16038 + test "$am__universal" = false || continue
16039 + ;;
16040 + nosideeffect)
16041 + # after this tag, mechanisms are not by side-effect, so they'll
16042 + # only be used when explicitly requested
16043 + if test "x$enable_dependency_tracking" = xyes; then
16044 + continue
16045 + else
16046 + break
16047 + fi
16048 + ;;
16049 + msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16050 + # This compiler won't grok `-c -o', but also, the minuso test has
16051 + # not run yet. These depmodes are late enough in the game, and
16052 + # so weak that their functioning should not be impacted.
16053 + am__obj=conftest.${OBJEXT-o}
16054 + am__minus_obj=
16055 + ;;
16056 + none) break ;;
16057 + esac
16058 + if depmode=$depmode \
16059 + source=sub/conftest.c object=$am__obj \
16060 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16061 + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16062 + >/dev/null 2>conftest.err &&
16063 + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16064 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16065 + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16066 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16067 + # icc doesn't choke on unknown options, it will just issue warnings
16068 + # or remarks (even with -Werror). So we grep stderr for any message
16069 + # that says an option was ignored or not supported.
16070 + # When given -MP, icc 7.0 and 7.1 complain thusly:
16071 + # icc: Command line warning: ignoring option '-M'; no argument required
16072 + # The diagnosis changed in icc 8.0:
16073 + # icc: Command line remark: option '-MP' not supported
16074 + if (grep 'ignoring option' conftest.err ||
16075 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16076 + am_cv_CC_dependencies_compiler_type=$depmode
16077 + break
16078 + fi
16079 + fi
16080 + done
16081
16082 - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
16083 - | --syscon | --sysco | --sysc | --sys | --sy)
16084 - ac_prev=sysconfdir ;;
16085 - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
16086 - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
16087 - sysconfdir=$ac_optarg ;;
16088 + cd ..
16089 + rm -rf conftest.dir
16090 +else
16091 + am_cv_CC_dependencies_compiler_type=none
16092 +fi
16093
16094 - -target | --target | --targe | --targ | --tar | --ta | --t)
16095 - ac_prev=target_alias ;;
16096 - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
16097 - target_alias=$ac_optarg ;;
16098 +fi
16099 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
16100 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
16101 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16102
16103 - -v | -verbose | --verbose | --verbos | --verbo | --verb)
16104 - verbose=yes ;;
16105 + if
16106 + test "x$enable_dependency_tracking" != xno \
16107 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16108 + am__fastdepCC_TRUE=
16109 + am__fastdepCC_FALSE='#'
16110 +else
16111 + am__fastdepCC_TRUE='#'
16112 + am__fastdepCC_FALSE=
16113 +fi
16114
16115 - -version | --version | --versio | --versi | --vers | -V)
16116 - ac_init_version=: ;;
16117
16118 - -with-* | --with-*)
16119 - ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
16120 - # Reject names that are not valid shell variable names.
16121 - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
16122 - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
16123 - { (exit 1); exit 1; }; }
16124 - ac_useropt_orig=$ac_useropt
16125 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
16126 - case $ac_user_opts in
16127 - *"
16128 -"with_$ac_useropt"
16129 -"*) ;;
16130 - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
16131 - ac_unrecognized_sep=', ';;
16132 - esac
16133 - eval with_$ac_useropt=\$ac_optarg ;;
16134
16135 - -without-* | --without-*)
16136 - ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
16137 - # Reject names that are not valid shell variable names.
16138 - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
16139 - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
16140 - { (exit 1); exit 1; }; }
16141 - ac_useropt_orig=$ac_useropt
16142 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
16143 - case $ac_user_opts in
16144 - *"
16145 -"with_$ac_useropt"
16146 -"*) ;;
16147 - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
16148 - ac_unrecognized_sep=', ';;
16149 - esac
16150 - eval with_$ac_useropt=no ;;
16151 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
16152 +$as_echo_n "checking for library containing strerror... " >&6; }
16153 +if ${ac_cv_search_strerror+:} false; then :
16154 + $as_echo_n "(cached) " >&6
16155 +else
16156 + ac_func_search_save_LIBS=$LIBS
16157 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 +/* end confdefs.h. */
16159
16160 - --x)
16161 - # Obsolete; use --with-x.
16162 - with_x=yes ;;
16163 +/* Override any GCC internal prototype to avoid an error.
16164 + Use char because int might match the return type of a GCC
16165 + builtin and then its argument prototype would still apply. */
16166 +#ifdef __cplusplus
16167 +extern "C"
16168 +#endif
16169 +char strerror ();
16170 +int
16171 +main ()
16172 +{
16173 +return strerror ();
16174 + ;
16175 + return 0;
16176 +}
16177 +_ACEOF
16178 +for ac_lib in '' cposix; do
16179 + if test -z "$ac_lib"; then
16180 + ac_res="none required"
16181 + else
16182 + ac_res=-l$ac_lib
16183 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16184 + fi
16185 + if ac_fn_c_try_link "$LINENO"; then :
16186 + ac_cv_search_strerror=$ac_res
16187 +fi
16188 +rm -f core conftest.err conftest.$ac_objext \
16189 + conftest$ac_exeext
16190 + if ${ac_cv_search_strerror+:} false; then :
16191 + break
16192 +fi
16193 +done
16194 +if ${ac_cv_search_strerror+:} false; then :
16195
16196 - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
16197 - | --x-incl | --x-inc | --x-in | --x-i)
16198 - ac_prev=x_includes ;;
16199 - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
16200 - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
16201 - x_includes=$ac_optarg ;;
16202 +else
16203 + ac_cv_search_strerror=no
16204 +fi
16205 +rm conftest.$ac_ext
16206 +LIBS=$ac_func_search_save_LIBS
16207 +fi
16208 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
16209 +$as_echo "$ac_cv_search_strerror" >&6; }
16210 +ac_res=$ac_cv_search_strerror
16211 +if test "$ac_res" != no; then :
16212 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16213
16214 - -x-libraries | --x-libraries | --x-librarie | --x-librari \
16215 - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
16216 - ac_prev=x_libraries ;;
16217 - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
16218 - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
16219 - x_libraries=$ac_optarg ;;
16220 +fi
16221
16222 - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
16223 -Try \`$0 --help' for more information." >&2
16224 - { (exit 1); exit 1; }; }
16225 - ;;
16226 +ac_ext=c
16227 +ac_cpp='$CPP $CPPFLAGS'
16228 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16229 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16230 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
16231 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
16232 +$as_echo_n "checking how to run the C preprocessor... " >&6; }
16233 +# On Suns, sometimes $CPP names a directory.
16234 +if test -n "$CPP" && test -d "$CPP"; then
16235 + CPP=
16236 +fi
16237 +if test -z "$CPP"; then
16238 + if ${ac_cv_prog_CPP+:} false; then :
16239 + $as_echo_n "(cached) " >&6
16240 +else
16241 + # Double quotes because CPP needs to be expanded
16242 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16243 + do
16244 + ac_preproc_ok=false
16245 +for ac_c_preproc_warn_flag in '' yes
16246 +do
16247 + # Use a header file that comes with gcc, so configuring glibc
16248 + # with a fresh cross-compiler works.
16249 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16250 + # <limits.h> exists even on freestanding compilers.
16251 + # On the NeXT, cc -E runs the code through the compiler's parser,
16252 + # not just through cpp. "Syntax error" is here to catch this case.
16253 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 +/* end confdefs.h. */
16255 +#ifdef __STDC__
16256 +# include <limits.h>
16257 +#else
16258 +# include <assert.h>
16259 +#endif
16260 + Syntax error
16261 +_ACEOF
16262 +if ac_fn_c_try_cpp "$LINENO"; then :
16263
16264 - *=*)
16265 - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
16266 - # Reject names that are not valid shell variable names.
16267 - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
16268 - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
16269 - { (exit 1); exit 1; }; }
16270 - eval $ac_envvar=\$ac_optarg
16271 - export $ac_envvar ;;
16272 +else
16273 + # Broken: fails on valid input.
16274 +continue
16275 +fi
16276 +rm -f conftest.err conftest.i conftest.$ac_ext
16277
16278 - *)
16279 - # FIXME: should be removed in autoconf 3.0.
16280 - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
16281 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
16282 - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
16283 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
16284 - ;;
16285 + # OK, works on sane cases. Now check whether nonexistent headers
16286 + # can be detected and how.
16287 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 +/* end confdefs.h. */
16289 +#include <ac_nonexistent.h>
16290 +_ACEOF
16291 +if ac_fn_c_try_cpp "$LINENO"; then :
16292 + # Broken: success on invalid input.
16293 +continue
16294 +else
16295 + # Passes both tests.
16296 +ac_preproc_ok=:
16297 +break
16298 +fi
16299 +rm -f conftest.err conftest.i conftest.$ac_ext
16300
16301 - esac
16302 done
16303 -
16304 -if test -n "$ac_prev"; then
16305 - ac_option=--`echo $ac_prev | sed 's/_/-/g'`
16306 - { $as_echo "$as_me: error: missing argument to $ac_option" >&2
16307 - { (exit 1); exit 1; }; }
16308 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16309 +rm -f conftest.i conftest.err conftest.$ac_ext
16310 +if $ac_preproc_ok; then :
16311 + break
16312 fi
16313
16314 -if test -n "$ac_unrecognized_opts"; then
16315 - case $enable_option_checking in
16316 - no) ;;
16317 - fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
16318 - { (exit 1); exit 1; }; } ;;
16319 - *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
16320 - esac
16321 -fi
16322 + done
16323 + ac_cv_prog_CPP=$CPP
16324
16325 -# Check all directory arguments for consistency.
16326 -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
16327 - datadir sysconfdir sharedstatedir localstatedir includedir \
16328 - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
16329 - libdir localedir mandir
16330 +fi
16331 + CPP=$ac_cv_prog_CPP
16332 +else
16333 + ac_cv_prog_CPP=$CPP
16334 +fi
16335 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16336 +$as_echo "$CPP" >&6; }
16337 +ac_preproc_ok=false
16338 +for ac_c_preproc_warn_flag in '' yes
16339 do
16340 - eval ac_val=\$$ac_var
16341 - # Remove trailing slashes.
16342 - case $ac_val in
16343 - */ )
16344 - ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
16345 - eval $ac_var=\$ac_val;;
16346 - esac
16347 - # Be sure to have absolute directory names.
16348 - case $ac_val in
16349 - [\\/$]* | ?:[\\/]* ) continue;;
16350 - NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
16351 - esac
16352 - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
16353 - { (exit 1); exit 1; }; }
16354 -done
16355 -
16356 -# There might be people who depend on the old broken behavior: `$host'
16357 -# used to hold the argument of --host etc.
16358 -# FIXME: To remove some day.
16359 -build=$build_alias
16360 -host=$host_alias
16361 -target=$target_alias
16362 + # Use a header file that comes with gcc, so configuring glibc
16363 + # with a fresh cross-compiler works.
16364 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16365 + # <limits.h> exists even on freestanding compilers.
16366 + # On the NeXT, cc -E runs the code through the compiler's parser,
16367 + # not just through cpp. "Syntax error" is here to catch this case.
16368 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 +/* end confdefs.h. */
16370 +#ifdef __STDC__
16371 +# include <limits.h>
16372 +#else
16373 +# include <assert.h>
16374 +#endif
16375 + Syntax error
16376 +_ACEOF
16377 +if ac_fn_c_try_cpp "$LINENO"; then :
16378
16379 -# FIXME: To remove some day.
16380 -if test "x$host_alias" != x; then
16381 - if test "x$build_alias" = x; then
16382 - cross_compiling=maybe
16383 - $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
16384 - If a cross compiler is detected then cross compile mode will be used." >&2
16385 - elif test "x$build_alias" != "x$host_alias"; then
16386 - cross_compiling=yes
16387 - fi
16388 +else
16389 + # Broken: fails on valid input.
16390 +continue
16391 fi
16392 +rm -f conftest.err conftest.i conftest.$ac_ext
16393
16394 -ac_tool_prefix=
16395 -test -n "$host_alias" && ac_tool_prefix=$host_alias-
16396 + # OK, works on sane cases. Now check whether nonexistent headers
16397 + # can be detected and how.
16398 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 +/* end confdefs.h. */
16400 +#include <ac_nonexistent.h>
16401 +_ACEOF
16402 +if ac_fn_c_try_cpp "$LINENO"; then :
16403 + # Broken: success on invalid input.
16404 +continue
16405 +else
16406 + # Passes both tests.
16407 +ac_preproc_ok=:
16408 +break
16409 +fi
16410 +rm -f conftest.err conftest.i conftest.$ac_ext
16411
16412 -test "$silent" = yes && exec 6>/dev/null
16413 +done
16414 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16415 +rm -f conftest.i conftest.err conftest.$ac_ext
16416 +if $ac_preproc_ok; then :
16417
16418 +else
16419 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16420 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16421 +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16422 +See \`config.log' for more details" "$LINENO" 5; }
16423 +fi
16424
16425 -ac_pwd=`pwd` && test -n "$ac_pwd" &&
16426 -ac_ls_di=`ls -di .` &&
16427 -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
16428 - { $as_echo "$as_me: error: Working directory cannot be determined" >&2
16429 - { (exit 1); exit 1; }; }
16430 -test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
16431 - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
16432 - { (exit 1); exit 1; }; }
16433 +ac_ext=c
16434 +ac_cpp='$CPP $CPPFLAGS'
16435 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16436 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16437 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
16438
16439
16440 -# Find the source files, if location was not specified.
16441 -if test -z "$srcdir"; then
16442 - ac_srcdir_defaulted=yes
16443 - # Try the directory containing this script, then the parent directory.
16444 - ac_confdir=`$as_dirname -- "$as_myself" ||
16445 -$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446 - X"$as_myself" : 'X\(//\)[^/]' \| \
16447 - X"$as_myself" : 'X\(//\)$' \| \
16448 - X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
16449 -$as_echo X"$as_myself" |
16450 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16451 - s//\1/
16452 - q
16453 - }
16454 - /^X\(\/\/\)[^/].*/{
16455 - s//\1/
16456 - q
16457 - }
16458 - /^X\(\/\/\)$/{
16459 - s//\1/
16460 - q
16461 - }
16462 - /^X\(\/\).*/{
16463 - s//\1/
16464 - q
16465 - }
16466 - s/.*/./; q'`
16467 - srcdir=$ac_confdir
16468 - if test ! -r "$srcdir/$ac_unique_file"; then
16469 - srcdir=..
16470 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
16471 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
16472 +if ${ac_cv_path_GREP+:} false; then :
16473 + $as_echo_n "(cached) " >&6
16474 +else
16475 + if test -z "$GREP"; then
16476 + ac_path_GREP_found=false
16477 + # Loop through the user's path and test for each of PROGNAME-LIST
16478 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16479 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16480 +do
16481 + IFS=$as_save_IFS
16482 + test -z "$as_dir" && as_dir=.
16483 + for ac_prog in grep ggrep; do
16484 + for ac_exec_ext in '' $ac_executable_extensions; do
16485 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16486 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16487 +# Check for GNU ac_path_GREP and select it if it is found.
16488 + # Check for GNU $ac_path_GREP
16489 +case `"$ac_path_GREP" --version 2>&1` in
16490 +*GNU*)
16491 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16492 +*)
16493 + ac_count=0
16494 + $as_echo_n 0123456789 >"conftest.in"
16495 + while :
16496 + do
16497 + cat "conftest.in" "conftest.in" >"conftest.tmp"
16498 + mv "conftest.tmp" "conftest.in"
16499 + cp "conftest.in" "conftest.nl"
16500 + $as_echo 'GREP' >> "conftest.nl"
16501 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16502 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16503 + as_fn_arith $ac_count + 1 && ac_count=$as_val
16504 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
16505 + # Best one so far, save it but keep looking for a better one
16506 + ac_cv_path_GREP="$ac_path_GREP"
16507 + ac_path_GREP_max=$ac_count
16508 + fi
16509 + # 10*(2^10) chars as input seems more than enough
16510 + test $ac_count -gt 10 && break
16511 + done
16512 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16513 +esac
16514 +
16515 + $ac_path_GREP_found && break 3
16516 + done
16517 + done
16518 + done
16519 +IFS=$as_save_IFS
16520 + if test -z "$ac_cv_path_GREP"; then
16521 + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16522 fi
16523 else
16524 - ac_srcdir_defaulted=no
16525 -fi
16526 -if test ! -r "$srcdir/$ac_unique_file"; then
16527 - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
16528 - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
16529 - { (exit 1); exit 1; }; }
16530 + ac_cv_path_GREP=$GREP
16531 fi
16532 -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
16533 -ac_abs_confdir=`(
16534 - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
16535 - { (exit 1); exit 1; }; }
16536 - pwd)`
16537 -# When building in place, set srcdir=.
16538 -if test "$ac_abs_confdir" = "$ac_pwd"; then
16539 - srcdir=.
16540 +
16541 fi
16542 -# Remove unnecessary trailing slashes from srcdir.
16543 -# Double slashes in file names in object file debugging info
16544 -# mess up M-x gdb in Emacs.
16545 -case $srcdir in
16546 -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
16547 -esac
16548 -for ac_var in $ac_precious_vars; do
16549 - eval ac_env_${ac_var}_set=\${${ac_var}+set}
16550 - eval ac_env_${ac_var}_value=\$${ac_var}
16551 - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
16552 - eval ac_cv_env_${ac_var}_value=\$${ac_var}
16553 -done
16554 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
16555 +$as_echo "$ac_cv_path_GREP" >&6; }
16556 + GREP="$ac_cv_path_GREP"
16557
16558 -#
16559 -# Report the --help message.
16560 -#
16561 -if test "$ac_init_help" = "long"; then
16562 - # Omit some internal or obsolete options to make the list less imposing.
16563 - # This message is too long to be a string in the A/UX 3.1 sh.
16564 - cat <<_ACEOF
16565 -\`configure' configures libglade 2.6.4 to adapt to many kinds of systems.
16566
16567 -Usage: $0 [OPTION]... [VAR=VALUE]...
16568 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
16569 +$as_echo_n "checking for egrep... " >&6; }
16570 +if ${ac_cv_path_EGREP+:} false; then :
16571 + $as_echo_n "(cached) " >&6
16572 +else
16573 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16574 + then ac_cv_path_EGREP="$GREP -E"
16575 + else
16576 + if test -z "$EGREP"; then
16577 + ac_path_EGREP_found=false
16578 + # Loop through the user's path and test for each of PROGNAME-LIST
16579 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16580 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16581 +do
16582 + IFS=$as_save_IFS
16583 + test -z "$as_dir" && as_dir=.
16584 + for ac_prog in egrep; do
16585 + for ac_exec_ext in '' $ac_executable_extensions; do
16586 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16587 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16588 +# Check for GNU ac_path_EGREP and select it if it is found.
16589 + # Check for GNU $ac_path_EGREP
16590 +case `"$ac_path_EGREP" --version 2>&1` in
16591 +*GNU*)
16592 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16593 +*)
16594 + ac_count=0
16595 + $as_echo_n 0123456789 >"conftest.in"
16596 + while :
16597 + do
16598 + cat "conftest.in" "conftest.in" >"conftest.tmp"
16599 + mv "conftest.tmp" "conftest.in"
16600 + cp "conftest.in" "conftest.nl"
16601 + $as_echo 'EGREP' >> "conftest.nl"
16602 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16603 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16604 + as_fn_arith $ac_count + 1 && ac_count=$as_val
16605 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16606 + # Best one so far, save it but keep looking for a better one
16607 + ac_cv_path_EGREP="$ac_path_EGREP"
16608 + ac_path_EGREP_max=$ac_count
16609 + fi
16610 + # 10*(2^10) chars as input seems more than enough
16611 + test $ac_count -gt 10 && break
16612 + done
16613 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16614 +esac
16615
16616 -To assign environment variables (e.g., CC, CFLAGS...), specify them as
16617 -VAR=VALUE. See below for descriptions of some of the useful variables.
16618 + $ac_path_EGREP_found && break 3
16619 + done
16620 + done
16621 + done
16622 +IFS=$as_save_IFS
16623 + if test -z "$ac_cv_path_EGREP"; then
16624 + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16625 + fi
16626 +else
16627 + ac_cv_path_EGREP=$EGREP
16628 +fi
16629
16630 -Defaults for the options are specified in brackets.
16631 + fi
16632 +fi
16633 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
16634 +$as_echo "$ac_cv_path_EGREP" >&6; }
16635 + EGREP="$ac_cv_path_EGREP"
16636
16637 -Configuration:
16638 - -h, --help display this help and exit
16639 - --help=short display options specific to this package
16640 - --help=recursive display the short help of all the included packages
16641 - -V, --version display version information and exit
16642 - -q, --quiet, --silent do not print \`checking...' messages
16643 - --cache-file=FILE cache test results in FILE [disabled]
16644 - -C, --config-cache alias for \`--cache-file=config.cache'
16645 - -n, --no-create do not create output files
16646 - --srcdir=DIR find the sources in DIR [configure dir or \`..']
16647
16648 -Installation directories:
16649 - --prefix=PREFIX install architecture-independent files in PREFIX
16650 - [$ac_default_prefix]
16651 - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
16652 - [PREFIX]
16653 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16654 +$as_echo_n "checking for ANSI C header files... " >&6; }
16655 +if ${ac_cv_header_stdc+:} false; then :
16656 + $as_echo_n "(cached) " >&6
16657 +else
16658 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16659 +/* end confdefs.h. */
16660 +#include <stdlib.h>
16661 +#include <stdarg.h>
16662 +#include <string.h>
16663 +#include <float.h>
16664
16665 -By default, \`make install' will install all the files in
16666 -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
16667 -an installation prefix other than \`$ac_default_prefix' using \`--prefix',
16668 -for instance \`--prefix=\$HOME'.
16669 +int
16670 +main ()
16671 +{
16672
16673 -For better control, use the options below.
16674 + ;
16675 + return 0;
16676 +}
16677 +_ACEOF
16678 +if ac_fn_c_try_compile "$LINENO"; then :
16679 + ac_cv_header_stdc=yes
16680 +else
16681 + ac_cv_header_stdc=no
16682 +fi
16683 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16684 +
16685 +if test $ac_cv_header_stdc = yes; then
16686 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16687 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 +/* end confdefs.h. */
16689 +#include <string.h>
16690
16691 -Fine tuning of the installation directories:
16692 - --bindir=DIR user executables [EPREFIX/bin]
16693 - --sbindir=DIR system admin executables [EPREFIX/sbin]
16694 - --libexecdir=DIR program executables [EPREFIX/libexec]
16695 - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
16696 - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
16697 - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
16698 - --libdir=DIR object code libraries [EPREFIX/lib]
16699 - --includedir=DIR C header files [PREFIX/include]
16700 - --oldincludedir=DIR C header files for non-gcc [/usr/include]
16701 - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
16702 - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
16703 - --infodir=DIR info documentation [DATAROOTDIR/info]
16704 - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
16705 - --mandir=DIR man documentation [DATAROOTDIR/man]
16706 - --docdir=DIR documentation root [DATAROOTDIR/doc/libglade]
16707 - --htmldir=DIR html documentation [DOCDIR]
16708 - --dvidir=DIR dvi documentation [DOCDIR]
16709 - --pdfdir=DIR pdf documentation [DOCDIR]
16710 - --psdir=DIR ps documentation [DOCDIR]
16711 _ACEOF
16712 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16713 + $EGREP "memchr" >/dev/null 2>&1; then :
16714
16715 - cat <<\_ACEOF
16716 +else
16717 + ac_cv_header_stdc=no
16718 +fi
16719 +rm -f conftest*
16720
16721 -Program names:
16722 - --program-prefix=PREFIX prepend PREFIX to installed program names
16723 - --program-suffix=SUFFIX append SUFFIX to installed program names
16724 - --program-transform-name=PROGRAM run sed PROGRAM on installed program names
16725 +fi
16726 +
16727 +if test $ac_cv_header_stdc = yes; then
16728 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16729 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 +/* end confdefs.h. */
16731 +#include <stdlib.h>
16732
16733 -System types:
16734 - --build=BUILD configure for building on BUILD [guessed]
16735 - --host=HOST cross-compile to build programs to run on HOST [BUILD]
16736 _ACEOF
16737 -fi
16738 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16739 + $EGREP "free" >/dev/null 2>&1; then :
16740
16741 -if test -n "$ac_init_help"; then
16742 - case $ac_init_help in
16743 - short | recursive ) echo "Configuration of libglade 2.6.4:";;
16744 - esac
16745 - cat <<\_ACEOF
16746 +else
16747 + ac_cv_header_stdc=no
16748 +fi
16749 +rm -f conftest*
16750
16751 -Optional Features:
16752 - --disable-option-checking ignore unrecognized --enable/--with options
16753 - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
16754 - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
16755 - --disable-dependency-tracking speeds up one-time build
16756 - --enable-dependency-tracking do not reject slow dependency extractors
16757 - --enable-shared[=PKGS] build shared libraries [default=yes]
16758 - --enable-static[=PKGS] build static libraries [default=yes]
16759 - --enable-fast-install[=PKGS]
16760 - optimize for fast installation [default=yes]
16761 - --disable-libtool-lock avoid locking (might break parallel builds)
16762 - --disable-gtktest do not try to compile and run a test GTK+ program
16763 - --enable-gtk-doc use gtk-doc to build documentation [default=no]
16764 - --enable-gtk-doc-html build documentation in html format [default=yes]
16765 - --enable-gtk-doc-pdf build documentation in pdf format [default=no]
16766 +fi
16767
16768 -Optional Packages:
16769 - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
16770 - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
16771 - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
16772 - --with-pic try to use only PIC/non-PIC objects [default=use
16773 - both]
16774 - --with-html-dir=PATH path to installed docs
16775 - --with-xml-catalog=CATALOG
16776 - path to xml catalog to use
16777 +if test $ac_cv_header_stdc = yes; then
16778 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16779 + if test "$cross_compiling" = yes; then :
16780 + :
16781 +else
16782 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783 +/* end confdefs.h. */
16784 +#include <ctype.h>
16785 +#include <stdlib.h>
16786 +#if ((' ' & 0x0FF) == 0x020)
16787 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16788 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16789 +#else
16790 +# define ISLOWER(c) \
16791 + (('a' <= (c) && (c) <= 'i') \
16792 + || ('j' <= (c) && (c) <= 'r') \
16793 + || ('s' <= (c) && (c) <= 'z'))
16794 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16795 +#endif
16796
16797 -Some influential environment variables:
16798 - CC C compiler command
16799 - CFLAGS C compiler flags
16800 - LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
16801 - nonstandard directory <lib dir>
16802 - LIBS libraries to pass to the linker, e.g. -l<library>
16803 - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
16804 - you have headers in a nonstandard directory <include dir>
16805 - CPP C preprocessor
16806 - PKG_CONFIG path to pkg-config utility
16807 - LIBGLADE_CFLAGS
16808 - C compiler flags for LIBGLADE, overriding pkg-config
16809 - LIBGLADE_LIBS
16810 - linker flags for LIBGLADE, overriding pkg-config
16811 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16812 +int
16813 +main ()
16814 +{
16815 + int i;
16816 + for (i = 0; i < 256; i++)
16817 + if (XOR (islower (i), ISLOWER (i))
16818 + || toupper (i) != TOUPPER (i))
16819 + return 2;
16820 + return 0;
16821 +}
16822 +_ACEOF
16823 +if ac_fn_c_try_run "$LINENO"; then :
16824
16825 -Use these variables to override the choices made by `configure' or to help
16826 -it to find libraries and programs with nonstandard names/locations.
16827 +else
16828 + ac_cv_header_stdc=no
16829 +fi
16830 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16831 + conftest.$ac_objext conftest.beam conftest.$ac_ext
16832 +fi
16833
16834 -Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libglade>.
16835 -_ACEOF
16836 -ac_status=$?
16837 fi
16838 +fi
16839 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16840 +$as_echo "$ac_cv_header_stdc" >&6; }
16841 +if test $ac_cv_header_stdc = yes; then
16842
16843 -if test "$ac_init_help" = "recursive"; then
16844 - # If there are subdirs, report their specific --help.
16845 - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
16846 - test -d "$ac_dir" ||
16847 - { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
16848 - continue
16849 - ac_builddir=.
16850 +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
16851
16852 -case "$ac_dir" in
16853 -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16854 -*)
16855 - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16856 - # A ".." for each directory in $ac_dir_suffix.
16857 - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16858 - case $ac_top_builddir_sub in
16859 - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16860 - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16861 - esac ;;
16862 -esac
16863 -ac_abs_top_builddir=$ac_pwd
16864 -ac_abs_builddir=$ac_pwd$ac_dir_suffix
16865 -# for backward compatibility:
16866 -ac_top_builddir=$ac_top_build_prefix
16867 +fi
16868
16869 -case $srcdir in
16870 - .) # We are building in place.
16871 - ac_srcdir=.
16872 - ac_top_srcdir=$ac_top_builddir_sub
16873 - ac_abs_top_srcdir=$ac_pwd ;;
16874 - [\\/]* | ?:[\\/]* ) # Absolute name.
16875 - ac_srcdir=$srcdir$ac_dir_suffix;
16876 - ac_top_srcdir=$srcdir
16877 - ac_abs_top_srcdir=$srcdir ;;
16878 - *) # Relative name.
16879 - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16880 - ac_top_srcdir=$ac_top_build_prefix$srcdir
16881 - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16882 -esac
16883 -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16884
16885 - cd "$ac_dir" || { ac_status=$?; continue; }
16886 - # Check for guested configure.
16887 - if test -f "$ac_srcdir/configure.gnu"; then
16888 - echo &&
16889 - $SHELL "$ac_srcdir/configure.gnu" --help=recursive
16890 - elif test -f "$ac_srcdir/configure"; then
16891 - echo &&
16892 - $SHELL "$ac_srcdir/configure" --help=recursive
16893 - else
16894 - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
16895 - fi || ac_status=$?
16896 - cd "$ac_pwd" || { ac_status=$?; break; }
16897 - done
16898 +
16899 +
16900 +# Make sure we can run config.sub.
16901 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
16902 + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
16903 +
16904 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
16905 +$as_echo_n "checking build system type... " >&6; }
16906 +if ${ac_cv_build+:} false; then :
16907 + $as_echo_n "(cached) " >&6
16908 +else
16909 + ac_build_alias=$build_alias
16910 +test "x$ac_build_alias" = x &&
16911 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
16912 +test "x$ac_build_alias" = x &&
16913 + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
16914 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
16915 + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
16916 +
16917 fi
16918 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
16919 +$as_echo "$ac_cv_build" >&6; }
16920 +case $ac_cv_build in
16921 +*-*-*) ;;
16922 +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
16923 +esac
16924 +build=$ac_cv_build
16925 +ac_save_IFS=$IFS; IFS='-'
16926 +set x $ac_cv_build
16927 +shift
16928 +build_cpu=$1
16929 +build_vendor=$2
16930 +shift; shift
16931 +# Remember, the first character of IFS is used to create $*,
16932 +# except with old shells:
16933 +build_os=$*
16934 +IFS=$ac_save_IFS
16935 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
16936
16937 -test -n "$ac_init_help" && exit $ac_status
16938 -if $ac_init_version; then
16939 - cat <<\_ACEOF
16940 -libglade configure 2.6.4
16941 -generated by GNU Autoconf 2.62
16942
16943 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16944 -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
16945 -This configure script is free software; the Free Software Foundation
16946 -gives unlimited permission to copy, distribute and modify it.
16947 -_ACEOF
16948 - exit
16949 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
16950 +$as_echo_n "checking host system type... " >&6; }
16951 +if ${ac_cv_host+:} false; then :
16952 + $as_echo_n "(cached) " >&6
16953 +else
16954 + if test "x$host_alias" = x; then
16955 + ac_cv_host=$ac_cv_build
16956 +else
16957 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16958 + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
16959 fi
16960 -cat >config.log <<_ACEOF
16961 -This file contains any messages produced by compilers while
16962 -running configure, to aid debugging if configure makes a mistake.
16963
16964 -It was created by libglade $as_me 2.6.4, which was
16965 -generated by GNU Autoconf 2.62. Invocation command line was
16966 +fi
16967 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
16968 +$as_echo "$ac_cv_host" >&6; }
16969 +case $ac_cv_host in
16970 +*-*-*) ;;
16971 +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
16972 +esac
16973 +host=$ac_cv_host
16974 +ac_save_IFS=$IFS; IFS='-'
16975 +set x $ac_cv_host
16976 +shift
16977 +host_cpu=$1
16978 +host_vendor=$2
16979 +shift; shift
16980 +# Remember, the first character of IFS is used to create $*,
16981 +# except with old shells:
16982 +host_os=$*
16983 +IFS=$ac_save_IFS
16984 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16985
16986 - $ $0 $@
16987
16988 -_ACEOF
16989 -exec 5>>config.log
16990 -{
16991 -cat <<_ASUNAME
16992 -## --------- ##
16993 -## Platform. ##
16994 -## --------- ##
16995 +enable_win32_dll=yes
16996
16997 -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
16998 -uname -m = `(uname -m) 2>/dev/null || echo unknown`
16999 -uname -r = `(uname -r) 2>/dev/null || echo unknown`
17000 -uname -s = `(uname -s) 2>/dev/null || echo unknown`
17001 -uname -v = `(uname -v) 2>/dev/null || echo unknown`
17002 +case $host in
17003 +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
17004 + if test -n "$ac_tool_prefix"; then
17005 + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
17006 +set dummy ${ac_tool_prefix}as; ac_word=$2
17007 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17008 +$as_echo_n "checking for $ac_word... " >&6; }
17009 +if ${ac_cv_prog_AS+:} false; then :
17010 + $as_echo_n "(cached) " >&6
17011 +else
17012 + if test -n "$AS"; then
17013 + ac_cv_prog_AS="$AS" # Let the user override the test.
17014 +else
17015 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17016 +for as_dir in $PATH
17017 +do
17018 + IFS=$as_save_IFS
17019 + test -z "$as_dir" && as_dir=.
17020 + for ac_exec_ext in '' $ac_executable_extensions; do
17021 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17022 + ac_cv_prog_AS="${ac_tool_prefix}as"
17023 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17024 + break 2
17025 + fi
17026 +done
17027 + done
17028 +IFS=$as_save_IFS
17029
17030 -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
17031 -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
17032 +fi
17033 +fi
17034 +AS=$ac_cv_prog_AS
17035 +if test -n "$AS"; then
17036 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
17037 +$as_echo "$AS" >&6; }
17038 +else
17039 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17040 +$as_echo "no" >&6; }
17041 +fi
17042
17043 -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
17044 -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
17045 -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
17046 -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
17047 -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
17048 -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
17049 -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
17050
17051 -_ASUNAME
17052 +fi
17053 +if test -z "$ac_cv_prog_AS"; then
17054 + ac_ct_AS=$AS
17055 + # Extract the first word of "as", so it can be a program name with args.
17056 +set dummy as; ac_word=$2
17057 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17058 +$as_echo_n "checking for $ac_word... " >&6; }
17059 +if ${ac_cv_prog_ac_ct_AS+:} false; then :
17060 + $as_echo_n "(cached) " >&6
17061 +else
17062 + if test -n "$ac_ct_AS"; then
17063 + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
17064 +else
17065 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17066 +for as_dir in $PATH
17067 +do
17068 + IFS=$as_save_IFS
17069 + test -z "$as_dir" && as_dir=.
17070 + for ac_exec_ext in '' $ac_executable_extensions; do
17071 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17072 + ac_cv_prog_ac_ct_AS="as"
17073 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17074 + break 2
17075 + fi
17076 +done
17077 + done
17078 +IFS=$as_save_IFS
17079 +
17080 +fi
17081 +fi
17082 +ac_ct_AS=$ac_cv_prog_ac_ct_AS
17083 +if test -n "$ac_ct_AS"; then
17084 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
17085 +$as_echo "$ac_ct_AS" >&6; }
17086 +else
17087 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17088 +$as_echo "no" >&6; }
17089 +fi
17090 +
17091 + if test "x$ac_ct_AS" = x; then
17092 + AS="false"
17093 + else
17094 + case $cross_compiling:$ac_tool_warned in
17095 +yes:)
17096 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17097 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17098 +ac_tool_warned=yes ;;
17099 +esac
17100 + AS=$ac_ct_AS
17101 + fi
17102 +else
17103 + AS="$ac_cv_prog_AS"
17104 +fi
17105 +
17106 + if test -n "$ac_tool_prefix"; then
17107 + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17108 +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17109 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17110 +$as_echo_n "checking for $ac_word... " >&6; }
17111 +if ${ac_cv_prog_DLLTOOL+:} false; then :
17112 + $as_echo_n "(cached) " >&6
17113 +else
17114 + if test -n "$DLLTOOL"; then
17115 + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17116 +else
17117 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17118 +for as_dir in $PATH
17119 +do
17120 + IFS=$as_save_IFS
17121 + test -z "$as_dir" && as_dir=.
17122 + for ac_exec_ext in '' $ac_executable_extensions; do
17123 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17124 + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17125 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17126 + break 2
17127 + fi
17128 +done
17129 + done
17130 +IFS=$as_save_IFS
17131 +
17132 +fi
17133 +fi
17134 +DLLTOOL=$ac_cv_prog_DLLTOOL
17135 +if test -n "$DLLTOOL"; then
17136 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17137 +$as_echo "$DLLTOOL" >&6; }
17138 +else
17139 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17140 +$as_echo "no" >&6; }
17141 +fi
17142
17143 +
17144 +fi
17145 +if test -z "$ac_cv_prog_DLLTOOL"; then
17146 + ac_ct_DLLTOOL=$DLLTOOL
17147 + # Extract the first word of "dlltool", so it can be a program name with args.
17148 +set dummy dlltool; ac_word=$2
17149 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17150 +$as_echo_n "checking for $ac_word... " >&6; }
17151 +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
17152 + $as_echo_n "(cached) " >&6
17153 +else
17154 + if test -n "$ac_ct_DLLTOOL"; then
17155 + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17156 +else
17157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17158 for as_dir in $PATH
17159 do
17160 IFS=$as_save_IFS
17161 test -z "$as_dir" && as_dir=.
17162 - $as_echo "PATH: $as_dir"
17163 + for ac_exec_ext in '' $ac_executable_extensions; do
17164 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17165 + ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17166 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17167 + break 2
17168 + fi
17169 done
17170 + done
17171 IFS=$as_save_IFS
17172
17173 -} >&5
17174 -
17175 -cat >&5 <<_ACEOF
17176 +fi
17177 +fi
17178 +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17179 +if test -n "$ac_ct_DLLTOOL"; then
17180 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17181 +$as_echo "$ac_ct_DLLTOOL" >&6; }
17182 +else
17183 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17184 +$as_echo "no" >&6; }
17185 +fi
17186
17187 + if test "x$ac_ct_DLLTOOL" = x; then
17188 + DLLTOOL="false"
17189 + else
17190 + case $cross_compiling:$ac_tool_warned in
17191 +yes:)
17192 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17193 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17194 +ac_tool_warned=yes ;;
17195 +esac
17196 + DLLTOOL=$ac_ct_DLLTOOL
17197 + fi
17198 +else
17199 + DLLTOOL="$ac_cv_prog_DLLTOOL"
17200 +fi
17201
17202 -## ----------- ##
17203 -## Core tests. ##
17204 -## ----------- ##
17205 + if test -n "$ac_tool_prefix"; then
17206 + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17207 +set dummy ${ac_tool_prefix}objdump; ac_word=$2
17208 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17209 +$as_echo_n "checking for $ac_word... " >&6; }
17210 +if ${ac_cv_prog_OBJDUMP+:} false; then :
17211 + $as_echo_n "(cached) " >&6
17212 +else
17213 + if test -n "$OBJDUMP"; then
17214 + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17215 +else
17216 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17217 +for as_dir in $PATH
17218 +do
17219 + IFS=$as_save_IFS
17220 + test -z "$as_dir" && as_dir=.
17221 + for ac_exec_ext in '' $ac_executable_extensions; do
17222 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17223 + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17224 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17225 + break 2
17226 + fi
17227 +done
17228 + done
17229 +IFS=$as_save_IFS
17230
17231 -_ACEOF
17232 +fi
17233 +fi
17234 +OBJDUMP=$ac_cv_prog_OBJDUMP
17235 +if test -n "$OBJDUMP"; then
17236 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17237 +$as_echo "$OBJDUMP" >&6; }
17238 +else
17239 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17240 +$as_echo "no" >&6; }
17241 +fi
17242
17243
17244 -# Keep a trace of the command line.
17245 -# Strip out --no-create and --no-recursion so they do not pile up.
17246 -# Strip out --silent because we don't want to record it for future runs.
17247 -# Also quote any args containing shell meta-characters.
17248 -# Make two passes to allow for proper duplicate-argument suppression.
17249 -ac_configure_args=
17250 -ac_configure_args0=
17251 -ac_configure_args1=
17252 -ac_must_keep_next=false
17253 -for ac_pass in 1 2
17254 +fi
17255 +if test -z "$ac_cv_prog_OBJDUMP"; then
17256 + ac_ct_OBJDUMP=$OBJDUMP
17257 + # Extract the first word of "objdump", so it can be a program name with args.
17258 +set dummy objdump; ac_word=$2
17259 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17260 +$as_echo_n "checking for $ac_word... " >&6; }
17261 +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
17262 + $as_echo_n "(cached) " >&6
17263 +else
17264 + if test -n "$ac_ct_OBJDUMP"; then
17265 + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17266 +else
17267 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17268 +for as_dir in $PATH
17269 do
17270 - for ac_arg
17271 - do
17272 - case $ac_arg in
17273 - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
17274 - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17275 - | -silent | --silent | --silen | --sile | --sil)
17276 - continue ;;
17277 - *\'*)
17278 - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17279 - esac
17280 - case $ac_pass in
17281 - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
17282 - 2)
17283 - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
17284 - if test $ac_must_keep_next = true; then
17285 - ac_must_keep_next=false # Got value, back to normal.
17286 - else
17287 - case $ac_arg in
17288 - *=* | --config-cache | -C | -disable-* | --disable-* \
17289 - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
17290 - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
17291 - | -with-* | --with-* | -without-* | --without-* | --x)
17292 - case "$ac_configure_args0 " in
17293 - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
17294 - esac
17295 - ;;
17296 - -* ) ac_must_keep_next=true ;;
17297 - esac
17298 - fi
17299 - ac_configure_args="$ac_configure_args '$ac_arg'"
17300 - ;;
17301 - esac
17302 - done
17303 + IFS=$as_save_IFS
17304 + test -z "$as_dir" && as_dir=.
17305 + for ac_exec_ext in '' $ac_executable_extensions; do
17306 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17307 + ac_cv_prog_ac_ct_OBJDUMP="objdump"
17308 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17309 + break 2
17310 + fi
17311 done
17312 -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
17313 -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
17314 -
17315 -# When interrupted or exit'd, cleanup temporary files, and complete
17316 -# config.log. We remove comments because anyway the quotes in there
17317 -# would cause problems or look ugly.
17318 -# WARNING: Use '\'' to represent an apostrophe within the trap.
17319 -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
17320 -trap 'exit_status=$?
17321 - # Save into config.log some information that might help in debugging.
17322 - {
17323 - echo
17324 -
17325 - cat <<\_ASBOX
17326 -## ---------------- ##
17327 -## Cache variables. ##
17328 -## ---------------- ##
17329 -_ASBOX
17330 - echo
17331 - # The following way of writing the cache mishandles newlines in values,
17332 -(
17333 - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
17334 - eval ac_val=\$$ac_var
17335 - case $ac_val in #(
17336 - *${as_nl}*)
17337 - case $ac_var in #(
17338 - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17339 -$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17340 - esac
17341 - case $ac_var in #(
17342 - _ | IFS | as_nl) ;; #(
17343 - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17344 - *) $as_unset $ac_var ;;
17345 - esac ;;
17346 - esac
17347 done
17348 - (set) 2>&1 |
17349 - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
17350 - *${as_nl}ac_space=\ *)
17351 - sed -n \
17352 - "s/'\''/'\''\\\\'\'''\''/g;
17353 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
17354 - ;; #(
17355 - *)
17356 - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17357 - ;;
17358 - esac |
17359 - sort
17360 -)
17361 - echo
17362 +IFS=$as_save_IFS
17363
17364 - cat <<\_ASBOX
17365 -## ----------------- ##
17366 -## Output variables. ##
17367 -## ----------------- ##
17368 -_ASBOX
17369 - echo
17370 - for ac_var in $ac_subst_vars
17371 - do
17372 - eval ac_val=\$$ac_var
17373 - case $ac_val in
17374 - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
17375 - esac
17376 - $as_echo "$ac_var='\''$ac_val'\''"
17377 - done | sort
17378 - echo
17379 +fi
17380 +fi
17381 +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17382 +if test -n "$ac_ct_OBJDUMP"; then
17383 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17384 +$as_echo "$ac_ct_OBJDUMP" >&6; }
17385 +else
17386 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17387 +$as_echo "no" >&6; }
17388 +fi
17389
17390 - if test -n "$ac_subst_files"; then
17391 - cat <<\_ASBOX
17392 -## ------------------- ##
17393 -## File substitutions. ##
17394 -## ------------------- ##
17395 -_ASBOX
17396 - echo
17397 - for ac_var in $ac_subst_files
17398 - do
17399 - eval ac_val=\$$ac_var
17400 - case $ac_val in
17401 - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
17402 - esac
17403 - $as_echo "$ac_var='\''$ac_val'\''"
17404 - done | sort
17405 - echo
17406 - fi
17407 + if test "x$ac_ct_OBJDUMP" = x; then
17408 + OBJDUMP="false"
17409 + else
17410 + case $cross_compiling:$ac_tool_warned in
17411 +yes:)
17412 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17413 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17414 +ac_tool_warned=yes ;;
17415 +esac
17416 + OBJDUMP=$ac_ct_OBJDUMP
17417 + fi
17418 +else
17419 + OBJDUMP="$ac_cv_prog_OBJDUMP"
17420 +fi
17421
17422 - if test -s confdefs.h; then
17423 - cat <<\_ASBOX
17424 -## ----------- ##
17425 -## confdefs.h. ##
17426 -## ----------- ##
17427 -_ASBOX
17428 - echo
17429 - cat confdefs.h
17430 - echo
17431 - fi
17432 - test "$ac_signal" != 0 &&
17433 - $as_echo "$as_me: caught signal $ac_signal"
17434 - $as_echo "$as_me: exit $exit_status"
17435 - } >&5
17436 - rm -f core *.core core.conftest.* &&
17437 - rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
17438 - exit $exit_status
17439 -' 0
17440 -for ac_signal in 1 2 13 15; do
17441 - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
17442 -done
17443 -ac_signal=0
17444 + ;;
17445 +esac
17446 +
17447 +test -z "$AS" && AS=as
17448
17449 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
17450 -rm -f -r conftest* confdefs.h
17451
17452 -# Predefined preprocessor variables.
17453
17454 -cat >>confdefs.h <<_ACEOF
17455 -#define PACKAGE_NAME "$PACKAGE_NAME"
17456 -_ACEOF
17457
17458
17459 -cat >>confdefs.h <<_ACEOF
17460 -#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
17461 -_ACEOF
17462 +test -z "$DLLTOOL" && DLLTOOL=dlltool
17463
17464
17465 -cat >>confdefs.h <<_ACEOF
17466 -#define PACKAGE_VERSION "$PACKAGE_VERSION"
17467 -_ACEOF
17468
17469
17470 -cat >>confdefs.h <<_ACEOF
17471 -#define PACKAGE_STRING "$PACKAGE_STRING"
17472 -_ACEOF
17473
17474 +test -z "$OBJDUMP" && OBJDUMP=objdump
17475
17476 -cat >>confdefs.h <<_ACEOF
17477 -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
17478 -_ACEOF
17479
17480
17481 -# Let the site file select an alternate cache file if it wants to.
17482 -# Prefer an explicitly selected file to automatically selected ones.
17483 -ac_site_file1=NONE
17484 -ac_site_file2=NONE
17485 -if test -n "$CONFIG_SITE"; then
17486 - ac_site_file1=$CONFIG_SITE
17487 -elif test "x$prefix" != xNONE; then
17488 - ac_site_file1=$prefix/share/config.site
17489 - ac_site_file2=$prefix/etc/config.site
17490 -else
17491 - ac_site_file1=$ac_default_prefix/share/config.site
17492 - ac_site_file2=$ac_default_prefix/etc/config.site
17493 -fi
17494 -for ac_site_file in "$ac_site_file1" "$ac_site_file2"
17495 -do
17496 - test "x$ac_site_file" = xNONE && continue
17497 - if test -r "$ac_site_file"; then
17498 - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
17499 -$as_echo "$as_me: loading site script $ac_site_file" >&6;}
17500 - sed 's/^/| /' "$ac_site_file" >&5
17501 - . "$ac_site_file"
17502 - fi
17503 -done
17504
17505 -if test -r "$cache_file"; then
17506 - # Some versions of bash will fail to source /dev/null (special
17507 - # files actually), so we avoid doing that.
17508 - if test -f "$cache_file"; then
17509 - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
17510 -$as_echo "$as_me: loading cache $cache_file" >&6;}
17511 - case $cache_file in
17512 - [\\/]* | ?:[\\/]* ) . "$cache_file";;
17513 - *) . "./$cache_file";;
17514 - esac
17515 - fi
17516 -else
17517 - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
17518 -$as_echo "$as_me: creating cache $cache_file" >&6;}
17519 - >$cache_file
17520 -fi
17521
17522 -# Check that the precious variables saved in the cache have kept the same
17523 -# value.
17524 -ac_cache_corrupted=false
17525 -for ac_var in $ac_precious_vars; do
17526 - eval ac_old_set=\$ac_cv_env_${ac_var}_set
17527 - eval ac_new_set=\$ac_env_${ac_var}_set
17528 - eval ac_old_val=\$ac_cv_env_${ac_var}_value
17529 - eval ac_new_val=\$ac_env_${ac_var}_value
17530 - case $ac_old_set,$ac_new_set in
17531 - set,)
17532 - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
17533 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
17534 - ac_cache_corrupted=: ;;
17535 - ,set)
17536 - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
17537 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
17538 - ac_cache_corrupted=: ;;
17539 - ,);;
17540 - *)
17541 - if test "x$ac_old_val" != "x$ac_new_val"; then
17542 - # differences in whitespace do not lead to failure.
17543 - ac_old_val_w=`echo x $ac_old_val`
17544 - ac_new_val_w=`echo x $ac_new_val`
17545 - if test "$ac_old_val_w" != "$ac_new_val_w"; then
17546 - { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
17547 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
17548 - ac_cache_corrupted=:
17549 - else
17550 - { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
17551 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
17552 - eval $ac_var=\$ac_old_val
17553 - fi
17554 - { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
17555 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
17556 - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
17557 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
17558 - fi;;
17559 - esac
17560 - # Pass precious variables to config.status.
17561 - if test "$ac_new_set" = set; then
17562 - case $ac_new_val in
17563 - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
17564 - *) ac_arg=$ac_var=$ac_new_val ;;
17565 - esac
17566 - case " $ac_configure_args " in
17567 - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
17568 - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
17569 - esac
17570 - fi
17571 -done
17572 -if $ac_cache_corrupted; then
17573 - { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
17574 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
17575 - { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
17576 -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
17577 - { (exit 1); exit 1; }; }
17578 -fi
17579
17580
17581 +case `pwd` in
17582 + *\ * | *\ *)
17583 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
17584 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
17585 +esac
17586
17587
17588
17589 +macro_version='2.4.2'
17590 +macro_revision='1.3337'
17591
17592
17593
17594 @@ -2070,2897 +4817,2121 @@ fi
17595
17596
17597
17598 +ltmain="$ac_aux_dir/ltmain.sh"
17599
17600 +# Backslashify metacharacters that are still active within
17601 +# double-quoted strings.
17602 +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
17603
17604 +# Same as above, but do not quote variable references.
17605 +double_quote_subst='s/\(["`\\]\)/\\\1/g'
17606
17607 +# Sed substitution to delay expansion of an escaped shell variable in a
17608 +# double_quote_subst'ed string.
17609 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
17610
17611 +# Sed substitution to delay expansion of an escaped single quote.
17612 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
17613
17614 +# Sed substitution to avoid accidental globbing in evaled expressions
17615 +no_glob_subst='s/\*/\\\*/g'
17616
17617 +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17618 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
17619 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
17620 +
17621 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
17622 +$as_echo_n "checking how to print strings... " >&6; }
17623 +# Test print first, because it will be a builtin if present.
17624 +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
17625 + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
17626 + ECHO='print -r --'
17627 +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
17628 + ECHO='printf %s\n'
17629 +else
17630 + # Use this function as a fallback that always works.
17631 + func_fallback_echo ()
17632 + {
17633 + eval 'cat <<_LTECHO_EOF
17634 +$1
17635 +_LTECHO_EOF'
17636 + }
17637 + ECHO='func_fallback_echo'
17638 +fi
17639
17640 -ac_ext=c
17641 -ac_cpp='$CPP $CPPFLAGS'
17642 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
17645 +# func_echo_all arg...
17646 +# Invoke $ECHO with all args, space-separated.
17647 +func_echo_all ()
17648 +{
17649 + $ECHO ""
17650 +}
17651
17652 +case "$ECHO" in
17653 + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
17654 +$as_echo "printf" >&6; } ;;
17655 + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
17656 +$as_echo "print -r" >&6; } ;;
17657 + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
17658 +$as_echo "cat" >&6; } ;;
17659 +esac
17660
17661
17662
17663
17664 -ac_config_headers="$ac_config_headers config.h"
17665
17666
17667 -am__api_version='1.10'
17668
17669 -ac_aux_dir=
17670 -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
17671 - if test -f "$ac_dir/install-sh"; then
17672 - ac_aux_dir=$ac_dir
17673 - ac_install_sh="$ac_aux_dir/install-sh -c"
17674 - break
17675 - elif test -f "$ac_dir/install.sh"; then
17676 - ac_aux_dir=$ac_dir
17677 - ac_install_sh="$ac_aux_dir/install.sh -c"
17678 - break
17679 - elif test -f "$ac_dir/shtool"; then
17680 - ac_aux_dir=$ac_dir
17681 - ac_install_sh="$ac_aux_dir/shtool install -c"
17682 - break
17683 - fi
17684 -done
17685 -if test -z "$ac_aux_dir"; then
17686 - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
17687 -$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
17688 - { (exit 1); exit 1; }; }
17689 -fi
17690
17691 -# These three variables are undocumented and unsupported,
17692 -# and are intended to be withdrawn in a future Autoconf release.
17693 -# They can cause serious problems if a builder's source tree is in a directory
17694 -# whose full name contains unusual characters.
17695 -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
17696 -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
17697 -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
17698
17699
17700 -# Find a good install program. We prefer a C program (faster),
17701 -# so one script is as good as another. But avoid the broken or
17702 -# incompatible versions:
17703 -# SysV /etc/install, /usr/sbin/install
17704 -# SunOS /usr/etc/install
17705 -# IRIX /sbin/install
17706 -# AIX /bin/install
17707 -# AmigaOS /C/install, which installs bootblocks on floppy discs
17708 -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
17709 -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
17710 -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
17711 -# OS/2's system install, which has a completely different semantic
17712 -# ./install, which can be erroneously created by make from ./install.sh.
17713 -# Reject install programs that cannot install multiple files.
17714 -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
17715 -$as_echo_n "checking for a BSD-compatible install... " >&6; }
17716 -if test -z "$INSTALL"; then
17717 -if test "${ac_cv_path_install+set}" = set; then
17718 +
17719 +
17720 +
17721 +
17722 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
17723 +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
17724 +if ${ac_cv_path_SED+:} false; then :
17725 $as_echo_n "(cached) " >&6
17726 else
17727 + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
17728 + for ac_i in 1 2 3 4 5 6 7; do
17729 + ac_script="$ac_script$as_nl$ac_script"
17730 + done
17731 + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
17732 + { ac_script=; unset ac_script;}
17733 + if test -z "$SED"; then
17734 + ac_path_SED_found=false
17735 + # Loop through the user's path and test for each of PROGNAME-LIST
17736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17737 for as_dir in $PATH
17738 do
17739 IFS=$as_save_IFS
17740 test -z "$as_dir" && as_dir=.
17741 - # Account for people who put trailing slashes in PATH elements.
17742 -case $as_dir/ in
17743 - ./ | .// | /cC/* | \
17744 - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
17745 - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
17746 - /usr/ucb/* ) ;;
17747 - *)
17748 - # OSF1 and SCO ODT 3.0 have their own names for install.
17749 - # Don't use installbsd from OSF since it installs stuff as root
17750 - # by default.
17751 - for ac_prog in ginstall scoinst install; do
17752 - for ac_exec_ext in '' $ac_executable_extensions; do
17753 - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
17754 - if test $ac_prog = install &&
17755 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17756 - # AIX install. It has an incompatible calling convention.
17757 - :
17758 - elif test $ac_prog = install &&
17759 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17760 - # program-specific install script used by HP pwplus--don't use.
17761 - :
17762 - else
17763 - rm -rf conftest.one conftest.two conftest.dir
17764 - echo one > conftest.one
17765 - echo two > conftest.two
17766 - mkdir conftest.dir
17767 - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
17768 - test -s conftest.one && test -s conftest.two &&
17769 - test -s conftest.dir/conftest.one &&
17770 - test -s conftest.dir/conftest.two
17771 - then
17772 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
17773 - break 3
17774 - fi
17775 - fi
17776 - fi
17777 - done
17778 + for ac_prog in sed gsed; do
17779 + for ac_exec_ext in '' $ac_executable_extensions; do
17780 + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
17781 + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
17782 +# Check for GNU ac_path_SED and select it if it is found.
17783 + # Check for GNU $ac_path_SED
17784 +case `"$ac_path_SED" --version 2>&1` in
17785 +*GNU*)
17786 + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
17787 +*)
17788 + ac_count=0
17789 + $as_echo_n 0123456789 >"conftest.in"
17790 + while :
17791 + do
17792 + cat "conftest.in" "conftest.in" >"conftest.tmp"
17793 + mv "conftest.tmp" "conftest.in"
17794 + cp "conftest.in" "conftest.nl"
17795 + $as_echo '' >> "conftest.nl"
17796 + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
17797 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17798 + as_fn_arith $ac_count + 1 && ac_count=$as_val
17799 + if test $ac_count -gt ${ac_path_SED_max-0}; then
17800 + # Best one so far, save it but keep looking for a better one
17801 + ac_cv_path_SED="$ac_path_SED"
17802 + ac_path_SED_max=$ac_count
17803 + fi
17804 + # 10*(2^10) chars as input seems more than enough
17805 + test $ac_count -gt 10 && break
17806 + done
17807 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17808 +esac
17809 +
17810 + $ac_path_SED_found && break 3
17811 done
17812 - ;;
17813 + done
17814 + done
17815 +IFS=$as_save_IFS
17816 + if test -z "$ac_cv_path_SED"; then
17817 + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
17818 + fi
17819 +else
17820 + ac_cv_path_SED=$SED
17821 +fi
17822 +
17823 +fi
17824 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
17825 +$as_echo "$ac_cv_path_SED" >&6; }
17826 + SED="$ac_cv_path_SED"
17827 + rm -f conftest.sed
17828 +
17829 +test -z "$SED" && SED=sed
17830 +Xsed="$SED -e 1s/^X//"
17831 +
17832 +
17833 +
17834 +
17835 +
17836 +
17837 +
17838 +
17839 +
17840 +
17841 +
17842 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
17843 +$as_echo_n "checking for fgrep... " >&6; }
17844 +if ${ac_cv_path_FGREP+:} false; then :
17845 + $as_echo_n "(cached) " >&6
17846 +else
17847 + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
17848 + then ac_cv_path_FGREP="$GREP -F"
17849 + else
17850 + if test -z "$FGREP"; then
17851 + ac_path_FGREP_found=false
17852 + # Loop through the user's path and test for each of PROGNAME-LIST
17853 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17854 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17855 +do
17856 + IFS=$as_save_IFS
17857 + test -z "$as_dir" && as_dir=.
17858 + for ac_prog in fgrep; do
17859 + for ac_exec_ext in '' $ac_executable_extensions; do
17860 + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
17861 + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
17862 +# Check for GNU ac_path_FGREP and select it if it is found.
17863 + # Check for GNU $ac_path_FGREP
17864 +case `"$ac_path_FGREP" --version 2>&1` in
17865 +*GNU*)
17866 + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
17867 +*)
17868 + ac_count=0
17869 + $as_echo_n 0123456789 >"conftest.in"
17870 + while :
17871 + do
17872 + cat "conftest.in" "conftest.in" >"conftest.tmp"
17873 + mv "conftest.tmp" "conftest.in"
17874 + cp "conftest.in" "conftest.nl"
17875 + $as_echo 'FGREP' >> "conftest.nl"
17876 + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
17877 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17878 + as_fn_arith $ac_count + 1 && ac_count=$as_val
17879 + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
17880 + # Best one so far, save it but keep looking for a better one
17881 + ac_cv_path_FGREP="$ac_path_FGREP"
17882 + ac_path_FGREP_max=$ac_count
17883 + fi
17884 + # 10*(2^10) chars as input seems more than enough
17885 + test $ac_count -gt 10 && break
17886 + done
17887 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17888 esac
17889
17890 -done
17891 + $ac_path_FGREP_found && break 3
17892 + done
17893 + done
17894 + done
17895 IFS=$as_save_IFS
17896 -
17897 -rm -rf conftest.one conftest.two conftest.dir
17898 -
17899 -fi
17900 - if test "${ac_cv_path_install+set}" = set; then
17901 - INSTALL=$ac_cv_path_install
17902 - else
17903 - # As a last resort, use the slow shell script. Don't cache a
17904 - # value for INSTALL within a source directory, because that will
17905 - # break other packages using the cache if that directory is
17906 - # removed, or if the value is a relative name.
17907 - INSTALL=$ac_install_sh
17908 + if test -z "$ac_cv_path_FGREP"; then
17909 + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
17910 fi
17911 +else
17912 + ac_cv_path_FGREP=$FGREP
17913 fi
17914 -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
17915 -$as_echo "$INSTALL" >&6; }
17916
17917 -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
17918 -# It thinks the first close brace ends the variable substitution.
17919 -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
17920 + fi
17921 +fi
17922 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
17923 +$as_echo "$ac_cv_path_FGREP" >&6; }
17924 + FGREP="$ac_cv_path_FGREP"
17925
17926 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
17927
17928 -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
17929 +test -z "$GREP" && GREP=grep
17930
17931 -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
17932 -$as_echo_n "checking whether build environment is sane... " >&6; }
17933 -# Just in case
17934 -sleep 1
17935 -echo timestamp > conftest.file
17936 -# Do `set' in a subshell so we don't clobber the current shell's
17937 -# arguments. Must try -L first in case configure is actually a
17938 -# symlink; some systems play weird games with the mod time of symlinks
17939 -# (eg FreeBSD returns the mod time of the symlink's containing
17940 -# directory).
17941 -if (
17942 - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
17943 - if test "$*" = "X"; then
17944 - # -L didn't work.
17945 - set X `ls -t $srcdir/configure conftest.file`
17946 - fi
17947 - rm -f conftest.file
17948 - if test "$*" != "X $srcdir/configure conftest.file" \
17949 - && test "$*" != "X conftest.file $srcdir/configure"; then
17950
17951 - # If neither matched, then we have a broken ls. This can happen
17952 - # if, for instance, CONFIG_SHELL is bash and it inherits a
17953 - # broken ls alias from the environment. This has actually
17954 - # happened. Such a system could not be considered "sane".
17955 - { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
17956 -alias in your environment" >&5
17957 -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
17958 -alias in your environment" >&2;}
17959 - { (exit 1); exit 1; }; }
17960 - fi
17961
17962 - test "$2" = conftest.file
17963 - )
17964 -then
17965 - # Ok.
17966 - :
17967 +
17968 +
17969 +
17970 +
17971 +
17972 +
17973 +
17974 +
17975 +
17976 +
17977 +
17978 +
17979 +
17980 +
17981 +
17982 +
17983 +# Check whether --with-gnu-ld was given.
17984 +if test "${with_gnu_ld+set}" = set; then :
17985 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17986 else
17987 - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
17988 -Check your system clock" >&5
17989 -$as_echo "$as_me: error: newly created file is older than distributed files!
17990 -Check your system clock" >&2;}
17991 - { (exit 1); exit 1; }; }
17992 + with_gnu_ld=no
17993 fi
17994 -{ $as_echo "$as_me:$LINENO: result: yes" >&5
17995 -$as_echo "yes" >&6; }
17996 -test "$program_prefix" != NONE &&
17997 - program_transform_name="s&^&$program_prefix&;$program_transform_name"
17998 -# Use a double $ so make ignores it.
17999 -test "$program_suffix" != NONE &&
18000 - program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18001 -# Double any \ or $.
18002 -# By default was `s,x,x', remove it if useless.
18003 -ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
18004 -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
18005
18006 -# expand $ac_aux_dir to an absolute path
18007 -am_aux_dir=`cd $ac_aux_dir && pwd`
18008 +ac_prog=ld
18009 +if test "$GCC" = yes; then
18010 + # Check if gcc -print-prog-name=ld gives a path.
18011 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18012 +$as_echo_n "checking for ld used by $CC... " >&6; }
18013 + case $host in
18014 + *-*-mingw*)
18015 + # gcc leaves a trailing carriage return which upsets mingw
18016 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18017 + *)
18018 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18019 + esac
18020 + case $ac_prog in
18021 + # Accept absolute paths.
18022 + [\\/]* | ?:[\\/]*)
18023 + re_direlt='/[^/][^/]*/\.\./'
18024 + # Canonicalize the pathname of ld
18025 + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18026 + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18027 + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18028 + done
18029 + test -z "$LD" && LD="$ac_prog"
18030 + ;;
18031 + "")
18032 + # If it fails, then pretend we aren't using GCC.
18033 + ac_prog=ld
18034 + ;;
18035 + *)
18036 + # If it is relative, then search for the first ld in PATH.
18037 + with_gnu_ld=unknown
18038 + ;;
18039 + esac
18040 +elif test "$with_gnu_ld" = yes; then
18041 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18042 +$as_echo_n "checking for GNU ld... " >&6; }
18043 +else
18044 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18045 +$as_echo_n "checking for non-GNU ld... " >&6; }
18046 +fi
18047 +if ${lt_cv_path_LD+:} false; then :
18048 + $as_echo_n "(cached) " >&6
18049 +else
18050 + if test -z "$LD"; then
18051 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18052 + for ac_dir in $PATH; do
18053 + IFS="$lt_save_ifs"
18054 + test -z "$ac_dir" && ac_dir=.
18055 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18056 + lt_cv_path_LD="$ac_dir/$ac_prog"
18057 + # Check to see if the program is GNU ld. I'd rather use --version,
18058 + # but apparently some variants of GNU ld only accept -v.
18059 + # Break only if it was the GNU/non-GNU ld that we prefer.
18060 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18061 + *GNU* | *'with BFD'*)
18062 + test "$with_gnu_ld" != no && break
18063 + ;;
18064 + *)
18065 + test "$with_gnu_ld" != yes && break
18066 + ;;
18067 + esac
18068 + fi
18069 + done
18070 + IFS="$lt_save_ifs"
18071 +else
18072 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
18073 +fi
18074 +fi
18075
18076 -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18077 -# Use eval to expand $SHELL
18078 -if eval "$MISSING --run true"; then
18079 - am_missing_run="$MISSING --run "
18080 +LD="$lt_cv_path_LD"
18081 +if test -n "$LD"; then
18082 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18083 +$as_echo "$LD" >&6; }
18084 else
18085 - am_missing_run=
18086 - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18087 -$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18088 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089 +$as_echo "no" >&6; }
18090 fi
18091 +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18092 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18093 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18094 +if ${lt_cv_prog_gnu_ld+:} false; then :
18095 + $as_echo_n "(cached) " >&6
18096 +else
18097 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
18098 +case `$LD -v 2>&1 </dev/null` in
18099 +*GNU* | *'with BFD'*)
18100 + lt_cv_prog_gnu_ld=yes
18101 + ;;
18102 +*)
18103 + lt_cv_prog_gnu_ld=no
18104 + ;;
18105 +esac
18106 +fi
18107 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18108 +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18109 +with_gnu_ld=$lt_cv_prog_gnu_ld
18110
18111 -{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18112 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18113 -if test -z "$MKDIR_P"; then
18114 - if test "${ac_cv_path_mkdir+set}" = set; then
18115 +
18116 +
18117 +
18118 +
18119 +
18120 +
18121 +
18122 +
18123 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
18124 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
18125 +if ${lt_cv_path_NM+:} false; then :
18126 $as_echo_n "(cached) " >&6
18127 else
18128 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18129 -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18130 -do
18131 - IFS=$as_save_IFS
18132 - test -z "$as_dir" && as_dir=.
18133 - for ac_prog in mkdir gmkdir; do
18134 - for ac_exec_ext in '' $ac_executable_extensions; do
18135 - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18136 - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18137 - 'mkdir (GNU coreutils) '* | \
18138 - 'mkdir (coreutils) '* | \
18139 - 'mkdir (fileutils) '4.1*)
18140 - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18141 - break 3;;
18142 - esac
18143 - done
18144 - done
18145 + if test -n "$NM"; then
18146 + # Let the user override the test.
18147 + lt_cv_path_NM="$NM"
18148 +else
18149 + lt_nm_to_check="${ac_tool_prefix}nm"
18150 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
18151 + lt_nm_to_check="$lt_nm_to_check nm"
18152 + fi
18153 + for lt_tmp_nm in $lt_nm_to_check; do
18154 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18155 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
18156 + IFS="$lt_save_ifs"
18157 + test -z "$ac_dir" && ac_dir=.
18158 + tmp_nm="$ac_dir/$lt_tmp_nm"
18159 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
18160 + # Check to see if the nm accepts a BSD-compat flag.
18161 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
18162 + # nm: unknown option "B" ignored
18163 + # Tru64's nm complains that /dev/null is an invalid object file
18164 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
18165 + */dev/null* | *'Invalid file or object type'*)
18166 + lt_cv_path_NM="$tmp_nm -B"
18167 + break
18168 + ;;
18169 + *)
18170 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
18171 + */dev/null*)
18172 + lt_cv_path_NM="$tmp_nm -p"
18173 + break
18174 + ;;
18175 + *)
18176 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
18177 + continue # so that we can try to find one that supports BSD flags
18178 + ;;
18179 + esac
18180 + ;;
18181 + esac
18182 + fi
18183 + done
18184 + IFS="$lt_save_ifs"
18185 + done
18186 + : ${lt_cv_path_NM=no}
18187 +fi
18188 +fi
18189 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
18190 +$as_echo "$lt_cv_path_NM" >&6; }
18191 +if test "$lt_cv_path_NM" != "no"; then
18192 + NM="$lt_cv_path_NM"
18193 +else
18194 + # Didn't find any BSD compatible name lister, look for dumpbin.
18195 + if test -n "$DUMPBIN"; then :
18196 + # Let the user override the test.
18197 + else
18198 + if test -n "$ac_tool_prefix"; then
18199 + for ac_prog in dumpbin "link -dump"
18200 + do
18201 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18202 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18203 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18204 +$as_echo_n "checking for $ac_word... " >&6; }
18205 +if ${ac_cv_prog_DUMPBIN+:} false; then :
18206 + $as_echo_n "(cached) " >&6
18207 +else
18208 + if test -n "$DUMPBIN"; then
18209 + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
18210 +else
18211 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18212 +for as_dir in $PATH
18213 +do
18214 + IFS=$as_save_IFS
18215 + test -z "$as_dir" && as_dir=.
18216 + for ac_exec_ext in '' $ac_executable_extensions; do
18217 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18218 + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
18219 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18220 + break 2
18221 + fi
18222 done
18223 + done
18224 IFS=$as_save_IFS
18225
18226 fi
18227 -
18228 - if test "${ac_cv_path_mkdir+set}" = set; then
18229 - MKDIR_P="$ac_cv_path_mkdir -p"
18230 - else
18231 - # As a last resort, use the slow shell script. Don't cache a
18232 - # value for MKDIR_P within a source directory, because that will
18233 - # break other packages using the cache if that directory is
18234 - # removed, or if the value is a relative name.
18235 - test -d ./--version && rmdir ./--version
18236 - MKDIR_P="$ac_install_sh -d"
18237 - fi
18238 fi
18239 -{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18240 -$as_echo "$MKDIR_P" >&6; }
18241 +DUMPBIN=$ac_cv_prog_DUMPBIN
18242 +if test -n "$DUMPBIN"; then
18243 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
18244 +$as_echo "$DUMPBIN" >&6; }
18245 +else
18246 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18247 +$as_echo "no" >&6; }
18248 +fi
18249
18250 -mkdir_p="$MKDIR_P"
18251 -case $mkdir_p in
18252 - [\\/$]* | ?:[\\/]*) ;;
18253 - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18254 -esac
18255
18256 -for ac_prog in gawk mawk nawk awk
18257 + test -n "$DUMPBIN" && break
18258 + done
18259 +fi
18260 +if test -z "$DUMPBIN"; then
18261 + ac_ct_DUMPBIN=$DUMPBIN
18262 + for ac_prog in dumpbin "link -dump"
18263 do
18264 # Extract the first word of "$ac_prog", so it can be a program name with args.
18265 set dummy $ac_prog; ac_word=$2
18266 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18267 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18268 $as_echo_n "checking for $ac_word... " >&6; }
18269 -if test "${ac_cv_prog_AWK+set}" = set; then
18270 +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
18271 $as_echo_n "(cached) " >&6
18272 else
18273 - if test -n "$AWK"; then
18274 - ac_cv_prog_AWK="$AWK" # Let the user override the test.
18275 + if test -n "$ac_ct_DUMPBIN"; then
18276 + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
18277 else
18278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18279 for as_dir in $PATH
18280 do
18281 IFS=$as_save_IFS
18282 test -z "$as_dir" && as_dir=.
18283 - for ac_exec_ext in '' $ac_executable_extensions; do
18284 + for ac_exec_ext in '' $ac_executable_extensions; do
18285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18286 - ac_cv_prog_AWK="$ac_prog"
18287 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18288 + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
18289 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18290 break 2
18291 fi
18292 done
18293 -done
18294 + done
18295 IFS=$as_save_IFS
18296
18297 fi
18298 fi
18299 -AWK=$ac_cv_prog_AWK
18300 -if test -n "$AWK"; then
18301 - { $as_echo "$as_me:$LINENO: result: $AWK" >&5
18302 -$as_echo "$AWK" >&6; }
18303 +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
18304 +if test -n "$ac_ct_DUMPBIN"; then
18305 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
18306 +$as_echo "$ac_ct_DUMPBIN" >&6; }
18307 else
18308 - { $as_echo "$as_me:$LINENO: result: no" >&5
18309 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 $as_echo "no" >&6; }
18311 fi
18312
18313
18314 - test -n "$AWK" && break
18315 + test -n "$ac_ct_DUMPBIN" && break
18316 done
18317
18318 -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18319 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18320 -set x ${MAKE-make}
18321 -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18322 -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18323 - $as_echo_n "(cached) " >&6
18324 -else
18325 - cat >conftest.make <<\_ACEOF
18326 -SHELL = /bin/sh
18327 -all:
18328 - @echo '@@@%%%=$(MAKE)=@@@%%%'
18329 -_ACEOF
18330 -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18331 -case `${MAKE-make} -f conftest.make 2>/dev/null` in
18332 - *@@@%%%=?*=@@@%%%*)
18333 - eval ac_cv_prog_make_${ac_make}_set=yes;;
18334 - *)
18335 - eval ac_cv_prog_make_${ac_make}_set=no;;
18336 + if test "x$ac_ct_DUMPBIN" = x; then
18337 + DUMPBIN=":"
18338 + else
18339 + case $cross_compiling:$ac_tool_warned in
18340 +yes:)
18341 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18342 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18343 +ac_tool_warned=yes ;;
18344 esac
18345 -rm -f conftest.make
18346 -fi
18347 -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18348 - { $as_echo "$as_me:$LINENO: result: yes" >&5
18349 -$as_echo "yes" >&6; }
18350 - SET_MAKE=
18351 -else
18352 - { $as_echo "$as_me:$LINENO: result: no" >&5
18353 -$as_echo "no" >&6; }
18354 - SET_MAKE="MAKE=${MAKE-make}"
18355 -fi
18356 -
18357 -rm -rf .tst 2>/dev/null
18358 -mkdir .tst 2>/dev/null
18359 -if test -d .tst; then
18360 - am__leading_dot=.
18361 -else
18362 - am__leading_dot=_
18363 + DUMPBIN=$ac_ct_DUMPBIN
18364 + fi
18365 fi
18366 -rmdir .tst 2>/dev/null
18367
18368 -if test "`cd $srcdir && pwd`" != "`pwd`"; then
18369 - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
18370 - # is not polluted with repeated "-I."
18371 - am__isrc=' -I$(srcdir)'
18372 - # test to see if srcdir already configured
18373 - if test -f $srcdir/config.status; then
18374 - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
18375 -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
18376 - { (exit 1); exit 1; }; }
18377 + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
18378 + *COFF*)
18379 + DUMPBIN="$DUMPBIN -symbols"
18380 + ;;
18381 + *)
18382 + DUMPBIN=:
18383 + ;;
18384 + esac
18385 fi
18386 -fi
18387
18388 -# test whether we have cygpath
18389 -if test -z "$CYGPATH_W"; then
18390 - if (cygpath --version) >/dev/null 2>/dev/null; then
18391 - CYGPATH_W='cygpath -w'
18392 - else
18393 - CYGPATH_W=echo
18394 + if test "$DUMPBIN" != ":"; then
18395 + NM="$DUMPBIN"
18396 fi
18397 fi
18398 +test -z "$NM" && NM=nm
18399
18400
18401 -# Define the identity of the package.
18402 - PACKAGE='libglade'
18403 - VERSION='2.6.4'
18404 -
18405 -
18406 -cat >>confdefs.h <<_ACEOF
18407 -#define PACKAGE "$PACKAGE"
18408 -_ACEOF
18409 -
18410
18411 -cat >>confdefs.h <<_ACEOF
18412 -#define VERSION "$VERSION"
18413 -_ACEOF
18414
18415 -# Some tools Automake needs.
18416
18417 -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
18418
18419 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
18420 +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
18421 +if ${lt_cv_nm_interface+:} false; then :
18422 + $as_echo_n "(cached) " >&6
18423 +else
18424 + lt_cv_nm_interface="BSD nm"
18425 + echo "int some_variable = 0;" > conftest.$ac_ext
18426 + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
18427 + (eval "$ac_compile" 2>conftest.err)
18428 + cat conftest.err >&5
18429 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
18430 + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
18431 + cat conftest.err >&5
18432 + (eval echo "\"\$as_me:$LINENO: output\"" >&5)
18433 + cat conftest.out >&5
18434 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
18435 + lt_cv_nm_interface="MS dumpbin"
18436 + fi
18437 + rm -f conftest*
18438 +fi
18439 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
18440 +$as_echo "$lt_cv_nm_interface" >&6; }
18441
18442 -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
18443 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18444 +$as_echo_n "checking whether ln -s works... " >&6; }
18445 +LN_S=$as_ln_s
18446 +if test "$LN_S" = "ln -s"; then
18447 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18448 +$as_echo "yes" >&6; }
18449 +else
18450 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18451 +$as_echo "no, using $LN_S" >&6; }
18452 +fi
18453
18454 +# find the maximum length of command line arguments
18455 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
18456 +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
18457 +if ${lt_cv_sys_max_cmd_len+:} false; then :
18458 + $as_echo_n "(cached) " >&6
18459 +else
18460 + i=0
18461 + teststring="ABCD"
18462
18463 -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
18464 + case $build_os in
18465 + msdosdjgpp*)
18466 + # On DJGPP, this test can blow up pretty badly due to problems in libc
18467 + # (any single argument exceeding 2000 bytes causes a buffer overrun
18468 + # during glob expansion). Even if it were fixed, the result of this
18469 + # check would be larger than it should be.
18470 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
18471 + ;;
18472
18473 + gnu*)
18474 + # Under GNU Hurd, this test is not required because there is
18475 + # no limit to the length of command line arguments.
18476 + # Libtool will interpret -1 as no limit whatsoever
18477 + lt_cv_sys_max_cmd_len=-1;
18478 + ;;
18479
18480 -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
18481 + cygwin* | mingw* | cegcc*)
18482 + # On Win9x/ME, this test blows up -- it succeeds, but takes
18483 + # about 5 minutes as the teststring grows exponentially.
18484 + # Worse, since 9x/ME are not pre-emptively multitasking,
18485 + # you end up with a "frozen" computer, even though with patience
18486 + # the test eventually succeeds (with a max line length of 256k).
18487 + # Instead, let's just punt: use the minimum linelength reported by
18488 + # all of the supported platforms: 8192 (on NT/2K/XP).
18489 + lt_cv_sys_max_cmd_len=8192;
18490 + ;;
18491
18492 + mint*)
18493 + # On MiNT this can take a long time and run out of memory.
18494 + lt_cv_sys_max_cmd_len=8192;
18495 + ;;
18496
18497 -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
18498 + amigaos*)
18499 + # On AmigaOS with pdksh, this test takes hours, literally.
18500 + # So we just punt and use a minimum line length of 8192.
18501 + lt_cv_sys_max_cmd_len=8192;
18502 + ;;
18503
18504 -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
18505 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
18506 + # This has been around since 386BSD, at least. Likely further.
18507 + if test -x /sbin/sysctl; then
18508 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
18509 + elif test -x /usr/sbin/sysctl; then
18510 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
18511 + else
18512 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
18513 + fi
18514 + # And add a safety zone
18515 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
18516 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
18517 + ;;
18518
18519 -# Installed binaries are usually stripped using `strip' when the user
18520 -# run `make install-strip'. However `strip' might not be the right
18521 -# tool to use in cross-compilation environments, therefore Automake
18522 -# will honor the `STRIP' environment variable to overrule this program.
18523 -if test "$cross_compiling" != no; then
18524 - if test -n "$ac_tool_prefix"; then
18525 - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18526 -set dummy ${ac_tool_prefix}strip; ac_word=$2
18527 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18528 -$as_echo_n "checking for $ac_word... " >&6; }
18529 -if test "${ac_cv_prog_STRIP+set}" = set; then
18530 - $as_echo_n "(cached) " >&6
18531 -else
18532 - if test -n "$STRIP"; then
18533 - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18534 -else
18535 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18536 -for as_dir in $PATH
18537 -do
18538 - IFS=$as_save_IFS
18539 - test -z "$as_dir" && as_dir=.
18540 - for ac_exec_ext in '' $ac_executable_extensions; do
18541 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18542 - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
18543 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18544 - break 2
18545 - fi
18546 -done
18547 -done
18548 -IFS=$as_save_IFS
18549 + interix*)
18550 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
18551 + lt_cv_sys_max_cmd_len=196608
18552 + ;;
18553
18554 -fi
18555 -fi
18556 -STRIP=$ac_cv_prog_STRIP
18557 -if test -n "$STRIP"; then
18558 - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
18559 -$as_echo "$STRIP" >&6; }
18560 -else
18561 - { $as_echo "$as_me:$LINENO: result: no" >&5
18562 -$as_echo "no" >&6; }
18563 -fi
18564 + os2*)
18565 + # The test takes a long time on OS/2.
18566 + lt_cv_sys_max_cmd_len=8192
18567 + ;;
18568
18569 + osf*)
18570 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
18571 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
18572 + # nice to cause kernel panics so lets avoid the loop below.
18573 + # First set a reasonable default.
18574 + lt_cv_sys_max_cmd_len=16384
18575 + #
18576 + if test -x /sbin/sysconfig; then
18577 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
18578 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
18579 + esac
18580 + fi
18581 + ;;
18582 + sco3.2v5*)
18583 + lt_cv_sys_max_cmd_len=102400
18584 + ;;
18585 + sysv5* | sco5v6* | sysv4.2uw2*)
18586 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
18587 + if test -n "$kargmax"; then
18588 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
18589 + else
18590 + lt_cv_sys_max_cmd_len=32768
18591 + fi
18592 + ;;
18593 + *)
18594 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
18595 + if test -n "$lt_cv_sys_max_cmd_len"; then
18596 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
18597 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
18598 + else
18599 + # Make teststring a little bigger before we do anything with it.
18600 + # a 1K string should be a reasonable start.
18601 + for i in 1 2 3 4 5 6 7 8 ; do
18602 + teststring=$teststring$teststring
18603 + done
18604 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
18605 + # If test is not a shell built-in, we'll probably end up computing a
18606 + # maximum length that is only half of the actual maximum length, but
18607 + # we can't tell.
18608 + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
18609 + = "X$teststring$teststring"; } >/dev/null 2>&1 &&
18610 + test $i != 17 # 1/2 MB should be enough
18611 + do
18612 + i=`expr $i + 1`
18613 + teststring=$teststring$teststring
18614 + done
18615 + # Only check the string length outside the loop.
18616 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
18617 + teststring=
18618 + # Add a significant safety factor because C++ compilers can tack on
18619 + # massive amounts of additional arguments before passing them to the
18620 + # linker. It appears as though 1/2 is a usable value.
18621 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
18622 + fi
18623 + ;;
18624 + esac
18625
18626 fi
18627 -if test -z "$ac_cv_prog_STRIP"; then
18628 - ac_ct_STRIP=$STRIP
18629 - # Extract the first word of "strip", so it can be a program name with args.
18630 -set dummy strip; ac_word=$2
18631 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18632 -$as_echo_n "checking for $ac_word... " >&6; }
18633 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
18634 - $as_echo_n "(cached) " >&6
18635 -else
18636 - if test -n "$ac_ct_STRIP"; then
18637 - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
18638 -else
18639 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18640 -for as_dir in $PATH
18641 -do
18642 - IFS=$as_save_IFS
18643 - test -z "$as_dir" && as_dir=.
18644 - for ac_exec_ext in '' $ac_executable_extensions; do
18645 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18646 - ac_cv_prog_ac_ct_STRIP="strip"
18647 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18648 - break 2
18649 - fi
18650 -done
18651 -done
18652 -IFS=$as_save_IFS
18653
18654 -fi
18655 -fi
18656 -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
18657 -if test -n "$ac_ct_STRIP"; then
18658 - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
18659 -$as_echo "$ac_ct_STRIP" >&6; }
18660 +if test -n $lt_cv_sys_max_cmd_len ; then
18661 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
18662 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
18663 else
18664 - { $as_echo "$as_me:$LINENO: result: no" >&5
18665 -$as_echo "no" >&6; }
18666 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
18667 +$as_echo "none" >&6; }
18668 fi
18669 +max_cmd_len=$lt_cv_sys_max_cmd_len
18670
18671 - if test "x$ac_ct_STRIP" = x; then
18672 - STRIP=":"
18673 - else
18674 - case $cross_compiling:$ac_tool_warned in
18675 -yes:)
18676 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18677 -whose name does not start with the host triplet. If you think this
18678 -configuration is useful to you, please write to autoconf@gnu.org." >&5
18679 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18680 -whose name does not start with the host triplet. If you think this
18681 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18682 -ac_tool_warned=yes ;;
18683 -esac
18684 - STRIP=$ac_ct_STRIP
18685 - fi
18686 -else
18687 - STRIP="$ac_cv_prog_STRIP"
18688 -fi
18689
18690 -fi
18691 -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
18692
18693 -# We need awk for the "check" target. The system "awk" is bad on
18694 -# some platforms.
18695 -# Always define AMTAR for backward compatibility.
18696
18697 -AMTAR=${AMTAR-"${am_missing_run}tar"}
18698
18699 -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
18700
18701 +: ${CP="cp -f"}
18702 +: ${MV="mv -f"}
18703 +: ${RM="rm -f"}
18704
18705 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
18706 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
18707 +# Try some XSI features
18708 +xsi_shell=no
18709 +( _lt_dummy="a/b/c"
18710 + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
18711 + = c,a/b,b/c, \
18712 + && eval 'test $(( 1 + 1 )) -eq 2 \
18713 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
18714 + && xsi_shell=yes
18715 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
18716 +$as_echo "$xsi_shell" >&6; }
18717
18718
18719 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
18720 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
18721 +lt_shell_append=no
18722 +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
18723 + >/dev/null 2>&1 \
18724 + && lt_shell_append=yes
18725 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
18726 +$as_echo "$lt_shell_append" >&6; }
18727
18728
18729 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18730 + lt_unset=unset
18731 +else
18732 + lt_unset=false
18733 +fi
18734
18735
18736
18737 - ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
18738 - if test -n "$ac_macro_dir"; then
18739 - ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
18740 - fi
18741
18742
18743 +# test EBCDIC or ASCII
18744 +case `echo X|tr X '\101'` in
18745 + A) # ASCII based system
18746 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
18747 + lt_SP2NL='tr \040 \012'
18748 + lt_NL2SP='tr \015\012 \040\040'
18749 + ;;
18750 + *) # EBCDIC based system
18751 + lt_SP2NL='tr \100 \n'
18752 + lt_NL2SP='tr \r\n \100\100'
18753 + ;;
18754 +esac
18755
18756
18757 -if test "$enable_debug" != "no"; then
18758
18759 -cat >>confdefs.h <<\_ACEOF
18760 -#define DEBUG 1
18761 -_ACEOF
18762
18763 -fi
18764
18765 -ac_ext=c
18766 -ac_cpp='$CPP $CPPFLAGS'
18767 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18768 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18769 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
18770 -if test -n "$ac_tool_prefix"; then
18771 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18772 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
18773 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18774 -$as_echo_n "checking for $ac_word... " >&6; }
18775 -if test "${ac_cv_prog_CC+set}" = set; then
18776 - $as_echo_n "(cached) " >&6
18777 -else
18778 - if test -n "$CC"; then
18779 - ac_cv_prog_CC="$CC" # Let the user override the test.
18780 -else
18781 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18782 -for as_dir in $PATH
18783 -do
18784 - IFS=$as_save_IFS
18785 - test -z "$as_dir" && as_dir=.
18786 - for ac_exec_ext in '' $ac_executable_extensions; do
18787 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18788 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
18789 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18790 - break 2
18791 - fi
18792 -done
18793 -done
18794 -IFS=$as_save_IFS
18795
18796 -fi
18797 -fi
18798 -CC=$ac_cv_prog_CC
18799 -if test -n "$CC"; then
18800 - { $as_echo "$as_me:$LINENO: result: $CC" >&5
18801 -$as_echo "$CC" >&6; }
18802 -else
18803 - { $as_echo "$as_me:$LINENO: result: no" >&5
18804 -$as_echo "no" >&6; }
18805 -fi
18806
18807
18808 -fi
18809 -if test -z "$ac_cv_prog_CC"; then
18810 - ac_ct_CC=$CC
18811 - # Extract the first word of "gcc", so it can be a program name with args.
18812 -set dummy gcc; ac_word=$2
18813 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18814 -$as_echo_n "checking for $ac_word... " >&6; }
18815 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18816 +
18817 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
18818 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
18819 +if ${lt_cv_to_host_file_cmd+:} false; then :
18820 $as_echo_n "(cached) " >&6
18821 else
18822 - if test -n "$ac_ct_CC"; then
18823 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18824 -else
18825 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18826 -for as_dir in $PATH
18827 -do
18828 - IFS=$as_save_IFS
18829 - test -z "$as_dir" && as_dir=.
18830 - for ac_exec_ext in '' $ac_executable_extensions; do
18831 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18832 - ac_cv_prog_ac_ct_CC="gcc"
18833 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18834 - break 2
18835 - fi
18836 -done
18837 -done
18838 -IFS=$as_save_IFS
18839 + case $host in
18840 + *-*-mingw* )
18841 + case $build in
18842 + *-*-mingw* ) # actually msys
18843 + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
18844 + ;;
18845 + *-*-cygwin* )
18846 + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
18847 + ;;
18848 + * ) # otherwise, assume *nix
18849 + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
18850 + ;;
18851 + esac
18852 + ;;
18853 + *-*-cygwin* )
18854 + case $build in
18855 + *-*-mingw* ) # actually msys
18856 + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
18857 + ;;
18858 + *-*-cygwin* )
18859 + lt_cv_to_host_file_cmd=func_convert_file_noop
18860 + ;;
18861 + * ) # otherwise, assume *nix
18862 + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
18863 + ;;
18864 + esac
18865 + ;;
18866 + * ) # unhandled hosts (and "normal" native builds)
18867 + lt_cv_to_host_file_cmd=func_convert_file_noop
18868 + ;;
18869 +esac
18870
18871 fi
18872 -fi
18873 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
18874 -if test -n "$ac_ct_CC"; then
18875 - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18876 -$as_echo "$ac_ct_CC" >&6; }
18877 -else
18878 - { $as_echo "$as_me:$LINENO: result: no" >&5
18879 -$as_echo "no" >&6; }
18880 -fi
18881
18882 - if test "x$ac_ct_CC" = x; then
18883 - CC=""
18884 - else
18885 - case $cross_compiling:$ac_tool_warned in
18886 -yes:)
18887 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18888 -whose name does not start with the host triplet. If you think this
18889 -configuration is useful to you, please write to autoconf@gnu.org." >&5
18890 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18891 -whose name does not start with the host triplet. If you think this
18892 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18893 -ac_tool_warned=yes ;;
18894 -esac
18895 - CC=$ac_ct_CC
18896 - fi
18897 -else
18898 - CC="$ac_cv_prog_CC"
18899 -fi
18900 +to_host_file_cmd=$lt_cv_to_host_file_cmd
18901 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
18902 +$as_echo "$lt_cv_to_host_file_cmd" >&6; }
18903
18904 -if test -z "$CC"; then
18905 - if test -n "$ac_tool_prefix"; then
18906 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18907 -set dummy ${ac_tool_prefix}cc; ac_word=$2
18908 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18909 -$as_echo_n "checking for $ac_word... " >&6; }
18910 -if test "${ac_cv_prog_CC+set}" = set; then
18911 - $as_echo_n "(cached) " >&6
18912 -else
18913 - if test -n "$CC"; then
18914 - ac_cv_prog_CC="$CC" # Let the user override the test.
18915 -else
18916 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18917 -for as_dir in $PATH
18918 -do
18919 - IFS=$as_save_IFS
18920 - test -z "$as_dir" && as_dir=.
18921 - for ac_exec_ext in '' $ac_executable_extensions; do
18922 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18923 - ac_cv_prog_CC="${ac_tool_prefix}cc"
18924 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18925 - break 2
18926 - fi
18927 -done
18928 -done
18929 -IFS=$as_save_IFS
18930
18931 -fi
18932 -fi
18933 -CC=$ac_cv_prog_CC
18934 -if test -n "$CC"; then
18935 - { $as_echo "$as_me:$LINENO: result: $CC" >&5
18936 -$as_echo "$CC" >&6; }
18937 -else
18938 - { $as_echo "$as_me:$LINENO: result: no" >&5
18939 -$as_echo "no" >&6; }
18940 -fi
18941
18942
18943 - fi
18944 -fi
18945 -if test -z "$CC"; then
18946 - # Extract the first word of "cc", so it can be a program name with args.
18947 -set dummy cc; ac_word=$2
18948 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18949 -$as_echo_n "checking for $ac_word... " >&6; }
18950 -if test "${ac_cv_prog_CC+set}" = set; then
18951 +
18952 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
18953 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
18954 +if ${lt_cv_to_tool_file_cmd+:} false; then :
18955 $as_echo_n "(cached) " >&6
18956 else
18957 - if test -n "$CC"; then
18958 - ac_cv_prog_CC="$CC" # Let the user override the test.
18959 -else
18960 - ac_prog_rejected=no
18961 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18962 -for as_dir in $PATH
18963 -do
18964 - IFS=$as_save_IFS
18965 - test -z "$as_dir" && as_dir=.
18966 - for ac_exec_ext in '' $ac_executable_extensions; do
18967 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18968 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18969 - ac_prog_rejected=yes
18970 - continue
18971 - fi
18972 - ac_cv_prog_CC="cc"
18973 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18974 - break 2
18975 - fi
18976 -done
18977 -done
18978 -IFS=$as_save_IFS
18979 + #assume ordinary cross tools, or native build.
18980 +lt_cv_to_tool_file_cmd=func_convert_file_noop
18981 +case $host in
18982 + *-*-mingw* )
18983 + case $build in
18984 + *-*-mingw* ) # actually msys
18985 + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
18986 + ;;
18987 + esac
18988 + ;;
18989 +esac
18990
18991 -if test $ac_prog_rejected = yes; then
18992 - # We found a bogon in the path, so make sure we never use it.
18993 - set dummy $ac_cv_prog_CC
18994 - shift
18995 - if test $# != 0; then
18996 - # We chose a different compiler from the bogus one.
18997 - # However, it has the same basename, so the bogon will be chosen
18998 - # first if we set CC to just the basename; use the full file name.
18999 - shift
19000 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19001 - fi
19002 -fi
19003 -fi
19004 fi
19005 -CC=$ac_cv_prog_CC
19006 -if test -n "$CC"; then
19007 - { $as_echo "$as_me:$LINENO: result: $CC" >&5
19008 -$as_echo "$CC" >&6; }
19009 +
19010 +to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19011 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
19012 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
19013 +
19014 +
19015 +
19016 +
19017 +
19018 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
19019 +$as_echo_n "checking for $LD option to reload object files... " >&6; }
19020 +if ${lt_cv_ld_reload_flag+:} false; then :
19021 + $as_echo_n "(cached) " >&6
19022 else
19023 - { $as_echo "$as_me:$LINENO: result: no" >&5
19024 -$as_echo "no" >&6; }
19025 + lt_cv_ld_reload_flag='-r'
19026 fi
19027 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
19028 +$as_echo "$lt_cv_ld_reload_flag" >&6; }
19029 +reload_flag=$lt_cv_ld_reload_flag
19030 +case $reload_flag in
19031 +"" | " "*) ;;
19032 +*) reload_flag=" $reload_flag" ;;
19033 +esac
19034 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
19035 +case $host_os in
19036 + cygwin* | mingw* | pw32* | cegcc*)
19037 + if test "$GCC" != yes; then
19038 + reload_cmds=false
19039 + fi
19040 + ;;
19041 + darwin*)
19042 + if test "$GCC" = yes; then
19043 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
19044 + else
19045 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
19046 + fi
19047 + ;;
19048 +esac
19049
19050
19051 -fi
19052 -if test -z "$CC"; then
19053 - if test -n "$ac_tool_prefix"; then
19054 - for ac_prog in cl.exe
19055 - do
19056 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19057 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19058 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19059 +
19060 +
19061 +
19062 +
19063 +
19064 +
19065 +
19066 +if test -n "$ac_tool_prefix"; then
19067 + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
19068 +set dummy ${ac_tool_prefix}objdump; ac_word=$2
19069 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19070 $as_echo_n "checking for $ac_word... " >&6; }
19071 -if test "${ac_cv_prog_CC+set}" = set; then
19072 +if ${ac_cv_prog_OBJDUMP+:} false; then :
19073 $as_echo_n "(cached) " >&6
19074 else
19075 - if test -n "$CC"; then
19076 - ac_cv_prog_CC="$CC" # Let the user override the test.
19077 + if test -n "$OBJDUMP"; then
19078 + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
19079 else
19080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19081 for as_dir in $PATH
19082 do
19083 IFS=$as_save_IFS
19084 test -z "$as_dir" && as_dir=.
19085 - for ac_exec_ext in '' $ac_executable_extensions; do
19086 + for ac_exec_ext in '' $ac_executable_extensions; do
19087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19088 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19089 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19090 + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
19091 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19092 break 2
19093 fi
19094 done
19095 -done
19096 + done
19097 IFS=$as_save_IFS
19098
19099 fi
19100 fi
19101 -CC=$ac_cv_prog_CC
19102 -if test -n "$CC"; then
19103 - { $as_echo "$as_me:$LINENO: result: $CC" >&5
19104 -$as_echo "$CC" >&6; }
19105 +OBJDUMP=$ac_cv_prog_OBJDUMP
19106 +if test -n "$OBJDUMP"; then
19107 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
19108 +$as_echo "$OBJDUMP" >&6; }
19109 else
19110 - { $as_echo "$as_me:$LINENO: result: no" >&5
19111 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19112 $as_echo "no" >&6; }
19113 fi
19114
19115
19116 - test -n "$CC" && break
19117 - done
19118 fi
19119 -if test -z "$CC"; then
19120 - ac_ct_CC=$CC
19121 - for ac_prog in cl.exe
19122 -do
19123 - # Extract the first word of "$ac_prog", so it can be a program name with args.
19124 -set dummy $ac_prog; ac_word=$2
19125 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19126 +if test -z "$ac_cv_prog_OBJDUMP"; then
19127 + ac_ct_OBJDUMP=$OBJDUMP
19128 + # Extract the first word of "objdump", so it can be a program name with args.
19129 +set dummy objdump; ac_word=$2
19130 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19131 $as_echo_n "checking for $ac_word... " >&6; }
19132 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19133 +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
19134 $as_echo_n "(cached) " >&6
19135 else
19136 - if test -n "$ac_ct_CC"; then
19137 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19138 + if test -n "$ac_ct_OBJDUMP"; then
19139 + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
19140 else
19141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19142 for as_dir in $PATH
19143 do
19144 IFS=$as_save_IFS
19145 test -z "$as_dir" && as_dir=.
19146 - for ac_exec_ext in '' $ac_executable_extensions; do
19147 + for ac_exec_ext in '' $ac_executable_extensions; do
19148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19149 - ac_cv_prog_ac_ct_CC="$ac_prog"
19150 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19151 + ac_cv_prog_ac_ct_OBJDUMP="objdump"
19152 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19153 break 2
19154 fi
19155 done
19156 -done
19157 + done
19158 IFS=$as_save_IFS
19159
19160 fi
19161 fi
19162 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
19163 -if test -n "$ac_ct_CC"; then
19164 - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19165 -$as_echo "$ac_ct_CC" >&6; }
19166 +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
19167 +if test -n "$ac_ct_OBJDUMP"; then
19168 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
19169 +$as_echo "$ac_ct_OBJDUMP" >&6; }
19170 else
19171 - { $as_echo "$as_me:$LINENO: result: no" >&5
19172 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19173 $as_echo "no" >&6; }
19174 fi
19175
19176 -
19177 - test -n "$ac_ct_CC" && break
19178 -done
19179 -
19180 - if test "x$ac_ct_CC" = x; then
19181 - CC=""
19182 + if test "x$ac_ct_OBJDUMP" = x; then
19183 + OBJDUMP="false"
19184 else
19185 case $cross_compiling:$ac_tool_warned in
19186 yes:)
19187 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19188 -whose name does not start with the host triplet. If you think this
19189 -configuration is useful to you, please write to autoconf@gnu.org." >&5
19190 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19191 -whose name does not start with the host triplet. If you think this
19192 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19193 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19194 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19195 ac_tool_warned=yes ;;
19196 esac
19197 - CC=$ac_ct_CC
19198 + OBJDUMP=$ac_ct_OBJDUMP
19199 fi
19200 +else
19201 + OBJDUMP="$ac_cv_prog_OBJDUMP"
19202 fi
19203
19204 -fi
19205 -
19206 -
19207 -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19208 -See \`config.log' for more details." >&5
19209 -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
19210 -See \`config.log' for more details." >&2;}
19211 - { (exit 1); exit 1; }; }
19212 -
19213 -# Provide some information about the compiler.
19214 -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
19215 -set X $ac_compile
19216 -ac_compiler=$2
19217 -{ (ac_try="$ac_compiler --version >&5"
19218 -case "(($ac_try" in
19219 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 - *) ac_try_echo=$ac_try;;
19221 -esac
19222 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19223 -$as_echo "$ac_try_echo") >&5
19224 - (eval "$ac_compiler --version >&5") 2>&5
19225 - ac_status=$?
19226 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 - (exit $ac_status); }
19228 -{ (ac_try="$ac_compiler -v >&5"
19229 -case "(($ac_try" in
19230 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 - *) ac_try_echo=$ac_try;;
19232 -esac
19233 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19234 -$as_echo "$ac_try_echo") >&5
19235 - (eval "$ac_compiler -v >&5") 2>&5
19236 - ac_status=$?
19237 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 - (exit $ac_status); }
19239 -{ (ac_try="$ac_compiler -V >&5"
19240 -case "(($ac_try" in
19241 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 - *) ac_try_echo=$ac_try;;
19243 -esac
19244 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19245 -$as_echo "$ac_try_echo") >&5
19246 - (eval "$ac_compiler -V >&5") 2>&5
19247 - ac_status=$?
19248 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 - (exit $ac_status); }
19250 -
19251 -cat >conftest.$ac_ext <<_ACEOF
19252 -/* confdefs.h. */
19253 -_ACEOF
19254 -cat confdefs.h >>conftest.$ac_ext
19255 -cat >>conftest.$ac_ext <<_ACEOF
19256 -/* end confdefs.h. */
19257 +test -z "$OBJDUMP" && OBJDUMP=objdump
19258
19259 -int
19260 -main ()
19261 -{
19262
19263 - ;
19264 - return 0;
19265 -}
19266 -_ACEOF
19267 -ac_clean_files_save=$ac_clean_files
19268 -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
19269 -# Try to create an executable without -o first, disregard a.out.
19270 -# It will help us diagnose broken compilers, and finding out an intuition
19271 -# of exeext.
19272 -{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
19273 -$as_echo_n "checking for C compiler default output file name... " >&6; }
19274 -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
19275
19276 -# The possible output files:
19277 -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
19278
19279 -ac_rmfiles=
19280 -for ac_file in $ac_files
19281 -do
19282 - case $ac_file in
19283 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
19284 - * ) ac_rmfiles="$ac_rmfiles $ac_file";;
19285 - esac
19286 -done
19287 -rm -f $ac_rmfiles
19288
19289 -if { (ac_try="$ac_link_default"
19290 -case "(($ac_try" in
19291 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 - *) ac_try_echo=$ac_try;;
19293 -esac
19294 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19295 -$as_echo "$ac_try_echo") >&5
19296 - (eval "$ac_link_default") 2>&5
19297 - ac_status=$?
19298 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 - (exit $ac_status); }; then
19300 - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
19301 -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
19302 -# in a Makefile. We should not override ac_cv_exeext if it was cached,
19303 -# so that the user can short-circuit this test for compilers unknown to
19304 -# Autoconf.
19305 -for ac_file in $ac_files ''
19306 -do
19307 - test -f "$ac_file" || continue
19308 - case $ac_file in
19309 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
19310 - ;;
19311 - [ab].out )
19312 - # We found the default executable, but exeext='' is most
19313 - # certainly right.
19314 - break;;
19315 - *.* )
19316 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
19317 - then :; else
19318 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
19319 - fi
19320 - # We set ac_cv_exeext here because the later test for it is not
19321 - # safe: cross compilers may not add the suffix if given an `-o'
19322 - # argument, so we may need to know it at that point already.
19323 - # Even if this section looks crufty: it has the advantage of
19324 - # actually working.
19325 - break;;
19326 - * )
19327 - break;;
19328 - esac
19329 -done
19330 -test "$ac_cv_exeext" = no && ac_cv_exeext=
19331
19332 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
19333 +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
19334 +if ${lt_cv_deplibs_check_method+:} false; then :
19335 + $as_echo_n "(cached) " >&6
19336 else
19337 - ac_file=''
19338 -fi
19339 -
19340 -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
19341 -$as_echo "$ac_file" >&6; }
19342 -if test -z "$ac_file"; then
19343 - $as_echo "$as_me: failed program was:" >&5
19344 -sed 's/^/| /' conftest.$ac_ext >&5
19345 -
19346 -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
19347 -See \`config.log' for more details." >&5
19348 -$as_echo "$as_me: error: C compiler cannot create executables
19349 -See \`config.log' for more details." >&2;}
19350 - { (exit 77); exit 77; }; }
19351 -fi
19352 + lt_cv_file_magic_cmd='$MAGIC_CMD'
19353 +lt_cv_file_magic_test_file=
19354 +lt_cv_deplibs_check_method='unknown'
19355 +# Need to set the preceding variable on all platforms that support
19356 +# interlibrary dependencies.
19357 +# 'none' -- dependencies not supported.
19358 +# `unknown' -- same as none, but documents that we really don't know.
19359 +# 'pass_all' -- all dependencies passed with no checks.
19360 +# 'test_compile' -- check by making test program.
19361 +# 'file_magic [[regex]]' -- check by looking for files in library path
19362 +# which responds to the $file_magic_cmd with a given extended regex.
19363 +# If you have `file' or equivalent on your system and you're not sure
19364 +# whether `pass_all' will *always* work, you probably want this one.
19365
19366 -ac_exeext=$ac_cv_exeext
19367 +case $host_os in
19368 +aix[4-9]*)
19369 + lt_cv_deplibs_check_method=pass_all
19370 + ;;
19371
19372 -# Check that the compiler produces executables we can run. If not, either
19373 -# the compiler is broken, or we cross compile.
19374 -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
19375 -$as_echo_n "checking whether the C compiler works... " >&6; }
19376 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
19377 -# If not cross compiling, check that we can run a simple program.
19378 -if test "$cross_compiling" != yes; then
19379 - if { ac_try='./$ac_file'
19380 - { (case "(($ac_try" in
19381 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382 - *) ac_try_echo=$ac_try;;
19383 -esac
19384 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19385 -$as_echo "$ac_try_echo") >&5
19386 - (eval "$ac_try") 2>&5
19387 - ac_status=$?
19388 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 - (exit $ac_status); }; }; then
19390 - cross_compiling=no
19391 - else
19392 - if test "$cross_compiling" = maybe; then
19393 - cross_compiling=yes
19394 - else
19395 - { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
19396 -If you meant to cross compile, use \`--host'.
19397 -See \`config.log' for more details." >&5
19398 -$as_echo "$as_me: error: cannot run C compiled programs.
19399 -If you meant to cross compile, use \`--host'.
19400 -See \`config.log' for more details." >&2;}
19401 - { (exit 1); exit 1; }; }
19402 - fi
19403 - fi
19404 -fi
19405 -{ $as_echo "$as_me:$LINENO: result: yes" >&5
19406 -$as_echo "yes" >&6; }
19407 +beos*)
19408 + lt_cv_deplibs_check_method=pass_all
19409 + ;;
19410
19411 -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
19412 -ac_clean_files=$ac_clean_files_save
19413 -# Check that the compiler produces executables we can run. If not, either
19414 -# the compiler is broken, or we cross compile.
19415 -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
19416 -$as_echo_n "checking whether we are cross compiling... " >&6; }
19417 -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
19418 -$as_echo "$cross_compiling" >&6; }
19419 +bsdi[45]*)
19420 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
19421 + lt_cv_file_magic_cmd='/usr/bin/file -L'
19422 + lt_cv_file_magic_test_file=/shlib/libc.so
19423 + ;;
19424
19425 -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
19426 -$as_echo_n "checking for suffix of executables... " >&6; }
19427 -if { (ac_try="$ac_link"
19428 -case "(($ac_try" in
19429 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 - *) ac_try_echo=$ac_try;;
19431 -esac
19432 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19433 -$as_echo "$ac_try_echo") >&5
19434 - (eval "$ac_link") 2>&5
19435 - ac_status=$?
19436 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 - (exit $ac_status); }; then
19438 - # If both `conftest.exe' and `conftest' are `present' (well, observable)
19439 -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
19440 -# work properly (i.e., refer to `conftest.exe'), while it won't with
19441 -# `rm'.
19442 -for ac_file in conftest.exe conftest conftest.*; do
19443 - test -f "$ac_file" || continue
19444 - case $ac_file in
19445 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
19446 - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
19447 - break;;
19448 - * ) break;;
19449 - esac
19450 -done
19451 -else
19452 - { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
19453 -See \`config.log' for more details." >&5
19454 -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
19455 -See \`config.log' for more details." >&2;}
19456 - { (exit 1); exit 1; }; }
19457 -fi
19458 +cygwin*)
19459 + # func_win32_libid is a shell function defined in ltmain.sh
19460 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
19461 + lt_cv_file_magic_cmd='func_win32_libid'
19462 + ;;
19463
19464 -rm -f conftest$ac_cv_exeext
19465 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
19466 -$as_echo "$ac_cv_exeext" >&6; }
19467 +mingw* | pw32*)
19468 + # Base MSYS/MinGW do not provide the 'file' command needed by
19469 + # func_win32_libid shell function, so use a weaker test based on 'objdump',
19470 + # unless we find 'file', for example because we are cross-compiling.
19471 + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
19472 + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
19473 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
19474 + lt_cv_file_magic_cmd='func_win32_libid'
19475 + else
19476 + # Keep this pattern in sync with the one in func_win32_libid.
19477 + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
19478 + lt_cv_file_magic_cmd='$OBJDUMP -f'
19479 + fi
19480 + ;;
19481
19482 -rm -f conftest.$ac_ext
19483 -EXEEXT=$ac_cv_exeext
19484 -ac_exeext=$EXEEXT
19485 -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
19486 -$as_echo_n "checking for suffix of object files... " >&6; }
19487 -if test "${ac_cv_objext+set}" = set; then
19488 - $as_echo_n "(cached) " >&6
19489 -else
19490 - cat >conftest.$ac_ext <<_ACEOF
19491 -/* confdefs.h. */
19492 -_ACEOF
19493 -cat confdefs.h >>conftest.$ac_ext
19494 -cat >>conftest.$ac_ext <<_ACEOF
19495 -/* end confdefs.h. */
19496 +cegcc*)
19497 + # use the weaker test based on 'objdump'. See mingw*.
19498 + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
19499 + lt_cv_file_magic_cmd='$OBJDUMP -f'
19500 + ;;
19501
19502 -int
19503 -main ()
19504 -{
19505 +darwin* | rhapsody*)
19506 + lt_cv_deplibs_check_method=pass_all
19507 + ;;
19508
19509 - ;
19510 - return 0;
19511 -}
19512 -_ACEOF
19513 -rm -f conftest.o conftest.obj
19514 -if { (ac_try="$ac_compile"
19515 -case "(($ac_try" in
19516 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 - *) ac_try_echo=$ac_try;;
19518 -esac
19519 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19520 -$as_echo "$ac_try_echo") >&5
19521 - (eval "$ac_compile") 2>&5
19522 - ac_status=$?
19523 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 - (exit $ac_status); }; then
19525 - for ac_file in conftest.o conftest.obj conftest.*; do
19526 - test -f "$ac_file" || continue;
19527 - case $ac_file in
19528 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
19529 - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
19530 - break;;
19531 - esac
19532 -done
19533 -else
19534 - $as_echo "$as_me: failed program was:" >&5
19535 -sed 's/^/| /' conftest.$ac_ext >&5
19536 +freebsd* | dragonfly*)
19537 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
19538 + case $host_cpu in
19539 + i*86 )
19540 + # Not sure whether the presence of OpenBSD here was a mistake.
19541 + # Let's accept both of them until this is cleared up.
19542 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
19543 + lt_cv_file_magic_cmd=/usr/bin/file
19544 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
19545 + ;;
19546 + esac
19547 + else
19548 + lt_cv_deplibs_check_method=pass_all
19549 + fi
19550 + ;;
19551
19552 -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
19553 -See \`config.log' for more details." >&5
19554 -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
19555 -See \`config.log' for more details." >&2;}
19556 - { (exit 1); exit 1; }; }
19557 -fi
19558 +gnu*)
19559 + lt_cv_deplibs_check_method=pass_all
19560 + ;;
19561
19562 -rm -f conftest.$ac_cv_objext conftest.$ac_ext
19563 -fi
19564 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
19565 -$as_echo "$ac_cv_objext" >&6; }
19566 -OBJEXT=$ac_cv_objext
19567 -ac_objext=$OBJEXT
19568 -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19569 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19570 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
19571 - $as_echo_n "(cached) " >&6
19572 -else
19573 - cat >conftest.$ac_ext <<_ACEOF
19574 -/* confdefs.h. */
19575 -_ACEOF
19576 -cat confdefs.h >>conftest.$ac_ext
19577 -cat >>conftest.$ac_ext <<_ACEOF
19578 -/* end confdefs.h. */
19579 +haiku*)
19580 + lt_cv_deplibs_check_method=pass_all
19581 + ;;
19582
19583 -int
19584 -main ()
19585 -{
19586 -#ifndef __GNUC__
19587 - choke me
19588 -#endif
19589 +hpux10.20* | hpux11*)
19590 + lt_cv_file_magic_cmd=/usr/bin/file
19591 + case $host_cpu in
19592 + ia64*)
19593 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
19594 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
19595 + ;;
19596 + hppa*64*)
19597 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
19598 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
19599 + ;;
19600 + *)
19601 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
19602 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
19603 + ;;
19604 + esac
19605 + ;;
19606
19607 - ;
19608 - return 0;
19609 -}
19610 -_ACEOF
19611 -rm -f conftest.$ac_objext
19612 -if { (ac_try="$ac_compile"
19613 -case "(($ac_try" in
19614 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615 - *) ac_try_echo=$ac_try;;
19616 -esac
19617 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19618 -$as_echo "$ac_try_echo") >&5
19619 - (eval "$ac_compile") 2>conftest.er1
19620 - ac_status=$?
19621 - grep -v '^ *+' conftest.er1 >conftest.err
19622 - rm -f conftest.er1
19623 - cat conftest.err >&5
19624 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 - (exit $ac_status); } && {
19626 - test -z "$ac_c_werror_flag" ||
19627 - test ! -s conftest.err
19628 - } && test -s conftest.$ac_objext; then
19629 - ac_compiler_gnu=yes
19630 -else
19631 - $as_echo "$as_me: failed program was:" >&5
19632 -sed 's/^/| /' conftest.$ac_ext >&5
19633 +interix[3-9]*)
19634 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
19635 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
19636 + ;;
19637
19638 - ac_compiler_gnu=no
19639 -fi
19640 +irix5* | irix6* | nonstopux*)
19641 + case $LD in
19642 + *-32|*"-32 ") libmagic=32-bit;;
19643 + *-n32|*"-n32 ") libmagic=N32;;
19644 + *-64|*"-64 ") libmagic=64-bit;;
19645 + *) libmagic=never-match;;
19646 + esac
19647 + lt_cv_deplibs_check_method=pass_all
19648 + ;;
19649
19650 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
19652 +# This must be glibc/ELF.
19653 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
19654 + lt_cv_deplibs_check_method=pass_all
19655 + ;;
19656
19657 -fi
19658 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19659 -$as_echo "$ac_cv_c_compiler_gnu" >&6; }
19660 -if test $ac_compiler_gnu = yes; then
19661 - GCC=yes
19662 -else
19663 - GCC=
19664 -fi
19665 -ac_test_CFLAGS=${CFLAGS+set}
19666 -ac_save_CFLAGS=$CFLAGS
19667 -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19668 -$as_echo_n "checking whether $CC accepts -g... " >&6; }
19669 -if test "${ac_cv_prog_cc_g+set}" = set; then
19670 - $as_echo_n "(cached) " >&6
19671 -else
19672 - ac_save_c_werror_flag=$ac_c_werror_flag
19673 - ac_c_werror_flag=yes
19674 - ac_cv_prog_cc_g=no
19675 - CFLAGS="-g"
19676 - cat >conftest.$ac_ext <<_ACEOF
19677 -/* confdefs.h. */
19678 -_ACEOF
19679 -cat confdefs.h >>conftest.$ac_ext
19680 -cat >>conftest.$ac_ext <<_ACEOF
19681 -/* end confdefs.h. */
19682 +netbsd* | netbsdelf*-gnu)
19683 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
19684 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
19685 + else
19686 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
19687 + fi
19688 + ;;
19689
19690 -int
19691 -main ()
19692 -{
19693 +newos6*)
19694 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
19695 + lt_cv_file_magic_cmd=/usr/bin/file
19696 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
19697 + ;;
19698
19699 - ;
19700 - return 0;
19701 -}
19702 -_ACEOF
19703 -rm -f conftest.$ac_objext
19704 -if { (ac_try="$ac_compile"
19705 -case "(($ac_try" in
19706 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 - *) ac_try_echo=$ac_try;;
19708 -esac
19709 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19710 -$as_echo "$ac_try_echo") >&5
19711 - (eval "$ac_compile") 2>conftest.er1
19712 - ac_status=$?
19713 - grep -v '^ *+' conftest.er1 >conftest.err
19714 - rm -f conftest.er1
19715 - cat conftest.err >&5
19716 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 - (exit $ac_status); } && {
19718 - test -z "$ac_c_werror_flag" ||
19719 - test ! -s conftest.err
19720 - } && test -s conftest.$ac_objext; then
19721 - ac_cv_prog_cc_g=yes
19722 -else
19723 - $as_echo "$as_me: failed program was:" >&5
19724 -sed 's/^/| /' conftest.$ac_ext >&5
19725 +*nto* | *qnx*)
19726 + lt_cv_deplibs_check_method=pass_all
19727 + ;;
19728
19729 - CFLAGS=""
19730 - cat >conftest.$ac_ext <<_ACEOF
19731 -/* confdefs.h. */
19732 -_ACEOF
19733 -cat confdefs.h >>conftest.$ac_ext
19734 -cat >>conftest.$ac_ext <<_ACEOF
19735 -/* end confdefs.h. */
19736 +openbsd*)
19737 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19738 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
19739 + else
19740 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
19741 + fi
19742 + ;;
19743
19744 -int
19745 -main ()
19746 -{
19747 +osf3* | osf4* | osf5*)
19748 + lt_cv_deplibs_check_method=pass_all
19749 + ;;
19750
19751 - ;
19752 - return 0;
19753 -}
19754 -_ACEOF
19755 -rm -f conftest.$ac_objext
19756 -if { (ac_try="$ac_compile"
19757 -case "(($ac_try" in
19758 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 - *) ac_try_echo=$ac_try;;
19760 -esac
19761 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19762 -$as_echo "$ac_try_echo") >&5
19763 - (eval "$ac_compile") 2>conftest.er1
19764 - ac_status=$?
19765 - grep -v '^ *+' conftest.er1 >conftest.err
19766 - rm -f conftest.er1
19767 - cat conftest.err >&5
19768 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 - (exit $ac_status); } && {
19770 - test -z "$ac_c_werror_flag" ||
19771 - test ! -s conftest.err
19772 - } && test -s conftest.$ac_objext; then
19773 - :
19774 -else
19775 - $as_echo "$as_me: failed program was:" >&5
19776 -sed 's/^/| /' conftest.$ac_ext >&5
19777 +rdos*)
19778 + lt_cv_deplibs_check_method=pass_all
19779 + ;;
19780
19781 - ac_c_werror_flag=$ac_save_c_werror_flag
19782 - CFLAGS="-g"
19783 - cat >conftest.$ac_ext <<_ACEOF
19784 -/* confdefs.h. */
19785 -_ACEOF
19786 -cat confdefs.h >>conftest.$ac_ext
19787 -cat >>conftest.$ac_ext <<_ACEOF
19788 -/* end confdefs.h. */
19789 +solaris*)
19790 + lt_cv_deplibs_check_method=pass_all
19791 + ;;
19792
19793 -int
19794 -main ()
19795 -{
19796 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19797 + lt_cv_deplibs_check_method=pass_all
19798 + ;;
19799
19800 - ;
19801 - return 0;
19802 -}
19803 -_ACEOF
19804 -rm -f conftest.$ac_objext
19805 -if { (ac_try="$ac_compile"
19806 -case "(($ac_try" in
19807 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 - *) ac_try_echo=$ac_try;;
19809 -esac
19810 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19811 -$as_echo "$ac_try_echo") >&5
19812 - (eval "$ac_compile") 2>conftest.er1
19813 - ac_status=$?
19814 - grep -v '^ *+' conftest.er1 >conftest.err
19815 - rm -f conftest.er1
19816 - cat conftest.err >&5
19817 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 - (exit $ac_status); } && {
19819 - test -z "$ac_c_werror_flag" ||
19820 - test ! -s conftest.err
19821 - } && test -s conftest.$ac_objext; then
19822 - ac_cv_prog_cc_g=yes
19823 -else
19824 - $as_echo "$as_me: failed program was:" >&5
19825 -sed 's/^/| /' conftest.$ac_ext >&5
19826 +sysv4 | sysv4.3*)
19827 + case $host_vendor in
19828 + motorola)
19829 + 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]'
19830 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
19831 + ;;
19832 + ncr)
19833 + lt_cv_deplibs_check_method=pass_all
19834 + ;;
19835 + sequent)
19836 + lt_cv_file_magic_cmd='/bin/file'
19837 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
19838 + ;;
19839 + sni)
19840 + lt_cv_file_magic_cmd='/bin/file'
19841 + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
19842 + lt_cv_file_magic_test_file=/lib/libc.so
19843 + ;;
19844 + siemens)
19845 + lt_cv_deplibs_check_method=pass_all
19846 + ;;
19847 + pc)
19848 + lt_cv_deplibs_check_method=pass_all
19849 + ;;
19850 + esac
19851 + ;;
19852
19853 +tpf*)
19854 + lt_cv_deplibs_check_method=pass_all
19855 + ;;
19856 +esac
19857
19858 fi
19859 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
19860 +$as_echo "$lt_cv_deplibs_check_method" >&6; }
19861
19862 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863 +file_magic_glob=
19864 +want_nocaseglob=no
19865 +if test "$build" = "$host"; then
19866 + case $host_os in
19867 + mingw* | pw32*)
19868 + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
19869 + want_nocaseglob=yes
19870 + else
19871 + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
19872 + fi
19873 + ;;
19874 + esac
19875 fi
19876
19877 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19878 -fi
19879 +file_magic_cmd=$lt_cv_file_magic_cmd
19880 +deplibs_check_method=$lt_cv_deplibs_check_method
19881 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
19882
19883 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19884 - ac_c_werror_flag=$ac_save_c_werror_flag
19885 -fi
19886 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19887 -$as_echo "$ac_cv_prog_cc_g" >&6; }
19888 -if test "$ac_test_CFLAGS" = set; then
19889 - CFLAGS=$ac_save_CFLAGS
19890 -elif test $ac_cv_prog_cc_g = yes; then
19891 - if test "$GCC" = yes; then
19892 - CFLAGS="-g -O2"
19893 - else
19894 - CFLAGS="-g"
19895 - fi
19896 -else
19897 - if test "$GCC" = yes; then
19898 - CFLAGS="-O2"
19899 - else
19900 - CFLAGS=
19901 - fi
19902 -fi
19903 -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19904 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19905 -if test "${ac_cv_prog_cc_c89+set}" = set; then
19906 - $as_echo_n "(cached) " >&6
19907 -else
19908 - ac_cv_prog_cc_c89=no
19909 -ac_save_CC=$CC
19910 -cat >conftest.$ac_ext <<_ACEOF
19911 -/* confdefs.h. */
19912 -_ACEOF
19913 -cat confdefs.h >>conftest.$ac_ext
19914 -cat >>conftest.$ac_ext <<_ACEOF
19915 -/* end confdefs.h. */
19916 -#include <stdarg.h>
19917 -#include <stdio.h>
19918 -#include <sys/types.h>
19919 -#include <sys/stat.h>
19920 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19921 -struct buf { int x; };
19922 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
19923 -static char *e (p, i)
19924 - char **p;
19925 - int i;
19926 -{
19927 - return p[i];
19928 -}
19929 -static char *f (char * (*g) (char **, int), char **p, ...)
19930 -{
19931 - char *s;
19932 - va_list v;
19933 - va_start (v,p);
19934 - s = g (p, va_arg (v,int));
19935 - va_end (v);
19936 - return s;
19937 -}
19938
19939 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19940 - function prototypes and stuff, but not '\xHH' hex character constants.
19941 - These don't provoke an error unfortunately, instead are silently treated
19942 - as 'x'. The following induces an error, until -std is added to get
19943 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19944 - array size at least. It's necessary to write '\x00'==0 to get something
19945 - that's true only with -std. */
19946 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19947
19948 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19949 - inside strings and character constants. */
19950 -#define FOO(x) 'x'
19951 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19952
19953 -int test (int i, double x);
19954 -struct s1 {int (*f) (int a);};
19955 -struct s2 {int (*f) (double a);};
19956 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19957 -int argc;
19958 -char **argv;
19959 -int
19960 -main ()
19961 -{
19962 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19963 - ;
19964 - return 0;
19965 -}
19966 -_ACEOF
19967 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19968 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19969 -do
19970 - CC="$ac_save_CC $ac_arg"
19971 - rm -f conftest.$ac_objext
19972 -if { (ac_try="$ac_compile"
19973 -case "(($ac_try" in
19974 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 - *) ac_try_echo=$ac_try;;
19976 -esac
19977 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19978 -$as_echo "$ac_try_echo") >&5
19979 - (eval "$ac_compile") 2>conftest.er1
19980 - ac_status=$?
19981 - grep -v '^ *+' conftest.er1 >conftest.err
19982 - rm -f conftest.er1
19983 - cat conftest.err >&5
19984 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 - (exit $ac_status); } && {
19986 - test -z "$ac_c_werror_flag" ||
19987 - test ! -s conftest.err
19988 - } && test -s conftest.$ac_objext; then
19989 - ac_cv_prog_cc_c89=$ac_arg
19990 -else
19991 - $as_echo "$as_me: failed program was:" >&5
19992 -sed 's/^/| /' conftest.$ac_ext >&5
19993
19994
19995 -fi
19996
19997 -rm -f core conftest.err conftest.$ac_objext
19998 - test "x$ac_cv_prog_cc_c89" != "xno" && break
19999 -done
20000 -rm -f conftest.$ac_ext
20001 -CC=$ac_save_CC
20002
20003 -fi
20004 -# AC_CACHE_VAL
20005 -case "x$ac_cv_prog_cc_c89" in
20006 - x)
20007 - { $as_echo "$as_me:$LINENO: result: none needed" >&5
20008 -$as_echo "none needed" >&6; } ;;
20009 - xno)
20010 - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20011 -$as_echo "unsupported" >&6; } ;;
20012 - *)
20013 - CC="$CC $ac_cv_prog_cc_c89"
20014 - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20015 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20016 -esac
20017
20018
20019 -ac_ext=c
20020 -ac_cpp='$CPP $CPPFLAGS'
20021 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20022 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20023 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
20024 -DEPDIR="${am__leading_dot}deps"
20025
20026 -ac_config_commands="$ac_config_commands depfiles"
20027
20028
20029 -am_make=${MAKE-make}
20030 -cat > confinc << 'END'
20031 -am__doit:
20032 - @echo done
20033 -.PHONY: am__doit
20034 -END
20035 -# If we don't find an include directive, just comment out the code.
20036 -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
20037 -$as_echo_n "checking for style of include used by $am_make... " >&6; }
20038 -am__include="#"
20039 -am__quote=
20040 -_am_result=none
20041 -# First try GNU make style include.
20042 -echo "include confinc" > confmf
20043 -# We grep out `Entering directory' and `Leaving directory'
20044 -# messages which can occur if `w' ends up in MAKEFLAGS.
20045 -# In particular we don't look at `^make:' because GNU make might
20046 -# be invoked under some other name (usually "gmake"), in which
20047 -# case it prints its new name instead of `make'.
20048 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
20049 - am__include=include
20050 - am__quote=
20051 - _am_result=GNU
20052 -fi
20053 -# Now try BSD make style include.
20054 -if test "$am__include" = "#"; then
20055 - echo '.include "confinc"' > confmf
20056 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
20057 - am__include=.include
20058 - am__quote="\""
20059 - _am_result=BSD
20060 - fi
20061 -fi
20062
20063
20064 -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
20065 -$as_echo "$_am_result" >&6; }
20066 -rm -f confinc confmf
20067
20068 -# Check whether --enable-dependency-tracking was given.
20069 -if test "${enable_dependency_tracking+set}" = set; then
20070 - enableval=$enable_dependency_tracking;
20071 -fi
20072
20073 -if test "x$enable_dependency_tracking" != xno; then
20074 - am_depcomp="$ac_aux_dir/depcomp"
20075 - AMDEPBACKSLASH='\'
20076 -fi
20077 - if test "x$enable_dependency_tracking" != xno; then
20078 - AMDEP_TRUE=
20079 - AMDEP_FALSE='#'
20080 -else
20081 - AMDEP_TRUE='#'
20082 - AMDEP_FALSE=
20083 -fi
20084
20085
20086
20087 -depcc="$CC" am_compiler_list=
20088
20089 -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20090 -$as_echo_n "checking dependency style of $depcc... " >&6; }
20091 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20092 +
20093 +if test -n "$ac_tool_prefix"; then
20094 + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
20095 +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
20096 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20097 +$as_echo_n "checking for $ac_word... " >&6; }
20098 +if ${ac_cv_prog_DLLTOOL+:} false; then :
20099 $as_echo_n "(cached) " >&6
20100 else
20101 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20102 - # We make a subdir and do the tests there. Otherwise we can end up
20103 - # making bogus files that we don't know about and never remove. For
20104 - # instance it was reported that on HP-UX the gcc test will end up
20105 - # making a dummy file named `D' -- because `-MD' means `put the output
20106 - # in D'.
20107 - mkdir conftest.dir
20108 - # Copy depcomp to subdir because otherwise we won't find it if we're
20109 - # using a relative directory.
20110 - cp "$am_depcomp" conftest.dir
20111 - cd conftest.dir
20112 - # We will build objects and dependencies in a subdirectory because
20113 - # it helps to detect inapplicable dependency modes. For instance
20114 - # both Tru64's cc and ICC support -MD to output dependencies as a
20115 - # side effect of compilation, but ICC will put the dependencies in
20116 - # the current directory while Tru64 will put them in the object
20117 - # directory.
20118 - mkdir sub
20119 -
20120 - am_cv_CC_dependencies_compiler_type=none
20121 - if test "$am_compiler_list" = ""; then
20122 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20123 - fi
20124 - for depmode in $am_compiler_list; do
20125 - # Setup a source with many dependencies, because some compilers
20126 - # like to wrap large dependency lists on column 80 (with \), and
20127 - # we should not choose a depcomp mode which is confused by this.
20128 - #
20129 - # We need to recreate these files for each test, as the compiler may
20130 - # overwrite some of them when testing with obscure command lines.
20131 - # This happens at least with the AIX C compiler.
20132 - : > sub/conftest.c
20133 - for i in 1 2 3 4 5 6; do
20134 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
20135 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20136 - # Solaris 8's {/usr,}/bin/sh.
20137 - touch sub/conftst$i.h
20138 - done
20139 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20140 -
20141 - case $depmode in
20142 - nosideeffect)
20143 - # after this tag, mechanisms are not by side-effect, so they'll
20144 - # only be used when explicitly requested
20145 - if test "x$enable_dependency_tracking" = xyes; then
20146 - continue
20147 - else
20148 - break
20149 - fi
20150 - ;;
20151 - none) break ;;
20152 - esac
20153 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
20154 - # mode. It turns out that the SunPro C++ compiler does not properly
20155 - # handle `-M -o', and we need to detect this.
20156 - if depmode=$depmode \
20157 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20158 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20159 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20160 - >/dev/null 2>conftest.err &&
20161 - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20162 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20163 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20164 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20165 - # icc doesn't choke on unknown options, it will just issue warnings
20166 - # or remarks (even with -Werror). So we grep stderr for any message
20167 - # that says an option was ignored or not supported.
20168 - # When given -MP, icc 7.0 and 7.1 complain thusly:
20169 - # icc: Command line warning: ignoring option '-M'; no argument required
20170 - # The diagnosis changed in icc 8.0:
20171 - # icc: Command line remark: option '-MP' not supported
20172 - if (grep 'ignoring option' conftest.err ||
20173 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20174 - am_cv_CC_dependencies_compiler_type=$depmode
20175 - break
20176 - fi
20177 - fi
20178 + if test -n "$DLLTOOL"; then
20179 + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
20180 +else
20181 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20182 +for as_dir in $PATH
20183 +do
20184 + IFS=$as_save_IFS
20185 + test -z "$as_dir" && as_dir=.
20186 + for ac_exec_ext in '' $ac_executable_extensions; do
20187 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20188 + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
20189 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20190 + break 2
20191 + fi
20192 +done
20193 done
20194 +IFS=$as_save_IFS
20195
20196 - cd ..
20197 - rm -rf conftest.dir
20198 +fi
20199 +fi
20200 +DLLTOOL=$ac_cv_prog_DLLTOOL
20201 +if test -n "$DLLTOOL"; then
20202 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
20203 +$as_echo "$DLLTOOL" >&6; }
20204 else
20205 - am_cv_CC_dependencies_compiler_type=none
20206 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20207 +$as_echo "no" >&6; }
20208 fi
20209
20210 +
20211 fi
20212 -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20213 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20214 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20215 +if test -z "$ac_cv_prog_DLLTOOL"; then
20216 + ac_ct_DLLTOOL=$DLLTOOL
20217 + # Extract the first word of "dlltool", so it can be a program name with args.
20218 +set dummy dlltool; ac_word=$2
20219 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20220 +$as_echo_n "checking for $ac_word... " >&6; }
20221 +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
20222 + $as_echo_n "(cached) " >&6
20223 +else
20224 + if test -n "$ac_ct_DLLTOOL"; then
20225 + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
20226 +else
20227 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20228 +for as_dir in $PATH
20229 +do
20230 + IFS=$as_save_IFS
20231 + test -z "$as_dir" && as_dir=.
20232 + for ac_exec_ext in '' $ac_executable_extensions; do
20233 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20234 + ac_cv_prog_ac_ct_DLLTOOL="dlltool"
20235 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20236 + break 2
20237 + fi
20238 +done
20239 + done
20240 +IFS=$as_save_IFS
20241
20242 - if
20243 - test "x$enable_dependency_tracking" != xno \
20244 - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20245 - am__fastdepCC_TRUE=
20246 - am__fastdepCC_FALSE='#'
20247 +fi
20248 +fi
20249 +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
20250 +if test -n "$ac_ct_DLLTOOL"; then
20251 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
20252 +$as_echo "$ac_ct_DLLTOOL" >&6; }
20253 else
20254 - am__fastdepCC_TRUE='#'
20255 - am__fastdepCC_FALSE=
20256 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20257 +$as_echo "no" >&6; }
20258 +fi
20259 +
20260 + if test "x$ac_ct_DLLTOOL" = x; then
20261 + DLLTOOL="false"
20262 + else
20263 + case $cross_compiling:$ac_tool_warned in
20264 +yes:)
20265 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20266 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20267 +ac_tool_warned=yes ;;
20268 +esac
20269 + DLLTOOL=$ac_ct_DLLTOOL
20270 + fi
20271 +else
20272 + DLLTOOL="$ac_cv_prog_DLLTOOL"
20273 fi
20274
20275 +test -z "$DLLTOOL" && DLLTOOL=dlltool
20276 +
20277
20278
20279 -{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
20280 -$as_echo_n "checking for library containing strerror... " >&6; }
20281 -if test "${ac_cv_search_strerror+set}" = set; then
20282 +
20283 +
20284 +
20285 +
20286 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
20287 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
20288 +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
20289 $as_echo_n "(cached) " >&6
20290 else
20291 - ac_func_search_save_LIBS=$LIBS
20292 -cat >conftest.$ac_ext <<_ACEOF
20293 -/* confdefs.h. */
20294 -_ACEOF
20295 -cat confdefs.h >>conftest.$ac_ext
20296 -cat >>conftest.$ac_ext <<_ACEOF
20297 -/* end confdefs.h. */
20298 + lt_cv_sharedlib_from_linklib_cmd='unknown'
20299
20300 -/* Override any GCC internal prototype to avoid an error.
20301 - Use char because int might match the return type of a GCC
20302 - builtin and then its argument prototype would still apply. */
20303 -#ifdef __cplusplus
20304 -extern "C"
20305 -#endif
20306 -char strerror ();
20307 -int
20308 -main ()
20309 -{
20310 -return strerror ();
20311 - ;
20312 - return 0;
20313 -}
20314 -_ACEOF
20315 -for ac_lib in '' cposix; do
20316 - if test -z "$ac_lib"; then
20317 - ac_res="none required"
20318 - else
20319 - ac_res=-l$ac_lib
20320 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20321 - fi
20322 - rm -f conftest.$ac_objext conftest$ac_exeext
20323 -if { (ac_try="$ac_link"
20324 -case "(($ac_try" in
20325 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 - *) ac_try_echo=$ac_try;;
20327 +case $host_os in
20328 +cygwin* | mingw* | pw32* | cegcc*)
20329 + # two different shell functions defined in ltmain.sh
20330 + # decide which to use based on capabilities of $DLLTOOL
20331 + case `$DLLTOOL --help 2>&1` in
20332 + *--identify-strict*)
20333 + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
20334 + ;;
20335 + *)
20336 + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
20337 + ;;
20338 + esac
20339 + ;;
20340 +*)
20341 + # fallback: assume linklib IS sharedlib
20342 + lt_cv_sharedlib_from_linklib_cmd="$ECHO"
20343 + ;;
20344 esac
20345 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20346 -$as_echo "$ac_try_echo") >&5
20347 - (eval "$ac_link") 2>conftest.er1
20348 - ac_status=$?
20349 - grep -v '^ *+' conftest.er1 >conftest.err
20350 - rm -f conftest.er1
20351 - cat conftest.err >&5
20352 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 - (exit $ac_status); } && {
20354 - test -z "$ac_c_werror_flag" ||
20355 - test ! -s conftest.err
20356 - } && test -s conftest$ac_exeext && {
20357 - test "$cross_compiling" = yes ||
20358 - $as_test_x conftest$ac_exeext
20359 - }; then
20360 - ac_cv_search_strerror=$ac_res
20361 -else
20362 - $as_echo "$as_me: failed program was:" >&5
20363 -sed 's/^/| /' conftest.$ac_ext >&5
20364 -
20365
20366 fi
20367 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
20368 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
20369 +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
20370 +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
20371
20372 -rm -rf conftest.dSYM
20373 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20374 - conftest$ac_exeext
20375 - if test "${ac_cv_search_strerror+set}" = set; then
20376 - break
20377 -fi
20378 -done
20379 -if test "${ac_cv_search_strerror+set}" = set; then
20380 - :
20381 +
20382 +
20383 +
20384 +
20385 +
20386 +
20387 +if test -n "$ac_tool_prefix"; then
20388 + for ac_prog in ar
20389 + do
20390 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20391 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20392 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20393 +$as_echo_n "checking for $ac_word... " >&6; }
20394 +if ${ac_cv_prog_AR+:} false; then :
20395 + $as_echo_n "(cached) " >&6
20396 else
20397 - ac_cv_search_strerror=no
20398 + if test -n "$AR"; then
20399 + ac_cv_prog_AR="$AR" # Let the user override the test.
20400 +else
20401 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20402 +for as_dir in $PATH
20403 +do
20404 + IFS=$as_save_IFS
20405 + test -z "$as_dir" && as_dir=.
20406 + for ac_exec_ext in '' $ac_executable_extensions; do
20407 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20408 + ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
20409 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20410 + break 2
20411 + fi
20412 +done
20413 + done
20414 +IFS=$as_save_IFS
20415 +
20416 fi
20417 -rm conftest.$ac_ext
20418 -LIBS=$ac_func_search_save_LIBS
20419 fi
20420 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
20421 -$as_echo "$ac_cv_search_strerror" >&6; }
20422 -ac_res=$ac_cv_search_strerror
20423 -if test "$ac_res" != no; then
20424 - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20425 -
20426 +AR=$ac_cv_prog_AR
20427 +if test -n "$AR"; then
20428 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
20429 +$as_echo "$AR" >&6; }
20430 +else
20431 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20432 +$as_echo "no" >&6; }
20433 fi
20434
20435 -ac_ext=c
20436 -ac_cpp='$CPP $CPPFLAGS'
20437 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20438 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20439 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
20440 -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
20441 -$as_echo_n "checking how to run the C preprocessor... " >&6; }
20442 -# On Suns, sometimes $CPP names a directory.
20443 -if test -n "$CPP" && test -d "$CPP"; then
20444 - CPP=
20445 +
20446 + test -n "$AR" && break
20447 + done
20448 fi
20449 -if test -z "$CPP"; then
20450 - if test "${ac_cv_prog_CPP+set}" = set; then
20451 +if test -z "$AR"; then
20452 + ac_ct_AR=$AR
20453 + for ac_prog in ar
20454 +do
20455 + # Extract the first word of "$ac_prog", so it can be a program name with args.
20456 +set dummy $ac_prog; ac_word=$2
20457 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20458 +$as_echo_n "checking for $ac_word... " >&6; }
20459 +if ${ac_cv_prog_ac_ct_AR+:} false; then :
20460 $as_echo_n "(cached) " >&6
20461 else
20462 - # Double quotes because CPP needs to be expanded
20463 - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
20464 - do
20465 - ac_preproc_ok=false
20466 -for ac_c_preproc_warn_flag in '' yes
20467 -do
20468 - # Use a header file that comes with gcc, so configuring glibc
20469 - # with a fresh cross-compiler works.
20470 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20471 - # <limits.h> exists even on freestanding compilers.
20472 - # On the NeXT, cc -E runs the code through the compiler's parser,
20473 - # not just through cpp. "Syntax error" is here to catch this case.
20474 - cat >conftest.$ac_ext <<_ACEOF
20475 -/* confdefs.h. */
20476 -_ACEOF
20477 -cat confdefs.h >>conftest.$ac_ext
20478 -cat >>conftest.$ac_ext <<_ACEOF
20479 -/* end confdefs.h. */
20480 -#ifdef __STDC__
20481 -# include <limits.h>
20482 -#else
20483 -# include <assert.h>
20484 -#endif
20485 - Syntax error
20486 -_ACEOF
20487 -if { (ac_try="$ac_cpp conftest.$ac_ext"
20488 -case "(($ac_try" in
20489 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 - *) ac_try_echo=$ac_try;;
20491 -esac
20492 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20493 -$as_echo "$ac_try_echo") >&5
20494 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20495 - ac_status=$?
20496 - grep -v '^ *+' conftest.er1 >conftest.err
20497 - rm -f conftest.er1
20498 - cat conftest.err >&5
20499 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 - (exit $ac_status); } >/dev/null && {
20501 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20502 - test ! -s conftest.err
20503 - }; then
20504 - :
20505 + if test -n "$ac_ct_AR"; then
20506 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20507 else
20508 - $as_echo "$as_me: failed program was:" >&5
20509 -sed 's/^/| /' conftest.$ac_ext >&5
20510 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20511 +for as_dir in $PATH
20512 +do
20513 + IFS=$as_save_IFS
20514 + test -z "$as_dir" && as_dir=.
20515 + for ac_exec_ext in '' $ac_executable_extensions; do
20516 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20517 + ac_cv_prog_ac_ct_AR="$ac_prog"
20518 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20519 + break 2
20520 + fi
20521 +done
20522 + done
20523 +IFS=$as_save_IFS
20524
20525 - # Broken: fails on valid input.
20526 -continue
20527 fi
20528 -
20529 -rm -f conftest.err conftest.$ac_ext
20530 -
20531 - # OK, works on sane cases. Now check whether nonexistent headers
20532 - # can be detected and how.
20533 - cat >conftest.$ac_ext <<_ACEOF
20534 -/* confdefs.h. */
20535 -_ACEOF
20536 -cat confdefs.h >>conftest.$ac_ext
20537 -cat >>conftest.$ac_ext <<_ACEOF
20538 -/* end confdefs.h. */
20539 -#include <ac_nonexistent.h>
20540 -_ACEOF
20541 -if { (ac_try="$ac_cpp conftest.$ac_ext"
20542 -case "(($ac_try" in
20543 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 - *) ac_try_echo=$ac_try;;
20545 -esac
20546 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20547 -$as_echo "$ac_try_echo") >&5
20548 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20549 - ac_status=$?
20550 - grep -v '^ *+' conftest.er1 >conftest.err
20551 - rm -f conftest.er1
20552 - cat conftest.err >&5
20553 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 - (exit $ac_status); } >/dev/null && {
20555 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20556 - test ! -s conftest.err
20557 - }; then
20558 - # Broken: success on invalid input.
20559 -continue
20560 +fi
20561 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
20562 +if test -n "$ac_ct_AR"; then
20563 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
20564 +$as_echo "$ac_ct_AR" >&6; }
20565 else
20566 - $as_echo "$as_me: failed program was:" >&5
20567 -sed 's/^/| /' conftest.$ac_ext >&5
20568 -
20569 - # Passes both tests.
20570 -ac_preproc_ok=:
20571 -break
20572 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20573 +$as_echo "no" >&6; }
20574 fi
20575
20576 -rm -f conftest.err conftest.$ac_ext
20577
20578 + test -n "$ac_ct_AR" && break
20579 done
20580 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20581 -rm -f conftest.err conftest.$ac_ext
20582 -if $ac_preproc_ok; then
20583 - break
20584 +
20585 + if test "x$ac_ct_AR" = x; then
20586 + AR="false"
20587 + else
20588 + case $cross_compiling:$ac_tool_warned in
20589 +yes:)
20590 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20591 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20592 +ac_tool_warned=yes ;;
20593 +esac
20594 + AR=$ac_ct_AR
20595 + fi
20596 fi
20597
20598 - done
20599 - ac_cv_prog_CPP=$CPP
20600 +: ${AR=ar}
20601 +: ${AR_FLAGS=cru}
20602
20603 -fi
20604 - CPP=$ac_cv_prog_CPP
20605 -else
20606 - ac_cv_prog_CPP=$CPP
20607 -fi
20608 -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
20609 -$as_echo "$CPP" >&6; }
20610 -ac_preproc_ok=false
20611 -for ac_c_preproc_warn_flag in '' yes
20612 -do
20613 - # Use a header file that comes with gcc, so configuring glibc
20614 - # with a fresh cross-compiler works.
20615 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20616 - # <limits.h> exists even on freestanding compilers.
20617 - # On the NeXT, cc -E runs the code through the compiler's parser,
20618 - # not just through cpp. "Syntax error" is here to catch this case.
20619 - cat >conftest.$ac_ext <<_ACEOF
20620 -/* confdefs.h. */
20621 -_ACEOF
20622 -cat confdefs.h >>conftest.$ac_ext
20623 -cat >>conftest.$ac_ext <<_ACEOF
20624 -/* end confdefs.h. */
20625 -#ifdef __STDC__
20626 -# include <limits.h>
20627 -#else
20628 -# include <assert.h>
20629 -#endif
20630 - Syntax error
20631 -_ACEOF
20632 -if { (ac_try="$ac_cpp conftest.$ac_ext"
20633 -case "(($ac_try" in
20634 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 - *) ac_try_echo=$ac_try;;
20636 -esac
20637 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20638 -$as_echo "$ac_try_echo") >&5
20639 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20640 - ac_status=$?
20641 - grep -v '^ *+' conftest.er1 >conftest.err
20642 - rm -f conftest.er1
20643 - cat conftest.err >&5
20644 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 - (exit $ac_status); } >/dev/null && {
20646 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20647 - test ! -s conftest.err
20648 - }; then
20649 - :
20650 -else
20651 - $as_echo "$as_me: failed program was:" >&5
20652 -sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 - # Broken: fails on valid input.
20655 -continue
20656 -fi
20657
20658 -rm -f conftest.err conftest.$ac_ext
20659
20660 - # OK, works on sane cases. Now check whether nonexistent headers
20661 - # can be detected and how.
20662 - cat >conftest.$ac_ext <<_ACEOF
20663 -/* confdefs.h. */
20664 -_ACEOF
20665 -cat confdefs.h >>conftest.$ac_ext
20666 -cat >>conftest.$ac_ext <<_ACEOF
20667 +
20668 +
20669 +
20670 +
20671 +
20672 +
20673 +
20674 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
20675 +$as_echo_n "checking for archiver @FILE support... " >&6; }
20676 +if ${lt_cv_ar_at_file+:} false; then :
20677 + $as_echo_n "(cached) " >&6
20678 +else
20679 + lt_cv_ar_at_file=no
20680 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20681 /* end confdefs.h. */
20682 -#include <ac_nonexistent.h>
20683 +
20684 +int
20685 +main ()
20686 +{
20687 +
20688 + ;
20689 + return 0;
20690 +}
20691 _ACEOF
20692 -if { (ac_try="$ac_cpp conftest.$ac_ext"
20693 -case "(($ac_try" in
20694 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 - *) ac_try_echo=$ac_try;;
20696 -esac
20697 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20698 -$as_echo "$ac_try_echo") >&5
20699 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20700 +if ac_fn_c_try_compile "$LINENO"; then :
20701 + echo conftest.$ac_objext > conftest.lst
20702 + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
20703 + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
20704 + (eval $lt_ar_try) 2>&5
20705 ac_status=$?
20706 - grep -v '^ *+' conftest.er1 >conftest.err
20707 - rm -f conftest.er1
20708 - cat conftest.err >&5
20709 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 - (exit $ac_status); } >/dev/null && {
20711 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20712 - test ! -s conftest.err
20713 - }; then
20714 - # Broken: success on invalid input.
20715 -continue
20716 -else
20717 - $as_echo "$as_me: failed program was:" >&5
20718 -sed 's/^/| /' conftest.$ac_ext >&5
20719 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20720 + test $ac_status = 0; }
20721 + if test "$ac_status" -eq 0; then
20722 + # Ensure the archiver fails upon bogus file names.
20723 + rm -f conftest.$ac_objext libconftest.a
20724 + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
20725 + (eval $lt_ar_try) 2>&5
20726 + ac_status=$?
20727 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20728 + test $ac_status = 0; }
20729 + if test "$ac_status" -ne 0; then
20730 + lt_cv_ar_at_file=@
20731 + fi
20732 + fi
20733 + rm -f conftest.* libconftest.a
20734
20735 - # Passes both tests.
20736 -ac_preproc_ok=:
20737 -break
20738 fi
20739 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740
20741 -rm -f conftest.err conftest.$ac_ext
20742 +fi
20743 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
20744 +$as_echo "$lt_cv_ar_at_file" >&6; }
20745
20746 -done
20747 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20748 -rm -f conftest.err conftest.$ac_ext
20749 -if $ac_preproc_ok; then
20750 - :
20751 +if test "x$lt_cv_ar_at_file" = xno; then
20752 + archiver_list_spec=
20753 else
20754 - { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
20755 -See \`config.log' for more details." >&5
20756 -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
20757 -See \`config.log' for more details." >&2;}
20758 - { (exit 1); exit 1; }; }
20759 + archiver_list_spec=$lt_cv_ar_at_file
20760 fi
20761
20762 -ac_ext=c
20763 -ac_cpp='$CPP $CPPFLAGS'
20764 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20765 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20766 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767
20768
20769 -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
20770 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
20771 -if test "${ac_cv_path_GREP+set}" = set; then
20772 +
20773 +
20774 +
20775 +
20776 +if test -n "$ac_tool_prefix"; then
20777 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20778 +set dummy ${ac_tool_prefix}strip; ac_word=$2
20779 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20780 +$as_echo_n "checking for $ac_word... " >&6; }
20781 +if ${ac_cv_prog_STRIP+:} false; then :
20782 $as_echo_n "(cached) " >&6
20783 else
20784 - if test -z "$GREP"; then
20785 - ac_path_GREP_found=false
20786 - # Loop through the user's path and test for each of PROGNAME-LIST
20787 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20788 -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
20789 + if test -n "$STRIP"; then
20790 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20791 +else
20792 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20793 +for as_dir in $PATH
20794 do
20795 IFS=$as_save_IFS
20796 test -z "$as_dir" && as_dir=.
20797 - for ac_prog in grep ggrep; do
20798 for ac_exec_ext in '' $ac_executable_extensions; do
20799 - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
20800 - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
20801 -# Check for GNU ac_path_GREP and select it if it is found.
20802 - # Check for GNU $ac_path_GREP
20803 -case `"$ac_path_GREP" --version 2>&1` in
20804 -*GNU*)
20805 - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
20806 -*)
20807 - ac_count=0
20808 - $as_echo_n 0123456789 >"conftest.in"
20809 - while :
20810 - do
20811 - cat "conftest.in" "conftest.in" >"conftest.tmp"
20812 - mv "conftest.tmp" "conftest.in"
20813 - cp "conftest.in" "conftest.nl"
20814 - $as_echo 'GREP' >> "conftest.nl"
20815 - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
20816 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20817 - ac_count=`expr $ac_count + 1`
20818 - if test $ac_count -gt ${ac_path_GREP_max-0}; then
20819 - # Best one so far, save it but keep looking for a better one
20820 - ac_cv_path_GREP="$ac_path_GREP"
20821 - ac_path_GREP_max=$ac_count
20822 - fi
20823 - # 10*(2^10) chars as input seems more than enough
20824 - test $ac_count -gt 10 && break
20825 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20826 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20827 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20828 + break 2
20829 + fi
20830 +done
20831 done
20832 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20833 -esac
20834 +IFS=$as_save_IFS
20835
20836 - $ac_path_GREP_found && break 3
20837 - done
20838 - done
20839 +fi
20840 +fi
20841 +STRIP=$ac_cv_prog_STRIP
20842 +if test -n "$STRIP"; then
20843 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
20844 +$as_echo "$STRIP" >&6; }
20845 +else
20846 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20847 +$as_echo "no" >&6; }
20848 +fi
20849 +
20850 +
20851 +fi
20852 +if test -z "$ac_cv_prog_STRIP"; then
20853 + ac_ct_STRIP=$STRIP
20854 + # Extract the first word of "strip", so it can be a program name with args.
20855 +set dummy strip; ac_word=$2
20856 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20857 +$as_echo_n "checking for $ac_word... " >&6; }
20858 +if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
20859 + $as_echo_n "(cached) " >&6
20860 +else
20861 + if test -n "$ac_ct_STRIP"; then
20862 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
20863 +else
20864 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20865 +for as_dir in $PATH
20866 +do
20867 + IFS=$as_save_IFS
20868 + test -z "$as_dir" && as_dir=.
20869 + for ac_exec_ext in '' $ac_executable_extensions; do
20870 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20871 + ac_cv_prog_ac_ct_STRIP="strip"
20872 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20873 + break 2
20874 + fi
20875 done
20876 + done
20877 IFS=$as_save_IFS
20878 - if test -z "$ac_cv_path_GREP"; then
20879 - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
20880 -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
20881 - { (exit 1); exit 1; }; }
20882 +
20883 +fi
20884 +fi
20885 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
20886 +if test -n "$ac_ct_STRIP"; then
20887 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
20888 +$as_echo "$ac_ct_STRIP" >&6; }
20889 +else
20890 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20891 +$as_echo "no" >&6; }
20892 +fi
20893 +
20894 + if test "x$ac_ct_STRIP" = x; then
20895 + STRIP=":"
20896 + else
20897 + case $cross_compiling:$ac_tool_warned in
20898 +yes:)
20899 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20900 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20901 +ac_tool_warned=yes ;;
20902 +esac
20903 + STRIP=$ac_ct_STRIP
20904 fi
20905 else
20906 - ac_cv_path_GREP=$GREP
20907 + STRIP="$ac_cv_prog_STRIP"
20908 fi
20909
20910 +test -z "$STRIP" && STRIP=:
20911 +
20912 +
20913 +
20914 +
20915 +
20916 +
20917 +if test -n "$ac_tool_prefix"; then
20918 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20919 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20920 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20921 +$as_echo_n "checking for $ac_word... " >&6; }
20922 +if ${ac_cv_prog_RANLIB+:} false; then :
20923 + $as_echo_n "(cached) " >&6
20924 +else
20925 + if test -n "$RANLIB"; then
20926 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20927 +else
20928 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20929 +for as_dir in $PATH
20930 +do
20931 + IFS=$as_save_IFS
20932 + test -z "$as_dir" && as_dir=.
20933 + for ac_exec_ext in '' $ac_executable_extensions; do
20934 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20935 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20936 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20937 + break 2
20938 + fi
20939 +done
20940 + done
20941 +IFS=$as_save_IFS
20942 +
20943 +fi
20944 +fi
20945 +RANLIB=$ac_cv_prog_RANLIB
20946 +if test -n "$RANLIB"; then
20947 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
20948 +$as_echo "$RANLIB" >&6; }
20949 +else
20950 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20951 +$as_echo "no" >&6; }
20952 fi
20953 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
20954 -$as_echo "$ac_cv_path_GREP" >&6; }
20955 - GREP="$ac_cv_path_GREP"
20956
20957
20958 -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
20959 -$as_echo_n "checking for egrep... " >&6; }
20960 -if test "${ac_cv_path_EGREP+set}" = set; then
20961 +fi
20962 +if test -z "$ac_cv_prog_RANLIB"; then
20963 + ac_ct_RANLIB=$RANLIB
20964 + # Extract the first word of "ranlib", so it can be a program name with args.
20965 +set dummy ranlib; ac_word=$2
20966 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20967 +$as_echo_n "checking for $ac_word... " >&6; }
20968 +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
20969 $as_echo_n "(cached) " >&6
20970 else
20971 - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
20972 - then ac_cv_path_EGREP="$GREP -E"
20973 - else
20974 - if test -z "$EGREP"; then
20975 - ac_path_EGREP_found=false
20976 - # Loop through the user's path and test for each of PROGNAME-LIST
20977 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20978 -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
20979 + if test -n "$ac_ct_RANLIB"; then
20980 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20981 +else
20982 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20983 +for as_dir in $PATH
20984 do
20985 IFS=$as_save_IFS
20986 test -z "$as_dir" && as_dir=.
20987 - for ac_prog in egrep; do
20988 for ac_exec_ext in '' $ac_executable_extensions; do
20989 - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
20990 - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
20991 -# Check for GNU ac_path_EGREP and select it if it is found.
20992 - # Check for GNU $ac_path_EGREP
20993 -case `"$ac_path_EGREP" --version 2>&1` in
20994 -*GNU*)
20995 - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
20996 -*)
20997 - ac_count=0
20998 - $as_echo_n 0123456789 >"conftest.in"
20999 - while :
21000 - do
21001 - cat "conftest.in" "conftest.in" >"conftest.tmp"
21002 - mv "conftest.tmp" "conftest.in"
21003 - cp "conftest.in" "conftest.nl"
21004 - $as_echo 'EGREP' >> "conftest.nl"
21005 - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
21006 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21007 - ac_count=`expr $ac_count + 1`
21008 - if test $ac_count -gt ${ac_path_EGREP_max-0}; then
21009 - # Best one so far, save it but keep looking for a better one
21010 - ac_cv_path_EGREP="$ac_path_EGREP"
21011 - ac_path_EGREP_max=$ac_count
21012 - fi
21013 - # 10*(2^10) chars as input seems more than enough
21014 - test $ac_count -gt 10 && break
21015 - done
21016 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21017 -esac
21018 -
21019 - $ac_path_EGREP_found && break 3
21020 - done
21021 - done
21022 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21023 + ac_cv_prog_ac_ct_RANLIB="ranlib"
21024 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21025 + break 2
21026 + fi
21027 done
21028 + done
21029 IFS=$as_save_IFS
21030 - if test -z "$ac_cv_path_EGREP"; then
21031 - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
21032 -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
21033 - { (exit 1); exit 1; }; }
21034 - fi
21035 +
21036 +fi
21037 +fi
21038 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
21039 +if test -n "$ac_ct_RANLIB"; then
21040 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
21041 +$as_echo "$ac_ct_RANLIB" >&6; }
21042 else
21043 - ac_cv_path_EGREP=$EGREP
21044 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21045 +$as_echo "no" >&6; }
21046 fi
21047
21048 - fi
21049 + if test "x$ac_ct_RANLIB" = x; then
21050 + RANLIB=":"
21051 + else
21052 + case $cross_compiling:$ac_tool_warned in
21053 +yes:)
21054 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21055 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21056 +ac_tool_warned=yes ;;
21057 +esac
21058 + RANLIB=$ac_ct_RANLIB
21059 + fi
21060 +else
21061 + RANLIB="$ac_cv_prog_RANLIB"
21062 fi
21063 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
21064 -$as_echo "$ac_cv_path_EGREP" >&6; }
21065 - EGREP="$ac_cv_path_EGREP"
21066
21067 +test -z "$RANLIB" && RANLIB=:
21068
21069 -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21070 -$as_echo_n "checking for ANSI C header files... " >&6; }
21071 -if test "${ac_cv_header_stdc+set}" = set; then
21072 - $as_echo_n "(cached) " >&6
21073 -else
21074 - cat >conftest.$ac_ext <<_ACEOF
21075 -/* confdefs.h. */
21076 -_ACEOF
21077 -cat confdefs.h >>conftest.$ac_ext
21078 -cat >>conftest.$ac_ext <<_ACEOF
21079 -/* end confdefs.h. */
21080 -#include <stdlib.h>
21081 -#include <stdarg.h>
21082 -#include <string.h>
21083 -#include <float.h>
21084
21085 -int
21086 -main ()
21087 -{
21088
21089 - ;
21090 - return 0;
21091 -}
21092 -_ACEOF
21093 -rm -f conftest.$ac_objext
21094 -if { (ac_try="$ac_compile"
21095 -case "(($ac_try" in
21096 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 - *) ac_try_echo=$ac_try;;
21098 -esac
21099 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21100 -$as_echo "$ac_try_echo") >&5
21101 - (eval "$ac_compile") 2>conftest.er1
21102 - ac_status=$?
21103 - grep -v '^ *+' conftest.er1 >conftest.err
21104 - rm -f conftest.er1
21105 - cat conftest.err >&5
21106 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 - (exit $ac_status); } && {
21108 - test -z "$ac_c_werror_flag" ||
21109 - test ! -s conftest.err
21110 - } && test -s conftest.$ac_objext; then
21111 - ac_cv_header_stdc=yes
21112 -else
21113 - $as_echo "$as_me: failed program was:" >&5
21114 -sed 's/^/| /' conftest.$ac_ext >&5
21115
21116 - ac_cv_header_stdc=no
21117 -fi
21118
21119 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120
21121 -if test $ac_cv_header_stdc = yes; then
21122 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21123 - cat >conftest.$ac_ext <<_ACEOF
21124 -/* confdefs.h. */
21125 -_ACEOF
21126 -cat confdefs.h >>conftest.$ac_ext
21127 -cat >>conftest.$ac_ext <<_ACEOF
21128 -/* end confdefs.h. */
21129 -#include <string.h>
21130 +# Determine commands to create old-style static archives.
21131 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
21132 +old_postinstall_cmds='chmod 644 $oldlib'
21133 +old_postuninstall_cmds=
21134
21135 -_ACEOF
21136 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21137 - $EGREP "memchr" >/dev/null 2>&1; then
21138 - :
21139 -else
21140 - ac_cv_header_stdc=no
21141 +if test -n "$RANLIB"; then
21142 + case $host_os in
21143 + openbsd*)
21144 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
21145 + ;;
21146 + *)
21147 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
21148 + ;;
21149 + esac
21150 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
21151 fi
21152 -rm -f conftest*
21153
21154 -fi
21155 +case $host_os in
21156 + darwin*)
21157 + lock_old_archive_extraction=yes ;;
21158 + *)
21159 + lock_old_archive_extraction=no ;;
21160 +esac
21161 +
21162 +
21163 +
21164 +
21165 +
21166 +
21167 +
21168 +
21169 +
21170 +
21171
21172 -if test $ac_cv_header_stdc = yes; then
21173 - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21174 - cat >conftest.$ac_ext <<_ACEOF
21175 -/* confdefs.h. */
21176 -_ACEOF
21177 -cat confdefs.h >>conftest.$ac_ext
21178 -cat >>conftest.$ac_ext <<_ACEOF
21179 -/* end confdefs.h. */
21180 -#include <stdlib.h>
21181
21182 -_ACEOF
21183 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21184 - $EGREP "free" >/dev/null 2>&1; then
21185 - :
21186 -else
21187 - ac_cv_header_stdc=no
21188 -fi
21189 -rm -f conftest*
21190
21191 -fi
21192
21193 -if test $ac_cv_header_stdc = yes; then
21194 - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21195 - if test "$cross_compiling" = yes; then
21196 - :
21197 -else
21198 - cat >conftest.$ac_ext <<_ACEOF
21199 -/* confdefs.h. */
21200 -_ACEOF
21201 -cat confdefs.h >>conftest.$ac_ext
21202 -cat >>conftest.$ac_ext <<_ACEOF
21203 -/* end confdefs.h. */
21204 -#include <ctype.h>
21205 -#include <stdlib.h>
21206 -#if ((' ' & 0x0FF) == 0x020)
21207 -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21208 -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21209 -#else
21210 -# define ISLOWER(c) \
21211 - (('a' <= (c) && (c) <= 'i') \
21212 - || ('j' <= (c) && (c) <= 'r') \
21213 - || ('s' <= (c) && (c) <= 'z'))
21214 -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21215 -#endif
21216
21217 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21218 -int
21219 -main ()
21220 -{
21221 - int i;
21222 - for (i = 0; i < 256; i++)
21223 - if (XOR (islower (i), ISLOWER (i))
21224 - || toupper (i) != TOUPPER (i))
21225 - return 2;
21226 - return 0;
21227 -}
21228 -_ACEOF
21229 -rm -f conftest$ac_exeext
21230 -if { (ac_try="$ac_link"
21231 -case "(($ac_try" in
21232 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 - *) ac_try_echo=$ac_try;;
21234 -esac
21235 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21236 -$as_echo "$ac_try_echo") >&5
21237 - (eval "$ac_link") 2>&5
21238 - ac_status=$?
21239 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21241 - { (case "(($ac_try" in
21242 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 - *) ac_try_echo=$ac_try;;
21244 -esac
21245 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21246 -$as_echo "$ac_try_echo") >&5
21247 - (eval "$ac_try") 2>&5
21248 - ac_status=$?
21249 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 - (exit $ac_status); }; }; then
21251 - :
21252 -else
21253 - $as_echo "$as_me: program exited with status $ac_status" >&5
21254 -$as_echo "$as_me: failed program was:" >&5
21255 -sed 's/^/| /' conftest.$ac_ext >&5
21256
21257 -( exit $ac_status )
21258 -ac_cv_header_stdc=no
21259 -fi
21260 -rm -rf conftest.dSYM
21261 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21262 -fi
21263
21264
21265 -fi
21266 -fi
21267 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21268 -$as_echo "$ac_cv_header_stdc" >&6; }
21269 -if test $ac_cv_header_stdc = yes; then
21270
21271 -cat >>confdefs.h <<\_ACEOF
21272 -#define STDC_HEADERS 1
21273 -_ACEOF
21274
21275 -fi
21276
21277
21278
21279
21280
21281
21282 -# Check whether --enable-shared was given.
21283 -if test "${enable_shared+set}" = set; then
21284 - enableval=$enable_shared; p=${PACKAGE-default}
21285 - case $enableval in
21286 - yes) enable_shared=yes ;;
21287 - no) enable_shared=no ;;
21288 - *)
21289 - enable_shared=no
21290 - # Look at the argument we got. We use all the common list separators.
21291 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
21292 - for pkg in $enableval; do
21293 - IFS="$lt_save_ifs"
21294 - if test "X$pkg" = "X$p"; then
21295 - enable_shared=yes
21296 - fi
21297 - done
21298 - IFS="$lt_save_ifs"
21299 - ;;
21300 - esac
21301 -else
21302 - enable_shared=yes
21303 -fi
21304
21305
21306 -# Check whether --enable-static was given.
21307 -if test "${enable_static+set}" = set; then
21308 - enableval=$enable_static; p=${PACKAGE-default}
21309 - case $enableval in
21310 - yes) enable_static=yes ;;
21311 - no) enable_static=no ;;
21312 - *)
21313 - enable_static=no
21314 - # Look at the argument we got. We use all the common list separators.
21315 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
21316 - for pkg in $enableval; do
21317 - IFS="$lt_save_ifs"
21318 - if test "X$pkg" = "X$p"; then
21319 - enable_static=yes
21320 - fi
21321 - done
21322 - IFS="$lt_save_ifs"
21323 - ;;
21324 - esac
21325 -else
21326 - enable_static=yes
21327 -fi
21328
21329
21330 -# Check whether --enable-fast-install was given.
21331 -if test "${enable_fast_install+set}" = set; then
21332 - enableval=$enable_fast_install; p=${PACKAGE-default}
21333 - case $enableval in
21334 - yes) enable_fast_install=yes ;;
21335 - no) enable_fast_install=no ;;
21336 - *)
21337 - enable_fast_install=no
21338 - # Look at the argument we got. We use all the common list separators.
21339 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
21340 - for pkg in $enableval; do
21341 - IFS="$lt_save_ifs"
21342 - if test "X$pkg" = "X$p"; then
21343 - enable_fast_install=yes
21344 - fi
21345 - done
21346 - IFS="$lt_save_ifs"
21347 - ;;
21348 - esac
21349 -else
21350 - enable_fast_install=yes
21351 -fi
21352
21353
21354 -# Make sure we can run config.sub.
21355 -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
21356 - { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
21357 -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
21358 - { (exit 1); exit 1; }; }
21359
21360 -{ $as_echo "$as_me:$LINENO: checking build system type" >&5
21361 -$as_echo_n "checking build system type... " >&6; }
21362 -if test "${ac_cv_build+set}" = set; then
21363 +
21364 +
21365 +
21366 +
21367 +
21368 +
21369 +# If no C compiler was specified, use CC.
21370 +LTCC=${LTCC-"$CC"}
21371 +
21372 +# If no C compiler flags were specified, use CFLAGS.
21373 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21374 +
21375 +# Allow CC to be a program name with arguments.
21376 +compiler=$CC
21377 +
21378 +
21379 +# Check for command to grab the raw symbol name followed by C symbol from nm.
21380 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
21381 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
21382 +if ${lt_cv_sys_global_symbol_pipe+:} false; then :
21383 $as_echo_n "(cached) " >&6
21384 else
21385 - ac_build_alias=$build_alias
21386 -test "x$ac_build_alias" = x &&
21387 - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
21388 -test "x$ac_build_alias" = x &&
21389 - { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
21390 -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
21391 - { (exit 1); exit 1; }; }
21392 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
21393 - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
21394 -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
21395 - { (exit 1); exit 1; }; }
21396
21397 -fi
21398 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
21399 -$as_echo "$ac_cv_build" >&6; }
21400 -case $ac_cv_build in
21401 -*-*-*) ;;
21402 -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
21403 -$as_echo "$as_me: error: invalid value of canonical build" >&2;}
21404 - { (exit 1); exit 1; }; };;
21405 +# These are sane defaults that work on at least a few old systems.
21406 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
21407 +
21408 +# Character class describing NM global symbol codes.
21409 +symcode='[BCDEGRST]'
21410 +
21411 +# Regexp to match symbols that can be accessed directly from C.
21412 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
21413 +
21414 +# Define system-specific variables.
21415 +case $host_os in
21416 +aix*)
21417 + symcode='[BCDT]'
21418 + ;;
21419 +cygwin* | mingw* | pw32* | cegcc*)
21420 + symcode='[ABCDGISTW]'
21421 + ;;
21422 +hpux*)
21423 + if test "$host_cpu" = ia64; then
21424 + symcode='[ABCDEGRST]'
21425 + fi
21426 + ;;
21427 +irix* | nonstopux*)
21428 + symcode='[BCDEGRST]'
21429 + ;;
21430 +osf*)
21431 + symcode='[BCDEGQRST]'
21432 + ;;
21433 +solaris*)
21434 + symcode='[BDRT]'
21435 + ;;
21436 +sco3.2v5*)
21437 + symcode='[DT]'
21438 + ;;
21439 +sysv4.2uw2*)
21440 + symcode='[DT]'
21441 + ;;
21442 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
21443 + symcode='[ABDT]'
21444 + ;;
21445 +sysv4)
21446 + symcode='[DFNSTU]'
21447 + ;;
21448 esac
21449 -build=$ac_cv_build
21450 -ac_save_IFS=$IFS; IFS='-'
21451 -set x $ac_cv_build
21452 -shift
21453 -build_cpu=$1
21454 -build_vendor=$2
21455 -shift; shift
21456 -# Remember, the first character of IFS is used to create $*,
21457 -# except with old shells:
21458 -build_os=$*
21459 -IFS=$ac_save_IFS
21460 -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
21461
21462 +# If we're using GNU nm, then use its standard symbol codes.
21463 +case `$NM -V 2>&1` in
21464 +*GNU* | *'with BFD'*)
21465 + symcode='[ABCDGIRSTW]' ;;
21466 +esac
21467
21468 -{ $as_echo "$as_me:$LINENO: checking host system type" >&5
21469 -$as_echo_n "checking host system type... " >&6; }
21470 -if test "${ac_cv_host+set}" = set; then
21471 - $as_echo_n "(cached) " >&6
21472 -else
21473 - if test "x$host_alias" = x; then
21474 - ac_cv_host=$ac_cv_build
21475 -else
21476 - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
21477 - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
21478 -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
21479 - { (exit 1); exit 1; }; }
21480 -fi
21481 +# Transform an extracted symbol line into a proper C declaration.
21482 +# Some systems (esp. on ia64) link data and code symbols differently,
21483 +# so use this general approach.
21484 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
21485
21486 -fi
21487 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
21488 -$as_echo "$ac_cv_host" >&6; }
21489 -case $ac_cv_host in
21490 -*-*-*) ;;
21491 -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
21492 -$as_echo "$as_me: error: invalid value of canonical host" >&2;}
21493 - { (exit 1); exit 1; }; };;
21494 +# Transform an extracted symbol line into symbol name and symbol address
21495 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
21496 +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'"
21497 +
21498 +# Handle CRLF in mingw tool chain
21499 +opt_cr=
21500 +case $build_os in
21501 +mingw*)
21502 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
21503 + ;;
21504 esac
21505 -host=$ac_cv_host
21506 -ac_save_IFS=$IFS; IFS='-'
21507 -set x $ac_cv_host
21508 -shift
21509 -host_cpu=$1
21510 -host_vendor=$2
21511 -shift; shift
21512 -# Remember, the first character of IFS is used to create $*,
21513 -# except with old shells:
21514 -host_os=$*
21515 -IFS=$ac_save_IFS
21516 -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
21517
21518 +# Try without a prefix underscore, then with it.
21519 +for ac_symprfx in "" "_"; do
21520
21521 -{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
21522 -$as_echo_n "checking for a sed that does not truncate output... " >&6; }
21523 -if test "${lt_cv_path_SED+set}" = set; then
21524 - $as_echo_n "(cached) " >&6
21525 -else
21526 - # Loop through the user's path and test for sed and gsed.
21527 -# Then use that list of sed's as ones to test for truncation.
21528 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21529 -for as_dir in $PATH
21530 -do
21531 - IFS=$as_save_IFS
21532 - test -z "$as_dir" && as_dir=.
21533 - for lt_ac_prog in sed gsed; do
21534 - for ac_exec_ext in '' $ac_executable_extensions; do
21535 - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
21536 - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
21537 - fi
21538 - done
21539 - done
21540 -done
21541 -IFS=$as_save_IFS
21542 -lt_ac_max=0
21543 -lt_ac_count=0
21544 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
21545 -# along with /bin/sed that truncates output.
21546 -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
21547 - test ! -f $lt_ac_sed && continue
21548 - cat /dev/null > conftest.in
21549 - lt_ac_count=0
21550 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
21551 - # Check for GNU sed and select it if it is found.
21552 - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
21553 - lt_cv_path_SED=$lt_ac_sed
21554 - break
21555 - fi
21556 - while true; do
21557 - cat conftest.in conftest.in >conftest.tmp
21558 - mv conftest.tmp conftest.in
21559 - cp conftest.in conftest.nl
21560 - echo >>conftest.nl
21561 - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
21562 - cmp -s conftest.out conftest.nl || break
21563 - # 10000 chars as input seems more than enough
21564 - test $lt_ac_count -gt 10 && break
21565 - lt_ac_count=`expr $lt_ac_count + 1`
21566 - if test $lt_ac_count -gt $lt_ac_max; then
21567 - lt_ac_max=$lt_ac_count
21568 - lt_cv_path_SED=$lt_ac_sed
21569 - fi
21570 - done
21571 -done
21572 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
21573 + symxfrm="\\1 $ac_symprfx\\2 \\2"
21574
21575 -fi
21576 + # Write the raw and C identifiers.
21577 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
21578 + # Fake it for dumpbin and say T for any non-static function
21579 + # and D for any global variable.
21580 + # Also find C++ and __fastcall symbols from MSVC++,
21581 + # which start with @ or ?.
21582 + lt_cv_sys_global_symbol_pipe="$AWK '"\
21583 +" {last_section=section; section=\$ 3};"\
21584 +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
21585 +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
21586 +" \$ 0!~/External *\|/{next};"\
21587 +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
21588 +" {if(hide[section]) next};"\
21589 +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
21590 +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
21591 +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
21592 +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
21593 +" ' prfx=^$ac_symprfx"
21594 + else
21595 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
21596 + fi
21597 + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
21598
21599 -SED=$lt_cv_path_SED
21600 + # Check to see that the pipe works correctly.
21601 + pipe_works=no
21602
21603 -{ $as_echo "$as_me:$LINENO: result: $SED" >&5
21604 -$as_echo "$SED" >&6; }
21605 + rm -f conftest*
21606 + cat > conftest.$ac_ext <<_LT_EOF
21607 +#ifdef __cplusplus
21608 +extern "C" {
21609 +#endif
21610 +char nm_test_var;
21611 +void nm_test_func(void);
21612 +void nm_test_func(void){}
21613 +#ifdef __cplusplus
21614 +}
21615 +#endif
21616 +int main(){nm_test_var='a';nm_test_func();return(0);}
21617 +_LT_EOF
21618
21619 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21620 + (eval $ac_compile) 2>&5
21621 + ac_status=$?
21622 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21623 + test $ac_status = 0; }; then
21624 + # Now try to grab the symbols.
21625 + nlist=conftest.nm
21626 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
21627 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
21628 + ac_status=$?
21629 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21630 + test $ac_status = 0; } && test -s "$nlist"; then
21631 + # Try sorting and uniquifying the output.
21632 + if sort "$nlist" | uniq > "$nlist"T; then
21633 + mv -f "$nlist"T "$nlist"
21634 + else
21635 + rm -f "$nlist"T
21636 + fi
21637
21638 -# Check whether --with-gnu-ld was given.
21639 -if test "${with_gnu_ld+set}" = set; then
21640 - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21641 -else
21642 - with_gnu_ld=no
21643 -fi
21644 + # Make sure that we snagged all the symbols we need.
21645 + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
21646 + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
21647 + cat <<_LT_EOF > conftest.$ac_ext
21648 +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
21649 +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
21650 +/* DATA imports from DLLs on WIN32 con't be const, because runtime
21651 + relocations are performed -- see ld's documentation on pseudo-relocs. */
21652 +# define LT_DLSYM_CONST
21653 +#elif defined(__osf__)
21654 +/* This system does not cope well with relocations in const data. */
21655 +# define LT_DLSYM_CONST
21656 +#else
21657 +# define LT_DLSYM_CONST const
21658 +#endif
21659
21660 -ac_prog=ld
21661 -if test "$GCC" = yes; then
21662 - # Check if gcc -print-prog-name=ld gives a path.
21663 - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
21664 -$as_echo_n "checking for ld used by $CC... " >&6; }
21665 - case $host in
21666 - *-*-mingw*)
21667 - # gcc leaves a trailing carriage return which upsets mingw
21668 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21669 - *)
21670 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21671 - esac
21672 - case $ac_prog in
21673 - # Accept absolute paths.
21674 - [\\/]* | ?:[\\/]*)
21675 - re_direlt='/[^/][^/]*/\.\./'
21676 - # Canonicalize the pathname of ld
21677 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
21678 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21679 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
21680 - done
21681 - test -z "$LD" && LD="$ac_prog"
21682 - ;;
21683 - "")
21684 - # If it fails, then pretend we aren't using GCC.
21685 - ac_prog=ld
21686 - ;;
21687 - *)
21688 - # If it is relative, then search for the first ld in PATH.
21689 - with_gnu_ld=unknown
21690 - ;;
21691 - esac
21692 -elif test "$with_gnu_ld" = yes; then
21693 - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
21694 -$as_echo_n "checking for GNU ld... " >&6; }
21695 -else
21696 - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21697 -$as_echo_n "checking for non-GNU ld... " >&6; }
21698 -fi
21699 -if test "${lt_cv_path_LD+set}" = set; then
21700 - $as_echo_n "(cached) " >&6
21701 -else
21702 - if test -z "$LD"; then
21703 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
21704 - for ac_dir in $PATH; do
21705 - IFS="$lt_save_ifs"
21706 - test -z "$ac_dir" && ac_dir=.
21707 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21708 - lt_cv_path_LD="$ac_dir/$ac_prog"
21709 - # Check to see if the program is GNU ld. I'd rather use --version,
21710 - # but apparently some variants of GNU ld only accept -v.
21711 - # Break only if it was the GNU/non-GNU ld that we prefer.
21712 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
21713 - *GNU* | *'with BFD'*)
21714 - test "$with_gnu_ld" != no && break
21715 - ;;
21716 - *)
21717 - test "$with_gnu_ld" != yes && break
21718 - ;;
21719 - esac
21720 - fi
21721 - done
21722 - IFS="$lt_save_ifs"
21723 -else
21724 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
21725 -fi
21726 -fi
21727 +#ifdef __cplusplus
21728 +extern "C" {
21729 +#endif
21730
21731 -LD="$lt_cv_path_LD"
21732 -if test -n "$LD"; then
21733 - { $as_echo "$as_me:$LINENO: result: $LD" >&5
21734 -$as_echo "$LD" >&6; }
21735 -else
21736 - { $as_echo "$as_me:$LINENO: result: no" >&5
21737 -$as_echo "no" >&6; }
21738 -fi
21739 -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21740 -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21741 - { (exit 1); exit 1; }; }
21742 -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21743 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21744 -if test "${lt_cv_prog_gnu_ld+set}" = set; then
21745 - $as_echo_n "(cached) " >&6
21746 -else
21747 - # I'd rather use --version here, but apparently some GNU lds only accept -v.
21748 -case `$LD -v 2>&1 </dev/null` in
21749 -*GNU* | *'with BFD'*)
21750 - lt_cv_prog_gnu_ld=yes
21751 - ;;
21752 -*)
21753 - lt_cv_prog_gnu_ld=no
21754 - ;;
21755 -esac
21756 -fi
21757 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
21758 -$as_echo "$lt_cv_prog_gnu_ld" >&6; }
21759 -with_gnu_ld=$lt_cv_prog_gnu_ld
21760 +_LT_EOF
21761 + # Now generate the symbol file.
21762 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
21763
21764 + cat <<_LT_EOF >> conftest.$ac_ext
21765
21766 -{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
21767 -$as_echo_n "checking for $LD option to reload object files... " >&6; }
21768 -if test "${lt_cv_ld_reload_flag+set}" = set; then
21769 - $as_echo_n "(cached) " >&6
21770 -else
21771 - lt_cv_ld_reload_flag='-r'
21772 -fi
21773 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
21774 -$as_echo "$lt_cv_ld_reload_flag" >&6; }
21775 -reload_flag=$lt_cv_ld_reload_flag
21776 -case $reload_flag in
21777 -"" | " "*) ;;
21778 -*) reload_flag=" $reload_flag" ;;
21779 -esac
21780 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
21781 -case $host_os in
21782 - darwin*)
21783 - if test "$GCC" = yes; then
21784 - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
21785 +/* The mapping between symbol names and symbols. */
21786 +LT_DLSYM_CONST struct {
21787 + const char *name;
21788 + void *address;
21789 +}
21790 +lt__PROGRAM__LTX_preloaded_symbols[] =
21791 +{
21792 + { "@PROGRAM@", (void *) 0 },
21793 +_LT_EOF
21794 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
21795 + cat <<\_LT_EOF >> conftest.$ac_ext
21796 + {0, (void *) 0}
21797 +};
21798 +
21799 +/* This works around a problem in FreeBSD linker */
21800 +#ifdef FREEBSD_WORKAROUND
21801 +static const void *lt_preloaded_setup() {
21802 + return lt__PROGRAM__LTX_preloaded_symbols;
21803 +}
21804 +#endif
21805 +
21806 +#ifdef __cplusplus
21807 +}
21808 +#endif
21809 +_LT_EOF
21810 + # Now try linking the two files.
21811 + mv conftest.$ac_objext conftstm.$ac_objext
21812 + lt_globsym_save_LIBS=$LIBS
21813 + lt_globsym_save_CFLAGS=$CFLAGS
21814 + LIBS="conftstm.$ac_objext"
21815 + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
21816 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21817 + (eval $ac_link) 2>&5
21818 + ac_status=$?
21819 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21820 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
21821 + pipe_works=yes
21822 + fi
21823 + LIBS=$lt_globsym_save_LIBS
21824 + CFLAGS=$lt_globsym_save_CFLAGS
21825 + else
21826 + echo "cannot find nm_test_func in $nlist" >&5
21827 + fi
21828 + else
21829 + echo "cannot find nm_test_var in $nlist" >&5
21830 + fi
21831 else
21832 - reload_cmds='$LD$reload_flag -o $output$reload_objs'
21833 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
21834 fi
21835 - ;;
21836 -esac
21837 + else
21838 + echo "$progname: failed program was:" >&5
21839 + cat conftest.$ac_ext >&5
21840 + fi
21841 + rm -rf conftest* conftst*
21842
21843 -{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
21844 -$as_echo_n "checking for BSD-compatible nm... " >&6; }
21845 -if test "${lt_cv_path_NM+set}" = set; then
21846 - $as_echo_n "(cached) " >&6
21847 -else
21848 - if test -n "$NM"; then
21849 - # Let the user override the test.
21850 - lt_cv_path_NM="$NM"
21851 -else
21852 - lt_nm_to_check="${ac_tool_prefix}nm"
21853 - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
21854 - lt_nm_to_check="$lt_nm_to_check nm"
21855 + # Do not use the global_symbol_pipe unless it works.
21856 + if test "$pipe_works" = yes; then
21857 + break
21858 + else
21859 + lt_cv_sys_global_symbol_pipe=
21860 fi
21861 - for lt_tmp_nm in $lt_nm_to_check; do
21862 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
21863 - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
21864 - IFS="$lt_save_ifs"
21865 - test -z "$ac_dir" && ac_dir=.
21866 - tmp_nm="$ac_dir/$lt_tmp_nm"
21867 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
21868 - # Check to see if the nm accepts a BSD-compat flag.
21869 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
21870 - # nm: unknown option "B" ignored
21871 - # Tru64's nm complains that /dev/null is an invalid object file
21872 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
21873 - */dev/null* | *'Invalid file or object type'*)
21874 - lt_cv_path_NM="$tmp_nm -B"
21875 - break
21876 - ;;
21877 - *)
21878 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
21879 - */dev/null*)
21880 - lt_cv_path_NM="$tmp_nm -p"
21881 - break
21882 - ;;
21883 - *)
21884 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
21885 - continue # so that we can try to find one that supports BSD flags
21886 - ;;
21887 - esac
21888 - ;;
21889 - esac
21890 - fi
21891 - done
21892 - IFS="$lt_save_ifs"
21893 - done
21894 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
21895 -fi
21896 +done
21897 +
21898 fi
21899 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
21900 -$as_echo "$lt_cv_path_NM" >&6; }
21901 -NM="$lt_cv_path_NM"
21902
21903 -{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
21904 -$as_echo_n "checking whether ln -s works... " >&6; }
21905 -LN_S=$as_ln_s
21906 -if test "$LN_S" = "ln -s"; then
21907 - { $as_echo "$as_me:$LINENO: result: yes" >&5
21908 -$as_echo "yes" >&6; }
21909 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
21910 + lt_cv_sys_global_symbol_to_cdecl=
21911 +fi
21912 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
21913 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
21914 +$as_echo "failed" >&6; }
21915 else
21916 - { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
21917 -$as_echo "no, using $LN_S" >&6; }
21918 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
21919 +$as_echo "ok" >&6; }
21920 fi
21921
21922 -{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
21923 -$as_echo_n "checking how to recognize dependent libraries... " >&6; }
21924 -if test "${lt_cv_deplibs_check_method+set}" = set; then
21925 - $as_echo_n "(cached) " >&6
21926 -else
21927 - lt_cv_file_magic_cmd='$MAGIC_CMD'
21928 -lt_cv_file_magic_test_file=
21929 -lt_cv_deplibs_check_method='unknown'
21930 -# Need to set the preceding variable on all platforms that support
21931 -# interlibrary dependencies.
21932 -# 'none' -- dependencies not supported.
21933 -# `unknown' -- same as none, but documents that we really don't know.
21934 -# 'pass_all' -- all dependencies passed with no checks.
21935 -# 'test_compile' -- check by making test program.
21936 -# 'file_magic [[regex]]' -- check by looking for files in library path
21937 -# which responds to the $file_magic_cmd with a given extended regex.
21938 -# If you have `file' or equivalent on your system and you're not sure
21939 -# whether `pass_all' will *always* work, you probably want this one.
21940 +# Response file support.
21941 +if test "$lt_cv_nm_interface" = "MS dumpbin"; then
21942 + nm_file_list_spec='@'
21943 +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
21944 + nm_file_list_spec='@'
21945 +fi
21946 +
21947 +
21948 +
21949 +
21950 +
21951
21952 -case $host_os in
21953 -aix[4-9]*)
21954 - lt_cv_deplibs_check_method=pass_all
21955 - ;;
21956
21957 -beos*)
21958 - lt_cv_deplibs_check_method=pass_all
21959 - ;;
21960
21961 -bsdi[45]*)
21962 - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
21963 - lt_cv_file_magic_cmd='/usr/bin/file -L'
21964 - lt_cv_file_magic_test_file=/shlib/libc.so
21965 - ;;
21966
21967 -cygwin*)
21968 - # func_win32_libid is a shell function defined in ltmain.sh
21969 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
21970 - lt_cv_file_magic_cmd='func_win32_libid'
21971 - ;;
21972
21973 -mingw* | pw32*)
21974 - # Base MSYS/MinGW do not provide the 'file' command needed by
21975 - # func_win32_libid shell function, so use a weaker test based on 'objdump',
21976 - # unless we find 'file', for example because we are cross-compiling.
21977 - if ( file / ) >/dev/null 2>&1; then
21978 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
21979 - lt_cv_file_magic_cmd='func_win32_libid'
21980 - else
21981 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
21982 - lt_cv_file_magic_cmd='$OBJDUMP -f'
21983 - fi
21984 - ;;
21985
21986 -darwin* | rhapsody*)
21987 - lt_cv_deplibs_check_method=pass_all
21988 - ;;
21989
21990 -freebsd* | dragonfly*)
21991 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
21992 - case $host_cpu in
21993 - i*86 )
21994 - # Not sure whether the presence of OpenBSD here was a mistake.
21995 - # Let's accept both of them until this is cleared up.
21996 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
21997 - lt_cv_file_magic_cmd=/usr/bin/file
21998 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
21999 - ;;
22000 - esac
22001 - else
22002 - lt_cv_deplibs_check_method=pass_all
22003 - fi
22004 - ;;
22005
22006 -gnu*)
22007 - lt_cv_deplibs_check_method=pass_all
22008 - ;;
22009
22010 -hpux10.20* | hpux11*)
22011 - lt_cv_file_magic_cmd=/usr/bin/file
22012 - case $host_cpu in
22013 - ia64*)
22014 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
22015 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
22016 - ;;
22017 - hppa*64*)
22018 - 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]'
22019 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
22020 - ;;
22021 - *)
22022 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
22023 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
22024 - ;;
22025 - esac
22026 - ;;
22027
22028 -interix[3-9]*)
22029 - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
22030 - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
22031 - ;;
22032
22033 -irix5* | irix6* | nonstopux*)
22034 - case $LD in
22035 - *-32|*"-32 ") libmagic=32-bit;;
22036 - *-n32|*"-n32 ") libmagic=N32;;
22037 - *-64|*"-64 ") libmagic=64-bit;;
22038 - *) libmagic=never-match;;
22039 - esac
22040 - lt_cv_deplibs_check_method=pass_all
22041 - ;;
22042
22043 -# This must be Linux ELF.
22044 -linux* | k*bsd*-gnu)
22045 - lt_cv_deplibs_check_method=pass_all
22046 - ;;
22047
22048 -netbsd*)
22049 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
22050 - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
22051 - else
22052 - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
22053 - fi
22054 - ;;
22055
22056 -newos6*)
22057 - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
22058 - lt_cv_file_magic_cmd=/usr/bin/file
22059 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
22060 - ;;
22061
22062 -nto-qnx*)
22063 - lt_cv_deplibs_check_method=unknown
22064 - ;;
22065
22066 -openbsd*)
22067 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22068 - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
22069 - else
22070 - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
22071 - fi
22072 - ;;
22073
22074 -osf3* | osf4* | osf5*)
22075 - lt_cv_deplibs_check_method=pass_all
22076 - ;;
22077
22078 -rdos*)
22079 - lt_cv_deplibs_check_method=pass_all
22080 - ;;
22081
22082 -solaris*)
22083 - lt_cv_deplibs_check_method=pass_all
22084 - ;;
22085
22086 -sysv4 | sysv4.3*)
22087 - case $host_vendor in
22088 - motorola)
22089 - 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]'
22090 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
22091 - ;;
22092 - ncr)
22093 - lt_cv_deplibs_check_method=pass_all
22094 - ;;
22095 - sequent)
22096 - lt_cv_file_magic_cmd='/bin/file'
22097 - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
22098 - ;;
22099 - sni)
22100 - lt_cv_file_magic_cmd='/bin/file'
22101 - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
22102 - lt_cv_file_magic_test_file=/lib/libc.so
22103 - ;;
22104 - siemens)
22105 - lt_cv_deplibs_check_method=pass_all
22106 - ;;
22107 - pc)
22108 - lt_cv_deplibs_check_method=pass_all
22109 - ;;
22110 - esac
22111 - ;;
22112
22113 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22114 - lt_cv_deplibs_check_method=pass_all
22115 - ;;
22116 -esac
22117
22118 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
22119 +$as_echo_n "checking for sysroot... " >&6; }
22120 +
22121 +# Check whether --with-sysroot was given.
22122 +if test "${with_sysroot+set}" = set; then :
22123 + withval=$with_sysroot;
22124 +else
22125 + with_sysroot=no
22126 fi
22127 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
22128 -$as_echo "$lt_cv_deplibs_check_method" >&6; }
22129 -file_magic_cmd=$lt_cv_file_magic_cmd
22130 -deplibs_check_method=$lt_cv_deplibs_check_method
22131 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
22132
22133
22134 +lt_sysroot=
22135 +case ${with_sysroot} in #(
22136 + yes)
22137 + if test "$GCC" = yes; then
22138 + lt_sysroot=`$CC --print-sysroot 2>/dev/null`
22139 + fi
22140 + ;; #(
22141 + /*)
22142 + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
22143 + ;; #(
22144 + no|'')
22145 + ;; #(
22146 + *)
22147 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
22148 +$as_echo "${with_sysroot}" >&6; }
22149 + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
22150 + ;;
22151 +esac
22152 +
22153 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
22154 +$as_echo "${lt_sysroot:-no}" >&6; }
22155
22156
22157 -# If no C compiler was specified, use CC.
22158 -LTCC=${LTCC-"$CC"}
22159
22160 -# If no C compiler flags were specified, use CFLAGS.
22161 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22162
22163 -# Allow CC to be a program name with arguments.
22164 -compiler=$CC
22165
22166 # Check whether --enable-libtool-lock was given.
22167 -if test "${enable_libtool_lock+set}" = set; then
22168 +if test "${enable_libtool_lock+set}" = set; then :
22169 enableval=$enable_libtool_lock;
22170 fi
22171
22172 @@ -4972,510 +6943,783 @@ case $host in
22173 ia64-*-hpux*)
22174 # Find out which ABI we are using.
22175 echo 'int i;' > conftest.$ac_ext
22176 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22177 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22178 (eval $ac_compile) 2>&5
22179 ac_status=$?
22180 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 - (exit $ac_status); }; then
22182 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22183 + test $ac_status = 0; }; then
22184 case `/usr/bin/file conftest.$ac_objext` in
22185 - *ELF-32*)
22186 - HPUX_IA64_MODE="32"
22187 - ;;
22188 - *ELF-64*)
22189 - HPUX_IA64_MODE="64"
22190 - ;;
22191 + *ELF-32*)
22192 + HPUX_IA64_MODE="32"
22193 + ;;
22194 + *ELF-64*)
22195 + HPUX_IA64_MODE="64"
22196 + ;;
22197 esac
22198 fi
22199 rm -rf conftest*
22200 ;;
22201 *-*-irix6*)
22202 # Find out which ABI we are using.
22203 - echo '#line 4993 "configure"' > conftest.$ac_ext
22204 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22205 + echo '#line '$LINENO' "configure"' > conftest.$ac_ext
22206 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22207 (eval $ac_compile) 2>&5
22208 ac_status=$?
22209 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 - (exit $ac_status); }; then
22211 - if test "$lt_cv_prog_gnu_ld" = yes; then
22212 - case `/usr/bin/file conftest.$ac_objext` in
22213 - *32-bit*)
22214 - LD="${LD-ld} -melf32bsmip"
22215 - ;;
22216 - *N32*)
22217 - LD="${LD-ld} -melf32bmipn32"
22218 - ;;
22219 - *64-bit*)
22220 - LD="${LD-ld} -melf64bmip"
22221 - ;;
22222 - esac
22223 - else
22224 - case `/usr/bin/file conftest.$ac_objext` in
22225 - *32-bit*)
22226 - LD="${LD-ld} -32"
22227 - ;;
22228 - *N32*)
22229 - LD="${LD-ld} -n32"
22230 - ;;
22231 - *64-bit*)
22232 - LD="${LD-ld} -64"
22233 - ;;
22234 - esac
22235 - fi
22236 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22237 + test $ac_status = 0; }; then
22238 + if test "$lt_cv_prog_gnu_ld" = yes; then
22239 + case `/usr/bin/file conftest.$ac_objext` in
22240 + *32-bit*)
22241 + LD="${LD-ld} -melf32bsmip"
22242 + ;;
22243 + *N32*)
22244 + LD="${LD-ld} -melf32bmipn32"
22245 + ;;
22246 + *64-bit*)
22247 + LD="${LD-ld} -melf64bmip"
22248 + ;;
22249 + esac
22250 + else
22251 + case `/usr/bin/file conftest.$ac_objext` in
22252 + *32-bit*)
22253 + LD="${LD-ld} -32"
22254 + ;;
22255 + *N32*)
22256 + LD="${LD-ld} -n32"
22257 + ;;
22258 + *64-bit*)
22259 + LD="${LD-ld} -64"
22260 + ;;
22261 + esac
22262 + fi
22263 fi
22264 rm -rf conftest*
22265 ;;
22266
22267 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
22268 -s390*-*linux*|sparc*-*linux*)
22269 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
22270 # Find out which ABI we are using.
22271 echo 'int i;' > conftest.$ac_ext
22272 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22273 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22274 (eval $ac_compile) 2>&5
22275 ac_status=$?
22276 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 - (exit $ac_status); }; then
22278 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22279 + test $ac_status = 0; }; then
22280 + case `/usr/bin/file conftest.o` in
22281 + *32-bit*)
22282 + case $host in
22283 + x86_64-*kfreebsd*-gnu)
22284 + LD="${LD-ld} -m elf_i386_fbsd"
22285 + ;;
22286 + x86_64-*linux*)
22287 + LD="${LD-ld} -m elf_i386"
22288 + ;;
22289 + ppc64-*linux*|powerpc64-*linux*)
22290 + LD="${LD-ld} -m elf32ppclinux"
22291 + ;;
22292 + s390x-*linux*)
22293 + LD="${LD-ld} -m elf_s390"
22294 + ;;
22295 + sparc64-*linux*)
22296 + LD="${LD-ld} -m elf32_sparc"
22297 + ;;
22298 + esac
22299 + ;;
22300 + *64-bit*)
22301 + case $host in
22302 + x86_64-*kfreebsd*-gnu)
22303 + LD="${LD-ld} -m elf_x86_64_fbsd"
22304 + ;;
22305 + x86_64-*linux*)
22306 + LD="${LD-ld} -m elf_x86_64"
22307 + ;;
22308 + ppc*-*linux*|powerpc*-*linux*)
22309 + LD="${LD-ld} -m elf64ppc"
22310 + ;;
22311 + s390*-*linux*|s390*-*tpf*)
22312 + LD="${LD-ld} -m elf64_s390"
22313 + ;;
22314 + sparc*-*linux*)
22315 + LD="${LD-ld} -m elf64_sparc"
22316 + ;;
22317 + esac
22318 + ;;
22319 + esac
22320 + fi
22321 + rm -rf conftest*
22322 + ;;
22323 +
22324 +*-*-sco3.2v5*)
22325 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
22326 + SAVE_CFLAGS="$CFLAGS"
22327 + CFLAGS="$CFLAGS -belf"
22328 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
22329 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22330 +if ${lt_cv_cc_needs_belf+:} false; then :
22331 + $as_echo_n "(cached) " >&6
22332 +else
22333 + ac_ext=c
22334 +ac_cpp='$CPP $CPPFLAGS'
22335 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22336 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22337 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
22338 +
22339 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 +/* end confdefs.h. */
22341 +
22342 +int
22343 +main ()
22344 +{
22345 +
22346 + ;
22347 + return 0;
22348 +}
22349 +_ACEOF
22350 +if ac_fn_c_try_link "$LINENO"; then :
22351 + lt_cv_cc_needs_belf=yes
22352 +else
22353 + lt_cv_cc_needs_belf=no
22354 +fi
22355 +rm -f core conftest.err conftest.$ac_objext \
22356 + conftest$ac_exeext conftest.$ac_ext
22357 + ac_ext=c
22358 +ac_cpp='$CPP $CPPFLAGS'
22359 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22360 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22361 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
22362 +
22363 +fi
22364 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
22365 +$as_echo "$lt_cv_cc_needs_belf" >&6; }
22366 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
22367 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
22368 + CFLAGS="$SAVE_CFLAGS"
22369 + fi
22370 + ;;
22371 +*-*solaris*)
22372 + # Find out which ABI we are using.
22373 + echo 'int i;' > conftest.$ac_ext
22374 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22375 + (eval $ac_compile) 2>&5
22376 + ac_status=$?
22377 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22378 + test $ac_status = 0; }; then
22379 case `/usr/bin/file conftest.o` in
22380 - *32-bit*)
22381 - case $host in
22382 - x86_64-*kfreebsd*-gnu)
22383 - LD="${LD-ld} -m elf_i386_fbsd"
22384 - ;;
22385 - x86_64-*linux*)
22386 - LD="${LD-ld} -m elf_i386"
22387 - ;;
22388 - ppc64-*linux*|powerpc64-*linux*)
22389 - LD="${LD-ld} -m elf32ppclinux"
22390 - ;;
22391 - s390x-*linux*)
22392 - LD="${LD-ld} -m elf_s390"
22393 - ;;
22394 - sparc64-*linux*)
22395 - LD="${LD-ld} -m elf32_sparc"
22396 - ;;
22397 - esac
22398 - ;;
22399 *64-bit*)
22400 - libsuff=64
22401 - case $host in
22402 - x86_64-*kfreebsd*-gnu)
22403 - LD="${LD-ld} -m elf_x86_64_fbsd"
22404 - ;;
22405 - x86_64-*linux*)
22406 + case $lt_cv_prog_gnu_ld in
22407 + yes*)
22408 + case $host in
22409 + i?86-*-solaris*)
22410 LD="${LD-ld} -m elf_x86_64"
22411 ;;
22412 - ppc*-*linux*|powerpc*-*linux*)
22413 - LD="${LD-ld} -m elf64ppc"
22414 - ;;
22415 - s390*-*linux*)
22416 - LD="${LD-ld} -m elf64_s390"
22417 - ;;
22418 - sparc*-*linux*)
22419 + sparc*-*-solaris*)
22420 LD="${LD-ld} -m elf64_sparc"
22421 ;;
22422 + esac
22423 + # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
22424 + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
22425 + LD="${LD-ld}_sol2"
22426 + fi
22427 + ;;
22428 + *)
22429 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
22430 + LD="${LD-ld} -64"
22431 + fi
22432 + ;;
22433 esac
22434 ;;
22435 esac
22436 fi
22437 - rm -rf conftest*
22438 - ;;
22439 + rm -rf conftest*
22440 + ;;
22441 +esac
22442 +
22443 +need_locks="$enable_libtool_lock"
22444 +
22445 +if test -n "$ac_tool_prefix"; then
22446 + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
22447 +set dummy ${ac_tool_prefix}mt; ac_word=$2
22448 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22449 +$as_echo_n "checking for $ac_word... " >&6; }
22450 +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
22451 + $as_echo_n "(cached) " >&6
22452 +else
22453 + if test -n "$MANIFEST_TOOL"; then
22454 + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
22455 +else
22456 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22457 +for as_dir in $PATH
22458 +do
22459 + IFS=$as_save_IFS
22460 + test -z "$as_dir" && as_dir=.
22461 + for ac_exec_ext in '' $ac_executable_extensions; do
22462 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22463 + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
22464 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22465 + break 2
22466 + fi
22467 +done
22468 + done
22469 +IFS=$as_save_IFS
22470 +
22471 +fi
22472 +fi
22473 +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
22474 +if test -n "$MANIFEST_TOOL"; then
22475 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
22476 +$as_echo "$MANIFEST_TOOL" >&6; }
22477 +else
22478 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22479 +$as_echo "no" >&6; }
22480 +fi
22481 +
22482 +
22483 +fi
22484 +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
22485 + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
22486 + # Extract the first word of "mt", so it can be a program name with args.
22487 +set dummy mt; ac_word=$2
22488 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22489 +$as_echo_n "checking for $ac_word... " >&6; }
22490 +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
22491 + $as_echo_n "(cached) " >&6
22492 +else
22493 + if test -n "$ac_ct_MANIFEST_TOOL"; then
22494 + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
22495 +else
22496 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22497 +for as_dir in $PATH
22498 +do
22499 + IFS=$as_save_IFS
22500 + test -z "$as_dir" && as_dir=.
22501 + for ac_exec_ext in '' $ac_executable_extensions; do
22502 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22503 + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
22504 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22505 + break 2
22506 + fi
22507 +done
22508 + done
22509 +IFS=$as_save_IFS
22510 +
22511 +fi
22512 +fi
22513 +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
22514 +if test -n "$ac_ct_MANIFEST_TOOL"; then
22515 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
22516 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
22517 +else
22518 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22519 +$as_echo "no" >&6; }
22520 +fi
22521 +
22522 + if test "x$ac_ct_MANIFEST_TOOL" = x; then
22523 + MANIFEST_TOOL=":"
22524 + else
22525 + case $cross_compiling:$ac_tool_warned in
22526 +yes:)
22527 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22528 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22529 +ac_tool_warned=yes ;;
22530 +esac
22531 + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
22532 + fi
22533 +else
22534 + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
22535 +fi
22536 +
22537 +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
22538 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
22539 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
22540 +if ${lt_cv_path_mainfest_tool+:} false; then :
22541 + $as_echo_n "(cached) " >&6
22542 +else
22543 + lt_cv_path_mainfest_tool=no
22544 + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
22545 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
22546 + cat conftest.err >&5
22547 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then
22548 + lt_cv_path_mainfest_tool=yes
22549 + fi
22550 + rm -f conftest*
22551 +fi
22552 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
22553 +$as_echo "$lt_cv_path_mainfest_tool" >&6; }
22554 +if test "x$lt_cv_path_mainfest_tool" != xyes; then
22555 + MANIFEST_TOOL=:
22556 +fi
22557 +
22558 +
22559 +
22560 +
22561 +
22562 +
22563 + case $host_os in
22564 + rhapsody* | darwin*)
22565 + if test -n "$ac_tool_prefix"; then
22566 + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
22567 +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
22568 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22569 +$as_echo_n "checking for $ac_word... " >&6; }
22570 +if ${ac_cv_prog_DSYMUTIL+:} false; then :
22571 + $as_echo_n "(cached) " >&6
22572 +else
22573 + if test -n "$DSYMUTIL"; then
22574 + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
22575 +else
22576 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22577 +for as_dir in $PATH
22578 +do
22579 + IFS=$as_save_IFS
22580 + test -z "$as_dir" && as_dir=.
22581 + for ac_exec_ext in '' $ac_executable_extensions; do
22582 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22583 + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
22584 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22585 + break 2
22586 + fi
22587 +done
22588 + done
22589 +IFS=$as_save_IFS
22590
22591 -*-*-sco3.2v5*)
22592 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
22593 - SAVE_CFLAGS="$CFLAGS"
22594 - CFLAGS="$CFLAGS -belf"
22595 - { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
22596 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22597 -if test "${lt_cv_cc_needs_belf+set}" = set; then
22598 - $as_echo_n "(cached) " >&6
22599 +fi
22600 +fi
22601 +DSYMUTIL=$ac_cv_prog_DSYMUTIL
22602 +if test -n "$DSYMUTIL"; then
22603 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22604 +$as_echo "$DSYMUTIL" >&6; }
22605 else
22606 - ac_ext=c
22607 -ac_cpp='$CPP $CPPFLAGS'
22608 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22609 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22610 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
22611 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22612 +$as_echo "no" >&6; }
22613 +fi
22614
22615 - cat >conftest.$ac_ext <<_ACEOF
22616 -/* confdefs.h. */
22617 -_ACEOF
22618 -cat confdefs.h >>conftest.$ac_ext
22619 -cat >>conftest.$ac_ext <<_ACEOF
22620 -/* end confdefs.h. */
22621
22622 -int
22623 -main ()
22624 -{
22625 +fi
22626 +if test -z "$ac_cv_prog_DSYMUTIL"; then
22627 + ac_ct_DSYMUTIL=$DSYMUTIL
22628 + # Extract the first word of "dsymutil", so it can be a program name with args.
22629 +set dummy dsymutil; ac_word=$2
22630 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22631 +$as_echo_n "checking for $ac_word... " >&6; }
22632 +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
22633 + $as_echo_n "(cached) " >&6
22634 +else
22635 + if test -n "$ac_ct_DSYMUTIL"; then
22636 + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
22637 +else
22638 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22639 +for as_dir in $PATH
22640 +do
22641 + IFS=$as_save_IFS
22642 + test -z "$as_dir" && as_dir=.
22643 + for ac_exec_ext in '' $ac_executable_extensions; do
22644 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22645 + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
22646 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22647 + break 2
22648 + fi
22649 +done
22650 + done
22651 +IFS=$as_save_IFS
22652
22653 - ;
22654 - return 0;
22655 -}
22656 -_ACEOF
22657 -rm -f conftest.$ac_objext conftest$ac_exeext
22658 -if { (ac_try="$ac_link"
22659 -case "(($ac_try" in
22660 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22661 - *) ac_try_echo=$ac_try;;
22662 +fi
22663 +fi
22664 +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
22665 +if test -n "$ac_ct_DSYMUTIL"; then
22666 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
22667 +$as_echo "$ac_ct_DSYMUTIL" >&6; }
22668 +else
22669 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22670 +$as_echo "no" >&6; }
22671 +fi
22672 +
22673 + if test "x$ac_ct_DSYMUTIL" = x; then
22674 + DSYMUTIL=":"
22675 + else
22676 + case $cross_compiling:$ac_tool_warned in
22677 +yes:)
22678 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22679 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22680 +ac_tool_warned=yes ;;
22681 esac
22682 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22683 -$as_echo "$ac_try_echo") >&5
22684 - (eval "$ac_link") 2>conftest.er1
22685 - ac_status=$?
22686 - grep -v '^ *+' conftest.er1 >conftest.err
22687 - rm -f conftest.er1
22688 - cat conftest.err >&5
22689 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 - (exit $ac_status); } && {
22691 - test -z "$ac_c_werror_flag" ||
22692 - test ! -s conftest.err
22693 - } && test -s conftest$ac_exeext && {
22694 - test "$cross_compiling" = yes ||
22695 - $as_test_x conftest$ac_exeext
22696 - }; then
22697 - lt_cv_cc_needs_belf=yes
22698 + DSYMUTIL=$ac_ct_DSYMUTIL
22699 + fi
22700 else
22701 - $as_echo "$as_me: failed program was:" >&5
22702 -sed 's/^/| /' conftest.$ac_ext >&5
22703 + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
22704 +fi
22705 +
22706 + if test -n "$ac_tool_prefix"; then
22707 + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
22708 +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
22709 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22710 +$as_echo_n "checking for $ac_word... " >&6; }
22711 +if ${ac_cv_prog_NMEDIT+:} false; then :
22712 + $as_echo_n "(cached) " >&6
22713 +else
22714 + if test -n "$NMEDIT"; then
22715 + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
22716 +else
22717 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22718 +for as_dir in $PATH
22719 +do
22720 + IFS=$as_save_IFS
22721 + test -z "$as_dir" && as_dir=.
22722 + for ac_exec_ext in '' $ac_executable_extensions; do
22723 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22724 + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
22725 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22726 + break 2
22727 + fi
22728 +done
22729 + done
22730 +IFS=$as_save_IFS
22731
22732 - lt_cv_cc_needs_belf=no
22733 +fi
22734 +fi
22735 +NMEDIT=$ac_cv_prog_NMEDIT
22736 +if test -n "$NMEDIT"; then
22737 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
22738 +$as_echo "$NMEDIT" >&6; }
22739 +else
22740 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22741 +$as_echo "no" >&6; }
22742 fi
22743
22744 -rm -rf conftest.dSYM
22745 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22746 - conftest$ac_exeext conftest.$ac_ext
22747 - ac_ext=c
22748 -ac_cpp='$CPP $CPPFLAGS'
22749 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22750 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22751 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
22752
22753 fi
22754 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
22755 -$as_echo "$lt_cv_cc_needs_belf" >&6; }
22756 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
22757 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
22758 - CFLAGS="$SAVE_CFLAGS"
22759 +if test -z "$ac_cv_prog_NMEDIT"; then
22760 + ac_ct_NMEDIT=$NMEDIT
22761 + # Extract the first word of "nmedit", so it can be a program name with args.
22762 +set dummy nmedit; ac_word=$2
22763 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22764 +$as_echo_n "checking for $ac_word... " >&6; }
22765 +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
22766 + $as_echo_n "(cached) " >&6
22767 +else
22768 + if test -n "$ac_ct_NMEDIT"; then
22769 + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
22770 +else
22771 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22772 +for as_dir in $PATH
22773 +do
22774 + IFS=$as_save_IFS
22775 + test -z "$as_dir" && as_dir=.
22776 + for ac_exec_ext in '' $ac_executable_extensions; do
22777 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22778 + ac_cv_prog_ac_ct_NMEDIT="nmedit"
22779 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22780 + break 2
22781 fi
22782 - ;;
22783 -sparc*-*solaris*)
22784 - # Find out which ABI we are using.
22785 - echo 'int i;' > conftest.$ac_ext
22786 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22787 - (eval $ac_compile) 2>&5
22788 - ac_status=$?
22789 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 - (exit $ac_status); }; then
22791 - case `/usr/bin/file conftest.o` in
22792 - *64-bit*)
22793 - case $lt_cv_prog_gnu_ld in
22794 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
22795 - *)
22796 - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
22797 - LD="${LD-ld} -64"
22798 - fi
22799 - ;;
22800 - esac
22801 - ;;
22802 - esac
22803 +done
22804 + done
22805 +IFS=$as_save_IFS
22806 +
22807 +fi
22808 +fi
22809 +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
22810 +if test -n "$ac_ct_NMEDIT"; then
22811 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
22812 +$as_echo "$ac_ct_NMEDIT" >&6; }
22813 +else
22814 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22815 +$as_echo "no" >&6; }
22816 +fi
22817 +
22818 + if test "x$ac_ct_NMEDIT" = x; then
22819 + NMEDIT=":"
22820 + else
22821 + case $cross_compiling:$ac_tool_warned in
22822 +yes:)
22823 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22824 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22825 +ac_tool_warned=yes ;;
22826 +esac
22827 + NMEDIT=$ac_ct_NMEDIT
22828 fi
22829 - rm -rf conftest*
22830 - ;;
22831 +else
22832 + NMEDIT="$ac_cv_prog_NMEDIT"
22833 +fi
22834
22835 -*-*-cygwin* | *-*-mingw* | *-*-pw32*)
22836 - if test -n "$ac_tool_prefix"; then
22837 - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
22838 -set dummy ${ac_tool_prefix}dlltool; ac_word=$2
22839 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22840 + if test -n "$ac_tool_prefix"; then
22841 + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
22842 +set dummy ${ac_tool_prefix}lipo; ac_word=$2
22843 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22844 $as_echo_n "checking for $ac_word... " >&6; }
22845 -if test "${ac_cv_prog_DLLTOOL+set}" = set; then
22846 +if ${ac_cv_prog_LIPO+:} false; then :
22847 $as_echo_n "(cached) " >&6
22848 else
22849 - if test -n "$DLLTOOL"; then
22850 - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
22851 + if test -n "$LIPO"; then
22852 + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
22853 else
22854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22855 for as_dir in $PATH
22856 do
22857 IFS=$as_save_IFS
22858 test -z "$as_dir" && as_dir=.
22859 - for ac_exec_ext in '' $ac_executable_extensions; do
22860 + for ac_exec_ext in '' $ac_executable_extensions; do
22861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22862 - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
22863 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22864 + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
22865 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22866 break 2
22867 fi
22868 done
22869 -done
22870 + done
22871 IFS=$as_save_IFS
22872
22873 fi
22874 fi
22875 -DLLTOOL=$ac_cv_prog_DLLTOOL
22876 -if test -n "$DLLTOOL"; then
22877 - { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
22878 -$as_echo "$DLLTOOL" >&6; }
22879 +LIPO=$ac_cv_prog_LIPO
22880 +if test -n "$LIPO"; then
22881 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
22882 +$as_echo "$LIPO" >&6; }
22883 else
22884 - { $as_echo "$as_me:$LINENO: result: no" >&5
22885 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22887 fi
22888
22889
22890 fi
22891 -if test -z "$ac_cv_prog_DLLTOOL"; then
22892 - ac_ct_DLLTOOL=$DLLTOOL
22893 - # Extract the first word of "dlltool", so it can be a program name with args.
22894 -set dummy dlltool; ac_word=$2
22895 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22896 +if test -z "$ac_cv_prog_LIPO"; then
22897 + ac_ct_LIPO=$LIPO
22898 + # Extract the first word of "lipo", so it can be a program name with args.
22899 +set dummy lipo; ac_word=$2
22900 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22901 $as_echo_n "checking for $ac_word... " >&6; }
22902 -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
22903 +if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
22904 $as_echo_n "(cached) " >&6
22905 else
22906 - if test -n "$ac_ct_DLLTOOL"; then
22907 - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
22908 + if test -n "$ac_ct_LIPO"; then
22909 + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
22910 else
22911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22912 for as_dir in $PATH
22913 do
22914 IFS=$as_save_IFS
22915 test -z "$as_dir" && as_dir=.
22916 - for ac_exec_ext in '' $ac_executable_extensions; do
22917 + for ac_exec_ext in '' $ac_executable_extensions; do
22918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22919 - ac_cv_prog_ac_ct_DLLTOOL="dlltool"
22920 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22921 + ac_cv_prog_ac_ct_LIPO="lipo"
22922 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22923 break 2
22924 fi
22925 done
22926 -done
22927 + done
22928 IFS=$as_save_IFS
22929
22930 fi
22931 fi
22932 -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
22933 -if test -n "$ac_ct_DLLTOOL"; then
22934 - { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
22935 -$as_echo "$ac_ct_DLLTOOL" >&6; }
22936 +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
22937 +if test -n "$ac_ct_LIPO"; then
22938 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
22939 +$as_echo "$ac_ct_LIPO" >&6; }
22940 else
22941 - { $as_echo "$as_me:$LINENO: result: no" >&5
22942 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22943 $as_echo "no" >&6; }
22944 fi
22945
22946 - if test "x$ac_ct_DLLTOOL" = x; then
22947 - DLLTOOL="false"
22948 + if test "x$ac_ct_LIPO" = x; then
22949 + LIPO=":"
22950 else
22951 case $cross_compiling:$ac_tool_warned in
22952 yes:)
22953 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22954 -whose name does not start with the host triplet. If you think this
22955 -configuration is useful to you, please write to autoconf@gnu.org." >&5
22956 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22957 -whose name does not start with the host triplet. If you think this
22958 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22959 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22960 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22961 ac_tool_warned=yes ;;
22962 esac
22963 - DLLTOOL=$ac_ct_DLLTOOL
22964 + LIPO=$ac_ct_LIPO
22965 fi
22966 else
22967 - DLLTOOL="$ac_cv_prog_DLLTOOL"
22968 + LIPO="$ac_cv_prog_LIPO"
22969 fi
22970
22971 - if test -n "$ac_tool_prefix"; then
22972 - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
22973 -set dummy ${ac_tool_prefix}as; ac_word=$2
22974 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22975 + if test -n "$ac_tool_prefix"; then
22976 + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
22977 +set dummy ${ac_tool_prefix}otool; ac_word=$2
22978 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22979 $as_echo_n "checking for $ac_word... " >&6; }
22980 -if test "${ac_cv_prog_AS+set}" = set; then
22981 +if ${ac_cv_prog_OTOOL+:} false; then :
22982 $as_echo_n "(cached) " >&6
22983 else
22984 - if test -n "$AS"; then
22985 - ac_cv_prog_AS="$AS" # Let the user override the test.
22986 + if test -n "$OTOOL"; then
22987 + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
22988 else
22989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22990 for as_dir in $PATH
22991 do
22992 IFS=$as_save_IFS
22993 test -z "$as_dir" && as_dir=.
22994 - for ac_exec_ext in '' $ac_executable_extensions; do
22995 + for ac_exec_ext in '' $ac_executable_extensions; do
22996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22997 - ac_cv_prog_AS="${ac_tool_prefix}as"
22998 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22999 + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
23000 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23001 break 2
23002 fi
23003 done
23004 -done
23005 + done
23006 IFS=$as_save_IFS
23007
23008 fi
23009 fi
23010 -AS=$ac_cv_prog_AS
23011 -if test -n "$AS"; then
23012 - { $as_echo "$as_me:$LINENO: result: $AS" >&5
23013 -$as_echo "$AS" >&6; }
23014 +OTOOL=$ac_cv_prog_OTOOL
23015 +if test -n "$OTOOL"; then
23016 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
23017 +$as_echo "$OTOOL" >&6; }
23018 else
23019 - { $as_echo "$as_me:$LINENO: result: no" >&5
23020 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23021 $as_echo "no" >&6; }
23022 fi
23023
23024
23025 fi
23026 -if test -z "$ac_cv_prog_AS"; then
23027 - ac_ct_AS=$AS
23028 - # Extract the first word of "as", so it can be a program name with args.
23029 -set dummy as; ac_word=$2
23030 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23031 +if test -z "$ac_cv_prog_OTOOL"; then
23032 + ac_ct_OTOOL=$OTOOL
23033 + # Extract the first word of "otool", so it can be a program name with args.
23034 +set dummy otool; ac_word=$2
23035 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23036 $as_echo_n "checking for $ac_word... " >&6; }
23037 -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
23038 +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
23039 $as_echo_n "(cached) " >&6
23040 else
23041 - if test -n "$ac_ct_AS"; then
23042 - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
23043 + if test -n "$ac_ct_OTOOL"; then
23044 + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
23045 else
23046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23047 for as_dir in $PATH
23048 do
23049 IFS=$as_save_IFS
23050 test -z "$as_dir" && as_dir=.
23051 - for ac_exec_ext in '' $ac_executable_extensions; do
23052 + for ac_exec_ext in '' $ac_executable_extensions; do
23053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23054 - ac_cv_prog_ac_ct_AS="as"
23055 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23056 + ac_cv_prog_ac_ct_OTOOL="otool"
23057 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23058 break 2
23059 fi
23060 done
23061 -done
23062 + done
23063 IFS=$as_save_IFS
23064
23065 fi
23066 fi
23067 -ac_ct_AS=$ac_cv_prog_ac_ct_AS
23068 -if test -n "$ac_ct_AS"; then
23069 - { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
23070 -$as_echo "$ac_ct_AS" >&6; }
23071 +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
23072 +if test -n "$ac_ct_OTOOL"; then
23073 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
23074 +$as_echo "$ac_ct_OTOOL" >&6; }
23075 else
23076 - { $as_echo "$as_me:$LINENO: result: no" >&5
23077 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23078 $as_echo "no" >&6; }
23079 fi
23080
23081 - if test "x$ac_ct_AS" = x; then
23082 - AS="false"
23083 + if test "x$ac_ct_OTOOL" = x; then
23084 + OTOOL=":"
23085 else
23086 case $cross_compiling:$ac_tool_warned in
23087 yes:)
23088 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23089 -whose name does not start with the host triplet. If you think this
23090 -configuration is useful to you, please write to autoconf@gnu.org." >&5
23091 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23092 -whose name does not start with the host triplet. If you think this
23093 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23094 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23095 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23096 ac_tool_warned=yes ;;
23097 esac
23098 - AS=$ac_ct_AS
23099 + OTOOL=$ac_ct_OTOOL
23100 fi
23101 else
23102 - AS="$ac_cv_prog_AS"
23103 + OTOOL="$ac_cv_prog_OTOOL"
23104 fi
23105
23106 - if test -n "$ac_tool_prefix"; then
23107 - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
23108 -set dummy ${ac_tool_prefix}objdump; ac_word=$2
23109 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23110 + if test -n "$ac_tool_prefix"; then
23111 + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
23112 +set dummy ${ac_tool_prefix}otool64; ac_word=$2
23113 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23114 $as_echo_n "checking for $ac_word... " >&6; }
23115 -if test "${ac_cv_prog_OBJDUMP+set}" = set; then
23116 +if ${ac_cv_prog_OTOOL64+:} false; then :
23117 $as_echo_n "(cached) " >&6
23118 else
23119 - if test -n "$OBJDUMP"; then
23120 - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
23121 + if test -n "$OTOOL64"; then
23122 + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
23123 else
23124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23125 for as_dir in $PATH
23126 do
23127 IFS=$as_save_IFS
23128 test -z "$as_dir" && as_dir=.
23129 - for ac_exec_ext in '' $ac_executable_extensions; do
23130 + for ac_exec_ext in '' $ac_executable_extensions; do
23131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23132 - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
23133 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23134 + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
23135 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23136 break 2
23137 fi
23138 done
23139 -done
23140 + done
23141 IFS=$as_save_IFS
23142
23143 fi
23144 fi
23145 -OBJDUMP=$ac_cv_prog_OBJDUMP
23146 -if test -n "$OBJDUMP"; then
23147 - { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
23148 -$as_echo "$OBJDUMP" >&6; }
23149 +OTOOL64=$ac_cv_prog_OTOOL64
23150 +if test -n "$OTOOL64"; then
23151 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
23152 +$as_echo "$OTOOL64" >&6; }
23153 else
23154 - { $as_echo "$as_me:$LINENO: result: no" >&5
23155 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23156 $as_echo "no" >&6; }
23157 fi
23158
23159
23160 fi
23161 -if test -z "$ac_cv_prog_OBJDUMP"; then
23162 - ac_ct_OBJDUMP=$OBJDUMP
23163 - # Extract the first word of "objdump", so it can be a program name with args.
23164 -set dummy objdump; ac_word=$2
23165 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23166 +if test -z "$ac_cv_prog_OTOOL64"; then
23167 + ac_ct_OTOOL64=$OTOOL64
23168 + # Extract the first word of "otool64", so it can be a program name with args.
23169 +set dummy otool64; ac_word=$2
23170 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23171 $as_echo_n "checking for $ac_word... " >&6; }
23172 -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
23173 +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
23174 $as_echo_n "(cached) " >&6
23175 else
23176 - if test -n "$ac_ct_OBJDUMP"; then
23177 - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
23178 + if test -n "$ac_ct_OTOOL64"; then
23179 + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
23180 else
23181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23182 for as_dir in $PATH
23183 do
23184 IFS=$as_save_IFS
23185 test -z "$as_dir" && as_dir=.
23186 - for ac_exec_ext in '' $ac_executable_extensions; do
23187 + for ac_exec_ext in '' $ac_executable_extensions; do
23188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23189 - ac_cv_prog_ac_ct_OBJDUMP="objdump"
23190 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23191 + ac_cv_prog_ac_ct_OTOOL64="otool64"
23192 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23193 break 2
23194 fi
23195 done
23196 -done
23197 + done
23198 IFS=$as_save_IFS
23199
23200 fi
23201 fi
23202 -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
23203 -if test -n "$ac_ct_OBJDUMP"; then
23204 - { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
23205 -$as_echo "$ac_ct_OBJDUMP" >&6; }
23206 +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
23207 +if test -n "$ac_ct_OTOOL64"; then
23208 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
23209 +$as_echo "$ac_ct_OTOOL64" >&6; }
23210 else
23211 - { $as_echo "$as_me:$LINENO: result: no" >&5
23212 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23213 $as_echo "no" >&6; }
23214 fi
23215
23216 - if test "x$ac_ct_OBJDUMP" = x; then
23217 - OBJDUMP="false"
23218 + if test "x$ac_ct_OTOOL64" = x; then
23219 + OTOOL64=":"
23220 else
23221 case $cross_compiling:$ac_tool_warned in
23222 yes:)
23223 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23224 -whose name does not start with the host triplet. If you think this
23225 -configuration is useful to you, please write to autoconf@gnu.org." >&5
23226 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23227 -whose name does not start with the host triplet. If you think this
23228 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23229 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23230 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23231 ac_tool_warned=yes ;;
23232 esac
23233 - OBJDUMP=$ac_ct_OBJDUMP
23234 + OTOOL64=$ac_ct_OTOOL64
23235 fi
23236 else
23237 - OBJDUMP="$ac_cv_prog_OBJDUMP"
23238 + OTOOL64="$ac_cv_prog_OTOOL64"
23239 fi
23240
23241 - ;;
23242
23243 -esac
23244
23245 -need_locks="$enable_libtool_lock"
23246
23247
23248 -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
23249
23250
23251
23252 @@ -5485,59 +7729,165 @@ need_locks="$enable_libtool_lock"
23253
23254
23255
23256 -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
23257 - inttypes.h stdint.h unistd.h
23258 -do
23259 -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23260 -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23261 -$as_echo_n "checking for $ac_header... " >&6; }
23262 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23263 +
23264 +
23265 +
23266 +
23267 +
23268 +
23269 +
23270 +
23271 +
23272 +
23273 +
23274 +
23275 +
23276 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
23277 +$as_echo_n "checking for -single_module linker flag... " >&6; }
23278 +if ${lt_cv_apple_cc_single_mod+:} false; then :
23279 $as_echo_n "(cached) " >&6
23280 else
23281 - cat >conftest.$ac_ext <<_ACEOF
23282 -/* confdefs.h. */
23283 -_ACEOF
23284 -cat confdefs.h >>conftest.$ac_ext
23285 -cat >>conftest.$ac_ext <<_ACEOF
23286 + lt_cv_apple_cc_single_mod=no
23287 + if test -z "${LT_MULTI_MODULE}"; then
23288 + # By default we will add the -single_module flag. You can override
23289 + # by either setting the environment variable LT_MULTI_MODULE
23290 + # non-empty at configure time, or by adding -multi_module to the
23291 + # link flags.
23292 + rm -rf libconftest.dylib*
23293 + echo "int foo(void){return 1;}" > conftest.c
23294 + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
23295 +-dynamiclib -Wl,-single_module conftest.c" >&5
23296 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
23297 + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
23298 + _lt_result=$?
23299 + # If there is a non-empty error log, and "single_module"
23300 + # appears in it, assume the flag caused a linker warning
23301 + if test -s conftest.err && $GREP single_module conftest.err; then
23302 + cat conftest.err >&5
23303 + # Otherwise, if the output was created with a 0 exit code from
23304 + # the compiler, it worked.
23305 + elif test -f libconftest.dylib && test $_lt_result -eq 0; then
23306 + lt_cv_apple_cc_single_mod=yes
23307 + else
23308 + cat conftest.err >&5
23309 + fi
23310 + rm -rf libconftest.dylib*
23311 + rm -f conftest.*
23312 + fi
23313 +fi
23314 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
23315 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
23316 +
23317 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
23318 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
23319 +if ${lt_cv_ld_exported_symbols_list+:} false; then :
23320 + $as_echo_n "(cached) " >&6
23321 +else
23322 + lt_cv_ld_exported_symbols_list=no
23323 + save_LDFLAGS=$LDFLAGS
23324 + echo "_main" > conftest.sym
23325 + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
23326 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23327 /* end confdefs.h. */
23328 -$ac_includes_default
23329
23330 -#include <$ac_header>
23331 +int
23332 +main ()
23333 +{
23334 +
23335 + ;
23336 + return 0;
23337 +}
23338 _ACEOF
23339 -rm -f conftest.$ac_objext
23340 -if { (ac_try="$ac_compile"
23341 -case "(($ac_try" in
23342 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343 - *) ac_try_echo=$ac_try;;
23344 -esac
23345 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23346 -$as_echo "$ac_try_echo") >&5
23347 - (eval "$ac_compile") 2>conftest.er1
23348 - ac_status=$?
23349 - grep -v '^ *+' conftest.er1 >conftest.err
23350 - rm -f conftest.er1
23351 - cat conftest.err >&5
23352 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 - (exit $ac_status); } && {
23354 - test -z "$ac_c_werror_flag" ||
23355 - test ! -s conftest.err
23356 - } && test -s conftest.$ac_objext; then
23357 - eval "$as_ac_Header=yes"
23358 +if ac_fn_c_try_link "$LINENO"; then :
23359 + lt_cv_ld_exported_symbols_list=yes
23360 else
23361 - $as_echo "$as_me: failed program was:" >&5
23362 -sed 's/^/| /' conftest.$ac_ext >&5
23363 + lt_cv_ld_exported_symbols_list=no
23364 +fi
23365 +rm -f core conftest.err conftest.$ac_objext \
23366 + conftest$ac_exeext conftest.$ac_ext
23367 + LDFLAGS="$save_LDFLAGS"
23368
23369 - eval "$as_ac_Header=no"
23370 fi
23371 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
23372 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
23373 +
23374 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
23375 +$as_echo_n "checking for -force_load linker flag... " >&6; }
23376 +if ${lt_cv_ld_force_load+:} false; then :
23377 + $as_echo_n "(cached) " >&6
23378 +else
23379 + lt_cv_ld_force_load=no
23380 + cat > conftest.c << _LT_EOF
23381 +int forced_loaded() { return 2;}
23382 +_LT_EOF
23383 + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
23384 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
23385 + echo "$AR cru libconftest.a conftest.o" >&5
23386 + $AR cru libconftest.a conftest.o 2>&5
23387 + echo "$RANLIB libconftest.a" >&5
23388 + $RANLIB libconftest.a 2>&5
23389 + cat > conftest.c << _LT_EOF
23390 +int main() { return 0;}
23391 +_LT_EOF
23392 + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
23393 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
23394 + _lt_result=$?
23395 + if test -s conftest.err && $GREP force_load conftest.err; then
23396 + cat conftest.err >&5
23397 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
23398 + lt_cv_ld_force_load=yes
23399 + else
23400 + cat conftest.err >&5
23401 + fi
23402 + rm -f conftest.err libconftest.a conftest conftest.c
23403 + rm -rf conftest.dSYM
23404
23405 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23406 fi
23407 -ac_res=`eval 'as_val=${'$as_ac_Header'}
23408 - $as_echo "$as_val"'`
23409 - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23410 -$as_echo "$ac_res" >&6; }
23411 -if test `eval 'as_val=${'$as_ac_Header'}
23412 - $as_echo "$as_val"'` = yes; then
23413 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
23414 +$as_echo "$lt_cv_ld_force_load" >&6; }
23415 + case $host_os in
23416 + rhapsody* | darwin1.[012])
23417 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
23418 + darwin1.*)
23419 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
23420 + darwin*) # darwin 5.x on
23421 + # if running on 10.5 or later, the deployment target defaults
23422 + # to the OS version, if on x86, and 10.4, the deployment
23423 + # target defaults to 10.4. Don't you love it?
23424 + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
23425 + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
23426 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
23427 + 10.[012]*)
23428 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
23429 + 10.*)
23430 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
23431 + esac
23432 + ;;
23433 + esac
23434 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
23435 + _lt_dar_single_mod='$single_module'
23436 + fi
23437 + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
23438 + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
23439 + else
23440 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
23441 + fi
23442 + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
23443 + _lt_dsymutil='~$DSYMUTIL $lib || :'
23444 + else
23445 + _lt_dsymutil=
23446 + fi
23447 + ;;
23448 + esac
23449 +
23450 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
23451 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
23452 + inttypes.h stdint.h unistd.h
23453 +do :
23454 + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23455 +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23456 +"
23457 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23458 cat >>confdefs.h <<_ACEOF
23459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23460 _ACEOF
23461 @@ -5547,886 +7897,274 @@ fi
23462 done
23463
23464
23465 -
23466 for ac_header in dlfcn.h
23467 -do
23468 -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23469 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23470 - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23471 -$as_echo_n "checking for $ac_header... " >&6; }
23472 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23473 - $as_echo_n "(cached) " >&6
23474 -fi
23475 -ac_res=`eval 'as_val=${'$as_ac_Header'}
23476 - $as_echo "$as_val"'`
23477 - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23478 -$as_echo "$ac_res" >&6; }
23479 -else
23480 - # Is the header compilable?
23481 -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23482 -$as_echo_n "checking $ac_header usability... " >&6; }
23483 -cat >conftest.$ac_ext <<_ACEOF
23484 -/* confdefs.h. */
23485 -_ACEOF
23486 -cat confdefs.h >>conftest.$ac_ext
23487 -cat >>conftest.$ac_ext <<_ACEOF
23488 -/* end confdefs.h. */
23489 -$ac_includes_default
23490 -#include <$ac_header>
23491 +do :
23492 + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
23493 +"
23494 +if test "x$ac_cv_header_dlfcn_h" = xyes; then :
23495 + cat >>confdefs.h <<_ACEOF
23496 +#define HAVE_DLFCN_H 1
23497 _ACEOF
23498 -rm -f conftest.$ac_objext
23499 -if { (ac_try="$ac_compile"
23500 -case "(($ac_try" in
23501 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502 - *) ac_try_echo=$ac_try;;
23503 -esac
23504 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23505 -$as_echo "$ac_try_echo") >&5
23506 - (eval "$ac_compile") 2>conftest.er1
23507 - ac_status=$?
23508 - grep -v '^ *+' conftest.er1 >conftest.err
23509 - rm -f conftest.er1
23510 - cat conftest.err >&5
23511 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 - (exit $ac_status); } && {
23513 - test -z "$ac_c_werror_flag" ||
23514 - test ! -s conftest.err
23515 - } && test -s conftest.$ac_objext; then
23516 - ac_header_compiler=yes
23517 -else
23518 - $as_echo "$as_me: failed program was:" >&5
23519 -sed 's/^/| /' conftest.$ac_ext >&5
23520
23521 - ac_header_compiler=no
23522 fi
23523
23524 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23525 -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23526 -$as_echo "$ac_header_compiler" >&6; }
23527 +done
23528
23529 -# Is the header present?
23530 -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23531 -$as_echo_n "checking $ac_header presence... " >&6; }
23532 -cat >conftest.$ac_ext <<_ACEOF
23533 -/* confdefs.h. */
23534 -_ACEOF
23535 -cat confdefs.h >>conftest.$ac_ext
23536 -cat >>conftest.$ac_ext <<_ACEOF
23537 -/* end confdefs.h. */
23538 -#include <$ac_header>
23539 -_ACEOF
23540 -if { (ac_try="$ac_cpp conftest.$ac_ext"
23541 -case "(($ac_try" in
23542 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543 - *) ac_try_echo=$ac_try;;
23544 -esac
23545 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23546 -$as_echo "$ac_try_echo") >&5
23547 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23548 - ac_status=$?
23549 - grep -v '^ *+' conftest.er1 >conftest.err
23550 - rm -f conftest.er1
23551 - cat conftest.err >&5
23552 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 - (exit $ac_status); } >/dev/null && {
23554 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23555 - test ! -s conftest.err
23556 - }; then
23557 - ac_header_preproc=yes
23558 +
23559 +
23560 +
23561 +
23562 +# Set options
23563 +
23564 +
23565 +
23566 + enable_dlopen=no
23567 +
23568 +
23569 +
23570 + # Check whether --enable-shared was given.
23571 +if test "${enable_shared+set}" = set; then :
23572 + enableval=$enable_shared; p=${PACKAGE-default}
23573 + case $enableval in
23574 + yes) enable_shared=yes ;;
23575 + no) enable_shared=no ;;
23576 + *)
23577 + enable_shared=no
23578 + # Look at the argument we got. We use all the common list separators.
23579 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
23580 + for pkg in $enableval; do
23581 + IFS="$lt_save_ifs"
23582 + if test "X$pkg" = "X$p"; then
23583 + enable_shared=yes
23584 + fi
23585 + done
23586 + IFS="$lt_save_ifs"
23587 + ;;
23588 + esac
23589 else
23590 - $as_echo "$as_me: failed program was:" >&5
23591 -sed 's/^/| /' conftest.$ac_ext >&5
23592 + enable_shared=yes
23593 +fi
23594
23595 - ac_header_preproc=no
23596 +
23597 +
23598 +
23599 +
23600 +
23601 +
23602 +
23603 +
23604 + # Check whether --enable-static was given.
23605 +if test "${enable_static+set}" = set; then :
23606 + enableval=$enable_static; p=${PACKAGE-default}
23607 + case $enableval in
23608 + yes) enable_static=yes ;;
23609 + no) enable_static=no ;;
23610 + *)
23611 + enable_static=no
23612 + # Look at the argument we got. We use all the common list separators.
23613 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
23614 + for pkg in $enableval; do
23615 + IFS="$lt_save_ifs"
23616 + if test "X$pkg" = "X$p"; then
23617 + enable_static=yes
23618 + fi
23619 + done
23620 + IFS="$lt_save_ifs"
23621 + ;;
23622 + esac
23623 +else
23624 + enable_static=yes
23625 fi
23626
23627 -rm -f conftest.err conftest.$ac_ext
23628 -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23629 -$as_echo "$ac_header_preproc" >&6; }
23630
23631 -# So? What about this header?
23632 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23633 - yes:no: )
23634 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23635 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23636 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23637 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23638 - ac_header_preproc=yes
23639 - ;;
23640 - no:yes:* )
23641 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23642 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23643 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23644 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23645 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23646 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23647 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23648 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23649 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23650 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23651 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23652 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23653 - ( cat <<\_ASBOX
23654 -## ----------------------------------------------------------------------- ##
23655 -## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libglade ##
23656 -## ----------------------------------------------------------------------- ##
23657 -_ASBOX
23658 - ) | sed "s/^/$as_me: WARNING: /" >&2
23659 - ;;
23660 -esac
23661 -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23662 -$as_echo_n "checking for $ac_header... " >&6; }
23663 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23664 - $as_echo_n "(cached) " >&6
23665 +
23666 +
23667 +
23668 +
23669 +
23670 +
23671 +
23672 +
23673 +# Check whether --with-pic was given.
23674 +if test "${with_pic+set}" = set; then :
23675 + withval=$with_pic; lt_p=${PACKAGE-default}
23676 + case $withval in
23677 + yes|no) pic_mode=$withval ;;
23678 + *)
23679 + pic_mode=default
23680 + # Look at the argument we got. We use all the common list separators.
23681 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
23682 + for lt_pkg in $withval; do
23683 + IFS="$lt_save_ifs"
23684 + if test "X$lt_pkg" = "X$lt_p"; then
23685 + pic_mode=yes
23686 + fi
23687 + done
23688 + IFS="$lt_save_ifs"
23689 + ;;
23690 + esac
23691 else
23692 - eval "$as_ac_Header=\$ac_header_preproc"
23693 + pic_mode=default
23694 fi
23695 -ac_res=`eval 'as_val=${'$as_ac_Header'}
23696 - $as_echo "$as_val"'`
23697 - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23698 -$as_echo "$ac_res" >&6; }
23699
23700 -fi
23701 -if test `eval 'as_val=${'$as_ac_Header'}
23702 - $as_echo "$as_val"'` = yes; then
23703 - cat >>confdefs.h <<_ACEOF
23704 -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23705 -_ACEOF
23706
23707 -fi
23708 +test -z "$pic_mode" && pic_mode=default
23709 +
23710
23711 -done
23712
23713
23714 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
23715 -# find the maximum length of command line arguments
23716 -{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
23717 -$as_echo_n "checking the maximum length of command line arguments... " >&6; }
23718 -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
23719 - $as_echo_n "(cached) " >&6
23720 -else
23721 - i=0
23722 - teststring="ABCD"
23723
23724 - case $build_os in
23725 - msdosdjgpp*)
23726 - # On DJGPP, this test can blow up pretty badly due to problems in libc
23727 - # (any single argument exceeding 2000 bytes causes a buffer overrun
23728 - # during glob expansion). Even if it were fixed, the result of this
23729 - # check would be larger than it should be.
23730 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
23731 - ;;
23732
23733 - gnu*)
23734 - # Under GNU Hurd, this test is not required because there is
23735 - # no limit to the length of command line arguments.
23736 - # Libtool will interpret -1 as no limit whatsoever
23737 - lt_cv_sys_max_cmd_len=-1;
23738 - ;;
23739
23740 - cygwin* | mingw*)
23741 - # On Win9x/ME, this test blows up -- it succeeds, but takes
23742 - # about 5 minutes as the teststring grows exponentially.
23743 - # Worse, since 9x/ME are not pre-emptively multitasking,
23744 - # you end up with a "frozen" computer, even though with patience
23745 - # the test eventually succeeds (with a max line length of 256k).
23746 - # Instead, let's just punt: use the minimum linelength reported by
23747 - # all of the supported platforms: 8192 (on NT/2K/XP).
23748 - lt_cv_sys_max_cmd_len=8192;
23749 - ;;
23750 + # Check whether --enable-fast-install was given.
23751 +if test "${enable_fast_install+set}" = set; then :
23752 + enableval=$enable_fast_install; p=${PACKAGE-default}
23753 + case $enableval in
23754 + yes) enable_fast_install=yes ;;
23755 + no) enable_fast_install=no ;;
23756 + *)
23757 + enable_fast_install=no
23758 + # Look at the argument we got. We use all the common list separators.
23759 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
23760 + for pkg in $enableval; do
23761 + IFS="$lt_save_ifs"
23762 + if test "X$pkg" = "X$p"; then
23763 + enable_fast_install=yes
23764 + fi
23765 + done
23766 + IFS="$lt_save_ifs"
23767 + ;;
23768 + esac
23769 +else
23770 + enable_fast_install=yes
23771 +fi
23772
23773 - amigaos*)
23774 - # On AmigaOS with pdksh, this test takes hours, literally.
23775 - # So we just punt and use a minimum line length of 8192.
23776 - lt_cv_sys_max_cmd_len=8192;
23777 - ;;
23778
23779 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
23780 - # This has been around since 386BSD, at least. Likely further.
23781 - if test -x /sbin/sysctl; then
23782 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
23783 - elif test -x /usr/sbin/sysctl; then
23784 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
23785 - else
23786 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
23787 - fi
23788 - # And add a safety zone
23789 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
23790 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
23791 - ;;
23792
23793 - interix*)
23794 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
23795 - lt_cv_sys_max_cmd_len=196608
23796 - ;;
23797
23798 - osf*)
23799 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
23800 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
23801 - # nice to cause kernel panics so lets avoid the loop below.
23802 - # First set a reasonable default.
23803 - lt_cv_sys_max_cmd_len=16384
23804 - #
23805 - if test -x /sbin/sysconfig; then
23806 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
23807 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
23808 - esac
23809 - fi
23810 - ;;
23811 - sco3.2v5*)
23812 - lt_cv_sys_max_cmd_len=102400
23813 - ;;
23814 - sysv5* | sco5v6* | sysv4.2uw2*)
23815 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
23816 - if test -n "$kargmax"; then
23817 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
23818 - else
23819 - lt_cv_sys_max_cmd_len=32768
23820 - fi
23821 - ;;
23822 - *)
23823 - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
23824 - if test -n "$lt_cv_sys_max_cmd_len"; then
23825 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
23826 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
23827 - else
23828 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
23829 - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
23830 - = "XX$teststring") >/dev/null 2>&1 &&
23831 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
23832 - lt_cv_sys_max_cmd_len=$new_result &&
23833 - test $i != 17 # 1/2 MB should be enough
23834 - do
23835 - i=`expr $i + 1`
23836 - teststring=$teststring$teststring
23837 - done
23838 - teststring=
23839 - # Add a significant safety factor because C++ compilers can tack on massive
23840 - # amounts of additional arguments before passing them to the linker.
23841 - # It appears as though 1/2 is a usable value.
23842 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
23843 - fi
23844 - ;;
23845 - esac
23846
23847 -fi
23848
23849 -if test -n $lt_cv_sys_max_cmd_len ; then
23850 - { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
23851 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
23852 -else
23853 - { $as_echo "$as_me:$LINENO: result: none" >&5
23854 -$as_echo "none" >&6; }
23855 -fi
23856
23857
23858
23859
23860
23861 -# Check for command to grab the raw symbol name followed by C symbol from nm.
23862 -{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
23863 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
23864 -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
23865 - $as_echo_n "(cached) " >&6
23866 -else
23867 +# This can be used to rebuild libtool when needed
23868 +LIBTOOL_DEPS="$ltmain"
23869 +
23870 +# Always use our own libtool.
23871 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
23872 +
23873
23874 -# These are sane defaults that work on at least a few old systems.
23875 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
23876
23877 -# Character class describing NM global symbol codes.
23878 -symcode='[BCDEGRST]'
23879
23880 -# Regexp to match symbols that can be accessed directly from C.
23881 -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
23882
23883 -# Transform an extracted symbol line into a proper C declaration
23884 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
23885
23886 -# Transform an extracted symbol line into symbol name and symbol address
23887 -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
23888
23889 -# Define system-specific variables.
23890 -case $host_os in
23891 -aix*)
23892 - symcode='[BCDT]'
23893 - ;;
23894 -cygwin* | mingw* | pw32*)
23895 - symcode='[ABCDGISTW]'
23896 - ;;
23897 -hpux*) # Its linker distinguishes data from code symbols
23898 - if test "$host_cpu" = ia64; then
23899 - symcode='[ABCDEGRST]'
23900 - fi
23901 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
23902 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
23903 - ;;
23904 -linux* | k*bsd*-gnu)
23905 - if test "$host_cpu" = ia64; then
23906 - symcode='[ABCDGIRSTW]'
23907 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
23908 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
23909 - fi
23910 - ;;
23911 -irix* | nonstopux*)
23912 - symcode='[BCDEGRST]'
23913 - ;;
23914 -osf*)
23915 - symcode='[BCDEGQRST]'
23916 - ;;
23917 -solaris*)
23918 - symcode='[BDRT]'
23919 - ;;
23920 -sco3.2v5*)
23921 - symcode='[DT]'
23922 - ;;
23923 -sysv4.2uw2*)
23924 - symcode='[DT]'
23925 - ;;
23926 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
23927 - symcode='[ABDT]'
23928 - ;;
23929 -sysv4)
23930 - symcode='[DFNSTU]'
23931 - ;;
23932 -esac
23933
23934 -# Handle CRLF in mingw tool chain
23935 -opt_cr=
23936 -case $build_os in
23937 -mingw*)
23938 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
23939 - ;;
23940 -esac
23941
23942 -# If we're using GNU nm, then use its standard symbol codes.
23943 -case `$NM -V 2>&1` in
23944 -*GNU* | *'with BFD'*)
23945 - symcode='[ABCDGIRSTW]' ;;
23946 -esac
23947
23948 -# Try without a prefix undercore, then with it.
23949 -for ac_symprfx in "" "_"; do
23950
23951 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
23952 - symxfrm="\\1 $ac_symprfx\\2 \\2"
23953
23954 - # Write the raw and C identifiers.
23955 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
23956
23957 - # Check to see that the pipe works correctly.
23958 - pipe_works=no
23959
23960 - rm -f conftest*
23961 - cat > conftest.$ac_ext <<EOF
23962 -#ifdef __cplusplus
23963 -extern "C" {
23964 -#endif
23965 -char nm_test_var;
23966 -void nm_test_func(){}
23967 -#ifdef __cplusplus
23968 -}
23969 -#endif
23970 -int main(){nm_test_var='a';nm_test_func();return(0);}
23971 -EOF
23972
23973 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23974 - (eval $ac_compile) 2>&5
23975 - ac_status=$?
23976 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 - (exit $ac_status); }; then
23978 - # Now try to grab the symbols.
23979 - nlist=conftest.nm
23980 - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
23981 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
23982 - ac_status=$?
23983 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 - (exit $ac_status); } && test -s "$nlist"; then
23985 - # Try sorting and uniquifying the output.
23986 - if sort "$nlist" | uniq > "$nlist"T; then
23987 - mv -f "$nlist"T "$nlist"
23988 - else
23989 - rm -f "$nlist"T
23990 - fi
23991
23992 - # Make sure that we snagged all the symbols we need.
23993 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
23994 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
23995 - cat <<EOF > conftest.$ac_ext
23996 -#ifdef __cplusplus
23997 -extern "C" {
23998 -#endif
23999
24000 -EOF
24001 - # Now generate the symbol file.
24002 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
24003
24004 - cat <<EOF >> conftest.$ac_ext
24005 -#if defined (__STDC__) && __STDC__
24006 -# define lt_ptr_t void *
24007 -#else
24008 -# define lt_ptr_t char *
24009 -# define const
24010 -#endif
24011
24012 -/* The mapping between symbol names and symbols. */
24013 -const struct {
24014 - const char *name;
24015 - lt_ptr_t address;
24016 -}
24017 -lt_preloaded_symbols[] =
24018 -{
24019 -EOF
24020 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
24021 - cat <<\EOF >> conftest.$ac_ext
24022 - {0, (lt_ptr_t) 0}
24023 -};
24024
24025 -#ifdef __cplusplus
24026 -}
24027 -#endif
24028 -EOF
24029 - # Now try linking the two files.
24030 - mv conftest.$ac_objext conftstm.$ac_objext
24031 - lt_save_LIBS="$LIBS"
24032 - lt_save_CFLAGS="$CFLAGS"
24033 - LIBS="conftstm.$ac_objext"
24034 - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
24035 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24036 - (eval $ac_link) 2>&5
24037 - ac_status=$?
24038 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 - (exit $ac_status); } && test -s conftest${ac_exeext}; then
24040 - pipe_works=yes
24041 - fi
24042 - LIBS="$lt_save_LIBS"
24043 - CFLAGS="$lt_save_CFLAGS"
24044 - else
24045 - echo "cannot find nm_test_func in $nlist" >&5
24046 - fi
24047 - else
24048 - echo "cannot find nm_test_var in $nlist" >&5
24049 - fi
24050 - else
24051 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
24052 - fi
24053 - else
24054 - echo "$progname: failed program was:" >&5
24055 - cat conftest.$ac_ext >&5
24056 - fi
24057 - rm -rf conftest* conftst*
24058
24059 - # Do not use the global_symbol_pipe unless it works.
24060 - if test "$pipe_works" = yes; then
24061 - break
24062 - else
24063 - lt_cv_sys_global_symbol_pipe=
24064 - fi
24065 -done
24066
24067 -fi
24068
24069 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
24070 - lt_cv_sys_global_symbol_to_cdecl=
24071 -fi
24072 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
24073 - { $as_echo "$as_me:$LINENO: result: failed" >&5
24074 -$as_echo "failed" >&6; }
24075 -else
24076 - { $as_echo "$as_me:$LINENO: result: ok" >&5
24077 -$as_echo "ok" >&6; }
24078 -fi
24079
24080 -{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
24081 -$as_echo_n "checking for objdir... " >&6; }
24082 -if test "${lt_cv_objdir+set}" = set; then
24083 - $as_echo_n "(cached) " >&6
24084 -else
24085 - rm -f .libs 2>/dev/null
24086 -mkdir .libs 2>/dev/null
24087 -if test -d .libs; then
24088 - lt_cv_objdir=.libs
24089 -else
24090 - # MS-DOS does not allow filenames that begin with a dot.
24091 - lt_cv_objdir=_libs
24092 -fi
24093 -rmdir .libs 2>/dev/null
24094 -fi
24095 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
24096 -$as_echo "$lt_cv_objdir" >&6; }
24097 -objdir=$lt_cv_objdir
24098
24099
24100
24101
24102
24103 -case $host_os in
24104 -aix3*)
24105 - # AIX sometimes has problems with the GCC collect2 program. For some
24106 - # reason, if we set the COLLECT_NAMES environment variable, the problems
24107 - # vanish in a puff of smoke.
24108 - if test "X${COLLECT_NAMES+set}" != Xset; then
24109 - COLLECT_NAMES=
24110 - export COLLECT_NAMES
24111 - fi
24112 - ;;
24113 -esac
24114
24115 -# Sed substitution that helps us do robust quoting. It backslashifies
24116 -# metacharacters that are still active within double-quoted strings.
24117 -Xsed='sed -e 1s/^X//'
24118 -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
24119 +test -z "$LN_S" && LN_S="ln -s"
24120
24121 -# Same as above, but do not quote variable references.
24122 -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
24123
24124 -# Sed substitution to delay expansion of an escaped shell variable in a
24125 -# double_quote_subst'ed string.
24126 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
24127
24128 -# Sed substitution to avoid accidental globbing in evaled expressions
24129 -no_glob_subst='s/\*/\\\*/g'
24130
24131 -# Constants:
24132 -rm="rm -f"
24133
24134 -# Global variables:
24135 -default_ofile=libtool
24136 -can_build_shared=yes
24137
24138 -# All known linkers require a `.a' archive for static linking (except MSVC,
24139 -# which needs '.lib').
24140 -libext=a
24141 -ltmain="$ac_aux_dir/ltmain.sh"
24142 -ofile="$default_ofile"
24143 -with_gnu_ld="$lt_cv_prog_gnu_ld"
24144
24145 -if test -n "$ac_tool_prefix"; then
24146 - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
24147 -set dummy ${ac_tool_prefix}ar; ac_word=$2
24148 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24149 -$as_echo_n "checking for $ac_word... " >&6; }
24150 -if test "${ac_cv_prog_AR+set}" = set; then
24151 - $as_echo_n "(cached) " >&6
24152 -else
24153 - if test -n "$AR"; then
24154 - ac_cv_prog_AR="$AR" # Let the user override the test.
24155 -else
24156 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24157 -for as_dir in $PATH
24158 -do
24159 - IFS=$as_save_IFS
24160 - test -z "$as_dir" && as_dir=.
24161 - for ac_exec_ext in '' $ac_executable_extensions; do
24162 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24163 - ac_cv_prog_AR="${ac_tool_prefix}ar"
24164 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24165 - break 2
24166 - fi
24167 -done
24168 -done
24169 -IFS=$as_save_IFS
24170
24171 -fi
24172 -fi
24173 -AR=$ac_cv_prog_AR
24174 -if test -n "$AR"; then
24175 - { $as_echo "$as_me:$LINENO: result: $AR" >&5
24176 -$as_echo "$AR" >&6; }
24177 -else
24178 - { $as_echo "$as_me:$LINENO: result: no" >&5
24179 -$as_echo "no" >&6; }
24180 -fi
24181
24182
24183 -fi
24184 -if test -z "$ac_cv_prog_AR"; then
24185 - ac_ct_AR=$AR
24186 - # Extract the first word of "ar", so it can be a program name with args.
24187 -set dummy ar; ac_word=$2
24188 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24189 -$as_echo_n "checking for $ac_word... " >&6; }
24190 -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
24191 - $as_echo_n "(cached) " >&6
24192 -else
24193 - if test -n "$ac_ct_AR"; then
24194 - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
24195 -else
24196 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24197 -for as_dir in $PATH
24198 -do
24199 - IFS=$as_save_IFS
24200 - test -z "$as_dir" && as_dir=.
24201 - for ac_exec_ext in '' $ac_executable_extensions; do
24202 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24203 - ac_cv_prog_ac_ct_AR="ar"
24204 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24205 - break 2
24206 - fi
24207 -done
24208 -done
24209 -IFS=$as_save_IFS
24210
24211 -fi
24212 -fi
24213 -ac_ct_AR=$ac_cv_prog_ac_ct_AR
24214 -if test -n "$ac_ct_AR"; then
24215 - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
24216 -$as_echo "$ac_ct_AR" >&6; }
24217 -else
24218 - { $as_echo "$as_me:$LINENO: result: no" >&5
24219 -$as_echo "no" >&6; }
24220 -fi
24221
24222 - if test "x$ac_ct_AR" = x; then
24223 - AR="false"
24224 - else
24225 - case $cross_compiling:$ac_tool_warned in
24226 -yes:)
24227 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24228 -whose name does not start with the host triplet. If you think this
24229 -configuration is useful to you, please write to autoconf@gnu.org." >&5
24230 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24231 -whose name does not start with the host triplet. If you think this
24232 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24233 -ac_tool_warned=yes ;;
24234 -esac
24235 - AR=$ac_ct_AR
24236 - fi
24237 -else
24238 - AR="$ac_cv_prog_AR"
24239 +
24240 +
24241 +if test -n "${ZSH_VERSION+set}" ; then
24242 + setopt NO_GLOB_SUBST
24243 fi
24244
24245 -if test -n "$ac_tool_prefix"; then
24246 - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24247 -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
24248 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24249 -$as_echo_n "checking for $ac_word... " >&6; }
24250 -if test "${ac_cv_prog_RANLIB+set}" = set; then
24251 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
24252 +$as_echo_n "checking for objdir... " >&6; }
24253 +if ${lt_cv_objdir+:} false; then :
24254 $as_echo_n "(cached) " >&6
24255 else
24256 - if test -n "$RANLIB"; then
24257 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
24258 + rm -f .libs 2>/dev/null
24259 +mkdir .libs 2>/dev/null
24260 +if test -d .libs; then
24261 + lt_cv_objdir=.libs
24262 else
24263 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24264 -for as_dir in $PATH
24265 -do
24266 - IFS=$as_save_IFS
24267 - test -z "$as_dir" && as_dir=.
24268 - for ac_exec_ext in '' $ac_executable_extensions; do
24269 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24270 - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
24271 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24272 - break 2
24273 - fi
24274 -done
24275 -done
24276 -IFS=$as_save_IFS
24277 -
24278 -fi
24279 + # MS-DOS does not allow filenames that begin with a dot.
24280 + lt_cv_objdir=_libs
24281 fi
24282 -RANLIB=$ac_cv_prog_RANLIB
24283 -if test -n "$RANLIB"; then
24284 - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
24285 -$as_echo "$RANLIB" >&6; }
24286 -else
24287 - { $as_echo "$as_me:$LINENO: result: no" >&5
24288 -$as_echo "no" >&6; }
24289 +rmdir .libs 2>/dev/null
24290 fi
24291 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
24292 +$as_echo "$lt_cv_objdir" >&6; }
24293 +objdir=$lt_cv_objdir
24294
24295
24296 -fi
24297 -if test -z "$ac_cv_prog_RANLIB"; then
24298 - ac_ct_RANLIB=$RANLIB
24299 - # Extract the first word of "ranlib", so it can be a program name with args.
24300 -set dummy ranlib; ac_word=$2
24301 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24302 -$as_echo_n "checking for $ac_word... " >&6; }
24303 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
24304 - $as_echo_n "(cached) " >&6
24305 -else
24306 - if test -n "$ac_ct_RANLIB"; then
24307 - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
24308 -else
24309 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24310 -for as_dir in $PATH
24311 -do
24312 - IFS=$as_save_IFS
24313 - test -z "$as_dir" && as_dir=.
24314 - for ac_exec_ext in '' $ac_executable_extensions; do
24315 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24316 - ac_cv_prog_ac_ct_RANLIB="ranlib"
24317 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24318 - break 2
24319 - fi
24320 -done
24321 -done
24322 -IFS=$as_save_IFS
24323
24324 -fi
24325 -fi
24326 -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
24327 -if test -n "$ac_ct_RANLIB"; then
24328 - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
24329 -$as_echo "$ac_ct_RANLIB" >&6; }
24330 -else
24331 - { $as_echo "$as_me:$LINENO: result: no" >&5
24332 -$as_echo "no" >&6; }
24333 -fi
24334
24335 - if test "x$ac_ct_RANLIB" = x; then
24336 - RANLIB=":"
24337 - else
24338 - case $cross_compiling:$ac_tool_warned in
24339 -yes:)
24340 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24341 -whose name does not start with the host triplet. If you think this
24342 -configuration is useful to you, please write to autoconf@gnu.org." >&5
24343 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24344 -whose name does not start with the host triplet. If you think this
24345 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24346 -ac_tool_warned=yes ;;
24347 -esac
24348 - RANLIB=$ac_ct_RANLIB
24349 - fi
24350 -else
24351 - RANLIB="$ac_cv_prog_RANLIB"
24352 -fi
24353
24354 -if test -n "$ac_tool_prefix"; then
24355 - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24356 -set dummy ${ac_tool_prefix}strip; ac_word=$2
24357 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24358 -$as_echo_n "checking for $ac_word... " >&6; }
24359 -if test "${ac_cv_prog_STRIP+set}" = set; then
24360 - $as_echo_n "(cached) " >&6
24361 -else
24362 - if test -n "$STRIP"; then
24363 - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
24364 -else
24365 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24366 -for as_dir in $PATH
24367 -do
24368 - IFS=$as_save_IFS
24369 - test -z "$as_dir" && as_dir=.
24370 - for ac_exec_ext in '' $ac_executable_extensions; do
24371 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24372 - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
24373 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24374 - break 2
24375 - fi
24376 -done
24377 -done
24378 -IFS=$as_save_IFS
24379 +cat >>confdefs.h <<_ACEOF
24380 +#define LT_OBJDIR "$lt_cv_objdir/"
24381 +_ACEOF
24382
24383 -fi
24384 -fi
24385 -STRIP=$ac_cv_prog_STRIP
24386 -if test -n "$STRIP"; then
24387 - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
24388 -$as_echo "$STRIP" >&6; }
24389 -else
24390 - { $as_echo "$as_me:$LINENO: result: no" >&5
24391 -$as_echo "no" >&6; }
24392 -fi
24393
24394
24395 -fi
24396 -if test -z "$ac_cv_prog_STRIP"; then
24397 - ac_ct_STRIP=$STRIP
24398 - # Extract the first word of "strip", so it can be a program name with args.
24399 -set dummy strip; ac_word=$2
24400 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24401 -$as_echo_n "checking for $ac_word... " >&6; }
24402 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
24403 - $as_echo_n "(cached) " >&6
24404 -else
24405 - if test -n "$ac_ct_STRIP"; then
24406 - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
24407 -else
24408 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24409 -for as_dir in $PATH
24410 -do
24411 - IFS=$as_save_IFS
24412 - test -z "$as_dir" && as_dir=.
24413 - for ac_exec_ext in '' $ac_executable_extensions; do
24414 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24415 - ac_cv_prog_ac_ct_STRIP="strip"
24416 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24417 - break 2
24418 +
24419 +case $host_os in
24420 +aix3*)
24421 + # AIX sometimes has problems with the GCC collect2 program. For some
24422 + # reason, if we set the COLLECT_NAMES environment variable, the problems
24423 + # vanish in a puff of smoke.
24424 + if test "X${COLLECT_NAMES+set}" != Xset; then
24425 + COLLECT_NAMES=
24426 + export COLLECT_NAMES
24427 fi
24428 -done
24429 -done
24430 -IFS=$as_save_IFS
24431 + ;;
24432 +esac
24433
24434 -fi
24435 -fi
24436 -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24437 -if test -n "$ac_ct_STRIP"; then
24438 - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
24439 -$as_echo "$ac_ct_STRIP" >&6; }
24440 -else
24441 - { $as_echo "$as_me:$LINENO: result: no" >&5
24442 -$as_echo "no" >&6; }
24443 -fi
24444 +# Global variables:
24445 +ofile=libtool
24446 +can_build_shared=yes
24447
24448 - if test "x$ac_ct_STRIP" = x; then
24449 - STRIP=":"
24450 - else
24451 - case $cross_compiling:$ac_tool_warned in
24452 -yes:)
24453 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24454 -whose name does not start with the host triplet. If you think this
24455 -configuration is useful to you, please write to autoconf@gnu.org." >&5
24456 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24457 -whose name does not start with the host triplet. If you think this
24458 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24459 -ac_tool_warned=yes ;;
24460 -esac
24461 - STRIP=$ac_ct_STRIP
24462 - fi
24463 -else
24464 - STRIP="$ac_cv_prog_STRIP"
24465 -fi
24466 +# All known linkers require a `.a' archive for static linking (except MSVC,
24467 +# which needs '.lib').
24468 +libext=a
24469
24470 +with_gnu_ld="$lt_cv_prog_gnu_ld"
24471
24472 old_CC="$CC"
24473 old_CFLAGS="$CFLAGS"
24474
24475 # Set sane defaults for various variables
24476 -test -z "$AR" && AR=ar
24477 -test -z "$AR_FLAGS" && AR_FLAGS=cru
24478 -test -z "$AS" && AS=as
24479 test -z "$CC" && CC=cc
24480 test -z "$LTCC" && LTCC=$CC
24481 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
24482 -test -z "$DLLTOOL" && DLLTOOL=dlltool
24483 test -z "$LD" && LD=ld
24484 -test -z "$LN_S" && LN_S="ln -s"
24485 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
24486 -test -z "$NM" && NM=nm
24487 -test -z "$SED" && SED=sed
24488 -test -z "$OBJDUMP" && OBJDUMP=objdump
24489 -test -z "$RANLIB" && RANLIB=:
24490 -test -z "$STRIP" && STRIP=:
24491 test -z "$ac_objext" && ac_objext=o
24492
24493 -# Determine commands to create old-style static archives.
24494 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
24495 -old_postinstall_cmds='chmod 644 $oldlib'
24496 -old_postuninstall_cmds=
24497 -
24498 -if test -n "$RANLIB"; then
24499 - case $host_os in
24500 - openbsd*)
24501 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
24502 - ;;
24503 - *)
24504 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
24505 - ;;
24506 - esac
24507 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
24508 -fi
24509 -
24510 for cc_temp in $compiler""; do
24511 case $cc_temp in
24512 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24513 @@ -6435,16 +8173,17 @@ for cc_temp in $compiler""; do
24514 *) break;;
24515 esac
24516 done
24517 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24518 +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24519
24520
24521 # Only perform the check for file, if the check method requires it
24522 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
24523 case $deplibs_check_method in
24524 file_magic*)
24525 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
24526 - { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
24527 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
24528 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
24529 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
24530 +if ${lt_cv_path_MAGIC_CMD+:} false; then :
24531 $as_echo_n "(cached) " >&6
24532 else
24533 case $MAGIC_CMD in
24534 @@ -6468,449 +8207,118 @@ else
24535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
24536 $EGREP "$file_magic_regex" > /dev/null; then
24537 :
24538 - else
24539 - cat <<EOF 1>&2
24540 -
24541 -*** Warning: the command libtool uses to detect shared libraries,
24542 -*** $file_magic_cmd, produces output that libtool cannot recognize.
24543 -*** The result is that libtool may fail to recognize shared libraries
24544 -*** as such. This will affect the creation of libtool libraries that
24545 -*** depend on shared libraries, but programs linked with such libtool
24546 -*** libraries will work regardless of this problem. Nevertheless, you
24547 -*** may want to report the problem to your system manager and/or to
24548 -*** bug-libtool@gnu.org
24549 -
24550 -EOF
24551 - fi ;;
24552 - esac
24553 - fi
24554 - break
24555 - fi
24556 - done
24557 - IFS="$lt_save_ifs"
24558 - MAGIC_CMD="$lt_save_MAGIC_CMD"
24559 - ;;
24560 -esac
24561 -fi
24562 -
24563 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
24564 -if test -n "$MAGIC_CMD"; then
24565 - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
24566 -$as_echo "$MAGIC_CMD" >&6; }
24567 -else
24568 - { $as_echo "$as_me:$LINENO: result: no" >&5
24569 -$as_echo "no" >&6; }
24570 -fi
24571 -
24572 -if test -z "$lt_cv_path_MAGIC_CMD"; then
24573 - if test -n "$ac_tool_prefix"; then
24574 - { $as_echo "$as_me:$LINENO: checking for file" >&5
24575 -$as_echo_n "checking for file... " >&6; }
24576 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
24577 - $as_echo_n "(cached) " >&6
24578 -else
24579 - case $MAGIC_CMD in
24580 -[\\/*] | ?:[\\/]*)
24581 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
24582 - ;;
24583 -*)
24584 - lt_save_MAGIC_CMD="$MAGIC_CMD"
24585 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
24586 - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
24587 - for ac_dir in $ac_dummy; do
24588 - IFS="$lt_save_ifs"
24589 - test -z "$ac_dir" && ac_dir=.
24590 - if test -f $ac_dir/file; then
24591 - lt_cv_path_MAGIC_CMD="$ac_dir/file"
24592 - if test -n "$file_magic_test_file"; then
24593 - case $deplibs_check_method in
24594 - "file_magic "*)
24595 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
24596 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
24597 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
24598 - $EGREP "$file_magic_regex" > /dev/null; then
24599 - :
24600 - else
24601 - cat <<EOF 1>&2
24602 -
24603 -*** Warning: the command libtool uses to detect shared libraries,
24604 -*** $file_magic_cmd, produces output that libtool cannot recognize.
24605 -*** The result is that libtool may fail to recognize shared libraries
24606 -*** as such. This will affect the creation of libtool libraries that
24607 -*** depend on shared libraries, but programs linked with such libtool
24608 -*** libraries will work regardless of this problem. Nevertheless, you
24609 -*** may want to report the problem to your system manager and/or to
24610 -*** bug-libtool@gnu.org
24611 -
24612 -EOF
24613 - fi ;;
24614 - esac
24615 - fi
24616 - break
24617 - fi
24618 - done
24619 - IFS="$lt_save_ifs"
24620 - MAGIC_CMD="$lt_save_MAGIC_CMD"
24621 - ;;
24622 -esac
24623 -fi
24624 -
24625 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
24626 -if test -n "$MAGIC_CMD"; then
24627 - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
24628 -$as_echo "$MAGIC_CMD" >&6; }
24629 -else
24630 - { $as_echo "$as_me:$LINENO: result: no" >&5
24631 -$as_echo "no" >&6; }
24632 -fi
24633 -
24634 - else
24635 - MAGIC_CMD=:
24636 - fi
24637 -fi
24638 -
24639 - fi
24640 - ;;
24641 -esac
24642 -
24643 -
24644 - case $host_os in
24645 - rhapsody* | darwin*)
24646 - if test -n "$ac_tool_prefix"; then
24647 - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
24648 -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
24649 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24650 -$as_echo_n "checking for $ac_word... " >&6; }
24651 -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
24652 - $as_echo_n "(cached) " >&6
24653 -else
24654 - if test -n "$DSYMUTIL"; then
24655 - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
24656 -else
24657 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24658 -for as_dir in $PATH
24659 -do
24660 - IFS=$as_save_IFS
24661 - test -z "$as_dir" && as_dir=.
24662 - for ac_exec_ext in '' $ac_executable_extensions; do
24663 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24664 - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
24665 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24666 - break 2
24667 - fi
24668 -done
24669 -done
24670 -IFS=$as_save_IFS
24671 -
24672 -fi
24673 -fi
24674 -DSYMUTIL=$ac_cv_prog_DSYMUTIL
24675 -if test -n "$DSYMUTIL"; then
24676 - { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
24677 -$as_echo "$DSYMUTIL" >&6; }
24678 -else
24679 - { $as_echo "$as_me:$LINENO: result: no" >&5
24680 -$as_echo "no" >&6; }
24681 -fi
24682 -
24683 -
24684 -fi
24685 -if test -z "$ac_cv_prog_DSYMUTIL"; then
24686 - ac_ct_DSYMUTIL=$DSYMUTIL
24687 - # Extract the first word of "dsymutil", so it can be a program name with args.
24688 -set dummy dsymutil; ac_word=$2
24689 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24690 -$as_echo_n "checking for $ac_word... " >&6; }
24691 -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
24692 - $as_echo_n "(cached) " >&6
24693 -else
24694 - if test -n "$ac_ct_DSYMUTIL"; then
24695 - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
24696 -else
24697 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24698 -for as_dir in $PATH
24699 -do
24700 - IFS=$as_save_IFS
24701 - test -z "$as_dir" && as_dir=.
24702 - for ac_exec_ext in '' $ac_executable_extensions; do
24703 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24704 - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
24705 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24706 - break 2
24707 - fi
24708 -done
24709 -done
24710 -IFS=$as_save_IFS
24711 -
24712 -fi
24713 -fi
24714 -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
24715 -if test -n "$ac_ct_DSYMUTIL"; then
24716 - { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
24717 -$as_echo "$ac_ct_DSYMUTIL" >&6; }
24718 -else
24719 - { $as_echo "$as_me:$LINENO: result: no" >&5
24720 -$as_echo "no" >&6; }
24721 -fi
24722 -
24723 - if test "x$ac_ct_DSYMUTIL" = x; then
24724 - DSYMUTIL=":"
24725 - else
24726 - case $cross_compiling:$ac_tool_warned in
24727 -yes:)
24728 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24729 -whose name does not start with the host triplet. If you think this
24730 -configuration is useful to you, please write to autoconf@gnu.org." >&5
24731 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24732 -whose name does not start with the host triplet. If you think this
24733 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24734 -ac_tool_warned=yes ;;
24735 -esac
24736 - DSYMUTIL=$ac_ct_DSYMUTIL
24737 - fi
24738 -else
24739 - DSYMUTIL="$ac_cv_prog_DSYMUTIL"
24740 -fi
24741 -
24742 - if test -n "$ac_tool_prefix"; then
24743 - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
24744 -set dummy ${ac_tool_prefix}nmedit; ac_word=$2
24745 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24746 -$as_echo_n "checking for $ac_word... " >&6; }
24747 -if test "${ac_cv_prog_NMEDIT+set}" = set; then
24748 - $as_echo_n "(cached) " >&6
24749 -else
24750 - if test -n "$NMEDIT"; then
24751 - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
24752 -else
24753 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24754 -for as_dir in $PATH
24755 -do
24756 - IFS=$as_save_IFS
24757 - test -z "$as_dir" && as_dir=.
24758 - for ac_exec_ext in '' $ac_executable_extensions; do
24759 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24760 - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
24761 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24762 - break 2
24763 - fi
24764 -done
24765 -done
24766 -IFS=$as_save_IFS
24767 -
24768 -fi
24769 -fi
24770 -NMEDIT=$ac_cv_prog_NMEDIT
24771 -if test -n "$NMEDIT"; then
24772 - { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
24773 -$as_echo "$NMEDIT" >&6; }
24774 -else
24775 - { $as_echo "$as_me:$LINENO: result: no" >&5
24776 -$as_echo "no" >&6; }
24777 -fi
24778 + else
24779 + cat <<_LT_EOF 1>&2
24780
24781 +*** Warning: the command libtool uses to detect shared libraries,
24782 +*** $file_magic_cmd, produces output that libtool cannot recognize.
24783 +*** The result is that libtool may fail to recognize shared libraries
24784 +*** as such. This will affect the creation of libtool libraries that
24785 +*** depend on shared libraries, but programs linked with such libtool
24786 +*** libraries will work regardless of this problem. Nevertheless, you
24787 +*** may want to report the problem to your system manager and/or to
24788 +*** bug-libtool@gnu.org
24789
24790 +_LT_EOF
24791 + fi ;;
24792 + esac
24793 + fi
24794 + break
24795 + fi
24796 + done
24797 + IFS="$lt_save_ifs"
24798 + MAGIC_CMD="$lt_save_MAGIC_CMD"
24799 + ;;
24800 +esac
24801 fi
24802 -if test -z "$ac_cv_prog_NMEDIT"; then
24803 - ac_ct_NMEDIT=$NMEDIT
24804 - # Extract the first word of "nmedit", so it can be a program name with args.
24805 -set dummy nmedit; ac_word=$2
24806 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24807 -$as_echo_n "checking for $ac_word... " >&6; }
24808 -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
24809 - $as_echo_n "(cached) " >&6
24810 -else
24811 - if test -n "$ac_ct_NMEDIT"; then
24812 - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
24813 -else
24814 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24815 -for as_dir in $PATH
24816 -do
24817 - IFS=$as_save_IFS
24818 - test -z "$as_dir" && as_dir=.
24819 - for ac_exec_ext in '' $ac_executable_extensions; do
24820 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24821 - ac_cv_prog_ac_ct_NMEDIT="nmedit"
24822 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24823 - break 2
24824 - fi
24825 -done
24826 -done
24827 -IFS=$as_save_IFS
24828
24829 -fi
24830 -fi
24831 -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
24832 -if test -n "$ac_ct_NMEDIT"; then
24833 - { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
24834 -$as_echo "$ac_ct_NMEDIT" >&6; }
24835 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
24836 +if test -n "$MAGIC_CMD"; then
24837 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
24838 +$as_echo "$MAGIC_CMD" >&6; }
24839 else
24840 - { $as_echo "$as_me:$LINENO: result: no" >&5
24841 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24842 $as_echo "no" >&6; }
24843 fi
24844
24845 - if test "x$ac_ct_NMEDIT" = x; then
24846 - NMEDIT=":"
24847 - else
24848 - case $cross_compiling:$ac_tool_warned in
24849 -yes:)
24850 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24851 -whose name does not start with the host triplet. If you think this
24852 -configuration is useful to you, please write to autoconf@gnu.org." >&5
24853 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24854 -whose name does not start with the host triplet. If you think this
24855 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24856 -ac_tool_warned=yes ;;
24857 -esac
24858 - NMEDIT=$ac_ct_NMEDIT
24859 - fi
24860 -else
24861 - NMEDIT="$ac_cv_prog_NMEDIT"
24862 -fi
24863
24864
24865 - { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
24866 -$as_echo_n "checking for -single_module linker flag... " >&6; }
24867 -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
24868 - $as_echo_n "(cached) " >&6
24869 -else
24870 - lt_cv_apple_cc_single_mod=no
24871 - if test -z "${LT_MULTI_MODULE}"; then
24872 - # By default we will add the -single_module flag. You can override
24873 - # by either setting the environment variable LT_MULTI_MODULE
24874 - # non-empty at configure time, or by adding -multi_module to the
24875 - # link flags.
24876 - echo "int foo(void){return 1;}" > conftest.c
24877 - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
24878 - -dynamiclib ${wl}-single_module conftest.c
24879 - if test -f libconftest.dylib; then
24880 - lt_cv_apple_cc_single_mod=yes
24881 - rm -rf libconftest.dylib*
24882 - fi
24883 - rm conftest.c
24884 - fi
24885 -fi
24886 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
24887 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
24888 - { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
24889 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
24890 -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
24891 - $as_echo_n "(cached) " >&6
24892 -else
24893 - lt_cv_ld_exported_symbols_list=no
24894 - save_LDFLAGS=$LDFLAGS
24895 - echo "_main" > conftest.sym
24896 - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
24897 - cat >conftest.$ac_ext <<_ACEOF
24898 -/* confdefs.h. */
24899 -_ACEOF
24900 -cat confdefs.h >>conftest.$ac_ext
24901 -cat >>conftest.$ac_ext <<_ACEOF
24902 -/* end confdefs.h. */
24903
24904 -int
24905 -main ()
24906 -{
24907
24908 - ;
24909 - return 0;
24910 -}
24911 -_ACEOF
24912 -rm -f conftest.$ac_objext conftest$ac_exeext
24913 -if { (ac_try="$ac_link"
24914 -case "(($ac_try" in
24915 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24916 - *) ac_try_echo=$ac_try;;
24917 -esac
24918 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24919 -$as_echo "$ac_try_echo") >&5
24920 - (eval "$ac_link") 2>conftest.er1
24921 - ac_status=$?
24922 - grep -v '^ *+' conftest.er1 >conftest.err
24923 - rm -f conftest.er1
24924 - cat conftest.err >&5
24925 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 - (exit $ac_status); } && {
24927 - test -z "$ac_c_werror_flag" ||
24928 - test ! -s conftest.err
24929 - } && test -s conftest$ac_exeext && {
24930 - test "$cross_compiling" = yes ||
24931 - $as_test_x conftest$ac_exeext
24932 - }; then
24933 - lt_cv_ld_exported_symbols_list=yes
24934 +if test -z "$lt_cv_path_MAGIC_CMD"; then
24935 + if test -n "$ac_tool_prefix"; then
24936 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
24937 +$as_echo_n "checking for file... " >&6; }
24938 +if ${lt_cv_path_MAGIC_CMD+:} false; then :
24939 + $as_echo_n "(cached) " >&6
24940 else
24941 - $as_echo "$as_me: failed program was:" >&5
24942 -sed 's/^/| /' conftest.$ac_ext >&5
24943 -
24944 - lt_cv_ld_exported_symbols_list=no
24945 -fi
24946 + case $MAGIC_CMD in
24947 +[\\/*] | ?:[\\/]*)
24948 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
24949 + ;;
24950 +*)
24951 + lt_save_MAGIC_CMD="$MAGIC_CMD"
24952 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
24953 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
24954 + for ac_dir in $ac_dummy; do
24955 + IFS="$lt_save_ifs"
24956 + test -z "$ac_dir" && ac_dir=.
24957 + if test -f $ac_dir/file; then
24958 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
24959 + if test -n "$file_magic_test_file"; then
24960 + case $deplibs_check_method in
24961 + "file_magic "*)
24962 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
24963 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
24964 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
24965 + $EGREP "$file_magic_regex" > /dev/null; then
24966 + :
24967 + else
24968 + cat <<_LT_EOF 1>&2
24969
24970 -rm -rf conftest.dSYM
24971 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24972 - conftest$ac_exeext conftest.$ac_ext
24973 - LDFLAGS="$save_LDFLAGS"
24974 +*** Warning: the command libtool uses to detect shared libraries,
24975 +*** $file_magic_cmd, produces output that libtool cannot recognize.
24976 +*** The result is that libtool may fail to recognize shared libraries
24977 +*** as such. This will affect the creation of libtool libraries that
24978 +*** depend on shared libraries, but programs linked with such libtool
24979 +*** libraries will work regardless of this problem. Nevertheless, you
24980 +*** may want to report the problem to your system manager and/or to
24981 +*** bug-libtool@gnu.org
24982
24983 -fi
24984 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
24985 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
24986 - case $host_os in
24987 - rhapsody* | darwin1.[0123])
24988 - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
24989 - darwin1.*)
24990 - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
24991 - darwin*)
24992 - # if running on 10.5 or later, the deployment target defaults
24993 - # to the OS version, if on x86, and 10.4, the deployment
24994 - # target defaults to 10.4. Don't you love it?
24995 - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
24996 - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
24997 - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
24998 - 10.[012]*)
24999 - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
25000 - 10.*)
25001 - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
25002 - esac
25003 - ;;
25004 - esac
25005 - if test "$lt_cv_apple_cc_single_mod" = "yes"; then
25006 - _lt_dar_single_mod='$single_module'
25007 - fi
25008 - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
25009 - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
25010 - else
25011 - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
25012 - fi
25013 - if test "$DSYMUTIL" != ":"; then
25014 - _lt_dsymutil="~$DSYMUTIL \$lib || :"
25015 - else
25016 - _lt_dsymutil=
25017 +_LT_EOF
25018 + fi ;;
25019 + esac
25020 + fi
25021 + break
25022 fi
25023 - ;;
25024 - esac
25025 -
25026 -
25027 -enable_dlopen=no
25028 -enable_win32_dll=yes
25029 -
25030 -# Check whether --enable-libtool-lock was given.
25031 -if test "${enable_libtool_lock+set}" = set; then
25032 - enableval=$enable_libtool_lock;
25033 + done
25034 + IFS="$lt_save_ifs"
25035 + MAGIC_CMD="$lt_save_MAGIC_CMD"
25036 + ;;
25037 +esac
25038 fi
25039
25040 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
25041 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
25042 +if test -n "$MAGIC_CMD"; then
25043 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
25044 +$as_echo "$MAGIC_CMD" >&6; }
25045 +else
25046 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25047 +$as_echo "no" >&6; }
25048 +fi
25049
25050
25051 -# Check whether --with-pic was given.
25052 -if test "${with_pic+set}" = set; then
25053 - withval=$with_pic; pic_mode="$withval"
25054 -else
25055 - pic_mode=default
25056 + else
25057 + MAGIC_CMD=:
25058 + fi
25059 fi
25060
25061 -test -z "$pic_mode" && pic_mode=default
25062 + fi
25063 + ;;
25064 +esac
25065
25066 # Use C for the default configuration in the libtool script
25067 -tagname=
25068 +
25069 lt_save_CC="$CC"
25070 ac_ext=c
25071 ac_cpp='$CPP $CPPFLAGS'
25072 @@ -6933,6 +8341,11 @@ lt_simple_compile_test_code="int some_variable = 0;"
25073 lt_simple_link_test_code='int main(){return(0);}'
25074
25075
25076 +
25077 +
25078 +
25079 +
25080 +
25081 # If no C compiler was specified, use CC.
25082 LTCC=${LTCC-"$CC"}
25083
25084 @@ -6942,35 +8355,47 @@ LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25085 # Allow CC to be a program name with arguments.
25086 compiler=$CC
25087
25088 +# Save the default compiler, since it gets overwritten when the other
25089 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
25090 +compiler_DEFAULT=$CC
25091
25092 # save warnings/boilerplate of simple test code
25093 ac_outfile=conftest.$ac_objext
25094 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
25095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25096 _lt_compiler_boilerplate=`cat conftest.err`
25097 -$rm conftest*
25098 +$RM conftest*
25099
25100 ac_outfile=conftest.$ac_objext
25101 echo "$lt_simple_link_test_code" >conftest.$ac_ext
25102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25103 _lt_linker_boilerplate=`cat conftest.err`
25104 -$rm -r conftest*
25105 +$RM -r conftest*
25106
25107
25108 +## CAVEAT EMPTOR:
25109 +## There is no encapsulation within the following macros, do not change
25110 +## the running order or otherwise move them around unless you know exactly
25111 +## what you are doing...
25112 +if test -n "$compiler"; then
25113
25114 lt_prog_compiler_no_builtin_flag=
25115
25116 if test "$GCC" = yes; then
25117 - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
25118 -
25119 + case $cc_basename in
25120 + nvcc*)
25121 + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
25122 + *)
25123 + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
25124 + esac
25125
25126 -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25127 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25128 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
25129 -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
25130 +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
25131 $as_echo_n "(cached) " >&6
25132 else
25133 lt_cv_prog_compiler_rtti_exceptions=no
25134 - ac_outfile=conftest.$ac_objext
25135 + ac_outfile=conftest.$ac_objext
25136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25137 lt_compiler_flag="-fno-rtti -fno-exceptions"
25138 # Insert the option either (1) after the last *FLAGS variable, or
25139 @@ -6982,24 +8407,24 @@ else
25140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25142 -e 's:$: $lt_compiler_flag:'`
25143 - (eval echo "\"\$as_me:6985: $lt_compile\"" >&5)
25144 + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25145 (eval "$lt_compile" 2>conftest.err)
25146 ac_status=$?
25147 cat conftest.err >&5
25148 - echo "$as_me:6989: \$? = $ac_status" >&5
25149 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 if (exit $ac_status) && test -s "$ac_outfile"; then
25151 # The compiler can only warn and ignore the option if not recognized
25152 # So say no if there are warnings other than the usual output.
25153 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
25154 + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
25155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25157 lt_cv_prog_compiler_rtti_exceptions=yes
25158 fi
25159 fi
25160 - $rm conftest*
25161 + $RM conftest*
25162
25163 fi
25164 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25165 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25166 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
25167
25168 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
25169 @@ -7010,12 +8435,15 @@ fi
25170
25171 fi
25172
25173 -lt_prog_compiler_wl=
25174 +
25175 +
25176 +
25177 +
25178 +
25179 + lt_prog_compiler_wl=
25180 lt_prog_compiler_pic=
25181 lt_prog_compiler_static=
25182
25183 -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25184 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25185
25186 if test "$GCC" = yes; then
25187 lt_prog_compiler_wl='-Wl,'
25188 @@ -7031,17 +8459,25 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25189 ;;
25190
25191 amigaos*)
25192 - # FIXME: we need at least 68020 code to build shared libraries, but
25193 - # adding the `-m68020' flag to GCC prevents building anything better,
25194 - # like `-m68040'.
25195 - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
25196 + case $host_cpu in
25197 + powerpc)
25198 + # see comment about AmigaOS4 .so support
25199 + lt_prog_compiler_pic='-fPIC'
25200 + ;;
25201 + m68k)
25202 + # FIXME: we need at least 68020 code to build shared libraries, but
25203 + # adding the `-m68020' flag to GCC prevents building anything better,
25204 + # like `-m68040'.
25205 + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
25206 + ;;
25207 + esac
25208 ;;
25209
25210 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25211 # PIC is the default for these OSes.
25212 ;;
25213
25214 - mingw* | cygwin* | pw32* | os2*)
25215 + mingw* | cygwin* | pw32* | os2* | cegcc*)
25216 # This hack is so that the source file can tell whether it is being
25217 # built for inclusion in a dll (and should export symbols for example).
25218 # Although the cygwin gcc ignores -fPIC, still need this for old-style
25219 @@ -7055,6 +8491,26 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25220 lt_prog_compiler_pic='-fno-common'
25221 ;;
25222
25223 + haiku*)
25224 + # PIC is the default for Haiku.
25225 + # The "-static" flag exists, but is broken.
25226 + lt_prog_compiler_static=
25227 + ;;
25228 +
25229 + hpux*)
25230 + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
25231 + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
25232 + # sets the default TLS model and affects inlining.
25233 + case $host_cpu in
25234 + hppa*64*)
25235 + # +Z the default
25236 + ;;
25237 + *)
25238 + lt_prog_compiler_pic='-fPIC'
25239 + ;;
25240 + esac
25241 + ;;
25242 +
25243 interix[3-9]*)
25244 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
25245 # Instead, we relocate shared libraries at runtime.
25246 @@ -7067,29 +8523,31 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25247 enable_shared=no
25248 ;;
25249
25250 + *nto* | *qnx*)
25251 + # QNX uses GNU C++, but need to define -shared option too, otherwise
25252 + # it will coredump.
25253 + lt_prog_compiler_pic='-fPIC -shared'
25254 + ;;
25255 +
25256 sysv4*MP*)
25257 if test -d /usr/nec; then
25258 lt_prog_compiler_pic=-Kconform_pic
25259 fi
25260 ;;
25261
25262 - hpux*)
25263 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25264 - # not for PA HP-UX.
25265 - case $host_cpu in
25266 - hppa*64*|ia64*)
25267 - # +Z the default
25268 - ;;
25269 - *)
25270 - lt_prog_compiler_pic='-fPIC'
25271 - ;;
25272 - esac
25273 - ;;
25274 -
25275 *)
25276 lt_prog_compiler_pic='-fPIC'
25277 ;;
25278 esac
25279 +
25280 + case $cc_basename in
25281 + nvcc*) # Cuda Compiler Driver 2.2
25282 + lt_prog_compiler_wl='-Xlinker '
25283 + if test -n "$lt_prog_compiler_pic"; then
25284 + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
25285 + fi
25286 + ;;
25287 + esac
25288 else
25289 # PORTME Check for flag to pass linker flags through the system compiler.
25290 case $host_os in
25291 @@ -7102,18 +8560,8 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25292 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
25293 fi
25294 ;;
25295 - darwin*)
25296 - # PIC is the default on this platform
25297 - # Common symbols not allowed in MH_DYLIB files
25298 - case $cc_basename in
25299 - xlc*)
25300 - lt_prog_compiler_pic='-qnocommon'
25301 - lt_prog_compiler_wl='-Wl,'
25302 - ;;
25303 - esac
25304 - ;;
25305
25306 - mingw* | cygwin* | pw32* | os2*)
25307 + mingw* | cygwin* | pw32* | os2* | cegcc*)
25308 # This hack is so that the source file can tell whether it is being
25309 # built for inclusion in a dll (and should export symbols for example).
25310 lt_prog_compiler_pic='-DDLL_EXPORT'
25311 @@ -7141,19 +8589,34 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25312 lt_prog_compiler_static='-non_shared'
25313 ;;
25314
25315 - newsos6)
25316 - lt_prog_compiler_pic='-KPIC'
25317 - lt_prog_compiler_static='-Bstatic'
25318 - ;;
25319 -
25320 - linux* | k*bsd*-gnu)
25321 + linux* | k*bsd*-gnu | kopensolaris*-gnu)
25322 case $cc_basename in
25323 - icc* | ecc*)
25324 + # old Intel for x86_64 which still supported -KPIC.
25325 + ecc*)
25326 lt_prog_compiler_wl='-Wl,'
25327 lt_prog_compiler_pic='-KPIC'
25328 lt_prog_compiler_static='-static'
25329 ;;
25330 - pgcc* | pgf77* | pgf90* | pgf95*)
25331 + # icc used to be incompatible with GCC.
25332 + # ICC 10 doesn't accept -KPIC any more.
25333 + icc* | ifort*)
25334 + lt_prog_compiler_wl='-Wl,'
25335 + lt_prog_compiler_pic='-fPIC'
25336 + lt_prog_compiler_static='-static'
25337 + ;;
25338 + # Lahey Fortran 8.1.
25339 + lf95*)
25340 + lt_prog_compiler_wl='-Wl,'
25341 + lt_prog_compiler_pic='--shared'
25342 + lt_prog_compiler_static='--static'
25343 + ;;
25344 + nagfor*)
25345 + # NAG Fortran compiler
25346 + lt_prog_compiler_wl='-Wl,-Wl,,'
25347 + lt_prog_compiler_pic='-PIC'
25348 + lt_prog_compiler_static='-Bstatic'
25349 + ;;
25350 + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
25351 # Portland Group compilers (*not* the Pentium gcc compiler,
25352 # which looks to be a dead project)
25353 lt_prog_compiler_wl='-Wl,'
25354 @@ -7165,25 +8628,57 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25355 # All Alpha code is PIC.
25356 lt_prog_compiler_static='-non_shared'
25357 ;;
25358 + xl* | bgxl* | bgf* | mpixl*)
25359 + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
25360 + lt_prog_compiler_wl='-Wl,'
25361 + lt_prog_compiler_pic='-qpic'
25362 + lt_prog_compiler_static='-qstaticlink'
25363 + ;;
25364 *)
25365 - case `$CC -V 2>&1 | sed 5q` in
25366 + case `$CC -V 2>&1 | sed 5q` in
25367 + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
25368 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
25369 + lt_prog_compiler_pic='-KPIC'
25370 + lt_prog_compiler_static='-Bstatic'
25371 + lt_prog_compiler_wl=''
25372 + ;;
25373 + *Sun\ F* | *Sun*Fortran*)
25374 + lt_prog_compiler_pic='-KPIC'
25375 + lt_prog_compiler_static='-Bstatic'
25376 + lt_prog_compiler_wl='-Qoption ld '
25377 + ;;
25378 *Sun\ C*)
25379 # Sun C 5.9
25380 lt_prog_compiler_pic='-KPIC'
25381 lt_prog_compiler_static='-Bstatic'
25382 lt_prog_compiler_wl='-Wl,'
25383 ;;
25384 - *Sun\ F*)
25385 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
25386 - lt_prog_compiler_pic='-KPIC'
25387 + *Intel*\ [CF]*Compiler*)
25388 + lt_prog_compiler_wl='-Wl,'
25389 + lt_prog_compiler_pic='-fPIC'
25390 + lt_prog_compiler_static='-static'
25391 + ;;
25392 + *Portland\ Group*)
25393 + lt_prog_compiler_wl='-Wl,'
25394 + lt_prog_compiler_pic='-fpic'
25395 lt_prog_compiler_static='-Bstatic'
25396 - lt_prog_compiler_wl=''
25397 ;;
25398 esac
25399 ;;
25400 esac
25401 ;;
25402
25403 + newsos6)
25404 + lt_prog_compiler_pic='-KPIC'
25405 + lt_prog_compiler_static='-Bstatic'
25406 + ;;
25407 +
25408 + *nto* | *qnx*)
25409 + # QNX uses GNU C++, but need to define -shared option too, otherwise
25410 + # it will coredump.
25411 + lt_prog_compiler_pic='-fPIC -shared'
25412 + ;;
25413 +
25414 osf3* | osf4* | osf5*)
25415 lt_prog_compiler_wl='-Wl,'
25416 # All OSF/1 code is PIC.
25417 @@ -7198,7 +8693,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25418 lt_prog_compiler_pic='-KPIC'
25419 lt_prog_compiler_static='-Bstatic'
25420 case $cc_basename in
25421 - f77* | f90* | f95*)
25422 + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
25423 lt_prog_compiler_wl='-Qoption ld ';;
25424 *)
25425 lt_prog_compiler_wl='-Wl,';;
25426 @@ -7246,21 +8741,38 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25427 esac
25428 fi
25429
25430 -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
25431 -$as_echo "$lt_prog_compiler_pic" >&6; }
25432 +case $host_os in
25433 + # For platforms which do not support PIC, -DPIC is meaningless:
25434 + *djgpp*)
25435 + lt_prog_compiler_pic=
25436 + ;;
25437 + *)
25438 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
25439 + ;;
25440 +esac
25441 +
25442 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
25443 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25444 +if ${lt_cv_prog_compiler_pic+:} false; then :
25445 + $as_echo_n "(cached) " >&6
25446 +else
25447 + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
25448 +fi
25449 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
25450 +$as_echo "$lt_cv_prog_compiler_pic" >&6; }
25451 +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
25452
25453 #
25454 # Check to make sure the PIC flag actually works.
25455 #
25456 if test -n "$lt_prog_compiler_pic"; then
25457 -
25458 -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
25459 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
25460 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
25461 -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
25462 +if ${lt_cv_prog_compiler_pic_works+:} false; then :
25463 $as_echo_n "(cached) " >&6
25464 else
25465 lt_cv_prog_compiler_pic_works=no
25466 - ac_outfile=conftest.$ac_objext
25467 + ac_outfile=conftest.$ac_objext
25468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25469 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
25470 # Insert the option either (1) after the last *FLAGS variable, or
25471 @@ -7272,24 +8784,24 @@ else
25472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25474 -e 's:$: $lt_compiler_flag:'`
25475 - (eval echo "\"\$as_me:7275: $lt_compile\"" >&5)
25476 + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25477 (eval "$lt_compile" 2>conftest.err)
25478 ac_status=$?
25479 cat conftest.err >&5
25480 - echo "$as_me:7279: \$? = $ac_status" >&5
25481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 if (exit $ac_status) && test -s "$ac_outfile"; then
25483 # The compiler can only warn and ignore the option if not recognized
25484 # So say no if there are warnings other than the usual output.
25485 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
25486 + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
25487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25489 lt_cv_prog_compiler_pic_works=yes
25490 fi
25491 fi
25492 - $rm conftest*
25493 + $RM conftest*
25494
25495 fi
25496 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
25497 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
25498 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
25499
25500 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
25501 @@ -7303,23 +8815,24 @@ else
25502 fi
25503
25504 fi
25505 -case $host_os in
25506 - # For platforms which do not support PIC, -DPIC is meaningless:
25507 - *djgpp*)
25508 - lt_prog_compiler_pic=
25509 - ;;
25510 - *)
25511 - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
25512 - ;;
25513 -esac
25514 +
25515 +
25516 +
25517 +
25518 +
25519 +
25520 +
25521 +
25522 +
25523 +
25524
25525 #
25526 # Check to make sure the static flag actually works.
25527 #
25528 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
25529 -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25530 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25531 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
25532 -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
25533 +if ${lt_cv_prog_compiler_static_works+:} false; then :
25534 $as_echo_n "(cached) " >&6
25535 else
25536 lt_cv_prog_compiler_static_works=no
25537 @@ -7332,7 +8845,7 @@ else
25538 if test -s conftest.err; then
25539 # Append any errors to the config.log.
25540 cat conftest.err 1>&5
25541 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
25542 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
25543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25544 if diff conftest.exp conftest.er2 >/dev/null; then
25545 lt_cv_prog_compiler_static_works=yes
25546 @@ -7341,11 +8854,11 @@ else
25547 lt_cv_prog_compiler_static_works=yes
25548 fi
25549 fi
25550 - $rm -r conftest*
25551 + $RM -r conftest*
25552 LDFLAGS="$save_LDFLAGS"
25553
25554 fi
25555 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
25556 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
25557 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
25558
25559 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
25560 @@ -7355,13 +8868,73 @@ else
25561 fi
25562
25563
25564 -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25565 +
25566 +
25567 +
25568 +
25569 +
25570 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25571 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25572 +if ${lt_cv_prog_compiler_c_o+:} false; then :
25573 + $as_echo_n "(cached) " >&6
25574 +else
25575 + lt_cv_prog_compiler_c_o=no
25576 + $RM -r conftest 2>/dev/null
25577 + mkdir conftest
25578 + cd conftest
25579 + mkdir out
25580 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25581 +
25582 + lt_compiler_flag="-o out/conftest2.$ac_objext"
25583 + # Insert the option either (1) after the last *FLAGS variable, or
25584 + # (2) before a word containing "conftest.", or (3) at the end.
25585 + # Note that $ac_compile itself does not contain backslashes and begins
25586 + # with a dollar sign (not a hyphen), so the echo should work correctly.
25587 + lt_compile=`echo "$ac_compile" | $SED \
25588 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25589 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25590 + -e 's:$: $lt_compiler_flag:'`
25591 + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25592 + (eval "$lt_compile" 2>out/conftest.err)
25593 + ac_status=$?
25594 + cat out/conftest.err >&5
25595 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
25597 + then
25598 + # The compiler can only warn and ignore the option if not recognized
25599 + # So say no if there are warnings
25600 + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25601 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25602 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25603 + lt_cv_prog_compiler_c_o=yes
25604 + fi
25605 + fi
25606 + chmod u+w . 2>&5
25607 + $RM conftest*
25608 + # SGI C++ compiler will create directory out/ii_files/ for
25609 + # template instantiation
25610 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25611 + $RM out/* && rmdir out
25612 + cd ..
25613 + $RM -r conftest
25614 + $RM conftest*
25615 +
25616 +fi
25617 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
25618 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
25619 +
25620 +
25621 +
25622 +
25623 +
25624 +
25625 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25626 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25627 -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
25628 +if ${lt_cv_prog_compiler_c_o+:} false; then :
25629 $as_echo_n "(cached) " >&6
25630 else
25631 lt_cv_prog_compiler_c_o=no
25632 - $rm -r conftest 2>/dev/null
25633 + $RM -r conftest 2>/dev/null
25634 mkdir conftest
25635 cd conftest
25636 mkdir out
25637 @@ -7376,51 +8949,53 @@ else
25638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25640 -e 's:$: $lt_compiler_flag:'`
25641 - (eval echo "\"\$as_me:7379: $lt_compile\"" >&5)
25642 + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25643 (eval "$lt_compile" 2>out/conftest.err)
25644 ac_status=$?
25645 cat out/conftest.err >&5
25646 - echo "$as_me:7383: \$? = $ac_status" >&5
25647 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
25649 then
25650 # The compiler can only warn and ignore the option if not recognized
25651 # So say no if there are warnings
25652 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
25653 + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25654 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25655 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25656 lt_cv_prog_compiler_c_o=yes
25657 fi
25658 fi
25659 chmod u+w . 2>&5
25660 - $rm conftest*
25661 + $RM conftest*
25662 # SGI C++ compiler will create directory out/ii_files/ for
25663 # template instantiation
25664 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
25665 - $rm out/* && rmdir out
25666 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25667 + $RM out/* && rmdir out
25668 cd ..
25669 - rmdir conftest
25670 - $rm conftest*
25671 + $RM -r conftest
25672 + $RM conftest*
25673
25674 fi
25675 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
25676 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
25677 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
25678
25679
25680 +
25681 +
25682 hard_links="nottested"
25683 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
25684 # do not overwrite the value of need_locks provided by the user
25685 - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25686 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
25687 $as_echo_n "checking if we can lock with hard links... " >&6; }
25688 hard_links=yes
25689 - $rm conftest*
25690 + $RM conftest*
25691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
25692 touch conftest.a
25693 ln conftest.a conftest.b 2>&5 || hard_links=no
25694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
25695 - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
25696 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
25697 $as_echo "$hard_links" >&6; }
25698 if test "$hard_links" = no; then
25699 - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25700 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25702 need_locks=warn
25703 fi
25704 @@ -7428,31 +9003,38 @@ else
25705 need_locks=no
25706 fi
25707
25708 -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25709 +
25710 +
25711 +
25712 +
25713 +
25714 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25715 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25716
25717 runpath_var=
25718 allow_undefined_flag=
25719 - enable_shared_with_static_runtimes=no
25720 + always_export_symbols=no
25721 archive_cmds=
25722 archive_expsym_cmds=
25723 - old_archive_From_new_cmds=
25724 - old_archive_from_expsyms_cmds=
25725 + compiler_needs_object=no
25726 + enable_shared_with_static_runtimes=no
25727 export_dynamic_flag_spec=
25728 - whole_archive_flag_spec=
25729 - thread_safe_flag_spec=
25730 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25731 + hardcode_automatic=no
25732 + hardcode_direct=no
25733 + hardcode_direct_absolute=no
25734 hardcode_libdir_flag_spec=
25735 - hardcode_libdir_flag_spec_ld=
25736 hardcode_libdir_separator=
25737 - hardcode_direct=no
25738 hardcode_minus_L=no
25739 hardcode_shlibpath_var=unsupported
25740 + inherit_rpath=no
25741 link_all_deplibs=unknown
25742 - hardcode_automatic=no
25743 module_cmds=
25744 module_expsym_cmds=
25745 - always_export_symbols=no
25746 - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25747 + old_archive_from_new_cmds=
25748 + old_archive_from_expsyms_cmds=
25749 + thread_safe_flag_spec=
25750 + whole_archive_flag_spec=
25751 # include_expsyms should be a list of space-separated symbols to be *always*
25752 # included in the symbol list
25753 include_expsyms=
25754 @@ -7468,19 +9050,9 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
25755 # preloaded symbol tables.
25756 # Exclude shared library initialization/finalization symbols.
25757 extract_expsyms_cmds=
25758 - # Just being paranoid about ensuring that cc_basename is set.
25759 - for cc_temp in $compiler""; do
25760 - case $cc_temp in
25761 - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25762 - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25763 - \-*) ;;
25764 - *) break;;
25765 - esac
25766 -done
25767 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25768
25769 case $host_os in
25770 - cygwin* | mingw* | pw32*)
25771 + cygwin* | mingw* | pw32* | cegcc*)
25772 # FIXME: the MSVC++ port hasn't been tested in a loooong time
25773 # When not using gcc, we currently assume that we are using
25774 # Microsoft Visual C++.
25775 @@ -7495,10 +9067,39 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25776 openbsd*)
25777 with_gnu_ld=no
25778 ;;
25779 + linux* | k*bsd*-gnu | gnu*)
25780 + link_all_deplibs=no
25781 + ;;
25782 esac
25783
25784 ld_shlibs=yes
25785 +
25786 + # On some targets, GNU ld is compatible enough with the native linker
25787 + # that we're better off using the native interface for both.
25788 + lt_use_gnu_ld_interface=no
25789 if test "$with_gnu_ld" = yes; then
25790 + case $host_os in
25791 + aix*)
25792 + # The AIX port of GNU ld has always aspired to compatibility
25793 + # with the native linker. However, as the warning in the GNU ld
25794 + # block says, versions before 2.19.5* couldn't really create working
25795 + # shared libraries, regardless of the interface used.
25796 + case `$LD -v 2>&1` in
25797 + *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
25798 + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
25799 + *\ \(GNU\ Binutils\)\ [3-9]*) ;;
25800 + *)
25801 + lt_use_gnu_ld_interface=yes
25802 + ;;
25803 + esac
25804 + ;;
25805 + *)
25806 + lt_use_gnu_ld_interface=yes
25807 + ;;
25808 + esac
25809 + fi
25810 +
25811 + if test "$lt_use_gnu_ld_interface" = yes; then
25812 # If archive_cmds runs LD, not CC, wlarc should be empty
25813 wlarc='${wl}'
25814
25815 @@ -7506,16 +9107,17 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25816 # are reset later if shared libraries are not supported. Putting them
25817 # here allows them to be overridden if necessary.
25818 runpath_var=LD_RUN_PATH
25819 - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
25820 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
25821 export_dynamic_flag_spec='${wl}--export-dynamic'
25822 # ancient GNU ld didn't support --whole-archive et. al.
25823 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25824 - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25825 - else
25826 - whole_archive_flag_spec=
25827 + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
25828 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25829 + else
25830 + whole_archive_flag_spec=
25831 fi
25832 supports_anon_versioning=no
25833 - case `$LD -v 2>/dev/null` in
25834 + case `$LD -v 2>&1` in
25835 + *GNU\ gold*) supports_anon_versioning=yes ;;
25836 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25837 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25838 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25839 @@ -7529,34 +9131,36 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25840 # On AIX/PPC, the GNU linker is very broken
25841 if test "$host_cpu" != ia64; then
25842 ld_shlibs=no
25843 - cat <<EOF 1>&2
25844 + cat <<_LT_EOF 1>&2
25845
25846 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
25847 +*** Warning: the GNU linker, at least up to release 2.19, is reported
25848 *** to be unable to reliably create shared libraries on AIX.
25849 *** Therefore, libtool is disabling shared libraries support. If you
25850 -*** really care for shared libraries, you may want to modify your PATH
25851 -*** so that a non-GNU linker is found, and then restart.
25852 +*** really care for shared libraries, you may want to install binutils
25853 +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
25854 +*** You will then need to restart the configuration process.
25855
25856 -EOF
25857 +_LT_EOF
25858 fi
25859 ;;
25860
25861 amigaos*)
25862 - archive_cmds='$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)'
25863 - hardcode_libdir_flag_spec='-L$libdir'
25864 - hardcode_minus_L=yes
25865 -
25866 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25867 - # that the semantics of dynamic libraries on AmigaOS, at least up
25868 - # to version 4, is to share data among multiple programs linked
25869 - # with the same dynamic library. Since this doesn't match the
25870 - # behavior of shared libraries on other platforms, we can't use
25871 - # them.
25872 - ld_shlibs=no
25873 + case $host_cpu in
25874 + powerpc)
25875 + # see comment about AmigaOS4 .so support
25876 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25877 + archive_expsym_cmds=''
25878 + ;;
25879 + m68k)
25880 + archive_cmds='$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)'
25881 + hardcode_libdir_flag_spec='-L$libdir'
25882 + hardcode_minus_L=yes
25883 + ;;
25884 + esac
25885 ;;
25886
25887 beos*)
25888 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25889 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25890 allow_undefined_flag=unsupported
25891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25892 # support --undefined. This deserves some investigation. FIXME
25893 @@ -7566,16 +9170,18 @@ EOF
25894 fi
25895 ;;
25896
25897 - cygwin* | mingw* | pw32*)
25898 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
25899 + cygwin* | mingw* | pw32* | cegcc*)
25900 + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
25901 # as there is no search path for DLLs.
25902 hardcode_libdir_flag_spec='-L$libdir'
25903 + export_dynamic_flag_spec='${wl}--export-all-symbols'
25904 allow_undefined_flag=unsupported
25905 always_export_symbols=no
25906 enable_shared_with_static_runtimes=yes
25907 - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25908 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
25909 + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
25910
25911 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25912 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
25913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25914 # If the export-symbols file already is a .def file (1st line
25915 # is EXPORTS), use it as is; otherwise, prepend...
25916 @@ -7591,6 +9197,11 @@ EOF
25917 fi
25918 ;;
25919
25920 + haiku*)
25921 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25922 + link_all_deplibs=yes
25923 + ;;
25924 +
25925 interix[3-9]*)
25926 hardcode_direct=no
25927 hardcode_shlibpath_var=no
25928 @@ -7606,60 +9217,94 @@ EOF
25929 archive_expsym_cmds='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'
25930 ;;
25931
25932 - gnu* | linux* | k*bsd*-gnu)
25933 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25934 - tmp_addflag=
25935 + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
25936 + tmp_diet=no
25937 + if test "$host_os" = linux-dietlibc; then
25938 + case $cc_basename in
25939 + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
25940 + esac
25941 + fi
25942 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
25943 + && test "$tmp_diet" = no
25944 + then
25945 + tmp_addflag=' $pic_flag'
25946 + tmp_sharedflag='-shared'
25947 case $cc_basename,$host_cpu in
25948 - pgcc*) # Portland Group C compiler
25949 - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25950 + pgcc*) # Portland Group C compiler
25951 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
25952 tmp_addflag=' $pic_flag'
25953 ;;
25954 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
25955 - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25956 + pgf77* | pgf90* | pgf95* | pgfortran*)
25957 + # Portland Group f77 and f90 compilers
25958 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
25959 tmp_addflag=' $pic_flag -Mnomain' ;;
25960 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
25961 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
25962 tmp_addflag=' -i_dynamic' ;;
25963 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
25964 tmp_addflag=' -i_dynamic -nofor_main' ;;
25965 ifc* | ifort*) # Intel Fortran compiler
25966 tmp_addflag=' -nofor_main' ;;
25967 + lf95*) # Lahey Fortran 8.1
25968 + whole_archive_flag_spec=
25969 + tmp_sharedflag='--shared' ;;
25970 + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
25971 + tmp_sharedflag='-qmkshrobj'
25972 + tmp_addflag= ;;
25973 + nvcc*) # Cuda Compiler Driver 2.2
25974 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
25975 + compiler_needs_object=yes
25976 + ;;
25977 esac
25978 case `$CC -V 2>&1 | sed 5q` in
25979 *Sun\ C*) # Sun C 5.9
25980 - whole_archive_flag_spec='${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'
25981 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
25982 + compiler_needs_object=yes
25983 tmp_sharedflag='-G' ;;
25984 *Sun\ F*) # Sun Fortran 8.3
25985 tmp_sharedflag='-G' ;;
25986 - *)
25987 - tmp_sharedflag='-shared' ;;
25988 esac
25989 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25990
25991 - if test $supports_anon_versioning = yes; then
25992 - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
25993 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25994 - $echo "local: *; };" >> $output_objdir/$libname.ver~
25995 - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25996 - fi
25997 + if test "x$supports_anon_versioning" = xyes; then
25998 + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
25999 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
26000 + echo "local: *; };" >> $output_objdir/$libname.ver~
26001 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
26002 + fi
26003 +
26004 + case $cc_basename in
26005 + xlf* | bgf* | bgxlf* | mpixlf*)
26006 + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
26007 + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
26008 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26009 + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
26010 + if test "x$supports_anon_versioning" = xyes; then
26011 + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
26012 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
26013 + echo "local: *; };" >> $output_objdir/$libname.ver~
26014 + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
26015 + fi
26016 + ;;
26017 + esac
26018 else
26019 - ld_shlibs=no
26020 + ld_shlibs=no
26021 fi
26022 ;;
26023
26024 - netbsd*)
26025 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26026 + netbsd* | netbsdelf*-gnu)
26027 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
26028 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
26029 wlarc=
26030 else
26031 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26032 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26033 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26034 + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26035 fi
26036 ;;
26037
26038 solaris*)
26039 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
26040 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
26041 ld_shlibs=no
26042 - cat <<EOF 1>&2
26043 + cat <<_LT_EOF 1>&2
26044
26045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
26046 *** create shared libraries on Solaris systems. Therefore, libtool
26047 @@ -7668,10 +9313,10 @@ EOF
26048 *** your PATH or compiler configuration so that the native linker is
26049 *** used, and then restart.
26050
26051 -EOF
26052 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26053 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26054 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26055 +_LT_EOF
26056 + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
26057 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26058 + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26059 else
26060 ld_shlibs=no
26061 fi
26062 @@ -7693,10 +9338,14 @@ EOF
26063 _LT_EOF
26064 ;;
26065 *)
26066 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26067 - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
26068 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
26069 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
26070 + # For security reasons, it is highly recommended that you always
26071 + # use absolute paths for naming shared libraries, and exclude the
26072 + # DT_RUNPATH tag from executables and libraries. But doing so
26073 + # requires that you compile everything twice, which is a pain.
26074 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
26075 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26076 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26077 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26078 else
26079 ld_shlibs=no
26080 fi
26081 @@ -7712,9 +9361,9 @@ _LT_EOF
26082 ;;
26083
26084 *)
26085 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26086 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26087 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26088 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
26089 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26090 + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26091 else
26092 ld_shlibs=no
26093 fi
26094 @@ -7754,10 +9403,12 @@ _LT_EOF
26095 else
26096 # If we're using GNU nm, then we don't want the "-C" option.
26097 # -C means demangle to AIX nm, but means don't demangle with GNU nm
26098 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
26099 - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26100 + # Also, AIX nm treats weak defined symbols like other global
26101 + # defined symbols, whereas GNU nm marks them as "W".
26102 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
26103 + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
26104 else
26105 - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26106 + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
26107 fi
26108 aix_use_runtimelinking=no
26109
26110 @@ -7766,10 +9417,10 @@ _LT_EOF
26111 # need to do runtime linking.
26112 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
26113 for ld_flag in $LDFLAGS; do
26114 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26115 - aix_use_runtimelinking=yes
26116 - break
26117 - fi
26118 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26119 + aix_use_runtimelinking=yes
26120 + break
26121 + fi
26122 done
26123 ;;
26124 esac
26125 @@ -7786,28 +9437,30 @@ _LT_EOF
26126
26127 archive_cmds=''
26128 hardcode_direct=yes
26129 + hardcode_direct_absolute=yes
26130 hardcode_libdir_separator=':'
26131 link_all_deplibs=yes
26132 + file_list_spec='${wl}-f,'
26133
26134 if test "$GCC" = yes; then
26135 case $host_os in aix4.[012]|aix4.[012].*)
26136 # We only want to do this on AIX 4.2 and lower, the check
26137 # below for broken collect2 doesn't work under 4.3+
26138 collect2name=`${CC} -print-prog-name=collect2`
26139 - if test -f "$collect2name" && \
26140 - strings "$collect2name" | grep resolve_lib_name >/dev/null
26141 + if test -f "$collect2name" &&
26142 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
26143 then
26144 - # We have reworked collect2
26145 - :
26146 + # We have reworked collect2
26147 + :
26148 else
26149 - # We have old collect2
26150 - hardcode_direct=unsupported
26151 - # It fails to find uninstalled libraries when the uninstalled
26152 - # path is not listed in the libpath. Setting hardcode_minus_L
26153 - # to unsupported forces relinking
26154 - hardcode_minus_L=yes
26155 - hardcode_libdir_flag_spec='-L$libdir'
26156 - hardcode_libdir_separator=
26157 + # We have old collect2
26158 + hardcode_direct=unsupported
26159 + # It fails to find uninstalled libraries when the uninstalled
26160 + # path is not listed in the libpath. Setting hardcode_minus_L
26161 + # to unsupported forces relinking
26162 + hardcode_minus_L=yes
26163 + hardcode_libdir_flag_spec='-L$libdir'
26164 + hardcode_libdir_separator=
26165 fi
26166 ;;
26167 esac
26168 @@ -7815,11 +9468,12 @@ _LT_EOF
26169 if test "$aix_use_runtimelinking" = yes; then
26170 shared_flag="$shared_flag "'${wl}-G'
26171 fi
26172 + link_all_deplibs=no
26173 else
26174 # not using gcc
26175 if test "$host_cpu" = ia64; then
26176 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
26177 - # chokes on -Wl,-G. The following line is correct:
26178 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
26179 + # chokes on -Wl,-G. The following line is correct:
26180 shared_flag='-G'
26181 else
26182 if test "$aix_use_runtimelinking" = yes; then
26183 @@ -7830,6 +9484,7 @@ _LT_EOF
26184 fi
26185 fi
26186
26187 + export_dynamic_flag_spec='${wl}-bexpall'
26188 # It seems that -bexpall does not export symbols beginning with
26189 # underscore (_), so it is better to generate a list of symbols to export.
26190 always_export_symbols=yes
26191 @@ -7837,12 +9492,15 @@ _LT_EOF
26192 # Warning - without using the other runtime loading flags (-brtl),
26193 # -berok will link without error, but may produce a broken library.
26194 allow_undefined_flag='-berok'
26195 - # Determine the default libpath from the value encoded in an empty executable.
26196 - cat >conftest.$ac_ext <<_ACEOF
26197 -/* confdefs.h. */
26198 -_ACEOF
26199 -cat confdefs.h >>conftest.$ac_ext
26200 -cat >>conftest.$ac_ext <<_ACEOF
26201 + # Determine the default libpath from the value encoded in an
26202 + # empty executable.
26203 + if test "${lt_cv_aix_libpath+set}" = set; then
26204 + aix_libpath=$lt_cv_aix_libpath
26205 +else
26206 + if ${lt_cv_aix_libpath_+:} false; then :
26207 + $as_echo_n "(cached) " >&6
26208 +else
26209 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26210 /* end confdefs.h. */
26211
26212 int
26213 @@ -7853,66 +9511,49 @@ main ()
26214 return 0;
26215 }
26216 _ACEOF
26217 -rm -f conftest.$ac_objext conftest$ac_exeext
26218 -if { (ac_try="$ac_link"
26219 -case "(($ac_try" in
26220 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26221 - *) ac_try_echo=$ac_try;;
26222 -esac
26223 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26224 -$as_echo "$ac_try_echo") >&5
26225 - (eval "$ac_link") 2>conftest.er1
26226 - ac_status=$?
26227 - grep -v '^ *+' conftest.er1 >conftest.err
26228 - rm -f conftest.er1
26229 - cat conftest.err >&5
26230 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 - (exit $ac_status); } && {
26232 - test -z "$ac_c_werror_flag" ||
26233 - test ! -s conftest.err
26234 - } && test -s conftest$ac_exeext && {
26235 - test "$cross_compiling" = yes ||
26236 - $as_test_x conftest$ac_exeext
26237 - }; then
26238 +if ac_fn_c_try_link "$LINENO"; then :
26239
26240 -lt_aix_libpath_sed='
26241 - /Import File Strings/,/^$/ {
26242 - /^0/ {
26243 - s/^0 *\(.*\)$/\1/
26244 - p
26245 - }
26246 - }'
26247 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26248 -# Check for a 64-bit object if we didn't find anything.
26249 -if test -z "$aix_libpath"; then
26250 - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26251 + lt_aix_libpath_sed='
26252 + /Import File Strings/,/^$/ {
26253 + /^0/ {
26254 + s/^0 *\([^ ]*\) *$/\1/
26255 + p
26256 + }
26257 + }'
26258 + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26259 + # Check for a 64-bit object if we didn't find anything.
26260 + if test -z "$lt_cv_aix_libpath_"; then
26261 + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26262 + fi
26263 fi
26264 -else
26265 - $as_echo "$as_me: failed program was:" >&5
26266 -sed 's/^/| /' conftest.$ac_ext >&5
26267 -
26268 +rm -f core conftest.err conftest.$ac_objext \
26269 + conftest$ac_exeext conftest.$ac_ext
26270 + if test -z "$lt_cv_aix_libpath_"; then
26271 + lt_cv_aix_libpath_="/usr/lib:/lib"
26272 + fi
26273
26274 fi
26275
26276 -rm -rf conftest.dSYM
26277 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26278 - conftest$ac_exeext conftest.$ac_ext
26279 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26280 + aix_libpath=$lt_cv_aix_libpath_
26281 +fi
26282
26283 - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
26284 - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
26285 - else
26286 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
26287 + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
26288 + else
26289 if test "$host_cpu" = ia64; then
26290 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
26291 allow_undefined_flag="-z nodefs"
26292 archive_expsym_cmds="\$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"
26293 else
26294 - # Determine the default libpath from the value encoded in an empty executable.
26295 - cat >conftest.$ac_ext <<_ACEOF
26296 -/* confdefs.h. */
26297 -_ACEOF
26298 -cat confdefs.h >>conftest.$ac_ext
26299 -cat >>conftest.$ac_ext <<_ACEOF
26300 + # Determine the default libpath from the value encoded in an
26301 + # empty executable.
26302 + if test "${lt_cv_aix_libpath+set}" = set; then
26303 + aix_libpath=$lt_cv_aix_libpath
26304 +else
26305 + if ${lt_cv_aix_libpath_+:} false; then :
26306 + $as_echo_n "(cached) " >&6
26307 +else
26308 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26309 /* end confdefs.h. */
26310
26311 int
26312 @@ -7923,59 +9564,44 @@ main ()
26313 return 0;
26314 }
26315 _ACEOF
26316 -rm -f conftest.$ac_objext conftest$ac_exeext
26317 -if { (ac_try="$ac_link"
26318 -case "(($ac_try" in
26319 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26320 - *) ac_try_echo=$ac_try;;
26321 -esac
26322 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26323 -$as_echo "$ac_try_echo") >&5
26324 - (eval "$ac_link") 2>conftest.er1
26325 - ac_status=$?
26326 - grep -v '^ *+' conftest.er1 >conftest.err
26327 - rm -f conftest.er1
26328 - cat conftest.err >&5
26329 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 - (exit $ac_status); } && {
26331 - test -z "$ac_c_werror_flag" ||
26332 - test ! -s conftest.err
26333 - } && test -s conftest$ac_exeext && {
26334 - test "$cross_compiling" = yes ||
26335 - $as_test_x conftest$ac_exeext
26336 - }; then
26337 +if ac_fn_c_try_link "$LINENO"; then :
26338
26339 -lt_aix_libpath_sed='
26340 - /Import File Strings/,/^$/ {
26341 - /^0/ {
26342 - s/^0 *\(.*\)$/\1/
26343 - p
26344 - }
26345 - }'
26346 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26347 -# Check for a 64-bit object if we didn't find anything.
26348 -if test -z "$aix_libpath"; then
26349 - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26350 + lt_aix_libpath_sed='
26351 + /Import File Strings/,/^$/ {
26352 + /^0/ {
26353 + s/^0 *\([^ ]*\) *$/\1/
26354 + p
26355 + }
26356 + }'
26357 + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26358 + # Check for a 64-bit object if we didn't find anything.
26359 + if test -z "$lt_cv_aix_libpath_"; then
26360 + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26361 + fi
26362 fi
26363 -else
26364 - $as_echo "$as_me: failed program was:" >&5
26365 -sed 's/^/| /' conftest.$ac_ext >&5
26366 -
26367 +rm -f core conftest.err conftest.$ac_objext \
26368 + conftest$ac_exeext conftest.$ac_ext
26369 + if test -z "$lt_cv_aix_libpath_"; then
26370 + lt_cv_aix_libpath_="/usr/lib:/lib"
26371 + fi
26372
26373 fi
26374
26375 -rm -rf conftest.dSYM
26376 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26377 - conftest$ac_exeext conftest.$ac_ext
26378 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26379 + aix_libpath=$lt_cv_aix_libpath_
26380 +fi
26381
26382 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
26383 # Warning - without using the other run time loading flags,
26384 # -berok will link without error, but may produce a broken library.
26385 no_undefined_flag=' ${wl}-bernotok'
26386 allow_undefined_flag=' ${wl}-berok'
26387 - # Exported symbols can be pulled into shared objects from archives
26388 - whole_archive_flag_spec='$convenience'
26389 + if test "$with_gnu_ld" = yes; then
26390 + # We only use this code for GNU lds that support --whole-archive.
26391 + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
26392 + else
26393 + # Exported symbols can be pulled into shared objects from archives
26394 + whole_archive_flag_spec='$convenience'
26395 + fi
26396 archive_cmds_need_lc=yes
26397 # This is similar to how AIX traditionally builds its shared libraries.
26398 archive_expsym_cmds="\$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'
26399 @@ -7984,85 +9610,119 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26400 ;;
26401
26402 amigaos*)
26403 - archive_cmds='$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)'
26404 - hardcode_libdir_flag_spec='-L$libdir'
26405 - hardcode_minus_L=yes
26406 - # see comment about different semantics on the GNU ld section
26407 - ld_shlibs=no
26408 + case $host_cpu in
26409 + powerpc)
26410 + # see comment about AmigaOS4 .so support
26411 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26412 + archive_expsym_cmds=''
26413 + ;;
26414 + m68k)
26415 + archive_cmds='$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)'
26416 + hardcode_libdir_flag_spec='-L$libdir'
26417 + hardcode_minus_L=yes
26418 + ;;
26419 + esac
26420 ;;
26421
26422 bsdi[45]*)
26423 export_dynamic_flag_spec=-rdynamic
26424 ;;
26425
26426 - cygwin* | mingw* | pw32*)
26427 + cygwin* | mingw* | pw32* | cegcc*)
26428 # When not using gcc, we currently assume that we are using
26429 # Microsoft Visual C++.
26430 # hardcode_libdir_flag_spec is actually meaningless, as there is
26431 # no search path for DLLs.
26432 - hardcode_libdir_flag_spec=' '
26433 - allow_undefined_flag=unsupported
26434 - # Tell ltmain to make .lib files, not .a files.
26435 - libext=lib
26436 - # Tell ltmain to make .dll files, not .so files.
26437 - shrext_cmds=".dll"
26438 - # FIXME: Setting linknames here is a bad hack.
26439 - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
26440 - # The linker will automatically build a .lib file if we build a DLL.
26441 - old_archive_From_new_cmds='true'
26442 - # FIXME: Should let the user specify the lib program.
26443 - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
26444 - fix_srcfile_path='`cygpath -w "$srcfile"`'
26445 - enable_shared_with_static_runtimes=yes
26446 + case $cc_basename in
26447 + cl*)
26448 + # Native MSVC
26449 + hardcode_libdir_flag_spec=' '
26450 + allow_undefined_flag=unsupported
26451 + always_export_symbols=yes
26452 + file_list_spec='@'
26453 + # Tell ltmain to make .lib files, not .a files.
26454 + libext=lib
26455 + # Tell ltmain to make .dll files, not .so files.
26456 + shrext_cmds=".dll"
26457 + # FIXME: Setting linknames here is a bad hack.
26458 + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
26459 + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
26460 + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
26461 + else
26462 + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
26463 + fi~
26464 + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
26465 + linknames='
26466 + # The linker will not automatically build a static lib if we build a DLL.
26467 + # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
26468 + enable_shared_with_static_runtimes=yes
26469 + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
26470 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
26471 + # Don't use ranlib
26472 + old_postinstall_cmds='chmod 644 $oldlib'
26473 + postlink_cmds='lt_outputfile="@OUTPUT@"~
26474 + lt_tool_outputfile="@TOOL_OUTPUT@"~
26475 + case $lt_outputfile in
26476 + *.exe|*.EXE) ;;
26477 + *)
26478 + lt_outputfile="$lt_outputfile.exe"
26479 + lt_tool_outputfile="$lt_tool_outputfile.exe"
26480 + ;;
26481 + esac~
26482 + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
26483 + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
26484 + $RM "$lt_outputfile.manifest";
26485 + fi'
26486 + ;;
26487 + *)
26488 + # Assume MSVC wrapper
26489 + hardcode_libdir_flag_spec=' '
26490 + allow_undefined_flag=unsupported
26491 + # Tell ltmain to make .lib files, not .a files.
26492 + libext=lib
26493 + # Tell ltmain to make .dll files, not .so files.
26494 + shrext_cmds=".dll"
26495 + # FIXME: Setting linknames here is a bad hack.
26496 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
26497 + # The linker will automatically build a .lib file if we build a DLL.
26498 + old_archive_from_new_cmds='true'
26499 + # FIXME: Should let the user specify the lib program.
26500 + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
26501 + enable_shared_with_static_runtimes=yes
26502 + ;;
26503 + esac
26504 ;;
26505
26506 darwin* | rhapsody*)
26507 - case $host_os in
26508 - rhapsody* | darwin1.[012])
26509 - allow_undefined_flag='${wl}-undefined ${wl}suppress'
26510 - ;;
26511 - *) # Darwin 1.3 on
26512 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26513 - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26514 - else
26515 - case ${MACOSX_DEPLOYMENT_TARGET} in
26516 - 10.[012])
26517 - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26518 - ;;
26519 - 10.*)
26520 - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
26521 - ;;
26522 - esac
26523 - fi
26524 - ;;
26525 - esac
26526 - archive_cmds_need_lc=no
26527 - hardcode_direct=no
26528 - hardcode_automatic=yes
26529 - hardcode_shlibpath_var=unsupported
26530 - whole_archive_flag_spec=''
26531 - link_all_deplibs=yes
26532 - if test "$GCC" = yes ; then
26533 - output_verbose_link_cmd='echo'
26534 - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
26535 - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
26536 - archive_expsym_cmds="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}"
26537 - module_expsym_cmds="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}"
26538 - else
26539 - case $cc_basename in
26540 - xlc*)
26541 - output_verbose_link_cmd='echo'
26542 - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
26543 - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26544 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
26545 - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26546 - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26547 - ;;
26548 - *)
26549 - ld_shlibs=no
26550 - ;;
26551 - esac
26552 - fi
26553 +
26554 +
26555 + archive_cmds_need_lc=no
26556 + hardcode_direct=no
26557 + hardcode_automatic=yes
26558 + hardcode_shlibpath_var=unsupported
26559 + if test "$lt_cv_ld_force_load" = "yes"; then
26560 + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
26561 +
26562 + else
26563 + whole_archive_flag_spec=''
26564 + fi
26565 + link_all_deplibs=yes
26566 + allow_undefined_flag="$_lt_dar_allow_undefined"
26567 + case $cc_basename in
26568 + ifort*) _lt_dar_can_shared=yes ;;
26569 + *) _lt_dar_can_shared=$GCC ;;
26570 + esac
26571 + if test "$_lt_dar_can_shared" = "yes"; then
26572 + output_verbose_link_cmd=func_echo_all
26573 + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
26574 + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
26575 + archive_expsym_cmds="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}"
26576 + module_expsym_cmds="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}"
26577 +
26578 + else
26579 + ld_shlibs=no
26580 + fi
26581 +
26582 ;;
26583
26584 dgux*)
26585 @@ -8071,10 +9731,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26586 hardcode_shlibpath_var=no
26587 ;;
26588
26589 - freebsd1*)
26590 - ld_shlibs=no
26591 - ;;
26592 -
26593 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
26594 # support. Future versions do this automatically, but an explicit c++rt0.o
26595 # does not break anything, and helps significantly (at the cost of a little
26596 @@ -8087,7 +9743,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26597 ;;
26598
26599 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
26600 - freebsd2*)
26601 + freebsd2.*)
26602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26603 hardcode_direct=yes
26604 hardcode_minus_L=yes
26605 @@ -8096,7 +9752,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26606
26607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26608 freebsd* | dragonfly*)
26609 - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
26610 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26611 hardcode_libdir_flag_spec='-R$libdir'
26612 hardcode_direct=yes
26613 hardcode_shlibpath_var=no
26614 @@ -8104,9 +9760,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26615
26616 hpux9*)
26617 if test "$GCC" = yes; then
26618 - archive_cmds='$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'
26619 + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
26620 else
26621 - archive_cmds='$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'
26622 + archive_cmds='$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'
26623 fi
26624 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
26625 hardcode_libdir_separator=:
26626 @@ -8119,18 +9775,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26627 ;;
26628
26629 hpux10*)
26630 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26631 - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26632 + if test "$GCC" = yes && test "$with_gnu_ld" = no; then
26633 + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26634 else
26635 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26636 fi
26637 if test "$with_gnu_ld" = no; then
26638 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
26639 hardcode_libdir_separator=:
26640 -
26641 hardcode_direct=yes
26642 + hardcode_direct_absolute=yes
26643 export_dynamic_flag_spec='${wl}-E'
26644 -
26645 # hardcode_minus_L: Not really in the search PATH,
26646 # but as the default location of the library.
26647 hardcode_minus_L=yes
26648 @@ -8138,16 +9793,16 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26649 ;;
26650
26651 hpux11*)
26652 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26653 + if test "$GCC" = yes && test "$with_gnu_ld" = no; then
26654 case $host_cpu in
26655 hppa*64*)
26656 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26657 ;;
26658 ia64*)
26659 - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26660 + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26661 ;;
26662 *)
26663 - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26664 + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26665 ;;
26666 esac
26667 else
26668 @@ -8159,7 +9814,46 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26669 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26670 ;;
26671 *)
26672 - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26673 +
26674 + # Older versions of the 11.00 compiler do not understand -b yet
26675 + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
26676 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
26677 +$as_echo_n "checking if $CC understands -b... " >&6; }
26678 +if ${lt_cv_prog_compiler__b+:} false; then :
26679 + $as_echo_n "(cached) " >&6
26680 +else
26681 + lt_cv_prog_compiler__b=no
26682 + save_LDFLAGS="$LDFLAGS"
26683 + LDFLAGS="$LDFLAGS -b"
26684 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
26685 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
26686 + # The linker can only warn and ignore the option if not recognized
26687 + # So say no if there are warnings
26688 + if test -s conftest.err; then
26689 + # Append any errors to the config.log.
26690 + cat conftest.err 1>&5
26691 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
26692 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
26693 + if diff conftest.exp conftest.er2 >/dev/null; then
26694 + lt_cv_prog_compiler__b=yes
26695 + fi
26696 + else
26697 + lt_cv_prog_compiler__b=yes
26698 + fi
26699 + fi
26700 + $RM -r conftest*
26701 + LDFLAGS="$save_LDFLAGS"
26702 +
26703 +fi
26704 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
26705 +$as_echo "$lt_cv_prog_compiler__b" >&6; }
26706 +
26707 +if test x"$lt_cv_prog_compiler__b" = xyes; then
26708 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26709 +else
26710 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26711 +fi
26712 +
26713 ;;
26714 esac
26715 fi
26716 @@ -8169,12 +9863,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26717
26718 case $host_cpu in
26719 hppa*64*|ia64*)
26720 - hardcode_libdir_flag_spec_ld='+b $libdir'
26721 hardcode_direct=no
26722 hardcode_shlibpath_var=no
26723 ;;
26724 *)
26725 hardcode_direct=yes
26726 + hardcode_direct_absolute=yes
26727 export_dynamic_flag_spec='${wl}-E'
26728
26729 # hardcode_minus_L: Not really in the search PATH,
26730 @@ -8187,18 +9881,49 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26731
26732 irix5* | irix6* | nonstopux*)
26733 if test "$GCC" = yes; then
26734 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26735 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26736 + # Try to use the -exported_symbol ld option, if it does not
26737 + # work, assume that -exports_file does not work either and
26738 + # implicitly export all symbols.
26739 + # This should be the same for all languages, so no per-tag cache variable.
26740 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
26741 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
26742 +if ${lt_cv_irix_exported_symbol+:} false; then :
26743 + $as_echo_n "(cached) " >&6
26744 +else
26745 + save_LDFLAGS="$LDFLAGS"
26746 + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
26747 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26748 +/* end confdefs.h. */
26749 +int foo (void) { return 0; }
26750 +_ACEOF
26751 +if ac_fn_c_try_link "$LINENO"; then :
26752 + lt_cv_irix_exported_symbol=yes
26753 +else
26754 + lt_cv_irix_exported_symbol=no
26755 +fi
26756 +rm -f core conftest.err conftest.$ac_objext \
26757 + conftest$ac_exeext conftest.$ac_ext
26758 + LDFLAGS="$save_LDFLAGS"
26759 +fi
26760 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
26761 +$as_echo "$lt_cv_irix_exported_symbol" >&6; }
26762 + if test "$lt_cv_irix_exported_symbol" = yes; then
26763 + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
26764 + fi
26765 else
26766 - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26767 - hardcode_libdir_flag_spec_ld='-rpath $libdir'
26768 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26769 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
26770 fi
26771 + archive_cmds_need_lc='no'
26772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26773 hardcode_libdir_separator=:
26774 + inherit_rpath=yes
26775 link_all_deplibs=yes
26776 ;;
26777
26778 - netbsd*)
26779 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26780 + netbsd* | netbsdelf*-gnu)
26781 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
26782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
26783 else
26784 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
26785 @@ -8216,11 +9941,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26786 hardcode_shlibpath_var=no
26787 ;;
26788
26789 + *nto* | *qnx*)
26790 + ;;
26791 +
26792 openbsd*)
26793 if test -f /usr/libexec/ld.so; then
26794 hardcode_direct=yes
26795 hardcode_shlibpath_var=no
26796 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26797 + hardcode_direct_absolute=yes
26798 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26800 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
26801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
26802 @@ -8236,7 +9965,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26803 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
26804 ;;
26805 esac
26806 - fi
26807 + fi
26808 else
26809 ld_shlibs=no
26810 fi
26811 @@ -8246,18 +9975,19 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26812 hardcode_libdir_flag_spec='-L$libdir'
26813 hardcode_minus_L=yes
26814 allow_undefined_flag=unsupported
26815 - archive_cmds='$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'
26816 - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
26817 + archive_cmds='$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'
26818 + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
26819 ;;
26820
26821 osf3*)
26822 if test "$GCC" = yes; then
26823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
26824 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26825 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26826 else
26827 allow_undefined_flag=' -expect_unresolved \*'
26828 - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26829 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26830 fi
26831 + archive_cmds_need_lc='no'
26832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26833 hardcode_libdir_separator=:
26834 ;;
26835 @@ -8265,32 +9995,43 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26836 osf4* | osf5*) # as osf3* with the addition of -msym flag
26837 if test "$GCC" = yes; then
26838 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
26839 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26840 + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26842 else
26843 allow_undefined_flag=' -expect_unresolved \*'
26844 - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26845 - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
26846 - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
26847 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26848 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
26849 + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
26850
26851 # Both c and cxx compiler support -rpath directly
26852 hardcode_libdir_flag_spec='-rpath $libdir'
26853 fi
26854 + archive_cmds_need_lc='no'
26855 hardcode_libdir_separator=:
26856 ;;
26857
26858 solaris*)
26859 - no_undefined_flag=' -z text'
26860 + no_undefined_flag=' -z defs'
26861 if test "$GCC" = yes; then
26862 wlarc='${wl}'
26863 - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26864 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26865 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
26866 + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26867 + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26868 + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26869 else
26870 - wlarc=''
26871 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26872 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26873 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26874 + case `$CC -V 2>&1` in
26875 + *"Compilers 5.0"*)
26876 + wlarc=''
26877 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26878 + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26879 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
26880 + ;;
26881 + *)
26882 + wlarc='${wl}'
26883 + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
26884 + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26885 + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26886 + ;;
26887 + esac
26888 fi
26889 hardcode_libdir_flag_spec='-R$libdir'
26890 hardcode_shlibpath_var=no
26891 @@ -8300,7 +10041,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26892 # The compiler driver will combine and reorder linker options,
26893 # but understands `-z linker_flag'. GCC discards it without `$wl',
26894 # but is careful enough not to reorder.
26895 - # Supported since Solaris 2.6 (maybe 2.5.1?)
26896 + # Supported since Solaris 2.6 (maybe 2.5.1?)
26897 if test "$GCC" = yes; then
26898 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
26899 else
26900 @@ -8389,18 +10130,18 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26901 allow_undefined_flag='${wl}-z,nodefs'
26902 archive_cmds_need_lc=no
26903 hardcode_shlibpath_var=no
26904 - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
26905 + hardcode_libdir_flag_spec='${wl}-R,$libdir'
26906 hardcode_libdir_separator=':'
26907 link_all_deplibs=yes
26908 export_dynamic_flag_spec='${wl}-Bexport'
26909 runpath_var='LD_RUN_PATH'
26910
26911 if test "$GCC" = yes; then
26912 - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26913 - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26914 + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26915 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26916 else
26917 - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26918 - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26919 + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26920 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26921 fi
26922 ;;
26923
26924 @@ -8414,12 +10155,36 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26925 ld_shlibs=no
26926 ;;
26927 esac
26928 +
26929 + if test x$host_vendor = xsni; then
26930 + case $host in
26931 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26932 + export_dynamic_flag_spec='${wl}-Blargedynsym'
26933 + ;;
26934 + esac
26935 + fi
26936 fi
26937
26938 -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
26939 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
26940 $as_echo "$ld_shlibs" >&6; }
26941 test "$ld_shlibs" = no && can_build_shared=no
26942
26943 +with_gnu_ld=$with_gnu_ld
26944 +
26945 +
26946 +
26947 +
26948 +
26949 +
26950 +
26951 +
26952 +
26953 +
26954 +
26955 +
26956 +
26957 +
26958 +
26959 #
26960 # Do we need to explicitly link libc?
26961 #
26962 @@ -8437,2095 +10202,1614 @@ x|xyes)
26963 # Test whether the compiler implicitly links with -lc since on some
26964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
26965 # to ld, don't add -lc before -lgcc.
26966 - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26967 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
26968 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
26969 - $rm conftest*
26970 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26971 +if ${lt_cv_archive_cmds_need_lc+:} false; then :
26972 + $as_echo_n "(cached) " >&6
26973 +else
26974 + $RM conftest*
26975 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26976
26977 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26978 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26979 (eval $ac_compile) 2>&5
26980 ac_status=$?
26981 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 - (exit $ac_status); } 2>conftest.err; then
26983 - soname=conftest
26984 - lib=conftest
26985 - libobjs=conftest.$ac_objext
26986 - deplibs=
26987 - wl=$lt_prog_compiler_wl
26988 - pic_flag=$lt_prog_compiler_pic
26989 - compiler_flags=-v
26990 - linker_flags=-v
26991 - verstring=
26992 - output_objdir=.
26993 - libname=conftest
26994 - lt_save_allow_undefined_flag=$allow_undefined_flag
26995 - allow_undefined_flag=
26996 - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26997 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26998 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26999 + test $ac_status = 0; } 2>conftest.err; then
27000 + soname=conftest
27001 + lib=conftest
27002 + libobjs=conftest.$ac_objext
27003 + deplibs=
27004 + wl=$lt_prog_compiler_wl
27005 + pic_flag=$lt_prog_compiler_pic
27006 + compiler_flags=-v
27007 + linker_flags=-v
27008 + verstring=
27009 + output_objdir=.
27010 + libname=conftest
27011 + lt_save_allow_undefined_flag=$allow_undefined_flag
27012 + allow_undefined_flag=
27013 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
27014 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
27015 ac_status=$?
27016 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017 - (exit $ac_status); }
27018 - then
27019 - archive_cmds_need_lc=no
27020 - else
27021 - archive_cmds_need_lc=yes
27022 - fi
27023 - allow_undefined_flag=$lt_save_allow_undefined_flag
27024 - else
27025 - cat conftest.err 1>&5
27026 - fi
27027 - $rm conftest*
27028 - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
27029 -$as_echo "$archive_cmds_need_lc" >&6; }
27030 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27031 + test $ac_status = 0; }
27032 + then
27033 + lt_cv_archive_cmds_need_lc=no
27034 + else
27035 + lt_cv_archive_cmds_need_lc=yes
27036 + fi
27037 + allow_undefined_flag=$lt_save_allow_undefined_flag
27038 + else
27039 + cat conftest.err 1>&5
27040 + fi
27041 + $RM conftest*
27042 +
27043 +fi
27044 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
27045 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
27046 + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
27047 ;;
27048 esac
27049 fi
27050 ;;
27051 esac
27052
27053 -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
27054 -$as_echo_n "checking dynamic linker characteristics... " >&6; }
27055 -library_names_spec=
27056 -libname_spec='lib$name'
27057 -soname_spec=
27058 -shrext_cmds=".so"
27059 -postinstall_cmds=
27060 -postuninstall_cmds=
27061 -finish_cmds=
27062 -finish_eval=
27063 -shlibpath_var=
27064 -shlibpath_overrides_runpath=unknown
27065 -version_type=none
27066 -dynamic_linker="$host_os ld.so"
27067 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
27068
27069 -if test "$GCC" = yes; then
27070 - case $host_os in
27071 - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
27072 - *) lt_awk_arg="/^libraries:/" ;;
27073 - esac
27074 - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
27075 - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
27076 - # if the path contains ";" then we assume it to be the separator
27077 - # otherwise default to the standard path separator (i.e. ":") - it is
27078 - # assumed that no part of a normal pathname contains ";" but that should
27079 - # okay in the real world where ";" in dirpaths is itself problematic.
27080 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
27081 - else
27082 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27083 - fi
27084 - # Ok, now we have the path, separated by spaces, we can step through it
27085 - # and add multilib dir if necessary.
27086 - lt_tmp_lt_search_path_spec=
27087 - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
27088 - for lt_sys_path in $lt_search_path_spec; do
27089 - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
27090 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
27091 - else
27092 - test -d "$lt_sys_path" && \
27093 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
27094 - fi
27095 - done
27096 - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
27097 -BEGIN {RS=" "; FS="/|\n";} {
27098 - lt_foo="";
27099 - lt_count=0;
27100 - for (lt_i = NF; lt_i > 0; lt_i--) {
27101 - if ($lt_i != "" && $lt_i != ".") {
27102 - if ($lt_i == "..") {
27103 - lt_count++;
27104 - } else {
27105 - if (lt_count == 0) {
27106 - lt_foo="/" $lt_i lt_foo;
27107 - } else {
27108 - lt_count--;
27109 - }
27110 - }
27111 - }
27112 - }
27113 - if (lt_foo != "") { lt_freq[lt_foo]++; }
27114 - if (lt_freq[lt_foo] == 1) { print lt_foo; }
27115 -}'`
27116 - sys_lib_search_path_spec=`echo $lt_search_path_spec`
27117 -else
27118 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
27119 -fi
27120 -need_lib_prefix=unknown
27121 -hardcode_into_libs=no
27122
27123 -# when you set need_version to no, make sure it does not cause -set_version
27124 -# flags to be left without arguments
27125 -need_version=unknown
27126
27127 -case $host_os in
27128 -aix3*)
27129 - version_type=linux
27130 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
27131 - shlibpath_var=LIBPATH
27132
27133 - # AIX 3 has no versioning support, so we append a major version to the name.
27134 - soname_spec='${libname}${release}${shared_ext}$major'
27135 - ;;
27136
27137 -aix[4-9]*)
27138 - version_type=linux
27139 - need_lib_prefix=no
27140 - need_version=no
27141 - hardcode_into_libs=yes
27142 - if test "$host_cpu" = ia64; then
27143 - # AIX 5 supports IA64
27144 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
27145 - shlibpath_var=LD_LIBRARY_PATH
27146 - else
27147 - # With GCC up to 2.95.x, collect2 would create an import file
27148 - # for dependence libraries. The import file would start with
27149 - # the line `#! .'. This would cause the generated library to
27150 - # depend on `.', always an invalid library. This was fixed in
27151 - # development snapshots of GCC prior to 3.0.
27152 - case $host_os in
27153 - aix4 | aix4.[01] | aix4.[01].*)
27154 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
27155 - echo ' yes '
27156 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
27157 - :
27158 - else
27159 - can_build_shared=no
27160 - fi
27161 - ;;
27162 - esac
27163 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
27164 - # soname into executable. Probably we can add versioning support to
27165 - # collect2, so additional links can be useful in future.
27166 - if test "$aix_use_runtimelinking" = yes; then
27167 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
27168 - # instead of lib<name>.a to let people know that these are not
27169 - # typical AIX shared libraries.
27170 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27171 - else
27172 - # We preserve .a as extension for shared libraries through AIX4.2
27173 - # and later when we are not doing run time linking.
27174 - library_names_spec='${libname}${release}.a $libname.a'
27175 - soname_spec='${libname}${release}${shared_ext}$major'
27176 - fi
27177 - shlibpath_var=LIBPATH
27178 - fi
27179 - ;;
27180
27181 -amigaos*)
27182 - library_names_spec='$libname.ixlibrary $libname.a'
27183 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
27184 - 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'
27185 - ;;
27186
27187 -beos*)
27188 - library_names_spec='${libname}${shared_ext}'
27189 - dynamic_linker="$host_os ld.so"
27190 - shlibpath_var=LIBRARY_PATH
27191 - ;;
27192
27193 -bsdi[45]*)
27194 - version_type=linux
27195 - need_version=no
27196 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27197 - soname_spec='${libname}${release}${shared_ext}$major'
27198 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
27199 - shlibpath_var=LD_LIBRARY_PATH
27200 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
27201 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
27202 - # the default ld.so.conf also contains /usr/contrib/lib and
27203 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
27204 - # libtool to hard-code these into programs
27205 - ;;
27206
27207 -cygwin* | mingw* | pw32*)
27208 - version_type=windows
27209 - shrext_cmds=".dll"
27210 - need_version=no
27211 - need_lib_prefix=no
27212
27213 - case $GCC,$host_os in
27214 - yes,cygwin* | yes,mingw* | yes,pw32*)
27215 - library_names_spec='$libname.dll.a'
27216 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
27217 - postinstall_cmds='base_file=`basename \${file}`~
27218 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
27219 - dldir=$destdir/`dirname \$dlpath`~
27220 - test -d \$dldir || mkdir -p \$dldir~
27221 - $install_prog $dir/$dlname \$dldir/$dlname~
27222 - chmod a+x \$dldir/$dlname'
27223 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
27224 - dlpath=$dir/\$dldll~
27225 - $rm \$dlpath'
27226 - shlibpath_overrides_runpath=yes
27227
27228 - case $host_os in
27229 - cygwin*)
27230 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
27231 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27232 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
27233 - ;;
27234 - mingw*)
27235 - # MinGW DLLs use traditional 'lib' prefix
27236 - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27237 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
27238 - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
27239 - # It is most probably a Windows format PATH printed by
27240 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
27241 - # path with ; separators, and with drive letters. We can handle the
27242 - # drive letters (cygwin fileutils understands them), so leave them,
27243 - # especially as we might pass files found there to a mingw objdump,
27244 - # which wouldn't understand a cygwinified path. Ahh.
27245 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
27246 - else
27247 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27248 - fi
27249 - ;;
27250 - pw32*)
27251 - # pw32 DLLs use 'pw' prefix rather than 'lib'
27252 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27253 - ;;
27254 - esac
27255 - ;;
27256
27257 - *)
27258 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
27259 - ;;
27260 - esac
27261 - dynamic_linker='Win32 ld.exe'
27262 - # FIXME: first we should search . and the directory the executable is in
27263 - shlibpath_var=PATH
27264 - ;;
27265
27266 -darwin* | rhapsody*)
27267 - dynamic_linker="$host_os dyld"
27268 - version_type=darwin
27269 - need_lib_prefix=no
27270 - need_version=no
27271 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
27272 - soname_spec='${libname}${release}${major}$shared_ext'
27273 - shlibpath_overrides_runpath=yes
27274 - shlibpath_var=DYLD_LIBRARY_PATH
27275 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
27276
27277 - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
27278 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
27279 - ;;
27280
27281 -dgux*)
27282 - version_type=linux
27283 - need_lib_prefix=no
27284 - need_version=no
27285 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
27286 - soname_spec='${libname}${release}${shared_ext}$major'
27287 - shlibpath_var=LD_LIBRARY_PATH
27288 - ;;
27289
27290 -freebsd1*)
27291 - dynamic_linker=no
27292 - ;;
27293
27294 -freebsd* | dragonfly*)
27295 - # DragonFly does not have aout. When/if they implement a new
27296 - # versioning mechanism, adjust this.
27297 - if test -x /usr/bin/objformat; then
27298 - objformat=`/usr/bin/objformat`
27299 - else
27300 - case $host_os in
27301 - freebsd[123]*) objformat=aout ;;
27302 - *) objformat=elf ;;
27303 - esac
27304 - fi
27305 - version_type=freebsd-$objformat
27306 - case $version_type in
27307 - freebsd-elf*)
27308 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27309 - need_version=no
27310 - need_lib_prefix=no
27311 - ;;
27312 - freebsd-*)
27313 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
27314 - need_version=yes
27315 - ;;
27316 - esac
27317 - shlibpath_var=LD_LIBRARY_PATH
27318 - case $host_os in
27319 - freebsd2*)
27320 - shlibpath_overrides_runpath=yes
27321 - ;;
27322 - freebsd3.[01]* | freebsdelf3.[01]*)
27323 - shlibpath_overrides_runpath=yes
27324 - hardcode_into_libs=yes
27325 - ;;
27326 - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
27327 - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
27328 - shlibpath_overrides_runpath=no
27329 - hardcode_into_libs=yes
27330 - ;;
27331 - *) # from 4.6 on, and DragonFly
27332 - shlibpath_overrides_runpath=yes
27333 - hardcode_into_libs=yes
27334 - ;;
27335 - esac
27336 - ;;
27337
27338 -gnu*)
27339 - version_type=linux
27340 - need_lib_prefix=no
27341 - need_version=no
27342 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
27343 - soname_spec='${libname}${release}${shared_ext}$major'
27344 - shlibpath_var=LD_LIBRARY_PATH
27345 - hardcode_into_libs=yes
27346 - ;;
27347
27348 -hpux9* | hpux10* | hpux11*)
27349 - # Give a soname corresponding to the major version so that dld.sl refuses to
27350 - # link against other versions.
27351 - version_type=sunos
27352 - need_lib_prefix=no
27353 - need_version=no
27354 - case $host_cpu in
27355 - ia64*)
27356 - shrext_cmds='.so'
27357 - hardcode_into_libs=yes
27358 - dynamic_linker="$host_os dld.so"
27359 - shlibpath_var=LD_LIBRARY_PATH
27360 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27361 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27362 - soname_spec='${libname}${release}${shared_ext}$major'
27363 - if test "X$HPUX_IA64_MODE" = X32; then
27364 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
27365 - else
27366 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
27367 - fi
27368 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27369 - ;;
27370 - hppa*64*)
27371 - shrext_cmds='.sl'
27372 - hardcode_into_libs=yes
27373 - dynamic_linker="$host_os dld.sl"
27374 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
27375 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27376 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27377 - soname_spec='${libname}${release}${shared_ext}$major'
27378 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
27379 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27380 - ;;
27381 - *)
27382 - shrext_cmds='.sl'
27383 - dynamic_linker="$host_os dld.sl"
27384 - shlibpath_var=SHLIB_PATH
27385 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
27386 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27387 - soname_spec='${libname}${release}${shared_ext}$major'
27388 - ;;
27389 - esac
27390 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
27391 - postinstall_cmds='chmod 555 $lib'
27392 - ;;
27393
27394 -interix[3-9]*)
27395 - version_type=linux
27396 - need_lib_prefix=no
27397 - need_version=no
27398 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27399 - soname_spec='${libname}${release}${shared_ext}$major'
27400 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
27401 - shlibpath_var=LD_LIBRARY_PATH
27402 - shlibpath_overrides_runpath=no
27403 - hardcode_into_libs=yes
27404 - ;;
27405
27406 -irix5* | irix6* | nonstopux*)
27407 - case $host_os in
27408 - nonstopux*) version_type=nonstopux ;;
27409 - *)
27410 - if test "$lt_cv_prog_gnu_ld" = yes; then
27411 - version_type=linux
27412 - else
27413 - version_type=irix
27414 - fi ;;
27415 - esac
27416 - need_lib_prefix=no
27417 - need_version=no
27418 - soname_spec='${libname}${release}${shared_ext}$major'
27419 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
27420 - case $host_os in
27421 - irix5* | nonstopux*)
27422 - libsuff= shlibsuff=
27423 - ;;
27424 - *)
27425 - case $LD in # libtool.m4 will add one of these switches to LD
27426 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
27427 - libsuff= shlibsuff= libmagic=32-bit;;
27428 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
27429 - libsuff=32 shlibsuff=N32 libmagic=N32;;
27430 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
27431 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
27432 - *) libsuff= shlibsuff= libmagic=never-match;;
27433 - esac
27434 - ;;
27435 - esac
27436 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
27437 - shlibpath_overrides_runpath=no
27438 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
27439 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
27440 - hardcode_into_libs=yes
27441 - ;;
27442
27443 -# No shared lib support for Linux oldld, aout, or coff.
27444 -linux*oldld* | linux*aout* | linux*coff*)
27445 - dynamic_linker=no
27446 - ;;
27447
27448 -# This must be Linux ELF.
27449 -linux* | k*bsd*-gnu)
27450 - version_type=linux
27451 - need_lib_prefix=no
27452 - need_version=no
27453 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27454 - soname_spec='${libname}${release}${shared_ext}$major'
27455 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
27456 - shlibpath_var=LD_LIBRARY_PATH
27457 - shlibpath_overrides_runpath=no
27458 - # This implies no fast_install, which is unacceptable.
27459 - # Some rework will be needed to allow for fast_install
27460 - # before this can be enabled.
27461 - hardcode_into_libs=yes
27462 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
27463 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
27464
27465 - # Append ld.so.conf contents to the search path
27466 - if test -f /etc/ld.so.conf; then
27467 - 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' ' '`
27468 - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
27469 - fi
27470
27471 - # We used to test for /lib/ld.so.1 and disable shared libraries on
27472 - # powerpc, because MkLinux only supported shared libraries with the
27473 - # GNU dynamic linker. Since this was broken with cross compilers,
27474 - # most powerpc-linux boxes support dynamic linking these days and
27475 - # people can always --disable-shared, the test was removed, and we
27476 - # assume the GNU/Linux dynamic linker is in use.
27477 - dynamic_linker='GNU/Linux ld.so'
27478 - ;;
27479
27480 -netbsd*)
27481 - version_type=sunos
27482 - need_lib_prefix=no
27483 - need_version=no
27484 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27485 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27486 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27487 - dynamic_linker='NetBSD (a.out) ld.so'
27488 - else
27489 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27490 - soname_spec='${libname}${release}${shared_ext}$major'
27491 - dynamic_linker='NetBSD ld.elf_so'
27492 - fi
27493 - shlibpath_var=LD_LIBRARY_PATH
27494 - shlibpath_overrides_runpath=yes
27495 - hardcode_into_libs=yes
27496 - ;;
27497
27498 -newsos6)
27499 - version_type=linux
27500 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27501 - shlibpath_var=LD_LIBRARY_PATH
27502 - shlibpath_overrides_runpath=yes
27503 - ;;
27504
27505 -nto-qnx*)
27506 - version_type=linux
27507 - need_lib_prefix=no
27508 - need_version=no
27509 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27510 - soname_spec='${libname}${release}${shared_ext}$major'
27511 - shlibpath_var=LD_LIBRARY_PATH
27512 - shlibpath_overrides_runpath=yes
27513 - ;;
27514
27515 -openbsd*)
27516 - version_type=sunos
27517 - sys_lib_dlsearch_path_spec="/usr/lib"
27518 - need_lib_prefix=no
27519 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
27520 - case $host_os in
27521 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
27522 - *) need_version=no ;;
27523 - esac
27524 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27525 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27526 - shlibpath_var=LD_LIBRARY_PATH
27527 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27528 - case $host_os in
27529 - openbsd2.[89] | openbsd2.[89].*)
27530 - shlibpath_overrides_runpath=no
27531 - ;;
27532 - *)
27533 - shlibpath_overrides_runpath=yes
27534 - ;;
27535 - esac
27536 - else
27537 - shlibpath_overrides_runpath=yes
27538 - fi
27539 - ;;
27540
27541 -os2*)
27542 - libname_spec='$name'
27543 - shrext_cmds=".dll"
27544 - need_lib_prefix=no
27545 - library_names_spec='$libname${shared_ext} $libname.a'
27546 - dynamic_linker='OS/2 ld.exe'
27547 - shlibpath_var=LIBPATH
27548 - ;;
27549
27550 -osf3* | osf4* | osf5*)
27551 - version_type=osf
27552 - need_lib_prefix=no
27553 - need_version=no
27554 - soname_spec='${libname}${release}${shared_ext}$major'
27555 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27556 - shlibpath_var=LD_LIBRARY_PATH
27557 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
27558 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
27559 - ;;
27560
27561 -rdos*)
27562 - dynamic_linker=no
27563 - ;;
27564
27565 -solaris*)
27566 - version_type=linux
27567 - need_lib_prefix=no
27568 - need_version=no
27569 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27570 - soname_spec='${libname}${release}${shared_ext}$major'
27571 - shlibpath_var=LD_LIBRARY_PATH
27572 - shlibpath_overrides_runpath=yes
27573 - hardcode_into_libs=yes
27574 - # ldd complains unless libraries are executable
27575 - postinstall_cmds='chmod +x $lib'
27576 - ;;
27577
27578 -sunos4*)
27579 - version_type=sunos
27580 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27581 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
27582 - shlibpath_var=LD_LIBRARY_PATH
27583 - shlibpath_overrides_runpath=yes
27584 - if test "$with_gnu_ld" = yes; then
27585 - need_lib_prefix=no
27586 - fi
27587 - need_version=yes
27588 - ;;
27589
27590 -sysv4 | sysv4.3*)
27591 - version_type=linux
27592 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27593 - soname_spec='${libname}${release}${shared_ext}$major'
27594 - shlibpath_var=LD_LIBRARY_PATH
27595 - case $host_vendor in
27596 - sni)
27597 - shlibpath_overrides_runpath=no
27598 - need_lib_prefix=no
27599 - export_dynamic_flag_spec='${wl}-Blargedynsym'
27600 - runpath_var=LD_RUN_PATH
27601 - ;;
27602 - siemens)
27603 - need_lib_prefix=no
27604 - ;;
27605 - motorola)
27606 - need_lib_prefix=no
27607 - need_version=no
27608 - shlibpath_overrides_runpath=no
27609 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
27610 - ;;
27611 +
27612 +
27613 +
27614 +
27615 +
27616 +
27617 +
27618 +
27619 +
27620 +
27621 +
27622 +
27623 +
27624 +
27625 +
27626 +
27627 +
27628 +
27629 +
27630 +
27631 +
27632 +
27633 +
27634 +
27635 +
27636 +
27637 +
27638 +
27639 +
27640 +
27641 +
27642 +
27643 +
27644 +
27645 +
27646 +
27647 +
27648 +
27649 +
27650 +
27651 +
27652 +
27653 +
27654 +
27655 +
27656 +
27657 +
27658 +
27659 +
27660 +
27661 +
27662 +
27663 +
27664 +
27665 +
27666 +
27667 +
27668 +
27669 +
27670 +
27671 +
27672 +
27673 +
27674 +
27675 +
27676 +
27677 +
27678 +
27679 +
27680 +
27681 +
27682 +
27683 +
27684 +
27685 +
27686 +
27687 +
27688 +
27689 +
27690 +
27691 +
27692 +
27693 +
27694 +
27695 +
27696 +
27697 +
27698 +
27699 +
27700 +
27701 +
27702 +
27703 +
27704 +
27705 +
27706 +
27707 +
27708 +
27709 +
27710 +
27711 +
27712 +
27713 +
27714 +
27715 +
27716 +
27717 +
27718 +
27719 +
27720 +
27721 +
27722 +
27723 +
27724 +
27725 +
27726 +
27727 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
27728 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
27729 +
27730 +if test "$GCC" = yes; then
27731 + case $host_os in
27732 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
27733 + *) lt_awk_arg="/^libraries:/" ;;
27734 esac
27735 - ;;
27736 + case $host_os in
27737 + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
27738 + *) lt_sed_strip_eq="s,=/,/,g" ;;
27739 + esac
27740 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
27741 + case $lt_search_path_spec in
27742 + *\;*)
27743 + # if the path contains ";" then we assume it to be the separator
27744 + # otherwise default to the standard path separator (i.e. ":") - it is
27745 + # assumed that no part of a normal pathname contains ";" but that should
27746 + # okay in the real world where ";" in dirpaths is itself problematic.
27747 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
27748 + ;;
27749 + *)
27750 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
27751 + ;;
27752 + esac
27753 + # Ok, now we have the path, separated by spaces, we can step through it
27754 + # and add multilib dir if necessary.
27755 + lt_tmp_lt_search_path_spec=
27756 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
27757 + for lt_sys_path in $lt_search_path_spec; do
27758 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
27759 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
27760 + else
27761 + test -d "$lt_sys_path" && \
27762 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
27763 + fi
27764 + done
27765 + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
27766 +BEGIN {RS=" "; FS="/|\n";} {
27767 + lt_foo="";
27768 + lt_count=0;
27769 + for (lt_i = NF; lt_i > 0; lt_i--) {
27770 + if ($lt_i != "" && $lt_i != ".") {
27771 + if ($lt_i == "..") {
27772 + lt_count++;
27773 + } else {
27774 + if (lt_count == 0) {
27775 + lt_foo="/" $lt_i lt_foo;
27776 + } else {
27777 + lt_count--;
27778 + }
27779 + }
27780 + }
27781 + }
27782 + if (lt_foo != "") { lt_freq[lt_foo]++; }
27783 + if (lt_freq[lt_foo] == 1) { print lt_foo; }
27784 +}'`
27785 + # AWK program above erroneously prepends '/' to C:/dos/paths
27786 + # for these hosts.
27787 + case $host_os in
27788 + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
27789 + $SED 's,/\([A-Za-z]:\),\1,g'` ;;
27790 + esac
27791 + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
27792 +else
27793 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
27794 +fi
27795 +library_names_spec=
27796 +libname_spec='lib$name'
27797 +soname_spec=
27798 +shrext_cmds=".so"
27799 +postinstall_cmds=
27800 +postuninstall_cmds=
27801 +finish_cmds=
27802 +finish_eval=
27803 +shlibpath_var=
27804 +shlibpath_overrides_runpath=unknown
27805 +version_type=none
27806 +dynamic_linker="$host_os ld.so"
27807 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
27808 +need_lib_prefix=unknown
27809 +hardcode_into_libs=no
27810 +
27811 +# when you set need_version to no, make sure it does not cause -set_version
27812 +# flags to be left without arguments
27813 +need_version=unknown
27814
27815 -sysv4*MP*)
27816 - if test -d /usr/nec ;then
27817 - version_type=linux
27818 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
27819 - soname_spec='$libname${shared_ext}.$major'
27820 - shlibpath_var=LD_LIBRARY_PATH
27821 - fi
27822 +case $host_os in
27823 +aix3*)
27824 + version_type=linux # correct to gnu/linux during the next big refactor
27825 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
27826 + shlibpath_var=LIBPATH
27827 +
27828 + # AIX 3 has no versioning support, so we append a major version to the name.
27829 + soname_spec='${libname}${release}${shared_ext}$major'
27830 ;;
27831
27832 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
27833 - version_type=freebsd-elf
27834 +aix[4-9]*)
27835 + version_type=linux # correct to gnu/linux during the next big refactor
27836 need_lib_prefix=no
27837 need_version=no
27838 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27839 - soname_spec='${libname}${release}${shared_ext}$major'
27840 - shlibpath_var=LD_LIBRARY_PATH
27841 hardcode_into_libs=yes
27842 - if test "$with_gnu_ld" = yes; then
27843 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
27844 - shlibpath_overrides_runpath=no
27845 + if test "$host_cpu" = ia64; then
27846 + # AIX 5 supports IA64
27847 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
27848 + shlibpath_var=LD_LIBRARY_PATH
27849 else
27850 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
27851 - shlibpath_overrides_runpath=yes
27852 + # With GCC up to 2.95.x, collect2 would create an import file
27853 + # for dependence libraries. The import file would start with
27854 + # the line `#! .'. This would cause the generated library to
27855 + # depend on `.', always an invalid library. This was fixed in
27856 + # development snapshots of GCC prior to 3.0.
27857 case $host_os in
27858 - sco3.2v5*)
27859 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
27860 - ;;
27861 + aix4 | aix4.[01] | aix4.[01].*)
27862 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
27863 + echo ' yes '
27864 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
27865 + :
27866 + else
27867 + can_build_shared=no
27868 + fi
27869 + ;;
27870 esac
27871 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
27872 + # soname into executable. Probably we can add versioning support to
27873 + # collect2, so additional links can be useful in future.
27874 + if test "$aix_use_runtimelinking" = yes; then
27875 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
27876 + # instead of lib<name>.a to let people know that these are not
27877 + # typical AIX shared libraries.
27878 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27879 + else
27880 + # We preserve .a as extension for shared libraries through AIX4.2
27881 + # and later when we are not doing run time linking.
27882 + library_names_spec='${libname}${release}.a $libname.a'
27883 + soname_spec='${libname}${release}${shared_ext}$major'
27884 + fi
27885 + shlibpath_var=LIBPATH
27886 fi
27887 - sys_lib_dlsearch_path_spec='/usr/lib'
27888 ;;
27889
27890 -uts4*)
27891 - version_type=linux
27892 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27893 - soname_spec='${libname}${release}${shared_ext}$major'
27894 - shlibpath_var=LD_LIBRARY_PATH
27895 +amigaos*)
27896 + case $host_cpu in
27897 + powerpc)
27898 + # Since July 2007 AmigaOS4 officially supports .so libraries.
27899 + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
27900 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27901 + ;;
27902 + m68k)
27903 + library_names_spec='$libname.ixlibrary $libname.a'
27904 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
27905 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
27906 + ;;
27907 + esac
27908 ;;
27909
27910 -*)
27911 - dynamic_linker=no
27912 +beos*)
27913 + library_names_spec='${libname}${shared_ext}'
27914 + dynamic_linker="$host_os ld.so"
27915 + shlibpath_var=LIBRARY_PATH
27916 ;;
27917 -esac
27918 -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
27919 -$as_echo "$dynamic_linker" >&6; }
27920 -test "$dynamic_linker" = no && can_build_shared=no
27921 -
27922 -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
27923 - $as_echo_n "(cached) " >&6
27924 -else
27925 - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
27926 -fi
27927 -
27928 -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
27929 -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
27930 - $as_echo_n "(cached) " >&6
27931 -else
27932 - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
27933 -fi
27934 -
27935 -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
27936 -
27937 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
27938 -if test "$GCC" = yes; then
27939 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
27940 -fi
27941 -
27942 -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
27943 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
27944 -hardcode_action=
27945 -if test -n "$hardcode_libdir_flag_spec" || \
27946 - test -n "$runpath_var" || \
27947 - test "X$hardcode_automatic" = "Xyes" ; then
27948
27949 - # We can hardcode non-existant directories.
27950 - if test "$hardcode_direct" != no &&
27951 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
27952 - # have to relink, otherwise we might link with an installed library
27953 - # when we should be linking with a yet-to-be-installed one
27954 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
27955 - test "$hardcode_minus_L" != no; then
27956 - # Linking always hardcodes the temporary library directory.
27957 - hardcode_action=relink
27958 - else
27959 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
27960 - hardcode_action=immediate
27961 - fi
27962 -else
27963 - # We cannot hardcode anything, or else we can only hardcode existing
27964 - # directories.
27965 - hardcode_action=unsupported
27966 -fi
27967 -{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
27968 -$as_echo "$hardcode_action" >&6; }
27969 +bsdi[45]*)
27970 + version_type=linux # correct to gnu/linux during the next big refactor
27971 + need_version=no
27972 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27973 + soname_spec='${libname}${release}${shared_ext}$major'
27974 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
27975 + shlibpath_var=LD_LIBRARY_PATH
27976 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
27977 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
27978 + # the default ld.so.conf also contains /usr/contrib/lib and
27979 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
27980 + # libtool to hard-code these into programs
27981 + ;;
27982
27983 -if test "$hardcode_action" = relink; then
27984 - # Fast installation is not supported
27985 - enable_fast_install=no
27986 -elif test "$shlibpath_overrides_runpath" = yes ||
27987 - test "$enable_shared" = no; then
27988 - # Fast installation is not necessary
27989 - enable_fast_install=needless
27990 -fi
27991 +cygwin* | mingw* | pw32* | cegcc*)
27992 + version_type=windows
27993 + shrext_cmds=".dll"
27994 + need_version=no
27995 + need_lib_prefix=no
27996
27997 -striplib=
27998 -old_striplib=
27999 -{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
28000 -$as_echo_n "checking whether stripping libraries is possible... " >&6; }
28001 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
28002 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
28003 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
28004 - { $as_echo "$as_me:$LINENO: result: yes" >&5
28005 -$as_echo "yes" >&6; }
28006 -else
28007 -# FIXME - insert some real tests, host_os isn't really good enough
28008 - case $host_os in
28009 - darwin*)
28010 - if test -n "$STRIP" ; then
28011 - striplib="$STRIP -x"
28012 - old_striplib="$STRIP -S"
28013 - { $as_echo "$as_me:$LINENO: result: yes" >&5
28014 -$as_echo "yes" >&6; }
28015 - else
28016 - { $as_echo "$as_me:$LINENO: result: no" >&5
28017 -$as_echo "no" >&6; }
28018 -fi
28019 - ;;
28020 - *)
28021 - { $as_echo "$as_me:$LINENO: result: no" >&5
28022 -$as_echo "no" >&6; }
28023 - ;;
28024 - esac
28025 -fi
28026 + case $GCC,$cc_basename in
28027 + yes,*)
28028 + # gcc
28029 + library_names_spec='$libname.dll.a'
28030 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
28031 + postinstall_cmds='base_file=`basename \${file}`~
28032 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
28033 + dldir=$destdir/`dirname \$dlpath`~
28034 + test -d \$dldir || mkdir -p \$dldir~
28035 + $install_prog $dir/$dlname \$dldir/$dlname~
28036 + chmod a+x \$dldir/$dlname~
28037 + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
28038 + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
28039 + fi'
28040 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
28041 + dlpath=$dir/\$dldll~
28042 + $RM \$dlpath'
28043 + shlibpath_overrides_runpath=yes
28044
28045 -if test "x$enable_dlopen" != xyes; then
28046 - enable_dlopen=unknown
28047 - enable_dlopen_self=unknown
28048 - enable_dlopen_self_static=unknown
28049 -else
28050 - lt_cv_dlopen=no
28051 - lt_cv_dlopen_libs=
28052 + case $host_os in
28053 + cygwin*)
28054 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
28055 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28056
28057 - case $host_os in
28058 - beos*)
28059 - lt_cv_dlopen="load_add_on"
28060 - lt_cv_dlopen_libs=
28061 - lt_cv_dlopen_self=yes
28062 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
28063 + ;;
28064 + mingw* | cegcc*)
28065 + # MinGW DLLs use traditional 'lib' prefix
28066 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28067 + ;;
28068 + pw32*)
28069 + # pw32 DLLs use 'pw' prefix rather than 'lib'
28070 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28071 + ;;
28072 + esac
28073 + dynamic_linker='Win32 ld.exe'
28074 ;;
28075
28076 - mingw* | pw32*)
28077 - lt_cv_dlopen="LoadLibrary"
28078 - lt_cv_dlopen_libs=
28079 - ;;
28080 -
28081 - cygwin*)
28082 - lt_cv_dlopen="dlopen"
28083 - lt_cv_dlopen_libs=
28084 - ;;
28085 + *,cl*)
28086 + # Native MSVC
28087 + libname_spec='$name'
28088 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28089 + library_names_spec='${libname}.dll.lib'
28090
28091 - darwin*)
28092 - # if libdl is installed we need to link against it
28093 - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28094 -$as_echo_n "checking for dlopen in -ldl... " >&6; }
28095 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28096 - $as_echo_n "(cached) " >&6
28097 -else
28098 - ac_check_lib_save_LIBS=$LIBS
28099 -LIBS="-ldl $LIBS"
28100 -cat >conftest.$ac_ext <<_ACEOF
28101 -/* confdefs.h. */
28102 -_ACEOF
28103 -cat confdefs.h >>conftest.$ac_ext
28104 -cat >>conftest.$ac_ext <<_ACEOF
28105 -/* end confdefs.h. */
28106 + case $build_os in
28107 + mingw*)
28108 + sys_lib_search_path_spec=
28109 + lt_save_ifs=$IFS
28110 + IFS=';'
28111 + for lt_path in $LIB
28112 + do
28113 + IFS=$lt_save_ifs
28114 + # Let DOS variable expansion print the short 8.3 style file name.
28115 + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
28116 + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
28117 + done
28118 + IFS=$lt_save_ifs
28119 + # Convert to MSYS style.
28120 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
28121 + ;;
28122 + cygwin*)
28123 + # Convert to unix form, then to dos form, then back to unix form
28124 + # but this time dos style (no spaces!) so that the unix form looks
28125 + # like /cygdrive/c/PROGRA~1:/cygdr...
28126 + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
28127 + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
28128 + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
28129 + ;;
28130 + *)
28131 + sys_lib_search_path_spec="$LIB"
28132 + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
28133 + # It is most probably a Windows format PATH.
28134 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28135 + else
28136 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
28137 + fi
28138 + # FIXME: find the short name or the path components, as spaces are
28139 + # common. (e.g. "Program Files" -> "PROGRA~1")
28140 + ;;
28141 + esac
28142
28143 -/* Override any GCC internal prototype to avoid an error.
28144 - Use char because int might match the return type of a GCC
28145 - builtin and then its argument prototype would still apply. */
28146 -#ifdef __cplusplus
28147 -extern "C"
28148 -#endif
28149 -char dlopen ();
28150 -int
28151 -main ()
28152 -{
28153 -return dlopen ();
28154 - ;
28155 - return 0;
28156 -}
28157 -_ACEOF
28158 -rm -f conftest.$ac_objext conftest$ac_exeext
28159 -if { (ac_try="$ac_link"
28160 -case "(($ac_try" in
28161 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 - *) ac_try_echo=$ac_try;;
28163 -esac
28164 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28165 -$as_echo "$ac_try_echo") >&5
28166 - (eval "$ac_link") 2>conftest.er1
28167 - ac_status=$?
28168 - grep -v '^ *+' conftest.er1 >conftest.err
28169 - rm -f conftest.er1
28170 - cat conftest.err >&5
28171 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 - (exit $ac_status); } && {
28173 - test -z "$ac_c_werror_flag" ||
28174 - test ! -s conftest.err
28175 - } && test -s conftest$ac_exeext && {
28176 - test "$cross_compiling" = yes ||
28177 - $as_test_x conftest$ac_exeext
28178 - }; then
28179 - ac_cv_lib_dl_dlopen=yes
28180 -else
28181 - $as_echo "$as_me: failed program was:" >&5
28182 -sed 's/^/| /' conftest.$ac_ext >&5
28183 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
28184 + postinstall_cmds='base_file=`basename \${file}`~
28185 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
28186 + dldir=$destdir/`dirname \$dlpath`~
28187 + test -d \$dldir || mkdir -p \$dldir~
28188 + $install_prog $dir/$dlname \$dldir/$dlname'
28189 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
28190 + dlpath=$dir/\$dldll~
28191 + $RM \$dlpath'
28192 + shlibpath_overrides_runpath=yes
28193 + dynamic_linker='Win32 link.exe'
28194 + ;;
28195
28196 - ac_cv_lib_dl_dlopen=no
28197 -fi
28198 + *)
28199 + # Assume MSVC wrapper
28200 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
28201 + dynamic_linker='Win32 ld.exe'
28202 + ;;
28203 + esac
28204 + # FIXME: first we should search . and the directory the executable is in
28205 + shlibpath_var=PATH
28206 + ;;
28207
28208 -rm -rf conftest.dSYM
28209 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28210 - conftest$ac_exeext conftest.$ac_ext
28211 -LIBS=$ac_check_lib_save_LIBS
28212 -fi
28213 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28214 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
28215 -if test $ac_cv_lib_dl_dlopen = yes; then
28216 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
28217 -else
28218 +darwin* | rhapsody*)
28219 + dynamic_linker="$host_os dyld"
28220 + version_type=darwin
28221 + need_lib_prefix=no
28222 + need_version=no
28223 + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
28224 + soname_spec='${libname}${release}${major}$shared_ext'
28225 + shlibpath_overrides_runpath=yes
28226 + shlibpath_var=DYLD_LIBRARY_PATH
28227 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
28228
28229 - lt_cv_dlopen="dyld"
28230 - lt_cv_dlopen_libs=
28231 - lt_cv_dlopen_self=yes
28232 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
28233 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
28234 + ;;
28235
28236 -fi
28237 +dgux*)
28238 + version_type=linux # correct to gnu/linux during the next big refactor
28239 + need_lib_prefix=no
28240 + need_version=no
28241 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
28242 + soname_spec='${libname}${release}${shared_ext}$major'
28243 + shlibpath_var=LD_LIBRARY_PATH
28244 + ;;
28245
28246 - ;;
28247 +freebsd* | dragonfly*)
28248 + # DragonFly does not have aout. When/if they implement a new
28249 + # versioning mechanism, adjust this.
28250 + if test -x /usr/bin/objformat; then
28251 + objformat=`/usr/bin/objformat`
28252 + else
28253 + case $host_os in
28254 + freebsd[23].*) objformat=aout ;;
28255 + *) objformat=elf ;;
28256 + esac
28257 + fi
28258 + version_type=freebsd-$objformat
28259 + case $version_type in
28260 + freebsd-elf*)
28261 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
28262 + need_version=no
28263 + need_lib_prefix=no
28264 + ;;
28265 + freebsd-*)
28266 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
28267 + need_version=yes
28268 + ;;
28269 + esac
28270 + shlibpath_var=LD_LIBRARY_PATH
28271 + case $host_os in
28272 + freebsd2.*)
28273 + shlibpath_overrides_runpath=yes
28274 + ;;
28275 + freebsd3.[01]* | freebsdelf3.[01]*)
28276 + shlibpath_overrides_runpath=yes
28277 + hardcode_into_libs=yes
28278 + ;;
28279 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
28280 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
28281 + shlibpath_overrides_runpath=no
28282 + hardcode_into_libs=yes
28283 + ;;
28284 + *) # from 4.6 on, and DragonFly
28285 + shlibpath_overrides_runpath=yes
28286 + hardcode_into_libs=yes
28287 + ;;
28288 + esac
28289 + ;;
28290
28291 - *)
28292 - { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
28293 -$as_echo_n "checking for shl_load... " >&6; }
28294 -if test "${ac_cv_func_shl_load+set}" = set; then
28295 - $as_echo_n "(cached) " >&6
28296 -else
28297 - cat >conftest.$ac_ext <<_ACEOF
28298 -/* confdefs.h. */
28299 -_ACEOF
28300 -cat confdefs.h >>conftest.$ac_ext
28301 -cat >>conftest.$ac_ext <<_ACEOF
28302 -/* end confdefs.h. */
28303 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
28304 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
28305 -#define shl_load innocuous_shl_load
28306 +gnu*)
28307 + version_type=linux # correct to gnu/linux during the next big refactor
28308 + need_lib_prefix=no
28309 + need_version=no
28310 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
28311 + soname_spec='${libname}${release}${shared_ext}$major'
28312 + shlibpath_var=LD_LIBRARY_PATH
28313 + shlibpath_overrides_runpath=no
28314 + hardcode_into_libs=yes
28315 + ;;
28316
28317 -/* System header to define __stub macros and hopefully few prototypes,
28318 - which can conflict with char shl_load (); below.
28319 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28320 - <limits.h> exists even on freestanding compilers. */
28321 +haiku*)
28322 + version_type=linux # correct to gnu/linux during the next big refactor
28323 + need_lib_prefix=no
28324 + need_version=no
28325 + dynamic_linker="$host_os runtime_loader"
28326 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
28327 + soname_spec='${libname}${release}${shared_ext}$major'
28328 + shlibpath_var=LIBRARY_PATH
28329 + shlibpath_overrides_runpath=yes
28330 + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
28331 + hardcode_into_libs=yes
28332 + ;;
28333
28334 -#ifdef __STDC__
28335 -# include <limits.h>
28336 -#else
28337 -# include <assert.h>
28338 -#endif
28339 +hpux9* | hpux10* | hpux11*)
28340 + # Give a soname corresponding to the major version so that dld.sl refuses to
28341 + # link against other versions.
28342 + version_type=sunos
28343 + need_lib_prefix=no
28344 + need_version=no
28345 + case $host_cpu in
28346 + ia64*)
28347 + shrext_cmds='.so'
28348 + hardcode_into_libs=yes
28349 + dynamic_linker="$host_os dld.so"
28350 + shlibpath_var=LD_LIBRARY_PATH
28351 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28352 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28353 + soname_spec='${libname}${release}${shared_ext}$major'
28354 + if test "X$HPUX_IA64_MODE" = X32; then
28355 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
28356 + else
28357 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
28358 + fi
28359 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28360 + ;;
28361 + hppa*64*)
28362 + shrext_cmds='.sl'
28363 + hardcode_into_libs=yes
28364 + dynamic_linker="$host_os dld.sl"
28365 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
28366 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28367 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28368 + soname_spec='${libname}${release}${shared_ext}$major'
28369 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
28370 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28371 + ;;
28372 + *)
28373 + shrext_cmds='.sl'
28374 + dynamic_linker="$host_os dld.sl"
28375 + shlibpath_var=SHLIB_PATH
28376 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
28377 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28378 + soname_spec='${libname}${release}${shared_ext}$major'
28379 + ;;
28380 + esac
28381 + # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
28382 + postinstall_cmds='chmod 555 $lib'
28383 + # or fails outright, so override atomically:
28384 + install_override_mode=555
28385 + ;;
28386
28387 -#undef shl_load
28388 +interix[3-9]*)
28389 + version_type=linux # correct to gnu/linux during the next big refactor
28390 + need_lib_prefix=no
28391 + need_version=no
28392 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28393 + soname_spec='${libname}${release}${shared_ext}$major'
28394 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
28395 + shlibpath_var=LD_LIBRARY_PATH
28396 + shlibpath_overrides_runpath=no
28397 + hardcode_into_libs=yes
28398 + ;;
28399
28400 -/* Override any GCC internal prototype to avoid an error.
28401 - Use char because int might match the return type of a GCC
28402 - builtin and then its argument prototype would still apply. */
28403 -#ifdef __cplusplus
28404 -extern "C"
28405 -#endif
28406 -char shl_load ();
28407 -/* The GNU C library defines this for functions which it implements
28408 - to always fail with ENOSYS. Some functions are actually named
28409 - something starting with __ and the normal name is an alias. */
28410 -#if defined __stub_shl_load || defined __stub___shl_load
28411 -choke me
28412 -#endif
28413 +irix5* | irix6* | nonstopux*)
28414 + case $host_os in
28415 + nonstopux*) version_type=nonstopux ;;
28416 + *)
28417 + if test "$lt_cv_prog_gnu_ld" = yes; then
28418 + version_type=linux # correct to gnu/linux during the next big refactor
28419 + else
28420 + version_type=irix
28421 + fi ;;
28422 + esac
28423 + need_lib_prefix=no
28424 + need_version=no
28425 + soname_spec='${libname}${release}${shared_ext}$major'
28426 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
28427 + case $host_os in
28428 + irix5* | nonstopux*)
28429 + libsuff= shlibsuff=
28430 + ;;
28431 + *)
28432 + case $LD in # libtool.m4 will add one of these switches to LD
28433 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
28434 + libsuff= shlibsuff= libmagic=32-bit;;
28435 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
28436 + libsuff=32 shlibsuff=N32 libmagic=N32;;
28437 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
28438 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
28439 + *) libsuff= shlibsuff= libmagic=never-match;;
28440 + esac
28441 + ;;
28442 + esac
28443 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
28444 + shlibpath_overrides_runpath=no
28445 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
28446 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
28447 + hardcode_into_libs=yes
28448 + ;;
28449
28450 -int
28451 -main ()
28452 -{
28453 -return shl_load ();
28454 - ;
28455 - return 0;
28456 -}
28457 -_ACEOF
28458 -rm -f conftest.$ac_objext conftest$ac_exeext
28459 -if { (ac_try="$ac_link"
28460 -case "(($ac_try" in
28461 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462 - *) ac_try_echo=$ac_try;;
28463 -esac
28464 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28465 -$as_echo "$ac_try_echo") >&5
28466 - (eval "$ac_link") 2>conftest.er1
28467 - ac_status=$?
28468 - grep -v '^ *+' conftest.er1 >conftest.err
28469 - rm -f conftest.er1
28470 - cat conftest.err >&5
28471 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 - (exit $ac_status); } && {
28473 - test -z "$ac_c_werror_flag" ||
28474 - test ! -s conftest.err
28475 - } && test -s conftest$ac_exeext && {
28476 - test "$cross_compiling" = yes ||
28477 - $as_test_x conftest$ac_exeext
28478 - }; then
28479 - ac_cv_func_shl_load=yes
28480 -else
28481 - $as_echo "$as_me: failed program was:" >&5
28482 -sed 's/^/| /' conftest.$ac_ext >&5
28483 +# No shared lib support for Linux oldld, aout, or coff.
28484 +linux*oldld* | linux*aout* | linux*coff*)
28485 + dynamic_linker=no
28486 + ;;
28487
28488 - ac_cv_func_shl_load=no
28489 -fi
28490 +# This must be glibc/ELF.
28491 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
28492 + version_type=linux # correct to gnu/linux during the next big refactor
28493 + need_lib_prefix=no
28494 + need_version=no
28495 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28496 + soname_spec='${libname}${release}${shared_ext}$major'
28497 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
28498 + shlibpath_var=LD_LIBRARY_PATH
28499 + shlibpath_overrides_runpath=no
28500
28501 -rm -rf conftest.dSYM
28502 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28503 - conftest$ac_exeext conftest.$ac_ext
28504 -fi
28505 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
28506 -$as_echo "$ac_cv_func_shl_load" >&6; }
28507 -if test $ac_cv_func_shl_load = yes; then
28508 - lt_cv_dlopen="shl_load"
28509 -else
28510 - { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
28511 -$as_echo_n "checking for shl_load in -ldld... " >&6; }
28512 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
28513 - $as_echo_n "(cached) " >&6
28514 -else
28515 - ac_check_lib_save_LIBS=$LIBS
28516 -LIBS="-ldld $LIBS"
28517 -cat >conftest.$ac_ext <<_ACEOF
28518 -/* confdefs.h. */
28519 -_ACEOF
28520 -cat confdefs.h >>conftest.$ac_ext
28521 -cat >>conftest.$ac_ext <<_ACEOF
28522 + # Some binutils ld are patched to set DT_RUNPATH
28523 + if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
28524 + $as_echo_n "(cached) " >&6
28525 +else
28526 + lt_cv_shlibpath_overrides_runpath=no
28527 + save_LDFLAGS=$LDFLAGS
28528 + save_libdir=$libdir
28529 + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
28530 + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
28531 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28532 /* end confdefs.h. */
28533
28534 -/* Override any GCC internal prototype to avoid an error.
28535 - Use char because int might match the return type of a GCC
28536 - builtin and then its argument prototype would still apply. */
28537 -#ifdef __cplusplus
28538 -extern "C"
28539 -#endif
28540 -char shl_load ();
28541 int
28542 main ()
28543 {
28544 -return shl_load ();
28545 +
28546 ;
28547 return 0;
28548 }
28549 _ACEOF
28550 -rm -f conftest.$ac_objext conftest$ac_exeext
28551 -if { (ac_try="$ac_link"
28552 -case "(($ac_try" in
28553 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28554 - *) ac_try_echo=$ac_try;;
28555 -esac
28556 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28557 -$as_echo "$ac_try_echo") >&5
28558 - (eval "$ac_link") 2>conftest.er1
28559 - ac_status=$?
28560 - grep -v '^ *+' conftest.er1 >conftest.err
28561 - rm -f conftest.er1
28562 - cat conftest.err >&5
28563 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 - (exit $ac_status); } && {
28565 - test -z "$ac_c_werror_flag" ||
28566 - test ! -s conftest.err
28567 - } && test -s conftest$ac_exeext && {
28568 - test "$cross_compiling" = yes ||
28569 - $as_test_x conftest$ac_exeext
28570 - }; then
28571 - ac_cv_lib_dld_shl_load=yes
28572 -else
28573 - $as_echo "$as_me: failed program was:" >&5
28574 -sed 's/^/| /' conftest.$ac_ext >&5
28575 -
28576 - ac_cv_lib_dld_shl_load=no
28577 +if ac_fn_c_try_link "$LINENO"; then :
28578 + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
28579 + lt_cv_shlibpath_overrides_runpath=yes
28580 +fi
28581 fi
28582 +rm -f core conftest.err conftest.$ac_objext \
28583 + conftest$ac_exeext conftest.$ac_ext
28584 + LDFLAGS=$save_LDFLAGS
28585 + libdir=$save_libdir
28586
28587 -rm -rf conftest.dSYM
28588 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28589 - conftest$ac_exeext conftest.$ac_ext
28590 -LIBS=$ac_check_lib_save_LIBS
28591 fi
28592 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
28593 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
28594 -if test $ac_cv_lib_dld_shl_load = yes; then
28595 - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
28596 -else
28597 - { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
28598 -$as_echo_n "checking for dlopen... " >&6; }
28599 -if test "${ac_cv_func_dlopen+set}" = set; then
28600 - $as_echo_n "(cached) " >&6
28601 -else
28602 - cat >conftest.$ac_ext <<_ACEOF
28603 -/* confdefs.h. */
28604 -_ACEOF
28605 -cat confdefs.h >>conftest.$ac_ext
28606 -cat >>conftest.$ac_ext <<_ACEOF
28607 -/* end confdefs.h. */
28608 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
28609 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
28610 -#define dlopen innocuous_dlopen
28611
28612 -/* System header to define __stub macros and hopefully few prototypes,
28613 - which can conflict with char dlopen (); below.
28614 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28615 - <limits.h> exists even on freestanding compilers. */
28616 + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
28617
28618 -#ifdef __STDC__
28619 -# include <limits.h>
28620 -#else
28621 -# include <assert.h>
28622 -#endif
28623 + # This implies no fast_install, which is unacceptable.
28624 + # Some rework will be needed to allow for fast_install
28625 + # before this can be enabled.
28626 + hardcode_into_libs=yes
28627
28628 -#undef dlopen
28629 + # Append ld.so.conf contents to the search path
28630 + if test -f /etc/ld.so.conf; then
28631 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
28632 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
28633 + fi
28634
28635 -/* Override any GCC internal prototype to avoid an error.
28636 - Use char because int might match the return type of a GCC
28637 - builtin and then its argument prototype would still apply. */
28638 -#ifdef __cplusplus
28639 -extern "C"
28640 -#endif
28641 -char dlopen ();
28642 -/* The GNU C library defines this for functions which it implements
28643 - to always fail with ENOSYS. Some functions are actually named
28644 - something starting with __ and the normal name is an alias. */
28645 -#if defined __stub_dlopen || defined __stub___dlopen
28646 -choke me
28647 -#endif
28648 + # We used to test for /lib/ld.so.1 and disable shared libraries on
28649 + # powerpc, because MkLinux only supported shared libraries with the
28650 + # GNU dynamic linker. Since this was broken with cross compilers,
28651 + # most powerpc-linux boxes support dynamic linking these days and
28652 + # people can always --disable-shared, the test was removed, and we
28653 + # assume the GNU/Linux dynamic linker is in use.
28654 + dynamic_linker='GNU/Linux ld.so'
28655 + ;;
28656
28657 -int
28658 -main ()
28659 -{
28660 -return dlopen ();
28661 - ;
28662 - return 0;
28663 -}
28664 -_ACEOF
28665 -rm -f conftest.$ac_objext conftest$ac_exeext
28666 -if { (ac_try="$ac_link"
28667 -case "(($ac_try" in
28668 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669 - *) ac_try_echo=$ac_try;;
28670 -esac
28671 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28672 -$as_echo "$ac_try_echo") >&5
28673 - (eval "$ac_link") 2>conftest.er1
28674 - ac_status=$?
28675 - grep -v '^ *+' conftest.er1 >conftest.err
28676 - rm -f conftest.er1
28677 - cat conftest.err >&5
28678 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 - (exit $ac_status); } && {
28680 - test -z "$ac_c_werror_flag" ||
28681 - test ! -s conftest.err
28682 - } && test -s conftest$ac_exeext && {
28683 - test "$cross_compiling" = yes ||
28684 - $as_test_x conftest$ac_exeext
28685 - }; then
28686 - ac_cv_func_dlopen=yes
28687 -else
28688 - $as_echo "$as_me: failed program was:" >&5
28689 -sed 's/^/| /' conftest.$ac_ext >&5
28690 +netbsdelf*-gnu)
28691 + version_type=linux
28692 + need_lib_prefix=no
28693 + need_version=no
28694 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28695 + soname_spec='${libname}${release}${shared_ext}$major'
28696 + shlibpath_var=LD_LIBRARY_PATH
28697 + shlibpath_overrides_runpath=no
28698 + hardcode_into_libs=yes
28699 + dynamic_linker='NetBSD ld.elf_so'
28700 + ;;
28701
28702 - ac_cv_func_dlopen=no
28703 -fi
28704 +netbsd*)
28705 + version_type=sunos
28706 + need_lib_prefix=no
28707 + need_version=no
28708 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
28709 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28710 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28711 + dynamic_linker='NetBSD (a.out) ld.so'
28712 + else
28713 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28714 + soname_spec='${libname}${release}${shared_ext}$major'
28715 + dynamic_linker='NetBSD ld.elf_so'
28716 + fi
28717 + shlibpath_var=LD_LIBRARY_PATH
28718 + shlibpath_overrides_runpath=yes
28719 + hardcode_into_libs=yes
28720 + ;;
28721
28722 -rm -rf conftest.dSYM
28723 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28724 - conftest$ac_exeext conftest.$ac_ext
28725 -fi
28726 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
28727 -$as_echo "$ac_cv_func_dlopen" >&6; }
28728 -if test $ac_cv_func_dlopen = yes; then
28729 - lt_cv_dlopen="dlopen"
28730 -else
28731 - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28732 -$as_echo_n "checking for dlopen in -ldl... " >&6; }
28733 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28734 - $as_echo_n "(cached) " >&6
28735 -else
28736 - ac_check_lib_save_LIBS=$LIBS
28737 -LIBS="-ldl $LIBS"
28738 -cat >conftest.$ac_ext <<_ACEOF
28739 -/* confdefs.h. */
28740 -_ACEOF
28741 -cat confdefs.h >>conftest.$ac_ext
28742 -cat >>conftest.$ac_ext <<_ACEOF
28743 -/* end confdefs.h. */
28744 +newsos6)
28745 + version_type=linux # correct to gnu/linux during the next big refactor
28746 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28747 + shlibpath_var=LD_LIBRARY_PATH
28748 + shlibpath_overrides_runpath=yes
28749 + ;;
28750
28751 -/* Override any GCC internal prototype to avoid an error.
28752 - Use char because int might match the return type of a GCC
28753 - builtin and then its argument prototype would still apply. */
28754 -#ifdef __cplusplus
28755 -extern "C"
28756 -#endif
28757 -char dlopen ();
28758 -int
28759 -main ()
28760 -{
28761 -return dlopen ();
28762 - ;
28763 - return 0;
28764 -}
28765 -_ACEOF
28766 -rm -f conftest.$ac_objext conftest$ac_exeext
28767 -if { (ac_try="$ac_link"
28768 -case "(($ac_try" in
28769 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28770 - *) ac_try_echo=$ac_try;;
28771 -esac
28772 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28773 -$as_echo "$ac_try_echo") >&5
28774 - (eval "$ac_link") 2>conftest.er1
28775 - ac_status=$?
28776 - grep -v '^ *+' conftest.er1 >conftest.err
28777 - rm -f conftest.er1
28778 - cat conftest.err >&5
28779 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 - (exit $ac_status); } && {
28781 - test -z "$ac_c_werror_flag" ||
28782 - test ! -s conftest.err
28783 - } && test -s conftest$ac_exeext && {
28784 - test "$cross_compiling" = yes ||
28785 - $as_test_x conftest$ac_exeext
28786 - }; then
28787 - ac_cv_lib_dl_dlopen=yes
28788 -else
28789 - $as_echo "$as_me: failed program was:" >&5
28790 -sed 's/^/| /' conftest.$ac_ext >&5
28791 +*nto* | *qnx*)
28792 + version_type=qnx
28793 + need_lib_prefix=no
28794 + need_version=no
28795 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28796 + soname_spec='${libname}${release}${shared_ext}$major'
28797 + shlibpath_var=LD_LIBRARY_PATH
28798 + shlibpath_overrides_runpath=no
28799 + hardcode_into_libs=yes
28800 + dynamic_linker='ldqnx.so'
28801 + ;;
28802
28803 - ac_cv_lib_dl_dlopen=no
28804 -fi
28805 +openbsd*)
28806 + version_type=sunos
28807 + sys_lib_dlsearch_path_spec="/usr/lib"
28808 + need_lib_prefix=no
28809 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
28810 + case $host_os in
28811 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
28812 + *) need_version=no ;;
28813 + esac
28814 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28815 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28816 + shlibpath_var=LD_LIBRARY_PATH
28817 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28818 + case $host_os in
28819 + openbsd2.[89] | openbsd2.[89].*)
28820 + shlibpath_overrides_runpath=no
28821 + ;;
28822 + *)
28823 + shlibpath_overrides_runpath=yes
28824 + ;;
28825 + esac
28826 + else
28827 + shlibpath_overrides_runpath=yes
28828 + fi
28829 + ;;
28830 +
28831 +os2*)
28832 + libname_spec='$name'
28833 + shrext_cmds=".dll"
28834 + need_lib_prefix=no
28835 + library_names_spec='$libname${shared_ext} $libname.a'
28836 + dynamic_linker='OS/2 ld.exe'
28837 + shlibpath_var=LIBPATH
28838 + ;;
28839 +
28840 +osf3* | osf4* | osf5*)
28841 + version_type=osf
28842 + need_lib_prefix=no
28843 + need_version=no
28844 + soname_spec='${libname}${release}${shared_ext}$major'
28845 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28846 + shlibpath_var=LD_LIBRARY_PATH
28847 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
28848 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
28849 + ;;
28850 +
28851 +rdos*)
28852 + dynamic_linker=no
28853 + ;;
28854 +
28855 +solaris*)
28856 + version_type=linux # correct to gnu/linux during the next big refactor
28857 + need_lib_prefix=no
28858 + need_version=no
28859 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28860 + soname_spec='${libname}${release}${shared_ext}$major'
28861 + shlibpath_var=LD_LIBRARY_PATH
28862 + shlibpath_overrides_runpath=yes
28863 + hardcode_into_libs=yes
28864 + # ldd complains unless libraries are executable
28865 + postinstall_cmds='chmod +x $lib'
28866 + ;;
28867 +
28868 +sunos4*)
28869 + version_type=sunos
28870 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28871 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28872 + shlibpath_var=LD_LIBRARY_PATH
28873 + shlibpath_overrides_runpath=yes
28874 + if test "$with_gnu_ld" = yes; then
28875 + need_lib_prefix=no
28876 + fi
28877 + need_version=yes
28878 + ;;
28879 +
28880 +sysv4 | sysv4.3*)
28881 + version_type=linux # correct to gnu/linux during the next big refactor
28882 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28883 + soname_spec='${libname}${release}${shared_ext}$major'
28884 + shlibpath_var=LD_LIBRARY_PATH
28885 + case $host_vendor in
28886 + sni)
28887 + shlibpath_overrides_runpath=no
28888 + need_lib_prefix=no
28889 + runpath_var=LD_RUN_PATH
28890 + ;;
28891 + siemens)
28892 + need_lib_prefix=no
28893 + ;;
28894 + motorola)
28895 + need_lib_prefix=no
28896 + need_version=no
28897 + shlibpath_overrides_runpath=no
28898 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
28899 + ;;
28900 + esac
28901 + ;;
28902
28903 -rm -rf conftest.dSYM
28904 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28905 - conftest$ac_exeext conftest.$ac_ext
28906 -LIBS=$ac_check_lib_save_LIBS
28907 -fi
28908 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28909 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
28910 -if test $ac_cv_lib_dl_dlopen = yes; then
28911 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
28912 -else
28913 - { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
28914 -$as_echo_n "checking for dlopen in -lsvld... " >&6; }
28915 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
28916 - $as_echo_n "(cached) " >&6
28917 -else
28918 - ac_check_lib_save_LIBS=$LIBS
28919 -LIBS="-lsvld $LIBS"
28920 -cat >conftest.$ac_ext <<_ACEOF
28921 -/* confdefs.h. */
28922 -_ACEOF
28923 -cat confdefs.h >>conftest.$ac_ext
28924 -cat >>conftest.$ac_ext <<_ACEOF
28925 -/* end confdefs.h. */
28926 +sysv4*MP*)
28927 + if test -d /usr/nec ;then
28928 + version_type=linux # correct to gnu/linux during the next big refactor
28929 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
28930 + soname_spec='$libname${shared_ext}.$major'
28931 + shlibpath_var=LD_LIBRARY_PATH
28932 + fi
28933 + ;;
28934
28935 -/* Override any GCC internal prototype to avoid an error.
28936 - Use char because int might match the return type of a GCC
28937 - builtin and then its argument prototype would still apply. */
28938 -#ifdef __cplusplus
28939 -extern "C"
28940 -#endif
28941 -char dlopen ();
28942 -int
28943 -main ()
28944 -{
28945 -return dlopen ();
28946 - ;
28947 - return 0;
28948 -}
28949 -_ACEOF
28950 -rm -f conftest.$ac_objext conftest$ac_exeext
28951 -if { (ac_try="$ac_link"
28952 -case "(($ac_try" in
28953 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28954 - *) ac_try_echo=$ac_try;;
28955 -esac
28956 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28957 -$as_echo "$ac_try_echo") >&5
28958 - (eval "$ac_link") 2>conftest.er1
28959 - ac_status=$?
28960 - grep -v '^ *+' conftest.er1 >conftest.err
28961 - rm -f conftest.er1
28962 - cat conftest.err >&5
28963 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 - (exit $ac_status); } && {
28965 - test -z "$ac_c_werror_flag" ||
28966 - test ! -s conftest.err
28967 - } && test -s conftest$ac_exeext && {
28968 - test "$cross_compiling" = yes ||
28969 - $as_test_x conftest$ac_exeext
28970 - }; then
28971 - ac_cv_lib_svld_dlopen=yes
28972 -else
28973 - $as_echo "$as_me: failed program was:" >&5
28974 -sed 's/^/| /' conftest.$ac_ext >&5
28975 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
28976 + version_type=freebsd-elf
28977 + need_lib_prefix=no
28978 + need_version=no
28979 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
28980 + soname_spec='${libname}${release}${shared_ext}$major'
28981 + shlibpath_var=LD_LIBRARY_PATH
28982 + shlibpath_overrides_runpath=yes
28983 + hardcode_into_libs=yes
28984 + if test "$with_gnu_ld" = yes; then
28985 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
28986 + else
28987 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
28988 + case $host_os in
28989 + sco3.2v5*)
28990 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
28991 + ;;
28992 + esac
28993 + fi
28994 + sys_lib_dlsearch_path_spec='/usr/lib'
28995 + ;;
28996
28997 - ac_cv_lib_svld_dlopen=no
28998 -fi
28999 +tpf*)
29000 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
29001 + version_type=linux # correct to gnu/linux during the next big refactor
29002 + need_lib_prefix=no
29003 + need_version=no
29004 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29005 + shlibpath_var=LD_LIBRARY_PATH
29006 + shlibpath_overrides_runpath=no
29007 + hardcode_into_libs=yes
29008 + ;;
29009
29010 -rm -rf conftest.dSYM
29011 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29012 - conftest$ac_exeext conftest.$ac_ext
29013 -LIBS=$ac_check_lib_save_LIBS
29014 -fi
29015 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
29016 -$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
29017 -if test $ac_cv_lib_svld_dlopen = yes; then
29018 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
29019 -else
29020 - { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
29021 -$as_echo_n "checking for dld_link in -ldld... " >&6; }
29022 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
29023 - $as_echo_n "(cached) " >&6
29024 -else
29025 - ac_check_lib_save_LIBS=$LIBS
29026 -LIBS="-ldld $LIBS"
29027 -cat >conftest.$ac_ext <<_ACEOF
29028 -/* confdefs.h. */
29029 -_ACEOF
29030 -cat confdefs.h >>conftest.$ac_ext
29031 -cat >>conftest.$ac_ext <<_ACEOF
29032 -/* end confdefs.h. */
29033 +uts4*)
29034 + version_type=linux # correct to gnu/linux during the next big refactor
29035 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29036 + soname_spec='${libname}${release}${shared_ext}$major'
29037 + shlibpath_var=LD_LIBRARY_PATH
29038 + ;;
29039
29040 -/* Override any GCC internal prototype to avoid an error.
29041 - Use char because int might match the return type of a GCC
29042 - builtin and then its argument prototype would still apply. */
29043 -#ifdef __cplusplus
29044 -extern "C"
29045 -#endif
29046 -char dld_link ();
29047 -int
29048 -main ()
29049 -{
29050 -return dld_link ();
29051 - ;
29052 - return 0;
29053 -}
29054 -_ACEOF
29055 -rm -f conftest.$ac_objext conftest$ac_exeext
29056 -if { (ac_try="$ac_link"
29057 -case "(($ac_try" in
29058 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29059 - *) ac_try_echo=$ac_try;;
29060 +*)
29061 + dynamic_linker=no
29062 + ;;
29063 esac
29064 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29065 -$as_echo "$ac_try_echo") >&5
29066 - (eval "$ac_link") 2>conftest.er1
29067 - ac_status=$?
29068 - grep -v '^ *+' conftest.er1 >conftest.err
29069 - rm -f conftest.er1
29070 - cat conftest.err >&5
29071 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 - (exit $ac_status); } && {
29073 - test -z "$ac_c_werror_flag" ||
29074 - test ! -s conftest.err
29075 - } && test -s conftest$ac_exeext && {
29076 - test "$cross_compiling" = yes ||
29077 - $as_test_x conftest$ac_exeext
29078 - }; then
29079 - ac_cv_lib_dld_dld_link=yes
29080 -else
29081 - $as_echo "$as_me: failed program was:" >&5
29082 -sed 's/^/| /' conftest.$ac_ext >&5
29083 -
29084 - ac_cv_lib_dld_dld_link=no
29085 -fi
29086 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
29087 +$as_echo "$dynamic_linker" >&6; }
29088 +test "$dynamic_linker" = no && can_build_shared=no
29089
29090 -rm -rf conftest.dSYM
29091 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29092 - conftest$ac_exeext conftest.$ac_ext
29093 -LIBS=$ac_check_lib_save_LIBS
29094 -fi
29095 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
29096 -$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
29097 -if test $ac_cv_lib_dld_dld_link = yes; then
29098 - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
29099 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
29100 +if test "$GCC" = yes; then
29101 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
29102 fi
29103
29104 -
29105 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
29106 + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
29107 fi
29108 -
29109 -
29110 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
29111 + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
29112 fi
29113
29114
29115 -fi
29116
29117
29118 -fi
29119
29120
29121 -fi
29122
29123 - ;;
29124 - esac
29125
29126 - if test "x$lt_cv_dlopen" != xno; then
29127 - enable_dlopen=yes
29128 - else
29129 - enable_dlopen=no
29130 - fi
29131
29132 - case $lt_cv_dlopen in
29133 - dlopen)
29134 - save_CPPFLAGS="$CPPFLAGS"
29135 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
29136
29137 - save_LDFLAGS="$LDFLAGS"
29138 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
29139
29140 - save_LIBS="$LIBS"
29141 - LIBS="$lt_cv_dlopen_libs $LIBS"
29142
29143 - { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
29144 -$as_echo_n "checking whether a program can dlopen itself... " >&6; }
29145 -if test "${lt_cv_dlopen_self+set}" = set; then
29146 - $as_echo_n "(cached) " >&6
29147 -else
29148 - if test "$cross_compiling" = yes; then :
29149 - lt_cv_dlopen_self=cross
29150 -else
29151 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29152 - lt_status=$lt_dlunknown
29153 - cat > conftest.$ac_ext <<EOF
29154 -#line 9781 "configure"
29155 -#include "confdefs.h"
29156
29157 -#if HAVE_DLFCN_H
29158 -#include <dlfcn.h>
29159 -#endif
29160
29161 -#include <stdio.h>
29162
29163 -#ifdef RTLD_GLOBAL
29164 -# define LT_DLGLOBAL RTLD_GLOBAL
29165 -#else
29166 -# ifdef DL_GLOBAL
29167 -# define LT_DLGLOBAL DL_GLOBAL
29168 -# else
29169 -# define LT_DLGLOBAL 0
29170 -# endif
29171 -#endif
29172
29173 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29174 - find out it does not work in some platform. */
29175 -#ifndef LT_DLLAZY_OR_NOW
29176 -# ifdef RTLD_LAZY
29177 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
29178 -# else
29179 -# ifdef DL_LAZY
29180 -# define LT_DLLAZY_OR_NOW DL_LAZY
29181 -# else
29182 -# ifdef RTLD_NOW
29183 -# define LT_DLLAZY_OR_NOW RTLD_NOW
29184 -# else
29185 -# ifdef DL_NOW
29186 -# define LT_DLLAZY_OR_NOW DL_NOW
29187 -# else
29188 -# define LT_DLLAZY_OR_NOW 0
29189 -# endif
29190 -# endif
29191 -# endif
29192 -# endif
29193 -#endif
29194
29195 -#ifdef __cplusplus
29196 -extern "C" void exit (int);
29197 -#endif
29198
29199 -void fnord() { int i=42;}
29200 -int main ()
29201 -{
29202 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29203 - int status = $lt_dlunknown;
29204
29205 - if (self)
29206 - {
29207 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
29208 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29209 - /* dlclose (self); */
29210 - }
29211 - else
29212 - puts (dlerror ());
29213
29214 - exit (status);
29215 -}
29216 -EOF
29217 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29218 - (eval $ac_link) 2>&5
29219 - ac_status=$?
29220 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29222 - (./conftest; exit; ) >&5 2>/dev/null
29223 - lt_status=$?
29224 - case x$lt_status in
29225 - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
29226 - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
29227 - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
29228 - esac
29229 - else :
29230 - # compilation failed
29231 - lt_cv_dlopen_self=no
29232 - fi
29233 -fi
29234 -rm -fr conftest*
29235
29236
29237 -fi
29238 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
29239 -$as_echo "$lt_cv_dlopen_self" >&6; }
29240
29241 - if test "x$lt_cv_dlopen_self" = xyes; then
29242 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
29243 - { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
29244 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
29245 -if test "${lt_cv_dlopen_self_static+set}" = set; then
29246 - $as_echo_n "(cached) " >&6
29247 -else
29248 - if test "$cross_compiling" = yes; then :
29249 - lt_cv_dlopen_self_static=cross
29250 -else
29251 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29252 - lt_status=$lt_dlunknown
29253 - cat > conftest.$ac_ext <<EOF
29254 -#line 9881 "configure"
29255 -#include "confdefs.h"
29256
29257 -#if HAVE_DLFCN_H
29258 -#include <dlfcn.h>
29259 -#endif
29260
29261 -#include <stdio.h>
29262
29263 -#ifdef RTLD_GLOBAL
29264 -# define LT_DLGLOBAL RTLD_GLOBAL
29265 -#else
29266 -# ifdef DL_GLOBAL
29267 -# define LT_DLGLOBAL DL_GLOBAL
29268 -# else
29269 -# define LT_DLGLOBAL 0
29270 -# endif
29271 -#endif
29272
29273 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29274 - find out it does not work in some platform. */
29275 -#ifndef LT_DLLAZY_OR_NOW
29276 -# ifdef RTLD_LAZY
29277 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
29278 -# else
29279 -# ifdef DL_LAZY
29280 -# define LT_DLLAZY_OR_NOW DL_LAZY
29281 -# else
29282 -# ifdef RTLD_NOW
29283 -# define LT_DLLAZY_OR_NOW RTLD_NOW
29284 -# else
29285 -# ifdef DL_NOW
29286 -# define LT_DLLAZY_OR_NOW DL_NOW
29287 -# else
29288 -# define LT_DLLAZY_OR_NOW 0
29289 -# endif
29290 -# endif
29291 -# endif
29292 -# endif
29293 -#endif
29294
29295 -#ifdef __cplusplus
29296 -extern "C" void exit (int);
29297 -#endif
29298
29299 -void fnord() { int i=42;}
29300 -int main ()
29301 -{
29302 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29303 - int status = $lt_dlunknown;
29304
29305 - if (self)
29306 - {
29307 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
29308 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29309 - /* dlclose (self); */
29310 - }
29311 - else
29312 - puts (dlerror ());
29313
29314 - exit (status);
29315 -}
29316 -EOF
29317 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29318 - (eval $ac_link) 2>&5
29319 - ac_status=$?
29320 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29322 - (./conftest; exit; ) >&5 2>/dev/null
29323 - lt_status=$?
29324 - case x$lt_status in
29325 - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
29326 - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
29327 - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
29328 - esac
29329 - else :
29330 - # compilation failed
29331 - lt_cv_dlopen_self_static=no
29332 - fi
29333 -fi
29334 -rm -fr conftest*
29335
29336
29337 -fi
29338 -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
29339 -$as_echo "$lt_cv_dlopen_self_static" >&6; }
29340 - fi
29341
29342 - CPPFLAGS="$save_CPPFLAGS"
29343 - LDFLAGS="$save_LDFLAGS"
29344 - LIBS="$save_LIBS"
29345 - ;;
29346 - esac
29347
29348 - case $lt_cv_dlopen_self in
29349 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
29350 - *) enable_dlopen_self=unknown ;;
29351 - esac
29352
29353 - case $lt_cv_dlopen_self_static in
29354 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
29355 - *) enable_dlopen_self_static=unknown ;;
29356 - esac
29357 -fi
29358
29359
29360 -# Report which library types will actually be built
29361 -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
29362 -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
29363 -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
29364 -$as_echo "$can_build_shared" >&6; }
29365
29366 -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
29367 -$as_echo_n "checking whether to build shared libraries... " >&6; }
29368 -test "$can_build_shared" = "no" && enable_shared=no
29369
29370 -# On AIX, shared libraries and static libraries use the same namespace, and
29371 -# are all built from PIC.
29372 -case $host_os in
29373 -aix3*)
29374 - test "$enable_shared" = yes && enable_static=no
29375 - if test -n "$RANLIB"; then
29376 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
29377 - postinstall_cmds='$RANLIB $lib'
29378 - fi
29379 - ;;
29380
29381 -aix[4-9]*)
29382 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
29383 - test "$enable_shared" = yes && enable_static=no
29384 - fi
29385 - ;;
29386 -esac
29387 -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
29388 -$as_echo "$enable_shared" >&6; }
29389
29390 -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
29391 -$as_echo_n "checking whether to build static libraries... " >&6; }
29392 -# Make sure either enable_shared or enable_static is yes.
29393 -test "$enable_shared" = yes || enable_static=yes
29394 -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
29395 -$as_echo "$enable_static" >&6; }
29396
29397 -# The else clause should only fire when bootstrapping the
29398 -# libtool distribution, otherwise you forgot to ship ltmain.sh
29399 -# with your package, and you will get complaints that there are
29400 -# no rules to generate ltmain.sh.
29401 -if test -f "$ltmain"; then
29402 - # See if we are running on zsh, and set the options which allow our commands through
29403 - # without removal of \ escapes.
29404 - if test -n "${ZSH_VERSION+set}" ; then
29405 - setopt NO_GLOB_SUBST
29406 - fi
29407 - # Now quote all the things that may contain metacharacters while being
29408 - # careful not to overquote the AC_SUBSTed values. We take copies of the
29409 - # variables and quote the copies for generation of the libtool script.
29410 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
29411 - SED SHELL STRIP \
29412 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
29413 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
29414 - deplibs_check_method reload_flag reload_cmds need_locks \
29415 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
29416 - lt_cv_sys_global_symbol_to_c_name_address \
29417 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
29418 - old_postinstall_cmds old_postuninstall_cmds \
29419 - compiler \
29420 - CC \
29421 - LD \
29422 - lt_prog_compiler_wl \
29423 - lt_prog_compiler_pic \
29424 - lt_prog_compiler_static \
29425 - lt_prog_compiler_no_builtin_flag \
29426 - export_dynamic_flag_spec \
29427 - thread_safe_flag_spec \
29428 - whole_archive_flag_spec \
29429 - enable_shared_with_static_runtimes \
29430 - old_archive_cmds \
29431 - old_archive_from_new_cmds \
29432 - predep_objects \
29433 - postdep_objects \
29434 - predeps \
29435 - postdeps \
29436 - compiler_lib_search_path \
29437 - compiler_lib_search_dirs \
29438 - archive_cmds \
29439 - archive_expsym_cmds \
29440 - postinstall_cmds \
29441 - postuninstall_cmds \
29442 - old_archive_from_expsyms_cmds \
29443 - allow_undefined_flag \
29444 - no_undefined_flag \
29445 - export_symbols_cmds \
29446 - hardcode_libdir_flag_spec \
29447 - hardcode_libdir_flag_spec_ld \
29448 - hardcode_libdir_separator \
29449 - hardcode_automatic \
29450 - module_cmds \
29451 - module_expsym_cmds \
29452 - lt_cv_prog_compiler_c_o \
29453 - fix_srcfile_path \
29454 - exclude_expsyms \
29455 - include_expsyms; do
29456 -
29457 - case $var in
29458 - old_archive_cmds | \
29459 - old_archive_from_new_cmds | \
29460 - archive_cmds | \
29461 - archive_expsym_cmds | \
29462 - module_cmds | \
29463 - module_expsym_cmds | \
29464 - old_archive_from_expsyms_cmds | \
29465 - export_symbols_cmds | \
29466 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
29467 - postinstall_cmds | postuninstall_cmds | \
29468 - old_postinstall_cmds | old_postuninstall_cmds | \
29469 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
29470 - # Double-quote double-evaled strings.
29471 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
29472 - ;;
29473 - *)
29474 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
29475 - ;;
29476 - esac
29477 - done
29478
29479 - case $lt_echo in
29480 - *'\$0 --fallback-echo"')
29481 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
29482 - ;;
29483 - esac
29484
29485 -cfgfile="${ofile}T"
29486 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
29487 - $rm -f "$cfgfile"
29488 - { $as_echo "$as_me:$LINENO: creating $ofile" >&5
29489 -$as_echo "$as_me: creating $ofile" >&6;}
29490
29491 - cat <<__EOF__ >> "$cfgfile"
29492 -#! $SHELL
29493
29494 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29495 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
29496 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
29497 -#
29498 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
29499 -# Free Software Foundation, Inc.
29500 -#
29501 -# This file is part of GNU Libtool:
29502 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
29503 -#
29504 -# This program is free software; you can redistribute it and/or modify
29505 -# it under the terms of the GNU General Public License as published by
29506 -# the Free Software Foundation; either version 2 of the License, or
29507 -# (at your option) any later version.
29508 -#
29509 -# This program is distributed in the hope that it will be useful, but
29510 -# WITHOUT ANY WARRANTY; without even the implied warranty of
29511 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29512 -# General Public License for more details.
29513 -#
29514 -# You should have received a copy of the GNU General Public License
29515 -# along with this program; if not, write to the Free Software
29516 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29517 -#
29518 -# As a special exception to the GNU General Public License, if you
29519 -# distribute this file as part of a program that contains a
29520 -# configuration script generated by Autoconf, you may include it under
29521 -# the same distribution terms that you use for the rest of that program.
29522
29523 -# A sed program that does not truncate output.
29524 -SED=$lt_SED
29525
29526 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29527 -Xsed="$SED -e 1s/^X//"
29528
29529 -# The HP-UX ksh and POSIX shell print the target directory to stdout
29530 -# if CDPATH is set.
29531 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29532
29533 -# The names of the tagged configurations supported by this script.
29534 -available_tags=
29535
29536 -# ### BEGIN LIBTOOL CONFIG
29537
29538 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29539
29540 -# Shell to use when invoking shell scripts.
29541 -SHELL=$lt_SHELL
29542
29543 -# Whether or not to build shared libraries.
29544 -build_libtool_libs=$enable_shared
29545
29546 -# Whether or not to build static libraries.
29547 -build_old_libs=$enable_static
29548
29549 -# Whether or not to add -lc for building shared libraries.
29550 -build_libtool_need_lc=$archive_cmds_need_lc
29551
29552 -# Whether or not to disallow shared libs when runtime libs are static
29553 -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29554
29555 -# Whether or not to optimize for fast installation.
29556 -fast_install=$enable_fast_install
29557
29558 -# The host system.
29559 -host_alias=$host_alias
29560 -host=$host
29561 -host_os=$host_os
29562
29563 -# The build system.
29564 -build_alias=$build_alias
29565 -build=$build
29566 -build_os=$build_os
29567
29568 -# An echo program that does not interpret backslashes.
29569 -echo=$lt_echo
29570
29571 -# The archiver.
29572 -AR=$lt_AR
29573 -AR_FLAGS=$lt_AR_FLAGS
29574
29575 -# A C compiler.
29576 -LTCC=$lt_LTCC
29577
29578 -# LTCC compiler flags.
29579 -LTCFLAGS=$lt_LTCFLAGS
29580
29581 -# A language-specific compiler.
29582 -CC=$lt_compiler
29583
29584 -# Is the compiler the GNU C compiler?
29585 -with_gcc=$GCC
29586
29587 -# An ERE matcher.
29588 -EGREP=$lt_EGREP
29589
29590 -# The linker used to build libraries.
29591 -LD=$lt_LD
29592
29593 -# Whether we need hard or soft links.
29594 -LN_S=$lt_LN_S
29595
29596 -# A BSD-compatible nm program.
29597 -NM=$lt_NM
29598
29599 -# A symbol stripping program
29600 -STRIP=$lt_STRIP
29601
29602 -# Used to examine libraries when file_magic_cmd begins "file"
29603 -MAGIC_CMD=$MAGIC_CMD
29604
29605 -# Used on cygwin: DLL creation program.
29606 -DLLTOOL="$DLLTOOL"
29607
29608 -# Used on cygwin: object dumper.
29609 -OBJDUMP="$OBJDUMP"
29610
29611 -# Used on cygwin: assembler.
29612 -AS="$AS"
29613
29614 -# The name of the directory that contains temporary libtool files.
29615 -objdir=$objdir
29616
29617 -# How to create reloadable object files.
29618 -reload_flag=$lt_reload_flag
29619 -reload_cmds=$lt_reload_cmds
29620
29621 -# How to pass a linker flag through the compiler.
29622 -wl=$lt_lt_prog_compiler_wl
29623
29624 -# Object file suffix (normally "o").
29625 -objext="$ac_objext"
29626
29627 -# Old archive suffix (normally "a").
29628 -libext="$libext"
29629
29630 -# Shared library suffix (normally ".so").
29631 -shrext_cmds='$shrext_cmds'
29632
29633 -# Executable file suffix (normally "").
29634 -exeext="$exeext"
29635
29636 -# Additional compiler flags for building library objects.
29637 -pic_flag=$lt_lt_prog_compiler_pic
29638 -pic_mode=$pic_mode
29639
29640 -# What is the maximum length of a command?
29641 -max_cmd_len=$lt_cv_sys_max_cmd_len
29642
29643 -# Does compiler simultaneously support -c and -o options?
29644 -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29645
29646 -# Must we lock files when doing compilation?
29647 -need_locks=$lt_need_locks
29648
29649 -# Do we need the lib prefix for modules?
29650 -need_lib_prefix=$need_lib_prefix
29651
29652 -# Do we need a version for libraries?
29653 -need_version=$need_version
29654
29655 -# Whether dlopen is supported.
29656 -dlopen_support=$enable_dlopen
29657
29658 -# Whether dlopen of programs is supported.
29659 -dlopen_self=$enable_dlopen_self
29660
29661 -# Whether dlopen of statically linked programs is supported.
29662 -dlopen_self_static=$enable_dlopen_self_static
29663 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
29664 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
29665 +hardcode_action=
29666 +if test -n "$hardcode_libdir_flag_spec" ||
29667 + test -n "$runpath_var" ||
29668 + test "X$hardcode_automatic" = "Xyes" ; then
29669
29670 -# Compiler flag to prevent dynamic linking.
29671 -link_static_flag=$lt_lt_prog_compiler_static
29672 + # We can hardcode non-existent directories.
29673 + if test "$hardcode_direct" != no &&
29674 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
29675 + # have to relink, otherwise we might link with an installed library
29676 + # when we should be linking with a yet-to-be-installed one
29677 + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
29678 + test "$hardcode_minus_L" != no; then
29679 + # Linking always hardcodes the temporary library directory.
29680 + hardcode_action=relink
29681 + else
29682 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
29683 + hardcode_action=immediate
29684 + fi
29685 +else
29686 + # We cannot hardcode anything, or else we can only hardcode existing
29687 + # directories.
29688 + hardcode_action=unsupported
29689 +fi
29690 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
29691 +$as_echo "$hardcode_action" >&6; }
29692
29693 -# Compiler flag to turn off builtin functions.
29694 -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29695 +if test "$hardcode_action" = relink ||
29696 + test "$inherit_rpath" = yes; then
29697 + # Fast installation is not supported
29698 + enable_fast_install=no
29699 +elif test "$shlibpath_overrides_runpath" = yes ||
29700 + test "$enable_shared" = no; then
29701 + # Fast installation is not necessary
29702 + enable_fast_install=needless
29703 +fi
29704
29705 -# Compiler flag to allow reflexive dlopens.
29706 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29707
29708 -# Compiler flag to generate shared objects directly from archives.
29709 -whole_archive_flag_spec=$lt_whole_archive_flag_spec
29710
29711 -# Compiler flag to generate thread-safe objects.
29712 -thread_safe_flag_spec=$lt_thread_safe_flag_spec
29713
29714 -# Library versioning type.
29715 -version_type=$version_type
29716
29717 -# Format of library name prefix.
29718 -libname_spec=$lt_libname_spec
29719
29720 -# List of archive names. First name is the real one, the rest are links.
29721 -# The last name is the one that the linker finds with -lNAME.
29722 -library_names_spec=$lt_library_names_spec
29723 + if test "x$enable_dlopen" != xyes; then
29724 + enable_dlopen=unknown
29725 + enable_dlopen_self=unknown
29726 + enable_dlopen_self_static=unknown
29727 +else
29728 + lt_cv_dlopen=no
29729 + lt_cv_dlopen_libs=
29730
29731 -# The coded name of the library, if different from the real name.
29732 -soname_spec=$lt_soname_spec
29733 + case $host_os in
29734 + beos*)
29735 + lt_cv_dlopen="load_add_on"
29736 + lt_cv_dlopen_libs=
29737 + lt_cv_dlopen_self=yes
29738 + ;;
29739
29740 -# Commands used to build and install an old-style archive.
29741 -RANLIB=$lt_RANLIB
29742 -old_archive_cmds=$lt_old_archive_cmds
29743 -old_postinstall_cmds=$lt_old_postinstall_cmds
29744 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
29745 + mingw* | pw32* | cegcc*)
29746 + lt_cv_dlopen="LoadLibrary"
29747 + lt_cv_dlopen_libs=
29748 + ;;
29749
29750 -# Create an old-style archive from a shared archive.
29751 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29752 + cygwin*)
29753 + lt_cv_dlopen="dlopen"
29754 + lt_cv_dlopen_libs=
29755 + ;;
29756 +
29757 + darwin*)
29758 + # if libdl is installed we need to link against it
29759 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
29760 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
29761 +if ${ac_cv_lib_dl_dlopen+:} false; then :
29762 + $as_echo_n "(cached) " >&6
29763 +else
29764 + ac_check_lib_save_LIBS=$LIBS
29765 +LIBS="-ldl $LIBS"
29766 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29767 +/* end confdefs.h. */
29768
29769 -# Create a temporary old-style archive to link instead of a shared archive.
29770 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29771 +/* Override any GCC internal prototype to avoid an error.
29772 + Use char because int might match the return type of a GCC
29773 + builtin and then its argument prototype would still apply. */
29774 +#ifdef __cplusplus
29775 +extern "C"
29776 +#endif
29777 +char dlopen ();
29778 +int
29779 +main ()
29780 +{
29781 +return dlopen ();
29782 + ;
29783 + return 0;
29784 +}
29785 +_ACEOF
29786 +if ac_fn_c_try_link "$LINENO"; then :
29787 + ac_cv_lib_dl_dlopen=yes
29788 +else
29789 + ac_cv_lib_dl_dlopen=no
29790 +fi
29791 +rm -f core conftest.err conftest.$ac_objext \
29792 + conftest$ac_exeext conftest.$ac_ext
29793 +LIBS=$ac_check_lib_save_LIBS
29794 +fi
29795 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
29796 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
29797 +if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
29798 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
29799 +else
29800
29801 -# Commands used to build and install a shared archive.
29802 -archive_cmds=$lt_archive_cmds
29803 -archive_expsym_cmds=$lt_archive_expsym_cmds
29804 -postinstall_cmds=$lt_postinstall_cmds
29805 -postuninstall_cmds=$lt_postuninstall_cmds
29806 + lt_cv_dlopen="dyld"
29807 + lt_cv_dlopen_libs=
29808 + lt_cv_dlopen_self=yes
29809
29810 -# Commands used to build a loadable module (assumed same as above if empty)
29811 -module_cmds=$lt_module_cmds
29812 -module_expsym_cmds=$lt_module_expsym_cmds
29813 +fi
29814
29815 -# Commands to strip libraries.
29816 -old_striplib=$lt_old_striplib
29817 -striplib=$lt_striplib
29818 + ;;
29819
29820 -# Dependencies to place before the objects being linked to create a
29821 -# shared library.
29822 -predep_objects=$lt_predep_objects
29823 + *)
29824 + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
29825 +if test "x$ac_cv_func_shl_load" = xyes; then :
29826 + lt_cv_dlopen="shl_load"
29827 +else
29828 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
29829 +$as_echo_n "checking for shl_load in -ldld... " >&6; }
29830 +if ${ac_cv_lib_dld_shl_load+:} false; then :
29831 + $as_echo_n "(cached) " >&6
29832 +else
29833 + ac_check_lib_save_LIBS=$LIBS
29834 +LIBS="-ldld $LIBS"
29835 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29836 +/* end confdefs.h. */
29837
29838 -# Dependencies to place after the objects being linked to create a
29839 -# shared library.
29840 -postdep_objects=$lt_postdep_objects
29841 +/* Override any GCC internal prototype to avoid an error.
29842 + Use char because int might match the return type of a GCC
29843 + builtin and then its argument prototype would still apply. */
29844 +#ifdef __cplusplus
29845 +extern "C"
29846 +#endif
29847 +char shl_load ();
29848 +int
29849 +main ()
29850 +{
29851 +return shl_load ();
29852 + ;
29853 + return 0;
29854 +}
29855 +_ACEOF
29856 +if ac_fn_c_try_link "$LINENO"; then :
29857 + ac_cv_lib_dld_shl_load=yes
29858 +else
29859 + ac_cv_lib_dld_shl_load=no
29860 +fi
29861 +rm -f core conftest.err conftest.$ac_objext \
29862 + conftest$ac_exeext conftest.$ac_ext
29863 +LIBS=$ac_check_lib_save_LIBS
29864 +fi
29865 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
29866 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
29867 +if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
29868 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
29869 +else
29870 + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
29871 +if test "x$ac_cv_func_dlopen" = xyes; then :
29872 + lt_cv_dlopen="dlopen"
29873 +else
29874 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
29875 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
29876 +if ${ac_cv_lib_dl_dlopen+:} false; then :
29877 + $as_echo_n "(cached) " >&6
29878 +else
29879 + ac_check_lib_save_LIBS=$LIBS
29880 +LIBS="-ldl $LIBS"
29881 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29882 +/* end confdefs.h. */
29883
29884 -# Dependencies to place before the objects being linked to create a
29885 -# shared library.
29886 -predeps=$lt_predeps
29887 +/* Override any GCC internal prototype to avoid an error.
29888 + Use char because int might match the return type of a GCC
29889 + builtin and then its argument prototype would still apply. */
29890 +#ifdef __cplusplus
29891 +extern "C"
29892 +#endif
29893 +char dlopen ();
29894 +int
29895 +main ()
29896 +{
29897 +return dlopen ();
29898 + ;
29899 + return 0;
29900 +}
29901 +_ACEOF
29902 +if ac_fn_c_try_link "$LINENO"; then :
29903 + ac_cv_lib_dl_dlopen=yes
29904 +else
29905 + ac_cv_lib_dl_dlopen=no
29906 +fi
29907 +rm -f core conftest.err conftest.$ac_objext \
29908 + conftest$ac_exeext conftest.$ac_ext
29909 +LIBS=$ac_check_lib_save_LIBS
29910 +fi
29911 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
29912 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
29913 +if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
29914 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
29915 +else
29916 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
29917 +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
29918 +if ${ac_cv_lib_svld_dlopen+:} false; then :
29919 + $as_echo_n "(cached) " >&6
29920 +else
29921 + ac_check_lib_save_LIBS=$LIBS
29922 +LIBS="-lsvld $LIBS"
29923 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29924 +/* end confdefs.h. */
29925
29926 -# Dependencies to place after the objects being linked to create a
29927 -# shared library.
29928 -postdeps=$lt_postdeps
29929 +/* Override any GCC internal prototype to avoid an error.
29930 + Use char because int might match the return type of a GCC
29931 + builtin and then its argument prototype would still apply. */
29932 +#ifdef __cplusplus
29933 +extern "C"
29934 +#endif
29935 +char dlopen ();
29936 +int
29937 +main ()
29938 +{
29939 +return dlopen ();
29940 + ;
29941 + return 0;
29942 +}
29943 +_ACEOF
29944 +if ac_fn_c_try_link "$LINENO"; then :
29945 + ac_cv_lib_svld_dlopen=yes
29946 +else
29947 + ac_cv_lib_svld_dlopen=no
29948 +fi
29949 +rm -f core conftest.err conftest.$ac_objext \
29950 + conftest$ac_exeext conftest.$ac_ext
29951 +LIBS=$ac_check_lib_save_LIBS
29952 +fi
29953 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
29954 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
29955 +if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
29956 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
29957 +else
29958 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
29959 +$as_echo_n "checking for dld_link in -ldld... " >&6; }
29960 +if ${ac_cv_lib_dld_dld_link+:} false; then :
29961 + $as_echo_n "(cached) " >&6
29962 +else
29963 + ac_check_lib_save_LIBS=$LIBS
29964 +LIBS="-ldld $LIBS"
29965 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29966 +/* end confdefs.h. */
29967
29968 -# The directories searched by this compiler when creating a shared
29969 -# library
29970 -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29971 +/* Override any GCC internal prototype to avoid an error.
29972 + Use char because int might match the return type of a GCC
29973 + builtin and then its argument prototype would still apply. */
29974 +#ifdef __cplusplus
29975 +extern "C"
29976 +#endif
29977 +char dld_link ();
29978 +int
29979 +main ()
29980 +{
29981 +return dld_link ();
29982 + ;
29983 + return 0;
29984 +}
29985 +_ACEOF
29986 +if ac_fn_c_try_link "$LINENO"; then :
29987 + ac_cv_lib_dld_dld_link=yes
29988 +else
29989 + ac_cv_lib_dld_dld_link=no
29990 +fi
29991 +rm -f core conftest.err conftest.$ac_objext \
29992 + conftest$ac_exeext conftest.$ac_ext
29993 +LIBS=$ac_check_lib_save_LIBS
29994 +fi
29995 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
29996 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
29997 +if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
29998 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
29999 +fi
30000
30001 -# The library search path used internally by the compiler when linking
30002 -# a shared library.
30003 -compiler_lib_search_path=$lt_compiler_lib_search_path
30004
30005 -# Method to check whether dependent libraries are shared objects.
30006 -deplibs_check_method=$lt_deplibs_check_method
30007 +fi
30008
30009 -# Command to use when deplibs_check_method == file_magic.
30010 -file_magic_cmd=$lt_file_magic_cmd
30011
30012 -# Flag that allows shared libraries with undefined symbols to be built.
30013 -allow_undefined_flag=$lt_allow_undefined_flag
30014 +fi
30015
30016 -# Flag that forces no undefined symbols.
30017 -no_undefined_flag=$lt_no_undefined_flag
30018
30019 -# Commands used to finish a libtool library installation in a directory.
30020 -finish_cmds=$lt_finish_cmds
30021 +fi
30022
30023 -# Same as above, but a single script fragment to be evaled but not shown.
30024 -finish_eval=$lt_finish_eval
30025
30026 -# Take the output of nm and produce a listing of raw symbols and C names.
30027 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30028 +fi
30029
30030 -# Transform the output of nm in a proper C declaration
30031 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30032
30033 -# Transform the output of nm in a C name address pair
30034 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30035 +fi
30036
30037 -# This is the shared library runtime path variable.
30038 -runpath_var=$runpath_var
30039 + ;;
30040 + esac
30041
30042 -# This is the shared library path variable.
30043 -shlibpath_var=$shlibpath_var
30044 + if test "x$lt_cv_dlopen" != xno; then
30045 + enable_dlopen=yes
30046 + else
30047 + enable_dlopen=no
30048 + fi
30049
30050 -# Is shlibpath searched before the hard-coded library search path?
30051 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30052 + case $lt_cv_dlopen in
30053 + dlopen)
30054 + save_CPPFLAGS="$CPPFLAGS"
30055 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
30056
30057 -# How to hardcode a shared library path into an executable.
30058 -hardcode_action=$hardcode_action
30059 + save_LDFLAGS="$LDFLAGS"
30060 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
30061
30062 -# Whether we should hardcode library paths into libraries.
30063 -hardcode_into_libs=$hardcode_into_libs
30064 + save_LIBS="$LIBS"
30065 + LIBS="$lt_cv_dlopen_libs $LIBS"
30066
30067 -# Flag to hardcode \$libdir into a binary during linking.
30068 -# This must work even if \$libdir does not exist.
30069 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30070 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
30071 +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
30072 +if ${lt_cv_dlopen_self+:} false; then :
30073 + $as_echo_n "(cached) " >&6
30074 +else
30075 + if test "$cross_compiling" = yes; then :
30076 + lt_cv_dlopen_self=cross
30077 +else
30078 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
30079 + lt_status=$lt_dlunknown
30080 + cat > conftest.$ac_ext <<_LT_EOF
30081 +#line $LINENO "configure"
30082 +#include "confdefs.h"
30083
30084 -# If ld is used when linking, flag to hardcode \$libdir into
30085 -# a binary during linking. This must work even if \$libdir does
30086 -# not exist.
30087 -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30088 +#if HAVE_DLFCN_H
30089 +#include <dlfcn.h>
30090 +#endif
30091
30092 -# Whether we need a single -rpath flag with a separated argument.
30093 -hardcode_libdir_separator=$lt_hardcode_libdir_separator
30094 +#include <stdio.h>
30095
30096 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
30097 -# resulting binary.
30098 -hardcode_direct=$hardcode_direct
30099 +#ifdef RTLD_GLOBAL
30100 +# define LT_DLGLOBAL RTLD_GLOBAL
30101 +#else
30102 +# ifdef DL_GLOBAL
30103 +# define LT_DLGLOBAL DL_GLOBAL
30104 +# else
30105 +# define LT_DLGLOBAL 0
30106 +# endif
30107 +#endif
30108
30109 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
30110 -# resulting binary.
30111 -hardcode_minus_L=$hardcode_minus_L
30112 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
30113 + find out it does not work in some platform. */
30114 +#ifndef LT_DLLAZY_OR_NOW
30115 +# ifdef RTLD_LAZY
30116 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
30117 +# else
30118 +# ifdef DL_LAZY
30119 +# define LT_DLLAZY_OR_NOW DL_LAZY
30120 +# else
30121 +# ifdef RTLD_NOW
30122 +# define LT_DLLAZY_OR_NOW RTLD_NOW
30123 +# else
30124 +# ifdef DL_NOW
30125 +# define LT_DLLAZY_OR_NOW DL_NOW
30126 +# else
30127 +# define LT_DLLAZY_OR_NOW 0
30128 +# endif
30129 +# endif
30130 +# endif
30131 +# endif
30132 +#endif
30133
30134 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
30135 -# the resulting binary.
30136 -hardcode_shlibpath_var=$hardcode_shlibpath_var
30137 +/* When -fvisbility=hidden is used, assume the code has been annotated
30138 + correspondingly for the symbols needed. */
30139 +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
30140 +int fnord () __attribute__((visibility("default")));
30141 +#endif
30142
30143 -# Set to yes if building a shared library automatically hardcodes DIR into the library
30144 -# and all subsequent libraries and executables linked against it.
30145 -hardcode_automatic=$hardcode_automatic
30146 +int fnord () { return 42; }
30147 +int main ()
30148 +{
30149 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
30150 + int status = $lt_dlunknown;
30151
30152 -# Variables whose values should be saved in libtool wrapper scripts and
30153 -# restored at relink time.
30154 -variables_saved_for_relink="$variables_saved_for_relink"
30155 + if (self)
30156 + {
30157 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
30158 + else
30159 + {
30160 + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
30161 + else puts (dlerror ());
30162 + }
30163 + /* dlclose (self); */
30164 + }
30165 + else
30166 + puts (dlerror ());
30167
30168 -# Whether libtool must link a program against all its dependency libraries.
30169 -link_all_deplibs=$link_all_deplibs
30170 + return status;
30171 +}
30172 +_LT_EOF
30173 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30174 + (eval $ac_link) 2>&5
30175 + ac_status=$?
30176 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30177 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
30178 + (./conftest; exit; ) >&5 2>/dev/null
30179 + lt_status=$?
30180 + case x$lt_status in
30181 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
30182 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
30183 + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
30184 + esac
30185 + else :
30186 + # compilation failed
30187 + lt_cv_dlopen_self=no
30188 + fi
30189 +fi
30190 +rm -fr conftest*
30191
30192 -# Compile-time system search path for libraries
30193 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30194
30195 -# Run-time system search path for libraries
30196 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30197 +fi
30198 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
30199 +$as_echo "$lt_cv_dlopen_self" >&6; }
30200
30201 -# Fix the shell variable \$srcfile for the compiler.
30202 -fix_srcfile_path=$lt_fix_srcfile_path
30203 + if test "x$lt_cv_dlopen_self" = xyes; then
30204 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
30205 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
30206 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
30207 +if ${lt_cv_dlopen_self_static+:} false; then :
30208 + $as_echo_n "(cached) " >&6
30209 +else
30210 + if test "$cross_compiling" = yes; then :
30211 + lt_cv_dlopen_self_static=cross
30212 +else
30213 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
30214 + lt_status=$lt_dlunknown
30215 + cat > conftest.$ac_ext <<_LT_EOF
30216 +#line $LINENO "configure"
30217 +#include "confdefs.h"
30218
30219 -# Set to yes if exported symbols are required.
30220 -always_export_symbols=$always_export_symbols
30221 +#if HAVE_DLFCN_H
30222 +#include <dlfcn.h>
30223 +#endif
30224
30225 -# The commands to list exported symbols.
30226 -export_symbols_cmds=$lt_export_symbols_cmds
30227 +#include <stdio.h>
30228
30229 -# The commands to extract the exported symbol list from a shared archive.
30230 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
30231 +#ifdef RTLD_GLOBAL
30232 +# define LT_DLGLOBAL RTLD_GLOBAL
30233 +#else
30234 +# ifdef DL_GLOBAL
30235 +# define LT_DLGLOBAL DL_GLOBAL
30236 +# else
30237 +# define LT_DLGLOBAL 0
30238 +# endif
30239 +#endif
30240
30241 -# Symbols that should not be listed in the preloaded symbols.
30242 -exclude_expsyms=$lt_exclude_expsyms
30243 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
30244 + find out it does not work in some platform. */
30245 +#ifndef LT_DLLAZY_OR_NOW
30246 +# ifdef RTLD_LAZY
30247 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
30248 +# else
30249 +# ifdef DL_LAZY
30250 +# define LT_DLLAZY_OR_NOW DL_LAZY
30251 +# else
30252 +# ifdef RTLD_NOW
30253 +# define LT_DLLAZY_OR_NOW RTLD_NOW
30254 +# else
30255 +# ifdef DL_NOW
30256 +# define LT_DLLAZY_OR_NOW DL_NOW
30257 +# else
30258 +# define LT_DLLAZY_OR_NOW 0
30259 +# endif
30260 +# endif
30261 +# endif
30262 +# endif
30263 +#endif
30264
30265 -# Symbols that must always be exported.
30266 -include_expsyms=$lt_include_expsyms
30267 +/* When -fvisbility=hidden is used, assume the code has been annotated
30268 + correspondingly for the symbols needed. */
30269 +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
30270 +int fnord () __attribute__((visibility("default")));
30271 +#endif
30272
30273 -# ### END LIBTOOL CONFIG
30274 +int fnord () { return 42; }
30275 +int main ()
30276 +{
30277 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
30278 + int status = $lt_dlunknown;
30279
30280 -__EOF__
30281 + if (self)
30282 + {
30283 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
30284 + else
30285 + {
30286 + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
30287 + else puts (dlerror ());
30288 + }
30289 + /* dlclose (self); */
30290 + }
30291 + else
30292 + puts (dlerror ());
30293
30294 + return status;
30295 +}
30296 +_LT_EOF
30297 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30298 + (eval $ac_link) 2>&5
30299 + ac_status=$?
30300 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30301 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
30302 + (./conftest; exit; ) >&5 2>/dev/null
30303 + lt_status=$?
30304 + case x$lt_status in
30305 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
30306 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
30307 + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
30308 + esac
30309 + else :
30310 + # compilation failed
30311 + lt_cv_dlopen_self_static=no
30312 + fi
30313 +fi
30314 +rm -fr conftest*
30315
30316 - case $host_os in
30317 - aix3*)
30318 - cat <<\EOF >> "$cfgfile"
30319
30320 -# AIX sometimes has problems with the GCC collect2 program. For some
30321 -# reason, if we set the COLLECT_NAMES environment variable, the problems
30322 -# vanish in a puff of smoke.
30323 -if test "X${COLLECT_NAMES+set}" != Xset; then
30324 - COLLECT_NAMES=
30325 - export COLLECT_NAMES
30326 fi
30327 -EOF
30328 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
30329 +$as_echo "$lt_cv_dlopen_self_static" >&6; }
30330 + fi
30331 +
30332 + CPPFLAGS="$save_CPPFLAGS"
30333 + LDFLAGS="$save_LDFLAGS"
30334 + LIBS="$save_LIBS"
30335 ;;
30336 esac
30337
30338 - # We use sed instead of cat because bash on DJGPP gets confused if
30339 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
30340 - # text mode, it properly converts lines to CR/LF. This bash problem
30341 - # is reportedly fixed, but why not run on old versions too?
30342 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
30343 -
30344 - mv -f "$cfgfile" "$ofile" || \
30345 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30346 - chmod +x "$ofile"
30347 + case $lt_cv_dlopen_self in
30348 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
30349 + *) enable_dlopen_self=unknown ;;
30350 + esac
30351
30352 -else
30353 - # If there is no Makefile yet, we rely on a make rule to execute
30354 - # `config.status --recheck' to rerun these tests and create the
30355 - # libtool script then.
30356 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
30357 - if test -f "$ltmain_in"; then
30358 - test -f Makefile && make "$ltmain"
30359 - fi
30360 + case $lt_cv_dlopen_self_static in
30361 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
30362 + *) enable_dlopen_self_static=unknown ;;
30363 + esac
30364 fi
30365
30366
30367 -ac_ext=c
30368 -ac_cpp='$CPP $CPPFLAGS'
30369 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30370 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30371 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
30372 -
30373 -CC="$lt_save_CC"
30374 -
30375
30376
30377
30378 -# This can be used to rebuild libtool when needed
30379 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
30380
30381 -# Always use our own libtool.
30382 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
30383
30384 -# Prevent multiple expansion
30385
30386
30387
30388 @@ -10536,432 +11820,144 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
30389
30390
30391
30392 -# Check whether --enable-gtktest was given.
30393 -if test "${enable_gtktest+set}" = set; then
30394 - enableval=$enable_gtktest;
30395 +striplib=
30396 +old_striplib=
30397 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
30398 +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
30399 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
30400 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
30401 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
30402 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30403 +$as_echo "yes" >&6; }
30404 else
30405 - enable_gtktest=yes
30406 +# FIXME - insert some real tests, host_os isn't really good enough
30407 + case $host_os in
30408 + darwin*)
30409 + if test -n "$STRIP" ; then
30410 + striplib="$STRIP -x"
30411 + old_striplib="$STRIP -S"
30412 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30413 +$as_echo "yes" >&6; }
30414 + else
30415 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30416 +$as_echo "no" >&6; }
30417 + fi
30418 + ;;
30419 + *)
30420 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30421 +$as_echo "no" >&6; }
30422 + ;;
30423 + esac
30424 fi
30425
30426
30427 - pkg_config_args=gtk+-2.0
30428 - for module in .
30429 - do
30430 - case "$module" in
30431 - gthread)
30432 - pkg_config_args="$pkg_config_args gthread-2.0"
30433 - ;;
30434 - esac
30435 - done
30436
30437 - no_gtk=""
30438
30439 - # Extract the first word of "pkg-config", so it can be a program name with args.
30440 -set dummy pkg-config; ac_word=$2
30441 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30442 -$as_echo_n "checking for $ac_word... " >&6; }
30443 -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30444 - $as_echo_n "(cached) " >&6
30445 -else
30446 - case $PKG_CONFIG in
30447 - [\\/]* | ?:[\\/]*)
30448 - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30449 - ;;
30450 - *)
30451 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30452 -for as_dir in $PATH
30453 -do
30454 - IFS=$as_save_IFS
30455 - test -z "$as_dir" && as_dir=.
30456 - for ac_exec_ext in '' $ac_executable_extensions; do
30457 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30458 - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30459 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30460 - break 2
30461 - fi
30462 -done
30463 -done
30464 -IFS=$as_save_IFS
30465
30466 - test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30467 - ;;
30468 -esac
30469 -fi
30470 -PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30471 -if test -n "$PKG_CONFIG"; then
30472 - { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30473 -$as_echo "$PKG_CONFIG" >&6; }
30474 -else
30475 - { $as_echo "$as_me:$LINENO: result: no" >&5
30476 -$as_echo "no" >&6; }
30477 -fi
30478
30479
30480
30481 - if test x$PKG_CONFIG != xno ; then
30482 - if pkg-config --atleast-pkgconfig-version 0.7 ; then
30483 - :
30484 - else
30485 - echo "*** pkg-config too old; version 0.7 or better required."
30486 - no_gtk=yes
30487 - PKG_CONFIG=no
30488 - fi
30489 - else
30490 - no_gtk=yes
30491 - fi
30492
30493 - min_gtk_version=2.5.0
30494 - { $as_echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30495 -$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
30496
30497 - if test x$PKG_CONFIG != xno ; then
30498 - ## don't try to run the test against uninstalled libtool libs
30499 - if $PKG_CONFIG --uninstalled $pkg_config_args; then
30500 - echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30501 - enable_gtktest=no
30502 +
30503 +
30504 + # Report which library types will actually be built
30505 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
30506 +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
30507 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
30508 +$as_echo "$can_build_shared" >&6; }
30509 +
30510 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
30511 +$as_echo_n "checking whether to build shared libraries... " >&6; }
30512 + test "$can_build_shared" = "no" && enable_shared=no
30513 +
30514 + # On AIX, shared libraries and static libraries use the same namespace, and
30515 + # are all built from PIC.
30516 + case $host_os in
30517 + aix3*)
30518 + test "$enable_shared" = yes && enable_static=no
30519 + if test -n "$RANLIB"; then
30520 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
30521 + postinstall_cmds='$RANLIB $lib'
30522 fi
30523 + ;;
30524
30525 - if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30526 - :
30527 - else
30528 - no_gtk=yes
30529 + aix[4-9]*)
30530 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
30531 + test "$enable_shared" = yes && enable_static=no
30532 fi
30533 - fi
30534 + ;;
30535 + esac
30536 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
30537 +$as_echo "$enable_shared" >&6; }
30538
30539 - if test x"$no_gtk" = x ; then
30540 - GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30541 - GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30542 - gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30543 - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30544 - gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30545 - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30546 - gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30547 - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30548 - if test "x$enable_gtktest" = "xyes" ; then
30549 - ac_save_CFLAGS="$CFLAGS"
30550 - ac_save_LIBS="$LIBS"
30551 - CFLAGS="$CFLAGS $GTK_CFLAGS"
30552 - LIBS="$GTK_LIBS $LIBS"
30553 - rm -f conf.gtktest
30554 - if test "$cross_compiling" = yes; then
30555 - echo $ac_n "cross compiling; assumed OK... $ac_c"
30556 -else
30557 - cat >conftest.$ac_ext <<_ACEOF
30558 -/* confdefs.h. */
30559 -_ACEOF
30560 -cat confdefs.h >>conftest.$ac_ext
30561 -cat >>conftest.$ac_ext <<_ACEOF
30562 -/* end confdefs.h. */
30563 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
30564 +$as_echo_n "checking whether to build static libraries... " >&6; }
30565 + # Make sure either enable_shared or enable_static is yes.
30566 + test "$enable_shared" = yes || enable_static=yes
30567 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
30568 +$as_echo "$enable_static" >&6; }
30569
30570 -#include <gtk/gtk.h>
30571 -#include <stdio.h>
30572 -#include <stdlib.h>
30573
30574 -int
30575 -main ()
30576 -{
30577 - int major, minor, micro;
30578 - char *tmp_version;
30579
30580 - system ("touch conf.gtktest");
30581
30582 - /* HP/UX 9 (%@#!) writes to sscanf strings */
30583 - tmp_version = g_strdup("$min_gtk_version");
30584 - if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30585 - printf("%s, bad version string\n", "$min_gtk_version");
30586 - exit(1);
30587 - }
30588 +fi
30589 +ac_ext=c
30590 +ac_cpp='$CPP $CPPFLAGS'
30591 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30592 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30593 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
30594
30595 - if ((gtk_major_version != $gtk_config_major_version) ||
30596 - (gtk_minor_version != $gtk_config_minor_version) ||
30597 - (gtk_micro_version != $gtk_config_micro_version))
30598 - {
30599 - printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30600 - $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30601 - gtk_major_version, gtk_minor_version, gtk_micro_version);
30602 - printf ("*** was found! If pkg-config was correct, then it is best\n");
30603 - printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30604 - printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30605 - printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30606 - printf("*** required on your system.\n");
30607 - printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30608 - printf("*** to point to the correct configuration files\n");
30609 - }
30610 - else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30611 - (gtk_minor_version != GTK_MINOR_VERSION) ||
30612 - (gtk_micro_version != GTK_MICRO_VERSION))
30613 - {
30614 - printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30615 - GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30616 - printf("*** library (version %d.%d.%d)\n",
30617 - gtk_major_version, gtk_minor_version, gtk_micro_version);
30618 - }
30619 - else
30620 - {
30621 - if ((gtk_major_version > major) ||
30622 - ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30623 - ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30624 - {
30625 - return 0;
30626 - }
30627 - else
30628 - {
30629 - printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30630 - gtk_major_version, gtk_minor_version, gtk_micro_version);
30631 - printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30632 - major, minor, micro);
30633 - printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30634 - printf("***\n");
30635 - printf("*** If you have already installed a sufficiently new version, this error\n");
30636 - printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30637 - printf("*** being found. The easiest way to fix this is to remove the old version\n");
30638 - printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30639 - printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30640 - printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30641 - printf("*** so that the correct libraries are found at run-time))\n");
30642 - }
30643 - }
30644 - return 1;
30645 -}
30646 +CC="$lt_save_CC"
30647
30648 -_ACEOF
30649 -rm -f conftest$ac_exeext
30650 -if { (ac_try="$ac_link"
30651 -case "(($ac_try" in
30652 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30653 - *) ac_try_echo=$ac_try;;
30654 -esac
30655 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30656 -$as_echo "$ac_try_echo") >&5
30657 - (eval "$ac_link") 2>&5
30658 - ac_status=$?
30659 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30661 - { (case "(($ac_try" in
30662 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 - *) ac_try_echo=$ac_try;;
30664 -esac
30665 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30666 -$as_echo "$ac_try_echo") >&5
30667 - (eval "$ac_try") 2>&5
30668 - ac_status=$?
30669 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 - (exit $ac_status); }; }; then
30671 - :
30672 -else
30673 - $as_echo "$as_me: program exited with status $ac_status" >&5
30674 -$as_echo "$as_me: failed program was:" >&5
30675 -sed 's/^/| /' conftest.$ac_ext >&5
30676
30677 -( exit $ac_status )
30678 -no_gtk=yes
30679 -fi
30680 -rm -rf conftest.dSYM
30681 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30682 -fi
30683
30684
30685 - CFLAGS="$ac_save_CFLAGS"
30686 - LIBS="$ac_save_LIBS"
30687 - fi
30688 - fi
30689 - if test "x$no_gtk" = x ; then
30690 - { $as_echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30691 -$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30692 - :
30693 - else
30694 - { $as_echo "$as_me:$LINENO: result: no" >&5
30695 -$as_echo "no" >&6; }
30696 - if test "$PKG_CONFIG" = "no" ; then
30697 - echo "*** A new enough version of pkg-config was not found."
30698 - echo "*** See http://pkgconfig.sourceforge.net"
30699 - else
30700 - if test -f conf.gtktest ; then
30701 - :
30702 - else
30703 - echo "*** Could not run GTK+ test program, checking why..."
30704 - ac_save_CFLAGS="$CFLAGS"
30705 - ac_save_LIBS="$LIBS"
30706 - CFLAGS="$CFLAGS $GTK_CFLAGS"
30707 - LIBS="$LIBS $GTK_LIBS"
30708 - cat >conftest.$ac_ext <<_ACEOF
30709 -/* confdefs.h. */
30710 -_ACEOF
30711 -cat confdefs.h >>conftest.$ac_ext
30712 -cat >>conftest.$ac_ext <<_ACEOF
30713 -/* end confdefs.h. */
30714
30715 -#include <gtk/gtk.h>
30716 -#include <stdio.h>
30717
30718 -int
30719 -main ()
30720 -{
30721 - return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30722 - ;
30723 - return 0;
30724 -}
30725 -_ACEOF
30726 -rm -f conftest.$ac_objext conftest$ac_exeext
30727 -if { (ac_try="$ac_link"
30728 -case "(($ac_try" in
30729 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30730 - *) ac_try_echo=$ac_try;;
30731 -esac
30732 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30733 -$as_echo "$ac_try_echo") >&5
30734 - (eval "$ac_link") 2>conftest.er1
30735 - ac_status=$?
30736 - grep -v '^ *+' conftest.er1 >conftest.err
30737 - rm -f conftest.er1
30738 - cat conftest.err >&5
30739 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 - (exit $ac_status); } && {
30741 - test -z "$ac_c_werror_flag" ||
30742 - test ! -s conftest.err
30743 - } && test -s conftest$ac_exeext && {
30744 - test "$cross_compiling" = yes ||
30745 - $as_test_x conftest$ac_exeext
30746 - }; then
30747 - echo "*** The test program compiled, but did not run. This usually means"
30748 - echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30749 - echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30750 - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30751 - echo "*** to the installed location Also, make sure you have run ldconfig if that"
30752 - echo "*** is required on your system"
30753 - echo "***"
30754 - echo "*** If you have an old version installed, it is best to remove it, although"
30755 - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30756 -else
30757 - $as_echo "$as_me: failed program was:" >&5
30758 -sed 's/^/| /' conftest.$ac_ext >&5
30759
30760 - echo "*** The test program failed to compile or link. See the file config.log for the"
30761 - echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30762 -fi
30763
30764 -rm -rf conftest.dSYM
30765 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30766 - conftest$ac_exeext conftest.$ac_ext
30767 - CFLAGS="$ac_save_CFLAGS"
30768 - LIBS="$ac_save_LIBS"
30769 - fi
30770 - fi
30771 - GTK_CFLAGS=""
30772 - GTK_LIBS=""
30773 - :
30774 - fi
30775
30776
30777 - rm -f conf.gtktest
30778
30779
30780 -save_LIBS=$LIBS
30781 -LIBS="$GTK_LIBS $LIBS"
30782 -{ $as_echo "$as_me:$LINENO: checking for gtk_plug_get_type" >&5
30783 -$as_echo_n "checking for gtk_plug_get_type... " >&6; }
30784 -if test "${ac_cv_func_gtk_plug_get_type+set}" = set; then
30785 - $as_echo_n "(cached) " >&6
30786 -else
30787 - cat >conftest.$ac_ext <<_ACEOF
30788 -/* confdefs.h. */
30789 -_ACEOF
30790 -cat confdefs.h >>conftest.$ac_ext
30791 -cat >>conftest.$ac_ext <<_ACEOF
30792 -/* end confdefs.h. */
30793 -/* Define gtk_plug_get_type to an innocuous variant, in case <limits.h> declares gtk_plug_get_type.
30794 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
30795 -#define gtk_plug_get_type innocuous_gtk_plug_get_type
30796
30797 -/* System header to define __stub macros and hopefully few prototypes,
30798 - which can conflict with char gtk_plug_get_type (); below.
30799 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30800 - <limits.h> exists even on freestanding compilers. */
30801
30802 -#ifdef __STDC__
30803 -# include <limits.h>
30804 -#else
30805 -# include <assert.h>
30806 -#endif
30807
30808 -#undef gtk_plug_get_type
30809 + ac_config_commands="$ac_config_commands libtool"
30810
30811 -/* Override any GCC internal prototype to avoid an error.
30812 - Use char because int might match the return type of a GCC
30813 - builtin and then its argument prototype would still apply. */
30814 -#ifdef __cplusplus
30815 -extern "C"
30816 -#endif
30817 -char gtk_plug_get_type ();
30818 -/* The GNU C library defines this for functions which it implements
30819 - to always fail with ENOSYS. Some functions are actually named
30820 - something starting with __ and the normal name is an alias. */
30821 -#if defined __stub_gtk_plug_get_type || defined __stub___gtk_plug_get_type
30822 -choke me
30823 -#endif
30824
30825 -int
30826 -main ()
30827 -{
30828 -return gtk_plug_get_type ();
30829 - ;
30830 - return 0;
30831 -}
30832 -_ACEOF
30833 -rm -f conftest.$ac_objext conftest$ac_exeext
30834 -if { (ac_try="$ac_link"
30835 -case "(($ac_try" in
30836 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837 - *) ac_try_echo=$ac_try;;
30838 -esac
30839 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30840 -$as_echo "$ac_try_echo") >&5
30841 - (eval "$ac_link") 2>conftest.er1
30842 - ac_status=$?
30843 - grep -v '^ *+' conftest.er1 >conftest.err
30844 - rm -f conftest.er1
30845 - cat conftest.err >&5
30846 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 - (exit $ac_status); } && {
30848 - test -z "$ac_c_werror_flag" ||
30849 - test ! -s conftest.err
30850 - } && test -s conftest$ac_exeext && {
30851 - test "$cross_compiling" = yes ||
30852 - $as_test_x conftest$ac_exeext
30853 - }; then
30854 - ac_cv_func_gtk_plug_get_type=yes
30855 -else
30856 - $as_echo "$as_me: failed program was:" >&5
30857 -sed 's/^/| /' conftest.$ac_ext >&5
30858
30859 - ac_cv_func_gtk_plug_get_type=no
30860 -fi
30861
30862 -rm -rf conftest.dSYM
30863 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30864 - conftest$ac_exeext conftest.$ac_ext
30865 -fi
30866 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gtk_plug_get_type" >&5
30867 -$as_echo "$ac_cv_func_gtk_plug_get_type" >&6; }
30868 -if test $ac_cv_func_gtk_plug_get_type = yes; then
30869 +# Only expand once:
30870
30871 -cat >>confdefs.h <<\_ACEOF
30872 -#define HAVE_GTK_PLUG 1
30873 -_ACEOF
30874
30875 +
30876 +# Check whether --enable-gtktest was given.
30877 +if test "${enable_gtktest+set}" = set; then :
30878 + enableval=$enable_gtktest;
30879 +else
30880 + enable_gtktest=yes
30881 fi
30882
30883 -LIBS=$save_LIBS
30884
30885 + pkg_config_args=gtk+-2.0
30886 + for module in .
30887 + do
30888 + case "$module" in
30889 + gthread)
30890 + pkg_config_args="$pkg_config_args gthread-2.0"
30891 + ;;
30892 + esac
30893 + done
30894
30895 + no_gtk=""
30896
30897 -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30898 - if test -n "$ac_tool_prefix"; then
30899 - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30900 -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30901 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30902 + # Extract the first word of "pkg-config", so it can be a program name with args.
30903 +set dummy pkg-config; ac_word=$2
30904 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30905 $as_echo_n "checking for $ac_word... " >&6; }
30906 -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30907 +if ${ac_cv_path_PKG_CONFIG+:} false; then :
30908 $as_echo_n "(cached) " >&6
30909 else
30910 case $PKG_CONFIG in
30911 @@ -10974,215 +11970,241 @@ for as_dir in $PATH
30912 do
30913 IFS=$as_save_IFS
30914 test -z "$as_dir" && as_dir=.
30915 - for ac_exec_ext in '' $ac_executable_extensions; do
30916 + for ac_exec_ext in '' $ac_executable_extensions; do
30917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30918 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30919 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30920 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30921 break 2
30922 fi
30923 done
30924 -done
30925 + done
30926 IFS=$as_save_IFS
30927
30928 + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30929 ;;
30930 esac
30931 fi
30932 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30933 if test -n "$PKG_CONFIG"; then
30934 - { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30935 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
30936 $as_echo "$PKG_CONFIG" >&6; }
30937 else
30938 - { $as_echo "$as_me:$LINENO: result: no" >&5
30939 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30940 $as_echo "no" >&6; }
30941 fi
30942
30943
30944 -fi
30945 -if test -z "$ac_cv_path_PKG_CONFIG"; then
30946 - ac_pt_PKG_CONFIG=$PKG_CONFIG
30947 - # Extract the first word of "pkg-config", so it can be a program name with args.
30948 -set dummy pkg-config; ac_word=$2
30949 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30950 -$as_echo_n "checking for $ac_word... " >&6; }
30951 -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30952 - $as_echo_n "(cached) " >&6
30953 -else
30954 - case $ac_pt_PKG_CONFIG in
30955 - [\\/]* | ?:[\\/]*)
30956 - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30957 - ;;
30958 - *)
30959 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30960 -for as_dir in $PATH
30961 -do
30962 - IFS=$as_save_IFS
30963 - test -z "$as_dir" && as_dir=.
30964 - for ac_exec_ext in '' $ac_executable_extensions; do
30965 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30966 - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30967 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30968 - break 2
30969 - fi
30970 -done
30971 -done
30972 -IFS=$as_save_IFS
30973 -
30974 - ;;
30975 -esac
30976 -fi
30977 -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30978 -if test -n "$ac_pt_PKG_CONFIG"; then
30979 - { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30980 -$as_echo "$ac_pt_PKG_CONFIG" >&6; }
30981 -else
30982 - { $as_echo "$as_me:$LINENO: result: no" >&5
30983 -$as_echo "no" >&6; }
30984 -fi
30985
30986 - if test "x$ac_pt_PKG_CONFIG" = x; then
30987 - PKG_CONFIG=""
30988 + if test x$PKG_CONFIG != xno ; then
30989 + if pkg-config --atleast-pkgconfig-version 0.7 ; then
30990 + :
30991 + else
30992 + echo "*** pkg-config too old; version 0.7 or better required."
30993 + no_gtk=yes
30994 + PKG_CONFIG=no
30995 + fi
30996 else
30997 - case $cross_compiling:$ac_tool_warned in
30998 -yes:)
30999 -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31000 -whose name does not start with the host triplet. If you think this
31001 -configuration is useful to you, please write to autoconf@gnu.org." >&5
31002 -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31003 -whose name does not start with the host triplet. If you think this
31004 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31005 -ac_tool_warned=yes ;;
31006 -esac
31007 - PKG_CONFIG=$ac_pt_PKG_CONFIG
31008 + no_gtk=yes
31009 fi
31010 -else
31011 - PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31012 -fi
31013
31014 -fi
31015 -if test -n "$PKG_CONFIG"; then
31016 - _pkg_min_version=0.9.0
31017 - { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31018 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
31019 - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31020 - { $as_echo "$as_me:$LINENO: result: yes" >&5
31021 -$as_echo "yes" >&6; }
31022 - else
31023 - { $as_echo "$as_me:$LINENO: result: no" >&5
31024 -$as_echo "no" >&6; }
31025 - PKG_CONFIG=""
31026 - fi
31027 -
31028 -fi
31029 + min_gtk_version=2.5.0
31030 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
31031 +$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
31032
31033 + if test x$PKG_CONFIG != xno ; then
31034 + ## don't try to run the test against uninstalled libtool libs
31035 + if $PKG_CONFIG --uninstalled $pkg_config_args; then
31036 + echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
31037 + enable_gtktest=no
31038 + fi
31039
31040 -pkg_failed=no
31041 -{ $as_echo "$as_me:$LINENO: checking for LIBGLADE" >&5
31042 -$as_echo_n "checking for LIBGLADE... " >&6; }
31043 + if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
31044 + :
31045 + else
31046 + no_gtk=yes
31047 + fi
31048 + fi
31049
31050 -if test -n "$LIBGLADE_CFLAGS"; then
31051 - pkg_cv_LIBGLADE_CFLAGS="$LIBGLADE_CFLAGS"
31052 - elif test -n "$PKG_CONFIG"; then
31053 - if test -n "$PKG_CONFIG" && \
31054 - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0\"") >&5
31055 - ($PKG_CONFIG --exists --print-errors " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0") 2>&5
31056 - ac_status=$?
31057 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 - (exit $ac_status); }; then
31059 - pkg_cv_LIBGLADE_CFLAGS=`$PKG_CONFIG --cflags " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0" 2>/dev/null`
31060 -else
31061 - pkg_failed=yes
31062 -fi
31063 - else
31064 - pkg_failed=untried
31065 -fi
31066 -if test -n "$LIBGLADE_LIBS"; then
31067 - pkg_cv_LIBGLADE_LIBS="$LIBGLADE_LIBS"
31068 - elif test -n "$PKG_CONFIG"; then
31069 - if test -n "$PKG_CONFIG" && \
31070 - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0\"") >&5
31071 - ($PKG_CONFIG --exists --print-errors " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0") 2>&5
31072 - ac_status=$?
31073 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 - (exit $ac_status); }; then
31075 - pkg_cv_LIBGLADE_LIBS=`$PKG_CONFIG --libs " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0" 2>/dev/null`
31076 + if test x"$no_gtk" = x ; then
31077 + GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
31078 + GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
31079 + gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31080 + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31081 + gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31082 + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31083 + gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31084 + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31085 + if test "x$enable_gtktest" = "xyes" ; then
31086 + ac_save_CFLAGS="$CFLAGS"
31087 + ac_save_LIBS="$LIBS"
31088 + CFLAGS="$CFLAGS $GTK_CFLAGS"
31089 + LIBS="$GTK_LIBS $LIBS"
31090 + rm -f conf.gtktest
31091 + if test "$cross_compiling" = yes; then :
31092 + echo $ac_n "cross compiling; assumed OK... $ac_c"
31093 else
31094 - pkg_failed=yes
31095 -fi
31096 - else
31097 - pkg_failed=untried
31098 -fi
31099 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31100 +/* end confdefs.h. */
31101
31102 +#include <gtk/gtk.h>
31103 +#include <stdio.h>
31104 +#include <stdlib.h>
31105
31106 +int
31107 +main ()
31108 +{
31109 + int major, minor, micro;
31110 + char *tmp_version;
31111
31112 -if test $pkg_failed = yes; then
31113 + fclose (fopen ("conf.gtktest", "w"));
31114
31115 -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31116 - _pkg_short_errors_supported=yes
31117 -else
31118 - _pkg_short_errors_supported=no
31119 -fi
31120 - if test $_pkg_short_errors_supported = yes; then
31121 - LIBGLADE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0" 2>&1`
31122 - else
31123 - LIBGLADE_PKG_ERRORS=`$PKG_CONFIG --print-errors " libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0" 2>&1`
31124 - fi
31125 - # Put the nasty error message in config.log where it belongs
31126 - echo "$LIBGLADE_PKG_ERRORS" >&5
31127 + /* HP/UX 9 (%@#!) writes to sscanf strings */
31128 + tmp_version = g_strdup("$min_gtk_version");
31129 + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31130 + printf("%s, bad version string\n", "$min_gtk_version");
31131 + exit(1);
31132 + }
31133 +
31134 + if ((gtk_major_version != $gtk_config_major_version) ||
31135 + (gtk_minor_version != $gtk_config_minor_version) ||
31136 + (gtk_micro_version != $gtk_config_micro_version))
31137 + {
31138 + printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31139 + $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31140 + gtk_major_version, gtk_minor_version, gtk_micro_version);
31141 + printf ("*** was found! If pkg-config was correct, then it is best\n");
31142 + printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31143 + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31144 + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31145 + printf("*** required on your system.\n");
31146 + printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
31147 + printf("*** to point to the correct configuration files\n");
31148 + }
31149 + else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31150 + (gtk_minor_version != GTK_MINOR_VERSION) ||
31151 + (gtk_micro_version != GTK_MICRO_VERSION))
31152 + {
31153 + printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31154 + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31155 + printf("*** library (version %d.%d.%d)\n",
31156 + gtk_major_version, gtk_minor_version, gtk_micro_version);
31157 + }
31158 + else
31159 + {
31160 + if ((gtk_major_version > major) ||
31161 + ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31162 + ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31163 + {
31164 + return 0;
31165 + }
31166 + else
31167 + {
31168 + printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31169 + gtk_major_version, gtk_minor_version, gtk_micro_version);
31170 + printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31171 + major, minor, micro);
31172 + printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31173 + printf("***\n");
31174 + printf("*** If you have already installed a sufficiently new version, this error\n");
31175 + printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
31176 + printf("*** being found. The easiest way to fix this is to remove the old version\n");
31177 + printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
31178 + printf("*** correct copy of pkg-config. (In this case, you will have to\n");
31179 + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31180 + printf("*** so that the correct libraries are found at run-time))\n");
31181 + }
31182 + }
31183 + return 1;
31184 +}
31185
31186 - { { $as_echo "$as_me:$LINENO: error: Package requirements ( libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0) were not met:
31187 +_ACEOF
31188 +if ac_fn_c_try_run "$LINENO"; then :
31189
31190 -$LIBGLADE_PKG_ERRORS
31191 +else
31192 + no_gtk=yes
31193 +fi
31194 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31195 + conftest.$ac_objext conftest.beam conftest.$ac_ext
31196 +fi
31197
31198 -Consider adjusting the PKG_CONFIG_PATH environment variable if you
31199 -installed software in a non-standard prefix.
31200 + CFLAGS="$ac_save_CFLAGS"
31201 + LIBS="$ac_save_LIBS"
31202 + fi
31203 + fi
31204 + if test "x$no_gtk" = x ; then
31205 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
31206 +$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
31207 + :
31208 + else
31209 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31210 +$as_echo "no" >&6; }
31211 + if test "$PKG_CONFIG" = "no" ; then
31212 + echo "*** A new enough version of pkg-config was not found."
31213 + echo "*** See http://pkgconfig.sourceforge.net"
31214 + else
31215 + if test -f conf.gtktest ; then
31216 + :
31217 + else
31218 + echo "*** Could not run GTK+ test program, checking why..."
31219 + ac_save_CFLAGS="$CFLAGS"
31220 + ac_save_LIBS="$LIBS"
31221 + CFLAGS="$CFLAGS $GTK_CFLAGS"
31222 + LIBS="$LIBS $GTK_LIBS"
31223 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31224 +/* end confdefs.h. */
31225
31226 -Alternatively, you may set the environment variables LIBGLADE_CFLAGS
31227 -and LIBGLADE_LIBS to avoid the need to call pkg-config.
31228 -See the pkg-config man page for more details.
31229 -" >&5
31230 -$as_echo "$as_me: error: Package requirements ( libxml-2.0 >= 2.4.10 atk >= 1.9.0 gtk+-2.0 >= 2.5.0 glib-2.0 >= 2.10.0) were not met:
31231 +#include <gtk/gtk.h>
31232 +#include <stdio.h>
31233
31234 -$LIBGLADE_PKG_ERRORS
31235 +int
31236 +main ()
31237 +{
31238 + return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31239 + ;
31240 + return 0;
31241 +}
31242 +_ACEOF
31243 +if ac_fn_c_try_link "$LINENO"; then :
31244 + echo "*** The test program compiled, but did not run. This usually means"
31245 + echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
31246 + echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
31247 + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31248 + echo "*** to the installed location Also, make sure you have run ldconfig if that"
31249 + echo "*** is required on your system"
31250 + echo "***"
31251 + echo "*** If you have an old version installed, it is best to remove it, although"
31252 + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31253 +else
31254 + echo "*** The test program failed to compile or link. See the file config.log for the"
31255 + echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
31256 +fi
31257 +rm -f core conftest.err conftest.$ac_objext \
31258 + conftest$ac_exeext conftest.$ac_ext
31259 + CFLAGS="$ac_save_CFLAGS"
31260 + LIBS="$ac_save_LIBS"
31261 + fi
31262 + fi
31263 + GTK_CFLAGS=""
31264 + GTK_LIBS=""
31265 + :
31266 + fi
31267
31268 -Consider adjusting the PKG_CONFIG_PATH environment variable if you
31269 -installed software in a non-standard prefix.
31270
31271 -Alternatively, you may set the environment variables LIBGLADE_CFLAGS
31272 -and LIBGLADE_LIBS to avoid the need to call pkg-config.
31273 -See the pkg-config man page for more details.
31274 -" >&2;}
31275 - { (exit 1); exit 1; }; }
31276 -elif test $pkg_failed = untried; then
31277 - { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
31278 -is in your PATH or set the PKG_CONFIG environment variable to the full
31279 -path to pkg-config.
31280 + rm -f conf.gtktest
31281
31282 -Alternatively, you may set the environment variables LIBGLADE_CFLAGS
31283 -and LIBGLADE_LIBS to avoid the need to call pkg-config.
31284 -See the pkg-config man page for more details.
31285
31286 -To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31287 -See \`config.log' for more details." >&5
31288 -$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
31289 -is in your PATH or set the PKG_CONFIG environment variable to the full
31290 -path to pkg-config.
31291 +save_LIBS=$LIBS
31292 +LIBS="$GTK_LIBS $LIBS"
31293 +ac_fn_c_check_func "$LINENO" "gtk_plug_get_type" "ac_cv_func_gtk_plug_get_type"
31294 +if test "x$ac_cv_func_gtk_plug_get_type" = xyes; then :
31295
31296 -Alternatively, you may set the environment variables LIBGLADE_CFLAGS
31297 -and LIBGLADE_LIBS to avoid the need to call pkg-config.
31298 -See the pkg-config man page for more details.
31299 +$as_echo "#define HAVE_GTK_PLUG 1" >>confdefs.h
31300
31301 -To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31302 -See \`config.log' for more details." >&2;}
31303 - { (exit 1); exit 1; }; }
31304 -else
31305 - LIBGLADE_CFLAGS=$pkg_cv_LIBGLADE_CFLAGS
31306 - LIBGLADE_LIBS=$pkg_cv_LIBGLADE_LIBS
31307 - { $as_echo "$as_me:$LINENO: result: yes" >&5
31308 -$as_echo "yes" >&6; }
31309 - :
31310 fi
31311
31312 -{ $as_echo "$as_me:$LINENO: checking for native Win32" >&5
31313 +LIBS=$save_LIBS
31314 +
31315 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
31316 $as_echo_n "checking for native Win32... " >&6; }
31317 case "$host" in
31318 *-*-mingw*)
31319 @@ -11192,7 +12214,7 @@ case "$host" in
31320 native_win32=no
31321 ;;
31322 esac
31323 -{ $as_echo "$as_me:$LINENO: result: $native_win32" >&5
31324 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
31325 $as_echo "$native_win32" >&6; }
31326 if test "$native_win32" = yes; then
31327 OS_WIN32_TRUE=
31328 @@ -11203,7 +12225,7 @@ else
31329 fi
31330
31331
31332 -{ $as_echo "$as_me:$LINENO: checking for Win32 platform in general" >&5
31333 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 platform in general" >&5
31334 $as_echo_n "checking for Win32 platform in general... " >&6; }
31335 case "$host" in
31336 *-*-mingw*|*-*-cygwin*)
31337 @@ -11213,7 +12235,7 @@ case "$host" in
31338 platform_win32=no
31339 ;;
31340 esac
31341 -{ $as_echo "$as_me:$LINENO: result: $platform_win32" >&5
31342 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
31343 $as_echo "$platform_win32" >&6; }
31344 if test "$platform_win32" = yes; then
31345 PLATFORM_WIN32_TRUE=
31346 @@ -11231,7 +12253,7 @@ fi
31347 if test x"$native_win32" = xyes; then
31348 if test x"$GCC" = xyes; then
31349 msnative_struct=''
31350 - { $as_echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
31351 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
31352 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
31353 if test -z "$ac_cv_prog_CC"; then
31354 our_gcc="$CC"
31355 @@ -11251,13 +12273,13 @@ $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
31356 ;;
31357 esac
31358 if test x"$msnative_struct" = x ; then
31359 - { $as_echo "$as_me:$LINENO: result: no way" >&5
31360 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
31361 $as_echo "no way" >&6; }
31362 - { $as_echo "$as_me:$LINENO: WARNING: produced libraries will be incompatible with prebuilt GTK+ DLLs" >&5
31363 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries will be incompatible with prebuilt GTK+ DLLs" >&5
31364 $as_echo "$as_me: WARNING: produced libraries will be incompatible with prebuilt GTK+ DLLs" >&2;}
31365 else
31366 CFLAGS="$CFLAGS $msnative_struct"
31367 - { $as_echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
31368 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
31369 $as_echo "${msnative_struct}" >&6; }
31370 fi
31371 fi
31372 @@ -11267,7 +12289,7 @@ fi
31373
31374
31375 # Check whether --with-html-dir was given.
31376 -if test "${with_html_dir+set}" = set; then
31377 +if test "${with_html_dir+set}" = set; then :
31378 withval=$with_html_dir;
31379 else
31380 with_html_dir='${datadir}/gtk-doc/html'
31381 @@ -11277,7 +12299,7 @@ fi
31382
31383
31384 # Check whether --enable-gtk-doc was given.
31385 -if test "${enable_gtk_doc+set}" = set; then
31386 +if test "${enable_gtk_doc+set}" = set; then :
31387 enableval=$enable_gtk_doc;
31388 else
31389 enable_gtk_doc=no
31390 @@ -11286,33 +12308,31 @@ fi
31391
31392 if test x$enable_gtk_doc = xyes; then
31393 if test -n "$PKG_CONFIG" && \
31394 - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\"") >&5
31395 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
31396 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
31397 ac_status=$?
31398 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 - (exit $ac_status); }; then
31400 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31401 + test $ac_status = 0; }; then
31402 :
31403 else
31404 - { { $as_echo "$as_me:$LINENO: error: You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" >&5
31405 -$as_echo "$as_me: error: You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" >&2;}
31406 - { (exit 1); exit 1; }; }
31407 + as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5
31408 fi
31409 fi
31410
31411 - { $as_echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5
31412 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
31413 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
31414 - { $as_echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5
31415 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
31416 $as_echo "$enable_gtk_doc" >&6; }
31417
31418 # Check whether --enable-gtk-doc-html was given.
31419 -if test "${enable_gtk_doc_html+set}" = set; then
31420 +if test "${enable_gtk_doc_html+set}" = set; then :
31421 enableval=$enable_gtk_doc_html;
31422 else
31423 enable_gtk_doc_html=yes
31424 fi
31425
31426 # Check whether --enable-gtk-doc-pdf was given.
31427 -if test "${enable_gtk_doc_pdf+set}" = set; then
31428 +if test "${enable_gtk_doc_pdf+set}" = set; then :
31429 enableval=$enable_gtk_doc_pdf;
31430 else
31431 enable_gtk_doc_pdf=no
31432 @@ -11321,9 +12341,9 @@ fi
31433
31434 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
31435 set dummy gtkdoc-check; ac_word=$2
31436 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31437 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31438 $as_echo_n "checking for $ac_word... " >&6; }
31439 -if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then
31440 +if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
31441 $as_echo_n "(cached) " >&6
31442 else
31443 case $GTKDOC_CHECK in
31444 @@ -11336,14 +12356,14 @@ for as_dir in $PATH
31445 do
31446 IFS=$as_save_IFS
31447 test -z "$as_dir" && as_dir=.
31448 - for ac_exec_ext in '' $ac_executable_extensions; do
31449 + for ac_exec_ext in '' $ac_executable_extensions; do
31450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31451 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
31452 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31453 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31454 break 2
31455 fi
31456 done
31457 -done
31458 + done
31459 IFS=$as_save_IFS
31460
31461 ;;
31462 @@ -11351,10 +12371,10 @@ esac
31463 fi
31464 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
31465 if test -n "$GTKDOC_CHECK"; then
31466 - { $as_echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5
31467 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
31468 $as_echo "$GTKDOC_CHECK" >&6; }
31469 else
31470 - { $as_echo "$as_me:$LINENO: result: no" >&5
31471 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31472 $as_echo "no" >&6; }
31473 fi
31474
31475 @@ -11363,9 +12383,9 @@ fi
31476 do
31477 # Extract the first word of "$ac_prog", so it can be a program name with args.
31478 set dummy $ac_prog; ac_word=$2
31479 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31480 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31481 $as_echo_n "checking for $ac_word... " >&6; }
31482 -if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then
31483 +if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
31484 $as_echo_n "(cached) " >&6
31485 else
31486 case $GTKDOC_REBASE in
31487 @@ -11378,14 +12398,14 @@ for as_dir in $PATH
31488 do
31489 IFS=$as_save_IFS
31490 test -z "$as_dir" && as_dir=.
31491 - for ac_exec_ext in '' $ac_executable_extensions; do
31492 + for ac_exec_ext in '' $ac_executable_extensions; do
31493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31494 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
31495 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31496 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31497 break 2
31498 fi
31499 done
31500 -done
31501 + done
31502 IFS=$as_save_IFS
31503
31504 ;;
31505 @@ -11393,10 +12413,10 @@ esac
31506 fi
31507 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
31508 if test -n "$GTKDOC_REBASE"; then
31509 - { $as_echo "$as_me:$LINENO: result: $GTKDOC_REBASE" >&5
31510 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
31511 $as_echo "$GTKDOC_REBASE" >&6; }
31512 else
31513 - { $as_echo "$as_me:$LINENO: result: no" >&5
31514 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31515 $as_echo "no" >&6; }
31516 fi
31517
31518 @@ -11453,3384 +12473,3460 @@ GETTEXT_PACKAGE=libglade-2.0
31519
31520 ALL_LINGUAS=
31521
31522 + for ac_header in locale.h
31523 +do :
31524 + ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
31525 +if test "x$ac_cv_header_locale_h" = xyes; then :
31526 + cat >>confdefs.h <<_ACEOF
31527 +#define HAVE_LOCALE_H 1
31528 +_ACEOF
31529
31530 -for ac_header in locale.h
31531 -do
31532 -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31533 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31534 - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31535 -$as_echo_n "checking for $ac_header... " >&6; }
31536 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31537 - $as_echo_n "(cached) " >&6
31538 fi
31539 -ac_res=`eval 'as_val=${'$as_ac_Header'}
31540 - $as_echo "$as_val"'`
31541 - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31542 -$as_echo "$ac_res" >&6; }
31543 +
31544 +done
31545 +
31546 + if test $ac_cv_header_locale_h = yes; then
31547 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
31548 +$as_echo_n "checking for LC_MESSAGES... " >&6; }
31549 +if ${am_cv_val_LC_MESSAGES+:} false; then :
31550 + $as_echo_n "(cached) " >&6
31551 else
31552 - # Is the header compilable?
31553 -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31554 -$as_echo_n "checking $ac_header usability... " >&6; }
31555 -cat >conftest.$ac_ext <<_ACEOF
31556 -/* confdefs.h. */
31557 -_ACEOF
31558 -cat confdefs.h >>conftest.$ac_ext
31559 -cat >>conftest.$ac_ext <<_ACEOF
31560 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31561 /* end confdefs.h. */
31562 -$ac_includes_default
31563 -#include <$ac_header>
31564 +#include <locale.h>
31565 +int
31566 +main ()
31567 +{
31568 +return LC_MESSAGES
31569 + ;
31570 + return 0;
31571 +}
31572 _ACEOF
31573 -rm -f conftest.$ac_objext
31574 -if { (ac_try="$ac_compile"
31575 -case "(($ac_try" in
31576 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31577 - *) ac_try_echo=$ac_try;;
31578 -esac
31579 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31580 -$as_echo "$ac_try_echo") >&5
31581 - (eval "$ac_compile") 2>conftest.er1
31582 - ac_status=$?
31583 - grep -v '^ *+' conftest.er1 >conftest.err
31584 - rm -f conftest.er1
31585 - cat conftest.err >&5
31586 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 - (exit $ac_status); } && {
31588 - test -z "$ac_c_werror_flag" ||
31589 - test ! -s conftest.err
31590 - } && test -s conftest.$ac_objext; then
31591 - ac_header_compiler=yes
31592 +if ac_fn_c_try_link "$LINENO"; then :
31593 + am_cv_val_LC_MESSAGES=yes
31594 else
31595 - $as_echo "$as_me: failed program was:" >&5
31596 -sed 's/^/| /' conftest.$ac_ext >&5
31597 -
31598 - ac_header_compiler=no
31599 + am_cv_val_LC_MESSAGES=no
31600 fi
31601 +rm -f core conftest.err conftest.$ac_objext \
31602 + conftest$ac_exeext conftest.$ac_ext
31603 +fi
31604 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
31605 +$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
31606 + if test $am_cv_val_LC_MESSAGES = yes; then
31607
31608 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31609 -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31610 -$as_echo "$ac_header_compiler" >&6; }
31611 +$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
31612
31613 -# Is the header present?
31614 -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31615 -$as_echo_n "checking $ac_header presence... " >&6; }
31616 -cat >conftest.$ac_ext <<_ACEOF
31617 -/* confdefs.h. */
31618 + fi
31619 + fi
31620 + USE_NLS=yes
31621 +
31622 +
31623 + gt_cv_have_gettext=no
31624 +
31625 + CATOBJEXT=NONE
31626 + XGETTEXT=:
31627 + INTLLIBS=
31628 +
31629 + ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
31630 +if test "x$ac_cv_header_libintl_h" = xyes; then :
31631 + gt_cv_func_dgettext_libintl="no"
31632 + libintl_extra_libs=""
31633 +
31634 + #
31635 + # First check in libc
31636 + #
31637 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
31638 +$as_echo_n "checking for ngettext in libc... " >&6; }
31639 +if ${gt_cv_func_ngettext_libc+:} false; then :
31640 + $as_echo_n "(cached) " >&6
31641 +else
31642 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31643 +/* end confdefs.h. */
31644 +
31645 +#include <libintl.h>
31646 +
31647 +int
31648 +main ()
31649 +{
31650 +return !ngettext ("","", 1)
31651 + ;
31652 + return 0;
31653 +}
31654 _ACEOF
31655 -cat confdefs.h >>conftest.$ac_ext
31656 -cat >>conftest.$ac_ext <<_ACEOF
31657 +if ac_fn_c_try_link "$LINENO"; then :
31658 + gt_cv_func_ngettext_libc=yes
31659 +else
31660 + gt_cv_func_ngettext_libc=no
31661 +fi
31662 +rm -f core conftest.err conftest.$ac_objext \
31663 + conftest$ac_exeext conftest.$ac_ext
31664 +
31665 +fi
31666 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
31667 +$as_echo "$gt_cv_func_ngettext_libc" >&6; }
31668 +
31669 + if test "$gt_cv_func_ngettext_libc" = "yes" ; then
31670 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
31671 +$as_echo_n "checking for dgettext in libc... " >&6; }
31672 +if ${gt_cv_func_dgettext_libc+:} false; then :
31673 + $as_echo_n "(cached) " >&6
31674 +else
31675 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31676 /* end confdefs.h. */
31677 -#include <$ac_header>
31678 +
31679 +#include <libintl.h>
31680 +
31681 +int
31682 +main ()
31683 +{
31684 +return !dgettext ("","")
31685 + ;
31686 + return 0;
31687 +}
31688 _ACEOF
31689 -if { (ac_try="$ac_cpp conftest.$ac_ext"
31690 -case "(($ac_try" in
31691 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 - *) ac_try_echo=$ac_try;;
31693 -esac
31694 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31695 -$as_echo "$ac_try_echo") >&5
31696 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31697 - ac_status=$?
31698 - grep -v '^ *+' conftest.er1 >conftest.err
31699 - rm -f conftest.er1
31700 - cat conftest.err >&5
31701 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 - (exit $ac_status); } >/dev/null && {
31703 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31704 - test ! -s conftest.err
31705 - }; then
31706 - ac_header_preproc=yes
31707 +if ac_fn_c_try_link "$LINENO"; then :
31708 + gt_cv_func_dgettext_libc=yes
31709 else
31710 - $as_echo "$as_me: failed program was:" >&5
31711 -sed 's/^/| /' conftest.$ac_ext >&5
31712 + gt_cv_func_dgettext_libc=no
31713 +fi
31714 +rm -f core conftest.err conftest.$ac_objext \
31715 + conftest$ac_exeext conftest.$ac_ext
31716 +
31717 +fi
31718 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
31719 +$as_echo "$gt_cv_func_dgettext_libc" >&6; }
31720 + fi
31721 +
31722 + if test "$gt_cv_func_ngettext_libc" = "yes" ; then
31723 + for ac_func in bind_textdomain_codeset
31724 +do :
31725 + ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
31726 +if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
31727 + cat >>confdefs.h <<_ACEOF
31728 +#define HAVE_BIND_TEXTDOMAIN_CODESET 1
31729 +_ACEOF
31730
31731 - ac_header_preproc=no
31732 fi
31733 +done
31734
31735 -rm -f conftest.err conftest.$ac_ext
31736 -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31737 -$as_echo "$ac_header_preproc" >&6; }
31738 + fi
31739
31740 -# So? What about this header?
31741 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31742 - yes:no: )
31743 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31744 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31745 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31746 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31747 - ac_header_preproc=yes
31748 - ;;
31749 - no:yes:* )
31750 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31751 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31752 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31753 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31754 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31755 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31756 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31757 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31758 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31759 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31760 - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31761 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31762 - ( cat <<\_ASBOX
31763 -## ----------------------------------------------------------------------- ##
31764 -## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libglade ##
31765 -## ----------------------------------------------------------------------- ##
31766 -_ASBOX
31767 - ) | sed "s/^/$as_me: WARNING: /" >&2
31768 - ;;
31769 -esac
31770 -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31771 -$as_echo_n "checking for $ac_header... " >&6; }
31772 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31773 + #
31774 + # If we don't have everything we want, check in libintl
31775 + #
31776 + if test "$gt_cv_func_dgettext_libc" != "yes" \
31777 + || test "$gt_cv_func_ngettext_libc" != "yes" \
31778 + || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
31779 +
31780 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
31781 +$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
31782 +if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
31783 + $as_echo_n "(cached) " >&6
31784 +else
31785 + ac_check_lib_save_LIBS=$LIBS
31786 +LIBS="-lintl $LIBS"
31787 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31788 +/* end confdefs.h. */
31789 +
31790 +/* Override any GCC internal prototype to avoid an error.
31791 + Use char because int might match the return type of a GCC
31792 + builtin and then its argument prototype would still apply. */
31793 +#ifdef __cplusplus
31794 +extern "C"
31795 +#endif
31796 +char bindtextdomain ();
31797 +int
31798 +main ()
31799 +{
31800 +return bindtextdomain ();
31801 + ;
31802 + return 0;
31803 +}
31804 +_ACEOF
31805 +if ac_fn_c_try_link "$LINENO"; then :
31806 + ac_cv_lib_intl_bindtextdomain=yes
31807 +else
31808 + ac_cv_lib_intl_bindtextdomain=no
31809 +fi
31810 +rm -f core conftest.err conftest.$ac_objext \
31811 + conftest$ac_exeext conftest.$ac_ext
31812 +LIBS=$ac_check_lib_save_LIBS
31813 +fi
31814 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
31815 +$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
31816 +if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
31817 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
31818 +$as_echo_n "checking for ngettext in -lintl... " >&6; }
31819 +if ${ac_cv_lib_intl_ngettext+:} false; then :
31820 + $as_echo_n "(cached) " >&6
31821 +else
31822 + ac_check_lib_save_LIBS=$LIBS
31823 +LIBS="-lintl $LIBS"
31824 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31825 +/* end confdefs.h. */
31826 +
31827 +/* Override any GCC internal prototype to avoid an error.
31828 + Use char because int might match the return type of a GCC
31829 + builtin and then its argument prototype would still apply. */
31830 +#ifdef __cplusplus
31831 +extern "C"
31832 +#endif
31833 +char ngettext ();
31834 +int
31835 +main ()
31836 +{
31837 +return ngettext ();
31838 + ;
31839 + return 0;
31840 +}
31841 +_ACEOF
31842 +if ac_fn_c_try_link "$LINENO"; then :
31843 + ac_cv_lib_intl_ngettext=yes
31844 +else
31845 + ac_cv_lib_intl_ngettext=no
31846 +fi
31847 +rm -f core conftest.err conftest.$ac_objext \
31848 + conftest$ac_exeext conftest.$ac_ext
31849 +LIBS=$ac_check_lib_save_LIBS
31850 +fi
31851 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
31852 +$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
31853 +if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
31854 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
31855 +$as_echo_n "checking for dgettext in -lintl... " >&6; }
31856 +if ${ac_cv_lib_intl_dgettext+:} false; then :
31857 $as_echo_n "(cached) " >&6
31858 else
31859 - eval "$as_ac_Header=\$ac_header_preproc"
31860 + ac_check_lib_save_LIBS=$LIBS
31861 +LIBS="-lintl $LIBS"
31862 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31863 +/* end confdefs.h. */
31864 +
31865 +/* Override any GCC internal prototype to avoid an error.
31866 + Use char because int might match the return type of a GCC
31867 + builtin and then its argument prototype would still apply. */
31868 +#ifdef __cplusplus
31869 +extern "C"
31870 +#endif
31871 +char dgettext ();
31872 +int
31873 +main ()
31874 +{
31875 +return dgettext ();
31876 + ;
31877 + return 0;
31878 +}
31879 +_ACEOF
31880 +if ac_fn_c_try_link "$LINENO"; then :
31881 + ac_cv_lib_intl_dgettext=yes
31882 +else
31883 + ac_cv_lib_intl_dgettext=no
31884 +fi
31885 +rm -f core conftest.err conftest.$ac_objext \
31886 + conftest$ac_exeext conftest.$ac_ext
31887 +LIBS=$ac_check_lib_save_LIBS
31888 +fi
31889 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
31890 +$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
31891 +if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
31892 + gt_cv_func_dgettext_libintl=yes
31893 fi
31894 -ac_res=`eval 'as_val=${'$as_ac_Header'}
31895 - $as_echo "$as_val"'`
31896 - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31897 -$as_echo "$ac_res" >&6; }
31898
31899 fi
31900 -if test `eval 'as_val=${'$as_ac_Header'}
31901 - $as_echo "$as_val"'` = yes; then
31902 - cat >>confdefs.h <<_ACEOF
31903 -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31904 -_ACEOF
31905
31906 fi
31907
31908 -done
31909
31910 - if test $ac_cv_header_locale_h = yes; then
31911 - { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
31912 -$as_echo_n "checking for LC_MESSAGES... " >&6; }
31913 -if test "${am_cv_val_LC_MESSAGES+set}" = set; then
31914 + if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
31915 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
31916 +$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
31917 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31918 +$as_echo "" >&6; }
31919 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
31920 +$as_echo_n "checking for ngettext in -lintl... " >&6; }
31921 +if ${ac_cv_lib_intl_ngettext+:} false; then :
31922 $as_echo_n "(cached) " >&6
31923 else
31924 - cat >conftest.$ac_ext <<_ACEOF
31925 -/* confdefs.h. */
31926 -_ACEOF
31927 -cat confdefs.h >>conftest.$ac_ext
31928 -cat >>conftest.$ac_ext <<_ACEOF
31929 + ac_check_lib_save_LIBS=$LIBS
31930 +LIBS="-lintl -liconv $LIBS"
31931 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31932 /* end confdefs.h. */
31933 -#include <locale.h>
31934 +
31935 +/* Override any GCC internal prototype to avoid an error.
31936 + Use char because int might match the return type of a GCC
31937 + builtin and then its argument prototype would still apply. */
31938 +#ifdef __cplusplus
31939 +extern "C"
31940 +#endif
31941 +char ngettext ();
31942 int
31943 main ()
31944 {
31945 -return LC_MESSAGES
31946 +return ngettext ();
31947 ;
31948 return 0;
31949 }
31950 _ACEOF
31951 -rm -f conftest.$ac_objext conftest$ac_exeext
31952 -if { (ac_try="$ac_link"
31953 -case "(($ac_try" in
31954 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31955 - *) ac_try_echo=$ac_try;;
31956 -esac
31957 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31958 -$as_echo "$ac_try_echo") >&5
31959 - (eval "$ac_link") 2>conftest.er1
31960 - ac_status=$?
31961 - grep -v '^ *+' conftest.er1 >conftest.err
31962 - rm -f conftest.er1
31963 - cat conftest.err >&5
31964 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 - (exit $ac_status); } && {
31966 - test -z "$ac_c_werror_flag" ||
31967 - test ! -s conftest.err
31968 - } && test -s conftest$ac_exeext && {
31969 - test "$cross_compiling" = yes ||
31970 - $as_test_x conftest$ac_exeext
31971 - }; then
31972 - am_cv_val_LC_MESSAGES=yes
31973 +if ac_fn_c_try_link "$LINENO"; then :
31974 + ac_cv_lib_intl_ngettext=yes
31975 else
31976 - $as_echo "$as_me: failed program was:" >&5
31977 -sed 's/^/| /' conftest.$ac_ext >&5
31978 + ac_cv_lib_intl_ngettext=no
31979 +fi
31980 +rm -f core conftest.err conftest.$ac_objext \
31981 + conftest$ac_exeext conftest.$ac_ext
31982 +LIBS=$ac_check_lib_save_LIBS
31983 +fi
31984 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
31985 +$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
31986 +if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
31987 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
31988 +$as_echo_n "checking for dcgettext in -lintl... " >&6; }
31989 +if ${ac_cv_lib_intl_dcgettext+:} false; then :
31990 + $as_echo_n "(cached) " >&6
31991 +else
31992 + ac_check_lib_save_LIBS=$LIBS
31993 +LIBS="-lintl -liconv $LIBS"
31994 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31995 +/* end confdefs.h. */
31996
31997 - am_cv_val_LC_MESSAGES=no
31998 +/* Override any GCC internal prototype to avoid an error.
31999 + Use char because int might match the return type of a GCC
32000 + builtin and then its argument prototype would still apply. */
32001 +#ifdef __cplusplus
32002 +extern "C"
32003 +#endif
32004 +char dcgettext ();
32005 +int
32006 +main ()
32007 +{
32008 +return dcgettext ();
32009 + ;
32010 + return 0;
32011 +}
32012 +_ACEOF
32013 +if ac_fn_c_try_link "$LINENO"; then :
32014 + ac_cv_lib_intl_dcgettext=yes
32015 +else
32016 + ac_cv_lib_intl_dcgettext=no
32017 +fi
32018 +rm -f core conftest.err conftest.$ac_objext \
32019 + conftest$ac_exeext conftest.$ac_ext
32020 +LIBS=$ac_check_lib_save_LIBS
32021 +fi
32022 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
32023 +$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
32024 +if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
32025 + gt_cv_func_dgettext_libintl=yes
32026 + libintl_extra_libs=-liconv
32027 +else
32028 + :
32029 fi
32030
32031 -rm -rf conftest.dSYM
32032 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32033 - conftest$ac_exeext conftest.$ac_ext
32034 +else
32035 + :
32036 fi
32037 -{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
32038 -$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
32039 - if test $am_cv_val_LC_MESSAGES = yes; then
32040
32041 -cat >>confdefs.h <<\_ACEOF
32042 -#define HAVE_LC_MESSAGES 1
32043 + fi
32044 +
32045 + #
32046 + # If we found libintl, then check in it for bind_textdomain_codeset();
32047 + # we'll prefer libc if neither have bind_textdomain_codeset(),
32048 + # and both have dgettext and ngettext
32049 + #
32050 + if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
32051 + glib_save_LIBS="$LIBS"
32052 + LIBS="$LIBS -lintl $libintl_extra_libs"
32053 + unset ac_cv_func_bind_textdomain_codeset
32054 + for ac_func in bind_textdomain_codeset
32055 +do :
32056 + ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
32057 +if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
32058 + cat >>confdefs.h <<_ACEOF
32059 +#define HAVE_BIND_TEXTDOMAIN_CODESET 1
32060 _ACEOF
32061
32062 - fi
32063 - fi
32064 - USE_NLS=yes
32065 +fi
32066 +done
32067
32068 + LIBS="$glib_save_LIBS"
32069
32070 - gt_cv_have_gettext=no
32071 + if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
32072 + gt_cv_func_dgettext_libc=no
32073 + else
32074 + if test "$gt_cv_func_dgettext_libc" = "yes" \
32075 + && test "$gt_cv_func_ngettext_libc" = "yes"; then
32076 + gt_cv_func_dgettext_libintl=no
32077 + fi
32078 + fi
32079 + fi
32080 + fi
32081
32082 - CATOBJEXT=NONE
32083 - XGETTEXT=:
32084 - INTLLIBS=
32085 + if test "$gt_cv_func_dgettext_libc" = "yes" \
32086 + || test "$gt_cv_func_dgettext_libintl" = "yes"; then
32087 + gt_cv_have_gettext=yes
32088 + fi
32089 +
32090 + if test "$gt_cv_func_dgettext_libintl" = "yes"; then
32091 + INTLLIBS="-lintl $libintl_extra_libs"
32092 + fi
32093 +
32094 + if test "$gt_cv_have_gettext" = "yes"; then
32095 +
32096 +$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
32097
32098 - if test "${ac_cv_header_libintl_h+set}" = set; then
32099 - { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
32100 -$as_echo_n "checking for libintl.h... " >&6; }
32101 -if test "${ac_cv_header_libintl_h+set}" = set; then
32102 + # Extract the first word of "msgfmt", so it can be a program name with args.
32103 +set dummy msgfmt; ac_word=$2
32104 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32105 +$as_echo_n "checking for $ac_word... " >&6; }
32106 +if ${ac_cv_path_MSGFMT+:} false; then :
32107 $as_echo_n "(cached) " >&6
32108 -fi
32109 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
32110 -$as_echo "$ac_cv_header_libintl_h" >&6; }
32111 else
32112 - # Is the header compilable?
32113 -{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
32114 -$as_echo_n "checking libintl.h usability... " >&6; }
32115 -cat >conftest.$ac_ext <<_ACEOF
32116 -/* confdefs.h. */
32117 -_ACEOF
32118 -cat confdefs.h >>conftest.$ac_ext
32119 -cat >>conftest.$ac_ext <<_ACEOF
32120 -/* end confdefs.h. */
32121 -$ac_includes_default
32122 -#include <libintl.h>
32123 -_ACEOF
32124 -rm -f conftest.$ac_objext
32125 -if { (ac_try="$ac_compile"
32126 -case "(($ac_try" in
32127 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 - *) ac_try_echo=$ac_try;;
32129 + case "$MSGFMT" in
32130 + /*)
32131 + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
32132 + ;;
32133 + *)
32134 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
32135 + for ac_dir in $PATH; do
32136 + test -z "$ac_dir" && ac_dir=.
32137 + if test -f $ac_dir/$ac_word; then
32138 + if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
32139 + ac_cv_path_MSGFMT="$ac_dir/$ac_word"
32140 + break
32141 + fi
32142 + fi
32143 + done
32144 + IFS="$ac_save_ifs"
32145 + test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
32146 + ;;
32147 esac
32148 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32149 -$as_echo "$ac_try_echo") >&5
32150 - (eval "$ac_compile") 2>conftest.er1
32151 - ac_status=$?
32152 - grep -v '^ *+' conftest.er1 >conftest.err
32153 - rm -f conftest.er1
32154 - cat conftest.err >&5
32155 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 - (exit $ac_status); } && {
32157 - test -z "$ac_c_werror_flag" ||
32158 - test ! -s conftest.err
32159 - } && test -s conftest.$ac_objext; then
32160 - ac_header_compiler=yes
32161 +fi
32162 +MSGFMT="$ac_cv_path_MSGFMT"
32163 +if test "$MSGFMT" != "no"; then
32164 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
32165 +$as_echo "$MSGFMT" >&6; }
32166 else
32167 - $as_echo "$as_me: failed program was:" >&5
32168 -sed 's/^/| /' conftest.$ac_ext >&5
32169 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32170 +$as_echo "no" >&6; }
32171 +fi
32172 + if test "$MSGFMT" != "no"; then
32173 + glib_save_LIBS="$LIBS"
32174 + LIBS="$LIBS $INTLLIBS"
32175 + for ac_func in dcgettext
32176 +do :
32177 + ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
32178 +if test "x$ac_cv_func_dcgettext" = xyes; then :
32179 + cat >>confdefs.h <<_ACEOF
32180 +#define HAVE_DCGETTEXT 1
32181 +_ACEOF
32182
32183 - ac_header_compiler=no
32184 fi
32185 +done
32186
32187 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32188 -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32189 -$as_echo "$ac_header_compiler" >&6; }
32190 + MSGFMT_OPTS=
32191 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
32192 +$as_echo_n "checking if msgfmt accepts -c... " >&6; }
32193 + cat >conftest.foo <<_ACEOF
32194 +
32195 +msgid ""
32196 +msgstr ""
32197 +"Content-Type: text/plain; charset=UTF-8\n"
32198 +"Project-Id-Version: test 1.0\n"
32199 +"PO-Revision-Date: 2007-02-15 12:01+0100\n"
32200 +"Last-Translator: test <foo@bar.xx>\n"
32201 +"Language-Team: C <LL@li.org>\n"
32202 +"MIME-Version: 1.0\n"
32203 +"Content-Transfer-Encoding: 8bit\n"
32204
32205 -# Is the header present?
32206 -{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
32207 -$as_echo_n "checking libintl.h presence... " >&6; }
32208 -cat >conftest.$ac_ext <<_ACEOF
32209 -/* confdefs.h. */
32210 -_ACEOF
32211 -cat confdefs.h >>conftest.$ac_ext
32212 -cat >>conftest.$ac_ext <<_ACEOF
32213 -/* end confdefs.h. */
32214 -#include <libintl.h>
32215 _ACEOF
32216 -if { (ac_try="$ac_cpp conftest.$ac_ext"
32217 -case "(($ac_try" in
32218 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219 - *) ac_try_echo=$ac_try;;
32220 -esac
32221 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32222 -$as_echo "$ac_try_echo") >&5
32223 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32224 +if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
32225 + ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
32226 ac_status=$?
32227 - grep -v '^ *+' conftest.er1 >conftest.err
32228 - rm -f conftest.er1
32229 - cat conftest.err >&5
32230 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 - (exit $ac_status); } >/dev/null && {
32232 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32233 - test ! -s conftest.err
32234 - }; then
32235 - ac_header_preproc=yes
32236 -else
32237 - $as_echo "$as_me: failed program was:" >&5
32238 -sed 's/^/| /' conftest.$ac_ext >&5
32239 -
32240 - ac_header_preproc=no
32241 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32242 + test $ac_status = 0; }; then
32243 + MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32244 +$as_echo "yes" >&6; }
32245 +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32246 +$as_echo "no" >&6; }
32247 +echo "$as_me: failed input was:" >&5
32248 +sed 's/^/| /' conftest.foo >&5
32249 fi
32250
32251 -rm -f conftest.err conftest.$ac_ext
32252 -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32253 -$as_echo "$ac_header_preproc" >&6; }
32254 + # Extract the first word of "gmsgfmt", so it can be a program name with args.
32255 +set dummy gmsgfmt; ac_word=$2
32256 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32257 +$as_echo_n "checking for $ac_word... " >&6; }
32258 +if ${ac_cv_path_GMSGFMT+:} false; then :
32259 + $as_echo_n "(cached) " >&6
32260 +else
32261 + case $GMSGFMT in
32262 + [\\/]* | ?:[\\/]*)
32263 + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
32264 + ;;
32265 + *)
32266 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32267 +for as_dir in $PATH
32268 +do
32269 + IFS=$as_save_IFS
32270 + test -z "$as_dir" && as_dir=.
32271 + for ac_exec_ext in '' $ac_executable_extensions; do
32272 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32273 + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
32274 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32275 + break 2
32276 + fi
32277 +done
32278 + done
32279 +IFS=$as_save_IFS
32280
32281 -# So? What about this header?
32282 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32283 - yes:no: )
32284 - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32285 -$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32286 - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
32287 -$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
32288 - ac_header_preproc=yes
32289 - ;;
32290 - no:yes:* )
32291 - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
32292 -$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
32293 - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
32294 -$as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
32295 - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
32296 -$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
32297 - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
32298 -$as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
32299 - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
32300 -$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
32301 - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
32302 -$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
32303 - ( cat <<\_ASBOX
32304 -## ----------------------------------------------------------------------- ##
32305 -## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libglade ##
32306 -## ----------------------------------------------------------------------- ##
32307 -_ASBOX
32308 - ) | sed "s/^/$as_me: WARNING: /" >&2
32309 - ;;
32310 + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
32311 + ;;
32312 esac
32313 -{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
32314 -$as_echo_n "checking for libintl.h... " >&6; }
32315 -if test "${ac_cv_header_libintl_h+set}" = set; then
32316 - $as_echo_n "(cached) " >&6
32317 +fi
32318 +GMSGFMT=$ac_cv_path_GMSGFMT
32319 +if test -n "$GMSGFMT"; then
32320 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
32321 +$as_echo "$GMSGFMT" >&6; }
32322 else
32323 - ac_cv_header_libintl_h=$ac_header_preproc
32324 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32325 +$as_echo "no" >&6; }
32326 fi
32327 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
32328 -$as_echo "$ac_cv_header_libintl_h" >&6; }
32329
32330 -fi
32331 -if test $ac_cv_header_libintl_h = yes; then
32332 - gt_cv_func_dgettext_libintl="no"
32333 - libintl_extra_libs=""
32334
32335 - #
32336 - # First check in libc
32337 - #
32338 - { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
32339 -$as_echo_n "checking for ngettext in libc... " >&6; }
32340 -if test "${gt_cv_func_ngettext_libc+set}" = set; then
32341 + # Extract the first word of "xgettext", so it can be a program name with args.
32342 +set dummy xgettext; ac_word=$2
32343 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32344 +$as_echo_n "checking for $ac_word... " >&6; }
32345 +if ${ac_cv_path_XGETTEXT+:} false; then :
32346 $as_echo_n "(cached) " >&6
32347 else
32348 - cat >conftest.$ac_ext <<_ACEOF
32349 -/* confdefs.h. */
32350 -_ACEOF
32351 -cat confdefs.h >>conftest.$ac_ext
32352 -cat >>conftest.$ac_ext <<_ACEOF
32353 -/* end confdefs.h. */
32354 + case "$XGETTEXT" in
32355 + /*)
32356 + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
32357 + ;;
32358 + *)
32359 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
32360 + for ac_dir in $PATH; do
32361 + test -z "$ac_dir" && ac_dir=.
32362 + if test -f $ac_dir/$ac_word; then
32363 + if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
32364 + ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
32365 + break
32366 + fi
32367 + fi
32368 + done
32369 + IFS="$ac_save_ifs"
32370 + test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
32371 + ;;
32372 +esac
32373 +fi
32374 +XGETTEXT="$ac_cv_path_XGETTEXT"
32375 +if test "$XGETTEXT" != ":"; then
32376 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
32377 +$as_echo "$XGETTEXT" >&6; }
32378 +else
32379 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32380 +$as_echo "no" >&6; }
32381 +fi
32382
32383 -#include <libintl.h>
32384 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32385 +/* end confdefs.h. */
32386
32387 int
32388 main ()
32389 {
32390 -return !ngettext ("","", 1)
32391 +extern int _nl_msg_cat_cntr;
32392 + return _nl_msg_cat_cntr
32393 ;
32394 return 0;
32395 }
32396 _ACEOF
32397 -rm -f conftest.$ac_objext conftest$ac_exeext
32398 -if { (ac_try="$ac_link"
32399 -case "(($ac_try" in
32400 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401 - *) ac_try_echo=$ac_try;;
32402 -esac
32403 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32404 -$as_echo "$ac_try_echo") >&5
32405 - (eval "$ac_link") 2>conftest.er1
32406 - ac_status=$?
32407 - grep -v '^ *+' conftest.er1 >conftest.err
32408 - rm -f conftest.er1
32409 - cat conftest.err >&5
32410 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 - (exit $ac_status); } && {
32412 - test -z "$ac_c_werror_flag" ||
32413 - test ! -s conftest.err
32414 - } && test -s conftest$ac_exeext && {
32415 - test "$cross_compiling" = yes ||
32416 - $as_test_x conftest$ac_exeext
32417 - }; then
32418 - gt_cv_func_ngettext_libc=yes
32419 +if ac_fn_c_try_link "$LINENO"; then :
32420 + CATOBJEXT=.gmo
32421 + DATADIRNAME=share
32422 else
32423 - $as_echo "$as_me: failed program was:" >&5
32424 -sed 's/^/| /' conftest.$ac_ext >&5
32425 -
32426 - gt_cv_func_ngettext_libc=no
32427 + case $host in
32428 + *-*-solaris*)
32429 + ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
32430 +if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
32431 + CATOBJEXT=.gmo
32432 + DATADIRNAME=share
32433 +else
32434 + CATOBJEXT=.mo
32435 + DATADIRNAME=lib
32436 fi
32437
32438 -rm -rf conftest.dSYM
32439 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32440 - conftest$ac_exeext conftest.$ac_ext
32441 + ;;
32442 + *-*-openbsd*)
32443 + CATOBJEXT=.mo
32444 + DATADIRNAME=share
32445 + ;;
32446 + *)
32447 + CATOBJEXT=.mo
32448 + DATADIRNAME=lib
32449 + ;;
32450 + esac
32451 +fi
32452 +rm -f core conftest.err conftest.$ac_objext \
32453 + conftest$ac_exeext conftest.$ac_ext
32454 + LIBS="$glib_save_LIBS"
32455 + INSTOBJEXT=.mo
32456 + else
32457 + gt_cv_have_gettext=no
32458 + fi
32459 + fi
32460
32461 fi
32462 -{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
32463 -$as_echo "$gt_cv_func_ngettext_libc" >&6; }
32464
32465 - if test "$gt_cv_func_ngettext_libc" = "yes" ; then
32466 - { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
32467 -$as_echo_n "checking for dgettext in libc... " >&6; }
32468 -if test "${gt_cv_func_dgettext_libc+set}" = set; then
32469 - $as_echo_n "(cached) " >&6
32470 -else
32471 - cat >conftest.$ac_ext <<_ACEOF
32472 -/* confdefs.h. */
32473 -_ACEOF
32474 -cat confdefs.h >>conftest.$ac_ext
32475 -cat >>conftest.$ac_ext <<_ACEOF
32476 -/* end confdefs.h. */
32477
32478 -#include <libintl.h>
32479
32480 -int
32481 -main ()
32482 -{
32483 -return !dgettext ("","")
32484 - ;
32485 - return 0;
32486 -}
32487 -_ACEOF
32488 -rm -f conftest.$ac_objext conftest$ac_exeext
32489 -if { (ac_try="$ac_link"
32490 -case "(($ac_try" in
32491 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492 - *) ac_try_echo=$ac_try;;
32493 -esac
32494 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32495 -$as_echo "$ac_try_echo") >&5
32496 - (eval "$ac_link") 2>conftest.er1
32497 - ac_status=$?
32498 - grep -v '^ *+' conftest.er1 >conftest.err
32499 - rm -f conftest.er1
32500 - cat conftest.err >&5
32501 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 - (exit $ac_status); } && {
32503 - test -z "$ac_c_werror_flag" ||
32504 - test ! -s conftest.err
32505 - } && test -s conftest$ac_exeext && {
32506 - test "$cross_compiling" = yes ||
32507 - $as_test_x conftest$ac_exeext
32508 - }; then
32509 - gt_cv_func_dgettext_libc=yes
32510 -else
32511 - $as_echo "$as_me: failed program was:" >&5
32512 -sed 's/^/| /' conftest.$ac_ext >&5
32513 + if test "$gt_cv_have_gettext" = "yes" ; then
32514
32515 - gt_cv_func_dgettext_libc=no
32516 -fi
32517 +$as_echo "#define ENABLE_NLS 1" >>confdefs.h
32518
32519 -rm -rf conftest.dSYM
32520 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32521 - conftest$ac_exeext conftest.$ac_ext
32522 + fi
32523
32524 -fi
32525 -{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
32526 -$as_echo "$gt_cv_func_dgettext_libc" >&6; }
32527 + if test "$XGETTEXT" != ":"; then
32528 + if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
32529 + : ;
32530 + else
32531 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
32532 +$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
32533 + XGETTEXT=":"
32534 fi
32535 + fi
32536
32537 - if test "$gt_cv_func_ngettext_libc" = "yes" ; then
32538 + # We need to process the po/ directory.
32539 + POSUB=po
32540
32541 -for ac_func in bind_textdomain_codeset
32542 -do
32543 -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32544 -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32545 -$as_echo_n "checking for $ac_func... " >&6; }
32546 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32547 - $as_echo_n "(cached) " >&6
32548 -else
32549 - cat >conftest.$ac_ext <<_ACEOF
32550 -/* confdefs.h. */
32551 -_ACEOF
32552 -cat confdefs.h >>conftest.$ac_ext
32553 -cat >>conftest.$ac_ext <<_ACEOF
32554 -/* end confdefs.h. */
32555 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32556 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
32557 -#define $ac_func innocuous_$ac_func
32558 + ac_config_commands="$ac_config_commands default-1"
32559
32560 -/* System header to define __stub macros and hopefully few prototypes,
32561 - which can conflict with char $ac_func (); below.
32562 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32563 - <limits.h> exists even on freestanding compilers. */
32564
32565 -#ifdef __STDC__
32566 -# include <limits.h>
32567 -#else
32568 -# include <assert.h>
32569 -#endif
32570 + for lang in $ALL_LINGUAS; do
32571 + GMOFILES="$GMOFILES $lang.gmo"
32572 + POFILES="$POFILES $lang.po"
32573 + done
32574
32575 -#undef $ac_func
32576
32577 -/* Override any GCC internal prototype to avoid an error.
32578 - Use char because int might match the return type of a GCC
32579 - builtin and then its argument prototype would still apply. */
32580 -#ifdef __cplusplus
32581 -extern "C"
32582 -#endif
32583 -char $ac_func ();
32584 -/* The GNU C library defines this for functions which it implements
32585 - to always fail with ENOSYS. Some functions are actually named
32586 - something starting with __ and the normal name is an alias. */
32587 -#if defined __stub_$ac_func || defined __stub___$ac_func
32588 -choke me
32589 -#endif
32590
32591 -int
32592 -main ()
32593 -{
32594 -return $ac_func ();
32595 - ;
32596 - return 0;
32597 -}
32598 -_ACEOF
32599 -rm -f conftest.$ac_objext conftest$ac_exeext
32600 -if { (ac_try="$ac_link"
32601 -case "(($ac_try" in
32602 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32603 - *) ac_try_echo=$ac_try;;
32604 -esac
32605 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32606 -$as_echo "$ac_try_echo") >&5
32607 - (eval "$ac_link") 2>conftest.er1
32608 - ac_status=$?
32609 - grep -v '^ *+' conftest.er1 >conftest.err
32610 - rm -f conftest.er1
32611 - cat conftest.err >&5
32612 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 - (exit $ac_status); } && {
32614 - test -z "$ac_c_werror_flag" ||
32615 - test ! -s conftest.err
32616 - } && test -s conftest$ac_exeext && {
32617 - test "$cross_compiling" = yes ||
32618 - $as_test_x conftest$ac_exeext
32619 - }; then
32620 - eval "$as_ac_var=yes"
32621 -else
32622 - $as_echo "$as_me: failed program was:" >&5
32623 -sed 's/^/| /' conftest.$ac_ext >&5
32624
32625 - eval "$as_ac_var=no"
32626 -fi
32627
32628 -rm -rf conftest.dSYM
32629 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32630 - conftest$ac_exeext conftest.$ac_ext
32631 -fi
32632 -ac_res=`eval 'as_val=${'$as_ac_var'}
32633 - $as_echo "$as_val"'`
32634 - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32635 -$as_echo "$ac_res" >&6; }
32636 -if test `eval 'as_val=${'$as_ac_var'}
32637 - $as_echo "$as_val"'` = yes; then
32638 - cat >>confdefs.h <<_ACEOF
32639 -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32640 -_ACEOF
32641
32642 -fi
32643 -done
32644
32645 - fi
32646
32647 - #
32648 - # If we don't have everything we want, check in libintl
32649 - #
32650 - if test "$gt_cv_func_dgettext_libc" != "yes" \
32651 - || test "$gt_cv_func_ngettext_libc" != "yes" \
32652 - || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
32653
32654 - { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
32655 -$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
32656 -if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
32657 - $as_echo_n "(cached) " >&6
32658 -else
32659 - ac_check_lib_save_LIBS=$LIBS
32660 -LIBS="-lintl $LIBS"
32661 -cat >conftest.$ac_ext <<_ACEOF
32662 -/* confdefs.h. */
32663 -_ACEOF
32664 -cat confdefs.h >>conftest.$ac_ext
32665 -cat >>conftest.$ac_ext <<_ACEOF
32666 -/* end confdefs.h. */
32667
32668 -/* Override any GCC internal prototype to avoid an error.
32669 - Use char because int might match the return type of a GCC
32670 - builtin and then its argument prototype would still apply. */
32671 -#ifdef __cplusplus
32672 -extern "C"
32673 -#endif
32674 -char bindtextdomain ();
32675 -int
32676 -main ()
32677 -{
32678 -return bindtextdomain ();
32679 - ;
32680 - return 0;
32681 -}
32682 -_ACEOF
32683 -rm -f conftest.$ac_objext conftest$ac_exeext
32684 -if { (ac_try="$ac_link"
32685 -case "(($ac_try" in
32686 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 - *) ac_try_echo=$ac_try;;
32688 -esac
32689 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32690 -$as_echo "$ac_try_echo") >&5
32691 - (eval "$ac_link") 2>conftest.er1
32692 - ac_status=$?
32693 - grep -v '^ *+' conftest.er1 >conftest.err
32694 - rm -f conftest.er1
32695 - cat conftest.err >&5
32696 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 - (exit $ac_status); } && {
32698 - test -z "$ac_c_werror_flag" ||
32699 - test ! -s conftest.err
32700 - } && test -s conftest$ac_exeext && {
32701 - test "$cross_compiling" = yes ||
32702 - $as_test_x conftest$ac_exeext
32703 - }; then
32704 - ac_cv_lib_intl_bindtextdomain=yes
32705 -else
32706 - $as_echo "$as_me: failed program was:" >&5
32707 -sed 's/^/| /' conftest.$ac_ext >&5
32708
32709 - ac_cv_lib_intl_bindtextdomain=no
32710 -fi
32711
32712 -rm -rf conftest.dSYM
32713 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32714 - conftest$ac_exeext conftest.$ac_ext
32715 -LIBS=$ac_check_lib_save_LIBS
32716 -fi
32717 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
32718 -$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
32719 -if test $ac_cv_lib_intl_bindtextdomain = yes; then
32720 - { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
32721 -$as_echo_n "checking for ngettext in -lintl... " >&6; }
32722 -if test "${ac_cv_lib_intl_ngettext+set}" = set; then
32723 - $as_echo_n "(cached) " >&6
32724 -else
32725 - ac_check_lib_save_LIBS=$LIBS
32726 -LIBS="-lintl $LIBS"
32727 -cat >conftest.$ac_ext <<_ACEOF
32728 -/* confdefs.h. */
32729 -_ACEOF
32730 -cat confdefs.h >>conftest.$ac_ext
32731 -cat >>conftest.$ac_ext <<_ACEOF
32732 -/* end confdefs.h. */
32733
32734 -/* Override any GCC internal prototype to avoid an error.
32735 - Use char because int might match the return type of a GCC
32736 - builtin and then its argument prototype would still apply. */
32737 -#ifdef __cplusplus
32738 -extern "C"
32739 -#endif
32740 -char ngettext ();
32741 -int
32742 -main ()
32743 -{
32744 -return ngettext ();
32745 - ;
32746 - return 0;
32747 -}
32748 -_ACEOF
32749 -rm -f conftest.$ac_objext conftest$ac_exeext
32750 -if { (ac_try="$ac_link"
32751 -case "(($ac_try" in
32752 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32753 - *) ac_try_echo=$ac_try;;
32754 -esac
32755 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32756 -$as_echo "$ac_try_echo") >&5
32757 - (eval "$ac_link") 2>conftest.er1
32758 - ac_status=$?
32759 - grep -v '^ *+' conftest.er1 >conftest.err
32760 - rm -f conftest.er1
32761 - cat conftest.err >&5
32762 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 - (exit $ac_status); } && {
32764 - test -z "$ac_c_werror_flag" ||
32765 - test ! -s conftest.err
32766 - } && test -s conftest$ac_exeext && {
32767 - test "$cross_compiling" = yes ||
32768 - $as_test_x conftest$ac_exeext
32769 - }; then
32770 - ac_cv_lib_intl_ngettext=yes
32771 -else
32772 - $as_echo "$as_me: failed program was:" >&5
32773 -sed 's/^/| /' conftest.$ac_ext >&5
32774 + if test "$gt_cv_have_gettext" = "yes"; then
32775 + if test "x$ALL_LINGUAS" = "x"; then
32776 + LINGUAS=
32777 + else
32778 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
32779 +$as_echo_n "checking for catalogs to be installed... " >&6; }
32780 + NEW_LINGUAS=
32781 + for presentlang in $ALL_LINGUAS; do
32782 + useit=no
32783 + if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
32784 + desiredlanguages="$LINGUAS"
32785 + else
32786 + desiredlanguages="$ALL_LINGUAS"
32787 + fi
32788 + for desiredlang in $desiredlanguages; do
32789 + # Use the presentlang catalog if desiredlang is
32790 + # a. equal to presentlang, or
32791 + # b. a variant of presentlang (because in this case,
32792 + # presentlang can be used as a fallback for messages
32793 + # which are not translated in the desiredlang catalog).
32794 + case "$desiredlang" in
32795 + "$presentlang"*) useit=yes;;
32796 + esac
32797 + done
32798 + if test $useit = yes; then
32799 + NEW_LINGUAS="$NEW_LINGUAS $presentlang"
32800 + fi
32801 + done
32802 + LINGUAS=$NEW_LINGUAS
32803 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
32804 +$as_echo "$LINGUAS" >&6; }
32805 + fi
32806 +
32807 + if test -n "$LINGUAS"; then
32808 + for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
32809 + fi
32810 + fi
32811 +
32812 + MKINSTALLDIRS=
32813 + if test -n "$ac_aux_dir"; then
32814 + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
32815 + fi
32816 + if test -z "$MKINSTALLDIRS"; then
32817 + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
32818 + fi
32819 +
32820
32821 - ac_cv_lib_intl_ngettext=no
32822 -fi
32823 + test -d po || mkdir po
32824 + if test "x$srcdir" != "x."; then
32825 + if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
32826 + posrcprefix="$srcdir/"
32827 + else
32828 + posrcprefix="../$srcdir/"
32829 + fi
32830 + else
32831 + posrcprefix="../"
32832 + fi
32833 + rm -f po/POTFILES
32834 + sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
32835 + < $srcdir/po/POTFILES.in > po/POTFILES
32836
32837 -rm -rf conftest.dSYM
32838 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32839 - conftest$ac_exeext conftest.$ac_ext
32840 -LIBS=$ac_check_lib_save_LIBS
32841 -fi
32842 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
32843 -$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
32844 -if test $ac_cv_lib_intl_ngettext = yes; then
32845 - { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
32846 -$as_echo_n "checking for dgettext in -lintl... " >&6; }
32847 -if test "${ac_cv_lib_intl_dgettext+set}" = set; then
32848 - $as_echo_n "(cached) " >&6
32849 -else
32850 - ac_check_lib_save_LIBS=$LIBS
32851 -LIBS="-lintl $LIBS"
32852 -cat >conftest.$ac_ext <<_ACEOF
32853 -/* confdefs.h. */
32854 -_ACEOF
32855 -cat confdefs.h >>conftest.$ac_ext
32856 -cat >>conftest.$ac_ext <<_ACEOF
32857 -/* end confdefs.h. */
32858
32859 -/* Override any GCC internal prototype to avoid an error.
32860 - Use char because int might match the return type of a GCC
32861 - builtin and then its argument prototype would still apply. */
32862 -#ifdef __cplusplus
32863 -extern "C"
32864 -#endif
32865 -char dgettext ();
32866 -int
32867 -main ()
32868 -{
32869 -return dgettext ();
32870 - ;
32871 - return 0;
32872 -}
32873 -_ACEOF
32874 -rm -f conftest.$ac_objext conftest$ac_exeext
32875 -if { (ac_try="$ac_link"
32876 -case "(($ac_try" in
32877 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32878 - *) ac_try_echo=$ac_try;;
32879 -esac
32880 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32881 -$as_echo "$ac_try_echo") >&5
32882 - (eval "$ac_link") 2>conftest.er1
32883 - ac_status=$?
32884 - grep -v '^ *+' conftest.er1 >conftest.err
32885 - rm -f conftest.er1
32886 - cat conftest.err >&5
32887 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 - (exit $ac_status); } && {
32889 - test -z "$ac_c_werror_flag" ||
32890 - test ! -s conftest.err
32891 - } && test -s conftest$ac_exeext && {
32892 - test "$cross_compiling" = yes ||
32893 - $as_test_x conftest$ac_exeext
32894 - }; then
32895 - ac_cv_lib_intl_dgettext=yes
32896 -else
32897 - $as_echo "$as_me: failed program was:" >&5
32898 -sed 's/^/| /' conftest.$ac_ext >&5
32899
32900 - ac_cv_lib_intl_dgettext=no
32901 -fi
32902
32903 -rm -rf conftest.dSYM
32904 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32905 - conftest$ac_exeext conftest.$ac_ext
32906 -LIBS=$ac_check_lib_save_LIBS
32907 -fi
32908 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
32909 -$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
32910 -if test $ac_cv_lib_intl_dgettext = yes; then
32911 - gt_cv_func_dgettext_libintl=yes
32912 -fi
32913
32914 -fi
32915 +# check for a copy of python >= 2.0 with the xml.parsers.expat module.
32916
32917 -fi
32918
32919
32920 - if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
32921 - { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
32922 -$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
32923 - { $as_echo "$as_me:$LINENO: result: " >&5
32924 -$as_echo "" >&6; }
32925 - { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
32926 -$as_echo_n "checking for ngettext in -lintl... " >&6; }
32927 -if test "${ac_cv_lib_intl_ngettext+set}" = set; then
32928 - $as_echo_n "(cached) " >&6
32929 -else
32930 - ac_check_lib_save_LIBS=$LIBS
32931 -LIBS="-lintl -liconv $LIBS"
32932 -cat >conftest.$ac_ext <<_ACEOF
32933 -/* confdefs.h. */
32934 -_ACEOF
32935 -cat confdefs.h >>conftest.$ac_ext
32936 -cat >>conftest.$ac_ext <<_ACEOF
32937 -/* end confdefs.h. */
32938
32939 -/* Override any GCC internal prototype to avoid an error.
32940 - Use char because int might match the return type of a GCC
32941 - builtin and then its argument prototype would still apply. */
32942 -#ifdef __cplusplus
32943 -extern "C"
32944 -#endif
32945 -char ngettext ();
32946 -int
32947 -main ()
32948 -{
32949 -return ngettext ();
32950 - ;
32951 - return 0;
32952 -}
32953 -_ACEOF
32954 -rm -f conftest.$ac_objext conftest$ac_exeext
32955 -if { (ac_try="$ac_link"
32956 -case "(($ac_try" in
32957 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32958 - *) ac_try_echo=$ac_try;;
32959 -esac
32960 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32961 -$as_echo "$ac_try_echo") >&5
32962 - (eval "$ac_link") 2>conftest.er1
32963 - ac_status=$?
32964 - grep -v '^ *+' conftest.er1 >conftest.err
32965 - rm -f conftest.er1
32966 - cat conftest.err >&5
32967 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 - (exit $ac_status); } && {
32969 - test -z "$ac_c_werror_flag" ||
32970 - test ! -s conftest.err
32971 - } && test -s conftest$ac_exeext && {
32972 - test "$cross_compiling" = yes ||
32973 - $as_test_x conftest$ac_exeext
32974 - }; then
32975 - ac_cv_lib_intl_ngettext=yes
32976 -else
32977 - $as_echo "$as_me: failed program was:" >&5
32978 -sed 's/^/| /' conftest.$ac_ext >&5
32979
32980 - ac_cv_lib_intl_ngettext=no
32981 -fi
32982
32983 -rm -rf conftest.dSYM
32984 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32985 - conftest$ac_exeext conftest.$ac_ext
32986 -LIBS=$ac_check_lib_save_LIBS
32987 + if test -n "$PYTHON"; then
32988 + # If the user set $PYTHON, use it and don't search something else.
32989 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.0" >&5
32990 +$as_echo_n "checking whether $PYTHON version >= 2.0... " >&6; }
32991 + prog="import sys
32992 +# split strings by '.' and convert to numeric. Append some zeros
32993 +# because we need at least 4 digits for the hex conversion.
32994 +# map returns an iterator in Python 3.0 and a list in 2.x
32995 +minver = list(map(int, '2.0'.split('.'))) + [0, 0, 0]
32996 +minverhex = 0
32997 +# xrange is not present in Python 3.0 and range returns an iterator
32998 +for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
32999 +sys.exit(sys.hexversion < minverhex)"
33000 + if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
33001 + ($PYTHON -c "$prog") >&5 2>&5
33002 + ac_status=$?
33003 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004 + (exit $ac_status); }; then :
33005 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33006 +$as_echo "yes" >&6; }
33007 +else
33008 + as_fn_error $? "too old" "$LINENO" 5
33009 fi
33010 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
33011 -$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
33012 -if test $ac_cv_lib_intl_ngettext = yes; then
33013 - { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
33014 -$as_echo_n "checking for dcgettext in -lintl... " >&6; }
33015 -if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
33016 + am_display_PYTHON=$PYTHON
33017 + else
33018 + # Otherwise, try each interpreter until we find one that satisfies
33019 + # VERSION.
33020 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.0" >&5
33021 +$as_echo_n "checking for a Python interpreter with version >= 2.0... " >&6; }
33022 +if ${am_cv_pathless_PYTHON+:} false; then :
33023 $as_echo_n "(cached) " >&6
33024 else
33025 - ac_check_lib_save_LIBS=$LIBS
33026 -LIBS="-lintl -liconv $LIBS"
33027 -cat >conftest.$ac_ext <<_ACEOF
33028 -/* confdefs.h. */
33029 -_ACEOF
33030 -cat confdefs.h >>conftest.$ac_ext
33031 -cat >>conftest.$ac_ext <<_ACEOF
33032 -/* end confdefs.h. */
33033
33034 -/* Override any GCC internal prototype to avoid an error.
33035 - Use char because int might match the return type of a GCC
33036 - builtin and then its argument prototype would still apply. */
33037 -#ifdef __cplusplus
33038 -extern "C"
33039 -#endif
33040 -char dcgettext ();
33041 -int
33042 -main ()
33043 -{
33044 -return dcgettext ();
33045 - ;
33046 - return 0;
33047 -}
33048 -_ACEOF
33049 -rm -f conftest.$ac_objext conftest$ac_exeext
33050 -if { (ac_try="$ac_link"
33051 -case "(($ac_try" in
33052 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33053 - *) ac_try_echo=$ac_try;;
33054 -esac
33055 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33056 -$as_echo "$ac_try_echo") >&5
33057 - (eval "$ac_link") 2>conftest.er1
33058 - ac_status=$?
33059 - grep -v '^ *+' conftest.er1 >conftest.err
33060 - rm -f conftest.er1
33061 - cat conftest.err >&5
33062 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 - (exit $ac_status); } && {
33064 - test -z "$ac_c_werror_flag" ||
33065 - test ! -s conftest.err
33066 - } && test -s conftest$ac_exeext && {
33067 - test "$cross_compiling" = yes ||
33068 - $as_test_x conftest$ac_exeext
33069 - }; then
33070 - ac_cv_lib_intl_dcgettext=yes
33071 + for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
33072 + test "$am_cv_pathless_PYTHON" = none && break
33073 + prog="import sys
33074 +# split strings by '.' and convert to numeric. Append some zeros
33075 +# because we need at least 4 digits for the hex conversion.
33076 +# map returns an iterator in Python 3.0 and a list in 2.x
33077 +minver = list(map(int, '2.0'.split('.'))) + [0, 0, 0]
33078 +minverhex = 0
33079 +# xrange is not present in Python 3.0 and range returns an iterator
33080 +for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
33081 +sys.exit(sys.hexversion < minverhex)"
33082 + if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
33083 + ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
33084 + ac_status=$?
33085 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33086 + (exit $ac_status); }; then :
33087 + break
33088 +fi
33089 + done
33090 +fi
33091 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
33092 +$as_echo "$am_cv_pathless_PYTHON" >&6; }
33093 + # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
33094 + if test "$am_cv_pathless_PYTHON" = none; then
33095 + PYTHON=:
33096 + else
33097 + # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
33098 +set dummy $am_cv_pathless_PYTHON; ac_word=$2
33099 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33100 +$as_echo_n "checking for $ac_word... " >&6; }
33101 +if ${ac_cv_path_PYTHON+:} false; then :
33102 + $as_echo_n "(cached) " >&6
33103 else
33104 - $as_echo "$as_me: failed program was:" >&5
33105 -sed 's/^/| /' conftest.$ac_ext >&5
33106 + case $PYTHON in
33107 + [\\/]* | ?:[\\/]*)
33108 + ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
33109 + ;;
33110 + *)
33111 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33112 +for as_dir in $PATH
33113 +do
33114 + IFS=$as_save_IFS
33115 + test -z "$as_dir" && as_dir=.
33116 + for ac_exec_ext in '' $ac_executable_extensions; do
33117 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33118 + ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
33119 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33120 + break 2
33121 + fi
33122 +done
33123 + done
33124 +IFS=$as_save_IFS
33125
33126 - ac_cv_lib_intl_dcgettext=no
33127 + ;;
33128 +esac
33129 +fi
33130 +PYTHON=$ac_cv_path_PYTHON
33131 +if test -n "$PYTHON"; then
33132 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
33133 +$as_echo "$PYTHON" >&6; }
33134 +else
33135 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33136 +$as_echo "no" >&6; }
33137 fi
33138
33139 -rm -rf conftest.dSYM
33140 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33141 - conftest$ac_exeext conftest.$ac_ext
33142 -LIBS=$ac_check_lib_save_LIBS
33143 +
33144 + fi
33145 + am_display_PYTHON=$am_cv_pathless_PYTHON
33146 + fi
33147 +
33148 +
33149 + if test "$PYTHON" = :; then
33150 + have_python=false
33151 + else
33152 +
33153 +
33154 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
33155 +$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
33156 +if ${am_cv_python_version+:} false; then :
33157 + $as_echo_n "(cached) " >&6
33158 +else
33159 + am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
33160 fi
33161 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
33162 -$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
33163 -if test $ac_cv_lib_intl_dcgettext = yes; then
33164 - gt_cv_func_dgettext_libintl=yes
33165 - libintl_extra_libs=-liconv
33166 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
33167 +$as_echo "$am_cv_python_version" >&6; }
33168 + PYTHON_VERSION=$am_cv_python_version
33169 +
33170 +
33171 +
33172 + PYTHON_PREFIX='${prefix}'
33173 +
33174 + PYTHON_EXEC_PREFIX='${exec_prefix}'
33175 +
33176 +
33177 +
33178 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
33179 +$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
33180 +if ${am_cv_python_platform+:} false; then :
33181 + $as_echo_n "(cached) " >&6
33182 else
33183 - :
33184 + am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
33185 fi
33186 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
33187 +$as_echo "$am_cv_python_platform" >&6; }
33188 + PYTHON_PLATFORM=$am_cv_python_platform
33189 +
33190
33191 +
33192 +
33193 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
33194 +$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
33195 +if ${am_cv_python_pythondir+:} false; then :
33196 + $as_echo_n "(cached) " >&6
33197 else
33198 - :
33199 + if test "x$prefix" = xNONE
33200 + then
33201 + am_py_prefix=$ac_default_prefix
33202 + else
33203 + am_py_prefix=$prefix
33204 + fi
33205 + am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
33206 + case $am_cv_python_pythondir in
33207 + $am_py_prefix*)
33208 + am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
33209 + am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
33210 + ;;
33211 + *)
33212 + case $am_py_prefix in
33213 + /usr|/System*) ;;
33214 + *)
33215 + am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
33216 + ;;
33217 + esac
33218 + ;;
33219 + esac
33220 +
33221 fi
33222 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
33223 +$as_echo "$am_cv_python_pythondir" >&6; }
33224 + pythondir=$am_cv_python_pythondir
33225
33226 - fi
33227
33228 - #
33229 - # If we found libintl, then check in it for bind_textdomain_codeset();
33230 - # we'll prefer libc if neither have bind_textdomain_codeset(),
33231 - # and both have dgettext and ngettext
33232 - #
33233 - if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
33234 - glib_save_LIBS="$LIBS"
33235 - LIBS="$LIBS -lintl $libintl_extra_libs"
33236 - unset ac_cv_func_bind_textdomain_codeset
33237
33238 -for ac_func in bind_textdomain_codeset
33239 -do
33240 -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33241 -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33242 -$as_echo_n "checking for $ac_func... " >&6; }
33243 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33244 + pkgpythondir=\${pythondir}/$PACKAGE
33245 +
33246 +
33247 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
33248 +$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
33249 +if ${am_cv_python_pyexecdir+:} false; then :
33250 $as_echo_n "(cached) " >&6
33251 else
33252 - cat >conftest.$ac_ext <<_ACEOF
33253 -/* confdefs.h. */
33254 -_ACEOF
33255 -cat confdefs.h >>conftest.$ac_ext
33256 -cat >>conftest.$ac_ext <<_ACEOF
33257 -/* end confdefs.h. */
33258 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33259 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
33260 -#define $ac_func innocuous_$ac_func
33261 + if test "x$exec_prefix" = xNONE
33262 + then
33263 + am_py_exec_prefix=$am_py_prefix
33264 + else
33265 + am_py_exec_prefix=$exec_prefix
33266 + fi
33267 + am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
33268 + case $am_cv_python_pyexecdir in
33269 + $am_py_exec_prefix*)
33270 + am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
33271 + am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
33272 + ;;
33273 + *)
33274 + case $am_py_exec_prefix in
33275 + /usr|/System*) ;;
33276 + *)
33277 + am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
33278 + ;;
33279 + esac
33280 + ;;
33281 + esac
33282
33283 -/* System header to define __stub macros and hopefully few prototypes,
33284 - which can conflict with char $ac_func (); below.
33285 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33286 - <limits.h> exists even on freestanding compilers. */
33287 +fi
33288 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
33289 +$as_echo "$am_cv_python_pyexecdir" >&6; }
33290 + pyexecdir=$am_cv_python_pyexecdir
33291
33292 -#ifdef __STDC__
33293 -# include <limits.h>
33294 -#else
33295 -# include <assert.h>
33296 -#endif
33297
33298 -#undef $ac_func
33299
33300 -/* Override any GCC internal prototype to avoid an error.
33301 - Use char because int might match the return type of a GCC
33302 - builtin and then its argument prototype would still apply. */
33303 -#ifdef __cplusplus
33304 -extern "C"
33305 -#endif
33306 -char $ac_func ();
33307 -/* The GNU C library defines this for functions which it implements
33308 - to always fail with ENOSYS. Some functions are actually named
33309 - something starting with __ and the normal name is an alias. */
33310 -#if defined __stub_$ac_func || defined __stub___$ac_func
33311 -choke me
33312 -#endif
33313 + pkgpyexecdir=\${pyexecdir}/$PACKAGE
33314
33315 -int
33316 -main ()
33317 -{
33318 -return $ac_func ();
33319 - ;
33320 - return 0;
33321 -}
33322 -_ACEOF
33323 -rm -f conftest.$ac_objext conftest$ac_exeext
33324 -if { (ac_try="$ac_link"
33325 -case "(($ac_try" in
33326 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33327 - *) ac_try_echo=$ac_try;;
33328 -esac
33329 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33330 -$as_echo "$ac_try_echo") >&5
33331 - (eval "$ac_link") 2>conftest.er1
33332 +
33333 + have_python=true
33334 + fi
33335 +
33336 +
33337 +if $have_python; then
33338 + jh_python_check='
33339 +import sys
33340 +try:
33341 + import xml.parsers.expat
33342 +except ImportError:
33343 + sys.exit(1)
33344 +'
33345 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Python module xml.parsers.expat" >&5
33346 +$as_echo_n "checking for the Python module xml.parsers.expat... " >&6; }
33347 + if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PYTHON -c \"\$jh_python_check\""; } >&5
33348 + ($PYTHON -c "$jh_python_check") 2>&5
33349 ac_status=$?
33350 - grep -v '^ *+' conftest.er1 >conftest.err
33351 - rm -f conftest.er1
33352 - cat conftest.err >&5
33353 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354 - (exit $ac_status); } && {
33355 - test -z "$ac_c_werror_flag" ||
33356 - test ! -s conftest.err
33357 - } && test -s conftest$ac_exeext && {
33358 - test "$cross_compiling" = yes ||
33359 - $as_test_x conftest$ac_exeext
33360 - }; then
33361 - eval "$as_ac_var=yes"
33362 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33363 + test $ac_status = 0; }; then
33364 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33365 +$as_echo "yes" >&6; }
33366 + else
33367 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33368 +$as_echo "no" >&6; }
33369 + have_python=false
33370 + fi
33371 +fi
33372 + if $have_python; then
33373 + HAVE_PYTHON_TRUE=
33374 + HAVE_PYTHON_FALSE='#'
33375 else
33376 - $as_echo "$as_me: failed program was:" >&5
33377 -sed 's/^/| /' conftest.$ac_ext >&5
33378 + HAVE_PYTHON_TRUE='#'
33379 + HAVE_PYTHON_FALSE=
33380 +fi
33381 +
33382 +
33383 +# check for XML catalog
33384 +
33385 + # check for the presence of the XML catalog
33386
33387 - eval "$as_ac_var=no"
33388 +# Check whether --with-xml-catalog was given.
33389 +if test "${with_xml_catalog+set}" = set; then :
33390 + withval=$with_xml_catalog;
33391 +else
33392 + with_xml_catalog=/etc/xml/catalog
33393 fi
33394
33395 -rm -rf conftest.dSYM
33396 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33397 - conftest$ac_exeext conftest.$ac_ext
33398 + jh_found_xmlcatalog=true
33399 + XML_CATALOG_FILE="$with_xml_catalog"
33400 +
33401 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
33402 +$as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
33403 + if test -f "$XML_CATALOG_FILE"; then
33404 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
33405 +$as_echo "found" >&6; }
33406 + else
33407 + jh_found_xmlcatalog=false
33408 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
33409 +$as_echo "not found" >&6; }
33410 + fi
33411 +
33412 + # check for the xmlcatalog program
33413 + # Extract the first word of "xmlcatalog", so it can be a program name with args.
33414 +set dummy xmlcatalog; ac_word=$2
33415 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33416 +$as_echo_n "checking for $ac_word... " >&6; }
33417 +if ${ac_cv_path_XMLCATALOG+:} false; then :
33418 + $as_echo_n "(cached) " >&6
33419 +else
33420 + case $XMLCATALOG in
33421 + [\\/]* | ?:[\\/]*)
33422 + ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
33423 + ;;
33424 + *)
33425 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33426 +for as_dir in $PATH
33427 +do
33428 + IFS=$as_save_IFS
33429 + test -z "$as_dir" && as_dir=.
33430 + for ac_exec_ext in '' $ac_executable_extensions; do
33431 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33432 + ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
33433 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33434 + break 2
33435 + fi
33436 +done
33437 + done
33438 +IFS=$as_save_IFS
33439 +
33440 + test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
33441 + ;;
33442 +esac
33443 fi
33444 -ac_res=`eval 'as_val=${'$as_ac_var'}
33445 - $as_echo "$as_val"'`
33446 - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33447 -$as_echo "$ac_res" >&6; }
33448 -if test `eval 'as_val=${'$as_ac_var'}
33449 - $as_echo "$as_val"'` = yes; then
33450 - cat >>confdefs.h <<_ACEOF
33451 -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33452 -_ACEOF
33453 +XMLCATALOG=$ac_cv_path_XMLCATALOG
33454 +if test -n "$XMLCATALOG"; then
33455 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
33456 +$as_echo "$XMLCATALOG" >&6; }
33457 +else
33458 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33459 +$as_echo "no" >&6; }
33460 +fi
33461 +
33462 +
33463 + if test "x$XMLCATALOG" = xno; then
33464 + jh_found_xmlcatalog=false
33465 + fi
33466 +
33467 + if $jh_found_xmlcatalog; then
33468 + have_xmlcatalog=true
33469 + else
33470 + have_xmlcatalog=false
33471 + fi
33472
33473 + if $have_xmlcatalog; then
33474 + HAVE_XMLCATALOG_TRUE=
33475 + HAVE_XMLCATALOG_FALSE='#'
33476 +else
33477 + HAVE_XMLCATALOG_TRUE='#'
33478 + HAVE_XMLCATALOG_FALSE=
33479 fi
33480 -done
33481
33482 - LIBS="$glib_save_LIBS"
33483
33484 - if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
33485 - gt_cv_func_dgettext_libc=no
33486 - else
33487 - if test "$gt_cv_func_dgettext_libc" = "yes" \
33488 - && test "$gt_cv_func_ngettext_libc" = "yes"; then
33489 - gt_cv_func_dgettext_libintl=no
33490 - fi
33491 - fi
33492 - fi
33493 - fi
33494 +if test "x$GCC" = xyes; then
33495 + case " $CFLAGS " in
33496 + *[\ \ ]-Wall[\ \ ]*) ;;
33497 + *) CFLAGS="$CFLAGS -Wall" ;;
33498 + esac
33499
33500 - if test "$gt_cv_func_dgettext_libc" = "yes" \
33501 - || test "$gt_cv_func_dgettext_libintl" = "yes"; then
33502 - gt_cv_have_gettext=yes
33503 - fi
33504 + case " $CFLAGS " in
33505 + *[\ \ ]-std=c9x[\ \ ]*) ;;
33506 + *) CFLAGS="$CFLAGS -std=c9x" ;;
33507 + esac
33508 +fi
33509
33510 - if test "$gt_cv_func_dgettext_libintl" = "yes"; then
33511 - INTLLIBS="-lintl $libintl_extra_libs"
33512 - fi
33513 +ac_config_files="$ac_config_files Makefile libglade.spec libglade-zip glade/Makefile doc/Makefile doc/version.xml tests/Makefile libglade-2.0.pc libglade-2.0-uninstalled.pc"
33514
33515 - if test "$gt_cv_have_gettext" = "yes"; then
33516 +ac_config_files="$ac_config_files libglade-convert"
33517 +
33518 +
33519 +cat >confcache <<\_ACEOF
33520 +# This file is a shell script that caches the results of configure
33521 +# tests run on this system so they can be shared between configure
33522 +# scripts and configure runs, see configure's option --config-cache.
33523 +# It is not useful on other systems. If it contains results you don't
33524 +# want to keep, you may remove or edit it.
33525 +#
33526 +# config.status only pays attention to the cache file if you give it
33527 +# the --recheck option to rerun configure.
33528 +#
33529 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
33530 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
33531 +# following values.
33532
33533 -cat >>confdefs.h <<\_ACEOF
33534 -#define HAVE_GETTEXT 1
33535 _ACEOF
33536
33537 - # Extract the first word of "msgfmt", so it can be a program name with args.
33538 -set dummy msgfmt; ac_word=$2
33539 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33540 -$as_echo_n "checking for $ac_word... " >&6; }
33541 -if test "${ac_cv_path_MSGFMT+set}" = set; then
33542 - $as_echo_n "(cached) " >&6
33543 -else
33544 - case "$MSGFMT" in
33545 - /*)
33546 - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
33547 - ;;
33548 - *)
33549 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
33550 - for ac_dir in $PATH; do
33551 - test -z "$ac_dir" && ac_dir=.
33552 - if test -f $ac_dir/$ac_word; then
33553 - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
33554 - ac_cv_path_MSGFMT="$ac_dir/$ac_word"
33555 - break
33556 +# The following way of writing the cache mishandles newlines in values,
33557 +# but we know of no workaround that is simple, portable, and efficient.
33558 +# So, we kill variables containing newlines.
33559 +# Ultrix sh set writes to stderr and can't be redirected directly,
33560 +# and sets the high bit in the cache file unless we assign to the vars.
33561 +(
33562 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33563 + eval ac_val=\$$ac_var
33564 + case $ac_val in #(
33565 + *${as_nl}*)
33566 + case $ac_var in #(
33567 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33568 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33569 + esac
33570 + case $ac_var in #(
33571 + _ | IFS | as_nl) ;; #(
33572 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33573 + *) { eval $ac_var=; unset $ac_var;} ;;
33574 + esac ;;
33575 + esac
33576 + done
33577 +
33578 + (set) 2>&1 |
33579 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
33580 + *${as_nl}ac_space=\ *)
33581 + # `set' does not quote correctly, so add quotes: double-quote
33582 + # substitution turns \\\\ into \\, and sed turns \\ into \.
33583 + sed -n \
33584 + "s/'/'\\\\''/g;
33585 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33586 + ;; #(
33587 + *)
33588 + # `set' quotes correctly as required by POSIX, so do not add quotes.
33589 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33590 + ;;
33591 + esac |
33592 + sort
33593 +) |
33594 + sed '
33595 + /^ac_cv_env_/b end
33596 + t clear
33597 + :clear
33598 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33599 + t end
33600 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33601 + :end' >>confcache
33602 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33603 + if test -w "$cache_file"; then
33604 + if test "x$cache_file" != "x/dev/null"; then
33605 + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33606 +$as_echo "$as_me: updating cache $cache_file" >&6;}
33607 + if test ! -f "$cache_file" || test -h "$cache_file"; then
33608 + cat confcache >"$cache_file"
33609 + else
33610 + case $cache_file in #(
33611 + */* | ?:*)
33612 + mv -f confcache "$cache_file"$$ &&
33613 + mv -f "$cache_file"$$ "$cache_file" ;; #(
33614 + *)
33615 + mv -f confcache "$cache_file" ;;
33616 + esac
33617 fi
33618 fi
33619 - done
33620 - IFS="$ac_save_ifs"
33621 - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
33622 - ;;
33623 -esac
33624 -fi
33625 -MSGFMT="$ac_cv_path_MSGFMT"
33626 -if test "$MSGFMT" != "no"; then
33627 - { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
33628 -$as_echo "$MSGFMT" >&6; }
33629 -else
33630 - { $as_echo "$as_me:$LINENO: result: no" >&5
33631 -$as_echo "no" >&6; }
33632 + else
33633 + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33634 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33635 + fi
33636 fi
33637 - if test "$MSGFMT" != "no"; then
33638 - glib_save_LIBS="$LIBS"
33639 - LIBS="$LIBS $INTLLIBS"
33640 +rm -f confcache
33641
33642 -for ac_func in dcgettext
33643 -do
33644 -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33645 -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33646 -$as_echo_n "checking for $ac_func... " >&6; }
33647 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33648 - $as_echo_n "(cached) " >&6
33649 -else
33650 - cat >conftest.$ac_ext <<_ACEOF
33651 -/* confdefs.h. */
33652 -_ACEOF
33653 -cat confdefs.h >>conftest.$ac_ext
33654 -cat >>conftest.$ac_ext <<_ACEOF
33655 -/* end confdefs.h. */
33656 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33657 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
33658 -#define $ac_func innocuous_$ac_func
33659 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
33660 +# Let make expand exec_prefix.
33661 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33662
33663 -/* System header to define __stub macros and hopefully few prototypes,
33664 - which can conflict with char $ac_func (); below.
33665 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33666 - <limits.h> exists even on freestanding compilers. */
33667 +DEFS=-DHAVE_CONFIG_H
33668
33669 -#ifdef __STDC__
33670 -# include <limits.h>
33671 -#else
33672 -# include <assert.h>
33673 -#endif
33674 +ac_libobjs=
33675 +ac_ltlibobjs=
33676 +U=
33677 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33678 + # 1. Remove the extension, and $U if already installed.
33679 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33680 + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33681 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33682 + # will be set to the directory where LIBOBJS objects are built.
33683 + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33684 + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33685 +done
33686 +LIBOBJS=$ac_libobjs
33687
33688 -#undef $ac_func
33689 +LTLIBOBJS=$ac_ltlibobjs
33690
33691 -/* Override any GCC internal prototype to avoid an error.
33692 - Use char because int might match the return type of a GCC
33693 - builtin and then its argument prototype would still apply. */
33694 -#ifdef __cplusplus
33695 -extern "C"
33696 -#endif
33697 -char $ac_func ();
33698 -/* The GNU C library defines this for functions which it implements
33699 - to always fail with ENOSYS. Some functions are actually named
33700 - something starting with __ and the normal name is an alias. */
33701 -#if defined __stub_$ac_func || defined __stub___$ac_func
33702 -choke me
33703 -#endif
33704
33705 -int
33706 -main ()
33707 -{
33708 -return $ac_func ();
33709 - ;
33710 - return 0;
33711 -}
33712 -_ACEOF
33713 -rm -f conftest.$ac_objext conftest$ac_exeext
33714 -if { (ac_try="$ac_link"
33715 -case "(($ac_try" in
33716 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33717 - *) ac_try_echo=$ac_try;;
33718 -esac
33719 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33720 -$as_echo "$ac_try_echo") >&5
33721 - (eval "$ac_link") 2>conftest.er1
33722 - ac_status=$?
33723 - grep -v '^ *+' conftest.er1 >conftest.err
33724 - rm -f conftest.er1
33725 - cat conftest.err >&5
33726 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 - (exit $ac_status); } && {
33728 - test -z "$ac_c_werror_flag" ||
33729 - test ! -s conftest.err
33730 - } && test -s conftest$ac_exeext && {
33731 - test "$cross_compiling" = yes ||
33732 - $as_test_x conftest$ac_exeext
33733 - }; then
33734 - eval "$as_ac_var=yes"
33735 + if test -n "$EXEEXT"; then
33736 + am__EXEEXT_TRUE=
33737 + am__EXEEXT_FALSE='#'
33738 else
33739 - $as_echo "$as_me: failed program was:" >&5
33740 -sed 's/^/| /' conftest.$ac_ext >&5
33741 -
33742 - eval "$as_ac_var=no"
33743 + am__EXEEXT_TRUE='#'
33744 + am__EXEEXT_FALSE=
33745 fi
33746
33747 -rm -rf conftest.dSYM
33748 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33749 - conftest$ac_exeext conftest.$ac_ext
33750 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33751 + as_fn_error $? "conditional \"AMDEP\" was never defined.
33752 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33753 fi
33754 -ac_res=`eval 'as_val=${'$as_ac_var'}
33755 - $as_echo "$as_val"'`
33756 - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33757 -$as_echo "$ac_res" >&6; }
33758 -if test `eval 'as_val=${'$as_ac_var'}
33759 - $as_echo "$as_val"'` = yes; then
33760 - cat >>confdefs.h <<_ACEOF
33761 -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33762 -_ACEOF
33763 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33764 + as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33765 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33766 +fi
33767 +if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
33768 + as_fn_error $? "conditional \"OS_WIN32\" was never defined.
33769 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33770 +fi
33771 +if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
33772 + as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
33773 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33774 +fi
33775 +if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
33776 + as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
33777 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33778 +fi
33779 +if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
33780 + as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
33781 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33782 +fi
33783 +if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
33784 + as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
33785 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33786 +fi
33787 +if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
33788 + as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
33789 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33790 +fi
33791 +if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
33792 + as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
33793 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33794 +fi
33795 +if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
33796 + as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
33797 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33798 +fi
33799 +if test -z "${HAVE_XMLCATALOG_TRUE}" && test -z "${HAVE_XMLCATALOG_FALSE}"; then
33800 + as_fn_error $? "conditional \"HAVE_XMLCATALOG\" was never defined.
33801 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
33802 +fi
33803 +
33804 +: "${CONFIG_STATUS=./config.status}"
33805 +ac_write_fail=0
33806 +ac_clean_files_save=$ac_clean_files
33807 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33808 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33809 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33810 +as_write_fail=0
33811 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33812 +#! $SHELL
33813 +# Generated by $as_me.
33814 +# Run this file to recreate the current configuration.
33815 +# Compiler output produced by configure, useful for debugging
33816 +# configure, is in config.log if it exists.
33817 +
33818 +debug=false
33819 +ac_cs_recheck=false
33820 +ac_cs_silent=false
33821 +
33822 +SHELL=\${CONFIG_SHELL-$SHELL}
33823 +export SHELL
33824 +_ASEOF
33825 +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33826 +## -------------------- ##
33827 +## M4sh Initialization. ##
33828 +## -------------------- ##
33829
33830 +# Be more Bourne compatible
33831 +DUALCASE=1; export DUALCASE # for MKS sh
33832 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33833 + emulate sh
33834 + NULLCMD=:
33835 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33836 + # is contrary to our usage. Disable this feature.
33837 + alias -g '${1+"$@"}'='"$@"'
33838 + setopt NO_GLOB_SUBST
33839 +else
33840 + case `(set -o) 2>/dev/null` in #(
33841 + *posix*) :
33842 + set -o posix ;; #(
33843 + *) :
33844 + ;;
33845 +esac
33846 fi
33847 -done
33848
33849 - MSGFMT_OPTS=
33850 - { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
33851 -$as_echo_n "checking if msgfmt accepts -c... " >&6; }
33852 - cat >conftest.foo <<_ACEOF
33853
33854 -msgid ""
33855 -msgstr ""
33856 -"Content-Type: text/plain; charset=UTF-8\n"
33857 -"Project-Id-Version: test 1.0\n"
33858 -"PO-Revision-Date: 2007-02-15 12:01+0100\n"
33859 -"Last-Translator: test <foo@bar.xx>\n"
33860 -"Language-Team: C <LL@li.org>\n"
33861 -"MIME-Version: 1.0\n"
33862 -"Content-Transfer-Encoding: 8bit\n"
33863 +as_nl='
33864 +'
33865 +export as_nl
33866 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
33867 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33868 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33869 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33870 +# Prefer a ksh shell builtin over an external printf program on Solaris,
33871 +# but without wasting forks for bash or zsh.
33872 +if test -z "$BASH_VERSION$ZSH_VERSION" \
33873 + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33874 + as_echo='print -r --'
33875 + as_echo_n='print -rn --'
33876 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33877 + as_echo='printf %s\n'
33878 + as_echo_n='printf %s'
33879 +else
33880 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33881 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33882 + as_echo_n='/usr/ucb/echo -n'
33883 + else
33884 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33885 + as_echo_n_body='eval
33886 + arg=$1;
33887 + case $arg in #(
33888 + *"$as_nl"*)
33889 + expr "X$arg" : "X\\(.*\\)$as_nl";
33890 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33891 + esac;
33892 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33893 + '
33894 + export as_echo_n_body
33895 + as_echo_n='sh -c $as_echo_n_body as_echo'
33896 + fi
33897 + export as_echo_body
33898 + as_echo='sh -c $as_echo_body as_echo'
33899 +fi
33900
33901 -_ACEOF
33902 -if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
33903 - ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
33904 - ac_status=$?
33905 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 - (exit $ac_status); }; then
33907 - MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
33908 -$as_echo "yes" >&6; }
33909 -else { $as_echo "$as_me:$LINENO: result: no" >&5
33910 -$as_echo "no" >&6; }
33911 -echo "$as_me: failed input was:" >&5
33912 -sed 's/^/| /' conftest.foo >&5
33913 +# The user is always right.
33914 +if test "${PATH_SEPARATOR+set}" != set; then
33915 + PATH_SEPARATOR=:
33916 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33917 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33918 + PATH_SEPARATOR=';'
33919 + }
33920 fi
33921
33922 - # Extract the first word of "gmsgfmt", so it can be a program name with args.
33923 -set dummy gmsgfmt; ac_word=$2
33924 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33925 -$as_echo_n "checking for $ac_word... " >&6; }
33926 -if test "${ac_cv_path_GMSGFMT+set}" = set; then
33927 - $as_echo_n "(cached) " >&6
33928 -else
33929 - case $GMSGFMT in
33930 - [\\/]* | ?:[\\/]*)
33931 - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
33932 - ;;
33933 - *)
33934 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33935 +
33936 +# IFS
33937 +# We need space, tab and new line, in precisely that order. Quoting is
33938 +# there to prevent editors from complaining about space-tab.
33939 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33940 +# splitting by setting IFS to empty value.)
33941 +IFS=" "" $as_nl"
33942 +
33943 +# Find who we are. Look in the path if we contain no directory separator.
33944 +as_myself=
33945 +case $0 in #((
33946 + *[\\/]* ) as_myself=$0 ;;
33947 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33948 for as_dir in $PATH
33949 do
33950 IFS=$as_save_IFS
33951 test -z "$as_dir" && as_dir=.
33952 - for ac_exec_ext in '' $ac_executable_extensions; do
33953 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33954 - ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
33955 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33956 - break 2
33957 - fi
33958 -done
33959 -done
33960 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33961 + done
33962 IFS=$as_save_IFS
33963
33964 - test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
33965 - ;;
33966 + ;;
33967 esac
33968 +# We did not find ourselves, most probably we were run as `sh COMMAND'
33969 +# in which case we are not to be found in the path.
33970 +if test "x$as_myself" = x; then
33971 + as_myself=$0
33972 fi
33973 -GMSGFMT=$ac_cv_path_GMSGFMT
33974 -if test -n "$GMSGFMT"; then
33975 - { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
33976 -$as_echo "$GMSGFMT" >&6; }
33977 -else
33978 - { $as_echo "$as_me:$LINENO: result: no" >&5
33979 -$as_echo "no" >&6; }
33980 +if test ! -f "$as_myself"; then
33981 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33982 + exit 1
33983 fi
33984
33985 +# Unset variables that we do not need and which cause bugs (e.g. in
33986 +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33987 +# suppresses any "Segmentation fault" message there. '((' could
33988 +# trigger a bug in pdksh 5.2.14.
33989 +for as_var in BASH_ENV ENV MAIL MAILPATH
33990 +do eval test x\${$as_var+set} = xset \
33991 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33992 +done
33993 +PS1='$ '
33994 +PS2='> '
33995 +PS4='+ '
33996
33997 - # Extract the first word of "xgettext", so it can be a program name with args.
33998 -set dummy xgettext; ac_word=$2
33999 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34000 -$as_echo_n "checking for $ac_word... " >&6; }
34001 -if test "${ac_cv_path_XGETTEXT+set}" = set; then
34002 - $as_echo_n "(cached) " >&6
34003 +# NLS nuisances.
34004 +LC_ALL=C
34005 +export LC_ALL
34006 +LANGUAGE=C
34007 +export LANGUAGE
34008 +
34009 +# CDPATH.
34010 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34011 +
34012 +
34013 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
34014 +# ----------------------------------------
34015 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34016 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34017 +# script with STATUS, using 1 if that was 0.
34018 +as_fn_error ()
34019 +{
34020 + as_status=$1; test $as_status -eq 0 && as_status=1
34021 + if test "$4"; then
34022 + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34023 + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34024 + fi
34025 + $as_echo "$as_me: error: $2" >&2
34026 + as_fn_exit $as_status
34027 +} # as_fn_error
34028 +
34029 +
34030 +# as_fn_set_status STATUS
34031 +# -----------------------
34032 +# Set $? to STATUS, without forking.
34033 +as_fn_set_status ()
34034 +{
34035 + return $1
34036 +} # as_fn_set_status
34037 +
34038 +# as_fn_exit STATUS
34039 +# -----------------
34040 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34041 +as_fn_exit ()
34042 +{
34043 + set +e
34044 + as_fn_set_status $1
34045 + exit $1
34046 +} # as_fn_exit
34047 +
34048 +# as_fn_unset VAR
34049 +# ---------------
34050 +# Portably unset VAR.
34051 +as_fn_unset ()
34052 +{
34053 + { eval $1=; unset $1;}
34054 +}
34055 +as_unset=as_fn_unset
34056 +# as_fn_append VAR VALUE
34057 +# ----------------------
34058 +# Append the text in VALUE to the end of the definition contained in VAR. Take
34059 +# advantage of any shell optimizations that allow amortized linear growth over
34060 +# repeated appends, instead of the typical quadratic growth present in naive
34061 +# implementations.
34062 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34063 + eval 'as_fn_append ()
34064 + {
34065 + eval $1+=\$2
34066 + }'
34067 else
34068 - case "$XGETTEXT" in
34069 - /*)
34070 - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
34071 - ;;
34072 - *)
34073 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
34074 - for ac_dir in $PATH; do
34075 - test -z "$ac_dir" && ac_dir=.
34076 - if test -f $ac_dir/$ac_word; then
34077 - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
34078 - ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
34079 - break
34080 - fi
34081 - fi
34082 - done
34083 - IFS="$ac_save_ifs"
34084 - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
34085 - ;;
34086 -esac
34087 + as_fn_append ()
34088 + {
34089 + eval $1=\$$1\$2
34090 + }
34091 +fi # as_fn_append
34092 +
34093 +# as_fn_arith ARG...
34094 +# ------------------
34095 +# Perform arithmetic evaluation on the ARGs, and store the result in the
34096 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
34097 +# must be portable across $(()) and expr.
34098 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34099 + eval 'as_fn_arith ()
34100 + {
34101 + as_val=$(( $* ))
34102 + }'
34103 +else
34104 + as_fn_arith ()
34105 + {
34106 + as_val=`expr "$@" || test $? -eq 1`
34107 + }
34108 +fi # as_fn_arith
34109 +
34110 +
34111 +if expr a : '\(a\)' >/dev/null 2>&1 &&
34112 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
34113 + as_expr=expr
34114 +else
34115 + as_expr=false
34116 fi
34117 -XGETTEXT="$ac_cv_path_XGETTEXT"
34118 -if test "$XGETTEXT" != ":"; then
34119 - { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34120 -$as_echo "$XGETTEXT" >&6; }
34121 +
34122 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34123 + as_basename=basename
34124 else
34125 - { $as_echo "$as_me:$LINENO: result: no" >&5
34126 -$as_echo "no" >&6; }
34127 + as_basename=false
34128 fi
34129
34130 - cat >conftest.$ac_ext <<_ACEOF
34131 -/* confdefs.h. */
34132 -_ACEOF
34133 -cat confdefs.h >>conftest.$ac_ext
34134 -cat >>conftest.$ac_ext <<_ACEOF
34135 -/* end confdefs.h. */
34136 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34137 + as_dirname=dirname
34138 +else
34139 + as_dirname=false
34140 +fi
34141
34142 -int
34143 -main ()
34144 -{
34145 -extern int _nl_msg_cat_cntr;
34146 - return _nl_msg_cat_cntr
34147 - ;
34148 - return 0;
34149 -}
34150 -_ACEOF
34151 -rm -f conftest.$ac_objext conftest$ac_exeext
34152 -if { (ac_try="$ac_link"
34153 -case "(($ac_try" in
34154 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34155 - *) ac_try_echo=$ac_try;;
34156 +as_me=`$as_basename -- "$0" ||
34157 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34158 + X"$0" : 'X\(//\)$' \| \
34159 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34160 +$as_echo X/"$0" |
34161 + sed '/^.*\/\([^/][^/]*\)\/*$/{
34162 + s//\1/
34163 + q
34164 + }
34165 + /^X\/\(\/\/\)$/{
34166 + s//\1/
34167 + q
34168 + }
34169 + /^X\/\(\/\).*/{
34170 + s//\1/
34171 + q
34172 + }
34173 + s/.*/./; q'`
34174 +
34175 +# Avoid depending upon Character Ranges.
34176 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34177 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34178 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34179 +as_cr_digits='0123456789'
34180 +as_cr_alnum=$as_cr_Letters$as_cr_digits
34181 +
34182 +ECHO_C= ECHO_N= ECHO_T=
34183 +case `echo -n x` in #(((((
34184 +-n*)
34185 + case `echo 'xy\c'` in
34186 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34187 + xy) ECHO_C='\c';;
34188 + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34189 + ECHO_T=' ';;
34190 + esac;;
34191 +*)
34192 + ECHO_N='-n';;
34193 esac
34194 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34195 -$as_echo "$ac_try_echo") >&5
34196 - (eval "$ac_link") 2>conftest.er1
34197 - ac_status=$?
34198 - grep -v '^ *+' conftest.er1 >conftest.err
34199 - rm -f conftest.er1
34200 - cat conftest.err >&5
34201 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202 - (exit $ac_status); } && {
34203 - test -z "$ac_c_werror_flag" ||
34204 - test ! -s conftest.err
34205 - } && test -s conftest$ac_exeext && {
34206 - test "$cross_compiling" = yes ||
34207 - $as_test_x conftest$ac_exeext
34208 - }; then
34209 - CATOBJEXT=.gmo
34210 - DATADIRNAME=share
34211 -else
34212 - $as_echo "$as_me: failed program was:" >&5
34213 -sed 's/^/| /' conftest.$ac_ext >&5
34214
34215 - case $host in
34216 - *-*-solaris*)
34217 - { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
34218 -$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
34219 -if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
34220 - $as_echo_n "(cached) " >&6
34221 +rm -f conf$$ conf$$.exe conf$$.file
34222 +if test -d conf$$.dir; then
34223 + rm -f conf$$.dir/conf$$.file
34224 else
34225 - cat >conftest.$ac_ext <<_ACEOF
34226 -/* confdefs.h. */
34227 -_ACEOF
34228 -cat confdefs.h >>conftest.$ac_ext
34229 -cat >>conftest.$ac_ext <<_ACEOF
34230 -/* end confdefs.h. */
34231 -/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
34232 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
34233 -#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
34234 + rm -f conf$$.dir
34235 + mkdir conf$$.dir 2>/dev/null
34236 +fi
34237 +if (echo >conf$$.file) 2>/dev/null; then
34238 + if ln -s conf$$.file conf$$ 2>/dev/null; then
34239 + as_ln_s='ln -s'
34240 + # ... but there are two gotchas:
34241 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34242 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34243 + # In both cases, we have to default to `cp -p'.
34244 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34245 + as_ln_s='cp -p'
34246 + elif ln conf$$.file conf$$ 2>/dev/null; then
34247 + as_ln_s=ln
34248 + else
34249 + as_ln_s='cp -p'
34250 + fi
34251 +else
34252 + as_ln_s='cp -p'
34253 +fi
34254 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34255 +rmdir conf$$.dir 2>/dev/null
34256
34257 -/* System header to define __stub macros and hopefully few prototypes,
34258 - which can conflict with char bind_textdomain_codeset (); below.
34259 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34260 - <limits.h> exists even on freestanding compilers. */
34261
34262 -#ifdef __STDC__
34263 -# include <limits.h>
34264 -#else
34265 -# include <assert.h>
34266 -#endif
34267 +# as_fn_mkdir_p
34268 +# -------------
34269 +# Create "$as_dir" as a directory, including parents if necessary.
34270 +as_fn_mkdir_p ()
34271 +{
34272
34273 -#undef bind_textdomain_codeset
34274 + case $as_dir in #(
34275 + -*) as_dir=./$as_dir;;
34276 + esac
34277 + test -d "$as_dir" || eval $as_mkdir_p || {
34278 + as_dirs=
34279 + while :; do
34280 + case $as_dir in #(
34281 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34282 + *) as_qdir=$as_dir;;
34283 + esac
34284 + as_dirs="'$as_qdir' $as_dirs"
34285 + as_dir=`$as_dirname -- "$as_dir" ||
34286 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34287 + X"$as_dir" : 'X\(//\)[^/]' \| \
34288 + X"$as_dir" : 'X\(//\)$' \| \
34289 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34290 +$as_echo X"$as_dir" |
34291 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34292 + s//\1/
34293 + q
34294 + }
34295 + /^X\(\/\/\)[^/].*/{
34296 + s//\1/
34297 + q
34298 + }
34299 + /^X\(\/\/\)$/{
34300 + s//\1/
34301 + q
34302 + }
34303 + /^X\(\/\).*/{
34304 + s//\1/
34305 + q
34306 + }
34307 + s/.*/./; q'`
34308 + test -d "$as_dir" && break
34309 + done
34310 + test -z "$as_dirs" || eval "mkdir $as_dirs"
34311 + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34312
34313 -/* Override any GCC internal prototype to avoid an error.
34314 - Use char because int might match the return type of a GCC
34315 - builtin and then its argument prototype would still apply. */
34316 -#ifdef __cplusplus
34317 -extern "C"
34318 -#endif
34319 -char bind_textdomain_codeset ();
34320 -/* The GNU C library defines this for functions which it implements
34321 - to always fail with ENOSYS. Some functions are actually named
34322 - something starting with __ and the normal name is an alias. */
34323 -#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
34324 -choke me
34325 -#endif
34326
34327 -int
34328 -main ()
34329 -{
34330 -return bind_textdomain_codeset ();
34331 - ;
34332 - return 0;
34333 -}
34334 -_ACEOF
34335 -rm -f conftest.$ac_objext conftest$ac_exeext
34336 -if { (ac_try="$ac_link"
34337 -case "(($ac_try" in
34338 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34339 - *) ac_try_echo=$ac_try;;
34340 -esac
34341 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34342 -$as_echo "$ac_try_echo") >&5
34343 - (eval "$ac_link") 2>conftest.er1
34344 - ac_status=$?
34345 - grep -v '^ *+' conftest.er1 >conftest.err
34346 - rm -f conftest.er1
34347 - cat conftest.err >&5
34348 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349 - (exit $ac_status); } && {
34350 - test -z "$ac_c_werror_flag" ||
34351 - test ! -s conftest.err
34352 - } && test -s conftest$ac_exeext && {
34353 - test "$cross_compiling" = yes ||
34354 - $as_test_x conftest$ac_exeext
34355 - }; then
34356 - ac_cv_func_bind_textdomain_codeset=yes
34357 +} # as_fn_mkdir_p
34358 +if mkdir -p . 2>/dev/null; then
34359 + as_mkdir_p='mkdir -p "$as_dir"'
34360 else
34361 - $as_echo "$as_me: failed program was:" >&5
34362 -sed 's/^/| /' conftest.$ac_ext >&5
34363 -
34364 - ac_cv_func_bind_textdomain_codeset=no
34365 + test -d ./-p && rmdir ./-p
34366 + as_mkdir_p=false
34367 fi
34368
34369 -rm -rf conftest.dSYM
34370 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34371 - conftest$ac_exeext conftest.$ac_ext
34372 -fi
34373 -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
34374 -$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
34375 -if test $ac_cv_func_bind_textdomain_codeset = yes; then
34376 - CATOBJEXT=.gmo
34377 - DATADIRNAME=share
34378 +if test -x / >/dev/null 2>&1; then
34379 + as_test_x='test -x'
34380 else
34381 - CATOBJEXT=.mo
34382 - DATADIRNAME=lib
34383 + if ls -dL / >/dev/null 2>&1; then
34384 + as_ls_L_option=L
34385 + else
34386 + as_ls_L_option=
34387 + fi
34388 + as_test_x='
34389 + eval sh -c '\''
34390 + if test -d "$1"; then
34391 + test -d "$1/.";
34392 + else
34393 + case $1 in #(
34394 + -*)set "./$1";;
34395 + esac;
34396 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
34397 + ???[sx]*):;;*)false;;esac;fi
34398 + '\'' sh
34399 + '
34400 fi
34401 +as_executable_p=$as_test_x
34402
34403 - ;;
34404 - *)
34405 - CATOBJEXT=.mo
34406 - DATADIRNAME=lib
34407 - ;;
34408 - esac
34409 -fi
34410 +# Sed expression to map a string onto a valid CPP name.
34411 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34412
34413 -rm -rf conftest.dSYM
34414 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34415 - conftest$ac_exeext conftest.$ac_ext
34416 - LIBS="$glib_save_LIBS"
34417 - INSTOBJEXT=.mo
34418 - else
34419 - gt_cv_have_gettext=no
34420 - fi
34421 - fi
34422 +# Sed expression to map a string onto a valid variable name.
34423 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34424
34425 -fi
34426
34427 +exec 6>&1
34428 +## ----------------------------------- ##
34429 +## Main body of $CONFIG_STATUS script. ##
34430 +## ----------------------------------- ##
34431 +_ASEOF
34432 +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34433
34434 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34435 +# Save the log message, to keep $0 and so on meaningful, and to
34436 +# report actual input values of CONFIG_FILES etc. instead of their
34437 +# values after options handling.
34438 +ac_log="
34439 +This file was extended by libglade $as_me 2.6.4, which was
34440 +generated by GNU Autoconf 2.68. Invocation command line was
34441
34442 - if test "$gt_cv_have_gettext" = "yes" ; then
34443 + CONFIG_FILES = $CONFIG_FILES
34444 + CONFIG_HEADERS = $CONFIG_HEADERS
34445 + CONFIG_LINKS = $CONFIG_LINKS
34446 + CONFIG_COMMANDS = $CONFIG_COMMANDS
34447 + $ $0 $@
34448 +
34449 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
34450 +"
34451
34452 -cat >>confdefs.h <<\_ACEOF
34453 -#define ENABLE_NLS 1
34454 _ACEOF
34455
34456 - fi
34457 +case $ac_config_files in *"
34458 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
34459 +esac
34460
34461 - if test "$XGETTEXT" != ":"; then
34462 - if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
34463 - : ;
34464 - else
34465 - { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
34466 -$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
34467 - XGETTEXT=":"
34468 - fi
34469 - fi
34470 +case $ac_config_headers in *"
34471 +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34472 +esac
34473
34474 - # We need to process the po/ directory.
34475 - POSUB=po
34476
34477 - ac_config_commands="$ac_config_commands default-1"
34478 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34479 +# Files that config.status was made for.
34480 +config_files="$ac_config_files"
34481 +config_headers="$ac_config_headers"
34482 +config_commands="$ac_config_commands"
34483
34484 +_ACEOF
34485
34486 - for lang in $ALL_LINGUAS; do
34487 - GMOFILES="$GMOFILES $lang.gmo"
34488 - POFILES="$POFILES $lang.po"
34489 - done
34490 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34491 +ac_cs_usage="\
34492 +\`$as_me' instantiates files and other configuration actions
34493 +from templates according to the current configuration. Unless the files
34494 +and actions are specified as TAGs, all are instantiated by default.
34495 +
34496 +Usage: $0 [OPTION]... [TAG]...
34497
34498 + -h, --help print this help, then exit
34499 + -V, --version print version number and configuration settings, then exit
34500 + --config print configuration, then exit
34501 + -q, --quiet, --silent
34502 + do not print progress messages
34503 + -d, --debug don't remove temporary files
34504 + --recheck update $as_me by reconfiguring in the same conditions
34505 + --file=FILE[:TEMPLATE]
34506 + instantiate the configuration file FILE
34507 + --header=FILE[:TEMPLATE]
34508 + instantiate the configuration header FILE
34509 +
34510 +Configuration files:
34511 +$config_files
34512 +
34513 +Configuration headers:
34514 +$config_headers
34515
34516 +Configuration commands:
34517 +$config_commands
34518
34519 +Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libglade>."
34520 +
34521 +_ACEOF
34522 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34523 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34524 +ac_cs_version="\\
34525 +libglade config.status 2.6.4
34526 +configured by $0, generated by GNU Autoconf 2.68,
34527 + with options \\"\$ac_cs_config\\"
34528
34529 +Copyright (C) 2010 Free Software Foundation, Inc.
34530 +This config.status script is free software; the Free Software Foundation
34531 +gives unlimited permission to copy, distribute and modify it."
34532
34533 +ac_pwd='$ac_pwd'
34534 +srcdir='$srcdir'
34535 +INSTALL='$INSTALL'
34536 +MKDIR_P='$MKDIR_P'
34537 +AWK='$AWK'
34538 +test -n "\$AWK" || AWK=awk
34539 +_ACEOF
34540
34541 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34542 +# The default lists apply if the user does not specify any file.
34543 +ac_need_defaults=:
34544 +while test $# != 0
34545 +do
34546 + case $1 in
34547 + --*=?*)
34548 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
34549 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34550 + ac_shift=:
34551 + ;;
34552 + --*=)
34553 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
34554 + ac_optarg=
34555 + ac_shift=:
34556 + ;;
34557 + *)
34558 + ac_option=$1
34559 + ac_optarg=$2
34560 + ac_shift=shift
34561 + ;;
34562 + esac
34563
34564 + case $ac_option in
34565 + # Handling of the options.
34566 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34567 + ac_cs_recheck=: ;;
34568 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34569 + $as_echo "$ac_cs_version"; exit ;;
34570 + --config | --confi | --conf | --con | --co | --c )
34571 + $as_echo "$ac_cs_config"; exit ;;
34572 + --debug | --debu | --deb | --de | --d | -d )
34573 + debug=: ;;
34574 + --file | --fil | --fi | --f )
34575 + $ac_shift
34576 + case $ac_optarg in
34577 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34578 + '') as_fn_error $? "missing file argument" ;;
34579 + esac
34580 + as_fn_append CONFIG_FILES " '$ac_optarg'"
34581 + ac_need_defaults=false;;
34582 + --header | --heade | --head | --hea )
34583 + $ac_shift
34584 + case $ac_optarg in
34585 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34586 + esac
34587 + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34588 + ac_need_defaults=false;;
34589 + --he | --h)
34590 + # Conflict between --help and --header
34591 + as_fn_error $? "ambiguous option: \`$1'
34592 +Try \`$0 --help' for more information.";;
34593 + --help | --hel | -h )
34594 + $as_echo "$ac_cs_usage"; exit ;;
34595 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34596 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
34597 + ac_cs_silent=: ;;
34598
34599 + # This is an error.
34600 + -*) as_fn_error $? "unrecognized option: \`$1'
34601 +Try \`$0 --help' for more information." ;;
34602
34603 + *) as_fn_append ac_config_targets " $1"
34604 + ac_need_defaults=false ;;
34605
34606 + esac
34607 + shift
34608 +done
34609
34610 +ac_configure_extra_args=
34611
34612 +if $ac_cs_silent; then
34613 + exec 6>/dev/null
34614 + ac_configure_extra_args="$ac_configure_extra_args --silent"
34615 +fi
34616
34617 - if test "$gt_cv_have_gettext" = "yes"; then
34618 - if test "x$ALL_LINGUAS" = "x"; then
34619 - LINGUAS=
34620 - else
34621 - { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
34622 -$as_echo_n "checking for catalogs to be installed... " >&6; }
34623 - NEW_LINGUAS=
34624 - for presentlang in $ALL_LINGUAS; do
34625 - useit=no
34626 - if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
34627 - desiredlanguages="$LINGUAS"
34628 - else
34629 - desiredlanguages="$ALL_LINGUAS"
34630 - fi
34631 - for desiredlang in $desiredlanguages; do
34632 - # Use the presentlang catalog if desiredlang is
34633 - # a. equal to presentlang, or
34634 - # b. a variant of presentlang (because in this case,
34635 - # presentlang can be used as a fallback for messages
34636 - # which are not translated in the desiredlang catalog).
34637 - case "$desiredlang" in
34638 - "$presentlang"*) useit=yes;;
34639 - esac
34640 - done
34641 - if test $useit = yes; then
34642 - NEW_LINGUAS="$NEW_LINGUAS $presentlang"
34643 - fi
34644 - done
34645 - LINGUAS=$NEW_LINGUAS
34646 - { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
34647 -$as_echo "$LINGUAS" >&6; }
34648 - fi
34649 +_ACEOF
34650 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34651 +if \$ac_cs_recheck; then
34652 + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34653 + shift
34654 + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34655 + CONFIG_SHELL='$SHELL'
34656 + export CONFIG_SHELL
34657 + exec "\$@"
34658 +fi
34659
34660 - if test -n "$LINGUAS"; then
34661 - for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
34662 - fi
34663 - fi
34664 +_ACEOF
34665 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34666 +exec 5>>config.log
34667 +{
34668 + echo
34669 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34670 +## Running $as_me. ##
34671 +_ASBOX
34672 + $as_echo "$ac_log"
34673 +} >&5
34674
34675 - MKINSTALLDIRS=
34676 - if test -n "$ac_aux_dir"; then
34677 - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
34678 - fi
34679 - if test -z "$MKINSTALLDIRS"; then
34680 - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
34681 - fi
34682 +_ACEOF
34683 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34684 +#
34685 +# INIT-COMMANDS
34686 +#
34687 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34688
34689
34690 - test -d po || mkdir po
34691 - if test "x$srcdir" != "x."; then
34692 - if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
34693 - posrcprefix="$srcdir/"
34694 - else
34695 - posrcprefix="../$srcdir/"
34696 - fi
34697 - else
34698 - posrcprefix="../"
34699 - fi
34700 - rm -f po/POTFILES
34701 - sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
34702 - < $srcdir/po/POTFILES.in > po/POTFILES
34703 +# The HP-UX ksh and POSIX shell print the target directory to stdout
34704 +# if CDPATH is set.
34705 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34706
34707 +sed_quote_subst='$sed_quote_subst'
34708 +double_quote_subst='$double_quote_subst'
34709 +delay_variable_subst='$delay_variable_subst'
34710 +AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34711 +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34712 +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34713 +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34714 +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34715 +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34716 +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34717 +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34718 +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34719 +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34720 +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34721 +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
34722 +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34723 +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34724 +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34725 +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34726 +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34727 +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34728 +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34729 +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34730 +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34731 +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34732 +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34733 +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34734 +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34735 +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34736 +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34737 +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34738 +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34739 +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34740 +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34741 +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34742 +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34743 +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34744 +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34745 +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34746 +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34747 +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34748 +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34749 +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34750 +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34751 +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34752 +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34753 +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34754 +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34755 +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34756 +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34757 +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34758 +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34759 +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34760 +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34761 +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34762 +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34763 +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34764 +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34765 +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34766 +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34767 +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
34768 +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34769 +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34770 +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34771 +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34772 +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34773 +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34774 +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34775 +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34776 +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34777 +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34778 +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34779 +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34780 +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34781 +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34782 +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34783 +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34784 +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34785 +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34786 +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34787 +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34788 +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34789 +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34790 +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34791 +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34792 +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34793 +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34794 +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34795 +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34796 +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34797 +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34798 +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34799 +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34800 +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34801 +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34802 +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34803 +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34804 +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34805 +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34806 +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34807 +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34808 +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34809 +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34810 +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34811 +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34812 +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34813 +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34814 +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34815 +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34816 +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34817 +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34818 +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34819 +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34820 +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34821 +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34822 +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34823 +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34824 +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34825 +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34826 +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34827 +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34828 +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34829 +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34830 +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34831 +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34832 +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34833 +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34834 +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34835 +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34836 +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34837 +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34838 +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34839 +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34840 +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34841 +
34842 +LTCC='$LTCC'
34843 +LTCFLAGS='$LTCFLAGS'
34844 +compiler='$compiler_DEFAULT'
34845 +
34846 +# A function that is used when there is no print builtin or printf.
34847 +func_fallback_echo ()
34848 +{
34849 + eval 'cat <<_LTECHO_EOF
34850 +\$1
34851 +_LTECHO_EOF'
34852 +}
34853
34854 +# Quote evaled strings.
34855 +for var in AS \
34856 +DLLTOOL \
34857 +OBJDUMP \
34858 +SHELL \
34859 +ECHO \
34860 +PATH_SEPARATOR \
34861 +SED \
34862 +GREP \
34863 +EGREP \
34864 +FGREP \
34865 +LD \
34866 +NM \
34867 +LN_S \
34868 +lt_SP2NL \
34869 +lt_NL2SP \
34870 +reload_flag \
34871 +deplibs_check_method \
34872 +file_magic_cmd \
34873 +file_magic_glob \
34874 +want_nocaseglob \
34875 +sharedlib_from_linklib_cmd \
34876 +AR \
34877 +AR_FLAGS \
34878 +archiver_list_spec \
34879 +STRIP \
34880 +RANLIB \
34881 +CC \
34882 +CFLAGS \
34883 +compiler \
34884 +lt_cv_sys_global_symbol_pipe \
34885 +lt_cv_sys_global_symbol_to_cdecl \
34886 +lt_cv_sys_global_symbol_to_c_name_address \
34887 +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34888 +nm_file_list_spec \
34889 +lt_prog_compiler_no_builtin_flag \
34890 +lt_prog_compiler_pic \
34891 +lt_prog_compiler_wl \
34892 +lt_prog_compiler_static \
34893 +lt_cv_prog_compiler_c_o \
34894 +need_locks \
34895 +MANIFEST_TOOL \
34896 +DSYMUTIL \
34897 +NMEDIT \
34898 +LIPO \
34899 +OTOOL \
34900 +OTOOL64 \
34901 +shrext_cmds \
34902 +export_dynamic_flag_spec \
34903 +whole_archive_flag_spec \
34904 +compiler_needs_object \
34905 +with_gnu_ld \
34906 +allow_undefined_flag \
34907 +no_undefined_flag \
34908 +hardcode_libdir_flag_spec \
34909 +hardcode_libdir_separator \
34910 +exclude_expsyms \
34911 +include_expsyms \
34912 +file_list_spec \
34913 +variables_saved_for_relink \
34914 +libname_spec \
34915 +library_names_spec \
34916 +soname_spec \
34917 +install_override_mode \
34918 +finish_eval \
34919 +old_striplib \
34920 +striplib; do
34921 + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34922 + *[\\\\\\\`\\"\\\$]*)
34923 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34924 + ;;
34925 + *)
34926 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34927 + ;;
34928 + esac
34929 +done
34930
34931 +# Double-quote double-evaled strings.
34932 +for var in reload_cmds \
34933 +old_postinstall_cmds \
34934 +old_postuninstall_cmds \
34935 +old_archive_cmds \
34936 +extract_expsyms_cmds \
34937 +old_archive_from_new_cmds \
34938 +old_archive_from_expsyms_cmds \
34939 +archive_cmds \
34940 +archive_expsym_cmds \
34941 +module_cmds \
34942 +module_expsym_cmds \
34943 +export_symbols_cmds \
34944 +prelink_cmds \
34945 +postlink_cmds \
34946 +postinstall_cmds \
34947 +postuninstall_cmds \
34948 +finish_cmds \
34949 +sys_lib_search_path_spec \
34950 +sys_lib_dlsearch_path_spec; do
34951 + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34952 + *[\\\\\\\`\\"\\\$]*)
34953 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34954 + ;;
34955 + *)
34956 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34957 + ;;
34958 + esac
34959 +done
34960
34961 +ac_aux_dir='$ac_aux_dir'
34962 +xsi_shell='$xsi_shell'
34963 +lt_shell_append='$lt_shell_append'
34964
34965 +# See if we are running on zsh, and set the options which allow our
34966 +# commands through without removal of \ escapes INIT.
34967 +if test -n "\${ZSH_VERSION+set}" ; then
34968 + setopt NO_GLOB_SUBST
34969 +fi
34970
34971
34972 -# check for a copy of python >= 2.0 with the xml.parsers.expat module.
34973 + PACKAGE='$PACKAGE'
34974 + VERSION='$VERSION'
34975 + TIMESTAMP='$TIMESTAMP'
34976 + RM='$RM'
34977 + ofile='$ofile'
34978
34979
34980
34981
34982 - if test -n "$PYTHON"; then
34983 - # If the user set $PYTHON, use it and don't search something else.
34984 - { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.0" >&5
34985 -$as_echo_n "checking whether $PYTHON version >= 2.0... " >&6; }
34986 - prog="import sys, string
34987 -# split strings by '.' and convert to numeric. Append some zeros
34988 -# because we need at least 4 digits for the hex conversion.
34989 -minver = map(int, string.split('2.0', '.')) + [0, 0, 0]
34990 -minverhex = 0
34991 -for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
34992 -sys.exit(sys.hexversion < minverhex)"
34993 - if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
34994 - ($PYTHON -c "$prog") >&5 2>&5
34995 - ac_status=$?
34996 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997 - (exit $ac_status); }; then
34998 - { $as_echo "$as_me:$LINENO: result: yes" >&5
34999 -$as_echo "yes" >&6; }
35000 -else
35001 - { { $as_echo "$as_me:$LINENO: error: too old" >&5
35002 -$as_echo "$as_me: error: too old" >&2;}
35003 - { (exit 1); exit 1; }; }
35004 -fi
35005
35006 - am_display_PYTHON=$PYTHON
35007 - else
35008 - # Otherwise, try each interpreter until we find one that satisfies
35009 - # VERSION.
35010 - { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.0" >&5
35011 -$as_echo_n "checking for a Python interpreter with version >= 2.0... " >&6; }
35012 -if test "${am_cv_pathless_PYTHON+set}" = set; then
35013 - $as_echo_n "(cached) " >&6
35014 -else
35015 +_ACEOF
35016
35017 - for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
35018 - test "$am_cv_pathless_PYTHON" = none && break
35019 - prog="import sys, string
35020 -# split strings by '.' and convert to numeric. Append some zeros
35021 -# because we need at least 4 digits for the hex conversion.
35022 -minver = map(int, string.split('2.0', '.')) + [0, 0, 0]
35023 -minverhex = 0
35024 -for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
35025 -sys.exit(sys.hexversion < minverhex)"
35026 - if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
35027 - ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
35028 - ac_status=$?
35029 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 - (exit $ac_status); }; then
35031 - break
35032 -fi
35033 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35034
35035 - done
35036 -fi
35037 -{ $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
35038 -$as_echo "$am_cv_pathless_PYTHON" >&6; }
35039 - # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
35040 - if test "$am_cv_pathless_PYTHON" = none; then
35041 - PYTHON=:
35042 - else
35043 - # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
35044 -set dummy $am_cv_pathless_PYTHON; ac_word=$2
35045 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35046 -$as_echo_n "checking for $ac_word... " >&6; }
35047 -if test "${ac_cv_path_PYTHON+set}" = set; then
35048 - $as_echo_n "(cached) " >&6
35049 -else
35050 - case $PYTHON in
35051 - [\\/]* | ?:[\\/]*)
35052 - ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
35053 - ;;
35054 - *)
35055 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35056 -for as_dir in $PATH
35057 +# Handling of arguments.
35058 +for ac_config_target in $ac_config_targets
35059 do
35060 - IFS=$as_save_IFS
35061 - test -z "$as_dir" && as_dir=.
35062 - for ac_exec_ext in '' $ac_executable_extensions; do
35063 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35064 - ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
35065 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35066 - break 2
35067 - fi
35068 -done
35069 + case $ac_config_target in
35070 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35071 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35072 + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35073 + "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35074 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35075 + "libglade.spec") CONFIG_FILES="$CONFIG_FILES libglade.spec" ;;
35076 + "libglade-zip") CONFIG_FILES="$CONFIG_FILES libglade-zip" ;;
35077 + "glade/Makefile") CONFIG_FILES="$CONFIG_FILES glade/Makefile" ;;
35078 + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
35079 + "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
35080 + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
35081 + "libglade-2.0.pc") CONFIG_FILES="$CONFIG_FILES libglade-2.0.pc" ;;
35082 + "libglade-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libglade-2.0-uninstalled.pc" ;;
35083 + "libglade-convert") CONFIG_FILES="$CONFIG_FILES libglade-convert" ;;
35084 +
35085 + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35086 + esac
35087 done
35088 -IFS=$as_save_IFS
35089
35090 - ;;
35091 -esac
35092 -fi
35093 -PYTHON=$ac_cv_path_PYTHON
35094 -if test -n "$PYTHON"; then
35095 - { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
35096 -$as_echo "$PYTHON" >&6; }
35097 -else
35098 - { $as_echo "$as_me:$LINENO: result: no" >&5
35099 -$as_echo "no" >&6; }
35100 -fi
35101
35102 +# If the user did not use the arguments to specify the items to instantiate,
35103 +# then the envvar interface is used. Set only those that are not.
35104 +# We use the long form for the default assignment because of an extremely
35105 +# bizarre bug on SunOS 4.1.3.
35106 +if $ac_need_defaults; then
35107 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35108 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35109 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35110 +fi
35111
35112 - fi
35113 - am_display_PYTHON=$am_cv_pathless_PYTHON
35114 - fi
35115 +# Have a temporary directory for convenience. Make it in the build tree
35116 +# simply because there is no reason against having it here, and in addition,
35117 +# creating and moving files from /tmp can sometimes cause problems.
35118 +# Hook for its removal unless debugging.
35119 +# Note that there is a small window in which the directory will not be cleaned:
35120 +# after its creation but before its name has been assigned to `$tmp'.
35121 +$debug ||
35122 +{
35123 + tmp= ac_tmp=
35124 + trap 'exit_status=$?
35125 + : "${ac_tmp:=$tmp}"
35126 + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35127 +' 0
35128 + trap 'as_fn_exit 1' 1 2 13 15
35129 +}
35130 +# Create a (secure) tmp directory for tmp files.
35131
35132 +{
35133 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35134 + test -d "$tmp"
35135 +} ||
35136 +{
35137 + tmp=./conf$$-$RANDOM
35138 + (umask 077 && mkdir "$tmp")
35139 +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35140 +ac_tmp=$tmp
35141
35142 - if test "$PYTHON" = :; then
35143 - have_python=false
35144 - else
35145 +# Set up the scripts for CONFIG_FILES section.
35146 +# No need to generate them if there are no CONFIG_FILES.
35147 +# This happens for instance with `./config.status config.h'.
35148 +if test -n "$CONFIG_FILES"; then
35149
35150
35151 - { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
35152 -$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
35153 -if test "${am_cv_python_version+set}" = set; then
35154 - $as_echo_n "(cached) " >&6
35155 +ac_cr=`echo X | tr X '\015'`
35156 +# On cygwin, bash can eat \r inside `` if the user requested igncr.
35157 +# But we know of no other shell where ac_cr would be empty at this
35158 +# point, so we can use a bashism as a fallback.
35159 +if test "x$ac_cr" = x; then
35160 + eval ac_cr=\$\'\\r\'
35161 +fi
35162 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35163 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35164 + ac_cs_awk_cr='\\r'
35165 else
35166 - am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
35167 + ac_cs_awk_cr=$ac_cr
35168 fi
35169 -{ $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
35170 -$as_echo "$am_cv_python_version" >&6; }
35171 - PYTHON_VERSION=$am_cv_python_version
35172 -
35173
35174 -
35175 - PYTHON_PREFIX='${prefix}'
35176 -
35177 - PYTHON_EXEC_PREFIX='${exec_prefix}'
35178 +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35179 +_ACEOF
35180
35181
35182 +{
35183 + echo "cat >conf$$subs.awk <<_ACEOF" &&
35184 + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35185 + echo "_ACEOF"
35186 +} >conf$$subs.sh ||
35187 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35188 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35189 +ac_delim='%!_!# '
35190 +for ac_last_try in false false false false false :; do
35191 + . ./conf$$subs.sh ||
35192 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35193
35194 - { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
35195 -$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
35196 -if test "${am_cv_python_platform+set}" = set; then
35197 - $as_echo_n "(cached) " >&6
35198 -else
35199 - am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
35200 -fi
35201 -{ $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
35202 -$as_echo "$am_cv_python_platform" >&6; }
35203 - PYTHON_PLATFORM=$am_cv_python_platform
35204 + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35205 + if test $ac_delim_n = $ac_delim_num; then
35206 + break
35207 + elif $ac_last_try; then
35208 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35209 + else
35210 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35211 + fi
35212 +done
35213 +rm -f conf$$subs.sh
35214
35215 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35216 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35217 +_ACEOF
35218 +sed -n '
35219 +h
35220 +s/^/S["/; s/!.*/"]=/
35221 +p
35222 +g
35223 +s/^[^!]*!//
35224 +:repl
35225 +t repl
35226 +s/'"$ac_delim"'$//
35227 +t delim
35228 +:nl
35229 +h
35230 +s/\(.\{148\}\)..*/\1/
35231 +t more1
35232 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35233 +p
35234 +n
35235 +b repl
35236 +:more1
35237 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35238 +p
35239 +g
35240 +s/.\{148\}//
35241 +t nl
35242 +:delim
35243 +h
35244 +s/\(.\{148\}\)..*/\1/
35245 +t more2
35246 +s/["\\]/\\&/g; s/^/"/; s/$/"/
35247 +p
35248 +b
35249 +:more2
35250 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35251 +p
35252 +g
35253 +s/.\{148\}//
35254 +t delim
35255 +' <conf$$subs.awk | sed '
35256 +/^[^""]/{
35257 + N
35258 + s/\n//
35259 +}
35260 +' >>$CONFIG_STATUS || ac_write_fail=1
35261 +rm -f conf$$subs.awk
35262 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35263 +_ACAWK
35264 +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35265 + for (key in S) S_is_set[key] = 1
35266 + FS = ""
35267
35268 +}
35269 +{
35270 + line = $ 0
35271 + nfields = split(line, field, "@")
35272 + substed = 0
35273 + len = length(field[1])
35274 + for (i = 2; i < nfields; i++) {
35275 + key = field[i]
35276 + keylen = length(key)
35277 + if (S_is_set[key]) {
35278 + value = S[key]
35279 + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35280 + len += length(value) + length(field[++i])
35281 + substed = 1
35282 + } else
35283 + len += 1 + keylen
35284 + }
35285
35286 + print line
35287 +}
35288
35289 - { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
35290 -$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
35291 -if test "${am_cv_python_pythondir+set}" = set; then
35292 - $as_echo_n "(cached) " >&6
35293 +_ACAWK
35294 +_ACEOF
35295 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35296 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35297 + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35298 else
35299 - am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
35300 - echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
35301 -fi
35302 -{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
35303 -$as_echo "$am_cv_python_pythondir" >&6; }
35304 - pythondir=$am_cv_python_pythondir
35305 + cat
35306 +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35307 + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35308 +_ACEOF
35309
35310 +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35311 +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35312 +# trailing colons and then remove the whole line if VPATH becomes empty
35313 +# (actually we leave an empty line to preserve line numbers).
35314 +if test "x$srcdir" = x.; then
35315 + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35316 +h
35317 +s///
35318 +s/^/:/
35319 +s/[ ]*$/:/
35320 +s/:\$(srcdir):/:/g
35321 +s/:\${srcdir}:/:/g
35322 +s/:@srcdir@:/:/g
35323 +s/^:*//
35324 +s/:*$//
35325 +x
35326 +s/\(=[ ]*\).*/\1/
35327 +G
35328 +s/\n//
35329 +s/^[^=]*=[ ]*$//
35330 +}'
35331 +fi
35332
35333 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35334 +fi # test -n "$CONFIG_FILES"
35335
35336 - pkgpythondir=\${pythondir}/$PACKAGE
35337 +# Set up the scripts for CONFIG_HEADERS section.
35338 +# No need to generate them if there are no CONFIG_HEADERS.
35339 +# This happens for instance with `./config.status Makefile'.
35340 +if test -n "$CONFIG_HEADERS"; then
35341 +cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35342 +BEGIN {
35343 +_ACEOF
35344
35345 +# Transform confdefs.h into an awk script `defines.awk', embedded as
35346 +# here-document in config.status, that substitutes the proper values into
35347 +# config.h.in to produce config.h.
35348
35349 - { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
35350 -$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
35351 -if test "${am_cv_python_pyexecdir+set}" = set; then
35352 - $as_echo_n "(cached) " >&6
35353 -else
35354 - am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
35355 - echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
35356 -fi
35357 -{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
35358 -$as_echo "$am_cv_python_pyexecdir" >&6; }
35359 - pyexecdir=$am_cv_python_pyexecdir
35360 +# Create a delimiter string that does not exist in confdefs.h, to ease
35361 +# handling of long lines.
35362 +ac_delim='%!_!# '
35363 +for ac_last_try in false false :; do
35364 + ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35365 + if test -z "$ac_tt"; then
35366 + break
35367 + elif $ac_last_try; then
35368 + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35369 + else
35370 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35371 + fi
35372 +done
35373
35374 +# For the awk script, D is an array of macro values keyed by name,
35375 +# likewise P contains macro parameters if any. Preserve backslash
35376 +# newline sequences.
35377
35378 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35379 +sed -n '
35380 +s/.\{148\}/&'"$ac_delim"'/g
35381 +t rset
35382 +:rset
35383 +s/^[ ]*#[ ]*define[ ][ ]*/ /
35384 +t def
35385 +d
35386 +:def
35387 +s/\\$//
35388 +t bsnl
35389 +s/["\\]/\\&/g
35390 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35391 +D["\1"]=" \3"/p
35392 +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35393 +d
35394 +:bsnl
35395 +s/["\\]/\\&/g
35396 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35397 +D["\1"]=" \3\\\\\\n"\\/p
35398 +t cont
35399 +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35400 +t cont
35401 +d
35402 +:cont
35403 +n
35404 +s/.\{148\}/&'"$ac_delim"'/g
35405 +t clear
35406 +:clear
35407 +s/\\$//
35408 +t bsnlc
35409 +s/["\\]/\\&/g; s/^/"/; s/$/"/p
35410 +d
35411 +:bsnlc
35412 +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35413 +b cont
35414 +' <confdefs.h | sed '
35415 +s/'"$ac_delim"'/"\\\
35416 +"/g' >>$CONFIG_STATUS || ac_write_fail=1
35417
35418 - pkgpyexecdir=\${pyexecdir}/$PACKAGE
35419 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35420 + for (key in D) D_is_set[key] = 1
35421 + FS = ""
35422 +}
35423 +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35424 + line = \$ 0
35425 + split(line, arg, " ")
35426 + if (arg[1] == "#") {
35427 + defundef = arg[2]
35428 + mac1 = arg[3]
35429 + } else {
35430 + defundef = substr(arg[1], 2)
35431 + mac1 = arg[2]
35432 + }
35433 + split(mac1, mac2, "(") #)
35434 + macro = mac2[1]
35435 + prefix = substr(line, 1, index(line, defundef) - 1)
35436 + if (D_is_set[macro]) {
35437 + # Preserve the white space surrounding the "#".
35438 + print prefix "define", macro P[macro] D[macro]
35439 + next
35440 + } else {
35441 + # Replace #undef with comments. This is necessary, for example,
35442 + # in the case of _POSIX_SOURCE, which is predefined and required
35443 + # on some systems where configure will not decide to define it.
35444 + if (defundef == "undef") {
35445 + print "/*", prefix defundef, macro, "*/"
35446 + next
35447 + }
35448 + }
35449 +}
35450 +{ print }
35451 +_ACAWK
35452 +_ACEOF
35453 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35454 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35455 +fi # test -n "$CONFIG_HEADERS"
35456
35457
35458 - have_python=true
35459 - fi
35460 +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35461 +shift
35462 +for ac_tag
35463 +do
35464 + case $ac_tag in
35465 + :[FHLC]) ac_mode=$ac_tag; continue;;
35466 + esac
35467 + case $ac_mode$ac_tag in
35468 + :[FHL]*:*);;
35469 + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35470 + :[FH]-) ac_tag=-:-;;
35471 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35472 + esac
35473 + ac_save_IFS=$IFS
35474 + IFS=:
35475 + set x $ac_tag
35476 + IFS=$ac_save_IFS
35477 + shift
35478 + ac_file=$1
35479 + shift
35480
35481 + case $ac_mode in
35482 + :L) ac_source=$1;;
35483 + :[FH])
35484 + ac_file_inputs=
35485 + for ac_f
35486 + do
35487 + case $ac_f in
35488 + -) ac_f="$ac_tmp/stdin";;
35489 + *) # Look for the file first in the build tree, then in the source tree
35490 + # (if the path is not absolute). The absolute path cannot be DOS-style,
35491 + # because $ac_f cannot contain `:'.
35492 + test -f "$ac_f" ||
35493 + case $ac_f in
35494 + [\\/$]*) false;;
35495 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35496 + esac ||
35497 + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35498 + esac
35499 + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35500 + as_fn_append ac_file_inputs " '$ac_f'"
35501 + done
35502
35503 -if $have_python; then
35504 - jh_python_check='
35505 -import sys
35506 -try:
35507 - import xml.parsers.expat
35508 -except ImportError:
35509 - sys.exit(1)
35510 -'
35511 - { $as_echo "$as_me:$LINENO: checking for the Python module xml.parsers.expat" >&5
35512 -$as_echo_n "checking for the Python module xml.parsers.expat... " >&6; }
35513 - if { ($as_echo "$as_me:$LINENO: \$PYTHON -c \"\$jh_python_check\"") >&5
35514 - ($PYTHON -c "$jh_python_check") 2>&5
35515 - ac_status=$?
35516 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517 - (exit $ac_status); }; then
35518 - { $as_echo "$as_me:$LINENO: result: yes" >&5
35519 -$as_echo "yes" >&6; }
35520 - else
35521 - { $as_echo "$as_me:$LINENO: result: no" >&5
35522 -$as_echo "no" >&6; }
35523 - have_python=false
35524 - fi
35525 -fi
35526 - if $have_python; then
35527 - HAVE_PYTHON_TRUE=
35528 - HAVE_PYTHON_FALSE='#'
35529 -else
35530 - HAVE_PYTHON_TRUE='#'
35531 - HAVE_PYTHON_FALSE=
35532 -fi
35533 + # Let's still pretend it is `configure' which instantiates (i.e., don't
35534 + # use $as_me), people would be surprised to read:
35535 + # /* config.h. Generated by config.status. */
35536 + configure_input='Generated from '`
35537 + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35538 + `' by configure.'
35539 + if test x"$ac_file" != x-; then
35540 + configure_input="$ac_file. $configure_input"
35541 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35542 +$as_echo "$as_me: creating $ac_file" >&6;}
35543 + fi
35544 + # Neutralize special characters interpreted by sed in replacement strings.
35545 + case $configure_input in #(
35546 + *\&* | *\|* | *\\* )
35547 + ac_sed_conf_input=`$as_echo "$configure_input" |
35548 + sed 's/[\\\\&|]/\\\\&/g'`;; #(
35549 + *) ac_sed_conf_input=$configure_input;;
35550 + esac
35551
35552 + case $ac_tag in
35553 + *:-:* | *:-) cat >"$ac_tmp/stdin" \
35554 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35555 + esac
35556 + ;;
35557 + esac
35558
35559 -# check for XML catalog
35560 + ac_dir=`$as_dirname -- "$ac_file" ||
35561 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35562 + X"$ac_file" : 'X\(//\)[^/]' \| \
35563 + X"$ac_file" : 'X\(//\)$' \| \
35564 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35565 +$as_echo X"$ac_file" |
35566 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35567 + s//\1/
35568 + q
35569 + }
35570 + /^X\(\/\/\)[^/].*/{
35571 + s//\1/
35572 + q
35573 + }
35574 + /^X\(\/\/\)$/{
35575 + s//\1/
35576 + q
35577 + }
35578 + /^X\(\/\).*/{
35579 + s//\1/
35580 + q
35581 + }
35582 + s/.*/./; q'`
35583 + as_dir="$ac_dir"; as_fn_mkdir_p
35584 + ac_builddir=.
35585
35586 - # check for the presence of the XML catalog
35587 +case "$ac_dir" in
35588 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35589 +*)
35590 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35591 + # A ".." for each directory in $ac_dir_suffix.
35592 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35593 + case $ac_top_builddir_sub in
35594 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35595 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35596 + esac ;;
35597 +esac
35598 +ac_abs_top_builddir=$ac_pwd
35599 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
35600 +# for backward compatibility:
35601 +ac_top_builddir=$ac_top_build_prefix
35602
35603 -# Check whether --with-xml-catalog was given.
35604 -if test "${with_xml_catalog+set}" = set; then
35605 - withval=$with_xml_catalog;
35606 -else
35607 - with_xml_catalog=/etc/xml/catalog
35608 -fi
35609 +case $srcdir in
35610 + .) # We are building in place.
35611 + ac_srcdir=.
35612 + ac_top_srcdir=$ac_top_builddir_sub
35613 + ac_abs_top_srcdir=$ac_pwd ;;
35614 + [\\/]* | ?:[\\/]* ) # Absolute name.
35615 + ac_srcdir=$srcdir$ac_dir_suffix;
35616 + ac_top_srcdir=$srcdir
35617 + ac_abs_top_srcdir=$srcdir ;;
35618 + *) # Relative name.
35619 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35620 + ac_top_srcdir=$ac_top_build_prefix$srcdir
35621 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35622 +esac
35623 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35624
35625 - jh_found_xmlcatalog=true
35626 - XML_CATALOG_FILE="$with_xml_catalog"
35627
35628 - { $as_echo "$as_me:$LINENO: checking for XML catalog ($XML_CATALOG_FILE)" >&5
35629 -$as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
35630 - if test -f "$XML_CATALOG_FILE"; then
35631 - { $as_echo "$as_me:$LINENO: result: found" >&5
35632 -$as_echo "found" >&6; }
35633 - else
35634 - jh_found_xmlcatalog=false
35635 - { $as_echo "$as_me:$LINENO: result: not found" >&5
35636 -$as_echo "not found" >&6; }
35637 - fi
35638 + case $ac_mode in
35639 + :F)
35640 + #
35641 + # CONFIG_FILE
35642 + #
35643
35644 - # check for the xmlcatalog program
35645 - # Extract the first word of "xmlcatalog", so it can be a program name with args.
35646 -set dummy xmlcatalog; ac_word=$2
35647 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35648 -$as_echo_n "checking for $ac_word... " >&6; }
35649 -if test "${ac_cv_path_XMLCATALOG+set}" = set; then
35650 - $as_echo_n "(cached) " >&6
35651 -else
35652 - case $XMLCATALOG in
35653 - [\\/]* | ?:[\\/]*)
35654 - ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
35655 - ;;
35656 - *)
35657 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35658 -for as_dir in $PATH
35659 -do
35660 - IFS=$as_save_IFS
35661 - test -z "$as_dir" && as_dir=.
35662 - for ac_exec_ext in '' $ac_executable_extensions; do
35663 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35664 - ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
35665 - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35666 - break 2
35667 - fi
35668 -done
35669 -done
35670 -IFS=$as_save_IFS
35671 + case $INSTALL in
35672 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35673 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35674 + esac
35675 + ac_MKDIR_P=$MKDIR_P
35676 + case $MKDIR_P in
35677 + [\\/$]* | ?:[\\/]* ) ;;
35678 + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35679 + esac
35680 +_ACEOF
35681
35682 - test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
35683 - ;;
35684 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35685 +# If the template does not know about datarootdir, expand it.
35686 +# FIXME: This hack should be removed a few years after 2.60.
35687 +ac_datarootdir_hack=; ac_datarootdir_seen=
35688 +ac_sed_dataroot='
35689 +/datarootdir/ {
35690 + p
35691 + q
35692 +}
35693 +/@datadir@/p
35694 +/@docdir@/p
35695 +/@infodir@/p
35696 +/@localedir@/p
35697 +/@mandir@/p'
35698 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35699 +*datarootdir*) ac_datarootdir_seen=yes;;
35700 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35701 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35702 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35703 +_ACEOF
35704 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35705 + ac_datarootdir_hack='
35706 + s&@datadir@&$datadir&g
35707 + s&@docdir@&$docdir&g
35708 + s&@infodir@&$infodir&g
35709 + s&@localedir@&$localedir&g
35710 + s&@mandir@&$mandir&g
35711 + s&\\\${datarootdir}&$datarootdir&g' ;;
35712 esac
35713 -fi
35714 -XMLCATALOG=$ac_cv_path_XMLCATALOG
35715 -if test -n "$XMLCATALOG"; then
35716 - { $as_echo "$as_me:$LINENO: result: $XMLCATALOG" >&5
35717 -$as_echo "$XMLCATALOG" >&6; }
35718 -else
35719 - { $as_echo "$as_me:$LINENO: result: no" >&5
35720 -$as_echo "no" >&6; }
35721 -fi
35722 +_ACEOF
35723
35724 +# Neutralize VPATH when `$srcdir' = `.'.
35725 +# Shell code in configure.ac might set extrasub.
35726 +# FIXME: do we really want to maintain this feature?
35727 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35728 +ac_sed_extra="$ac_vpsub
35729 +$extrasub
35730 +_ACEOF
35731 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35732 +:t
35733 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35734 +s|@configure_input@|$ac_sed_conf_input|;t t
35735 +s&@top_builddir@&$ac_top_builddir_sub&;t t
35736 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
35737 +s&@srcdir@&$ac_srcdir&;t t
35738 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
35739 +s&@top_srcdir@&$ac_top_srcdir&;t t
35740 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35741 +s&@builddir@&$ac_builddir&;t t
35742 +s&@abs_builddir@&$ac_abs_builddir&;t t
35743 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35744 +s&@INSTALL@&$ac_INSTALL&;t t
35745 +s&@MKDIR_P@&$ac_MKDIR_P&;t t
35746 +$ac_datarootdir_hack
35747 +"
35748 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35749 + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35750
35751 - if test "x$XMLCATALOG" = xno; then
35752 - jh_found_xmlcatalog=false
35753 - fi
35754 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35755 + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35756 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35757 + "$ac_tmp/out"`; test -z "$ac_out"; } &&
35758 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35759 +which seems to be undefined. Please make sure it is defined" >&5
35760 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35761 +which seems to be undefined. Please make sure it is defined" >&2;}
35762
35763 - if $jh_found_xmlcatalog; then
35764 - have_xmlcatalog=true
35765 + rm -f "$ac_tmp/stdin"
35766 + case $ac_file in
35767 + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35768 + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35769 + esac \
35770 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35771 + ;;
35772 + :H)
35773 + #
35774 + # CONFIG_HEADER
35775 + #
35776 + if test x"$ac_file" != x-; then
35777 + {
35778 + $as_echo "/* $configure_input */" \
35779 + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35780 + } >"$ac_tmp/config.h" \
35781 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35782 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35783 + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35784 +$as_echo "$as_me: $ac_file is unchanged" >&6;}
35785 + else
35786 + rm -f "$ac_file"
35787 + mv "$ac_tmp/config.h" "$ac_file" \
35788 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35789 + fi
35790 else
35791 - have_xmlcatalog=false
35792 + $as_echo "/* $configure_input */" \
35793 + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35794 + || as_fn_error $? "could not create -" "$LINENO" 5
35795 fi
35796 +# Compute "$ac_file"'s index in $config_headers.
35797 +_am_arg="$ac_file"
35798 +_am_stamp_count=1
35799 +for _am_header in $config_headers :; do
35800 + case $_am_header in
35801 + $_am_arg | $_am_arg:* )
35802 + break ;;
35803 + * )
35804 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35805 + esac
35806 +done
35807 +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35808 +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35809 + X"$_am_arg" : 'X\(//\)[^/]' \| \
35810 + X"$_am_arg" : 'X\(//\)$' \| \
35811 + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35812 +$as_echo X"$_am_arg" |
35813 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35814 + s//\1/
35815 + q
35816 + }
35817 + /^X\(\/\/\)[^/].*/{
35818 + s//\1/
35819 + q
35820 + }
35821 + /^X\(\/\/\)$/{
35822 + s//\1/
35823 + q
35824 + }
35825 + /^X\(\/\).*/{
35826 + s//\1/
35827 + q
35828 + }
35829 + s/.*/./; q'`/stamp-h$_am_stamp_count
35830 + ;;
35831
35832 - if $have_xmlcatalog; then
35833 - HAVE_XMLCATALOG_TRUE=
35834 - HAVE_XMLCATALOG_FALSE='#'
35835 -else
35836 - HAVE_XMLCATALOG_TRUE='#'
35837 - HAVE_XMLCATALOG_FALSE=
35838 -fi
35839 -
35840 -
35841 -if test "x$GCC" = xyes; then
35842 - case " $CFLAGS " in
35843 - *[\ \ ]-Wall[\ \ ]*) ;;
35844 - *) CFLAGS="$CFLAGS -Wall" ;;
35845 + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35846 +$as_echo "$as_me: executing $ac_file commands" >&6;}
35847 + ;;
35848 esac
35849
35850 - case " $CFLAGS " in
35851 - *[\ \ ]-std=c9x[\ \ ]*) ;;
35852 - *) CFLAGS="$CFLAGS -std=c9x" ;;
35853 +
35854 + case $ac_file$ac_mode in
35855 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35856 + # Autoconf 2.62 quotes --file arguments for eval, but not when files
35857 + # are listed without --file. Let's play safe and only enable the eval
35858 + # if we detect the quoting.
35859 + case $CONFIG_FILES in
35860 + *\'*) eval set x "$CONFIG_FILES" ;;
35861 + *) set x $CONFIG_FILES ;;
35862 esac
35863 -fi
35864 + shift
35865 + for mf
35866 + do
35867 + # Strip MF so we end up with the name of the file.
35868 + mf=`echo "$mf" | sed -e 's/:.*$//'`
35869 + # Check whether this is an Automake generated Makefile or not.
35870 + # We used to match only the files named `Makefile.in', but
35871 + # some people rename them; so instead we look at the file content.
35872 + # Grep'ing the first line is not enough: some people post-process
35873 + # each Makefile.in and add a new line on top of each file to say so.
35874 + # Grep'ing the whole file is not good either: AIX grep has a line
35875 + # limit of 2048, but all sed's we know have understand at least 4000.
35876 + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35877 + dirpart=`$as_dirname -- "$mf" ||
35878 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35879 + X"$mf" : 'X\(//\)[^/]' \| \
35880 + X"$mf" : 'X\(//\)$' \| \
35881 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35882 +$as_echo X"$mf" |
35883 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35884 + s//\1/
35885 + q
35886 + }
35887 + /^X\(\/\/\)[^/].*/{
35888 + s//\1/
35889 + q
35890 + }
35891 + /^X\(\/\/\)$/{
35892 + s//\1/
35893 + q
35894 + }
35895 + /^X\(\/\).*/{
35896 + s//\1/
35897 + q
35898 + }
35899 + s/.*/./; q'`
35900 + else
35901 + continue
35902 + fi
35903 + # Extract the definition of DEPDIR, am__include, and am__quote
35904 + # from the Makefile without running `make'.
35905 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35906 + test -z "$DEPDIR" && continue
35907 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
35908 + test -z "am__include" && continue
35909 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35910 + # When using ansi2knr, U may be empty or an underscore; expand it
35911 + U=`sed -n 's/^U = //p' < "$mf"`
35912 + # Find all dependency output files, they are included files with
35913 + # $(DEPDIR) in their names. We invoke sed twice because it is the
35914 + # simplest approach to changing $(DEPDIR) to its actual value in the
35915 + # expansion.
35916 + for file in `sed -n "
35917 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35918 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35919 + # Make sure the directory exists.
35920 + test -f "$dirpart/$file" && continue
35921 + fdir=`$as_dirname -- "$file" ||
35922 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35923 + X"$file" : 'X\(//\)[^/]' \| \
35924 + X"$file" : 'X\(//\)$' \| \
35925 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35926 +$as_echo X"$file" |
35927 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35928 + s//\1/
35929 + q
35930 + }
35931 + /^X\(\/\/\)[^/].*/{
35932 + s//\1/
35933 + q
35934 + }
35935 + /^X\(\/\/\)$/{
35936 + s//\1/
35937 + q
35938 + }
35939 + /^X\(\/\).*/{
35940 + s//\1/
35941 + q
35942 + }
35943 + s/.*/./; q'`
35944 + as_dir=$dirpart/$fdir; as_fn_mkdir_p
35945 + # echo "creating $dirpart/$file"
35946 + echo '# dummy' > "$dirpart/$file"
35947 + done
35948 + done
35949 +}
35950 + ;;
35951 + "libtool":C)
35952
35953 -ac_config_files="$ac_config_files Makefile libglade.spec libglade-zip glade/Makefile doc/Makefile doc/version.xml tests/Makefile libglade-2.0.pc libglade-2.0-uninstalled.pc"
35954 + # See if we are running on zsh, and set the options which allow our
35955 + # commands through without removal of \ escapes.
35956 + if test -n "${ZSH_VERSION+set}" ; then
35957 + setopt NO_GLOB_SUBST
35958 + fi
35959
35960 -ac_config_files="$ac_config_files libglade-convert"
35961 + cfgfile="${ofile}T"
35962 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35963 + $RM "$cfgfile"
35964
35965 + cat <<_LT_EOF >> "$cfgfile"
35966 +#! $SHELL
35967
35968 -cat >confcache <<\_ACEOF
35969 -# This file is a shell script that caches the results of configure
35970 -# tests run on this system so they can be shared between configure
35971 -# scripts and configure runs, see configure's option --config-cache.
35972 -# It is not useful on other systems. If it contains results you don't
35973 -# want to keep, you may remove or edit it.
35974 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35975 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35976 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35977 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35978 #
35979 -# config.status only pays attention to the cache file if you give it
35980 -# the --recheck option to rerun configure.
35981 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35982 +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
35983 +# Foundation, Inc.
35984 +# Written by Gordon Matzigkeit, 1996
35985 #
35986 -# `ac_cv_env_foo' variables (set or unset) will be overridden when
35987 -# loading this file, other *unset* `ac_cv_foo' will be assigned the
35988 -# following values.
35989 -
35990 -_ACEOF
35991 -
35992 -# The following way of writing the cache mishandles newlines in values,
35993 -# but we know of no workaround that is simple, portable, and efficient.
35994 -# So, we kill variables containing newlines.
35995 -# Ultrix sh set writes to stderr and can't be redirected directly,
35996 -# and sets the high bit in the cache file unless we assign to the vars.
35997 -(
35998 - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35999 - eval ac_val=\$$ac_var
36000 - case $ac_val in #(
36001 - *${as_nl}*)
36002 - case $ac_var in #(
36003 - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
36004 -$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
36005 - esac
36006 - case $ac_var in #(
36007 - _ | IFS | as_nl) ;; #(
36008 - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36009 - *) $as_unset $ac_var ;;
36010 - esac ;;
36011 - esac
36012 - done
36013 -
36014 - (set) 2>&1 |
36015 - case $as_nl`(ac_space=' '; set) 2>&1` in #(
36016 - *${as_nl}ac_space=\ *)
36017 - # `set' does not quote correctly, so add quotes (double-quote
36018 - # substitution turns \\\\ into \\, and sed turns \\ into \).
36019 - sed -n \
36020 - "s/'/'\\\\''/g;
36021 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36022 - ;; #(
36023 - *)
36024 - # `set' quotes correctly as required by POSIX, so do not add quotes.
36025 - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36026 - ;;
36027 - esac |
36028 - sort
36029 -) |
36030 - sed '
36031 - /^ac_cv_env_/b end
36032 - t clear
36033 - :clear
36034 - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36035 - t end
36036 - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36037 - :end' >>confcache
36038 -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36039 - if test -w "$cache_file"; then
36040 - test "x$cache_file" != "x/dev/null" &&
36041 - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
36042 -$as_echo "$as_me: updating cache $cache_file" >&6;}
36043 - cat confcache >$cache_file
36044 - else
36045 - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
36046 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36047 - fi
36048 -fi
36049 -rm -f confcache
36050 +# This file is part of GNU Libtool.
36051 +#
36052 +# GNU Libtool is free software; you can redistribute it and/or
36053 +# modify it under the terms of the GNU General Public License as
36054 +# published by the Free Software Foundation; either version 2 of
36055 +# the License, or (at your option) any later version.
36056 +#
36057 +# As a special exception to the GNU General Public License,
36058 +# if you distribute this file as part of a program or library that
36059 +# is built using GNU Libtool, you may include this file under the
36060 +# same distribution terms that you use for the rest of that program.
36061 +#
36062 +# GNU Libtool is distributed in the hope that it will be useful,
36063 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
36064 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36065 +# GNU General Public License for more details.
36066 +#
36067 +# You should have received a copy of the GNU General Public License
36068 +# along with GNU Libtool; see the file COPYING. If not, a copy
36069 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36070 +# obtained by writing to the Free Software Foundation, Inc.,
36071 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36072
36073 -test "x$prefix" = xNONE && prefix=$ac_default_prefix
36074 -# Let make expand exec_prefix.
36075 -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36076
36077 -DEFS=-DHAVE_CONFIG_H
36078 +# The names of the tagged configurations supported by this script.
36079 +available_tags=""
36080
36081 -ac_libobjs=
36082 -ac_ltlibobjs=
36083 -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36084 - # 1. Remove the extension, and $U if already installed.
36085 - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36086 - ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36087 - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36088 - # will be set to the directory where LIBOBJS objects are built.
36089 - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36090 - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
36091 -done
36092 -LIBOBJS=$ac_libobjs
36093 +# ### BEGIN LIBTOOL CONFIG
36094
36095 -LTLIBOBJS=$ac_ltlibobjs
36096 +# Assembler program.
36097 +AS=$lt_AS
36098
36099 +# DLL creation program.
36100 +DLLTOOL=$lt_DLLTOOL
36101
36102 -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36103 - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
36104 -Usually this means the macro was only invoked conditionally." >&5
36105 -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
36106 -Usually this means the macro was only invoked conditionally." >&2;}
36107 - { (exit 1); exit 1; }; }
36108 -fi
36109 -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36110 - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
36111 -Usually this means the macro was only invoked conditionally." >&5
36112 -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
36113 -Usually this means the macro was only invoked conditionally." >&2;}
36114 - { (exit 1); exit 1; }; }
36115 -fi
36116 -if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
36117 - { { $as_echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
36118 -Usually this means the macro was only invoked conditionally." >&5
36119 -$as_echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
36120 -Usually this means the macro was only invoked conditionally." >&2;}
36121 - { (exit 1); exit 1; }; }
36122 -fi
36123 -if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
36124 - { { $as_echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
36125 -Usually this means the macro was only invoked conditionally." >&5
36126 -$as_echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
36127 -Usually this means the macro was only invoked conditionally." >&2;}
36128 - { (exit 1); exit 1; }; }
36129 -fi
36130 -if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
36131 - { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
36132 -Usually this means the macro was only invoked conditionally." >&5
36133 -$as_echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
36134 -Usually this means the macro was only invoked conditionally." >&2;}
36135 - { (exit 1); exit 1; }; }
36136 -fi
36137 -if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
36138 - { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_BUILD_HTML\" was never defined.
36139 -Usually this means the macro was only invoked conditionally." >&5
36140 -$as_echo "$as_me: error: conditional \"GTK_DOC_BUILD_HTML\" was never defined.
36141 -Usually this means the macro was only invoked conditionally." >&2;}
36142 - { (exit 1); exit 1; }; }
36143 -fi
36144 -if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
36145 - { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_BUILD_PDF\" was never defined.
36146 -Usually this means the macro was only invoked conditionally." >&5
36147 -$as_echo "$as_me: error: conditional \"GTK_DOC_BUILD_PDF\" was never defined.
36148 -Usually this means the macro was only invoked conditionally." >&2;}
36149 - { (exit 1); exit 1; }; }
36150 -fi
36151 -if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
36152 - { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
36153 -Usually this means the macro was only invoked conditionally." >&5
36154 -$as_echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
36155 -Usually this means the macro was only invoked conditionally." >&2;}
36156 - { (exit 1); exit 1; }; }
36157 -fi
36158 -if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
36159 - { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_REBASE\" was never defined.
36160 -Usually this means the macro was only invoked conditionally." >&5
36161 -$as_echo "$as_me: error: conditional \"GTK_DOC_USE_REBASE\" was never defined.
36162 -Usually this means the macro was only invoked conditionally." >&2;}
36163 - { (exit 1); exit 1; }; }
36164 -fi
36165 -if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
36166 - { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON\" was never defined.
36167 -Usually this means the macro was only invoked conditionally." >&5
36168 -$as_echo "$as_me: error: conditional \"HAVE_PYTHON\" was never defined.
36169 -Usually this means the macro was only invoked conditionally." >&2;}
36170 - { (exit 1); exit 1; }; }
36171 -fi
36172 -if test -z "${HAVE_XMLCATALOG_TRUE}" && test -z "${HAVE_XMLCATALOG_FALSE}"; then
36173 - { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XMLCATALOG\" was never defined.
36174 -Usually this means the macro was only invoked conditionally." >&5
36175 -$as_echo "$as_me: error: conditional \"HAVE_XMLCATALOG\" was never defined.
36176 -Usually this means the macro was only invoked conditionally." >&2;}
36177 - { (exit 1); exit 1; }; }
36178 -fi
36179 +# Object dumper program.
36180 +OBJDUMP=$lt_OBJDUMP
36181
36182 -: ${CONFIG_STATUS=./config.status}
36183 -ac_write_fail=0
36184 -ac_clean_files_save=$ac_clean_files
36185 -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36186 -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
36187 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36188 -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36189 -#! $SHELL
36190 -# Generated by $as_me.
36191 -# Run this file to recreate the current configuration.
36192 -# Compiler output produced by configure, useful for debugging
36193 -# configure, is in config.log if it exists.
36194 +# Which release of libtool.m4 was used?
36195 +macro_version=$macro_version
36196 +macro_revision=$macro_revision
36197
36198 -debug=false
36199 -ac_cs_recheck=false
36200 -ac_cs_silent=false
36201 -SHELL=\${CONFIG_SHELL-$SHELL}
36202 -_ACEOF
36203 +# Whether or not to build shared libraries.
36204 +build_libtool_libs=$enable_shared
36205
36206 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36207 -## --------------------- ##
36208 -## M4sh Initialization. ##
36209 -## --------------------- ##
36210 +# Whether or not to build static libraries.
36211 +build_old_libs=$enable_static
36212
36213 -# Be more Bourne compatible
36214 -DUALCASE=1; export DUALCASE # for MKS sh
36215 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36216 - emulate sh
36217 - NULLCMD=:
36218 - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36219 - # is contrary to our usage. Disable this feature.
36220 - alias -g '${1+"$@"}'='"$@"'
36221 - setopt NO_GLOB_SUBST
36222 -else
36223 - case `(set -o) 2>/dev/null` in
36224 - *posix*) set -o posix ;;
36225 -esac
36226 +# What type of objects to build.
36227 +pic_mode=$pic_mode
36228
36229 -fi
36230 +# Whether or not to optimize for fast installation.
36231 +fast_install=$enable_fast_install
36232
36233 +# Shell to use when invoking shell scripts.
36234 +SHELL=$lt_SHELL
36235
36236 +# An echo program that protects backslashes.
36237 +ECHO=$lt_ECHO
36238
36239 +# The PATH separator for the build system.
36240 +PATH_SEPARATOR=$lt_PATH_SEPARATOR
36241
36242 -# PATH needs CR
36243 -# Avoid depending upon Character Ranges.
36244 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36245 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36246 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36247 -as_cr_digits='0123456789'
36248 -as_cr_alnum=$as_cr_Letters$as_cr_digits
36249 +# The host system.
36250 +host_alias=$host_alias
36251 +host=$host
36252 +host_os=$host_os
36253
36254 -as_nl='
36255 -'
36256 -export as_nl
36257 -# Printing a long string crashes Solaris 7 /usr/bin/printf.
36258 -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36259 -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36260 -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36261 -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36262 - as_echo='printf %s\n'
36263 - as_echo_n='printf %s'
36264 -else
36265 - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36266 - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36267 - as_echo_n='/usr/ucb/echo -n'
36268 - else
36269 - as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36270 - as_echo_n_body='eval
36271 - arg=$1;
36272 - case $arg in
36273 - *"$as_nl"*)
36274 - expr "X$arg" : "X\\(.*\\)$as_nl";
36275 - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36276 - esac;
36277 - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36278 - '
36279 - export as_echo_n_body
36280 - as_echo_n='sh -c $as_echo_n_body as_echo'
36281 - fi
36282 - export as_echo_body
36283 - as_echo='sh -c $as_echo_body as_echo'
36284 -fi
36285 +# The build system.
36286 +build_alias=$build_alias
36287 +build=$build
36288 +build_os=$build_os
36289
36290 -# The user is always right.
36291 -if test "${PATH_SEPARATOR+set}" != set; then
36292 - PATH_SEPARATOR=:
36293 - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36294 - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36295 - PATH_SEPARATOR=';'
36296 - }
36297 -fi
36298 +# A sed program that does not truncate output.
36299 +SED=$lt_SED
36300
36301 -# Support unset when possible.
36302 -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36303 - as_unset=unset
36304 -else
36305 - as_unset=false
36306 -fi
36307 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36308 +Xsed="\$SED -e 1s/^X//"
36309
36310 +# A grep program that handles long lines.
36311 +GREP=$lt_GREP
36312
36313 -# IFS
36314 -# We need space, tab and new line, in precisely that order. Quoting is
36315 -# there to prevent editors from complaining about space-tab.
36316 -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36317 -# splitting by setting IFS to empty value.)
36318 -IFS=" "" $as_nl"
36319 +# An ERE matcher.
36320 +EGREP=$lt_EGREP
36321
36322 -# Find who we are. Look in the path if we contain no directory separator.
36323 -case $0 in
36324 - *[\\/]* ) as_myself=$0 ;;
36325 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36326 -for as_dir in $PATH
36327 -do
36328 - IFS=$as_save_IFS
36329 - test -z "$as_dir" && as_dir=.
36330 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36331 -done
36332 -IFS=$as_save_IFS
36333 +# A literal string matcher.
36334 +FGREP=$lt_FGREP
36335
36336 - ;;
36337 -esac
36338 -# We did not find ourselves, most probably we were run as `sh COMMAND'
36339 -# in which case we are not to be found in the path.
36340 -if test "x$as_myself" = x; then
36341 - as_myself=$0
36342 -fi
36343 -if test ! -f "$as_myself"; then
36344 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36345 - { (exit 1); exit 1; }
36346 -fi
36347 +# A BSD- or MS-compatible name lister.
36348 +NM=$lt_NM
36349
36350 -# Work around bugs in pre-3.0 UWIN ksh.
36351 -for as_var in ENV MAIL MAILPATH
36352 -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
36353 -done
36354 -PS1='$ '
36355 -PS2='> '
36356 -PS4='+ '
36357 +# Whether we need soft or hard links.
36358 +LN_S=$lt_LN_S
36359
36360 -# NLS nuisances.
36361 -LC_ALL=C
36362 -export LC_ALL
36363 -LANGUAGE=C
36364 -export LANGUAGE
36365 +# What is the maximum length of a command?
36366 +max_cmd_len=$max_cmd_len
36367
36368 -# Required to use basename.
36369 -if expr a : '\(a\)' >/dev/null 2>&1 &&
36370 - test "X`expr 00001 : '.*\(...\)'`" = X001; then
36371 - as_expr=expr
36372 -else
36373 - as_expr=false
36374 -fi
36375 +# Object file suffix (normally "o").
36376 +objext=$ac_objext
36377
36378 -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36379 - as_basename=basename
36380 -else
36381 - as_basename=false
36382 -fi
36383 +# Executable file suffix (normally "").
36384 +exeext=$exeext
36385
36386 +# whether the shell understands "unset".
36387 +lt_unset=$lt_unset
36388
36389 -# Name of the executable.
36390 -as_me=`$as_basename -- "$0" ||
36391 -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36392 - X"$0" : 'X\(//\)$' \| \
36393 - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36394 -$as_echo X/"$0" |
36395 - sed '/^.*\/\([^/][^/]*\)\/*$/{
36396 - s//\1/
36397 - q
36398 - }
36399 - /^X\/\(\/\/\)$/{
36400 - s//\1/
36401 - q
36402 - }
36403 - /^X\/\(\/\).*/{
36404 - s//\1/
36405 - q
36406 - }
36407 - s/.*/./; q'`
36408 +# turn spaces into newlines.
36409 +SP2NL=$lt_lt_SP2NL
36410
36411 -# CDPATH.
36412 -$as_unset CDPATH
36413 +# turn newlines into spaces.
36414 +NL2SP=$lt_lt_NL2SP
36415
36416 +# convert \$build file names to \$host format.
36417 +to_host_file_cmd=$lt_cv_to_host_file_cmd
36418
36419 +# convert \$build files to toolchain format.
36420 +to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36421
36422 - as_lineno_1=$LINENO
36423 - as_lineno_2=$LINENO
36424 - test "x$as_lineno_1" != "x$as_lineno_2" &&
36425 - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
36426 +# Method to check whether dependent libraries are shared objects.
36427 +deplibs_check_method=$lt_deplibs_check_method
36428
36429 - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36430 - # uniformly replaced by the line number. The first 'sed' inserts a
36431 - # line-number line after each line using $LINENO; the second 'sed'
36432 - # does the real work. The second script uses 'N' to pair each
36433 - # line-number line with the line containing $LINENO, and appends
36434 - # trailing '-' during substitution so that $LINENO is not a special
36435 - # case at line end.
36436 - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36437 - # scripts with optimization help from Paolo Bonzini. Blame Lee
36438 - # E. McMahon (1931-1989) for sed's syntax. :-)
36439 - sed -n '
36440 - p
36441 - /[$]LINENO/=
36442 - ' <$as_myself |
36443 - sed '
36444 - s/[$]LINENO.*/&-/
36445 - t lineno
36446 - b
36447 - :lineno
36448 - N
36449 - :loop
36450 - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
36451 - t loop
36452 - s/-\n.*//
36453 - ' >$as_me.lineno &&
36454 - chmod +x "$as_me.lineno" ||
36455 - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
36456 - { (exit 1); exit 1; }; }
36457 +# Command to use when deplibs_check_method = "file_magic".
36458 +file_magic_cmd=$lt_file_magic_cmd
36459
36460 - # Don't try to exec as it changes $[0], causing all sort of problems
36461 - # (the dirname of $[0] is not the place where we might find the
36462 - # original and so on. Autoconf is especially sensitive to this).
36463 - . "./$as_me.lineno"
36464 - # Exit status is that of the last command.
36465 - exit
36466 -}
36467 +# How to find potential files when deplibs_check_method = "file_magic".
36468 +file_magic_glob=$lt_file_magic_glob
36469
36470 +# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36471 +want_nocaseglob=$lt_want_nocaseglob
36472
36473 -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36474 - as_dirname=dirname
36475 -else
36476 - as_dirname=false
36477 -fi
36478 +# Command to associate shared and link libraries.
36479 +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36480
36481 -ECHO_C= ECHO_N= ECHO_T=
36482 -case `echo -n x` in
36483 --n*)
36484 - case `echo 'x\c'` in
36485 - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
36486 - *) ECHO_C='\c';;
36487 - esac;;
36488 -*)
36489 - ECHO_N='-n';;
36490 -esac
36491 -if expr a : '\(a\)' >/dev/null 2>&1 &&
36492 - test "X`expr 00001 : '.*\(...\)'`" = X001; then
36493 - as_expr=expr
36494 -else
36495 - as_expr=false
36496 -fi
36497 +# The archiver.
36498 +AR=$lt_AR
36499
36500 -rm -f conf$$ conf$$.exe conf$$.file
36501 -if test -d conf$$.dir; then
36502 - rm -f conf$$.dir/conf$$.file
36503 -else
36504 - rm -f conf$$.dir
36505 - mkdir conf$$.dir 2>/dev/null
36506 -fi
36507 -if (echo >conf$$.file) 2>/dev/null; then
36508 - if ln -s conf$$.file conf$$ 2>/dev/null; then
36509 - as_ln_s='ln -s'
36510 - # ... but there are two gotchas:
36511 - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36512 - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36513 - # In both cases, we have to default to `cp -p'.
36514 - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36515 - as_ln_s='cp -p'
36516 - elif ln conf$$.file conf$$ 2>/dev/null; then
36517 - as_ln_s=ln
36518 - else
36519 - as_ln_s='cp -p'
36520 - fi
36521 -else
36522 - as_ln_s='cp -p'
36523 -fi
36524 -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36525 -rmdir conf$$.dir 2>/dev/null
36526 +# Flags to create an archive.
36527 +AR_FLAGS=$lt_AR_FLAGS
36528
36529 -if mkdir -p . 2>/dev/null; then
36530 - as_mkdir_p=:
36531 -else
36532 - test -d ./-p && rmdir ./-p
36533 - as_mkdir_p=false
36534 -fi
36535 +# How to feed a file listing to the archiver.
36536 +archiver_list_spec=$lt_archiver_list_spec
36537
36538 -if test -x / >/dev/null 2>&1; then
36539 - as_test_x='test -x'
36540 -else
36541 - if ls -dL / >/dev/null 2>&1; then
36542 - as_ls_L_option=L
36543 - else
36544 - as_ls_L_option=
36545 - fi
36546 - as_test_x='
36547 - eval sh -c '\''
36548 - if test -d "$1"; then
36549 - test -d "$1/.";
36550 - else
36551 - case $1 in
36552 - -*)set "./$1";;
36553 - esac;
36554 - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
36555 - ???[sx]*):;;*)false;;esac;fi
36556 - '\'' sh
36557 - '
36558 -fi
36559 -as_executable_p=$as_test_x
36560 +# A symbol stripping program.
36561 +STRIP=$lt_STRIP
36562
36563 -# Sed expression to map a string onto a valid CPP name.
36564 -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36565 +# Commands used to install an old-style archive.
36566 +RANLIB=$lt_RANLIB
36567 +old_postinstall_cmds=$lt_old_postinstall_cmds
36568 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
36569
36570 -# Sed expression to map a string onto a valid variable name.
36571 -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36572 +# Whether to use a lock for old archive extraction.
36573 +lock_old_archive_extraction=$lock_old_archive_extraction
36574
36575 +# A C compiler.
36576 +LTCC=$lt_CC
36577
36578 -exec 6>&1
36579 +# LTCC compiler flags.
36580 +LTCFLAGS=$lt_CFLAGS
36581
36582 -# Save the log message, to keep $[0] and so on meaningful, and to
36583 -# report actual input values of CONFIG_FILES etc. instead of their
36584 -# values after options handling.
36585 -ac_log="
36586 -This file was extended by libglade $as_me 2.6.4, which was
36587 -generated by GNU Autoconf 2.62. Invocation command line was
36588 +# Take the output of nm and produce a listing of raw symbols and C names.
36589 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36590
36591 - CONFIG_FILES = $CONFIG_FILES
36592 - CONFIG_HEADERS = $CONFIG_HEADERS
36593 - CONFIG_LINKS = $CONFIG_LINKS
36594 - CONFIG_COMMANDS = $CONFIG_COMMANDS
36595 - $ $0 $@
36596 +# Transform the output of nm in a proper C declaration.
36597 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36598
36599 -on `(hostname || uname -n) 2>/dev/null | sed 1q`
36600 -"
36601 +# Transform the output of nm in a C name address pair.
36602 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36603
36604 -_ACEOF
36605 +# Transform the output of nm in a C name address pair when lib prefix is needed.
36606 +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36607
36608 -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36609 -# Files that config.status was made for.
36610 -config_files="$ac_config_files"
36611 -config_headers="$ac_config_headers"
36612 -config_commands="$ac_config_commands"
36613 +# Specify filename containing input files for \$NM.
36614 +nm_file_list_spec=$lt_nm_file_list_spec
36615
36616 -_ACEOF
36617 +# The root where to search for dependent libraries,and in which our libraries should be installed.
36618 +lt_sysroot=$lt_sysroot
36619
36620 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36621 -ac_cs_usage="\
36622 -\`$as_me' instantiates files from templates according to the
36623 -current configuration.
36624 +# The name of the directory that contains temporary libtool files.
36625 +objdir=$objdir
36626
36627 -Usage: $0 [OPTIONS] [FILE]...
36628 +# Used to examine libraries when file_magic_cmd begins with "file".
36629 +MAGIC_CMD=$MAGIC_CMD
36630
36631 - -h, --help print this help, then exit
36632 - -V, --version print version number and configuration settings, then exit
36633 - -q, --quiet do not print progress messages
36634 - -d, --debug don't remove temporary files
36635 - --recheck update $as_me by reconfiguring in the same conditions
36636 - --file=FILE[:TEMPLATE]
36637 - instantiate the configuration file FILE
36638 - --header=FILE[:TEMPLATE]
36639 - instantiate the configuration header FILE
36640 +# Must we lock files when doing compilation?
36641 +need_locks=$lt_need_locks
36642
36643 -Configuration files:
36644 -$config_files
36645 +# Manifest tool.
36646 +MANIFEST_TOOL=$lt_MANIFEST_TOOL
36647
36648 -Configuration headers:
36649 -$config_headers
36650 +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36651 +DSYMUTIL=$lt_DSYMUTIL
36652
36653 -Configuration commands:
36654 -$config_commands
36655 +# Tool to change global to local symbols on Mac OS X.
36656 +NMEDIT=$lt_NMEDIT
36657
36658 -Report bugs to <bug-autoconf@gnu.org>."
36659 +# Tool to manipulate fat objects and archives on Mac OS X.
36660 +LIPO=$lt_LIPO
36661
36662 -_ACEOF
36663 -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36664 -ac_cs_version="\\
36665 -libglade config.status 2.6.4
36666 -configured by $0, generated by GNU Autoconf 2.62,
36667 - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
36668 +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
36669 +OTOOL=$lt_OTOOL
36670
36671 -Copyright (C) 2008 Free Software Foundation, Inc.
36672 -This config.status script is free software; the Free Software Foundation
36673 -gives unlimited permission to copy, distribute and modify it."
36674 +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36675 +OTOOL64=$lt_OTOOL64
36676
36677 -ac_pwd='$ac_pwd'
36678 -srcdir='$srcdir'
36679 -INSTALL='$INSTALL'
36680 -MKDIR_P='$MKDIR_P'
36681 -AWK='$AWK'
36682 -test -n "\$AWK" || AWK=awk
36683 -_ACEOF
36684 +# Old archive suffix (normally "a").
36685 +libext=$libext
36686
36687 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36688 -# The default lists apply if the user does not specify any file.
36689 -ac_need_defaults=:
36690 -while test $# != 0
36691 -do
36692 - case $1 in
36693 - --*=*)
36694 - ac_option=`expr "X$1" : 'X\([^=]*\)='`
36695 - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36696 - ac_shift=:
36697 - ;;
36698 - *)
36699 - ac_option=$1
36700 - ac_optarg=$2
36701 - ac_shift=shift
36702 - ;;
36703 - esac
36704 +# Shared library suffix (normally ".so").
36705 +shrext_cmds=$lt_shrext_cmds
36706
36707 - case $ac_option in
36708 - # Handling of the options.
36709 - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36710 - ac_cs_recheck=: ;;
36711 - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36712 - $as_echo "$ac_cs_version"; exit ;;
36713 - --debug | --debu | --deb | --de | --d | -d )
36714 - debug=: ;;
36715 - --file | --fil | --fi | --f )
36716 - $ac_shift
36717 - case $ac_optarg in
36718 - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36719 - esac
36720 - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
36721 - ac_need_defaults=false;;
36722 - --header | --heade | --head | --hea )
36723 - $ac_shift
36724 - case $ac_optarg in
36725 - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36726 - esac
36727 - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
36728 - ac_need_defaults=false;;
36729 - --he | --h)
36730 - # Conflict between --help and --header
36731 - { $as_echo "$as_me: error: ambiguous option: $1
36732 -Try \`$0 --help' for more information." >&2
36733 - { (exit 1); exit 1; }; };;
36734 - --help | --hel | -h )
36735 - $as_echo "$ac_cs_usage"; exit ;;
36736 - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36737 - | -silent | --silent | --silen | --sile | --sil | --si | --s)
36738 - ac_cs_silent=: ;;
36739 +# The commands to extract the exported symbol list from a shared archive.
36740 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
36741 +
36742 +# Variables whose values should be saved in libtool wrapper scripts and
36743 +# restored at link time.
36744 +variables_saved_for_relink=$lt_variables_saved_for_relink
36745 +
36746 +# Do we need the "lib" prefix for modules?
36747 +need_lib_prefix=$need_lib_prefix
36748
36749 - # This is an error.
36750 - -*) { $as_echo "$as_me: error: unrecognized option: $1
36751 -Try \`$0 --help' for more information." >&2
36752 - { (exit 1); exit 1; }; } ;;
36753 +# Do we need a version for libraries?
36754 +need_version=$need_version
36755
36756 - *) ac_config_targets="$ac_config_targets $1"
36757 - ac_need_defaults=false ;;
36758 +# Library versioning type.
36759 +version_type=$version_type
36760
36761 - esac
36762 - shift
36763 -done
36764 +# Shared library runtime path variable.
36765 +runpath_var=$runpath_var
36766
36767 -ac_configure_extra_args=
36768 +# Shared library path variable.
36769 +shlibpath_var=$shlibpath_var
36770
36771 -if $ac_cs_silent; then
36772 - exec 6>/dev/null
36773 - ac_configure_extra_args="$ac_configure_extra_args --silent"
36774 -fi
36775 +# Is shlibpath searched before the hard-coded library search path?
36776 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36777
36778 -_ACEOF
36779 -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36780 -if \$ac_cs_recheck; then
36781 - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36782 - shift
36783 - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36784 - CONFIG_SHELL='$SHELL'
36785 - export CONFIG_SHELL
36786 - exec "\$@"
36787 -fi
36788 +# Format of library name prefix.
36789 +libname_spec=$lt_libname_spec
36790
36791 -_ACEOF
36792 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36793 -exec 5>>config.log
36794 -{
36795 - echo
36796 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36797 -## Running $as_me. ##
36798 -_ASBOX
36799 - $as_echo "$ac_log"
36800 -} >&5
36801 +# List of archive names. First name is the real one, the rest are links.
36802 +# The last name is the one that the linker finds with -lNAME
36803 +library_names_spec=$lt_library_names_spec
36804
36805 -_ACEOF
36806 -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36807 -#
36808 -# INIT-COMMANDS
36809 -#
36810 -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36811 +# The coded name of the library, if different from the real name.
36812 +soname_spec=$lt_soname_spec
36813
36814 +# Permission mode override for installation of shared libraries.
36815 +install_override_mode=$lt_install_override_mode
36816
36817 -_ACEOF
36818 +# Command to use after installation of a shared archive.
36819 +postinstall_cmds=$lt_postinstall_cmds
36820
36821 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36822 +# Command to use after uninstallation of a shared archive.
36823 +postuninstall_cmds=$lt_postuninstall_cmds
36824
36825 -# Handling of arguments.
36826 -for ac_config_target in $ac_config_targets
36827 -do
36828 - case $ac_config_target in
36829 - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36830 - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36831 - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
36832 - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36833 - "libglade.spec") CONFIG_FILES="$CONFIG_FILES libglade.spec" ;;
36834 - "libglade-zip") CONFIG_FILES="$CONFIG_FILES libglade-zip" ;;
36835 - "glade/Makefile") CONFIG_FILES="$CONFIG_FILES glade/Makefile" ;;
36836 - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36837 - "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
36838 - "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
36839 - "libglade-2.0.pc") CONFIG_FILES="$CONFIG_FILES libglade-2.0.pc" ;;
36840 - "libglade-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libglade-2.0-uninstalled.pc" ;;
36841 - "libglade-convert") CONFIG_FILES="$CONFIG_FILES libglade-convert" ;;
36842 +# Commands used to finish a libtool library installation in a directory.
36843 +finish_cmds=$lt_finish_cmds
36844
36845 - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36846 -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36847 - { (exit 1); exit 1; }; };;
36848 - esac
36849 -done
36850 +# As "finish_cmds", except a single script fragment to be evaled but
36851 +# not shown.
36852 +finish_eval=$lt_finish_eval
36853
36854 +# Whether we should hardcode library paths into libraries.
36855 +hardcode_into_libs=$hardcode_into_libs
36856
36857 -# If the user did not use the arguments to specify the items to instantiate,
36858 -# then the envvar interface is used. Set only those that are not.
36859 -# We use the long form for the default assignment because of an extremely
36860 -# bizarre bug on SunOS 4.1.3.
36861 -if $ac_need_defaults; then
36862 - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36863 - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36864 - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36865 -fi
36866 +# Compile-time system search path for libraries.
36867 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36868
36869 -# Have a temporary directory for convenience. Make it in the build tree
36870 -# simply because there is no reason against having it here, and in addition,
36871 -# creating and moving files from /tmp can sometimes cause problems.
36872 -# Hook for its removal unless debugging.
36873 -# Note that there is a small window in which the directory will not be cleaned:
36874 -# after its creation but before its name has been assigned to `$tmp'.
36875 -$debug ||
36876 -{
36877 - tmp=
36878 - trap 'exit_status=$?
36879 - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36880 -' 0
36881 - trap '{ (exit 1); exit 1; }' 1 2 13 15
36882 -}
36883 -# Create a (secure) tmp directory for tmp files.
36884 +# Run-time system search path for libraries.
36885 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36886
36887 -{
36888 - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36889 - test -n "$tmp" && test -d "$tmp"
36890 -} ||
36891 -{
36892 - tmp=./conf$$-$RANDOM
36893 - (umask 077 && mkdir "$tmp")
36894 -} ||
36895 -{
36896 - $as_echo "$as_me: cannot create a temporary directory in ." >&2
36897 - { (exit 1); exit 1; }
36898 -}
36899 +# Whether dlopen is supported.
36900 +dlopen_support=$enable_dlopen
36901
36902 -# Set up the scripts for CONFIG_FILES section.
36903 -# No need to generate them if there are no CONFIG_FILES.
36904 -# This happens for instance with `./config.status config.h'.
36905 -if test -n "$CONFIG_FILES"; then
36906 +# Whether dlopen of programs is supported.
36907 +dlopen_self=$enable_dlopen_self
36908
36909 +# Whether dlopen of statically linked programs is supported.
36910 +dlopen_self_static=$enable_dlopen_self_static
36911
36912 -ac_cr='
36913 '
36914 -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36915 -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36916 - ac_cs_awk_cr='\\r'
36917 -else
36918 - ac_cs_awk_cr=$ac_cr
36919 -fi
36920 +# Commands to strip libraries.
36921 +old_striplib=$lt_old_striplib
36922 +striplib=$lt_striplib
36923
36924 -echo 'BEGIN {' >"$tmp/subs1.awk" &&
36925 -_ACEOF
36926
36927 +# The linker used to build libraries.
36928 +LD=$lt_LD
36929
36930 -{
36931 - echo "cat >conf$$subs.awk <<_ACEOF" &&
36932 - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36933 - echo "_ACEOF"
36934 -} >conf$$subs.sh ||
36935 - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36936 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36937 - { (exit 1); exit 1; }; }
36938 -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
36939 -ac_delim='%!_!# '
36940 -for ac_last_try in false false false false false :; do
36941 - . ./conf$$subs.sh ||
36942 - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36943 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36944 - { (exit 1); exit 1; }; }
36945 +# How to create reloadable object files.
36946 +reload_flag=$lt_reload_flag
36947 +reload_cmds=$lt_reload_cmds
36948
36949 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
36950 - break
36951 - elif $ac_last_try; then
36952 - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36953 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36954 - { (exit 1); exit 1; }; }
36955 - else
36956 - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36957 - fi
36958 -done
36959 -rm -f conf$$subs.sh
36960 +# Commands used to build an old-style archive.
36961 +old_archive_cmds=$lt_old_archive_cmds
36962
36963 -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36964 -cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
36965 -_ACEOF
36966 -sed -n '
36967 -h
36968 -s/^/S["/; s/!.*/"]=/
36969 -p
36970 -g
36971 -s/^[^!]*!//
36972 -:repl
36973 -t repl
36974 -s/'"$ac_delim"'$//
36975 -t delim
36976 -:nl
36977 -h
36978 -s/\(.\{148\}\).*/\1/
36979 -t more1
36980 -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36981 -p
36982 -n
36983 -b repl
36984 -:more1
36985 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36986 -p
36987 -g
36988 -s/.\{148\}//
36989 -t nl
36990 -:delim
36991 -h
36992 -s/\(.\{148\}\).*/\1/
36993 -t more2
36994 -s/["\\]/\\&/g; s/^/"/; s/$/"/
36995 -p
36996 -b
36997 -:more2
36998 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36999 -p
37000 -g
37001 -s/.\{148\}//
37002 -t delim
37003 -' <conf$$subs.awk | sed '
37004 -/^[^""]/{
37005 - N
37006 - s/\n//
37007 -}
37008 -' >>$CONFIG_STATUS || ac_write_fail=1
37009 -rm -f conf$$subs.awk
37010 -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37011 -_ACAWK
37012 -cat >>"\$tmp/subs1.awk" <<_ACAWK &&
37013 - for (key in S) S_is_set[key] = 1
37014 - FS = ""
37015 +# A language specific compiler.
37016 +CC=$lt_compiler
37017
37018 -}
37019 -{
37020 - line = $ 0
37021 - nfields = split(line, field, "@")
37022 - substed = 0
37023 - len = length(field[1])
37024 - for (i = 2; i < nfields; i++) {
37025 - key = field[i]
37026 - keylen = length(key)
37027 - if (S_is_set[key]) {
37028 - value = S[key]
37029 - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37030 - len += length(value) + length(field[++i])
37031 - substed = 1
37032 - } else
37033 - len += 1 + keylen
37034 - }
37035 +# Is the compiler the GNU compiler?
37036 +with_gcc=$GCC
37037
37038 - print line
37039 -}
37040 +# Compiler flag to turn off builtin functions.
37041 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37042
37043 -_ACAWK
37044 -_ACEOF
37045 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37046 -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37047 - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37048 -else
37049 - cat
37050 -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
37051 - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
37052 -$as_echo "$as_me: error: could not setup config files machinery" >&2;}
37053 - { (exit 1); exit 1; }; }
37054 -_ACEOF
37055 +# Additional compiler flags for building library objects.
37056 +pic_flag=$lt_lt_prog_compiler_pic
37057 +
37058 +# How to pass a linker flag through the compiler.
37059 +wl=$lt_lt_prog_compiler_wl
37060 +
37061 +# Compiler flag to prevent dynamic linking.
37062 +link_static_flag=$lt_lt_prog_compiler_static
37063 +
37064 +# Does compiler simultaneously support -c and -o options?
37065 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37066 +
37067 +# Whether or not to add -lc for building shared libraries.
37068 +build_libtool_need_lc=$archive_cmds_need_lc
37069 +
37070 +# Whether or not to disallow shared libs when runtime libs are static.
37071 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37072 +
37073 +# Compiler flag to allow reflexive dlopens.
37074 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37075 +
37076 +# Compiler flag to generate shared objects directly from archives.
37077 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
37078 +
37079 +# Whether the compiler copes with passing no objects directly.
37080 +compiler_needs_object=$lt_compiler_needs_object
37081 +
37082 +# Create an old-style archive from a shared archive.
37083 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37084
37085 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
37086 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37087 -# trailing colons and then remove the whole line if VPATH becomes empty
37088 -# (actually we leave an empty line to preserve line numbers).
37089 -if test "x$srcdir" = x.; then
37090 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
37091 -s/:*\$(srcdir):*/:/
37092 -s/:*\${srcdir}:*/:/
37093 -s/:*@srcdir@:*/:/
37094 -s/^\([^=]*=[ ]*\):*/\1/
37095 -s/:*$//
37096 -s/^[^=]*=[ ]*$//
37097 -}'
37098 -fi
37099 +# Create a temporary old-style archive to link instead of a shared archive.
37100 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37101
37102 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37103 -fi # test -n "$CONFIG_FILES"
37104 +# Commands used to build a shared archive.
37105 +archive_cmds=$lt_archive_cmds
37106 +archive_expsym_cmds=$lt_archive_expsym_cmds
37107
37108 -# Set up the scripts for CONFIG_HEADERS section.
37109 -# No need to generate them if there are no CONFIG_HEADERS.
37110 -# This happens for instance with `./config.status Makefile'.
37111 -if test -n "$CONFIG_HEADERS"; then
37112 -cat >"$tmp/defines.awk" <<\_ACAWK ||
37113 -BEGIN {
37114 -_ACEOF
37115 +# Commands used to build a loadable module if different from building
37116 +# a shared archive.
37117 +module_cmds=$lt_module_cmds
37118 +module_expsym_cmds=$lt_module_expsym_cmds
37119
37120 -# Transform confdefs.h into an awk script `defines.awk', embedded as
37121 -# here-document in config.status, that substitutes the proper values into
37122 -# config.h.in to produce config.h.
37123 +# Whether we are building with GNU ld or not.
37124 +with_gnu_ld=$lt_with_gnu_ld
37125
37126 -# Create a delimiter string that does not exist in confdefs.h, to ease
37127 -# handling of long lines.
37128 -ac_delim='%!_!# '
37129 -for ac_last_try in false false :; do
37130 - ac_t=`sed -n "/$ac_delim/p" confdefs.h`
37131 - if test -z "$ac_t"; then
37132 - break
37133 - elif $ac_last_try; then
37134 - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
37135 -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
37136 - { (exit 1); exit 1; }; }
37137 - else
37138 - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37139 - fi
37140 -done
37141 +# Flag that allows shared libraries with undefined symbols to be built.
37142 +allow_undefined_flag=$lt_allow_undefined_flag
37143
37144 -# For the awk script, D is an array of macro values keyed by name,
37145 -# likewise P contains macro parameters if any. Preserve backslash
37146 -# newline sequences.
37147 +# Flag that enforces no undefined symbols.
37148 +no_undefined_flag=$lt_no_undefined_flag
37149
37150 -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37151 -sed -n '
37152 -s/.\{148\}/&'"$ac_delim"'/g
37153 -t rset
37154 -:rset
37155 -s/^[ ]*#[ ]*define[ ][ ]*/ /
37156 -t def
37157 -d
37158 -:def
37159 -s/\\$//
37160 -t bsnl
37161 -s/["\\]/\\&/g
37162 -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37163 -D["\1"]=" \3"/p
37164 -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37165 -d
37166 -:bsnl
37167 -s/["\\]/\\&/g
37168 -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37169 -D["\1"]=" \3\\\\\\n"\\/p
37170 -t cont
37171 -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37172 -t cont
37173 -d
37174 -:cont
37175 -n
37176 -s/.\{148\}/&'"$ac_delim"'/g
37177 -t clear
37178 -:clear
37179 -s/\\$//
37180 -t bsnlc
37181 -s/["\\]/\\&/g; s/^/"/; s/$/"/p
37182 -d
37183 -:bsnlc
37184 -s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37185 -b cont
37186 -' <confdefs.h | sed '
37187 -s/'"$ac_delim"'/"\\\
37188 -"/g' >>$CONFIG_STATUS || ac_write_fail=1
37189 +# Flag to hardcode \$libdir into a binary during linking.
37190 +# This must work even if \$libdir does not exist
37191 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37192
37193 -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37194 - for (key in D) D_is_set[key] = 1
37195 - FS = ""
37196 -}
37197 -/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37198 - line = \$ 0
37199 - split(line, arg, " ")
37200 - if (arg[1] == "#") {
37201 - defundef = arg[2]
37202 - mac1 = arg[3]
37203 - } else {
37204 - defundef = substr(arg[1], 2)
37205 - mac1 = arg[2]
37206 - }
37207 - split(mac1, mac2, "(") #)
37208 - macro = mac2[1]
37209 - if (D_is_set[macro]) {
37210 - # Preserve the white space surrounding the "#".
37211 - prefix = substr(line, 1, index(line, defundef) - 1)
37212 - print prefix "define", macro P[macro] D[macro]
37213 - next
37214 - } else {
37215 - # Replace #undef with comments. This is necessary, for example,
37216 - # in the case of _POSIX_SOURCE, which is predefined and required
37217 - # on some systems where configure will not decide to define it.
37218 - if (defundef == "undef") {
37219 - print "/*", line, "*/"
37220 - next
37221 - }
37222 - }
37223 -}
37224 -{ print }
37225 -_ACAWK
37226 -_ACEOF
37227 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37228 - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
37229 -$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
37230 - { (exit 1); exit 1; }; }
37231 -fi # test -n "$CONFIG_HEADERS"
37232 +# Whether we need a single "-rpath" flag with a separated argument.
37233 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
37234
37235 +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37236 +# DIR into the resulting binary.
37237 +hardcode_direct=$hardcode_direct
37238
37239 -eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37240 -shift
37241 -for ac_tag
37242 -do
37243 - case $ac_tag in
37244 - :[FHLC]) ac_mode=$ac_tag; continue;;
37245 - esac
37246 - case $ac_mode$ac_tag in
37247 - :[FHL]*:*);;
37248 - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
37249 -$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
37250 - { (exit 1); exit 1; }; };;
37251 - :[FH]-) ac_tag=-:-;;
37252 - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37253 - esac
37254 - ac_save_IFS=$IFS
37255 - IFS=:
37256 - set x $ac_tag
37257 - IFS=$ac_save_IFS
37258 - shift
37259 - ac_file=$1
37260 - shift
37261 +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37262 +# DIR into the resulting binary and the resulting library dependency is
37263 +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37264 +# library is relocated.
37265 +hardcode_direct_absolute=$hardcode_direct_absolute
37266
37267 - case $ac_mode in
37268 - :L) ac_source=$1;;
37269 - :[FH])
37270 - ac_file_inputs=
37271 - for ac_f
37272 - do
37273 - case $ac_f in
37274 - -) ac_f="$tmp/stdin";;
37275 - *) # Look for the file first in the build tree, then in the source tree
37276 - # (if the path is not absolute). The absolute path cannot be DOS-style,
37277 - # because $ac_f cannot contain `:'.
37278 - test -f "$ac_f" ||
37279 - case $ac_f in
37280 - [\\/$]*) false;;
37281 - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37282 - esac ||
37283 - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
37284 -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
37285 - { (exit 1); exit 1; }; };;
37286 - esac
37287 - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37288 - ac_file_inputs="$ac_file_inputs '$ac_f'"
37289 - done
37290 +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37291 +# into the resulting binary.
37292 +hardcode_minus_L=$hardcode_minus_L
37293
37294 - # Let's still pretend it is `configure' which instantiates (i.e., don't
37295 - # use $as_me), people would be surprised to read:
37296 - # /* config.h. Generated by config.status. */
37297 - configure_input='Generated from '`
37298 - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37299 - `' by configure.'
37300 - if test x"$ac_file" != x-; then
37301 - configure_input="$ac_file. $configure_input"
37302 - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
37303 -$as_echo "$as_me: creating $ac_file" >&6;}
37304 - fi
37305 - # Neutralize special characters interpreted by sed in replacement strings.
37306 - case $configure_input in #(
37307 - *\&* | *\|* | *\\* )
37308 - ac_sed_conf_input=`$as_echo "$configure_input" |
37309 - sed 's/[\\\\&|]/\\\\&/g'`;; #(
37310 - *) ac_sed_conf_input=$configure_input;;
37311 - esac
37312 +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37313 +# into the resulting binary.
37314 +hardcode_shlibpath_var=$hardcode_shlibpath_var
37315
37316 - case $ac_tag in
37317 - *:-:* | *:-) cat >"$tmp/stdin" \
37318 - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37319 -$as_echo "$as_me: error: could not create $ac_file" >&2;}
37320 - { (exit 1); exit 1; }; } ;;
37321 - esac
37322 - ;;
37323 - esac
37324 +# Set to "yes" if building a shared library automatically hardcodes DIR
37325 +# into the library and all subsequent libraries and executables linked
37326 +# against it.
37327 +hardcode_automatic=$hardcode_automatic
37328
37329 - ac_dir=`$as_dirname -- "$ac_file" ||
37330 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37331 - X"$ac_file" : 'X\(//\)[^/]' \| \
37332 - X"$ac_file" : 'X\(//\)$' \| \
37333 - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37334 -$as_echo X"$ac_file" |
37335 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37336 - s//\1/
37337 - q
37338 - }
37339 - /^X\(\/\/\)[^/].*/{
37340 - s//\1/
37341 - q
37342 - }
37343 - /^X\(\/\/\)$/{
37344 - s//\1/
37345 - q
37346 - }
37347 - /^X\(\/\).*/{
37348 - s//\1/
37349 - q
37350 - }
37351 - s/.*/./; q'`
37352 - { as_dir="$ac_dir"
37353 - case $as_dir in #(
37354 - -*) as_dir=./$as_dir;;
37355 - esac
37356 - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
37357 - as_dirs=
37358 - while :; do
37359 - case $as_dir in #(
37360 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37361 - *) as_qdir=$as_dir;;
37362 - esac
37363 - as_dirs="'$as_qdir' $as_dirs"
37364 - as_dir=`$as_dirname -- "$as_dir" ||
37365 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37366 - X"$as_dir" : 'X\(//\)[^/]' \| \
37367 - X"$as_dir" : 'X\(//\)$' \| \
37368 - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37369 -$as_echo X"$as_dir" |
37370 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37371 - s//\1/
37372 - q
37373 - }
37374 - /^X\(\/\/\)[^/].*/{
37375 - s//\1/
37376 - q
37377 - }
37378 - /^X\(\/\/\)$/{
37379 - s//\1/
37380 - q
37381 - }
37382 - /^X\(\/\).*/{
37383 - s//\1/
37384 - q
37385 - }
37386 - s/.*/./; q'`
37387 - test -d "$as_dir" && break
37388 - done
37389 - test -z "$as_dirs" || eval "mkdir $as_dirs"
37390 - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
37391 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
37392 - { (exit 1); exit 1; }; }; }
37393 - ac_builddir=.
37394 +# Set to yes if linker adds runtime paths of dependent libraries
37395 +# to runtime path list.
37396 +inherit_rpath=$inherit_rpath
37397
37398 -case "$ac_dir" in
37399 -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37400 -*)
37401 - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37402 - # A ".." for each directory in $ac_dir_suffix.
37403 - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37404 - case $ac_top_builddir_sub in
37405 - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37406 - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37407 - esac ;;
37408 -esac
37409 -ac_abs_top_builddir=$ac_pwd
37410 -ac_abs_builddir=$ac_pwd$ac_dir_suffix
37411 -# for backward compatibility:
37412 -ac_top_builddir=$ac_top_build_prefix
37413 +# Whether libtool must link a program against all its dependency libraries.
37414 +link_all_deplibs=$link_all_deplibs
37415 +
37416 +# Set to "yes" if exported symbols are required.
37417 +always_export_symbols=$always_export_symbols
37418
37419 -case $srcdir in
37420 - .) # We are building in place.
37421 - ac_srcdir=.
37422 - ac_top_srcdir=$ac_top_builddir_sub
37423 - ac_abs_top_srcdir=$ac_pwd ;;
37424 - [\\/]* | ?:[\\/]* ) # Absolute name.
37425 - ac_srcdir=$srcdir$ac_dir_suffix;
37426 - ac_top_srcdir=$srcdir
37427 - ac_abs_top_srcdir=$srcdir ;;
37428 - *) # Relative name.
37429 - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37430 - ac_top_srcdir=$ac_top_build_prefix$srcdir
37431 - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37432 -esac
37433 -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37434 +# The commands to list exported symbols.
37435 +export_symbols_cmds=$lt_export_symbols_cmds
37436
37437 +# Symbols that should not be listed in the preloaded symbols.
37438 +exclude_expsyms=$lt_exclude_expsyms
37439
37440 - case $ac_mode in
37441 - :F)
37442 - #
37443 - # CONFIG_FILE
37444 - #
37445 +# Symbols that must always be exported.
37446 +include_expsyms=$lt_include_expsyms
37447
37448 - case $INSTALL in
37449 - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37450 - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37451 - esac
37452 - ac_MKDIR_P=$MKDIR_P
37453 - case $MKDIR_P in
37454 - [\\/$]* | ?:[\\/]* ) ;;
37455 - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37456 - esac
37457 -_ACEOF
37458 +# Commands necessary for linking programs (against libraries) with templates.
37459 +prelink_cmds=$lt_prelink_cmds
37460
37461 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37462 -# If the template does not know about datarootdir, expand it.
37463 -# FIXME: This hack should be removed a few years after 2.60.
37464 -ac_datarootdir_hack=; ac_datarootdir_seen=
37465 +# Commands necessary for finishing linking programs.
37466 +postlink_cmds=$lt_postlink_cmds
37467
37468 -ac_sed_dataroot='
37469 -/datarootdir/ {
37470 - p
37471 - q
37472 -}
37473 -/@datadir@/p
37474 -/@docdir@/p
37475 -/@infodir@/p
37476 -/@localedir@/p
37477 -/@mandir@/p
37478 -'
37479 -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37480 -*datarootdir*) ac_datarootdir_seen=yes;;
37481 -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37482 - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37483 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37484 -_ACEOF
37485 -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37486 - ac_datarootdir_hack='
37487 - s&@datadir@&$datadir&g
37488 - s&@docdir@&$docdir&g
37489 - s&@infodir@&$infodir&g
37490 - s&@localedir@&$localedir&g
37491 - s&@mandir@&$mandir&g
37492 - s&\\\${datarootdir}&$datarootdir&g' ;;
37493 -esac
37494 -_ACEOF
37495 +# Specify filename containing input files.
37496 +file_list_spec=$lt_file_list_spec
37497
37498 -# Neutralize VPATH when `$srcdir' = `.'.
37499 -# Shell code in configure.ac might set extrasub.
37500 -# FIXME: do we really want to maintain this feature?
37501 -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37502 -ac_sed_extra="$ac_vpsub
37503 -$extrasub
37504 -_ACEOF
37505 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37506 -:t
37507 -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37508 -s|@configure_input@|$ac_sed_conf_input|;t t
37509 -s&@top_builddir@&$ac_top_builddir_sub&;t t
37510 -s&@top_build_prefix@&$ac_top_build_prefix&;t t
37511 -s&@srcdir@&$ac_srcdir&;t t
37512 -s&@abs_srcdir@&$ac_abs_srcdir&;t t
37513 -s&@top_srcdir@&$ac_top_srcdir&;t t
37514 -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37515 -s&@builddir@&$ac_builddir&;t t
37516 -s&@abs_builddir@&$ac_abs_builddir&;t t
37517 -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37518 -s&@INSTALL@&$ac_INSTALL&;t t
37519 -s&@MKDIR_P@&$ac_MKDIR_P&;t t
37520 -$ac_datarootdir_hack
37521 -"
37522 -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
37523 - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37524 -$as_echo "$as_me: error: could not create $ac_file" >&2;}
37525 - { (exit 1); exit 1; }; }
37526 +# How to hardcode a shared library path into an executable.
37527 +hardcode_action=$hardcode_action
37528
37529 -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37530 - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
37531 - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
37532 - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37533 -which seems to be undefined. Please make sure it is defined." >&5
37534 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37535 -which seems to be undefined. Please make sure it is defined." >&2;}
37536 +# ### END LIBTOOL CONFIG
37537
37538 - rm -f "$tmp/stdin"
37539 - case $ac_file in
37540 - -) cat "$tmp/out" && rm -f "$tmp/out";;
37541 - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
37542 - esac \
37543 - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37544 -$as_echo "$as_me: error: could not create $ac_file" >&2;}
37545 - { (exit 1); exit 1; }; }
37546 - ;;
37547 - :H)
37548 - #
37549 - # CONFIG_HEADER
37550 - #
37551 - if test x"$ac_file" != x-; then
37552 - {
37553 - $as_echo "/* $configure_input */" \
37554 - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
37555 - } >"$tmp/config.h" \
37556 - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37557 -$as_echo "$as_me: error: could not create $ac_file" >&2;}
37558 - { (exit 1); exit 1; }; }
37559 - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
37560 - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37561 -$as_echo "$as_me: $ac_file is unchanged" >&6;}
37562 - else
37563 - rm -f "$ac_file"
37564 - mv "$tmp/config.h" "$ac_file" \
37565 - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37566 -$as_echo "$as_me: error: could not create $ac_file" >&2;}
37567 - { (exit 1); exit 1; }; }
37568 - fi
37569 - else
37570 - $as_echo "/* $configure_input */" \
37571 - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
37572 - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
37573 -$as_echo "$as_me: error: could not create -" >&2;}
37574 - { (exit 1); exit 1; }; }
37575 - fi
37576 -# Compute "$ac_file"'s index in $config_headers.
37577 -_am_arg="$ac_file"
37578 -_am_stamp_count=1
37579 -for _am_header in $config_headers :; do
37580 - case $_am_header in
37581 - $_am_arg | $_am_arg:* )
37582 - break ;;
37583 - * )
37584 - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37585 - esac
37586 -done
37587 -echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37588 -$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37589 - X"$_am_arg" : 'X\(//\)[^/]' \| \
37590 - X"$_am_arg" : 'X\(//\)$' \| \
37591 - X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37592 -$as_echo X"$_am_arg" |
37593 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37594 - s//\1/
37595 - q
37596 - }
37597 - /^X\(\/\/\)[^/].*/{
37598 - s//\1/
37599 - q
37600 - }
37601 - /^X\(\/\/\)$/{
37602 - s//\1/
37603 - q
37604 - }
37605 - /^X\(\/\).*/{
37606 - s//\1/
37607 - q
37608 - }
37609 - s/.*/./; q'`/stamp-h$_am_stamp_count
37610 - ;;
37611 +_LT_EOF
37612
37613 - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
37614 -$as_echo "$as_me: executing $ac_file commands" >&6;}
37615 - ;;
37616 + case $host_os in
37617 + aix3*)
37618 + cat <<\_LT_EOF >> "$cfgfile"
37619 +# AIX sometimes has problems with the GCC collect2 program. For some
37620 +# reason, if we set the COLLECT_NAMES environment variable, the problems
37621 +# vanish in a puff of smoke.
37622 +if test "X${COLLECT_NAMES+set}" != Xset; then
37623 + COLLECT_NAMES=
37624 + export COLLECT_NAMES
37625 +fi
37626 +_LT_EOF
37627 + ;;
37628 esac
37629
37630
37631 - case $ac_file$ac_mode in
37632 - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
37633 - # Strip MF so we end up with the name of the file.
37634 - mf=`echo "$mf" | sed -e 's/:.*$//'`
37635 - # Check whether this is an Automake generated Makefile or not.
37636 - # We used to match only the files named `Makefile.in', but
37637 - # some people rename them; so instead we look at the file content.
37638 - # Grep'ing the first line is not enough: some people post-process
37639 - # each Makefile.in and add a new line on top of each file to say so.
37640 - # Grep'ing the whole file is not good either: AIX grep has a line
37641 - # limit of 2048, but all sed's we know have understand at least 4000.
37642 - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37643 - dirpart=`$as_dirname -- "$mf" ||
37644 -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37645 - X"$mf" : 'X\(//\)[^/]' \| \
37646 - X"$mf" : 'X\(//\)$' \| \
37647 - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37648 -$as_echo X"$mf" |
37649 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37650 - s//\1/
37651 - q
37652 - }
37653 - /^X\(\/\/\)[^/].*/{
37654 - s//\1/
37655 - q
37656 - }
37657 - /^X\(\/\/\)$/{
37658 - s//\1/
37659 - q
37660 - }
37661 - /^X\(\/\).*/{
37662 - s//\1/
37663 - q
37664 - }
37665 - s/.*/./; q'`
37666 - else
37667 - continue
37668 - fi
37669 - # Extract the definition of DEPDIR, am__include, and am__quote
37670 - # from the Makefile without running `make'.
37671 - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37672 - test -z "$DEPDIR" && continue
37673 - am__include=`sed -n 's/^am__include = //p' < "$mf"`
37674 - test -z "am__include" && continue
37675 - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37676 - # When using ansi2knr, U may be empty or an underscore; expand it
37677 - U=`sed -n 's/^U = //p' < "$mf"`
37678 - # Find all dependency output files, they are included files with
37679 - # $(DEPDIR) in their names. We invoke sed twice because it is the
37680 - # simplest approach to changing $(DEPDIR) to its actual value in the
37681 - # expansion.
37682 - for file in `sed -n "
37683 - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37684 - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37685 - # Make sure the directory exists.
37686 - test -f "$dirpart/$file" && continue
37687 - fdir=`$as_dirname -- "$file" ||
37688 -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37689 - X"$file" : 'X\(//\)[^/]' \| \
37690 - X"$file" : 'X\(//\)$' \| \
37691 - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37692 -$as_echo X"$file" |
37693 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37694 - s//\1/
37695 - q
37696 - }
37697 - /^X\(\/\/\)[^/].*/{
37698 - s//\1/
37699 - q
37700 - }
37701 - /^X\(\/\/\)$/{
37702 - s//\1/
37703 - q
37704 - }
37705 - /^X\(\/\).*/{
37706 - s//\1/
37707 - q
37708 - }
37709 - s/.*/./; q'`
37710 - { as_dir=$dirpart/$fdir
37711 - case $as_dir in #(
37712 - -*) as_dir=./$as_dir;;
37713 - esac
37714 - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
37715 - as_dirs=
37716 - while :; do
37717 - case $as_dir in #(
37718 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37719 - *) as_qdir=$as_dir;;
37720 - esac
37721 - as_dirs="'$as_qdir' $as_dirs"
37722 - as_dir=`$as_dirname -- "$as_dir" ||
37723 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37724 - X"$as_dir" : 'X\(//\)[^/]' \| \
37725 - X"$as_dir" : 'X\(//\)$' \| \
37726 - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37727 -$as_echo X"$as_dir" |
37728 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37729 - s//\1/
37730 - q
37731 - }
37732 - /^X\(\/\/\)[^/].*/{
37733 - s//\1/
37734 - q
37735 - }
37736 - /^X\(\/\/\)$/{
37737 - s//\1/
37738 - q
37739 - }
37740 - /^X\(\/\).*/{
37741 - s//\1/
37742 - q
37743 - }
37744 - s/.*/./; q'`
37745 - test -d "$as_dir" && break
37746 - done
37747 - test -z "$as_dirs" || eval "mkdir $as_dirs"
37748 - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
37749 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
37750 - { (exit 1); exit 1; }; }; }
37751 - # echo "creating $dirpart/$file"
37752 - echo '# dummy' > "$dirpart/$file"
37753 - done
37754 -done
37755 +ltmain="$ac_aux_dir/ltmain.sh"
37756 +
37757 +
37758 + # We use sed instead of cat because bash on DJGPP gets confused if
37759 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
37760 + # text mode, it properly converts lines to CR/LF. This bash problem
37761 + # is reportedly fixed, but why not run on old versions too?
37762 + sed '$q' "$ltmain" >> "$cfgfile" \
37763 + || (rm -f "$cfgfile"; exit 1)
37764 +
37765 + if test x"$xsi_shell" = xyes; then
37766 + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37767 +func_dirname ()\
37768 +{\
37769 +\ case ${1} in\
37770 +\ */*) func_dirname_result="${1%/*}${2}" ;;\
37771 +\ * ) func_dirname_result="${3}" ;;\
37772 +\ esac\
37773 +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37774 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37775 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37776 +test 0 -eq $? || _lt_function_replace_fail=:
37777 +
37778 +
37779 + sed -e '/^func_basename ()$/,/^} # func_basename /c\
37780 +func_basename ()\
37781 +{\
37782 +\ func_basename_result="${1##*/}"\
37783 +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37784 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37785 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37786 +test 0 -eq $? || _lt_function_replace_fail=:
37787 +
37788 +
37789 + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37790 +func_dirname_and_basename ()\
37791 +{\
37792 +\ case ${1} in\
37793 +\ */*) func_dirname_result="${1%/*}${2}" ;;\
37794 +\ * ) func_dirname_result="${3}" ;;\
37795 +\ esac\
37796 +\ func_basename_result="${1##*/}"\
37797 +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37798 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37799 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37800 +test 0 -eq $? || _lt_function_replace_fail=:
37801 +
37802 +
37803 + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37804 +func_stripname ()\
37805 +{\
37806 +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37807 +\ # positional parameters, so assign one to ordinary parameter first.\
37808 +\ func_stripname_result=${3}\
37809 +\ func_stripname_result=${func_stripname_result#"${1}"}\
37810 +\ func_stripname_result=${func_stripname_result%"${2}"}\
37811 +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37812 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37813 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37814 +test 0 -eq $? || _lt_function_replace_fail=:
37815 +
37816 +
37817 + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37818 +func_split_long_opt ()\
37819 +{\
37820 +\ func_split_long_opt_name=${1%%=*}\
37821 +\ func_split_long_opt_arg=${1#*=}\
37822 +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37823 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37824 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37825 +test 0 -eq $? || _lt_function_replace_fail=:
37826 +
37827 +
37828 + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37829 +func_split_short_opt ()\
37830 +{\
37831 +\ func_split_short_opt_arg=${1#??}\
37832 +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37833 +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37834 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37835 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37836 +test 0 -eq $? || _lt_function_replace_fail=:
37837 +
37838 +
37839 + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37840 +func_lo2o ()\
37841 +{\
37842 +\ case ${1} in\
37843 +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37844 +\ *) func_lo2o_result=${1} ;;\
37845 +\ esac\
37846 +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37847 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37848 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37849 +test 0 -eq $? || _lt_function_replace_fail=:
37850 +
37851 +
37852 + sed -e '/^func_xform ()$/,/^} # func_xform /c\
37853 +func_xform ()\
37854 +{\
37855 + func_xform_result=${1%.*}.lo\
37856 +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37857 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37858 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37859 +test 0 -eq $? || _lt_function_replace_fail=:
37860 +
37861 +
37862 + sed -e '/^func_arith ()$/,/^} # func_arith /c\
37863 +func_arith ()\
37864 +{\
37865 + func_arith_result=$(( $* ))\
37866 +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37867 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37868 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37869 +test 0 -eq $? || _lt_function_replace_fail=:
37870 +
37871 +
37872 + sed -e '/^func_len ()$/,/^} # func_len /c\
37873 +func_len ()\
37874 +{\
37875 + func_len_result=${#1}\
37876 +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37877 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37878 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37879 +test 0 -eq $? || _lt_function_replace_fail=:
37880 +
37881 +fi
37882 +
37883 +if test x"$lt_shell_append" = xyes; then
37884 + sed -e '/^func_append ()$/,/^} # func_append /c\
37885 +func_append ()\
37886 +{\
37887 + eval "${1}+=\\${2}"\
37888 +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37889 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37890 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37891 +test 0 -eq $? || _lt_function_replace_fail=:
37892 +
37893 +
37894 + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37895 +func_append_quoted ()\
37896 +{\
37897 +\ func_quote_for_eval "${2}"\
37898 +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37899 +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37900 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37901 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37902 +test 0 -eq $? || _lt_function_replace_fail=:
37903 +
37904 +
37905 + # Save a `func_append' function call where possible by direct use of '+='
37906 + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37907 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37908 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37909 + test 0 -eq $? || _lt_function_replace_fail=:
37910 +else
37911 + # Save a `func_append' function call even when '+=' is not available
37912 + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37913 + && mv -f "$cfgfile.tmp" "$cfgfile" \
37914 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37915 + test 0 -eq $? || _lt_function_replace_fail=:
37916 +fi
37917 +
37918 +if test x"$_lt_function_replace_fail" = x":"; then
37919 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37920 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37921 +fi
37922 +
37923 +
37924 + mv -f "$cfgfile" "$ofile" ||
37925 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37926 + chmod +x "$ofile"
37927 +
37928 ;;
37929 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
37930 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
37931 @@ -14841,15 +15937,12 @@ done
37932 done # for ac_tag
37933
37934
37935 -{ (exit 0); exit 0; }
37936 +as_fn_exit 0
37937 _ACEOF
37938 -chmod +x $CONFIG_STATUS
37939 ac_clean_files=$ac_clean_files_save
37940
37941 test $ac_write_fail = 0 ||
37942 - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
37943 -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
37944 - { (exit 1); exit 1; }; }
37945 + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37946
37947
37948 # configure is writing to config.log, and then calls config.status.
37949 @@ -14870,11 +15963,11 @@ if test "$no_create" != yes; then
37950 exec 5>>config.log
37951 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37952 # would make configure fail if this is the last instruction.
37953 - $ac_cs_success || { (exit 1); exit 1; }
37954 + $ac_cs_success || as_fn_exit 1
37955 fi
37956 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37957 - { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
37958 -$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
37959 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37960 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37961 fi
37962
37963
14 diff --git a/configure.in b/configure.in 37964 diff --git a/configure.in b/configure.in
15 index e0c52a8..e4691a3 100644 37965 index e0c52a8..e4691a3 100644
16 --- a/configure.in 37966 --- a/configure.in
17 +++ b/configure.in 37967 +++ b/configure.in
18 @@ -15,6 +15,16 @@ AC_CONFIG_HEADERS([config.h]) 37968 @@ -15,6 +15,16 @@ AC_CONFIG_HEADERS([config.h])
45 - glib-2.0 >= required_glib_version]) 37995 - glib-2.0 >= required_glib_version])
46 - 37996 -
47 AC_MSG_CHECKING([for native Win32]) 37997 AC_MSG_CHECKING([for native Win32])
48 case "$host" in 37998 case "$host" in
49 *-*-mingw*) 37999 *-*-mingw*)
38000 diff --git a/doc/Makefile.in b/doc/Makefile.in
38001 index 8032485..d67bcb4 100644
38002 --- a/doc/Makefile.in
38003 +++ b/doc/Makefile.in
38004 @@ -1,8 +1,9 @@
38005 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
38006 +# Makefile.in generated by automake 1.11.3 from Makefile.am.
38007 # @configure_input@
38008
38009 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
38010 -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
38011 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38012 +# Foundation, Inc.
38013 # This Makefile.in is free software; the Free Software Foundation
38014 # gives unlimited permission to copy and/or distribute it,
38015 # with or without modifications, as long as this notice is preserved.
38016 @@ -21,8 +22,9 @@
38017 ####################################
38018 VPATH = @srcdir@
38019 pkgdatadir = $(datadir)/@PACKAGE@
38020 -pkglibdir = $(libdir)/@PACKAGE@
38021 pkgincludedir = $(includedir)/@PACKAGE@
38022 +pkglibdir = $(libdir)/@PACKAGE@
38023 +pkglibexecdir = $(libexecdir)/@PACKAGE@
38024 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
38025 install_sh_DATA = $(install_sh) -c -m 644
38026 install_sh_PROGRAM = $(install_sh) -c
38027 @@ -42,17 +44,20 @@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
38028 subdir = doc
38029 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38030 am__aclocal_m4_deps = $(top_srcdir)/m4/gtk-doc.m4 \
38031 - $(top_srcdir)/m4/jh-xml-catalog.m4 $(top_srcdir)/configure.in
38032 + $(top_srcdir)/m4/jh-xml-catalog.m4 $(top_srcdir)/m4/libtool.m4 \
38033 + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
38034 + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
38035 + $(top_srcdir)/configure.in
38036 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
38037 $(ACLOCAL_M4)
38038 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
38039 CONFIG_HEADER = $(top_builddir)/config.h
38040 CONFIG_CLEAN_FILES = version.xml
38041 +CONFIG_CLEAN_VPATH_FILES =
38042 SOURCES =
38043 DIST_SOURCES =
38044 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
38045 ACLOCAL = @ACLOCAL@
38046 -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
38047 AMTAR = @AMTAR@
38048 AR = @AR@
38049 AS = @AS@
38050 @@ -73,12 +78,13 @@ DEFS = @DEFS@
38051 DEPDIR = @DEPDIR@
38052 DLLTOOL = @DLLTOOL@
38053 DSYMUTIL = @DSYMUTIL@
38054 -ECHO = @ECHO@
38055 +DUMPBIN = @DUMPBIN@
38056 ECHO_C = @ECHO_C@
38057 ECHO_N = @ECHO_N@
38058 ECHO_T = @ECHO_T@
38059 EGREP = @EGREP@
38060 EXEEXT = @EXEEXT@
38061 +FGREP = @FGREP@
38062 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
38063 GMOFILES = @GMOFILES@
38064 GMSGFMT = @GMSGFMT@
38065 @@ -95,30 +101,39 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
38066 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
38067 INSTOBJEXT = @INSTOBJEXT@
38068 INTLLIBS = @INTLLIBS@
38069 +LD = @LD@
38070 LDFLAGS = @LDFLAGS@
38071 LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@
38072 LIBGLADE_LIBS = @LIBGLADE_LIBS@
38073 LIBOBJS = @LIBOBJS@
38074 LIBS = @LIBS@
38075 LIBTOOL = @LIBTOOL@
38076 +LIPO = @LIPO@
38077 LN_S = @LN_S@
38078 LTLIBOBJS = @LTLIBOBJS@
38079 MAKEINFO = @MAKEINFO@
38080 +MANIFEST_TOOL = @MANIFEST_TOOL@
38081 MKDIR_P = @MKDIR_P@
38082 MKINSTALLDIRS = @MKINSTALLDIRS@
38083 MSGFMT = @MSGFMT@
38084 MSGFMT_OPTS = @MSGFMT_OPTS@
38085 +NM = @NM@
38086 NMEDIT = @NMEDIT@
38087 OBJDUMP = @OBJDUMP@
38088 OBJEXT = @OBJEXT@
38089 +OTOOL = @OTOOL@
38090 +OTOOL64 = @OTOOL64@
38091 PACKAGE = @PACKAGE@
38092 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
38093 PACKAGE_NAME = @PACKAGE_NAME@
38094 PACKAGE_STRING = @PACKAGE_STRING@
38095 PACKAGE_TARNAME = @PACKAGE_TARNAME@
38096 +PACKAGE_URL = @PACKAGE_URL@
38097 PACKAGE_VERSION = @PACKAGE_VERSION@
38098 PATH_SEPARATOR = @PATH_SEPARATOR@
38099 PKG_CONFIG = @PKG_CONFIG@
38100 +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
38101 +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
38102 POFILES = @POFILES@
38103 POSUB = @POSUB@
38104 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
38105 @@ -142,7 +157,9 @@ abs_builddir = @abs_builddir@
38106 abs_srcdir = @abs_srcdir@
38107 abs_top_builddir = @abs_top_builddir@
38108 abs_top_srcdir = @abs_top_srcdir@
38109 +ac_ct_AR = @ac_ct_AR@
38110 ac_ct_CC = @ac_ct_CC@
38111 +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
38112 am__include = @am__include@
38113 am__leading_dot = @am__leading_dot@
38114 am__quote = @am__quote@
38115 @@ -251,14 +268,14 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__c
38116 @for dep in $?; do \
38117 case '$(am__configure_deps)' in \
38118 *$$dep*) \
38119 - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
38120 - && exit 0; \
38121 + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
38122 + && { if test -f $@; then exit 0; else break; fi; }; \
38123 exit 1;; \
38124 esac; \
38125 done; \
38126 - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
38127 - cd $(top_srcdir) && \
38128 - $(AUTOMAKE) --gnu doc/Makefile
38129 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
38130 + $(am__cd) $(top_srcdir) && \
38131 + $(AUTOMAKE) --gnu doc/Makefile
38132 .PRECIOUS: Makefile
38133 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
38134 @case '$?' in \
38135 @@ -268,6 +285,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
38136 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
38137 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
38138 esac;
38139 +$(top_srcdir)/gtk-doc.make:
38140
38141 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
38142 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
38143 @@ -276,6 +294,7 @@ $(top_srcdir)/configure: $(am__configure_deps)
38144 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
38145 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
38146 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
38147 +$(am__aclocal_m4_deps):
38148 version.xml: $(top_builddir)/config.status $(srcdir)/version.xml.in
38149 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
38150
38151 @@ -307,13 +326,17 @@ distdir: $(DISTFILES)
38152 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
38153 if test -d $$d/$$file; then \
38154 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
38155 + if test -d "$(distdir)/$$file"; then \
38156 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
38157 + fi; \
38158 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
38159 - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
38160 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
38161 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
38162 fi; \
38163 - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
38164 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
38165 else \
38166 - test -f $(distdir)/$$file \
38167 - || cp -p $$d/$$file $(distdir)/$$file \
38168 + test -f "$(distdir)/$$file" \
38169 + || cp -p $$d/$$file "$(distdir)/$$file" \
38170 || exit 1; \
38171 fi; \
38172 done
38173 @@ -334,10 +357,15 @@ install-am: all-am
38174
38175 installcheck: installcheck-am
38176 install-strip:
38177 - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38178 - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
38179 - `test -z '$(STRIP)' || \
38180 - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
38181 + if test -z '$(STRIP)'; then \
38182 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38183 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
38184 + install; \
38185 + else \
38186 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38187 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
38188 + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
38189 + fi
38190 mostlyclean-generic:
38191
38192 clean-generic:
38193 @@ -345,6 +373,7 @@ clean-generic:
38194
38195 distclean-generic:
38196 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
38197 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
38198
38199 maintainer-clean-generic:
38200 @echo "This command is intended for maintainers to use"
38201 @@ -363,6 +392,8 @@ dvi-am:
38202
38203 html: html-am
38204
38205 +html-am:
38206 +
38207 info: info-am
38208
38209 info-am:
38210 @@ -371,18 +402,28 @@ install-data-am: install-data-local
38211
38212 install-dvi: install-dvi-am
38213
38214 +install-dvi-am:
38215 +
38216 install-exec-am:
38217
38218 install-html: install-html-am
38219
38220 +install-html-am:
38221 +
38222 install-info: install-info-am
38223
38224 +install-info-am:
38225 +
38226 install-man:
38227
38228 install-pdf: install-pdf-am
38229
38230 +install-pdf-am:
38231 +
38232 install-ps: install-ps-am
38233
38234 +install-ps-am:
38235 +
38236 installcheck-am:
38237
38238 maintainer-clean: maintainer-clean-am
38239 @@ -559,6 +600,7 @@ dist-hook: dist-check-gtkdoc dist-hook-local
38240 $(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html
38241
38242 .PHONY : dist-hook-local docs
38243 +
38244 # Tell versions [3.59,3.63) of GNU make to not export all variables.
38245 # Otherwise a system limit (for SysV at least) may be exceeded.
38246 .NOEXPORT:
50 diff --git a/glade/Makefile.am b/glade/Makefile.am 38247 diff --git a/glade/Makefile.am b/glade/Makefile.am
51 index f6271f7..0641232 100644 38248 index f6271f7..0641232 100644
52 --- a/glade/Makefile.am 38249 --- a/glade/Makefile.am
53 +++ b/glade/Makefile.am 38250 +++ b/glade/Makefile.am
54 @@ -13,7 +13,7 @@ if OS_WIN32 38251 @@ -13,7 +13,7 @@ if OS_WIN32
58 - $(INSTALL) .libs/libglade-2.0.dll.a $(DESTDIR)$(libdir) 38255 - $(INSTALL) .libs/libglade-2.0.dll.a $(DESTDIR)$(libdir)
59 +# $(INSTALL) .libs/libglade-2.0.dll.a $(DESTDIR)$(libdir) 38256 +# $(INSTALL) .libs/libglade-2.0.dll.a $(DESTDIR)$(libdir)
60 38257
61 uninstall-libtool-import-lib: 38258 uninstall-libtool-import-lib:
62 -rm $(DESTDIR)$(libdir)/libglade-2.0.dll.a 38259 -rm $(DESTDIR)$(libdir)/libglade-2.0.dll.a
38260 diff --git a/glade/Makefile.in b/glade/Makefile.in
38261 index 7fcc298..c7ca80f 100644
38262 --- a/glade/Makefile.in
38263 +++ b/glade/Makefile.in
38264 @@ -1,8 +1,9 @@
38265 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
38266 +# Makefile.in generated by automake 1.11.3 from Makefile.am.
38267 # @configure_input@
38268
38269 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
38270 -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
38271 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38272 +# Foundation, Inc.
38273 # This Makefile.in is free software; the Free Software Foundation
38274 # gives unlimited permission to copy and/or distribute it,
38275 # with or without modifications, as long as this notice is preserved.
38276 @@ -25,8 +26,9 @@
38277
38278 VPATH = @srcdir@
38279 pkgdatadir = $(datadir)/@PACKAGE@
38280 -pkglibdir = $(libdir)/@PACKAGE@
38281 pkgincludedir = $(includedir)/@PACKAGE@
38282 +pkglibdir = $(libdir)/@PACKAGE@
38283 +pkglibexecdir = $(libexecdir)/@PACKAGE@
38284 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
38285 install_sh_DATA = $(install_sh) -c -m 644
38286 install_sh_PROGRAM = $(install_sh) -c
38287 @@ -46,20 +48,44 @@ DIST_COMMON = $(gladeinclude_HEADERS) $(srcdir)/Makefile.am \
38288 $(srcdir)/Makefile.in
38289 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38290 am__aclocal_m4_deps = $(top_srcdir)/m4/gtk-doc.m4 \
38291 - $(top_srcdir)/m4/jh-xml-catalog.m4 $(top_srcdir)/configure.in
38292 + $(top_srcdir)/m4/jh-xml-catalog.m4 $(top_srcdir)/m4/libtool.m4 \
38293 + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
38294 + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
38295 + $(top_srcdir)/configure.in
38296 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
38297 $(ACLOCAL_M4)
38298 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
38299 CONFIG_HEADER = $(top_builddir)/config.h
38300 CONFIG_CLEAN_FILES =
38301 +CONFIG_CLEAN_VPATH_FILES =
38302 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
38303 am__vpath_adj = case $$p in \
38304 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
38305 *) f=$$p;; \
38306 esac;
38307 -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
38308 +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
38309 +am__install_max = 40
38310 +am__nobase_strip_setup = \
38311 + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
38312 +am__nobase_strip = \
38313 + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
38314 +am__nobase_list = $(am__nobase_strip_setup); \
38315 + for p in $$list; do echo "$$p $$p"; done | \
38316 + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
38317 + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
38318 + if (++n[$$2] == $(am__install_max)) \
38319 + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
38320 + END { for (dir in files) print dir, files[dir] }'
38321 +am__base_list = \
38322 + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
38323 + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
38324 +am__uninstall_files_from_dir = { \
38325 + test -z "$$files" \
38326 + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
38327 + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
38328 + $(am__cd) "$$dir" && rm -f $$files; }; \
38329 + }
38330 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(gladeincludedir)"
38331 -libLTLIBRARIES_INSTALL = $(INSTALL)
38332 LTLIBRARIES = $(lib_LTLIBRARIES)
38333 am__DEPENDENCIES_1 =
38334 libglade_2_0_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
38335 @@ -72,6 +98,7 @@ libglade_2_0_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
38336 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
38337 depcomp = $(SHELL) $(top_srcdir)/depcomp
38338 am__depfiles_maybe = depfiles
38339 +am__mv = mv -f
38340 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
38341 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
38342 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
38343 @@ -83,13 +110,11 @@ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
38344 $(LDFLAGS) -o $@
38345 SOURCES = $(libglade_2_0_la_SOURCES)
38346 DIST_SOURCES = $(libglade_2_0_la_SOURCES)
38347 -gladeincludeHEADERS_INSTALL = $(INSTALL_HEADER)
38348 HEADERS = $(gladeinclude_HEADERS)
38349 ETAGS = etags
38350 CTAGS = ctags
38351 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
38352 ACLOCAL = @ACLOCAL@
38353 -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
38354 AMTAR = @AMTAR@
38355 AR = @AR@
38356 AS = @AS@
38357 @@ -110,12 +135,13 @@ DEFS = @DEFS@
38358 DEPDIR = @DEPDIR@
38359 DLLTOOL = @DLLTOOL@
38360 DSYMUTIL = @DSYMUTIL@
38361 -ECHO = @ECHO@
38362 +DUMPBIN = @DUMPBIN@
38363 ECHO_C = @ECHO_C@
38364 ECHO_N = @ECHO_N@
38365 ECHO_T = @ECHO_T@
38366 EGREP = @EGREP@
38367 EXEEXT = @EXEEXT@
38368 +FGREP = @FGREP@
38369 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
38370 GMOFILES = @GMOFILES@
38371 GMSGFMT = @GMSGFMT@
38372 @@ -132,30 +158,39 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
38373 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
38374 INSTOBJEXT = @INSTOBJEXT@
38375 INTLLIBS = @INTLLIBS@
38376 +LD = @LD@
38377 LDFLAGS = @LDFLAGS@
38378 LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@
38379 LIBGLADE_LIBS = @LIBGLADE_LIBS@
38380 LIBOBJS = @LIBOBJS@
38381 LIBS = @LIBS@
38382 LIBTOOL = @LIBTOOL@
38383 +LIPO = @LIPO@
38384 LN_S = @LN_S@
38385 LTLIBOBJS = @LTLIBOBJS@
38386 MAKEINFO = @MAKEINFO@
38387 +MANIFEST_TOOL = @MANIFEST_TOOL@
38388 MKDIR_P = @MKDIR_P@
38389 MKINSTALLDIRS = @MKINSTALLDIRS@
38390 MSGFMT = @MSGFMT@
38391 MSGFMT_OPTS = @MSGFMT_OPTS@
38392 +NM = @NM@
38393 NMEDIT = @NMEDIT@
38394 OBJDUMP = @OBJDUMP@
38395 OBJEXT = @OBJEXT@
38396 +OTOOL = @OTOOL@
38397 +OTOOL64 = @OTOOL64@
38398 PACKAGE = @PACKAGE@
38399 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
38400 PACKAGE_NAME = @PACKAGE_NAME@
38401 PACKAGE_STRING = @PACKAGE_STRING@
38402 PACKAGE_TARNAME = @PACKAGE_TARNAME@
38403 +PACKAGE_URL = @PACKAGE_URL@
38404 PACKAGE_VERSION = @PACKAGE_VERSION@
38405 PATH_SEPARATOR = @PATH_SEPARATOR@
38406 PKG_CONFIG = @PKG_CONFIG@
38407 +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
38408 +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
38409 POFILES = @POFILES@
38410 POSUB = @POSUB@
38411 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
38412 @@ -179,7 +214,9 @@ abs_builddir = @abs_builddir@
38413 abs_srcdir = @abs_srcdir@
38414 abs_top_builddir = @abs_top_builddir@
38415 abs_top_srcdir = @abs_top_srcdir@
38416 +ac_ct_AR = @ac_ct_AR@
38417 ac_ct_CC = @ac_ct_CC@
38418 +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
38419 am__include = @am__include@
38420 am__leading_dot = @am__leading_dot@
38421 am__quote = @am__quote@
38422 @@ -273,14 +310,14 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
38423 @for dep in $?; do \
38424 case '$(am__configure_deps)' in \
38425 *$$dep*) \
38426 - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
38427 - && exit 0; \
38428 + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
38429 + && { if test -f $@; then exit 0; else break; fi; }; \
38430 exit 1;; \
38431 esac; \
38432 done; \
38433 - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu glade/Makefile'; \
38434 - cd $(top_srcdir) && \
38435 - $(AUTOMAKE) --gnu glade/Makefile
38436 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu glade/Makefile'; \
38437 + $(am__cd) $(top_srcdir) && \
38438 + $(AUTOMAKE) --gnu glade/Makefile
38439 .PRECIOUS: Makefile
38440 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
38441 @case '$?' in \
38442 @@ -298,23 +335,28 @@ $(top_srcdir)/configure: $(am__configure_deps)
38443 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
38444 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
38445 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
38446 +$(am__aclocal_m4_deps):
38447 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
38448 @$(NORMAL_INSTALL)
38449 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
38450 - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
38451 + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
38452 + list2=; for p in $$list; do \
38453 if test -f $$p; then \
38454 - f=$(am__strip_dir) \
38455 - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
38456 - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
38457 + list2="$$list2 $$p"; \
38458 else :; fi; \
38459 - done
38460 + done; \
38461 + test -z "$$list2" || { \
38462 + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
38463 + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
38464 + }
38465
38466 uninstall-libLTLIBRARIES:
38467 @$(NORMAL_UNINSTALL)
38468 - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
38469 - p=$(am__strip_dir) \
38470 - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
38471 - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
38472 + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
38473 + for p in $$list; do \
38474 + $(am__strip_dir) \
38475 + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
38476 + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
38477 done
38478
38479 clean-libLTLIBRARIES:
38480 @@ -325,7 +367,7 @@ clean-libLTLIBRARIES:
38481 echo "rm -f \"$${dir}/so_locations\""; \
38482 rm -f "$${dir}/so_locations"; \
38483 done
38484 -libglade-2.0.la: $(libglade_2_0_la_OBJECTS) $(libglade_2_0_la_DEPENDENCIES)
38485 +libglade-2.0.la: $(libglade_2_0_la_OBJECTS) $(libglade_2_0_la_DEPENDENCIES) $(EXTRA_libglade_2_0_la_DEPENDENCIES)
38486 $(libglade_2_0_la_LINK) -rpath $(libdir) $(libglade_2_0_la_OBJECTS) $(libglade_2_0_la_LIBADD) $(LIBS)
38487
38488 mostlyclean-compile:
38489 @@ -341,21 +383,21 @@ distclean-compile:
38490
38491 .c.o:
38492 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
38493 -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
38494 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
38495 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
38496 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
38497 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
38498
38499 .c.obj:
38500 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
38501 -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
38502 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
38503 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
38504 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
38505 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
38506
38507 .c.lo:
38508 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
38509 -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
38510 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
38511 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
38512 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
38513 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
38514 @@ -368,34 +410,35 @@ clean-libtool:
38515 install-gladeincludeHEADERS: $(gladeinclude_HEADERS)
38516 @$(NORMAL_INSTALL)
38517 test -z "$(gladeincludedir)" || $(MKDIR_P) "$(DESTDIR)$(gladeincludedir)"
38518 - @list='$(gladeinclude_HEADERS)'; for p in $$list; do \
38519 + @list='$(gladeinclude_HEADERS)'; test -n "$(gladeincludedir)" || list=; \
38520 + for p in $$list; do \
38521 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
38522 - f=$(am__strip_dir) \
38523 - echo " $(gladeincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(gladeincludedir)/$$f'"; \
38524 - $(gladeincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(gladeincludedir)/$$f"; \
38525 + echo "$$d$$p"; \
38526 + done | $(am__base_list) | \
38527 + while read files; do \
38528 + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(gladeincludedir)'"; \
38529 + $(INSTALL_HEADER) $$files "$(DESTDIR)$(gladeincludedir)" || exit $$?; \
38530 done
38531
38532 uninstall-gladeincludeHEADERS:
38533 @$(NORMAL_UNINSTALL)
38534 - @list='$(gladeinclude_HEADERS)'; for p in $$list; do \
38535 - f=$(am__strip_dir) \
38536 - echo " rm -f '$(DESTDIR)$(gladeincludedir)/$$f'"; \
38537 - rm -f "$(DESTDIR)$(gladeincludedir)/$$f"; \
38538 - done
38539 + @list='$(gladeinclude_HEADERS)'; test -n "$(gladeincludedir)" || list=; \
38540 + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
38541 + dir='$(DESTDIR)$(gladeincludedir)'; $(am__uninstall_files_from_dir)
38542
38543 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
38544 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
38545 unique=`for i in $$list; do \
38546 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
38547 done | \
38548 - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
38549 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
38550 END { if (nonempty) { for (i in files) print i; }; }'`; \
38551 mkid -fID $$unique
38552 tags: TAGS
38553
38554 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
38555 $(TAGS_FILES) $(LISP)
38556 - tags=; \
38557 + set x; \
38558 here=`pwd`; \
38559 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
38560 unique=`for i in $$list; do \
38561 @@ -403,29 +446,34 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
38562 done | \
38563 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
38564 END { if (nonempty) { for (i in files) print i; }; }'`; \
38565 - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
38566 + shift; \
38567 + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
38568 test -n "$$unique" || unique=$$empty_fix; \
38569 - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
38570 - $$tags $$unique; \
38571 + if test $$# -gt 0; then \
38572 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
38573 + "$$@" $$unique; \
38574 + else \
38575 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
38576 + $$unique; \
38577 + fi; \
38578 fi
38579 ctags: CTAGS
38580 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
38581 $(TAGS_FILES) $(LISP)
38582 - tags=; \
38583 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
38584 unique=`for i in $$list; do \
38585 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
38586 done | \
38587 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
38588 END { if (nonempty) { for (i in files) print i; }; }'`; \
38589 - test -z "$(CTAGS_ARGS)$$tags$$unique" \
38590 + test -z "$(CTAGS_ARGS)$$unique" \
38591 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
38592 - $$tags $$unique
38593 + $$unique
38594
38595 GTAGS:
38596 here=`$(am__cd) $(top_builddir) && pwd` \
38597 - && cd $(top_srcdir) \
38598 - && gtags -i $(GTAGS_ARGS) $$here
38599 + && $(am__cd) $(top_srcdir) \
38600 + && gtags -i $(GTAGS_ARGS) "$$here"
38601
38602 distclean-tags:
38603 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
38604 @@ -446,13 +494,17 @@ distdir: $(DISTFILES)
38605 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
38606 if test -d $$d/$$file; then \
38607 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
38608 + if test -d "$(distdir)/$$file"; then \
38609 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
38610 + fi; \
38611 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
38612 - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
38613 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
38614 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
38615 fi; \
38616 - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
38617 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
38618 else \
38619 - test -f $(distdir)/$$file \
38620 - || cp -p $$d/$$file $(distdir)/$$file \
38621 + test -f "$(distdir)/$$file" \
38622 + || cp -p $$d/$$file "$(distdir)/$$file" \
38623 || exit 1; \
38624 fi; \
38625 done
38626 @@ -473,16 +525,22 @@ install-am: all-am
38627
38628 installcheck: installcheck-am
38629 install-strip:
38630 - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38631 - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
38632 - `test -z '$(STRIP)' || \
38633 - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
38634 + if test -z '$(STRIP)'; then \
38635 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38636 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
38637 + install; \
38638 + else \
38639 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38640 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
38641 + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
38642 + fi
38643 mostlyclean-generic:
38644
38645 clean-generic:
38646
38647 distclean-generic:
38648 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
38649 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
38650
38651 maintainer-clean-generic:
38652 @echo "This command is intended for maintainers to use"
38653 @@ -504,6 +562,8 @@ dvi-am:
38654
38655 html: html-am
38656
38657 +html-am:
38658 +
38659 info: info-am
38660
38661 info-am:
38662 @@ -512,18 +572,28 @@ install-data-am: install-data-local install-gladeincludeHEADERS
38663
38664 install-dvi: install-dvi-am
38665
38666 +install-dvi-am:
38667 +
38668 install-exec-am: install-libLTLIBRARIES
38669
38670 install-html: install-html-am
38671
38672 +install-html-am:
38673 +
38674 install-info: install-info-am
38675
38676 +install-info-am:
38677 +
38678 install-man:
38679
38680 install-pdf: install-pdf-am
38681
38682 +install-pdf-am:
38683 +
38684 install-ps: install-ps-am
38685
38686 +install-ps-am:
38687 +
38688 installcheck-am:
38689
38690 maintainer-clean: maintainer-clean-am
38691 @@ -567,7 +637,7 @@ uninstall-am: uninstall-gladeincludeHEADERS uninstall-libLTLIBRARIES \
38692
38693
38694 @OS_WIN32_TRUE@install-libtool-import-lib:
38695 -@OS_WIN32_TRUE@ $(INSTALL) .libs/libglade-2.0.dll.a $(DESTDIR)$(libdir)
38696 +# $(INSTALL) .libs/libglade-2.0.dll.a $(DESTDIR)$(libdir)
38697
38698 @OS_WIN32_TRUE@uninstall-libtool-import-lib:
38699 @OS_WIN32_TRUE@ -rm $(DESTDIR)$(libdir)/libglade-2.0.dll.a
38700 @@ -578,6 +648,7 @@ uninstall-am: uninstall-gladeincludeHEADERS uninstall-libLTLIBRARIES \
38701 install-data-local: install-libtool-import-lib
38702
38703 uninstall-local: uninstall-libtool-import-lib
38704 +
38705 # Tell versions [3.59,3.63) of GNU make to not export all variables.
38706 # Otherwise a system limit (for SysV at least) may be exceeded.
38707 .NOEXPORT:
38708 diff --git a/ltmain.sh b/ltmain.sh
38709 index 27d498a..c2852d8 100644
38710 --- a/ltmain.sh
38711 +++ b/ltmain.sh
38712 @@ -1,52 +1,90 @@
38713 -# ltmain.sh - Provide generalized library-building support services.
38714 -# NOTE: Changing this file will not affect anything until you rerun configure.
38715 -#
38716 +
38717 +# libtool (GNU libtool) 2.4.2
38718 +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
38719 +
38720 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
38721 -# 2007, 2008 Free Software Foundation, Inc.
38722 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
38723 -#
38724 -# This program is free software; you can redistribute it and/or modify
38725 +# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
38726 +# This is free software; see the source for copying conditions. There is NO
38727 +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
38728 +
38729 +# GNU Libtool is free software; you can redistribute it and/or modify
38730 # it under the terms of the GNU General Public License as published by
38731 # the Free Software Foundation; either version 2 of the License, or
38732 # (at your option) any later version.
38733 #
38734 -# This program is distributed in the hope that it will be useful, but
38735 +# As a special exception to the GNU General Public License,
38736 +# if you distribute this file as part of a program or library that
38737 +# is built using GNU Libtool, you may include this file under the
38738 +# same distribution terms that you use for the rest of that program.
38739 +#
38740 +# GNU Libtool is distributed in the hope that it will be useful, but
38741 # WITHOUT ANY WARRANTY; without even the implied warranty of
38742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
38743 # General Public License for more details.
38744 #
38745 # You should have received a copy of the GNU General Public License
38746 -# along with this program; if not, write to the Free Software
38747 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38748 -#
38749 -# As a special exception to the GNU General Public License, if you
38750 -# distribute this file as part of a program that contains a
38751 -# configuration script generated by Autoconf, you may include it under
38752 -# the same distribution terms that you use for the rest of that program.
38753 -
38754 -basename="s,^.*/,,g"
38755 -
38756 -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
38757 -# is ksh but when the shell is invoked as "sh" and the current value of
38758 -# the _XPG environment variable is not equal to 1 (one), the special
38759 -# positional parameter $0, within a function call, is the name of the
38760 -# function.
38761 -progpath="$0"
38762 -
38763 -# The name of this program:
38764 -progname=`echo "$progpath" | $SED $basename`
38765 -modename="$progname"
38766 +# along with GNU Libtool; see the file COPYING. If not, a copy
38767 +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
38768 +# or obtained by writing to the Free Software Foundation, Inc.,
38769 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38770
38771 -# Global variables:
38772 -EXIT_SUCCESS=0
38773 -EXIT_FAILURE=1
38774 +# Usage: $progname [OPTION]... [MODE-ARG]...
38775 +#
38776 +# Provide generalized library-building support services.
38777 +#
38778 +# --config show all configuration variables
38779 +# --debug enable verbose shell tracing
38780 +# -n, --dry-run display commands without modifying any files
38781 +# --features display basic configuration information and exit
38782 +# --mode=MODE use operation mode MODE
38783 +# --preserve-dup-deps don't remove duplicate dependency libraries
38784 +# --quiet, --silent don't print informational messages
38785 +# --no-quiet, --no-silent
38786 +# print informational messages (default)
38787 +# --no-warn don't display warning messages
38788 +# --tag=TAG use configuration variables from tag TAG
38789 +# -v, --verbose print more informational messages than default
38790 +# --no-verbose don't print the extra informational messages
38791 +# --version print version information
38792 +# -h, --help, --help-all print short, long, or detailed help message
38793 +#
38794 +# MODE must be one of the following:
38795 +#
38796 +# clean remove files from the build directory
38797 +# compile compile a source file into a libtool object
38798 +# execute automatically set library path, then run a program
38799 +# finish complete the installation of libtool libraries
38800 +# install install libraries or executables
38801 +# link create a library or an executable
38802 +# uninstall remove libraries from an installed directory
38803 +#
38804 +# MODE-ARGS vary depending on the MODE. When passed as first option,
38805 +# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
38806 +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
38807 +#
38808 +# When reporting a bug, please describe a test case to reproduce it and
38809 +# include the following information:
38810 +#
38811 +# host-triplet: $host
38812 +# shell: $SHELL
38813 +# compiler: $LTCC
38814 +# compiler flags: $LTCFLAGS
38815 +# linker: $LD (gnu? $with_gnu_ld)
38816 +# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
38817 +# automake: $automake_version
38818 +# autoconf: $autoconf_version
38819 +#
38820 +# Report bugs to <bug-libtool@gnu.org>.
38821 +# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
38822 +# General help using GNU software: <http://www.gnu.org/gethelp/>.
38823
38824 -PROGRAM=ltmain.sh
38825 +PROGRAM=libtool
38826 PACKAGE=libtool
38827 -VERSION=1.5.26
38828 -TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)"
38829 +VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
38830 +TIMESTAMP=""
38831 +package_revision=1.3337
38832
38833 -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
38834 +# Be Bourne compatible
38835 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38836 emulate sh
38837 NULLCMD=:
38838 @@ -60,104 +98,457 @@ fi
38839 BIN_SH=xpg4; export BIN_SH # for Tru64
38840 DUALCASE=1; export DUALCASE # for MKS sh
38841
38842 -# Check that we have a working $echo.
38843 -if test "X$1" = X--no-reexec; then
38844 - # Discard the --no-reexec flag, and continue.
38845 - shift
38846 -elif test "X$1" = X--fallback-echo; then
38847 - # Avoid inline document here, it may be left over
38848 - :
38849 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38850 - # Yippee, $echo works!
38851 - :
38852 -else
38853 - # Restart under the correct shell, and then maybe $echo will work.
38854 - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
38855 -fi
38856 -
38857 -if test "X$1" = X--fallback-echo; then
38858 - # used as fallback echo
38859 - shift
38860 - cat <<EOF
38861 -$*
38862 -EOF
38863 - exit $EXIT_SUCCESS
38864 -fi
38865 -
38866 -default_mode=
38867 -help="Try \`$progname --help' for more information."
38868 -magic="%%%MAGIC variable%%%"
38869 -mkdir="mkdir"
38870 -mv="mv -f"
38871 -rm="rm -f"
38872 -
38873 -# Sed substitution that helps us do robust quoting. It backslashifies
38874 -# metacharacters that are still active within double-quoted strings.
38875 -Xsed="${SED}"' -e 1s/^X//'
38876 -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
38877 -# test EBCDIC or ASCII
38878 -case `echo X|tr X '\101'` in
38879 - A) # ASCII based system
38880 - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
38881 - SP2NL='tr \040 \012'
38882 - NL2SP='tr \015\012 \040\040'
38883 - ;;
38884 - *) # EBCDIC based system
38885 - SP2NL='tr \100 \n'
38886 - NL2SP='tr \r\n \100\100'
38887 - ;;
38888 -esac
38889 +# A function that is used when there is no print builtin or printf.
38890 +func_fallback_echo ()
38891 +{
38892 + eval 'cat <<_LTECHO_EOF
38893 +$1
38894 +_LTECHO_EOF'
38895 +}
38896
38897 -# NLS nuisances.
38898 -# Only set LANG and LC_ALL to C if already set.
38899 -# These must not be set unconditionally because not all systems understand
38900 -# e.g. LANG=C (notably SCO).
38901 -# We save the old values to restore during execute mode.
38902 -lt_env=
38903 +# NLS nuisances: We save the old values to restore during execute mode.
38904 +lt_user_locale=
38905 +lt_safe_locale=
38906 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
38907 do
38908 eval "if test \"\${$lt_var+set}\" = set; then
38909 - save_$lt_var=\$$lt_var
38910 - lt_env=\"$lt_var=\$$lt_var \$lt_env\"
38911 - $lt_var=C
38912 + save_$lt_var=\$$lt_var
38913 + $lt_var=C
38914 export $lt_var
38915 + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
38916 + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
38917 fi"
38918 done
38919 +LC_ALL=C
38920 +LANGUAGE=C
38921 +export LANGUAGE LC_ALL
38922 +
38923 +$lt_unset CDPATH
38924
38925 -if test -n "$lt_env"; then
38926 - lt_env="env $lt_env"
38927 -fi
38928 +
38929 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
38930 +# is ksh but when the shell is invoked as "sh" and the current value of
38931 +# the _XPG environment variable is not equal to 1 (one), the special
38932 +# positional parameter $0, within a function call, is the name of the
38933 +# function.
38934 +progpath="$0"
38935 +
38936 +
38937 +
38938 +: ${CP="cp -f"}
38939 +test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
38940 +: ${MAKE="make"}
38941 +: ${MKDIR="mkdir"}
38942 +: ${MV="mv -f"}
38943 +: ${RM="rm -f"}
38944 +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
38945 +: ${Xsed="$SED -e 1s/^X//"}
38946 +
38947 +# Global variables:
38948 +EXIT_SUCCESS=0
38949 +EXIT_FAILURE=1
38950 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
38951 +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
38952 +
38953 +exit_status=$EXIT_SUCCESS
38954
38955 # Make sure IFS has a sensible default
38956 lt_nl='
38957 '
38958 IFS=" $lt_nl"
38959
38960 -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
38961 - $echo "$modename: not configured to build any kind of library" 1>&2
38962 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
38963 - exit $EXIT_FAILURE
38964 -fi
38965 +dirname="s,/[^/]*$,,"
38966 +basename="s,^.*/,,"
38967
38968 -# Global variables.
38969 -mode=$default_mode
38970 -nonopt=
38971 -prev=
38972 -prevopt=
38973 -run=
38974 -show="$echo"
38975 -show_help=
38976 -execute_dlfiles=
38977 -duplicate_deps=no
38978 -preserve_args=
38979 -lo2o="s/\\.lo\$/.${objext}/"
38980 -o2lo="s/\\.${objext}\$/.lo/"
38981 -extracted_archives=
38982 -extracted_serial=0
38983 +# func_dirname file append nondir_replacement
38984 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
38985 +# otherwise set result to NONDIR_REPLACEMENT.
38986 +func_dirname ()
38987 +{
38988 + func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
38989 + if test "X$func_dirname_result" = "X${1}"; then
38990 + func_dirname_result="${3}"
38991 + else
38992 + func_dirname_result="$func_dirname_result${2}"
38993 + fi
38994 +} # func_dirname may be replaced by extended shell implementation
38995 +
38996 +
38997 +# func_basename file
38998 +func_basename ()
38999 +{
39000 + func_basename_result=`$ECHO "${1}" | $SED "$basename"`
39001 +} # func_basename may be replaced by extended shell implementation
39002 +
39003 +
39004 +# func_dirname_and_basename file append nondir_replacement
39005 +# perform func_basename and func_dirname in a single function
39006 +# call:
39007 +# dirname: Compute the dirname of FILE. If nonempty,
39008 +# add APPEND to the result, otherwise set result
39009 +# to NONDIR_REPLACEMENT.
39010 +# value returned in "$func_dirname_result"
39011 +# basename: Compute filename of FILE.
39012 +# value retuned in "$func_basename_result"
39013 +# Implementation must be kept synchronized with func_dirname
39014 +# and func_basename. For efficiency, we do not delegate to
39015 +# those functions but instead duplicate the functionality here.
39016 +func_dirname_and_basename ()
39017 +{
39018 + # Extract subdirectory from the argument.
39019 + func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
39020 + if test "X$func_dirname_result" = "X${1}"; then
39021 + func_dirname_result="${3}"
39022 + else
39023 + func_dirname_result="$func_dirname_result${2}"
39024 + fi
39025 + func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
39026 +} # func_dirname_and_basename may be replaced by extended shell implementation
39027 +
39028 +
39029 +# func_stripname prefix suffix name
39030 +# strip PREFIX and SUFFIX off of NAME.
39031 +# PREFIX and SUFFIX must not contain globbing or regex special
39032 +# characters, hashes, percent signs, but SUFFIX may contain a leading
39033 +# dot (in which case that matches only a dot).
39034 +# func_strip_suffix prefix name
39035 +func_stripname ()
39036 +{
39037 + case ${2} in
39038 + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
39039 + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
39040 + esac
39041 +} # func_stripname may be replaced by extended shell implementation
39042 +
39043 +
39044 +# These SED scripts presuppose an absolute path with a trailing slash.
39045 +pathcar='s,^/\([^/]*\).*$,\1,'
39046 +pathcdr='s,^/[^/]*,,'
39047 +removedotparts=':dotsl
39048 + s@/\./@/@g
39049 + t dotsl
39050 + s,/\.$,/,'
39051 +collapseslashes='s@/\{1,\}@/@g'
39052 +finalslash='s,/*$,/,'
39053 +
39054 +# func_normal_abspath PATH
39055 +# Remove doubled-up and trailing slashes, "." path components,
39056 +# and cancel out any ".." path components in PATH after making
39057 +# it an absolute path.
39058 +# value returned in "$func_normal_abspath_result"
39059 +func_normal_abspath ()
39060 +{
39061 + # Start from root dir and reassemble the path.
39062 + func_normal_abspath_result=
39063 + func_normal_abspath_tpath=$1
39064 + func_normal_abspath_altnamespace=
39065 + case $func_normal_abspath_tpath in
39066 + "")
39067 + # Empty path, that just means $cwd.
39068 + func_stripname '' '/' "`pwd`"
39069 + func_normal_abspath_result=$func_stripname_result
39070 + return
39071 + ;;
39072 + # The next three entries are used to spot a run of precisely
39073 + # two leading slashes without using negated character classes;
39074 + # we take advantage of case's first-match behaviour.
39075 + ///*)
39076 + # Unusual form of absolute path, do nothing.
39077 + ;;
39078 + //*)
39079 + # Not necessarily an ordinary path; POSIX reserves leading '//'
39080 + # and for example Cygwin uses it to access remote file shares
39081 + # over CIFS/SMB, so we conserve a leading double slash if found.
39082 + func_normal_abspath_altnamespace=/
39083 + ;;
39084 + /*)
39085 + # Absolute path, do nothing.
39086 + ;;
39087 + *)
39088 + # Relative path, prepend $cwd.
39089 + func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
39090 + ;;
39091 + esac
39092 + # Cancel out all the simple stuff to save iterations. We also want
39093 + # the path to end with a slash for ease of parsing, so make sure
39094 + # there is one (and only one) here.
39095 + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
39096 + -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
39097 + while :; do
39098 + # Processed it all yet?
39099 + if test "$func_normal_abspath_tpath" = / ; then
39100 + # If we ascended to the root using ".." the result may be empty now.
39101 + if test -z "$func_normal_abspath_result" ; then
39102 + func_normal_abspath_result=/
39103 + fi
39104 + break
39105 + fi
39106 + func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
39107 + -e "$pathcar"`
39108 + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
39109 + -e "$pathcdr"`
39110 + # Figure out what to do with it
39111 + case $func_normal_abspath_tcomponent in
39112 + "")
39113 + # Trailing empty path component, ignore it.
39114 + ;;
39115 + ..)
39116 + # Parent dir; strip last assembled component from result.
39117 + func_dirname "$func_normal_abspath_result"
39118 + func_normal_abspath_result=$func_dirname_result
39119 + ;;
39120 + *)
39121 + # Actual path component, append it.
39122 + func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
39123 + ;;
39124 + esac
39125 + done
39126 + # Restore leading double-slash if one was found on entry.
39127 + func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
39128 +}
39129 +
39130 +# func_relative_path SRCDIR DSTDIR
39131 +# generates a relative path from SRCDIR to DSTDIR, with a trailing
39132 +# slash if non-empty, suitable for immediately appending a filename
39133 +# without needing to append a separator.
39134 +# value returned in "$func_relative_path_result"
39135 +func_relative_path ()
39136 +{
39137 + func_relative_path_result=
39138 + func_normal_abspath "$1"
39139 + func_relative_path_tlibdir=$func_normal_abspath_result
39140 + func_normal_abspath "$2"
39141 + func_relative_path_tbindir=$func_normal_abspath_result
39142 +
39143 + # Ascend the tree starting from libdir
39144 + while :; do
39145 + # check if we have found a prefix of bindir
39146 + case $func_relative_path_tbindir in
39147 + $func_relative_path_tlibdir)
39148 + # found an exact match
39149 + func_relative_path_tcancelled=
39150 + break
39151 + ;;
39152 + $func_relative_path_tlibdir*)
39153 + # found a matching prefix
39154 + func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
39155 + func_relative_path_tcancelled=$func_stripname_result
39156 + if test -z "$func_relative_path_result"; then
39157 + func_relative_path_result=.
39158 + fi
39159 + break
39160 + ;;
39161 + *)
39162 + func_dirname $func_relative_path_tlibdir
39163 + func_relative_path_tlibdir=${func_dirname_result}
39164 + if test "x$func_relative_path_tlibdir" = x ; then
39165 + # Have to descend all the way to the root!
39166 + func_relative_path_result=../$func_relative_path_result
39167 + func_relative_path_tcancelled=$func_relative_path_tbindir
39168 + break
39169 + fi
39170 + func_relative_path_result=../$func_relative_path_result
39171 + ;;
39172 + esac
39173 + done
39174 +
39175 + # Now calculate path; take care to avoid doubling-up slashes.
39176 + func_stripname '' '/' "$func_relative_path_result"
39177 + func_relative_path_result=$func_stripname_result
39178 + func_stripname '/' '/' "$func_relative_path_tcancelled"
39179 + if test "x$func_stripname_result" != x ; then
39180 + func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
39181 + fi
39182 +
39183 + # Normalisation. If bindir is libdir, return empty string,
39184 + # else relative path ending with a slash; either way, target
39185 + # file name can be directly appended.
39186 + if test ! -z "$func_relative_path_result"; then
39187 + func_stripname './' '' "$func_relative_path_result/"
39188 + func_relative_path_result=$func_stripname_result
39189 + fi
39190 +}
39191 +
39192 +# The name of this program:
39193 +func_dirname_and_basename "$progpath"
39194 +progname=$func_basename_result
39195 +
39196 +# Make sure we have an absolute path for reexecution:
39197 +case $progpath in
39198 + [\\/]*|[A-Za-z]:\\*) ;;
39199 + *[\\/]*)
39200 + progdir=$func_dirname_result
39201 + progdir=`cd "$progdir" && pwd`
39202 + progpath="$progdir/$progname"
39203 + ;;
39204 + *)
39205 + save_IFS="$IFS"
39206 + IFS=${PATH_SEPARATOR-:}
39207 + for progdir in $PATH; do
39208 + IFS="$save_IFS"
39209 + test -x "$progdir/$progname" && break
39210 + done
39211 + IFS="$save_IFS"
39212 + test -n "$progdir" || progdir=`pwd`
39213 + progpath="$progdir/$progname"
39214 + ;;
39215 +esac
39216 +
39217 +# Sed substitution that helps us do robust quoting. It backslashifies
39218 +# metacharacters that are still active within double-quoted strings.
39219 +Xsed="${SED}"' -e 1s/^X//'
39220 +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
39221 +
39222 +# Same as above, but do not quote variable references.
39223 +double_quote_subst='s/\(["`\\]\)/\\\1/g'
39224 +
39225 +# Sed substitution that turns a string into a regex matching for the
39226 +# string literally.
39227 +sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
39228 +
39229 +# Sed substitution that converts a w32 file name or path
39230 +# which contains forward slashes, into one that contains
39231 +# (escaped) backslashes. A very naive implementation.
39232 +lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
39233 +
39234 +# Re-`\' parameter expansions in output of double_quote_subst that were
39235 +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
39236 +# in input to double_quote_subst, that '$' was protected from expansion.
39237 +# Since each input `\' is now two `\'s, look for any number of runs of
39238 +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
39239 +bs='\\'
39240 +bs2='\\\\'
39241 +bs4='\\\\\\\\'
39242 +dollar='\$'
39243 +sed_double_backslash="\
39244 + s/$bs4/&\\
39245 +/g
39246 + s/^$bs2$dollar/$bs&/
39247 + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
39248 + s/\n//g"
39249 +
39250 +# Standard options:
39251 +opt_dry_run=false
39252 +opt_help=false
39253 +opt_quiet=false
39254 +opt_verbose=false
39255 +opt_warning=:
39256 +
39257 +# func_echo arg...
39258 +# Echo program name prefixed message, along with the current mode
39259 +# name if it has been set yet.
39260 +func_echo ()
39261 +{
39262 + $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
39263 +}
39264 +
39265 +# func_verbose arg...
39266 +# Echo program name prefixed message in verbose mode only.
39267 +func_verbose ()
39268 +{
39269 + $opt_verbose && func_echo ${1+"$@"}
39270 +
39271 + # A bug in bash halts the script if the last line of a function
39272 + # fails when set -e is in force, so we need another command to
39273 + # work around that:
39274 + :
39275 +}
39276 +
39277 +# func_echo_all arg...
39278 +# Invoke $ECHO with all args, space-separated.
39279 +func_echo_all ()
39280 +{
39281 + $ECHO "$*"
39282 +}
39283 +
39284 +# func_error arg...
39285 +# Echo program name prefixed message to standard error.
39286 +func_error ()
39287 +{
39288 + $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
39289 +}
39290 +
39291 +# func_warning arg...
39292 +# Echo program name prefixed warning message to standard error.
39293 +func_warning ()
39294 +{
39295 + $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
39296 +
39297 + # bash bug again:
39298 + :
39299 +}
39300 +
39301 +# func_fatal_error arg...
39302 +# Echo program name prefixed message to standard error, and exit.
39303 +func_fatal_error ()
39304 +{
39305 + func_error ${1+"$@"}
39306 + exit $EXIT_FAILURE
39307 +}
39308 +
39309 +# func_fatal_help arg...
39310 +# Echo program name prefixed message to standard error, followed by
39311 +# a help hint, and exit.
39312 +func_fatal_help ()
39313 +{
39314 + func_error ${1+"$@"}
39315 + func_fatal_error "$help"
39316 +}
39317 +help="Try \`$progname --help' for more information." ## default
39318 +
39319 +
39320 +# func_grep expression filename
39321 +# Check whether EXPRESSION matches any line of FILENAME, without output.
39322 +func_grep ()
39323 +{
39324 + $GREP "$1" "$2" >/dev/null 2>&1
39325 +}
39326 +
39327 +
39328 +# func_mkdir_p directory-path
39329 +# Make sure the entire path to DIRECTORY-PATH is available.
39330 +func_mkdir_p ()
39331 +{
39332 + my_directory_path="$1"
39333 + my_dir_list=
39334 +
39335 + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
39336 +
39337 + # Protect directory names starting with `-'
39338 + case $my_directory_path in
39339 + -*) my_directory_path="./$my_directory_path" ;;
39340 + esac
39341 +
39342 + # While some portion of DIR does not yet exist...
39343 + while test ! -d "$my_directory_path"; do
39344 + # ...make a list in topmost first order. Use a colon delimited
39345 + # list incase some portion of path contains whitespace.
39346 + my_dir_list="$my_directory_path:$my_dir_list"
39347 +
39348 + # If the last portion added has no slash in it, the list is done
39349 + case $my_directory_path in */*) ;; *) break ;; esac
39350 +
39351 + # ...otherwise throw away the child directory and loop
39352 + my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
39353 + done
39354 + my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
39355 +
39356 + save_mkdir_p_IFS="$IFS"; IFS=':'
39357 + for my_dir in $my_dir_list; do
39358 + IFS="$save_mkdir_p_IFS"
39359 + # mkdir can fail with a `File exist' error if two processes
39360 + # try to create one of the directories concurrently. Don't
39361 + # stop in that case!
39362 + $MKDIR "$my_dir" 2>/dev/null || :
39363 + done
39364 + IFS="$save_mkdir_p_IFS"
39365 +
39366 + # Bail out if we (or some other process) failed to create a directory.
39367 + test -d "$my_directory_path" || \
39368 + func_fatal_error "Failed to create \`$1'"
39369 + fi
39370 +}
39371
39372 -#####################################
39373 -# Shell function definitions:
39374 -# This seems to be the best place for them
39375
39376 # func_mktempdir [string]
39377 # Make a temporary directory that won't clash with other running
39378 @@ -167,7 +558,7 @@ func_mktempdir ()
39379 {
39380 my_template="${TMPDIR-/tmp}/${1-$progname}"
39381
39382 - if test "$run" = ":"; then
39383 + if test "$opt_dry_run" = ":"; then
39384 # Return a directory name, but don't create it in dry-run mode
39385 my_tmpdir="${my_template}-$$"
39386 else
39387 @@ -176,6358 +567,8888 @@ func_mktempdir ()
39388 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
39389
39390 if test ! -d "$my_tmpdir"; then
39391 - # Failing that, at least try and use $RANDOM to avoid a race
39392 - my_tmpdir="${my_template}-${RANDOM-0}$$"
39393 + # Failing that, at least try and use $RANDOM to avoid a race
39394 + my_tmpdir="${my_template}-${RANDOM-0}$$"
39395
39396 - save_mktempdir_umask=`umask`
39397 - umask 0077
39398 - $mkdir "$my_tmpdir"
39399 - umask $save_mktempdir_umask
39400 + save_mktempdir_umask=`umask`
39401 + umask 0077
39402 + $MKDIR "$my_tmpdir"
39403 + umask $save_mktempdir_umask
39404 fi
39405
39406 # If we're not in dry-run mode, bomb out on failure
39407 - test -d "$my_tmpdir" || {
39408 - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
39409 - exit $EXIT_FAILURE
39410 - }
39411 + test -d "$my_tmpdir" || \
39412 + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
39413 fi
39414
39415 - $echo "X$my_tmpdir" | $Xsed
39416 + $ECHO "$my_tmpdir"
39417 }
39418
39419
39420 -# func_win32_libid arg
39421 -# return the library type of file 'arg'
39422 -#
39423 -# Need a lot of goo to handle *both* DLLs and import libs
39424 -# Has to be a shell function in order to 'eat' the argument
39425 -# that is supplied when $file_magic_command is called.
39426 -func_win32_libid ()
39427 +# func_quote_for_eval arg
39428 +# Aesthetically quote ARG to be evaled later.
39429 +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
39430 +# is double-quoted, suitable for a subsequent eval, whereas
39431 +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
39432 +# which are still active within double quotes backslashified.
39433 +func_quote_for_eval ()
39434 {
39435 - win32_libid_type="unknown"
39436 - win32_fileres=`file -L $1 2>/dev/null`
39437 - case $win32_fileres in
39438 - *ar\ archive\ import\ library*) # definitely import
39439 - win32_libid_type="x86 archive import"
39440 - ;;
39441 - *ar\ archive*) # could be an import, or static
39442 - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
39443 - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
39444 - win32_nmres=`eval $NM -f posix -A $1 | \
39445 - $SED -n -e '1,100{
39446 - / I /{
39447 - s,.*,import,
39448 - p
39449 - q
39450 - }
39451 - }'`
39452 - case $win32_nmres in
39453 - import*) win32_libid_type="x86 archive import";;
39454 - *) win32_libid_type="x86 archive static";;
39455 - esac
39456 + case $1 in
39457 + *[\\\`\"\$]*)
39458 + func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
39459 + *)
39460 + func_quote_for_eval_unquoted_result="$1" ;;
39461 + esac
39462 +
39463 + case $func_quote_for_eval_unquoted_result in
39464 + # Double-quote args containing shell metacharacters to delay
39465 + # word splitting, command substitution and and variable
39466 + # expansion for a subsequent eval.
39467 + # Many Bourne shells cannot handle close brackets correctly
39468 + # in scan sets, so we specify it separately.
39469 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
39470 + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
39471 + ;;
39472 + *)
39473 + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
39474 + esac
39475 +}
39476 +
39477 +
39478 +# func_quote_for_expand arg
39479 +# Aesthetically quote ARG to be evaled later; same as above,
39480 +# but do not quote variable references.
39481 +func_quote_for_expand ()
39482 +{
39483 + case $1 in
39484 + *[\\\`\"]*)
39485 + my_arg=`$ECHO "$1" | $SED \
39486 + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
39487 + *)
39488 + my_arg="$1" ;;
39489 + esac
39490 +
39491 + case $my_arg in
39492 + # Double-quote args containing shell metacharacters to delay
39493 + # word splitting and command substitution for a subsequent eval.
39494 + # Many Bourne shells cannot handle close brackets correctly
39495 + # in scan sets, so we specify it separately.
39496 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
39497 + my_arg="\"$my_arg\""
39498 + ;;
39499 + esac
39500 +
39501 + func_quote_for_expand_result="$my_arg"
39502 +}
39503 +
39504 +
39505 +# func_show_eval cmd [fail_exp]
39506 +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
39507 +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
39508 +# is given, then evaluate it.
39509 +func_show_eval ()
39510 +{
39511 + my_cmd="$1"
39512 + my_fail_exp="${2-:}"
39513 +
39514 + ${opt_silent-false} || {
39515 + func_quote_for_expand "$my_cmd"
39516 + eval "func_echo $func_quote_for_expand_result"
39517 + }
39518 +
39519 + if ${opt_dry_run-false}; then :; else
39520 + eval "$my_cmd"
39521 + my_status=$?
39522 + if test "$my_status" -eq 0; then :; else
39523 + eval "(exit $my_status); $my_fail_exp"
39524 + fi
39525 fi
39526 +}
39527 +
39528 +
39529 +# func_show_eval_locale cmd [fail_exp]
39530 +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
39531 +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
39532 +# is given, then evaluate it. Use the saved locale for evaluation.
39533 +func_show_eval_locale ()
39534 +{
39535 + my_cmd="$1"
39536 + my_fail_exp="${2-:}"
39537 +
39538 + ${opt_silent-false} || {
39539 + func_quote_for_expand "$my_cmd"
39540 + eval "func_echo $func_quote_for_expand_result"
39541 + }
39542 +
39543 + if ${opt_dry_run-false}; then :; else
39544 + eval "$lt_user_locale
39545 + $my_cmd"
39546 + my_status=$?
39547 + eval "$lt_safe_locale"
39548 + if test "$my_status" -eq 0; then :; else
39549 + eval "(exit $my_status); $my_fail_exp"
39550 + fi
39551 + fi
39552 +}
39553 +
39554 +# func_tr_sh
39555 +# Turn $1 into a string suitable for a shell variable name.
39556 +# Result is stored in $func_tr_sh_result. All characters
39557 +# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
39558 +# if $1 begins with a digit, a '_' is prepended as well.
39559 +func_tr_sh ()
39560 +{
39561 + case $1 in
39562 + [0-9]* | *[!a-zA-Z0-9_]*)
39563 + func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
39564 ;;
39565 - *DLL*)
39566 - win32_libid_type="x86 DLL"
39567 - ;;
39568 - *executable*) # but shell scripts are "executable" too...
39569 - case $win32_fileres in
39570 - *MS\ Windows\ PE\ Intel*)
39571 - win32_libid_type="x86 DLL"
39572 - ;;
39573 - esac
39574 + * )
39575 + func_tr_sh_result=$1
39576 ;;
39577 esac
39578 - $echo $win32_libid_type
39579 }
39580
39581
39582 -# func_infer_tag arg
39583 -# Infer tagged configuration to use if any are available and
39584 -# if one wasn't chosen via the "--tag" command line option.
39585 -# Only attempt this if the compiler in the base compile
39586 -# command doesn't match the default compiler.
39587 -# arg is usually of the form 'gcc ...'
39588 -func_infer_tag ()
39589 +# func_version
39590 +# Echo version message to standard output and exit.
39591 +func_version ()
39592 {
39593 - if test -n "$available_tags" && test -z "$tagname"; then
39594 - CC_quoted=
39595 - for arg in $CC; do
39596 - case $arg in
39597 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
39598 - arg="\"$arg\""
39599 - ;;
39600 - esac
39601 - CC_quoted="$CC_quoted $arg"
39602 - done
39603 - case $@ in
39604 - # Blanks in the command may have been stripped by the calling shell,
39605 - # but not from the CC environment variable when configure was run.
39606 - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
39607 - # Blanks at the start of $base_compile will cause this to fail
39608 - # if we don't check for them as well.
39609 - *)
39610 - for z in $available_tags; do
39611 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
39612 - # Evaluate the configuration.
39613 - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
39614 - CC_quoted=
39615 - for arg in $CC; do
39616 - # Double-quote args containing other shell metacharacters.
39617 - case $arg in
39618 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
39619 - arg="\"$arg\""
39620 - ;;
39621 - esac
39622 - CC_quoted="$CC_quoted $arg"
39623 - done
39624 - case "$@ " in
39625 - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
39626 - # The compiler in the base compile command matches
39627 - # the one in the tagged configuration.
39628 - # Assume this is the tagged configuration we want.
39629 - tagname=$z
39630 - break
39631 - ;;
39632 - esac
39633 - fi
39634 - done
39635 - # If $tagname still isn't set, then no tagged configuration
39636 - # was found and let the user know that the "--tag" command
39637 - # line option must be used.
39638 - if test -z "$tagname"; then
39639 - $echo "$modename: unable to infer tagged configuration"
39640 - $echo "$modename: specify a tag with \`--tag'" 1>&2
39641 - exit $EXIT_FAILURE
39642 -# else
39643 -# $echo "$modename: using $tagname tagged configuration"
39644 - fi
39645 - ;;
39646 - esac
39647 - fi
39648 + $opt_debug
39649 +
39650 + $SED -n '/(C)/!b go
39651 + :more
39652 + /\./!{
39653 + N
39654 + s/\n# / /
39655 + b more
39656 + }
39657 + :go
39658 + /^# '$PROGRAM' (GNU /,/# warranty; / {
39659 + s/^# //
39660 + s/^# *$//
39661 + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
39662 + p
39663 + }' < "$progpath"
39664 + exit $?
39665 }
39666
39667 -
39668 -# func_extract_an_archive dir oldlib
39669 -func_extract_an_archive ()
39670 +# func_usage
39671 +# Echo short help message to standard output and exit.
39672 +func_usage ()
39673 {
39674 - f_ex_an_ar_dir="$1"; shift
39675 - f_ex_an_ar_oldlib="$1"
39676 -
39677 - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
39678 - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
39679 - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
39680 - :
39681 - else
39682 - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
39683 - exit $EXIT_FAILURE
39684 - fi
39685 + $opt_debug
39686 +
39687 + $SED -n '/^# Usage:/,/^# *.*--help/ {
39688 + s/^# //
39689 + s/^# *$//
39690 + s/\$progname/'$progname'/
39691 + p
39692 + }' < "$progpath"
39693 + echo
39694 + $ECHO "run \`$progname --help | more' for full usage"
39695 + exit $?
39696 }
39697
39698 -# func_extract_archives gentop oldlib ...
39699 -func_extract_archives ()
39700 +# func_help [NOEXIT]
39701 +# Echo long help message to standard output and exit,
39702 +# unless 'noexit' is passed as argument.
39703 +func_help ()
39704 {
39705 - my_gentop="$1"; shift
39706 - my_oldlibs=${1+"$@"}
39707 - my_oldobjs=""
39708 - my_xlib=""
39709 - my_xabs=""
39710 - my_xdir=""
39711 - my_status=""
39712 -
39713 - $show "${rm}r $my_gentop"
39714 - $run ${rm}r "$my_gentop"
39715 - $show "$mkdir $my_gentop"
39716 - $run $mkdir "$my_gentop"
39717 - my_status=$?
39718 - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
39719 - exit $my_status
39720 + $opt_debug
39721 +
39722 + $SED -n '/^# Usage:/,/# Report bugs to/ {
39723 + :print
39724 + s/^# //
39725 + s/^# *$//
39726 + s*\$progname*'$progname'*
39727 + s*\$host*'"$host"'*
39728 + s*\$SHELL*'"$SHELL"'*
39729 + s*\$LTCC*'"$LTCC"'*
39730 + s*\$LTCFLAGS*'"$LTCFLAGS"'*
39731 + s*\$LD*'"$LD"'*
39732 + s/\$with_gnu_ld/'"$with_gnu_ld"'/
39733 + s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
39734 + s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
39735 + p
39736 + d
39737 + }
39738 + /^# .* home page:/b print
39739 + /^# General help using/b print
39740 + ' < "$progpath"
39741 + ret=$?
39742 + if test -z "$1"; then
39743 + exit $ret
39744 fi
39745 +}
39746
39747 - for my_xlib in $my_oldlibs; do
39748 - # Extract the objects.
39749 - case $my_xlib in
39750 - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
39751 - *) my_xabs=`pwd`"/$my_xlib" ;;
39752 - esac
39753 - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
39754 - my_xlib_u=$my_xlib
39755 - while :; do
39756 - case " $extracted_archives " in
39757 - *" $my_xlib_u "*)
39758 - extracted_serial=`expr $extracted_serial + 1`
39759 - my_xlib_u=lt$extracted_serial-$my_xlib ;;
39760 - *) break ;;
39761 - esac
39762 - done
39763 - extracted_archives="$extracted_archives $my_xlib_u"
39764 - my_xdir="$my_gentop/$my_xlib_u"
39765 +# func_missing_arg argname
39766 +# Echo program name prefixed message to standard error and set global
39767 +# exit_cmd.
39768 +func_missing_arg ()
39769 +{
39770 + $opt_debug
39771
39772 - $show "${rm}r $my_xdir"
39773 - $run ${rm}r "$my_xdir"
39774 - $show "$mkdir $my_xdir"
39775 - $run $mkdir "$my_xdir"
39776 - exit_status=$?
39777 - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
39778 - exit $exit_status
39779 - fi
39780 - case $host in
39781 - *-darwin*)
39782 - $show "Extracting $my_xabs"
39783 - # Do not bother doing anything if just a dry run
39784 - if test -z "$run"; then
39785 - darwin_orig_dir=`pwd`
39786 - cd $my_xdir || exit $?
39787 - darwin_archive=$my_xabs
39788 - darwin_curdir=`pwd`
39789 - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
39790 - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
39791 - if test -n "$darwin_arches"; then
39792 - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
39793 - darwin_arch=
39794 - $show "$darwin_base_archive has multiple architectures $darwin_arches"
39795 - for darwin_arch in $darwin_arches ; do
39796 - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
39797 - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
39798 - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
39799 - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
39800 - cd "$darwin_curdir"
39801 - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
39802 - done # $darwin_arches
39803 - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
39804 - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
39805 - darwin_file=
39806 - darwin_files=
39807 - for darwin_file in $darwin_filelist; do
39808 - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
39809 - lipo -create -output "$darwin_file" $darwin_files
39810 - done # $darwin_filelist
39811 - ${rm}r unfat-$$
39812 - cd "$darwin_orig_dir"
39813 - else
39814 - cd "$darwin_orig_dir"
39815 - func_extract_an_archive "$my_xdir" "$my_xabs"
39816 - fi # $darwin_arches
39817 - fi # $run
39818 - ;;
39819 - *)
39820 - func_extract_an_archive "$my_xdir" "$my_xabs"
39821 - ;;
39822 - esac
39823 - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
39824 - done
39825 - func_extract_archives_result="$my_oldobjs"
39826 + func_error "missing argument for $1."
39827 + exit_cmd=exit
39828 }
39829 -# End of Shell function definitions
39830 -#####################################
39831
39832 -# Darwin sucks
39833 -eval std_shrext=\"$shrext_cmds\"
39834
39835 -disable_libs=no
39836 +# func_split_short_opt shortopt
39837 +# Set func_split_short_opt_name and func_split_short_opt_arg shell
39838 +# variables after splitting SHORTOPT after the 2nd character.
39839 +func_split_short_opt ()
39840 +{
39841 + my_sed_short_opt='1s/^\(..\).*$/\1/;q'
39842 + my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
39843 +
39844 + func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
39845 + func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
39846 +} # func_split_short_opt may be replaced by extended shell implementation
39847
39848 -# Parse our command line options once, thoroughly.
39849 -while test "$#" -gt 0
39850 -do
39851 - arg="$1"
39852 - shift
39853
39854 - case $arg in
39855 - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
39856 - *) optarg= ;;
39857 - esac
39858 +# func_split_long_opt longopt
39859 +# Set func_split_long_opt_name and func_split_long_opt_arg shell
39860 +# variables after splitting LONGOPT at the `=' sign.
39861 +func_split_long_opt ()
39862 +{
39863 + my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
39864 + my_sed_long_arg='1s/^--[^=]*=//'
39865
39866 - # If the previous option needs an argument, assign it.
39867 - if test -n "$prev"; then
39868 - case $prev in
39869 - execute_dlfiles)
39870 - execute_dlfiles="$execute_dlfiles $arg"
39871 - ;;
39872 - tag)
39873 - tagname="$arg"
39874 - preserve_args="${preserve_args}=$arg"
39875 -
39876 - # Check whether tagname contains only valid characters
39877 - case $tagname in
39878 - *[!-_A-Za-z0-9,/]*)
39879 - $echo "$progname: invalid tag name: $tagname" 1>&2
39880 - exit $EXIT_FAILURE
39881 - ;;
39882 - esac
39883 + func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
39884 + func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
39885 +} # func_split_long_opt may be replaced by extended shell implementation
39886
39887 - case $tagname in
39888 - CC)
39889 - # Don't test for the "default" C tag, as we know, it's there, but
39890 - # not specially marked.
39891 - ;;
39892 - *)
39893 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
39894 - taglist="$taglist $tagname"
39895 - # Evaluate the configuration.
39896 - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
39897 - else
39898 - $echo "$progname: ignoring unknown tag $tagname" 1>&2
39899 - fi
39900 - ;;
39901 - esac
39902 - ;;
39903 - *)
39904 - eval "$prev=\$arg"
39905 - ;;
39906 - esac
39907 +exit_cmd=:
39908
39909 - prev=
39910 - prevopt=
39911 - continue
39912 - fi
39913
39914 - # Have we seen a non-optional argument yet?
39915 - case $arg in
39916 - --help)
39917 - show_help=yes
39918 - ;;
39919
39920 - --version)
39921 - echo "\
39922 -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
39923
39924 -Copyright (C) 2008 Free Software Foundation, Inc.
39925 -This is free software; see the source for copying conditions. There is NO
39926 -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
39927 - exit $?
39928 - ;;
39929
39930 - --config)
39931 - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
39932 +magic="%%%MAGIC variable%%%"
39933 +magic_exe="%%%MAGIC EXE variable%%%"
39934 +
39935 +# Global variables.
39936 +nonopt=
39937 +preserve_args=
39938 +lo2o="s/\\.lo\$/.${objext}/"
39939 +o2lo="s/\\.${objext}\$/.lo/"
39940 +extracted_archives=
39941 +extracted_serial=0
39942 +
39943 +# If this variable is set in any of the actions, the command in it
39944 +# will be execed at the end. This prevents here-documents from being
39945 +# left over by shells.
39946 +exec_cmd=
39947 +
39948 +# func_append var value
39949 +# Append VALUE to the end of shell variable VAR.
39950 +func_append ()
39951 +{
39952 + eval "${1}=\$${1}\${2}"
39953 +} # func_append may be replaced by extended shell implementation
39954 +
39955 +# func_append_quoted var value
39956 +# Quote VALUE and append to the end of shell variable VAR, separated
39957 +# by a space.
39958 +func_append_quoted ()
39959 +{
39960 + func_quote_for_eval "${2}"
39961 + eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
39962 +} # func_append_quoted may be replaced by extended shell implementation
39963 +
39964 +
39965 +# func_arith arithmetic-term...
39966 +func_arith ()
39967 +{
39968 + func_arith_result=`expr "${@}"`
39969 +} # func_arith may be replaced by extended shell implementation
39970 +
39971 +
39972 +# func_len string
39973 +# STRING may not start with a hyphen.
39974 +func_len ()
39975 +{
39976 + func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
39977 +} # func_len may be replaced by extended shell implementation
39978 +
39979 +
39980 +# func_lo2o object
39981 +func_lo2o ()
39982 +{
39983 + func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
39984 +} # func_lo2o may be replaced by extended shell implementation
39985 +
39986 +
39987 +# func_xform libobj-or-source
39988 +func_xform ()
39989 +{
39990 + func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
39991 +} # func_xform may be replaced by extended shell implementation
39992 +
39993 +
39994 +# func_fatal_configuration arg...
39995 +# Echo program name prefixed message to standard error, followed by
39996 +# a configuration failure hint, and exit.
39997 +func_fatal_configuration ()
39998 +{
39999 + func_error ${1+"$@"}
40000 + func_error "See the $PACKAGE documentation for more information."
40001 + func_fatal_error "Fatal configuration error."
40002 +}
40003 +
40004 +
40005 +# func_config
40006 +# Display the configuration for all the tags in this script.
40007 +func_config ()
40008 +{
40009 + re_begincf='^# ### BEGIN LIBTOOL'
40010 + re_endcf='^# ### END LIBTOOL'
40011 +
40012 + # Default configuration.
40013 + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
40014 +
40015 # Now print the configurations for the tags.
40016 for tagname in $taglist; do
40017 - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
40018 + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
40019 done
40020 - exit $?
40021 - ;;
40022 -
40023 - --debug)
40024 - $echo "$progname: enabling shell trace mode"
40025 - set -x
40026 - preserve_args="$preserve_args $arg"
40027 - ;;
40028
40029 - --dry-run | -n)
40030 - run=:
40031 - ;;
40032 + exit $?
40033 +}
40034
40035 - --features)
40036 - $echo "host: $host"
40037 +# func_features
40038 +# Display the features supported by this script.
40039 +func_features ()
40040 +{
40041 + echo "host: $host"
40042 if test "$build_libtool_libs" = yes; then
40043 - $echo "enable shared libraries"
40044 + echo "enable shared libraries"
40045 else
40046 - $echo "disable shared libraries"
40047 + echo "disable shared libraries"
40048 fi
40049 if test "$build_old_libs" = yes; then
40050 - $echo "enable static libraries"
40051 + echo "enable static libraries"
40052 else
40053 - $echo "disable static libraries"
40054 + echo "disable static libraries"
40055 fi
40056 - exit $?
40057 - ;;
40058 -
40059 - --finish) mode="finish" ;;
40060
40061 - --mode) prevopt="--mode" prev=mode ;;
40062 - --mode=*) mode="$optarg" ;;
40063 + exit $?
40064 +}
40065
40066 - --preserve-dup-deps) duplicate_deps="yes" ;;
40067 +# func_enable_tag tagname
40068 +# Verify that TAGNAME is valid, and either flag an error and exit, or
40069 +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
40070 +# variable here.
40071 +func_enable_tag ()
40072 +{
40073 + # Global variable:
40074 + tagname="$1"
40075
40076 - --quiet | --silent)
40077 - show=:
40078 - preserve_args="$preserve_args $arg"
40079 - ;;
40080 + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
40081 + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
40082 + sed_extractcf="/$re_begincf/,/$re_endcf/p"
40083
40084 - --tag)
40085 - prevopt="--tag"
40086 - prev=tag
40087 - preserve_args="$preserve_args --tag"
40088 - ;;
40089 - --tag=*)
40090 - set tag "$optarg" ${1+"$@"}
40091 - shift
40092 - prev=tag
40093 - preserve_args="$preserve_args --tag"
40094 - ;;
40095 + # Validate tagname.
40096 + case $tagname in
40097 + *[!-_A-Za-z0-9,/]*)
40098 + func_fatal_error "invalid tag name: $tagname"
40099 + ;;
40100 + esac
40101
40102 - -dlopen)
40103 - prevopt="-dlopen"
40104 - prev=execute_dlfiles
40105 - ;;
40106 + # Don't test for the "default" C tag, as we know it's
40107 + # there but not specially marked.
40108 + case $tagname in
40109 + CC) ;;
40110 + *)
40111 + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
40112 + taglist="$taglist $tagname"
40113 +
40114 + # Evaluate the configuration. Be careful to quote the path
40115 + # and the sed script, to avoid splitting on whitespace, but
40116 + # also don't use non-portable quotes within backquotes within
40117 + # quotes we have to do it in 2 steps:
40118 + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
40119 + eval "$extractedcf"
40120 + else
40121 + func_error "ignoring unknown tag $tagname"
40122 + fi
40123 + ;;
40124 + esac
40125 +}
40126
40127 - -*)
40128 - $echo "$modename: unrecognized option \`$arg'" 1>&2
40129 - $echo "$help" 1>&2
40130 - exit $EXIT_FAILURE
40131 - ;;
40132 +# func_check_version_match
40133 +# Ensure that we are using m4 macros, and libtool script from the same
40134 +# release of libtool.
40135 +func_check_version_match ()
40136 +{
40137 + if test "$package_revision" != "$macro_revision"; then
40138 + if test "$VERSION" != "$macro_version"; then
40139 + if test -z "$macro_version"; then
40140 + cat >&2 <<_LT_EOF
40141 +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
40142 +$progname: definition of this LT_INIT comes from an older release.
40143 +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
40144 +$progname: and run autoconf again.
40145 +_LT_EOF
40146 + else
40147 + cat >&2 <<_LT_EOF
40148 +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
40149 +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
40150 +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
40151 +$progname: and run autoconf again.
40152 +_LT_EOF
40153 + fi
40154 + else
40155 + cat >&2 <<_LT_EOF
40156 +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
40157 +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
40158 +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
40159 +$progname: of $PACKAGE $VERSION and run autoconf again.
40160 +_LT_EOF
40161 + fi
40162
40163 - *)
40164 - nonopt="$arg"
40165 - break
40166 - ;;
40167 - esac
40168 -done
40169 + exit $EXIT_MISMATCH
40170 + fi
40171 +}
40172
40173 -if test -n "$prevopt"; then
40174 - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
40175 - $echo "$help" 1>&2
40176 - exit $EXIT_FAILURE
40177 -fi
40178
40179 -case $disable_libs in
40180 -no)
40181 +# Shorthand for --mode=foo, only valid as the first argument
40182 +case $1 in
40183 +clean|clea|cle|cl)
40184 + shift; set dummy --mode clean ${1+"$@"}; shift
40185 + ;;
40186 +compile|compil|compi|comp|com|co|c)
40187 + shift; set dummy --mode compile ${1+"$@"}; shift
40188 + ;;
40189 +execute|execut|execu|exec|exe|ex|e)
40190 + shift; set dummy --mode execute ${1+"$@"}; shift
40191 + ;;
40192 +finish|finis|fini|fin|fi|f)
40193 + shift; set dummy --mode finish ${1+"$@"}; shift
40194 ;;
40195 -shared)
40196 - build_libtool_libs=no
40197 - build_old_libs=yes
40198 +install|instal|insta|inst|ins|in|i)
40199 + shift; set dummy --mode install ${1+"$@"}; shift
40200 ;;
40201 -static)
40202 - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
40203 +link|lin|li|l)
40204 + shift; set dummy --mode link ${1+"$@"}; shift
40205 + ;;
40206 +uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
40207 + shift; set dummy --mode uninstall ${1+"$@"}; shift
40208 ;;
40209 esac
40210
40211 -# If this variable is set in any of the actions, the command in it
40212 -# will be execed at the end. This prevents here-documents from being
40213 -# left over by shells.
40214 -exec_cmd=
40215
40216 -if test -z "$show_help"; then
40217
40218 - # Infer the operation mode.
40219 - if test -z "$mode"; then
40220 - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
40221 - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
40222 - case $nonopt in
40223 - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
40224 - mode=link
40225 - for arg
40226 - do
40227 - case $arg in
40228 - -c)
40229 - mode=compile
40230 - break
40231 - ;;
40232 - esac
40233 - done
40234 - ;;
40235 - *db | *dbx | *strace | *truss)
40236 - mode=execute
40237 - ;;
40238 - *install*|cp|mv)
40239 - mode=install
40240 - ;;
40241 - *rm)
40242 - mode=uninstall
40243 - ;;
40244 - *)
40245 - # If we have no mode, but dlfiles were specified, then do execute mode.
40246 - test -n "$execute_dlfiles" && mode=execute
40247 +# Option defaults:
40248 +opt_debug=:
40249 +opt_dry_run=false
40250 +opt_config=false
40251 +opt_preserve_dup_deps=false
40252 +opt_features=false
40253 +opt_finish=false
40254 +opt_help=false
40255 +opt_help_all=false
40256 +opt_silent=:
40257 +opt_warning=:
40258 +opt_verbose=:
40259 +opt_silent=false
40260 +opt_verbose=false
40261
40262 - # Just use the default operation mode.
40263 - if test -z "$mode"; then
40264 - if test -n "$nonopt"; then
40265 - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
40266 - else
40267 - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
40268 - fi
40269 - fi
40270 - ;;
40271 +
40272 +# Parse options once, thoroughly. This comes as soon as possible in the
40273 +# script to make things like `--version' happen as quickly as we can.
40274 +{
40275 + # this just eases exit handling
40276 + while test $# -gt 0; do
40277 + opt="$1"
40278 + shift
40279 + case $opt in
40280 + --debug|-x) opt_debug='set -x'
40281 + func_echo "enabling shell trace mode"
40282 + $opt_debug
40283 + ;;
40284 + --dry-run|--dryrun|-n)
40285 + opt_dry_run=:
40286 + ;;
40287 + --config)
40288 + opt_config=:
40289 +func_config
40290 + ;;
40291 + --dlopen|-dlopen)
40292 + optarg="$1"
40293 + opt_dlopen="${opt_dlopen+$opt_dlopen
40294 +}$optarg"
40295 + shift
40296 + ;;
40297 + --preserve-dup-deps)
40298 + opt_preserve_dup_deps=:
40299 + ;;
40300 + --features)
40301 + opt_features=:
40302 +func_features
40303 + ;;
40304 + --finish)
40305 + opt_finish=:
40306 +set dummy --mode finish ${1+"$@"}; shift
40307 + ;;
40308 + --help)
40309 + opt_help=:
40310 + ;;
40311 + --help-all)
40312 + opt_help_all=:
40313 +opt_help=': help-all'
40314 + ;;
40315 + --mode)
40316 + test $# = 0 && func_missing_arg $opt && break
40317 + optarg="$1"
40318 + opt_mode="$optarg"
40319 +case $optarg in
40320 + # Valid mode arguments:
40321 + clean|compile|execute|finish|install|link|relink|uninstall) ;;
40322 +
40323 + # Catch anything else as an error
40324 + *) func_error "invalid argument for $opt"
40325 + exit_cmd=exit
40326 + break
40327 + ;;
40328 +esac
40329 + shift
40330 + ;;
40331 + --no-silent|--no-quiet)
40332 + opt_silent=false
40333 +func_append preserve_args " $opt"
40334 + ;;
40335 + --no-warning|--no-warn)
40336 + opt_warning=false
40337 +func_append preserve_args " $opt"
40338 + ;;
40339 + --no-verbose)
40340 + opt_verbose=false
40341 +func_append preserve_args " $opt"
40342 + ;;
40343 + --silent|--quiet)
40344 + opt_silent=:
40345 +func_append preserve_args " $opt"
40346 + opt_verbose=false
40347 + ;;
40348 + --verbose|-v)
40349 + opt_verbose=:
40350 +func_append preserve_args " $opt"
40351 +opt_silent=false
40352 + ;;
40353 + --tag)
40354 + test $# = 0 && func_missing_arg $opt && break
40355 + optarg="$1"
40356 + opt_tag="$optarg"
40357 +func_append preserve_args " $opt $optarg"
40358 +func_enable_tag "$optarg"
40359 + shift
40360 + ;;
40361 +
40362 + -\?|-h) func_usage ;;
40363 + --help) func_help ;;
40364 + --version) func_version ;;
40365 +
40366 + # Separate optargs to long options:
40367 + --*=*)
40368 + func_split_long_opt "$opt"
40369 + set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
40370 + shift
40371 + ;;
40372 +
40373 + # Separate non-argument short options:
40374 + -\?*|-h*|-n*|-v*)
40375 + func_split_short_opt "$opt"
40376 + set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
40377 + shift
40378 + ;;
40379 +
40380 + --) break ;;
40381 + -*) func_fatal_help "unrecognized option \`$opt'" ;;
40382 + *) set dummy "$opt" ${1+"$@"}; shift; break ;;
40383 esac
40384 - fi
40385 + done
40386
40387 - # Only execute mode is allowed to have -dlopen flags.
40388 - if test -n "$execute_dlfiles" && test "$mode" != execute; then
40389 - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
40390 - $echo "$help" 1>&2
40391 - exit $EXIT_FAILURE
40392 + # Validate options:
40393 +
40394 + # save first non-option argument
40395 + if test "$#" -gt 0; then
40396 + nonopt="$opt"
40397 + shift
40398 fi
40399
40400 - # Change the help message to a mode-specific one.
40401 - generic_help="$help"
40402 - help="Try \`$modename --help --mode=$mode' for more information."
40403 + # preserve --debug
40404 + test "$opt_debug" = : || func_append preserve_args " --debug"
40405
40406 - # These modes are in order of execution frequency so that they run quickly.
40407 - case $mode in
40408 - # libtool compile mode
40409 - compile)
40410 - modename="$modename: compile"
40411 - # Get the compilation command and the source file.
40412 - base_compile=
40413 - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
40414 - suppress_opt=yes
40415 - suppress_output=
40416 - arg_mode=normal
40417 - libobj=
40418 - later=
40419 -
40420 - for arg
40421 - do
40422 - case $arg_mode in
40423 - arg )
40424 - # do not "continue". Instead, add this to base_compile
40425 - lastarg="$arg"
40426 - arg_mode=normal
40427 - ;;
40428 -
40429 - target )
40430 - libobj="$arg"
40431 - arg_mode=normal
40432 - continue
40433 - ;;
40434 + case $host in
40435 + *cygwin* | *mingw* | *pw32* | *cegcc*)
40436 + # don't eliminate duplications in $postdeps and $predeps
40437 + opt_duplicate_compiler_generated_deps=:
40438 + ;;
40439 + *)
40440 + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
40441 + ;;
40442 + esac
40443
40444 - normal )
40445 - # Accept any command-line options.
40446 - case $arg in
40447 - -o)
40448 - if test -n "$libobj" ; then
40449 - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
40450 - exit $EXIT_FAILURE
40451 - fi
40452 - arg_mode=target
40453 - continue
40454 - ;;
40455 + $opt_help || {
40456 + # Sanity checks first:
40457 + func_check_version_match
40458
40459 - -static | -prefer-pic | -prefer-non-pic)
40460 - later="$later $arg"
40461 - continue
40462 - ;;
40463 + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
40464 + func_fatal_configuration "not configured to build any kind of library"
40465 + fi
40466
40467 - -no-suppress)
40468 - suppress_opt=no
40469 - continue
40470 - ;;
40471 + # Darwin sucks
40472 + eval std_shrext=\"$shrext_cmds\"
40473
40474 - -Xcompiler)
40475 - arg_mode=arg # the next one goes into the "base_compile" arg list
40476 - continue # The current "srcfile" will either be retained or
40477 - ;; # replaced later. I would guess that would be a bug.
40478 + # Only execute mode is allowed to have -dlopen flags.
40479 + if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
40480 + func_error "unrecognized option \`-dlopen'"
40481 + $ECHO "$help" 1>&2
40482 + exit $EXIT_FAILURE
40483 + fi
40484
40485 - -Wc,*)
40486 - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
40487 - lastarg=
40488 - save_ifs="$IFS"; IFS=','
40489 - for arg in $args; do
40490 - IFS="$save_ifs"
40491 + # Change the help message to a mode-specific one.
40492 + generic_help="$help"
40493 + help="Try \`$progname --help --mode=$opt_mode' for more information."
40494 + }
40495
40496 - # Double-quote args containing other shell metacharacters.
40497 - # Many Bourne shells cannot handle close brackets correctly
40498 - # in scan sets, so we specify it separately.
40499 - case $arg in
40500 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
40501 - arg="\"$arg\""
40502 - ;;
40503 - esac
40504 - lastarg="$lastarg $arg"
40505 - done
40506 - IFS="$save_ifs"
40507 - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
40508
40509 - # Add the arguments to base_compile.
40510 - base_compile="$base_compile $lastarg"
40511 - continue
40512 - ;;
40513 + # Bail if the options were screwed
40514 + $exit_cmd $EXIT_FAILURE
40515 +}
40516
40517 - * )
40518 - # Accept the current argument as the source file.
40519 - # The previous "srcfile" becomes the current argument.
40520 - #
40521 - lastarg="$srcfile"
40522 - srcfile="$arg"
40523 - ;;
40524 - esac # case $arg
40525 - ;;
40526 - esac # case $arg_mode
40527
40528 - # Aesthetically quote the previous argument.
40529 - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
40530
40531 - case $lastarg in
40532 - # Double-quote args containing other shell metacharacters.
40533 - # Many Bourne shells cannot handle close brackets correctly
40534 - # in scan sets, and some SunOS ksh mistreat backslash-escaping
40535 - # in scan sets (worked around with variable expansion),
40536 - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
40537 - # at all, so we specify them separately.
40538 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
40539 - lastarg="\"$lastarg\""
40540 - ;;
40541 - esac
40542
40543 - base_compile="$base_compile $lastarg"
40544 - done # for arg
40545 +## ----------- ##
40546 +## Main. ##
40547 +## ----------- ##
40548
40549 - case $arg_mode in
40550 - arg)
40551 - $echo "$modename: you must specify an argument for -Xcompile"
40552 - exit $EXIT_FAILURE
40553 - ;;
40554 - target)
40555 - $echo "$modename: you must specify a target with \`-o'" 1>&2
40556 - exit $EXIT_FAILURE
40557 - ;;
40558 - *)
40559 - # Get the name of the library object.
40560 - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
40561 - ;;
40562 - esac
40563 +# func_lalib_p file
40564 +# True iff FILE is a libtool `.la' library or `.lo' object file.
40565 +# This function is only a basic sanity check; it will hardly flush out
40566 +# determined imposters.
40567 +func_lalib_p ()
40568 +{
40569 + test -f "$1" &&
40570 + $SED -e 4q "$1" 2>/dev/null \
40571 + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
40572 +}
40573
40574 - # Recognize several different file suffixes.
40575 - # If the user specifies -o file.o, it is replaced with file.lo
40576 - xform='[cCFSifmso]'
40577 - case $libobj in
40578 - *.ada) xform=ada ;;
40579 - *.adb) xform=adb ;;
40580 - *.ads) xform=ads ;;
40581 - *.asm) xform=asm ;;
40582 - *.c++) xform=c++ ;;
40583 - *.cc) xform=cc ;;
40584 - *.ii) xform=ii ;;
40585 - *.class) xform=class ;;
40586 - *.cpp) xform=cpp ;;
40587 - *.cxx) xform=cxx ;;
40588 - *.[fF][09]?) xform=[fF][09]. ;;
40589 - *.for) xform=for ;;
40590 - *.java) xform=java ;;
40591 - *.obj) xform=obj ;;
40592 - *.sx) xform=sx ;;
40593 - esac
40594 +# func_lalib_unsafe_p file
40595 +# True iff FILE is a libtool `.la' library or `.lo' object file.
40596 +# This function implements the same check as func_lalib_p without
40597 +# resorting to external programs. To this end, it redirects stdin and
40598 +# closes it afterwards, without saving the original file descriptor.
40599 +# As a safety measure, use it only where a negative result would be
40600 +# fatal anyway. Works if `file' does not exist.
40601 +func_lalib_unsafe_p ()
40602 +{
40603 + lalib_p=no
40604 + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
40605 + for lalib_p_l in 1 2 3 4
40606 + do
40607 + read lalib_p_line
40608 + case "$lalib_p_line" in
40609 + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
40610 + esac
40611 + done
40612 + exec 0<&5 5<&-
40613 + fi
40614 + test "$lalib_p" = yes
40615 +}
40616
40617 - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
40618 +# func_ltwrapper_script_p file
40619 +# True iff FILE is a libtool wrapper script
40620 +# This function is only a basic sanity check; it will hardly flush out
40621 +# determined imposters.
40622 +func_ltwrapper_script_p ()
40623 +{
40624 + func_lalib_p "$1"
40625 +}
40626
40627 - case $libobj in
40628 - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
40629 - *)
40630 - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
40631 - exit $EXIT_FAILURE
40632 - ;;
40633 +# func_ltwrapper_executable_p file
40634 +# True iff FILE is a libtool wrapper executable
40635 +# This function is only a basic sanity check; it will hardly flush out
40636 +# determined imposters.
40637 +func_ltwrapper_executable_p ()
40638 +{
40639 + func_ltwrapper_exec_suffix=
40640 + case $1 in
40641 + *.exe) ;;
40642 + *) func_ltwrapper_exec_suffix=.exe ;;
40643 esac
40644 + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
40645 +}
40646
40647 - func_infer_tag $base_compile
40648 +# func_ltwrapper_scriptname file
40649 +# Assumes file is an ltwrapper_executable
40650 +# uses $file to determine the appropriate filename for a
40651 +# temporary ltwrapper_script.
40652 +func_ltwrapper_scriptname ()
40653 +{
40654 + func_dirname_and_basename "$1" "" "."
40655 + func_stripname '' '.exe' "$func_basename_result"
40656 + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
40657 +}
40658
40659 - for arg in $later; do
40660 - case $arg in
40661 - -static)
40662 - build_old_libs=yes
40663 - continue
40664 - ;;
40665 +# func_ltwrapper_p file
40666 +# True iff FILE is a libtool wrapper script or wrapper executable
40667 +# This function is only a basic sanity check; it will hardly flush out
40668 +# determined imposters.
40669 +func_ltwrapper_p ()
40670 +{
40671 + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
40672 +}
40673
40674 - -prefer-pic)
40675 - pic_mode=yes
40676 - continue
40677 - ;;
40678
40679 - -prefer-non-pic)
40680 - pic_mode=no
40681 - continue
40682 - ;;
40683 - esac
40684 +# func_execute_cmds commands fail_cmd
40685 +# Execute tilde-delimited COMMANDS.
40686 +# If FAIL_CMD is given, eval that upon failure.
40687 +# FAIL_CMD may read-access the current command in variable CMD!
40688 +func_execute_cmds ()
40689 +{
40690 + $opt_debug
40691 + save_ifs=$IFS; IFS='~'
40692 + for cmd in $1; do
40693 + IFS=$save_ifs
40694 + eval cmd=\"$cmd\"
40695 + func_show_eval "$cmd" "${2-:}"
40696 done
40697 + IFS=$save_ifs
40698 +}
40699
40700 - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
40701 - case $qlibobj in
40702 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
40703 - qlibobj="\"$qlibobj\"" ;;
40704 - esac
40705 - test "X$libobj" != "X$qlibobj" \
40706 - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
40707 - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
40708 - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
40709 - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
40710 - if test "X$xdir" = "X$obj"; then
40711 - xdir=
40712 - else
40713 - xdir=$xdir/
40714 - fi
40715 - lobj=${xdir}$objdir/$objname
40716
40717 - if test -z "$base_compile"; then
40718 - $echo "$modename: you must specify a compilation command" 1>&2
40719 - $echo "$help" 1>&2
40720 - exit $EXIT_FAILURE
40721 - fi
40722 +# func_source file
40723 +# Source FILE, adding directory component if necessary.
40724 +# Note that it is not necessary on cygwin/mingw to append a dot to
40725 +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
40726 +# behavior happens only for exec(3), not for open(2)! Also, sourcing
40727 +# `FILE.' does not work on cygwin managed mounts.
40728 +func_source ()
40729 +{
40730 + $opt_debug
40731 + case $1 in
40732 + */* | *\\*) . "$1" ;;
40733 + *) . "./$1" ;;
40734 + esac
40735 +}
40736
40737 - # Delete any leftover library objects.
40738 - if test "$build_old_libs" = yes; then
40739 - removelist="$obj $lobj $libobj ${libobj}T"
40740 - else
40741 - removelist="$lobj $libobj ${libobj}T"
40742 - fi
40743
40744 - $run $rm $removelist
40745 - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
40746 +# func_resolve_sysroot PATH
40747 +# Replace a leading = in PATH with a sysroot. Store the result into
40748 +# func_resolve_sysroot_result
40749 +func_resolve_sysroot ()
40750 +{
40751 + func_resolve_sysroot_result=$1
40752 + case $func_resolve_sysroot_result in
40753 + =*)
40754 + func_stripname '=' '' "$func_resolve_sysroot_result"
40755 + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
40756 + ;;
40757 + esac
40758 +}
40759
40760 - # On Cygwin there's no "real" PIC flag so we must build both object types
40761 - case $host_os in
40762 - cygwin* | mingw* | pw32* | os2*)
40763 - pic_mode=default
40764 - ;;
40765 - esac
40766 - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
40767 - # non-PIC code in shared libraries is not supported
40768 - pic_mode=default
40769 - fi
40770 +# func_replace_sysroot PATH
40771 +# If PATH begins with the sysroot, replace it with = and
40772 +# store the result into func_replace_sysroot_result.
40773 +func_replace_sysroot ()
40774 +{
40775 + case "$lt_sysroot:$1" in
40776 + ?*:"$lt_sysroot"*)
40777 + func_stripname "$lt_sysroot" '' "$1"
40778 + func_replace_sysroot_result="=$func_stripname_result"
40779 + ;;
40780 + *)
40781 + # Including no sysroot.
40782 + func_replace_sysroot_result=$1
40783 + ;;
40784 + esac
40785 +}
40786
40787 - # Calculate the filename of the output object if compiler does
40788 - # not support -o with -c
40789 - if test "$compiler_c_o" = no; then
40790 - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
40791 - lockfile="$output_obj.lock"
40792 - removelist="$removelist $output_obj $lockfile"
40793 - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
40794 - else
40795 - output_obj=
40796 - need_locks=no
40797 - lockfile=
40798 +# func_infer_tag arg
40799 +# Infer tagged configuration to use if any are available and
40800 +# if one wasn't chosen via the "--tag" command line option.
40801 +# Only attempt this if the compiler in the base compile
40802 +# command doesn't match the default compiler.
40803 +# arg is usually of the form 'gcc ...'
40804 +func_infer_tag ()
40805 +{
40806 + $opt_debug
40807 + if test -n "$available_tags" && test -z "$tagname"; then
40808 + CC_quoted=
40809 + for arg in $CC; do
40810 + func_append_quoted CC_quoted "$arg"
40811 + done
40812 + CC_expanded=`func_echo_all $CC`
40813 + CC_quoted_expanded=`func_echo_all $CC_quoted`
40814 + case $@ in
40815 + # Blanks in the command may have been stripped by the calling shell,
40816 + # but not from the CC environment variable when configure was run.
40817 + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
40818 + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
40819 + # Blanks at the start of $base_compile will cause this to fail
40820 + # if we don't check for them as well.
40821 + *)
40822 + for z in $available_tags; do
40823 + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
40824 + # Evaluate the configuration.
40825 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
40826 + CC_quoted=
40827 + for arg in $CC; do
40828 + # Double-quote args containing other shell metacharacters.
40829 + func_append_quoted CC_quoted "$arg"
40830 + done
40831 + CC_expanded=`func_echo_all $CC`
40832 + CC_quoted_expanded=`func_echo_all $CC_quoted`
40833 + case "$@ " in
40834 + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
40835 + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
40836 + # The compiler in the base compile command matches
40837 + # the one in the tagged configuration.
40838 + # Assume this is the tagged configuration we want.
40839 + tagname=$z
40840 + break
40841 + ;;
40842 + esac
40843 + fi
40844 + done
40845 + # If $tagname still isn't set, then no tagged configuration
40846 + # was found and let the user know that the "--tag" command
40847 + # line option must be used.
40848 + if test -z "$tagname"; then
40849 + func_echo "unable to infer tagged configuration"
40850 + func_fatal_error "specify a tag with \`--tag'"
40851 +# else
40852 +# func_verbose "using $tagname tagged configuration"
40853 + fi
40854 + ;;
40855 + esac
40856 fi
40857 +}
40858
40859 - # Lock this critical section if it is needed
40860 - # We use this script file to make the link, it avoids creating a new file
40861 - if test "$need_locks" = yes; then
40862 - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
40863 - $show "Waiting for $lockfile to be removed"
40864 - sleep 2
40865 - done
40866 - elif test "$need_locks" = warn; then
40867 - if test -f "$lockfile"; then
40868 - $echo "\
40869 -*** ERROR, $lockfile exists and contains:
40870 -`cat $lockfile 2>/dev/null`
40871
40872 -This indicates that another process is trying to use the same
40873 -temporary object file, and libtool could not work around it because
40874 -your compiler does not support \`-c' and \`-o' together. If you
40875 -repeat this compilation, it may succeed, by chance, but you had better
40876 -avoid parallel builds (make -j) in this platform, or get a better
40877 -compiler."
40878
40879 - $run $rm $removelist
40880 - exit $EXIT_FAILURE
40881 - fi
40882 - $echo "$srcfile" > "$lockfile"
40883 +# func_write_libtool_object output_name pic_name nonpic_name
40884 +# Create a libtool object file (analogous to a ".la" file),
40885 +# but don't create it if we're doing a dry run.
40886 +func_write_libtool_object ()
40887 +{
40888 + write_libobj=${1}
40889 + if test "$build_libtool_libs" = yes; then
40890 + write_lobj=\'${2}\'
40891 + else
40892 + write_lobj=none
40893 fi
40894
40895 - if test -n "$fix_srcfile_path"; then
40896 - eval srcfile=\"$fix_srcfile_path\"
40897 + if test "$build_old_libs" = yes; then
40898 + write_oldobj=\'${3}\'
40899 + else
40900 + write_oldobj=none
40901 fi
40902 - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
40903 - case $qsrcfile in
40904 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
40905 - qsrcfile="\"$qsrcfile\"" ;;
40906 - esac
40907 -
40908 - $run $rm "$libobj" "${libobj}T"
40909
40910 - # Create a libtool object file (analogous to a ".la" file),
40911 - # but don't create it if we're doing a dry run.
40912 - test -z "$run" && cat > ${libobj}T <<EOF
40913 -# $libobj - a libtool object file
40914 -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
40915 + $opt_dry_run || {
40916 + cat >${write_libobj}T <<EOF
40917 +# $write_libobj - a libtool object file
40918 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
40919 #
40920 # Please DO NOT delete this file!
40921 # It is necessary for linking the library.
40922
40923 # Name of the PIC object.
40924 -EOF
40925 +pic_object=$write_lobj
40926
40927 - # Only build a PIC object if we are building libtool libraries.
40928 - if test "$build_libtool_libs" = yes; then
40929 - # Without this assignment, base_compile gets emptied.
40930 - fbsd_hideous_sh_bug=$base_compile
40931 +# Name of the non-PIC object
40932 +non_pic_object=$write_oldobj
40933
40934 - if test "$pic_mode" != no; then
40935 - command="$base_compile $qsrcfile $pic_flag"
40936 - else
40937 - # Don't build PIC code
40938 - command="$base_compile $qsrcfile"
40939 - fi
40940 +EOF
40941 + $MV "${write_libobj}T" "${write_libobj}"
40942 + }
40943 +}
40944
40945 - if test ! -d "${xdir}$objdir"; then
40946 - $show "$mkdir ${xdir}$objdir"
40947 - $run $mkdir ${xdir}$objdir
40948 - exit_status=$?
40949 - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
40950 - exit $exit_status
40951 - fi
40952 - fi
40953
40954 - if test -z "$output_obj"; then
40955 - # Place PIC objects in $objdir
40956 - command="$command -o $lobj"
40957 - fi
40958 +##################################################
40959 +# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
40960 +##################################################
40961
40962 - $run $rm "$lobj" "$output_obj"
40963 +# func_convert_core_file_wine_to_w32 ARG
40964 +# Helper function used by file name conversion functions when $build is *nix,
40965 +# and $host is mingw, cygwin, or some other w32 environment. Relies on a
40966 +# correctly configured wine environment available, with the winepath program
40967 +# in $build's $PATH.
40968 +#
40969 +# ARG is the $build file name to be converted to w32 format.
40970 +# Result is available in $func_convert_core_file_wine_to_w32_result, and will
40971 +# be empty on error (or when ARG is empty)
40972 +func_convert_core_file_wine_to_w32 ()
40973 +{
40974 + $opt_debug
40975 + func_convert_core_file_wine_to_w32_result="$1"
40976 + if test -n "$1"; then
40977 + # Unfortunately, winepath does not exit with a non-zero error code, so we
40978 + # are forced to check the contents of stdout. On the other hand, if the
40979 + # command is not found, the shell will set an exit code of 127 and print
40980 + # *an error message* to stdout. So we must check for both error code of
40981 + # zero AND non-empty stdout, which explains the odd construction:
40982 + func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
40983 + if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
40984 + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
40985 + $SED -e "$lt_sed_naive_backslashify"`
40986 + else
40987 + func_convert_core_file_wine_to_w32_result=
40988 + fi
40989 + fi
40990 +}
40991 +# end: func_convert_core_file_wine_to_w32
40992
40993 - $show "$command"
40994 - if $run eval $lt_env "$command"; then :
40995 - else
40996 - test -n "$output_obj" && $run $rm $removelist
40997 - exit $EXIT_FAILURE
40998 +
40999 +# func_convert_core_path_wine_to_w32 ARG
41000 +# Helper function used by path conversion functions when $build is *nix, and
41001 +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
41002 +# configured wine environment available, with the winepath program in $build's
41003 +# $PATH. Assumes ARG has no leading or trailing path separator characters.
41004 +#
41005 +# ARG is path to be converted from $build format to win32.
41006 +# Result is available in $func_convert_core_path_wine_to_w32_result.
41007 +# Unconvertible file (directory) names in ARG are skipped; if no directory names
41008 +# are convertible, then the result may be empty.
41009 +func_convert_core_path_wine_to_w32 ()
41010 +{
41011 + $opt_debug
41012 + # unfortunately, winepath doesn't convert paths, only file names
41013 + func_convert_core_path_wine_to_w32_result=""
41014 + if test -n "$1"; then
41015 + oldIFS=$IFS
41016 + IFS=:
41017 + for func_convert_core_path_wine_to_w32_f in $1; do
41018 + IFS=$oldIFS
41019 + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
41020 + if test -n "$func_convert_core_file_wine_to_w32_result" ; then
41021 + if test -z "$func_convert_core_path_wine_to_w32_result"; then
41022 + func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
41023 + else
41024 + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
41025 + fi
41026 fi
41027 + done
41028 + IFS=$oldIFS
41029 + fi
41030 +}
41031 +# end: func_convert_core_path_wine_to_w32
41032 +
41033 +
41034 +# func_cygpath ARGS...
41035 +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
41036 +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
41037 +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
41038 +# (2), returns the Cygwin file name or path in func_cygpath_result (input
41039 +# file name or path is assumed to be in w32 format, as previously converted
41040 +# from $build's *nix or MSYS format). In case (3), returns the w32 file name
41041 +# or path in func_cygpath_result (input file name or path is assumed to be in
41042 +# Cygwin format). Returns an empty string on error.
41043 +#
41044 +# ARGS are passed to cygpath, with the last one being the file name or path to
41045 +# be converted.
41046 +#
41047 +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
41048 +# environment variable; do not put it in $PATH.
41049 +func_cygpath ()
41050 +{
41051 + $opt_debug
41052 + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
41053 + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
41054 + if test "$?" -ne 0; then
41055 + # on failure, ensure result is empty
41056 + func_cygpath_result=
41057 + fi
41058 + else
41059 + func_cygpath_result=
41060 + func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
41061 + fi
41062 +}
41063 +#end: func_cygpath
41064
41065 - if test "$need_locks" = warn &&
41066 - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
41067 - $echo "\
41068 -*** ERROR, $lockfile contains:
41069 -`cat $lockfile 2>/dev/null`
41070
41071 -but it should contain:
41072 -$srcfile
41073 +# func_convert_core_msys_to_w32 ARG
41074 +# Convert file name or path ARG from MSYS format to w32 format. Return
41075 +# result in func_convert_core_msys_to_w32_result.
41076 +func_convert_core_msys_to_w32 ()
41077 +{
41078 + $opt_debug
41079 + # awkward: cmd appends spaces to result
41080 + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
41081 + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
41082 +}
41083 +#end: func_convert_core_msys_to_w32
41084
41085 -This indicates that another process is trying to use the same
41086 -temporary object file, and libtool could not work around it because
41087 -your compiler does not support \`-c' and \`-o' together. If you
41088 -repeat this compilation, it may succeed, by chance, but you had better
41089 -avoid parallel builds (make -j) in this platform, or get a better
41090 -compiler."
41091
41092 - $run $rm $removelist
41093 - exit $EXIT_FAILURE
41094 - fi
41095 +# func_convert_file_check ARG1 ARG2
41096 +# Verify that ARG1 (a file name in $build format) was converted to $host
41097 +# format in ARG2. Otherwise, emit an error message, but continue (resetting
41098 +# func_to_host_file_result to ARG1).
41099 +func_convert_file_check ()
41100 +{
41101 + $opt_debug
41102 + if test -z "$2" && test -n "$1" ; then
41103 + func_error "Could not determine host file name corresponding to"
41104 + func_error " \`$1'"
41105 + func_error "Continuing, but uninstalled executables may not work."
41106 + # Fallback:
41107 + func_to_host_file_result="$1"
41108 + fi
41109 +}
41110 +# end func_convert_file_check
41111
41112 - # Just move the object if needed, then go on to compile the next one
41113 - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
41114 - $show "$mv $output_obj $lobj"
41115 - if $run $mv $output_obj $lobj; then :
41116 - else
41117 - error=$?
41118 - $run $rm $removelist
41119 - exit $error
41120 - fi
41121 - fi
41122
41123 - # Append the name of the PIC object to the libtool object file.
41124 - test -z "$run" && cat >> ${libobj}T <<EOF
41125 -pic_object='$objdir/$objname'
41126 +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
41127 +# Verify that FROM_PATH (a path in $build format) was converted to $host
41128 +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
41129 +# func_to_host_file_result to a simplistic fallback value (see below).
41130 +func_convert_path_check ()
41131 +{
41132 + $opt_debug
41133 + if test -z "$4" && test -n "$3"; then
41134 + func_error "Could not determine the host path corresponding to"
41135 + func_error " \`$3'"
41136 + func_error "Continuing, but uninstalled executables may not work."
41137 + # Fallback. This is a deliberately simplistic "conversion" and
41138 + # should not be "improved". See libtool.info.
41139 + if test "x$1" != "x$2"; then
41140 + lt_replace_pathsep_chars="s|$1|$2|g"
41141 + func_to_host_path_result=`echo "$3" |
41142 + $SED -e "$lt_replace_pathsep_chars"`
41143 + else
41144 + func_to_host_path_result="$3"
41145 + fi
41146 + fi
41147 +}
41148 +# end func_convert_path_check
41149
41150 -EOF
41151
41152 - # Allow error messages only from the first compilation.
41153 - if test "$suppress_opt" = yes; then
41154 - suppress_output=' >/dev/null 2>&1'
41155 - fi
41156 - else
41157 - # No PIC object so indicate it doesn't exist in the libtool
41158 - # object file.
41159 - test -z "$run" && cat >> ${libobj}T <<EOF
41160 -pic_object=none
41161 +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
41162 +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
41163 +# and appending REPL if ORIG matches BACKPAT.
41164 +func_convert_path_front_back_pathsep ()
41165 +{
41166 + $opt_debug
41167 + case $4 in
41168 + $1 ) func_to_host_path_result="$3$func_to_host_path_result"
41169 + ;;
41170 + esac
41171 + case $4 in
41172 + $2 ) func_append func_to_host_path_result "$3"
41173 + ;;
41174 + esac
41175 +}
41176 +# end func_convert_path_front_back_pathsep
41177
41178 -EOF
41179 - fi
41180
41181 - # Only build a position-dependent object if we build old libraries.
41182 - if test "$build_old_libs" = yes; then
41183 - if test "$pic_mode" != yes; then
41184 - # Don't build PIC code
41185 - command="$base_compile $qsrcfile"
41186 - else
41187 - command="$base_compile $qsrcfile $pic_flag"
41188 - fi
41189 - if test "$compiler_c_o" = yes; then
41190 - command="$command -o $obj"
41191 - fi
41192 +##################################################
41193 +# $build to $host FILE NAME CONVERSION FUNCTIONS #
41194 +##################################################
41195 +# invoked via `$to_host_file_cmd ARG'
41196 +#
41197 +# In each case, ARG is the path to be converted from $build to $host format.
41198 +# Result will be available in $func_to_host_file_result.
41199
41200 - # Suppress compiler output if we already did a PIC compilation.
41201 - command="$command$suppress_output"
41202 - $run $rm "$obj" "$output_obj"
41203 - $show "$command"
41204 - if $run eval $lt_env "$command"; then :
41205 - else
41206 - $run $rm $removelist
41207 - exit $EXIT_FAILURE
41208 - fi
41209
41210 - if test "$need_locks" = warn &&
41211 - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
41212 - $echo "\
41213 -*** ERROR, $lockfile contains:
41214 -`cat $lockfile 2>/dev/null`
41215 +# func_to_host_file ARG
41216 +# Converts the file name ARG from $build format to $host format. Return result
41217 +# in func_to_host_file_result.
41218 +func_to_host_file ()
41219 +{
41220 + $opt_debug
41221 + $to_host_file_cmd "$1"
41222 +}
41223 +# end func_to_host_file
41224
41225 -but it should contain:
41226 -$srcfile
41227
41228 -This indicates that another process is trying to use the same
41229 -temporary object file, and libtool could not work around it because
41230 -your compiler does not support \`-c' and \`-o' together. If you
41231 -repeat this compilation, it may succeed, by chance, but you had better
41232 -avoid parallel builds (make -j) in this platform, or get a better
41233 -compiler."
41234 +# func_to_tool_file ARG LAZY
41235 +# converts the file name ARG from $build format to toolchain format. Return
41236 +# result in func_to_tool_file_result. If the conversion in use is listed
41237 +# in (the comma separated) LAZY, no conversion takes place.
41238 +func_to_tool_file ()
41239 +{
41240 + $opt_debug
41241 + case ,$2, in
41242 + *,"$to_tool_file_cmd",*)
41243 + func_to_tool_file_result=$1
41244 + ;;
41245 + *)
41246 + $to_tool_file_cmd "$1"
41247 + func_to_tool_file_result=$func_to_host_file_result
41248 + ;;
41249 + esac
41250 +}
41251 +# end func_to_tool_file
41252
41253 - $run $rm $removelist
41254 - exit $EXIT_FAILURE
41255 - fi
41256
41257 - # Just move the object if needed
41258 - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
41259 - $show "$mv $output_obj $obj"
41260 - if $run $mv $output_obj $obj; then :
41261 - else
41262 - error=$?
41263 - $run $rm $removelist
41264 - exit $error
41265 - fi
41266 - fi
41267 +# func_convert_file_noop ARG
41268 +# Copy ARG to func_to_host_file_result.
41269 +func_convert_file_noop ()
41270 +{
41271 + func_to_host_file_result="$1"
41272 +}
41273 +# end func_convert_file_noop
41274
41275 - # Append the name of the non-PIC object the libtool object file.
41276 - # Only append if the libtool object file exists.
41277 - test -z "$run" && cat >> ${libobj}T <<EOF
41278 -# Name of the non-PIC object.
41279 -non_pic_object='$objname'
41280
41281 -EOF
41282 - else
41283 - # Append the name of the non-PIC object the libtool object file.
41284 - # Only append if the libtool object file exists.
41285 - test -z "$run" && cat >> ${libobj}T <<EOF
41286 -# Name of the non-PIC object.
41287 -non_pic_object=none
41288 +# func_convert_file_msys_to_w32 ARG
41289 +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
41290 +# conversion to w32 is not available inside the cwrapper. Returns result in
41291 +# func_to_host_file_result.
41292 +func_convert_file_msys_to_w32 ()
41293 +{
41294 + $opt_debug
41295 + func_to_host_file_result="$1"
41296 + if test -n "$1"; then
41297 + func_convert_core_msys_to_w32 "$1"
41298 + func_to_host_file_result="$func_convert_core_msys_to_w32_result"
41299 + fi
41300 + func_convert_file_check "$1" "$func_to_host_file_result"
41301 +}
41302 +# end func_convert_file_msys_to_w32
41303
41304 -EOF
41305 - fi
41306
41307 - $run $mv "${libobj}T" "${libobj}"
41308 +# func_convert_file_cygwin_to_w32 ARG
41309 +# Convert file name ARG from Cygwin to w32 format. Returns result in
41310 +# func_to_host_file_result.
41311 +func_convert_file_cygwin_to_w32 ()
41312 +{
41313 + $opt_debug
41314 + func_to_host_file_result="$1"
41315 + if test -n "$1"; then
41316 + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
41317 + # LT_CYGPATH in this case.
41318 + func_to_host_file_result=`cygpath -m "$1"`
41319 + fi
41320 + func_convert_file_check "$1" "$func_to_host_file_result"
41321 +}
41322 +# end func_convert_file_cygwin_to_w32
41323
41324 - # Unlock the critical section if it was locked
41325 - if test "$need_locks" != no; then
41326 - $run $rm "$lockfile"
41327 - fi
41328
41329 - exit $EXIT_SUCCESS
41330 - ;;
41331 +# func_convert_file_nix_to_w32 ARG
41332 +# Convert file name ARG from *nix to w32 format. Requires a wine environment
41333 +# and a working winepath. Returns result in func_to_host_file_result.
41334 +func_convert_file_nix_to_w32 ()
41335 +{
41336 + $opt_debug
41337 + func_to_host_file_result="$1"
41338 + if test -n "$1"; then
41339 + func_convert_core_file_wine_to_w32 "$1"
41340 + func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
41341 + fi
41342 + func_convert_file_check "$1" "$func_to_host_file_result"
41343 +}
41344 +# end func_convert_file_nix_to_w32
41345
41346 - # libtool link mode
41347 - link | relink)
41348 - modename="$modename: link"
41349 - case $host in
41350 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
41351 - # It is impossible to link a dll without this setting, and
41352 - # we shouldn't force the makefile maintainer to figure out
41353 - # which system we are compiling for in order to pass an extra
41354 - # flag for every libtool invocation.
41355 - # allow_undefined=no
41356
41357 - # FIXME: Unfortunately, there are problems with the above when trying
41358 - # to make a dll which has undefined symbols, in which case not
41359 - # even a static library is built. For now, we need to specify
41360 - # -no-undefined on the libtool link line when we can be certain
41361 - # that all symbols are satisfied, otherwise we get a static library.
41362 - allow_undefined=yes
41363 - ;;
41364 - *)
41365 - allow_undefined=yes
41366 - ;;
41367 - esac
41368 - libtool_args="$nonopt"
41369 - base_compile="$nonopt $@"
41370 - compile_command="$nonopt"
41371 - finalize_command="$nonopt"
41372 +# func_convert_file_msys_to_cygwin ARG
41373 +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
41374 +# Returns result in func_to_host_file_result.
41375 +func_convert_file_msys_to_cygwin ()
41376 +{
41377 + $opt_debug
41378 + func_to_host_file_result="$1"
41379 + if test -n "$1"; then
41380 + func_convert_core_msys_to_w32 "$1"
41381 + func_cygpath -u "$func_convert_core_msys_to_w32_result"
41382 + func_to_host_file_result="$func_cygpath_result"
41383 + fi
41384 + func_convert_file_check "$1" "$func_to_host_file_result"
41385 +}
41386 +# end func_convert_file_msys_to_cygwin
41387
41388 - compile_rpath=
41389 - finalize_rpath=
41390 - compile_shlibpath=
41391 - finalize_shlibpath=
41392 - convenience=
41393 - old_convenience=
41394 - deplibs=
41395 - old_deplibs=
41396 - compiler_flags=
41397 - linker_flags=
41398 - dllsearchpath=
41399 - lib_search_path=`pwd`
41400 - inst_prefix_dir=
41401
41402 - avoid_version=no
41403 - dlfiles=
41404 - dlprefiles=
41405 - dlself=no
41406 - export_dynamic=no
41407 - export_symbols=
41408 - export_symbols_regex=
41409 - generated=
41410 - libobjs=
41411 - ltlibs=
41412 - module=no
41413 - no_install=no
41414 - objs=
41415 - non_pic_objects=
41416 - notinst_path= # paths that contain not-installed libtool libraries
41417 - precious_files_regex=
41418 - prefer_static_libs=no
41419 - preload=no
41420 - prev=
41421 - prevarg=
41422 - release=
41423 - rpath=
41424 - xrpath=
41425 - perm_rpath=
41426 - temp_rpath=
41427 - thread_safe=no
41428 - vinfo=
41429 - vinfo_number=no
41430 - single_module="${wl}-single_module"
41431 +# func_convert_file_nix_to_cygwin ARG
41432 +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
41433 +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result
41434 +# in func_to_host_file_result.
41435 +func_convert_file_nix_to_cygwin ()
41436 +{
41437 + $opt_debug
41438 + func_to_host_file_result="$1"
41439 + if test -n "$1"; then
41440 + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
41441 + func_convert_core_file_wine_to_w32 "$1"
41442 + func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
41443 + func_to_host_file_result="$func_cygpath_result"
41444 + fi
41445 + func_convert_file_check "$1" "$func_to_host_file_result"
41446 +}
41447 +# end func_convert_file_nix_to_cygwin
41448
41449 - func_infer_tag $base_compile
41450
41451 - # We need to know -static, to get the right output filenames.
41452 - for arg
41453 - do
41454 - case $arg in
41455 - -all-static | -static | -static-libtool-libs)
41456 - case $arg in
41457 - -all-static)
41458 - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
41459 - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
41460 - fi
41461 - if test -n "$link_static_flag"; then
41462 - dlopen_self=$dlopen_self_static
41463 - fi
41464 - prefer_static_libs=yes
41465 - ;;
41466 - -static)
41467 - if test -z "$pic_flag" && test -n "$link_static_flag"; then
41468 - dlopen_self=$dlopen_self_static
41469 - fi
41470 - prefer_static_libs=built
41471 - ;;
41472 - -static-libtool-libs)
41473 - if test -z "$pic_flag" && test -n "$link_static_flag"; then
41474 - dlopen_self=$dlopen_self_static
41475 - fi
41476 - prefer_static_libs=yes
41477 - ;;
41478 - esac
41479 - build_libtool_libs=no
41480 - build_old_libs=yes
41481 - break
41482 - ;;
41483 - esac
41484 - done
41485 +#############################################
41486 +# $build to $host PATH CONVERSION FUNCTIONS #
41487 +#############################################
41488 +# invoked via `$to_host_path_cmd ARG'
41489 +#
41490 +# In each case, ARG is the path to be converted from $build to $host format.
41491 +# The result will be available in $func_to_host_path_result.
41492 +#
41493 +# Path separators are also converted from $build format to $host format. If
41494 +# ARG begins or ends with a path separator character, it is preserved (but
41495 +# converted to $host format) on output.
41496 +#
41497 +# All path conversion functions are named using the following convention:
41498 +# file name conversion function : func_convert_file_X_to_Y ()
41499 +# path conversion function : func_convert_path_X_to_Y ()
41500 +# where, for any given $build/$host combination the 'X_to_Y' value is the
41501 +# same. If conversion functions are added for new $build/$host combinations,
41502 +# the two new functions must follow this pattern, or func_init_to_host_path_cmd
41503 +# will break.
41504 +
41505 +
41506 +# func_init_to_host_path_cmd
41507 +# Ensures that function "pointer" variable $to_host_path_cmd is set to the
41508 +# appropriate value, based on the value of $to_host_file_cmd.
41509 +to_host_path_cmd=
41510 +func_init_to_host_path_cmd ()
41511 +{
41512 + $opt_debug
41513 + if test -z "$to_host_path_cmd"; then
41514 + func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
41515 + to_host_path_cmd="func_convert_path_${func_stripname_result}"
41516 + fi
41517 +}
41518
41519 - # See if our shared archives depend on static archives.
41520 - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
41521
41522 - # Go through the arguments, transforming them on the way.
41523 - while test "$#" -gt 0; do
41524 - arg="$1"
41525 - shift
41526 - case $arg in
41527 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
41528 - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
41529 - ;;
41530 - *) qarg=$arg ;;
41531 - esac
41532 - libtool_args="$libtool_args $qarg"
41533 +# func_to_host_path ARG
41534 +# Converts the path ARG from $build format to $host format. Return result
41535 +# in func_to_host_path_result.
41536 +func_to_host_path ()
41537 +{
41538 + $opt_debug
41539 + func_init_to_host_path_cmd
41540 + $to_host_path_cmd "$1"
41541 +}
41542 +# end func_to_host_path
41543
41544 - # If the previous option needs an argument, assign it.
41545 - if test -n "$prev"; then
41546 - case $prev in
41547 - output)
41548 - compile_command="$compile_command @OUTPUT@"
41549 - finalize_command="$finalize_command @OUTPUT@"
41550 - ;;
41551 - esac
41552
41553 - case $prev in
41554 - dlfiles|dlprefiles)
41555 - if test "$preload" = no; then
41556 - # Add the symbol object into the linking commands.
41557 - compile_command="$compile_command @SYMFILE@"
41558 - finalize_command="$finalize_command @SYMFILE@"
41559 - preload=yes
41560 - fi
41561 - case $arg in
41562 - *.la | *.lo) ;; # We handle these cases below.
41563 - force)
41564 - if test "$dlself" = no; then
41565 - dlself=needless
41566 - export_dynamic=yes
41567 - fi
41568 - prev=
41569 - continue
41570 - ;;
41571 - self)
41572 - if test "$prev" = dlprefiles; then
41573 - dlself=yes
41574 - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
41575 - dlself=yes
41576 - else
41577 - dlself=needless
41578 - export_dynamic=yes
41579 - fi
41580 - prev=
41581 - continue
41582 - ;;
41583 - *)
41584 - if test "$prev" = dlfiles; then
41585 - dlfiles="$dlfiles $arg"
41586 - else
41587 - dlprefiles="$dlprefiles $arg"
41588 - fi
41589 - prev=
41590 - continue
41591 - ;;
41592 - esac
41593 - ;;
41594 - expsyms)
41595 - export_symbols="$arg"
41596 - if test ! -f "$arg"; then
41597 - $echo "$modename: symbol file \`$arg' does not exist"
41598 - exit $EXIT_FAILURE
41599 - fi
41600 - prev=
41601 - continue
41602 - ;;
41603 - expsyms_regex)
41604 - export_symbols_regex="$arg"
41605 - prev=
41606 - continue
41607 - ;;
41608 - inst_prefix)
41609 - inst_prefix_dir="$arg"
41610 - prev=
41611 - continue
41612 - ;;
41613 - precious_regex)
41614 - precious_files_regex="$arg"
41615 - prev=
41616 - continue
41617 - ;;
41618 - release)
41619 - release="-$arg"
41620 - prev=
41621 - continue
41622 - ;;
41623 - objectlist)
41624 - if test -f "$arg"; then
41625 - save_arg=$arg
41626 - moreargs=
41627 - for fil in `cat $save_arg`
41628 - do
41629 -# moreargs="$moreargs $fil"
41630 - arg=$fil
41631 - # A libtool-controlled object.
41632 +# func_convert_path_noop ARG
41633 +# Copy ARG to func_to_host_path_result.
41634 +func_convert_path_noop ()
41635 +{
41636 + func_to_host_path_result="$1"
41637 +}
41638 +# end func_convert_path_noop
41639
41640 - # Check to see that this really is a libtool object.
41641 - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
41642 - pic_object=
41643 - non_pic_object=
41644
41645 - # Read the .lo file
41646 - # If there is no directory component, then add one.
41647 - case $arg in
41648 - */* | *\\*) . $arg ;;
41649 - *) . ./$arg ;;
41650 - esac
41651 +# func_convert_path_msys_to_w32 ARG
41652 +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
41653 +# conversion to w32 is not available inside the cwrapper. Returns result in
41654 +# func_to_host_path_result.
41655 +func_convert_path_msys_to_w32 ()
41656 +{
41657 + $opt_debug
41658 + func_to_host_path_result="$1"
41659 + if test -n "$1"; then
41660 + # Remove leading and trailing path separator characters from ARG. MSYS
41661 + # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
41662 + # and winepath ignores them completely.
41663 + func_stripname : : "$1"
41664 + func_to_host_path_tmp1=$func_stripname_result
41665 + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
41666 + func_to_host_path_result="$func_convert_core_msys_to_w32_result"
41667 + func_convert_path_check : ";" \
41668 + "$func_to_host_path_tmp1" "$func_to_host_path_result"
41669 + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
41670 + fi
41671 +}
41672 +# end func_convert_path_msys_to_w32
41673
41674 - if test -z "$pic_object" || \
41675 - test -z "$non_pic_object" ||
41676 - test "$pic_object" = none && \
41677 - test "$non_pic_object" = none; then
41678 - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
41679 - exit $EXIT_FAILURE
41680 - fi
41681
41682 - # Extract subdirectory from the argument.
41683 - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
41684 - if test "X$xdir" = "X$arg"; then
41685 - xdir=
41686 - else
41687 - xdir="$xdir/"
41688 - fi
41689 +# func_convert_path_cygwin_to_w32 ARG
41690 +# Convert path ARG from Cygwin to w32 format. Returns result in
41691 +# func_to_host_file_result.
41692 +func_convert_path_cygwin_to_w32 ()
41693 +{
41694 + $opt_debug
41695 + func_to_host_path_result="$1"
41696 + if test -n "$1"; then
41697 + # See func_convert_path_msys_to_w32:
41698 + func_stripname : : "$1"
41699 + func_to_host_path_tmp1=$func_stripname_result
41700 + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
41701 + func_convert_path_check : ";" \
41702 + "$func_to_host_path_tmp1" "$func_to_host_path_result"
41703 + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
41704 + fi
41705 +}
41706 +# end func_convert_path_cygwin_to_w32
41707
41708 - if test "$pic_object" != none; then
41709 - # Prepend the subdirectory the object is found in.
41710 - pic_object="$xdir$pic_object"
41711
41712 - if test "$prev" = dlfiles; then
41713 - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
41714 - dlfiles="$dlfiles $pic_object"
41715 - prev=
41716 - continue
41717 - else
41718 - # If libtool objects are unsupported, then we need to preload.
41719 - prev=dlprefiles
41720 - fi
41721 - fi
41722 +# func_convert_path_nix_to_w32 ARG
41723 +# Convert path ARG from *nix to w32 format. Requires a wine environment and
41724 +# a working winepath. Returns result in func_to_host_file_result.
41725 +func_convert_path_nix_to_w32 ()
41726 +{
41727 + $opt_debug
41728 + func_to_host_path_result="$1"
41729 + if test -n "$1"; then
41730 + # See func_convert_path_msys_to_w32:
41731 + func_stripname : : "$1"
41732 + func_to_host_path_tmp1=$func_stripname_result
41733 + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
41734 + func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
41735 + func_convert_path_check : ";" \
41736 + "$func_to_host_path_tmp1" "$func_to_host_path_result"
41737 + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
41738 + fi
41739 +}
41740 +# end func_convert_path_nix_to_w32
41741
41742 - # CHECK ME: I think I busted this. -Ossama
41743 - if test "$prev" = dlprefiles; then
41744 - # Preload the old-style object.
41745 - dlprefiles="$dlprefiles $pic_object"
41746 - prev=
41747 - fi
41748
41749 - # A PIC object.
41750 - libobjs="$libobjs $pic_object"
41751 - arg="$pic_object"
41752 - fi
41753 +# func_convert_path_msys_to_cygwin ARG
41754 +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
41755 +# Returns result in func_to_host_file_result.
41756 +func_convert_path_msys_to_cygwin ()
41757 +{
41758 + $opt_debug
41759 + func_to_host_path_result="$1"
41760 + if test -n "$1"; then
41761 + # See func_convert_path_msys_to_w32:
41762 + func_stripname : : "$1"
41763 + func_to_host_path_tmp1=$func_stripname_result
41764 + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
41765 + func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
41766 + func_to_host_path_result="$func_cygpath_result"
41767 + func_convert_path_check : : \
41768 + "$func_to_host_path_tmp1" "$func_to_host_path_result"
41769 + func_convert_path_front_back_pathsep ":*" "*:" : "$1"
41770 + fi
41771 +}
41772 +# end func_convert_path_msys_to_cygwin
41773
41774 - # Non-PIC object.
41775 - if test "$non_pic_object" != none; then
41776 - # Prepend the subdirectory the object is found in.
41777 - non_pic_object="$xdir$non_pic_object"
41778
41779 - # A standard non-PIC object
41780 - non_pic_objects="$non_pic_objects $non_pic_object"
41781 - if test -z "$pic_object" || test "$pic_object" = none ; then
41782 - arg="$non_pic_object"
41783 - fi
41784 - else
41785 - # If the PIC object exists, use it instead.
41786 - # $xdir was prepended to $pic_object above.
41787 - non_pic_object="$pic_object"
41788 - non_pic_objects="$non_pic_objects $non_pic_object"
41789 - fi
41790 - else
41791 - # Only an error if not doing a dry-run.
41792 - if test -z "$run"; then
41793 - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
41794 - exit $EXIT_FAILURE
41795 - else
41796 - # Dry-run case.
41797 +# func_convert_path_nix_to_cygwin ARG
41798 +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
41799 +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in
41800 +# func_to_host_file_result.
41801 +func_convert_path_nix_to_cygwin ()
41802 +{
41803 + $opt_debug
41804 + func_to_host_path_result="$1"
41805 + if test -n "$1"; then
41806 + # Remove leading and trailing path separator characters from
41807 + # ARG. msys behavior is inconsistent here, cygpath turns them
41808 + # into '.;' and ';.', and winepath ignores them completely.
41809 + func_stripname : : "$1"
41810 + func_to_host_path_tmp1=$func_stripname_result
41811 + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
41812 + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
41813 + func_to_host_path_result="$func_cygpath_result"
41814 + func_convert_path_check : : \
41815 + "$func_to_host_path_tmp1" "$func_to_host_path_result"
41816 + func_convert_path_front_back_pathsep ":*" "*:" : "$1"
41817 + fi
41818 +}
41819 +# end func_convert_path_nix_to_cygwin
41820
41821 - # Extract subdirectory from the argument.
41822 - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
41823 - if test "X$xdir" = "X$arg"; then
41824 - xdir=
41825 - else
41826 - xdir="$xdir/"
41827 - fi
41828
41829 - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
41830 - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
41831 - libobjs="$libobjs $pic_object"
41832 - non_pic_objects="$non_pic_objects $non_pic_object"
41833 - fi
41834 - fi
41835 - done
41836 - else
41837 - $echo "$modename: link input file \`$save_arg' does not exist"
41838 - exit $EXIT_FAILURE
41839 - fi
41840 - arg=$save_arg
41841 - prev=
41842 - continue
41843 - ;;
41844 - rpath | xrpath)
41845 - # We need an absolute path.
41846 - case $arg in
41847 - [\\/]* | [A-Za-z]:[\\/]*) ;;
41848 - *)
41849 - $echo "$modename: only absolute run-paths are allowed" 1>&2
41850 - exit $EXIT_FAILURE
41851 - ;;
41852 - esac
41853 - if test "$prev" = rpath; then
41854 - case "$rpath " in
41855 - *" $arg "*) ;;
41856 - *) rpath="$rpath $arg" ;;
41857 - esac
41858 - else
41859 - case "$xrpath " in
41860 - *" $arg "*) ;;
41861 - *) xrpath="$xrpath $arg" ;;
41862 - esac
41863 - fi
41864 - prev=
41865 - continue
41866 - ;;
41867 - xcompiler)
41868 - compiler_flags="$compiler_flags $qarg"
41869 - prev=
41870 - compile_command="$compile_command $qarg"
41871 - finalize_command="$finalize_command $qarg"
41872 - continue
41873 - ;;
41874 - xlinker)
41875 - linker_flags="$linker_flags $qarg"
41876 - compiler_flags="$compiler_flags $wl$qarg"
41877 - prev=
41878 - compile_command="$compile_command $wl$qarg"
41879 - finalize_command="$finalize_command $wl$qarg"
41880 - continue
41881 - ;;
41882 - xcclinker)
41883 - linker_flags="$linker_flags $qarg"
41884 - compiler_flags="$compiler_flags $qarg"
41885 - prev=
41886 - compile_command="$compile_command $qarg"
41887 - finalize_command="$finalize_command $qarg"
41888 +# func_mode_compile arg...
41889 +func_mode_compile ()
41890 +{
41891 + $opt_debug
41892 + # Get the compilation command and the source file.
41893 + base_compile=
41894 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
41895 + suppress_opt=yes
41896 + suppress_output=
41897 + arg_mode=normal
41898 + libobj=
41899 + later=
41900 + pie_flag=
41901 +
41902 + for arg
41903 + do
41904 + case $arg_mode in
41905 + arg )
41906 + # do not "continue". Instead, add this to base_compile
41907 + lastarg="$arg"
41908 + arg_mode=normal
41909 + ;;
41910 +
41911 + target )
41912 + libobj="$arg"
41913 + arg_mode=normal
41914 + continue
41915 + ;;
41916 +
41917 + normal )
41918 + # Accept any command-line options.
41919 + case $arg in
41920 + -o)
41921 + test -n "$libobj" && \
41922 + func_fatal_error "you cannot specify \`-o' more than once"
41923 + arg_mode=target
41924 continue
41925 ;;
41926 - shrext)
41927 - shrext_cmds="$arg"
41928 - prev=
41929 +
41930 + -pie | -fpie | -fPIE)
41931 + func_append pie_flag " $arg"
41932 continue
41933 ;;
41934 - darwin_framework|darwin_framework_skip)
41935 - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
41936 - compile_command="$compile_command $arg"
41937 - finalize_command="$finalize_command $arg"
41938 - prev=
41939 +
41940 + -shared | -static | -prefer-pic | -prefer-non-pic)
41941 + func_append later " $arg"
41942 continue
41943 ;;
41944 - *)
41945 - eval "$prev=\"\$arg\""
41946 - prev=
41947 +
41948 + -no-suppress)
41949 + suppress_opt=no
41950 continue
41951 ;;
41952 - esac
41953 - fi # test -n "$prev"
41954
41955 - prevarg="$arg"
41956 + -Xcompiler)
41957 + arg_mode=arg # the next one goes into the "base_compile" arg list
41958 + continue # The current "srcfile" will either be retained or
41959 + ;; # replaced later. I would guess that would be a bug.
41960
41961 - case $arg in
41962 - -all-static)
41963 - if test -n "$link_static_flag"; then
41964 - compile_command="$compile_command $link_static_flag"
41965 - finalize_command="$finalize_command $link_static_flag"
41966 - fi
41967 - continue
41968 - ;;
41969 + -Wc,*)
41970 + func_stripname '-Wc,' '' "$arg"
41971 + args=$func_stripname_result
41972 + lastarg=
41973 + save_ifs="$IFS"; IFS=','
41974 + for arg in $args; do
41975 + IFS="$save_ifs"
41976 + func_append_quoted lastarg "$arg"
41977 + done
41978 + IFS="$save_ifs"
41979 + func_stripname ' ' '' "$lastarg"
41980 + lastarg=$func_stripname_result
41981
41982 - -allow-undefined)
41983 - # FIXME: remove this flag sometime in the future.
41984 - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
41985 - continue
41986 - ;;
41987 + # Add the arguments to base_compile.
41988 + func_append base_compile " $lastarg"
41989 + continue
41990 + ;;
41991
41992 - -avoid-version)
41993 - avoid_version=yes
41994 - continue
41995 + *)
41996 + # Accept the current argument as the source file.
41997 + # The previous "srcfile" becomes the current argument.
41998 + #
41999 + lastarg="$srcfile"
42000 + srcfile="$arg"
42001 + ;;
42002 + esac # case $arg
42003 ;;
42004 + esac # case $arg_mode
42005
42006 - -dlopen)
42007 - prev=dlfiles
42008 - continue
42009 - ;;
42010 + # Aesthetically quote the previous argument.
42011 + func_append_quoted base_compile "$lastarg"
42012 + done # for arg
42013
42014 - -dlpreopen)
42015 - prev=dlprefiles
42016 - continue
42017 - ;;
42018 -
42019 - -export-dynamic)
42020 - export_dynamic=yes
42021 - continue
42022 - ;;
42023 + case $arg_mode in
42024 + arg)
42025 + func_fatal_error "you must specify an argument for -Xcompile"
42026 + ;;
42027 + target)
42028 + func_fatal_error "you must specify a target with \`-o'"
42029 + ;;
42030 + *)
42031 + # Get the name of the library object.
42032 + test -z "$libobj" && {
42033 + func_basename "$srcfile"
42034 + libobj="$func_basename_result"
42035 + }
42036 + ;;
42037 + esac
42038
42039 - -export-symbols | -export-symbols-regex)
42040 - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
42041 - $echo "$modename: more than one -exported-symbols argument is not allowed"
42042 - exit $EXIT_FAILURE
42043 - fi
42044 - if test "X$arg" = "X-export-symbols"; then
42045 - prev=expsyms
42046 - else
42047 - prev=expsyms_regex
42048 - fi
42049 - continue
42050 - ;;
42051 + # Recognize several different file suffixes.
42052 + # If the user specifies -o file.o, it is replaced with file.lo
42053 + case $libobj in
42054 + *.[cCFSifmso] | \
42055 + *.ada | *.adb | *.ads | *.asm | \
42056 + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
42057 + *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
42058 + func_xform "$libobj"
42059 + libobj=$func_xform_result
42060 + ;;
42061 + esac
42062
42063 - -framework|-arch|-isysroot)
42064 - case " $CC " in
42065 - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
42066 - prev=darwin_framework_skip ;;
42067 - *) compiler_flags="$compiler_flags $arg"
42068 - prev=darwin_framework ;;
42069 - esac
42070 - compile_command="$compile_command $arg"
42071 - finalize_command="$finalize_command $arg"
42072 - continue
42073 - ;;
42074 + case $libobj in
42075 + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
42076 + *)
42077 + func_fatal_error "cannot determine name of library object from \`$libobj'"
42078 + ;;
42079 + esac
42080
42081 - -inst-prefix-dir)
42082 - prev=inst_prefix
42083 - continue
42084 - ;;
42085 + func_infer_tag $base_compile
42086
42087 - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
42088 - # so, if we see these flags be careful not to treat them like -L
42089 - -L[A-Z][A-Z]*:*)
42090 - case $with_gcc/$host in
42091 - no/*-*-irix* | /*-*-irix*)
42092 - compile_command="$compile_command $arg"
42093 - finalize_command="$finalize_command $arg"
42094 - ;;
42095 - esac
42096 + for arg in $later; do
42097 + case $arg in
42098 + -shared)
42099 + test "$build_libtool_libs" != yes && \
42100 + func_fatal_configuration "can not build a shared library"
42101 + build_old_libs=no
42102 continue
42103 ;;
42104
42105 - -L*)
42106 - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
42107 - # We need an absolute path.
42108 - case $dir in
42109 - [\\/]* | [A-Za-z]:[\\/]*) ;;
42110 - *)
42111 - absdir=`cd "$dir" && pwd`
42112 - if test -z "$absdir"; then
42113 - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
42114 - absdir="$dir"
42115 - notinst_path="$notinst_path $dir"
42116 - fi
42117 - dir="$absdir"
42118 - ;;
42119 - esac
42120 - case "$deplibs " in
42121 - *" -L$dir "*) ;;
42122 - *)
42123 - deplibs="$deplibs -L$dir"
42124 - lib_search_path="$lib_search_path $dir"
42125 - ;;
42126 - esac
42127 - case $host in
42128 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
42129 - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
42130 - case :$dllsearchpath: in
42131 - *":$dir:"*) ;;
42132 - *) dllsearchpath="$dllsearchpath:$dir";;
42133 - esac
42134 - case :$dllsearchpath: in
42135 - *":$testbindir:"*) ;;
42136 - *) dllsearchpath="$dllsearchpath:$testbindir";;
42137 - esac
42138 - ;;
42139 - esac
42140 + -static)
42141 + build_libtool_libs=no
42142 + build_old_libs=yes
42143 continue
42144 ;;
42145
42146 - -l*)
42147 - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
42148 - case $host in
42149 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
42150 - # These systems don't actually have a C or math library (as such)
42151 - continue
42152 - ;;
42153 - *-*-os2*)
42154 - # These systems don't actually have a C library (as such)
42155 - test "X$arg" = "X-lc" && continue
42156 - ;;
42157 - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
42158 - # Do not include libc due to us having libc/libc_r.
42159 - test "X$arg" = "X-lc" && continue
42160 - ;;
42161 - *-*-rhapsody* | *-*-darwin1.[012])
42162 - # Rhapsody C and math libraries are in the System framework
42163 - deplibs="$deplibs -framework System"
42164 - continue
42165 - ;;
42166 - *-*-sco3.2v5* | *-*-sco5v6*)
42167 - # Causes problems with __ctype
42168 - test "X$arg" = "X-lc" && continue
42169 - ;;
42170 - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
42171 - # Compiler inserts libc in the correct place for threads to work
42172 - test "X$arg" = "X-lc" && continue
42173 - ;;
42174 - esac
42175 - elif test "X$arg" = "X-lc_r"; then
42176 - case $host in
42177 - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
42178 - # Do not include libc_r directly, use -pthread flag.
42179 - continue
42180 - ;;
42181 - esac
42182 - fi
42183 - deplibs="$deplibs $arg"
42184 + -prefer-pic)
42185 + pic_mode=yes
42186 continue
42187 ;;
42188
42189 - # Tru64 UNIX uses -model [arg] to determine the layout of C++
42190 - # classes, name mangling, and exception handling.
42191 - -model)
42192 - compile_command="$compile_command $arg"
42193 - compiler_flags="$compiler_flags $arg"
42194 - finalize_command="$finalize_command $arg"
42195 - prev=xcompiler
42196 + -prefer-non-pic)
42197 + pic_mode=no
42198 continue
42199 ;;
42200 + esac
42201 + done
42202
42203 - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
42204 - compiler_flags="$compiler_flags $arg"
42205 - compile_command="$compile_command $arg"
42206 - finalize_command="$finalize_command $arg"
42207 - continue
42208 - ;;
42209 + func_quote_for_eval "$libobj"
42210 + test "X$libobj" != "X$func_quote_for_eval_result" \
42211 + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
42212 + && func_warning "libobj name \`$libobj' may not contain shell special characters."
42213 + func_dirname_and_basename "$obj" "/" ""
42214 + objname="$func_basename_result"
42215 + xdir="$func_dirname_result"
42216 + lobj=${xdir}$objdir/$objname
42217
42218 - -multi_module)
42219 - single_module="${wl}-multi_module"
42220 - continue
42221 - ;;
42222 + test -z "$base_compile" && \
42223 + func_fatal_help "you must specify a compilation command"
42224
42225 - -module)
42226 - module=yes
42227 - continue
42228 - ;;
42229 + # Delete any leftover library objects.
42230 + if test "$build_old_libs" = yes; then
42231 + removelist="$obj $lobj $libobj ${libobj}T"
42232 + else
42233 + removelist="$lobj $libobj ${libobj}T"
42234 + fi
42235
42236 - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
42237 - # -r[0-9][0-9]* specifies the processor on the SGI compiler
42238 - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
42239 - # +DA*, +DD* enable 64-bit mode on the HP compiler
42240 - # -q* pass through compiler args for the IBM compiler
42241 - # -m* pass through architecture-specific compiler args for GCC
42242 - # -m*, -t[45]*, -txscale* pass through architecture-specific
42243 - # compiler args for GCC
42244 - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
42245 - # -F/path gives path to uninstalled frameworks, gcc on darwin
42246 - # @file GCC response files
42247 - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
42248 - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
42249 + # On Cygwin there's no "real" PIC flag so we must build both object types
42250 + case $host_os in
42251 + cygwin* | mingw* | pw32* | os2* | cegcc*)
42252 + pic_mode=default
42253 + ;;
42254 + esac
42255 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
42256 + # non-PIC code in shared libraries is not supported
42257 + pic_mode=default
42258 + fi
42259
42260 - # Unknown arguments in both finalize_command and compile_command need
42261 - # to be aesthetically quoted because they are evaled later.
42262 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
42263 - case $arg in
42264 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
42265 - arg="\"$arg\""
42266 - ;;
42267 - esac
42268 - compile_command="$compile_command $arg"
42269 - finalize_command="$finalize_command $arg"
42270 - compiler_flags="$compiler_flags $arg"
42271 - continue
42272 - ;;
42273 + # Calculate the filename of the output object if compiler does
42274 + # not support -o with -c
42275 + if test "$compiler_c_o" = no; then
42276 + output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
42277 + lockfile="$output_obj.lock"
42278 + else
42279 + output_obj=
42280 + need_locks=no
42281 + lockfile=
42282 + fi
42283
42284 - -shrext)
42285 - prev=shrext
42286 - continue
42287 - ;;
42288 + # Lock this critical section if it is needed
42289 + # We use this script file to make the link, it avoids creating a new file
42290 + if test "$need_locks" = yes; then
42291 + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
42292 + func_echo "Waiting for $lockfile to be removed"
42293 + sleep 2
42294 + done
42295 + elif test "$need_locks" = warn; then
42296 + if test -f "$lockfile"; then
42297 + $ECHO "\
42298 +*** ERROR, $lockfile exists and contains:
42299 +`cat $lockfile 2>/dev/null`
42300
42301 - -no-fast-install)
42302 - fast_install=no
42303 - continue
42304 - ;;
42305 +This indicates that another process is trying to use the same
42306 +temporary object file, and libtool could not work around it because
42307 +your compiler does not support \`-c' and \`-o' together. If you
42308 +repeat this compilation, it may succeed, by chance, but you had better
42309 +avoid parallel builds (make -j) in this platform, or get a better
42310 +compiler."
42311
42312 - -no-install)
42313 - case $host in
42314 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
42315 - # The PATH hackery in wrapper scripts is required on Windows
42316 - # and Darwin in order for the loader to find any dlls it needs.
42317 - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
42318 - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
42319 - fast_install=no
42320 - ;;
42321 - *) no_install=yes ;;
42322 - esac
42323 - continue
42324 - ;;
42325 + $opt_dry_run || $RM $removelist
42326 + exit $EXIT_FAILURE
42327 + fi
42328 + func_append removelist " $output_obj"
42329 + $ECHO "$srcfile" > "$lockfile"
42330 + fi
42331
42332 - -no-undefined)
42333 - allow_undefined=no
42334 - continue
42335 - ;;
42336 + $opt_dry_run || $RM $removelist
42337 + func_append removelist " $lockfile"
42338 + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
42339
42340 - -objectlist)
42341 - prev=objectlist
42342 - continue
42343 - ;;
42344 + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
42345 + srcfile=$func_to_tool_file_result
42346 + func_quote_for_eval "$srcfile"
42347 + qsrcfile=$func_quote_for_eval_result
42348
42349 - -o) prev=output ;;
42350 + # Only build a PIC object if we are building libtool libraries.
42351 + if test "$build_libtool_libs" = yes; then
42352 + # Without this assignment, base_compile gets emptied.
42353 + fbsd_hideous_sh_bug=$base_compile
42354
42355 - -precious-files-regex)
42356 - prev=precious_regex
42357 - continue
42358 - ;;
42359 + if test "$pic_mode" != no; then
42360 + command="$base_compile $qsrcfile $pic_flag"
42361 + else
42362 + # Don't build PIC code
42363 + command="$base_compile $qsrcfile"
42364 + fi
42365
42366 - -release)
42367 - prev=release
42368 - continue
42369 - ;;
42370 + func_mkdir_p "$xdir$objdir"
42371
42372 - -rpath)
42373 - prev=rpath
42374 - continue
42375 - ;;
42376 + if test -z "$output_obj"; then
42377 + # Place PIC objects in $objdir
42378 + func_append command " -o $lobj"
42379 + fi
42380
42381 - -R)
42382 - prev=xrpath
42383 - continue
42384 - ;;
42385 + func_show_eval_locale "$command" \
42386 + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
42387
42388 - -R*)
42389 - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
42390 - # We need an absolute path.
42391 - case $dir in
42392 - [\\/]* | [A-Za-z]:[\\/]*) ;;
42393 - *)
42394 - $echo "$modename: only absolute run-paths are allowed" 1>&2
42395 - exit $EXIT_FAILURE
42396 - ;;
42397 - esac
42398 - case "$xrpath " in
42399 - *" $dir "*) ;;
42400 - *) xrpath="$xrpath $dir" ;;
42401 - esac
42402 - continue
42403 - ;;
42404 + if test "$need_locks" = warn &&
42405 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
42406 + $ECHO "\
42407 +*** ERROR, $lockfile contains:
42408 +`cat $lockfile 2>/dev/null`
42409
42410 - -static | -static-libtool-libs)
42411 - # The effects of -static are defined in a previous loop.
42412 - # We used to do the same as -all-static on platforms that
42413 - # didn't have a PIC flag, but the assumption that the effects
42414 - # would be equivalent was wrong. It would break on at least
42415 - # Digital Unix and AIX.
42416 - continue
42417 - ;;
42418 -
42419 - -thread-safe)
42420 - thread_safe=yes
42421 - continue
42422 - ;;
42423 +but it should contain:
42424 +$srcfile
42425
42426 - -version-info)
42427 - prev=vinfo
42428 - continue
42429 - ;;
42430 - -version-number)
42431 - prev=vinfo
42432 - vinfo_number=yes
42433 - continue
42434 - ;;
42435 +This indicates that another process is trying to use the same
42436 +temporary object file, and libtool could not work around it because
42437 +your compiler does not support \`-c' and \`-o' together. If you
42438 +repeat this compilation, it may succeed, by chance, but you had better
42439 +avoid parallel builds (make -j) in this platform, or get a better
42440 +compiler."
42441
42442 - -Wc,*)
42443 - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
42444 - arg=
42445 - save_ifs="$IFS"; IFS=','
42446 - for flag in $args; do
42447 - IFS="$save_ifs"
42448 - case $flag in
42449 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
42450 - flag="\"$flag\""
42451 - ;;
42452 - esac
42453 - arg="$arg $wl$flag"
42454 - compiler_flags="$compiler_flags $flag"
42455 - done
42456 - IFS="$save_ifs"
42457 - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
42458 - ;;
42459 + $opt_dry_run || $RM $removelist
42460 + exit $EXIT_FAILURE
42461 + fi
42462
42463 - -Wl,*)
42464 - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
42465 - arg=
42466 - save_ifs="$IFS"; IFS=','
42467 - for flag in $args; do
42468 - IFS="$save_ifs"
42469 - case $flag in
42470 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
42471 - flag="\"$flag\""
42472 - ;;
42473 - esac
42474 - arg="$arg $wl$flag"
42475 - compiler_flags="$compiler_flags $wl$flag"
42476 - linker_flags="$linker_flags $flag"
42477 - done
42478 - IFS="$save_ifs"
42479 - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
42480 - ;;
42481 + # Just move the object if needed, then go on to compile the next one
42482 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
42483 + func_show_eval '$MV "$output_obj" "$lobj"' \
42484 + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
42485 + fi
42486
42487 - -Xcompiler)
42488 - prev=xcompiler
42489 - continue
42490 - ;;
42491 + # Allow error messages only from the first compilation.
42492 + if test "$suppress_opt" = yes; then
42493 + suppress_output=' >/dev/null 2>&1'
42494 + fi
42495 + fi
42496
42497 - -Xlinker)
42498 - prev=xlinker
42499 - continue
42500 - ;;
42501 + # Only build a position-dependent object if we build old libraries.
42502 + if test "$build_old_libs" = yes; then
42503 + if test "$pic_mode" != yes; then
42504 + # Don't build PIC code
42505 + command="$base_compile $qsrcfile$pie_flag"
42506 + else
42507 + command="$base_compile $qsrcfile $pic_flag"
42508 + fi
42509 + if test "$compiler_c_o" = yes; then
42510 + func_append command " -o $obj"
42511 + fi
42512
42513 - -XCClinker)
42514 - prev=xcclinker
42515 - continue
42516 - ;;
42517 + # Suppress compiler output if we already did a PIC compilation.
42518 + func_append command "$suppress_output"
42519 + func_show_eval_locale "$command" \
42520 + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
42521
42522 - # Some other compiler flag.
42523 - -* | +*)
42524 - # Unknown arguments in both finalize_command and compile_command need
42525 - # to be aesthetically quoted because they are evaled later.
42526 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
42527 - case $arg in
42528 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
42529 - arg="\"$arg\""
42530 - ;;
42531 - esac
42532 - ;;
42533 + if test "$need_locks" = warn &&
42534 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
42535 + $ECHO "\
42536 +*** ERROR, $lockfile contains:
42537 +`cat $lockfile 2>/dev/null`
42538
42539 - *.$objext)
42540 - # A standard object.
42541 - objs="$objs $arg"
42542 - ;;
42543 +but it should contain:
42544 +$srcfile
42545
42546 - *.lo)
42547 - # A libtool-controlled object.
42548 +This indicates that another process is trying to use the same
42549 +temporary object file, and libtool could not work around it because
42550 +your compiler does not support \`-c' and \`-o' together. If you
42551 +repeat this compilation, it may succeed, by chance, but you had better
42552 +avoid parallel builds (make -j) in this platform, or get a better
42553 +compiler."
42554
42555 - # Check to see that this really is a libtool object.
42556 - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
42557 - pic_object=
42558 - non_pic_object=
42559 + $opt_dry_run || $RM $removelist
42560 + exit $EXIT_FAILURE
42561 + fi
42562
42563 - # Read the .lo file
42564 - # If there is no directory component, then add one.
42565 - case $arg in
42566 - */* | *\\*) . $arg ;;
42567 - *) . ./$arg ;;
42568 - esac
42569 + # Just move the object if needed
42570 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
42571 + func_show_eval '$MV "$output_obj" "$obj"' \
42572 + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
42573 + fi
42574 + fi
42575
42576 - if test -z "$pic_object" || \
42577 - test -z "$non_pic_object" ||
42578 - test "$pic_object" = none && \
42579 - test "$non_pic_object" = none; then
42580 - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
42581 - exit $EXIT_FAILURE
42582 - fi
42583 + $opt_dry_run || {
42584 + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
42585
42586 - # Extract subdirectory from the argument.
42587 - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
42588 - if test "X$xdir" = "X$arg"; then
42589 - xdir=
42590 - else
42591 - xdir="$xdir/"
42592 - fi
42593 + # Unlock the critical section if it was locked
42594 + if test "$need_locks" != no; then
42595 + removelist=$lockfile
42596 + $RM "$lockfile"
42597 + fi
42598 + }
42599
42600 - if test "$pic_object" != none; then
42601 - # Prepend the subdirectory the object is found in.
42602 - pic_object="$xdir$pic_object"
42603 + exit $EXIT_SUCCESS
42604 +}
42605
42606 - if test "$prev" = dlfiles; then
42607 - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
42608 - dlfiles="$dlfiles $pic_object"
42609 - prev=
42610 - continue
42611 - else
42612 - # If libtool objects are unsupported, then we need to preload.
42613 - prev=dlprefiles
42614 - fi
42615 - fi
42616 +$opt_help || {
42617 + test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
42618 +}
42619
42620 - # CHECK ME: I think I busted this. -Ossama
42621 - if test "$prev" = dlprefiles; then
42622 - # Preload the old-style object.
42623 - dlprefiles="$dlprefiles $pic_object"
42624 - prev=
42625 - fi
42626 +func_mode_help ()
42627 +{
42628 + # We need to display help for each of the modes.
42629 + case $opt_mode in
42630 + "")
42631 + # Generic help is extracted from the usage comments
42632 + # at the start of this file.
42633 + func_help
42634 + ;;
42635
42636 - # A PIC object.
42637 - libobjs="$libobjs $pic_object"
42638 - arg="$pic_object"
42639 - fi
42640 + clean)
42641 + $ECHO \
42642 +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
42643
42644 - # Non-PIC object.
42645 - if test "$non_pic_object" != none; then
42646 - # Prepend the subdirectory the object is found in.
42647 - non_pic_object="$xdir$non_pic_object"
42648 +Remove files from the build directory.
42649
42650 - # A standard non-PIC object
42651 - non_pic_objects="$non_pic_objects $non_pic_object"
42652 - if test -z "$pic_object" || test "$pic_object" = none ; then
42653 - arg="$non_pic_object"
42654 - fi
42655 - else
42656 - # If the PIC object exists, use it instead.
42657 - # $xdir was prepended to $pic_object above.
42658 - non_pic_object="$pic_object"
42659 - non_pic_objects="$non_pic_objects $non_pic_object"
42660 - fi
42661 - else
42662 - # Only an error if not doing a dry-run.
42663 - if test -z "$run"; then
42664 - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
42665 - exit $EXIT_FAILURE
42666 - else
42667 - # Dry-run case.
42668 +RM is the name of the program to use to delete files associated with each FILE
42669 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
42670 +to RM.
42671
42672 - # Extract subdirectory from the argument.
42673 - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
42674 - if test "X$xdir" = "X$arg"; then
42675 - xdir=
42676 - else
42677 - xdir="$xdir/"
42678 - fi
42679 +If FILE is a libtool library, object or program, all the files associated
42680 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
42681 + ;;
42682
42683 - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
42684 - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
42685 - libobjs="$libobjs $pic_object"
42686 - non_pic_objects="$non_pic_objects $non_pic_object"
42687 - fi
42688 - fi
42689 - ;;
42690 + compile)
42691 + $ECHO \
42692 +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
42693
42694 - *.$libext)
42695 - # An archive.
42696 - deplibs="$deplibs $arg"
42697 - old_deplibs="$old_deplibs $arg"
42698 - continue
42699 - ;;
42700 +Compile a source file into a libtool library object.
42701
42702 - *.la)
42703 - # A libtool-controlled library.
42704 +This mode accepts the following additional options:
42705
42706 - if test "$prev" = dlfiles; then
42707 - # This library was specified with -dlopen.
42708 - dlfiles="$dlfiles $arg"
42709 - prev=
42710 - elif test "$prev" = dlprefiles; then
42711 - # The library was specified with -dlpreopen.
42712 - dlprefiles="$dlprefiles $arg"
42713 - prev=
42714 - else
42715 - deplibs="$deplibs $arg"
42716 - fi
42717 - continue
42718 - ;;
42719 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
42720 + -no-suppress do not suppress compiler output for multiple passes
42721 + -prefer-pic try to build PIC objects only
42722 + -prefer-non-pic try to build non-PIC objects only
42723 + -shared do not build a \`.o' file suitable for static linking
42724 + -static only build a \`.o' file suitable for static linking
42725 + -Wc,FLAG pass FLAG directly to the compiler
42726
42727 - # Some other compiler argument.
42728 - *)
42729 - # Unknown arguments in both finalize_command and compile_command need
42730 - # to be aesthetically quoted because they are evaled later.
42731 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
42732 - case $arg in
42733 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
42734 - arg="\"$arg\""
42735 - ;;
42736 - esac
42737 - ;;
42738 - esac # arg
42739 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
42740 +from the given SOURCEFILE.
42741
42742 - # Now actually substitute the argument into the commands.
42743 - if test -n "$arg"; then
42744 - compile_command="$compile_command $arg"
42745 - finalize_command="$finalize_command $arg"
42746 - fi
42747 - done # argument parsing loop
42748 +The output file name is determined by removing the directory component from
42749 +SOURCEFILE, then substituting the C source code suffix \`.c' with the
42750 +library object suffix, \`.lo'."
42751 + ;;
42752
42753 - if test -n "$prev"; then
42754 - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
42755 - $echo "$help" 1>&2
42756 - exit $EXIT_FAILURE
42757 - fi
42758 + execute)
42759 + $ECHO \
42760 +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
42761
42762 - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
42763 - eval arg=\"$export_dynamic_flag_spec\"
42764 - compile_command="$compile_command $arg"
42765 - finalize_command="$finalize_command $arg"
42766 - fi
42767 +Automatically set library path, then run a program.
42768
42769 - oldlibs=
42770 - # calculate the name of the file, without its directory
42771 - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
42772 - libobjs_save="$libobjs"
42773 +This mode accepts the following additional options:
42774
42775 - if test -n "$shlibpath_var"; then
42776 - # get the directories listed in $shlibpath_var
42777 - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
42778 - else
42779 - shlib_search_path=
42780 - fi
42781 - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
42782 - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
42783 + -dlopen FILE add the directory containing FILE to the library path
42784
42785 - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
42786 - if test "X$output_objdir" = "X$output"; then
42787 - output_objdir="$objdir"
42788 - else
42789 - output_objdir="$output_objdir/$objdir"
42790 - fi
42791 - # Create the object directory.
42792 - if test ! -d "$output_objdir"; then
42793 - $show "$mkdir $output_objdir"
42794 - $run $mkdir $output_objdir
42795 - exit_status=$?
42796 - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
42797 - exit $exit_status
42798 - fi
42799 - fi
42800 +This mode sets the library path environment variable according to \`-dlopen'
42801 +flags.
42802
42803 - # Determine the type of output
42804 - case $output in
42805 - "")
42806 - $echo "$modename: you must specify an output file" 1>&2
42807 - $echo "$help" 1>&2
42808 - exit $EXIT_FAILURE
42809 - ;;
42810 - *.$libext) linkmode=oldlib ;;
42811 - *.lo | *.$objext) linkmode=obj ;;
42812 - *.la) linkmode=lib ;;
42813 - *) linkmode=prog ;; # Anything else should be a program.
42814 - esac
42815 +If any of the ARGS are libtool executable wrappers, then they are translated
42816 +into their corresponding uninstalled binary, and any of their required library
42817 +directories are added to the library path.
42818
42819 - case $host in
42820 - *cygwin* | *mingw* | *pw32*)
42821 - # don't eliminate duplications in $postdeps and $predeps
42822 - duplicate_compiler_generated_deps=yes
42823 - ;;
42824 - *)
42825 - duplicate_compiler_generated_deps=$duplicate_deps
42826 - ;;
42827 +Then, COMMAND is executed, with ARGS as arguments."
42828 + ;;
42829 +
42830 + finish)
42831 + $ECHO \
42832 +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
42833 +
42834 +Complete the installation of libtool libraries.
42835 +
42836 +Each LIBDIR is a directory that contains libtool libraries.
42837 +
42838 +The commands that this mode executes may require superuser privileges. Use
42839 +the \`--dry-run' option if you just want to see what would be executed."
42840 + ;;
42841 +
42842 + install)
42843 + $ECHO \
42844 +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
42845 +
42846 +Install executables or libraries.
42847 +
42848 +INSTALL-COMMAND is the installation command. The first component should be
42849 +either the \`install' or \`cp' program.
42850 +
42851 +The following components of INSTALL-COMMAND are treated specially:
42852 +
42853 + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
42854 +
42855 +The rest of the components are interpreted as arguments to that command (only
42856 +BSD-compatible install options are recognized)."
42857 + ;;
42858 +
42859 + link)
42860 + $ECHO \
42861 +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
42862 +
42863 +Link object files or libraries together to form another library, or to
42864 +create an executable program.
42865 +
42866 +LINK-COMMAND is a command using the C compiler that you would use to create
42867 +a program from several object files.
42868 +
42869 +The following components of LINK-COMMAND are treated specially:
42870 +
42871 + -all-static do not do any dynamic linking at all
42872 + -avoid-version do not add a version suffix if possible
42873 + -bindir BINDIR specify path to binaries directory (for systems where
42874 + libraries must be found in the PATH setting at runtime)
42875 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
42876 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
42877 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
42878 + -export-symbols SYMFILE
42879 + try to export only the symbols listed in SYMFILE
42880 + -export-symbols-regex REGEX
42881 + try to export only the symbols matching REGEX
42882 + -LLIBDIR search LIBDIR for required installed libraries
42883 + -lNAME OUTPUT-FILE requires the installed library libNAME
42884 + -module build a library that can dlopened
42885 + -no-fast-install disable the fast-install mode
42886 + -no-install link a not-installable executable
42887 + -no-undefined declare that a library does not refer to external symbols
42888 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
42889 + -objectlist FILE Use a list of object files found in FILE to specify objects
42890 + -precious-files-regex REGEX
42891 + don't remove output files matching REGEX
42892 + -release RELEASE specify package release information
42893 + -rpath LIBDIR the created library will eventually be installed in LIBDIR
42894 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
42895 + -shared only do dynamic linking of libtool libraries
42896 + -shrext SUFFIX override the standard shared library file extension
42897 + -static do not do any dynamic linking of uninstalled libtool libraries
42898 + -static-libtool-libs
42899 + do not do any dynamic linking of libtool libraries
42900 + -version-info CURRENT[:REVISION[:AGE]]
42901 + specify library version info [each variable defaults to 0]
42902 + -weak LIBNAME declare that the target provides the LIBNAME interface
42903 + -Wc,FLAG
42904 + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
42905 + -Wl,FLAG
42906 + -Xlinker FLAG pass linker-specific FLAG directly to the linker
42907 + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
42908 +
42909 +All other options (arguments beginning with \`-') are ignored.
42910 +
42911 +Every other argument is treated as a filename. Files ending in \`.la' are
42912 +treated as uninstalled libtool libraries, other files are standard or library
42913 +object files.
42914 +
42915 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
42916 +only library objects (\`.lo' files) may be specified, and \`-rpath' is
42917 +required, except when creating a convenience library.
42918 +
42919 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
42920 +using \`ar' and \`ranlib', or on Windows using \`lib'.
42921 +
42922 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
42923 +is created, otherwise an executable program is created."
42924 + ;;
42925 +
42926 + uninstall)
42927 + $ECHO \
42928 +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
42929 +
42930 +Remove libraries from an installation directory.
42931 +
42932 +RM is the name of the program to use to delete files associated with each FILE
42933 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
42934 +to RM.
42935 +
42936 +If FILE is a libtool library, all the files associated with it are deleted.
42937 +Otherwise, only FILE itself is deleted using RM."
42938 + ;;
42939 +
42940 + *)
42941 + func_fatal_help "invalid operation mode \`$opt_mode'"
42942 + ;;
42943 esac
42944 - specialdeplibs=
42945
42946 - libs=
42947 - # Find all interdependent deplibs by searching for libraries
42948 - # that are linked more than once (e.g. -la -lb -la)
42949 - for deplib in $deplibs; do
42950 - if test "X$duplicate_deps" = "Xyes" ; then
42951 - case "$libs " in
42952 - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
42953 - esac
42954 - fi
42955 - libs="$libs $deplib"
42956 - done
42957 + echo
42958 + $ECHO "Try \`$progname --help' for more information about other modes."
42959 +}
42960
42961 - if test "$linkmode" = lib; then
42962 - libs="$predeps $libs $compiler_lib_search_path $postdeps"
42963 +# Now that we've collected a possible --mode arg, show help if necessary
42964 +if $opt_help; then
42965 + if test "$opt_help" = :; then
42966 + func_mode_help
42967 + else
42968 + {
42969 + func_help noexit
42970 + for opt_mode in compile link execute install finish uninstall clean; do
42971 + func_mode_help
42972 + done
42973 + } | sed -n '1p; 2,$s/^Usage:/ or: /p'
42974 + {
42975 + func_help noexit
42976 + for opt_mode in compile link execute install finish uninstall clean; do
42977 + echo
42978 + func_mode_help
42979 + done
42980 + } |
42981 + sed '1d
42982 + /^When reporting/,/^Report/{
42983 + H
42984 + d
42985 + }
42986 + $x
42987 + /information about other modes/d
42988 + /more detailed .*MODE/d
42989 + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
42990 + fi
42991 + exit $?
42992 +fi
42993
42994 - # Compute libraries that are listed more than once in $predeps
42995 - # $postdeps and mark them as special (i.e., whose duplicates are
42996 - # not to be eliminated).
42997 - pre_post_deps=
42998 - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
42999 - for pre_post_dep in $predeps $postdeps; do
43000 - case "$pre_post_deps " in
43001 - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
43002 - esac
43003 - pre_post_deps="$pre_post_deps $pre_post_dep"
43004 - done
43005 - fi
43006 - pre_post_deps=
43007 - fi
43008
43009 - deplibs=
43010 - newdependency_libs=
43011 - newlib_search_path=
43012 - need_relink=no # whether we're linking any uninstalled libtool libraries
43013 - notinst_deplibs= # not-installed libtool libraries
43014 - case $linkmode in
43015 - lib)
43016 - passes="conv link"
43017 - for file in $dlfiles $dlprefiles; do
43018 - case $file in
43019 - *.la) ;;
43020 - *)
43021 - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
43022 - exit $EXIT_FAILURE
43023 - ;;
43024 - esac
43025 - done
43026 +# func_mode_execute arg...
43027 +func_mode_execute ()
43028 +{
43029 + $opt_debug
43030 + # The first argument is the command name.
43031 + cmd="$nonopt"
43032 + test -z "$cmd" && \
43033 + func_fatal_help "you must specify a COMMAND"
43034 +
43035 + # Handle -dlopen flags immediately.
43036 + for file in $opt_dlopen; do
43037 + test -f "$file" \
43038 + || func_fatal_help "\`$file' is not a file"
43039 +
43040 + dir=
43041 + case $file in
43042 + *.la)
43043 + func_resolve_sysroot "$file"
43044 + file=$func_resolve_sysroot_result
43045 +
43046 + # Check to see that this really is a libtool archive.
43047 + func_lalib_unsafe_p "$file" \
43048 + || func_fatal_help "\`$lib' is not a valid libtool archive"
43049 +
43050 + # Read the libtool library.
43051 + dlname=
43052 + library_names=
43053 + func_source "$file"
43054 +
43055 + # Skip this library if it cannot be dlopened.
43056 + if test -z "$dlname"; then
43057 + # Warn if it was a shared library.
43058 + test -n "$library_names" && \
43059 + func_warning "\`$file' was not linked with \`-export-dynamic'"
43060 + continue
43061 + fi
43062 +
43063 + func_dirname "$file" "" "."
43064 + dir="$func_dirname_result"
43065 +
43066 + if test -f "$dir/$objdir/$dlname"; then
43067 + func_append dir "/$objdir"
43068 + else
43069 + if test ! -f "$dir/$dlname"; then
43070 + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
43071 + fi
43072 + fi
43073 ;;
43074 - prog)
43075 - compile_deplibs=
43076 - finalize_deplibs=
43077 - alldeplibs=no
43078 - newdlfiles=
43079 - newdlprefiles=
43080 - passes="conv scan dlopen dlpreopen link"
43081 +
43082 + *.lo)
43083 + # Just add the directory containing the .lo file.
43084 + func_dirname "$file" "" "."
43085 + dir="$func_dirname_result"
43086 ;;
43087 - *) passes="conv"
43088 +
43089 + *)
43090 + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
43091 + continue
43092 ;;
43093 - esac
43094 - for pass in $passes; do
43095 - if test "$linkmode,$pass" = "lib,link" ||
43096 - test "$linkmode,$pass" = "prog,scan"; then
43097 - libs="$deplibs"
43098 - deplibs=
43099 + esac
43100 +
43101 + # Get the absolute pathname.
43102 + absdir=`cd "$dir" && pwd`
43103 + test -n "$absdir" && dir="$absdir"
43104 +
43105 + # Now add the directory to shlibpath_var.
43106 + if eval "test -z \"\$$shlibpath_var\""; then
43107 + eval "$shlibpath_var=\"\$dir\""
43108 + else
43109 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
43110 fi
43111 - if test "$linkmode" = prog; then
43112 - case $pass in
43113 - dlopen) libs="$dlfiles" ;;
43114 - dlpreopen) libs="$dlprefiles" ;;
43115 - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
43116 - esac
43117 + done
43118 +
43119 + # This variable tells wrapper scripts just to set shlibpath_var
43120 + # rather than running their programs.
43121 + libtool_execute_magic="$magic"
43122 +
43123 + # Check if any of the arguments is a wrapper script.
43124 + args=
43125 + for file
43126 + do
43127 + case $file in
43128 + -* | *.la | *.lo ) ;;
43129 + *)
43130 + # Do a test to see if this is really a libtool program.
43131 + if func_ltwrapper_script_p "$file"; then
43132 + func_source "$file"
43133 + # Transform arg to wrapped name.
43134 + file="$progdir/$program"
43135 + elif func_ltwrapper_executable_p "$file"; then
43136 + func_ltwrapper_scriptname "$file"
43137 + func_source "$func_ltwrapper_scriptname_result"
43138 + # Transform arg to wrapped name.
43139 + file="$progdir/$program"
43140 + fi
43141 + ;;
43142 + esac
43143 + # Quote arguments (to preserve shell metacharacters).
43144 + func_append_quoted args "$file"
43145 + done
43146 +
43147 + if test "X$opt_dry_run" = Xfalse; then
43148 + if test -n "$shlibpath_var"; then
43149 + # Export the shlibpath_var.
43150 + eval "export $shlibpath_var"
43151 fi
43152 - if test "$pass" = dlopen; then
43153 - # Collect dlpreopened libraries
43154 - save_deplibs="$deplibs"
43155 - deplibs=
43156 +
43157 + # Restore saved environment variables
43158 + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
43159 + do
43160 + eval "if test \"\${save_$lt_var+set}\" = set; then
43161 + $lt_var=\$save_$lt_var; export $lt_var
43162 + else
43163 + $lt_unset $lt_var
43164 + fi"
43165 + done
43166 +
43167 + # Now prepare to actually exec the command.
43168 + exec_cmd="\$cmd$args"
43169 + else
43170 + # Display what would be done.
43171 + if test -n "$shlibpath_var"; then
43172 + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
43173 + echo "export $shlibpath_var"
43174 fi
43175 - for deplib in $libs; do
43176 - lib=
43177 - found=no
43178 - case $deplib in
43179 - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
43180 - if test "$linkmode,$pass" = "prog,link"; then
43181 - compile_deplibs="$deplib $compile_deplibs"
43182 - finalize_deplibs="$deplib $finalize_deplibs"
43183 - else
43184 - compiler_flags="$compiler_flags $deplib"
43185 - fi
43186 - continue
43187 - ;;
43188 - -l*)
43189 - if test "$linkmode" != lib && test "$linkmode" != prog; then
43190 - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
43191 - continue
43192 - fi
43193 - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
43194 - if test "$linkmode" = lib; then
43195 - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
43196 - else
43197 - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
43198 - fi
43199 - for searchdir in $searchdirs; do
43200 - for search_ext in .la $std_shrext .so .a; do
43201 - # Search the libtool library
43202 - lib="$searchdir/lib${name}${search_ext}"
43203 - if test -f "$lib"; then
43204 - if test "$search_ext" = ".la"; then
43205 - found=yes
43206 - else
43207 - found=no
43208 - fi
43209 - break 2
43210 - fi
43211 - done
43212 - done
43213 - if test "$found" != yes; then
43214 - # deplib doesn't seem to be a libtool library
43215 - if test "$linkmode,$pass" = "prog,link"; then
43216 - compile_deplibs="$deplib $compile_deplibs"
43217 - finalize_deplibs="$deplib $finalize_deplibs"
43218 - else
43219 - deplibs="$deplib $deplibs"
43220 - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
43221 - fi
43222 - continue
43223 - else # deplib is a libtool library
43224 - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
43225 - # We need to do some special things here, and not later.
43226 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
43227 - case " $predeps $postdeps " in
43228 - *" $deplib "*)
43229 - if (${SED} -e '2q' $lib |
43230 - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
43231 - library_names=
43232 - old_library=
43233 - case $lib in
43234 - */* | *\\*) . $lib ;;
43235 - *) . ./$lib ;;
43236 - esac
43237 - for l in $old_library $library_names; do
43238 - ll="$l"
43239 - done
43240 - if test "X$ll" = "X$old_library" ; then # only static version available
43241 - found=no
43242 - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
43243 - test "X$ladir" = "X$lib" && ladir="."
43244 - lib=$ladir/$old_library
43245 - if test "$linkmode,$pass" = "prog,link"; then
43246 - compile_deplibs="$deplib $compile_deplibs"
43247 - finalize_deplibs="$deplib $finalize_deplibs"
43248 - else
43249 - deplibs="$deplib $deplibs"
43250 - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
43251 - fi
43252 - continue
43253 - fi
43254 - fi
43255 - ;;
43256 - *) ;;
43257 - esac
43258 - fi
43259 - fi
43260 - ;; # -l
43261 - -L*)
43262 - case $linkmode in
43263 - lib)
43264 - deplibs="$deplib $deplibs"
43265 - test "$pass" = conv && continue
43266 - newdependency_libs="$deplib $newdependency_libs"
43267 - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
43268 - ;;
43269 - prog)
43270 - if test "$pass" = conv; then
43271 - deplibs="$deplib $deplibs"
43272 - continue
43273 - fi
43274 - if test "$pass" = scan; then
43275 - deplibs="$deplib $deplibs"
43276 - else
43277 - compile_deplibs="$deplib $compile_deplibs"
43278 - finalize_deplibs="$deplib $finalize_deplibs"
43279 - fi
43280 - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
43281 - ;;
43282 - *)
43283 - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
43284 - ;;
43285 - esac # linkmode
43286 - continue
43287 - ;; # -L
43288 - -R*)
43289 - if test "$pass" = link; then
43290 - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
43291 - # Make sure the xrpath contains only unique directories.
43292 - case "$xrpath " in
43293 - *" $dir "*) ;;
43294 - *) xrpath="$xrpath $dir" ;;
43295 - esac
43296 - fi
43297 - deplibs="$deplib $deplibs"
43298 - continue
43299 - ;;
43300 - *.la) lib="$deplib" ;;
43301 - *.$libext)
43302 - if test "$pass" = conv; then
43303 - deplibs="$deplib $deplibs"
43304 - continue
43305 - fi
43306 - case $linkmode in
43307 - lib)
43308 - valid_a_lib=no
43309 - case $deplibs_check_method in
43310 - match_pattern*)
43311 - set dummy $deplibs_check_method
43312 - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
43313 - if eval $echo \"$deplib\" 2>/dev/null \
43314 - | $SED 10q \
43315 - | $EGREP "$match_pattern_regex" > /dev/null; then
43316 - valid_a_lib=yes
43317 - fi
43318 - ;;
43319 - pass_all)
43320 - valid_a_lib=yes
43321 - ;;
43322 - esac
43323 - if test "$valid_a_lib" != yes; then
43324 - $echo
43325 - $echo "*** Warning: Trying to link with static lib archive $deplib."
43326 - $echo "*** I have the capability to make that library automatically link in when"
43327 - $echo "*** you link to this library. But I can only do this if you have a"
43328 - $echo "*** shared version of the library, which you do not appear to have"
43329 - $echo "*** because the file extensions .$libext of this argument makes me believe"
43330 - $echo "*** that it is just a static archive that I should not used here."
43331 - else
43332 - $echo
43333 - $echo "*** Warning: Linking the shared library $output against the"
43334 - $echo "*** static library $deplib is not portable!"
43335 - deplibs="$deplib $deplibs"
43336 - fi
43337 - continue
43338 - ;;
43339 - prog)
43340 - if test "$pass" != link; then
43341 - deplibs="$deplib $deplibs"
43342 - else
43343 - compile_deplibs="$deplib $compile_deplibs"
43344 - finalize_deplibs="$deplib $finalize_deplibs"
43345 - fi
43346 - continue
43347 - ;;
43348 - esac # linkmode
43349 - ;; # *.$libext
43350 - *.lo | *.$objext)
43351 - if test "$pass" = conv; then
43352 - deplibs="$deplib $deplibs"
43353 - elif test "$linkmode" = prog; then
43354 - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
43355 - # If there is no dlopen support or we're linking statically,
43356 - # we need to preload.
43357 - newdlprefiles="$newdlprefiles $deplib"
43358 - compile_deplibs="$deplib $compile_deplibs"
43359 - finalize_deplibs="$deplib $finalize_deplibs"
43360 - else
43361 - newdlfiles="$newdlfiles $deplib"
43362 - fi
43363 - fi
43364 - continue
43365 - ;;
43366 - %DEPLIBS%)
43367 - alldeplibs=yes
43368 - continue
43369 - ;;
43370 - esac # case $deplib
43371 - if test "$found" = yes || test -f "$lib"; then :
43372 - else
43373 - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
43374 - exit $EXIT_FAILURE
43375 - fi
43376 -
43377 - # Check to see that this really is a libtool archive.
43378 - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
43379 - else
43380 - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
43381 - exit $EXIT_FAILURE
43382 - fi
43383 + $ECHO "$cmd$args"
43384 + exit $EXIT_SUCCESS
43385 + fi
43386 +}
43387
43388 - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
43389 - test "X$ladir" = "X$lib" && ladir="."
43390 +test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
43391
43392 - dlname=
43393 - dlopen=
43394 - dlpreopen=
43395 - libdir=
43396 - library_names=
43397 - old_library=
43398 - # If the library was installed with an old release of libtool,
43399 - # it will not redefine variables installed, or shouldnotlink
43400 - installed=yes
43401 - shouldnotlink=no
43402 - avoidtemprpath=
43403
43404 +# func_mode_finish arg...
43405 +func_mode_finish ()
43406 +{
43407 + $opt_debug
43408 + libs=
43409 + libdirs=
43410 + admincmds=
43411
43412 - # Read the .la file
43413 - case $lib in
43414 - */* | *\\*) . $lib ;;
43415 - *) . ./$lib ;;
43416 - esac
43417 + for opt in "$nonopt" ${1+"$@"}
43418 + do
43419 + if test -d "$opt"; then
43420 + func_append libdirs " $opt"
43421
43422 - if test "$linkmode,$pass" = "lib,link" ||
43423 - test "$linkmode,$pass" = "prog,scan" ||
43424 - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
43425 - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
43426 - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
43427 + elif test -f "$opt"; then
43428 + if func_lalib_unsafe_p "$opt"; then
43429 + func_append libs " $opt"
43430 + else
43431 + func_warning "\`$opt' is not a valid libtool archive"
43432 fi
43433
43434 - if test "$pass" = conv; then
43435 - # Only check for convenience libraries
43436 - deplibs="$lib $deplibs"
43437 - if test -z "$libdir"; then
43438 - if test -z "$old_library"; then
43439 - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
43440 - exit $EXIT_FAILURE
43441 - fi
43442 - # It is a libtool convenience library, so add in its objects.
43443 - convenience="$convenience $ladir/$objdir/$old_library"
43444 - old_convenience="$old_convenience $ladir/$objdir/$old_library"
43445 - tmp_libs=
43446 - for deplib in $dependency_libs; do
43447 - deplibs="$deplib $deplibs"
43448 - if test "X$duplicate_deps" = "Xyes" ; then
43449 - case "$tmp_libs " in
43450 - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
43451 - esac
43452 - fi
43453 - tmp_libs="$tmp_libs $deplib"
43454 - done
43455 - elif test "$linkmode" != prog && test "$linkmode" != lib; then
43456 - $echo "$modename: \`$lib' is not a convenience library" 1>&2
43457 - exit $EXIT_FAILURE
43458 - fi
43459 - continue
43460 - fi # $pass = conv
43461 + else
43462 + func_fatal_error "invalid argument \`$opt'"
43463 + fi
43464 + done
43465
43466 + if test -n "$libs"; then
43467 + if test -n "$lt_sysroot"; then
43468 + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
43469 + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
43470 + else
43471 + sysroot_cmd=
43472 + fi
43473
43474 - # Get the name of the library we link against.
43475 - linklib=
43476 - for l in $old_library $library_names; do
43477 - linklib="$l"
43478 + # Remove sysroot references
43479 + if $opt_dry_run; then
43480 + for lib in $libs; do
43481 + echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
43482 + done
43483 + else
43484 + tmpdir=`func_mktempdir`
43485 + for lib in $libs; do
43486 + sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
43487 + > $tmpdir/tmp-la
43488 + mv -f $tmpdir/tmp-la $lib
43489 done
43490 - if test -z "$linklib"; then
43491 - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
43492 - exit $EXIT_FAILURE
43493 + ${RM}r "$tmpdir"
43494 + fi
43495 + fi
43496 +
43497 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
43498 + for libdir in $libdirs; do
43499 + if test -n "$finish_cmds"; then
43500 + # Do each command in the finish commands.
43501 + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
43502 +'"$cmd"'"'
43503 + fi
43504 + if test -n "$finish_eval"; then
43505 + # Do the single finish_eval.
43506 + eval cmds=\"$finish_eval\"
43507 + $opt_dry_run || eval "$cmds" || func_append admincmds "
43508 + $cmds"
43509 fi
43510 + done
43511 + fi
43512
43513 - # This library was specified with -dlopen.
43514 - if test "$pass" = dlopen; then
43515 - if test -z "$libdir"; then
43516 - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
43517 - exit $EXIT_FAILURE
43518 - fi
43519 - if test -z "$dlname" ||
43520 - test "$dlopen_support" != yes ||
43521 - test "$build_libtool_libs" = no; then
43522 - # If there is no dlname, no dlopen support or we're linking
43523 - # statically, we need to preload. We also need to preload any
43524 - # dependent libraries so libltdl's deplib preloader doesn't
43525 - # bomb out in the load deplibs phase.
43526 - dlprefiles="$dlprefiles $lib $dependency_libs"
43527 - else
43528 - newdlfiles="$newdlfiles $lib"
43529 - fi
43530 - continue
43531 - fi # $pass = dlopen
43532 + # Exit here if they wanted silent mode.
43533 + $opt_silent && exit $EXIT_SUCCESS
43534
43535 - # We need an absolute path.
43536 - case $ladir in
43537 - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
43538 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
43539 + echo "----------------------------------------------------------------------"
43540 + echo "Libraries have been installed in:"
43541 + for libdir in $libdirs; do
43542 + $ECHO " $libdir"
43543 + done
43544 + echo
43545 + echo "If you ever happen to want to link against installed libraries"
43546 + echo "in a given directory, LIBDIR, you must either use libtool, and"
43547 + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
43548 + echo "flag during linking and do at least one of the following:"
43549 + if test -n "$shlibpath_var"; then
43550 + echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
43551 + echo " during execution"
43552 + fi
43553 + if test -n "$runpath_var"; then
43554 + echo " - add LIBDIR to the \`$runpath_var' environment variable"
43555 + echo " during linking"
43556 + fi
43557 + if test -n "$hardcode_libdir_flag_spec"; then
43558 + libdir=LIBDIR
43559 + eval flag=\"$hardcode_libdir_flag_spec\"
43560 +
43561 + $ECHO " - use the \`$flag' linker flag"
43562 + fi
43563 + if test -n "$admincmds"; then
43564 + $ECHO " - have your system administrator run these commands:$admincmds"
43565 + fi
43566 + if test -f /etc/ld.so.conf; then
43567 + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
43568 + fi
43569 + echo
43570 +
43571 + echo "See any operating system documentation about shared libraries for"
43572 + case $host in
43573 + solaris2.[6789]|solaris2.1[0-9])
43574 + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
43575 + echo "pages."
43576 + ;;
43577 *)
43578 - abs_ladir=`cd "$ladir" && pwd`
43579 - if test -z "$abs_ladir"; then
43580 - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
43581 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
43582 - abs_ladir="$ladir"
43583 - fi
43584 + echo "more information, such as the ld(1) and ld.so(8) manual pages."
43585 ;;
43586 - esac
43587 - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
43588 + esac
43589 + echo "----------------------------------------------------------------------"
43590 + fi
43591 + exit $EXIT_SUCCESS
43592 +}
43593
43594 - # Find the relevant object directory and library name.
43595 - if test "X$installed" = Xyes; then
43596 - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
43597 - $echo "$modename: warning: library \`$lib' was moved." 1>&2
43598 - dir="$ladir"
43599 - absdir="$abs_ladir"
43600 - libdir="$abs_ladir"
43601 - else
43602 - dir="$libdir"
43603 - absdir="$libdir"
43604 - fi
43605 - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
43606 - else
43607 - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
43608 - dir="$ladir"
43609 - absdir="$abs_ladir"
43610 - # Remove this search path later
43611 - notinst_path="$notinst_path $abs_ladir"
43612 - else
43613 - dir="$ladir/$objdir"
43614 - absdir="$abs_ladir/$objdir"
43615 - # Remove this search path later
43616 - notinst_path="$notinst_path $abs_ladir"
43617 - fi
43618 - fi # $installed = yes
43619 - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
43620 +test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
43621
43622 - # This library was specified with -dlpreopen.
43623 - if test "$pass" = dlpreopen; then
43624 - if test -z "$libdir"; then
43625 - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
43626 - exit $EXIT_FAILURE
43627 - fi
43628 - # Prefer using a static library (so that no silly _DYNAMIC symbols
43629 - # are required to link).
43630 - if test -n "$old_library"; then
43631 - newdlprefiles="$newdlprefiles $dir/$old_library"
43632 - # Otherwise, use the dlname, so that lt_dlopen finds it.
43633 - elif test -n "$dlname"; then
43634 - newdlprefiles="$newdlprefiles $dir/$dlname"
43635 - else
43636 - newdlprefiles="$newdlprefiles $dir/$linklib"
43637 - fi
43638 - fi # $pass = dlpreopen
43639
43640 - if test -z "$libdir"; then
43641 - # Link the convenience library
43642 - if test "$linkmode" = lib; then
43643 - deplibs="$dir/$old_library $deplibs"
43644 - elif test "$linkmode,$pass" = "prog,link"; then
43645 - compile_deplibs="$dir/$old_library $compile_deplibs"
43646 - finalize_deplibs="$dir/$old_library $finalize_deplibs"
43647 - else
43648 - deplibs="$lib $deplibs" # used for prog,scan pass
43649 +# func_mode_install arg...
43650 +func_mode_install ()
43651 +{
43652 + $opt_debug
43653 + # There may be an optional sh(1) argument at the beginning of
43654 + # install_prog (especially on Windows NT).
43655 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
43656 + # Allow the use of GNU shtool's install command.
43657 + case $nonopt in *shtool*) :;; *) false;; esac; then
43658 + # Aesthetically quote it.
43659 + func_quote_for_eval "$nonopt"
43660 + install_prog="$func_quote_for_eval_result "
43661 + arg=$1
43662 + shift
43663 + else
43664 + install_prog=
43665 + arg=$nonopt
43666 + fi
43667 +
43668 + # The real first argument should be the name of the installation program.
43669 + # Aesthetically quote it.
43670 + func_quote_for_eval "$arg"
43671 + func_append install_prog "$func_quote_for_eval_result"
43672 + install_shared_prog=$install_prog
43673 + case " $install_prog " in
43674 + *[\\\ /]cp\ *) install_cp=: ;;
43675 + *) install_cp=false ;;
43676 + esac
43677 +
43678 + # We need to accept at least all the BSD install flags.
43679 + dest=
43680 + files=
43681 + opts=
43682 + prev=
43683 + install_type=
43684 + isdir=no
43685 + stripme=
43686 + no_mode=:
43687 + for arg
43688 + do
43689 + arg2=
43690 + if test -n "$dest"; then
43691 + func_append files " $dest"
43692 + dest=$arg
43693 + continue
43694 + fi
43695 +
43696 + case $arg in
43697 + -d) isdir=yes ;;
43698 + -f)
43699 + if $install_cp; then :; else
43700 + prev=$arg
43701 + fi
43702 + ;;
43703 + -g | -m | -o)
43704 + prev=$arg
43705 + ;;
43706 + -s)
43707 + stripme=" -s"
43708 + continue
43709 + ;;
43710 + -*)
43711 + ;;
43712 + *)
43713 + # If the previous option needed an argument, then skip it.
43714 + if test -n "$prev"; then
43715 + if test "x$prev" = x-m && test -n "$install_override_mode"; then
43716 + arg2=$install_override_mode
43717 + no_mode=false
43718 fi
43719 + prev=
43720 + else
43721 + dest=$arg
43722 continue
43723 fi
43724 + ;;
43725 + esac
43726
43727 + # Aesthetically quote the argument.
43728 + func_quote_for_eval "$arg"
43729 + func_append install_prog " $func_quote_for_eval_result"
43730 + if test -n "$arg2"; then
43731 + func_quote_for_eval "$arg2"
43732 + fi
43733 + func_append install_shared_prog " $func_quote_for_eval_result"
43734 + done
43735
43736 - if test "$linkmode" = prog && test "$pass" != link; then
43737 - newlib_search_path="$newlib_search_path $ladir"
43738 - deplibs="$lib $deplibs"
43739 + test -z "$install_prog" && \
43740 + func_fatal_help "you must specify an install program"
43741
43742 - linkalldeplibs=no
43743 - if test "$link_all_deplibs" != no || test -z "$library_names" ||
43744 - test "$build_libtool_libs" = no; then
43745 - linkalldeplibs=yes
43746 - fi
43747 + test -n "$prev" && \
43748 + func_fatal_help "the \`$prev' option requires an argument"
43749
43750 - tmp_libs=
43751 - for deplib in $dependency_libs; do
43752 - case $deplib in
43753 - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
43754 - esac
43755 - # Need to link against all dependency_libs?
43756 - if test "$linkalldeplibs" = yes; then
43757 - deplibs="$deplib $deplibs"
43758 - else
43759 - # Need to hardcode shared library paths
43760 - # or/and link against static libraries
43761 - newdependency_libs="$deplib $newdependency_libs"
43762 - fi
43763 - if test "X$duplicate_deps" = "Xyes" ; then
43764 - case "$tmp_libs " in
43765 - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
43766 - esac
43767 - fi
43768 - tmp_libs="$tmp_libs $deplib"
43769 - done # for deplib
43770 - continue
43771 - fi # $linkmode = prog...
43772 + if test -n "$install_override_mode" && $no_mode; then
43773 + if $install_cp; then :; else
43774 + func_quote_for_eval "$install_override_mode"
43775 + func_append install_shared_prog " -m $func_quote_for_eval_result"
43776 + fi
43777 + fi
43778
43779 - if test "$linkmode,$pass" = "prog,link"; then
43780 - if test -n "$library_names" &&
43781 - { { test "$prefer_static_libs" = no ||
43782 - test "$prefer_static_libs,$installed" = "built,yes"; } ||
43783 - test -z "$old_library"; }; then
43784 - # We need to hardcode the library path
43785 - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
43786 - # Make sure the rpath contains only unique directories.
43787 - case "$temp_rpath " in
43788 - *" $dir "*) ;;
43789 - *" $absdir "*) ;;
43790 - *) temp_rpath="$temp_rpath $absdir" ;;
43791 - esac
43792 - fi
43793 + if test -z "$files"; then
43794 + if test -z "$dest"; then
43795 + func_fatal_help "no file or destination specified"
43796 + else
43797 + func_fatal_help "you must specify a destination"
43798 + fi
43799 + fi
43800
43801 - # Hardcode the library path.
43802 - # Skip directories that are in the system default run-time
43803 - # search path.
43804 - case " $sys_lib_dlsearch_path " in
43805 - *" $absdir "*) ;;
43806 - *)
43807 - case "$compile_rpath " in
43808 - *" $absdir "*) ;;
43809 - *) compile_rpath="$compile_rpath $absdir"
43810 - esac
43811 - ;;
43812 - esac
43813 - case " $sys_lib_dlsearch_path " in
43814 - *" $libdir "*) ;;
43815 - *)
43816 - case "$finalize_rpath " in
43817 - *" $libdir "*) ;;
43818 - *) finalize_rpath="$finalize_rpath $libdir"
43819 - esac
43820 - ;;
43821 - esac
43822 - fi # $linkmode,$pass = prog,link...
43823 + # Strip any trailing slash from the destination.
43824 + func_stripname '' '/' "$dest"
43825 + dest=$func_stripname_result
43826
43827 - if test "$alldeplibs" = yes &&
43828 - { test "$deplibs_check_method" = pass_all ||
43829 - { test "$build_libtool_libs" = yes &&
43830 - test -n "$library_names"; }; }; then
43831 - # We only need to search for static libraries
43832 - continue
43833 - fi
43834 - fi
43835 + # Check to see that the destination is a directory.
43836 + test -d "$dest" && isdir=yes
43837 + if test "$isdir" = yes; then
43838 + destdir="$dest"
43839 + destname=
43840 + else
43841 + func_dirname_and_basename "$dest" "" "."
43842 + destdir="$func_dirname_result"
43843 + destname="$func_basename_result"
43844
43845 - link_static=no # Whether the deplib will be linked statically
43846 - use_static_libs=$prefer_static_libs
43847 - if test "$use_static_libs" = built && test "$installed" = yes ; then
43848 - use_static_libs=no
43849 - fi
43850 - if test -n "$library_names" &&
43851 - { test "$use_static_libs" = no || test -z "$old_library"; }; then
43852 - if test "$installed" = no; then
43853 - notinst_deplibs="$notinst_deplibs $lib"
43854 - need_relink=yes
43855 - fi
43856 - # This is a shared library
43857 + # Not a directory, so check to see that there is only one file specified.
43858 + set dummy $files; shift
43859 + test "$#" -gt 1 && \
43860 + func_fatal_help "\`$dest' is not a directory"
43861 + fi
43862 + case $destdir in
43863 + [\\/]* | [A-Za-z]:[\\/]*) ;;
43864 + *)
43865 + for file in $files; do
43866 + case $file in
43867 + *.lo) ;;
43868 + *)
43869 + func_fatal_help "\`$destdir' must be an absolute directory name"
43870 + ;;
43871 + esac
43872 + done
43873 + ;;
43874 + esac
43875
43876 - # Warn about portability, can't link against -module's on
43877 - # some systems (darwin)
43878 - if test "$shouldnotlink" = yes && test "$pass" = link ; then
43879 - $echo
43880 - if test "$linkmode" = prog; then
43881 - $echo "*** Warning: Linking the executable $output against the loadable module"
43882 - else
43883 - $echo "*** Warning: Linking the shared library $output against the loadable module"
43884 - fi
43885 - $echo "*** $linklib is not portable!"
43886 - fi
43887 - if test "$linkmode" = lib &&
43888 - test "$hardcode_into_libs" = yes; then
43889 - # Hardcode the library path.
43890 - # Skip directories that are in the system default run-time
43891 - # search path.
43892 - case " $sys_lib_dlsearch_path " in
43893 - *" $absdir "*) ;;
43894 - *)
43895 - case "$compile_rpath " in
43896 - *" $absdir "*) ;;
43897 - *) compile_rpath="$compile_rpath $absdir"
43898 - esac
43899 - ;;
43900 - esac
43901 - case " $sys_lib_dlsearch_path " in
43902 - *" $libdir "*) ;;
43903 - *)
43904 - case "$finalize_rpath " in
43905 - *" $libdir "*) ;;
43906 - *) finalize_rpath="$finalize_rpath $libdir"
43907 - esac
43908 - ;;
43909 - esac
43910 - fi
43911 + # This variable tells wrapper scripts just to set variables rather
43912 + # than running their programs.
43913 + libtool_install_magic="$magic"
43914
43915 - if test -n "$old_archive_from_expsyms_cmds"; then
43916 - # figure out the soname
43917 - set dummy $library_names
43918 - realname="$2"
43919 - shift; shift
43920 - libname=`eval \\$echo \"$libname_spec\"`
43921 - # use dlname if we got it. it's perfectly good, no?
43922 - if test -n "$dlname"; then
43923 - soname="$dlname"
43924 - elif test -n "$soname_spec"; then
43925 - # bleh windows
43926 - case $host in
43927 - *cygwin* | mingw*)
43928 - major=`expr $current - $age`
43929 - versuffix="-$major"
43930 - ;;
43931 - esac
43932 - eval soname=\"$soname_spec\"
43933 - else
43934 - soname="$realname"
43935 - fi
43936 + staticlibs=
43937 + future_libdirs=
43938 + current_libdirs=
43939 + for file in $files; do
43940
43941 - # Make a new name for the extract_expsyms_cmds to use
43942 - soroot="$soname"
43943 - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
43944 - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
43945 + # Do each installation.
43946 + case $file in
43947 + *.$libext)
43948 + # Do the static libraries later.
43949 + func_append staticlibs " $file"
43950 + ;;
43951
43952 - # If the library has no export list, then create one now
43953 - if test -f "$output_objdir/$soname-def"; then :
43954 - else
43955 - $show "extracting exported symbol list from \`$soname'"
43956 - save_ifs="$IFS"; IFS='~'
43957 - cmds=$extract_expsyms_cmds
43958 - for cmd in $cmds; do
43959 - IFS="$save_ifs"
43960 - eval cmd=\"$cmd\"
43961 - $show "$cmd"
43962 - $run eval "$cmd" || exit $?
43963 - done
43964 - IFS="$save_ifs"
43965 - fi
43966 + *.la)
43967 + func_resolve_sysroot "$file"
43968 + file=$func_resolve_sysroot_result
43969
43970 - # Create $newlib
43971 - if test -f "$output_objdir/$newlib"; then :; else
43972 - $show "generating import library for \`$soname'"
43973 - save_ifs="$IFS"; IFS='~'
43974 - cmds=$old_archive_from_expsyms_cmds
43975 - for cmd in $cmds; do
43976 - IFS="$save_ifs"
43977 - eval cmd=\"$cmd\"
43978 - $show "$cmd"
43979 - $run eval "$cmd" || exit $?
43980 - done
43981 - IFS="$save_ifs"
43982 - fi
43983 - # make sure the library variables are pointing to the new library
43984 - dir=$output_objdir
43985 - linklib=$newlib
43986 - fi # test -n "$old_archive_from_expsyms_cmds"
43987 + # Check to see that this really is a libtool archive.
43988 + func_lalib_unsafe_p "$file" \
43989 + || func_fatal_help "\`$file' is not a valid libtool archive"
43990
43991 - if test "$linkmode" = prog || test "$mode" != relink; then
43992 - add_shlibpath=
43993 - add_dir=
43994 - add=
43995 - lib_linked=yes
43996 - case $hardcode_action in
43997 - immediate | unsupported)
43998 - if test "$hardcode_direct" = no; then
43999 - add="$dir/$linklib"
44000 - case $host in
44001 - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
44002 - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
44003 - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
44004 - *-*-unixware7*) add_dir="-L$dir" ;;
44005 - *-*-darwin* )
44006 - # if the lib is a module then we can not link against
44007 - # it, someone is ignoring the new warnings I added
44008 - if /usr/bin/file -L $add 2> /dev/null |
44009 - $EGREP ": [^:]* bundle" >/dev/null ; then
44010 - $echo "** Warning, lib $linklib is a module, not a shared library"
44011 - if test -z "$old_library" ; then
44012 - $echo
44013 - $echo "** And there doesn't seem to be a static archive available"
44014 - $echo "** The link will probably fail, sorry"
44015 - else
44016 - add="$dir/$old_library"
44017 - fi
44018 - fi
44019 - esac
44020 - elif test "$hardcode_minus_L" = no; then
44021 - case $host in
44022 - *-*-sunos*) add_shlibpath="$dir" ;;
44023 - esac
44024 - add_dir="-L$dir"
44025 - add="-l$name"
44026 - elif test "$hardcode_shlibpath_var" = no; then
44027 - add_shlibpath="$dir"
44028 - add="-l$name"
44029 - else
44030 - lib_linked=no
44031 - fi
44032 - ;;
44033 - relink)
44034 - if test "$hardcode_direct" = yes; then
44035 - add="$dir/$linklib"
44036 - elif test "$hardcode_minus_L" = yes; then
44037 - add_dir="-L$dir"
44038 - # Try looking first in the location we're being installed to.
44039 - if test -n "$inst_prefix_dir"; then
44040 - case $libdir in
44041 - [\\/]*)
44042 - add_dir="$add_dir -L$inst_prefix_dir$libdir"
44043 - ;;
44044 - esac
44045 - fi
44046 - add="-l$name"
44047 - elif test "$hardcode_shlibpath_var" = yes; then
44048 - add_shlibpath="$dir"
44049 - add="-l$name"
44050 - else
44051 - lib_linked=no
44052 - fi
44053 - ;;
44054 - *) lib_linked=no ;;
44055 - esac
44056 + library_names=
44057 + old_library=
44058 + relink_command=
44059 + func_source "$file"
44060
44061 - if test "$lib_linked" != yes; then
44062 - $echo "$modename: configuration error: unsupported hardcode properties"
44063 - exit $EXIT_FAILURE
44064 - fi
44065 + # Add the libdir to current_libdirs if it is the destination.
44066 + if test "X$destdir" = "X$libdir"; then
44067 + case "$current_libdirs " in
44068 + *" $libdir "*) ;;
44069 + *) func_append current_libdirs " $libdir" ;;
44070 + esac
44071 + else
44072 + # Note the libdir as a future libdir.
44073 + case "$future_libdirs " in
44074 + *" $libdir "*) ;;
44075 + *) func_append future_libdirs " $libdir" ;;
44076 + esac
44077 + fi
44078
44079 - if test -n "$add_shlibpath"; then
44080 - case :$compile_shlibpath: in
44081 - *":$add_shlibpath:"*) ;;
44082 - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
44083 - esac
44084 - fi
44085 - if test "$linkmode" = prog; then
44086 - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
44087 - test -n "$add" && compile_deplibs="$add $compile_deplibs"
44088 - else
44089 - test -n "$add_dir" && deplibs="$add_dir $deplibs"
44090 - test -n "$add" && deplibs="$add $deplibs"
44091 - if test "$hardcode_direct" != yes && \
44092 - test "$hardcode_minus_L" != yes && \
44093 - test "$hardcode_shlibpath_var" = yes; then
44094 - case :$finalize_shlibpath: in
44095 - *":$libdir:"*) ;;
44096 - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
44097 - esac
44098 - fi
44099 - fi
44100 - fi
44101 + func_dirname "$file" "/" ""
44102 + dir="$func_dirname_result"
44103 + func_append dir "$objdir"
44104
44105 - if test "$linkmode" = prog || test "$mode" = relink; then
44106 - add_shlibpath=
44107 - add_dir=
44108 - add=
44109 - # Finalize command for both is simple: just hardcode it.
44110 - if test "$hardcode_direct" = yes; then
44111 - add="$libdir/$linklib"
44112 - elif test "$hardcode_minus_L" = yes; then
44113 - add_dir="-L$libdir"
44114 - add="-l$name"
44115 - elif test "$hardcode_shlibpath_var" = yes; then
44116 - case :$finalize_shlibpath: in
44117 - *":$libdir:"*) ;;
44118 - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
44119 - esac
44120 - add="-l$name"
44121 - elif test "$hardcode_automatic" = yes; then
44122 - if test -n "$inst_prefix_dir" &&
44123 - test -f "$inst_prefix_dir$libdir/$linklib" ; then
44124 - add="$inst_prefix_dir$libdir/$linklib"
44125 - else
44126 - add="$libdir/$linklib"
44127 - fi
44128 - else
44129 - # We cannot seem to hardcode it, guess we'll fake it.
44130 - add_dir="-L$libdir"
44131 - # Try looking first in the location we're being installed to.
44132 - if test -n "$inst_prefix_dir"; then
44133 - case $libdir in
44134 - [\\/]*)
44135 - add_dir="$add_dir -L$inst_prefix_dir$libdir"
44136 - ;;
44137 - esac
44138 - fi
44139 - add="-l$name"
44140 - fi
44141 + if test -n "$relink_command"; then
44142 + # Determine the prefix the user has applied to our future dir.
44143 + inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
44144
44145 - if test "$linkmode" = prog; then
44146 - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
44147 - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
44148 - else
44149 - test -n "$add_dir" && deplibs="$add_dir $deplibs"
44150 - test -n "$add" && deplibs="$add $deplibs"
44151 - fi
44152 - fi
44153 - elif test "$linkmode" = prog; then
44154 - # Here we assume that one of hardcode_direct or hardcode_minus_L
44155 - # is not unsupported. This is valid on all known static and
44156 - # shared platforms.
44157 - if test "$hardcode_direct" != unsupported; then
44158 - test -n "$old_library" && linklib="$old_library"
44159 - compile_deplibs="$dir/$linklib $compile_deplibs"
44160 - finalize_deplibs="$dir/$linklib $finalize_deplibs"
44161 + # Don't allow the user to place us outside of our expected
44162 + # location b/c this prevents finding dependent libraries that
44163 + # are installed to the same prefix.
44164 + # At present, this check doesn't affect windows .dll's that
44165 + # are installed into $libdir/../bin (currently, that works fine)
44166 + # but it's something to keep an eye on.
44167 + test "$inst_prefix_dir" = "$destdir" && \
44168 + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
44169 +
44170 + if test -n "$inst_prefix_dir"; then
44171 + # Stick the inst_prefix_dir data into the link command.
44172 + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
44173 else
44174 - compile_deplibs="-l$name -L$dir $compile_deplibs"
44175 - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
44176 + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
44177 fi
44178 - elif test "$build_libtool_libs" = yes; then
44179 - # Not a shared library
44180 - if test "$deplibs_check_method" != pass_all; then
44181 - # We're trying link a shared library against a static one
44182 - # but the system doesn't support it.
44183
44184 - # Just print a warning and add the library to dependency_libs so
44185 - # that the program can be linked against the static library.
44186 - $echo
44187 - $echo "*** Warning: This system can not link to static lib archive $lib."
44188 - $echo "*** I have the capability to make that library automatically link in when"
44189 - $echo "*** you link to this library. But I can only do this if you have a"
44190 - $echo "*** shared version of the library, which you do not appear to have."
44191 - if test "$module" = yes; then
44192 - $echo "*** But as you try to build a module library, libtool will still create "
44193 - $echo "*** a static module, that should work as long as the dlopening application"
44194 - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
44195 - if test -z "$global_symbol_pipe"; then
44196 - $echo
44197 - $echo "*** However, this would only work if libtool was able to extract symbol"
44198 - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
44199 - $echo "*** not find such a program. So, this module is probably useless."
44200 - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
44201 - fi
44202 - if test "$build_old_libs" = no; then
44203 - build_libtool_libs=module
44204 - build_old_libs=yes
44205 - else
44206 - build_libtool_libs=no
44207 - fi
44208 - fi
44209 - else
44210 - deplibs="$dir/$old_library $deplibs"
44211 - link_static=yes
44212 + func_warning "relinking \`$file'"
44213 + func_show_eval "$relink_command" \
44214 + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
44215 + fi
44216 +
44217 + # See the names of the shared library.
44218 + set dummy $library_names; shift
44219 + if test -n "$1"; then
44220 + realname="$1"
44221 + shift
44222 +
44223 + srcname="$realname"
44224 + test -n "$relink_command" && srcname="$realname"T
44225 +
44226 + # Install the shared library and build the symlinks.
44227 + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
44228 + 'exit $?'
44229 + tstripme="$stripme"
44230 + case $host_os in
44231 + cygwin* | mingw* | pw32* | cegcc*)
44232 + case $realname in
44233 + *.dll.a)
44234 + tstripme=""
44235 + ;;
44236 + esac
44237 + ;;
44238 + esac
44239 + if test -n "$tstripme" && test -n "$striplib"; then
44240 + func_show_eval "$striplib $destdir/$realname" 'exit $?'
44241 fi
44242 - fi # link shared/static library?
44243
44244 - if test "$linkmode" = lib; then
44245 - if test -n "$dependency_libs" &&
44246 - { test "$hardcode_into_libs" != yes ||
44247 - test "$build_old_libs" = yes ||
44248 - test "$link_static" = yes; }; then
44249 - # Extract -R from dependency_libs
44250 - temp_deplibs=
44251 - for libdir in $dependency_libs; do
44252 - case $libdir in
44253 - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
44254 - case " $xrpath " in
44255 - *" $temp_xrpath "*) ;;
44256 - *) xrpath="$xrpath $temp_xrpath";;
44257 - esac;;
44258 - *) temp_deplibs="$temp_deplibs $libdir";;
44259 - esac
44260 + if test "$#" -gt 0; then
44261 + # Delete the old symlinks, and create new ones.
44262 + # Try `ln -sf' first, because the `ln' binary might depend on
44263 + # the symlink we replace! Solaris /bin/ln does not understand -f,
44264 + # so we also need to try rm && ln -s.
44265 + for linkname
44266 + do
44267 + test "$linkname" != "$realname" \
44268 + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
44269 done
44270 - dependency_libs="$temp_deplibs"
44271 fi
44272
44273 - newlib_search_path="$newlib_search_path $absdir"
44274 - # Link against this library
44275 - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
44276 - # ... and its dependency_libs
44277 - tmp_libs=
44278 - for deplib in $dependency_libs; do
44279 - newdependency_libs="$deplib $newdependency_libs"
44280 - if test "X$duplicate_deps" = "Xyes" ; then
44281 - case "$tmp_libs " in
44282 - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
44283 - esac
44284 - fi
44285 - tmp_libs="$tmp_libs $deplib"
44286 - done
44287 + # Do each command in the postinstall commands.
44288 + lib="$destdir/$realname"
44289 + func_execute_cmds "$postinstall_cmds" 'exit $?'
44290 + fi
44291
44292 - if test "$link_all_deplibs" != no; then
44293 - # Add the search paths of all dependency libraries
44294 - for deplib in $dependency_libs; do
44295 - case $deplib in
44296 - -L*) path="$deplib" ;;
44297 - *.la)
44298 - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
44299 - test "X$dir" = "X$deplib" && dir="."
44300 - # We need an absolute path.
44301 - case $dir in
44302 - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
44303 - *)
44304 - absdir=`cd "$dir" && pwd`
44305 - if test -z "$absdir"; then
44306 - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
44307 - absdir="$dir"
44308 - fi
44309 - ;;
44310 - esac
44311 - if grep "^installed=no" $deplib > /dev/null; then
44312 - path="$absdir/$objdir"
44313 - else
44314 - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
44315 - if test -z "$libdir"; then
44316 - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
44317 - exit $EXIT_FAILURE
44318 - fi
44319 - if test "$absdir" != "$libdir"; then
44320 - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
44321 - fi
44322 - path="$absdir"
44323 - fi
44324 - depdepl=
44325 - case $host in
44326 - *-*-darwin*)
44327 - # we do not want to link against static libs,
44328 - # but need to link against shared
44329 - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
44330 - eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
44331 - if test -n "$deplibrary_names" ; then
44332 - for tmp in $deplibrary_names ; do
44333 - depdepl=$tmp
44334 - done
44335 - if test -f "$deplibdir/$depdepl" ; then
44336 - depdepl="$deplibdir/$depdepl"
44337 - elif test -f "$path/$depdepl" ; then
44338 - depdepl="$path/$depdepl"
44339 - else
44340 - # Can't find it, oh well...
44341 - depdepl=
44342 - fi
44343 - # do not add paths which are already there
44344 - case " $newlib_search_path " in
44345 - *" $path "*) ;;
44346 - *) newlib_search_path="$newlib_search_path $path";;
44347 - esac
44348 - fi
44349 - path=""
44350 - ;;
44351 - *)
44352 - path="-L$path"
44353 - ;;
44354 - esac
44355 - ;;
44356 - -l*)
44357 - case $host in
44358 - *-*-darwin*)
44359 - # Again, we only want to link against shared libraries
44360 - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
44361 - for tmp in $newlib_search_path ; do
44362 - if test -f "$tmp/lib$tmp_libs.dylib" ; then
44363 - eval depdepl="$tmp/lib$tmp_libs.dylib"
44364 - break
44365 - fi
44366 - done
44367 - path=""
44368 - ;;
44369 - *) continue ;;
44370 - esac
44371 - ;;
44372 - *) continue ;;
44373 - esac
44374 - case " $deplibs " in
44375 - *" $path "*) ;;
44376 - *) deplibs="$path $deplibs" ;;
44377 - esac
44378 - case " $deplibs " in
44379 - *" $depdepl "*) ;;
44380 - *) deplibs="$depdepl $deplibs" ;;
44381 - esac
44382 - done
44383 - fi # link_all_deplibs != no
44384 - fi # linkmode = lib
44385 - done # for deplib in $libs
44386 - dependency_libs="$newdependency_libs"
44387 - if test "$pass" = dlpreopen; then
44388 - # Link the dlpreopened libraries before other libraries
44389 - for deplib in $save_deplibs; do
44390 - deplibs="$deplib $deplibs"
44391 - done
44392 - fi
44393 - if test "$pass" != dlopen; then
44394 - if test "$pass" != conv; then
44395 - # Make sure lib_search_path contains only unique directories.
44396 - lib_search_path=
44397 - for dir in $newlib_search_path; do
44398 - case "$lib_search_path " in
44399 - *" $dir "*) ;;
44400 - *) lib_search_path="$lib_search_path $dir" ;;
44401 - esac
44402 - done
44403 - newlib_search_path=
44404 - fi
44405 + # Install the pseudo-library for information purposes.
44406 + func_basename "$file"
44407 + name="$func_basename_result"
44408 + instname="$dir/$name"i
44409 + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
44410
44411 - if test "$linkmode,$pass" != "prog,link"; then
44412 - vars="deplibs"
44413 + # Maybe install the static library, too.
44414 + test -n "$old_library" && func_append staticlibs " $dir/$old_library"
44415 + ;;
44416 +
44417 + *.lo)
44418 + # Install (i.e. copy) a libtool object.
44419 +
44420 + # Figure out destination file name, if it wasn't already specified.
44421 + if test -n "$destname"; then
44422 + destfile="$destdir/$destname"
44423 else
44424 - vars="compile_deplibs finalize_deplibs"
44425 + func_basename "$file"
44426 + destfile="$func_basename_result"
44427 + destfile="$destdir/$destfile"
44428 fi
44429 - for var in $vars dependency_libs; do
44430 - # Add libraries to $var in reverse order
44431 - eval tmp_libs=\"\$$var\"
44432 - new_libs=
44433 - for deplib in $tmp_libs; do
44434 - # FIXME: Pedantically, this is the right thing to do, so
44435 - # that some nasty dependency loop isn't accidentally
44436 - # broken:
44437 - #new_libs="$deplib $new_libs"
44438 - # Pragmatically, this seems to cause very few problems in
44439 - # practice:
44440 - case $deplib in
44441 - -L*) new_libs="$deplib $new_libs" ;;
44442 - -R*) ;;
44443 - *)
44444 - # And here is the reason: when a library appears more
44445 - # than once as an explicit dependence of a library, or
44446 - # is implicitly linked in more than once by the
44447 - # compiler, it is considered special, and multiple
44448 - # occurrences thereof are not removed. Compare this
44449 - # with having the same library being listed as a
44450 - # dependency of multiple other libraries: in this case,
44451 - # we know (pedantically, we assume) the library does not
44452 - # need to be listed more than once, so we keep only the
44453 - # last copy. This is not always right, but it is rare
44454 - # enough that we require users that really mean to play
44455 - # such unportable linking tricks to link the library
44456 - # using -Wl,-lname, so that libtool does not consider it
44457 - # for duplicate removal.
44458 - case " $specialdeplibs " in
44459 - *" $deplib "*) new_libs="$deplib $new_libs" ;;
44460 - *)
44461 - case " $new_libs " in
44462 - *" $deplib "*) ;;
44463 - *) new_libs="$deplib $new_libs" ;;
44464 - esac
44465 - ;;
44466 - esac
44467 - ;;
44468 - esac
44469 - done
44470 - tmp_libs=
44471 - for deplib in $new_libs; do
44472 - case $deplib in
44473 - -L*)
44474 - case " $tmp_libs " in
44475 - *" $deplib "*) ;;
44476 - *) tmp_libs="$tmp_libs $deplib" ;;
44477 - esac
44478 - ;;
44479 - *) tmp_libs="$tmp_libs $deplib" ;;
44480 - esac
44481 - done
44482 - eval $var=\"$tmp_libs\"
44483 - done # for var
44484 - fi
44485 - # Last step: remove runtime libs from dependency_libs
44486 - # (they stay in deplibs)
44487 - tmp_libs=
44488 - for i in $dependency_libs ; do
44489 - case " $predeps $postdeps $compiler_lib_search_path " in
44490 - *" $i "*)
44491 - i=""
44492 +
44493 + # Deduce the name of the destination old-style object file.
44494 + case $destfile in
44495 + *.lo)
44496 + func_lo2o "$destfile"
44497 + staticdest=$func_lo2o_result
44498 + ;;
44499 + *.$objext)
44500 + staticdest="$destfile"
44501 + destfile=
44502 + ;;
44503 + *)
44504 + func_fatal_help "cannot copy a libtool object to \`$destfile'"
44505 ;;
44506 esac
44507 - if test -n "$i" ; then
44508 - tmp_libs="$tmp_libs $i"
44509 - fi
44510 - done
44511 - dependency_libs=$tmp_libs
44512 - done # for pass
44513 - if test "$linkmode" = prog; then
44514 - dlfiles="$newdlfiles"
44515 - dlprefiles="$newdlprefiles"
44516 - fi
44517
44518 - case $linkmode in
44519 - oldlib)
44520 - case " $deplibs" in
44521 - *\ -l* | *\ -L*)
44522 - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
44523 - esac
44524 + # Install the libtool object if requested.
44525 + test -n "$destfile" && \
44526 + func_show_eval "$install_prog $file $destfile" 'exit $?'
44527
44528 - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
44529 - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
44530 - fi
44531 + # Install the old object if enabled.
44532 + if test "$build_old_libs" = yes; then
44533 + # Deduce the name of the old-style object file.
44534 + func_lo2o "$file"
44535 + staticobj=$func_lo2o_result
44536 + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
44537 + fi
44538 + exit $EXIT_SUCCESS
44539 + ;;
44540
44541 - if test -n "$rpath"; then
44542 - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
44543 - fi
44544 + *)
44545 + # Figure out destination file name, if it wasn't already specified.
44546 + if test -n "$destname"; then
44547 + destfile="$destdir/$destname"
44548 + else
44549 + func_basename "$file"
44550 + destfile="$func_basename_result"
44551 + destfile="$destdir/$destfile"
44552 + fi
44553
44554 - if test -n "$xrpath"; then
44555 - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
44556 - fi
44557 + # If the file is missing, and there is a .exe on the end, strip it
44558 + # because it is most likely a libtool script we actually want to
44559 + # install
44560 + stripped_ext=""
44561 + case $file in
44562 + *.exe)
44563 + if test ! -f "$file"; then
44564 + func_stripname '' '.exe' "$file"
44565 + file=$func_stripname_result
44566 + stripped_ext=".exe"
44567 + fi
44568 + ;;
44569 + esac
44570
44571 - if test -n "$vinfo"; then
44572 - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
44573 - fi
44574 + # Do a test to see if this is really a libtool program.
44575 + case $host in
44576 + *cygwin* | *mingw*)
44577 + if func_ltwrapper_executable_p "$file"; then
44578 + func_ltwrapper_scriptname "$file"
44579 + wrapper=$func_ltwrapper_scriptname_result
44580 + else
44581 + func_stripname '' '.exe' "$file"
44582 + wrapper=$func_stripname_result
44583 + fi
44584 + ;;
44585 + *)
44586 + wrapper=$file
44587 + ;;
44588 + esac
44589 + if func_ltwrapper_script_p "$wrapper"; then
44590 + notinst_deplibs=
44591 + relink_command=
44592
44593 - if test -n "$release"; then
44594 - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
44595 - fi
44596 + func_source "$wrapper"
44597
44598 - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
44599 - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
44600 - fi
44601 + # Check the variables that should have been set.
44602 + test -z "$generated_by_libtool_version" && \
44603 + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
44604
44605 - # Now set the variables for building old libraries.
44606 - build_libtool_libs=no
44607 - oldlibs="$output"
44608 - objs="$objs$old_deplibs"
44609 - ;;
44610 + finalize=yes
44611 + for lib in $notinst_deplibs; do
44612 + # Check to see that each library is installed.
44613 + libdir=
44614 + if test -f "$lib"; then
44615 + func_source "$lib"
44616 + fi
44617 + libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
44618 + if test -n "$libdir" && test ! -f "$libfile"; then
44619 + func_warning "\`$lib' has not been installed in \`$libdir'"
44620 + finalize=no
44621 + fi
44622 + done
44623
44624 - lib)
44625 - # Make sure we only generate libraries of the form `libNAME.la'.
44626 - case $outputname in
44627 - lib*)
44628 - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
44629 - eval shared_ext=\"$shrext_cmds\"
44630 - eval libname=\"$libname_spec\"
44631 - ;;
44632 - *)
44633 - if test "$module" = no; then
44634 - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
44635 - $echo "$help" 1>&2
44636 - exit $EXIT_FAILURE
44637 + relink_command=
44638 + func_source "$wrapper"
44639 +
44640 + outputname=
44641 + if test "$fast_install" = no && test -n "$relink_command"; then
44642 + $opt_dry_run || {
44643 + if test "$finalize" = yes; then
44644 + tmpdir=`func_mktempdir`
44645 + func_basename "$file$stripped_ext"
44646 + file="$func_basename_result"
44647 + outputname="$tmpdir/$file"
44648 + # Replace the output file specification.
44649 + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
44650 +
44651 + $opt_silent || {
44652 + func_quote_for_expand "$relink_command"
44653 + eval "func_echo $func_quote_for_expand_result"
44654 + }
44655 + if eval "$relink_command"; then :
44656 + else
44657 + func_error "error: relink \`$file' with the above command before installing it"
44658 + $opt_dry_run || ${RM}r "$tmpdir"
44659 + continue
44660 + fi
44661 + file="$outputname"
44662 + else
44663 + func_warning "cannot relink \`$file'"
44664 + fi
44665 + }
44666 + else
44667 + # Install the binary that we compiled earlier.
44668 + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
44669 + fi
44670 fi
44671 - if test "$need_lib_prefix" != no; then
44672 - # Add the "lib" prefix for modules if required
44673 - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
44674 - eval shared_ext=\"$shrext_cmds\"
44675 - eval libname=\"$libname_spec\"
44676 - else
44677 - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
44678 +
44679 + # remove .exe since cygwin /usr/bin/install will append another
44680 + # one anyway
44681 + case $install_prog,$host in
44682 + */usr/bin/install*,*cygwin*)
44683 + case $file:$destfile in
44684 + *.exe:*.exe)
44685 + # this is ok
44686 + ;;
44687 + *.exe:*)
44688 + destfile=$destfile.exe
44689 + ;;
44690 + *:*.exe)
44691 + func_stripname '' '.exe' "$destfile"
44692 + destfile=$func_stripname_result
44693 + ;;
44694 + esac
44695 + ;;
44696 + esac
44697 + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
44698 + $opt_dry_run || if test -n "$outputname"; then
44699 + ${RM}r "$tmpdir"
44700 fi
44701 ;;
44702 esac
44703 + done
44704
44705 - if test -n "$objs"; then
44706 - if test "$deplibs_check_method" != pass_all; then
44707 - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
44708 - exit $EXIT_FAILURE
44709 - else
44710 - $echo
44711 - $echo "*** Warning: Linking the shared library $output against the non-libtool"
44712 - $echo "*** objects $objs is not portable!"
44713 - libobjs="$libobjs $objs"
44714 - fi
44715 - fi
44716 + for file in $staticlibs; do
44717 + func_basename "$file"
44718 + name="$func_basename_result"
44719
44720 - if test "$dlself" != no; then
44721 - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
44722 - fi
44723 + # Set up the ranlib parameters.
44724 + oldlib="$destdir/$name"
44725 + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
44726 + tool_oldlib=$func_to_tool_file_result
44727
44728 - set dummy $rpath
44729 - if test "$#" -gt 2; then
44730 - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
44731 + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
44732 +
44733 + if test -n "$stripme" && test -n "$old_striplib"; then
44734 + func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
44735 fi
44736 - install_libdir="$2"
44737
44738 - oldlibs=
44739 - if test -z "$rpath"; then
44740 - if test "$build_libtool_libs" = yes; then
44741 - # Building a libtool convenience library.
44742 - # Some compilers have problems with a `.al' extension so
44743 - # convenience libraries should have the same extension an
44744 - # archive normally would.
44745 - oldlibs="$output_objdir/$libname.$libext $oldlibs"
44746 - build_libtool_libs=convenience
44747 - build_old_libs=yes
44748 - fi
44749 + # Do each command in the postinstall commands.
44750 + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
44751 + done
44752
44753 - if test -n "$vinfo"; then
44754 - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
44755 - fi
44756 + test -n "$future_libdirs" && \
44757 + func_warning "remember to run \`$progname --finish$future_libdirs'"
44758
44759 - if test -n "$release"; then
44760 - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
44761 - fi
44762 - else
44763 + if test -n "$current_libdirs"; then
44764 + # Maybe just do a dry run.
44765 + $opt_dry_run && current_libdirs=" -n$current_libdirs"
44766 + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
44767 + else
44768 + exit $EXIT_SUCCESS
44769 + fi
44770 +}
44771
44772 - # Parse the version information argument.
44773 - save_ifs="$IFS"; IFS=':'
44774 - set dummy $vinfo 0 0 0
44775 - IFS="$save_ifs"
44776 +test "$opt_mode" = install && func_mode_install ${1+"$@"}
44777
44778 - if test -n "$8"; then
44779 - $echo "$modename: too many parameters to \`-version-info'" 1>&2
44780 - $echo "$help" 1>&2
44781 - exit $EXIT_FAILURE
44782 - fi
44783
44784 - # convert absolute version numbers to libtool ages
44785 - # this retains compatibility with .la files and attempts
44786 - # to make the code below a bit more comprehensible
44787 +# func_generate_dlsyms outputname originator pic_p
44788 +# Extract symbols from dlprefiles and create ${outputname}S.o with
44789 +# a dlpreopen symbol table.
44790 +func_generate_dlsyms ()
44791 +{
44792 + $opt_debug
44793 + my_outputname="$1"
44794 + my_originator="$2"
44795 + my_pic_p="${3-no}"
44796 + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
44797 + my_dlsyms=
44798 +
44799 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
44800 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
44801 + my_dlsyms="${my_outputname}S.c"
44802 + else
44803 + func_error "not configured to extract global symbols from dlpreopened files"
44804 + fi
44805 + fi
44806
44807 - case $vinfo_number in
44808 - yes)
44809 - number_major="$2"
44810 - number_minor="$3"
44811 - number_revision="$4"
44812 - #
44813 - # There are really only two kinds -- those that
44814 - # use the current revision as the major version
44815 - # and those that subtract age and use age as
44816 - # a minor version. But, then there is irix
44817 - # which has an extra 1 added just for fun
44818 - #
44819 - case $version_type in
44820 - darwin|linux|osf|windows|none)
44821 - current=`expr $number_major + $number_minor`
44822 - age="$number_minor"
44823 - revision="$number_revision"
44824 - ;;
44825 - freebsd-aout|freebsd-elf|sunos)
44826 - current="$number_major"
44827 - revision="$number_minor"
44828 - age="0"
44829 - ;;
44830 - irix|nonstopux)
44831 - current=`expr $number_major + $number_minor`
44832 - age="$number_minor"
44833 - revision="$number_minor"
44834 - lt_irix_increment=no
44835 - ;;
44836 - esac
44837 - ;;
44838 - no)
44839 - current="$2"
44840 - revision="$3"
44841 - age="$4"
44842 - ;;
44843 - esac
44844 + if test -n "$my_dlsyms"; then
44845 + case $my_dlsyms in
44846 + "") ;;
44847 + *.c)
44848 + # Discover the nlist of each of the dlfiles.
44849 + nlist="$output_objdir/${my_outputname}.nm"
44850
44851 - # Check that each of the things are valid numbers.
44852 - case $current in
44853 - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
44854 - *)
44855 - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
44856 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
44857 - exit $EXIT_FAILURE
44858 - ;;
44859 - esac
44860 + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
44861
44862 - case $revision in
44863 - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
44864 - *)
44865 - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
44866 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
44867 - exit $EXIT_FAILURE
44868 - ;;
44869 - esac
44870 + # Parse the name list into a source file.
44871 + func_verbose "creating $output_objdir/$my_dlsyms"
44872
44873 - case $age in
44874 - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
44875 - *)
44876 - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
44877 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
44878 - exit $EXIT_FAILURE
44879 - ;;
44880 - esac
44881 + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
44882 +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
44883 +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
44884
44885 - if test "$age" -gt "$current"; then
44886 - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
44887 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
44888 - exit $EXIT_FAILURE
44889 - fi
44890 +#ifdef __cplusplus
44891 +extern \"C\" {
44892 +#endif
44893
44894 - # Calculate the version variables.
44895 - major=
44896 - versuffix=
44897 - verstring=
44898 - case $version_type in
44899 - none) ;;
44900 +#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
44901 +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
44902 +#endif
44903
44904 - darwin)
44905 - # Like Linux, but with the current version available in
44906 - # verstring for coding it into the library header
44907 - major=.`expr $current - $age`
44908 - versuffix="$major.$age.$revision"
44909 - # Darwin ld doesn't like 0 for these options...
44910 - minor_current=`expr $current + 1`
44911 - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
44912 - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
44913 - ;;
44914 +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
44915 +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
44916 +/* DATA imports from DLLs on WIN32 con't be const, because runtime
44917 + relocations are performed -- see ld's documentation on pseudo-relocs. */
44918 +# define LT_DLSYM_CONST
44919 +#elif defined(__osf__)
44920 +/* This system does not cope well with relocations in const data. */
44921 +# define LT_DLSYM_CONST
44922 +#else
44923 +# define LT_DLSYM_CONST const
44924 +#endif
44925
44926 - freebsd-aout)
44927 - major=".$current"
44928 - versuffix=".$current.$revision";
44929 - ;;
44930 +/* External symbol declarations for the compiler. */\
44931 +"
44932
44933 - freebsd-elf)
44934 - major=".$current"
44935 - versuffix=".$current";
44936 - ;;
44937 + if test "$dlself" = yes; then
44938 + func_verbose "generating symbol list for \`$output'"
44939
44940 - irix | nonstopux)
44941 - if test "X$lt_irix_increment" = "Xno"; then
44942 - major=`expr $current - $age`
44943 - else
44944 - major=`expr $current - $age + 1`
44945 - fi
44946 - case $version_type in
44947 - nonstopux) verstring_prefix=nonstopux ;;
44948 - *) verstring_prefix=sgi ;;
44949 - esac
44950 - verstring="$verstring_prefix$major.$revision"
44951 + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
44952
44953 - # Add in all the interfaces that we are compatible with.
44954 - loop=$revision
44955 - while test "$loop" -ne 0; do
44956 - iface=`expr $revision - $loop`
44957 - loop=`expr $loop - 1`
44958 - verstring="$verstring_prefix$major.$iface:$verstring"
44959 + # Add our own program objects to the symbol list.
44960 + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
44961 + for progfile in $progfiles; do
44962 + func_to_tool_file "$progfile" func_convert_file_msys_to_w32
44963 + func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
44964 + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
44965 done
44966
44967 - # Before this point, $major must not contain `.'.
44968 - major=.$major
44969 - versuffix="$major.$revision"
44970 - ;;
44971 + if test -n "$exclude_expsyms"; then
44972 + $opt_dry_run || {
44973 + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
44974 + eval '$MV "$nlist"T "$nlist"'
44975 + }
44976 + fi
44977
44978 - linux)
44979 - major=.`expr $current - $age`
44980 - versuffix="$major.$age.$revision"
44981 - ;;
44982 + if test -n "$export_symbols_regex"; then
44983 + $opt_dry_run || {
44984 + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
44985 + eval '$MV "$nlist"T "$nlist"'
44986 + }
44987 + fi
44988
44989 - osf)
44990 - major=.`expr $current - $age`
44991 - versuffix=".$current.$age.$revision"
44992 - verstring="$current.$age.$revision"
44993 + # Prepare the list of exported symbols
44994 + if test -z "$export_symbols"; then
44995 + export_symbols="$output_objdir/$outputname.exp"
44996 + $opt_dry_run || {
44997 + $RM $export_symbols
44998 + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
44999 + case $host in
45000 + *cygwin* | *mingw* | *cegcc* )
45001 + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
45002 + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
45003 + ;;
45004 + esac
45005 + }
45006 + else
45007 + $opt_dry_run || {
45008 + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
45009 + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
45010 + eval '$MV "$nlist"T "$nlist"'
45011 + case $host in
45012 + *cygwin* | *mingw* | *cegcc* )
45013 + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
45014 + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
45015 + ;;
45016 + esac
45017 + }
45018 + fi
45019 + fi
45020
45021 - # Add in all the interfaces that we are compatible with.
45022 - loop=$age
45023 - while test "$loop" -ne 0; do
45024 - iface=`expr $current - $loop`
45025 - loop=`expr $loop - 1`
45026 - verstring="$verstring:${iface}.0"
45027 - done
45028 + for dlprefile in $dlprefiles; do
45029 + func_verbose "extracting global C symbols from \`$dlprefile'"
45030 + func_basename "$dlprefile"
45031 + name="$func_basename_result"
45032 + case $host in
45033 + *cygwin* | *mingw* | *cegcc* )
45034 + # if an import library, we need to obtain dlname
45035 + if func_win32_import_lib_p "$dlprefile"; then
45036 + func_tr_sh "$dlprefile"
45037 + eval "curr_lafile=\$libfile_$func_tr_sh_result"
45038 + dlprefile_dlbasename=""
45039 + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
45040 + # Use subshell, to avoid clobbering current variable values
45041 + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
45042 + if test -n "$dlprefile_dlname" ; then
45043 + func_basename "$dlprefile_dlname"
45044 + dlprefile_dlbasename="$func_basename_result"
45045 + else
45046 + # no lafile. user explicitly requested -dlpreopen <import library>.
45047 + $sharedlib_from_linklib_cmd "$dlprefile"
45048 + dlprefile_dlbasename=$sharedlib_from_linklib_result
45049 + fi
45050 + fi
45051 + $opt_dry_run || {
45052 + if test -n "$dlprefile_dlbasename" ; then
45053 + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
45054 + else
45055 + func_warning "Could not compute DLL name from $name"
45056 + eval '$ECHO ": $name " >> "$nlist"'
45057 + fi
45058 + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
45059 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
45060 + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
45061 + }
45062 + else # not an import lib
45063 + $opt_dry_run || {
45064 + eval '$ECHO ": $name " >> "$nlist"'
45065 + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
45066 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
45067 + }
45068 + fi
45069 + ;;
45070 + *)
45071 + $opt_dry_run || {
45072 + eval '$ECHO ": $name " >> "$nlist"'
45073 + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
45074 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
45075 + }
45076 + ;;
45077 + esac
45078 + done
45079
45080 - # Make executables depend on our current version.
45081 - verstring="$verstring:${current}.0"
45082 - ;;
45083 + $opt_dry_run || {
45084 + # Make sure we have at least an empty file.
45085 + test -f "$nlist" || : > "$nlist"
45086
45087 - sunos)
45088 - major=".$current"
45089 - versuffix=".$current.$revision"
45090 - ;;
45091 + if test -n "$exclude_expsyms"; then
45092 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
45093 + $MV "$nlist"T "$nlist"
45094 + fi
45095
45096 - windows)
45097 - # Use '-' rather than '.', since we only want one
45098 - # extension on DOS 8.3 filesystems.
45099 - major=`expr $current - $age`
45100 - versuffix="-$major"
45101 - ;;
45102 + # Try sorting and uniquifying the output.
45103 + if $GREP -v "^: " < "$nlist" |
45104 + if sort -k 3 </dev/null >/dev/null 2>&1; then
45105 + sort -k 3
45106 + else
45107 + sort +2
45108 + fi |
45109 + uniq > "$nlist"S; then
45110 + :
45111 + else
45112 + $GREP -v "^: " < "$nlist" > "$nlist"S
45113 + fi
45114
45115 - *)
45116 - $echo "$modename: unknown library version type \`$version_type'" 1>&2
45117 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
45118 - exit $EXIT_FAILURE
45119 - ;;
45120 - esac
45121 + if test -f "$nlist"S; then
45122 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
45123 + else
45124 + echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
45125 + fi
45126
45127 - # Clear the version info if we defaulted, and they specified a release.
45128 - if test -z "$vinfo" && test -n "$release"; then
45129 - major=
45130 - case $version_type in
45131 - darwin)
45132 - # we can't check for "0.0" in archive_cmds due to quoting
45133 - # problems, so we reset it completely
45134 - verstring=
45135 + echo >> "$output_objdir/$my_dlsyms" "\
45136 +
45137 +/* The mapping between symbol names and symbols. */
45138 +typedef struct {
45139 + const char *name;
45140 + void *address;
45141 +} lt_dlsymlist;
45142 +extern LT_DLSYM_CONST lt_dlsymlist
45143 +lt_${my_prefix}_LTX_preloaded_symbols[];
45144 +LT_DLSYM_CONST lt_dlsymlist
45145 +lt_${my_prefix}_LTX_preloaded_symbols[] =
45146 +{\
45147 + { \"$my_originator\", (void *) 0 },"
45148 +
45149 + case $need_lib_prefix in
45150 + no)
45151 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
45152 ;;
45153 *)
45154 - verstring="0.0"
45155 + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
45156 ;;
45157 esac
45158 - if test "$need_version" = no; then
45159 - versuffix=
45160 - else
45161 - versuffix=".0.0"
45162 - fi
45163 - fi
45164 + echo >> "$output_objdir/$my_dlsyms" "\
45165 + {0, (void *) 0}
45166 +};
45167
45168 - # Remove version info from name if versioning should be avoided
45169 - if test "$avoid_version" = yes && test "$need_version" = no; then
45170 - major=
45171 - versuffix=
45172 - verstring=""
45173 - fi
45174 +/* This works around a problem in FreeBSD linker */
45175 +#ifdef FREEBSD_WORKAROUND
45176 +static const void *lt_preloaded_setup() {
45177 + return lt_${my_prefix}_LTX_preloaded_symbols;
45178 +}
45179 +#endif
45180
45181 - # Check to see if the archive will have undefined symbols.
45182 - if test "$allow_undefined" = yes; then
45183 - if test "$allow_undefined_flag" = unsupported; then
45184 - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
45185 - build_libtool_libs=no
45186 - build_old_libs=yes
45187 - fi
45188 - else
45189 - # Don't allow undefined symbols.
45190 - allow_undefined_flag="$no_undefined_flag"
45191 - fi
45192 - fi
45193 +#ifdef __cplusplus
45194 +}
45195 +#endif\
45196 +"
45197 + } # !$opt_dry_run
45198
45199 - if test "$mode" != relink; then
45200 - # Remove our outputs, but don't remove object files since they
45201 - # may have been created when compiling PIC objects.
45202 - removelist=
45203 - tempremovelist=`$echo "$output_objdir/*"`
45204 - for p in $tempremovelist; do
45205 - case $p in
45206 - *.$objext)
45207 - ;;
45208 - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
45209 - if test "X$precious_files_regex" != "X"; then
45210 - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
45211 - then
45212 - continue
45213 - fi
45214 - fi
45215 - removelist="$removelist $p"
45216 - ;;
45217 - *) ;;
45218 + pic_flag_for_symtable=
45219 + case "$compile_command " in
45220 + *" -static "*) ;;
45221 + *)
45222 + case $host in
45223 + # compiling the symbol table file with pic_flag works around
45224 + # a FreeBSD bug that causes programs to crash when -lm is
45225 + # linked before any other PIC object. But we must not use
45226 + # pic_flag when linking with -static. The problem exists in
45227 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
45228 + *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
45229 + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
45230 + *-*-hpux*)
45231 + pic_flag_for_symtable=" $pic_flag" ;;
45232 + *)
45233 + if test "X$my_pic_p" != Xno; then
45234 + pic_flag_for_symtable=" $pic_flag"
45235 + fi
45236 + ;;
45237 + esac
45238 + ;;
45239 + esac
45240 + symtab_cflags=
45241 + for arg in $LTCFLAGS; do
45242 + case $arg in
45243 + -pie | -fpie | -fPIE) ;;
45244 + *) func_append symtab_cflags " $arg" ;;
45245 esac
45246 done
45247 - if test -n "$removelist"; then
45248 - $show "${rm}r $removelist"
45249 - $run ${rm}r $removelist
45250 - fi
45251 - fi
45252
45253 - # Now set the variables for building old libraries.
45254 - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
45255 - oldlibs="$oldlibs $output_objdir/$libname.$libext"
45256 + # Now compile the dynamic symbol file.
45257 + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
45258
45259 - # Transform .lo files to .o files.
45260 - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
45261 - fi
45262 + # Clean up the generated files.
45263 + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
45264
45265 - # Eliminate all temporary directories.
45266 - #for path in $notinst_path; do
45267 - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
45268 - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
45269 - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
45270 - #done
45271 + # Transform the symbol file into the correct name.
45272 + symfileobj="$output_objdir/${my_outputname}S.$objext"
45273 + case $host in
45274 + *cygwin* | *mingw* | *cegcc* )
45275 + if test -f "$output_objdir/$my_outputname.def"; then
45276 + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
45277 + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
45278 + else
45279 + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
45280 + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
45281 + fi
45282 + ;;
45283 + *)
45284 + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
45285 + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
45286 + ;;
45287 + esac
45288 + ;;
45289 + *)
45290 + func_fatal_error "unknown suffix for \`$my_dlsyms'"
45291 + ;;
45292 + esac
45293 + else
45294 + # We keep going just in case the user didn't refer to
45295 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
45296 + # really was required.
45297
45298 - if test -n "$xrpath"; then
45299 - # If the user specified any rpath flags, then add them.
45300 - temp_xrpath=
45301 - for libdir in $xrpath; do
45302 - temp_xrpath="$temp_xrpath -R$libdir"
45303 - case "$finalize_rpath " in
45304 - *" $libdir "*) ;;
45305 - *) finalize_rpath="$finalize_rpath $libdir" ;;
45306 - esac
45307 - done
45308 - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
45309 - dependency_libs="$temp_xrpath $dependency_libs"
45310 - fi
45311 - fi
45312 + # Nullify the symbol file.
45313 + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
45314 + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
45315 + fi
45316 +}
45317
45318 - # Make sure dlfiles contains only unique files that won't be dlpreopened
45319 - old_dlfiles="$dlfiles"
45320 - dlfiles=
45321 - for lib in $old_dlfiles; do
45322 - case " $dlprefiles $dlfiles " in
45323 - *" $lib "*) ;;
45324 - *) dlfiles="$dlfiles $lib" ;;
45325 - esac
45326 +# func_win32_libid arg
45327 +# return the library type of file 'arg'
45328 +#
45329 +# Need a lot of goo to handle *both* DLLs and import libs
45330 +# Has to be a shell function in order to 'eat' the argument
45331 +# that is supplied when $file_magic_command is called.
45332 +# Despite the name, also deal with 64 bit binaries.
45333 +func_win32_libid ()
45334 +{
45335 + $opt_debug
45336 + win32_libid_type="unknown"
45337 + win32_fileres=`file -L $1 2>/dev/null`
45338 + case $win32_fileres in
45339 + *ar\ archive\ import\ library*) # definitely import
45340 + win32_libid_type="x86 archive import"
45341 + ;;
45342 + *ar\ archive*) # could be an import, or static
45343 + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
45344 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
45345 + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
45346 + func_to_tool_file "$1" func_convert_file_msys_to_w32
45347 + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
45348 + $SED -n -e '
45349 + 1,100{
45350 + / I /{
45351 + s,.*,import,
45352 + p
45353 + q
45354 + }
45355 + }'`
45356 + case $win32_nmres in
45357 + import*) win32_libid_type="x86 archive import";;
45358 + *) win32_libid_type="x86 archive static";;
45359 + esac
45360 + fi
45361 + ;;
45362 + *DLL*)
45363 + win32_libid_type="x86 DLL"
45364 + ;;
45365 + *executable*) # but shell scripts are "executable" too...
45366 + case $win32_fileres in
45367 + *MS\ Windows\ PE\ Intel*)
45368 + win32_libid_type="x86 DLL"
45369 + ;;
45370 + esac
45371 + ;;
45372 + esac
45373 + $ECHO "$win32_libid_type"
45374 +}
45375 +
45376 +# func_cygming_dll_for_implib ARG
45377 +#
45378 +# Platform-specific function to extract the
45379 +# name of the DLL associated with the specified
45380 +# import library ARG.
45381 +# Invoked by eval'ing the libtool variable
45382 +# $sharedlib_from_linklib_cmd
45383 +# Result is available in the variable
45384 +# $sharedlib_from_linklib_result
45385 +func_cygming_dll_for_implib ()
45386 +{
45387 + $opt_debug
45388 + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
45389 +}
45390 +
45391 +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
45392 +#
45393 +# The is the core of a fallback implementation of a
45394 +# platform-specific function to extract the name of the
45395 +# DLL associated with the specified import library LIBNAME.
45396 +#
45397 +# SECTION_NAME is either .idata$6 or .idata$7, depending
45398 +# on the platform and compiler that created the implib.
45399 +#
45400 +# Echos the name of the DLL associated with the
45401 +# specified import library.
45402 +func_cygming_dll_for_implib_fallback_core ()
45403 +{
45404 + $opt_debug
45405 + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
45406 + $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
45407 + $SED '/^Contents of section '"$match_literal"':/{
45408 + # Place marker at beginning of archive member dllname section
45409 + s/.*/====MARK====/
45410 + p
45411 + d
45412 + }
45413 + # These lines can sometimes be longer than 43 characters, but
45414 + # are always uninteresting
45415 + /:[ ]*file format pe[i]\{,1\}-/d
45416 + /^In archive [^:]*:/d
45417 + # Ensure marker is printed
45418 + /^====MARK====/p
45419 + # Remove all lines with less than 43 characters
45420 + /^.\{43\}/!d
45421 + # From remaining lines, remove first 43 characters
45422 + s/^.\{43\}//' |
45423 + $SED -n '
45424 + # Join marker and all lines until next marker into a single line
45425 + /^====MARK====/ b para
45426 + H
45427 + $ b para
45428 + b
45429 + :para
45430 + x
45431 + s/\n//g
45432 + # Remove the marker
45433 + s/^====MARK====//
45434 + # Remove trailing dots and whitespace
45435 + s/[\. \t]*$//
45436 + # Print
45437 + /./p' |
45438 + # we now have a list, one entry per line, of the stringified
45439 + # contents of the appropriate section of all members of the
45440 + # archive which possess that section. Heuristic: eliminate
45441 + # all those which have a first or second character that is
45442 + # a '.' (that is, objdump's representation of an unprintable
45443 + # character.) This should work for all archives with less than
45444 + # 0x302f exports -- but will fail for DLLs whose name actually
45445 + # begins with a literal '.' or a single character followed by
45446 + # a '.'.
45447 + #
45448 + # Of those that remain, print the first one.
45449 + $SED -e '/^\./d;/^.\./d;q'
45450 +}
45451 +
45452 +# func_cygming_gnu_implib_p ARG
45453 +# This predicate returns with zero status (TRUE) if
45454 +# ARG is a GNU/binutils-style import library. Returns
45455 +# with nonzero status (FALSE) otherwise.
45456 +func_cygming_gnu_implib_p ()
45457 +{
45458 + $opt_debug
45459 + func_to_tool_file "$1" func_convert_file_msys_to_w32
45460 + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
45461 + test -n "$func_cygming_gnu_implib_tmp"
45462 +}
45463 +
45464 +# func_cygming_ms_implib_p ARG
45465 +# This predicate returns with zero status (TRUE) if
45466 +# ARG is an MS-style import library. Returns
45467 +# with nonzero status (FALSE) otherwise.
45468 +func_cygming_ms_implib_p ()
45469 +{
45470 + $opt_debug
45471 + func_to_tool_file "$1" func_convert_file_msys_to_w32
45472 + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
45473 + test -n "$func_cygming_ms_implib_tmp"
45474 +}
45475 +
45476 +# func_cygming_dll_for_implib_fallback ARG
45477 +# Platform-specific function to extract the
45478 +# name of the DLL associated with the specified
45479 +# import library ARG.
45480 +#
45481 +# This fallback implementation is for use when $DLLTOOL
45482 +# does not support the --identify-strict option.
45483 +# Invoked by eval'ing the libtool variable
45484 +# $sharedlib_from_linklib_cmd
45485 +# Result is available in the variable
45486 +# $sharedlib_from_linklib_result
45487 +func_cygming_dll_for_implib_fallback ()
45488 +{
45489 + $opt_debug
45490 + if func_cygming_gnu_implib_p "$1" ; then
45491 + # binutils import library
45492 + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
45493 + elif func_cygming_ms_implib_p "$1" ; then
45494 + # ms-generated import library
45495 + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
45496 + else
45497 + # unknown
45498 + sharedlib_from_linklib_result=""
45499 + fi
45500 +}
45501 +
45502 +
45503 +# func_extract_an_archive dir oldlib
45504 +func_extract_an_archive ()
45505 +{
45506 + $opt_debug
45507 + f_ex_an_ar_dir="$1"; shift
45508 + f_ex_an_ar_oldlib="$1"
45509 + if test "$lock_old_archive_extraction" = yes; then
45510 + lockfile=$f_ex_an_ar_oldlib.lock
45511 + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
45512 + func_echo "Waiting for $lockfile to be removed"
45513 + sleep 2
45514 done
45515 + fi
45516 + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
45517 + 'stat=$?; rm -f "$lockfile"; exit $stat'
45518 + if test "$lock_old_archive_extraction" = yes; then
45519 + $opt_dry_run || rm -f "$lockfile"
45520 + fi
45521 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
45522 + :
45523 + else
45524 + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
45525 + fi
45526 +}
45527
45528 - # Make sure dlprefiles contains only unique files
45529 - old_dlprefiles="$dlprefiles"
45530 - dlprefiles=
45531 - for lib in $old_dlprefiles; do
45532 - case "$dlprefiles " in
45533 - *" $lib "*) ;;
45534 - *) dlprefiles="$dlprefiles $lib" ;;
45535 +
45536 +# func_extract_archives gentop oldlib ...
45537 +func_extract_archives ()
45538 +{
45539 + $opt_debug
45540 + my_gentop="$1"; shift
45541 + my_oldlibs=${1+"$@"}
45542 + my_oldobjs=""
45543 + my_xlib=""
45544 + my_xabs=""
45545 + my_xdir=""
45546 +
45547 + for my_xlib in $my_oldlibs; do
45548 + # Extract the objects.
45549 + case $my_xlib in
45550 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
45551 + *) my_xabs=`pwd`"/$my_xlib" ;;
45552 + esac
45553 + func_basename "$my_xlib"
45554 + my_xlib="$func_basename_result"
45555 + my_xlib_u=$my_xlib
45556 + while :; do
45557 + case " $extracted_archives " in
45558 + *" $my_xlib_u "*)
45559 + func_arith $extracted_serial + 1
45560 + extracted_serial=$func_arith_result
45561 + my_xlib_u=lt$extracted_serial-$my_xlib ;;
45562 + *) break ;;
45563 esac
45564 done
45565 + extracted_archives="$extracted_archives $my_xlib_u"
45566 + my_xdir="$my_gentop/$my_xlib_u"
45567
45568 - if test "$build_libtool_libs" = yes; then
45569 - if test -n "$rpath"; then
45570 - case $host in
45571 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
45572 - # these systems don't actually have a c library (as such)!
45573 - ;;
45574 - *-*-rhapsody* | *-*-darwin1.[012])
45575 - # Rhapsody C library is in the System framework
45576 - deplibs="$deplibs -framework System"
45577 - ;;
45578 - *-*-netbsd*)
45579 - # Don't link with libc until the a.out ld.so is fixed.
45580 - ;;
45581 - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
45582 - # Do not include libc due to us having libc/libc_r.
45583 - ;;
45584 - *-*-sco3.2v5* | *-*-sco5v6*)
45585 - # Causes problems with __ctype
45586 - ;;
45587 - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
45588 - # Compiler inserts libc in the correct place for threads to work
45589 - ;;
45590 - *)
45591 - # Add libc to deplibs on all other systems if necessary.
45592 - if test "$build_libtool_need_lc" = "yes"; then
45593 - deplibs="$deplibs -lc"
45594 - fi
45595 - ;;
45596 - esac
45597 - fi
45598 + func_mkdir_p "$my_xdir"
45599
45600 - # Transform deplibs into only deplibs that can be linked in shared.
45601 - name_save=$name
45602 - libname_save=$libname
45603 - release_save=$release
45604 - versuffix_save=$versuffix
45605 - major_save=$major
45606 - # I'm not sure if I'm treating the release correctly. I think
45607 - # release should show up in the -l (ie -lgmp5) so we don't want to
45608 - # add it in twice. Is that correct?
45609 - release=""
45610 - versuffix=""
45611 - major=""
45612 - newdeplibs=
45613 - droppeddeps=no
45614 - case $deplibs_check_method in
45615 - pass_all)
45616 - # Don't check for shared/static. Everything works.
45617 - # This might be a little naive. We might want to check
45618 - # whether the library exists or not. But this is on
45619 - # osf3 & osf4 and I'm not really sure... Just
45620 - # implementing what was already the behavior.
45621 - newdeplibs=$deplibs
45622 - ;;
45623 - test_compile)
45624 - # This code stresses the "libraries are programs" paradigm to its
45625 - # limits. Maybe even breaks it. We compile a program, linking it
45626 - # against the deplibs as a proxy for the library. Then we can check
45627 - # whether they linked in statically or dynamically with ldd.
45628 - $rm conftest.c
45629 - cat > conftest.c <<EOF
45630 - int main() { return 0; }
45631 -EOF
45632 - $rm conftest
45633 - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
45634 - ldd_output=`ldd conftest`
45635 - for i in $deplibs; do
45636 - name=`expr $i : '-l\(.*\)'`
45637 - # If $name is empty we are operating on a -L argument.
45638 - if test "$name" != "" && test "$name" != "0"; then
45639 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
45640 - case " $predeps $postdeps " in
45641 - *" $i "*)
45642 - newdeplibs="$newdeplibs $i"
45643 - i=""
45644 - ;;
45645 - esac
45646 - fi
45647 - if test -n "$i" ; then
45648 - libname=`eval \\$echo \"$libname_spec\"`
45649 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
45650 - set dummy $deplib_matches
45651 - deplib_match=$2
45652 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
45653 - newdeplibs="$newdeplibs $i"
45654 - else
45655 - droppeddeps=yes
45656 - $echo
45657 - $echo "*** Warning: dynamic linker does not accept needed library $i."
45658 - $echo "*** I have the capability to make that library automatically link in when"
45659 - $echo "*** you link to this library. But I can only do this if you have a"
45660 - $echo "*** shared version of the library, which I believe you do not have"
45661 - $echo "*** because a test_compile did reveal that the linker did not use it for"
45662 - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
45663 - fi
45664 - fi
45665 - else
45666 - newdeplibs="$newdeplibs $i"
45667 - fi
45668 - done
45669 + case $host in
45670 + *-darwin*)
45671 + func_verbose "Extracting $my_xabs"
45672 + # Do not bother doing anything if just a dry run
45673 + $opt_dry_run || {
45674 + darwin_orig_dir=`pwd`
45675 + cd $my_xdir || exit $?
45676 + darwin_archive=$my_xabs
45677 + darwin_curdir=`pwd`
45678 + darwin_base_archive=`basename "$darwin_archive"`
45679 + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
45680 + if test -n "$darwin_arches"; then
45681 + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
45682 + darwin_arch=
45683 + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
45684 + for darwin_arch in $darwin_arches ; do
45685 + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
45686 + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
45687 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
45688 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
45689 + cd "$darwin_curdir"
45690 + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
45691 + done # $darwin_arches
45692 + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
45693 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
45694 + darwin_file=
45695 + darwin_files=
45696 + for darwin_file in $darwin_filelist; do
45697 + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
45698 + $LIPO -create -output "$darwin_file" $darwin_files
45699 + done # $darwin_filelist
45700 + $RM -rf unfat-$$
45701 + cd "$darwin_orig_dir"
45702 else
45703 - # Error occurred in the first compile. Let's try to salvage
45704 - # the situation: Compile a separate program for each library.
45705 - for i in $deplibs; do
45706 - name=`expr $i : '-l\(.*\)'`
45707 - # If $name is empty we are operating on a -L argument.
45708 - if test "$name" != "" && test "$name" != "0"; then
45709 - $rm conftest
45710 - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
45711 - ldd_output=`ldd conftest`
45712 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
45713 - case " $predeps $postdeps " in
45714 - *" $i "*)
45715 - newdeplibs="$newdeplibs $i"
45716 - i=""
45717 - ;;
45718 - esac
45719 - fi
45720 - if test -n "$i" ; then
45721 - libname=`eval \\$echo \"$libname_spec\"`
45722 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
45723 - set dummy $deplib_matches
45724 - deplib_match=$2
45725 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
45726 - newdeplibs="$newdeplibs $i"
45727 - else
45728 - droppeddeps=yes
45729 - $echo
45730 - $echo "*** Warning: dynamic linker does not accept needed library $i."
45731 - $echo "*** I have the capability to make that library automatically link in when"
45732 - $echo "*** you link to this library. But I can only do this if you have a"
45733 - $echo "*** shared version of the library, which you do not appear to have"
45734 - $echo "*** because a test_compile did reveal that the linker did not use this one"
45735 - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
45736 - fi
45737 - fi
45738 - else
45739 - droppeddeps=yes
45740 - $echo
45741 - $echo "*** Warning! Library $i is needed by this library but I was not able to"
45742 - $echo "*** make it link in! You will probably need to install it or some"
45743 - $echo "*** library that it depends on before this library will be fully"
45744 - $echo "*** functional. Installing it before continuing would be even better."
45745 - fi
45746 - else
45747 - newdeplibs="$newdeplibs $i"
45748 - fi
45749 - done
45750 - fi
45751 - ;;
45752 - file_magic*)
45753 - set dummy $deplibs_check_method
45754 - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
45755 - for a_deplib in $deplibs; do
45756 - name=`expr $a_deplib : '-l\(.*\)'`
45757 - # If $name is empty we are operating on a -L argument.
45758 - if test "$name" != "" && test "$name" != "0"; then
45759 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
45760 - case " $predeps $postdeps " in
45761 - *" $a_deplib "*)
45762 - newdeplibs="$newdeplibs $a_deplib"
45763 - a_deplib=""
45764 - ;;
45765 - esac
45766 - fi
45767 - if test -n "$a_deplib" ; then
45768 - libname=`eval \\$echo \"$libname_spec\"`
45769 - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
45770 - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
45771 - for potent_lib in $potential_libs; do
45772 - # Follow soft links.
45773 - if ls -lLd "$potent_lib" 2>/dev/null \
45774 - | grep " -> " >/dev/null; then
45775 - continue
45776 - fi
45777 - # The statement above tries to avoid entering an
45778 - # endless loop below, in case of cyclic links.
45779 - # We might still enter an endless loop, since a link
45780 - # loop can be closed while we follow links,
45781 - # but so what?
45782 - potlib="$potent_lib"
45783 - while test -h "$potlib" 2>/dev/null; do
45784 - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
45785 - case $potliblink in
45786 - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
45787 - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
45788 - esac
45789 - done
45790 - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
45791 - | ${SED} 10q \
45792 - | $EGREP "$file_magic_regex" > /dev/null; then
45793 - newdeplibs="$newdeplibs $a_deplib"
45794 - a_deplib=""
45795 - break 2
45796 - fi
45797 - done
45798 - done
45799 - fi
45800 - if test -n "$a_deplib" ; then
45801 - droppeddeps=yes
45802 - $echo
45803 - $echo "*** Warning: linker path does not have real file for library $a_deplib."
45804 - $echo "*** I have the capability to make that library automatically link in when"
45805 - $echo "*** you link to this library. But I can only do this if you have a"
45806 - $echo "*** shared version of the library, which you do not appear to have"
45807 - $echo "*** because I did check the linker path looking for a file starting"
45808 - if test -z "$potlib" ; then
45809 - $echo "*** with $libname but no candidates were found. (...for file magic test)"
45810 - else
45811 - $echo "*** with $libname and none of the candidates passed a file format test"
45812 - $echo "*** using a file magic. Last file checked: $potlib"
45813 - fi
45814 - fi
45815 - else
45816 - # Add a -L argument.
45817 - newdeplibs="$newdeplibs $a_deplib"
45818 - fi
45819 - done # Gone through all deplibs.
45820 - ;;
45821 - match_pattern*)
45822 - set dummy $deplibs_check_method
45823 - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
45824 - for a_deplib in $deplibs; do
45825 - name=`expr $a_deplib : '-l\(.*\)'`
45826 - # If $name is empty we are operating on a -L argument.
45827 - if test -n "$name" && test "$name" != "0"; then
45828 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
45829 - case " $predeps $postdeps " in
45830 - *" $a_deplib "*)
45831 - newdeplibs="$newdeplibs $a_deplib"
45832 - a_deplib=""
45833 - ;;
45834 - esac
45835 - fi
45836 - if test -n "$a_deplib" ; then
45837 - libname=`eval \\$echo \"$libname_spec\"`
45838 - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
45839 - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
45840 - for potent_lib in $potential_libs; do
45841 - potlib="$potent_lib" # see symlink-check above in file_magic test
45842 - if eval $echo \"$potent_lib\" 2>/dev/null \
45843 - | ${SED} 10q \
45844 - | $EGREP "$match_pattern_regex" > /dev/null; then
45845 - newdeplibs="$newdeplibs $a_deplib"
45846 - a_deplib=""
45847 - break 2
45848 - fi
45849 - done
45850 - done
45851 - fi
45852 - if test -n "$a_deplib" ; then
45853 - droppeddeps=yes
45854 - $echo
45855 - $echo "*** Warning: linker path does not have real file for library $a_deplib."
45856 - $echo "*** I have the capability to make that library automatically link in when"
45857 - $echo "*** you link to this library. But I can only do this if you have a"
45858 - $echo "*** shared version of the library, which you do not appear to have"
45859 - $echo "*** because I did check the linker path looking for a file starting"
45860 - if test -z "$potlib" ; then
45861 - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
45862 - else
45863 - $echo "*** with $libname and none of the candidates passed a file format test"
45864 - $echo "*** using a regex pattern. Last file checked: $potlib"
45865 - fi
45866 - fi
45867 - else
45868 - # Add a -L argument.
45869 - newdeplibs="$newdeplibs $a_deplib"
45870 - fi
45871 - done # Gone through all deplibs.
45872 - ;;
45873 - none | unknown | *)
45874 - newdeplibs=""
45875 - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
45876 - -e 's/ -[LR][^ ]*//g'`
45877 - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
45878 - for i in $predeps $postdeps ; do
45879 - # can't use Xsed below, because $i might contain '/'
45880 - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
45881 - done
45882 - fi
45883 - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
45884 - | grep . >/dev/null; then
45885 - $echo
45886 - if test "X$deplibs_check_method" = "Xnone"; then
45887 - $echo "*** Warning: inter-library dependencies are not supported in this platform."
45888 - else
45889 - $echo "*** Warning: inter-library dependencies are not known to be supported."
45890 - fi
45891 - $echo "*** All declared inter-library dependencies are being dropped."
45892 - droppeddeps=yes
45893 - fi
45894 - ;;
45895 - esac
45896 - versuffix=$versuffix_save
45897 - major=$major_save
45898 - release=$release_save
45899 - libname=$libname_save
45900 - name=$name_save
45901 + cd $darwin_orig_dir
45902 + func_extract_an_archive "$my_xdir" "$my_xabs"
45903 + fi # $darwin_arches
45904 + } # !$opt_dry_run
45905 + ;;
45906 + *)
45907 + func_extract_an_archive "$my_xdir" "$my_xabs"
45908 + ;;
45909 + esac
45910 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
45911 + done
45912
45913 - case $host in
45914 - *-*-rhapsody* | *-*-darwin1.[012])
45915 - # On Rhapsody replace the C library is the System framework
45916 - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
45917 - ;;
45918 - esac
45919 + func_extract_archives_result="$my_oldobjs"
45920 +}
45921
45922 - if test "$droppeddeps" = yes; then
45923 - if test "$module" = yes; then
45924 - $echo
45925 - $echo "*** Warning: libtool could not satisfy all declared inter-library"
45926 - $echo "*** dependencies of module $libname. Therefore, libtool will create"
45927 - $echo "*** a static module, that should work as long as the dlopening"
45928 - $echo "*** application is linked with the -dlopen flag."
45929 - if test -z "$global_symbol_pipe"; then
45930 - $echo
45931 - $echo "*** However, this would only work if libtool was able to extract symbol"
45932 - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
45933 - $echo "*** not find such a program. So, this module is probably useless."
45934 - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
45935 - fi
45936 - if test "$build_old_libs" = no; then
45937 - oldlibs="$output_objdir/$libname.$libext"
45938 - build_libtool_libs=module
45939 - build_old_libs=yes
45940 - else
45941 - build_libtool_libs=no
45942 - fi
45943 - else
45944 - $echo "*** The inter-library dependencies that have been dropped here will be"
45945 - $echo "*** automatically added whenever a program is linked with this library"
45946 - $echo "*** or is declared to -dlopen it."
45947
45948 - if test "$allow_undefined" = no; then
45949 - $echo
45950 - $echo "*** Since this library must not contain undefined symbols,"
45951 - $echo "*** because either the platform does not support them or"
45952 - $echo "*** it was explicitly requested with -no-undefined,"
45953 - $echo "*** libtool will only create a static version of it."
45954 - if test "$build_old_libs" = no; then
45955 - oldlibs="$output_objdir/$libname.$libext"
45956 - build_libtool_libs=module
45957 - build_old_libs=yes
45958 - else
45959 - build_libtool_libs=no
45960 - fi
45961 - fi
45962 - fi
45963 - fi
45964 - # Done checking deplibs!
45965 - deplibs=$newdeplibs
45966 - fi
45967 +# func_emit_wrapper [arg=no]
45968 +#
45969 +# Emit a libtool wrapper script on stdout.
45970 +# Don't directly open a file because we may want to
45971 +# incorporate the script contents within a cygwin/mingw
45972 +# wrapper executable. Must ONLY be called from within
45973 +# func_mode_link because it depends on a number of variables
45974 +# set therein.
45975 +#
45976 +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
45977 +# variable will take. If 'yes', then the emitted script
45978 +# will assume that the directory in which it is stored is
45979 +# the $objdir directory. This is a cygwin/mingw-specific
45980 +# behavior.
45981 +func_emit_wrapper ()
45982 +{
45983 + func_emit_wrapper_arg1=${1-no}
45984
45985 + $ECHO "\
45986 +#! $SHELL
45987
45988 - # move library search paths that coincide with paths to not yet
45989 - # installed libraries to the beginning of the library search list
45990 - new_libs=
45991 - for path in $notinst_path; do
45992 - case " $new_libs " in
45993 - *" -L$path/$objdir "*) ;;
45994 - *)
45995 - case " $deplibs " in
45996 - *" -L$path/$objdir "*)
45997 - new_libs="$new_libs -L$path/$objdir" ;;
45998 - esac
45999 - ;;
46000 - esac
46001 - done
46002 - for deplib in $deplibs; do
46003 - case $deplib in
46004 - -L*)
46005 - case " $new_libs " in
46006 - *" $deplib "*) ;;
46007 - *) new_libs="$new_libs $deplib" ;;
46008 - esac
46009 - ;;
46010 - *) new_libs="$new_libs $deplib" ;;
46011 - esac
46012 - done
46013 - deplibs="$new_libs"
46014 +# $output - temporary wrapper script for $objdir/$outputname
46015 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
46016 +#
46017 +# The $output program cannot be directly executed until all the libtool
46018 +# libraries that it depends on are installed.
46019 +#
46020 +# This wrapper script should never be moved out of the build directory.
46021 +# If it is, it will not operate correctly.
46022
46023 +# Sed substitution that helps us do robust quoting. It backslashifies
46024 +# metacharacters that are still active within double-quoted strings.
46025 +sed_quote_subst='$sed_quote_subst'
46026
46027 - # All the library-specific variables (install_libdir is set above).
46028 - library_names=
46029 - old_library=
46030 - dlname=
46031 +# Be Bourne compatible
46032 +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
46033 + emulate sh
46034 + NULLCMD=:
46035 + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
46036 + # is contrary to our usage. Disable this feature.
46037 + alias -g '\${1+\"\$@\"}'='\"\$@\"'
46038 + setopt NO_GLOB_SUBST
46039 +else
46040 + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
46041 +fi
46042 +BIN_SH=xpg4; export BIN_SH # for Tru64
46043 +DUALCASE=1; export DUALCASE # for MKS sh
46044
46045 - # Test again, we may have decided not to build it any more
46046 - if test "$build_libtool_libs" = yes; then
46047 - if test "$hardcode_into_libs" = yes; then
46048 - # Hardcode the library paths
46049 - hardcode_libdirs=
46050 - dep_rpath=
46051 - rpath="$finalize_rpath"
46052 - test "$mode" != relink && rpath="$compile_rpath$rpath"
46053 - for libdir in $rpath; do
46054 - if test -n "$hardcode_libdir_flag_spec"; then
46055 - if test -n "$hardcode_libdir_separator"; then
46056 - if test -z "$hardcode_libdirs"; then
46057 - hardcode_libdirs="$libdir"
46058 - else
46059 - # Just accumulate the unique libdirs.
46060 - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
46061 - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
46062 - ;;
46063 - *)
46064 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
46065 - ;;
46066 - esac
46067 - fi
46068 - else
46069 - eval flag=\"$hardcode_libdir_flag_spec\"
46070 - dep_rpath="$dep_rpath $flag"
46071 - fi
46072 - elif test -n "$runpath_var"; then
46073 - case "$perm_rpath " in
46074 - *" $libdir "*) ;;
46075 - *) perm_rpath="$perm_rpath $libdir" ;;
46076 - esac
46077 - fi
46078 - done
46079 - # Substitute the hardcoded libdirs into the rpath.
46080 - if test -n "$hardcode_libdir_separator" &&
46081 - test -n "$hardcode_libdirs"; then
46082 - libdir="$hardcode_libdirs"
46083 - if test -n "$hardcode_libdir_flag_spec_ld"; then
46084 - case $archive_cmds in
46085 - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
46086 - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
46087 - esac
46088 - else
46089 - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
46090 - fi
46091 - fi
46092 - if test -n "$runpath_var" && test -n "$perm_rpath"; then
46093 - # We should set the runpath_var.
46094 - rpath=
46095 - for dir in $perm_rpath; do
46096 - rpath="$rpath$dir:"
46097 - done
46098 - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
46099 - fi
46100 - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
46101 - fi
46102 +# The HP-UX ksh and POSIX shell print the target directory to stdout
46103 +# if CDPATH is set.
46104 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46105
46106 - shlibpath="$finalize_shlibpath"
46107 - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
46108 - if test -n "$shlibpath"; then
46109 - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
46110 - fi
46111 +relink_command=\"$relink_command\"
46112
46113 - # Get the real and link names of the library.
46114 - eval shared_ext=\"$shrext_cmds\"
46115 - eval library_names=\"$library_names_spec\"
46116 - set dummy $library_names
46117 - realname="$2"
46118 - shift; shift
46119 +# This environment variable determines our operation mode.
46120 +if test \"\$libtool_install_magic\" = \"$magic\"; then
46121 + # install mode needs the following variables:
46122 + generated_by_libtool_version='$macro_version'
46123 + notinst_deplibs='$notinst_deplibs'
46124 +else
46125 + # When we are sourced in execute mode, \$file and \$ECHO are already set.
46126 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
46127 + file=\"\$0\""
46128
46129 - if test -n "$soname_spec"; then
46130 - eval soname=\"$soname_spec\"
46131 - else
46132 - soname="$realname"
46133 - fi
46134 - if test -z "$dlname"; then
46135 - dlname=$soname
46136 - fi
46137 + qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
46138 + $ECHO "\
46139
46140 - lib="$output_objdir/$realname"
46141 - linknames=
46142 - for link
46143 - do
46144 - linknames="$linknames $link"
46145 - done
46146 +# A function that is used when there is no print builtin or printf.
46147 +func_fallback_echo ()
46148 +{
46149 + eval 'cat <<_LTECHO_EOF
46150 +\$1
46151 +_LTECHO_EOF'
46152 +}
46153 + ECHO=\"$qECHO\"
46154 + fi
46155
46156 - # Use standard objects if they are pic
46157 - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
46158 +# Very basic option parsing. These options are (a) specific to
46159 +# the libtool wrapper, (b) are identical between the wrapper
46160 +# /script/ and the wrapper /executable/ which is used only on
46161 +# windows platforms, and (c) all begin with the string "--lt-"
46162 +# (application programs are unlikely to have options which match
46163 +# this pattern).
46164 +#
46165 +# There are only two supported options: --lt-debug and
46166 +# --lt-dump-script. There is, deliberately, no --lt-help.
46167 +#
46168 +# The first argument to this parsing function should be the
46169 +# script's $0 value, followed by "$@".
46170 +lt_option_debug=
46171 +func_parse_lt_options ()
46172 +{
46173 + lt_script_arg0=\$0
46174 + shift
46175 + for lt_opt
46176 + do
46177 + case \"\$lt_opt\" in
46178 + --lt-debug) lt_option_debug=1 ;;
46179 + --lt-dump-script)
46180 + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
46181 + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
46182 + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
46183 + cat \"\$lt_dump_D/\$lt_dump_F\"
46184 + exit 0
46185 + ;;
46186 + --lt-*)
46187 + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
46188 + exit 1
46189 + ;;
46190 + esac
46191 + done
46192
46193 - # Prepare the list of exported symbols
46194 - if test -z "$export_symbols"; then
46195 - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
46196 - $show "generating symbol list for \`$libname.la'"
46197 - export_symbols="$output_objdir/$libname.exp"
46198 - $run $rm $export_symbols
46199 - cmds=$export_symbols_cmds
46200 - save_ifs="$IFS"; IFS='~'
46201 - for cmd in $cmds; do
46202 - IFS="$save_ifs"
46203 - eval cmd=\"$cmd\"
46204 - if len=`expr "X$cmd" : ".*"` &&
46205 - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
46206 - $show "$cmd"
46207 - $run eval "$cmd" || exit $?
46208 - skipped_export=false
46209 - else
46210 - # The command line is too long to execute in one step.
46211 - $show "using reloadable object file for export list..."
46212 - skipped_export=:
46213 - # Break out early, otherwise skipped_export may be
46214 - # set to false by a later but shorter cmd.
46215 - break
46216 - fi
46217 - done
46218 - IFS="$save_ifs"
46219 - if test -n "$export_symbols_regex"; then
46220 - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
46221 - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
46222 - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
46223 - $run eval '$mv "${export_symbols}T" "$export_symbols"'
46224 - fi
46225 - fi
46226 - fi
46227 + # Print the debug banner immediately:
46228 + if test -n \"\$lt_option_debug\"; then
46229 + echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
46230 + fi
46231 +}
46232
46233 - if test -n "$export_symbols" && test -n "$include_expsyms"; then
46234 - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
46235 - fi
46236 +# Used when --lt-debug. Prints its arguments to stdout
46237 +# (redirection is the responsibility of the caller)
46238 +func_lt_dump_args ()
46239 +{
46240 + lt_dump_args_N=1;
46241 + for lt_arg
46242 + do
46243 + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
46244 + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
46245 + done
46246 +}
46247
46248 - tmp_deplibs=
46249 - for test_deplib in $deplibs; do
46250 - case " $convenience " in
46251 - *" $test_deplib "*) ;;
46252 - *)
46253 - tmp_deplibs="$tmp_deplibs $test_deplib"
46254 - ;;
46255 - esac
46256 - done
46257 - deplibs="$tmp_deplibs"
46258 +# Core function for launching the target application
46259 +func_exec_program_core ()
46260 +{
46261 +"
46262 + case $host in
46263 + # Backslashes separate directories on plain windows
46264 + *-*-mingw | *-*-os2* | *-cegcc*)
46265 + $ECHO "\
46266 + if test -n \"\$lt_option_debug\"; then
46267 + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
46268 + func_lt_dump_args \${1+\"\$@\"} 1>&2
46269 + fi
46270 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
46271 +"
46272 + ;;
46273
46274 - if test -n "$convenience"; then
46275 - if test -n "$whole_archive_flag_spec"; then
46276 - save_libobjs=$libobjs
46277 - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
46278 - else
46279 - gentop="$output_objdir/${outputname}x"
46280 - generated="$generated $gentop"
46281 + *)
46282 + $ECHO "\
46283 + if test -n \"\$lt_option_debug\"; then
46284 + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
46285 + func_lt_dump_args \${1+\"\$@\"} 1>&2
46286 + fi
46287 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
46288 +"
46289 + ;;
46290 + esac
46291 + $ECHO "\
46292 + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
46293 + exit 1
46294 +}
46295
46296 - func_extract_archives $gentop $convenience
46297 - libobjs="$libobjs $func_extract_archives_result"
46298 - fi
46299 - fi
46300 -
46301 - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
46302 - eval flag=\"$thread_safe_flag_spec\"
46303 - linker_flags="$linker_flags $flag"
46304 - fi
46305 +# A function to encapsulate launching the target application
46306 +# Strips options in the --lt-* namespace from \$@ and
46307 +# launches target application with the remaining arguments.
46308 +func_exec_program ()
46309 +{
46310 + case \" \$* \" in
46311 + *\\ --lt-*)
46312 + for lt_wr_arg
46313 + do
46314 + case \$lt_wr_arg in
46315 + --lt-*) ;;
46316 + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
46317 + esac
46318 + shift
46319 + done ;;
46320 + esac
46321 + func_exec_program_core \${1+\"\$@\"}
46322 +}
46323
46324 - # Make a backup of the uninstalled library when relinking
46325 - if test "$mode" = relink; then
46326 - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
46327 - fi
46328 + # Parse options
46329 + func_parse_lt_options \"\$0\" \${1+\"\$@\"}
46330
46331 - # Do each of the archive commands.
46332 - if test "$module" = yes && test -n "$module_cmds" ; then
46333 - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
46334 - eval test_cmds=\"$module_expsym_cmds\"
46335 - cmds=$module_expsym_cmds
46336 - else
46337 - eval test_cmds=\"$module_cmds\"
46338 - cmds=$module_cmds
46339 - fi
46340 - else
46341 - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
46342 - eval test_cmds=\"$archive_expsym_cmds\"
46343 - cmds=$archive_expsym_cmds
46344 - else
46345 - eval test_cmds=\"$archive_cmds\"
46346 - cmds=$archive_cmds
46347 - fi
46348 - fi
46349 + # Find the directory that this script lives in.
46350 + thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
46351 + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
46352
46353 - if test "X$skipped_export" != "X:" &&
46354 - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
46355 - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
46356 - :
46357 - else
46358 - # The command line is too long to link in one step, link piecewise.
46359 - $echo "creating reloadable object files..."
46360 + # Follow symbolic links until we get to the real thisdir.
46361 + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
46362 + while test -n \"\$file\"; do
46363 + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
46364
46365 - # Save the value of $output and $libobjs because we want to
46366 - # use them later. If we have whole_archive_flag_spec, we
46367 - # want to use save_libobjs as it was before
46368 - # whole_archive_flag_spec was expanded, because we can't
46369 - # assume the linker understands whole_archive_flag_spec.
46370 - # This may have to be revisited, in case too many
46371 - # convenience libraries get linked in and end up exceeding
46372 - # the spec.
46373 - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
46374 - save_libobjs=$libobjs
46375 - fi
46376 - save_output=$output
46377 - output_la=`$echo "X$output" | $Xsed -e "$basename"`
46378 + # If there was a directory component, then change thisdir.
46379 + if test \"x\$destdir\" != \"x\$file\"; then
46380 + case \"\$destdir\" in
46381 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
46382 + *) thisdir=\"\$thisdir/\$destdir\" ;;
46383 + esac
46384 + fi
46385
46386 - # Clear the reloadable object creation command queue and
46387 - # initialize k to one.
46388 - test_cmds=
46389 - concat_cmds=
46390 - objlist=
46391 - delfiles=
46392 - last_robj=
46393 - k=1
46394 - output=$output_objdir/$output_la-${k}.$objext
46395 - # Loop over the list of objects to be linked.
46396 - for obj in $save_libobjs
46397 - do
46398 - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
46399 - if test "X$objlist" = X ||
46400 - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
46401 - test "$len" -le "$max_cmd_len"; }; then
46402 - objlist="$objlist $obj"
46403 - else
46404 - # The command $test_cmds is almost too long, add a
46405 - # command to the queue.
46406 - if test "$k" -eq 1 ; then
46407 - # The first file doesn't have a previous command to add.
46408 - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
46409 - else
46410 - # All subsequent reloadable object files will link in
46411 - # the last one created.
46412 - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
46413 - fi
46414 - last_robj=$output_objdir/$output_la-${k}.$objext
46415 - k=`expr $k + 1`
46416 - output=$output_objdir/$output_la-${k}.$objext
46417 - objlist=$obj
46418 - len=1
46419 - fi
46420 - done
46421 - # Handle the remaining objects by creating one last
46422 - # reloadable object file. All subsequent reloadable object
46423 - # files will link in the last one created.
46424 - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
46425 - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
46426 -
46427 - if ${skipped_export-false}; then
46428 - $show "generating symbol list for \`$libname.la'"
46429 - export_symbols="$output_objdir/$libname.exp"
46430 - $run $rm $export_symbols
46431 - libobjs=$output
46432 - # Append the command to create the export file.
46433 - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
46434 - fi
46435 -
46436 - # Set up a command to remove the reloadable object files
46437 - # after they are used.
46438 - i=0
46439 - while test "$i" -lt "$k"
46440 - do
46441 - i=`expr $i + 1`
46442 - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
46443 - done
46444 + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
46445 + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
46446 + done
46447
46448 - $echo "creating a temporary reloadable object file: $output"
46449 + # Usually 'no', except on cygwin/mingw when embedded into
46450 + # the cwrapper.
46451 + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
46452 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
46453 + # special case for '.'
46454 + if test \"\$thisdir\" = \".\"; then
46455 + thisdir=\`pwd\`
46456 + fi
46457 + # remove .libs from thisdir
46458 + case \"\$thisdir\" in
46459 + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
46460 + $objdir ) thisdir=. ;;
46461 + esac
46462 + fi
46463
46464 - # Loop through the commands generated above and execute them.
46465 - save_ifs="$IFS"; IFS='~'
46466 - for cmd in $concat_cmds; do
46467 - IFS="$save_ifs"
46468 - $show "$cmd"
46469 - $run eval "$cmd" || exit $?
46470 - done
46471 - IFS="$save_ifs"
46472 + # Try to get the absolute directory name.
46473 + absdir=\`cd \"\$thisdir\" && pwd\`
46474 + test -n \"\$absdir\" && thisdir=\"\$absdir\"
46475 +"
46476
46477 - libobjs=$output
46478 - # Restore the value of output.
46479 - output=$save_output
46480 + if test "$fast_install" = yes; then
46481 + $ECHO "\
46482 + program=lt-'$outputname'$exeext
46483 + progdir=\"\$thisdir/$objdir\"
46484
46485 - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
46486 - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
46487 - fi
46488 - # Expand the library linking commands again to reset the
46489 - # value of $libobjs for piecewise linking.
46490 + if test ! -f \"\$progdir/\$program\" ||
46491 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
46492 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
46493
46494 - # Do each of the archive commands.
46495 - if test "$module" = yes && test -n "$module_cmds" ; then
46496 - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
46497 - cmds=$module_expsym_cmds
46498 - else
46499 - cmds=$module_cmds
46500 - fi
46501 - else
46502 - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
46503 - cmds=$archive_expsym_cmds
46504 - else
46505 - cmds=$archive_cmds
46506 - fi
46507 - fi
46508 + file=\"\$\$-\$program\"
46509
46510 - # Append the command to remove the reloadable object files
46511 - # to the just-reset $cmds.
46512 - eval cmds=\"\$cmds~\$rm $delfiles\"
46513 - fi
46514 - save_ifs="$IFS"; IFS='~'
46515 - for cmd in $cmds; do
46516 - IFS="$save_ifs"
46517 - eval cmd=\"$cmd\"
46518 - $show "$cmd"
46519 - $run eval "$cmd" || {
46520 - lt_exit=$?
46521 + if test ! -d \"\$progdir\"; then
46522 + $MKDIR \"\$progdir\"
46523 + else
46524 + $RM \"\$progdir/\$file\"
46525 + fi"
46526
46527 - # Restore the uninstalled library and exit
46528 - if test "$mode" = relink; then
46529 - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
46530 - fi
46531 + $ECHO "\
46532
46533 - exit $lt_exit
46534 - }
46535 - done
46536 - IFS="$save_ifs"
46537 + # relink executable if necessary
46538 + if test -n \"\$relink_command\"; then
46539 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
46540 + else
46541 + $ECHO \"\$relink_command_output\" >&2
46542 + $RM \"\$progdir/\$file\"
46543 + exit 1
46544 + fi
46545 + fi
46546
46547 - # Restore the uninstalled library and exit
46548 - if test "$mode" = relink; then
46549 - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
46550 + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
46551 + { $RM \"\$progdir/\$program\";
46552 + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
46553 + $RM \"\$progdir/\$file\"
46554 + fi"
46555 + else
46556 + $ECHO "\
46557 + program='$outputname'
46558 + progdir=\"\$thisdir/$objdir\"
46559 +"
46560 + fi
46561
46562 - if test -n "$convenience"; then
46563 - if test -z "$whole_archive_flag_spec"; then
46564 - $show "${rm}r $gentop"
46565 - $run ${rm}r "$gentop"
46566 - fi
46567 - fi
46568 + $ECHO "\
46569
46570 - exit $EXIT_SUCCESS
46571 + if test -f \"\$progdir/\$program\"; then"
46572 +
46573 + # fixup the dll searchpath if we need to.
46574 + #
46575 + # Fix the DLL searchpath if we need to. Do this before prepending
46576 + # to shlibpath, because on Windows, both are PATH and uninstalled
46577 + # libraries must come first.
46578 + if test -n "$dllsearchpath"; then
46579 + $ECHO "\
46580 + # Add the dll search path components to the executable PATH
46581 + PATH=$dllsearchpath:\$PATH
46582 +"
46583 fi
46584
46585 - # Create links to the real library.
46586 - for linkname in $linknames; do
46587 - if test "$realname" != "$linkname"; then
46588 - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
46589 - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
46590 - fi
46591 - done
46592 + # Export our shlibpath_var if we have one.
46593 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
46594 + $ECHO "\
46595 + # Add our own library path to $shlibpath_var
46596 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
46597
46598 - # If -module or -export-dynamic was specified, set the dlname.
46599 - if test "$module" = yes || test "$export_dynamic" = yes; then
46600 - # On all known operating systems, these are identical.
46601 - dlname="$soname"
46602 + # Some systems cannot cope with colon-terminated $shlibpath_var
46603 + # The second colon is a workaround for a bug in BeOS R4 sed
46604 + $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
46605 +
46606 + export $shlibpath_var
46607 +"
46608 fi
46609 - fi
46610 - ;;
46611
46612 - obj)
46613 - case " $deplibs" in
46614 - *\ -l* | *\ -L*)
46615 - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
46616 - esac
46617 + $ECHO "\
46618 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
46619 + # Run the actual program with our arguments.
46620 + func_exec_program \${1+\"\$@\"}
46621 + fi
46622 + else
46623 + # The program doesn't exist.
46624 + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
46625 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
46626 + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
46627 + exit 1
46628 + fi
46629 +fi\
46630 +"
46631 +}
46632
46633 - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
46634 - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
46635 - fi
46636
46637 - if test -n "$rpath"; then
46638 - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
46639 - fi
46640 +# func_emit_cwrapperexe_src
46641 +# emit the source code for a wrapper executable on stdout
46642 +# Must ONLY be called from within func_mode_link because
46643 +# it depends on a number of variable set therein.
46644 +func_emit_cwrapperexe_src ()
46645 +{
46646 + cat <<EOF
46647
46648 - if test -n "$xrpath"; then
46649 - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
46650 - fi
46651 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
46652 + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
46653
46654 - if test -n "$vinfo"; then
46655 - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
46656 - fi
46657 + The $output program cannot be directly executed until all the libtool
46658 + libraries that it depends on are installed.
46659
46660 - if test -n "$release"; then
46661 - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
46662 - fi
46663 + This wrapper executable should never be moved out of the build directory.
46664 + If it is, it will not operate correctly.
46665 +*/
46666 +EOF
46667 + cat <<"EOF"
46668 +#ifdef _MSC_VER
46669 +# define _CRT_SECURE_NO_DEPRECATE 1
46670 +#endif
46671 +#include <stdio.h>
46672 +#include <stdlib.h>
46673 +#ifdef _MSC_VER
46674 +# include <direct.h>
46675 +# include <process.h>
46676 +# include <io.h>
46677 +#else
46678 +# include <unistd.h>
46679 +# include <stdint.h>
46680 +# ifdef __CYGWIN__
46681 +# include <io.h>
46682 +# endif
46683 +#endif
46684 +#include <malloc.h>
46685 +#include <stdarg.h>
46686 +#include <assert.h>
46687 +#include <string.h>
46688 +#include <ctype.h>
46689 +#include <errno.h>
46690 +#include <fcntl.h>
46691 +#include <sys/stat.h>
46692
46693 - case $output in
46694 - *.lo)
46695 - if test -n "$objs$old_deplibs"; then
46696 - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
46697 - exit $EXIT_FAILURE
46698 - fi
46699 - libobj="$output"
46700 - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
46701 - ;;
46702 - *)
46703 - libobj=
46704 - obj="$output"
46705 - ;;
46706 - esac
46707 +/* declarations of non-ANSI functions */
46708 +#if defined(__MINGW32__)
46709 +# ifdef __STRICT_ANSI__
46710 +int _putenv (const char *);
46711 +# endif
46712 +#elif defined(__CYGWIN__)
46713 +# ifdef __STRICT_ANSI__
46714 +char *realpath (const char *, char *);
46715 +int putenv (char *);
46716 +int setenv (const char *, const char *, int);
46717 +# endif
46718 +/* #elif defined (other platforms) ... */
46719 +#endif
46720
46721 - # Delete the old objects.
46722 - $run $rm $obj $libobj
46723 +/* portability defines, excluding path handling macros */
46724 +#if defined(_MSC_VER)
46725 +# define setmode _setmode
46726 +# define stat _stat
46727 +# define chmod _chmod
46728 +# define getcwd _getcwd
46729 +# define putenv _putenv
46730 +# define S_IXUSR _S_IEXEC
46731 +# ifndef _INTPTR_T_DEFINED
46732 +# define _INTPTR_T_DEFINED
46733 +# define intptr_t int
46734 +# endif
46735 +#elif defined(__MINGW32__)
46736 +# define setmode _setmode
46737 +# define stat _stat
46738 +# define chmod _chmod
46739 +# define getcwd _getcwd
46740 +# define putenv _putenv
46741 +#elif defined(__CYGWIN__)
46742 +# define HAVE_SETENV
46743 +# define FOPEN_WB "wb"
46744 +/* #elif defined (other platforms) ... */
46745 +#endif
46746
46747 - # Objects from convenience libraries. This assumes
46748 - # single-version convenience libraries. Whenever we create
46749 - # different ones for PIC/non-PIC, this we'll have to duplicate
46750 - # the extraction.
46751 - reload_conv_objs=
46752 - gentop=
46753 - # reload_cmds runs $LD directly, so let us get rid of
46754 - # -Wl from whole_archive_flag_spec and hope we can get by with
46755 - # turning comma into space..
46756 - wl=
46757 +#if defined(PATH_MAX)
46758 +# define LT_PATHMAX PATH_MAX
46759 +#elif defined(MAXPATHLEN)
46760 +# define LT_PATHMAX MAXPATHLEN
46761 +#else
46762 +# define LT_PATHMAX 1024
46763 +#endif
46764
46765 - if test -n "$convenience"; then
46766 - if test -n "$whole_archive_flag_spec"; then
46767 - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
46768 - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
46769 - else
46770 - gentop="$output_objdir/${obj}x"
46771 - generated="$generated $gentop"
46772 +#ifndef S_IXOTH
46773 +# define S_IXOTH 0
46774 +#endif
46775 +#ifndef S_IXGRP
46776 +# define S_IXGRP 0
46777 +#endif
46778
46779 - func_extract_archives $gentop $convenience
46780 - reload_conv_objs="$reload_objs $func_extract_archives_result"
46781 - fi
46782 - fi
46783 +/* path handling portability macros */
46784 +#ifndef DIR_SEPARATOR
46785 +# define DIR_SEPARATOR '/'
46786 +# define PATH_SEPARATOR ':'
46787 +#endif
46788
46789 - # Create the old-style object.
46790 - reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
46791 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
46792 + defined (__OS2__)
46793 +# define HAVE_DOS_BASED_FILE_SYSTEM
46794 +# define FOPEN_WB "wb"
46795 +# ifndef DIR_SEPARATOR_2
46796 +# define DIR_SEPARATOR_2 '\\'
46797 +# endif
46798 +# ifndef PATH_SEPARATOR_2
46799 +# define PATH_SEPARATOR_2 ';'
46800 +# endif
46801 +#endif
46802
46803 - output="$obj"
46804 - cmds=$reload_cmds
46805 - save_ifs="$IFS"; IFS='~'
46806 - for cmd in $cmds; do
46807 - IFS="$save_ifs"
46808 - eval cmd=\"$cmd\"
46809 - $show "$cmd"
46810 - $run eval "$cmd" || exit $?
46811 - done
46812 - IFS="$save_ifs"
46813 +#ifndef DIR_SEPARATOR_2
46814 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
46815 +#else /* DIR_SEPARATOR_2 */
46816 +# define IS_DIR_SEPARATOR(ch) \
46817 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
46818 +#endif /* DIR_SEPARATOR_2 */
46819
46820 - # Exit if we aren't doing a library object file.
46821 - if test -z "$libobj"; then
46822 - if test -n "$gentop"; then
46823 - $show "${rm}r $gentop"
46824 - $run ${rm}r $gentop
46825 - fi
46826 +#ifndef PATH_SEPARATOR_2
46827 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
46828 +#else /* PATH_SEPARATOR_2 */
46829 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
46830 +#endif /* PATH_SEPARATOR_2 */
46831
46832 - exit $EXIT_SUCCESS
46833 - fi
46834 +#ifndef FOPEN_WB
46835 +# define FOPEN_WB "w"
46836 +#endif
46837 +#ifndef _O_BINARY
46838 +# define _O_BINARY 0
46839 +#endif
46840
46841 - if test "$build_libtool_libs" != yes; then
46842 - if test -n "$gentop"; then
46843 - $show "${rm}r $gentop"
46844 - $run ${rm}r $gentop
46845 - fi
46846 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
46847 +#define XFREE(stale) do { \
46848 + if (stale) { free ((void *) stale); stale = 0; } \
46849 +} while (0)
46850
46851 - # Create an invalid libtool object if no PIC, so that we don't
46852 - # accidentally link it into a program.
46853 - # $show "echo timestamp > $libobj"
46854 - # $run eval "echo timestamp > $libobj" || exit $?
46855 - exit $EXIT_SUCCESS
46856 - fi
46857 +#if defined(LT_DEBUGWRAPPER)
46858 +static int lt_debug = 1;
46859 +#else
46860 +static int lt_debug = 0;
46861 +#endif
46862
46863 - if test -n "$pic_flag" || test "$pic_mode" != default; then
46864 - # Only do commands if we really have different PIC objects.
46865 - reload_objs="$libobjs $reload_conv_objs"
46866 - output="$libobj"
46867 - cmds=$reload_cmds
46868 - save_ifs="$IFS"; IFS='~'
46869 - for cmd in $cmds; do
46870 - IFS="$save_ifs"
46871 - eval cmd=\"$cmd\"
46872 - $show "$cmd"
46873 - $run eval "$cmd" || exit $?
46874 - done
46875 - IFS="$save_ifs"
46876 - fi
46877 +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
46878 +
46879 +void *xmalloc (size_t num);
46880 +char *xstrdup (const char *string);
46881 +const char *base_name (const char *name);
46882 +char *find_executable (const char *wrapper);
46883 +char *chase_symlinks (const char *pathspec);
46884 +int make_executable (const char *path);
46885 +int check_executable (const char *path);
46886 +char *strendzap (char *str, const char *pat);
46887 +void lt_debugprintf (const char *file, int line, const char *fmt, ...);
46888 +void lt_fatal (const char *file, int line, const char *message, ...);
46889 +static const char *nonnull (const char *s);
46890 +static const char *nonempty (const char *s);
46891 +void lt_setenv (const char *name, const char *value);
46892 +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
46893 +void lt_update_exe_path (const char *name, const char *value);
46894 +void lt_update_lib_path (const char *name, const char *value);
46895 +char **prepare_spawn (char **argv);
46896 +void lt_dump_script (FILE *f);
46897 +EOF
46898
46899 - if test -n "$gentop"; then
46900 - $show "${rm}r $gentop"
46901 - $run ${rm}r $gentop
46902 - fi
46903 + cat <<EOF
46904 +volatile const char * MAGIC_EXE = "$magic_exe";
46905 +const char * LIB_PATH_VARNAME = "$shlibpath_var";
46906 +EOF
46907
46908 - exit $EXIT_SUCCESS
46909 - ;;
46910 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
46911 + func_to_host_path "$temp_rpath"
46912 + cat <<EOF
46913 +const char * LIB_PATH_VALUE = "$func_to_host_path_result";
46914 +EOF
46915 + else
46916 + cat <<"EOF"
46917 +const char * LIB_PATH_VALUE = "";
46918 +EOF
46919 + fi
46920
46921 - prog)
46922 - case $host in
46923 - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
46924 - esac
46925 - if test -n "$vinfo"; then
46926 - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
46927 - fi
46928 + if test -n "$dllsearchpath"; then
46929 + func_to_host_path "$dllsearchpath:"
46930 + cat <<EOF
46931 +const char * EXE_PATH_VARNAME = "PATH";
46932 +const char * EXE_PATH_VALUE = "$func_to_host_path_result";
46933 +EOF
46934 + else
46935 + cat <<"EOF"
46936 +const char * EXE_PATH_VARNAME = "";
46937 +const char * EXE_PATH_VALUE = "";
46938 +EOF
46939 + fi
46940
46941 - if test -n "$release"; then
46942 - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
46943 - fi
46944 + if test "$fast_install" = yes; then
46945 + cat <<EOF
46946 +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
46947 +EOF
46948 + else
46949 + cat <<EOF
46950 +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
46951 +EOF
46952 + fi
46953
46954 - if test "$preload" = yes; then
46955 - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
46956 - test "$dlopen_self_static" = unknown; then
46957 - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
46958 - fi
46959 - fi
46960
46961 - case $host in
46962 - *-*-rhapsody* | *-*-darwin1.[012])
46963 - # On Rhapsody replace the C library is the System framework
46964 - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
46965 - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
46966 - ;;
46967 - esac
46968 + cat <<"EOF"
46969
46970 - case $host in
46971 - *darwin*)
46972 - # Don't allow lazy linking, it breaks C++ global constructors
46973 - if test "$tagname" = CXX ; then
46974 - compile_command="$compile_command ${wl}-bind_at_load"
46975 - finalize_command="$finalize_command ${wl}-bind_at_load"
46976 - fi
46977 - ;;
46978 - esac
46979 +#define LTWRAPPER_OPTION_PREFIX "--lt-"
46980
46981 +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
46982 +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
46983 +static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
46984
46985 - # move library search paths that coincide with paths to not yet
46986 - # installed libraries to the beginning of the library search list
46987 - new_libs=
46988 - for path in $notinst_path; do
46989 - case " $new_libs " in
46990 - *" -L$path/$objdir "*) ;;
46991 - *)
46992 - case " $compile_deplibs " in
46993 - *" -L$path/$objdir "*)
46994 - new_libs="$new_libs -L$path/$objdir" ;;
46995 - esac
46996 - ;;
46997 - esac
46998 - done
46999 - for deplib in $compile_deplibs; do
47000 - case $deplib in
47001 - -L*)
47002 - case " $new_libs " in
47003 - *" $deplib "*) ;;
47004 - *) new_libs="$new_libs $deplib" ;;
47005 - esac
47006 - ;;
47007 - *) new_libs="$new_libs $deplib" ;;
47008 - esac
47009 - done
47010 - compile_deplibs="$new_libs"
47011 +int
47012 +main (int argc, char *argv[])
47013 +{
47014 + char **newargz;
47015 + int newargc;
47016 + char *tmp_pathspec;
47017 + char *actual_cwrapper_path;
47018 + char *actual_cwrapper_name;
47019 + char *target_name;
47020 + char *lt_argv_zero;
47021 + intptr_t rval = 127;
47022 +
47023 + int i;
47024
47025 + program_name = (char *) xstrdup (base_name (argv[0]));
47026 + newargz = XMALLOC (char *, argc + 1);
47027
47028 - compile_command="$compile_command $compile_deplibs"
47029 - finalize_command="$finalize_command $finalize_deplibs"
47030 + /* very simple arg parsing; don't want to rely on getopt
47031 + * also, copy all non cwrapper options to newargz, except
47032 + * argz[0], which is handled differently
47033 + */
47034 + newargc=0;
47035 + for (i = 1; i < argc; i++)
47036 + {
47037 + if (strcmp (argv[i], dumpscript_opt) == 0)
47038 + {
47039 +EOF
47040 + case "$host" in
47041 + *mingw* | *cygwin* )
47042 + # make stdout use "unix" line endings
47043 + echo " setmode(1,_O_BINARY);"
47044 + ;;
47045 + esac
47046
47047 - if test -n "$rpath$xrpath"; then
47048 - # If the user specified any rpath flags, then add them.
47049 - for libdir in $rpath $xrpath; do
47050 - # This is the magic to use -rpath.
47051 - case "$finalize_rpath " in
47052 - *" $libdir "*) ;;
47053 - *) finalize_rpath="$finalize_rpath $libdir" ;;
47054 - esac
47055 - done
47056 - fi
47057 + cat <<"EOF"
47058 + lt_dump_script (stdout);
47059 + return 0;
47060 + }
47061 + if (strcmp (argv[i], debug_opt) == 0)
47062 + {
47063 + lt_debug = 1;
47064 + continue;
47065 + }
47066 + if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
47067 + {
47068 + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
47069 + namespace, but it is not one of the ones we know about and
47070 + have already dealt with, above (inluding dump-script), then
47071 + report an error. Otherwise, targets might begin to believe
47072 + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
47073 + namespace. The first time any user complains about this, we'll
47074 + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
47075 + or a configure.ac-settable value.
47076 + */
47077 + lt_fatal (__FILE__, __LINE__,
47078 + "unrecognized %s option: '%s'",
47079 + ltwrapper_option_prefix, argv[i]);
47080 + }
47081 + /* otherwise ... */
47082 + newargz[++newargc] = xstrdup (argv[i]);
47083 + }
47084 + newargz[++newargc] = NULL;
47085
47086 - # Now hardcode the library paths
47087 - rpath=
47088 - hardcode_libdirs=
47089 - for libdir in $compile_rpath $finalize_rpath; do
47090 - if test -n "$hardcode_libdir_flag_spec"; then
47091 - if test -n "$hardcode_libdir_separator"; then
47092 - if test -z "$hardcode_libdirs"; then
47093 - hardcode_libdirs="$libdir"
47094 - else
47095 - # Just accumulate the unique libdirs.
47096 - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
47097 - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
47098 +EOF
47099 + cat <<EOF
47100 + /* The GNU banner must be the first non-error debug message */
47101 + lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
47102 +EOF
47103 + cat <<"EOF"
47104 + lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
47105 + lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
47106 +
47107 + tmp_pathspec = find_executable (argv[0]);
47108 + if (tmp_pathspec == NULL)
47109 + lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
47110 + lt_debugprintf (__FILE__, __LINE__,
47111 + "(main) found exe (before symlink chase) at: %s\n",
47112 + tmp_pathspec);
47113 +
47114 + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
47115 + lt_debugprintf (__FILE__, __LINE__,
47116 + "(main) found exe (after symlink chase) at: %s\n",
47117 + actual_cwrapper_path);
47118 + XFREE (tmp_pathspec);
47119 +
47120 + actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
47121 + strendzap (actual_cwrapper_path, actual_cwrapper_name);
47122 +
47123 + /* wrapper name transforms */
47124 + strendzap (actual_cwrapper_name, ".exe");
47125 + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
47126 + XFREE (actual_cwrapper_name);
47127 + actual_cwrapper_name = tmp_pathspec;
47128 + tmp_pathspec = 0;
47129 +
47130 + /* target_name transforms -- use actual target program name; might have lt- prefix */
47131 + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
47132 + strendzap (target_name, ".exe");
47133 + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
47134 + XFREE (target_name);
47135 + target_name = tmp_pathspec;
47136 + tmp_pathspec = 0;
47137 +
47138 + lt_debugprintf (__FILE__, __LINE__,
47139 + "(main) libtool target name: %s\n",
47140 + target_name);
47141 +EOF
47142 +
47143 + cat <<EOF
47144 + newargz[0] =
47145 + XMALLOC (char, (strlen (actual_cwrapper_path) +
47146 + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
47147 + strcpy (newargz[0], actual_cwrapper_path);
47148 + strcat (newargz[0], "$objdir");
47149 + strcat (newargz[0], "/");
47150 +EOF
47151 +
47152 + cat <<"EOF"
47153 + /* stop here, and copy so we don't have to do this twice */
47154 + tmp_pathspec = xstrdup (newargz[0]);
47155 +
47156 + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
47157 + strcat (newargz[0], actual_cwrapper_name);
47158 +
47159 + /* DO want the lt- prefix here if it exists, so use target_name */
47160 + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
47161 + XFREE (tmp_pathspec);
47162 + tmp_pathspec = NULL;
47163 +EOF
47164 +
47165 + case $host_os in
47166 + mingw*)
47167 + cat <<"EOF"
47168 + {
47169 + char* p;
47170 + while ((p = strchr (newargz[0], '\\')) != NULL)
47171 + {
47172 + *p = '/';
47173 + }
47174 + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
47175 + {
47176 + *p = '/';
47177 + }
47178 + }
47179 +EOF
47180 + ;;
47181 + esac
47182 +
47183 + cat <<"EOF"
47184 + XFREE (target_name);
47185 + XFREE (actual_cwrapper_path);
47186 + XFREE (actual_cwrapper_name);
47187 +
47188 + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
47189 + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
47190 + /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
47191 + be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
47192 + because on Windows, both *_VARNAMEs are PATH but uninstalled
47193 + libraries must come first. */
47194 + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
47195 + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
47196 +
47197 + lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
47198 + nonnull (lt_argv_zero));
47199 + for (i = 0; i < newargc; i++)
47200 + {
47201 + lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
47202 + i, nonnull (newargz[i]));
47203 + }
47204 +
47205 +EOF
47206 +
47207 + case $host_os in
47208 + mingw*)
47209 + cat <<"EOF"
47210 + /* execv doesn't actually work on mingw as expected on unix */
47211 + newargz = prepare_spawn (newargz);
47212 + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
47213 + if (rval == -1)
47214 + {
47215 + /* failed to start process */
47216 + lt_debugprintf (__FILE__, __LINE__,
47217 + "(main) failed to launch target \"%s\": %s\n",
47218 + lt_argv_zero, nonnull (strerror (errno)));
47219 + return 127;
47220 + }
47221 + return rval;
47222 +EOF
47223 ;;
47224 *)
47225 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
47226 + cat <<"EOF"
47227 + execv (lt_argv_zero, newargz);
47228 + return rval; /* =127, but avoids unused variable warning */
47229 +EOF
47230 ;;
47231 - esac
47232 - fi
47233 - else
47234 - eval flag=\"$hardcode_libdir_flag_spec\"
47235 - rpath="$rpath $flag"
47236 - fi
47237 - elif test -n "$runpath_var"; then
47238 - case "$perm_rpath " in
47239 - *" $libdir "*) ;;
47240 - *) perm_rpath="$perm_rpath $libdir" ;;
47241 - esac
47242 - fi
47243 - case $host in
47244 - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
47245 - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
47246 - case :$dllsearchpath: in
47247 - *":$libdir:"*) ;;
47248 - *) dllsearchpath="$dllsearchpath:$libdir";;
47249 - esac
47250 - case :$dllsearchpath: in
47251 - *":$testbindir:"*) ;;
47252 - *) dllsearchpath="$dllsearchpath:$testbindir";;
47253 - esac
47254 - ;;
47255 - esac
47256 - done
47257 - # Substitute the hardcoded libdirs into the rpath.
47258 - if test -n "$hardcode_libdir_separator" &&
47259 - test -n "$hardcode_libdirs"; then
47260 - libdir="$hardcode_libdirs"
47261 - eval rpath=\" $hardcode_libdir_flag_spec\"
47262 - fi
47263 - compile_rpath="$rpath"
47264 -
47265 - rpath=
47266 - hardcode_libdirs=
47267 - for libdir in $finalize_rpath; do
47268 - if test -n "$hardcode_libdir_flag_spec"; then
47269 - if test -n "$hardcode_libdir_separator"; then
47270 - if test -z "$hardcode_libdirs"; then
47271 - hardcode_libdirs="$libdir"
47272 - else
47273 - # Just accumulate the unique libdirs.
47274 - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
47275 - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
47276 - ;;
47277 - *)
47278 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
47279 - ;;
47280 - esac
47281 - fi
47282 - else
47283 - eval flag=\"$hardcode_libdir_flag_spec\"
47284 - rpath="$rpath $flag"
47285 - fi
47286 - elif test -n "$runpath_var"; then
47287 - case "$finalize_perm_rpath " in
47288 - *" $libdir "*) ;;
47289 - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
47290 - esac
47291 - fi
47292 - done
47293 - # Substitute the hardcoded libdirs into the rpath.
47294 - if test -n "$hardcode_libdir_separator" &&
47295 - test -n "$hardcode_libdirs"; then
47296 - libdir="$hardcode_libdirs"
47297 - eval rpath=\" $hardcode_libdir_flag_spec\"
47298 - fi
47299 - finalize_rpath="$rpath"
47300 -
47301 - if test -n "$libobjs" && test "$build_old_libs" = yes; then
47302 - # Transform all the library objects into standard objects.
47303 - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
47304 - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
47305 - fi
47306 + esac
47307
47308 - dlsyms=
47309 - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
47310 - if test -n "$NM" && test -n "$global_symbol_pipe"; then
47311 - dlsyms="${outputname}S.c"
47312 - else
47313 - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
47314 - fi
47315 - fi
47316 + cat <<"EOF"
47317 +}
47318
47319 - if test -n "$dlsyms"; then
47320 - case $dlsyms in
47321 - "") ;;
47322 - *.c)
47323 - # Discover the nlist of each of the dlfiles.
47324 - nlist="$output_objdir/${outputname}.nm"
47325 +void *
47326 +xmalloc (size_t num)
47327 +{
47328 + void *p = (void *) malloc (num);
47329 + if (!p)
47330 + lt_fatal (__FILE__, __LINE__, "memory exhausted");
47331
47332 - $show "$rm $nlist ${nlist}S ${nlist}T"
47333 - $run $rm "$nlist" "${nlist}S" "${nlist}T"
47334 + return p;
47335 +}
47336
47337 - # Parse the name list into a source file.
47338 - $show "creating $output_objdir/$dlsyms"
47339 +char *
47340 +xstrdup (const char *string)
47341 +{
47342 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
47343 + string) : NULL;
47344 +}
47345
47346 - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
47347 -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
47348 -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
47349 +const char *
47350 +base_name (const char *name)
47351 +{
47352 + const char *base;
47353
47354 -#ifdef __cplusplus
47355 -extern \"C\" {
47356 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
47357 + /* Skip over the disk name in MSDOS pathnames. */
47358 + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
47359 + name += 2;
47360 #endif
47361
47362 -/* Prevent the only kind of declaration conflicts we can make. */
47363 -#define lt_preloaded_symbols some_other_symbol
47364 + for (base = name; *name; name++)
47365 + if (IS_DIR_SEPARATOR (*name))
47366 + base = name + 1;
47367 + return base;
47368 +}
47369
47370 -/* External symbol declarations for the compiler. */\
47371 -"
47372 +int
47373 +check_executable (const char *path)
47374 +{
47375 + struct stat st;
47376
47377 - if test "$dlself" = yes; then
47378 - $show "generating symbol list for \`$output'"
47379 + lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
47380 + nonempty (path));
47381 + if ((!path) || (!*path))
47382 + return 0;
47383
47384 - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
47385 + if ((stat (path, &st) >= 0)
47386 + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
47387 + return 1;
47388 + else
47389 + return 0;
47390 +}
47391
47392 - # Add our own program objects to the symbol list.
47393 - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
47394 - for arg in $progfiles; do
47395 - $show "extracting global C symbols from \`$arg'"
47396 - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
47397 - done
47398 +int
47399 +make_executable (const char *path)
47400 +{
47401 + int rval = 0;
47402 + struct stat st;
47403
47404 - if test -n "$exclude_expsyms"; then
47405 - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
47406 - $run eval '$mv "$nlist"T "$nlist"'
47407 - fi
47408 + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
47409 + nonempty (path));
47410 + if ((!path) || (!*path))
47411 + return 0;
47412
47413 - if test -n "$export_symbols_regex"; then
47414 - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
47415 - $run eval '$mv "$nlist"T "$nlist"'
47416 - fi
47417 + if (stat (path, &st) >= 0)
47418 + {
47419 + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
47420 + }
47421 + return rval;
47422 +}
47423
47424 - # Prepare the list of exported symbols
47425 - if test -z "$export_symbols"; then
47426 - export_symbols="$output_objdir/$outputname.exp"
47427 - $run $rm $export_symbols
47428 - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
47429 - case $host in
47430 - *cygwin* | *mingw* )
47431 - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
47432 - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
47433 - ;;
47434 - esac
47435 - else
47436 - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
47437 - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
47438 - $run eval 'mv "$nlist"T "$nlist"'
47439 - case $host in
47440 - *cygwin* | *mingw* )
47441 - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
47442 - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
47443 - ;;
47444 - esac
47445 - fi
47446 - fi
47447 +/* Searches for the full path of the wrapper. Returns
47448 + newly allocated full path name if found, NULL otherwise
47449 + Does not chase symlinks, even on platforms that support them.
47450 +*/
47451 +char *
47452 +find_executable (const char *wrapper)
47453 +{
47454 + int has_slash = 0;
47455 + const char *p;
47456 + const char *p_next;
47457 + /* static buffer for getcwd */
47458 + char tmp[LT_PATHMAX + 1];
47459 + int tmp_len;
47460 + char *concat_name;
47461
47462 - for arg in $dlprefiles; do
47463 - $show "extracting global C symbols from \`$arg'"
47464 - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
47465 - $run eval '$echo ": $name " >> "$nlist"'
47466 - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
47467 - done
47468 + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
47469 + nonempty (wrapper));
47470
47471 - if test -z "$run"; then
47472 - # Make sure we have at least an empty file.
47473 - test -f "$nlist" || : > "$nlist"
47474 + if ((wrapper == NULL) || (*wrapper == '\0'))
47475 + return NULL;
47476
47477 - if test -n "$exclude_expsyms"; then
47478 - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
47479 - $mv "$nlist"T "$nlist"
47480 - fi
47481 + /* Absolute path? */
47482 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
47483 + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
47484 + {
47485 + concat_name = xstrdup (wrapper);
47486 + if (check_executable (concat_name))
47487 + return concat_name;
47488 + XFREE (concat_name);
47489 + }
47490 + else
47491 + {
47492 +#endif
47493 + if (IS_DIR_SEPARATOR (wrapper[0]))
47494 + {
47495 + concat_name = xstrdup (wrapper);
47496 + if (check_executable (concat_name))
47497 + return concat_name;
47498 + XFREE (concat_name);
47499 + }
47500 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
47501 + }
47502 +#endif
47503
47504 - # Try sorting and uniquifying the output.
47505 - if grep -v "^: " < "$nlist" |
47506 - if sort -k 3 </dev/null >/dev/null 2>&1; then
47507 - sort -k 3
47508 - else
47509 - sort +2
47510 - fi |
47511 - uniq > "$nlist"S; then
47512 - :
47513 - else
47514 - grep -v "^: " < "$nlist" > "$nlist"S
47515 - fi
47516 + for (p = wrapper; *p; p++)
47517 + if (*p == '/')
47518 + {
47519 + has_slash = 1;
47520 + break;
47521 + }
47522 + if (!has_slash)
47523 + {
47524 + /* no slashes; search PATH */
47525 + const char *path = getenv ("PATH");
47526 + if (path != NULL)
47527 + {
47528 + for (p = path; *p; p = p_next)
47529 + {
47530 + const char *q;
47531 + size_t p_len;
47532 + for (q = p; *q; q++)
47533 + if (IS_PATH_SEPARATOR (*q))
47534 + break;
47535 + p_len = q - p;
47536 + p_next = (*q == '\0' ? q : q + 1);
47537 + if (p_len == 0)
47538 + {
47539 + /* empty path: current directory */
47540 + if (getcwd (tmp, LT_PATHMAX) == NULL)
47541 + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
47542 + nonnull (strerror (errno)));
47543 + tmp_len = strlen (tmp);
47544 + concat_name =
47545 + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
47546 + memcpy (concat_name, tmp, tmp_len);
47547 + concat_name[tmp_len] = '/';
47548 + strcpy (concat_name + tmp_len + 1, wrapper);
47549 + }
47550 + else
47551 + {
47552 + concat_name =
47553 + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
47554 + memcpy (concat_name, p, p_len);
47555 + concat_name[p_len] = '/';
47556 + strcpy (concat_name + p_len + 1, wrapper);
47557 + }
47558 + if (check_executable (concat_name))
47559 + return concat_name;
47560 + XFREE (concat_name);
47561 + }
47562 + }
47563 + /* not found in PATH; assume curdir */
47564 + }
47565 + /* Relative path | not found in path: prepend cwd */
47566 + if (getcwd (tmp, LT_PATHMAX) == NULL)
47567 + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
47568 + nonnull (strerror (errno)));
47569 + tmp_len = strlen (tmp);
47570 + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
47571 + memcpy (concat_name, tmp, tmp_len);
47572 + concat_name[tmp_len] = '/';
47573 + strcpy (concat_name + tmp_len + 1, wrapper);
47574
47575 - if test -f "$nlist"S; then
47576 - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
47577 - else
47578 - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
47579 - fi
47580 + if (check_executable (concat_name))
47581 + return concat_name;
47582 + XFREE (concat_name);
47583 + return NULL;
47584 +}
47585
47586 - $echo >> "$output_objdir/$dlsyms" "\
47587 +char *
47588 +chase_symlinks (const char *pathspec)
47589 +{
47590 +#ifndef S_ISLNK
47591 + return xstrdup (pathspec);
47592 +#else
47593 + char buf[LT_PATHMAX];
47594 + struct stat s;
47595 + char *tmp_pathspec = xstrdup (pathspec);
47596 + char *p;
47597 + int has_symlinks = 0;
47598 + while (strlen (tmp_pathspec) && !has_symlinks)
47599 + {
47600 + lt_debugprintf (__FILE__, __LINE__,
47601 + "checking path component for symlinks: %s\n",
47602 + tmp_pathspec);
47603 + if (lstat (tmp_pathspec, &s) == 0)
47604 + {
47605 + if (S_ISLNK (s.st_mode) != 0)
47606 + {
47607 + has_symlinks = 1;
47608 + break;
47609 + }
47610 +
47611 + /* search backwards for last DIR_SEPARATOR */
47612 + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
47613 + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
47614 + p--;
47615 + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
47616 + {
47617 + /* no more DIR_SEPARATORS left */
47618 + break;
47619 + }
47620 + *p = '\0';
47621 + }
47622 + else
47623 + {
47624 + lt_fatal (__FILE__, __LINE__,
47625 + "error accessing file \"%s\": %s",
47626 + tmp_pathspec, nonnull (strerror (errno)));
47627 + }
47628 + }
47629 + XFREE (tmp_pathspec);
47630
47631 -#undef lt_preloaded_symbols
47632 + if (!has_symlinks)
47633 + {
47634 + return xstrdup (pathspec);
47635 + }
47636
47637 -#if defined (__STDC__) && __STDC__
47638 -# define lt_ptr void *
47639 -#else
47640 -# define lt_ptr char *
47641 -# define const
47642 + tmp_pathspec = realpath (pathspec, buf);
47643 + if (tmp_pathspec == 0)
47644 + {
47645 + lt_fatal (__FILE__, __LINE__,
47646 + "could not follow symlinks for %s", pathspec);
47647 + }
47648 + return xstrdup (tmp_pathspec);
47649 #endif
47650 +}
47651
47652 -/* The mapping between symbol names and symbols. */
47653 -"
47654 +char *
47655 +strendzap (char *str, const char *pat)
47656 +{
47657 + size_t len, patlen;
47658
47659 - case $host in
47660 - *cygwin* | *mingw* )
47661 - $echo >> "$output_objdir/$dlsyms" "\
47662 -/* DATA imports from DLLs on WIN32 can't be const, because
47663 - runtime relocations are performed -- see ld's documentation
47664 - on pseudo-relocs */
47665 -struct {
47666 -"
47667 - ;;
47668 - * )
47669 - $echo >> "$output_objdir/$dlsyms" "\
47670 -const struct {
47671 -"
47672 - ;;
47673 - esac
47674 + assert (str != NULL);
47675 + assert (pat != NULL);
47676
47677 + len = strlen (str);
47678 + patlen = strlen (pat);
47679
47680 - $echo >> "$output_objdir/$dlsyms" "\
47681 - const char *name;
47682 - lt_ptr address;
47683 + if (patlen <= len)
47684 + {
47685 + str += len - patlen;
47686 + if (strcmp (str, pat) == 0)
47687 + *str = '\0';
47688 + }
47689 + return str;
47690 }
47691 -lt_preloaded_symbols[] =
47692 -{\
47693 -"
47694
47695 - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
47696 +void
47697 +lt_debugprintf (const char *file, int line, const char *fmt, ...)
47698 +{
47699 + va_list args;
47700 + if (lt_debug)
47701 + {
47702 + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
47703 + va_start (args, fmt);
47704 + (void) vfprintf (stderr, fmt, args);
47705 + va_end (args);
47706 + }
47707 +}
47708
47709 - $echo >> "$output_objdir/$dlsyms" "\
47710 - {0, (lt_ptr) 0}
47711 -};
47712 +static void
47713 +lt_error_core (int exit_status, const char *file,
47714 + int line, const char *mode,
47715 + const char *message, va_list ap)
47716 +{
47717 + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
47718 + vfprintf (stderr, message, ap);
47719 + fprintf (stderr, ".\n");
47720
47721 -/* This works around a problem in FreeBSD linker */
47722 -#ifdef FREEBSD_WORKAROUND
47723 -static const void *lt_preloaded_setup() {
47724 - return lt_preloaded_symbols;
47725 + if (exit_status >= 0)
47726 + exit (exit_status);
47727 }
47728 -#endif
47729
47730 -#ifdef __cplusplus
47731 +void
47732 +lt_fatal (const char *file, int line, const char *message, ...)
47733 +{
47734 + va_list ap;
47735 + va_start (ap, message);
47736 + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
47737 + va_end (ap);
47738 }
47739 -#endif\
47740 -"
47741 - fi
47742
47743 - pic_flag_for_symtable=
47744 - case $host in
47745 - # compiling the symbol table file with pic_flag works around
47746 - # a FreeBSD bug that causes programs to crash when -lm is
47747 - # linked before any other PIC object. But we must not use
47748 - # pic_flag when linking with -static. The problem exists in
47749 - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
47750 - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
47751 - case "$compile_command " in
47752 - *" -static "*) ;;
47753 - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
47754 - esac;;
47755 - *-*-hpux*)
47756 - case "$compile_command " in
47757 - *" -static "*) ;;
47758 - *) pic_flag_for_symtable=" $pic_flag";;
47759 - esac
47760 - esac
47761 +static const char *
47762 +nonnull (const char *s)
47763 +{
47764 + return s ? s : "(null)";
47765 +}
47766
47767 - # Now compile the dynamic symbol file.
47768 - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
47769 - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
47770 +static const char *
47771 +nonempty (const char *s)
47772 +{
47773 + return (s && !*s) ? "(empty)" : nonnull (s);
47774 +}
47775
47776 - # Clean up the generated files.
47777 - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
47778 - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
47779 +void
47780 +lt_setenv (const char *name, const char *value)
47781 +{
47782 + lt_debugprintf (__FILE__, __LINE__,
47783 + "(lt_setenv) setting '%s' to '%s'\n",
47784 + nonnull (name), nonnull (value));
47785 + {
47786 +#ifdef HAVE_SETENV
47787 + /* always make a copy, for consistency with !HAVE_SETENV */
47788 + char *str = xstrdup (value);
47789 + setenv (name, str, 1);
47790 +#else
47791 + int len = strlen (name) + 1 + strlen (value) + 1;
47792 + char *str = XMALLOC (char, len);
47793 + sprintf (str, "%s=%s", name, value);
47794 + if (putenv (str) != EXIT_SUCCESS)
47795 + {
47796 + XFREE (str);
47797 + }
47798 +#endif
47799 + }
47800 +}
47801
47802 - # Transform the symbol file into the correct name.
47803 - case $host in
47804 - *cygwin* | *mingw* )
47805 - if test -f "$output_objdir/${outputname}.def" ; then
47806 - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
47807 - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
47808 - else
47809 - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
47810 - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
47811 - fi
47812 - ;;
47813 - * )
47814 - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
47815 - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
47816 - ;;
47817 - esac
47818 - ;;
47819 - *)
47820 - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
47821 - exit $EXIT_FAILURE
47822 - ;;
47823 - esac
47824 +char *
47825 +lt_extend_str (const char *orig_value, const char *add, int to_end)
47826 +{
47827 + char *new_value;
47828 + if (orig_value && *orig_value)
47829 + {
47830 + int orig_value_len = strlen (orig_value);
47831 + int add_len = strlen (add);
47832 + new_value = XMALLOC (char, add_len + orig_value_len + 1);
47833 + if (to_end)
47834 + {
47835 + strcpy (new_value, orig_value);
47836 + strcpy (new_value + orig_value_len, add);
47837 + }
47838 else
47839 - # We keep going just in case the user didn't refer to
47840 - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
47841 - # really was required.
47842 -
47843 - # Nullify the symbol file.
47844 - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
47845 - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
47846 - fi
47847 -
47848 - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
47849 - # Replace the output file specification.
47850 - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
47851 - link_command="$compile_command$compile_rpath"
47852 -
47853 - # We have no uninstalled library dependencies, so finalize right now.
47854 - $show "$link_command"
47855 - $run eval "$link_command"
47856 - exit_status=$?
47857 -
47858 - # Delete the generated files.
47859 - if test -n "$dlsyms"; then
47860 - $show "$rm $output_objdir/${outputname}S.${objext}"
47861 - $run $rm "$output_objdir/${outputname}S.${objext}"
47862 - fi
47863 -
47864 - exit $exit_status
47865 - fi
47866 -
47867 - if test -n "$shlibpath_var"; then
47868 - # We should set the shlibpath_var
47869 - rpath=
47870 - for dir in $temp_rpath; do
47871 - case $dir in
47872 - [\\/]* | [A-Za-z]:[\\/]*)
47873 - # Absolute path.
47874 - rpath="$rpath$dir:"
47875 - ;;
47876 - *)
47877 - # Relative path: add a thisdir entry.
47878 - rpath="$rpath\$thisdir/$dir:"
47879 - ;;
47880 - esac
47881 - done
47882 - temp_rpath="$rpath"
47883 - fi
47884 -
47885 - if test -n "$compile_shlibpath$finalize_shlibpath"; then
47886 - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
47887 - fi
47888 - if test -n "$finalize_shlibpath"; then
47889 - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
47890 - fi
47891 -
47892 - compile_var=
47893 - finalize_var=
47894 - if test -n "$runpath_var"; then
47895 - if test -n "$perm_rpath"; then
47896 - # We should set the runpath_var.
47897 - rpath=
47898 - for dir in $perm_rpath; do
47899 - rpath="$rpath$dir:"
47900 - done
47901 - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
47902 - fi
47903 - if test -n "$finalize_perm_rpath"; then
47904 - # We should set the runpath_var.
47905 - rpath=
47906 - for dir in $finalize_perm_rpath; do
47907 - rpath="$rpath$dir:"
47908 - done
47909 - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
47910 - fi
47911 - fi
47912 -
47913 - if test "$no_install" = yes; then
47914 - # We don't need to create a wrapper script.
47915 - link_command="$compile_var$compile_command$compile_rpath"
47916 - # Replace the output file specification.
47917 - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
47918 - # Delete the old output file.
47919 - $run $rm $output
47920 - # Link the executable and exit
47921 - $show "$link_command"
47922 - $run eval "$link_command" || exit $?
47923 - exit $EXIT_SUCCESS
47924 - fi
47925 -
47926 - if test "$hardcode_action" = relink; then
47927 - # Fast installation is not supported
47928 - link_command="$compile_var$compile_command$compile_rpath"
47929 - relink_command="$finalize_var$finalize_command$finalize_rpath"
47930 -
47931 - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
47932 - $echo "$modename: \`$output' will be relinked during installation" 1>&2
47933 - else
47934 - if test "$fast_install" != no; then
47935 - link_command="$finalize_var$compile_command$finalize_rpath"
47936 - if test "$fast_install" = yes; then
47937 - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
47938 - else
47939 - # fast_install is set to needless
47940 - relink_command=
47941 - fi
47942 - else
47943 - link_command="$compile_var$compile_command$compile_rpath"
47944 - relink_command="$finalize_var$finalize_command$finalize_rpath"
47945 - fi
47946 - fi
47947 -
47948 - # Replace the output file specification.
47949 - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
47950 -
47951 - # Delete the old output files.
47952 - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
47953 -
47954 - $show "$link_command"
47955 - $run eval "$link_command" || exit $?
47956 -
47957 - # Now create the wrapper script.
47958 - $show "creating $output"
47959 -
47960 - # Quote the relink command for shipping.
47961 - if test -n "$relink_command"; then
47962 - # Preserve any variables that may affect compiler behavior
47963 - for var in $variables_saved_for_relink; do
47964 - if eval test -z \"\${$var+set}\"; then
47965 - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
47966 - elif eval var_value=\$$var; test -z "$var_value"; then
47967 - relink_command="$var=; export $var; $relink_command"
47968 - else
47969 - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
47970 - relink_command="$var=\"$var_value\"; export $var; $relink_command"
47971 - fi
47972 - done
47973 - relink_command="(cd `pwd`; $relink_command)"
47974 - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
47975 - fi
47976 -
47977 - # Quote $echo for shipping.
47978 - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
47979 - case $progpath in
47980 - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
47981 - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
47982 - esac
47983 - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
47984 - else
47985 - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
47986 - fi
47987 -
47988 - # Only actually do things if our run command is non-null.
47989 - if test -z "$run"; then
47990 - # win32 will think the script is a binary if it has
47991 - # a .exe suffix, so we strip it off here.
47992 - case $output in
47993 - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
47994 - esac
47995 - # test for cygwin because mv fails w/o .exe extensions
47996 - case $host in
47997 - *cygwin*)
47998 - exeext=.exe
47999 - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
48000 - *) exeext= ;;
48001 - esac
48002 - case $host in
48003 - *cygwin* | *mingw* )
48004 - output_name=`basename $output`
48005 - output_path=`dirname $output`
48006 - cwrappersource="$output_path/$objdir/lt-$output_name.c"
48007 - cwrapper="$output_path/$output_name.exe"
48008 - $rm $cwrappersource $cwrapper
48009 - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
48010 + {
48011 + strcpy (new_value, add);
48012 + strcpy (new_value + add_len, orig_value);
48013 + }
48014 + }
48015 + else
48016 + {
48017 + new_value = xstrdup (add);
48018 + }
48019 + return new_value;
48020 +}
48021
48022 - cat > $cwrappersource <<EOF
48023 +void
48024 +lt_update_exe_path (const char *name, const char *value)
48025 +{
48026 + lt_debugprintf (__FILE__, __LINE__,
48027 + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
48028 + nonnull (name), nonnull (value));
48029
48030 -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
48031 - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
48032 + if (name && *name && value && *value)
48033 + {
48034 + char *new_value = lt_extend_str (getenv (name), value, 0);
48035 + /* some systems can't cope with a ':'-terminated path #' */
48036 + int len = strlen (new_value);
48037 + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
48038 + {
48039 + new_value[len-1] = '\0';
48040 + }
48041 + lt_setenv (name, new_value);
48042 + XFREE (new_value);
48043 + }
48044 +}
48045
48046 - The $output program cannot be directly executed until all the libtool
48047 - libraries that it depends on are installed.
48048 +void
48049 +lt_update_lib_path (const char *name, const char *value)
48050 +{
48051 + lt_debugprintf (__FILE__, __LINE__,
48052 + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
48053 + nonnull (name), nonnull (value));
48054
48055 - This wrapper executable should never be moved out of the build directory.
48056 - If it is, it will not operate correctly.
48057 + if (name && *name && value && *value)
48058 + {
48059 + char *new_value = lt_extend_str (getenv (name), value, 0);
48060 + lt_setenv (name, new_value);
48061 + XFREE (new_value);
48062 + }
48063 +}
48064
48065 - Currently, it simply execs the wrapper *script* "/bin/sh $output",
48066 - but could eventually absorb all of the scripts functionality and
48067 - exec $objdir/$outputname directly.
48068 -*/
48069 EOF
48070 - cat >> $cwrappersource<<"EOF"
48071 -#include <stdio.h>
48072 -#include <stdlib.h>
48073 -#include <unistd.h>
48074 -#include <malloc.h>
48075 -#include <stdarg.h>
48076 -#include <assert.h>
48077 -#include <string.h>
48078 -#include <ctype.h>
48079 -#include <sys/stat.h>
48080 -
48081 -#if defined(PATH_MAX)
48082 -# define LT_PATHMAX PATH_MAX
48083 -#elif defined(MAXPATHLEN)
48084 -# define LT_PATHMAX MAXPATHLEN
48085 -#else
48086 -# define LT_PATHMAX 1024
48087 -#endif
48088 -
48089 -#ifndef DIR_SEPARATOR
48090 -# define DIR_SEPARATOR '/'
48091 -# define PATH_SEPARATOR ':'
48092 -#endif
48093 -
48094 -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
48095 - defined (__OS2__)
48096 -# define HAVE_DOS_BASED_FILE_SYSTEM
48097 -# ifndef DIR_SEPARATOR_2
48098 -# define DIR_SEPARATOR_2 '\\'
48099 -# endif
48100 -# ifndef PATH_SEPARATOR_2
48101 -# define PATH_SEPARATOR_2 ';'
48102 -# endif
48103 -#endif
48104 -
48105 -#ifndef DIR_SEPARATOR_2
48106 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
48107 -#else /* DIR_SEPARATOR_2 */
48108 -# define IS_DIR_SEPARATOR(ch) \
48109 - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
48110 -#endif /* DIR_SEPARATOR_2 */
48111 -
48112 -#ifndef PATH_SEPARATOR_2
48113 -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
48114 -#else /* PATH_SEPARATOR_2 */
48115 -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
48116 -#endif /* PATH_SEPARATOR_2 */
48117 -
48118 -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
48119 -#define XFREE(stale) do { \
48120 - if (stale) { free ((void *) stale); stale = 0; } \
48121 -} while (0)
48122 -
48123 -/* -DDEBUG is fairly common in CFLAGS. */
48124 -#undef DEBUG
48125 -#if defined DEBUGWRAPPER
48126 -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
48127 -#else
48128 -# define DEBUG(format, ...)
48129 -#endif
48130 -
48131 -const char *program_name = NULL;
48132 -
48133 -void * xmalloc (size_t num);
48134 -char * xstrdup (const char *string);
48135 -const char * base_name (const char *name);
48136 -char * find_executable(const char *wrapper);
48137 -int check_executable(const char *path);
48138 -char * strendzap(char *str, const char *pat);
48139 -void lt_fatal (const char *message, ...);
48140 -
48141 -int
48142 -main (int argc, char *argv[])
48143 + case $host_os in
48144 + mingw*)
48145 + cat <<"EOF"
48146 +
48147 +/* Prepares an argument vector before calling spawn().
48148 + Note that spawn() does not by itself call the command interpreter
48149 + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
48150 + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
48151 + GetVersionEx(&v);
48152 + v.dwPlatformId == VER_PLATFORM_WIN32_NT;
48153 + }) ? "cmd.exe" : "command.com").
48154 + Instead it simply concatenates the arguments, separated by ' ', and calls
48155 + CreateProcess(). We must quote the arguments since Win32 CreateProcess()
48156 + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
48157 + special way:
48158 + - Space and tab are interpreted as delimiters. They are not treated as
48159 + delimiters if they are surrounded by double quotes: "...".
48160 + - Unescaped double quotes are removed from the input. Their only effect is
48161 + that within double quotes, space and tab are treated like normal
48162 + characters.
48163 + - Backslashes not followed by double quotes are not special.
48164 + - But 2*n+1 backslashes followed by a double quote become
48165 + n backslashes followed by a double quote (n >= 0):
48166 + \" -> "
48167 + \\\" -> \"
48168 + \\\\\" -> \\"
48169 + */
48170 +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
48171 +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
48172 +char **
48173 +prepare_spawn (char **argv)
48174 {
48175 - char **newargz;
48176 - int i;
48177 + size_t argc;
48178 + char **new_argv;
48179 + size_t i;
48180
48181 - program_name = (char *) xstrdup (base_name (argv[0]));
48182 - DEBUG("(main) argv[0] : %s\n",argv[0]);
48183 - DEBUG("(main) program_name : %s\n",program_name);
48184 - newargz = XMALLOC(char *, argc+2);
48185 -EOF
48186 + /* Count number of arguments. */
48187 + for (argc = 0; argv[argc] != NULL; argc++)
48188 + ;
48189
48190 - cat >> $cwrappersource <<EOF
48191 - newargz[0] = (char *) xstrdup("$SHELL");
48192 -EOF
48193 + /* Allocate new argument vector. */
48194 + new_argv = XMALLOC (char *, argc + 1);
48195
48196 - cat >> $cwrappersource <<"EOF"
48197 - newargz[1] = find_executable(argv[0]);
48198 - if (newargz[1] == NULL)
48199 - lt_fatal("Couldn't find %s", argv[0]);
48200 - DEBUG("(main) found exe at : %s\n",newargz[1]);
48201 - /* we know the script has the same name, without the .exe */
48202 - /* so make sure newargz[1] doesn't end in .exe */
48203 - strendzap(newargz[1],".exe");
48204 - for (i = 1; i < argc; i++)
48205 - newargz[i+1] = xstrdup(argv[i]);
48206 - newargz[argc+1] = NULL;
48207 + /* Put quoted arguments into the new argument vector. */
48208 + for (i = 0; i < argc; i++)
48209 + {
48210 + const char *string = argv[i];
48211 +
48212 + if (string[0] == '\0')
48213 + new_argv[i] = xstrdup ("\"\"");
48214 + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
48215 + {
48216 + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
48217 + size_t length;
48218 + unsigned int backslashes;
48219 + const char *s;
48220 + char *quoted_string;
48221 + char *p;
48222 +
48223 + length = 0;
48224 + backslashes = 0;
48225 + if (quote_around)
48226 + length++;
48227 + for (s = string; *s != '\0'; s++)
48228 + {
48229 + char c = *s;
48230 + if (c == '"')
48231 + length += backslashes + 1;
48232 + length++;
48233 + if (c == '\\')
48234 + backslashes++;
48235 + else
48236 + backslashes = 0;
48237 + }
48238 + if (quote_around)
48239 + length += backslashes + 1;
48240 +
48241 + quoted_string = XMALLOC (char, length + 1);
48242 +
48243 + p = quoted_string;
48244 + backslashes = 0;
48245 + if (quote_around)
48246 + *p++ = '"';
48247 + for (s = string; *s != '\0'; s++)
48248 + {
48249 + char c = *s;
48250 + if (c == '"')
48251 + {
48252 + unsigned int j;
48253 + for (j = backslashes + 1; j > 0; j--)
48254 + *p++ = '\\';
48255 + }
48256 + *p++ = c;
48257 + if (c == '\\')
48258 + backslashes++;
48259 + else
48260 + backslashes = 0;
48261 + }
48262 + if (quote_around)
48263 + {
48264 + unsigned int j;
48265 + for (j = backslashes; j > 0; j--)
48266 + *p++ = '\\';
48267 + *p++ = '"';
48268 + }
48269 + *p = '\0';
48270
48271 - for (i=0; i<argc+1; i++)
48272 - {
48273 - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
48274 - ;
48275 - }
48276 + new_argv[i] = quoted_string;
48277 + }
48278 + else
48279 + new_argv[i] = (char *) string;
48280 + }
48281 + new_argv[argc] = NULL;
48282
48283 + return new_argv;
48284 +}
48285 EOF
48286 + ;;
48287 + esac
48288
48289 - case $host_os in
48290 - mingw*)
48291 - cat >> $cwrappersource <<EOF
48292 - execv("$SHELL",(char const **)newargz);
48293 -EOF
48294 - ;;
48295 - *)
48296 - cat >> $cwrappersource <<EOF
48297 - execv("$SHELL",newargz);
48298 + cat <<"EOF"
48299 +void lt_dump_script (FILE* f)
48300 +{
48301 EOF
48302 - ;;
48303 - esac
48304 -
48305 - cat >> $cwrappersource <<"EOF"
48306 - return 127;
48307 + func_emit_wrapper yes |
48308 + $SED -n -e '
48309 +s/^\(.\{79\}\)\(..*\)/\1\
48310 +\2/
48311 +h
48312 +s/\([\\"]\)/\\\1/g
48313 +s/$/\\n/
48314 +s/\([^\n]*\).*/ fputs ("\1", f);/p
48315 +g
48316 +D'
48317 + cat <<"EOF"
48318 }
48319 -
48320 -void *
48321 -xmalloc (size_t num)
48322 -{
48323 - void * p = (void *) malloc (num);
48324 - if (!p)
48325 - lt_fatal ("Memory exhausted");
48326 -
48327 - return p;
48328 +EOF
48329 }
48330 +# end: func_emit_cwrapperexe_src
48331
48332 -char *
48333 -xstrdup (const char *string)
48334 +# func_win32_import_lib_p ARG
48335 +# True if ARG is an import lib, as indicated by $file_magic_cmd
48336 +func_win32_import_lib_p ()
48337 {
48338 - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
48339 -;
48340 + $opt_debug
48341 + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
48342 + *import*) : ;;
48343 + *) false ;;
48344 + esac
48345 }
48346
48347 -const char *
48348 -base_name (const char *name)
48349 +# func_mode_link arg...
48350 +func_mode_link ()
48351 {
48352 - const char *base;
48353 -
48354 -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
48355 - /* Skip over the disk name in MSDOS pathnames. */
48356 - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
48357 - name += 2;
48358 -#endif
48359 + $opt_debug
48360 + case $host in
48361 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
48362 + # It is impossible to link a dll without this setting, and
48363 + # we shouldn't force the makefile maintainer to figure out
48364 + # which system we are compiling for in order to pass an extra
48365 + # flag for every libtool invocation.
48366 + # allow_undefined=no
48367
48368 - for (base = name; *name; name++)
48369 - if (IS_DIR_SEPARATOR (*name))
48370 - base = name + 1;
48371 - return base;
48372 -}
48373 + # FIXME: Unfortunately, there are problems with the above when trying
48374 + # to make a dll which has undefined symbols, in which case not
48375 + # even a static library is built. For now, we need to specify
48376 + # -no-undefined on the libtool link line when we can be certain
48377 + # that all symbols are satisfied, otherwise we get a static library.
48378 + allow_undefined=yes
48379 + ;;
48380 + *)
48381 + allow_undefined=yes
48382 + ;;
48383 + esac
48384 + libtool_args=$nonopt
48385 + base_compile="$nonopt $@"
48386 + compile_command=$nonopt
48387 + finalize_command=$nonopt
48388
48389 -int
48390 -check_executable(const char * path)
48391 -{
48392 - struct stat st;
48393 -
48394 - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
48395 - if ((!path) || (!*path))
48396 - return 0;
48397 + compile_rpath=
48398 + finalize_rpath=
48399 + compile_shlibpath=
48400 + finalize_shlibpath=
48401 + convenience=
48402 + old_convenience=
48403 + deplibs=
48404 + old_deplibs=
48405 + compiler_flags=
48406 + linker_flags=
48407 + dllsearchpath=
48408 + lib_search_path=`pwd`
48409 + inst_prefix_dir=
48410 + new_inherited_linker_flags=
48411
48412 - if ((stat (path, &st) >= 0) &&
48413 - (
48414 - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
48415 -#if defined (S_IXOTH)
48416 - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
48417 -#endif
48418 -#if defined (S_IXGRP)
48419 - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
48420 -#endif
48421 - ((st.st_mode & S_IXUSR) == S_IXUSR))
48422 - )
48423 - return 1;
48424 - else
48425 - return 0;
48426 -}
48427 + avoid_version=no
48428 + bindir=
48429 + dlfiles=
48430 + dlprefiles=
48431 + dlself=no
48432 + export_dynamic=no
48433 + export_symbols=
48434 + export_symbols_regex=
48435 + generated=
48436 + libobjs=
48437 + ltlibs=
48438 + module=no
48439 + no_install=no
48440 + objs=
48441 + non_pic_objects=
48442 + precious_files_regex=
48443 + prefer_static_libs=no
48444 + preload=no
48445 + prev=
48446 + prevarg=
48447 + release=
48448 + rpath=
48449 + xrpath=
48450 + perm_rpath=
48451 + temp_rpath=
48452 + thread_safe=no
48453 + vinfo=
48454 + vinfo_number=no
48455 + weak_libs=
48456 + single_module="${wl}-single_module"
48457 + func_infer_tag $base_compile
48458
48459 -/* Searches for the full path of the wrapper. Returns
48460 - newly allocated full path name if found, NULL otherwise */
48461 -char *
48462 -find_executable (const char* wrapper)
48463 -{
48464 - int has_slash = 0;
48465 - const char* p;
48466 - const char* p_next;
48467 - /* static buffer for getcwd */
48468 - char tmp[LT_PATHMAX + 1];
48469 - int tmp_len;
48470 - char* concat_name;
48471 + # We need to know -static, to get the right output filenames.
48472 + for arg
48473 + do
48474 + case $arg in
48475 + -shared)
48476 + test "$build_libtool_libs" != yes && \
48477 + func_fatal_configuration "can not build a shared library"
48478 + build_old_libs=no
48479 + break
48480 + ;;
48481 + -all-static | -static | -static-libtool-libs)
48482 + case $arg in
48483 + -all-static)
48484 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
48485 + func_warning "complete static linking is impossible in this configuration"
48486 + fi
48487 + if test -n "$link_static_flag"; then
48488 + dlopen_self=$dlopen_self_static
48489 + fi
48490 + prefer_static_libs=yes
48491 + ;;
48492 + -static)
48493 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
48494 + dlopen_self=$dlopen_self_static
48495 + fi
48496 + prefer_static_libs=built
48497 + ;;
48498 + -static-libtool-libs)
48499 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
48500 + dlopen_self=$dlopen_self_static
48501 + fi
48502 + prefer_static_libs=yes
48503 + ;;
48504 + esac
48505 + build_libtool_libs=no
48506 + build_old_libs=yes
48507 + break
48508 + ;;
48509 + esac
48510 + done
48511
48512 - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
48513 + # See if our shared archives depend on static archives.
48514 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
48515
48516 - if ((wrapper == NULL) || (*wrapper == '\0'))
48517 - return NULL;
48518 + # Go through the arguments, transforming them on the way.
48519 + while test "$#" -gt 0; do
48520 + arg="$1"
48521 + shift
48522 + func_quote_for_eval "$arg"
48523 + qarg=$func_quote_for_eval_unquoted_result
48524 + func_append libtool_args " $func_quote_for_eval_result"
48525
48526 - /* Absolute path? */
48527 -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
48528 - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
48529 - {
48530 - concat_name = xstrdup (wrapper);
48531 - if (check_executable(concat_name))
48532 - return concat_name;
48533 - XFREE(concat_name);
48534 - }
48535 - else
48536 - {
48537 -#endif
48538 - if (IS_DIR_SEPARATOR (wrapper[0]))
48539 - {
48540 - concat_name = xstrdup (wrapper);
48541 - if (check_executable(concat_name))
48542 - return concat_name;
48543 - XFREE(concat_name);
48544 - }
48545 -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
48546 - }
48547 -#endif
48548 + # If the previous option needs an argument, assign it.
48549 + if test -n "$prev"; then
48550 + case $prev in
48551 + output)
48552 + func_append compile_command " @OUTPUT@"
48553 + func_append finalize_command " @OUTPUT@"
48554 + ;;
48555 + esac
48556
48557 - for (p = wrapper; *p; p++)
48558 - if (*p == '/')
48559 - {
48560 - has_slash = 1;
48561 - break;
48562 - }
48563 - if (!has_slash)
48564 - {
48565 - /* no slashes; search PATH */
48566 - const char* path = getenv ("PATH");
48567 - if (path != NULL)
48568 - {
48569 - for (p = path; *p; p = p_next)
48570 - {
48571 - const char* q;
48572 - size_t p_len;
48573 - for (q = p; *q; q++)
48574 - if (IS_PATH_SEPARATOR(*q))
48575 - break;
48576 - p_len = q - p;
48577 - p_next = (*q == '\0' ? q : q + 1);
48578 - if (p_len == 0)
48579 - {
48580 - /* empty path: current directory */
48581 - if (getcwd (tmp, LT_PATHMAX) == NULL)
48582 - lt_fatal ("getcwd failed");
48583 - tmp_len = strlen(tmp);
48584 - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
48585 - memcpy (concat_name, tmp, tmp_len);
48586 - concat_name[tmp_len] = '/';
48587 - strcpy (concat_name + tmp_len + 1, wrapper);
48588 - }
48589 - else
48590 - {
48591 - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
48592 - memcpy (concat_name, p, p_len);
48593 - concat_name[p_len] = '/';
48594 - strcpy (concat_name + p_len + 1, wrapper);
48595 - }
48596 - if (check_executable(concat_name))
48597 - return concat_name;
48598 - XFREE(concat_name);
48599 - }
48600 - }
48601 - /* not found in PATH; assume curdir */
48602 - }
48603 - /* Relative path | not found in path: prepend cwd */
48604 - if (getcwd (tmp, LT_PATHMAX) == NULL)
48605 - lt_fatal ("getcwd failed");
48606 - tmp_len = strlen(tmp);
48607 - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
48608 - memcpy (concat_name, tmp, tmp_len);
48609 - concat_name[tmp_len] = '/';
48610 - strcpy (concat_name + tmp_len + 1, wrapper);
48611 + case $prev in
48612 + bindir)
48613 + bindir="$arg"
48614 + prev=
48615 + continue
48616 + ;;
48617 + dlfiles|dlprefiles)
48618 + if test "$preload" = no; then
48619 + # Add the symbol object into the linking commands.
48620 + func_append compile_command " @SYMFILE@"
48621 + func_append finalize_command " @SYMFILE@"
48622 + preload=yes
48623 + fi
48624 + case $arg in
48625 + *.la | *.lo) ;; # We handle these cases below.
48626 + force)
48627 + if test "$dlself" = no; then
48628 + dlself=needless
48629 + export_dynamic=yes
48630 + fi
48631 + prev=
48632 + continue
48633 + ;;
48634 + self)
48635 + if test "$prev" = dlprefiles; then
48636 + dlself=yes
48637 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
48638 + dlself=yes
48639 + else
48640 + dlself=needless
48641 + export_dynamic=yes
48642 + fi
48643 + prev=
48644 + continue
48645 + ;;
48646 + *)
48647 + if test "$prev" = dlfiles; then
48648 + func_append dlfiles " $arg"
48649 + else
48650 + func_append dlprefiles " $arg"
48651 + fi
48652 + prev=
48653 + continue
48654 + ;;
48655 + esac
48656 + ;;
48657 + expsyms)
48658 + export_symbols="$arg"
48659 + test -f "$arg" \
48660 + || func_fatal_error "symbol file \`$arg' does not exist"
48661 + prev=
48662 + continue
48663 + ;;
48664 + expsyms_regex)
48665 + export_symbols_regex="$arg"
48666 + prev=
48667 + continue
48668 + ;;
48669 + framework)
48670 + case $host in
48671 + *-*-darwin*)
48672 + case "$deplibs " in
48673 + *" $qarg.ltframework "*) ;;
48674 + *) func_append deplibs " $qarg.ltframework" # this is fixed later
48675 + ;;
48676 + esac
48677 + ;;
48678 + esac
48679 + prev=
48680 + continue
48681 + ;;
48682 + inst_prefix)
48683 + inst_prefix_dir="$arg"
48684 + prev=
48685 + continue
48686 + ;;
48687 + objectlist)
48688 + if test -f "$arg"; then
48689 + save_arg=$arg
48690 + moreargs=
48691 + for fil in `cat "$save_arg"`
48692 + do
48693 +# func_append moreargs " $fil"
48694 + arg=$fil
48695 + # A libtool-controlled object.
48696
48697 - if (check_executable(concat_name))
48698 - return concat_name;
48699 - XFREE(concat_name);
48700 - return NULL;
48701 -}
48702 + # Check to see that this really is a libtool object.
48703 + if func_lalib_unsafe_p "$arg"; then
48704 + pic_object=
48705 + non_pic_object=
48706
48707 -char *
48708 -strendzap(char *str, const char *pat)
48709 -{
48710 - size_t len, patlen;
48711 + # Read the .lo file
48712 + func_source "$arg"
48713
48714 - assert(str != NULL);
48715 - assert(pat != NULL);
48716 + if test -z "$pic_object" ||
48717 + test -z "$non_pic_object" ||
48718 + test "$pic_object" = none &&
48719 + test "$non_pic_object" = none; then
48720 + func_fatal_error "cannot find name of object for \`$arg'"
48721 + fi
48722
48723 - len = strlen(str);
48724 - patlen = strlen(pat);
48725 + # Extract subdirectory from the argument.
48726 + func_dirname "$arg" "/" ""
48727 + xdir="$func_dirname_result"
48728
48729 - if (patlen <= len)
48730 - {
48731 - str += len - patlen;
48732 - if (strcmp(str, pat) == 0)
48733 - *str = '\0';
48734 - }
48735 - return str;
48736 -}
48737 + if test "$pic_object" != none; then
48738 + # Prepend the subdirectory the object is found in.
48739 + pic_object="$xdir$pic_object"
48740
48741 -static void
48742 -lt_error_core (int exit_status, const char * mode,
48743 - const char * message, va_list ap)
48744 -{
48745 - fprintf (stderr, "%s: %s: ", program_name, mode);
48746 - vfprintf (stderr, message, ap);
48747 - fprintf (stderr, ".\n");
48748 + if test "$prev" = dlfiles; then
48749 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
48750 + func_append dlfiles " $pic_object"
48751 + prev=
48752 + continue
48753 + else
48754 + # If libtool objects are unsupported, then we need to preload.
48755 + prev=dlprefiles
48756 + fi
48757 + fi
48758
48759 - if (exit_status >= 0)
48760 - exit (exit_status);
48761 -}
48762 + # CHECK ME: I think I busted this. -Ossama
48763 + if test "$prev" = dlprefiles; then
48764 + # Preload the old-style object.
48765 + func_append dlprefiles " $pic_object"
48766 + prev=
48767 + fi
48768
48769 -void
48770 -lt_fatal (const char *message, ...)
48771 -{
48772 - va_list ap;
48773 - va_start (ap, message);
48774 - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
48775 - va_end (ap);
48776 -}
48777 -EOF
48778 - # we should really use a build-platform specific compiler
48779 - # here, but OTOH, the wrappers (shell script and this C one)
48780 - # are only useful if you want to execute the "real" binary.
48781 - # Since the "real" binary is built for $host, then this
48782 - # wrapper might as well be built for $host, too.
48783 - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
48784 - ;;
48785 - esac
48786 - $rm $output
48787 - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
48788 + # A PIC object.
48789 + func_append libobjs " $pic_object"
48790 + arg="$pic_object"
48791 + fi
48792
48793 - $echo > $output "\
48794 -#! $SHELL
48795 + # Non-PIC object.
48796 + if test "$non_pic_object" != none; then
48797 + # Prepend the subdirectory the object is found in.
48798 + non_pic_object="$xdir$non_pic_object"
48799
48800 -# $output - temporary wrapper script for $objdir/$outputname
48801 -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
48802 -#
48803 -# The $output program cannot be directly executed until all the libtool
48804 -# libraries that it depends on are installed.
48805 -#
48806 -# This wrapper script should never be moved out of the build directory.
48807 -# If it is, it will not operate correctly.
48808 + # A standard non-PIC object
48809 + func_append non_pic_objects " $non_pic_object"
48810 + if test -z "$pic_object" || test "$pic_object" = none ; then
48811 + arg="$non_pic_object"
48812 + fi
48813 + else
48814 + # If the PIC object exists, use it instead.
48815 + # $xdir was prepended to $pic_object above.
48816 + non_pic_object="$pic_object"
48817 + func_append non_pic_objects " $non_pic_object"
48818 + fi
48819 + else
48820 + # Only an error if not doing a dry-run.
48821 + if $opt_dry_run; then
48822 + # Extract subdirectory from the argument.
48823 + func_dirname "$arg" "/" ""
48824 + xdir="$func_dirname_result"
48825 +
48826 + func_lo2o "$arg"
48827 + pic_object=$xdir$objdir/$func_lo2o_result
48828 + non_pic_object=$xdir$func_lo2o_result
48829 + func_append libobjs " $pic_object"
48830 + func_append non_pic_objects " $non_pic_object"
48831 + else
48832 + func_fatal_error "\`$arg' is not a valid libtool object"
48833 + fi
48834 + fi
48835 + done
48836 + else
48837 + func_fatal_error "link input file \`$arg' does not exist"
48838 + fi
48839 + arg=$save_arg
48840 + prev=
48841 + continue
48842 + ;;
48843 + precious_regex)
48844 + precious_files_regex="$arg"
48845 + prev=
48846 + continue
48847 + ;;
48848 + release)
48849 + release="-$arg"
48850 + prev=
48851 + continue
48852 + ;;
48853 + rpath | xrpath)
48854 + # We need an absolute path.
48855 + case $arg in
48856 + [\\/]* | [A-Za-z]:[\\/]*) ;;
48857 + *)
48858 + func_fatal_error "only absolute run-paths are allowed"
48859 + ;;
48860 + esac
48861 + if test "$prev" = rpath; then
48862 + case "$rpath " in
48863 + *" $arg "*) ;;
48864 + *) func_append rpath " $arg" ;;
48865 + esac
48866 + else
48867 + case "$xrpath " in
48868 + *" $arg "*) ;;
48869 + *) func_append xrpath " $arg" ;;
48870 + esac
48871 + fi
48872 + prev=
48873 + continue
48874 + ;;
48875 + shrext)
48876 + shrext_cmds="$arg"
48877 + prev=
48878 + continue
48879 + ;;
48880 + weak)
48881 + func_append weak_libs " $arg"
48882 + prev=
48883 + continue
48884 + ;;
48885 + xcclinker)
48886 + func_append linker_flags " $qarg"
48887 + func_append compiler_flags " $qarg"
48888 + prev=
48889 + func_append compile_command " $qarg"
48890 + func_append finalize_command " $qarg"
48891 + continue
48892 + ;;
48893 + xcompiler)
48894 + func_append compiler_flags " $qarg"
48895 + prev=
48896 + func_append compile_command " $qarg"
48897 + func_append finalize_command " $qarg"
48898 + continue
48899 + ;;
48900 + xlinker)
48901 + func_append linker_flags " $qarg"
48902 + func_append compiler_flags " $wl$qarg"
48903 + prev=
48904 + func_append compile_command " $wl$qarg"
48905 + func_append finalize_command " $wl$qarg"
48906 + continue
48907 + ;;
48908 + *)
48909 + eval "$prev=\"\$arg\""
48910 + prev=
48911 + continue
48912 + ;;
48913 + esac
48914 + fi # test -n "$prev"
48915
48916 -# Sed substitution that helps us do robust quoting. It backslashifies
48917 -# metacharacters that are still active within double-quoted strings.
48918 -Xsed='${SED} -e 1s/^X//'
48919 -sed_quote_subst='$sed_quote_subst'
48920 + prevarg="$arg"
48921
48922 -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
48923 -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
48924 - emulate sh
48925 - NULLCMD=:
48926 - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
48927 - # is contrary to our usage. Disable this feature.
48928 - alias -g '\${1+\"\$@\"}'='\"\$@\"'
48929 - setopt NO_GLOB_SUBST
48930 -else
48931 - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
48932 -fi
48933 -BIN_SH=xpg4; export BIN_SH # for Tru64
48934 -DUALCASE=1; export DUALCASE # for MKS sh
48935 + case $arg in
48936 + -all-static)
48937 + if test -n "$link_static_flag"; then
48938 + # See comment for -static flag below, for more details.
48939 + func_append compile_command " $link_static_flag"
48940 + func_append finalize_command " $link_static_flag"
48941 + fi
48942 + continue
48943 + ;;
48944
48945 -# The HP-UX ksh and POSIX shell print the target directory to stdout
48946 -# if CDPATH is set.
48947 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
48948 + -allow-undefined)
48949 + # FIXME: remove this flag sometime in the future.
48950 + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
48951 + ;;
48952
48953 -relink_command=\"$relink_command\"
48954 + -avoid-version)
48955 + avoid_version=yes
48956 + continue
48957 + ;;
48958
48959 -# This environment variable determines our operation mode.
48960 -if test \"\$libtool_install_magic\" = \"$magic\"; then
48961 - # install mode needs the following variable:
48962 - notinst_deplibs='$notinst_deplibs'
48963 -else
48964 - # When we are sourced in execute mode, \$file and \$echo are already set.
48965 - if test \"\$libtool_execute_magic\" != \"$magic\"; then
48966 - echo=\"$qecho\"
48967 - file=\"\$0\"
48968 - # Make sure echo works.
48969 - if test \"X\$1\" = X--no-reexec; then
48970 - # Discard the --no-reexec flag, and continue.
48971 - shift
48972 - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
48973 - # Yippee, \$echo works!
48974 - :
48975 - else
48976 - # Restart under the correct shell, and then maybe \$echo will work.
48977 - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
48978 - fi
48979 - fi\
48980 -"
48981 - $echo >> $output "\
48982 + -bindir)
48983 + prev=bindir
48984 + continue
48985 + ;;
48986
48987 - # Find the directory that this script lives in.
48988 - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
48989 - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
48990 + -dlopen)
48991 + prev=dlfiles
48992 + continue
48993 + ;;
48994
48995 - # Follow symbolic links until we get to the real thisdir.
48996 - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
48997 - while test -n \"\$file\"; do
48998 - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
48999 + -dlpreopen)
49000 + prev=dlprefiles
49001 + continue
49002 + ;;
49003
49004 - # If there was a directory component, then change thisdir.
49005 - if test \"x\$destdir\" != \"x\$file\"; then
49006 - case \"\$destdir\" in
49007 - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
49008 - *) thisdir=\"\$thisdir/\$destdir\" ;;
49009 - esac
49010 - fi
49011 + -export-dynamic)
49012 + export_dynamic=yes
49013 + continue
49014 + ;;
49015
49016 - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
49017 - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
49018 - done
49019 + -export-symbols | -export-symbols-regex)
49020 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
49021 + func_fatal_error "more than one -exported-symbols argument is not allowed"
49022 + fi
49023 + if test "X$arg" = "X-export-symbols"; then
49024 + prev=expsyms
49025 + else
49026 + prev=expsyms_regex
49027 + fi
49028 + continue
49029 + ;;
49030
49031 - # Try to get the absolute directory name.
49032 - absdir=\`cd \"\$thisdir\" && pwd\`
49033 - test -n \"\$absdir\" && thisdir=\"\$absdir\"
49034 -"
49035 + -framework)
49036 + prev=framework
49037 + continue
49038 + ;;
49039
49040 - if test "$fast_install" = yes; then
49041 - $echo >> $output "\
49042 - program=lt-'$outputname'$exeext
49043 - progdir=\"\$thisdir/$objdir\"
49044 + -inst-prefix-dir)
49045 + prev=inst_prefix
49046 + continue
49047 + ;;
49048
49049 - if test ! -f \"\$progdir/\$program\" || \\
49050 - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
49051 - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
49052 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
49053 + # so, if we see these flags be careful not to treat them like -L
49054 + -L[A-Z][A-Z]*:*)
49055 + case $with_gcc/$host in
49056 + no/*-*-irix* | /*-*-irix*)
49057 + func_append compile_command " $arg"
49058 + func_append finalize_command " $arg"
49059 + ;;
49060 + esac
49061 + continue
49062 + ;;
49063
49064 - file=\"\$\$-\$program\"
49065 + -L*)
49066 + func_stripname "-L" '' "$arg"
49067 + if test -z "$func_stripname_result"; then
49068 + if test "$#" -gt 0; then
49069 + func_fatal_error "require no space between \`-L' and \`$1'"
49070 + else
49071 + func_fatal_error "need path for \`-L' option"
49072 + fi
49073 + fi
49074 + func_resolve_sysroot "$func_stripname_result"
49075 + dir=$func_resolve_sysroot_result
49076 + # We need an absolute path.
49077 + case $dir in
49078 + [\\/]* | [A-Za-z]:[\\/]*) ;;
49079 + *)
49080 + absdir=`cd "$dir" && pwd`
49081 + test -z "$absdir" && \
49082 + func_fatal_error "cannot determine absolute directory name of \`$dir'"
49083 + dir="$absdir"
49084 + ;;
49085 + esac
49086 + case "$deplibs " in
49087 + *" -L$dir "* | *" $arg "*)
49088 + # Will only happen for absolute or sysroot arguments
49089 + ;;
49090 + *)
49091 + # Preserve sysroot, but never include relative directories
49092 + case $dir in
49093 + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
49094 + *) func_append deplibs " -L$dir" ;;
49095 + esac
49096 + func_append lib_search_path " $dir"
49097 + ;;
49098 + esac
49099 + case $host in
49100 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
49101 + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
49102 + case :$dllsearchpath: in
49103 + *":$dir:"*) ;;
49104 + ::) dllsearchpath=$dir;;
49105 + *) func_append dllsearchpath ":$dir";;
49106 + esac
49107 + case :$dllsearchpath: in
49108 + *":$testbindir:"*) ;;
49109 + ::) dllsearchpath=$testbindir;;
49110 + *) func_append dllsearchpath ":$testbindir";;
49111 + esac
49112 + ;;
49113 + esac
49114 + continue
49115 + ;;
49116
49117 - if test ! -d \"\$progdir\"; then
49118 - $mkdir \"\$progdir\"
49119 - else
49120 - $rm \"\$progdir/\$file\"
49121 - fi"
49122 + -l*)
49123 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
49124 + case $host in
49125 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
49126 + # These systems don't actually have a C or math library (as such)
49127 + continue
49128 + ;;
49129 + *-*-os2*)
49130 + # These systems don't actually have a C library (as such)
49131 + test "X$arg" = "X-lc" && continue
49132 + ;;
49133 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
49134 + # Do not include libc due to us having libc/libc_r.
49135 + test "X$arg" = "X-lc" && continue
49136 + ;;
49137 + *-*-rhapsody* | *-*-darwin1.[012])
49138 + # Rhapsody C and math libraries are in the System framework
49139 + func_append deplibs " System.ltframework"
49140 + continue
49141 + ;;
49142 + *-*-sco3.2v5* | *-*-sco5v6*)
49143 + # Causes problems with __ctype
49144 + test "X$arg" = "X-lc" && continue
49145 + ;;
49146 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
49147 + # Compiler inserts libc in the correct place for threads to work
49148 + test "X$arg" = "X-lc" && continue
49149 + ;;
49150 + esac
49151 + elif test "X$arg" = "X-lc_r"; then
49152 + case $host in
49153 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
49154 + # Do not include libc_r directly, use -pthread flag.
49155 + continue
49156 + ;;
49157 + esac
49158 + fi
49159 + func_append deplibs " $arg"
49160 + continue
49161 + ;;
49162 +
49163 + -module)
49164 + module=yes
49165 + continue
49166 + ;;
49167 +
49168 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
49169 + # classes, name mangling, and exception handling.
49170 + # Darwin uses the -arch flag to determine output architecture.
49171 + -model|-arch|-isysroot|--sysroot)
49172 + func_append compiler_flags " $arg"
49173 + func_append compile_command " $arg"
49174 + func_append finalize_command " $arg"
49175 + prev=xcompiler
49176 + continue
49177 + ;;
49178 +
49179 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
49180 + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
49181 + func_append compiler_flags " $arg"
49182 + func_append compile_command " $arg"
49183 + func_append finalize_command " $arg"
49184 + case "$new_inherited_linker_flags " in
49185 + *" $arg "*) ;;
49186 + * ) func_append new_inherited_linker_flags " $arg" ;;
49187 + esac
49188 + continue
49189 + ;;
49190 +
49191 + -multi_module)
49192 + single_module="${wl}-multi_module"
49193 + continue
49194 + ;;
49195 +
49196 + -no-fast-install)
49197 + fast_install=no
49198 + continue
49199 + ;;
49200 +
49201 + -no-install)
49202 + case $host in
49203 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
49204 + # The PATH hackery in wrapper scripts is required on Windows
49205 + # and Darwin in order for the loader to find any dlls it needs.
49206 + func_warning "\`-no-install' is ignored for $host"
49207 + func_warning "assuming \`-no-fast-install' instead"
49208 + fast_install=no
49209 + ;;
49210 + *) no_install=yes ;;
49211 + esac
49212 + continue
49213 + ;;
49214 +
49215 + -no-undefined)
49216 + allow_undefined=no
49217 + continue
49218 + ;;
49219 +
49220 + -objectlist)
49221 + prev=objectlist
49222 + continue
49223 + ;;
49224 +
49225 + -o) prev=output ;;
49226 +
49227 + -precious-files-regex)
49228 + prev=precious_regex
49229 + continue
49230 + ;;
49231 +
49232 + -release)
49233 + prev=release
49234 + continue
49235 + ;;
49236 +
49237 + -rpath)
49238 + prev=rpath
49239 + continue
49240 + ;;
49241 +
49242 + -R)
49243 + prev=xrpath
49244 + continue
49245 + ;;
49246 +
49247 + -R*)
49248 + func_stripname '-R' '' "$arg"
49249 + dir=$func_stripname_result
49250 + # We need an absolute path.
49251 + case $dir in
49252 + [\\/]* | [A-Za-z]:[\\/]*) ;;
49253 + =*)
49254 + func_stripname '=' '' "$dir"
49255 + dir=$lt_sysroot$func_stripname_result
49256 + ;;
49257 + *)
49258 + func_fatal_error "only absolute run-paths are allowed"
49259 + ;;
49260 + esac
49261 + case "$xrpath " in
49262 + *" $dir "*) ;;
49263 + *) func_append xrpath " $dir" ;;
49264 + esac
49265 + continue
49266 + ;;
49267 +
49268 + -shared)
49269 + # The effects of -shared are defined in a previous loop.
49270 + continue
49271 + ;;
49272 +
49273 + -shrext)
49274 + prev=shrext
49275 + continue
49276 + ;;
49277 +
49278 + -static | -static-libtool-libs)
49279 + # The effects of -static are defined in a previous loop.
49280 + # We used to do the same as -all-static on platforms that
49281 + # didn't have a PIC flag, but the assumption that the effects
49282 + # would be equivalent was wrong. It would break on at least
49283 + # Digital Unix and AIX.
49284 + continue
49285 + ;;
49286 +
49287 + -thread-safe)
49288 + thread_safe=yes
49289 + continue
49290 + ;;
49291 +
49292 + -version-info)
49293 + prev=vinfo
49294 + continue
49295 + ;;
49296 +
49297 + -version-number)
49298 + prev=vinfo
49299 + vinfo_number=yes
49300 + continue
49301 + ;;
49302 +
49303 + -weak)
49304 + prev=weak
49305 + continue
49306 + ;;
49307 +
49308 + -Wc,*)
49309 + func_stripname '-Wc,' '' "$arg"
49310 + args=$func_stripname_result
49311 + arg=
49312 + save_ifs="$IFS"; IFS=','
49313 + for flag in $args; do
49314 + IFS="$save_ifs"
49315 + func_quote_for_eval "$flag"
49316 + func_append arg " $func_quote_for_eval_result"
49317 + func_append compiler_flags " $func_quote_for_eval_result"
49318 + done
49319 + IFS="$save_ifs"
49320 + func_stripname ' ' '' "$arg"
49321 + arg=$func_stripname_result
49322 + ;;
49323 +
49324 + -Wl,*)
49325 + func_stripname '-Wl,' '' "$arg"
49326 + args=$func_stripname_result
49327 + arg=
49328 + save_ifs="$IFS"; IFS=','
49329 + for flag in $args; do
49330 + IFS="$save_ifs"
49331 + func_quote_for_eval "$flag"
49332 + func_append arg " $wl$func_quote_for_eval_result"
49333 + func_append compiler_flags " $wl$func_quote_for_eval_result"
49334 + func_append linker_flags " $func_quote_for_eval_result"
49335 + done
49336 + IFS="$save_ifs"
49337 + func_stripname ' ' '' "$arg"
49338 + arg=$func_stripname_result
49339 + ;;
49340 +
49341 + -Xcompiler)
49342 + prev=xcompiler
49343 + continue
49344 + ;;
49345 +
49346 + -Xlinker)
49347 + prev=xlinker
49348 + continue
49349 + ;;
49350 +
49351 + -XCClinker)
49352 + prev=xcclinker
49353 + continue
49354 + ;;
49355 +
49356 + # -msg_* for osf cc
49357 + -msg_*)
49358 + func_quote_for_eval "$arg"
49359 + arg="$func_quote_for_eval_result"
49360 + ;;
49361 +
49362 + # Flags to be passed through unchanged, with rationale:
49363 + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
49364 + # -r[0-9][0-9]* specify processor for the SGI compiler
49365 + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
49366 + # +DA*, +DD* enable 64-bit mode for the HP compiler
49367 + # -q* compiler args for the IBM compiler
49368 + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
49369 + # -F/path path to uninstalled frameworks, gcc on darwin
49370 + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
49371 + # @file GCC response files
49372 + # -tp=* Portland pgcc target processor selection
49373 + # --sysroot=* for sysroot support
49374 + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
49375 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
49376 + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
49377 + -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
49378 + func_quote_for_eval "$arg"
49379 + arg="$func_quote_for_eval_result"
49380 + func_append compile_command " $arg"
49381 + func_append finalize_command " $arg"
49382 + func_append compiler_flags " $arg"
49383 + continue
49384 + ;;
49385 +
49386 + # Some other compiler flag.
49387 + -* | +*)
49388 + func_quote_for_eval "$arg"
49389 + arg="$func_quote_for_eval_result"
49390 + ;;
49391 +
49392 + *.$objext)
49393 + # A standard object.
49394 + func_append objs " $arg"
49395 + ;;
49396 +
49397 + *.lo)
49398 + # A libtool-controlled object.
49399 +
49400 + # Check to see that this really is a libtool object.
49401 + if func_lalib_unsafe_p "$arg"; then
49402 + pic_object=
49403 + non_pic_object=
49404 +
49405 + # Read the .lo file
49406 + func_source "$arg"
49407 +
49408 + if test -z "$pic_object" ||
49409 + test -z "$non_pic_object" ||
49410 + test "$pic_object" = none &&
49411 + test "$non_pic_object" = none; then
49412 + func_fatal_error "cannot find name of object for \`$arg'"
49413 + fi
49414 +
49415 + # Extract subdirectory from the argument.
49416 + func_dirname "$arg" "/" ""
49417 + xdir="$func_dirname_result"
49418 +
49419 + if test "$pic_object" != none; then
49420 + # Prepend the subdirectory the object is found in.
49421 + pic_object="$xdir$pic_object"
49422 +
49423 + if test "$prev" = dlfiles; then
49424 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
49425 + func_append dlfiles " $pic_object"
49426 + prev=
49427 + continue
49428 + else
49429 + # If libtool objects are unsupported, then we need to preload.
49430 + prev=dlprefiles
49431 + fi
49432 + fi
49433 +
49434 + # CHECK ME: I think I busted this. -Ossama
49435 + if test "$prev" = dlprefiles; then
49436 + # Preload the old-style object.
49437 + func_append dlprefiles " $pic_object"
49438 + prev=
49439 + fi
49440 +
49441 + # A PIC object.
49442 + func_append libobjs " $pic_object"
49443 + arg="$pic_object"
49444 + fi
49445 +
49446 + # Non-PIC object.
49447 + if test "$non_pic_object" != none; then
49448 + # Prepend the subdirectory the object is found in.
49449 + non_pic_object="$xdir$non_pic_object"
49450 +
49451 + # A standard non-PIC object
49452 + func_append non_pic_objects " $non_pic_object"
49453 + if test -z "$pic_object" || test "$pic_object" = none ; then
49454 + arg="$non_pic_object"
49455 + fi
49456 + else
49457 + # If the PIC object exists, use it instead.
49458 + # $xdir was prepended to $pic_object above.
49459 + non_pic_object="$pic_object"
49460 + func_append non_pic_objects " $non_pic_object"
49461 + fi
49462 + else
49463 + # Only an error if not doing a dry-run.
49464 + if $opt_dry_run; then
49465 + # Extract subdirectory from the argument.
49466 + func_dirname "$arg" "/" ""
49467 + xdir="$func_dirname_result"
49468 +
49469 + func_lo2o "$arg"
49470 + pic_object=$xdir$objdir/$func_lo2o_result
49471 + non_pic_object=$xdir$func_lo2o_result
49472 + func_append libobjs " $pic_object"
49473 + func_append non_pic_objects " $non_pic_object"
49474 + else
49475 + func_fatal_error "\`$arg' is not a valid libtool object"
49476 + fi
49477 + fi
49478 + ;;
49479 +
49480 + *.$libext)
49481 + # An archive.
49482 + func_append deplibs " $arg"
49483 + func_append old_deplibs " $arg"
49484 + continue
49485 + ;;
49486 +
49487 + *.la)
49488 + # A libtool-controlled library.
49489 +
49490 + func_resolve_sysroot "$arg"
49491 + if test "$prev" = dlfiles; then
49492 + # This library was specified with -dlopen.
49493 + func_append dlfiles " $func_resolve_sysroot_result"
49494 + prev=
49495 + elif test "$prev" = dlprefiles; then
49496 + # The library was specified with -dlpreopen.
49497 + func_append dlprefiles " $func_resolve_sysroot_result"
49498 + prev=
49499 + else
49500 + func_append deplibs " $func_resolve_sysroot_result"
49501 + fi
49502 + continue
49503 + ;;
49504 +
49505 + # Some other compiler argument.
49506 + *)
49507 + # Unknown arguments in both finalize_command and compile_command need
49508 + # to be aesthetically quoted because they are evaled later.
49509 + func_quote_for_eval "$arg"
49510 + arg="$func_quote_for_eval_result"
49511 + ;;
49512 + esac # arg
49513 +
49514 + # Now actually substitute the argument into the commands.
49515 + if test -n "$arg"; then
49516 + func_append compile_command " $arg"
49517 + func_append finalize_command " $arg"
49518 + fi
49519 + done # argument parsing loop
49520 +
49521 + test -n "$prev" && \
49522 + func_fatal_help "the \`$prevarg' option requires an argument"
49523 +
49524 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
49525 + eval arg=\"$export_dynamic_flag_spec\"
49526 + func_append compile_command " $arg"
49527 + func_append finalize_command " $arg"
49528 + fi
49529 +
49530 + oldlibs=
49531 + # calculate the name of the file, without its directory
49532 + func_basename "$output"
49533 + outputname="$func_basename_result"
49534 + libobjs_save="$libobjs"
49535 +
49536 + if test -n "$shlibpath_var"; then
49537 + # get the directories listed in $shlibpath_var
49538 + eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
49539 + else
49540 + shlib_search_path=
49541 + fi
49542 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
49543 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
49544 +
49545 + func_dirname "$output" "/" ""
49546 + output_objdir="$func_dirname_result$objdir"
49547 + func_to_tool_file "$output_objdir/"
49548 + tool_output_objdir=$func_to_tool_file_result
49549 + # Create the object directory.
49550 + func_mkdir_p "$output_objdir"
49551 +
49552 + # Determine the type of output
49553 + case $output in
49554 + "")
49555 + func_fatal_help "you must specify an output file"
49556 + ;;
49557 + *.$libext) linkmode=oldlib ;;
49558 + *.lo | *.$objext) linkmode=obj ;;
49559 + *.la) linkmode=lib ;;
49560 + *) linkmode=prog ;; # Anything else should be a program.
49561 + esac
49562 +
49563 + specialdeplibs=
49564 +
49565 + libs=
49566 + # Find all interdependent deplibs by searching for libraries
49567 + # that are linked more than once (e.g. -la -lb -la)
49568 + for deplib in $deplibs; do
49569 + if $opt_preserve_dup_deps ; then
49570 + case "$libs " in
49571 + *" $deplib "*) func_append specialdeplibs " $deplib" ;;
49572 + esac
49573 + fi
49574 + func_append libs " $deplib"
49575 + done
49576 +
49577 + if test "$linkmode" = lib; then
49578 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
49579 +
49580 + # Compute libraries that are listed more than once in $predeps
49581 + # $postdeps and mark them as special (i.e., whose duplicates are
49582 + # not to be eliminated).
49583 + pre_post_deps=
49584 + if $opt_duplicate_compiler_generated_deps; then
49585 + for pre_post_dep in $predeps $postdeps; do
49586 + case "$pre_post_deps " in
49587 + *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
49588 + esac
49589 + func_append pre_post_deps " $pre_post_dep"
49590 + done
49591 + fi
49592 + pre_post_deps=
49593 + fi
49594 +
49595 + deplibs=
49596 + newdependency_libs=
49597 + newlib_search_path=
49598 + need_relink=no # whether we're linking any uninstalled libtool libraries
49599 + notinst_deplibs= # not-installed libtool libraries
49600 + notinst_path= # paths that contain not-installed libtool libraries
49601 +
49602 + case $linkmode in
49603 + lib)
49604 + passes="conv dlpreopen link"
49605 + for file in $dlfiles $dlprefiles; do
49606 + case $file in
49607 + *.la) ;;
49608 + *)
49609 + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
49610 + ;;
49611 + esac
49612 + done
49613 + ;;
49614 + prog)
49615 + compile_deplibs=
49616 + finalize_deplibs=
49617 + alldeplibs=no
49618 + newdlfiles=
49619 + newdlprefiles=
49620 + passes="conv scan dlopen dlpreopen link"
49621 + ;;
49622 + *) passes="conv"
49623 + ;;
49624 + esac
49625 +
49626 + for pass in $passes; do
49627 + # The preopen pass in lib mode reverses $deplibs; put it back here
49628 + # so that -L comes before libs that need it for instance...
49629 + if test "$linkmode,$pass" = "lib,link"; then
49630 + ## FIXME: Find the place where the list is rebuilt in the wrong
49631 + ## order, and fix it there properly
49632 + tmp_deplibs=
49633 + for deplib in $deplibs; do
49634 + tmp_deplibs="$deplib $tmp_deplibs"
49635 + done
49636 + deplibs="$tmp_deplibs"
49637 + fi
49638 +
49639 + if test "$linkmode,$pass" = "lib,link" ||
49640 + test "$linkmode,$pass" = "prog,scan"; then
49641 + libs="$deplibs"
49642 + deplibs=
49643 + fi
49644 + if test "$linkmode" = prog; then
49645 + case $pass in
49646 + dlopen) libs="$dlfiles" ;;
49647 + dlpreopen) libs="$dlprefiles" ;;
49648 + link)
49649 + libs="$deplibs %DEPLIBS%"
49650 + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
49651 + ;;
49652 + esac
49653 + fi
49654 + if test "$linkmode,$pass" = "lib,dlpreopen"; then
49655 + # Collect and forward deplibs of preopened libtool libs
49656 + for lib in $dlprefiles; do
49657 + # Ignore non-libtool-libs
49658 + dependency_libs=
49659 + func_resolve_sysroot "$lib"
49660 + case $lib in
49661 + *.la) func_source "$func_resolve_sysroot_result" ;;
49662 + esac
49663 +
49664 + # Collect preopened libtool deplibs, except any this library
49665 + # has declared as weak libs
49666 + for deplib in $dependency_libs; do
49667 + func_basename "$deplib"
49668 + deplib_base=$func_basename_result
49669 + case " $weak_libs " in
49670 + *" $deplib_base "*) ;;
49671 + *) func_append deplibs " $deplib" ;;
49672 + esac
49673 + done
49674 + done
49675 + libs="$dlprefiles"
49676 + fi
49677 + if test "$pass" = dlopen; then
49678 + # Collect dlpreopened libraries
49679 + save_deplibs="$deplibs"
49680 + deplibs=
49681 + fi
49682 +
49683 + for deplib in $libs; do
49684 + lib=
49685 + found=no
49686 + case $deplib in
49687 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
49688 + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
49689 + if test "$linkmode,$pass" = "prog,link"; then
49690 + compile_deplibs="$deplib $compile_deplibs"
49691 + finalize_deplibs="$deplib $finalize_deplibs"
49692 + else
49693 + func_append compiler_flags " $deplib"
49694 + if test "$linkmode" = lib ; then
49695 + case "$new_inherited_linker_flags " in
49696 + *" $deplib "*) ;;
49697 + * ) func_append new_inherited_linker_flags " $deplib" ;;
49698 + esac
49699 + fi
49700 + fi
49701 + continue
49702 + ;;
49703 + -l*)
49704 + if test "$linkmode" != lib && test "$linkmode" != prog; then
49705 + func_warning "\`-l' is ignored for archives/objects"
49706 + continue
49707 + fi
49708 + func_stripname '-l' '' "$deplib"
49709 + name=$func_stripname_result
49710 + if test "$linkmode" = lib; then
49711 + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
49712 + else
49713 + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
49714 + fi
49715 + for searchdir in $searchdirs; do
49716 + for search_ext in .la $std_shrext .so .a; do
49717 + # Search the libtool library
49718 + lib="$searchdir/lib${name}${search_ext}"
49719 + if test -f "$lib"; then
49720 + if test "$search_ext" = ".la"; then
49721 + found=yes
49722 + else
49723 + found=no
49724 + fi
49725 + break 2
49726 + fi
49727 + done
49728 + done
49729 + if test "$found" != yes; then
49730 + # deplib doesn't seem to be a libtool library
49731 + if test "$linkmode,$pass" = "prog,link"; then
49732 + compile_deplibs="$deplib $compile_deplibs"
49733 + finalize_deplibs="$deplib $finalize_deplibs"
49734 + else
49735 + deplibs="$deplib $deplibs"
49736 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
49737 + fi
49738 + continue
49739 + else # deplib is a libtool library
49740 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
49741 + # We need to do some special things here, and not later.
49742 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
49743 + case " $predeps $postdeps " in
49744 + *" $deplib "*)
49745 + if func_lalib_p "$lib"; then
49746 + library_names=
49747 + old_library=
49748 + func_source "$lib"
49749 + for l in $old_library $library_names; do
49750 + ll="$l"
49751 + done
49752 + if test "X$ll" = "X$old_library" ; then # only static version available
49753 + found=no
49754 + func_dirname "$lib" "" "."
49755 + ladir="$func_dirname_result"
49756 + lib=$ladir/$old_library
49757 + if test "$linkmode,$pass" = "prog,link"; then
49758 + compile_deplibs="$deplib $compile_deplibs"
49759 + finalize_deplibs="$deplib $finalize_deplibs"
49760 + else
49761 + deplibs="$deplib $deplibs"
49762 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
49763 + fi
49764 + continue
49765 + fi
49766 + fi
49767 + ;;
49768 + *) ;;
49769 + esac
49770 + fi
49771 + fi
49772 + ;; # -l
49773 + *.ltframework)
49774 + if test "$linkmode,$pass" = "prog,link"; then
49775 + compile_deplibs="$deplib $compile_deplibs"
49776 + finalize_deplibs="$deplib $finalize_deplibs"
49777 + else
49778 + deplibs="$deplib $deplibs"
49779 + if test "$linkmode" = lib ; then
49780 + case "$new_inherited_linker_flags " in
49781 + *" $deplib "*) ;;
49782 + * ) func_append new_inherited_linker_flags " $deplib" ;;
49783 + esac
49784 + fi
49785 + fi
49786 + continue
49787 + ;;
49788 + -L*)
49789 + case $linkmode in
49790 + lib)
49791 + deplibs="$deplib $deplibs"
49792 + test "$pass" = conv && continue
49793 + newdependency_libs="$deplib $newdependency_libs"
49794 + func_stripname '-L' '' "$deplib"
49795 + func_resolve_sysroot "$func_stripname_result"
49796 + func_append newlib_search_path " $func_resolve_sysroot_result"
49797 + ;;
49798 + prog)
49799 + if test "$pass" = conv; then
49800 + deplibs="$deplib $deplibs"
49801 + continue
49802 + fi
49803 + if test "$pass" = scan; then
49804 + deplibs="$deplib $deplibs"
49805 + else
49806 + compile_deplibs="$deplib $compile_deplibs"
49807 + finalize_deplibs="$deplib $finalize_deplibs"
49808 + fi
49809 + func_stripname '-L' '' "$deplib"
49810 + func_resolve_sysroot "$func_stripname_result"
49811 + func_append newlib_search_path " $func_resolve_sysroot_result"
49812 + ;;
49813 + *)
49814 + func_warning "\`-L' is ignored for archives/objects"
49815 + ;;
49816 + esac # linkmode
49817 + continue
49818 + ;; # -L
49819 + -R*)
49820 + if test "$pass" = link; then
49821 + func_stripname '-R' '' "$deplib"
49822 + func_resolve_sysroot "$func_stripname_result"
49823 + dir=$func_resolve_sysroot_result
49824 + # Make sure the xrpath contains only unique directories.
49825 + case "$xrpath " in
49826 + *" $dir "*) ;;
49827 + *) func_append xrpath " $dir" ;;
49828 + esac
49829 + fi
49830 + deplibs="$deplib $deplibs"
49831 + continue
49832 + ;;
49833 + *.la)
49834 + func_resolve_sysroot "$deplib"
49835 + lib=$func_resolve_sysroot_result
49836 + ;;
49837 + *.$libext)
49838 + if test "$pass" = conv; then
49839 + deplibs="$deplib $deplibs"
49840 + continue
49841 + fi
49842 + case $linkmode in
49843 + lib)
49844 + # Linking convenience modules into shared libraries is allowed,
49845 + # but linking other static libraries is non-portable.
49846 + case " $dlpreconveniencelibs " in
49847 + *" $deplib "*) ;;
49848 + *)
49849 + valid_a_lib=no
49850 + case $deplibs_check_method in
49851 + match_pattern*)
49852 + set dummy $deplibs_check_method; shift
49853 + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
49854 + if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
49855 + | $EGREP "$match_pattern_regex" > /dev/null; then
49856 + valid_a_lib=yes
49857 + fi
49858 + ;;
49859 + pass_all)
49860 + valid_a_lib=yes
49861 + ;;
49862 + esac
49863 + if test "$valid_a_lib" != yes; then
49864 + echo
49865 + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
49866 + echo "*** I have the capability to make that library automatically link in when"
49867 + echo "*** you link to this library. But I can only do this if you have a"
49868 + echo "*** shared version of the library, which you do not appear to have"
49869 + echo "*** because the file extensions .$libext of this argument makes me believe"
49870 + echo "*** that it is just a static archive that I should not use here."
49871 + else
49872 + echo
49873 + $ECHO "*** Warning: Linking the shared library $output against the"
49874 + $ECHO "*** static library $deplib is not portable!"
49875 + deplibs="$deplib $deplibs"
49876 + fi
49877 + ;;
49878 + esac
49879 + continue
49880 + ;;
49881 + prog)
49882 + if test "$pass" != link; then
49883 + deplibs="$deplib $deplibs"
49884 + else
49885 + compile_deplibs="$deplib $compile_deplibs"
49886 + finalize_deplibs="$deplib $finalize_deplibs"
49887 + fi
49888 + continue
49889 + ;;
49890 + esac # linkmode
49891 + ;; # *.$libext
49892 + *.lo | *.$objext)
49893 + if test "$pass" = conv; then
49894 + deplibs="$deplib $deplibs"
49895 + elif test "$linkmode" = prog; then
49896 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
49897 + # If there is no dlopen support or we're linking statically,
49898 + # we need to preload.
49899 + func_append newdlprefiles " $deplib"
49900 + compile_deplibs="$deplib $compile_deplibs"
49901 + finalize_deplibs="$deplib $finalize_deplibs"
49902 + else
49903 + func_append newdlfiles " $deplib"
49904 + fi
49905 + fi
49906 + continue
49907 + ;;
49908 + %DEPLIBS%)
49909 + alldeplibs=yes
49910 + continue
49911 + ;;
49912 + esac # case $deplib
49913 +
49914 + if test "$found" = yes || test -f "$lib"; then :
49915 + else
49916 + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
49917 + fi
49918 +
49919 + # Check to see that this really is a libtool archive.
49920 + func_lalib_unsafe_p "$lib" \
49921 + || func_fatal_error "\`$lib' is not a valid libtool archive"
49922 +
49923 + func_dirname "$lib" "" "."
49924 + ladir="$func_dirname_result"
49925 +
49926 + dlname=
49927 + dlopen=
49928 + dlpreopen=
49929 + libdir=
49930 + library_names=
49931 + old_library=
49932 + inherited_linker_flags=
49933 + # If the library was installed with an old release of libtool,
49934 + # it will not redefine variables installed, or shouldnotlink
49935 + installed=yes
49936 + shouldnotlink=no
49937 + avoidtemprpath=
49938 +
49939 +
49940 + # Read the .la file
49941 + func_source "$lib"
49942 +
49943 + # Convert "-framework foo" to "foo.ltframework"
49944 + if test -n "$inherited_linker_flags"; then
49945 + tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
49946 + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
49947 + case " $new_inherited_linker_flags " in
49948 + *" $tmp_inherited_linker_flag "*) ;;
49949 + *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
49950 + esac
49951 + done
49952 + fi
49953 + dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
49954 + if test "$linkmode,$pass" = "lib,link" ||
49955 + test "$linkmode,$pass" = "prog,scan" ||
49956 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
49957 + test -n "$dlopen" && func_append dlfiles " $dlopen"
49958 + test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
49959 + fi
49960 +
49961 + if test "$pass" = conv; then
49962 + # Only check for convenience libraries
49963 + deplibs="$lib $deplibs"
49964 + if test -z "$libdir"; then
49965 + if test -z "$old_library"; then
49966 + func_fatal_error "cannot find name of link library for \`$lib'"
49967 + fi
49968 + # It is a libtool convenience library, so add in its objects.
49969 + func_append convenience " $ladir/$objdir/$old_library"
49970 + func_append old_convenience " $ladir/$objdir/$old_library"
49971 + tmp_libs=
49972 + for deplib in $dependency_libs; do
49973 + deplibs="$deplib $deplibs"
49974 + if $opt_preserve_dup_deps ; then
49975 + case "$tmp_libs " in
49976 + *" $deplib "*) func_append specialdeplibs " $deplib" ;;
49977 + esac
49978 + fi
49979 + func_append tmp_libs " $deplib"
49980 + done
49981 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
49982 + func_fatal_error "\`$lib' is not a convenience library"
49983 + fi
49984 + continue
49985 + fi # $pass = conv
49986 +
49987 +
49988 + # Get the name of the library we link against.
49989 + linklib=
49990 + if test -n "$old_library" &&
49991 + { test "$prefer_static_libs" = yes ||
49992 + test "$prefer_static_libs,$installed" = "built,no"; }; then
49993 + linklib=$old_library
49994 + else
49995 + for l in $old_library $library_names; do
49996 + linklib="$l"
49997 + done
49998 + fi
49999 + if test -z "$linklib"; then
50000 + func_fatal_error "cannot find name of link library for \`$lib'"
50001 + fi
50002 +
50003 + # This library was specified with -dlopen.
50004 + if test "$pass" = dlopen; then
50005 + if test -z "$libdir"; then
50006 + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
50007 + fi
50008 + if test -z "$dlname" ||
50009 + test "$dlopen_support" != yes ||
50010 + test "$build_libtool_libs" = no; then
50011 + # If there is no dlname, no dlopen support or we're linking
50012 + # statically, we need to preload. We also need to preload any
50013 + # dependent libraries so libltdl's deplib preloader doesn't
50014 + # bomb out in the load deplibs phase.
50015 + func_append dlprefiles " $lib $dependency_libs"
50016 + else
50017 + func_append newdlfiles " $lib"
50018 + fi
50019 + continue
50020 + fi # $pass = dlopen
50021 +
50022 + # We need an absolute path.
50023 + case $ladir in
50024 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
50025 + *)
50026 + abs_ladir=`cd "$ladir" && pwd`
50027 + if test -z "$abs_ladir"; then
50028 + func_warning "cannot determine absolute directory name of \`$ladir'"
50029 + func_warning "passing it literally to the linker, although it might fail"
50030 + abs_ladir="$ladir"
50031 + fi
50032 + ;;
50033 + esac
50034 + func_basename "$lib"
50035 + laname="$func_basename_result"
50036 +
50037 + # Find the relevant object directory and library name.
50038 + if test "X$installed" = Xyes; then
50039 + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
50040 + func_warning "library \`$lib' was moved."
50041 + dir="$ladir"
50042 + absdir="$abs_ladir"
50043 + libdir="$abs_ladir"
50044 + else
50045 + dir="$lt_sysroot$libdir"
50046 + absdir="$lt_sysroot$libdir"
50047 + fi
50048 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
50049 + else
50050 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
50051 + dir="$ladir"
50052 + absdir="$abs_ladir"
50053 + # Remove this search path later
50054 + func_append notinst_path " $abs_ladir"
50055 + else
50056 + dir="$ladir/$objdir"
50057 + absdir="$abs_ladir/$objdir"
50058 + # Remove this search path later
50059 + func_append notinst_path " $abs_ladir"
50060 + fi
50061 + fi # $installed = yes
50062 + func_stripname 'lib' '.la' "$laname"
50063 + name=$func_stripname_result
50064 +
50065 + # This library was specified with -dlpreopen.
50066 + if test "$pass" = dlpreopen; then
50067 + if test -z "$libdir" && test "$linkmode" = prog; then
50068 + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
50069 + fi
50070 + case "$host" in
50071 + # special handling for platforms with PE-DLLs.
50072 + *cygwin* | *mingw* | *cegcc* )
50073 + # Linker will automatically link against shared library if both
50074 + # static and shared are present. Therefore, ensure we extract
50075 + # symbols from the import library if a shared library is present
50076 + # (otherwise, the dlopen module name will be incorrect). We do
50077 + # this by putting the import library name into $newdlprefiles.
50078 + # We recover the dlopen module name by 'saving' the la file
50079 + # name in a special purpose variable, and (later) extracting the
50080 + # dlname from the la file.
50081 + if test -n "$dlname"; then
50082 + func_tr_sh "$dir/$linklib"
50083 + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
50084 + func_append newdlprefiles " $dir/$linklib"
50085 + else
50086 + func_append newdlprefiles " $dir/$old_library"
50087 + # Keep a list of preopened convenience libraries to check
50088 + # that they are being used correctly in the link pass.
50089 + test -z "$libdir" && \
50090 + func_append dlpreconveniencelibs " $dir/$old_library"
50091 + fi
50092 + ;;
50093 + * )
50094 + # Prefer using a static library (so that no silly _DYNAMIC symbols
50095 + # are required to link).
50096 + if test -n "$old_library"; then
50097 + func_append newdlprefiles " $dir/$old_library"
50098 + # Keep a list of preopened convenience libraries to check
50099 + # that they are being used correctly in the link pass.
50100 + test -z "$libdir" && \
50101 + func_append dlpreconveniencelibs " $dir/$old_library"
50102 + # Otherwise, use the dlname, so that lt_dlopen finds it.
50103 + elif test -n "$dlname"; then
50104 + func_append newdlprefiles " $dir/$dlname"
50105 + else
50106 + func_append newdlprefiles " $dir/$linklib"
50107 + fi
50108 + ;;
50109 + esac
50110 + fi # $pass = dlpreopen
50111 +
50112 + if test -z "$libdir"; then
50113 + # Link the convenience library
50114 + if test "$linkmode" = lib; then
50115 + deplibs="$dir/$old_library $deplibs"
50116 + elif test "$linkmode,$pass" = "prog,link"; then
50117 + compile_deplibs="$dir/$old_library $compile_deplibs"
50118 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
50119 + else
50120 + deplibs="$lib $deplibs" # used for prog,scan pass
50121 + fi
50122 + continue
50123 + fi
50124 +
50125 +
50126 + if test "$linkmode" = prog && test "$pass" != link; then
50127 + func_append newlib_search_path " $ladir"
50128 + deplibs="$lib $deplibs"
50129 +
50130 + linkalldeplibs=no
50131 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
50132 + test "$build_libtool_libs" = no; then
50133 + linkalldeplibs=yes
50134 + fi
50135 +
50136 + tmp_libs=
50137 + for deplib in $dependency_libs; do
50138 + case $deplib in
50139 + -L*) func_stripname '-L' '' "$deplib"
50140 + func_resolve_sysroot "$func_stripname_result"
50141 + func_append newlib_search_path " $func_resolve_sysroot_result"
50142 + ;;
50143 + esac
50144 + # Need to link against all dependency_libs?
50145 + if test "$linkalldeplibs" = yes; then
50146 + deplibs="$deplib $deplibs"
50147 + else
50148 + # Need to hardcode shared library paths
50149 + # or/and link against static libraries
50150 + newdependency_libs="$deplib $newdependency_libs"
50151 + fi
50152 + if $opt_preserve_dup_deps ; then
50153 + case "$tmp_libs " in
50154 + *" $deplib "*) func_append specialdeplibs " $deplib" ;;
50155 + esac
50156 + fi
50157 + func_append tmp_libs " $deplib"
50158 + done # for deplib
50159 + continue
50160 + fi # $linkmode = prog...
50161 +
50162 + if test "$linkmode,$pass" = "prog,link"; then
50163 + if test -n "$library_names" &&
50164 + { { test "$prefer_static_libs" = no ||
50165 + test "$prefer_static_libs,$installed" = "built,yes"; } ||
50166 + test -z "$old_library"; }; then
50167 + # We need to hardcode the library path
50168 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
50169 + # Make sure the rpath contains only unique directories.
50170 + case "$temp_rpath:" in
50171 + *"$absdir:"*) ;;
50172 + *) func_append temp_rpath "$absdir:" ;;
50173 + esac
50174 + fi
50175 +
50176 + # Hardcode the library path.
50177 + # Skip directories that are in the system default run-time
50178 + # search path.
50179 + case " $sys_lib_dlsearch_path " in
50180 + *" $absdir "*) ;;
50181 + *)
50182 + case "$compile_rpath " in
50183 + *" $absdir "*) ;;
50184 + *) func_append compile_rpath " $absdir" ;;
50185 + esac
50186 + ;;
50187 + esac
50188 + case " $sys_lib_dlsearch_path " in
50189 + *" $libdir "*) ;;
50190 + *)
50191 + case "$finalize_rpath " in
50192 + *" $libdir "*) ;;
50193 + *) func_append finalize_rpath " $libdir" ;;
50194 + esac
50195 + ;;
50196 + esac
50197 + fi # $linkmode,$pass = prog,link...
50198 +
50199 + if test "$alldeplibs" = yes &&
50200 + { test "$deplibs_check_method" = pass_all ||
50201 + { test "$build_libtool_libs" = yes &&
50202 + test -n "$library_names"; }; }; then
50203 + # We only need to search for static libraries
50204 + continue
50205 + fi
50206 + fi
50207 +
50208 + link_static=no # Whether the deplib will be linked statically
50209 + use_static_libs=$prefer_static_libs
50210 + if test "$use_static_libs" = built && test "$installed" = yes; then
50211 + use_static_libs=no
50212 + fi
50213 + if test -n "$library_names" &&
50214 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
50215 + case $host in
50216 + *cygwin* | *mingw* | *cegcc*)
50217 + # No point in relinking DLLs because paths are not encoded
50218 + func_append notinst_deplibs " $lib"
50219 + need_relink=no
50220 + ;;
50221 + *)
50222 + if test "$installed" = no; then
50223 + func_append notinst_deplibs " $lib"
50224 + need_relink=yes
50225 + fi
50226 + ;;
50227 + esac
50228 + # This is a shared library
50229 +
50230 + # Warn about portability, can't link against -module's on some
50231 + # systems (darwin). Don't bleat about dlopened modules though!
50232 + dlopenmodule=""
50233 + for dlpremoduletest in $dlprefiles; do
50234 + if test "X$dlpremoduletest" = "X$lib"; then
50235 + dlopenmodule="$dlpremoduletest"
50236 + break
50237 + fi
50238 + done
50239 + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
50240 + echo
50241 + if test "$linkmode" = prog; then
50242 + $ECHO "*** Warning: Linking the executable $output against the loadable module"
50243 + else
50244 + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
50245 + fi
50246 + $ECHO "*** $linklib is not portable!"
50247 + fi
50248 + if test "$linkmode" = lib &&
50249 + test "$hardcode_into_libs" = yes; then
50250 + # Hardcode the library path.
50251 + # Skip directories that are in the system default run-time
50252 + # search path.
50253 + case " $sys_lib_dlsearch_path " in
50254 + *" $absdir "*) ;;
50255 + *)
50256 + case "$compile_rpath " in
50257 + *" $absdir "*) ;;
50258 + *) func_append compile_rpath " $absdir" ;;
50259 + esac
50260 + ;;
50261 + esac
50262 + case " $sys_lib_dlsearch_path " in
50263 + *" $libdir "*) ;;
50264 + *)
50265 + case "$finalize_rpath " in
50266 + *" $libdir "*) ;;
50267 + *) func_append finalize_rpath " $libdir" ;;
50268 + esac
50269 + ;;
50270 + esac
50271 + fi
50272 +
50273 + if test -n "$old_archive_from_expsyms_cmds"; then
50274 + # figure out the soname
50275 + set dummy $library_names
50276 + shift
50277 + realname="$1"
50278 + shift
50279 + libname=`eval "\\$ECHO \"$libname_spec\""`
50280 + # use dlname if we got it. it's perfectly good, no?
50281 + if test -n "$dlname"; then
50282 + soname="$dlname"
50283 + elif test -n "$soname_spec"; then
50284 + # bleh windows
50285 + case $host in
50286 + *cygwin* | mingw* | *cegcc*)
50287 + func_arith $current - $age
50288 + major=$func_arith_result
50289 + versuffix="-$major"
50290 + ;;
50291 + esac
50292 + eval soname=\"$soname_spec\"
50293 + else
50294 + soname="$realname"
50295 + fi
50296 +
50297 + # Make a new name for the extract_expsyms_cmds to use
50298 + soroot="$soname"
50299 + func_basename "$soroot"
50300 + soname="$func_basename_result"
50301 + func_stripname 'lib' '.dll' "$soname"
50302 + newlib=libimp-$func_stripname_result.a
50303 +
50304 + # If the library has no export list, then create one now
50305 + if test -f "$output_objdir/$soname-def"; then :
50306 + else
50307 + func_verbose "extracting exported symbol list from \`$soname'"
50308 + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
50309 + fi
50310 +
50311 + # Create $newlib
50312 + if test -f "$output_objdir/$newlib"; then :; else
50313 + func_verbose "generating import library for \`$soname'"
50314 + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
50315 + fi
50316 + # make sure the library variables are pointing to the new library
50317 + dir=$output_objdir
50318 + linklib=$newlib
50319 + fi # test -n "$old_archive_from_expsyms_cmds"
50320 +
50321 + if test "$linkmode" = prog || test "$opt_mode" != relink; then
50322 + add_shlibpath=
50323 + add_dir=
50324 + add=
50325 + lib_linked=yes
50326 + case $hardcode_action in
50327 + immediate | unsupported)
50328 + if test "$hardcode_direct" = no; then
50329 + add="$dir/$linklib"
50330 + case $host in
50331 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
50332 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
50333 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
50334 + *-*-unixware7*) add_dir="-L$dir" ;;
50335 + *-*-darwin* )
50336 + # if the lib is a (non-dlopened) module then we can not
50337 + # link against it, someone is ignoring the earlier warnings
50338 + if /usr/bin/file -L $add 2> /dev/null |
50339 + $GREP ": [^:]* bundle" >/dev/null ; then
50340 + if test "X$dlopenmodule" != "X$lib"; then
50341 + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
50342 + if test -z "$old_library" ; then
50343 + echo
50344 + echo "*** And there doesn't seem to be a static archive available"
50345 + echo "*** The link will probably fail, sorry"
50346 + else
50347 + add="$dir/$old_library"
50348 + fi
50349 + elif test -n "$old_library"; then
50350 + add="$dir/$old_library"
50351 + fi
50352 + fi
50353 + esac
50354 + elif test "$hardcode_minus_L" = no; then
50355 + case $host in
50356 + *-*-sunos*) add_shlibpath="$dir" ;;
50357 + esac
50358 + add_dir="-L$dir"
50359 + add="-l$name"
50360 + elif test "$hardcode_shlibpath_var" = no; then
50361 + add_shlibpath="$dir"
50362 + add="-l$name"
50363 + else
50364 + lib_linked=no
50365 + fi
50366 + ;;
50367 + relink)
50368 + if test "$hardcode_direct" = yes &&
50369 + test "$hardcode_direct_absolute" = no; then
50370 + add="$dir/$linklib"
50371 + elif test "$hardcode_minus_L" = yes; then
50372 + add_dir="-L$absdir"
50373 + # Try looking first in the location we're being installed to.
50374 + if test -n "$inst_prefix_dir"; then
50375 + case $libdir in
50376 + [\\/]*)
50377 + func_append add_dir " -L$inst_prefix_dir$libdir"
50378 + ;;
50379 + esac
50380 + fi
50381 + add="-l$name"
50382 + elif test "$hardcode_shlibpath_var" = yes; then
50383 + add_shlibpath="$dir"
50384 + add="-l$name"
50385 + else
50386 + lib_linked=no
50387 + fi
50388 + ;;
50389 + *) lib_linked=no ;;
50390 + esac
50391 +
50392 + if test "$lib_linked" != yes; then
50393 + func_fatal_configuration "unsupported hardcode properties"
50394 + fi
50395 +
50396 + if test -n "$add_shlibpath"; then
50397 + case :$compile_shlibpath: in
50398 + *":$add_shlibpath:"*) ;;
50399 + *) func_append compile_shlibpath "$add_shlibpath:" ;;
50400 + esac
50401 + fi
50402 + if test "$linkmode" = prog; then
50403 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
50404 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
50405 + else
50406 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
50407 + test -n "$add" && deplibs="$add $deplibs"
50408 + if test "$hardcode_direct" != yes &&
50409 + test "$hardcode_minus_L" != yes &&
50410 + test "$hardcode_shlibpath_var" = yes; then
50411 + case :$finalize_shlibpath: in
50412 + *":$libdir:"*) ;;
50413 + *) func_append finalize_shlibpath "$libdir:" ;;
50414 + esac
50415 + fi
50416 + fi
50417 + fi
50418 +
50419 + if test "$linkmode" = prog || test "$opt_mode" = relink; then
50420 + add_shlibpath=
50421 + add_dir=
50422 + add=
50423 + # Finalize command for both is simple: just hardcode it.
50424 + if test "$hardcode_direct" = yes &&
50425 + test "$hardcode_direct_absolute" = no; then
50426 + add="$libdir/$linklib"
50427 + elif test "$hardcode_minus_L" = yes; then
50428 + add_dir="-L$libdir"
50429 + add="-l$name"
50430 + elif test "$hardcode_shlibpath_var" = yes; then
50431 + case :$finalize_shlibpath: in
50432 + *":$libdir:"*) ;;
50433 + *) func_append finalize_shlibpath "$libdir:" ;;
50434 + esac
50435 + add="-l$name"
50436 + elif test "$hardcode_automatic" = yes; then
50437 + if test -n "$inst_prefix_dir" &&
50438 + test -f "$inst_prefix_dir$libdir/$linklib" ; then
50439 + add="$inst_prefix_dir$libdir/$linklib"
50440 + else
50441 + add="$libdir/$linklib"
50442 + fi
50443 + else
50444 + # We cannot seem to hardcode it, guess we'll fake it.
50445 + add_dir="-L$libdir"
50446 + # Try looking first in the location we're being installed to.
50447 + if test -n "$inst_prefix_dir"; then
50448 + case $libdir in
50449 + [\\/]*)
50450 + func_append add_dir " -L$inst_prefix_dir$libdir"
50451 + ;;
50452 + esac
50453 + fi
50454 + add="-l$name"
50455 + fi
50456 +
50457 + if test "$linkmode" = prog; then
50458 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
50459 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
50460 + else
50461 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
50462 + test -n "$add" && deplibs="$add $deplibs"
50463 + fi
50464 + fi
50465 + elif test "$linkmode" = prog; then
50466 + # Here we assume that one of hardcode_direct or hardcode_minus_L
50467 + # is not unsupported. This is valid on all known static and
50468 + # shared platforms.
50469 + if test "$hardcode_direct" != unsupported; then
50470 + test -n "$old_library" && linklib="$old_library"
50471 + compile_deplibs="$dir/$linklib $compile_deplibs"
50472 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
50473 + else
50474 + compile_deplibs="-l$name -L$dir $compile_deplibs"
50475 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
50476 + fi
50477 + elif test "$build_libtool_libs" = yes; then
50478 + # Not a shared library
50479 + if test "$deplibs_check_method" != pass_all; then
50480 + # We're trying link a shared library against a static one
50481 + # but the system doesn't support it.
50482 +
50483 + # Just print a warning and add the library to dependency_libs so
50484 + # that the program can be linked against the static library.
50485 + echo
50486 + $ECHO "*** Warning: This system can not link to static lib archive $lib."
50487 + echo "*** I have the capability to make that library automatically link in when"
50488 + echo "*** you link to this library. But I can only do this if you have a"
50489 + echo "*** shared version of the library, which you do not appear to have."
50490 + if test "$module" = yes; then
50491 + echo "*** But as you try to build a module library, libtool will still create "
50492 + echo "*** a static module, that should work as long as the dlopening application"
50493 + echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
50494 + if test -z "$global_symbol_pipe"; then
50495 + echo
50496 + echo "*** However, this would only work if libtool was able to extract symbol"
50497 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
50498 + echo "*** not find such a program. So, this module is probably useless."
50499 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
50500 + fi
50501 + if test "$build_old_libs" = no; then
50502 + build_libtool_libs=module
50503 + build_old_libs=yes
50504 + else
50505 + build_libtool_libs=no
50506 + fi
50507 + fi
50508 + else
50509 + deplibs="$dir/$old_library $deplibs"
50510 + link_static=yes
50511 + fi
50512 + fi # link shared/static library?
50513 +
50514 + if test "$linkmode" = lib; then
50515 + if test -n "$dependency_libs" &&
50516 + { test "$hardcode_into_libs" != yes ||
50517 + test "$build_old_libs" = yes ||
50518 + test "$link_static" = yes; }; then
50519 + # Extract -R from dependency_libs
50520 + temp_deplibs=
50521 + for libdir in $dependency_libs; do
50522 + case $libdir in
50523 + -R*) func_stripname '-R' '' "$libdir"
50524 + temp_xrpath=$func_stripname_result
50525 + case " $xrpath " in
50526 + *" $temp_xrpath "*) ;;
50527 + *) func_append xrpath " $temp_xrpath";;
50528 + esac;;
50529 + *) func_append temp_deplibs " $libdir";;
50530 + esac
50531 + done
50532 + dependency_libs="$temp_deplibs"
50533 + fi
50534 +
50535 + func_append newlib_search_path " $absdir"
50536 + # Link against this library
50537 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
50538 + # ... and its dependency_libs
50539 + tmp_libs=
50540 + for deplib in $dependency_libs; do
50541 + newdependency_libs="$deplib $newdependency_libs"
50542 + case $deplib in
50543 + -L*) func_stripname '-L' '' "$deplib"
50544 + func_resolve_sysroot "$func_stripname_result";;
50545 + *) func_resolve_sysroot "$deplib" ;;
50546 + esac
50547 + if $opt_preserve_dup_deps ; then
50548 + case "$tmp_libs " in
50549 + *" $func_resolve_sysroot_result "*)
50550 + func_append specialdeplibs " $func_resolve_sysroot_result" ;;
50551 + esac
50552 + fi
50553 + func_append tmp_libs " $func_resolve_sysroot_result"
50554 + done
50555 +
50556 + if test "$link_all_deplibs" != no; then
50557 + # Add the search paths of all dependency libraries
50558 + for deplib in $dependency_libs; do
50559 + path=
50560 + case $deplib in
50561 + -L*) path="$deplib" ;;
50562 + *.la)
50563 + func_resolve_sysroot "$deplib"
50564 + deplib=$func_resolve_sysroot_result
50565 + func_dirname "$deplib" "" "."
50566 + dir=$func_dirname_result
50567 + # We need an absolute path.
50568 + case $dir in
50569 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
50570 + *)
50571 + absdir=`cd "$dir" && pwd`
50572 + if test -z "$absdir"; then
50573 + func_warning "cannot determine absolute directory name of \`$dir'"
50574 + absdir="$dir"
50575 + fi
50576 + ;;
50577 + esac
50578 + if $GREP "^installed=no" $deplib > /dev/null; then
50579 + case $host in
50580 + *-*-darwin*)
50581 + depdepl=
50582 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
50583 + if test -n "$deplibrary_names" ; then
50584 + for tmp in $deplibrary_names ; do
50585 + depdepl=$tmp
50586 + done
50587 + if test -f "$absdir/$objdir/$depdepl" ; then
50588 + depdepl="$absdir/$objdir/$depdepl"
50589 + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
50590 + if test -z "$darwin_install_name"; then
50591 + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
50592 + fi
50593 + func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
50594 + func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
50595 + path=
50596 + fi
50597 + fi
50598 + ;;
50599 + *)
50600 + path="-L$absdir/$objdir"
50601 + ;;
50602 + esac
50603 + else
50604 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
50605 + test -z "$libdir" && \
50606 + func_fatal_error "\`$deplib' is not a valid libtool archive"
50607 + test "$absdir" != "$libdir" && \
50608 + func_warning "\`$deplib' seems to be moved"
50609 +
50610 + path="-L$absdir"
50611 + fi
50612 + ;;
50613 + esac
50614 + case " $deplibs " in
50615 + *" $path "*) ;;
50616 + *) deplibs="$path $deplibs" ;;
50617 + esac
50618 + done
50619 + fi # link_all_deplibs != no
50620 + fi # linkmode = lib
50621 + done # for deplib in $libs
50622 + if test "$pass" = link; then
50623 + if test "$linkmode" = "prog"; then
50624 + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
50625 + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
50626 + else
50627 + compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
50628 + fi
50629 + fi
50630 + dependency_libs="$newdependency_libs"
50631 + if test "$pass" = dlpreopen; then
50632 + # Link the dlpreopened libraries before other libraries
50633 + for deplib in $save_deplibs; do
50634 + deplibs="$deplib $deplibs"
50635 + done
50636 + fi
50637 + if test "$pass" != dlopen; then
50638 + if test "$pass" != conv; then
50639 + # Make sure lib_search_path contains only unique directories.
50640 + lib_search_path=
50641 + for dir in $newlib_search_path; do
50642 + case "$lib_search_path " in
50643 + *" $dir "*) ;;
50644 + *) func_append lib_search_path " $dir" ;;
50645 + esac
50646 + done
50647 + newlib_search_path=
50648 + fi
50649 +
50650 + if test "$linkmode,$pass" != "prog,link"; then
50651 + vars="deplibs"
50652 + else
50653 + vars="compile_deplibs finalize_deplibs"
50654 + fi
50655 + for var in $vars dependency_libs; do
50656 + # Add libraries to $var in reverse order
50657 + eval tmp_libs=\"\$$var\"
50658 + new_libs=
50659 + for deplib in $tmp_libs; do
50660 + # FIXME: Pedantically, this is the right thing to do, so
50661 + # that some nasty dependency loop isn't accidentally
50662 + # broken:
50663 + #new_libs="$deplib $new_libs"
50664 + # Pragmatically, this seems to cause very few problems in
50665 + # practice:
50666 + case $deplib in
50667 + -L*) new_libs="$deplib $new_libs" ;;
50668 + -R*) ;;
50669 + *)
50670 + # And here is the reason: when a library appears more
50671 + # than once as an explicit dependence of a library, or
50672 + # is implicitly linked in more than once by the
50673 + # compiler, it is considered special, and multiple
50674 + # occurrences thereof are not removed. Compare this
50675 + # with having the same library being listed as a
50676 + # dependency of multiple other libraries: in this case,
50677 + # we know (pedantically, we assume) the library does not
50678 + # need to be listed more than once, so we keep only the
50679 + # last copy. This is not always right, but it is rare
50680 + # enough that we require users that really mean to play
50681 + # such unportable linking tricks to link the library
50682 + # using -Wl,-lname, so that libtool does not consider it
50683 + # for duplicate removal.
50684 + case " $specialdeplibs " in
50685 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
50686 + *)
50687 + case " $new_libs " in
50688 + *" $deplib "*) ;;
50689 + *) new_libs="$deplib $new_libs" ;;
50690 + esac
50691 + ;;
50692 + esac
50693 + ;;
50694 + esac
50695 + done
50696 + tmp_libs=
50697 + for deplib in $new_libs; do
50698 + case $deplib in
50699 + -L*)
50700 + case " $tmp_libs " in
50701 + *" $deplib "*) ;;
50702 + *) func_append tmp_libs " $deplib" ;;
50703 + esac
50704 + ;;
50705 + *) func_append tmp_libs " $deplib" ;;
50706 + esac
50707 + done
50708 + eval $var=\"$tmp_libs\"
50709 + done # for var
50710 + fi
50711 + # Last step: remove runtime libs from dependency_libs
50712 + # (they stay in deplibs)
50713 + tmp_libs=
50714 + for i in $dependency_libs ; do
50715 + case " $predeps $postdeps $compiler_lib_search_path " in
50716 + *" $i "*)
50717 + i=""
50718 + ;;
50719 + esac
50720 + if test -n "$i" ; then
50721 + func_append tmp_libs " $i"
50722 + fi
50723 + done
50724 + dependency_libs=$tmp_libs
50725 + done # for pass
50726 + if test "$linkmode" = prog; then
50727 + dlfiles="$newdlfiles"
50728 + fi
50729 + if test "$linkmode" = prog || test "$linkmode" = lib; then
50730 + dlprefiles="$newdlprefiles"
50731 + fi
50732 +
50733 + case $linkmode in
50734 + oldlib)
50735 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
50736 + func_warning "\`-dlopen' is ignored for archives"
50737 + fi
50738 +
50739 + case " $deplibs" in
50740 + *\ -l* | *\ -L*)
50741 + func_warning "\`-l' and \`-L' are ignored for archives" ;;
50742 + esac
50743 +
50744 + test -n "$rpath" && \
50745 + func_warning "\`-rpath' is ignored for archives"
50746 +
50747 + test -n "$xrpath" && \
50748 + func_warning "\`-R' is ignored for archives"
50749 +
50750 + test -n "$vinfo" && \
50751 + func_warning "\`-version-info/-version-number' is ignored for archives"
50752 +
50753 + test -n "$release" && \
50754 + func_warning "\`-release' is ignored for archives"
50755 +
50756 + test -n "$export_symbols$export_symbols_regex" && \
50757 + func_warning "\`-export-symbols' is ignored for archives"
50758 +
50759 + # Now set the variables for building old libraries.
50760 + build_libtool_libs=no
50761 + oldlibs="$output"
50762 + func_append objs "$old_deplibs"
50763 + ;;
50764 +
50765 + lib)
50766 + # Make sure we only generate libraries of the form `libNAME.la'.
50767 + case $outputname in
50768 + lib*)
50769 + func_stripname 'lib' '.la' "$outputname"
50770 + name=$func_stripname_result
50771 + eval shared_ext=\"$shrext_cmds\"
50772 + eval libname=\"$libname_spec\"
50773 + ;;
50774 + *)
50775 + test "$module" = no && \
50776 + func_fatal_help "libtool library \`$output' must begin with \`lib'"
50777 +
50778 + if test "$need_lib_prefix" != no; then
50779 + # Add the "lib" prefix for modules if required
50780 + func_stripname '' '.la' "$outputname"
50781 + name=$func_stripname_result
50782 + eval shared_ext=\"$shrext_cmds\"
50783 + eval libname=\"$libname_spec\"
50784 + else
50785 + func_stripname '' '.la' "$outputname"
50786 + libname=$func_stripname_result
50787 + fi
50788 + ;;
50789 + esac
50790 +
50791 + if test -n "$objs"; then
50792 + if test "$deplibs_check_method" != pass_all; then
50793 + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
50794 + else
50795 + echo
50796 + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
50797 + $ECHO "*** objects $objs is not portable!"
50798 + func_append libobjs " $objs"
50799 + fi
50800 + fi
50801 +
50802 + test "$dlself" != no && \
50803 + func_warning "\`-dlopen self' is ignored for libtool libraries"
50804 +
50805 + set dummy $rpath
50806 + shift
50807 + test "$#" -gt 1 && \
50808 + func_warning "ignoring multiple \`-rpath's for a libtool library"
50809 +
50810 + install_libdir="$1"
50811 +
50812 + oldlibs=
50813 + if test -z "$rpath"; then
50814 + if test "$build_libtool_libs" = yes; then
50815 + # Building a libtool convenience library.
50816 + # Some compilers have problems with a `.al' extension so
50817 + # convenience libraries should have the same extension an
50818 + # archive normally would.
50819 + oldlibs="$output_objdir/$libname.$libext $oldlibs"
50820 + build_libtool_libs=convenience
50821 + build_old_libs=yes
50822 + fi
50823 +
50824 + test -n "$vinfo" && \
50825 + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
50826 +
50827 + test -n "$release" && \
50828 + func_warning "\`-release' is ignored for convenience libraries"
50829 + else
50830 +
50831 + # Parse the version information argument.
50832 + save_ifs="$IFS"; IFS=':'
50833 + set dummy $vinfo 0 0 0
50834 + shift
50835 + IFS="$save_ifs"
50836 +
50837 + test -n "$7" && \
50838 + func_fatal_help "too many parameters to \`-version-info'"
50839 +
50840 + # convert absolute version numbers to libtool ages
50841 + # this retains compatibility with .la files and attempts
50842 + # to make the code below a bit more comprehensible
50843 +
50844 + case $vinfo_number in
50845 + yes)
50846 + number_major="$1"
50847 + number_minor="$2"
50848 + number_revision="$3"
50849 + #
50850 + # There are really only two kinds -- those that
50851 + # use the current revision as the major version
50852 + # and those that subtract age and use age as
50853 + # a minor version. But, then there is irix
50854 + # which has an extra 1 added just for fun
50855 + #
50856 + case $version_type in
50857 + # correct linux to gnu/linux during the next big refactor
50858 + darwin|linux|osf|windows|none)
50859 + func_arith $number_major + $number_minor
50860 + current=$func_arith_result
50861 + age="$number_minor"
50862 + revision="$number_revision"
50863 + ;;
50864 + freebsd-aout|freebsd-elf|qnx|sunos)
50865 + current="$number_major"
50866 + revision="$number_minor"
50867 + age="0"
50868 + ;;
50869 + irix|nonstopux)
50870 + func_arith $number_major + $number_minor
50871 + current=$func_arith_result
50872 + age="$number_minor"
50873 + revision="$number_minor"
50874 + lt_irix_increment=no
50875 + ;;
50876 + *)
50877 + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
50878 + ;;
50879 + esac
50880 + ;;
50881 + no)
50882 + current="$1"
50883 + revision="$2"
50884 + age="$3"
50885 + ;;
50886 + esac
50887 +
50888 + # Check that each of the things are valid numbers.
50889 + case $current in
50890 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
50891 + *)
50892 + func_error "CURRENT \`$current' must be a nonnegative integer"
50893 + func_fatal_error "\`$vinfo' is not valid version information"
50894 + ;;
50895 + esac
50896 +
50897 + case $revision in
50898 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
50899 + *)
50900 + func_error "REVISION \`$revision' must be a nonnegative integer"
50901 + func_fatal_error "\`$vinfo' is not valid version information"
50902 + ;;
50903 + esac
50904 +
50905 + case $age in
50906 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
50907 + *)
50908 + func_error "AGE \`$age' must be a nonnegative integer"
50909 + func_fatal_error "\`$vinfo' is not valid version information"
50910 + ;;
50911 + esac
50912 +
50913 + if test "$age" -gt "$current"; then
50914 + func_error "AGE \`$age' is greater than the current interface number \`$current'"
50915 + func_fatal_error "\`$vinfo' is not valid version information"
50916 + fi
50917 +
50918 + # Calculate the version variables.
50919 + major=
50920 + versuffix=
50921 + verstring=
50922 + case $version_type in
50923 + none) ;;
50924 +
50925 + darwin)
50926 + # Like Linux, but with the current version available in
50927 + # verstring for coding it into the library header
50928 + func_arith $current - $age
50929 + major=.$func_arith_result
50930 + versuffix="$major.$age.$revision"
50931 + # Darwin ld doesn't like 0 for these options...
50932 + func_arith $current + 1
50933 + minor_current=$func_arith_result
50934 + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
50935 + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
50936 + ;;
50937 +
50938 + freebsd-aout)
50939 + major=".$current"
50940 + versuffix=".$current.$revision";
50941 + ;;
50942 +
50943 + freebsd-elf)
50944 + major=".$current"
50945 + versuffix=".$current"
50946 + ;;
50947 +
50948 + irix | nonstopux)
50949 + if test "X$lt_irix_increment" = "Xno"; then
50950 + func_arith $current - $age
50951 + else
50952 + func_arith $current - $age + 1
50953 + fi
50954 + major=$func_arith_result
50955 +
50956 + case $version_type in
50957 + nonstopux) verstring_prefix=nonstopux ;;
50958 + *) verstring_prefix=sgi ;;
50959 + esac
50960 + verstring="$verstring_prefix$major.$revision"
50961 +
50962 + # Add in all the interfaces that we are compatible with.
50963 + loop=$revision
50964 + while test "$loop" -ne 0; do
50965 + func_arith $revision - $loop
50966 + iface=$func_arith_result
50967 + func_arith $loop - 1
50968 + loop=$func_arith_result
50969 + verstring="$verstring_prefix$major.$iface:$verstring"
50970 + done
50971 +
50972 + # Before this point, $major must not contain `.'.
50973 + major=.$major
50974 + versuffix="$major.$revision"
50975 + ;;
50976 +
50977 + linux) # correct to gnu/linux during the next big refactor
50978 + func_arith $current - $age
50979 + major=.$func_arith_result
50980 + versuffix="$major.$age.$revision"
50981 + ;;
50982 +
50983 + osf)
50984 + func_arith $current - $age
50985 + major=.$func_arith_result
50986 + versuffix=".$current.$age.$revision"
50987 + verstring="$current.$age.$revision"
50988 +
50989 + # Add in all the interfaces that we are compatible with.
50990 + loop=$age
50991 + while test "$loop" -ne 0; do
50992 + func_arith $current - $loop
50993 + iface=$func_arith_result
50994 + func_arith $loop - 1
50995 + loop=$func_arith_result
50996 + verstring="$verstring:${iface}.0"
50997 + done
50998 +
50999 + # Make executables depend on our current version.
51000 + func_append verstring ":${current}.0"
51001 + ;;
51002 +
51003 + qnx)
51004 + major=".$current"
51005 + versuffix=".$current"
51006 + ;;
51007 +
51008 + sunos)
51009 + major=".$current"
51010 + versuffix=".$current.$revision"
51011 + ;;
51012 +
51013 + windows)
51014 + # Use '-' rather than '.', since we only want one
51015 + # extension on DOS 8.3 filesystems.
51016 + func_arith $current - $age
51017 + major=$func_arith_result
51018 + versuffix="-$major"
51019 + ;;
51020 +
51021 + *)
51022 + func_fatal_configuration "unknown library version type \`$version_type'"
51023 + ;;
51024 + esac
51025 +
51026 + # Clear the version info if we defaulted, and they specified a release.
51027 + if test -z "$vinfo" && test -n "$release"; then
51028 + major=
51029 + case $version_type in
51030 + darwin)
51031 + # we can't check for "0.0" in archive_cmds due to quoting
51032 + # problems, so we reset it completely
51033 + verstring=
51034 + ;;
51035 + *)
51036 + verstring="0.0"
51037 + ;;
51038 + esac
51039 + if test "$need_version" = no; then
51040 + versuffix=
51041 + else
51042 + versuffix=".0.0"
51043 + fi
51044 + fi
51045 +
51046 + # Remove version info from name if versioning should be avoided
51047 + if test "$avoid_version" = yes && test "$need_version" = no; then
51048 + major=
51049 + versuffix=
51050 + verstring=""
51051 + fi
51052 +
51053 + # Check to see if the archive will have undefined symbols.
51054 + if test "$allow_undefined" = yes; then
51055 + if test "$allow_undefined_flag" = unsupported; then
51056 + func_warning "undefined symbols not allowed in $host shared libraries"
51057 + build_libtool_libs=no
51058 + build_old_libs=yes
51059 + fi
51060 + else
51061 + # Don't allow undefined symbols.
51062 + allow_undefined_flag="$no_undefined_flag"
51063 + fi
51064 +
51065 + fi
51066 +
51067 + func_generate_dlsyms "$libname" "$libname" "yes"
51068 + func_append libobjs " $symfileobj"
51069 + test "X$libobjs" = "X " && libobjs=
51070 +
51071 + if test "$opt_mode" != relink; then
51072 + # Remove our outputs, but don't remove object files since they
51073 + # may have been created when compiling PIC objects.
51074 + removelist=
51075 + tempremovelist=`$ECHO "$output_objdir/*"`
51076 + for p in $tempremovelist; do
51077 + case $p in
51078 + *.$objext | *.gcno)
51079 + ;;
51080 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
51081 + if test "X$precious_files_regex" != "X"; then
51082 + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
51083 + then
51084 + continue
51085 + fi
51086 + fi
51087 + func_append removelist " $p"
51088 + ;;
51089 + *) ;;
51090 + esac
51091 + done
51092 + test -n "$removelist" && \
51093 + func_show_eval "${RM}r \$removelist"
51094 + fi
51095 +
51096 + # Now set the variables for building old libraries.
51097 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
51098 + func_append oldlibs " $output_objdir/$libname.$libext"
51099 +
51100 + # Transform .lo files to .o files.
51101 + oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
51102 + fi
51103 +
51104 + # Eliminate all temporary directories.
51105 + #for path in $notinst_path; do
51106 + # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
51107 + # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
51108 + # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
51109 + #done
51110 +
51111 + if test -n "$xrpath"; then
51112 + # If the user specified any rpath flags, then add them.
51113 + temp_xrpath=
51114 + for libdir in $xrpath; do
51115 + func_replace_sysroot "$libdir"
51116 + func_append temp_xrpath " -R$func_replace_sysroot_result"
51117 + case "$finalize_rpath " in
51118 + *" $libdir "*) ;;
51119 + *) func_append finalize_rpath " $libdir" ;;
51120 + esac
51121 + done
51122 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
51123 + dependency_libs="$temp_xrpath $dependency_libs"
51124 + fi
51125 + fi
51126 +
51127 + # Make sure dlfiles contains only unique files that won't be dlpreopened
51128 + old_dlfiles="$dlfiles"
51129 + dlfiles=
51130 + for lib in $old_dlfiles; do
51131 + case " $dlprefiles $dlfiles " in
51132 + *" $lib "*) ;;
51133 + *) func_append dlfiles " $lib" ;;
51134 + esac
51135 + done
51136 +
51137 + # Make sure dlprefiles contains only unique files
51138 + old_dlprefiles="$dlprefiles"
51139 + dlprefiles=
51140 + for lib in $old_dlprefiles; do
51141 + case "$dlprefiles " in
51142 + *" $lib "*) ;;
51143 + *) func_append dlprefiles " $lib" ;;
51144 + esac
51145 + done
51146 +
51147 + if test "$build_libtool_libs" = yes; then
51148 + if test -n "$rpath"; then
51149 + case $host in
51150 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
51151 + # these systems don't actually have a c library (as such)!
51152 + ;;
51153 + *-*-rhapsody* | *-*-darwin1.[012])
51154 + # Rhapsody C library is in the System framework
51155 + func_append deplibs " System.ltframework"
51156 + ;;
51157 + *-*-netbsd*)
51158 + # Don't link with libc until the a.out ld.so is fixed.
51159 + ;;
51160 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
51161 + # Do not include libc due to us having libc/libc_r.
51162 + ;;
51163 + *-*-sco3.2v5* | *-*-sco5v6*)
51164 + # Causes problems with __ctype
51165 + ;;
51166 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
51167 + # Compiler inserts libc in the correct place for threads to work
51168 + ;;
51169 + *)
51170 + # Add libc to deplibs on all other systems if necessary.
51171 + if test "$build_libtool_need_lc" = "yes"; then
51172 + func_append deplibs " -lc"
51173 + fi
51174 + ;;
51175 + esac
51176 + fi
51177 +
51178 + # Transform deplibs into only deplibs that can be linked in shared.
51179 + name_save=$name
51180 + libname_save=$libname
51181 + release_save=$release
51182 + versuffix_save=$versuffix
51183 + major_save=$major
51184 + # I'm not sure if I'm treating the release correctly. I think
51185 + # release should show up in the -l (ie -lgmp5) so we don't want to
51186 + # add it in twice. Is that correct?
51187 + release=""
51188 + versuffix=""
51189 + major=""
51190 + newdeplibs=
51191 + droppeddeps=no
51192 + case $deplibs_check_method in
51193 + pass_all)
51194 + # Don't check for shared/static. Everything works.
51195 + # This might be a little naive. We might want to check
51196 + # whether the library exists or not. But this is on
51197 + # osf3 & osf4 and I'm not really sure... Just
51198 + # implementing what was already the behavior.
51199 + newdeplibs=$deplibs
51200 + ;;
51201 + test_compile)
51202 + # This code stresses the "libraries are programs" paradigm to its
51203 + # limits. Maybe even breaks it. We compile a program, linking it
51204 + # against the deplibs as a proxy for the library. Then we can check
51205 + # whether they linked in statically or dynamically with ldd.
51206 + $opt_dry_run || $RM conftest.c
51207 + cat > conftest.c <<EOF
51208 + int main() { return 0; }
51209 +EOF
51210 + $opt_dry_run || $RM conftest
51211 + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
51212 + ldd_output=`ldd conftest`
51213 + for i in $deplibs; do
51214 + case $i in
51215 + -l*)
51216 + func_stripname -l '' "$i"
51217 + name=$func_stripname_result
51218 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
51219 + case " $predeps $postdeps " in
51220 + *" $i "*)
51221 + func_append newdeplibs " $i"
51222 + i=""
51223 + ;;
51224 + esac
51225 + fi
51226 + if test -n "$i" ; then
51227 + libname=`eval "\\$ECHO \"$libname_spec\""`
51228 + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
51229 + set dummy $deplib_matches; shift
51230 + deplib_match=$1
51231 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
51232 + func_append newdeplibs " $i"
51233 + else
51234 + droppeddeps=yes
51235 + echo
51236 + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
51237 + echo "*** I have the capability to make that library automatically link in when"
51238 + echo "*** you link to this library. But I can only do this if you have a"
51239 + echo "*** shared version of the library, which I believe you do not have"
51240 + echo "*** because a test_compile did reveal that the linker did not use it for"
51241 + echo "*** its dynamic dependency list that programs get resolved with at runtime."
51242 + fi
51243 + fi
51244 + ;;
51245 + *)
51246 + func_append newdeplibs " $i"
51247 + ;;
51248 + esac
51249 + done
51250 + else
51251 + # Error occurred in the first compile. Let's try to salvage
51252 + # the situation: Compile a separate program for each library.
51253 + for i in $deplibs; do
51254 + case $i in
51255 + -l*)
51256 + func_stripname -l '' "$i"
51257 + name=$func_stripname_result
51258 + $opt_dry_run || $RM conftest
51259 + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
51260 + ldd_output=`ldd conftest`
51261 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
51262 + case " $predeps $postdeps " in
51263 + *" $i "*)
51264 + func_append newdeplibs " $i"
51265 + i=""
51266 + ;;
51267 + esac
51268 + fi
51269 + if test -n "$i" ; then
51270 + libname=`eval "\\$ECHO \"$libname_spec\""`
51271 + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
51272 + set dummy $deplib_matches; shift
51273 + deplib_match=$1
51274 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
51275 + func_append newdeplibs " $i"
51276 + else
51277 + droppeddeps=yes
51278 + echo
51279 + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
51280 + echo "*** I have the capability to make that library automatically link in when"
51281 + echo "*** you link to this library. But I can only do this if you have a"
51282 + echo "*** shared version of the library, which you do not appear to have"
51283 + echo "*** because a test_compile did reveal that the linker did not use this one"
51284 + echo "*** as a dynamic dependency that programs can get resolved with at runtime."
51285 + fi
51286 + fi
51287 + else
51288 + droppeddeps=yes
51289 + echo
51290 + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
51291 + echo "*** make it link in! You will probably need to install it or some"
51292 + echo "*** library that it depends on before this library will be fully"
51293 + echo "*** functional. Installing it before continuing would be even better."
51294 + fi
51295 + ;;
51296 + *)
51297 + func_append newdeplibs " $i"
51298 + ;;
51299 + esac
51300 + done
51301 + fi
51302 + ;;
51303 + file_magic*)
51304 + set dummy $deplibs_check_method; shift
51305 + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
51306 + for a_deplib in $deplibs; do
51307 + case $a_deplib in
51308 + -l*)
51309 + func_stripname -l '' "$a_deplib"
51310 + name=$func_stripname_result
51311 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
51312 + case " $predeps $postdeps " in
51313 + *" $a_deplib "*)
51314 + func_append newdeplibs " $a_deplib"
51315 + a_deplib=""
51316 + ;;
51317 + esac
51318 + fi
51319 + if test -n "$a_deplib" ; then
51320 + libname=`eval "\\$ECHO \"$libname_spec\""`
51321 + if test -n "$file_magic_glob"; then
51322 + libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
51323 + else
51324 + libnameglob=$libname
51325 + fi
51326 + test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
51327 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
51328 + if test "$want_nocaseglob" = yes; then
51329 + shopt -s nocaseglob
51330 + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
51331 + $nocaseglob
51332 + else
51333 + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
51334 + fi
51335 + for potent_lib in $potential_libs; do
51336 + # Follow soft links.
51337 + if ls -lLd "$potent_lib" 2>/dev/null |
51338 + $GREP " -> " >/dev/null; then
51339 + continue
51340 + fi
51341 + # The statement above tries to avoid entering an
51342 + # endless loop below, in case of cyclic links.
51343 + # We might still enter an endless loop, since a link
51344 + # loop can be closed while we follow links,
51345 + # but so what?
51346 + potlib="$potent_lib"
51347 + while test -h "$potlib" 2>/dev/null; do
51348 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
51349 + case $potliblink in
51350 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
51351 + *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
51352 + esac
51353 + done
51354 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
51355 + $SED -e 10q |
51356 + $EGREP "$file_magic_regex" > /dev/null; then
51357 + func_append newdeplibs " $a_deplib"
51358 + a_deplib=""
51359 + break 2
51360 + fi
51361 + done
51362 + done
51363 + fi
51364 + if test -n "$a_deplib" ; then
51365 + droppeddeps=yes
51366 + echo
51367 + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
51368 + echo "*** I have the capability to make that library automatically link in when"
51369 + echo "*** you link to this library. But I can only do this if you have a"
51370 + echo "*** shared version of the library, which you do not appear to have"
51371 + echo "*** because I did check the linker path looking for a file starting"
51372 + if test -z "$potlib" ; then
51373 + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
51374 + else
51375 + $ECHO "*** with $libname and none of the candidates passed a file format test"
51376 + $ECHO "*** using a file magic. Last file checked: $potlib"
51377 + fi
51378 + fi
51379 + ;;
51380 + *)
51381 + # Add a -L argument.
51382 + func_append newdeplibs " $a_deplib"
51383 + ;;
51384 + esac
51385 + done # Gone through all deplibs.
51386 + ;;
51387 + match_pattern*)
51388 + set dummy $deplibs_check_method; shift
51389 + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
51390 + for a_deplib in $deplibs; do
51391 + case $a_deplib in
51392 + -l*)
51393 + func_stripname -l '' "$a_deplib"
51394 + name=$func_stripname_result
51395 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
51396 + case " $predeps $postdeps " in
51397 + *" $a_deplib "*)
51398 + func_append newdeplibs " $a_deplib"
51399 + a_deplib=""
51400 + ;;
51401 + esac
51402 + fi
51403 + if test -n "$a_deplib" ; then
51404 + libname=`eval "\\$ECHO \"$libname_spec\""`
51405 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
51406 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
51407 + for potent_lib in $potential_libs; do
51408 + potlib="$potent_lib" # see symlink-check above in file_magic test
51409 + if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
51410 + $EGREP "$match_pattern_regex" > /dev/null; then
51411 + func_append newdeplibs " $a_deplib"
51412 + a_deplib=""
51413 + break 2
51414 + fi
51415 + done
51416 + done
51417 + fi
51418 + if test -n "$a_deplib" ; then
51419 + droppeddeps=yes
51420 + echo
51421 + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
51422 + echo "*** I have the capability to make that library automatically link in when"
51423 + echo "*** you link to this library. But I can only do this if you have a"
51424 + echo "*** shared version of the library, which you do not appear to have"
51425 + echo "*** because I did check the linker path looking for a file starting"
51426 + if test -z "$potlib" ; then
51427 + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
51428 + else
51429 + $ECHO "*** with $libname and none of the candidates passed a file format test"
51430 + $ECHO "*** using a regex pattern. Last file checked: $potlib"
51431 + fi
51432 + fi
51433 + ;;
51434 + *)
51435 + # Add a -L argument.
51436 + func_append newdeplibs " $a_deplib"
51437 + ;;
51438 + esac
51439 + done # Gone through all deplibs.
51440 + ;;
51441 + none | unknown | *)
51442 + newdeplibs=""
51443 + tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
51444 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
51445 + for i in $predeps $postdeps ; do
51446 + # can't use Xsed below, because $i might contain '/'
51447 + tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
51448 + done
51449 + fi
51450 + case $tmp_deplibs in
51451 + *[!\ \ ]*)
51452 + echo
51453 + if test "X$deplibs_check_method" = "Xnone"; then
51454 + echo "*** Warning: inter-library dependencies are not supported in this platform."
51455 + else
51456 + echo "*** Warning: inter-library dependencies are not known to be supported."
51457 + fi
51458 + echo "*** All declared inter-library dependencies are being dropped."
51459 + droppeddeps=yes
51460 + ;;
51461 + esac
51462 + ;;
51463 + esac
51464 + versuffix=$versuffix_save
51465 + major=$major_save
51466 + release=$release_save
51467 + libname=$libname_save
51468 + name=$name_save
51469
51470 - $echo >> $output "\
51471 + case $host in
51472 + *-*-rhapsody* | *-*-darwin1.[012])
51473 + # On Rhapsody replace the C library with the System framework
51474 + newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
51475 + ;;
51476 + esac
51477
51478 - # relink executable if necessary
51479 - if test -n \"\$relink_command\"; then
51480 - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
51481 - else
51482 - $echo \"\$relink_command_output\" >&2
51483 - $rm \"\$progdir/\$file\"
51484 - exit $EXIT_FAILURE
51485 - fi
51486 - fi
51487 + if test "$droppeddeps" = yes; then
51488 + if test "$module" = yes; then
51489 + echo
51490 + echo "*** Warning: libtool could not satisfy all declared inter-library"
51491 + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
51492 + echo "*** a static module, that should work as long as the dlopening"
51493 + echo "*** application is linked with the -dlopen flag."
51494 + if test -z "$global_symbol_pipe"; then
51495 + echo
51496 + echo "*** However, this would only work if libtool was able to extract symbol"
51497 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
51498 + echo "*** not find such a program. So, this module is probably useless."
51499 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
51500 + fi
51501 + if test "$build_old_libs" = no; then
51502 + oldlibs="$output_objdir/$libname.$libext"
51503 + build_libtool_libs=module
51504 + build_old_libs=yes
51505 + else
51506 + build_libtool_libs=no
51507 + fi
51508 + else
51509 + echo "*** The inter-library dependencies that have been dropped here will be"
51510 + echo "*** automatically added whenever a program is linked with this library"
51511 + echo "*** or is declared to -dlopen it."
51512
51513 - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
51514 - { $rm \"\$progdir/\$program\";
51515 - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
51516 - $rm \"\$progdir/\$file\"
51517 - fi"
51518 - else
51519 - $echo >> $output "\
51520 - program='$outputname'
51521 - progdir=\"\$thisdir/$objdir\"
51522 -"
51523 + if test "$allow_undefined" = no; then
51524 + echo
51525 + echo "*** Since this library must not contain undefined symbols,"
51526 + echo "*** because either the platform does not support them or"
51527 + echo "*** it was explicitly requested with -no-undefined,"
51528 + echo "*** libtool will only create a static version of it."
51529 + if test "$build_old_libs" = no; then
51530 + oldlibs="$output_objdir/$libname.$libext"
51531 + build_libtool_libs=module
51532 + build_old_libs=yes
51533 + else
51534 + build_libtool_libs=no
51535 + fi
51536 + fi
51537 + fi
51538 fi
51539 + # Done checking deplibs!
51540 + deplibs=$newdeplibs
51541 + fi
51542 + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
51543 + case $host in
51544 + *-*-darwin*)
51545 + newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
51546 + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
51547 + deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
51548 + ;;
51549 + esac
51550
51551 - $echo >> $output "\
51552 -
51553 - if test -f \"\$progdir/\$program\"; then"
51554 -
51555 - # Export our shlibpath_var if we have one.
51556 - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
51557 - $echo >> $output "\
51558 - # Add our own library path to $shlibpath_var
51559 - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
51560 + # move library search paths that coincide with paths to not yet
51561 + # installed libraries to the beginning of the library search list
51562 + new_libs=
51563 + for path in $notinst_path; do
51564 + case " $new_libs " in
51565 + *" -L$path/$objdir "*) ;;
51566 + *)
51567 + case " $deplibs " in
51568 + *" -L$path/$objdir "*)
51569 + func_append new_libs " -L$path/$objdir" ;;
51570 + esac
51571 + ;;
51572 + esac
51573 + done
51574 + for deplib in $deplibs; do
51575 + case $deplib in
51576 + -L*)
51577 + case " $new_libs " in
51578 + *" $deplib "*) ;;
51579 + *) func_append new_libs " $deplib" ;;
51580 + esac
51581 + ;;
51582 + *) func_append new_libs " $deplib" ;;
51583 + esac
51584 + done
51585 + deplibs="$new_libs"
51586
51587 - # Some systems cannot cope with colon-terminated $shlibpath_var
51588 - # The second colon is a workaround for a bug in BeOS R4 sed
51589 - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
51590 + # All the library-specific variables (install_libdir is set above).
51591 + library_names=
51592 + old_library=
51593 + dlname=
51594
51595 - export $shlibpath_var
51596 -"
51597 + # Test again, we may have decided not to build it any more
51598 + if test "$build_libtool_libs" = yes; then
51599 + # Remove ${wl} instances when linking with ld.
51600 + # FIXME: should test the right _cmds variable.
51601 + case $archive_cmds in
51602 + *\$LD\ *) wl= ;;
51603 + esac
51604 + if test "$hardcode_into_libs" = yes; then
51605 + # Hardcode the library paths
51606 + hardcode_libdirs=
51607 + dep_rpath=
51608 + rpath="$finalize_rpath"
51609 + test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
51610 + for libdir in $rpath; do
51611 + if test -n "$hardcode_libdir_flag_spec"; then
51612 + if test -n "$hardcode_libdir_separator"; then
51613 + func_replace_sysroot "$libdir"
51614 + libdir=$func_replace_sysroot_result
51615 + if test -z "$hardcode_libdirs"; then
51616 + hardcode_libdirs="$libdir"
51617 + else
51618 + # Just accumulate the unique libdirs.
51619 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
51620 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
51621 + ;;
51622 + *)
51623 + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
51624 + ;;
51625 + esac
51626 + fi
51627 + else
51628 + eval flag=\"$hardcode_libdir_flag_spec\"
51629 + func_append dep_rpath " $flag"
51630 + fi
51631 + elif test -n "$runpath_var"; then
51632 + case "$perm_rpath " in
51633 + *" $libdir "*) ;;
51634 + *) func_append perm_rpath " $libdir" ;;
51635 + esac
51636 + fi
51637 + done
51638 + # Substitute the hardcoded libdirs into the rpath.
51639 + if test -n "$hardcode_libdir_separator" &&
51640 + test -n "$hardcode_libdirs"; then
51641 + libdir="$hardcode_libdirs"
51642 + eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
51643 + fi
51644 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
51645 + # We should set the runpath_var.
51646 + rpath=
51647 + for dir in $perm_rpath; do
51648 + func_append rpath "$dir:"
51649 + done
51650 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
51651 + fi
51652 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
51653 fi
51654
51655 - # fixup the dll searchpath if we need to.
51656 - if test -n "$dllsearchpath"; then
51657 - $echo >> $output "\
51658 - # Add the dll search path components to the executable PATH
51659 - PATH=$dllsearchpath:\$PATH
51660 -"
51661 + shlibpath="$finalize_shlibpath"
51662 + test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
51663 + if test -n "$shlibpath"; then
51664 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
51665 fi
51666
51667 - $echo >> $output "\
51668 - if test \"\$libtool_execute_magic\" != \"$magic\"; then
51669 - # Run the actual program with our arguments.
51670 -"
51671 - case $host in
51672 - # Backslashes separate directories on plain windows
51673 - *-*-mingw | *-*-os2*)
51674 - $echo >> $output "\
51675 - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
51676 -"
51677 - ;;
51678 -
51679 - *)
51680 - $echo >> $output "\
51681 - exec \"\$progdir/\$program\" \${1+\"\$@\"}
51682 -"
51683 - ;;
51684 - esac
51685 - $echo >> $output "\
51686 - \$echo \"\$0: cannot exec \$program \$*\"
51687 - exit $EXIT_FAILURE
51688 - fi
51689 - else
51690 - # The program doesn't exist.
51691 - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
51692 - \$echo \"This script is just a wrapper for \$program.\" 1>&2
51693 - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
51694 - exit $EXIT_FAILURE
51695 - fi
51696 -fi\
51697 -"
51698 - chmod +x $output
51699 - fi
51700 - exit $EXIT_SUCCESS
51701 - ;;
51702 - esac
51703 -
51704 - # See if we need to build an old-fashioned archive.
51705 - for oldlib in $oldlibs; do
51706 + # Get the real and link names of the library.
51707 + eval shared_ext=\"$shrext_cmds\"
51708 + eval library_names=\"$library_names_spec\"
51709 + set dummy $library_names
51710 + shift
51711 + realname="$1"
51712 + shift
51713
51714 - if test "$build_libtool_libs" = convenience; then
51715 - oldobjs="$libobjs_save"
51716 - addlibs="$convenience"
51717 - build_libtool_libs=no
51718 - else
51719 - if test "$build_libtool_libs" = module; then
51720 - oldobjs="$libobjs_save"
51721 - build_libtool_libs=no
51722 + if test -n "$soname_spec"; then
51723 + eval soname=\"$soname_spec\"
51724 else
51725 - oldobjs="$old_deplibs $non_pic_objects"
51726 + soname="$realname"
51727 + fi
51728 + if test -z "$dlname"; then
51729 + dlname=$soname
51730 fi
51731 - addlibs="$old_convenience"
51732 - fi
51733
51734 - if test -n "$addlibs"; then
51735 - gentop="$output_objdir/${outputname}x"
51736 - generated="$generated $gentop"
51737 + lib="$output_objdir/$realname"
51738 + linknames=
51739 + for link
51740 + do
51741 + func_append linknames " $link"
51742 + done
51743
51744 - func_extract_archives $gentop $addlibs
51745 - oldobjs="$oldobjs $func_extract_archives_result"
51746 - fi
51747 + # Use standard objects if they are pic
51748 + test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
51749 + test "X$libobjs" = "X " && libobjs=
51750
51751 - # Do each command in the archive commands.
51752 - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
51753 - cmds=$old_archive_from_new_cmds
51754 - else
51755 - # POSIX demands no paths to be encoded in archives. We have
51756 - # to avoid creating archives with duplicate basenames if we
51757 - # might have to extract them afterwards, e.g., when creating a
51758 - # static archive out of a convenience library, or when linking
51759 - # the entirety of a libtool archive into another (currently
51760 - # not supported by libtool).
51761 - if (for obj in $oldobjs
51762 - do
51763 - $echo "X$obj" | $Xsed -e 's%^.*/%%'
51764 - done | sort | sort -uc >/dev/null 2>&1); then
51765 - :
51766 - else
51767 - $echo "copying selected object files to avoid basename conflicts..."
51768 + delfiles=
51769 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
51770 + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
51771 + export_symbols="$output_objdir/$libname.uexp"
51772 + func_append delfiles " $export_symbols"
51773 + fi
51774
51775 - if test -z "$gentop"; then
51776 - gentop="$output_objdir/${outputname}x"
51777 - generated="$generated $gentop"
51778 -
51779 - $show "${rm}r $gentop"
51780 - $run ${rm}r "$gentop"
51781 - $show "$mkdir $gentop"
51782 - $run $mkdir "$gentop"
51783 - exit_status=$?
51784 - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
51785 - exit $exit_status
51786 + orig_export_symbols=
51787 + case $host_os in
51788 + cygwin* | mingw* | cegcc*)
51789 + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
51790 + # exporting using user supplied symfile
51791 + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
51792 + # and it's NOT already a .def file. Must figure out
51793 + # which of the given symbols are data symbols and tag
51794 + # them as such. So, trigger use of export_symbols_cmds.
51795 + # export_symbols gets reassigned inside the "prepare
51796 + # the list of exported symbols" if statement, so the
51797 + # include_expsyms logic still works.
51798 + orig_export_symbols="$export_symbols"
51799 + export_symbols=
51800 + always_export_symbols=yes
51801 fi
51802 fi
51803 + ;;
51804 + esac
51805
51806 - save_oldobjs=$oldobjs
51807 - oldobjs=
51808 - counter=1
51809 - for obj in $save_oldobjs
51810 - do
51811 - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
51812 - case " $oldobjs " in
51813 - " ") oldobjs=$obj ;;
51814 - *[\ /]"$objbase "*)
51815 - while :; do
51816 - # Make sure we don't pick an alternate name that also
51817 - # overlaps.
51818 - newobj=lt$counter-$objbase
51819 - counter=`expr $counter + 1`
51820 - case " $oldobjs " in
51821 - *[\ /]"$newobj "*) ;;
51822 - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
51823 - esac
51824 - done
51825 - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
51826 - $run ln "$obj" "$gentop/$newobj" ||
51827 - $run cp "$obj" "$gentop/$newobj"
51828 - oldobjs="$oldobjs $gentop/$newobj"
51829 - ;;
51830 - *) oldobjs="$oldobjs $obj" ;;
51831 - esac
51832 - done
51833 + # Prepare the list of exported symbols
51834 + if test -z "$export_symbols"; then
51835 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
51836 + func_verbose "generating symbol list for \`$libname.la'"
51837 + export_symbols="$output_objdir/$libname.exp"
51838 + $opt_dry_run || $RM $export_symbols
51839 + cmds=$export_symbols_cmds
51840 + save_ifs="$IFS"; IFS='~'
51841 + for cmd1 in $cmds; do
51842 + IFS="$save_ifs"
51843 + # Take the normal branch if the nm_file_list_spec branch
51844 + # doesn't work or if tool conversion is not needed.
51845 + case $nm_file_list_spec~$to_tool_file_cmd in
51846 + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
51847 + try_normal_branch=yes
51848 + eval cmd=\"$cmd1\"
51849 + func_len " $cmd"
51850 + len=$func_len_result
51851 + ;;
51852 + *)
51853 + try_normal_branch=no
51854 + ;;
51855 + esac
51856 + if test "$try_normal_branch" = yes \
51857 + && { test "$len" -lt "$max_cmd_len" \
51858 + || test "$max_cmd_len" -le -1; }
51859 + then
51860 + func_show_eval "$cmd" 'exit $?'
51861 + skipped_export=false
51862 + elif test -n "$nm_file_list_spec"; then
51863 + func_basename "$output"
51864 + output_la=$func_basename_result
51865 + save_libobjs=$libobjs
51866 + save_output=$output
51867 + output=${output_objdir}/${output_la}.nm
51868 + func_to_tool_file "$output"
51869 + libobjs=$nm_file_list_spec$func_to_tool_file_result
51870 + func_append delfiles " $output"
51871 + func_verbose "creating $NM input file list: $output"
51872 + for obj in $save_libobjs; do
51873 + func_to_tool_file "$obj"
51874 + $ECHO "$func_to_tool_file_result"
51875 + done > "$output"
51876 + eval cmd=\"$cmd1\"
51877 + func_show_eval "$cmd" 'exit $?'
51878 + output=$save_output
51879 + libobjs=$save_libobjs
51880 + skipped_export=false
51881 + else
51882 + # The command line is too long to execute in one step.
51883 + func_verbose "using reloadable object file for export list..."
51884 + skipped_export=:
51885 + # Break out early, otherwise skipped_export may be
51886 + # set to false by a later but shorter cmd.
51887 + break
51888 + fi
51889 + done
51890 + IFS="$save_ifs"
51891 + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
51892 + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
51893 + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
51894 + fi
51895 + fi
51896 + fi
51897 +
51898 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
51899 + tmp_export_symbols="$export_symbols"
51900 + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
51901 + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
51902 fi
51903
51904 - eval cmds=\"$old_archive_cmds\"
51905 + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
51906 + # The given exports_symbols file has to be filtered, so filter it.
51907 + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
51908 + # FIXME: $output_objdir/$libname.filter potentially contains lots of
51909 + # 's' commands which not all seds can handle. GNU sed should be fine
51910 + # though. Also, the filter scales superlinearly with the number of
51911 + # global variables. join(1) would be nice here, but unfortunately
51912 + # isn't a blessed tool.
51913 + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
51914 + func_append delfiles " $export_symbols $output_objdir/$libname.filter"
51915 + export_symbols=$output_objdir/$libname.def
51916 + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
51917 + fi
51918
51919 - if len=`expr "X$cmds" : ".*"` &&
51920 - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
51921 - cmds=$old_archive_cmds
51922 - else
51923 - # the command line is too long to link in one step, link in parts
51924 - $echo "using piecewise archive linking..."
51925 - save_RANLIB=$RANLIB
51926 - RANLIB=:
51927 - objlist=
51928 - concat_cmds=
51929 - save_oldobjs=$oldobjs
51930 + tmp_deplibs=
51931 + for test_deplib in $deplibs; do
51932 + case " $convenience " in
51933 + *" $test_deplib "*) ;;
51934 + *)
51935 + func_append tmp_deplibs " $test_deplib"
51936 + ;;
51937 + esac
51938 + done
51939 + deplibs="$tmp_deplibs"
51940
51941 - # Is there a better way of finding the last object in the list?
51942 - for obj in $save_oldobjs
51943 - do
51944 - last_oldobj=$obj
51945 - done
51946 - for obj in $save_oldobjs
51947 - do
51948 - oldobjs="$objlist $obj"
51949 - objlist="$objlist $obj"
51950 - eval test_cmds=\"$old_archive_cmds\"
51951 - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
51952 - test "$len" -le "$max_cmd_len"; then
51953 - :
51954 - else
51955 - # the above command should be used before it gets too long
51956 - oldobjs=$objlist
51957 - if test "$obj" = "$last_oldobj" ; then
51958 - RANLIB=$save_RANLIB
51959 - fi
51960 - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
51961 - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
51962 - objlist=
51963 - fi
51964 - done
51965 - RANLIB=$save_RANLIB
51966 - oldobjs=$objlist
51967 - if test "X$oldobjs" = "X" ; then
51968 - eval cmds=\"\$concat_cmds\"
51969 + if test -n "$convenience"; then
51970 + if test -n "$whole_archive_flag_spec" &&
51971 + test "$compiler_needs_object" = yes &&
51972 + test -z "$libobjs"; then
51973 + # extract the archives, so we have objects to list.
51974 + # TODO: could optimize this to just extract one archive.
51975 + whole_archive_flag_spec=
51976 + fi
51977 + if test -n "$whole_archive_flag_spec"; then
51978 + save_libobjs=$libobjs
51979 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
51980 + test "X$libobjs" = "X " && libobjs=
51981 else
51982 - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
51983 + gentop="$output_objdir/${outputname}x"
51984 + func_append generated " $gentop"
51985 +
51986 + func_extract_archives $gentop $convenience
51987 + func_append libobjs " $func_extract_archives_result"
51988 + test "X$libobjs" = "X " && libobjs=
51989 fi
51990 fi
51991 - fi
51992 - save_ifs="$IFS"; IFS='~'
51993 - for cmd in $cmds; do
51994 - eval cmd=\"$cmd\"
51995 - IFS="$save_ifs"
51996 - $show "$cmd"
51997 - $run eval "$cmd" || exit $?
51998 - done
51999 - IFS="$save_ifs"
52000 - done
52001
52002 - if test -n "$generated"; then
52003 - $show "${rm}r$generated"
52004 - $run ${rm}r$generated
52005 - fi
52006 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
52007 + eval flag=\"$thread_safe_flag_spec\"
52008 + func_append linker_flags " $flag"
52009 + fi
52010
52011 - # Now create the libtool archive.
52012 - case $output in
52013 - *.la)
52014 - old_library=
52015 - test "$build_old_libs" = yes && old_library="$libname.$libext"
52016 - $show "creating $output"
52017 + # Make a backup of the uninstalled library when relinking
52018 + if test "$opt_mode" = relink; then
52019 + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
52020 + fi
52021
52022 - # Preserve any variables that may affect compiler behavior
52023 - for var in $variables_saved_for_relink; do
52024 - if eval test -z \"\${$var+set}\"; then
52025 - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
52026 - elif eval var_value=\$$var; test -z "$var_value"; then
52027 - relink_command="$var=; export $var; $relink_command"
52028 + # Do each of the archive commands.
52029 + if test "$module" = yes && test -n "$module_cmds" ; then
52030 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
52031 + eval test_cmds=\"$module_expsym_cmds\"
52032 + cmds=$module_expsym_cmds
52033 + else
52034 + eval test_cmds=\"$module_cmds\"
52035 + cmds=$module_cmds
52036 + fi
52037 else
52038 - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
52039 - relink_command="$var=\"$var_value\"; export $var; $relink_command"
52040 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
52041 + eval test_cmds=\"$archive_expsym_cmds\"
52042 + cmds=$archive_expsym_cmds
52043 + else
52044 + eval test_cmds=\"$archive_cmds\"
52045 + cmds=$archive_cmds
52046 + fi
52047 fi
52048 - done
52049 - # Quote the link command for shipping.
52050 - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
52051 - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
52052 - if test "$hardcode_automatic" = yes ; then
52053 - relink_command=
52054 - fi
52055
52056 + if test "X$skipped_export" != "X:" &&
52057 + func_len " $test_cmds" &&
52058 + len=$func_len_result &&
52059 + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
52060 + :
52061 + else
52062 + # The command line is too long to link in one step, link piecewise
52063 + # or, if using GNU ld and skipped_export is not :, use a linker
52064 + # script.
52065
52066 - # Only create the output if not a dry run.
52067 - if test -z "$run"; then
52068 - for installed in no yes; do
52069 - if test "$installed" = yes; then
52070 - if test -z "$install_libdir"; then
52071 - break
52072 + # Save the value of $output and $libobjs because we want to
52073 + # use them later. If we have whole_archive_flag_spec, we
52074 + # want to use save_libobjs as it was before
52075 + # whole_archive_flag_spec was expanded, because we can't
52076 + # assume the linker understands whole_archive_flag_spec.
52077 + # This may have to be revisited, in case too many
52078 + # convenience libraries get linked in and end up exceeding
52079 + # the spec.
52080 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
52081 + save_libobjs=$libobjs
52082 + fi
52083 + save_output=$output
52084 + func_basename "$output"
52085 + output_la=$func_basename_result
52086 +
52087 + # Clear the reloadable object creation command queue and
52088 + # initialize k to one.
52089 + test_cmds=
52090 + concat_cmds=
52091 + objlist=
52092 + last_robj=
52093 + k=1
52094 +
52095 + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
52096 + output=${output_objdir}/${output_la}.lnkscript
52097 + func_verbose "creating GNU ld script: $output"
52098 + echo 'INPUT (' > $output
52099 + for obj in $save_libobjs
52100 + do
52101 + func_to_tool_file "$obj"
52102 + $ECHO "$func_to_tool_file_result" >> $output
52103 + done
52104 + echo ')' >> $output
52105 + func_append delfiles " $output"
52106 + func_to_tool_file "$output"
52107 + output=$func_to_tool_file_result
52108 + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
52109 + output=${output_objdir}/${output_la}.lnk
52110 + func_verbose "creating linker input file list: $output"
52111 + : > $output
52112 + set x $save_libobjs
52113 + shift
52114 + firstobj=
52115 + if test "$compiler_needs_object" = yes; then
52116 + firstobj="$1 "
52117 + shift
52118 fi
52119 - output="$output_objdir/$outputname"i
52120 - # Replace all uninstalled libtool libraries with the installed ones
52121 - newdependency_libs=
52122 - for deplib in $dependency_libs; do
52123 - case $deplib in
52124 - *.la)
52125 - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
52126 - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
52127 - if test -z "$libdir"; then
52128 - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
52129 - exit $EXIT_FAILURE
52130 - fi
52131 - newdependency_libs="$newdependency_libs $libdir/$name"
52132 - ;;
52133 - *) newdependency_libs="$newdependency_libs $deplib" ;;
52134 - esac
52135 + for obj
52136 + do
52137 + func_to_tool_file "$obj"
52138 + $ECHO "$func_to_tool_file_result" >> $output
52139 done
52140 - dependency_libs="$newdependency_libs"
52141 - newdlfiles=
52142 - for lib in $dlfiles; do
52143 - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
52144 - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
52145 - if test -z "$libdir"; then
52146 - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
52147 - exit $EXIT_FAILURE
52148 + func_append delfiles " $output"
52149 + func_to_tool_file "$output"
52150 + output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
52151 + else
52152 + if test -n "$save_libobjs"; then
52153 + func_verbose "creating reloadable object files..."
52154 + output=$output_objdir/$output_la-${k}.$objext
52155 + eval test_cmds=\"$reload_cmds\"
52156 + func_len " $test_cmds"
52157 + len0=$func_len_result
52158 + len=$len0
52159 +
52160 + # Loop over the list of objects to be linked.
52161 + for obj in $save_libobjs
52162 + do
52163 + func_len " $obj"
52164 + func_arith $len + $func_len_result
52165 + len=$func_arith_result
52166 + if test "X$objlist" = X ||
52167 + test "$len" -lt "$max_cmd_len"; then
52168 + func_append objlist " $obj"
52169 + else
52170 + # The command $test_cmds is almost too long, add a
52171 + # command to the queue.
52172 + if test "$k" -eq 1 ; then
52173 + # The first file doesn't have a previous command to add.
52174 + reload_objs=$objlist
52175 + eval concat_cmds=\"$reload_cmds\"
52176 + else
52177 + # All subsequent reloadable object files will link in
52178 + # the last one created.
52179 + reload_objs="$objlist $last_robj"
52180 + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
52181 + fi
52182 + last_robj=$output_objdir/$output_la-${k}.$objext
52183 + func_arith $k + 1
52184 + k=$func_arith_result
52185 + output=$output_objdir/$output_la-${k}.$objext
52186 + objlist=" $obj"
52187 + func_len " $last_robj"
52188 + func_arith $len0 + $func_len_result
52189 + len=$func_arith_result
52190 + fi
52191 + done
52192 + # Handle the remaining objects by creating one last
52193 + # reloadable object file. All subsequent reloadable object
52194 + # files will link in the last one created.
52195 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
52196 + reload_objs="$objlist $last_robj"
52197 + eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
52198 + if test -n "$last_robj"; then
52199 + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
52200 fi
52201 - newdlfiles="$newdlfiles $libdir/$name"
52202 - done
52203 - dlfiles="$newdlfiles"
52204 - newdlprefiles=
52205 - for lib in $dlprefiles; do
52206 - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
52207 - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
52208 - if test -z "$libdir"; then
52209 - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
52210 - exit $EXIT_FAILURE
52211 + func_append delfiles " $output"
52212 +
52213 + else
52214 + output=
52215 + fi
52216 +
52217 + if ${skipped_export-false}; then
52218 + func_verbose "generating symbol list for \`$libname.la'"
52219 + export_symbols="$output_objdir/$libname.exp"
52220 + $opt_dry_run || $RM $export_symbols
52221 + libobjs=$output
52222 + # Append the command to create the export file.
52223 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
52224 + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
52225 + if test -n "$last_robj"; then
52226 + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
52227 fi
52228 - newdlprefiles="$newdlprefiles $libdir/$name"
52229 + fi
52230 +
52231 + test -n "$save_libobjs" &&
52232 + func_verbose "creating a temporary reloadable object file: $output"
52233 +
52234 + # Loop through the commands generated above and execute them.
52235 + save_ifs="$IFS"; IFS='~'
52236 + for cmd in $concat_cmds; do
52237 + IFS="$save_ifs"
52238 + $opt_silent || {
52239 + func_quote_for_expand "$cmd"
52240 + eval "func_echo $func_quote_for_expand_result"
52241 + }
52242 + $opt_dry_run || eval "$cmd" || {
52243 + lt_exit=$?
52244 +
52245 + # Restore the uninstalled library and exit
52246 + if test "$opt_mode" = relink; then
52247 + ( cd "$output_objdir" && \
52248 + $RM "${realname}T" && \
52249 + $MV "${realname}U" "$realname" )
52250 + fi
52251 +
52252 + exit $lt_exit
52253 + }
52254 done
52255 - dlprefiles="$newdlprefiles"
52256 + IFS="$save_ifs"
52257 +
52258 + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
52259 + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
52260 + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
52261 + fi
52262 + fi
52263 +
52264 + if ${skipped_export-false}; then
52265 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
52266 + tmp_export_symbols="$export_symbols"
52267 + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
52268 + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
52269 + fi
52270 +
52271 + if test -n "$orig_export_symbols"; then
52272 + # The given exports_symbols file has to be filtered, so filter it.
52273 + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
52274 + # FIXME: $output_objdir/$libname.filter potentially contains lots of
52275 + # 's' commands which not all seds can handle. GNU sed should be fine
52276 + # though. Also, the filter scales superlinearly with the number of
52277 + # global variables. join(1) would be nice here, but unfortunately
52278 + # isn't a blessed tool.
52279 + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
52280 + func_append delfiles " $export_symbols $output_objdir/$libname.filter"
52281 + export_symbols=$output_objdir/$libname.def
52282 + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
52283 + fi
52284 + fi
52285 +
52286 + libobjs=$output
52287 + # Restore the value of output.
52288 + output=$save_output
52289 +
52290 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
52291 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
52292 + test "X$libobjs" = "X " && libobjs=
52293 + fi
52294 + # Expand the library linking commands again to reset the
52295 + # value of $libobjs for piecewise linking.
52296 +
52297 + # Do each of the archive commands.
52298 + if test "$module" = yes && test -n "$module_cmds" ; then
52299 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
52300 + cmds=$module_expsym_cmds
52301 + else
52302 + cmds=$module_cmds
52303 + fi
52304 else
52305 - newdlfiles=
52306 - for lib in $dlfiles; do
52307 - case $lib in
52308 - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
52309 - *) abs=`pwd`"/$lib" ;;
52310 - esac
52311 - newdlfiles="$newdlfiles $abs"
52312 - done
52313 - dlfiles="$newdlfiles"
52314 - newdlprefiles=
52315 - for lib in $dlprefiles; do
52316 - case $lib in
52317 - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
52318 - *) abs=`pwd`"/$lib" ;;
52319 - esac
52320 - newdlprefiles="$newdlprefiles $abs"
52321 - done
52322 - dlprefiles="$newdlprefiles"
52323 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
52324 + cmds=$archive_expsym_cmds
52325 + else
52326 + cmds=$archive_cmds
52327 + fi
52328 fi
52329 - $rm $output
52330 - # place dlname in correct position for cygwin
52331 - tdlname=$dlname
52332 - case $host,$output,$installed,$module,$dlname in
52333 - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
52334 - esac
52335 - $echo > $output "\
52336 -# $outputname - a libtool library file
52337 -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
52338 -#
52339 -# Please DO NOT delete this file!
52340 -# It is necessary for linking the library.
52341 + fi
52342
52343 -# The name that we can dlopen(3).
52344 -dlname='$tdlname'
52345 + if test -n "$delfiles"; then
52346 + # Append the command to remove temporary files to $cmds.
52347 + eval cmds=\"\$cmds~\$RM $delfiles\"
52348 + fi
52349
52350 -# Names of this library.
52351 -library_names='$library_names'
52352 + # Add any objects from preloaded convenience libraries
52353 + if test -n "$dlprefiles"; then
52354 + gentop="$output_objdir/${outputname}x"
52355 + func_append generated " $gentop"
52356
52357 -# The name of the static archive.
52358 -old_library='$old_library'
52359 + func_extract_archives $gentop $dlprefiles
52360 + func_append libobjs " $func_extract_archives_result"
52361 + test "X$libobjs" = "X " && libobjs=
52362 + fi
52363
52364 -# Libraries that this one depends upon.
52365 -dependency_libs='$dependency_libs'
52366 + save_ifs="$IFS"; IFS='~'
52367 + for cmd in $cmds; do
52368 + IFS="$save_ifs"
52369 + eval cmd=\"$cmd\"
52370 + $opt_silent || {
52371 + func_quote_for_expand "$cmd"
52372 + eval "func_echo $func_quote_for_expand_result"
52373 + }
52374 + $opt_dry_run || eval "$cmd" || {
52375 + lt_exit=$?
52376
52377 -# Version information for $libname.
52378 -current=$current
52379 -age=$age
52380 -revision=$revision
52381 + # Restore the uninstalled library and exit
52382 + if test "$opt_mode" = relink; then
52383 + ( cd "$output_objdir" && \
52384 + $RM "${realname}T" && \
52385 + $MV "${realname}U" "$realname" )
52386 + fi
52387
52388 -# Is this an already installed library?
52389 -installed=$installed
52390 + exit $lt_exit
52391 + }
52392 + done
52393 + IFS="$save_ifs"
52394
52395 -# Should we warn about portability when linking against -modules?
52396 -shouldnotlink=$module
52397 + # Restore the uninstalled library and exit
52398 + if test "$opt_mode" = relink; then
52399 + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
52400
52401 -# Files to dlopen/dlpreopen
52402 -dlopen='$dlfiles'
52403 -dlpreopen='$dlprefiles'
52404 + if test -n "$convenience"; then
52405 + if test -z "$whole_archive_flag_spec"; then
52406 + func_show_eval '${RM}r "$gentop"'
52407 + fi
52408 + fi
52409
52410 -# Directory that this library needs to be installed in:
52411 -libdir='$install_libdir'"
52412 - if test "$installed" = no && test "$need_relink" = yes; then
52413 - $echo >> $output "\
52414 -relink_command=\"$relink_command\""
52415 + exit $EXIT_SUCCESS
52416 + fi
52417 +
52418 + # Create links to the real library.
52419 + for linkname in $linknames; do
52420 + if test "$realname" != "$linkname"; then
52421 + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
52422 fi
52423 done
52424 - fi
52425
52426 - # Do a symbolic link so that the libtool archive can be found in
52427 - # LD_LIBRARY_PATH before the program is installed.
52428 - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
52429 - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
52430 + # If -module or -export-dynamic was specified, set the dlname.
52431 + if test "$module" = yes || test "$export_dynamic" = yes; then
52432 + # On all known operating systems, these are identical.
52433 + dlname="$soname"
52434 + fi
52435 + fi
52436 ;;
52437 - esac
52438 - exit $EXIT_SUCCESS
52439 - ;;
52440
52441 - # libtool install mode
52442 - install)
52443 - modename="$modename: install"
52444 + obj)
52445 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
52446 + func_warning "\`-dlopen' is ignored for objects"
52447 + fi
52448
52449 - # There may be an optional sh(1) argument at the beginning of
52450 - # install_prog (especially on Windows NT).
52451 - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
52452 - # Allow the use of GNU shtool's install command.
52453 - $echo "X$nonopt" | grep shtool > /dev/null; then
52454 - # Aesthetically quote it.
52455 - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
52456 - case $arg in
52457 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
52458 - arg="\"$arg\""
52459 - ;;
52460 + case " $deplibs" in
52461 + *\ -l* | *\ -L*)
52462 + func_warning "\`-l' and \`-L' are ignored for objects" ;;
52463 esac
52464 - install_prog="$arg "
52465 - arg="$1"
52466 - shift
52467 - else
52468 - install_prog=
52469 - arg=$nonopt
52470 - fi
52471
52472 - # The real first argument should be the name of the installation program.
52473 - # Aesthetically quote it.
52474 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
52475 - case $arg in
52476 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
52477 - arg="\"$arg\""
52478 - ;;
52479 - esac
52480 - install_prog="$install_prog$arg"
52481 + test -n "$rpath" && \
52482 + func_warning "\`-rpath' is ignored for objects"
52483
52484 - # We need to accept at least all the BSD install flags.
52485 - dest=
52486 - files=
52487 - opts=
52488 - prev=
52489 - install_type=
52490 - isdir=no
52491 - stripme=
52492 - for arg
52493 - do
52494 - if test -n "$dest"; then
52495 - files="$files $dest"
52496 - dest=$arg
52497 - continue
52498 - fi
52499 + test -n "$xrpath" && \
52500 + func_warning "\`-R' is ignored for objects"
52501
52502 - case $arg in
52503 - -d) isdir=yes ;;
52504 - -f)
52505 - case " $install_prog " in
52506 - *[\\\ /]cp\ *) ;;
52507 - *) prev=$arg ;;
52508 - esac
52509 - ;;
52510 - -g | -m | -o) prev=$arg ;;
52511 - -s)
52512 - stripme=" -s"
52513 - continue
52514 - ;;
52515 - -*)
52516 + test -n "$vinfo" && \
52517 + func_warning "\`-version-info' is ignored for objects"
52518 +
52519 + test -n "$release" && \
52520 + func_warning "\`-release' is ignored for objects"
52521 +
52522 + case $output in
52523 + *.lo)
52524 + test -n "$objs$old_deplibs" && \
52525 + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
52526 +
52527 + libobj=$output
52528 + func_lo2o "$libobj"
52529 + obj=$func_lo2o_result
52530 ;;
52531 *)
52532 - # If the previous option needed an argument, then skip it.
52533 - if test -n "$prev"; then
52534 - prev=
52535 - else
52536 - dest=$arg
52537 - continue
52538 - fi
52539 + libobj=
52540 + obj="$output"
52541 ;;
52542 esac
52543
52544 - # Aesthetically quote the argument.
52545 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
52546 - case $arg in
52547 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
52548 - arg="\"$arg\""
52549 - ;;
52550 - esac
52551 - install_prog="$install_prog $arg"
52552 - done
52553 + # Delete the old objects.
52554 + $opt_dry_run || $RM $obj $libobj
52555
52556 - if test -z "$install_prog"; then
52557 - $echo "$modename: you must specify an install program" 1>&2
52558 - $echo "$help" 1>&2
52559 - exit $EXIT_FAILURE
52560 - fi
52561 + # Objects from convenience libraries. This assumes
52562 + # single-version convenience libraries. Whenever we create
52563 + # different ones for PIC/non-PIC, this we'll have to duplicate
52564 + # the extraction.
52565 + reload_conv_objs=
52566 + gentop=
52567 + # reload_cmds runs $LD directly, so let us get rid of
52568 + # -Wl from whole_archive_flag_spec and hope we can get by with
52569 + # turning comma into space..
52570 + wl=
52571
52572 - if test -n "$prev"; then
52573 - $echo "$modename: the \`$prev' option requires an argument" 1>&2
52574 - $echo "$help" 1>&2
52575 - exit $EXIT_FAILURE
52576 - fi
52577 + if test -n "$convenience"; then
52578 + if test -n "$whole_archive_flag_spec"; then
52579 + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
52580 + reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
52581 + else
52582 + gentop="$output_objdir/${obj}x"
52583 + func_append generated " $gentop"
52584
52585 - if test -z "$files"; then
52586 - if test -z "$dest"; then
52587 - $echo "$modename: no file or destination specified" 1>&2
52588 - else
52589 - $echo "$modename: you must specify a destination" 1>&2
52590 + func_extract_archives $gentop $convenience
52591 + reload_conv_objs="$reload_objs $func_extract_archives_result"
52592 + fi
52593 fi
52594 - $echo "$help" 1>&2
52595 - exit $EXIT_FAILURE
52596 - fi
52597
52598 - # Strip any trailing slash from the destination.
52599 - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
52600 + # If we're not building shared, we need to use non_pic_objs
52601 + test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
52602
52603 - # Check to see that the destination is a directory.
52604 - test -d "$dest" && isdir=yes
52605 - if test "$isdir" = yes; then
52606 - destdir="$dest"
52607 - destname=
52608 - else
52609 - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
52610 - test "X$destdir" = "X$dest" && destdir=.
52611 - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
52612 + # Create the old-style object.
52613 + reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
52614
52615 - # Not a directory, so check to see that there is only one file specified.
52616 - set dummy $files
52617 - if test "$#" -gt 2; then
52618 - $echo "$modename: \`$dest' is not a directory" 1>&2
52619 - $echo "$help" 1>&2
52620 - exit $EXIT_FAILURE
52621 + output="$obj"
52622 + func_execute_cmds "$reload_cmds" 'exit $?'
52623 +
52624 + # Exit if we aren't doing a library object file.
52625 + if test -z "$libobj"; then
52626 + if test -n "$gentop"; then
52627 + func_show_eval '${RM}r "$gentop"'
52628 + fi
52629 +
52630 + exit $EXIT_SUCCESS
52631 fi
52632 - fi
52633 - case $destdir in
52634 - [\\/]* | [A-Za-z]:[\\/]*) ;;
52635 - *)
52636 - for file in $files; do
52637 - case $file in
52638 - *.lo) ;;
52639 - *)
52640 - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
52641 - $echo "$help" 1>&2
52642 - exit $EXIT_FAILURE
52643 - ;;
52644 - esac
52645 - done
52646 +
52647 + if test "$build_libtool_libs" != yes; then
52648 + if test -n "$gentop"; then
52649 + func_show_eval '${RM}r "$gentop"'
52650 + fi
52651 +
52652 + # Create an invalid libtool object if no PIC, so that we don't
52653 + # accidentally link it into a program.
52654 + # $show "echo timestamp > $libobj"
52655 + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
52656 + exit $EXIT_SUCCESS
52657 + fi
52658 +
52659 + if test -n "$pic_flag" || test "$pic_mode" != default; then
52660 + # Only do commands if we really have different PIC objects.
52661 + reload_objs="$libobjs $reload_conv_objs"
52662 + output="$libobj"
52663 + func_execute_cmds "$reload_cmds" 'exit $?'
52664 + fi
52665 +
52666 + if test -n "$gentop"; then
52667 + func_show_eval '${RM}r "$gentop"'
52668 + fi
52669 +
52670 + exit $EXIT_SUCCESS
52671 ;;
52672 - esac
52673
52674 - # This variable tells wrapper scripts just to set variables rather
52675 - # than running their programs.
52676 - libtool_install_magic="$magic"
52677 + prog)
52678 + case $host in
52679 + *cygwin*) func_stripname '' '.exe' "$output"
52680 + output=$func_stripname_result.exe;;
52681 + esac
52682 + test -n "$vinfo" && \
52683 + func_warning "\`-version-info' is ignored for programs"
52684
52685 - staticlibs=
52686 - future_libdirs=
52687 - current_libdirs=
52688 - for file in $files; do
52689 + test -n "$release" && \
52690 + func_warning "\`-release' is ignored for programs"
52691
52692 - # Do each installation.
52693 - case $file in
52694 - *.$libext)
52695 - # Do the static libraries later.
52696 - staticlibs="$staticlibs $file"
52697 + test "$preload" = yes \
52698 + && test "$dlopen_support" = unknown \
52699 + && test "$dlopen_self" = unknown \
52700 + && test "$dlopen_self_static" = unknown && \
52701 + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
52702 +
52703 + case $host in
52704 + *-*-rhapsody* | *-*-darwin1.[012])
52705 + # On Rhapsody replace the C library is the System framework
52706 + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
52707 + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
52708 ;;
52709 + esac
52710
52711 - *.la)
52712 - # Check to see that this really is a libtool archive.
52713 - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
52714 - else
52715 - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
52716 - $echo "$help" 1>&2
52717 - exit $EXIT_FAILURE
52718 + case $host in
52719 + *-*-darwin*)
52720 + # Don't allow lazy linking, it breaks C++ global constructors
52721 + # But is supposedly fixed on 10.4 or later (yay!).
52722 + if test "$tagname" = CXX ; then
52723 + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
52724 + 10.[0123])
52725 + func_append compile_command " ${wl}-bind_at_load"
52726 + func_append finalize_command " ${wl}-bind_at_load"
52727 + ;;
52728 + esac
52729 fi
52730 + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
52731 + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
52732 + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
52733 + ;;
52734 + esac
52735
52736 - library_names=
52737 - old_library=
52738 - relink_command=
52739 - # If there is no directory component, then add one.
52740 - case $file in
52741 - */* | *\\*) . $file ;;
52742 - *) . ./$file ;;
52743 - esac
52744
52745 - # Add the libdir to current_libdirs if it is the destination.
52746 - if test "X$destdir" = "X$libdir"; then
52747 - case "$current_libdirs " in
52748 - *" $libdir "*) ;;
52749 - *) current_libdirs="$current_libdirs $libdir" ;;
52750 + # move library search paths that coincide with paths to not yet
52751 + # installed libraries to the beginning of the library search list
52752 + new_libs=
52753 + for path in $notinst_path; do
52754 + case " $new_libs " in
52755 + *" -L$path/$objdir "*) ;;
52756 + *)
52757 + case " $compile_deplibs " in
52758 + *" -L$path/$objdir "*)
52759 + func_append new_libs " -L$path/$objdir" ;;
52760 esac
52761 - else
52762 - # Note the libdir as a future libdir.
52763 - case "$future_libdirs " in
52764 - *" $libdir "*) ;;
52765 - *) future_libdirs="$future_libdirs $libdir" ;;
52766 + ;;
52767 + esac
52768 + done
52769 + for deplib in $compile_deplibs; do
52770 + case $deplib in
52771 + -L*)
52772 + case " $new_libs " in
52773 + *" $deplib "*) ;;
52774 + *) func_append new_libs " $deplib" ;;
52775 esac
52776 - fi
52777 + ;;
52778 + *) func_append new_libs " $deplib" ;;
52779 + esac
52780 + done
52781 + compile_deplibs="$new_libs"
52782
52783 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
52784 - test "X$dir" = "X$file/" && dir=
52785 - dir="$dir$objdir"
52786
52787 - if test -n "$relink_command"; then
52788 - # Determine the prefix the user has applied to our future dir.
52789 - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
52790 + func_append compile_command " $compile_deplibs"
52791 + func_append finalize_command " $finalize_deplibs"
52792
52793 - # Don't allow the user to place us outside of our expected
52794 - # location b/c this prevents finding dependent libraries that
52795 - # are installed to the same prefix.
52796 - # At present, this check doesn't affect windows .dll's that
52797 - # are installed into $libdir/../bin (currently, that works fine)
52798 - # but it's something to keep an eye on.
52799 - if test "$inst_prefix_dir" = "$destdir"; then
52800 - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
52801 - exit $EXIT_FAILURE
52802 - fi
52803 + if test -n "$rpath$xrpath"; then
52804 + # If the user specified any rpath flags, then add them.
52805 + for libdir in $rpath $xrpath; do
52806 + # This is the magic to use -rpath.
52807 + case "$finalize_rpath " in
52808 + *" $libdir "*) ;;
52809 + *) func_append finalize_rpath " $libdir" ;;
52810 + esac
52811 + done
52812 + fi
52813
52814 - if test -n "$inst_prefix_dir"; then
52815 - # Stick the inst_prefix_dir data into the link command.
52816 - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
52817 + # Now hardcode the library paths
52818 + rpath=
52819 + hardcode_libdirs=
52820 + for libdir in $compile_rpath $finalize_rpath; do
52821 + if test -n "$hardcode_libdir_flag_spec"; then
52822 + if test -n "$hardcode_libdir_separator"; then
52823 + if test -z "$hardcode_libdirs"; then
52824 + hardcode_libdirs="$libdir"
52825 + else
52826 + # Just accumulate the unique libdirs.
52827 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
52828 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
52829 + ;;
52830 + *)
52831 + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
52832 + ;;
52833 + esac
52834 + fi
52835 else
52836 - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
52837 + eval flag=\"$hardcode_libdir_flag_spec\"
52838 + func_append rpath " $flag"
52839 fi
52840 + elif test -n "$runpath_var"; then
52841 + case "$perm_rpath " in
52842 + *" $libdir "*) ;;
52843 + *) func_append perm_rpath " $libdir" ;;
52844 + esac
52845 + fi
52846 + case $host in
52847 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
52848 + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
52849 + case :$dllsearchpath: in
52850 + *":$libdir:"*) ;;
52851 + ::) dllsearchpath=$libdir;;
52852 + *) func_append dllsearchpath ":$libdir";;
52853 + esac
52854 + case :$dllsearchpath: in
52855 + *":$testbindir:"*) ;;
52856 + ::) dllsearchpath=$testbindir;;
52857 + *) func_append dllsearchpath ":$testbindir";;
52858 + esac
52859 + ;;
52860 + esac
52861 + done
52862 + # Substitute the hardcoded libdirs into the rpath.
52863 + if test -n "$hardcode_libdir_separator" &&
52864 + test -n "$hardcode_libdirs"; then
52865 + libdir="$hardcode_libdirs"
52866 + eval rpath=\" $hardcode_libdir_flag_spec\"
52867 + fi
52868 + compile_rpath="$rpath"
52869
52870 - $echo "$modename: warning: relinking \`$file'" 1>&2
52871 - $show "$relink_command"
52872 - if $run eval "$relink_command"; then :
52873 + rpath=
52874 + hardcode_libdirs=
52875 + for libdir in $finalize_rpath; do
52876 + if test -n "$hardcode_libdir_flag_spec"; then
52877 + if test -n "$hardcode_libdir_separator"; then
52878 + if test -z "$hardcode_libdirs"; then
52879 + hardcode_libdirs="$libdir"
52880 + else
52881 + # Just accumulate the unique libdirs.
52882 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
52883 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
52884 + ;;
52885 + *)
52886 + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
52887 + ;;
52888 + esac
52889 + fi
52890 else
52891 - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
52892 - exit $EXIT_FAILURE
52893 + eval flag=\"$hardcode_libdir_flag_spec\"
52894 + func_append rpath " $flag"
52895 fi
52896 + elif test -n "$runpath_var"; then
52897 + case "$finalize_perm_rpath " in
52898 + *" $libdir "*) ;;
52899 + *) func_append finalize_perm_rpath " $libdir" ;;
52900 + esac
52901 fi
52902 + done
52903 + # Substitute the hardcoded libdirs into the rpath.
52904 + if test -n "$hardcode_libdir_separator" &&
52905 + test -n "$hardcode_libdirs"; then
52906 + libdir="$hardcode_libdirs"
52907 + eval rpath=\" $hardcode_libdir_flag_spec\"
52908 + fi
52909 + finalize_rpath="$rpath"
52910
52911 - # See the names of the shared library.
52912 - set dummy $library_names
52913 - if test -n "$2"; then
52914 - realname="$2"
52915 - shift
52916 - shift
52917 + if test -n "$libobjs" && test "$build_old_libs" = yes; then
52918 + # Transform all the library objects into standard objects.
52919 + compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
52920 + finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
52921 + fi
52922
52923 - srcname="$realname"
52924 - test -n "$relink_command" && srcname="$realname"T
52925 + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
52926
52927 - # Install the shared library and build the symlinks.
52928 - $show "$install_prog $dir/$srcname $destdir/$realname"
52929 - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
52930 - if test -n "$stripme" && test -n "$striplib"; then
52931 - $show "$striplib $destdir/$realname"
52932 - $run eval "$striplib $destdir/$realname" || exit $?
52933 - fi
52934 + # template prelinking step
52935 + if test -n "$prelink_cmds"; then
52936 + func_execute_cmds "$prelink_cmds" 'exit $?'
52937 + fi
52938
52939 - if test "$#" -gt 0; then
52940 - # Delete the old symlinks, and create new ones.
52941 - # Try `ln -sf' first, because the `ln' binary might depend on
52942 - # the symlink we replace! Solaris /bin/ln does not understand -f,
52943 - # so we also need to try rm && ln -s.
52944 - for linkname
52945 - do
52946 - if test "$linkname" != "$realname"; then
52947 - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
52948 - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
52949 - fi
52950 - done
52951 - fi
52952 + wrappers_required=yes
52953 + case $host in
52954 + *cegcc* | *mingw32ce*)
52955 + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
52956 + wrappers_required=no
52957 + ;;
52958 + *cygwin* | *mingw* )
52959 + if test "$build_libtool_libs" != yes; then
52960 + wrappers_required=no
52961 + fi
52962 + ;;
52963 + *)
52964 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
52965 + wrappers_required=no
52966 + fi
52967 + ;;
52968 + esac
52969 + if test "$wrappers_required" = no; then
52970 + # Replace the output file specification.
52971 + compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
52972 + link_command="$compile_command$compile_rpath"
52973
52974 - # Do each command in the postinstall commands.
52975 - lib="$destdir/$realname"
52976 - cmds=$postinstall_cmds
52977 - save_ifs="$IFS"; IFS='~'
52978 - for cmd in $cmds; do
52979 - IFS="$save_ifs"
52980 - eval cmd=\"$cmd\"
52981 - $show "$cmd"
52982 - $run eval "$cmd" || {
52983 - lt_exit=$?
52984 -
52985 - # Restore the uninstalled library and exit
52986 - if test "$mode" = relink; then
52987 - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
52988 - fi
52989 + # We have no uninstalled library dependencies, so finalize right now.
52990 + exit_status=0
52991 + func_show_eval "$link_command" 'exit_status=$?'
52992
52993 - exit $lt_exit
52994 - }
52995 - done
52996 - IFS="$save_ifs"
52997 + if test -n "$postlink_cmds"; then
52998 + func_to_tool_file "$output"
52999 + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
53000 + func_execute_cmds "$postlink_cmds" 'exit $?'
53001 fi
53002
53003 - # Install the pseudo-library for information purposes.
53004 - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
53005 - instname="$dir/$name"i
53006 - $show "$install_prog $instname $destdir/$name"
53007 - $run eval "$install_prog $instname $destdir/$name" || exit $?
53008 + # Delete the generated files.
53009 + if test -f "$output_objdir/${outputname}S.${objext}"; then
53010 + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
53011 + fi
53012
53013 - # Maybe install the static library, too.
53014 - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
53015 - ;;
53016 + exit $exit_status
53017 + fi
53018
53019 - *.lo)
53020 - # Install (i.e. copy) a libtool object.
53021 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
53022 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
53023 + fi
53024 + if test -n "$finalize_shlibpath"; then
53025 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
53026 + fi
53027
53028 - # Figure out destination file name, if it wasn't already specified.
53029 - if test -n "$destname"; then
53030 - destfile="$destdir/$destname"
53031 - else
53032 - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
53033 - destfile="$destdir/$destfile"
53034 + compile_var=
53035 + finalize_var=
53036 + if test -n "$runpath_var"; then
53037 + if test -n "$perm_rpath"; then
53038 + # We should set the runpath_var.
53039 + rpath=
53040 + for dir in $perm_rpath; do
53041 + func_append rpath "$dir:"
53042 + done
53043 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
53044 fi
53045 -
53046 - # Deduce the name of the destination old-style object file.
53047 - case $destfile in
53048 - *.lo)
53049 - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
53050 - ;;
53051 - *.$objext)
53052 - staticdest="$destfile"
53053 - destfile=
53054 - ;;
53055 - *)
53056 - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
53057 - $echo "$help" 1>&2
53058 - exit $EXIT_FAILURE
53059 - ;;
53060 - esac
53061 -
53062 - # Install the libtool object if requested.
53063 - if test -n "$destfile"; then
53064 - $show "$install_prog $file $destfile"
53065 - $run eval "$install_prog $file $destfile" || exit $?
53066 + if test -n "$finalize_perm_rpath"; then
53067 + # We should set the runpath_var.
53068 + rpath=
53069 + for dir in $finalize_perm_rpath; do
53070 + func_append rpath "$dir:"
53071 + done
53072 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
53073 fi
53074 + fi
53075
53076 - # Install the old object if enabled.
53077 - if test "$build_old_libs" = yes; then
53078 - # Deduce the name of the old-style object file.
53079 - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
53080 + if test "$no_install" = yes; then
53081 + # We don't need to create a wrapper script.
53082 + link_command="$compile_var$compile_command$compile_rpath"
53083 + # Replace the output file specification.
53084 + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
53085 + # Delete the old output file.
53086 + $opt_dry_run || $RM $output
53087 + # Link the executable and exit
53088 + func_show_eval "$link_command" 'exit $?'
53089
53090 - $show "$install_prog $staticobj $staticdest"
53091 - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
53092 + if test -n "$postlink_cmds"; then
53093 + func_to_tool_file "$output"
53094 + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
53095 + func_execute_cmds "$postlink_cmds" 'exit $?'
53096 fi
53097 +
53098 exit $EXIT_SUCCESS
53099 - ;;
53100 + fi
53101
53102 - *)
53103 - # Figure out destination file name, if it wasn't already specified.
53104 - if test -n "$destname"; then
53105 - destfile="$destdir/$destname"
53106 + if test "$hardcode_action" = relink; then
53107 + # Fast installation is not supported
53108 + link_command="$compile_var$compile_command$compile_rpath"
53109 + relink_command="$finalize_var$finalize_command$finalize_rpath"
53110 +
53111 + func_warning "this platform does not like uninstalled shared libraries"
53112 + func_warning "\`$output' will be relinked during installation"
53113 + else
53114 + if test "$fast_install" != no; then
53115 + link_command="$finalize_var$compile_command$finalize_rpath"
53116 + if test "$fast_install" = yes; then
53117 + relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
53118 + else
53119 + # fast_install is set to needless
53120 + relink_command=
53121 + fi
53122 else
53123 - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
53124 - destfile="$destdir/$destfile"
53125 + link_command="$compile_var$compile_command$compile_rpath"
53126 + relink_command="$finalize_var$finalize_command$finalize_rpath"
53127 fi
53128 + fi
53129
53130 - # If the file is missing, and there is a .exe on the end, strip it
53131 - # because it is most likely a libtool script we actually want to
53132 - # install
53133 - stripped_ext=""
53134 - case $file in
53135 - *.exe)
53136 - if test ! -f "$file"; then
53137 - file=`$echo $file|${SED} 's,.exe$,,'`
53138 - stripped_ext=".exe"
53139 - fi
53140 - ;;
53141 - esac
53142 -
53143 - # Do a test to see if this is really a libtool program.
53144 - case $host in
53145 - *cygwin*|*mingw*)
53146 - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
53147 - ;;
53148 - *)
53149 - wrapper=$file
53150 - ;;
53151 - esac
53152 - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
53153 - notinst_deplibs=
53154 - relink_command=
53155 + # Replace the output file specification.
53156 + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
53157
53158 - # Note that it is not necessary on cygwin/mingw to append a dot to
53159 - # foo even if both foo and FILE.exe exist: automatic-append-.exe
53160 - # behavior happens only for exec(3), not for open(2)! Also, sourcing
53161 - # `FILE.' does not work on cygwin managed mounts.
53162 - #
53163 - # If there is no directory component, then add one.
53164 - case $wrapper in
53165 - */* | *\\*) . ${wrapper} ;;
53166 - *) . ./${wrapper} ;;
53167 - esac
53168 + # Delete the old output files.
53169 + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
53170
53171 - # Check the variables that should have been set.
53172 - if test -z "$notinst_deplibs"; then
53173 - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
53174 - exit $EXIT_FAILURE
53175 - fi
53176 + func_show_eval "$link_command" 'exit $?'
53177
53178 - finalize=yes
53179 - for lib in $notinst_deplibs; do
53180 - # Check to see that each library is installed.
53181 - libdir=
53182 - if test -f "$lib"; then
53183 - # If there is no directory component, then add one.
53184 - case $lib in
53185 - */* | *\\*) . $lib ;;
53186 - *) . ./$lib ;;
53187 - esac
53188 - fi
53189 - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
53190 - if test -n "$libdir" && test ! -f "$libfile"; then
53191 - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
53192 - finalize=no
53193 - fi
53194 - done
53195 + if test -n "$postlink_cmds"; then
53196 + func_to_tool_file "$output_objdir/$outputname"
53197 + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
53198 + func_execute_cmds "$postlink_cmds" 'exit $?'
53199 + fi
53200
53201 - relink_command=
53202 - # Note that it is not necessary on cygwin/mingw to append a dot to
53203 - # foo even if both foo and FILE.exe exist: automatic-append-.exe
53204 - # behavior happens only for exec(3), not for open(2)! Also, sourcing
53205 - # `FILE.' does not work on cygwin managed mounts.
53206 - #
53207 - # If there is no directory component, then add one.
53208 - case $wrapper in
53209 - */* | *\\*) . ${wrapper} ;;
53210 - *) . ./${wrapper} ;;
53211 - esac
53212 + # Now create the wrapper script.
53213 + func_verbose "creating $output"
53214
53215 - outputname=
53216 - if test "$fast_install" = no && test -n "$relink_command"; then
53217 - if test "$finalize" = yes && test -z "$run"; then
53218 - tmpdir=`func_mktempdir`
53219 - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
53220 - outputname="$tmpdir/$file"
53221 - # Replace the output file specification.
53222 - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
53223 -
53224 - $show "$relink_command"
53225 - if $run eval "$relink_command"; then :
53226 - else
53227 - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
53228 - ${rm}r "$tmpdir"
53229 - continue
53230 - fi
53231 - file="$outputname"
53232 - else
53233 - $echo "$modename: warning: cannot relink \`$file'" 1>&2
53234 - fi
53235 + # Quote the relink command for shipping.
53236 + if test -n "$relink_command"; then
53237 + # Preserve any variables that may affect compiler behavior
53238 + for var in $variables_saved_for_relink; do
53239 + if eval test -z \"\${$var+set}\"; then
53240 + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
53241 + elif eval var_value=\$$var; test -z "$var_value"; then
53242 + relink_command="$var=; export $var; $relink_command"
53243 else
53244 - # Install the binary that we compiled earlier.
53245 - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
53246 + func_quote_for_eval "$var_value"
53247 + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
53248 fi
53249 - fi
53250 -
53251 - # remove .exe since cygwin /usr/bin/install will append another
53252 - # one anyway
53253 - case $install_prog,$host in
53254 - */usr/bin/install*,*cygwin*)
53255 - case $file:$destfile in
53256 - *.exe:*.exe)
53257 - # this is ok
53258 - ;;
53259 - *.exe:*)
53260 - destfile=$destfile.exe
53261 - ;;
53262 - *:*.exe)
53263 - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
53264 - ;;
53265 - esac
53266 - ;;
53267 + done
53268 + relink_command="(cd `pwd`; $relink_command)"
53269 + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
53270 + fi
53271 +
53272 + # Only actually do things if not in dry run mode.
53273 + $opt_dry_run || {
53274 + # win32 will think the script is a binary if it has
53275 + # a .exe suffix, so we strip it off here.
53276 + case $output in
53277 + *.exe) func_stripname '' '.exe' "$output"
53278 + output=$func_stripname_result ;;
53279 esac
53280 - $show "$install_prog$stripme $file $destfile"
53281 - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
53282 - test -n "$outputname" && ${rm}r "$tmpdir"
53283 - ;;
53284 - esac
53285 - done
53286 + # test for cygwin because mv fails w/o .exe extensions
53287 + case $host in
53288 + *cygwin*)
53289 + exeext=.exe
53290 + func_stripname '' '.exe' "$outputname"
53291 + outputname=$func_stripname_result ;;
53292 + *) exeext= ;;
53293 + esac
53294 + case $host in
53295 + *cygwin* | *mingw* )
53296 + func_dirname_and_basename "$output" "" "."
53297 + output_name=$func_basename_result
53298 + output_path=$func_dirname_result
53299 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
53300 + cwrapper="$output_path/$output_name.exe"
53301 + $RM $cwrappersource $cwrapper
53302 + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
53303 +
53304 + func_emit_cwrapperexe_src > $cwrappersource
53305 +
53306 + # The wrapper executable is built using the $host compiler,
53307 + # because it contains $host paths and files. If cross-
53308 + # compiling, it, like the target executable, must be
53309 + # executed on the $host or under an emulation environment.
53310 + $opt_dry_run || {
53311 + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
53312 + $STRIP $cwrapper
53313 + }
53314
53315 - for file in $staticlibs; do
53316 - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
53317 + # Now, create the wrapper script for func_source use:
53318 + func_ltwrapper_scriptname $cwrapper
53319 + $RM $func_ltwrapper_scriptname_result
53320 + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
53321 + $opt_dry_run || {
53322 + # note: this script will not be executed, so do not chmod.
53323 + if test "x$build" = "x$host" ; then
53324 + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
53325 + else
53326 + func_emit_wrapper no > $func_ltwrapper_scriptname_result
53327 + fi
53328 + }
53329 + ;;
53330 + * )
53331 + $RM $output
53332 + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
53333
53334 - # Set up the ranlib parameters.
53335 - oldlib="$destdir/$name"
53336 + func_emit_wrapper no > $output
53337 + chmod +x $output
53338 + ;;
53339 + esac
53340 + }
53341 + exit $EXIT_SUCCESS
53342 + ;;
53343 + esac
53344
53345 - $show "$install_prog $file $oldlib"
53346 - $run eval "$install_prog \$file \$oldlib" || exit $?
53347 + # See if we need to build an old-fashioned archive.
53348 + for oldlib in $oldlibs; do
53349
53350 - if test -n "$stripme" && test -n "$old_striplib"; then
53351 - $show "$old_striplib $oldlib"
53352 - $run eval "$old_striplib $oldlib" || exit $?
53353 + if test "$build_libtool_libs" = convenience; then
53354 + oldobjs="$libobjs_save $symfileobj"
53355 + addlibs="$convenience"
53356 + build_libtool_libs=no
53357 + else
53358 + if test "$build_libtool_libs" = module; then
53359 + oldobjs="$libobjs_save"
53360 + build_libtool_libs=no
53361 + else
53362 + oldobjs="$old_deplibs $non_pic_objects"
53363 + if test "$preload" = yes && test -f "$symfileobj"; then
53364 + func_append oldobjs " $symfileobj"
53365 + fi
53366 + fi
53367 + addlibs="$old_convenience"
53368 fi
53369
53370 - # Do each command in the postinstall commands.
53371 - cmds=$old_postinstall_cmds
53372 - save_ifs="$IFS"; IFS='~'
53373 - for cmd in $cmds; do
53374 - IFS="$save_ifs"
53375 - eval cmd=\"$cmd\"
53376 - $show "$cmd"
53377 - $run eval "$cmd" || exit $?
53378 - done
53379 - IFS="$save_ifs"
53380 - done
53381 + if test -n "$addlibs"; then
53382 + gentop="$output_objdir/${outputname}x"
53383 + func_append generated " $gentop"
53384
53385 - if test -n "$future_libdirs"; then
53386 - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
53387 - fi
53388 + func_extract_archives $gentop $addlibs
53389 + func_append oldobjs " $func_extract_archives_result"
53390 + fi
53391
53392 - if test -n "$current_libdirs"; then
53393 - # Maybe just do a dry run.
53394 - test -n "$run" && current_libdirs=" -n$current_libdirs"
53395 - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
53396 - else
53397 - exit $EXIT_SUCCESS
53398 - fi
53399 - ;;
53400 + # Do each command in the archive commands.
53401 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
53402 + cmds=$old_archive_from_new_cmds
53403 + else
53404
53405 - # libtool finish mode
53406 - finish)
53407 - modename="$modename: finish"
53408 - libdirs="$nonopt"
53409 - admincmds=
53410 + # Add any objects from preloaded convenience libraries
53411 + if test -n "$dlprefiles"; then
53412 + gentop="$output_objdir/${outputname}x"
53413 + func_append generated " $gentop"
53414
53415 - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
53416 - for dir
53417 - do
53418 - libdirs="$libdirs $dir"
53419 - done
53420 + func_extract_archives $gentop $dlprefiles
53421 + func_append oldobjs " $func_extract_archives_result"
53422 + fi
53423
53424 - for libdir in $libdirs; do
53425 - if test -n "$finish_cmds"; then
53426 - # Do each command in the finish commands.
53427 - cmds=$finish_cmds
53428 - save_ifs="$IFS"; IFS='~'
53429 - for cmd in $cmds; do
53430 - IFS="$save_ifs"
53431 - eval cmd=\"$cmd\"
53432 - $show "$cmd"
53433 - $run eval "$cmd" || admincmds="$admincmds
53434 - $cmd"
53435 + # POSIX demands no paths to be encoded in archives. We have
53436 + # to avoid creating archives with duplicate basenames if we
53437 + # might have to extract them afterwards, e.g., when creating a
53438 + # static archive out of a convenience library, or when linking
53439 + # the entirety of a libtool archive into another (currently
53440 + # not supported by libtool).
53441 + if (for obj in $oldobjs
53442 + do
53443 + func_basename "$obj"
53444 + $ECHO "$func_basename_result"
53445 + done | sort | sort -uc >/dev/null 2>&1); then
53446 + :
53447 + else
53448 + echo "copying selected object files to avoid basename conflicts..."
53449 + gentop="$output_objdir/${outputname}x"
53450 + func_append generated " $gentop"
53451 + func_mkdir_p "$gentop"
53452 + save_oldobjs=$oldobjs
53453 + oldobjs=
53454 + counter=1
53455 + for obj in $save_oldobjs
53456 + do
53457 + func_basename "$obj"
53458 + objbase="$func_basename_result"
53459 + case " $oldobjs " in
53460 + " ") oldobjs=$obj ;;
53461 + *[\ /]"$objbase "*)
53462 + while :; do
53463 + # Make sure we don't pick an alternate name that also
53464 + # overlaps.
53465 + newobj=lt$counter-$objbase
53466 + func_arith $counter + 1
53467 + counter=$func_arith_result
53468 + case " $oldobjs " in
53469 + *[\ /]"$newobj "*) ;;
53470 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
53471 + esac
53472 + done
53473 + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
53474 + func_append oldobjs " $gentop/$newobj"
53475 + ;;
53476 + *) func_append oldobjs " $obj" ;;
53477 + esac
53478 done
53479 - IFS="$save_ifs"
53480 - fi
53481 - if test -n "$finish_eval"; then
53482 - # Do the single finish_eval.
53483 - eval cmds=\"$finish_eval\"
53484 - $run eval "$cmds" || admincmds="$admincmds
53485 - $cmds"
53486 fi
53487 - done
53488 - fi
53489 -
53490 - # Exit here if they wanted silent mode.
53491 - test "$show" = : && exit $EXIT_SUCCESS
53492 + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
53493 + tool_oldlib=$func_to_tool_file_result
53494 + eval cmds=\"$old_archive_cmds\"
53495
53496 - $echo "X----------------------------------------------------------------------" | $Xsed
53497 - $echo "Libraries have been installed in:"
53498 - for libdir in $libdirs; do
53499 - $echo " $libdir"
53500 + func_len " $cmds"
53501 + len=$func_len_result
53502 + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
53503 + cmds=$old_archive_cmds
53504 + elif test -n "$archiver_list_spec"; then
53505 + func_verbose "using command file archive linking..."
53506 + for obj in $oldobjs
53507 + do
53508 + func_to_tool_file "$obj"
53509 + $ECHO "$func_to_tool_file_result"
53510 + done > $output_objdir/$libname.libcmd
53511 + func_to_tool_file "$output_objdir/$libname.libcmd"
53512 + oldobjs=" $archiver_list_spec$func_to_tool_file_result"
53513 + cmds=$old_archive_cmds
53514 + else
53515 + # the command line is too long to link in one step, link in parts
53516 + func_verbose "using piecewise archive linking..."
53517 + save_RANLIB=$RANLIB
53518 + RANLIB=:
53519 + objlist=
53520 + concat_cmds=
53521 + save_oldobjs=$oldobjs
53522 + oldobjs=
53523 + # Is there a better way of finding the last object in the list?
53524 + for obj in $save_oldobjs
53525 + do
53526 + last_oldobj=$obj
53527 + done
53528 + eval test_cmds=\"$old_archive_cmds\"
53529 + func_len " $test_cmds"
53530 + len0=$func_len_result
53531 + len=$len0
53532 + for obj in $save_oldobjs
53533 + do
53534 + func_len " $obj"
53535 + func_arith $len + $func_len_result
53536 + len=$func_arith_result
53537 + func_append objlist " $obj"
53538 + if test "$len" -lt "$max_cmd_len"; then
53539 + :
53540 + else
53541 + # the above command should be used before it gets too long
53542 + oldobjs=$objlist
53543 + if test "$obj" = "$last_oldobj" ; then
53544 + RANLIB=$save_RANLIB
53545 + fi
53546 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
53547 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
53548 + objlist=
53549 + len=$len0
53550 + fi
53551 + done
53552 + RANLIB=$save_RANLIB
53553 + oldobjs=$objlist
53554 + if test "X$oldobjs" = "X" ; then
53555 + eval cmds=\"\$concat_cmds\"
53556 + else
53557 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
53558 + fi
53559 + fi
53560 + fi
53561 + func_execute_cmds "$cmds" 'exit $?'
53562 done
53563 - $echo
53564 - $echo "If you ever happen to want to link against installed libraries"
53565 - $echo "in a given directory, LIBDIR, you must either use libtool, and"
53566 - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
53567 - $echo "flag during linking and do at least one of the following:"
53568 - if test -n "$shlibpath_var"; then
53569 - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
53570 - $echo " during execution"
53571 - fi
53572 - if test -n "$runpath_var"; then
53573 - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
53574 - $echo " during linking"
53575 - fi
53576 - if test -n "$hardcode_libdir_flag_spec"; then
53577 - libdir=LIBDIR
53578 - eval flag=\"$hardcode_libdir_flag_spec\"
53579 -
53580 - $echo " - use the \`$flag' linker flag"
53581 - fi
53582 - if test -n "$admincmds"; then
53583 - $echo " - have your system administrator run these commands:$admincmds"
53584 - fi
53585 - if test -f /etc/ld.so.conf; then
53586 - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
53587 - fi
53588 - $echo
53589 - $echo "See any operating system documentation about shared libraries for"
53590 - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
53591 - $echo "X----------------------------------------------------------------------" | $Xsed
53592 - exit $EXIT_SUCCESS
53593 - ;;
53594
53595 - # libtool execute mode
53596 - execute)
53597 - modename="$modename: execute"
53598 -
53599 - # The first argument is the command name.
53600 - cmd="$nonopt"
53601 - if test -z "$cmd"; then
53602 - $echo "$modename: you must specify a COMMAND" 1>&2
53603 - $echo "$help"
53604 - exit $EXIT_FAILURE
53605 - fi
53606 + test -n "$generated" && \
53607 + func_show_eval "${RM}r$generated"
53608
53609 - # Handle -dlopen flags immediately.
53610 - for file in $execute_dlfiles; do
53611 - if test ! -f "$file"; then
53612 - $echo "$modename: \`$file' is not a file" 1>&2
53613 - $echo "$help" 1>&2
53614 - exit $EXIT_FAILURE
53615 - fi
53616 + # Now create the libtool archive.
53617 + case $output in
53618 + *.la)
53619 + old_library=
53620 + test "$build_old_libs" = yes && old_library="$libname.$libext"
53621 + func_verbose "creating $output"
53622
53623 - dir=
53624 - case $file in
53625 - *.la)
53626 - # Check to see that this really is a libtool archive.
53627 - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
53628 + # Preserve any variables that may affect compiler behavior
53629 + for var in $variables_saved_for_relink; do
53630 + if eval test -z \"\${$var+set}\"; then
53631 + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
53632 + elif eval var_value=\$$var; test -z "$var_value"; then
53633 + relink_command="$var=; export $var; $relink_command"
53634 else
53635 - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
53636 - $echo "$help" 1>&2
53637 - exit $EXIT_FAILURE
53638 + func_quote_for_eval "$var_value"
53639 + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
53640 fi
53641 + done
53642 + # Quote the link command for shipping.
53643 + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
53644 + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
53645 + if test "$hardcode_automatic" = yes ; then
53646 + relink_command=
53647 + fi
53648
53649 - # Read the libtool library.
53650 - dlname=
53651 - library_names=
53652 + # Only create the output if not a dry run.
53653 + $opt_dry_run || {
53654 + for installed in no yes; do
53655 + if test "$installed" = yes; then
53656 + if test -z "$install_libdir"; then
53657 + break
53658 + fi
53659 + output="$output_objdir/$outputname"i
53660 + # Replace all uninstalled libtool libraries with the installed ones
53661 + newdependency_libs=
53662 + for deplib in $dependency_libs; do
53663 + case $deplib in
53664 + *.la)
53665 + func_basename "$deplib"
53666 + name="$func_basename_result"
53667 + func_resolve_sysroot "$deplib"
53668 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
53669 + test -z "$libdir" && \
53670 + func_fatal_error "\`$deplib' is not a valid libtool archive"
53671 + func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
53672 + ;;
53673 + -L*)
53674 + func_stripname -L '' "$deplib"
53675 + func_replace_sysroot "$func_stripname_result"
53676 + func_append newdependency_libs " -L$func_replace_sysroot_result"
53677 + ;;
53678 + -R*)
53679 + func_stripname -R '' "$deplib"
53680 + func_replace_sysroot "$func_stripname_result"
53681 + func_append newdependency_libs " -R$func_replace_sysroot_result"
53682 + ;;
53683 + *) func_append newdependency_libs " $deplib" ;;
53684 + esac
53685 + done
53686 + dependency_libs="$newdependency_libs"
53687 + newdlfiles=
53688 +
53689 + for lib in $dlfiles; do
53690 + case $lib in
53691 + *.la)
53692 + func_basename "$lib"
53693 + name="$func_basename_result"
53694 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
53695 + test -z "$libdir" && \
53696 + func_fatal_error "\`$lib' is not a valid libtool archive"
53697 + func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
53698 + ;;
53699 + *) func_append newdlfiles " $lib" ;;
53700 + esac
53701 + done
53702 + dlfiles="$newdlfiles"
53703 + newdlprefiles=
53704 + for lib in $dlprefiles; do
53705 + case $lib in
53706 + *.la)
53707 + # Only pass preopened files to the pseudo-archive (for
53708 + # eventual linking with the app. that links it) if we
53709 + # didn't already link the preopened objects directly into
53710 + # the library:
53711 + func_basename "$lib"
53712 + name="$func_basename_result"
53713 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
53714 + test -z "$libdir" && \
53715 + func_fatal_error "\`$lib' is not a valid libtool archive"
53716 + func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
53717 + ;;
53718 + esac
53719 + done
53720 + dlprefiles="$newdlprefiles"
53721 + else
53722 + newdlfiles=
53723 + for lib in $dlfiles; do
53724 + case $lib in
53725 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
53726 + *) abs=`pwd`"/$lib" ;;
53727 + esac
53728 + func_append newdlfiles " $abs"
53729 + done
53730 + dlfiles="$newdlfiles"
53731 + newdlprefiles=
53732 + for lib in $dlprefiles; do
53733 + case $lib in
53734 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
53735 + *) abs=`pwd`"/$lib" ;;
53736 + esac
53737 + func_append newdlprefiles " $abs"
53738 + done
53739 + dlprefiles="$newdlprefiles"
53740 + fi
53741 + $RM $output
53742 + # place dlname in correct position for cygwin
53743 + # In fact, it would be nice if we could use this code for all target
53744 + # systems that can't hard-code library paths into their executables
53745 + # and that have no shared library path variable independent of PATH,
53746 + # but it turns out we can't easily determine that from inspecting
53747 + # libtool variables, so we have to hard-code the OSs to which it
53748 + # applies here; at the moment, that means platforms that use the PE
53749 + # object format with DLL files. See the long comment at the top of
53750 + # tests/bindir.at for full details.
53751 + tdlname=$dlname
53752 + case $host,$output,$installed,$module,$dlname in
53753 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
53754 + # If a -bindir argument was supplied, place the dll there.
53755 + if test "x$bindir" != x ;
53756 + then
53757 + func_relative_path "$install_libdir" "$bindir"
53758 + tdlname=$func_relative_path_result$dlname
53759 + else
53760 + # Otherwise fall back on heuristic.
53761 + tdlname=../bin/$dlname
53762 + fi
53763 + ;;
53764 + esac
53765 + $ECHO > $output "\
53766 +# $outputname - a libtool library file
53767 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
53768 +#
53769 +# Please DO NOT delete this file!
53770 +# It is necessary for linking the library.
53771
53772 - # If there is no directory component, then add one.
53773 - case $file in
53774 - */* | *\\*) . $file ;;
53775 - *) . ./$file ;;
53776 - esac
53777 +# The name that we can dlopen(3).
53778 +dlname='$tdlname'
53779
53780 - # Skip this library if it cannot be dlopened.
53781 - if test -z "$dlname"; then
53782 - # Warn if it was a shared library.
53783 - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
53784 - continue
53785 - fi
53786 +# Names of this library.
53787 +library_names='$library_names'
53788
53789 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
53790 - test "X$dir" = "X$file" && dir=.
53791 +# The name of the static archive.
53792 +old_library='$old_library'
53793
53794 - if test -f "$dir/$objdir/$dlname"; then
53795 - dir="$dir/$objdir"
53796 - else
53797 - if test ! -f "$dir/$dlname"; then
53798 - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
53799 - exit $EXIT_FAILURE
53800 - fi
53801 - fi
53802 - ;;
53803 +# Linker flags that can not go in dependency_libs.
53804 +inherited_linker_flags='$new_inherited_linker_flags'
53805
53806 - *.lo)
53807 - # Just add the directory containing the .lo file.
53808 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
53809 - test "X$dir" = "X$file" && dir=.
53810 - ;;
53811 +# Libraries that this one depends upon.
53812 +dependency_libs='$dependency_libs'
53813
53814 - *)
53815 - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
53816 - continue
53817 - ;;
53818 - esac
53819 +# Names of additional weak libraries provided by this library
53820 +weak_library_names='$weak_libs'
53821
53822 - # Get the absolute pathname.
53823 - absdir=`cd "$dir" && pwd`
53824 - test -n "$absdir" && dir="$absdir"
53825 +# Version information for $libname.
53826 +current=$current
53827 +age=$age
53828 +revision=$revision
53829
53830 - # Now add the directory to shlibpath_var.
53831 - if eval "test -z \"\$$shlibpath_var\""; then
53832 - eval "$shlibpath_var=\"\$dir\""
53833 - else
53834 - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
53835 - fi
53836 - done
53837 +# Is this an already installed library?
53838 +installed=$installed
53839
53840 - # This variable tells wrapper scripts just to set shlibpath_var
53841 - # rather than running their programs.
53842 - libtool_execute_magic="$magic"
53843 +# Should we warn about portability when linking against -modules?
53844 +shouldnotlink=$module
53845
53846 - # Check if any of the arguments is a wrapper script.
53847 - args=
53848 - for file
53849 - do
53850 - case $file in
53851 - -*) ;;
53852 - *)
53853 - # Do a test to see if this is really a libtool program.
53854 - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
53855 - # If there is no directory component, then add one.
53856 - case $file in
53857 - */* | *\\*) . $file ;;
53858 - *) . ./$file ;;
53859 - esac
53860 +# Files to dlopen/dlpreopen
53861 +dlopen='$dlfiles'
53862 +dlpreopen='$dlprefiles'
53863
53864 - # Transform arg to wrapped name.
53865 - file="$progdir/$program"
53866 - fi
53867 - ;;
53868 - esac
53869 - # Quote arguments (to preserve shell metacharacters).
53870 - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
53871 - args="$args \"$file\""
53872 - done
53873 +# Directory that this library needs to be installed in:
53874 +libdir='$install_libdir'"
53875 + if test "$installed" = no && test "$need_relink" = yes; then
53876 + $ECHO >> $output "\
53877 +relink_command=\"$relink_command\""
53878 + fi
53879 + done
53880 + }
53881
53882 - if test -z "$run"; then
53883 - if test -n "$shlibpath_var"; then
53884 - # Export the shlibpath_var.
53885 - eval "export $shlibpath_var"
53886 - fi
53887 + # Do a symbolic link so that the libtool archive can be found in
53888 + # LD_LIBRARY_PATH before the program is installed.
53889 + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
53890 + ;;
53891 + esac
53892 + exit $EXIT_SUCCESS
53893 +}
53894
53895 - # Restore saved environment variables
53896 - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
53897 - do
53898 - eval "if test \"\${save_$lt_var+set}\" = set; then
53899 - $lt_var=\$save_$lt_var; export $lt_var
53900 - fi"
53901 - done
53902 +{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
53903 + func_mode_link ${1+"$@"}
53904
53905 - # Now prepare to actually exec the command.
53906 - exec_cmd="\$cmd$args"
53907 - else
53908 - # Display what would be done.
53909 - if test -n "$shlibpath_var"; then
53910 - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
53911 - $echo "export $shlibpath_var"
53912 - fi
53913 - $echo "$cmd$args"
53914 - exit $EXIT_SUCCESS
53915 - fi
53916 - ;;
53917
53918 - # libtool clean and uninstall mode
53919 - clean | uninstall)
53920 - modename="$modename: $mode"
53921 - rm="$nonopt"
53922 +# func_mode_uninstall arg...
53923 +func_mode_uninstall ()
53924 +{
53925 + $opt_debug
53926 + RM="$nonopt"
53927 files=
53928 rmforce=
53929 exit_status=0
53930 @@ -6539,44 +9460,41 @@ relink_command=\"$relink_command\""
53931 for arg
53932 do
53933 case $arg in
53934 - -f) rm="$rm $arg"; rmforce=yes ;;
53935 - -*) rm="$rm $arg" ;;
53936 - *) files="$files $arg" ;;
53937 + -f) func_append RM " $arg"; rmforce=yes ;;
53938 + -*) func_append RM " $arg" ;;
53939 + *) func_append files " $arg" ;;
53940 esac
53941 done
53942
53943 - if test -z "$rm"; then
53944 - $echo "$modename: you must specify an RM program" 1>&2
53945 - $echo "$help" 1>&2
53946 - exit $EXIT_FAILURE
53947 - fi
53948 + test -z "$RM" && \
53949 + func_fatal_help "you must specify an RM program"
53950
53951 rmdirs=
53952
53953 - origobjdir="$objdir"
53954 for file in $files; do
53955 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
53956 - if test "X$dir" = "X$file"; then
53957 - dir=.
53958 - objdir="$origobjdir"
53959 + func_dirname "$file" "" "."
53960 + dir="$func_dirname_result"
53961 + if test "X$dir" = X.; then
53962 + odir="$objdir"
53963 else
53964 - objdir="$dir/$origobjdir"
53965 + odir="$dir/$objdir"
53966 fi
53967 - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
53968 - test "$mode" = uninstall && objdir="$dir"
53969 + func_basename "$file"
53970 + name="$func_basename_result"
53971 + test "$opt_mode" = uninstall && odir="$dir"
53972
53973 - # Remember objdir for removal later, being careful to avoid duplicates
53974 - if test "$mode" = clean; then
53975 + # Remember odir for removal later, being careful to avoid duplicates
53976 + if test "$opt_mode" = clean; then
53977 case " $rmdirs " in
53978 - *" $objdir "*) ;;
53979 - *) rmdirs="$rmdirs $objdir" ;;
53980 + *" $odir "*) ;;
53981 + *) func_append rmdirs " $odir" ;;
53982 esac
53983 fi
53984
53985 # Don't error if the file doesn't exist and rm -f was used.
53986 - if (test -L "$file") >/dev/null 2>&1 \
53987 - || (test -h "$file") >/dev/null 2>&1 \
53988 - || test -f "$file"; then
53989 + if { test -L "$file"; } >/dev/null 2>&1 ||
53990 + { test -h "$file"; } >/dev/null 2>&1 ||
53991 + test -f "$file"; then
53992 :
53993 elif test -d "$file"; then
53994 exit_status=1
53995 @@ -6590,55 +9508,32 @@ relink_command=\"$relink_command\""
53996 case $name in
53997 *.la)
53998 # Possibly a libtool archive, so verify it.
53999 - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
54000 - . $dir/$name
54001 + if func_lalib_p "$file"; then
54002 + func_source $dir/$name
54003
54004 # Delete the libtool libraries and symlinks.
54005 for n in $library_names; do
54006 - rmfiles="$rmfiles $objdir/$n"
54007 + func_append rmfiles " $odir/$n"
54008 done
54009 - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
54010 + test -n "$old_library" && func_append rmfiles " $odir/$old_library"
54011
54012 - case "$mode" in
54013 + case "$opt_mode" in
54014 clean)
54015 - case " $library_names " in
54016 - # " " in the beginning catches empty $dlname
54017 + case " $library_names " in
54018 *" $dlname "*) ;;
54019 - *) rmfiles="$rmfiles $objdir/$dlname" ;;
54020 + *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
54021 esac
54022 - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
54023 + test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
54024 ;;
54025 uninstall)
54026 if test -n "$library_names"; then
54027 # Do each command in the postuninstall commands.
54028 - cmds=$postuninstall_cmds
54029 - save_ifs="$IFS"; IFS='~'
54030 - for cmd in $cmds; do
54031 - IFS="$save_ifs"
54032 - eval cmd=\"$cmd\"
54033 - $show "$cmd"
54034 - $run eval "$cmd"
54035 - if test "$?" -ne 0 && test "$rmforce" != yes; then
54036 - exit_status=1
54037 - fi
54038 - done
54039 - IFS="$save_ifs"
54040 + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
54041 fi
54042
54043 if test -n "$old_library"; then
54044 # Do each command in the old_postuninstall commands.
54045 - cmds=$old_postuninstall_cmds
54046 - save_ifs="$IFS"; IFS='~'
54047 - for cmd in $cmds; do
54048 - IFS="$save_ifs"
54049 - eval cmd=\"$cmd\"
54050 - $show "$cmd"
54051 - $run eval "$cmd"
54052 - if test "$?" -ne 0 && test "$rmforce" != yes; then
54053 - exit_status=1
54054 - fi
54055 - done
54056 - IFS="$save_ifs"
54057 + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
54058 fi
54059 # FIXME: should reinstall the best remaining shared library.
54060 ;;
54061 @@ -6648,288 +9543,95 @@ relink_command=\"$relink_command\""
54062
54063 *.lo)
54064 # Possibly a libtool object, so verify it.
54065 - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
54066 + if func_lalib_p "$file"; then
54067
54068 # Read the .lo file
54069 - . $dir/$name
54070 + func_source $dir/$name
54071
54072 # Add PIC object to the list of files to remove.
54073 - if test -n "$pic_object" \
54074 - && test "$pic_object" != none; then
54075 - rmfiles="$rmfiles $dir/$pic_object"
54076 + if test -n "$pic_object" &&
54077 + test "$pic_object" != none; then
54078 + func_append rmfiles " $dir/$pic_object"
54079 fi
54080
54081 # Add non-PIC object to the list of files to remove.
54082 - if test -n "$non_pic_object" \
54083 - && test "$non_pic_object" != none; then
54084 - rmfiles="$rmfiles $dir/$non_pic_object"
54085 + if test -n "$non_pic_object" &&
54086 + test "$non_pic_object" != none; then
54087 + func_append rmfiles " $dir/$non_pic_object"
54088 fi
54089 fi
54090 ;;
54091
54092 *)
54093 - if test "$mode" = clean ; then
54094 + if test "$opt_mode" = clean ; then
54095 noexename=$name
54096 case $file in
54097 *.exe)
54098 - file=`$echo $file|${SED} 's,.exe$,,'`
54099 - noexename=`$echo $name|${SED} 's,.exe$,,'`
54100 + func_stripname '' '.exe' "$file"
54101 + file=$func_stripname_result
54102 + func_stripname '' '.exe' "$name"
54103 + noexename=$func_stripname_result
54104 # $file with .exe has already been added to rmfiles,
54105 # add $file without .exe
54106 - rmfiles="$rmfiles $file"
54107 + func_append rmfiles " $file"
54108 ;;
54109 esac
54110 # Do a test to see if this is a libtool program.
54111 - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
54112 - relink_command=
54113 - . $dir/$noexename
54114 + if func_ltwrapper_p "$file"; then
54115 + if func_ltwrapper_executable_p "$file"; then
54116 + func_ltwrapper_scriptname "$file"
54117 + relink_command=
54118 + func_source $func_ltwrapper_scriptname_result
54119 + func_append rmfiles " $func_ltwrapper_scriptname_result"
54120 + else
54121 + relink_command=
54122 + func_source $dir/$noexename
54123 + fi
54124
54125 # note $name still contains .exe if it was in $file originally
54126 # as does the version of $file that was added into $rmfiles
54127 - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
54128 + func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
54129 if test "$fast_install" = yes && test -n "$relink_command"; then
54130 - rmfiles="$rmfiles $objdir/lt-$name"
54131 + func_append rmfiles " $odir/lt-$name"
54132 fi
54133 if test "X$noexename" != "X$name" ; then
54134 - rmfiles="$rmfiles $objdir/lt-${noexename}.c"
54135 + func_append rmfiles " $odir/lt-${noexename}.c"
54136 fi
54137 fi
54138 fi
54139 ;;
54140 esac
54141 - $show "$rm $rmfiles"
54142 - $run $rm $rmfiles || exit_status=1
54143 + func_show_eval "$RM $rmfiles" 'exit_status=1'
54144 done
54145 - objdir="$origobjdir"
54146
54147 # Try to remove the ${objdir}s in the directories where we deleted files
54148 for dir in $rmdirs; do
54149 if test -d "$dir"; then
54150 - $show "rmdir $dir"
54151 - $run rmdir $dir >/dev/null 2>&1
54152 + func_show_eval "rmdir $dir >/dev/null 2>&1"
54153 fi
54154 done
54155
54156 exit $exit_status
54157 - ;;
54158 +}
54159
54160 - "")
54161 - $echo "$modename: you must specify a MODE" 1>&2
54162 - $echo "$generic_help" 1>&2
54163 - exit $EXIT_FAILURE
54164 - ;;
54165 - esac
54166 +{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
54167 + func_mode_uninstall ${1+"$@"}
54168
54169 - if test -z "$exec_cmd"; then
54170 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
54171 - $echo "$generic_help" 1>&2
54172 - exit $EXIT_FAILURE
54173 - fi
54174 -fi # test -z "$show_help"
54175 +test -z "$opt_mode" && {
54176 + help="$generic_help"
54177 + func_fatal_help "you must specify a MODE"
54178 +}
54179 +
54180 +test -z "$exec_cmd" && \
54181 + func_fatal_help "invalid operation mode \`$opt_mode'"
54182
54183 if test -n "$exec_cmd"; then
54184 - eval exec $exec_cmd
54185 + eval exec "$exec_cmd"
54186 exit $EXIT_FAILURE
54187 fi
54188
54189 -# We need to display help for each of the modes.
54190 -case $mode in
54191 -"") $echo \
54192 -"Usage: $modename [OPTION]... [MODE-ARG]...
54193 -
54194 -Provide generalized library-building support services.
54195 -
54196 - --config show all configuration variables
54197 - --debug enable verbose shell tracing
54198 --n, --dry-run display commands without modifying any files
54199 - --features display basic configuration information and exit
54200 - --finish same as \`--mode=finish'
54201 - --help display this help message and exit
54202 - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
54203 - --quiet same as \`--silent'
54204 - --silent don't print informational messages
54205 - --tag=TAG use configuration variables from tag TAG
54206 - --version print version information
54207 -
54208 -MODE must be one of the following:
54209 -
54210 - clean remove files from the build directory
54211 - compile compile a source file into a libtool object
54212 - execute automatically set library path, then run a program
54213 - finish complete the installation of libtool libraries
54214 - install install libraries or executables
54215 - link create a library or an executable
54216 - uninstall remove libraries from an installed directory
54217 -
54218 -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
54219 -a more detailed description of MODE.
54220 -
54221 -Report bugs to <bug-libtool@gnu.org>."
54222 - exit $EXIT_SUCCESS
54223 - ;;
54224 -
54225 -clean)
54226 - $echo \
54227 -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
54228 -
54229 -Remove files from the build directory.
54230 -
54231 -RM is the name of the program to use to delete files associated with each FILE
54232 -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
54233 -to RM.
54234 -
54235 -If FILE is a libtool library, object or program, all the files associated
54236 -with it are deleted. Otherwise, only FILE itself is deleted using RM."
54237 - ;;
54238 -
54239 -compile)
54240 - $echo \
54241 -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
54242 -
54243 -Compile a source file into a libtool library object.
54244 -
54245 -This mode accepts the following additional options:
54246 -
54247 - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
54248 - -prefer-pic try to building PIC objects only
54249 - -prefer-non-pic try to building non-PIC objects only
54250 - -static always build a \`.o' file suitable for static linking
54251 -
54252 -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
54253 -from the given SOURCEFILE.
54254 -
54255 -The output file name is determined by removing the directory component from
54256 -SOURCEFILE, then substituting the C source code suffix \`.c' with the
54257 -library object suffix, \`.lo'."
54258 - ;;
54259 -
54260 -execute)
54261 - $echo \
54262 -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
54263 -
54264 -Automatically set library path, then run a program.
54265 -
54266 -This mode accepts the following additional options:
54267 -
54268 - -dlopen FILE add the directory containing FILE to the library path
54269 -
54270 -This mode sets the library path environment variable according to \`-dlopen'
54271 -flags.
54272 -
54273 -If any of the ARGS are libtool executable wrappers, then they are translated
54274 -into their corresponding uninstalled binary, and any of their required library
54275 -directories are added to the library path.
54276 -
54277 -Then, COMMAND is executed, with ARGS as arguments."
54278 - ;;
54279 -
54280 -finish)
54281 - $echo \
54282 -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
54283 -
54284 -Complete the installation of libtool libraries.
54285 -
54286 -Each LIBDIR is a directory that contains libtool libraries.
54287 -
54288 -The commands that this mode executes may require superuser privileges. Use
54289 -the \`--dry-run' option if you just want to see what would be executed."
54290 - ;;
54291 -
54292 -install)
54293 - $echo \
54294 -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
54295 -
54296 -Install executables or libraries.
54297 -
54298 -INSTALL-COMMAND is the installation command. The first component should be
54299 -either the \`install' or \`cp' program.
54300 -
54301 -The rest of the components are interpreted as arguments to that command (only
54302 -BSD-compatible install options are recognized)."
54303 - ;;
54304 -
54305 -link)
54306 - $echo \
54307 -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
54308 -
54309 -Link object files or libraries together to form another library, or to
54310 -create an executable program.
54311 -
54312 -LINK-COMMAND is a command using the C compiler that you would use to create
54313 -a program from several object files.
54314 -
54315 -The following components of LINK-COMMAND are treated specially:
54316 -
54317 - -all-static do not do any dynamic linking at all
54318 - -avoid-version do not add a version suffix if possible
54319 - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
54320 - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
54321 - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
54322 - -export-symbols SYMFILE
54323 - try to export only the symbols listed in SYMFILE
54324 - -export-symbols-regex REGEX
54325 - try to export only the symbols matching REGEX
54326 - -LLIBDIR search LIBDIR for required installed libraries
54327 - -lNAME OUTPUT-FILE requires the installed library libNAME
54328 - -module build a library that can dlopened
54329 - -no-fast-install disable the fast-install mode
54330 - -no-install link a not-installable executable
54331 - -no-undefined declare that a library does not refer to external symbols
54332 - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
54333 - -objectlist FILE Use a list of object files found in FILE to specify objects
54334 - -precious-files-regex REGEX
54335 - don't remove output files matching REGEX
54336 - -release RELEASE specify package release information
54337 - -rpath LIBDIR the created library will eventually be installed in LIBDIR
54338 - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
54339 - -static do not do any dynamic linking of uninstalled libtool libraries
54340 - -static-libtool-libs
54341 - do not do any dynamic linking of libtool libraries
54342 - -version-info CURRENT[:REVISION[:AGE]]
54343 - specify library version info [each variable defaults to 0]
54344 -
54345 -All other options (arguments beginning with \`-') are ignored.
54346 -
54347 -Every other argument is treated as a filename. Files ending in \`.la' are
54348 -treated as uninstalled libtool libraries, other files are standard or library
54349 -object files.
54350 -
54351 -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
54352 -only library objects (\`.lo' files) may be specified, and \`-rpath' is
54353 -required, except when creating a convenience library.
54354 -
54355 -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
54356 -using \`ar' and \`ranlib', or on Windows using \`lib'.
54357 -
54358 -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
54359 -is created, otherwise an executable program is created."
54360 - ;;
54361 -
54362 -uninstall)
54363 - $echo \
54364 -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
54365 +exit $exit_status
54366
54367 -Remove libraries from an installation directory.
54368 -
54369 -RM is the name of the program to use to delete files associated with each FILE
54370 -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
54371 -to RM.
54372 -
54373 -If FILE is a libtool library, all the files associated with it are deleted.
54374 -Otherwise, only FILE itself is deleted using RM."
54375 - ;;
54376 -
54377 -*)
54378 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
54379 - $echo "$help" 1>&2
54380 - exit $EXIT_FAILURE
54381 - ;;
54382 -esac
54383 -
54384 -$echo
54385 -$echo "Try \`$modename --help' for more information about other modes."
54386 -
54387 -exit $?
54388
54389 # The TAGs below are defined such that we never get into a situation
54390 # in which we disable both kinds of libraries. Given conflicting
54391 @@ -6943,14 +9645,17 @@ exit $?
54392 # configuration. But we'll never go from static-only to shared-only.
54393
54394 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
54395 -disable_libs=shared
54396 +build_libtool_libs=no
54397 +build_old_libs=yes
54398 # ### END LIBTOOL TAG CONFIG: disable-shared
54399
54400 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
54401 -disable_libs=static
54402 +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
54403 # ### END LIBTOOL TAG CONFIG: disable-static
54404
54405 # Local Variables:
54406 # mode:shell-script
54407 # sh-indentation:2
54408 # End:
54409 +# vi:sw=2
54410 +
54411 diff --git a/tests/Makefile.in b/tests/Makefile.in
54412 index d09d1d5..20ef5d7 100644
54413 --- a/tests/Makefile.in
54414 +++ b/tests/Makefile.in
54415 @@ -1,8 +1,9 @@
54416 -# Makefile.in generated by automake 1.10.1 from Makefile.am.
54417 +# Makefile.in generated by automake 1.11.3 from Makefile.am.
54418 # @configure_input@
54419
54420 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
54421 -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
54422 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
54423 +# Foundation, Inc.
54424 # This Makefile.in is free software; the Free Software Foundation
54425 # gives unlimited permission to copy and/or distribute it,
54426 # with or without modifications, as long as this notice is preserved.
54427 @@ -15,8 +16,9 @@
54428 @SET_MAKE@
54429 VPATH = @srcdir@
54430 pkgdatadir = $(datadir)/@PACKAGE@
54431 -pkglibdir = $(libdir)/@PACKAGE@
54432 pkgincludedir = $(includedir)/@PACKAGE@
54433 +pkglibdir = $(libdir)/@PACKAGE@
54434 +pkglibexecdir = $(libexecdir)/@PACKAGE@
54435 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
54436 install_sh_DATA = $(install_sh) -c -m 644
54437 install_sh_PROGRAM = $(install_sh) -c
54438 @@ -37,12 +39,16 @@ subdir = tests
54439 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
54440 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
54441 am__aclocal_m4_deps = $(top_srcdir)/m4/gtk-doc.m4 \
54442 - $(top_srcdir)/m4/jh-xml-catalog.m4 $(top_srcdir)/configure.in
54443 + $(top_srcdir)/m4/jh-xml-catalog.m4 $(top_srcdir)/m4/libtool.m4 \
54444 + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
54445 + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
54446 + $(top_srcdir)/configure.in
54447 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54448 $(ACLOCAL_M4)
54449 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
54450 CONFIG_HEADER = $(top_builddir)/config.h
54451 CONFIG_CLEAN_FILES =
54452 +CONFIG_CLEAN_VPATH_FILES =
54453 test_libglade_gtk_SOURCES = test-libglade-gtk.c
54454 test_libglade_gtk_OBJECTS = test-libglade-gtk.$(OBJEXT)
54455 test_libglade_gtk_DEPENDENCIES = \
54456 @@ -54,6 +60,7 @@ test_value_parse_DEPENDENCIES = $(top_builddir)/glade/libglade-2.0.la
54457 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
54458 depcomp = $(SHELL) $(top_srcdir)/depcomp
54459 am__depfiles_maybe = depfiles
54460 +am__mv = mv -f
54461 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
54462 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
54463 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
54464 @@ -67,9 +74,10 @@ SOURCES = test-libglade-gtk.c test-value-parse.c
54465 DIST_SOURCES = test-libglade-gtk.c test-value-parse.c
54466 ETAGS = etags
54467 CTAGS = ctags
54468 +am__tty_colors = \
54469 +red=; grn=; lgn=; blu=; std=
54470 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
54471 ACLOCAL = @ACLOCAL@
54472 -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
54473 AMTAR = @AMTAR@
54474 AR = @AR@
54475 AS = @AS@
54476 @@ -90,12 +98,13 @@ DEFS = @DEFS@
54477 DEPDIR = @DEPDIR@
54478 DLLTOOL = @DLLTOOL@
54479 DSYMUTIL = @DSYMUTIL@
54480 -ECHO = @ECHO@
54481 +DUMPBIN = @DUMPBIN@
54482 ECHO_C = @ECHO_C@
54483 ECHO_N = @ECHO_N@
54484 ECHO_T = @ECHO_T@
54485 EGREP = @EGREP@
54486 EXEEXT = @EXEEXT@
54487 +FGREP = @FGREP@
54488 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
54489 GMOFILES = @GMOFILES@
54490 GMSGFMT = @GMSGFMT@
54491 @@ -112,30 +121,39 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
54492 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
54493 INSTOBJEXT = @INSTOBJEXT@
54494 INTLLIBS = @INTLLIBS@
54495 +LD = @LD@
54496 LDFLAGS = @LDFLAGS@
54497 LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@
54498 LIBGLADE_LIBS = @LIBGLADE_LIBS@
54499 LIBOBJS = @LIBOBJS@
54500 LIBS = @LIBS@
54501 LIBTOOL = @LIBTOOL@
54502 +LIPO = @LIPO@
54503 LN_S = @LN_S@
54504 LTLIBOBJS = @LTLIBOBJS@
54505 MAKEINFO = @MAKEINFO@
54506 +MANIFEST_TOOL = @MANIFEST_TOOL@
54507 MKDIR_P = @MKDIR_P@
54508 MKINSTALLDIRS = @MKINSTALLDIRS@
54509 MSGFMT = @MSGFMT@
54510 MSGFMT_OPTS = @MSGFMT_OPTS@
54511 +NM = @NM@
54512 NMEDIT = @NMEDIT@
54513 OBJDUMP = @OBJDUMP@
54514 OBJEXT = @OBJEXT@
54515 +OTOOL = @OTOOL@
54516 +OTOOL64 = @OTOOL64@
54517 PACKAGE = @PACKAGE@
54518 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
54519 PACKAGE_NAME = @PACKAGE_NAME@
54520 PACKAGE_STRING = @PACKAGE_STRING@
54521 PACKAGE_TARNAME = @PACKAGE_TARNAME@
54522 +PACKAGE_URL = @PACKAGE_URL@
54523 PACKAGE_VERSION = @PACKAGE_VERSION@
54524 PATH_SEPARATOR = @PATH_SEPARATOR@
54525 PKG_CONFIG = @PKG_CONFIG@
54526 +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
54527 +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
54528 POFILES = @POFILES@
54529 POSUB = @POSUB@
54530 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
54531 @@ -159,7 +177,9 @@ abs_builddir = @abs_builddir@
54532 abs_srcdir = @abs_srcdir@
54533 abs_top_builddir = @abs_top_builddir@
54534 abs_top_srcdir = @abs_top_srcdir@
54535 +ac_ct_AR = @ac_ct_AR@
54536 ac_ct_CC = @ac_ct_CC@
54537 +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
54538 am__include = @am__include@
54539 am__leading_dot = @am__leading_dot@
54540 am__quote = @am__quote@
54541 @@ -228,14 +248,14 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
54542 @for dep in $?; do \
54543 case '$(am__configure_deps)' in \
54544 *$$dep*) \
54545 - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
54546 - && exit 0; \
54547 + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
54548 + && { if test -f $@; then exit 0; else break; fi; }; \
54549 exit 1;; \
54550 esac; \
54551 done; \
54552 - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
54553 - cd $(top_srcdir) && \
54554 - $(AUTOMAKE) --gnu tests/Makefile
54555 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
54556 + $(am__cd) $(top_srcdir) && \
54557 + $(AUTOMAKE) --gnu tests/Makefile
54558 .PRECIOUS: Makefile
54559 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
54560 @case '$?' in \
54561 @@ -253,17 +273,20 @@ $(top_srcdir)/configure: $(am__configure_deps)
54562 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
54563 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
54564 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
54565 +$(am__aclocal_m4_deps):
54566
54567 clean-checkPROGRAMS:
54568 - @list='$(check_PROGRAMS)'; for p in $$list; do \
54569 - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
54570 - echo " rm -f $$p $$f"; \
54571 - rm -f $$p $$f ; \
54572 - done
54573 -test-libglade-gtk$(EXEEXT): $(test_libglade_gtk_OBJECTS) $(test_libglade_gtk_DEPENDENCIES)
54574 + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
54575 + echo " rm -f" $$list; \
54576 + rm -f $$list || exit $$?; \
54577 + test -n "$(EXEEXT)" || exit 0; \
54578 + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
54579 + echo " rm -f" $$list; \
54580 + rm -f $$list
54581 +test-libglade-gtk$(EXEEXT): $(test_libglade_gtk_OBJECTS) $(test_libglade_gtk_DEPENDENCIES) $(EXTRA_test_libglade_gtk_DEPENDENCIES)
54582 @rm -f test-libglade-gtk$(EXEEXT)
54583 $(LINK) $(test_libglade_gtk_OBJECTS) $(test_libglade_gtk_LDADD) $(LIBS)
54584 -test-value-parse$(EXEEXT): $(test_value_parse_OBJECTS) $(test_value_parse_DEPENDENCIES)
54585 +test-value-parse$(EXEEXT): $(test_value_parse_OBJECTS) $(test_value_parse_DEPENDENCIES) $(EXTRA_test_value_parse_DEPENDENCIES)
54586 @rm -f test-value-parse$(EXEEXT)
54587 $(LINK) $(test_value_parse_OBJECTS) $(test_value_parse_LDADD) $(LIBS)
54588
54589 @@ -278,21 +301,21 @@ distclean-compile:
54590
54591 .c.o:
54592 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
54593 -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
54594 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
54595 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
54596 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
54597 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
54598
54599 .c.obj:
54600 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
54601 -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
54602 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
54603 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
54604 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
54605 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
54606
54607 .c.lo:
54608 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
54609 -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
54610 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
54611 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
54612 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
54613 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
54614 @@ -308,14 +331,14 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
54615 unique=`for i in $$list; do \
54616 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
54617 done | \
54618 - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
54619 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
54620 END { if (nonempty) { for (i in files) print i; }; }'`; \
54621 mkid -fID $$unique
54622 tags: TAGS
54623
54624 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
54625 $(TAGS_FILES) $(LISP)
54626 - tags=; \
54627 + set x; \
54628 here=`pwd`; \
54629 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
54630 unique=`for i in $$list; do \
54631 @@ -323,37 +346,43 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
54632 done | \
54633 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
54634 END { if (nonempty) { for (i in files) print i; }; }'`; \
54635 - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
54636 + shift; \
54637 + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
54638 test -n "$$unique" || unique=$$empty_fix; \
54639 - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
54640 - $$tags $$unique; \
54641 + if test $$# -gt 0; then \
54642 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
54643 + "$$@" $$unique; \
54644 + else \
54645 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
54646 + $$unique; \
54647 + fi; \
54648 fi
54649 ctags: CTAGS
54650 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
54651 $(TAGS_FILES) $(LISP)
54652 - tags=; \
54653 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
54654 unique=`for i in $$list; do \
54655 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
54656 done | \
54657 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
54658 END { if (nonempty) { for (i in files) print i; }; }'`; \
54659 - test -z "$(CTAGS_ARGS)$$tags$$unique" \
54660 + test -z "$(CTAGS_ARGS)$$unique" \
54661 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
54662 - $$tags $$unique
54663 + $$unique
54664
54665 GTAGS:
54666 here=`$(am__cd) $(top_builddir) && pwd` \
54667 - && cd $(top_srcdir) \
54668 - && gtags -i $(GTAGS_ARGS) $$here
54669 + && $(am__cd) $(top_srcdir) \
54670 + && gtags -i $(GTAGS_ARGS) "$$here"
54671
54672 distclean-tags:
54673 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
54674
54675 check-TESTS: $(TESTS)
54676 - @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
54677 + @failed=0; all=0; xfail=0; xpass=0; skip=0; \
54678 srcdir=$(srcdir); export srcdir; \
54679 list=' $(TESTS) '; \
54680 + $(am__tty_colors); \
54681 if test -n "$$list"; then \
54682 for tst in $$list; do \
54683 if test -f ./$$tst; then dir=./; \
54684 @@ -362,49 +391,63 @@ check-TESTS: $(TESTS)
54685 if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
54686 all=`expr $$all + 1`; \
54687 case " $(XFAIL_TESTS) " in \
54688 - *$$ws$$tst$$ws*) \
54689 + *[\ \ ]$$tst[\ \ ]*) \
54690 xpass=`expr $$xpass + 1`; \
54691 failed=`expr $$failed + 1`; \
54692 - echo "XPASS: $$tst"; \
54693 + col=$$red; res=XPASS; \
54694 ;; \
54695 *) \
54696 - echo "PASS: $$tst"; \
54697 + col=$$grn; res=PASS; \
54698 ;; \
54699 esac; \
54700 elif test $$? -ne 77; then \
54701 all=`expr $$all + 1`; \
54702 case " $(XFAIL_TESTS) " in \
54703 - *$$ws$$tst$$ws*) \
54704 + *[\ \ ]$$tst[\ \ ]*) \
54705 xfail=`expr $$xfail + 1`; \
54706 - echo "XFAIL: $$tst"; \
54707 + col=$$lgn; res=XFAIL; \
54708 ;; \
54709 *) \
54710 failed=`expr $$failed + 1`; \
54711 - echo "FAIL: $$tst"; \
54712 + col=$$red; res=FAIL; \
54713 ;; \
54714 esac; \
54715 else \
54716 skip=`expr $$skip + 1`; \
54717 - echo "SKIP: $$tst"; \
54718 + col=$$blu; res=SKIP; \
54719 fi; \
54720 + echo "$${col}$$res$${std}: $$tst"; \
54721 done; \
54722 + if test "$$all" -eq 1; then \
54723 + tests="test"; \
54724 + All=""; \
54725 + else \
54726 + tests="tests"; \
54727 + All="All "; \
54728 + fi; \
54729 if test "$$failed" -eq 0; then \
54730 if test "$$xfail" -eq 0; then \
54731 - banner="All $$all tests passed"; \
54732 + banner="$$All$$all $$tests passed"; \
54733 else \
54734 - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
54735 + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
54736 + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
54737 fi; \
54738 else \
54739 if test "$$xpass" -eq 0; then \
54740 - banner="$$failed of $$all tests failed"; \
54741 + banner="$$failed of $$all $$tests failed"; \
54742 else \
54743 - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
54744 + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
54745 + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
54746 fi; \
54747 fi; \
54748 dashes="$$banner"; \
54749 skipped=""; \
54750 if test "$$skip" -ne 0; then \
54751 - skipped="($$skip tests were not run)"; \
54752 + if test "$$skip" -eq 1; then \
54753 + skipped="($$skip test was not run)"; \
54754 + else \
54755 + skipped="($$skip tests were not run)"; \
54756 + fi; \
54757 test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
54758 dashes="$$skipped"; \
54759 fi; \
54760 @@ -415,11 +458,16 @@ check-TESTS: $(TESTS)
54761 dashes="$$report"; \
54762 fi; \
54763 dashes=`echo "$$dashes" | sed s/./=/g`; \
54764 - echo "$$dashes"; \
54765 - echo "$$banner"; \
54766 - test -z "$$skipped" || echo "$$skipped"; \
54767 - test -z "$$report" || echo "$$report"; \
54768 - echo "$$dashes"; \
54769 + if test "$$failed" -eq 0; then \
54770 + col="$$grn"; \
54771 + else \
54772 + col="$$red"; \
54773 + fi; \
54774 + echo "$${col}$$dashes$${std}"; \
54775 + echo "$${col}$$banner$${std}"; \
54776 + test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
54777 + test -z "$$report" || echo "$${col}$$report$${std}"; \
54778 + echo "$${col}$$dashes$${std}"; \
54779 test "$$failed" -eq 0; \
54780 else :; fi
54781
54782 @@ -439,13 +487,17 @@ distdir: $(DISTFILES)
54783 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
54784 if test -d $$d/$$file; then \
54785 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
54786 + if test -d "$(distdir)/$$file"; then \
54787 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
54788 + fi; \
54789 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
54790 - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
54791 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
54792 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
54793 fi; \
54794 - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
54795 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
54796 else \
54797 - test -f $(distdir)/$$file \
54798 - || cp -p $$d/$$file $(distdir)/$$file \
54799 + test -f "$(distdir)/$$file" \
54800 + || cp -p $$d/$$file "$(distdir)/$$file" \
54801 || exit 1; \
54802 fi; \
54803 done
54804 @@ -465,10 +517,15 @@ install-am: all-am
54805
54806 installcheck: installcheck-am
54807 install-strip:
54808 - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
54809 - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
54810 - `test -z '$(STRIP)' || \
54811 - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
54812 + if test -z '$(STRIP)'; then \
54813 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
54814 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
54815 + install; \
54816 + else \
54817 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
54818 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
54819 + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
54820 + fi
54821 mostlyclean-generic:
54822
54823 clean-generic:
54824 @@ -476,6 +533,7 @@ clean-generic:
54825
54826 distclean-generic:
54827 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
54828 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
54829
54830 maintainer-clean-generic:
54831 @echo "This command is intended for maintainers to use"
54832 @@ -497,6 +555,8 @@ dvi-am:
54833
54834 html: html-am
54835
54836 +html-am:
54837 +
54838 info: info-am
54839
54840 info-am:
54841 @@ -505,18 +565,28 @@ install-data-am:
54842
54843 install-dvi: install-dvi-am
54844
54845 +install-dvi-am:
54846 +
54847 install-exec-am:
54848
54849 install-html: install-html-am
54850
54851 +install-html-am:
54852 +
54853 install-info: install-info-am
54854
54855 +install-info-am:
54856 +
54857 install-man:
54858
54859 install-pdf: install-pdf-am
54860
54861 +install-pdf-am:
54862 +
54863 install-ps: install-ps-am
54864
54865 +install-ps-am:
54866 +
54867 installcheck-am:
54868
54869 maintainer-clean: maintainer-clean-am
54870 @@ -539,7 +609,7 @@ ps-am:
54871
54872 uninstall-am:
54873
54874 -.MAKE: install-am install-strip
54875 +.MAKE: check-am install-am install-strip
54876
54877 .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
54878 clean-checkPROGRAMS clean-generic clean-libtool ctags \
54879 @@ -558,6 +628,7 @@ uninstall-am:
54880
54881 @PLATFORM_WIN32_TRUE@test-libglade-gtk.exp : test-libglade-gtk.o
54882 @PLATFORM_WIN32_TRUE@ dlltool --output-exp test-libglade-gtk.exp test-libglade-gtk.o
54883 +
54884 # Tell versions [3.59,3.63) of GNU make to not export all variables.
54885 # Otherwise a system limit (for SysV at least) may be exceeded.
54886 .NOEXPORT:
63 -- 54887 --
64 1.7.5.4 54888 1.7.9.5
65 54889