move init scripts and related out of ipkg/
[openwrt.git] / package / glib / patches / 01-debian-9
1 --- glib1.2-1.2.10.orig/Makefile.in
2 +++ glib1.2-1.2.10/Makefile.in
3 @@ -1,6 +1,6 @@
4 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
5 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
6
7 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
8 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
9 # This Makefile.in is free software; the Free Software Foundation
10 # gives unlimited permission to copy and/or distribute it,
11 # with or without modifications, as long as this notice is preserved.
12 @@ -64,8 +64,10 @@
13 AS = @AS@
14 CC = @CC@
15 DLLTOOL = @DLLTOOL@
16 +ECHO = @ECHO@
17 ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
18 ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
19 +EXEEXT = @EXEEXT@
20 GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
21 GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
22 GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
23 @@ -90,8 +92,10 @@
24 MAINT = @MAINT@
25 MAKEINFO = @MAKEINFO@
26 OBJDUMP = @OBJDUMP@
27 +OBJEXT = @OBJEXT@
28 PACKAGE = @PACKAGE@
29 RANLIB = @RANLIB@
30 +STRIP = @STRIP@
31 VERSION = @VERSION@
32
33 AUTOMAKE_OPTIONS = 1.4
34 @@ -154,18 +158,20 @@
35 gmain.lo gmem.lo gmessages.lo gmutex.lo gnode.lo gprimes.lo grel.lo \
36 gscanner.lo gslist.lo gstrfuncs.lo gstring.lo gtimer.lo gtree.lo \
37 gutils.lo
38 +noinst_PROGRAMS = testglib$(EXEEXT) testgdate$(EXEEXT) \
39 +testgdateparser$(EXEEXT)
40 PROGRAMS = $(noinst_PROGRAMS)
41
42 testglib_SOURCES = testglib.c
43 -testglib_OBJECTS = testglib.o
44 +testglib_OBJECTS = testglib.$(OBJEXT)
45 testglib_DEPENDENCIES = libglib.la
46 testglib_LDFLAGS =
47 testgdate_SOURCES = testgdate.c
48 -testgdate_OBJECTS = testgdate.o
49 +testgdate_OBJECTS = testgdate.$(OBJEXT)
50 testgdate_DEPENDENCIES = libglib.la
51 testgdate_LDFLAGS =
52 testgdateparser_SOURCES = testgdateparser.c
53 -testgdateparser_OBJECTS = testgdateparser.o
54 +testgdateparser_OBJECTS = testgdateparser.$(OBJEXT)
55 testgdateparser_DEPENDENCIES = libglib.la
56 testgdateparser_LDFLAGS =
57 SCRIPTS = $(bin_SCRIPTS)
58 @@ -180,22 +186,22 @@
59 HEADERS = $(glibinclude_HEADERS)
60
61 DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
62 -Makefile.am Makefile.in NEWS acconfig.h acinclude.m4 aclocal.m4 \
63 -config.guess config.h.in config.sub configure configure.in \
64 -glib-config.in glib.pc.in glib.spec.in gmodule.pc.in gthread.pc.in \
65 -install-sh ltconfig ltmain.sh missing mkinstalldirs
66 +Makefile.am Makefile.in NEWS acconfig.h aclocal.m4 config.guess \
67 +config.h.in config.sub configure configure.in glib-config.in glib.pc.in \
68 +glib.spec.in gmodule.pc.in gthread.pc.in install-sh ltmain.sh missing \
69 +mkinstalldirs
70
71
72 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
73
74 -TAR = gtar
75 +TAR = tar
76 GZIP_ENV = --best
77 SOURCES = $(libglib_la_SOURCES) testglib.c testgdate.c testgdateparser.c
78 -OBJECTS = $(libglib_la_OBJECTS) testglib.o testgdate.o testgdateparser.o
79 +OBJECTS = $(libglib_la_OBJECTS) testglib.$(OBJEXT) testgdate.$(OBJEXT) testgdateparser.$(OBJEXT)
80
81 all: all-redirect
82 .SUFFIXES:
83 -.SUFFIXES: .S .c .lo .o .s
84 +.SUFFIXES: .S .c .lo .o .obj .s
85 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
86 cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
87
88 @@ -203,7 +209,7 @@
89 cd $(top_builddir) \
90 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
91
92 -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4
93 +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
94 cd $(srcdir) && $(ACLOCAL)
95
96 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
97 @@ -277,6 +283,11 @@
98 .c.o:
99 $(COMPILE) -c $<
100
101 +# FIXME: We should only use cygpath when building on Windows,
102 +# and only if it is available.
103 +.c.obj:
104 + $(COMPILE) -c `cygpath -w $<`
105 +
106 .s.o:
107 $(COMPILE) -c $<
108
109 @@ -285,6 +296,7 @@
110
111 mostlyclean-compile:
112 -rm -f *.o core *.core
113 + -rm -f *.$(OBJEXT)
114
115 clean-compile:
116
117 @@ -324,16 +336,16 @@
118
119 maintainer-clean-noinstPROGRAMS:
120
121 -testglib: $(testglib_OBJECTS) $(testglib_DEPENDENCIES)
122 - @rm -f testglib
123 +testglib$(EXEEXT): $(testglib_OBJECTS) $(testglib_DEPENDENCIES)
124 + @rm -f testglib$(EXEEXT)
125 $(LINK) $(testglib_LDFLAGS) $(testglib_OBJECTS) $(testglib_LDADD) $(LIBS)
126
127 -testgdate: $(testgdate_OBJECTS) $(testgdate_DEPENDENCIES)
128 - @rm -f testgdate
129 +testgdate$(EXEEXT): $(testgdate_OBJECTS) $(testgdate_DEPENDENCIES)
130 + @rm -f testgdate$(EXEEXT)
131 $(LINK) $(testgdate_LDFLAGS) $(testgdate_OBJECTS) $(testgdate_LDADD) $(LIBS)
132
133 -testgdateparser: $(testgdateparser_OBJECTS) $(testgdateparser_DEPENDENCIES)
134 - @rm -f testgdateparser
135 +testgdateparser$(EXEEXT): $(testgdateparser_OBJECTS) $(testgdateparser_DEPENDENCIES)
136 + @rm -f testgdateparser$(EXEEXT)
137 $(LINK) $(testgdateparser_LDFLAGS) $(testgdateparser_OBJECTS) $(testgdateparser_LDADD) $(LIBS)
138
139 install-binSCRIPTS: $(bin_SCRIPTS)
140 @@ -463,7 +475,7 @@
141 dot_seen=no; \
142 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
143 rev="$$subdir $$rev"; \
144 - test "$$subdir" = "." && dot_seen=yes; \
145 + test "$$subdir" != "." || dot_seen=yes; \
146 done; \
147 test "$$dot_seen" = "no" && rev=". $$rev"; \
148 target=`echo $@ | sed s/-recursive//`; \
149 @@ -505,7 +517,7 @@
150 awk ' { files[$$0] = 1; } \
151 END { for (i in files) print i; }'`; \
152 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
153 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
154 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
155
156 mostlyclean-tags:
157
158 @@ -575,35 +587,6 @@
159 fi; \
160 done
161 $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
162 -garray.lo garray.o : garray.c glib.h glibconfig.h
163 -gcache.lo gcache.o : gcache.c glib.h glibconfig.h
164 -gcompletion.lo gcompletion.o : gcompletion.c glib.h glibconfig.h
165 -gdataset.lo gdataset.o : gdataset.c glib.h glibconfig.h
166 -gdate.lo gdate.o : gdate.c config.h glib.h glibconfig.h
167 -gerror.lo gerror.o : gerror.c config.h glib.h glibconfig.h
168 -ghash.lo ghash.o : ghash.c glib.h glibconfig.h
169 -ghook.lo ghook.o : ghook.c glib.h glibconfig.h
170 -giochannel.lo giochannel.o : giochannel.c config.h glib.h glibconfig.h
171 -giounix.lo giounix.o : giounix.c glib.h glibconfig.h
172 -glist.lo glist.o : glist.c glib.h glibconfig.h
173 -gmain.lo gmain.o : gmain.c config.h glib.h glibconfig.h
174 -gmem.lo gmem.o : gmem.c config.h glib.h glibconfig.h
175 -gmessages.lo gmessages.o : gmessages.c config.h glib.h glibconfig.h
176 -gmutex.lo gmutex.o : gmutex.c glib.h glibconfig.h
177 -gnode.lo gnode.o : gnode.c glib.h glibconfig.h
178 -gprimes.lo gprimes.o : gprimes.c glib.h glibconfig.h
179 -grel.lo grel.o : grel.c glib.h glibconfig.h
180 -gscanner.lo gscanner.o : gscanner.c config.h glib.h glibconfig.h
181 -gslist.lo gslist.o : gslist.c glib.h glibconfig.h
182 -gstrfuncs.lo gstrfuncs.o : gstrfuncs.c config.h glib.h glibconfig.h
183 -gstring.lo gstring.o : gstring.c glib.h glibconfig.h
184 -gtimer.lo gtimer.o : gtimer.c config.h glib.h glibconfig.h
185 -gtree.lo gtree.o : gtree.c glib.h glibconfig.h
186 -gutils.lo gutils.o : gutils.c config.h glibconfig.h glib.h
187 -testgdate.o: testgdate.c glib.h glibconfig.h
188 -testgdateparser.o: testgdateparser.c glib.h glibconfig.h
189 -testglib.o: testglib.c glib.h glibconfig.h
190 -
191 info-am:
192 info: info-recursive
193 dvi-am:
194 --- glib1.2-1.2.10.orig/aclocal.m4
195 +++ glib1.2-1.2.10/aclocal.m4
196 @@ -1,6 +1,6 @@
197 -dnl aclocal.m4 generated automatically by aclocal 1.4
198 +dnl aclocal.m4 generated automatically by aclocal 1.4-p6
199
200 -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
201 +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
202 dnl This file is free software; the Free Software Foundation
203 dnl gives unlimited permission to copy and/or distribute it,
204 dnl with or without modifications, as long as this notice is preserved.
205 @@ -10,135 +10,3114 @@
206 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
207 dnl PARTICULAR PURPOSE.
208
209 +# Do all the work for Automake. This macro actually does too much --
210 +# some checks are only needed if your package does certain things.
211 +# But this isn't really a big deal.
212
213 -# serial 40 AC_PROG_LIBTOOL
214 -AC_DEFUN(AC_PROG_LIBTOOL,
215 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
216 +# serial 1
217 +
218 +dnl Usage:
219 +dnl AM_INIT_AUTOMAKE(package,version, [no-define])
220 +
221 +AC_DEFUN([AM_INIT_AUTOMAKE],
222 +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
223 +AC_REQUIRE([AC_PROG_INSTALL])
224 +PACKAGE=[$1]
225 +AC_SUBST(PACKAGE)
226 +VERSION=[$2]
227 +AC_SUBST(VERSION)
228 +dnl test to see if srcdir already configured
229 +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
230 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
231 +fi
232 +ifelse([$3],,
233 +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
234 +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
235 +AC_REQUIRE([AM_SANITY_CHECK])
236 +AC_REQUIRE([AC_ARG_PROGRAM])
237 +dnl FIXME This is truly gross.
238 +missing_dir=`cd $ac_aux_dir && pwd`
239 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
240 +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
241 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
242 +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
243 +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
244 +AC_REQUIRE([AC_PROG_MAKE_SET])])
245 +
246 +# Copyright 2002 Free Software Foundation, Inc.
247 +
248 +# This program is free software; you can redistribute it and/or modify
249 +# it under the terms of the GNU General Public License as published by
250 +# the Free Software Foundation; either version 2, or (at your option)
251 +# any later version.
252 +
253 +# This program is distributed in the hope that it will be useful,
254 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
255 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
256 +# GNU General Public License for more details.
257 +
258 +# You should have received a copy of the GNU General Public License
259 +# along with this program; if not, write to the Free Software
260 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
261 +
262 +# AM_AUTOMAKE_VERSION(VERSION)
263 +# ----------------------------
264 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
265 +# generated from the m4 files accompanying Automake X.Y.
266 +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
267 +
268 +# AM_SET_CURRENT_AUTOMAKE_VERSION
269 +# -------------------------------
270 +# Call AM_AUTOMAKE_VERSION so it can be traced.
271 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
272 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
273 + [AM_AUTOMAKE_VERSION([1.4-p6])])
274 +
275 +#
276 +# Check to make sure that the build environment is sane.
277 +#
278 +
279 +AC_DEFUN([AM_SANITY_CHECK],
280 +[AC_MSG_CHECKING([whether build environment is sane])
281 +# Just in case
282 +sleep 1
283 +echo timestamp > conftestfile
284 +# Do `set' in a subshell so we don't clobber the current shell's
285 +# arguments. Must try -L first in case configure is actually a
286 +# symlink; some systems play weird games with the mod time of symlinks
287 +# (eg FreeBSD returns the mod time of the symlink's containing
288 +# directory).
289 +if (
290 + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
291 + if test "[$]*" = "X"; then
292 + # -L didn't work.
293 + set X `ls -t $srcdir/configure conftestfile`
294 + fi
295 + if test "[$]*" != "X $srcdir/configure conftestfile" \
296 + && test "[$]*" != "X conftestfile $srcdir/configure"; then
297 +
298 + # If neither matched, then we have a broken ls. This can happen
299 + # if, for instance, CONFIG_SHELL is bash and it inherits a
300 + # broken ls alias from the environment. This has actually
301 + # happened. Such a system could not be considered "sane".
302 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
303 +alias in your environment])
304 + fi
305 +
306 + test "[$]2" = conftestfile
307 + )
308 +then
309 + # Ok.
310 + :
311 +else
312 + AC_MSG_ERROR([newly created file is older than distributed files!
313 +Check your system clock])
314 +fi
315 +rm -f conftest*
316 +AC_MSG_RESULT(yes)])
317 +
318 +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
319 +dnl The program must properly implement --version.
320 +AC_DEFUN([AM_MISSING_PROG],
321 +[AC_MSG_CHECKING(for working $2)
322 +# Run test in a subshell; some versions of sh will print an error if
323 +# an executable is not found, even if stderr is redirected.
324 +# Redirect stdin to placate older versions of autoconf. Sigh.
325 +if ($2 --version) < /dev/null > /dev/null 2>&1; then
326 + $1=$2
327 + AC_MSG_RESULT(found)
328 +else
329 + $1="$3/missing $2"
330 + AC_MSG_RESULT(missing)
331 +fi
332 +AC_SUBST($1)])
333 +
334 +# Like AC_CONFIG_HEADER, but automatically create stamp file.
335 +
336 +AC_DEFUN([AM_CONFIG_HEADER],
337 +[AC_PREREQ([2.12])
338 +AC_CONFIG_HEADER([$1])
339 +dnl When config.status generates a header, we must update the stamp-h file.
340 +dnl This file resides in the same directory as the config header
341 +dnl that is generated. We must strip everything past the first ":",
342 +dnl and everything past the last "/".
343 +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
344 +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
345 +<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
346 +<<am_indx=1
347 +for am_file in <<$1>>; do
348 + case " <<$>>CONFIG_HEADERS " in
349 + *" <<$>>am_file "*<<)>>
350 + echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
351 + ;;
352 + esac
353 + am_indx=`expr "<<$>>am_indx" + 1`
354 +done<<>>dnl>>)
355 +changequote([,]))])
356
357 -# Save cache, so that ltconfig can load it
358 -AC_CACHE_SAVE
359 +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
360
361 -# Actually configure libtool. ac_aux_dir is where install-sh is found.
362 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
363 -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
364 -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
365 -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
366 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
367 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
368 -|| AC_MSG_ERROR([libtool configure failed])
369 +# serial 46 AC_PROG_LIBTOOL
370
371 -# Reload cache, that may have been modified by ltconfig
372 -AC_CACHE_LOAD
373 +AC_DEFUN([AC_PROG_LIBTOOL],
374 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
375
376 # This can be used to rebuild libtool when needed
377 -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
378 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
379
380 # Always use our own libtool.
381 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
382 AC_SUBST(LIBTOOL)dnl
383
384 -# Redirect the config.log output again, so that the ltconfig log is not
385 -# clobbered by the next message.
386 -exec 5>>./config.log
387 +# Prevent multiple expansion
388 +define([AC_PROG_LIBTOOL], [])
389 ])
390
391 -AC_DEFUN(AC_LIBTOOL_SETUP,
392 +AC_DEFUN([AC_LIBTOOL_SETUP],
393 [AC_PREREQ(2.13)dnl
394 AC_REQUIRE([AC_ENABLE_SHARED])dnl
395 AC_REQUIRE([AC_ENABLE_STATIC])dnl
396 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
397 AC_REQUIRE([AC_CANONICAL_HOST])dnl
398 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
399 -AC_REQUIRE([AC_PROG_RANLIB])dnl
400 AC_REQUIRE([AC_PROG_CC])dnl
401 AC_REQUIRE([AC_PROG_LD])dnl
402 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
403 AC_REQUIRE([AC_PROG_NM])dnl
404 +AC_REQUIRE([LT_AC_PROG_SED])dnl
405 +
406 AC_REQUIRE([AC_PROG_LN_S])dnl
407 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
408 +AC_REQUIRE([AC_OBJEXT])dnl
409 +AC_REQUIRE([AC_EXEEXT])dnl
410 dnl
411
412 -case "$target" in
413 -NONE) lt_target="$host" ;;
414 -*) lt_target="$target" ;;
415 +_LT_AC_PROG_ECHO_BACKSLASH
416 +# Only perform the check for file, if the check method requires it
417 +case $deplibs_check_method in
418 +file_magic*)
419 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
420 + AC_PATH_MAGIC
421 + fi
422 + ;;
423 esac
424
425 -# Check for any special flags to pass to ltconfig.
426 -libtool_flags="--cache-file=$cache_file"
427 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
428 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
429 -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
430 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
431 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
432 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
433 -[libtool_flags="$libtool_flags --enable-dlopen"])
434 +AC_CHECK_TOOL(RANLIB, ranlib, :)
435 +AC_CHECK_TOOL(STRIP, strip, :)
436 +
437 +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
438 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
439 -[libtool_flags="$libtool_flags --enable-win32-dll"])
440 +enable_win32_dll=yes, enable_win32_dll=no)
441 +
442 AC_ARG_ENABLE(libtool-lock,
443 [ --disable-libtool-lock avoid locking (might break parallel builds)])
444 -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
445 -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
446 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
447 +
448 +# Some flags need to be propagated to the compiler or linker for good
449 +# libtool support.
450 +case $host in
451 +*-*-irix6*)
452 + # Find out which ABI we are using.
453 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
454 + if AC_TRY_EVAL(ac_compile); then
455 + case `/usr/bin/file conftest.$ac_objext` in
456 + *32-bit*)
457 + LD="${LD-ld} -32"
458 + ;;
459 + *N32*)
460 + LD="${LD-ld} -n32"
461 + ;;
462 + *64-bit*)
463 + LD="${LD-ld} -64"
464 + ;;
465 + esac
466 + fi
467 + rm -rf conftest*
468 + ;;
469 +
470 +*-*-sco3.2v5*)
471 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
472 + SAVE_CFLAGS="$CFLAGS"
473 + CFLAGS="$CFLAGS -belf"
474 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
475 + [AC_LANG_SAVE
476 + AC_LANG_C
477 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
478 + AC_LANG_RESTORE])
479 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
480 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
481 + CFLAGS="$SAVE_CFLAGS"
482 + fi
483 + ;;
484 +
485 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
486 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
487 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
488 + AC_CHECK_TOOL(AS, as, false)
489 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
490 +
491 + # recent cygwin and mingw systems supply a stub DllMain which the user
492 + # can override, but on older systems we have to supply one
493 + AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
494 + [AC_TRY_LINK([],
495 + [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
496 + DllMain (0, 0, 0);],
497 + [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
498 +
499 + case $host/$CC in
500 + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
501 + # old mingw systems require "-dll" to link a DLL, while more recent ones
502 + # require "-mdll"
503 + SAVE_CFLAGS="$CFLAGS"
504 + CFLAGS="$CFLAGS -mdll"
505 + AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
506 + [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
507 + CFLAGS="$SAVE_CFLAGS" ;;
508 + *-*-cygwin* | *-*-pw32*)
509 + # cygwin systems need to pass --dll to the linker, and not link
510 + # crt.o which will require a WinMain@16 definition.
511 + lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
512 + esac
513 + ;;
514 + ])
515 +esac
516 +
517 +_LT_AC_LTCONFIG_HACK
518 +
519 +])
520 +
521 +# AC_LIBTOOL_HEADER_ASSERT
522 +# ------------------------
523 +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
524 +[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
525 + [lt_cv_func_assert_works],
526 + [case $host in
527 + *-*-solaris*)
528 + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
529 + case `$CC --version 2>/dev/null` in
530 + [[12]].*) lt_cv_func_assert_works=no ;;
531 + *) lt_cv_func_assert_works=yes ;;
532 + esac
533 + fi
534 + ;;
535 + esac])
536 +
537 +if test "x$lt_cv_func_assert_works" = xyes; then
538 + AC_CHECK_HEADERS(assert.h)
539 +fi
540 +])# AC_LIBTOOL_HEADER_ASSERT
541 +
542 +# _LT_AC_CHECK_DLFCN
543 +# --------------------
544 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
545 +[AC_CHECK_HEADERS(dlfcn.h)
546 +])# _LT_AC_CHECK_DLFCN
547 +
548 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
549 +# ---------------------------------
550 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
551 +[AC_REQUIRE([AC_CANONICAL_HOST])
552 +AC_REQUIRE([AC_PROG_NM])
553 +AC_REQUIRE([AC_OBJEXT])
554 +# Check for command to grab the raw symbol name followed by C symbol from nm.
555 +AC_MSG_CHECKING([command to parse $NM output])
556 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
557 +
558 +# These are sane defaults that work on at least a few old systems.
559 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
560 +
561 +# Character class describing NM global symbol codes.
562 +symcode='[[BCDEGRST]]'
563 +
564 +# Regexp to match symbols that can be accessed directly from C.
565 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
566 +
567 +# Transform the above into a raw symbol and a C symbol.
568 +symxfrm='\1 \2\3 \3'
569 +
570 +# Transform an extracted symbol line into a proper C declaration
571 +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
572 +
573 +# Transform an extracted symbol line into symbol name and symbol address
574 +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
575 +
576 +# Define system-specific variables.
577 +case $host_os in
578 +aix*)
579 + symcode='[[BCDT]]'
580 + ;;
581 +cygwin* | mingw* | pw32*)
582 + symcode='[[ABCDGISTW]]'
583 + ;;
584 +hpux*) # Its linker distinguishes data from code symbols
585 + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
586 + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
587 + ;;
588 +irix* | nonstopux*)
589 + symcode='[[BCDEGRST]]'
590 + ;;
591 +osf*)
592 + symcode='[[BCDEGQRST]]'
593 + ;;
594 +solaris* | sysv5*)
595 + symcode='[[BDT]]'
596 + ;;
597 +sysv4)
598 + symcode='[[DFNSTU]]'
599 + ;;
600 +esac
601 +
602 +# Handle CRLF in mingw tool chain
603 +opt_cr=
604 +case $host_os in
605 +mingw*)
606 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
607 + ;;
608 +esac
609 +
610 +# If we're using GNU nm, then use its standard symbol codes.
611 +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
612 + symcode='[[ABCDGISTW]]'
613 +fi
614 +
615 +# Try without a prefix undercore, then with it.
616 +for ac_symprfx in "" "_"; do
617 +
618 + # Write the raw and C identifiers.
619 +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
620 +
621 + # Check to see that the pipe works correctly.
622 + pipe_works=no
623 + rm -f conftest*
624 + cat > conftest.$ac_ext <<EOF
625 +#ifdef __cplusplus
626 +extern "C" {
627 +#endif
628 +char nm_test_var;
629 +void nm_test_func(){}
630 +#ifdef __cplusplus
631 +}
632 +#endif
633 +int main(){nm_test_var='a';nm_test_func();return(0);}
634 +EOF
635 +
636 + if AC_TRY_EVAL(ac_compile); then
637 + # Now try to grab the symbols.
638 + nlist=conftest.nm
639 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
640 + # Try sorting and uniquifying the output.
641 + if sort "$nlist" | uniq > "$nlist"T; then
642 + mv -f "$nlist"T "$nlist"
643 + else
644 + rm -f "$nlist"T
645 + fi
646 +
647 + # Make sure that we snagged all the symbols we need.
648 + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
649 + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
650 + cat <<EOF > conftest.$ac_ext
651 +#ifdef __cplusplus
652 +extern "C" {
653 +#endif
654 +
655 +EOF
656 + # Now generate the symbol file.
657 + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
658 +
659 + cat <<EOF >> conftest.$ac_ext
660 +#if defined (__STDC__) && __STDC__
661 +# define lt_ptr void *
662 +#else
663 +# define lt_ptr char *
664 +# define const
665 +#endif
666 +
667 +/* The mapping between symbol names and symbols. */
668 +const struct {
669 + const char *name;
670 + lt_ptr address;
671 +}
672 +lt_preloaded_symbols[[]] =
673 +{
674 +EOF
675 + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
676 + cat <<\EOF >> conftest.$ac_ext
677 + {0, (lt_ptr) 0}
678 +};
679 +
680 +#ifdef __cplusplus
681 +}
682 +#endif
683 +EOF
684 + # Now try linking the two files.
685 + mv conftest.$ac_objext conftstm.$ac_objext
686 + save_LIBS="$LIBS"
687 + save_CFLAGS="$CFLAGS"
688 + LIBS="conftstm.$ac_objext"
689 + CFLAGS="$CFLAGS$no_builtin_flag"
690 + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
691 + pipe_works=yes
692 + fi
693 + LIBS="$save_LIBS"
694 + CFLAGS="$save_CFLAGS"
695 + else
696 + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
697 + fi
698 + else
699 + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
700 + fi
701 + else
702 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
703 + fi
704 + else
705 + echo "$progname: failed program was:" >&AC_FD_CC
706 + cat conftest.$ac_ext >&5
707 + fi
708 + rm -f conftest* conftst*
709 +
710 + # Do not use the global_symbol_pipe unless it works.
711 + if test "$pipe_works" = yes; then
712 + break
713 + else
714 + lt_cv_sys_global_symbol_pipe=
715 + fi
716 +done
717 +])
718 +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
719 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
720 + global_symbol_to_cdecl=
721 + global_symbol_to_c_name_address=
722 +else
723 + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
724 + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
725 +fi
726 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
727 +then
728 + AC_MSG_RESULT(failed)
729 +else
730 + AC_MSG_RESULT(ok)
731 +fi
732 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
733 +
734 +# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
735 +# ---------------------------------
736 +AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
737 +[# Find the correct PATH separator. Usually this is `:', but
738 +# DJGPP uses `;' like DOS.
739 +if test "X${PATH_SEPARATOR+set}" != Xset; then
740 + UNAME=${UNAME-`uname 2>/dev/null`}
741 + case X$UNAME in
742 + *-DOS) lt_cv_sys_path_separator=';' ;;
743 + *) lt_cv_sys_path_separator=':' ;;
744 + esac
745 + PATH_SEPARATOR=$lt_cv_sys_path_separator
746 +fi
747 +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
748 +
749 +# _LT_AC_PROG_ECHO_BACKSLASH
750 +# --------------------------
751 +# Add some code to the start of the generated configure script which
752 +# will find an echo command which doesn't interpret backslashes.
753 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
754 +[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
755 + [AC_DIVERT_PUSH(NOTICE)])
756 +_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
757 +
758 +# Check that we are running under the correct shell.
759 +SHELL=${CONFIG_SHELL-/bin/sh}
760 +
761 +case X$ECHO in
762 +X*--fallback-echo)
763 + # Remove one level of quotation (which was required for Make).
764 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
765 + ;;
766 +esac
767 +
768 +echo=${ECHO-echo}
769 +if test "X[$]1" = X--no-reexec; then
770 + # Discard the --no-reexec flag, and continue.
771 + shift
772 +elif test "X[$]1" = X--fallback-echo; then
773 + # Avoid inline document here, it may be left over
774 + :
775 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
776 + # Yippee, $echo works!
777 + :
778 +else
779 + # Restart under the correct shell.
780 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
781 +fi
782 +
783 +if test "X[$]1" = X--fallback-echo; then
784 + # used as fallback echo
785 + shift
786 + cat <<EOF
787 +$*
788 +EOF
789 + exit 0
790 +fi
791 +
792 +# The HP-UX ksh and POSIX shell print the target directory to stdout
793 +# if CDPATH is set.
794 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
795 +
796 +if test -z "$ECHO"; then
797 +if test "X${echo_test_string+set}" != Xset; then
798 +# find a string as large as possible, as long as the shell can cope with it
799 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
800 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
801 + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
802 + echo_test_string="`eval $cmd`" &&
803 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
804 + then
805 + break
806 + fi
807 + done
808 +fi
809 +
810 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
811 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
812 + test "X$echo_testing_string" = "X$echo_test_string"; then
813 + :
814 +else
815 + # The Solaris, AIX, and Digital Unix default echo programs unquote
816 + # backslashes. This makes it impossible to quote backslashes using
817 + # echo "$something" | sed 's/\\/\\\\/g'
818 + #
819 + # So, first we look for a working echo in the user's PATH.
820 +
821 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
822 + for dir in $PATH /usr/ucb; do
823 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
824 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
825 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
826 + test "X$echo_testing_string" = "X$echo_test_string"; then
827 + echo="$dir/echo"
828 + break
829 + fi
830 + done
831 + IFS="$save_ifs"
832 +
833 + if test "X$echo" = Xecho; then
834 + # We didn't find a better echo, so look for alternatives.
835 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
836 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
837 + test "X$echo_testing_string" = "X$echo_test_string"; then
838 + # This shell has a builtin print -r that does the trick.
839 + echo='print -r'
840 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
841 + test "X$CONFIG_SHELL" != X/bin/ksh; then
842 + # If we have ksh, try running configure again with it.
843 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
844 + export ORIGINAL_CONFIG_SHELL
845 + CONFIG_SHELL=/bin/ksh
846 + export CONFIG_SHELL
847 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
848 + else
849 + # Try using printf.
850 + echo='printf %s\n'
851 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
852 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
853 + test "X$echo_testing_string" = "X$echo_test_string"; then
854 + # Cool, printf works
855 + :
856 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
857 + test "X$echo_testing_string" = 'X\t' &&
858 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
859 + test "X$echo_testing_string" = "X$echo_test_string"; then
860 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
861 + export CONFIG_SHELL
862 + SHELL="$CONFIG_SHELL"
863 + export SHELL
864 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
865 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
866 + test "X$echo_testing_string" = 'X\t' &&
867 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
868 + test "X$echo_testing_string" = "X$echo_test_string"; then
869 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
870 + else
871 + # maybe with a smaller string...
872 + prev=:
873 +
874 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
875 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
876 + then
877 + break
878 + fi
879 + prev="$cmd"
880 + done
881 +
882 + if test "$prev" != 'sed 50q "[$]0"'; then
883 + echo_test_string=`eval $prev`
884 + export echo_test_string
885 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
886 + else
887 + # Oops. We lost completely, so just stick with echo.
888 + echo=echo
889 + fi
890 + fi
891 + fi
892 + fi
893 +fi
894 +fi
895 +
896 +# Copy echo and quote the copy suitably for passing to libtool from
897 +# the Makefile, instead of quoting the original, which is used later.
898 +ECHO=$echo
899 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
900 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
901 +fi
902 +
903 +AC_SUBST(ECHO)
904 +AC_DIVERT_POP
905 +])# _LT_AC_PROG_ECHO_BACKSLASH
906 +
907 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
908 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
909 +# ------------------------------------------------------------------
910 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
911 +[if test "$cross_compiling" = yes; then :
912 + [$4]
913 +else
914 + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
915 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
916 + lt_status=$lt_dlunknown
917 + cat > conftest.$ac_ext <<EOF
918 +[#line __oline__ "configure"
919 +#include "confdefs.h"
920 +
921 +#if HAVE_DLFCN_H
922 +#include <dlfcn.h>
923 +#endif
924 +
925 +#include <stdio.h>
926 +
927 +#ifdef RTLD_GLOBAL
928 +# define LT_DLGLOBAL RTLD_GLOBAL
929 +#else
930 +# ifdef DL_GLOBAL
931 +# define LT_DLGLOBAL DL_GLOBAL
932 +# else
933 +# define LT_DLGLOBAL 0
934 +# endif
935 +#endif
936 +
937 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
938 + find out it does not work in some platform. */
939 +#ifndef LT_DLLAZY_OR_NOW
940 +# ifdef RTLD_LAZY
941 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
942 +# else
943 +# ifdef DL_LAZY
944 +# define LT_DLLAZY_OR_NOW DL_LAZY
945 +# else
946 +# ifdef RTLD_NOW
947 +# define LT_DLLAZY_OR_NOW RTLD_NOW
948 +# else
949 +# ifdef DL_NOW
950 +# define LT_DLLAZY_OR_NOW DL_NOW
951 +# else
952 +# define LT_DLLAZY_OR_NOW 0
953 +# endif
954 +# endif
955 +# endif
956 +# endif
957 +#endif
958 +
959 +#ifdef __cplusplus
960 +extern "C" void exit (int);
961 +#endif
962 +
963 +void fnord() { int i=42;}
964 +int main ()
965 +{
966 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
967 + int status = $lt_dlunknown;
968 +
969 + if (self)
970 + {
971 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
972 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
973 + /* dlclose (self); */
974 + }
975 +
976 + exit (status);
977 +}]
978 +EOF
979 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
980 + (./conftest; exit; ) 2>/dev/null
981 + lt_status=$?
982 + case x$lt_status in
983 + x$lt_dlno_uscore) $1 ;;
984 + x$lt_dlneed_uscore) $2 ;;
985 + x$lt_unknown|x*) $3 ;;
986 + esac
987 + else :
988 + # compilation failed
989 + $3
990 + fi
991 +fi
992 +rm -fr conftest*
993 +])# _LT_AC_TRY_DLOPEN_SELF
994 +
995 +# AC_LIBTOOL_DLOPEN_SELF
996 +# -------------------
997 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
998 +[if test "x$enable_dlopen" != xyes; then
999 + enable_dlopen=unknown
1000 + enable_dlopen_self=unknown
1001 + enable_dlopen_self_static=unknown
1002 +else
1003 + lt_cv_dlopen=no
1004 + lt_cv_dlopen_libs=
1005 +
1006 + case $host_os in
1007 + beos*)
1008 + lt_cv_dlopen="load_add_on"
1009 + lt_cv_dlopen_libs=
1010 + lt_cv_dlopen_self=yes
1011 + ;;
1012 +
1013 + cygwin* | mingw* | pw32*)
1014 + lt_cv_dlopen="LoadLibrary"
1015 + lt_cv_dlopen_libs=
1016 + ;;
1017 +
1018 + *)
1019 + AC_CHECK_FUNC([shl_load],
1020 + [lt_cv_dlopen="shl_load"],
1021 + [AC_CHECK_LIB([dld], [shl_load],
1022 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1023 + [AC_CHECK_FUNC([dlopen],
1024 + [lt_cv_dlopen="dlopen"],
1025 + [AC_CHECK_LIB([dl], [dlopen],
1026 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1027 + [AC_CHECK_LIB([svld], [dlopen],
1028 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1029 + [AC_CHECK_LIB([dld], [dld_link],
1030 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1031 + ])
1032 + ])
1033 + ])
1034 + ])
1035 + ])
1036 + ;;
1037 + esac
1038 +
1039 + if test "x$lt_cv_dlopen" != xno; then
1040 + enable_dlopen=yes
1041 + else
1042 + enable_dlopen=no
1043 + fi
1044 +
1045 + case $lt_cv_dlopen in
1046 + dlopen)
1047 + save_CPPFLAGS="$CPPFLAGS"
1048 + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1049 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1050 +
1051 + save_LDFLAGS="$LDFLAGS"
1052 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1053 +
1054 + save_LIBS="$LIBS"
1055 + LIBS="$lt_cv_dlopen_libs $LIBS"
1056 +
1057 + AC_CACHE_CHECK([whether a program can dlopen itself],
1058 + lt_cv_dlopen_self, [dnl
1059 + _LT_AC_TRY_DLOPEN_SELF(
1060 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1061 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1062 + ])
1063 +
1064 + if test "x$lt_cv_dlopen_self" = xyes; then
1065 + LDFLAGS="$LDFLAGS $link_static_flag"
1066 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1067 + lt_cv_dlopen_self_static, [dnl
1068 + _LT_AC_TRY_DLOPEN_SELF(
1069 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1070 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1071 + ])
1072 + fi
1073 +
1074 + CPPFLAGS="$save_CPPFLAGS"
1075 + LDFLAGS="$save_LDFLAGS"
1076 + LIBS="$save_LIBS"
1077 + ;;
1078 + esac
1079 +
1080 + case $lt_cv_dlopen_self in
1081 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1082 + *) enable_dlopen_self=unknown ;;
1083 + esac
1084 +
1085 + case $lt_cv_dlopen_self_static in
1086 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1087 + *) enable_dlopen_self_static=unknown ;;
1088 + esac
1089 +fi
1090 +])# AC_LIBTOOL_DLOPEN_SELF
1091 +
1092 +AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1093 +[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1094 +# Sed substitution that helps us do robust quoting. It backslashifies
1095 +# metacharacters that are still active within double-quoted strings.
1096 +Xsed='sed -e s/^X//'
1097 +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1098 +
1099 +# Same as above, but do not quote variable references.
1100 +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1101 +
1102 +# Sed substitution to delay expansion of an escaped shell variable in a
1103 +# double_quote_subst'ed string.
1104 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1105 +
1106 +# Constants:
1107 +rm="rm -f"
1108 +
1109 +# Global variables:
1110 +default_ofile=libtool
1111 +can_build_shared=yes
1112 +
1113 +# All known linkers require a `.a' archive for static linking (except M$VC,
1114 +# which needs '.lib').
1115 +libext=a
1116 +ltmain="$ac_aux_dir/ltmain.sh"
1117 +ofile="$default_ofile"
1118 +with_gnu_ld="$lt_cv_prog_gnu_ld"
1119 +need_locks="$enable_libtool_lock"
1120 +
1121 +old_CC="$CC"
1122 +old_CFLAGS="$CFLAGS"
1123 +
1124 +# Set sane defaults for various variables
1125 +test -z "$AR" && AR=ar
1126 +test -z "$AR_FLAGS" && AR_FLAGS=cru
1127 +test -z "$AS" && AS=as
1128 +test -z "$CC" && CC=cc
1129 +test -z "$DLLTOOL" && DLLTOOL=dlltool
1130 +test -z "$LD" && LD=ld
1131 +test -z "$LN_S" && LN_S="ln -s"
1132 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
1133 +test -z "$NM" && NM=nm
1134 +test -z "$OBJDUMP" && OBJDUMP=objdump
1135 +test -z "$RANLIB" && RANLIB=:
1136 +test -z "$STRIP" && STRIP=:
1137 +test -z "$ac_objext" && ac_objext=o
1138 +
1139 +if test x"$host" != x"$build"; then
1140 + ac_tool_prefix=${host_alias}-
1141 +else
1142 + ac_tool_prefix=
1143 +fi
1144 +
1145 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
1146 +case $host_os in
1147 +linux-gnu*) ;;
1148 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
1149 +esac
1150 +
1151 +case $host_os in
1152 +aix3*)
1153 + # AIX sometimes has problems with the GCC collect2 program. For some
1154 + # reason, if we set the COLLECT_NAMES environment variable, the problems
1155 + # vanish in a puff of smoke.
1156 + if test "X${COLLECT_NAMES+set}" != Xset; then
1157 + COLLECT_NAMES=
1158 + export COLLECT_NAMES
1159 + fi
1160 + ;;
1161 +esac
1162 +
1163 +# Determine commands to create old-style static archives.
1164 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1165 +old_postinstall_cmds='chmod 644 $oldlib'
1166 +old_postuninstall_cmds=
1167 +
1168 +if test -n "$RANLIB"; then
1169 + case $host_os in
1170 + openbsd*)
1171 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1172 + ;;
1173 + *)
1174 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1175 + ;;
1176 + esac
1177 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1178 +fi
1179 +
1180 +# Allow CC to be a program name with arguments.
1181 +set dummy $CC
1182 +compiler="[$]2"
1183 +
1184 +AC_MSG_CHECKING([for objdir])
1185 +rm -f .libs 2>/dev/null
1186 +mkdir .libs 2>/dev/null
1187 +if test -d .libs; then
1188 + objdir=.libs
1189 +else
1190 + # MS-DOS does not allow filenames that begin with a dot.
1191 + objdir=_libs
1192 +fi
1193 +rmdir .libs 2>/dev/null
1194 +AC_MSG_RESULT($objdir)
1195 +
1196 +
1197 +AC_ARG_WITH(pic,
1198 +[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
1199 +pic_mode="$withval", pic_mode=default)
1200 +test -z "$pic_mode" && pic_mode=default
1201 +
1202 +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
1203 +# in isolation, and that seeing it set (from the cache) indicates that
1204 +# the associated values are set (in the cache) correctly too.
1205 +AC_MSG_CHECKING([for $compiler option to produce PIC])
1206 +AC_CACHE_VAL(lt_cv_prog_cc_pic,
1207 +[ lt_cv_prog_cc_pic=
1208 + lt_cv_prog_cc_shlib=
1209 + lt_cv_prog_cc_wl=
1210 + lt_cv_prog_cc_static=
1211 + lt_cv_prog_cc_no_builtin=
1212 + lt_cv_prog_cc_can_build_shared=$can_build_shared
1213 +
1214 + if test "$GCC" = yes; then
1215 + lt_cv_prog_cc_wl='-Wl,'
1216 + lt_cv_prog_cc_static='-static'
1217 +
1218 + case $host_os in
1219 + aix*)
1220 + # Below there is a dirty hack to force normal static linking with -ldl
1221 + # The problem is because libdl dynamically linked with both libc and
1222 + # libC (AIX C++ library), which obviously doesn't included in libraries
1223 + # list by gcc. This cause undefined symbols with -static flags.
1224 + # This hack allows C programs to be linked with "-static -ldl", but
1225 + # not sure about C++ programs.
1226 + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
1227 + ;;
1228 + amigaos*)
1229 + # FIXME: we need at least 68020 code to build shared libraries, but
1230 + # adding the `-m68020' flag to GCC prevents building anything better,
1231 + # like `-m68040'.
1232 + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
1233 + ;;
1234 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1235 + # PIC is the default for these OSes.
1236 + ;;
1237 + darwin* | rhapsody*)
1238 + # PIC is the default on this platform
1239 + # Common symbols not allowed in MH_DYLIB files
1240 + lt_cv_prog_cc_pic='-fno-common'
1241 + ;;
1242 + cygwin* | mingw* | pw32* | os2*)
1243 + # This hack is so that the source file can tell whether it is being
1244 + # built for inclusion in a dll (and should export symbols for example).
1245 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
1246 + ;;
1247 + sysv4*MP*)
1248 + if test -d /usr/nec; then
1249 + lt_cv_prog_cc_pic=-Kconform_pic
1250 + fi
1251 + ;;
1252 + *)
1253 + lt_cv_prog_cc_pic='-fPIC'
1254 + ;;
1255 + esac
1256 + else
1257 + # PORTME Check for PIC flags for the system compiler.
1258 + case $host_os in
1259 + aix3* | aix4* | aix5*)
1260 + lt_cv_prog_cc_wl='-Wl,'
1261 + # All AIX code is PIC.
1262 + if test "$host_cpu" = ia64; then
1263 + # AIX 5 now supports IA64 processor
1264 + lt_cv_prog_cc_static='-Bstatic'
1265 + else
1266 + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
1267 + fi
1268 + ;;
1269 +
1270 + hpux9* | hpux10* | hpux11*)
1271 + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
1272 + lt_cv_prog_cc_wl='-Wl,'
1273 + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
1274 + lt_cv_prog_cc_pic='+Z'
1275 + ;;
1276 +
1277 + irix5* | irix6* | nonstopux*)
1278 + lt_cv_prog_cc_wl='-Wl,'
1279 + lt_cv_prog_cc_static='-non_shared'
1280 + # PIC (with -KPIC) is the default.
1281 + ;;
1282 +
1283 + cygwin* | mingw* | pw32* | os2*)
1284 + # This hack is so that the source file can tell whether it is being
1285 + # built for inclusion in a dll (and should export symbols for example).
1286 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
1287 + ;;
1288 +
1289 + newsos6)
1290 + lt_cv_prog_cc_pic='-KPIC'
1291 + lt_cv_prog_cc_static='-Bstatic'
1292 + ;;
1293 +
1294 + osf3* | osf4* | osf5*)
1295 + # All OSF/1 code is PIC.
1296 + lt_cv_prog_cc_wl='-Wl,'
1297 + lt_cv_prog_cc_static='-non_shared'
1298 + ;;
1299 +
1300 + sco3.2v5*)
1301 + lt_cv_prog_cc_pic='-Kpic'
1302 + lt_cv_prog_cc_static='-dn'
1303 + lt_cv_prog_cc_shlib='-belf'
1304 + ;;
1305 +
1306 + solaris*)
1307 + lt_cv_prog_cc_pic='-KPIC'
1308 + lt_cv_prog_cc_static='-Bstatic'
1309 + lt_cv_prog_cc_wl='-Wl,'
1310 + ;;
1311 +
1312 + sunos4*)
1313 + lt_cv_prog_cc_pic='-PIC'
1314 + lt_cv_prog_cc_static='-Bstatic'
1315 + lt_cv_prog_cc_wl='-Qoption ld '
1316 + ;;
1317 +
1318 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1319 + lt_cv_prog_cc_pic='-KPIC'
1320 + lt_cv_prog_cc_static='-Bstatic'
1321 + lt_cv_prog_cc_wl='-Wl,'
1322 + ;;
1323 +
1324 + uts4*)
1325 + lt_cv_prog_cc_pic='-pic'
1326 + lt_cv_prog_cc_static='-Bstatic'
1327 + ;;
1328 +
1329 + sysv4*MP*)
1330 + if test -d /usr/nec ;then
1331 + lt_cv_prog_cc_pic='-Kconform_pic'
1332 + lt_cv_prog_cc_static='-Bstatic'
1333 + fi
1334 + ;;
1335 +
1336 + *)
1337 + lt_cv_prog_cc_can_build_shared=no
1338 + ;;
1339 + esac
1340 + fi
1341 +])
1342 +if test -z "$lt_cv_prog_cc_pic"; then
1343 + AC_MSG_RESULT([none])
1344 +else
1345 + AC_MSG_RESULT([$lt_cv_prog_cc_pic])
1346 +
1347 + # Check to make sure the pic_flag actually works.
1348 + AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
1349 + AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
1350 + save_CFLAGS="$CFLAGS"
1351 + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
1352 + AC_TRY_COMPILE([], [], [dnl
1353 + case $host_os in
1354 + hpux9* | hpux10* | hpux11*)
1355 + # On HP-UX, both CC and GCC only warn that PIC is supported... then
1356 + # they create non-PIC objects. So, if there were any warnings, we
1357 + # assume that PIC is not supported.
1358 + if test -s conftest.err; then
1359 + lt_cv_prog_cc_pic_works=no
1360 + else
1361 + lt_cv_prog_cc_pic_works=yes
1362 + fi
1363 + ;;
1364 + *)
1365 + lt_cv_prog_cc_pic_works=yes
1366 + ;;
1367 + esac
1368 + ], [dnl
1369 + lt_cv_prog_cc_pic_works=no
1370 + ])
1371 + CFLAGS="$save_CFLAGS"
1372 + ])
1373 +
1374 + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
1375 + lt_cv_prog_cc_pic=
1376 + lt_cv_prog_cc_can_build_shared=no
1377 + else
1378 + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
1379 + fi
1380 +
1381 + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
1382 +fi
1383 +
1384 +# Check for any special shared library compilation flags.
1385 +if test -n "$lt_cv_prog_cc_shlib"; then
1386 + AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
1387 + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
1388 + else
1389 + AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
1390 + lt_cv_prog_cc_can_build_shared=no
1391 + fi
1392 +fi
1393 +
1394 +AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
1395 +AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
1396 + lt_cv_prog_cc_static_works=no
1397 + save_LDFLAGS="$LDFLAGS"
1398 + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
1399 + AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
1400 + LDFLAGS="$save_LDFLAGS"
1401 +])
1402 +
1403 +# Belt *and* braces to stop my trousers falling down:
1404 +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
1405 +AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
1406 +
1407 +pic_flag="$lt_cv_prog_cc_pic"
1408 +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
1409 +wl="$lt_cv_prog_cc_wl"
1410 +link_static_flag="$lt_cv_prog_cc_static"
1411 +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
1412 +can_build_shared="$lt_cv_prog_cc_can_build_shared"
1413 +
1414 +
1415 +# Check to see if options -o and -c are simultaneously supported by compiler
1416 +AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
1417 +AC_CACHE_VAL([lt_cv_compiler_c_o], [
1418 +$rm -r conftest 2>/dev/null
1419 +mkdir conftest
1420 +cd conftest
1421 +echo "int some_variable = 0;" > conftest.$ac_ext
1422 +mkdir out
1423 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1424 +# that will create temporary files in the current directory regardless of
1425 +# the output directory. Thus, making CWD read-only will cause this test
1426 +# to fail, enabling locking or at least warning the user not to do parallel
1427 +# builds.
1428 +chmod -w .
1429 +save_CFLAGS="$CFLAGS"
1430 +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
1431 +compiler_c_o=no
1432 +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1433 + # The compiler can only warn and ignore the option if not recognized
1434 + # So say no if there are warnings
1435 + if test -s out/conftest.err; then
1436 + lt_cv_compiler_c_o=no
1437 + else
1438 + lt_cv_compiler_c_o=yes
1439 + fi
1440 +else
1441 + # Append any errors to the config.log.
1442 + cat out/conftest.err 1>&AC_FD_CC
1443 + lt_cv_compiler_c_o=no
1444 +fi
1445 +CFLAGS="$save_CFLAGS"
1446 +chmod u+w .
1447 +$rm conftest* out/*
1448 +rmdir out
1449 +cd ..
1450 +rmdir conftest
1451 +$rm -r conftest 2>/dev/null
1452 +])
1453 +compiler_c_o=$lt_cv_compiler_c_o
1454 +AC_MSG_RESULT([$compiler_c_o])
1455 +
1456 +if test x"$compiler_c_o" = x"yes"; then
1457 + # Check to see if we can write to a .lo
1458 + AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
1459 + AC_CACHE_VAL([lt_cv_compiler_o_lo], [
1460 + lt_cv_compiler_o_lo=no
1461 + save_CFLAGS="$CFLAGS"
1462 + CFLAGS="$CFLAGS -c -o conftest.lo"
1463 + save_objext="$ac_objext"
1464 + ac_objext=lo
1465 + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
1466 + # The compiler can only warn and ignore the option if not recognized
1467 + # So say no if there are warnings
1468 + if test -s conftest.err; then
1469 + lt_cv_compiler_o_lo=no
1470 + else
1471 + lt_cv_compiler_o_lo=yes
1472 + fi
1473 + ])
1474 + ac_objext="$save_objext"
1475 + CFLAGS="$save_CFLAGS"
1476 + ])
1477 + compiler_o_lo=$lt_cv_compiler_o_lo
1478 + AC_MSG_RESULT([$compiler_o_lo])
1479 +else
1480 + compiler_o_lo=no
1481 +fi
1482 +
1483 +# Check to see if we can do hard links to lock some files if needed
1484 +hard_links="nottested"
1485 +if test "$compiler_c_o" = no && test "$need_locks" != no; then
1486 + # do not overwrite the value of need_locks provided by the user
1487 + AC_MSG_CHECKING([if we can lock with hard links])
1488 + hard_links=yes
1489 + $rm conftest*
1490 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1491 + touch conftest.a
1492 + ln conftest.a conftest.b 2>&5 || hard_links=no
1493 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1494 + AC_MSG_RESULT([$hard_links])
1495 + if test "$hard_links" = no; then
1496 + AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
1497 + need_locks=warn
1498 + fi
1499 +else
1500 + need_locks=no
1501 +fi
1502 +
1503 +if test "$GCC" = yes; then
1504 + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
1505 + AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
1506 + echo "int some_variable = 0;" > conftest.$ac_ext
1507 + save_CFLAGS="$CFLAGS"
1508 + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
1509 + compiler_rtti_exceptions=no
1510 + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
1511 + # The compiler can only warn and ignore the option if not recognized
1512 + # So say no if there are warnings
1513 + if test -s conftest.err; then
1514 + compiler_rtti_exceptions=no
1515 + else
1516 + compiler_rtti_exceptions=yes
1517 + fi
1518 + ])
1519 + CFLAGS="$save_CFLAGS"
1520 + AC_MSG_RESULT([$compiler_rtti_exceptions])
1521 +
1522 + if test "$compiler_rtti_exceptions" = "yes"; then
1523 + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
1524 + else
1525 + no_builtin_flag=' -fno-builtin'
1526 + fi
1527 +fi
1528 +
1529 +# See if the linker supports building shared libraries.
1530 +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
1531 +
1532 +allow_undefined_flag=
1533 +no_undefined_flag=
1534 +need_lib_prefix=unknown
1535 +need_version=unknown
1536 +# when you set need_version to no, make sure it does not cause -set_version
1537 +# flags to be left without arguments
1538 +archive_cmds=
1539 +archive_expsym_cmds=
1540 +old_archive_from_new_cmds=
1541 +old_archive_from_expsyms_cmds=
1542 +export_dynamic_flag_spec=
1543 +whole_archive_flag_spec=
1544 +thread_safe_flag_spec=
1545 +hardcode_into_libs=no
1546 +hardcode_libdir_flag_spec=
1547 +hardcode_libdir_separator=
1548 +hardcode_direct=no
1549 +hardcode_minus_L=no
1550 +hardcode_shlibpath_var=unsupported
1551 +runpath_var=
1552 +link_all_deplibs=unknown
1553 +always_export_symbols=no
1554 +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
1555 +# include_expsyms should be a list of space-separated symbols to be *always*
1556 +# included in the symbol list
1557 +include_expsyms=
1558 +# exclude_expsyms can be an egrep regular expression of symbols to exclude
1559 +# it will be wrapped by ` (' and `)$', so one must not match beginning or
1560 +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1561 +# as well as any symbol that contains `d'.
1562 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
1563 +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1564 +# platforms (ab)use it in PIC code, but their linkers get confused if
1565 +# the symbol is explicitly referenced. Since portable code cannot
1566 +# rely on this symbol name, it's probably fine to never include it in
1567 +# preloaded symbol tables.
1568 +extract_expsyms_cmds=
1569 +
1570 +case $host_os in
1571 +cygwin* | mingw* | pw32*)
1572 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
1573 + # When not using gcc, we currently assume that we are using
1574 + # Microsoft Visual C++.
1575 + if test "$GCC" != yes; then
1576 + with_gnu_ld=no
1577 + fi
1578 + ;;
1579 +openbsd*)
1580 + with_gnu_ld=no
1581 + ;;
1582 +esac
1583 +
1584 +ld_shlibs=yes
1585 +if test "$with_gnu_ld" = yes; then
1586 + # If archive_cmds runs LD, not CC, wlarc should be empty
1587 + wlarc='${wl}'
1588 +
1589 + # See if GNU ld supports shared libraries.
1590 + case $host_os in
1591 + aix3* | aix4* | aix5*)
1592 + # On AIX, the GNU linker is very broken
1593 + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
1594 + ld_shlibs=no
1595 + cat <<EOF 1>&2
1596 +
1597 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1598 +*** to be unable to reliably create shared libraries on AIX.
1599 +*** Therefore, libtool is disabling shared libraries support. If you
1600 +*** really care for shared libraries, you may want to modify your PATH
1601 +*** so that a non-GNU linker is found, and then restart.
1602 +
1603 +EOF
1604 + ;;
1605 +
1606 + amigaos*)
1607 + 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)'
1608 + hardcode_libdir_flag_spec='-L$libdir'
1609 + hardcode_minus_L=yes
1610 +
1611 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1612 + # that the semantics of dynamic libraries on AmigaOS, at least up
1613 + # to version 4, is to share data among multiple programs linked
1614 + # with the same dynamic library. Since this doesn't match the
1615 + # behavior of shared libraries on other platforms, we can use
1616 + # them.
1617 + ld_shlibs=no
1618 + ;;
1619 +
1620 + beos*)
1621 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1622 + allow_undefined_flag=unsupported
1623 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1624 + # support --undefined. This deserves some investigation. FIXME
1625 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1626 + else
1627 + ld_shlibs=no
1628 + fi
1629 + ;;
1630 +
1631 + cygwin* | mingw* | pw32*)
1632 + # hardcode_libdir_flag_spec is actually meaningless, as there is
1633 + # no search path for DLLs.
1634 + hardcode_libdir_flag_spec='-L$libdir'
1635 + allow_undefined_flag=unsupported
1636 + always_export_symbols=yes
1637 +
1638 + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
1639 + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
1640 + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
1641 + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
1642 + else $CC -o impgen impgen.c ; fi)~
1643 + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
1644 +
1645 + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
1646 +
1647 + # cygwin and mingw dlls have different entry points and sets of symbols
1648 + # to exclude.
1649 + # FIXME: what about values for MSVC?
1650 + dll_entry=__cygwin_dll_entry@12
1651 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
1652 + case $host_os in
1653 + mingw*)
1654 + # mingw values
1655 + dll_entry=_DllMainCRTStartup@12
1656 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
1657 + ;;
1658 + esac
1659 +
1660 + # mingw and cygwin differ, and it's simplest to just exclude the union
1661 + # of the two symbol sets.
1662 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
1663 +
1664 + # recent cygwin and mingw systems supply a stub DllMain which the user
1665 + # can override, but on older systems we have to supply one (in ltdll.c)
1666 + if test "x$lt_cv_need_dllmain" = "xyes"; then
1667 + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
1668 + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
1669 + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
1670 + else
1671 + ltdll_obj=
1672 + ltdll_cmds=
1673 + fi
1674 +
1675 + # Extract the symbol export list from an `--export-all' def file,
1676 + # then regenerate the def file from the symbol export list, so that
1677 + # the compiled dll only exports the symbol export list.
1678 + # Be careful not to strip the DATA tag left be newer dlltools.
1679 + export_symbols_cmds="$ltdll_cmds"'
1680 + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
1681 + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
1682 +
1683 + # If the export-symbols file already is a .def file (1st line
1684 + # is EXPORTS), use it as is.
1685 + # If DATA tags from a recent dlltool are present, honour them!
1686 + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
1687 + cp $export_symbols $output_objdir/$soname-def;
1688 + else
1689 + echo EXPORTS > $output_objdir/$soname-def;
1690 + _lt_hint=1;
1691 + cat $export_symbols | while read symbol; do
1692 + set dummy \$symbol;
1693 + case \[$]# in
1694 + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
1695 + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
1696 + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
1697 + esac;
1698 + _lt_hint=`expr 1 + \$_lt_hint`;
1699 + done;
1700 + fi~
1701 + '"$ltdll_cmds"'
1702 + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
1703 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
1704 + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
1705 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
1706 + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
1707 + ;;
1708 +
1709 + netbsd*)
1710 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1711 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1712 + wlarc=
1713 + else
1714 + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1715 + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1716 + fi
1717 + ;;
1718 +
1719 + solaris* | sysv5*)
1720 + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
1721 + ld_shlibs=no
1722 + cat <<EOF 1>&2
1723 +
1724 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1725 +*** create shared libraries on Solaris systems. Therefore, libtool
1726 +*** is disabling shared libraries support. We urge you to upgrade GNU
1727 +*** binutils to release 2.9.1 or newer. Another option is to modify
1728 +*** your PATH or compiler configuration so that the native linker is
1729 +*** used, and then restart.
1730 +
1731 +EOF
1732 + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1733 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1734 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1735 + else
1736 + ld_shlibs=no
1737 + fi
1738 + ;;
1739 +
1740 + sunos4*)
1741 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1742 + wlarc=
1743 + hardcode_direct=yes
1744 + hardcode_shlibpath_var=no
1745 + ;;
1746 +
1747 + *)
1748 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1749 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1750 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1751 + else
1752 + ld_shlibs=no
1753 + fi
1754 + ;;
1755 + esac
1756 +
1757 + if test "$ld_shlibs" = yes; then
1758 + runpath_var=LD_RUN_PATH
1759 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
1760 + export_dynamic_flag_spec='${wl}--export-dynamic'
1761 + case $host_os in
1762 + cygwin* | mingw* | pw32*)
1763 + # dlltool doesn't understand --whole-archive et. al.
1764 + whole_archive_flag_spec=
1765 + ;;
1766 + *)
1767 + # ancient GNU ld didn't support --whole-archive et. al.
1768 + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
1769 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1770 + else
1771 + whole_archive_flag_spec=
1772 + fi
1773 + ;;
1774 + esac
1775 + fi
1776 +else
1777 + # PORTME fill in a description of your system's linker (not GNU ld)
1778 + case $host_os in
1779 + aix3*)
1780 + allow_undefined_flag=unsupported
1781 + always_export_symbols=yes
1782 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
1783 + # Note: this linker hardcodes the directories in LIBPATH if there
1784 + # are no directories specified by -L.
1785 + hardcode_minus_L=yes
1786 + if test "$GCC" = yes && test -z "$link_static_flag"; then
1787 + # Neither direct hardcoding nor static linking is supported with a
1788 + # broken collect2.
1789 + hardcode_direct=unsupported
1790 + fi
1791 + ;;
1792 +
1793 + aix4* | aix5*)
1794 + if test "$host_cpu" = ia64; then
1795 + # On IA64, the linker does run time linking by default, so we don't
1796 + # have to do anything special.
1797 + aix_use_runtimelinking=no
1798 + exp_sym_flag='-Bexport'
1799 + no_entry_flag=""
1800 + else
1801 + aix_use_runtimelinking=no
1802 +
1803 + # Test if we are trying to use run time linking or normal
1804 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1805 + # need to do runtime linking.
1806 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1807 + for ld_flag in $LDFLAGS; do
1808 + case $ld_flag in
1809 + *-brtl*)
1810 + aix_use_runtimelinking=yes
1811 + break
1812 + ;;
1813 + esac
1814 + done
1815 + esac
1816 +
1817 + exp_sym_flag='-bexport'
1818 + no_entry_flag='-bnoentry'
1819 + fi
1820 +
1821 + # When large executables or shared objects are built, AIX ld can
1822 + # have problems creating the table of contents. If linking a library
1823 + # or program results in "error TOC overflow" add -mminimal-toc to
1824 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
1825 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1826 +
1827 + hardcode_direct=yes
1828 + archive_cmds=''
1829 + hardcode_libdir_separator=':'
1830 + if test "$GCC" = yes; then
1831 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
1832 + collect2name=`${CC} -print-prog-name=collect2`
1833 + if test -f "$collect2name" && \
1834 + strings "$collect2name" | grep resolve_lib_name >/dev/null
1835 + then
1836 + # We have reworked collect2
1837 + hardcode_direct=yes
1838 + else
1839 + # We have old collect2
1840 + hardcode_direct=unsupported
1841 + # It fails to find uninstalled libraries when the uninstalled
1842 + # path is not listed in the libpath. Setting hardcode_minus_L
1843 + # to unsupported forces relinking
1844 + hardcode_minus_L=yes
1845 + hardcode_libdir_flag_spec='-L$libdir'
1846 + hardcode_libdir_separator=
1847 + fi
1848 + esac
1849 +
1850 + shared_flag='-shared'
1851 + else
1852 + # not using gcc
1853 + if test "$host_cpu" = ia64; then
1854 + shared_flag='${wl}-G'
1855 + else
1856 + if test "$aix_use_runtimelinking" = yes; then
1857 + shared_flag='${wl}-G'
1858 + else
1859 + shared_flag='${wl}-bM:SRE'
1860 + fi
1861 + fi
1862 + fi
1863 +
1864 + # It seems that -bexpall can do strange things, so it is better to
1865 + # generate a list of symbols to export.
1866 + always_export_symbols=yes
1867 + if test "$aix_use_runtimelinking" = yes; then
1868 + # Warning - without using the other runtime loading flags (-brtl),
1869 + # -berok will link without error, but may produce a broken library.
1870 + allow_undefined_flag='-berok'
1871 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
1872 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1873 + else
1874 + if test "$host_cpu" = ia64; then
1875 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
1876 + allow_undefined_flag="-z nodefs"
1877 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
1878 + else
1879 + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
1880 + # Warning - without using the other run time loading flags,
1881 + # -berok will link without error, but may produce a broken library.
1882 + allow_undefined_flag='${wl}-berok'
1883 + # This is a bit strange, but is similar to how AIX traditionally builds
1884 + # it's shared libraries.
1885 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
1886 + fi
1887 + fi
1888 + ;;
1889 +
1890 + amigaos*)
1891 + 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)'
1892 + hardcode_libdir_flag_spec='-L$libdir'
1893 + hardcode_minus_L=yes
1894 + # see comment about different semantics on the GNU ld section
1895 + ld_shlibs=no
1896 + ;;
1897 +
1898 + cygwin* | mingw* | pw32*)
1899 + # When not using gcc, we currently assume that we are using
1900 + # Microsoft Visual C++.
1901 + # hardcode_libdir_flag_spec is actually meaningless, as there is
1902 + # no search path for DLLs.
1903 + hardcode_libdir_flag_spec=' '
1904 + allow_undefined_flag=unsupported
1905 + # Tell ltmain to make .lib files, not .a files.
1906 + libext=lib
1907 + # FIXME: Setting linknames here is a bad hack.
1908 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
1909 + # The linker will automatically build a .lib file if we build a DLL.
1910 + old_archive_from_new_cmds='true'
1911 + # FIXME: Should let the user specify the lib program.
1912 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
1913 + fix_srcfile_path='`cygpath -w "$srcfile"`'
1914 + ;;
1915 +
1916 + darwin* | rhapsody*)
1917 + case "$host_os" in
1918 + rhapsody* | darwin1.[[012]])
1919 + allow_undefined_flag='-undefined suppress'
1920 + ;;
1921 + *) # Darwin 1.3 on
1922 + allow_undefined_flag='-flat_namespace -undefined suppress'
1923 + ;;
1924 + esac
1925 + # FIXME: Relying on posixy $() will cause problems for
1926 + # cross-compilation, but unfortunately the echo tests do not
1927 + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
1928 + # `"' quotes if we put them in here... so don't!
1929 + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
1930 + # We need to add '_' to the symbols in $export_symbols first
1931 + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
1932 + hardcode_direct=yes
1933 + hardcode_shlibpath_var=no
1934 + whole_archive_flag_spec='-all_load $convenience'
1935 + ;;
1936 +
1937 + freebsd1*)
1938 + ld_shlibs=no
1939 + ;;
1940 +
1941 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1942 + # support. Future versions do this automatically, but an explicit c++rt0.o
1943 + # does not break anything, and helps significantly (at the cost of a little
1944 + # extra space).
1945 + freebsd2.2*)
1946 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
1947 + hardcode_libdir_flag_spec='-R$libdir'
1948 + hardcode_direct=yes
1949 + hardcode_shlibpath_var=no
1950 + ;;
1951 +
1952 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1953 + freebsd2*)
1954 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1955 + hardcode_direct=yes
1956 + hardcode_minus_L=yes
1957 + hardcode_shlibpath_var=no
1958 + ;;
1959 +
1960 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1961 + freebsd*)
1962 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1963 + hardcode_libdir_flag_spec='-R$libdir'
1964 + hardcode_direct=yes
1965 + hardcode_shlibpath_var=no
1966 + ;;
1967 +
1968 + hpux9* | hpux10* | hpux11*)
1969 + case $host_os in
1970 + hpux9*) 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' ;;
1971 + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
1972 + esac
1973 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1974 + hardcode_libdir_separator=:
1975 + hardcode_direct=yes
1976 + hardcode_minus_L=yes # Not in the search PATH, but as the default
1977 + # location of the library.
1978 + export_dynamic_flag_spec='${wl}-E'
1979 + ;;
1980 +
1981 + irix5* | irix6* | nonstopux*)
1982 + if test "$GCC" = yes; then
1983 + 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'
1984 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1985 + else
1986 + 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'
1987 + hardcode_libdir_flag_spec='-rpath $libdir'
1988 + fi
1989 + hardcode_libdir_separator=:
1990 + link_all_deplibs=yes
1991 + ;;
1992 +
1993 + netbsd*)
1994 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1995 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1996 + else
1997 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1998 + fi
1999 + hardcode_libdir_flag_spec='-R$libdir'
2000 + hardcode_direct=yes
2001 + hardcode_shlibpath_var=no
2002 + ;;
2003 +
2004 + newsos6)
2005 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2006 + hardcode_direct=yes
2007 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2008 + hardcode_libdir_separator=:
2009 + hardcode_shlibpath_var=no
2010 + ;;
2011 +
2012 + openbsd*)
2013 + hardcode_direct=yes
2014 + hardcode_shlibpath_var=no
2015 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2016 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2017 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2018 + export_dynamic_flag_spec='${wl}-E'
2019 + else
2020 + case "$host_os" in
2021 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
2022 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2023 + hardcode_libdir_flag_spec='-R$libdir'
2024 + ;;
2025 + *)
2026 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2027 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2028 + ;;
2029 + esac
2030 + fi
2031 + ;;
2032 +
2033 + os2*)
2034 + hardcode_libdir_flag_spec='-L$libdir'
2035 + hardcode_minus_L=yes
2036 + allow_undefined_flag=unsupported
2037 + 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'
2038 + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
2039 + ;;
2040 +
2041 + osf3*)
2042 + if test "$GCC" = yes; then
2043 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2044 + 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'
2045 + else
2046 + allow_undefined_flag=' -expect_unresolved \*'
2047 + 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'
2048 + fi
2049 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2050 + hardcode_libdir_separator=:
2051 + ;;
2052 +
2053 + osf4* | osf5*) # as osf3* with the addition of -msym flag
2054 + if test "$GCC" = yes; then
2055 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2056 + 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'
2057 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2058 + else
2059 + allow_undefined_flag=' -expect_unresolved \*'
2060 + 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'
2061 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
2062 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
2063 +
2064 + #Both c and cxx compiler support -rpath directly
2065 + hardcode_libdir_flag_spec='-rpath $libdir'
2066 + fi
2067 + hardcode_libdir_separator=:
2068 + ;;
2069 +
2070 + sco3.2v5*)
2071 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2072 + hardcode_shlibpath_var=no
2073 + runpath_var=LD_RUN_PATH
2074 + hardcode_runpath_var=yes
2075 + export_dynamic_flag_spec='${wl}-Bexport'
2076 + ;;
2077 +
2078 + solaris*)
2079 + # gcc --version < 3.0 without binutils cannot create self contained
2080 + # shared libraries reliably, requiring libgcc.a to resolve some of
2081 + # the object symbols generated in some cases. Libraries that use
2082 + # assert need libgcc.a to resolve __eprintf, for example. Linking
2083 + # a copy of libgcc.a into every shared library to guarantee resolving
2084 + # such symbols causes other problems: According to Tim Van Holder
2085 + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
2086 + # (to the application) exception stack for one thing.
2087 + no_undefined_flag=' -z defs'
2088 + if test "$GCC" = yes; then
2089 + case `$CC --version 2>/dev/null` in
2090 + [[12]].*)
2091 + cat <<EOF 1>&2
2092 +
2093 +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
2094 +*** create self contained shared libraries on Solaris systems, without
2095 +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
2096 +*** -no-undefined support, which will at least allow you to build shared
2097 +*** libraries. However, you may find that when you link such libraries
2098 +*** into an application without using GCC, you have to manually add
2099 +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
2100 +*** upgrade to a newer version of GCC. Another option is to rebuild your
2101 +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
2102 +
2103 +EOF
2104 + no_undefined_flag=
2105 + ;;
2106 + esac
2107 + fi
2108 + # $CC -shared without GNU ld will not create a library from C++
2109 + # object files and a static libstdc++, better avoid it by now
2110 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2111 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2112 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2113 + hardcode_libdir_flag_spec='-R$libdir'
2114 + hardcode_shlibpath_var=no
2115 + case $host_os in
2116 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2117 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
2118 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
2119 + esac
2120 + link_all_deplibs=yes
2121 + ;;
2122 +
2123 + sunos4*)
2124 + if test "x$host_vendor" = xsequent; then
2125 + # Use $CC to link under sequent, because it throws in some extra .o
2126 + # files that make .init and .fini sections work.
2127 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
2128 + else
2129 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
2130 + fi
2131 + hardcode_libdir_flag_spec='-L$libdir'
2132 + hardcode_direct=yes
2133 + hardcode_minus_L=yes
2134 + hardcode_shlibpath_var=no
2135 + ;;
2136 +
2137 + sysv4)
2138 + case $host_vendor in
2139 + sni)
2140 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2141 + hardcode_direct=yes # is this really true???
2142 + ;;
2143 + siemens)
2144 + ## LD is ld it makes a PLAMLIB
2145 + ## CC just makes a GrossModule.
2146 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2147 + reload_cmds='$CC -r -o $output$reload_objs'
2148 + hardcode_direct=no
2149 + ;;
2150 + motorola)
2151 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2152 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
2153 + ;;
2154 + esac
2155 + runpath_var='LD_RUN_PATH'
2156 + hardcode_shlibpath_var=no
2157 + ;;
2158 +
2159 + sysv4.3*)
2160 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2161 + hardcode_shlibpath_var=no
2162 + export_dynamic_flag_spec='-Bexport'
2163 + ;;
2164 +
2165 + sysv5*)
2166 + no_undefined_flag=' -z text'
2167 + # $CC -shared without GNU ld will not create a library from C++
2168 + # object files and a static libstdc++, better avoid it by now
2169 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2170 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2171 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2172 + hardcode_libdir_flag_spec=
2173 + hardcode_shlibpath_var=no
2174 + runpath_var='LD_RUN_PATH'
2175 + ;;
2176 +
2177 + uts4*)
2178 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2179 + hardcode_libdir_flag_spec='-L$libdir'
2180 + hardcode_shlibpath_var=no
2181 + ;;
2182 +
2183 + dgux*)
2184 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2185 + hardcode_libdir_flag_spec='-L$libdir'
2186 + hardcode_shlibpath_var=no
2187 + ;;
2188 +
2189 + sysv4*MP*)
2190 + if test -d /usr/nec; then
2191 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2192 + hardcode_shlibpath_var=no
2193 + runpath_var=LD_RUN_PATH
2194 + hardcode_runpath_var=yes
2195 + ld_shlibs=yes
2196 + fi
2197 + ;;
2198 +
2199 + sysv4.2uw2*)
2200 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2201 + hardcode_direct=yes
2202 + hardcode_minus_L=no
2203 + hardcode_shlibpath_var=no
2204 + hardcode_runpath_var=yes
2205 + runpath_var=LD_RUN_PATH
2206 + ;;
2207 +
2208 + sysv5uw7* | unixware7*)
2209 + no_undefined_flag='${wl}-z ${wl}text'
2210 + if test "$GCC" = yes; then
2211 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2212 + else
2213 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2214 + fi
2215 + runpath_var='LD_RUN_PATH'
2216 + hardcode_shlibpath_var=no
2217 + ;;
2218 +
2219 + *)
2220 + ld_shlibs=no
2221 + ;;
2222 + esac
2223 +fi
2224 +AC_MSG_RESULT([$ld_shlibs])
2225 +test "$ld_shlibs" = no && can_build_shared=no
2226 +
2227 +# Check hardcoding attributes.
2228 +AC_MSG_CHECKING([how to hardcode library paths into programs])
2229 +hardcode_action=
2230 +if test -n "$hardcode_libdir_flag_spec" || \
2231 + test -n "$runpath_var"; then
2232 +
2233 + # We can hardcode non-existant directories.
2234 + if test "$hardcode_direct" != no &&
2235 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2236 + # have to relink, otherwise we might link with an installed library
2237 + # when we should be linking with a yet-to-be-installed one
2238 + ## test "$hardcode_shlibpath_var" != no &&
2239 + test "$hardcode_minus_L" != no; then
2240 + # Linking always hardcodes the temporary library directory.
2241 + hardcode_action=relink
2242 + else
2243 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2244 + hardcode_action=immediate
2245 + fi
2246 +else
2247 + # We cannot hardcode anything, or else we can only hardcode existing
2248 + # directories.
2249 + hardcode_action=unsupported
2250 +fi
2251 +AC_MSG_RESULT([$hardcode_action])
2252 +
2253 +striplib=
2254 +old_striplib=
2255 +AC_MSG_CHECKING([whether stripping libraries is possible])
2256 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2257 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2258 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2259 + AC_MSG_RESULT([yes])
2260 +else
2261 + AC_MSG_RESULT([no])
2262 +fi
2263 +
2264 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
2265 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
2266 +
2267 +# PORTME Fill in your ld.so characteristics
2268 +AC_MSG_CHECKING([dynamic linker characteristics])
2269 +library_names_spec=
2270 +libname_spec='lib$name'
2271 +soname_spec=
2272 +postinstall_cmds=
2273 +postuninstall_cmds=
2274 +finish_cmds=
2275 +finish_eval=
2276 +shlibpath_var=
2277 +shlibpath_overrides_runpath=unknown
2278 +version_type=none
2279 +dynamic_linker="$host_os ld.so"
2280 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2281 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2282 +
2283 +case $host_os in
2284 +aix3*)
2285 + version_type=linux
2286 + library_names_spec='${libname}${release}.so$versuffix $libname.a'
2287 + shlibpath_var=LIBPATH
2288 +
2289 + # AIX has no versioning support, so we append a major version to the name.
2290 + soname_spec='${libname}${release}.so$major'
2291 + ;;
2292 +
2293 +aix4* | aix5*)
2294 + version_type=linux
2295 + need_lib_prefix=no
2296 + need_version=no
2297 + hardcode_into_libs=yes
2298 + if test "$host_cpu" = ia64; then
2299 + # AIX 5 supports IA64
2300 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
2301 + shlibpath_var=LD_LIBRARY_PATH
2302 + else
2303 + # With GCC up to 2.95.x, collect2 would create an import file
2304 + # for dependence libraries. The import file would start with
2305 + # the line `#! .'. This would cause the generated library to
2306 + # depend on `.', always an invalid library. This was fixed in
2307 + # development snapshots of GCC prior to 3.0.
2308 + case $host_os in
2309 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2310 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2311 + echo ' yes '
2312 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2313 + :
2314 + else
2315 + can_build_shared=no
2316 + fi
2317 + ;;
2318 + esac
2319 + # AIX (on Power*) has no versioning support, so currently we can
2320 + # not hardcode correct soname into executable. Probably we can
2321 + # add versioning support to collect2, so additional links can
2322 + # be useful in future.
2323 + if test "$aix_use_runtimelinking" = yes; then
2324 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2325 + # instead of lib<name>.a to let people know that these are not
2326 + # typical AIX shared libraries.
2327 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2328 + else
2329 + # We preserve .a as extension for shared libraries through AIX4.2
2330 + # and later when we are not doing run time linking.
2331 + library_names_spec='${libname}${release}.a $libname.a'
2332 + soname_spec='${libname}${release}.so$major'
2333 + fi
2334 + shlibpath_var=LIBPATH
2335 + fi
2336 + hardcode_into_libs=yes
2337 + ;;
2338 +
2339 +amigaos*)
2340 + library_names_spec='$libname.ixlibrary $libname.a'
2341 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
2342 + 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'
2343 + ;;
2344 +
2345 +beos*)
2346 + library_names_spec='${libname}.so'
2347 + dynamic_linker="$host_os ld.so"
2348 + shlibpath_var=LIBRARY_PATH
2349 + ;;
2350 +
2351 +bsdi4*)
2352 + version_type=linux
2353 + need_version=no
2354 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2355 + soname_spec='${libname}${release}.so$major'
2356 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2357 + shlibpath_var=LD_LIBRARY_PATH
2358 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2359 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2360 + export_dynamic_flag_spec=-rdynamic
2361 + # the default ld.so.conf also contains /usr/contrib/lib and
2362 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2363 + # libtool to hard-code these into programs
2364 + ;;
2365 +
2366 +cygwin* | mingw* | pw32*)
2367 + version_type=windows
2368 + need_version=no
2369 + need_lib_prefix=no
2370 + case $GCC,$host_os in
2371 + yes,cygwin*)
2372 + library_names_spec='$libname.dll.a'
2373 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
2374 + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
2375 + dldir=$destdir/`dirname \$dlpath`~
2376 + test -d \$dldir || mkdir -p \$dldir~
2377 + $install_prog .libs/$dlname \$dldir/$dlname'
2378 + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
2379 + dlpath=$dir/\$dldll~
2380 + $rm \$dlpath'
2381 + ;;
2382 + yes,mingw*)
2383 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
2384 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
2385 + ;;
2386 + yes,pw32*)
2387 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
2388 + ;;
2389 + *)
2390 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
2391 + ;;
2392 + esac
2393 + dynamic_linker='Win32 ld.exe'
2394 + # FIXME: first we should search . and the directory the executable is in
2395 + shlibpath_var=PATH
2396 + ;;
2397 +
2398 +darwin* | rhapsody*)
2399 + dynamic_linker="$host_os dyld"
2400 + version_type=darwin
2401 + need_lib_prefix=no
2402 + need_version=no
2403 + # FIXME: Relying on posixy $() will cause problems for
2404 + # cross-compilation, but unfortunately the echo tests do not
2405 + # yet detect zsh echo's removal of \ escapes.
2406 + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
2407 + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
2408 + shlibpath_overrides_runpath=yes
2409 + shlibpath_var=DYLD_LIBRARY_PATH
2410 + ;;
2411 +
2412 +freebsd1*)
2413 + dynamic_linker=no
2414 + ;;
2415 +
2416 +freebsd*-gnu*)
2417 + version_type=linux
2418 + need_lib_prefix=no
2419 + need_version=no
2420 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2421 + soname_spec='${libname}${release}.so$major'
2422 + shlibpath_var=LD_LIBRARY_PATH
2423 + shlibpath_overrides_runpath=no
2424 + hardcode_into_libs=yes
2425 + dynamic_linker='GNU/FreeBSD ld.so'
2426 + ;;
2427 +
2428 +freebsd*)
2429 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2430 + version_type=freebsd-$objformat
2431 + case $version_type in
2432 + freebsd-elf*)
2433 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
2434 + need_version=no
2435 + need_lib_prefix=no
2436 + ;;
2437 + freebsd-*)
2438 + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
2439 + need_version=yes
2440 + ;;
2441 + esac
2442 + shlibpath_var=LD_LIBRARY_PATH
2443 + case $host_os in
2444 + freebsd2*)
2445 + shlibpath_overrides_runpath=yes
2446 + ;;
2447 + *)
2448 + shlibpath_overrides_runpath=no
2449 + hardcode_into_libs=yes
2450 + ;;
2451 + esac
2452 + ;;
2453 +
2454 +gnu*)
2455 + version_type=linux
2456 + need_lib_prefix=no
2457 + need_version=no
2458 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
2459 + soname_spec='${libname}${release}.so$major'
2460 + shlibpath_var=LD_LIBRARY_PATH
2461 + hardcode_into_libs=yes
2462 + ;;
2463 +
2464 +hpux9* | hpux10* | hpux11*)
2465 + # Give a soname corresponding to the major version so that dld.sl refuses to
2466 + # link against other versions.
2467 + dynamic_linker="$host_os dld.sl"
2468 + version_type=sunos
2469 + need_lib_prefix=no
2470 + need_version=no
2471 + shlibpath_var=SHLIB_PATH
2472 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2473 + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
2474 + soname_spec='${libname}${release}.sl$major'
2475 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2476 + postinstall_cmds='chmod 555 $lib'
2477 + ;;
2478 +
2479 +irix5* | irix6* | nonstopux*)
2480 + case $host_os in
2481 + nonstopux*) version_type=nonstopux ;;
2482 + *) version_type=irix ;;
2483 + esac
2484 + need_lib_prefix=no
2485 + need_version=no
2486 + soname_spec='${libname}${release}.so$major'
2487 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
2488 + case $host_os in
2489 + irix5* | nonstopux*)
2490 + libsuff= shlibsuff=
2491 + ;;
2492 + *)
2493 + case $LD in # libtool.m4 will add one of these switches to LD
2494 + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
2495 + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
2496 + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
2497 + *) libsuff= shlibsuff= libmagic=never-match;;
2498 + esac
2499 + ;;
2500 + esac
2501 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2502 + shlibpath_overrides_runpath=no
2503 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2504 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2505 + ;;
2506 +
2507 +# No shared lib support for Linux oldld, aout, or coff.
2508 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
2509 + dynamic_linker=no
2510 + ;;
2511 +
2512 +# This must be Linux ELF.
2513 +linux-gnu*)
2514 + version_type=linux
2515 + need_lib_prefix=no
2516 + need_version=no
2517 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2518 + soname_spec='${libname}${release}.so$major'
2519 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2520 + shlibpath_var=LD_LIBRARY_PATH
2521 + shlibpath_overrides_runpath=no
2522 + # This implies no fast_install, which is unacceptable.
2523 + # Some rework will be needed to allow for fast_install
2524 + # before this can be enabled.
2525 + hardcode_into_libs=yes
2526 +
2527 + # We used to test for /lib/ld.so.1 and disable shared libraries on
2528 + # powerpc, because MkLinux only supported shared libraries with the
2529 + # GNU dynamic linker. Since this was broken with cross compilers,
2530 + # most powerpc-linux boxes support dynamic linking these days and
2531 + # people can always --disable-shared, the test was removed, and we
2532 + # assume the GNU/Linux dynamic linker is in use.
2533 + dynamic_linker='GNU/Linux ld.so'
2534 + ;;
2535 +
2536 +netbsd*)
2537 + version_type=sunos
2538 + need_lib_prefix=no
2539 + need_version=no
2540 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2541 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
2542 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2543 + dynamic_linker='NetBSD (a.out) ld.so'
2544 + else
2545 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
2546 + soname_spec='${libname}${release}.so$major'
2547 + dynamic_linker='NetBSD ld.elf_so'
2548 + fi
2549 + shlibpath_var=LD_LIBRARY_PATH
2550 + shlibpath_overrides_runpath=yes
2551 + hardcode_into_libs=yes
2552 + ;;
2553 +
2554 +newsos6)
2555 + version_type=linux
2556 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2557 + shlibpath_var=LD_LIBRARY_PATH
2558 + shlibpath_overrides_runpath=yes
2559 + ;;
2560 +
2561 +openbsd*)
2562 + version_type=sunos
2563 + need_lib_prefix=no
2564 + need_version=no
2565 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2566 + case "$host_os" in
2567 + openbsd2.[[89]] | openbsd2.[[89]].*)
2568 + shlibpath_overrides_runpath=no
2569 + ;;
2570 + *)
2571 + shlibpath_overrides_runpath=yes
2572 + ;;
2573 + esac
2574 + else
2575 + shlibpath_overrides_runpath=yes
2576 + fi
2577 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
2578 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2579 + shlibpath_var=LD_LIBRARY_PATH
2580 + ;;
2581 +
2582 +os2*)
2583 + libname_spec='$name'
2584 + need_lib_prefix=no
2585 + library_names_spec='$libname.dll $libname.a'
2586 + dynamic_linker='OS/2 ld.exe'
2587 + shlibpath_var=LIBPATH
2588 + ;;
2589 +
2590 +osf3* | osf4* | osf5*)
2591 + version_type=osf
2592 + need_version=no
2593 + need_lib_prefix=no
2594 + soname_spec='${libname}${release}.so$major'
2595 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2596 + shlibpath_var=LD_LIBRARY_PATH
2597 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2598 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2599 + hardcode_into_libs=yes
2600 + ;;
2601 +
2602 +sco3.2v5*)
2603 + version_type=osf
2604 + soname_spec='${libname}${release}.so$major'
2605 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2606 + shlibpath_var=LD_LIBRARY_PATH
2607 + ;;
2608 +
2609 +solaris*)
2610 + version_type=linux
2611 + need_lib_prefix=no
2612 + need_version=no
2613 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2614 + soname_spec='${libname}${release}.so$major'
2615 + shlibpath_var=LD_LIBRARY_PATH
2616 + shlibpath_overrides_runpath=yes
2617 + hardcode_into_libs=yes
2618 + # ldd complains unless libraries are executable
2619 + postinstall_cmds='chmod +x $lib'
2620 + ;;
2621 +
2622 +sunos4*)
2623 + version_type=sunos
2624 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
2625 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2626 + shlibpath_var=LD_LIBRARY_PATH
2627 + shlibpath_overrides_runpath=yes
2628 + if test "$with_gnu_ld" = yes; then
2629 + need_lib_prefix=no
2630 + fi
2631 + need_version=yes
2632 + ;;
2633 +
2634 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2635 + version_type=linux
2636 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2637 + soname_spec='${libname}${release}.so$major'
2638 + shlibpath_var=LD_LIBRARY_PATH
2639 + case $host_vendor in
2640 + sni)
2641 + shlibpath_overrides_runpath=no
2642 + need_lib_prefix=no
2643 + export_dynamic_flag_spec='${wl}-Blargedynsym'
2644 + runpath_var=LD_RUN_PATH
2645 + ;;
2646 + siemens)
2647 + need_lib_prefix=no
2648 + ;;
2649 + motorola)
2650 + need_lib_prefix=no
2651 + need_version=no
2652 + shlibpath_overrides_runpath=no
2653 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2654 + ;;
2655 + esac
2656 + ;;
2657 +
2658 +uts4*)
2659 + version_type=linux
2660 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2661 + soname_spec='${libname}${release}.so$major'
2662 + shlibpath_var=LD_LIBRARY_PATH
2663 + ;;
2664 +
2665 +dgux*)
2666 + version_type=linux
2667 + need_lib_prefix=no
2668 + need_version=no
2669 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2670 + soname_spec='${libname}${release}.so$major'
2671 + shlibpath_var=LD_LIBRARY_PATH
2672 + ;;
2673 +
2674 +sysv4*MP*)
2675 + if test -d /usr/nec ;then
2676 + version_type=linux
2677 + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
2678 + soname_spec='$libname.so.$major'
2679 + shlibpath_var=LD_LIBRARY_PATH
2680 + fi
2681 + ;;
2682 +
2683 +*)
2684 + dynamic_linker=no
2685 + ;;
2686 +esac
2687 +AC_MSG_RESULT([$dynamic_linker])
2688 +test "$dynamic_linker" = no && can_build_shared=no
2689 +
2690 +# Report the final consequences.
2691 +AC_MSG_CHECKING([if libtool supports shared libraries])
2692 +AC_MSG_RESULT([$can_build_shared])
2693 +
2694 +AC_MSG_CHECKING([whether to build shared libraries])
2695 +test "$can_build_shared" = "no" && enable_shared=no
2696 +
2697 +# On AIX, shared libraries and static libraries use the same namespace, and
2698 +# are all built from PIC.
2699 +case "$host_os" in
2700 +aix3*)
2701 + test "$enable_shared" = yes && enable_static=no
2702 + if test -n "$RANLIB"; then
2703 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
2704 + postinstall_cmds='$RANLIB $lib'
2705 + fi
2706 + ;;
2707 +
2708 +aix4*)
2709 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2710 + test "$enable_shared" = yes && enable_static=no
2711 + fi
2712 + ;;
2713 +esac
2714 +AC_MSG_RESULT([$enable_shared])
2715 +
2716 +AC_MSG_CHECKING([whether to build static libraries])
2717 +# Make sure either enable_shared or enable_static is yes.
2718 +test "$enable_shared" = yes || enable_static=yes
2719 +AC_MSG_RESULT([$enable_static])
2720 +
2721 +if test "$hardcode_action" = relink; then
2722 + # Fast installation is not supported
2723 + enable_fast_install=no
2724 +elif test "$shlibpath_overrides_runpath" = yes ||
2725 + test "$enable_shared" = no; then
2726 + # Fast installation is not necessary
2727 + enable_fast_install=needless
2728 +fi
2729 +
2730 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2731 +if test "$GCC" = yes; then
2732 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2733 +fi
2734 +
2735 +AC_LIBTOOL_DLOPEN_SELF
2736 +
2737 +if test "$enable_shared" = yes && test "$GCC" = yes; then
2738 + case $archive_cmds in
2739 + *'~'*)
2740 + # FIXME: we may have to deal with multi-command sequences.
2741 + ;;
2742 + '$CC '*)
2743 + # Test whether the compiler implicitly links with -lc since on some
2744 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
2745 + # to ld, don't add -lc before -lgcc.
2746 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
2747 + AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
2748 + [$rm conftest*
2749 + echo 'static int dummy;' > conftest.$ac_ext
2750 +
2751 + if AC_TRY_EVAL(ac_compile); then
2752 + soname=conftest
2753 + lib=conftest
2754 + libobjs=conftest.$ac_objext
2755 + deplibs=
2756 + wl=$lt_cv_prog_cc_wl
2757 + compiler_flags=-v
2758 + linker_flags=-v
2759 + verstring=
2760 + output_objdir=.
2761 + libname=conftest
2762 + save_allow_undefined_flag=$allow_undefined_flag
2763 + allow_undefined_flag=
2764 + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
2765 + then
2766 + lt_cv_archive_cmds_need_lc=no
2767 + else
2768 + lt_cv_archive_cmds_need_lc=yes
2769 + fi
2770 + allow_undefined_flag=$save_allow_undefined_flag
2771 + else
2772 + cat conftest.err 1>&5
2773 + fi])
2774 + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
2775 + ;;
2776 + esac
2777 +fi
2778 +need_lc=${lt_cv_archive_cmds_need_lc-yes}
2779 +
2780 +# The second clause should only fire when bootstrapping the
2781 +# libtool distribution, otherwise you forgot to ship ltmain.sh
2782 +# with your package, and you will get complaints that there are
2783 +# no rules to generate ltmain.sh.
2784 +if test -f "$ltmain"; then
2785 + :
2786 +else
2787 + # If there is no Makefile yet, we rely on a make rule to execute
2788 + # `config.status --recheck' to rerun these tests and create the
2789 + # libtool script then.
2790 + test -f Makefile && make "$ltmain"
2791 +fi
2792 +
2793 +if test -f "$ltmain"; then
2794 + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
2795 + $rm -f "${ofile}T"
2796 +
2797 + echo creating $ofile
2798 +
2799 + # Now quote all the things that may contain metacharacters while being
2800 + # careful not to overquote the AC_SUBSTed values. We take copies of the
2801 + # variables and quote the copies for generation of the libtool script.
2802 + for var in echo old_CC old_CFLAGS SED \
2803 + AR AR_FLAGS CC LD LN_S NM SHELL \
2804 + reload_flag reload_cmds wl \
2805 + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
2806 + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
2807 + library_names_spec soname_spec \
2808 + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
2809 + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
2810 + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
2811 + old_striplib striplib file_magic_cmd export_symbols_cmds \
2812 + deplibs_check_method allow_undefined_flag no_undefined_flag \
2813 + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
2814 + global_symbol_to_c_name_address \
2815 + hardcode_libdir_flag_spec hardcode_libdir_separator \
2816 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
2817 + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
2818 +
2819 + case $var in
2820 + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
2821 + old_postinstall_cmds | old_postuninstall_cmds | \
2822 + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
2823 + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
2824 + postinstall_cmds | postuninstall_cmds | \
2825 + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
2826 + # Double-quote double-evaled strings.
2827 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
2828 + ;;
2829 + *)
2830 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
2831 + ;;
2832 + esac
2833 + done
2834 +
2835 + cat <<__EOF__ > "${ofile}T"
2836 +#! $SHELL
2837 +
2838 +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2839 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2840 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
2841 +#
2842 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
2843 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2844 +#
2845 +# This program is free software; you can redistribute it and/or modify
2846 +# it under the terms of the GNU General Public License as published by
2847 +# the Free Software Foundation; either version 2 of the License, or
2848 +# (at your option) any later version.
2849 +#
2850 +# This program is distributed in the hope that it will be useful, but
2851 +# WITHOUT ANY WARRANTY; without even the implied warranty of
2852 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2853 +# General Public License for more details.
2854 +#
2855 +# You should have received a copy of the GNU General Public License
2856 +# along with this program; if not, write to the Free Software
2857 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2858 +#
2859 +# As a special exception to the GNU General Public License, if you
2860 +# distribute this file as part of a program that contains a
2861 +# configuration script generated by Autoconf, you may include it under
2862 +# the same distribution terms that you use for the rest of that program.
2863 +
2864 +# A sed that does not truncate output.
2865 +SED=$lt_SED
2866 +
2867 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
2868 +Xsed="${SED} -e s/^X//"
2869 +
2870 +# The HP-UX ksh and POSIX shell print the target directory to stdout
2871 +# if CDPATH is set.
2872 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2873 +
2874 +# ### BEGIN LIBTOOL CONFIG
2875 +
2876 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2877 +
2878 +# Shell to use when invoking shell scripts.
2879 +SHELL=$lt_SHELL
2880 +
2881 +# Whether or not to build shared libraries.
2882 +build_libtool_libs=$enable_shared
2883 +
2884 +# Whether or not to build static libraries.
2885 +build_old_libs=$enable_static
2886 +
2887 +# Whether or not to add -lc for building shared libraries.
2888 +build_libtool_need_lc=$need_lc
2889 +
2890 +# Whether or not to optimize for fast installation.
2891 +fast_install=$enable_fast_install
2892 +
2893 +# The host system.
2894 +host_alias=$host_alias
2895 +host=$host
2896 +
2897 +# An echo program that does not interpret backslashes.
2898 +echo=$lt_echo
2899 +
2900 +# The archiver.
2901 +AR=$lt_AR
2902 +AR_FLAGS=$lt_AR_FLAGS
2903 +
2904 +# The default C compiler.
2905 +CC=$lt_CC
2906 +
2907 +# Is the compiler the GNU C compiler?
2908 +with_gcc=$GCC
2909 +
2910 +# The linker used to build libraries.
2911 +LD=$lt_LD
2912 +
2913 +# Whether we need hard or soft links.
2914 +LN_S=$lt_LN_S
2915 +
2916 +# A BSD-compatible nm program.
2917 +NM=$lt_NM
2918 +
2919 +# A symbol stripping program
2920 +STRIP=$STRIP
2921 +
2922 +# Used to examine libraries when file_magic_cmd begins "file"
2923 +MAGIC_CMD=$MAGIC_CMD
2924 +
2925 +# Used on cygwin: DLL creation program.
2926 +DLLTOOL="$DLLTOOL"
2927 +
2928 +# Used on cygwin: object dumper.
2929 +OBJDUMP="$OBJDUMP"
2930 +
2931 +# Used on cygwin: assembler.
2932 +AS="$AS"
2933 +
2934 +# The name of the directory that contains temporary libtool files.
2935 +objdir=$objdir
2936 +
2937 +# How to create reloadable object files.
2938 +reload_flag=$lt_reload_flag
2939 +reload_cmds=$lt_reload_cmds
2940 +
2941 +# How to pass a linker flag through the compiler.
2942 +wl=$lt_wl
2943 +
2944 +# Object file suffix (normally "o").
2945 +objext="$ac_objext"
2946 +
2947 +# Old archive suffix (normally "a").
2948 +libext="$libext"
2949 +
2950 +# Executable file suffix (normally "").
2951 +exeext="$exeext"
2952 +
2953 +# Additional compiler flags for building library objects.
2954 +pic_flag=$lt_pic_flag
2955 +pic_mode=$pic_mode
2956 +
2957 +# Does compiler simultaneously support -c and -o options?
2958 +compiler_c_o=$lt_compiler_c_o
2959 +
2960 +# Can we write directly to a .lo ?
2961 +compiler_o_lo=$lt_compiler_o_lo
2962 +
2963 +# Must we lock files when doing compilation ?
2964 +need_locks=$lt_need_locks
2965 +
2966 +# Do we need the lib prefix for modules?
2967 +need_lib_prefix=$need_lib_prefix
2968 +
2969 +# Do we need a version for libraries?
2970 +need_version=$need_version
2971 +
2972 +# Whether dlopen is supported.
2973 +dlopen_support=$enable_dlopen
2974 +
2975 +# Whether dlopen of programs is supported.
2976 +dlopen_self=$enable_dlopen_self
2977 +
2978 +# Whether dlopen of statically linked programs is supported.
2979 +dlopen_self_static=$enable_dlopen_self_static
2980 +
2981 +# Compiler flag to prevent dynamic linking.
2982 +link_static_flag=$lt_link_static_flag
2983 +
2984 +# Compiler flag to turn off builtin functions.
2985 +no_builtin_flag=$lt_no_builtin_flag
2986 +
2987 +# Compiler flag to allow reflexive dlopens.
2988 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
2989 +
2990 +# Compiler flag to generate shared objects directly from archives.
2991 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
2992 +
2993 +# Compiler flag to generate thread-safe objects.
2994 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
2995 +
2996 +# Library versioning type.
2997 +version_type=$version_type
2998 +
2999 +# Format of library name prefix.
3000 +libname_spec=$lt_libname_spec
3001 +
3002 +# List of archive names. First name is the real one, the rest are links.
3003 +# The last name is the one that the linker finds with -lNAME.
3004 +library_names_spec=$lt_library_names_spec
3005 +
3006 +# The coded name of the library, if different from the real name.
3007 +soname_spec=$lt_soname_spec
3008 +
3009 +# Commands used to build and install an old-style archive.
3010 +RANLIB=$lt_RANLIB
3011 +old_archive_cmds=$lt_old_archive_cmds
3012 +old_postinstall_cmds=$lt_old_postinstall_cmds
3013 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
3014 +
3015 +# Create an old-style archive from a shared archive.
3016 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
3017 +
3018 +# Create a temporary old-style archive to link instead of a shared archive.
3019 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
3020 +
3021 +# Commands used to build and install a shared archive.
3022 +archive_cmds=$lt_archive_cmds
3023 +archive_expsym_cmds=$lt_archive_expsym_cmds
3024 +postinstall_cmds=$lt_postinstall_cmds
3025 +postuninstall_cmds=$lt_postuninstall_cmds
3026 +
3027 +# Commands to strip libraries.
3028 +old_striplib=$lt_old_striplib
3029 +striplib=$lt_striplib
3030 +
3031 +# Method to check whether dependent libraries are shared objects.
3032 +deplibs_check_method=$lt_deplibs_check_method
3033 +
3034 +# Command to use when deplibs_check_method == file_magic.
3035 +file_magic_cmd=$lt_file_magic_cmd
3036 +
3037 +# Flag that allows shared libraries with undefined symbols to be built.
3038 +allow_undefined_flag=$lt_allow_undefined_flag
3039 +
3040 +# Flag that forces no undefined symbols.
3041 +no_undefined_flag=$lt_no_undefined_flag
3042 +
3043 +# Commands used to finish a libtool library installation in a directory.
3044 +finish_cmds=$lt_finish_cmds
3045 +
3046 +# Same as above, but a single script fragment to be evaled but not shown.
3047 +finish_eval=$lt_finish_eval
3048 +
3049 +# Take the output of nm and produce a listing of raw symbols and C names.
3050 +global_symbol_pipe=$lt_global_symbol_pipe
3051 +
3052 +# Transform the output of nm in a proper C declaration
3053 +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
3054 +
3055 +# Transform the output of nm in a C name address pair
3056 +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
3057 +
3058 +# This is the shared library runtime path variable.
3059 +runpath_var=$runpath_var
3060 +
3061 +# This is the shared library path variable.
3062 +shlibpath_var=$shlibpath_var
3063 +
3064 +# Is shlibpath searched before the hard-coded library search path?
3065 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
3066 +
3067 +# How to hardcode a shared library path into an executable.
3068 +hardcode_action=$hardcode_action
3069 +
3070 +# Whether we should hardcode library paths into libraries.
3071 +hardcode_into_libs=$hardcode_into_libs
3072 +
3073 +# Flag to hardcode \$libdir into a binary during linking.
3074 +# This must work even if \$libdir does not exist.
3075 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
3076 +
3077 +# Whether we need a single -rpath flag with a separated argument.
3078 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
3079 +
3080 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
3081 +# resulting binary.
3082 +hardcode_direct=$hardcode_direct
3083 +
3084 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
3085 +# resulting binary.
3086 +hardcode_minus_L=$hardcode_minus_L
3087 +
3088 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
3089 +# the resulting binary.
3090 +hardcode_shlibpath_var=$hardcode_shlibpath_var
3091 +
3092 +# Variables whose values should be saved in libtool wrapper scripts and
3093 +# restored at relink time.
3094 +variables_saved_for_relink="$variables_saved_for_relink"
3095 +
3096 +# Whether libtool must link a program against all its dependency libraries.
3097 +link_all_deplibs=$link_all_deplibs
3098 +
3099 +# Compile-time system search path for libraries
3100 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
3101 +
3102 +# Run-time system search path for libraries
3103 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
3104 +
3105 +# Fix the shell variable \$srcfile for the compiler.
3106 +fix_srcfile_path="$fix_srcfile_path"
3107 +
3108 +# Set to yes if exported symbols are required.
3109 +always_export_symbols=$always_export_symbols
3110 +
3111 +# The commands to list exported symbols.
3112 +export_symbols_cmds=$lt_export_symbols_cmds
3113 +
3114 +# The commands to extract the exported symbol list from a shared archive.
3115 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
3116 +
3117 +# Symbols that should not be listed in the preloaded symbols.
3118 +exclude_expsyms=$lt_exclude_expsyms
3119 +
3120 +# Symbols that must always be exported.
3121 +include_expsyms=$lt_include_expsyms
3122 +
3123 +# ### END LIBTOOL CONFIG
3124 +
3125 +__EOF__
3126 +
3127 + case $host_os in
3128 + aix3*)
3129 + cat <<\EOF >> "${ofile}T"
3130 +
3131 +# AIX sometimes has problems with the GCC collect2 program. For some
3132 +# reason, if we set the COLLECT_NAMES environment variable, the problems
3133 +# vanish in a puff of smoke.
3134 +if test "X${COLLECT_NAMES+set}" != Xset; then
3135 + COLLECT_NAMES=
3136 + export COLLECT_NAMES
3137 +fi
3138 +EOF
3139 + ;;
3140 + esac
3141 +
3142 + case $host_os in
3143 + cygwin* | mingw* | pw32* | os2*)
3144 + cat <<'EOF' >> "${ofile}T"
3145 + # This is a source program that is used to create dlls on Windows
3146 + # Don't remove nor modify the starting and closing comments
3147 +# /* ltdll.c starts here */
3148 +# #define WIN32_LEAN_AND_MEAN
3149 +# #include <windows.h>
3150 +# #undef WIN32_LEAN_AND_MEAN
3151 +# #include <stdio.h>
3152 +#
3153 +# #ifndef __CYGWIN__
3154 +# # ifdef __CYGWIN32__
3155 +# # define __CYGWIN__ __CYGWIN32__
3156 +# # endif
3157 +# #endif
3158 +#
3159 +# #ifdef __cplusplus
3160 +# extern "C" {
3161 +# #endif
3162 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
3163 +# #ifdef __cplusplus
3164 +# }
3165 +# #endif
3166 +#
3167 +# #ifdef __CYGWIN__
3168 +# #include <cygwin/cygwin_dll.h>
3169 +# DECLARE_CYGWIN_DLL( DllMain );
3170 +# #endif
3171 +# HINSTANCE __hDllInstance_base;
3172 +#
3173 +# BOOL APIENTRY
3174 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
3175 +# {
3176 +# __hDllInstance_base = hInst;
3177 +# return TRUE;
3178 +# }
3179 +# /* ltdll.c ends here */
3180 + # This is a source program that is used to create import libraries
3181 + # on Windows for dlls which lack them. Don't remove nor modify the
3182 + # starting and closing comments
3183 +# /* impgen.c starts here */
3184 +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
3185 +#
3186 +# This file is part of GNU libtool.
3187 +#
3188 +# This program is free software; you can redistribute it and/or modify
3189 +# it under the terms of the GNU General Public License as published by
3190 +# the Free Software Foundation; either version 2 of the License, or
3191 +# (at your option) any later version.
3192 +#
3193 +# This program is distributed in the hope that it will be useful,
3194 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
3195 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3196 +# GNU General Public License for more details.
3197 +#
3198 +# You should have received a copy of the GNU General Public License
3199 +# along with this program; if not, write to the Free Software
3200 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3201 +# */
3202 +#
3203 +# #include <stdio.h> /* for printf() */
3204 +# #include <unistd.h> /* for open(), lseek(), read() */
3205 +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
3206 +# #include <string.h> /* for strdup() */
3207 +#
3208 +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
3209 +# #ifndef O_BINARY
3210 +# #define O_BINARY 0
3211 +# #endif
3212 +#
3213 +# static unsigned int
3214 +# pe_get16 (fd, offset)
3215 +# int fd;
3216 +# int offset;
3217 +# {
3218 +# unsigned char b[2];
3219 +# lseek (fd, offset, SEEK_SET);
3220 +# read (fd, b, 2);
3221 +# return b[0] + (b[1]<<8);
3222 +# }
3223 +#
3224 +# static unsigned int
3225 +# pe_get32 (fd, offset)
3226 +# int fd;
3227 +# int offset;
3228 +# {
3229 +# unsigned char b[4];
3230 +# lseek (fd, offset, SEEK_SET);
3231 +# read (fd, b, 4);
3232 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3233 +# }
3234 +#
3235 +# static unsigned int
3236 +# pe_as32 (ptr)
3237 +# void *ptr;
3238 +# {
3239 +# unsigned char *b = ptr;
3240 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3241 +# }
3242 +#
3243 +# int
3244 +# main (argc, argv)
3245 +# int argc;
3246 +# char *argv[];
3247 +# {
3248 +# int dll;
3249 +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
3250 +# unsigned long export_rva, export_size, nsections, secptr, expptr;
3251 +# unsigned long name_rvas, nexp;
3252 +# unsigned char *expdata, *erva;
3253 +# char *filename, *dll_name;
3254 +#
3255 +# filename = argv[1];
3256 +#
3257 +# dll = open(filename, O_RDONLY|O_BINARY);
3258 +# if (dll < 1)
3259 +# return 1;
3260 +#
3261 +# dll_name = filename;
3262 +#
3263 +# for (i=0; filename[i]; i++)
3264 +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
3265 +# dll_name = filename + i +1;
3266 +#
3267 +# pe_header_offset = pe_get32 (dll, 0x3c);
3268 +# opthdr_ofs = pe_header_offset + 4 + 20;
3269 +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
3270 +#
3271 +# if (num_entries < 1) /* no exports */
3272 +# return 1;
3273 +#
3274 +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
3275 +# export_size = pe_get32 (dll, opthdr_ofs + 100);
3276 +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
3277 +# secptr = (pe_header_offset + 4 + 20 +
3278 +# pe_get16 (dll, pe_header_offset + 4 + 16));
3279 +#
3280 +# expptr = 0;
3281 +# for (i = 0; i < nsections; i++)
3282 +# {
3283 +# char sname[8];
3284 +# unsigned long secptr1 = secptr + 40 * i;
3285 +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
3286 +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
3287 +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
3288 +# lseek(dll, secptr1, SEEK_SET);
3289 +# read(dll, sname, 8);
3290 +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
3291 +# {
3292 +# expptr = fptr + (export_rva - vaddr);
3293 +# if (export_rva + export_size > vaddr + vsize)
3294 +# export_size = vsize - (export_rva - vaddr);
3295 +# break;
3296 +# }
3297 +# }
3298 +#
3299 +# expdata = (unsigned char*)malloc(export_size);
3300 +# lseek (dll, expptr, SEEK_SET);
3301 +# read (dll, expdata, export_size);
3302 +# erva = expdata - export_rva;
3303 +#
3304 +# nexp = pe_as32 (expdata+24);
3305 +# name_rvas = pe_as32 (expdata+32);
3306 +#
3307 +# printf ("EXPORTS\n");
3308 +# for (i = 0; i<nexp; i++)
3309 +# {
3310 +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
3311 +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
3312 +# }
3313 +#
3314 +# return 0;
3315 +# }
3316 +# /* impgen.c ends here */
3317
3318 -# Some flags need to be propagated to the compiler or linker for good
3319 -# libtool support.
3320 -case "$lt_target" in
3321 -*-*-irix6*)
3322 - # Find out which ABI we are using.
3323 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3324 - if AC_TRY_EVAL(ac_compile); then
3325 - case "`/usr/bin/file conftest.o`" in
3326 - *32-bit*)
3327 - LD="${LD-ld} -32"
3328 - ;;
3329 - *N32*)
3330 - LD="${LD-ld} -n32"
3331 - ;;
3332 - *64-bit*)
3333 - LD="${LD-ld} -64"
3334 - ;;
3335 - esac
3336 - fi
3337 - rm -rf conftest*
3338 - ;;
3339 +EOF
3340 + ;;
3341 + esac
3342
3343 -*-*-sco3.2v5*)
3344 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3345 - SAVE_CFLAGS="$CFLAGS"
3346 - CFLAGS="$CFLAGS -belf"
3347 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3348 - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
3349 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3350 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3351 - CFLAGS="$SAVE_CFLAGS"
3352 - fi
3353 - ;;
3354 + # We use sed instead of cat because bash on DJGPP gets confused if
3355 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
3356 + # text mode, it properly converts lines to CR/LF. This bash problem
3357 + # is reportedly fixed, but why not run on old versions too?
3358 + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
3359 +
3360 + mv -f "${ofile}T" "$ofile" || \
3361 + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
3362 + chmod +x "$ofile"
3363 +fi
3364
3365 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
3366 -[*-*-cygwin* | *-*-mingw*)
3367 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
3368 - AC_CHECK_TOOL(AS, as, false)
3369 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
3370 - ;;
3371 -])
3372 -esac
3373 -])
3374 +])# _LT_AC_LTCONFIG_HACK
3375
3376 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3377 -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
3378 +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
3379
3380 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3381 -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
3382 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
3383
3384 # AC_ENABLE_SHARED - implement the --enable-shared flag
3385 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
3386 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3387 # `yes'.
3388 -AC_DEFUN(AC_ENABLE_SHARED, [dnl
3389 -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3390 +AC_DEFUN([AC_ENABLE_SHARED],
3391 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3392 AC_ARG_ENABLE(shared,
3393 changequote(<<, >>)dnl
3394 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
3395 changequote([, ])dnl
3396 [p=${PACKAGE-default}
3397 -case "$enableval" in
3398 +case $enableval in
3399 yes) enable_shared=yes ;;
3400 no) enable_shared=no ;;
3401 *)
3402 @@ -157,21 +3136,22 @@
3403 ])
3404
3405 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
3406 -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3407 +AC_DEFUN([AC_DISABLE_SHARED],
3408 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3409 AC_ENABLE_SHARED(no)])
3410
3411 # AC_ENABLE_STATIC - implement the --enable-static flag
3412 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
3413 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3414 # `yes'.
3415 -AC_DEFUN(AC_ENABLE_STATIC, [dnl
3416 -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3417 +AC_DEFUN([AC_ENABLE_STATIC],
3418 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3419 AC_ARG_ENABLE(static,
3420 changequote(<<, >>)dnl
3421 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
3422 changequote([, ])dnl
3423 [p=${PACKAGE-default}
3424 -case "$enableval" in
3425 +case $enableval in
3426 yes) enable_static=yes ;;
3427 no) enable_static=no ;;
3428 *)
3429 @@ -190,7 +3170,8 @@
3430 ])
3431
3432 # AC_DISABLE_STATIC - set the default static flag to --disable-static
3433 -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3434 +AC_DEFUN([AC_DISABLE_STATIC],
3435 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3436 AC_ENABLE_STATIC(no)])
3437
3438
3439 @@ -198,14 +3179,14 @@
3440 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3441 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3442 # `yes'.
3443 -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
3444 -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3445 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3446 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3447 AC_ARG_ENABLE(fast-install,
3448 changequote(<<, >>)dnl
3449 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
3450 changequote([, ])dnl
3451 [p=${PACKAGE-default}
3452 -case "$enableval" in
3453 +case $enableval in
3454 yes) enable_fast_install=yes ;;
3455 no) enable_fast_install=no ;;
3456 *)
3457 @@ -223,29 +3204,120 @@
3458 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
3459 ])
3460
3461 -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
3462 -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3463 +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
3464 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3465 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3466 AC_ENABLE_FAST_INSTALL(no)])
3467
3468 +# AC_LIBTOOL_PICMODE - implement the --with-pic flag
3469 +# Usage: AC_LIBTOOL_PICMODE[(MODE)]
3470 +# Where MODE is either `yes' or `no'. If omitted, it defaults to
3471 +# `both'.
3472 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3473 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3474 +pic_mode=ifelse($#,1,$1,default)])
3475 +
3476 +
3477 +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
3478 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3479 +[AC_MSG_CHECKING([for $1])
3480 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3481 +[case $MAGIC_CMD in
3482 + /*)
3483 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3484 + ;;
3485 + ?:/*)
3486 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3487 + ;;
3488 + *)
3489 + ac_save_MAGIC_CMD="$MAGIC_CMD"
3490 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3491 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3492 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3493 +dnl not every word. This closes a longstanding sh security hole.
3494 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3495 + for ac_dir in $ac_dummy; do
3496 + test -z "$ac_dir" && ac_dir=.
3497 + if test -f $ac_dir/$1; then
3498 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3499 + if test -n "$file_magic_test_file"; then
3500 + case $deplibs_check_method in
3501 + "file_magic "*)
3502 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3503 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3504 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3505 + egrep "$file_magic_regex" > /dev/null; then
3506 + :
3507 + else
3508 + cat <<EOF 1>&2
3509 +
3510 +*** Warning: the command libtool uses to detect shared libraries,
3511 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3512 +*** The result is that libtool may fail to recognize shared libraries
3513 +*** as such. This will affect the creation of libtool libraries that
3514 +*** depend on shared libraries, but programs linked with such libtool
3515 +*** libraries will work regardless of this problem. Nevertheless, you
3516 +*** may want to report the problem to your system manager and/or to
3517 +*** bug-libtool@gnu.org
3518 +
3519 +EOF
3520 + fi ;;
3521 + esac
3522 + fi
3523 + break
3524 + fi
3525 + done
3526 + IFS="$ac_save_ifs"
3527 + MAGIC_CMD="$ac_save_MAGIC_CMD"
3528 + ;;
3529 +esac])
3530 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3531 +if test -n "$MAGIC_CMD"; then
3532 + AC_MSG_RESULT($MAGIC_CMD)
3533 +else
3534 + AC_MSG_RESULT(no)
3535 +fi
3536 +])
3537 +
3538 +
3539 +# AC_PATH_MAGIC - find a file program which can recognise a shared library
3540 +AC_DEFUN([AC_PATH_MAGIC],
3541 +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
3542 +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
3543 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3544 + if test -n "$ac_tool_prefix"; then
3545 + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
3546 + else
3547 + MAGIC_CMD=:
3548 + fi
3549 +fi
3550 +])
3551 +
3552 +
3553 # AC_PROG_LD - find the path to the GNU or non-GNU linker
3554 -AC_DEFUN(AC_PROG_LD,
3555 +AC_DEFUN([AC_PROG_LD],
3556 [AC_ARG_WITH(gnu-ld,
3557 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
3558 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
3559 AC_REQUIRE([AC_PROG_CC])dnl
3560 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3561 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3562 +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
3563 ac_prog=ld
3564 -if test "$ac_cv_prog_gcc" = yes; then
3565 +if test "$GCC" = yes; then
3566 # Check if gcc -print-prog-name=ld gives a path.
3567 AC_MSG_CHECKING([for ld used by GCC])
3568 - ac_prog=`($CC -print-prog-name=ld) 2>&5`
3569 - case "$ac_prog" in
3570 + case $host in
3571 + *-*-mingw*)
3572 + # gcc leaves a trailing carriage return which upsets mingw
3573 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3574 + *)
3575 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3576 + esac
3577 + case $ac_prog in
3578 # Accept absolute paths.
3579 -changequote(,)dnl
3580 - [\\/]* | [A-Za-z]:[\\/]*)
3581 - re_direlt='/[^/][^/]*/\.\./'
3582 -changequote([,])dnl
3583 + [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
3584 + re_direlt='/[[^/]][[^/]]*/\.\./'
3585 # Canonicalize the path of ld
3586 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3587 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3588 @@ -267,17 +3339,17 @@
3589 else
3590 AC_MSG_CHECKING([for non-GNU ld])
3591 fi
3592 -AC_CACHE_VAL(ac_cv_path_LD,
3593 +AC_CACHE_VAL(lt_cv_path_LD,
3594 [if test -z "$LD"; then
3595 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3596 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3597 for ac_dir in $PATH; do
3598 test -z "$ac_dir" && ac_dir=.
3599 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3600 - ac_cv_path_LD="$ac_dir/$ac_prog"
3601 + lt_cv_path_LD="$ac_dir/$ac_prog"
3602 # Check to see if the program is GNU ld. I'd rather use --version,
3603 # but apparently some GNU ld's only accept -v.
3604 # Break only if it was the GNU/non-GNU ld that we prefer.
3605 - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3606 + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3607 test "$with_gnu_ld" != no && break
3608 else
3609 test "$with_gnu_ld" != yes && break
3610 @@ -286,9 +3358,9 @@
3611 done
3612 IFS="$ac_save_ifs"
3613 else
3614 - ac_cv_path_LD="$LD" # Let the user override the test with a path.
3615 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3616 fi])
3617 -LD="$ac_cv_path_LD"
3618 +LD="$lt_cv_path_LD"
3619 if test -n "$LD"; then
3620 AC_MSG_RESULT($LD)
3621 else
3622 @@ -298,56 +3370,255 @@
3623 AC_PROG_LD_GNU
3624 ])
3625
3626 -AC_DEFUN(AC_PROG_LD_GNU,
3627 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
3628 +# AC_PROG_LD_GNU -
3629 +AC_DEFUN([AC_PROG_LD_GNU],
3630 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3631 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3632 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3633 - ac_cv_prog_gnu_ld=yes
3634 + lt_cv_prog_gnu_ld=yes
3635 else
3636 - ac_cv_prog_gnu_ld=no
3637 + lt_cv_prog_gnu_ld=no
3638 fi])
3639 +with_gnu_ld=$lt_cv_prog_gnu_ld
3640 +])
3641 +
3642 +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
3643 +# -- PORTME Some linkers may need a different reload flag.
3644 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3645 +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
3646 +[lt_cv_ld_reload_flag='-r'])
3647 +reload_flag=$lt_cv_ld_reload_flag
3648 +test -n "$reload_flag" && reload_flag=" $reload_flag"
3649 +])
3650 +
3651 +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3652 +# -- PORTME fill in with the dynamic library characteristics
3653 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3654 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3655 +lt_cv_deplibs_check_method,
3656 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3657 +lt_cv_file_magic_test_file=
3658 +lt_cv_deplibs_check_method='unknown'
3659 +# Need to set the preceding variable on all platforms that support
3660 +# interlibrary dependencies.
3661 +# 'none' -- dependencies not supported.
3662 +# `unknown' -- same as none, but documents that we really don't know.
3663 +# 'pass_all' -- all dependencies passed with no checks.
3664 +# 'test_compile' -- check by making test program.
3665 +# 'file_magic [[regex]]' -- check by looking for files in library path
3666 +# which responds to the $file_magic_cmd with a given egrep regex.
3667 +# If you have `file' or equivalent on your system and you're not sure
3668 +# whether `pass_all' will *always* work, you probably want this one.
3669 +
3670 +case $host_os in
3671 +aix4* | aix5*)
3672 + lt_cv_deplibs_check_method=pass_all
3673 + ;;
3674 +
3675 +beos*)
3676 + lt_cv_deplibs_check_method=pass_all
3677 + ;;
3678 +
3679 +bsdi4*)
3680 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3681 + lt_cv_file_magic_cmd='/usr/bin/file -L'
3682 + lt_cv_file_magic_test_file=/shlib/libc.so
3683 + ;;
3684 +
3685 +cygwin* | mingw* | pw32*)
3686 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3687 + lt_cv_file_magic_cmd='$OBJDUMP -f'
3688 + ;;
3689 +
3690 +darwin* | rhapsody*)
3691 + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3692 + lt_cv_file_magic_cmd='/usr/bin/file -L'
3693 + case "$host_os" in
3694 + rhapsody* | darwin1.[[012]])
3695 + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3696 + ;;
3697 + *) # Darwin 1.3 on
3698 + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3699 + ;;
3700 + esac
3701 + ;;
3702 +
3703 +freebsd*)
3704 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3705 + case $host_cpu in
3706 + i*86 )
3707 + # Not sure whether the presence of OpenBSD here was a mistake.
3708 + # Let's accept both of them until this is cleared up.
3709 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3710 + lt_cv_file_magic_cmd=/usr/bin/file
3711 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3712 + ;;
3713 + esac
3714 + else
3715 + lt_cv_deplibs_check_method=pass_all
3716 + fi
3717 + ;;
3718 +
3719 +gnu*)
3720 + lt_cv_deplibs_check_method=pass_all
3721 + ;;
3722 +
3723 +hpux10.20*|hpux11*)
3724 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3725 + lt_cv_file_magic_cmd=/usr/bin/file
3726 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
3727 + ;;
3728 +
3729 +irix5* | irix6* | nonstopux*)
3730 + case $host_os in
3731 + irix5* | nonstopux*)
3732 + # this will be overridden with pass_all, but let us keep it just in case
3733 + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3734 + ;;
3735 + *)
3736 + case $LD in
3737 + *-32|*"-32 ") libmagic=32-bit;;
3738 + *-n32|*"-n32 ") libmagic=N32;;
3739 + *-64|*"-64 ") libmagic=64-bit;;
3740 + *) libmagic=never-match;;
3741 + esac
3742 + # this will be overridden with pass_all, but let us keep it just in case
3743 + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
3744 + ;;
3745 + esac
3746 + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3747 + lt_cv_deplibs_check_method=pass_all
3748 + ;;
3749 +
3750 +# This must be Linux ELF.
3751 +linux-gnu*)
3752 + case $host_cpu in
3753 + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3754 + lt_cv_deplibs_check_method=pass_all ;;
3755 + *)
3756 + # glibc up to 2.1.1 does not perform some relocations on ARM
3757 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3758 + esac
3759 + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3760 + ;;
3761 +
3762 +netbsd*)
3763 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3764 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
3765 + else
3766 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
3767 + fi
3768 + ;;
3769 +
3770 +newos6*)
3771 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3772 + lt_cv_file_magic_cmd=/usr/bin/file
3773 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
3774 + ;;
3775 +
3776 +openbsd*)
3777 + lt_cv_file_magic_cmd=/usr/bin/file
3778 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3779 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3780 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3781 + else
3782 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3783 + fi
3784 + ;;
3785 +
3786 +osf3* | osf4* | osf5*)
3787 + # this will be overridden with pass_all, but let us keep it just in case
3788 + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3789 + lt_cv_file_magic_test_file=/shlib/libc.so
3790 + lt_cv_deplibs_check_method=pass_all
3791 + ;;
3792 +
3793 +sco3.2v5*)
3794 + lt_cv_deplibs_check_method=pass_all
3795 + ;;
3796 +
3797 +solaris*)
3798 + lt_cv_deplibs_check_method=pass_all
3799 + lt_cv_file_magic_test_file=/lib/libc.so
3800 + ;;
3801 +
3802 +sysv5uw[[78]]* | sysv4*uw2*)
3803 + lt_cv_deplibs_check_method=pass_all
3804 + ;;
3805 +
3806 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3807 + case $host_vendor in
3808 + motorola)
3809 + 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]]'
3810 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3811 + ;;
3812 + ncr)
3813 + lt_cv_deplibs_check_method=pass_all
3814 + ;;
3815 + sequent)
3816 + lt_cv_file_magic_cmd='/bin/file'
3817 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3818 + ;;
3819 + sni)
3820 + lt_cv_file_magic_cmd='/bin/file'
3821 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3822 + lt_cv_file_magic_test_file=/lib/libc.so
3823 + ;;
3824 + siemens)
3825 + lt_cv_deplibs_check_method=pass_all
3826 + ;;
3827 + esac
3828 + ;;
3829 +esac
3830 ])
3831 +file_magic_cmd=$lt_cv_file_magic_cmd
3832 +deplibs_check_method=$lt_cv_deplibs_check_method
3833 +])
3834 +
3835
3836 # AC_PROG_NM - find the path to a BSD-compatible name lister
3837 -AC_DEFUN(AC_PROG_NM,
3838 -[AC_MSG_CHECKING([for BSD-compatible nm])
3839 -AC_CACHE_VAL(ac_cv_path_NM,
3840 +AC_DEFUN([AC_PROG_NM],
3841 +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
3842 +AC_MSG_CHECKING([for BSD-compatible nm])
3843 +AC_CACHE_VAL(lt_cv_path_NM,
3844 [if test -n "$NM"; then
3845 # Let the user override the test.
3846 - ac_cv_path_NM="$NM"
3847 + lt_cv_path_NM="$NM"
3848 else
3849 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3850 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3851 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3852 test -z "$ac_dir" && ac_dir=.
3853 - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3854 + tmp_nm=$ac_dir/${ac_tool_prefix}nm
3855 + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3856 # Check to see if the nm accepts a BSD-compat flag.
3857 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3858 # nm: unknown option "B" ignored
3859 - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3860 - ac_cv_path_NM="$ac_dir/nm -B"
3861 + # Tru64's nm complains that /dev/null is an invalid object file
3862 + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3863 + lt_cv_path_NM="$tmp_nm -B"
3864 break
3865 - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3866 - ac_cv_path_NM="$ac_dir/nm -p"
3867 + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3868 + lt_cv_path_NM="$tmp_nm -p"
3869 break
3870 else
3871 - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3872 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3873 continue # so that we can try to find one that supports BSD flags
3874 fi
3875 fi
3876 done
3877 IFS="$ac_save_ifs"
3878 - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3879 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3880 fi])
3881 -NM="$ac_cv_path_NM"
3882 +NM="$lt_cv_path_NM"
3883 AC_MSG_RESULT([$NM])
3884 ])
3885
3886 # AC_CHECK_LIBM - check for math library
3887 -AC_DEFUN(AC_CHECK_LIBM,
3888 +AC_DEFUN([AC_CHECK_LIBM],
3889 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3890 LIBM=
3891 -case "$lt_target" in
3892 -*-*-beos* | *-*-cygwin*)
3893 +case $host in
3894 +*-*-beos* | *-*-cygwin* | *-*-pw32*)
3895 # These system don't have libm
3896 ;;
3897 *-ncr-sysv4.3*)
3898 @@ -361,33 +3632,41 @@
3899 ])
3900
3901 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
3902 -# the libltdl convenience library, adds --enable-ltdl-convenience to
3903 -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
3904 -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
3905 -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
3906 -# '${top_builddir}/' (note the single quotes!) if your package is not
3907 -# flat, and, if you're not using automake, define top_builddir as
3908 -# appropriate in the Makefiles.
3909 -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3910 - case "$enable_ltdl_convenience" in
3911 +# the libltdl convenience library and LTDLINCL to the include flags for
3912 +# the libltdl header and adds --enable-ltdl-convenience to the
3913 +# configure arguments. Note that LIBLTDL and LTDLINCL are not
3914 +# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
3915 +# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
3916 +# with '${top_builddir}/' and LTDLINCL will be prefixed with
3917 +# '${top_srcdir}/' (note the single quotes!). If your package is not
3918 +# flat and you're not using automake, define top_builddir and
3919 +# top_srcdir appropriately in the Makefiles.
3920 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3921 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3922 + case $enable_ltdl_convenience in
3923 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3924 "") enable_ltdl_convenience=yes
3925 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3926 esac
3927 - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
3928 - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
3929 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3930 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3931 + # For backwards non-gettext consistent compatibility...
3932 + INCLTDL="$LTDLINCL"
3933 ])
3934
3935 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
3936 -# the libltdl installable library, and adds --enable-ltdl-install to
3937 -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
3938 -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
3939 -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
3940 -# '${top_builddir}/' (note the single quotes!) if your package is not
3941 -# flat, and, if you're not using automake, define top_builddir as
3942 -# appropriate in the Makefiles.
3943 +# the libltdl installable library and LTDLINCL to the include flags for
3944 +# the libltdl header and adds --enable-ltdl-install to the configure
3945 +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
3946 +# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
3947 +# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
3948 +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
3949 +# with '${top_srcdir}/' (note the single quotes!). If your package is
3950 +# not flat and you're not using automake, define top_builddir and
3951 +# top_srcdir appropriately in the Makefiles.
3952 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3953 -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3954 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3955 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3956 AC_CHECK_LIB(ltdl, main,
3957 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3958 [if test x"$enable_ltdl_install" = xno; then
3959 @@ -398,148 +3677,124 @@
3960 ])
3961 if test x"$enable_ltdl_install" = x"yes"; then
3962 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3963 - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
3964 - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
3965 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3966 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3967 else
3968 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3969 LIBLTDL="-lltdl"
3970 - INCLTDL=
3971 + LTDLINCL=
3972 fi
3973 + # For backwards non-gettext consistent compatibility...
3974 + INCLTDL="$LTDLINCL"
3975 ])
3976
3977 -dnl old names
3978 -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
3979 -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
3980 -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
3981 -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
3982 -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
3983 -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
3984 -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
3985 -
3986 -dnl This is just to silence aclocal about the macro not being used
3987 -ifelse([AC_DISABLE_FAST_INSTALL])dnl
3988 -
3989 -# Do all the work for Automake. This macro actually does too much --
3990 -# some checks are only needed if your package does certain things.
3991 -# But this isn't really a big deal.
3992 -
3993 -# serial 1
3994 -
3995 -dnl Usage:
3996 -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
3997 -
3998 -AC_DEFUN(AM_INIT_AUTOMAKE,
3999 -[AC_REQUIRE([AC_PROG_INSTALL])
4000 -PACKAGE=[$1]
4001 -AC_SUBST(PACKAGE)
4002 -VERSION=[$2]
4003 -AC_SUBST(VERSION)
4004 -dnl test to see if srcdir already configured
4005 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
4006 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
4007 -fi
4008 -ifelse([$3],,
4009 -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
4010 -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
4011 -AC_REQUIRE([AM_SANITY_CHECK])
4012 -AC_REQUIRE([AC_ARG_PROGRAM])
4013 -dnl FIXME This is truly gross.
4014 -missing_dir=`cd $ac_aux_dir && pwd`
4015 -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
4016 -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
4017 -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
4018 -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
4019 -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
4020 -AC_REQUIRE([AC_PROG_MAKE_SET])])
4021 -
4022 -#
4023 -# Check to make sure that the build environment is sane.
4024 -#
4025 -
4026 -AC_DEFUN(AM_SANITY_CHECK,
4027 -[AC_MSG_CHECKING([whether build environment is sane])
4028 -# Just in case
4029 -sleep 1
4030 -echo timestamp > conftestfile
4031 -# Do `set' in a subshell so we don't clobber the current shell's
4032 -# arguments. Must try -L first in case configure is actually a
4033 -# symlink; some systems play weird games with the mod time of symlinks
4034 -# (eg FreeBSD returns the mod time of the symlink's containing
4035 -# directory).
4036 -if (
4037 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
4038 - if test "[$]*" = "X"; then
4039 - # -L didn't work.
4040 - set X `ls -t $srcdir/configure conftestfile`
4041 - fi
4042 - if test "[$]*" != "X $srcdir/configure conftestfile" \
4043 - && test "[$]*" != "X conftestfile $srcdir/configure"; then
4044 -
4045 - # If neither matched, then we have a broken ls. This can happen
4046 - # if, for instance, CONFIG_SHELL is bash and it inherits a
4047 - # broken ls alias from the environment. This has actually
4048 - # happened. Such a system could not be considered "sane".
4049 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
4050 -alias in your environment])
4051 - fi
4052 +# old names
4053 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
4054 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
4055 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
4056 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
4057 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
4058 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
4059 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
4060 +
4061 +# This is just to silence aclocal about the macro not being used
4062 +ifelse([AC_DISABLE_FAST_INSTALL])
4063 +
4064 +# NOTE: This macro has been submitted for inclusion into #
4065 +# GNU Autoconf as AC_PROG_SED. When it is available in #
4066 +# a released version of Autoconf we should remove this #
4067 +# macro and use it instead. #
4068 +# LT_AC_PROG_SED
4069 +# --------------
4070 +# Check for a fully-functional sed program, that truncates
4071 +# as few characters as possible. Prefer GNU sed if found.
4072 +AC_DEFUN([LT_AC_PROG_SED],
4073 +[AC_MSG_CHECKING([for a sed that does not truncate output])
4074 +AC_CACHE_VAL(lt_cv_path_SED,
4075 +[# Loop through the user's path and test for sed and gsed.
4076 +# Then use that list of sed's as ones to test for truncation.
4077 +as_executable_p="test -f"
4078 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 +for as_dir in $PATH
4080 +do
4081 + IFS=$as_save_IFS
4082 + test -z "$as_dir" && as_dir=.
4083 + for ac_prog in sed gsed; do
4084 + for ac_exec_ext in '' $ac_executable_extensions; do
4085 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4086 + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4087 + fi
4088 + done
4089 + done
4090 +done
4091
4092 - test "[$]2" = conftestfile
4093 - )
4094 -then
4095 - # Ok.
4096 - :
4097 -else
4098 - AC_MSG_ERROR([newly created file is older than distributed files!
4099 -Check your system clock])
4100 -fi
4101 -rm -f conftest*
4102 -AC_MSG_RESULT(yes)])
4103 + # Create a temporary directory, and hook for its removal unless debugging.
4104 +$debug ||
4105 +{
4106 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4107 + trap '{ (exit 1); exit 1; }' 1 2 13 15
4108 +}
4109
4110 -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
4111 -dnl The program must properly implement --version.
4112 -AC_DEFUN(AM_MISSING_PROG,
4113 -[AC_MSG_CHECKING(for working $2)
4114 -# Run test in a subshell; some versions of sh will print an error if
4115 -# an executable is not found, even if stderr is redirected.
4116 -# Redirect stdin to placate older versions of autoconf. Sigh.
4117 -if ($2 --version) < /dev/null > /dev/null 2>&1; then
4118 - $1=$2
4119 - AC_MSG_RESULT(found)
4120 +# Create a (secure) tmp directory for tmp files.
4121 +: ${TMPDIR=/tmp}
4122 +{
4123 + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4124 + test -n "$tmp" && test -d "$tmp"
4125 +} ||
4126 +{
4127 + tmp=$TMPDIR/sed$$-$RANDOM
4128 + (umask 077 && mkdir $tmp)
4129 +} ||
4130 +{
4131 + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4132 + { (exit 1); exit 1; }
4133 +}
4134 + _max=0
4135 + _count=0
4136 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4137 + # along with /bin/sed that truncates output.
4138 + for _sed in $_sed_list /usr/xpg4/bin/sed; do
4139 + test ! -f ${_sed} && break
4140 + cat /dev/null > "$tmp/sed.in"
4141 + _count=0
4142 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4143 + # Check for GNU sed and select it if it is found.
4144 + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4145 + lt_cv_path_SED=${_sed}
4146 + break
4147 + fi
4148 + while true; do
4149 + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4150 + mv "$tmp/sed.tmp" "$tmp/sed.in"
4151 + cp "$tmp/sed.in" "$tmp/sed.nl"
4152 + echo >>"$tmp/sed.nl"
4153 + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4154 + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4155 + # 40000 chars as input seems more than enough
4156 + test $_count -gt 10 && break
4157 + _count=`expr $_count + 1`
4158 + if test $_count -gt $_max; then
4159 + _max=$_count
4160 + lt_cv_path_SED=$_sed
4161 + fi
4162 + done
4163 + done
4164 + rm -rf "$tmp"
4165 +])
4166 +if test "X$SED" != "X"; then
4167 + lt_cv_path_SED=$SED
4168 else
4169 - $1="$3/missing $2"
4170 - AC_MSG_RESULT(missing)
4171 + SED=$lt_cv_path_SED
4172 fi
4173 -AC_SUBST($1)])
4174 -
4175 -# Like AC_CONFIG_HEADER, but automatically create stamp file.
4176 -
4177 -AC_DEFUN(AM_CONFIG_HEADER,
4178 -[AC_PREREQ([2.12])
4179 -AC_CONFIG_HEADER([$1])
4180 -dnl When config.status generates a header, we must update the stamp-h file.
4181 -dnl This file resides in the same directory as the config header
4182 -dnl that is generated. We must strip everything past the first ":",
4183 -dnl and everything past the last "/".
4184 -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
4185 -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
4186 -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
4187 -<<am_indx=1
4188 -for am_file in <<$1>>; do
4189 - case " <<$>>CONFIG_HEADERS " in
4190 - *" <<$>>am_file "*<<)>>
4191 - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
4192 - ;;
4193 - esac
4194 - am_indx=`expr "<<$>>am_indx" + 1`
4195 -done<<>>dnl>>)
4196 -changequote([,]))])
4197 +AC_MSG_RESULT([$SED])
4198 +])
4199
4200 # Add --enable-maintainer-mode option to configure.
4201 # From Jim Meyering
4202
4203 # serial 1
4204
4205 -AC_DEFUN(AM_MAINTAINER_MODE,
4206 +AC_DEFUN([AM_MAINTAINER_MODE],
4207 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4208 dnl maintainer-mode is disabled by default
4209 AC_ARG_ENABLE(maintainer-mode,
4210 @@ -556,7 +3811,7 @@
4211
4212 # Define a conditional.
4213
4214 -AC_DEFUN(AM_CONDITIONAL,
4215 +AC_DEFUN([AM_CONDITIONAL],
4216 [AC_SUBST($1_TRUE)
4217 AC_SUBST($1_FALSE)
4218 if $2; then
4219 @@ -585,7 +3840,7 @@
4220 # program @code{ansi2knr}, which comes with Ghostscript.
4221 # @end defmac
4222
4223 -AC_DEFUN(AM_PROG_CC_STDC,
4224 +AC_DEFUN([AM_PROG_CC_STDC],
4225 [AC_REQUIRE([AC_PROG_CC])
4226 AC_BEFORE([$0], [AC_C_INLINE])
4227 AC_BEFORE([$0], [AC_C_CONST])
4228 --- glib1.2-1.2.10.orig/config.guess
4229 +++ glib1.2-1.2.10/config.guess
4230 @@ -1,8 +1,10 @@
4231 #! /bin/sh
4232 # Attempt to guess a canonical system name.
4233 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
4234 -# Free Software Foundation, Inc.
4235 -#
4236 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4237 +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
4238 +
4239 +timestamp='2003-05-09'
4240 +
4241 # This file is free software; you can redistribute it and/or modify it
4242 # under the terms of the GNU General Public License as published by
4243 # the Free Software Foundation; either version 2 of the License, or
4244 @@ -22,99 +24,262 @@
4245 # configuration script generated by Autoconf, you may include it under
4246 # the same distribution terms that you use for the rest of that program.
4247
4248 -# Written by Per Bothner <bothner@cygnus.com>.
4249 -# The master version of this file is at the FSF in /home/gd/gnu/lib.
4250 -# Please send patches to <autoconf-patches@gnu.org>.
4251 +# Originally written by Per Bothner <per@bothner.com>.
4252 +# Please send patches to <config-patches@gnu.org>. Submit a context
4253 +# diff and a properly formatted ChangeLog entry.
4254 #
4255 # This script attempts to guess a canonical system name similar to
4256 # config.sub. If it succeeds, it prints the system name on stdout, and
4257 # exits with 0. Otherwise, it exits with 1.
4258 #
4259 # The plan is that this can be called by configure scripts if you
4260 -# don't specify an explicit system type (host/target name).
4261 -#
4262 -# Only a few systems have been added to this list; please add others
4263 -# (but try to keep the structure clean).
4264 -#
4265 +# don't specify an explicit build system type.
4266
4267 -# Use $HOST_CC if defined. $CC may point to a cross-compiler
4268 -if test x"$CC_FOR_BUILD" = x; then
4269 - if test x"$HOST_CC" != x; then
4270 - CC_FOR_BUILD="$HOST_CC"
4271 - else
4272 - if test x"$CC" != x; then
4273 - CC_FOR_BUILD="$CC"
4274 - else
4275 - CC_FOR_BUILD=cc
4276 - fi
4277 - fi
4278 +me=`echo "$0" | sed -e 's,.*/,,'`
4279 +
4280 +usage="\
4281 +Usage: $0 [OPTION]
4282 +
4283 +Output the configuration name of the system \`$me' is run on.
4284 +
4285 +Operation modes:
4286 + -h, --help print this help, then exit
4287 + -t, --time-stamp print date of last modification, then exit
4288 + -v, --version print version number, then exit
4289 +
4290 +Report bugs and patches to <config-patches@gnu.org>."
4291 +
4292 +version="\
4293 +GNU config.guess ($timestamp)
4294 +
4295 +Originally written by Per Bothner.
4296 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4297 +Free Software Foundation, Inc.
4298 +
4299 +This is free software; see the source for copying conditions. There is NO
4300 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4301 +
4302 +help="
4303 +Try \`$me --help' for more information."
4304 +
4305 +# Parse command line
4306 +while test $# -gt 0 ; do
4307 + case $1 in
4308 + --time-stamp | --time* | -t )
4309 + echo "$timestamp" ; exit 0 ;;
4310 + --version | -v )
4311 + echo "$version" ; exit 0 ;;
4312 + --help | --h* | -h )
4313 + echo "$usage"; exit 0 ;;
4314 + -- ) # Stop option processing
4315 + shift; break ;;
4316 + - ) # Use stdin as input.
4317 + break ;;
4318 + -* )
4319 + echo "$me: invalid option $1$help" >&2
4320 + exit 1 ;;
4321 + * )
4322 + break ;;
4323 + esac
4324 +done
4325 +
4326 +if test $# != 0; then
4327 + echo "$me: too many arguments$help" >&2
4328 + exit 1
4329 fi
4330
4331 +trap 'exit 1' 1 2 15
4332 +
4333 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
4334 +# compiler to aid in system detection is discouraged as it requires
4335 +# temporary files to be created and, as you can see below, it is a
4336 +# headache to deal with in a portable fashion.
4337 +
4338 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
4339 +# use `HOST_CC' if defined, but it is deprecated.
4340 +
4341 +# Portable tmp directory creation inspired by the Autoconf team.
4342 +
4343 +set_cc_for_build='
4344 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
4345 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
4346 +: ${TMPDIR=/tmp} ;
4347 + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
4348 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
4349 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
4350 +dummy=$tmp/dummy ;
4351 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
4352 +case $CC_FOR_BUILD,$HOST_CC,$CC in
4353 + ,,) echo "int x;" > $dummy.c ;
4354 + for c in cc gcc c89 c99 ; do
4355 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
4356 + CC_FOR_BUILD="$c"; break ;
4357 + fi ;
4358 + done ;
4359 + if test x"$CC_FOR_BUILD" = x ; then
4360 + CC_FOR_BUILD=no_compiler_found ;
4361 + fi
4362 + ;;
4363 + ,,*) CC_FOR_BUILD=$CC ;;
4364 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
4365 +esac ;'
4366
4367 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
4368 -# (ghazi@noc.rutgers.edu 8/24/94.)
4369 +# (ghazi@noc.rutgers.edu 1994-08-24)
4370 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
4371 PATH=$PATH:/.attbin ; export PATH
4372 fi
4373
4374 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
4375 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
4376 -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
4377 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
4378 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
4379
4380 -dummy=dummy-$$
4381 -trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
4382 -
4383 # Note: order is significant - the case branches are not exclusive.
4384
4385 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4386 + *:NetBSD:*:*)
4387 + # NetBSD (nbsd) targets should (where applicable) match one or
4388 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
4389 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
4390 + # switched to ELF, *-*-netbsd* would select the old
4391 + # object file format. This provides both forward
4392 + # compatibility and a consistent mechanism for selecting the
4393 + # object file format.
4394 + #
4395 + # Note: NetBSD doesn't particularly care about the vendor
4396 + # portion of the name. We always set it to "unknown".
4397 + sysctl="sysctl -n hw.machine_arch"
4398 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
4399 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
4400 + case "${UNAME_MACHINE_ARCH}" in
4401 + armeb) machine=armeb-unknown ;;
4402 + arm*) machine=arm-unknown ;;
4403 + sh3el) machine=shl-unknown ;;
4404 + sh3eb) machine=sh-unknown ;;
4405 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
4406 + esac
4407 + # The Operating System including object format, if it has switched
4408 + # to ELF recently, or will in the future.
4409 + case "${UNAME_MACHINE_ARCH}" in
4410 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
4411 + eval $set_cc_for_build
4412 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
4413 + | grep __ELF__ >/dev/null
4414 + then
4415 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
4416 + # Return netbsd for either. FIX?
4417 + os=netbsd
4418 + else
4419 + os=netbsdelf
4420 + fi
4421 + ;;
4422 + *)
4423 + os=netbsd
4424 + ;;
4425 + esac
4426 + # The OS release
4427 + # Debian GNU/NetBSD machines have a different userland, and
4428 + # thus, need a distinct triplet. However, they do not need
4429 + # kernel version information, so it can be replaced with a
4430 + # suitable tag, in the style of linux-gnu.
4431 + case "${UNAME_VERSION}" in
4432 + Debian*)
4433 + release='-gnu'
4434 + ;;
4435 + *)
4436 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
4437 + ;;
4438 + esac
4439 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
4440 + # contains redundant information, the shorter form:
4441 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
4442 + echo "${machine}-${os}${release}"
4443 + exit 0 ;;
4444 + amiga:OpenBSD:*:*)
4445 + echo m68k-unknown-openbsd${UNAME_RELEASE}
4446 + exit 0 ;;
4447 + arc:OpenBSD:*:*)
4448 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
4449 + exit 0 ;;
4450 + hp300:OpenBSD:*:*)
4451 + echo m68k-unknown-openbsd${UNAME_RELEASE}
4452 + exit 0 ;;
4453 + mac68k:OpenBSD:*:*)
4454 + echo m68k-unknown-openbsd${UNAME_RELEASE}
4455 + exit 0 ;;
4456 + macppc:OpenBSD:*:*)
4457 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
4458 + exit 0 ;;
4459 + mvme68k:OpenBSD:*:*)
4460 + echo m68k-unknown-openbsd${UNAME_RELEASE}
4461 + exit 0 ;;
4462 + mvme88k:OpenBSD:*:*)
4463 + echo m88k-unknown-openbsd${UNAME_RELEASE}
4464 + exit 0 ;;
4465 + mvmeppc:OpenBSD:*:*)
4466 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
4467 + exit 0 ;;
4468 + pmax:OpenBSD:*:*)
4469 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
4470 + exit 0 ;;
4471 + sgi:OpenBSD:*:*)
4472 + echo mipseb-unknown-openbsd${UNAME_RELEASE}
4473 + exit 0 ;;
4474 + sun3:OpenBSD:*:*)
4475 + echo m68k-unknown-openbsd${UNAME_RELEASE}
4476 + exit 0 ;;
4477 + wgrisc:OpenBSD:*:*)
4478 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
4479 + exit 0 ;;
4480 + *:OpenBSD:*:*)
4481 + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
4482 + exit 0 ;;
4483 alpha:OSF1:*:*)
4484 if test $UNAME_RELEASE = "V4.0"; then
4485 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
4486 fi
4487 + # According to Compaq, /usr/sbin/psrinfo has been available on
4488 + # OSF/1 and Tru64 systems produced since 1995. I hope that
4489 + # covers most systems running today. This code pipes the CPU
4490 + # types through head -n 1, so we only detect the type of CPU 0.
4491 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
4492 + case "$ALPHA_CPU_TYPE" in
4493 + "EV4 (21064)")
4494 + UNAME_MACHINE="alpha" ;;
4495 + "EV4.5 (21064)")
4496 + UNAME_MACHINE="alpha" ;;
4497 + "LCA4 (21066/21068)")
4498 + UNAME_MACHINE="alpha" ;;
4499 + "EV5 (21164)")
4500 + UNAME_MACHINE="alphaev5" ;;
4501 + "EV5.6 (21164A)")
4502 + UNAME_MACHINE="alphaev56" ;;
4503 + "EV5.6 (21164PC)")
4504 + UNAME_MACHINE="alphapca56" ;;
4505 + "EV5.7 (21164PC)")
4506 + UNAME_MACHINE="alphapca57" ;;
4507 + "EV6 (21264)")
4508 + UNAME_MACHINE="alphaev6" ;;
4509 + "EV6.7 (21264A)")
4510 + UNAME_MACHINE="alphaev67" ;;
4511 + "EV6.8CB (21264C)")
4512 + UNAME_MACHINE="alphaev68" ;;
4513 + "EV6.8AL (21264B)")
4514 + UNAME_MACHINE="alphaev68" ;;
4515 + "EV6.8CX (21264D)")
4516 + UNAME_MACHINE="alphaev68" ;;
4517 + "EV6.9A (21264/EV69A)")
4518 + UNAME_MACHINE="alphaev69" ;;
4519 + "EV7 (21364)")
4520 + UNAME_MACHINE="alphaev7" ;;
4521 + "EV7.9 (21364A)")
4522 + UNAME_MACHINE="alphaev79" ;;
4523 + esac
4524 # A Vn.n version is a released version.
4525 # A Tn.n version is a released field test version.
4526 # A Xn.n version is an unreleased experimental baselevel.
4527 # 1.2 uses "1.2" for uname -r.
4528 - cat <<EOF >$dummy.s
4529 - .globl main
4530 - .ent main
4531 -main:
4532 - .frame \$30,0,\$26,0
4533 - .prologue 0
4534 - .long 0x47e03d80 # implver $0
4535 - lda \$2,259
4536 - .long 0x47e20c21 # amask $2,$1
4537 - srl \$1,8,\$2
4538 - sll \$2,2,\$2
4539 - sll \$0,3,\$0
4540 - addl \$1,\$0,\$0
4541 - addl \$2,\$0,\$0
4542 - ret \$31,(\$26),1
4543 - .end main
4544 -EOF
4545 - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
4546 - if test "$?" = 0 ; then
4547 - ./$dummy
4548 - case "$?" in
4549 - 7)
4550 - UNAME_MACHINE="alpha"
4551 - ;;
4552 - 15)
4553 - UNAME_MACHINE="alphaev5"
4554 - ;;
4555 - 14)
4556 - UNAME_MACHINE="alphaev56"
4557 - ;;
4558 - 10)
4559 - UNAME_MACHINE="alphapca56"
4560 - ;;
4561 - 16)
4562 - UNAME_MACHINE="alphaev6"
4563 - ;;
4564 - esac
4565 - fi
4566 - rm -f $dummy.s $dummy
4567 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4568 exit 0 ;;
4569 Alpha\ *:Windows_NT*:*)
4570 @@ -127,34 +292,13 @@
4571 echo alpha-dec-winnt3.5
4572 exit 0 ;;
4573 Amiga*:UNIX_System_V:4.0:*)
4574 - echo m68k-cbm-sysv4
4575 + echo m68k-unknown-sysv4
4576 exit 0;;
4577 - amiga:NetBSD:*:*)
4578 - echo m68k-cbm-netbsd${UNAME_RELEASE}
4579 - exit 0 ;;
4580 - amiga:OpenBSD:*:*)
4581 - echo m68k-unknown-openbsd${UNAME_RELEASE}
4582 - exit 0 ;;
4583 *:[Aa]miga[Oo][Ss]:*:*)
4584 echo ${UNAME_MACHINE}-unknown-amigaos
4585 exit 0 ;;
4586 - arc64:OpenBSD:*:*)
4587 - echo mips64el-unknown-openbsd${UNAME_RELEASE}
4588 - exit 0 ;;
4589 - arc:OpenBSD:*:*)
4590 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
4591 - exit 0 ;;
4592 - hkmips:OpenBSD:*:*)
4593 - echo mips-unknown-openbsd${UNAME_RELEASE}
4594 - exit 0 ;;
4595 - pmax:OpenBSD:*:*)
4596 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
4597 - exit 0 ;;
4598 - sgi:OpenBSD:*:*)
4599 - echo mips-unknown-openbsd${UNAME_RELEASE}
4600 - exit 0 ;;
4601 - wgrisc:OpenBSD:*:*)
4602 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
4603 + *:[Mm]orph[Oo][Ss]:*:*)
4604 + echo ${UNAME_MACHINE}-unknown-morphos
4605 exit 0 ;;
4606 *:OS/390:*:*)
4607 echo i370-ibm-openedition
4608 @@ -162,10 +306,7 @@
4609 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
4610 echo arm-acorn-riscix${UNAME_RELEASE}
4611 exit 0;;
4612 - arm32:NetBSD:*:*)
4613 - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
4614 - exit 0 ;;
4615 - SR2?01:HI-UX/MPP:*:*)
4616 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
4617 echo hppa1.1-hitachi-hiuxmpp
4618 exit 0;;
4619 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
4620 @@ -179,6 +320,10 @@
4621 NILE*:*:*:dcosx)
4622 echo pyramid-pyramid-svr4
4623 exit 0 ;;
4624 + DRS?6000:UNIX_SV:4.2*:7*)
4625 + case `/usr/bin/uname -p` in
4626 + sparc) echo sparc-icl-nx7 && exit 0 ;;
4627 + esac ;;
4628 sun4H:SunOS:5.*:*)
4629 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4630 exit 0 ;;
4631 @@ -207,7 +352,7 @@
4632 echo m68k-sun-sunos${UNAME_RELEASE}
4633 exit 0 ;;
4634 sun*:*:4.2BSD:*)
4635 - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
4636 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
4637 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
4638 case "`/bin/arch`" in
4639 sun3)
4640 @@ -221,15 +366,9 @@
4641 aushp:SunOS:*:*)
4642 echo sparc-auspex-sunos${UNAME_RELEASE}
4643 exit 0 ;;
4644 - atari*:NetBSD:*:*)
4645 - echo m68k-atari-netbsd${UNAME_RELEASE}
4646 - exit 0 ;;
4647 - atari*:OpenBSD:*:*)
4648 - echo m68k-unknown-openbsd${UNAME_RELEASE}
4649 - exit 0 ;;
4650 # The situation for MiNT is a little confusing. The machine name
4651 # can be virtually everything (everything which is not
4652 - # "atarist" or "atariste" at least should have a processor
4653 + # "atarist" or "atariste" at least should have a processor
4654 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
4655 # to the lowercase version "mint" (or "freemint"). Finally
4656 # the system name "TOS" denotes a system which is actually not
4657 @@ -253,30 +392,9 @@
4658 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
4659 echo m68k-unknown-mint${UNAME_RELEASE}
4660 exit 0 ;;
4661 - sun3*:NetBSD:*:*)
4662 - echo m68k-sun-netbsd${UNAME_RELEASE}
4663 - exit 0 ;;
4664 - sun3*:OpenBSD:*:*)
4665 - echo m68k-unknown-openbsd${UNAME_RELEASE}
4666 - exit 0 ;;
4667 - mac68k:NetBSD:*:*)
4668 - echo m68k-apple-netbsd${UNAME_RELEASE}
4669 - exit 0 ;;
4670 - mac68k:OpenBSD:*:*)
4671 - echo m68k-unknown-openbsd${UNAME_RELEASE}
4672 - exit 0 ;;
4673 - mvme68k:OpenBSD:*:*)
4674 - echo m68k-unknown-openbsd${UNAME_RELEASE}
4675 - exit 0 ;;
4676 - mvme88k:OpenBSD:*:*)
4677 - echo m88k-unknown-openbsd${UNAME_RELEASE}
4678 - exit 0 ;;
4679 powerpc:machten:*:*)
4680 echo powerpc-apple-machten${UNAME_RELEASE}
4681 exit 0 ;;
4682 - macppc:NetBSD:*:*)
4683 - echo powerpc-apple-netbsd${UNAME_RELEASE}
4684 - exit 0 ;;
4685 RISC*:Mach:*:*)
4686 echo mips-dec-mach_bsd4.3
4687 exit 0 ;;
4688 @@ -290,8 +408,10 @@
4689 echo clipper-intergraph-clix${UNAME_RELEASE}
4690 exit 0 ;;
4691 mips:*:*:UMIPS | mips:*:*:RISCos)
4692 + eval $set_cc_for_build
4693 sed 's/^ //' << EOF >$dummy.c
4694 #ifdef __cplusplus
4695 +#include <stdio.h> /* for printf() prototype */
4696 int main (int argc, char *argv[]) {
4697 #else
4698 int main (argc, argv) int argc; char *argv[]; {
4699 @@ -310,12 +430,20 @@
4700 exit (-1);
4701 }
4702 EOF
4703 - $CC_FOR_BUILD $dummy.c -o $dummy \
4704 - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
4705 - && rm $dummy.c $dummy && exit 0
4706 - rm -f $dummy.c $dummy
4707 + $CC_FOR_BUILD -o $dummy $dummy.c \
4708 + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
4709 + && exit 0
4710 echo mips-mips-riscos${UNAME_RELEASE}
4711 exit 0 ;;
4712 + Motorola:PowerMAX_OS:*:*)
4713 + echo powerpc-motorola-powermax
4714 + exit 0 ;;
4715 + Motorola:*:4.3:PL8-*)
4716 + echo powerpc-harris-powermax
4717 + exit 0 ;;
4718 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
4719 + echo powerpc-harris-powermax
4720 + exit 0 ;;
4721 Night_Hawk:Power_UNIX:*:*)
4722 echo powerpc-harris-powerunix
4723 exit 0 ;;
4724 @@ -331,7 +459,7 @@
4725 AViiON:dgux:*:*)
4726 # DG/UX returns AViiON for all architectures
4727 UNAME_PROCESSOR=`/usr/bin/uname -p`
4728 - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110]
4729 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
4730 then
4731 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
4732 [ ${TARGET_BINARY_INTERFACE}x = x ]
4733 @@ -363,11 +491,20 @@
4734 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
4735 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
4736 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
4737 - i?86:AIX:*:*)
4738 + i*86:AIX:*:*)
4739 echo i386-ibm-aix
4740 exit 0 ;;
4741 + ia64:AIX:*:*)
4742 + if [ -x /usr/bin/oslevel ] ; then
4743 + IBM_REV=`/usr/bin/oslevel`
4744 + else
4745 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
4746 + fi
4747 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
4748 + exit 0 ;;
4749 *:AIX:2:3)
4750 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
4751 + eval $set_cc_for_build
4752 sed 's/^ //' << EOF >$dummy.c
4753 #include <sys/systemcfg.h>
4754
4755 @@ -379,8 +516,7 @@
4756 exit(0);
4757 }
4758 EOF
4759 - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
4760 - rm -f $dummy.c $dummy
4761 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
4762 echo rs6000-ibm-aix3.2.5
4763 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
4764 echo rs6000-ibm-aix3.2.4
4765 @@ -388,9 +524,9 @@
4766 echo rs6000-ibm-aix3.2
4767 fi
4768 exit 0 ;;
4769 - *:AIX:*:4)
4770 - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
4771 - if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
4772 + *:AIX:*:[45])
4773 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
4774 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
4775 IBM_ARCH=rs6000
4776 else
4777 IBM_ARCH=powerpc
4778 @@ -398,7 +534,7 @@
4779 if [ -x /usr/bin/oslevel ] ; then
4780 IBM_REV=`/usr/bin/oslevel`
4781 else
4782 - IBM_REV=4.${UNAME_RELEASE}
4783 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
4784 fi
4785 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
4786 exit 0 ;;
4787 @@ -408,7 +544,7 @@
4788 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
4789 echo romp-ibm-bsd4.4
4790 exit 0 ;;
4791 - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
4792 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
4793 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
4794 exit 0 ;; # report: romp-ibm BSD 4.3
4795 *:BOSX:*:*)
4796 @@ -424,11 +560,30 @@
4797 echo m68k-hp-bsd4.4
4798 exit 0 ;;
4799 9000/[34678]??:HP-UX:*:*)
4800 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
4801 case "${UNAME_MACHINE}" in
4802 9000/31? ) HP_ARCH=m68000 ;;
4803 9000/[34]?? ) HP_ARCH=m68k ;;
4804 9000/[678][0-9][0-9])
4805 - sed 's/^ //' << EOF >$dummy.c
4806 + if [ -x /usr/bin/getconf ]; then
4807 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
4808 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
4809 + case "${sc_cpu_version}" in
4810 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
4811 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
4812 + 532) # CPU_PA_RISC2_0
4813 + case "${sc_kernel_bits}" in
4814 + 32) HP_ARCH="hppa2.0n" ;;
4815 + 64) HP_ARCH="hppa2.0w" ;;
4816 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
4817 + esac ;;
4818 + esac
4819 + fi
4820 + if [ "${HP_ARCH}" = "" ]; then
4821 + eval $set_cc_for_build
4822 + sed 's/^ //' << EOF >$dummy.c
4823 +
4824 + #define _HPUX_SOURCE
4825 #include <stdlib.h>
4826 #include <unistd.h>
4827
4828 @@ -459,13 +614,29 @@
4829 exit (0);
4830 }
4831 EOF
4832 - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
4833 - rm -f $dummy.c $dummy
4834 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
4835 + test -z "$HP_ARCH" && HP_ARCH=hppa
4836 + fi ;;
4837 esac
4838 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
4839 + if [ ${HP_ARCH} = "hppa2.0w" ]
4840 + then
4841 + # avoid double evaluation of $set_cc_for_build
4842 + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
4843 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
4844 + then
4845 + HP_ARCH="hppa2.0w"
4846 + else
4847 + HP_ARCH="hppa64"
4848 + fi
4849 + fi
4850 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
4851 exit 0 ;;
4852 + ia64:HP-UX:*:*)
4853 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
4854 + echo ia64-hp-hpux${HPUX_REV}
4855 + exit 0 ;;
4856 3050*:HI-UX:*:*)
4857 + eval $set_cc_for_build
4858 sed 's/^ //' << EOF >$dummy.c
4859 #include <unistd.h>
4860 int
4861 @@ -491,8 +662,7 @@
4862 exit (0);
4863 }
4864 EOF
4865 - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
4866 - rm -f $dummy.c $dummy
4867 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
4868 echo unknown-hitachi-hiuxwe2
4869 exit 0 ;;
4870 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
4871 @@ -501,7 +671,7 @@
4872 9000/8??:4.3bsd:*:*)
4873 echo hppa1.0-hp-bsd
4874 exit 0 ;;
4875 - *9??*:MPE/iX:*:*)
4876 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
4877 echo hppa1.0-hp-mpeix
4878 exit 0 ;;
4879 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
4880 @@ -510,7 +680,7 @@
4881 hp8??:OSF1:*:*)
4882 echo hppa1.0-hp-osf
4883 exit 0 ;;
4884 - i?86:OSF1:*:*)
4885 + i*86:OSF1:*:*)
4886 if [ -x /usr/sbin/sysversion ] ; then
4887 echo ${UNAME_MACHINE}-unknown-osf1mk
4888 else
4889 @@ -520,9 +690,6 @@
4890 parisc*:Lites*:*:*)
4891 echo hppa1.1-hp-lites
4892 exit 0 ;;
4893 - hppa*:OpenBSD:*:*)
4894 - echo hppa-unknown-openbsd
4895 - exit 0 ;;
4896 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
4897 echo c1-convex-bsd
4898 exit 0 ;;
4899 @@ -541,41 +708,34 @@
4900 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
4901 echo c4-convex-bsd
4902 exit 0 ;;
4903 - CRAY*X-MP:*:*:*)
4904 - echo xmp-cray-unicos
4905 - exit 0 ;;
4906 CRAY*Y-MP:*:*:*)
4907 - echo ymp-cray-unicos${UNAME_RELEASE}
4908 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4909 exit 0 ;;
4910 CRAY*[A-Z]90:*:*:*)
4911 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
4912 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
4913 - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
4914 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
4915 + -e 's/\.[^.]*$/.X/'
4916 exit 0 ;;
4917 CRAY*TS:*:*:*)
4918 - echo t90-cray-unicos${UNAME_RELEASE}
4919 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4920 exit 0 ;;
4921 CRAY*T3E:*:*:*)
4922 - echo alpha-cray-unicosmk${UNAME_RELEASE}
4923 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4924 exit 0 ;;
4925 - CRAY-2:*:*:*)
4926 - echo cray2-cray-unicos
4927 - exit 0 ;;
4928 - F300:UNIX_System_V:*:*)
4929 + CRAY*SV1:*:*:*)
4930 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4931 + exit 0 ;;
4932 + *:UNICOS/mp:*:*)
4933 + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4934 + exit 0 ;;
4935 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
4936 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4937 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
4938 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
4939 - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
4940 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
4941 exit 0 ;;
4942 - F301:UNIX_System_V:*:*)
4943 - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
4944 - exit 0 ;;
4945 - hp3[0-9][05]:NetBSD:*:*)
4946 - echo m68k-hp-netbsd${UNAME_RELEASE}
4947 - exit 0 ;;
4948 - hp300:OpenBSD:*:*)
4949 - echo m68k-unknown-openbsd${UNAME_RELEASE}
4950 - exit 0 ;;
4951 - i?86:BSD/386:*:* | i?86:BSD/OS:*:*)
4952 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
4953 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
4954 exit 0 ;;
4955 sparc*:BSD/OS:*:*)
4956 @@ -584,20 +744,19 @@
4957 *:BSD/OS:*:*)
4958 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
4959 exit 0 ;;
4960 - *:FreeBSD:*:*)
4961 - if test -x /usr/bin/objformat; then
4962 - if test "elf" = "`/usr/bin/objformat`"; then
4963 - echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
4964 - exit 0
4965 - fi
4966 - fi
4967 - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
4968 - exit 0 ;;
4969 - *:NetBSD:*:*)
4970 - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
4971 - exit 0 ;;
4972 - *:OpenBSD:*:*)
4973 - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
4974 + *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
4975 + # Determine whether the default compiler uses glibc.
4976 + eval $set_cc_for_build
4977 + sed 's/^ //' << EOF >$dummy.c
4978 + #include <features.h>
4979 + #if __GLIBC__ >= 2
4980 + LIBC=gnu
4981 + #else
4982 + LIBC=
4983 + #endif
4984 +EOF
4985 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
4986 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
4987 exit 0 ;;
4988 i*:CYGWIN*:*)
4989 echo ${UNAME_MACHINE}-pc-cygwin
4990 @@ -605,11 +764,20 @@
4991 i*:MINGW*:*)
4992 echo ${UNAME_MACHINE}-pc-mingw32
4993 exit 0 ;;
4994 + i*:PW*:*)
4995 + echo ${UNAME_MACHINE}-pc-pw32
4996 + exit 0 ;;
4997 + x86:Interix*:3*)
4998 + echo i586-pc-interix3
4999 + exit 0 ;;
5000 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
5001 + echo i${UNAME_MACHINE}-pc-mks
5002 + exit 0 ;;
5003 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
5004 # How do we know it's Interix rather than the generic POSIX subsystem?
5005 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
5006 # UNAME_MACHINE based on the output of uname instead of i386?
5007 - echo i386-pc-interix
5008 + echo i586-pc-interix
5009 exit 0 ;;
5010 i*:UWIN*:*)
5011 echo ${UNAME_MACHINE}-pc-uwin
5012 @@ -623,201 +791,159 @@
5013 *:GNU:*:*)
5014 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
5015 exit 0 ;;
5016 - *:Linux:*:*)
5017 -
5018 + i*86:Minix:*:*)
5019 + echo ${UNAME_MACHINE}-pc-minix
5020 + exit 0 ;;
5021 + arm*:Linux:*:*)
5022 + echo ${UNAME_MACHINE}-unknown-linux-gnu
5023 + exit 0 ;;
5024 + ia64:Linux:*:*)
5025 + echo ${UNAME_MACHINE}-unknown-linux-gnu
5026 + exit 0 ;;
5027 + m68*:Linux:*:*)
5028 + echo ${UNAME_MACHINE}-unknown-linux-gnu
5029 + exit 0 ;;
5030 + mips:Linux:*:*)
5031 + eval $set_cc_for_build
5032 + sed 's/^ //' << EOF >$dummy.c
5033 + #undef CPU
5034 + #undef mips
5035 + #undef mipsel
5036 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
5037 + CPU=mipsel
5038 + #else
5039 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
5040 + CPU=mips
5041 + #else
5042 + CPU=
5043 + #endif
5044 + #endif
5045 +EOF
5046 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5047 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
5048 + ;;
5049 + mips64:Linux:*:*)
5050 + eval $set_cc_for_build
5051 + sed 's/^ //' << EOF >$dummy.c
5052 + #undef CPU
5053 + #undef mips64
5054 + #undef mips64el
5055 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
5056 + CPU=mips64el
5057 + #else
5058 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
5059 + CPU=mips64
5060 + #else
5061 + CPU=
5062 + #endif
5063 + #endif
5064 +EOF
5065 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5066 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
5067 + ;;
5068 + ppc:Linux:*:*)
5069 + echo powerpc-unknown-linux-gnu
5070 + exit 0 ;;
5071 + ppc64:Linux:*:*)
5072 + echo powerpc64-unknown-linux-gnu
5073 + exit 0 ;;
5074 + alpha:Linux:*:*)
5075 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
5076 + EV5) UNAME_MACHINE=alphaev5 ;;
5077 + EV56) UNAME_MACHINE=alphaev56 ;;
5078 + PCA56) UNAME_MACHINE=alphapca56 ;;
5079 + PCA57) UNAME_MACHINE=alphapca56 ;;
5080 + EV6) UNAME_MACHINE=alphaev6 ;;
5081 + EV67) UNAME_MACHINE=alphaev67 ;;
5082 + EV68*) UNAME_MACHINE=alphaev68 ;;
5083 + esac
5084 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
5085 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
5086 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
5087 + exit 0 ;;
5088 + parisc:Linux:*:* | hppa:Linux:*:*)
5089 + # Look for CPU level
5090 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
5091 + PA7*) echo hppa1.1-unknown-linux-gnu ;;
5092 + PA8*) echo hppa2.0-unknown-linux-gnu ;;
5093 + *) echo hppa-unknown-linux-gnu ;;
5094 + esac
5095 + exit 0 ;;
5096 + parisc64:Linux:*:* | hppa64:Linux:*:*)
5097 + echo hppa64-unknown-linux-gnu
5098 + exit 0 ;;
5099 + s390:Linux:*:* | s390x:Linux:*:*)
5100 + echo ${UNAME_MACHINE}-ibm-linux
5101 + exit 0 ;;
5102 + sh*:Linux:*:*)
5103 + echo ${UNAME_MACHINE}-unknown-linux-gnu
5104 + exit 0 ;;
5105 + sparc:Linux:*:* | sparc64:Linux:*:*)
5106 + echo ${UNAME_MACHINE}-unknown-linux-gnu
5107 + exit 0 ;;
5108 + x86_64:Linux:*:*)
5109 + echo x86_64-unknown-linux-gnu
5110 + exit 0 ;;
5111 + i*86:Linux:*:*)
5112 # The BFD linker knows what the default object file format is, so
5113 # first see if it will tell us. cd to the root directory to prevent
5114 # problems with other programs or directories called `ld' in the path.
5115 - ld_help_string=`cd /; ld --help 2>&1`
5116 - ld_supported_emulations=`echo $ld_help_string \
5117 - | sed -ne '/supported emulations:/!d
5118 + # Set LC_ALL=C to ensure ld outputs messages in English.
5119 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
5120 + | sed -ne '/supported targets:/!d
5121 s/[ ][ ]*/ /g
5122 - s/.*supported emulations: *//
5123 + s/.*supported targets: *//
5124 s/ .*//
5125 p'`
5126 - case "$ld_supported_emulations" in
5127 - *ia64)
5128 - echo "${UNAME_MACHINE}-unknown-linux"
5129 - exit 0
5130 + case "$ld_supported_targets" in
5131 + elf32-i386)
5132 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
5133 ;;
5134 - i?86linux)
5135 + a.out-i386-linux)
5136 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
5137 - exit 0
5138 - ;;
5139 - i?86coff)
5140 + exit 0 ;;
5141 + coff-i386)
5142 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
5143 - exit 0
5144 - ;;
5145 - sparclinux)
5146 - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
5147 - exit 0
5148 - ;;
5149 - armlinux)
5150 - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
5151 - exit 0
5152 - ;;
5153 - elf32arm*)
5154 - echo "${UNAME_MACHINE}-unknown-linux-gnu"
5155 - exit 0
5156 - ;;
5157 - armelf_linux*)
5158 - echo "${UNAME_MACHINE}-unknown-linux-gnu"
5159 - exit 0
5160 - ;;
5161 - m68klinux)
5162 - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
5163 - exit 0
5164 - ;;
5165 - elf32ppc)
5166 - # Determine Lib Version
5167 - cat >$dummy.c <<EOF
5168 -#include <features.h>
5169 -#if defined(__GLIBC__)
5170 -extern char __libc_version[];
5171 -extern char __libc_release[];
5172 -#endif
5173 -main(argc, argv)
5174 - int argc;
5175 - char *argv[];
5176 -{
5177 -#if defined(__GLIBC__)
5178 - printf("%s %s\n", __libc_version, __libc_release);
5179 -#else
5180 - printf("unkown\n");
5181 -#endif
5182 - return 0;
5183 -}
5184 -EOF
5185 - LIBC=""
5186 - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
5187 - if test "$?" = 0 ; then
5188 - ./$dummy | grep 1\.99 > /dev/null
5189 - if test "$?" = 0 ; then
5190 - LIBC="libc1"
5191 - fi
5192 - fi
5193 - rm -f $dummy.c $dummy
5194 - echo powerpc-unknown-linux-gnu${LIBC}
5195 - exit 0
5196 - ;;
5197 + exit 0 ;;
5198 + "")
5199 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
5200 + # one that does not give us useful --help.
5201 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
5202 + exit 0 ;;
5203 esac
5204 -
5205 - if test "${UNAME_MACHINE}" = "alpha" ; then
5206 - sed 's/^ //' <<EOF >$dummy.s
5207 - .globl main
5208 - .ent main
5209 - main:
5210 - .frame \$30,0,\$26,0
5211 - .prologue 0
5212 - .long 0x47e03d80 # implver $0
5213 - lda \$2,259
5214 - .long 0x47e20c21 # amask $2,$1
5215 - srl \$1,8,\$2
5216 - sll \$2,2,\$2
5217 - sll \$0,3,\$0
5218 - addl \$1,\$0,\$0
5219 - addl \$2,\$0,\$0
5220 - ret \$31,(\$26),1
5221 - .end main
5222 -EOF
5223 - LIBC=""
5224 - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
5225 - if test "$?" = 0 ; then
5226 - ./$dummy
5227 - case "$?" in
5228 - 7)
5229 - UNAME_MACHINE="alpha"
5230 - ;;
5231 - 15)
5232 - UNAME_MACHINE="alphaev5"
5233 - ;;
5234 - 14)
5235 - UNAME_MACHINE="alphaev56"
5236 - ;;
5237 - 10)
5238 - UNAME_MACHINE="alphapca56"
5239 - ;;
5240 - 16)
5241 - UNAME_MACHINE="alphaev6"
5242 - ;;
5243 - esac
5244 -
5245 - objdump --private-headers $dummy | \
5246 - grep ld.so.1 > /dev/null
5247 - if test "$?" = 0 ; then
5248 - LIBC="libc1"
5249 - fi
5250 - fi
5251 - rm -f $dummy.s $dummy
5252 - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
5253 - elif test "${UNAME_MACHINE}" = "mips" ; then
5254 - cat >$dummy.c <<EOF
5255 -#ifdef __cplusplus
5256 - int main (int argc, char *argv[]) {
5257 -#else
5258 - int main (argc, argv) int argc; char *argv[]; {
5259 -#endif
5260 -#ifdef __MIPSEB__
5261 - printf ("%s-unknown-linux-gnu\n", argv[1]);
5262 -#endif
5263 -#ifdef __MIPSEL__
5264 - printf ("%sel-unknown-linux-gnu\n", argv[1]);
5265 -#endif
5266 - return 0;
5267 -}
5268 -EOF
5269 - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
5270 - rm -f $dummy.c $dummy
5271 - else
5272 - # Either a pre-BFD a.out linker (linux-gnuoldld)
5273 - # or one that does not give us useful --help.
5274 - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
5275 - # If ld does not provide *any* "supported emulations:"
5276 - # that means it is gnuoldld.
5277 - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
5278 - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
5279 -
5280 - case "${UNAME_MACHINE}" in
5281 - i?86)
5282 - VENDOR=pc;
5283 - ;;
5284 - *)
5285 - VENDOR=unknown;
5286 - ;;
5287 - esac
5288 - # Determine whether the default compiler is a.out or elf
5289 - cat >$dummy.c <<EOF
5290 -#include <features.h>
5291 -#ifdef __cplusplus
5292 - int main (int argc, char *argv[]) {
5293 -#else
5294 - int main (argc, argv) int argc; char *argv[]; {
5295 -#endif
5296 -#ifdef __ELF__
5297 -# ifdef __GLIBC__
5298 -# if __GLIBC__ >= 2
5299 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
5300 -# else
5301 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
5302 -# endif
5303 -# else
5304 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
5305 -# endif
5306 -#else
5307 - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
5308 -#endif
5309 - return 0;
5310 -}
5311 + # Determine whether the default compiler is a.out or elf
5312 + eval $set_cc_for_build
5313 + sed 's/^ //' << EOF >$dummy.c
5314 + #include <features.h>
5315 + #ifdef __ELF__
5316 + # ifdef __GLIBC__
5317 + # if __GLIBC__ >= 2
5318 + LIBC=gnu
5319 + # else
5320 + LIBC=gnulibc1
5321 + # endif
5322 + # else
5323 + LIBC=gnulibc1
5324 + # endif
5325 + #else
5326 + #ifdef __INTEL_COMPILER
5327 + LIBC=gnu
5328 + #else
5329 + LIBC=gnuaout
5330 + #endif
5331 + #endif
5332 EOF
5333 - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
5334 - rm -f $dummy.c $dummy
5335 - fi ;;
5336 -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
5337 -# are messed up and put the nodename in both sysname and nodename.
5338 - i?86:DYNIX/ptx:4*:*)
5339 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
5340 + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
5341 + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
5342 + ;;
5343 + i*86:DYNIX/ptx:4*:*)
5344 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
5345 + # earlier versions are messed up and put the nodename in both
5346 + # sysname and nodename.
5347 echo i386-sequent-sysv4
5348 exit 0 ;;
5349 - i?86:UNIX_SV:4.2MP:2.*)
5350 + i*86:UNIX_SV:4.2MP:2.*)
5351 # Unixware is an offshoot of SVR4, but it has its own version
5352 # number series starting with 2...
5353 # I am not positive that other SVR4 systems won't match this,
5354 @@ -825,7 +951,24 @@
5355 # Use sysv4.2uw... so that sysv4* matches it.
5356 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
5357 exit 0 ;;
5358 - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
5359 + i*86:OS/2:*:*)
5360 + # If we were able to find `uname', then EMX Unix compatibility
5361 + # is probably installed.
5362 + echo ${UNAME_MACHINE}-pc-os2-emx
5363 + exit 0 ;;
5364 + i*86:XTS-300:*:STOP)
5365 + echo ${UNAME_MACHINE}-unknown-stop
5366 + exit 0 ;;
5367 + i*86:atheos:*:*)
5368 + echo ${UNAME_MACHINE}-unknown-atheos
5369 + exit 0 ;;
5370 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
5371 + echo i386-unknown-lynxos${UNAME_RELEASE}
5372 + exit 0 ;;
5373 + i*86:*DOS:*:*)
5374 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
5375 + exit 0 ;;
5376 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
5377 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
5378 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
5379 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
5380 @@ -833,27 +976,26 @@
5381 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
5382 fi
5383 exit 0 ;;
5384 - i?86:*:5:7*)
5385 - # Fixed at (any) Pentium or better
5386 - UNAME_MACHINE=i586
5387 - if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
5388 - echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
5389 - else
5390 - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
5391 - fi
5392 + i*86:*:5:[78]*)
5393 + case `/bin/uname -X | grep "^Machine"` in
5394 + *486*) UNAME_MACHINE=i486 ;;
5395 + *Pentium) UNAME_MACHINE=i586 ;;
5396 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
5397 + esac
5398 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
5399 exit 0 ;;
5400 - i?86:*:3.2:*)
5401 + i*86:*:3.2:*)
5402 if test -f /usr/options/cb.name; then
5403 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
5404 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
5405 elif /bin/uname -X 2>/dev/null >/dev/null ; then
5406 - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
5407 - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
5408 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
5409 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
5410 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
5411 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
5412 && UNAME_MACHINE=i586
5413 - (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
5414 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
5415 && UNAME_MACHINE=i686
5416 - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
5417 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
5418 && UNAME_MACHINE=i686
5419 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
5420 else
5421 @@ -861,6 +1003,7 @@
5422 fi
5423 exit 0 ;;
5424 pc:*:*:*)
5425 + # Left here for compatibility:
5426 # uname -m prints for DJGPP always 'pc', but it prints nothing about
5427 # the processor, so we play safe by assuming i386.
5428 echo i386-pc-msdosdjgpp
5429 @@ -882,9 +1025,15 @@
5430 # "miniframe"
5431 echo m68010-convergent-sysv
5432 exit 0 ;;
5433 + mc68k:UNIX:SYSTEM5:3.51m)
5434 + echo m68k-convergent-sysv
5435 + exit 0 ;;
5436 + M680?0:D-NIX:5.3:*)
5437 + echo m68k-diab-dnix
5438 + exit 0 ;;
5439 M68*:*:R3V[567]*:*)
5440 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
5441 - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
5442 + 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
5443 OS_REL=''
5444 test -r /etc/.relid \
5445 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
5446 @@ -895,21 +1044,21 @@
5447 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
5448 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5449 && echo i486-ncr-sysv4 && exit 0 ;;
5450 - m68*:LynxOS:2.*:*)
5451 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
5452 echo m68k-unknown-lynxos${UNAME_RELEASE}
5453 exit 0 ;;
5454 mc68030:UNIX_System_V:4.*:*)
5455 echo m68k-atari-sysv4
5456 exit 0 ;;
5457 - i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
5458 - echo i386-unknown-lynxos${UNAME_RELEASE}
5459 - exit 0 ;;
5460 TSUNAMI:LynxOS:2.*:*)
5461 echo sparc-unknown-lynxos${UNAME_RELEASE}
5462 exit 0 ;;
5463 - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
5464 + rs6000:LynxOS:2.*:*)
5465 echo rs6000-unknown-lynxos${UNAME_RELEASE}
5466 exit 0 ;;
5467 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
5468 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
5469 + exit 0 ;;
5470 SM[BE]S:UNIX_SV:*:*)
5471 echo mips-dde-sysv${UNAME_RELEASE}
5472 exit 0 ;;
5473 @@ -927,8 +1076,8 @@
5474 echo ns32k-sni-sysv
5475 fi
5476 exit 0 ;;
5477 - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
5478 - # says <Richard.M.Bartel@ccMail.Census.GOV>
5479 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
5480 + # says <Richard.M.Bartel@ccMail.Census.GOV>
5481 echo i586-unisys-sysv4
5482 exit 0 ;;
5483 *:UNIX_System_V:4*:FTX*)
5484 @@ -940,10 +1089,14 @@
5485 # From seanf@swdc.stratus.com.
5486 echo i860-stratus-sysv4
5487 exit 0 ;;
5488 + *:VOS:*:*)
5489 + # From Paul.Green@stratus.com.
5490 + echo hppa1.1-stratus-vos
5491 + exit 0 ;;
5492 mc68*:A/UX:*:*)
5493 echo m68k-apple-aux${UNAME_RELEASE}
5494 exit 0 ;;
5495 - news*:NEWS-OS:*:6*)
5496 + news*:NEWS-OS:6*:*)
5497 echo mips-sony-newsos6
5498 exit 0 ;;
5499 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
5500 @@ -968,20 +1121,80 @@
5501 SX-5:SUPER-UX:*:*)
5502 echo sx5-nec-superux${UNAME_RELEASE}
5503 exit 0 ;;
5504 + SX-6:SUPER-UX:*:*)
5505 + echo sx6-nec-superux${UNAME_RELEASE}
5506 + exit 0 ;;
5507 Power*:Rhapsody:*:*)
5508 echo powerpc-apple-rhapsody${UNAME_RELEASE}
5509 exit 0 ;;
5510 *:Rhapsody:*:*)
5511 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
5512 exit 0 ;;
5513 + *:Darwin:*:*)
5514 + case `uname -p` in
5515 + *86) UNAME_PROCESSOR=i686 ;;
5516 + powerpc) UNAME_PROCESSOR=powerpc ;;
5517 + esac
5518 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
5519 + exit 0 ;;
5520 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
5521 + UNAME_PROCESSOR=`uname -p`
5522 + if test "$UNAME_PROCESSOR" = "x86"; then
5523 + UNAME_PROCESSOR=i386
5524 + UNAME_MACHINE=pc
5525 + fi
5526 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
5527 + exit 0 ;;
5528 *:QNX:*:4*)
5529 - echo i386-qnx-qnx${UNAME_VERSION}
5530 + echo i386-pc-qnx
5531 + exit 0 ;;
5532 + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
5533 + echo nsr-tandem-nsk${UNAME_RELEASE}
5534 + exit 0 ;;
5535 + *:NonStop-UX:*:*)
5536 + echo mips-compaq-nonstopux
5537 + exit 0 ;;
5538 + BS2000:POSIX*:*:*)
5539 + echo bs2000-siemens-sysv
5540 + exit 0 ;;
5541 + DS/*:UNIX_System_V:*:*)
5542 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
5543 + exit 0 ;;
5544 + *:Plan9:*:*)
5545 + # "uname -m" is not consistent, so use $cputype instead. 386
5546 + # is converted to i386 for consistency with other x86
5547 + # operating systems.
5548 + if test "$cputype" = "386"; then
5549 + UNAME_MACHINE=i386
5550 + else
5551 + UNAME_MACHINE="$cputype"
5552 + fi
5553 + echo ${UNAME_MACHINE}-unknown-plan9
5554 + exit 0 ;;
5555 + *:TOPS-10:*:*)
5556 + echo pdp10-unknown-tops10
5557 + exit 0 ;;
5558 + *:TENEX:*:*)
5559 + echo pdp10-unknown-tenex
5560 + exit 0 ;;
5561 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
5562 + echo pdp10-dec-tops20
5563 + exit 0 ;;
5564 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
5565 + echo pdp10-xkl-tops20
5566 + exit 0 ;;
5567 + *:TOPS-20:*:*)
5568 + echo pdp10-unknown-tops20
5569 + exit 0 ;;
5570 + *:ITS:*:*)
5571 + echo pdp10-unknown-its
5572 exit 0 ;;
5573 esac
5574
5575 #echo '(No uname command or uname output not recognized.)' 1>&2
5576 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
5577
5578 +eval $set_cc_for_build
5579 cat >$dummy.c <<EOF
5580 #ifdef _SEQUENT_
5581 # include <sys/types.h>
5582 @@ -1068,11 +1281,24 @@
5583 #endif
5584
5585 #if defined (vax)
5586 -#if !defined (ultrix)
5587 - printf ("vax-dec-bsd\n"); exit (0);
5588 -#else
5589 - printf ("vax-dec-ultrix\n"); exit (0);
5590 -#endif
5591 +# if !defined (ultrix)
5592 +# include <sys/param.h>
5593 +# if defined (BSD)
5594 +# if BSD == 43
5595 + printf ("vax-dec-bsd4.3\n"); exit (0);
5596 +# else
5597 +# if BSD == 199006
5598 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
5599 +# else
5600 + printf ("vax-dec-bsd\n"); exit (0);
5601 +# endif
5602 +# endif
5603 +# else
5604 + printf ("vax-dec-bsd\n"); exit (0);
5605 +# endif
5606 +# else
5607 + printf ("vax-dec-ultrix\n"); exit (0);
5608 +# endif
5609 #endif
5610
5611 #if defined (alliant) && defined (i860)
5612 @@ -1083,8 +1309,7 @@
5613 }
5614 EOF
5615
5616 -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
5617 -rm -f $dummy.c $dummy
5618 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
5619
5620 # Apollos put the system type in the environment.
5621
5622 @@ -1116,6 +1341,48 @@
5623 esac
5624 fi
5625
5626 -#echo '(Unable to guess system type)' 1>&2
5627 +cat >&2 <<EOF
5628 +$0: unable to guess system type
5629 +
5630 +This script, last modified $timestamp, has failed to recognize
5631 +the operating system you are using. It is advised that you
5632 +download the most up to date version of the config scripts from
5633 +
5634 + ftp://ftp.gnu.org/pub/gnu/config/
5635 +
5636 +If the version you run ($0) is already up to date, please
5637 +send the following data and any information you think might be
5638 +pertinent to <config-patches@gnu.org> in order to provide the needed
5639 +information to handle your system.
5640 +
5641 +config.guess timestamp = $timestamp
5642 +
5643 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
5644 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
5645 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
5646 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
5647 +
5648 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
5649 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
5650 +
5651 +hostinfo = `(hostinfo) 2>/dev/null`
5652 +/bin/universe = `(/bin/universe) 2>/dev/null`
5653 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
5654 +/bin/arch = `(/bin/arch) 2>/dev/null`
5655 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
5656 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
5657 +
5658 +UNAME_MACHINE = ${UNAME_MACHINE}
5659 +UNAME_RELEASE = ${UNAME_RELEASE}
5660 +UNAME_SYSTEM = ${UNAME_SYSTEM}
5661 +UNAME_VERSION = ${UNAME_VERSION}
5662 +EOF
5663
5664 exit 1
5665 +
5666 +# Local variables:
5667 +# eval: (add-hook 'write-file-hooks 'time-stamp)
5668 +# time-stamp-start: "timestamp='"
5669 +# time-stamp-format: "%:y-%02m-%02d"
5670 +# time-stamp-end: "'"
5671 +# End:
5672 --- glib1.2-1.2.10.orig/config.sub
5673 +++ glib1.2-1.2.10/config.sub
5674 @@ -1,6 +1,10 @@
5675 #! /bin/sh
5676 -# Configuration validation subroutine script, version 1.1.
5677 -# Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
5678 +# Configuration validation subroutine script.
5679 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5680 +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5681 +
5682 +timestamp='2003-05-09'
5683 +
5684 # This file is (in principle) common to ALL GNU software.
5685 # The presence of a machine in this file suggests that SOME GNU software
5686 # can handle that machine. It does not imply ALL GNU software can.
5687 @@ -25,6 +29,9 @@
5688 # configuration script generated by Autoconf, you may include it under
5689 # the same distribution terms that you use for the rest of that program.
5690
5691 +# Please send patches to <config-patches@gnu.org>. Submit a context
5692 +# diff and a properly formatted ChangeLog entry.
5693 +#
5694 # Configuration subroutine to validate and canonicalize a configuration type.
5695 # Supply the specified configuration type as an argument.
5696 # If it is invalid, we print an error message on stderr and exit with code 1.
5697 @@ -45,30 +52,73 @@
5698 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
5699 # It is wrong to echo any other type of specification.
5700
5701 -if [ x$1 = x ]
5702 -then
5703 - echo Configuration name missing. 1>&2
5704 - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
5705 - echo "or $0 ALIAS" 1>&2
5706 - echo where ALIAS is a recognized configuration type. 1>&2
5707 - exit 1
5708 -fi
5709 +me=`echo "$0" | sed -e 's,.*/,,'`
5710
5711 -# First pass through any local machine types.
5712 -case $1 in
5713 - *local*)
5714 - echo $1
5715 - exit 0
5716 - ;;
5717 - *)
5718 - ;;
5719 +usage="\
5720 +Usage: $0 [OPTION] CPU-MFR-OPSYS
5721 + $0 [OPTION] ALIAS
5722 +
5723 +Canonicalize a configuration name.
5724 +
5725 +Operation modes:
5726 + -h, --help print this help, then exit
5727 + -t, --time-stamp print date of last modification, then exit
5728 + -v, --version print version number, then exit
5729 +
5730 +Report bugs and patches to <config-patches@gnu.org>."
5731 +
5732 +version="\
5733 +GNU config.sub ($timestamp)
5734 +
5735 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
5736 +Free Software Foundation, Inc.
5737 +
5738 +This is free software; see the source for copying conditions. There is NO
5739 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
5740 +
5741 +help="
5742 +Try \`$me --help' for more information."
5743 +
5744 +# Parse command line
5745 +while test $# -gt 0 ; do
5746 + case $1 in
5747 + --time-stamp | --time* | -t )
5748 + echo "$timestamp" ; exit 0 ;;
5749 + --version | -v )
5750 + echo "$version" ; exit 0 ;;
5751 + --help | --h* | -h )
5752 + echo "$usage"; exit 0 ;;
5753 + -- ) # Stop option processing
5754 + shift; break ;;
5755 + - ) # Use stdin as input.
5756 + break ;;
5757 + -* )
5758 + echo "$me: invalid option $1$help"
5759 + exit 1 ;;
5760 +
5761 + *local*)
5762 + # First pass through any local machine types.
5763 + echo $1
5764 + exit 0;;
5765 +
5766 + * )
5767 + break ;;
5768 + esac
5769 +done
5770 +
5771 +case $# in
5772 + 0) echo "$me: missing argument$help" >&2
5773 + exit 1;;
5774 + 1) ;;
5775 + *) echo "$me: too many arguments$help" >&2
5776 + exit 1;;
5777 esac
5778
5779 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
5780 # Here we must recognize all the valid KERNEL-OS combinations.
5781 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
5782 case $maybe_os in
5783 - linux-gnu*)
5784 + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
5785 os=-$maybe_os
5786 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
5787 ;;
5788 @@ -94,7 +144,7 @@
5789 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
5790 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
5791 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
5792 - -apple)
5793 + -apple | -axis)
5794 os=
5795 basic_machine=$1
5796 ;;
5797 @@ -108,6 +158,14 @@
5798 os=-vxworks
5799 basic_machine=$1
5800 ;;
5801 + -chorusos*)
5802 + os=-chorusos
5803 + basic_machine=$1
5804 + ;;
5805 + -chorusrdb)
5806 + os=-chorusrdb
5807 + basic_machine=$1
5808 + ;;
5809 -hiux*)
5810 os=-hiuxwe2
5811 ;;
5812 @@ -166,27 +224,62 @@
5813 case $basic_machine in
5814 # Recognize the basic CPU types without company name.
5815 # Some are omitted here because they have special meanings below.
5816 - tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
5817 - | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
5818 - | 580 | i960 | h8300 \
5819 - | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
5820 - | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
5821 - | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
5822 - | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
5823 - | mips64orion | mips64orionel | mipstx39 | mipstx39el \
5824 - | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
5825 - | mips64vr5000 | miprs64vr5000el | mcore \
5826 - | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
5827 - | thumb | d10v | fr30)
5828 + 1750a | 580 \
5829 + | a29k \
5830 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
5831 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
5832 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
5833 + | clipper \
5834 + | d10v | d30v | dlx | dsp16xx \
5835 + | fr30 | frv \
5836 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
5837 + | i370 | i860 | i960 | ia64 \
5838 + | ip2k \
5839 + | m32r | m68000 | m68k | m88k | mcore \
5840 + | mips | mipsbe | mipseb | mipsel | mipsle \
5841 + | mips16 \
5842 + | mips64 | mips64el \
5843 + | mips64vr | mips64vrel \
5844 + | mips64orion | mips64orionel \
5845 + | mips64vr4100 | mips64vr4100el \
5846 + | mips64vr4300 | mips64vr4300el \
5847 + | mips64vr5000 | mips64vr5000el \
5848 + | mipsisa32 | mipsisa32el \
5849 + | mipsisa32r2 | mipsisa32r2el \
5850 + | mipsisa64 | mipsisa64el \
5851 + | mipsisa64sb1 | mipsisa64sb1el \
5852 + | mipsisa64sr71k | mipsisa64sr71kel \
5853 + | mipstx39 | mipstx39el \
5854 + | mn10200 | mn10300 \
5855 + | msp430 \
5856 + | ns16k | ns32k \
5857 + | openrisc | or32 \
5858 + | pdp10 | pdp11 | pj | pjl \
5859 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
5860 + | pyramid \
5861 + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
5862 + | sh64 | sh64le \
5863 + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
5864 + | strongarm \
5865 + | tahoe | thumb | tic80 | tron \
5866 + | v850 | v850e \
5867 + | we32k \
5868 + | x86 | xscale | xstormy16 | xtensa \
5869 + | z8k)
5870 + basic_machine=$basic_machine-unknown
5871 + ;;
5872 + m6811 | m68hc11 | m6812 | m68hc12)
5873 + # Motorola 68HC11/12.
5874 basic_machine=$basic_machine-unknown
5875 + os=-none
5876 ;;
5877 - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
5878 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
5879 ;;
5880
5881 # We use `pc' rather than `unknown'
5882 # because (1) that's what they normally are, and
5883 # (2) the word "unknown" tends to confuse beginning users.
5884 - i[34567]86)
5885 + i*86 | x86_64)
5886 basic_machine=$basic_machine-pc
5887 ;;
5888 # Object if more than one company name word.
5889 @@ -195,24 +288,60 @@
5890 exit 1
5891 ;;
5892 # Recognize the basic CPU types with company name.
5893 - # FIXME: clean up the formatting here.
5894 - vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
5895 - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
5896 - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
5897 - | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
5898 - | xmp-* | ymp-* \
5899 - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
5900 - | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
5901 - | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
5902 - | clipper-* | orion-* \
5903 - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
5904 - | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
5905 - | mips64el-* | mips64orion-* | mips64orionel-* \
5906 - | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
5907 - | mipstx39-* | mipstx39el-* | mcore-* \
5908 - | f301-* | armv*-* | t3e-* \
5909 - | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
5910 - | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
5911 + 580-* \
5912 + | a29k-* \
5913 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
5914 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
5915 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
5916 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
5917 + | avr-* \
5918 + | bs2000-* \
5919 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
5920 + | clipper-* | cydra-* \
5921 + | d10v-* | d30v-* | dlx-* \
5922 + | elxsi-* \
5923 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
5924 + | h8300-* | h8500-* \
5925 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
5926 + | i*86-* | i860-* | i960-* | ia64-* \
5927 + | ip2k-* \
5928 + | m32r-* \
5929 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
5930 + | m88110-* | m88k-* | mcore-* \
5931 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
5932 + | mips16-* \
5933 + | mips64-* | mips64el-* \
5934 + | mips64vr-* | mips64vrel-* \
5935 + | mips64orion-* | mips64orionel-* \
5936 + | mips64vr4100-* | mips64vr4100el-* \
5937 + | mips64vr4300-* | mips64vr4300el-* \
5938 + | mips64vr5000-* | mips64vr5000el-* \
5939 + | mipsisa32-* | mipsisa32el-* \
5940 + | mipsisa32r2-* | mipsisa32r2el-* \
5941 + | mipsisa64-* | mipsisa64el-* \
5942 + | mipsisa64sb1-* | mipsisa64sb1el-* \
5943 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
5944 + | mipstx39-* | mipstx39el-* \
5945 + | msp430-* \
5946 + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
5947 + | orion-* \
5948 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
5949 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
5950 + | pyramid-* \
5951 + | romp-* | rs6000-* \
5952 + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
5953 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
5954 + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
5955 + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
5956 + | tahoe-* | thumb-* \
5957 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
5958 + | tron-* \
5959 + | v850-* | v850e-* | vax-* \
5960 + | we32k-* \
5961 + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
5962 + | xtensa-* \
5963 + | ymp-* \
5964 + | z8k-*)
5965 ;;
5966 # Recognize the various machine names and aliases which stand
5967 # for a CPU type and a company and sometimes even an OS.
5968 @@ -244,19 +373,22 @@
5969 basic_machine=a29k-none
5970 os=-bsd
5971 ;;
5972 + amd64)
5973 + basic_machine=x86_64-pc
5974 + ;;
5975 amdahl)
5976 basic_machine=580-amdahl
5977 os=-sysv
5978 ;;
5979 amiga | amiga-*)
5980 - basic_machine=m68k-cbm
5981 + basic_machine=m68k-unknown
5982 ;;
5983 amigaos | amigados)
5984 - basic_machine=m68k-cbm
5985 + basic_machine=m68k-unknown
5986 os=-amigaos
5987 ;;
5988 amigaunix | amix)
5989 - basic_machine=m68k-cbm
5990 + basic_machine=m68k-unknown
5991 os=-sysv4
5992 ;;
5993 apollo68)
5994 @@ -275,6 +407,10 @@
5995 basic_machine=ns32k-sequent
5996 os=-dynix
5997 ;;
5998 + c90)
5999 + basic_machine=c90-cray
6000 + os=-unicos
6001 + ;;
6002 convex-c1)
6003 basic_machine=c1-convex
6004 os=-bsd
6005 @@ -295,27 +431,30 @@
6006 basic_machine=c38-convex
6007 os=-bsd
6008 ;;
6009 - cray | ymp)
6010 - basic_machine=ymp-cray
6011 - os=-unicos
6012 - ;;
6013 - cray2)
6014 - basic_machine=cray2-cray
6015 - os=-unicos
6016 - ;;
6017 - [ctj]90-cray)
6018 - basic_machine=c90-cray
6019 + cray | j90)
6020 + basic_machine=j90-cray
6021 os=-unicos
6022 ;;
6023 crds | unos)
6024 basic_machine=m68k-crds
6025 ;;
6026 + cris | cris-* | etrax*)
6027 + basic_machine=cris-axis
6028 + ;;
6029 da30 | da30-*)
6030 basic_machine=m68k-da30
6031 ;;
6032 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
6033 basic_machine=mips-dec
6034 ;;
6035 + decsystem10* | dec10*)
6036 + basic_machine=pdp10-dec
6037 + os=-tops10
6038 + ;;
6039 + decsystem20* | dec20*)
6040 + basic_machine=pdp10-dec
6041 + os=-tops20
6042 + ;;
6043 delta | 3300 | motorola-3300 | motorola-delta \
6044 | 3300-motorola | delta-motorola)
6045 basic_machine=m68k-motorola
6046 @@ -357,6 +496,10 @@
6047 basic_machine=tron-gmicro
6048 os=-sysv
6049 ;;
6050 + go32)
6051 + basic_machine=i386-pc
6052 + os=-go32
6053 + ;;
6054 h3050r* | hiux*)
6055 basic_machine=hppa1.1-hitachi
6056 os=-hiuxwe2
6057 @@ -432,19 +575,19 @@
6058 basic_machine=i370-ibm
6059 ;;
6060 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
6061 - i[34567]86v32)
6062 + i*86v32)
6063 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6064 os=-sysv32
6065 ;;
6066 - i[34567]86v4*)
6067 + i*86v4*)
6068 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6069 os=-sysv4
6070 ;;
6071 - i[34567]86v)
6072 + i*86v)
6073 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6074 os=-sysv
6075 ;;
6076 - i[34567]86sol2)
6077 + i*86sol2)
6078 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6079 os=-solaris2
6080 ;;
6081 @@ -456,17 +599,6 @@
6082 basic_machine=i386-unknown
6083 os=-vsta
6084 ;;
6085 - i386-go32 | go32)
6086 - basic_machine=i386-unknown
6087 - os=-go32
6088 - ;;
6089 - i386-mingw32 | mingw32)
6090 - basic_machine=i386-unknown
6091 - os=-mingw32
6092 - ;;
6093 - i386-qnx | qnx)
6094 - basic_machine=i386-qnx
6095 - ;;
6096 iris | iris4d)
6097 basic_machine=mips-sgi
6098 case $os in
6099 @@ -492,6 +624,10 @@
6100 basic_machine=ns32k-utek
6101 os=-sysv
6102 ;;
6103 + mingw32)
6104 + basic_machine=i386-pc
6105 + os=-mingw32
6106 + ;;
6107 miniframe)
6108 basic_machine=m68000-convergent
6109 ;;
6110 @@ -499,26 +635,26 @@
6111 basic_machine=m68k-atari
6112 os=-mint
6113 ;;
6114 - mipsel*-linux*)
6115 - basic_machine=mipsel-unknown
6116 - os=-linux-gnu
6117 - ;;
6118 - mips*-linux*)
6119 - basic_machine=mips-unknown
6120 - os=-linux-gnu
6121 - ;;
6122 mips3*-*)
6123 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
6124 ;;
6125 mips3*)
6126 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
6127 ;;
6128 + mmix*)
6129 + basic_machine=mmix-knuth
6130 + os=-mmixware
6131 + ;;
6132 monitor)
6133 basic_machine=m68k-rom68k
6134 os=-coff
6135 ;;
6136 + morphos)
6137 + basic_machine=powerpc-unknown
6138 + os=-morphos
6139 + ;;
6140 msdos)
6141 - basic_machine=i386-unknown
6142 + basic_machine=i386-pc
6143 os=-msdos
6144 ;;
6145 mvs)
6146 @@ -582,13 +718,28 @@
6147 basic_machine=i960-intel
6148 os=-mon960
6149 ;;
6150 + nonstopux)
6151 + basic_machine=mips-compaq
6152 + os=-nonstopux
6153 + ;;
6154 np1)
6155 basic_machine=np1-gould
6156 ;;
6157 + nv1)
6158 + basic_machine=nv1-cray
6159 + os=-unicosmp
6160 + ;;
6161 + nsr-tandem)
6162 + basic_machine=nsr-tandem
6163 + ;;
6164 op50n-* | op60c-*)
6165 basic_machine=hppa1.1-oki
6166 os=-proelf
6167 ;;
6168 + or32 | or32-*)
6169 + basic_machine=or32-unknown
6170 + os=-coff
6171 + ;;
6172 OSE68000 | ose68000)
6173 basic_machine=m68000-ericsson
6174 os=-ose
6175 @@ -611,45 +762,59 @@
6176 pbb)
6177 basic_machine=m68k-tti
6178 ;;
6179 - pc532 | pc532-*)
6180 + pc532 | pc532-*)
6181 basic_machine=ns32k-pc532
6182 ;;
6183 - pentium | p5 | k5 | k6 | nexen)
6184 + pentium | p5 | k5 | k6 | nexgen | viac3)
6185 basic_machine=i586-pc
6186 ;;
6187 - pentiumpro | p6 | 6x86)
6188 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
6189 basic_machine=i686-pc
6190 ;;
6191 pentiumii | pentium2)
6192 - basic_machine=i786-pc
6193 + basic_machine=i686-pc
6194 ;;
6195 - pentium-* | p5-* | k5-* | k6-* | nexen-*)
6196 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
6197 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
6198 ;;
6199 - pentiumpro-* | p6-* | 6x86-*)
6200 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
6201 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
6202 ;;
6203 pentiumii-* | pentium2-*)
6204 - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
6205 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
6206 ;;
6207 pn)
6208 basic_machine=pn-gould
6209 ;;
6210 - power) basic_machine=rs6000-ibm
6211 + power) basic_machine=power-ibm
6212 ;;
6213 ppc) basic_machine=powerpc-unknown
6214 - ;;
6215 + ;;
6216 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
6217 ;;
6218 ppcle | powerpclittle | ppc-le | powerpc-little)
6219 basic_machine=powerpcle-unknown
6220 - ;;
6221 + ;;
6222 ppcle-* | powerpclittle-*)
6223 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
6224 ;;
6225 + ppc64) basic_machine=powerpc64-unknown
6226 + ;;
6227 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
6228 + ;;
6229 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
6230 + basic_machine=powerpc64le-unknown
6231 + ;;
6232 + ppc64le-* | powerpc64little-*)
6233 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
6234 + ;;
6235 ps2)
6236 basic_machine=i386-ibm
6237 ;;
6238 + pw32)
6239 + basic_machine=i586-unknown
6240 + os=-pw32
6241 + ;;
6242 rom68k)
6243 basic_machine=m68k-rom68k
6244 os=-coff
6245 @@ -660,10 +825,22 @@
6246 rtpc | rtpc-*)
6247 basic_machine=romp-ibm
6248 ;;
6249 + s390 | s390-*)
6250 + basic_machine=s390-ibm
6251 + ;;
6252 + s390x | s390x-*)
6253 + basic_machine=s390x-ibm
6254 + ;;
6255 sa29200)
6256 basic_machine=a29k-amd
6257 os=-udi
6258 ;;
6259 + sb1)
6260 + basic_machine=mipsisa64sb1-unknown
6261 + ;;
6262 + sb1el)
6263 + basic_machine=mipsisa64sb1el-unknown
6264 + ;;
6265 sequent)
6266 basic_machine=i386-sequent
6267 ;;
6268 @@ -671,7 +848,7 @@
6269 basic_machine=sh-hitachi
6270 os=-hms
6271 ;;
6272 - sparclite-wrs)
6273 + sparclite-wrs | simso-wrs)
6274 basic_machine=sparclite-wrs
6275 os=-vxworks
6276 ;;
6277 @@ -729,20 +906,48 @@
6278 sun386 | sun386i | roadrunner)
6279 basic_machine=i386-sun
6280 ;;
6281 + sv1)
6282 + basic_machine=sv1-cray
6283 + os=-unicos
6284 + ;;
6285 symmetry)
6286 basic_machine=i386-sequent
6287 os=-dynix
6288 ;;
6289 t3e)
6290 - basic_machine=t3e-cray
6291 + basic_machine=alphaev5-cray
6292 os=-unicos
6293 ;;
6294 + t90)
6295 + basic_machine=t90-cray
6296 + os=-unicos
6297 + ;;
6298 + tic4x | c4x*)
6299 + basic_machine=tic4x-unknown
6300 + os=-coff
6301 + ;;
6302 + tic54x | c54x*)
6303 + basic_machine=tic54x-unknown
6304 + os=-coff
6305 + ;;
6306 + tic55x | c55x*)
6307 + basic_machine=tic55x-unknown
6308 + os=-coff
6309 + ;;
6310 + tic6x | c6x*)
6311 + basic_machine=tic6x-unknown
6312 + os=-coff
6313 + ;;
6314 tx39)
6315 basic_machine=mipstx39-unknown
6316 ;;
6317 tx39el)
6318 basic_machine=mipstx39el-unknown
6319 ;;
6320 + toad1)
6321 + basic_machine=pdp10-xkl
6322 + os=-tops20
6323 + ;;
6324 tower | tower-32)
6325 basic_machine=m68k-ncr
6326 ;;
6327 @@ -767,8 +972,8 @@
6328 os=-vms
6329 ;;
6330 vpp*|vx|vx-*)
6331 - basic_machine=f301-fujitsu
6332 - ;;
6333 + basic_machine=f301-fujitsu
6334 + ;;
6335 vxworks960)
6336 basic_machine=i960-wrs
6337 os=-vxworks
6338 @@ -789,13 +994,13 @@
6339 basic_machine=hppa1.1-winbond
6340 os=-proelf
6341 ;;
6342 - xmp)
6343 - basic_machine=xmp-cray
6344 - os=-unicos
6345 - ;;
6346 - xps | xps100)
6347 + xps | xps100)
6348 basic_machine=xps100-honeywell
6349 ;;
6350 + ymp)
6351 + basic_machine=ymp-cray
6352 + os=-unicos
6353 + ;;
6354 z8k-*-coff)
6355 basic_machine=z8k-unknown
6356 os=-sim
6357 @@ -816,13 +1021,6 @@
6358 op60c)
6359 basic_machine=hppa1.1-oki
6360 ;;
6361 - mips)
6362 - if [ x$os = x-linux-gnu ]; then
6363 - basic_machine=mips-unknown
6364 - else
6365 - basic_machine=mips-mips
6366 - fi
6367 - ;;
6368 romp)
6369 basic_machine=romp-ibm
6370 ;;
6371 @@ -832,16 +1030,26 @@
6372 vax)
6373 basic_machine=vax-dec
6374 ;;
6375 + pdp10)
6376 + # there are many clones, so DEC is not a safe bet
6377 + basic_machine=pdp10-unknown
6378 + ;;
6379 pdp11)
6380 basic_machine=pdp11-dec
6381 ;;
6382 we32k)
6383 basic_machine=we32k-att
6384 ;;
6385 - sparc | sparcv9)
6386 + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
6387 + basic_machine=sh-unknown
6388 + ;;
6389 + sh64)
6390 + basic_machine=sh64-unknown
6391 + ;;
6392 + sparc | sparcv9 | sparcv9b)
6393 basic_machine=sparc-sun
6394 ;;
6395 - cydra)
6396 + cydra)
6397 basic_machine=cydra-cydrome
6398 ;;
6399 orion)
6400 @@ -856,9 +1064,8 @@
6401 pmac | pmac-mpw)
6402 basic_machine=powerpc-apple
6403 ;;
6404 - c4x*)
6405 - basic_machine=c4x-none
6406 - os=-coff
6407 + *-unknown)
6408 + # Make sure to match an already-canonicalized machine name.
6409 ;;
6410 *)
6411 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
6412 @@ -916,14 +1123,34 @@
6413 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
6414 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
6415 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
6416 + | -chorusos* | -chorusrdb* \
6417 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
6418 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
6419 - | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)
6420 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
6421 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
6422 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
6423 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
6424 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
6425 + | -powermax* | -dnix*)
6426 # Remember, each alternative MUST END IN *, to match a version number.
6427 ;;
6428 + -qnx*)
6429 + case $basic_machine in
6430 + x86-* | i*86-*)
6431 + ;;
6432 + *)
6433 + os=-nto$os
6434 + ;;
6435 + esac
6436 + ;;
6437 + -nto-qnx*)
6438 + ;;
6439 + -nto*)
6440 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
6441 + ;;
6442 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
6443 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
6444 - | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
6445 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
6446 ;;
6447 -mac*)
6448 os=`echo $os | sed -e 's|mac|macos|'`
6449 @@ -940,6 +1167,9 @@
6450 -opened*)
6451 os=-openedition
6452 ;;
6453 + -wince*)
6454 + os=-wince
6455 + ;;
6456 -osfrose*)
6457 os=-osfrose
6458 ;;
6459 @@ -955,14 +1185,23 @@
6460 -acis*)
6461 os=-aos
6462 ;;
6463 + -atheos*)
6464 + os=-atheos
6465 + ;;
6466 -386bsd)
6467 os=-bsd
6468 ;;
6469 -ctix* | -uts*)
6470 os=-sysv
6471 ;;
6472 + -nova*)
6473 + os=-rtmk-nova
6474 + ;;
6475 -ns2 )
6476 - os=-nextstep2
6477 + os=-nextstep2
6478 + ;;
6479 + -nsk*)
6480 + os=-nsk
6481 ;;
6482 # Preserve the version number of sinix5.
6483 -sinix5.*)
6484 @@ -977,9 +1216,6 @@
6485 -oss*)
6486 os=-sysv3
6487 ;;
6488 - -qnx)
6489 - os=-qnx4
6490 - ;;
6491 -svr4)
6492 os=-sysv4
6493 ;;
6494 @@ -1001,8 +1237,14 @@
6495 -xenix)
6496 os=-xenix
6497 ;;
6498 - -*mint | -*MiNT)
6499 - os=-mint
6500 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
6501 + os=-mint
6502 + ;;
6503 + -aros*)
6504 + os=-aros
6505 + ;;
6506 + -kaos*)
6507 + os=-kaos
6508 ;;
6509 -none)
6510 ;;
6511 @@ -1035,7 +1277,11 @@
6512 arm*-semi)
6513 os=-aout
6514 ;;
6515 - pdp11-*)
6516 + # This must come before the *-dec entry.
6517 + pdp10-*)
6518 + os=-tops20
6519 + ;;
6520 + pdp11-*)
6521 os=-none
6522 ;;
6523 *-dec | vax-*)
6524 @@ -1062,6 +1308,9 @@
6525 mips*-*)
6526 os=-elf
6527 ;;
6528 + or32-*)
6529 + os=-coff
6530 + ;;
6531 *-tti) # must be before sparc entry or we get the wrong os.
6532 os=-sysv3
6533 ;;
6534 @@ -1125,25 +1374,25 @@
6535 *-next)
6536 os=-nextstep3
6537 ;;
6538 - *-gould)
6539 + *-gould)
6540 os=-sysv
6541 ;;
6542 - *-highlevel)
6543 + *-highlevel)
6544 os=-bsd
6545 ;;
6546 *-encore)
6547 os=-bsd
6548 ;;
6549 - *-sgi)
6550 + *-sgi)
6551 os=-irix
6552 ;;
6553 - *-siemens)
6554 + *-siemens)
6555 os=-sysv4
6556 ;;
6557 *-masscomp)
6558 os=-rtu
6559 ;;
6560 - f301-fujitsu)
6561 + f30[01]-fujitsu | f700-fujitsu)
6562 os=-uxpv
6563 ;;
6564 *-rom68k)
6565 @@ -1209,7 +1458,7 @@
6566 -ptx*)
6567 vendor=sequent
6568 ;;
6569 - -vxsim* | -vxworks*)
6570 + -vxsim* | -vxworks* | -windiss*)
6571 vendor=wrs
6572 ;;
6573 -aux*)
6574 @@ -1221,12 +1470,23 @@
6575 -mpw* | -macos*)
6576 vendor=apple
6577 ;;
6578 - -*mint | -*MiNT)
6579 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
6580 vendor=atari
6581 ;;
6582 + -vos*)
6583 + vendor=stratus
6584 + ;;
6585 esac
6586 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
6587 ;;
6588 esac
6589
6590 echo $basic_machine$os
6591 +exit 0
6592 +
6593 +# Local variables:
6594 +# eval: (add-hook 'write-file-hooks 'time-stamp)
6595 +# time-stamp-start: "timestamp='"
6596 +# time-stamp-format: "%:y-%02m-%02d"
6597 +# time-stamp-end: "'"
6598 +# End:
6599 --- glib1.2-1.2.10.orig/configure
6600 +++ glib1.2-1.2.10/configure
6601 @@ -38,9 +38,170 @@
6602 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
6603 ac_help="$ac_help
6604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
6605 +
6606 +# Find the correct PATH separator. Usually this is `:', but
6607 +# DJGPP uses `;' like DOS.
6608 +if test "X${PATH_SEPARATOR+set}" != Xset; then
6609 + UNAME=${UNAME-`uname 2>/dev/null`}
6610 + case X$UNAME in
6611 + *-DOS) lt_cv_sys_path_separator=';' ;;
6612 + *) lt_cv_sys_path_separator=':' ;;
6613 + esac
6614 + PATH_SEPARATOR=$lt_cv_sys_path_separator
6615 +fi
6616 +
6617 +
6618 +# Check that we are running under the correct shell.
6619 +SHELL=${CONFIG_SHELL-/bin/sh}
6620 +
6621 +case X$ECHO in
6622 +X*--fallback-echo)
6623 + # Remove one level of quotation (which was required for Make).
6624 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
6625 + ;;
6626 +esac
6627 +
6628 +echo=${ECHO-echo}
6629 +if test "X$1" = X--no-reexec; then
6630 + # Discard the --no-reexec flag, and continue.
6631 + shift
6632 +elif test "X$1" = X--fallback-echo; then
6633 + # Avoid inline document here, it may be left over
6634 + :
6635 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
6636 + # Yippee, $echo works!
6637 + :
6638 +else
6639 + # Restart under the correct shell.
6640 + exec $SHELL "$0" --no-reexec ${1+"$@"}
6641 +fi
6642 +
6643 +if test "X$1" = X--fallback-echo; then
6644 + # used as fallback echo
6645 + shift
6646 + cat <<EOF
6647 +
6648 +EOF
6649 + exit 0
6650 +fi
6651 +
6652 +# The HP-UX ksh and POSIX shell print the target directory to stdout
6653 +# if CDPATH is set.
6654 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6655 +
6656 +if test -z "$ECHO"; then
6657 +if test "X${echo_test_string+set}" != Xset; then
6658 +# find a string as large as possible, as long as the shell can cope with it
6659 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
6660 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
6661 + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
6662 + echo_test_string="`eval $cmd`" &&
6663 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
6664 + then
6665 + break
6666 + fi
6667 + done
6668 +fi
6669 +
6670 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
6671 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
6672 + test "X$echo_testing_string" = "X$echo_test_string"; then
6673 + :
6674 +else
6675 + # The Solaris, AIX, and Digital Unix default echo programs unquote
6676 + # backslashes. This makes it impossible to quote backslashes using
6677 + # echo "$something" | sed 's/\\/\\\\/g'
6678 + #
6679 + # So, first we look for a working echo in the user's PATH.
6680 +
6681 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6682 + for dir in $PATH /usr/ucb; do
6683 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
6684 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
6685 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
6686 + test "X$echo_testing_string" = "X$echo_test_string"; then
6687 + echo="$dir/echo"
6688 + break
6689 + fi
6690 + done
6691 + IFS="$save_ifs"
6692 +
6693 + if test "X$echo" = Xecho; then
6694 + # We didn't find a better echo, so look for alternatives.
6695 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
6696 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
6697 + test "X$echo_testing_string" = "X$echo_test_string"; then
6698 + # This shell has a builtin print -r that does the trick.
6699 + echo='print -r'
6700 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
6701 + test "X$CONFIG_SHELL" != X/bin/ksh; then
6702 + # If we have ksh, try running configure again with it.
6703 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6704 + export ORIGINAL_CONFIG_SHELL
6705 + CONFIG_SHELL=/bin/ksh
6706 + export CONFIG_SHELL
6707 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
6708 + else
6709 + # Try using printf.
6710 + echo='printf %s\n'
6711 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
6712 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
6713 + test "X$echo_testing_string" = "X$echo_test_string"; then
6714 + # Cool, printf works
6715 + :
6716 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
6717 + test "X$echo_testing_string" = 'X\t' &&
6718 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
6719 + test "X$echo_testing_string" = "X$echo_test_string"; then
6720 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
6721 + export CONFIG_SHELL
6722 + SHELL="$CONFIG_SHELL"
6723 + export SHELL
6724 + echo="$CONFIG_SHELL $0 --fallback-echo"
6725 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
6726 + test "X$echo_testing_string" = 'X\t' &&
6727 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
6728 + test "X$echo_testing_string" = "X$echo_test_string"; then
6729 + echo="$CONFIG_SHELL $0 --fallback-echo"
6730 + else
6731 + # maybe with a smaller string...
6732 + prev=:
6733 +
6734 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
6735 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
6736 + then
6737 + break
6738 + fi
6739 + prev="$cmd"
6740 + done
6741 +
6742 + if test "$prev" != 'sed 50q "$0"'; then
6743 + echo_test_string=`eval $prev`
6744 + export echo_test_string
6745 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
6746 + else
6747 + # Oops. We lost completely, so just stick with echo.
6748 + echo=echo
6749 + fi
6750 + fi
6751 + fi
6752 + fi
6753 +fi
6754 +fi
6755 +
6756 +# Copy echo and quote the copy suitably for passing to libtool from
6757 +# the Makefile, instead of quoting the original, which is used later.
6758 +ECHO=$echo
6759 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
6760 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
6761 +fi
6762 +
6763 +
6764 ac_help="$ac_help
6765 --disable-libtool-lock avoid locking (might break parallel builds)"
6766 ac_help="$ac_help
6767 + --with-pic try to use only PIC/non-PIC objects [default=use both]"
6768 +ac_help="$ac_help
6769 --enable-maintainer-mode enable make rules and dependencies not useful
6770 (and sometimes confusing) to the casual installer"
6771 if test `expr $GLIB_MINOR_VERSION \% 2` = 1 ; then
6772 @@ -618,6 +779,7 @@
6773 ac_config_sub=$ac_aux_dir/config.sub
6774 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
6775
6776 +am__api_version="1.4"
6777 # Find a good install program. We prefer a C program (faster),
6778 # so one script is as good as another. But avoid the broken or
6779 # incompatible versions:
6780 @@ -630,7 +792,7 @@
6781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6782 # ./install, which can be erroneously created by make from ./install.sh.
6783 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6784 -echo "configure:634: checking for a BSD compatible install" >&5
6785 +echo "configure:796: checking for a BSD compatible install" >&5
6786 if test -z "$INSTALL"; then
6787 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6789 @@ -683,7 +845,7 @@
6790 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6791
6792 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
6793 -echo "configure:687: checking whether build environment is sane" >&5
6794 +echo "configure:849: checking whether build environment is sane" >&5
6795 # Just in case
6796 sleep 1
6797 echo timestamp > conftestfile
6798 @@ -740,7 +902,7 @@
6799 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
6800
6801 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6802 -echo "configure:744: checking whether ${MAKE-make} sets \${MAKE}" >&5
6803 +echo "configure:906: checking whether ${MAKE-make} sets \${MAKE}" >&5
6804 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
6805 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6
6807 @@ -778,21 +940,21 @@
6808
6809
6810 missing_dir=`cd $ac_aux_dir && pwd`
6811 -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
6812 -echo "configure:783: checking for working aclocal" >&5
6813 +echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
6814 +echo "configure:945: checking for working aclocal-${am__api_version}" >&5
6815 # Run test in a subshell; some versions of sh will print an error if
6816 # an executable is not found, even if stderr is redirected.
6817 # Redirect stdin to placate older versions of autoconf. Sigh.
6818 -if (aclocal --version) < /dev/null > /dev/null 2>&1; then
6819 - ACLOCAL=aclocal
6820 +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
6821 + ACLOCAL=aclocal-${am__api_version}
6822 echo "$ac_t""found" 1>&6
6823 else
6824 - ACLOCAL="$missing_dir/missing aclocal"
6825 + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
6826 echo "$ac_t""missing" 1>&6
6827 fi
6828
6829 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
6830 -echo "configure:796: checking for working autoconf" >&5
6831 +echo "configure:958: checking for working autoconf" >&5
6832 # Run test in a subshell; some versions of sh will print an error if
6833 # an executable is not found, even if stderr is redirected.
6834 # Redirect stdin to placate older versions of autoconf. Sigh.
6835 @@ -804,21 +966,21 @@
6836 echo "$ac_t""missing" 1>&6
6837 fi
6838
6839 -echo $ac_n "checking for working automake""... $ac_c" 1>&6
6840 -echo "configure:809: checking for working automake" >&5
6841 +echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
6842 +echo "configure:971: checking for working automake-${am__api_version}" >&5
6843 # Run test in a subshell; some versions of sh will print an error if
6844 # an executable is not found, even if stderr is redirected.
6845 # Redirect stdin to placate older versions of autoconf. Sigh.
6846 -if (automake --version) < /dev/null > /dev/null 2>&1; then
6847 - AUTOMAKE=automake
6848 +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
6849 + AUTOMAKE=automake-${am__api_version}
6850 echo "$ac_t""found" 1>&6
6851 else
6852 - AUTOMAKE="$missing_dir/missing automake"
6853 + AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
6854 echo "$ac_t""missing" 1>&6
6855 fi
6856
6857 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
6858 -echo "configure:822: checking for working autoheader" >&5
6859 +echo "configure:984: checking for working autoheader" >&5
6860 # Run test in a subshell; some versions of sh will print an error if
6861 # an executable is not found, even if stderr is redirected.
6862 # Redirect stdin to placate older versions of autoconf. Sigh.
6863 @@ -831,7 +993,7 @@
6864 fi
6865
6866 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
6867 -echo "configure:835: checking for working makeinfo" >&5
6868 +echo "configure:997: checking for working makeinfo" >&5
6869 # Run test in a subshell; some versions of sh will print an error if
6870 # an executable is not found, even if stderr is redirected.
6871 # Redirect stdin to placate older versions of autoconf. Sigh.
6872 @@ -871,11 +1033,164 @@
6873 EOF
6874
6875
6876 +# Find the correct PATH separator. Usually this is `:', but
6877 +# DJGPP uses `;' like DOS.
6878 +if test "X${PATH_SEPARATOR+set}" != Xset; then
6879 + UNAME=${UNAME-`uname 2>/dev/null`}
6880 + case X$UNAME in
6881 + *-DOS) lt_cv_sys_path_separator=';' ;;
6882 + *) lt_cv_sys_path_separator=':' ;;
6883 + esac
6884 + PATH_SEPARATOR=$lt_cv_sys_path_separator
6885 +fi
6886 +
6887 +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
6888 +echo "configure:1049: checking for Cygwin environment" >&5
6889 +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
6890 + echo $ac_n "(cached) $ac_c" 1>&6
6891 +else
6892 + cat > conftest.$ac_ext <<EOF
6893 +#line 1054 "configure"
6894 +#include "confdefs.h"
6895 +
6896 +int main() {
6897 +
6898 +#ifndef __CYGWIN__
6899 +#define __CYGWIN__ __CYGWIN32__
6900 +#endif
6901 +return __CYGWIN__;
6902 +; return 0; }
6903 +EOF
6904 +if { (eval echo configure:1065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6905 + rm -rf conftest*
6906 + ac_cv_cygwin=yes
6907 +else
6908 + echo "configure: failed program was:" >&5
6909 + cat conftest.$ac_ext >&5
6910 + rm -rf conftest*
6911 + ac_cv_cygwin=no
6912 +fi
6913 +rm -f conftest*
6914 +rm -f conftest*
6915 +fi
6916 +
6917 +echo "$ac_t""$ac_cv_cygwin" 1>&6
6918 +CYGWIN=
6919 +test "$ac_cv_cygwin" = yes && CYGWIN=yes
6920 +echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
6921 +echo "configure:1082: checking for mingw32 environment" >&5
6922 +if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
6923 + echo $ac_n "(cached) $ac_c" 1>&6
6924 +else
6925 + cat > conftest.$ac_ext <<EOF
6926 +#line 1087 "configure"
6927 +#include "confdefs.h"
6928 +
6929 +int main() {
6930 +return __MINGW32__;
6931 +; return 0; }
6932 +EOF
6933 +if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6934 + rm -rf conftest*
6935 + ac_cv_mingw32=yes
6936 +else
6937 + echo "configure: failed program was:" >&5
6938 + cat conftest.$ac_ext >&5
6939 + rm -rf conftest*
6940 + ac_cv_mingw32=no
6941 +fi
6942 +rm -f conftest*
6943 +rm -f conftest*
6944 +fi
6945 +
6946 +echo "$ac_t""$ac_cv_mingw32" 1>&6
6947 +MINGW32=
6948 +test "$ac_cv_mingw32" = yes && MINGW32=yes
6949 +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6950 +echo "configure:1111: checking how to run the C preprocessor" >&5
6951 +# On Suns, sometimes $CPP names a directory.
6952 +if test -n "$CPP" && test -d "$CPP"; then
6953 + CPP=
6954 +fi
6955 +if test -z "$CPP"; then
6956 +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6957 + echo $ac_n "(cached) $ac_c" 1>&6
6958 +else
6959 + # This must be in double quotes, not single quotes, because CPP may get
6960 + # substituted into the Makefile and "${CC-cc}" will confuse make.
6961 + CPP="${CC-cc} -E"
6962 + # On the NeXT, cc -E runs the code through the compiler's parser,
6963 + # not just through cpp.
6964 + cat > conftest.$ac_ext <<EOF
6965 +#line 1126 "configure"
6966 +#include "confdefs.h"
6967 +#include <assert.h>
6968 +Syntax Error
6969 +EOF
6970 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6971 +{ (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6972 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6973 +if test -z "$ac_err"; then
6974 + :
6975 +else
6976 + echo "$ac_err" >&5
6977 + echo "configure: failed program was:" >&5
6978 + cat conftest.$ac_ext >&5
6979 + rm -rf conftest*
6980 + CPP="${CC-cc} -E -traditional-cpp"
6981 + cat > conftest.$ac_ext <<EOF
6982 +#line 1143 "configure"
6983 +#include "confdefs.h"
6984 +#include <assert.h>
6985 +Syntax Error
6986 +EOF
6987 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6988 +{ (eval echo configure:1149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6989 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6990 +if test -z "$ac_err"; then
6991 + :
6992 +else
6993 + echo "$ac_err" >&5
6994 + echo "configure: failed program was:" >&5
6995 + cat conftest.$ac_ext >&5
6996 + rm -rf conftest*
6997 + CPP="${CC-cc} -nologo -E"
6998 + cat > conftest.$ac_ext <<EOF
6999 +#line 1160 "configure"
7000 +#include "confdefs.h"
7001 +#include <assert.h>
7002 +Syntax Error
7003 +EOF
7004 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7005 +{ (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7006 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7007 +if test -z "$ac_err"; then
7008 + :
7009 +else
7010 + echo "$ac_err" >&5
7011 + echo "configure: failed program was:" >&5
7012 + cat conftest.$ac_ext >&5
7013 + rm -rf conftest*
7014 + CPP=/lib/cpp
7015 +fi
7016 +rm -f conftest*
7017 +fi
7018 +rm -f conftest*
7019 +fi
7020 +rm -f conftest*
7021 + ac_cv_prog_CPP="$CPP"
7022 +fi
7023 + CPP="$ac_cv_prog_CPP"
7024 +else
7025 + ac_cv_prog_CPP="$CPP"
7026 +fi
7027 +echo "$ac_t""$CPP" 1>&6
7028 +
7029 # Check whether --enable-shared or --disable-shared was given.
7030 if test "${enable_shared+set}" = set; then
7031 enableval="$enable_shared"
7032 p=${PACKAGE-default}
7033 -case "$enableval" in
7034 +case $enableval in
7035 yes) enable_shared=yes ;;
7036 no) enable_shared=no ;;
7037 *)
7038 @@ -898,7 +1213,7 @@
7039 if test "${enable_static+set}" = set; then
7040 enableval="$enable_static"
7041 p=${PACKAGE-default}
7042 -case "$enableval" in
7043 +case $enableval in
7044 yes) enable_static=yes ;;
7045 no) enable_static=no ;;
7046 *)
7047 @@ -921,7 +1236,7 @@
7048 if test "${enable_fast_install+set}" = set; then
7049 enableval="$enable_fast_install"
7050 p=${PACKAGE-default}
7051 -case "$enableval" in
7052 +case $enableval in
7053 yes) enable_fast_install=yes ;;
7054 no) enable_fast_install=no ;;
7055 *)
7056 @@ -947,7 +1262,7 @@
7057 fi
7058
7059 echo $ac_n "checking host system type""... $ac_c" 1>&6
7060 -echo "configure:951: checking host system type" >&5
7061 +echo "configure:1266: checking host system type" >&5
7062
7063 host_alias=$host
7064 case "$host_alias" in
7065 @@ -968,7 +1283,7 @@
7066 echo "$ac_t""$host" 1>&6
7067
7068 echo $ac_n "checking build system type""... $ac_c" 1>&6
7069 -echo "configure:972: checking build system type" >&5
7070 +echo "configure:1287: checking build system type" >&5
7071
7072 build_alias=$build
7073 case "$build_alias" in
7074 @@ -985,40 +1300,10 @@
7075 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7076 echo "$ac_t""$build" 1>&6
7077
7078 -# Extract the first word of "ranlib", so it can be a program name with args.
7079 -set dummy ranlib; ac_word=$2
7080 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7081 -echo "configure:992: checking for $ac_word" >&5
7082 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7083 - echo $ac_n "(cached) $ac_c" 1>&6
7084 -else
7085 - if test -n "$RANLIB"; then
7086 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7087 -else
7088 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7089 - ac_dummy="$PATH"
7090 - for ac_dir in $ac_dummy; do
7091 - test -z "$ac_dir" && ac_dir=.
7092 - if test -f $ac_dir/$ac_word; then
7093 - ac_cv_prog_RANLIB="ranlib"
7094 - break
7095 - fi
7096 - done
7097 - IFS="$ac_save_ifs"
7098 - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
7099 -fi
7100 -fi
7101 -RANLIB="$ac_cv_prog_RANLIB"
7102 -if test -n "$RANLIB"; then
7103 - echo "$ac_t""$RANLIB" 1>&6
7104 -else
7105 - echo "$ac_t""no" 1>&6
7106 -fi
7107 -
7108 # Extract the first word of "gcc", so it can be a program name with args.
7109 set dummy gcc; ac_word=$2
7110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7111 -echo "configure:1022: checking for $ac_word" >&5
7112 +echo "configure:1307: checking for $ac_word" >&5
7113 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7114 echo $ac_n "(cached) $ac_c" 1>&6
7115 else
7116 @@ -1048,7 +1333,7 @@
7117 # Extract the first word of "cc", so it can be a program name with args.
7118 set dummy cc; ac_word=$2
7119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7120 -echo "configure:1052: checking for $ac_word" >&5
7121 +echo "configure:1337: checking for $ac_word" >&5
7122 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7123 echo $ac_n "(cached) $ac_c" 1>&6
7124 else
7125 @@ -1099,7 +1384,7 @@
7126 # Extract the first word of "cl", so it can be a program name with args.
7127 set dummy cl; ac_word=$2
7128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7129 -echo "configure:1103: checking for $ac_word" >&5
7130 +echo "configure:1388: checking for $ac_word" >&5
7131 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7132 echo $ac_n "(cached) $ac_c" 1>&6
7133 else
7134 @@ -1131,7 +1416,7 @@
7135 fi
7136
7137 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7138 -echo "configure:1135: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7139 +echo "configure:1420: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7140
7141 ac_ext=c
7142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7143 @@ -1142,12 +1427,12 @@
7144
7145 cat > conftest.$ac_ext << EOF
7146
7147 -#line 1146 "configure"
7148 +#line 1431 "configure"
7149 #include "confdefs.h"
7150
7151 main(){return(0);}
7152 EOF
7153 -if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7154 +if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7155 ac_cv_prog_cc_works=yes
7156 # If we can't run a trivial program, we are probably using a cross compiler.
7157 if (./conftest; exit) 2>/dev/null; then
7158 @@ -1173,12 +1458,12 @@
7159 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7160 fi
7161 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7162 -echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7163 +echo "configure:1462: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7164 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7165 cross_compiling=$ac_cv_prog_cc_cross
7166
7167 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7168 -echo "configure:1182: checking whether we are using GNU C" >&5
7169 +echo "configure:1467: checking whether we are using GNU C" >&5
7170 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7171 echo $ac_n "(cached) $ac_c" 1>&6
7172 else
7173 @@ -1187,7 +1472,7 @@
7174 yes;
7175 #endif
7176 EOF
7177 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7178 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7179 ac_cv_prog_gcc=yes
7180 else
7181 ac_cv_prog_gcc=no
7182 @@ -1206,7 +1491,7 @@
7183 ac_save_CFLAGS="$CFLAGS"
7184 CFLAGS=
7185 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7186 -echo "configure:1210: checking whether ${CC-cc} accepts -g" >&5
7187 +echo "configure:1495: checking whether ${CC-cc} accepts -g" >&5
7188 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7190 else
7191 @@ -1246,12 +1531,18 @@
7192 fi
7193
7194 ac_prog=ld
7195 -if test "$ac_cv_prog_gcc" = yes; then
7196 +if test "$GCC" = yes; then
7197 # Check if gcc -print-prog-name=ld gives a path.
7198 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
7199 -echo "configure:1253: checking for ld used by GCC" >&5
7200 - ac_prog=`($CC -print-prog-name=ld) 2>&5`
7201 - case "$ac_prog" in
7202 +echo "configure:1538: checking for ld used by GCC" >&5
7203 + case $host in
7204 + *-*-mingw*)
7205 + # gcc leaves a trailing carriage return which upsets mingw
7206 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7207 + *)
7208 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7209 + esac
7210 + case $ac_prog in
7211 # Accept absolute paths.
7212 [\\/]* | [A-Za-z]:[\\/]*)
7213 re_direlt='/[^/][^/]*/\.\./'
7214 @@ -1273,24 +1564,24 @@
7215 esac
7216 elif test "$with_gnu_ld" = yes; then
7217 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
7218 -echo "configure:1277: checking for GNU ld" >&5
7219 +echo "configure:1568: checking for GNU ld" >&5
7220 else
7221 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
7222 -echo "configure:1280: checking for non-GNU ld" >&5
7223 +echo "configure:1571: checking for non-GNU ld" >&5
7224 fi
7225 -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
7226 +if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
7227 echo $ac_n "(cached) $ac_c" 1>&6
7228 else
7229 if test -z "$LD"; then
7230 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7231 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7232 for ac_dir in $PATH; do
7233 test -z "$ac_dir" && ac_dir=.
7234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7235 - ac_cv_path_LD="$ac_dir/$ac_prog"
7236 + lt_cv_path_LD="$ac_dir/$ac_prog"
7237 # Check to see if the program is GNU ld. I'd rather use --version,
7238 # but apparently some GNU ld's only accept -v.
7239 # Break only if it was the GNU/non-GNU ld that we prefer.
7240 - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7241 + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7242 test "$with_gnu_ld" != no && break
7243 else
7244 test "$with_gnu_ld" != yes && break
7245 @@ -1299,11 +1590,11 @@
7246 done
7247 IFS="$ac_save_ifs"
7248 else
7249 - ac_cv_path_LD="$LD" # Let the user override the test with a path.
7250 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
7251 fi
7252 fi
7253
7254 -LD="$ac_cv_path_LD"
7255 +LD="$lt_cv_path_LD"
7256 if test -n "$LD"; then
7257 echo "$ac_t""$LD" 1>&6
7258 else
7259 @@ -1311,245 +1602,3880 @@
7260 fi
7261 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
7262 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
7263 -echo "configure:1315: checking if the linker ($LD) is GNU ld" >&5
7264 -if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
7265 +echo "configure:1606: checking if the linker ($LD) is GNU ld" >&5
7266 +if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
7267 echo $ac_n "(cached) $ac_c" 1>&6
7268 else
7269 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7270 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7271 - ac_cv_prog_gnu_ld=yes
7272 + lt_cv_prog_gnu_ld=yes
7273 else
7274 - ac_cv_prog_gnu_ld=no
7275 + lt_cv_prog_gnu_ld=no
7276 fi
7277 fi
7278
7279 -echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
7280 +echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
7281 +with_gnu_ld=$lt_cv_prog_gnu_ld
7282 +
7283 +
7284 +echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
7285 +echo "configure:1623: checking for $LD option to reload object files" >&5
7286 +if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
7287 + echo $ac_n "(cached) $ac_c" 1>&6
7288 +else
7289 + lt_cv_ld_reload_flag='-r'
7290 +fi
7291
7292 +echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
7293 +reload_flag=$lt_cv_ld_reload_flag
7294 +test -n "$reload_flag" && reload_flag=" $reload_flag"
7295
7296 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
7297 -echo "configure:1331: checking for BSD-compatible nm" >&5
7298 -if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
7299 +echo "configure:1635: checking for BSD-compatible nm" >&5
7300 +if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
7301 echo $ac_n "(cached) $ac_c" 1>&6
7302 else
7303 if test -n "$NM"; then
7304 # Let the user override the test.
7305 - ac_cv_path_NM="$NM"
7306 + lt_cv_path_NM="$NM"
7307 else
7308 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7309 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7310 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7311 test -z "$ac_dir" && ac_dir=.
7312 - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
7313 + tmp_nm=$ac_dir/${ac_tool_prefix}nm
7314 + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
7315 # Check to see if the nm accepts a BSD-compat flag.
7316 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7317 # nm: unknown option "B" ignored
7318 - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
7319 - ac_cv_path_NM="$ac_dir/nm -B"
7320 + # Tru64's nm complains that /dev/null is an invalid object file
7321 + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
7322 + lt_cv_path_NM="$tmp_nm -B"
7323 break
7324 - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
7325 - ac_cv_path_NM="$ac_dir/nm -p"
7326 + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
7327 + lt_cv_path_NM="$tmp_nm -p"
7328 break
7329 else
7330 - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
7331 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7332 continue # so that we can try to find one that supports BSD flags
7333 fi
7334 fi
7335 done
7336 IFS="$ac_save_ifs"
7337 - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
7338 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7339 +fi
7340 +fi
7341 +
7342 +NM="$lt_cv_path_NM"
7343 +echo "$ac_t""$NM" 1>&6
7344 +
7345 +echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
7346 +echo "configure:1673: checking for a sed that does not truncate output" >&5
7347 +if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
7348 + echo $ac_n "(cached) $ac_c" 1>&6
7349 +else
7350 + # Loop through the user's path and test for sed and gsed.
7351 +# Then use that list of sed's as ones to test for truncation.
7352 +as_executable_p="test -f"
7353 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 +for as_dir in $PATH
7355 +do
7356 + IFS=$as_save_IFS
7357 + test -z "$as_dir" && as_dir=.
7358 + for ac_prog in sed gsed; do
7359 + for ac_exec_ext in '' $ac_executable_extensions; do
7360 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7361 + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
7362 + fi
7363 + done
7364 + done
7365 +done
7366 +
7367 + # Create a temporary directory, and hook for its removal unless debugging.
7368 +$debug ||
7369 +{
7370 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7371 + trap '{ (exit 1); exit 1; }' 1 2 13 15
7372 +}
7373 +
7374 +# Create a (secure) tmp directory for tmp files.
7375 +: ${TMPDIR=/tmp}
7376 +{
7377 + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
7378 + test -n "$tmp" && test -d "$tmp"
7379 +} ||
7380 +{
7381 + tmp=$TMPDIR/sed$$-$RANDOM
7382 + (umask 077 && mkdir $tmp)
7383 +} ||
7384 +{
7385 + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7386 + { (exit 1); exit 1; }
7387 +}
7388 + _max=0
7389 + _count=0
7390 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7391 + # along with /bin/sed that truncates output.
7392 + for _sed in $_sed_list /usr/xpg4/bin/sed; do
7393 + test ! -f ${_sed} && break
7394 + cat /dev/null > "$tmp/sed.in"
7395 + _count=0
7396 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
7397 + # Check for GNU sed and select it if it is found.
7398 + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
7399 + lt_cv_path_SED=${_sed}
7400 + break
7401 + fi
7402 + while true; do
7403 + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
7404 + mv "$tmp/sed.tmp" "$tmp/sed.in"
7405 + cp "$tmp/sed.in" "$tmp/sed.nl"
7406 + echo >>"$tmp/sed.nl"
7407 + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
7408 + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
7409 + # 40000 chars as input seems more than enough
7410 + test $_count -gt 10 && break
7411 + _count=`expr $_count + 1`
7412 + if test $_count -gt $_max; then
7413 + _max=$_count
7414 + lt_cv_path_SED=$_sed
7415 + fi
7416 + done
7417 + done
7418 + rm -rf "$tmp"
7419 +
7420 +fi
7421 +
7422 +if test "X$SED" != "X"; then
7423 + lt_cv_path_SED=$SED
7424 +else
7425 + SED=$lt_cv_path_SED
7426 +fi
7427 +echo "$ac_t""$SED" 1>&6
7428 +
7429 +echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7430 +echo "configure:1757: checking whether ln -s works" >&5
7431 +if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7432 + echo $ac_n "(cached) $ac_c" 1>&6
7433 +else
7434 + rm -f conftestdata
7435 +if ln -s X conftestdata 2>/dev/null
7436 +then
7437 + rm -f conftestdata
7438 + ac_cv_prog_LN_S="ln -s"
7439 +else
7440 + ac_cv_prog_LN_S=ln
7441 fi
7442 fi
7443 +LN_S="$ac_cv_prog_LN_S"
7444 +if test "$ac_cv_prog_LN_S" = "ln -s"; then
7445 + echo "$ac_t""yes" 1>&6
7446 +else
7447 + echo "$ac_t""no" 1>&6
7448 +fi
7449 +
7450 +echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
7451 +echo "configure:1778: checking how to recognise dependent libraries" >&5
7452 +if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
7453 + echo $ac_n "(cached) $ac_c" 1>&6
7454 +else
7455 + lt_cv_file_magic_cmd='$MAGIC_CMD'
7456 +lt_cv_file_magic_test_file=
7457 +lt_cv_deplibs_check_method='unknown'
7458 +# Need to set the preceding variable on all platforms that support
7459 +# interlibrary dependencies.
7460 +# 'none' -- dependencies not supported.
7461 +# `unknown' -- same as none, but documents that we really don't know.
7462 +# 'pass_all' -- all dependencies passed with no checks.
7463 +# 'test_compile' -- check by making test program.
7464 +# 'file_magic [[regex]]' -- check by looking for files in library path
7465 +# which responds to the $file_magic_cmd with a given egrep regex.
7466 +# If you have `file' or equivalent on your system and you're not sure
7467 +# whether `pass_all' will *always* work, you probably want this one.
7468 +
7469 +case $host_os in
7470 +aix4* | aix5*)
7471 + lt_cv_deplibs_check_method=pass_all
7472 + ;;
7473 +
7474 +beos*)
7475 + lt_cv_deplibs_check_method=pass_all
7476 + ;;
7477 +
7478 +bsdi4*)
7479 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7480 + lt_cv_file_magic_cmd='/usr/bin/file -L'
7481 + lt_cv_file_magic_test_file=/shlib/libc.so
7482 + ;;
7483 +
7484 +cygwin* | mingw* | pw32*)
7485 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7486 + lt_cv_file_magic_cmd='$OBJDUMP -f'
7487 + ;;
7488 +
7489 +darwin* | rhapsody*)
7490 + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
7491 + lt_cv_file_magic_cmd='/usr/bin/file -L'
7492 + case "$host_os" in
7493 + rhapsody* | darwin1.[012])
7494 + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
7495 + ;;
7496 + *) # Darwin 1.3 on
7497 + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
7498 + ;;
7499 + esac
7500 + ;;
7501 +
7502 +freebsd*)
7503 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7504 + case $host_cpu in
7505 + i*86 )
7506 + # Not sure whether the presence of OpenBSD here was a mistake.
7507 + # Let's accept both of them until this is cleared up.
7508 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7509 + lt_cv_file_magic_cmd=/usr/bin/file
7510 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7511 + ;;
7512 + esac
7513 + else
7514 + lt_cv_deplibs_check_method=pass_all
7515 + fi
7516 + ;;
7517 +
7518 +gnu*)
7519 + lt_cv_deplibs_check_method=pass_all
7520 + ;;
7521 +
7522 +hpux10.20*|hpux11*)
7523 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7524 + lt_cv_file_magic_cmd=/usr/bin/file
7525 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
7526 + ;;
7527 +
7528 +irix5* | irix6* | nonstopux*)
7529 + case $host_os in
7530 + irix5* | nonstopux*)
7531 + # this will be overridden with pass_all, but let us keep it just in case
7532 + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
7533 + ;;
7534 + *)
7535 + case $LD in
7536 + *-32|*"-32 ") libmagic=32-bit;;
7537 + *-n32|*"-n32 ") libmagic=N32;;
7538 + *-64|*"-64 ") libmagic=64-bit;;
7539 + *) libmagic=never-match;;
7540 + esac
7541 + # this will be overridden with pass_all, but let us keep it just in case
7542 + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
7543 + ;;
7544 + esac
7545 + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
7546 + lt_cv_deplibs_check_method=pass_all
7547 + ;;
7548 +
7549 +# This must be Linux ELF.
7550 +linux-gnu*)
7551 + case $host_cpu in
7552 + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
7553 + lt_cv_deplibs_check_method=pass_all ;;
7554 + *)
7555 + # glibc up to 2.1.1 does not perform some relocations on ARM
7556 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
7557 + esac
7558 + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
7559 + ;;
7560 +
7561 +netbsd*)
7562 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7563 + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
7564 + else
7565 + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
7566 + fi
7567 + ;;
7568 +
7569 +newos6*)
7570 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7571 + lt_cv_file_magic_cmd=/usr/bin/file
7572 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
7573 + ;;
7574 +
7575 +openbsd*)
7576 + lt_cv_file_magic_cmd=/usr/bin/file
7577 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7578 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7579 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
7580 + else
7581 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
7582 + fi
7583 + ;;
7584 +
7585 +osf3* | osf4* | osf5*)
7586 + # this will be overridden with pass_all, but let us keep it just in case
7587 + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
7588 + lt_cv_file_magic_test_file=/shlib/libc.so
7589 + lt_cv_deplibs_check_method=pass_all
7590 + ;;
7591 +
7592 +sco3.2v5*)
7593 + lt_cv_deplibs_check_method=pass_all
7594 + ;;
7595 +
7596 +solaris*)
7597 + lt_cv_deplibs_check_method=pass_all
7598 + lt_cv_file_magic_test_file=/lib/libc.so
7599 + ;;
7600 +
7601 +sysv5uw[78]* | sysv4*uw2*)
7602 + lt_cv_deplibs_check_method=pass_all
7603 + ;;
7604 +
7605 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7606 + case $host_vendor in
7607 + motorola)
7608 + 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]'
7609 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7610 + ;;
7611 + ncr)
7612 + lt_cv_deplibs_check_method=pass_all
7613 + ;;
7614 + sequent)
7615 + lt_cv_file_magic_cmd='/bin/file'
7616 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7617 + ;;
7618 + sni)
7619 + lt_cv_file_magic_cmd='/bin/file'
7620 + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7621 + lt_cv_file_magic_test_file=/lib/libc.so
7622 + ;;
7623 + siemens)
7624 + lt_cv_deplibs_check_method=pass_all
7625 + ;;
7626 + esac
7627 + ;;
7628 +esac
7629 +
7630 +fi
7631 +
7632 +echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
7633 +file_magic_cmd=$lt_cv_file_magic_cmd
7634 +deplibs_check_method=$lt_cv_deplibs_check_method
7635 +
7636 +echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7637 +echo "configure:1964: checking for object suffix" >&5
7638 +if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
7639 + echo $ac_n "(cached) $ac_c" 1>&6
7640 +else
7641 + rm -f conftest*
7642 +echo 'int i = 1;' > conftest.$ac_ext
7643 +if { (eval echo configure:1970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7644 + for ac_file in conftest.*; do
7645 + case $ac_file in
7646 + *.c) ;;
7647 + *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7648 + esac
7649 + done
7650 +else
7651 + { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7652 +fi
7653 +rm -f conftest*
7654 +fi
7655 +
7656 +echo "$ac_t""$ac_cv_objext" 1>&6
7657 +OBJEXT=$ac_cv_objext
7658 +ac_objext=$ac_cv_objext
7659 +
7660 +
7661 +
7662 +echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7663 +echo "configure:1990: checking for executable suffix" >&5
7664 +if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7665 + echo $ac_n "(cached) $ac_c" 1>&6
7666 +else
7667 + if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
7668 + ac_cv_exeext=.exe
7669 +else
7670 + rm -f conftest*
7671 + echo 'int main () { return 0; }' > conftest.$ac_ext
7672 + ac_cv_exeext=
7673 + if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7674 + for file in conftest.*; do
7675 + case $file in
7676 + *.$ac_ext | *.c | *.o | *.obj) ;;
7677 + *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7678 + esac
7679 + done
7680 + else
7681 + { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7682 + fi
7683 + rm -f conftest*
7684 + test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7685 +fi
7686 +fi
7687 +
7688 +EXEEXT=""
7689 +test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7690 +echo "$ac_t""${ac_cv_exeext}" 1>&6
7691 +ac_exeext=$EXEEXT
7692 +
7693 +if test $host != $build; then
7694 + ac_tool_prefix=${host_alias}-
7695 +else
7696 + ac_tool_prefix=
7697 +fi
7698 +
7699 +
7700 +
7701 +
7702 +# Check for command to grab the raw symbol name followed by C symbol from nm.
7703 +echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
7704 +echo "configure:2031: checking command to parse $NM output" >&5
7705 +if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
7706 + echo $ac_n "(cached) $ac_c" 1>&6
7707 +else
7708 +
7709 +# These are sane defaults that work on at least a few old systems.
7710 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7711 +
7712 +# Character class describing NM global symbol codes.
7713 +symcode='[BCDEGRST]'
7714 +
7715 +# Regexp to match symbols that can be accessed directly from C.
7716 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7717 +
7718 +# Transform the above into a raw symbol and a C symbol.
7719 +symxfrm='\1 \2\3 \3'
7720 +
7721 +# Transform an extracted symbol line into a proper C declaration
7722 +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
7723 +
7724 +# Transform an extracted symbol line into symbol name and symbol address
7725 +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7726 +
7727 +# Define system-specific variables.
7728 +case $host_os in
7729 +aix*)
7730 + symcode='[BCDT]'
7731 + ;;
7732 +cygwin* | mingw* | pw32*)
7733 + symcode='[ABCDGISTW]'
7734 + ;;
7735 +hpux*) # Its linker distinguishes data from code symbols
7736 + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7737 + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7738 + ;;
7739 +irix* | nonstopux*)
7740 + symcode='[BCDEGRST]'
7741 + ;;
7742 +osf*)
7743 + symcode='[BCDEGQRST]'
7744 + ;;
7745 +solaris* | sysv5*)
7746 + symcode='[BDT]'
7747 + ;;
7748 +sysv4)
7749 + symcode='[DFNSTU]'
7750 + ;;
7751 +esac
7752 +
7753 +# Handle CRLF in mingw tool chain
7754 +opt_cr=
7755 +case $host_os in
7756 +mingw*)
7757 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7758 + ;;
7759 +esac
7760 +
7761 +# If we're using GNU nm, then use its standard symbol codes.
7762 +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
7763 + symcode='[ABCDGISTW]'
7764 +fi
7765 +
7766 +# Try without a prefix undercore, then with it.
7767 +for ac_symprfx in "" "_"; do
7768 +
7769 + # Write the raw and C identifiers.
7770 +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7771 +
7772 + # Check to see that the pipe works correctly.
7773 + pipe_works=no
7774 + rm -f conftest*
7775 + cat > conftest.$ac_ext <<EOF
7776 +#ifdef __cplusplus
7777 +extern "C" {
7778 +#endif
7779 +char nm_test_var;
7780 +void nm_test_func(){}
7781 +#ifdef __cplusplus
7782 +}
7783 +#endif
7784 +int main(){nm_test_var='a';nm_test_func();return(0);}
7785 +EOF
7786 +
7787 + if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7788 + # Now try to grab the symbols.
7789 + nlist=conftest.nm
7790 + if { (eval echo configure:2117: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
7791 + # Try sorting and uniquifying the output.
7792 + if sort "$nlist" | uniq > "$nlist"T; then
7793 + mv -f "$nlist"T "$nlist"
7794 + else
7795 + rm -f "$nlist"T
7796 + fi
7797 +
7798 + # Make sure that we snagged all the symbols we need.
7799 + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
7800 + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
7801 + cat <<EOF > conftest.$ac_ext
7802 +#ifdef __cplusplus
7803 +extern "C" {
7804 +#endif
7805 +
7806 +EOF
7807 + # Now generate the symbol file.
7808 + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
7809 +
7810 + cat <<EOF >> conftest.$ac_ext
7811 +#if defined (__STDC__) && __STDC__
7812 +# define lt_ptr void *
7813 +#else
7814 +# define lt_ptr char *
7815 +# define const
7816 +#endif
7817 +
7818 +/* The mapping between symbol names and symbols. */
7819 +const struct {
7820 + const char *name;
7821 + lt_ptr address;
7822 +}
7823 +lt_preloaded_symbols[] =
7824 +{
7825 +EOF
7826 + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
7827 + cat <<\EOF >> conftest.$ac_ext
7828 + {0, (lt_ptr) 0}
7829 +};
7830 +
7831 +#ifdef __cplusplus
7832 +}
7833 +#endif
7834 +EOF
7835 + # Now try linking the two files.
7836 + mv conftest.$ac_objext conftstm.$ac_objext
7837 + save_LIBS="$LIBS"
7838 + save_CFLAGS="$CFLAGS"
7839 + LIBS="conftstm.$ac_objext"
7840 + CFLAGS="$CFLAGS$no_builtin_flag"
7841 + if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7842 + pipe_works=yes
7843 + fi
7844 + LIBS="$save_LIBS"
7845 + CFLAGS="$save_CFLAGS"
7846 + else
7847 + echo "cannot find nm_test_func in $nlist" >&5
7848 + fi
7849 + else
7850 + echo "cannot find nm_test_var in $nlist" >&5
7851 + fi
7852 + else
7853 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7854 + fi
7855 + else
7856 + echo "$progname: failed program was:" >&5
7857 + cat conftest.$ac_ext >&5
7858 + fi
7859 + rm -f conftest* conftst*
7860 +
7861 + # Do not use the global_symbol_pipe unless it works.
7862 + if test "$pipe_works" = yes; then
7863 + break
7864 + else
7865 + lt_cv_sys_global_symbol_pipe=
7866 + fi
7867 +done
7868 +
7869 +fi
7870 +
7871 +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
7872 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
7873 + global_symbol_to_cdecl=
7874 + global_symbol_to_c_name_address=
7875 +else
7876 + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
7877 + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
7878 +fi
7879 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
7880 +then
7881 + echo "$ac_t""failed" 1>&6
7882 +else
7883 + echo "$ac_t""ok" 1>&6
7884 +fi
7885 +
7886 +for ac_hdr in dlfcn.h
7887 +do
7888 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7889 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7890 +echo "configure:2217: checking for $ac_hdr" >&5
7891 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7892 + echo $ac_n "(cached) $ac_c" 1>&6
7893 +else
7894 + cat > conftest.$ac_ext <<EOF
7895 +#line 2222 "configure"
7896 +#include "confdefs.h"
7897 +#include <$ac_hdr>
7898 +EOF
7899 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7900 +{ (eval echo configure:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7901 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7902 +if test -z "$ac_err"; then
7903 + rm -rf conftest*
7904 + eval "ac_cv_header_$ac_safe=yes"
7905 +else
7906 + echo "$ac_err" >&5
7907 + echo "configure: failed program was:" >&5
7908 + cat conftest.$ac_ext >&5
7909 + rm -rf conftest*
7910 + eval "ac_cv_header_$ac_safe=no"
7911 +fi
7912 +rm -f conftest*
7913 +fi
7914 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7915 + echo "$ac_t""yes" 1>&6
7916 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7917 + cat >> confdefs.h <<EOF
7918 +#define $ac_tr_hdr 1
7919 +EOF
7920 +
7921 +else
7922 + echo "$ac_t""no" 1>&6
7923 +fi
7924 +done
7925 +
7926 +
7927 +
7928 +
7929 +
7930 +
7931 +# Only perform the check for file, if the check method requires it
7932 +case $deplibs_check_method in
7933 +file_magic*)
7934 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7935 + echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
7936 +echo "configure:2263: checking for ${ac_tool_prefix}file" >&5
7937 +if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
7938 + echo $ac_n "(cached) $ac_c" 1>&6
7939 +else
7940 + case $MAGIC_CMD in
7941 + /*)
7942 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7943 + ;;
7944 + ?:/*)
7945 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
7946 + ;;
7947 + *)
7948 + ac_save_MAGIC_CMD="$MAGIC_CMD"
7949 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7950 + ac_dummy="/usr/bin:$PATH"
7951 + for ac_dir in $ac_dummy; do
7952 + test -z "$ac_dir" && ac_dir=.
7953 + if test -f $ac_dir/${ac_tool_prefix}file; then
7954 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7955 + if test -n "$file_magic_test_file"; then
7956 + case $deplibs_check_method in
7957 + "file_magic "*)
7958 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7959 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7960 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7961 + egrep "$file_magic_regex" > /dev/null; then
7962 + :
7963 + else
7964 + cat <<EOF 1>&2
7965 +
7966 +*** Warning: the command libtool uses to detect shared libraries,
7967 +*** $file_magic_cmd, produces output that libtool cannot recognize.
7968 +*** The result is that libtool may fail to recognize shared libraries
7969 +*** as such. This will affect the creation of libtool libraries that
7970 +*** depend on shared libraries, but programs linked with such libtool
7971 +*** libraries will work regardless of this problem. Nevertheless, you
7972 +*** may want to report the problem to your system manager and/or to
7973 +*** bug-libtool@gnu.org
7974 +
7975 +EOF
7976 + fi ;;
7977 + esac
7978 + fi
7979 + break
7980 + fi
7981 + done
7982 + IFS="$ac_save_ifs"
7983 + MAGIC_CMD="$ac_save_MAGIC_CMD"
7984 + ;;
7985 +esac
7986 +fi
7987 +
7988 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7989 +if test -n "$MAGIC_CMD"; then
7990 + echo "$ac_t""$MAGIC_CMD" 1>&6
7991 +else
7992 + echo "$ac_t""no" 1>&6
7993 +fi
7994 +
7995 +if test -z "$lt_cv_path_MAGIC_CMD"; then
7996 + if test -n "$ac_tool_prefix"; then
7997 + echo $ac_n "checking for file""... $ac_c" 1>&6
7998 +echo "configure:2325: checking for file" >&5
7999 +if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
8000 + echo $ac_n "(cached) $ac_c" 1>&6
8001 +else
8002 + case $MAGIC_CMD in
8003 + /*)
8004 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8005 + ;;
8006 + ?:/*)
8007 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
8008 + ;;
8009 + *)
8010 + ac_save_MAGIC_CMD="$MAGIC_CMD"
8011 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8012 + ac_dummy="/usr/bin:$PATH"
8013 + for ac_dir in $ac_dummy; do
8014 + test -z "$ac_dir" && ac_dir=.
8015 + if test -f $ac_dir/file; then
8016 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
8017 + if test -n "$file_magic_test_file"; then
8018 + case $deplibs_check_method in
8019 + "file_magic "*)
8020 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8021 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8022 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8023 + egrep "$file_magic_regex" > /dev/null; then
8024 + :
8025 + else
8026 + cat <<EOF 1>&2
8027 +
8028 +*** Warning: the command libtool uses to detect shared libraries,
8029 +*** $file_magic_cmd, produces output that libtool cannot recognize.
8030 +*** The result is that libtool may fail to recognize shared libraries
8031 +*** as such. This will affect the creation of libtool libraries that
8032 +*** depend on shared libraries, but programs linked with such libtool
8033 +*** libraries will work regardless of this problem. Nevertheless, you
8034 +*** may want to report the problem to your system manager and/or to
8035 +*** bug-libtool@gnu.org
8036 +
8037 +EOF
8038 + fi ;;
8039 + esac
8040 + fi
8041 + break
8042 + fi
8043 + done
8044 + IFS="$ac_save_ifs"
8045 + MAGIC_CMD="$ac_save_MAGIC_CMD"
8046 + ;;
8047 +esac
8048 +fi
8049 +
8050 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8051 +if test -n "$MAGIC_CMD"; then
8052 + echo "$ac_t""$MAGIC_CMD" 1>&6
8053 +else
8054 + echo "$ac_t""no" 1>&6
8055 +fi
8056 +
8057 + else
8058 + MAGIC_CMD=:
8059 + fi
8060 +fi
8061 +
8062 + fi
8063 + ;;
8064 +esac
8065 +
8066 +# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8067 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8068 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8069 +echo "configure:2396: checking for $ac_word" >&5
8070 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8071 + echo $ac_n "(cached) $ac_c" 1>&6
8072 +else
8073 + if test -n "$RANLIB"; then
8074 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8075 +else
8076 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8077 + ac_dummy="$PATH"
8078 + for ac_dir in $ac_dummy; do
8079 + test -z "$ac_dir" && ac_dir=.
8080 + if test -f $ac_dir/$ac_word; then
8081 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8082 + break
8083 + fi
8084 + done
8085 + IFS="$ac_save_ifs"
8086 +fi
8087 +fi
8088 +RANLIB="$ac_cv_prog_RANLIB"
8089 +if test -n "$RANLIB"; then
8090 + echo "$ac_t""$RANLIB" 1>&6
8091 +else
8092 + echo "$ac_t""no" 1>&6
8093 +fi
8094 +
8095 +
8096 +if test -z "$ac_cv_prog_RANLIB"; then
8097 +if test -n "$ac_tool_prefix"; then
8098 + # Extract the first word of "ranlib", so it can be a program name with args.
8099 +set dummy ranlib; ac_word=$2
8100 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8101 +echo "configure:2428: checking for $ac_word" >&5
8102 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8103 + echo $ac_n "(cached) $ac_c" 1>&6
8104 +else
8105 + if test -n "$RANLIB"; then
8106 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8107 +else
8108 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8109 + ac_dummy="$PATH"
8110 + for ac_dir in $ac_dummy; do
8111 + test -z "$ac_dir" && ac_dir=.
8112 + if test -f $ac_dir/$ac_word; then
8113 + ac_cv_prog_RANLIB="ranlib"
8114 + break
8115 + fi
8116 + done
8117 + IFS="$ac_save_ifs"
8118 + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8119 +fi
8120 +fi
8121 +RANLIB="$ac_cv_prog_RANLIB"
8122 +if test -n "$RANLIB"; then
8123 + echo "$ac_t""$RANLIB" 1>&6
8124 +else
8125 + echo "$ac_t""no" 1>&6
8126 +fi
8127 +
8128 +else
8129 + RANLIB=":"
8130 +fi
8131 +fi
8132 +
8133 +# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8134 +set dummy ${ac_tool_prefix}strip; ac_word=$2
8135 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8136 +echo "configure:2463: checking for $ac_word" >&5
8137 +if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8138 + echo $ac_n "(cached) $ac_c" 1>&6
8139 +else
8140 + if test -n "$STRIP"; then
8141 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8142 +else
8143 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8144 + ac_dummy="$PATH"
8145 + for ac_dir in $ac_dummy; do
8146 + test -z "$ac_dir" && ac_dir=.
8147 + if test -f $ac_dir/$ac_word; then
8148 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8149 + break
8150 + fi
8151 + done
8152 + IFS="$ac_save_ifs"
8153 +fi
8154 +fi
8155 +STRIP="$ac_cv_prog_STRIP"
8156 +if test -n "$STRIP"; then
8157 + echo "$ac_t""$STRIP" 1>&6
8158 +else
8159 + echo "$ac_t""no" 1>&6
8160 +fi
8161 +
8162 +
8163 +if test -z "$ac_cv_prog_STRIP"; then
8164 +if test -n "$ac_tool_prefix"; then
8165 + # Extract the first word of "strip", so it can be a program name with args.
8166 +set dummy strip; ac_word=$2
8167 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168 +echo "configure:2495: checking for $ac_word" >&5
8169 +if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8170 + echo $ac_n "(cached) $ac_c" 1>&6
8171 +else
8172 + if test -n "$STRIP"; then
8173 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8174 +else
8175 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8176 + ac_dummy="$PATH"
8177 + for ac_dir in $ac_dummy; do
8178 + test -z "$ac_dir" && ac_dir=.
8179 + if test -f $ac_dir/$ac_word; then
8180 + ac_cv_prog_STRIP="strip"
8181 + break
8182 + fi
8183 + done
8184 + IFS="$ac_save_ifs"
8185 + test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
8186 +fi
8187 +fi
8188 +STRIP="$ac_cv_prog_STRIP"
8189 +if test -n "$STRIP"; then
8190 + echo "$ac_t""$STRIP" 1>&6
8191 +else
8192 + echo "$ac_t""no" 1>&6
8193 +fi
8194 +
8195 +else
8196 + STRIP=":"
8197 +fi
8198 +fi
8199 +
8200 +
8201 +enable_dlopen=no
8202 +enable_win32_dll=no
8203 +
8204 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8205 +if test "${enable_libtool_lock+set}" = set; then
8206 + enableval="$enable_libtool_lock"
8207 + :
8208 +fi
8209 +
8210 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8211 +
8212 +# Some flags need to be propagated to the compiler or linker for good
8213 +# libtool support.
8214 +case $host in
8215 +*-*-irix6*)
8216 + # Find out which ABI we are using.
8217 + echo '#line 2544 "configure"' > conftest.$ac_ext
8218 + if { (eval echo configure:2545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8219 + case `/usr/bin/file conftest.$ac_objext` in
8220 + *32-bit*)
8221 + LD="${LD-ld} -32"
8222 + ;;
8223 + *N32*)
8224 + LD="${LD-ld} -n32"
8225 + ;;
8226 + *64-bit*)
8227 + LD="${LD-ld} -64"
8228 + ;;
8229 + esac
8230 + fi
8231 + rm -rf conftest*
8232 + ;;
8233 +
8234 +*-*-sco3.2v5*)
8235 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8236 + SAVE_CFLAGS="$CFLAGS"
8237 + CFLAGS="$CFLAGS -belf"
8238 + echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
8239 +echo "configure:2566: checking whether the C compiler needs -belf" >&5
8240 +if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
8241 + echo $ac_n "(cached) $ac_c" 1>&6
8242 +else
8243 +
8244 + ac_ext=c
8245 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8246 +ac_cpp='$CPP $CPPFLAGS'
8247 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8248 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8249 +cross_compiling=$ac_cv_prog_cc_cross
8250 +
8251 + cat > conftest.$ac_ext <<EOF
8252 +#line 2579 "configure"
8253 +#include "confdefs.h"
8254 +
8255 +int main() {
8256 +
8257 +; return 0; }
8258 +EOF
8259 +if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8260 + rm -rf conftest*
8261 + lt_cv_cc_needs_belf=yes
8262 +else
8263 + echo "configure: failed program was:" >&5
8264 + cat conftest.$ac_ext >&5
8265 + rm -rf conftest*
8266 + lt_cv_cc_needs_belf=no
8267 +fi
8268 +rm -f conftest*
8269 + ac_ext=c
8270 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8271 +ac_cpp='$CPP $CPPFLAGS'
8272 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8273 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8274 +cross_compiling=$ac_cv_prog_cc_cross
8275 +
8276 +fi
8277 +
8278 +echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
8279 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8280 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8281 + CFLAGS="$SAVE_CFLAGS"
8282 + fi
8283 + ;;
8284 +
8285 +
8286 +esac
8287 +
8288 +# Sed substitution that helps us do robust quoting. It backslashifies
8289 +# metacharacters that are still active within double-quoted strings.
8290 +Xsed='sed -e s/^X//'
8291 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8292 +
8293 +# Same as above, but do not quote variable references.
8294 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8295 +
8296 +# Sed substitution to delay expansion of an escaped shell variable in a
8297 +# double_quote_subst'ed string.
8298 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8299 +
8300 +# Constants:
8301 +rm="rm -f"
8302 +
8303 +# Global variables:
8304 +default_ofile=libtool
8305 +can_build_shared=yes
8306 +
8307 +# All known linkers require a `.a' archive for static linking (except M$VC,
8308 +# which needs '.lib').
8309 +libext=a
8310 +ltmain="$ac_aux_dir/ltmain.sh"
8311 +ofile="$default_ofile"
8312 +with_gnu_ld="$lt_cv_prog_gnu_ld"
8313 +need_locks="$enable_libtool_lock"
8314 +
8315 +old_CC="$CC"
8316 +old_CFLAGS="$CFLAGS"
8317 +
8318 +# Set sane defaults for various variables
8319 +test -z "$AR" && AR=ar
8320 +test -z "$AR_FLAGS" && AR_FLAGS=cru
8321 +test -z "$AS" && AS=as
8322 +test -z "$CC" && CC=cc
8323 +test -z "$DLLTOOL" && DLLTOOL=dlltool
8324 +test -z "$LD" && LD=ld
8325 +test -z "$LN_S" && LN_S="ln -s"
8326 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
8327 +test -z "$NM" && NM=nm
8328 +test -z "$OBJDUMP" && OBJDUMP=objdump
8329 +test -z "$RANLIB" && RANLIB=:
8330 +test -z "$STRIP" && STRIP=:
8331 +test -z "$ac_objext" && ac_objext=o
8332 +
8333 +if test x"$host" != x"$build"; then
8334 + ac_tool_prefix=${host_alias}-
8335 +else
8336 + ac_tool_prefix=
8337 +fi
8338 +
8339 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
8340 +case $host_os in
8341 +linux-gnu*) ;;
8342 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
8343 +esac
8344 +
8345 +case $host_os in
8346 +aix3*)
8347 + # AIX sometimes has problems with the GCC collect2 program. For some
8348 + # reason, if we set the COLLECT_NAMES environment variable, the problems
8349 + # vanish in a puff of smoke.
8350 + if test "X${COLLECT_NAMES+set}" != Xset; then
8351 + COLLECT_NAMES=
8352 + export COLLECT_NAMES
8353 + fi
8354 + ;;
8355 +esac
8356 +
8357 +# Determine commands to create old-style static archives.
8358 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8359 +old_postinstall_cmds='chmod 644 $oldlib'
8360 +old_postuninstall_cmds=
8361 +
8362 +if test -n "$RANLIB"; then
8363 + case $host_os in
8364 + openbsd*)
8365 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8366 + ;;
8367 + *)
8368 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8369 + ;;
8370 + esac
8371 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8372 +fi
8373 +
8374 +# Allow CC to be a program name with arguments.
8375 +set dummy $CC
8376 +compiler="$2"
8377 +
8378 +echo $ac_n "checking for objdir""... $ac_c" 1>&6
8379 +echo "configure:2706: checking for objdir" >&5
8380 +rm -f .libs 2>/dev/null
8381 +mkdir .libs 2>/dev/null
8382 +if test -d .libs; then
8383 + objdir=.libs
8384 +else
8385 + # MS-DOS does not allow filenames that begin with a dot.
8386 + objdir=_libs
8387 +fi
8388 +rmdir .libs 2>/dev/null
8389 +echo "$ac_t""$objdir" 1>&6
8390 +
8391 +
8392 +# Check whether --with-pic or --without-pic was given.
8393 +if test "${with_pic+set}" = set; then
8394 + withval="$with_pic"
8395 + pic_mode="$withval"
8396 +else
8397 + pic_mode=default
8398 +fi
8399 +
8400 +test -z "$pic_mode" && pic_mode=default
8401 +
8402 +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
8403 +# in isolation, and that seeing it set (from the cache) indicates that
8404 +# the associated values are set (in the cache) correctly too.
8405 +echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
8406 +echo "configure:2733: checking for $compiler option to produce PIC" >&5
8407 +if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
8408 + echo $ac_n "(cached) $ac_c" 1>&6
8409 +else
8410 + lt_cv_prog_cc_pic=
8411 + lt_cv_prog_cc_shlib=
8412 + lt_cv_prog_cc_wl=
8413 + lt_cv_prog_cc_static=
8414 + lt_cv_prog_cc_no_builtin=
8415 + lt_cv_prog_cc_can_build_shared=$can_build_shared
8416 +
8417 + if test "$GCC" = yes; then
8418 + lt_cv_prog_cc_wl='-Wl,'
8419 + lt_cv_prog_cc_static='-static'
8420 +
8421 + case $host_os in
8422 + aix*)
8423 + # Below there is a dirty hack to force normal static linking with -ldl
8424 + # The problem is because libdl dynamically linked with both libc and
8425 + # libC (AIX C++ library), which obviously doesn't included in libraries
8426 + # list by gcc. This cause undefined symbols with -static flags.
8427 + # This hack allows C programs to be linked with "-static -ldl", but
8428 + # not sure about C++ programs.
8429 + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
8430 + ;;
8431 + amigaos*)
8432 + # FIXME: we need at least 68020 code to build shared libraries, but
8433 + # adding the `-m68020' flag to GCC prevents building anything better,
8434 + # like `-m68040'.
8435 + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
8436 + ;;
8437 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8438 + # PIC is the default for these OSes.
8439 + ;;
8440 + darwin* | rhapsody*)
8441 + # PIC is the default on this platform
8442 + # Common symbols not allowed in MH_DYLIB files
8443 + lt_cv_prog_cc_pic='-fno-common'
8444 + ;;
8445 + cygwin* | mingw* | pw32* | os2*)
8446 + # This hack is so that the source file can tell whether it is being
8447 + # built for inclusion in a dll (and should export symbols for example).
8448 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
8449 + ;;
8450 + sysv4*MP*)
8451 + if test -d /usr/nec; then
8452 + lt_cv_prog_cc_pic=-Kconform_pic
8453 + fi
8454 + ;;
8455 + *)
8456 + lt_cv_prog_cc_pic='-fPIC'
8457 + ;;
8458 + esac
8459 + else
8460 + # PORTME Check for PIC flags for the system compiler.
8461 + case $host_os in
8462 + aix3* | aix4* | aix5*)
8463 + lt_cv_prog_cc_wl='-Wl,'
8464 + # All AIX code is PIC.
8465 + if test "$host_cpu" = ia64; then
8466 + # AIX 5 now supports IA64 processor
8467 + lt_cv_prog_cc_static='-Bstatic'
8468 + else
8469 + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
8470 + fi
8471 + ;;
8472 +
8473 + hpux9* | hpux10* | hpux11*)
8474 + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
8475 + lt_cv_prog_cc_wl='-Wl,'
8476 + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
8477 + lt_cv_prog_cc_pic='+Z'
8478 + ;;
8479 +
8480 + irix5* | irix6* | nonstopux*)
8481 + lt_cv_prog_cc_wl='-Wl,'
8482 + lt_cv_prog_cc_static='-non_shared'
8483 + # PIC (with -KPIC) is the default.
8484 + ;;
8485 +
8486 + cygwin* | mingw* | pw32* | os2*)
8487 + # This hack is so that the source file can tell whether it is being
8488 + # built for inclusion in a dll (and should export symbols for example).
8489 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
8490 + ;;
8491 +
8492 + newsos6)
8493 + lt_cv_prog_cc_pic='-KPIC'
8494 + lt_cv_prog_cc_static='-Bstatic'
8495 + ;;
8496 +
8497 + osf3* | osf4* | osf5*)
8498 + # All OSF/1 code is PIC.
8499 + lt_cv_prog_cc_wl='-Wl,'
8500 + lt_cv_prog_cc_static='-non_shared'
8501 + ;;
8502 +
8503 + sco3.2v5*)
8504 + lt_cv_prog_cc_pic='-Kpic'
8505 + lt_cv_prog_cc_static='-dn'
8506 + lt_cv_prog_cc_shlib='-belf'
8507 + ;;
8508 +
8509 + solaris*)
8510 + lt_cv_prog_cc_pic='-KPIC'
8511 + lt_cv_prog_cc_static='-Bstatic'
8512 + lt_cv_prog_cc_wl='-Wl,'
8513 + ;;
8514 +
8515 + sunos4*)
8516 + lt_cv_prog_cc_pic='-PIC'
8517 + lt_cv_prog_cc_static='-Bstatic'
8518 + lt_cv_prog_cc_wl='-Qoption ld '
8519 + ;;
8520 +
8521 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8522 + lt_cv_prog_cc_pic='-KPIC'
8523 + lt_cv_prog_cc_static='-Bstatic'
8524 + lt_cv_prog_cc_wl='-Wl,'
8525 + ;;
8526 +
8527 + uts4*)
8528 + lt_cv_prog_cc_pic='-pic'
8529 + lt_cv_prog_cc_static='-Bstatic'
8530 + ;;
8531 +
8532 + sysv4*MP*)
8533 + if test -d /usr/nec ;then
8534 + lt_cv_prog_cc_pic='-Kconform_pic'
8535 + lt_cv_prog_cc_static='-Bstatic'
8536 + fi
8537 + ;;
8538 +
8539 + *)
8540 + lt_cv_prog_cc_can_build_shared=no
8541 + ;;
8542 + esac
8543 + fi
8544 +
8545 +fi
8546 +
8547 +if test -z "$lt_cv_prog_cc_pic"; then
8548 + echo "$ac_t""none" 1>&6
8549 +else
8550 + echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
8551 +
8552 + # Check to make sure the pic_flag actually works.
8553 + echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
8554 +echo "configure:2881: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
8555 + if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
8556 + echo $ac_n "(cached) $ac_c" 1>&6
8557 +else
8558 + save_CFLAGS="$CFLAGS"
8559 + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
8560 + cat > conftest.$ac_ext <<EOF
8561 +#line 2888 "configure"
8562 +#include "confdefs.h"
8563 +
8564 +int main() {
8565 +
8566 +; return 0; }
8567 +EOF
8568 +if { (eval echo configure:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8569 + rm -rf conftest*
8570 + case $host_os in
8571 + hpux9* | hpux10* | hpux11*)
8572 + # On HP-UX, both CC and GCC only warn that PIC is supported... then
8573 + # they create non-PIC objects. So, if there were any warnings, we
8574 + # assume that PIC is not supported.
8575 + if test -s conftest.err; then
8576 + lt_cv_prog_cc_pic_works=no
8577 + else
8578 + lt_cv_prog_cc_pic_works=yes
8579 + fi
8580 + ;;
8581 + *)
8582 + lt_cv_prog_cc_pic_works=yes
8583 + ;;
8584 + esac
8585 +
8586 +else
8587 + echo "configure: failed program was:" >&5
8588 + cat conftest.$ac_ext >&5
8589 + rm -rf conftest*
8590 + lt_cv_prog_cc_pic_works=no
8591 +
8592 +fi
8593 +rm -f conftest*
8594 + CFLAGS="$save_CFLAGS"
8595 +
8596 +fi
8597 +
8598 +
8599 + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
8600 + lt_cv_prog_cc_pic=
8601 + lt_cv_prog_cc_can_build_shared=no
8602 + else
8603 + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
8604 + fi
8605 +
8606 + echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
8607 +fi
8608 +
8609 +# Check for any special shared library compilation flags.
8610 +if test -n "$lt_cv_prog_cc_shlib"; then
8611 + echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
8612 + if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
8613 + else
8614 + echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
8615 + lt_cv_prog_cc_can_build_shared=no
8616 + fi
8617 +fi
8618 +
8619 +echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
8620 +echo "configure:2947: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
8621 +if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
8622 + echo $ac_n "(cached) $ac_c" 1>&6
8623 +else
8624 + lt_cv_prog_cc_static_works=no
8625 + save_LDFLAGS="$LDFLAGS"
8626 + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
8627 + cat > conftest.$ac_ext <<EOF
8628 +#line 2955 "configure"
8629 +#include "confdefs.h"
8630 +
8631 +int main() {
8632 +
8633 +; return 0; }
8634 +EOF
8635 +if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8636 + rm -rf conftest*
8637 + lt_cv_prog_cc_static_works=yes
8638 +else
8639 + echo "configure: failed program was:" >&5
8640 + cat conftest.$ac_ext >&5
8641 +fi
8642 +rm -f conftest*
8643 + LDFLAGS="$save_LDFLAGS"
8644 +
8645 +fi
8646 +
8647 +
8648 +# Belt *and* braces to stop my trousers falling down:
8649 +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
8650 +echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
8651 +
8652 +pic_flag="$lt_cv_prog_cc_pic"
8653 +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
8654 +wl="$lt_cv_prog_cc_wl"
8655 +link_static_flag="$lt_cv_prog_cc_static"
8656 +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
8657 +can_build_shared="$lt_cv_prog_cc_can_build_shared"
8658 +
8659 +
8660 +# Check to see if options -o and -c are simultaneously supported by compiler
8661 +echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
8662 +echo "configure:2989: checking if $compiler supports -c -o file.$ac_objext" >&5
8663 +if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
8664 + echo $ac_n "(cached) $ac_c" 1>&6
8665 +else
8666 +
8667 +$rm -r conftest 2>/dev/null
8668 +mkdir conftest
8669 +cd conftest
8670 +echo "int some_variable = 0;" > conftest.$ac_ext
8671 +mkdir out
8672 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
8673 +# that will create temporary files in the current directory regardless of
8674 +# the output directory. Thus, making CWD read-only will cause this test
8675 +# to fail, enabling locking or at least warning the user not to do parallel
8676 +# builds.
8677 +chmod -w .
8678 +save_CFLAGS="$CFLAGS"
8679 +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
8680 +compiler_c_o=no
8681 +if { (eval echo configure:3008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
8682 + # The compiler can only warn and ignore the option if not recognized
8683 + # So say no if there are warnings
8684 + if test -s out/conftest.err; then
8685 + lt_cv_compiler_c_o=no
8686 + else
8687 + lt_cv_compiler_c_o=yes
8688 + fi
8689 +else
8690 + # Append any errors to the config.log.
8691 + cat out/conftest.err 1>&5
8692 + lt_cv_compiler_c_o=no
8693 +fi
8694 +CFLAGS="$save_CFLAGS"
8695 +chmod u+w .
8696 +$rm conftest* out/*
8697 +rmdir out
8698 +cd ..
8699 +rmdir conftest
8700 +$rm -r conftest 2>/dev/null
8701 +
8702 +fi
8703 +
8704 +compiler_c_o=$lt_cv_compiler_c_o
8705 +echo "$ac_t""$compiler_c_o" 1>&6
8706 +
8707 +if test x"$compiler_c_o" = x"yes"; then
8708 + # Check to see if we can write to a .lo
8709 + echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
8710 +echo "configure:3037: checking if $compiler supports -c -o file.lo" >&5
8711 + if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
8712 + echo $ac_n "(cached) $ac_c" 1>&6
8713 +else
8714 +
8715 + lt_cv_compiler_o_lo=no
8716 + save_CFLAGS="$CFLAGS"
8717 + CFLAGS="$CFLAGS -c -o conftest.lo"
8718 + save_objext="$ac_objext"
8719 + ac_objext=lo
8720 + cat > conftest.$ac_ext <<EOF
8721 +#line 3048 "configure"
8722 +#include "confdefs.h"
8723 +
8724 +int main() {
8725 +int some_variable = 0;
8726 +; return 0; }
8727 +EOF
8728 +if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8729 + rm -rf conftest*
8730 + # The compiler can only warn and ignore the option if not recognized
8731 + # So say no if there are warnings
8732 + if test -s conftest.err; then
8733 + lt_cv_compiler_o_lo=no
8734 + else
8735 + lt_cv_compiler_o_lo=yes
8736 + fi
8737 +
8738 +else
8739 + echo "configure: failed program was:" >&5
8740 + cat conftest.$ac_ext >&5
8741 +fi
8742 +rm -f conftest*
8743 + ac_objext="$save_objext"
8744 + CFLAGS="$save_CFLAGS"
8745 +
8746 +fi
8747 +
8748 + compiler_o_lo=$lt_cv_compiler_o_lo
8749 + echo "$ac_t""$compiler_o_lo" 1>&6
8750 +else
8751 + compiler_o_lo=no
8752 +fi
8753 +
8754 +# Check to see if we can do hard links to lock some files if needed
8755 +hard_links="nottested"
8756 +if test "$compiler_c_o" = no && test "$need_locks" != no; then
8757 + # do not overwrite the value of need_locks provided by the user
8758 + echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
8759 +echo "configure:3086: checking if we can lock with hard links" >&5
8760 + hard_links=yes
8761 + $rm conftest*
8762 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
8763 + touch conftest.a
8764 + ln conftest.a conftest.b 2>&5 || hard_links=no
8765 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
8766 + echo "$ac_t""$hard_links" 1>&6
8767 + if test "$hard_links" = no; then
8768 + echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
8769 + need_locks=warn
8770 + fi
8771 +else
8772 + need_locks=no
8773 +fi
8774 +
8775 +if test "$GCC" = yes; then
8776 + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
8777 + echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
8778 +echo "configure:3105: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8779 + echo "int some_variable = 0;" > conftest.$ac_ext
8780 + save_CFLAGS="$CFLAGS"
8781 + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
8782 + compiler_rtti_exceptions=no
8783 + cat > conftest.$ac_ext <<EOF
8784 +#line 3111 "configure"
8785 +#include "confdefs.h"
8786 +
8787 +int main() {
8788 +int some_variable = 0;
8789 +; return 0; }
8790 +EOF
8791 +if { (eval echo configure:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8792 + rm -rf conftest*
8793 + # The compiler can only warn and ignore the option if not recognized
8794 + # So say no if there are warnings
8795 + if test -s conftest.err; then
8796 + compiler_rtti_exceptions=no
8797 + else
8798 + compiler_rtti_exceptions=yes
8799 + fi
8800 +
8801 +else
8802 + echo "configure: failed program was:" >&5
8803 + cat conftest.$ac_ext >&5
8804 +fi
8805 +rm -f conftest*
8806 + CFLAGS="$save_CFLAGS"
8807 + echo "$ac_t""$compiler_rtti_exceptions" 1>&6
8808 +
8809 + if test "$compiler_rtti_exceptions" = "yes"; then
8810 + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
8811 + else
8812 + no_builtin_flag=' -fno-builtin'
8813 + fi
8814 +fi
8815 +
8816 +# See if the linker supports building shared libraries.
8817 +echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
8818 +echo "configure:3145: checking whether the linker ($LD) supports shared libraries" >&5
8819 +
8820 +allow_undefined_flag=
8821 +no_undefined_flag=
8822 +need_lib_prefix=unknown
8823 +need_version=unknown
8824 +# when you set need_version to no, make sure it does not cause -set_version
8825 +# flags to be left without arguments
8826 +archive_cmds=
8827 +archive_expsym_cmds=
8828 +old_archive_from_new_cmds=
8829 +old_archive_from_expsyms_cmds=
8830 +export_dynamic_flag_spec=
8831 +whole_archive_flag_spec=
8832 +thread_safe_flag_spec=
8833 +hardcode_into_libs=no
8834 +hardcode_libdir_flag_spec=
8835 +hardcode_libdir_separator=
8836 +hardcode_direct=no
8837 +hardcode_minus_L=no
8838 +hardcode_shlibpath_var=unsupported
8839 +runpath_var=
8840 +link_all_deplibs=unknown
8841 +always_export_symbols=no
8842 +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
8843 +# include_expsyms should be a list of space-separated symbols to be *always*
8844 +# included in the symbol list
8845 +include_expsyms=
8846 +# exclude_expsyms can be an egrep regular expression of symbols to exclude
8847 +# it will be wrapped by ` (' and `)$', so one must not match beginning or
8848 +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8849 +# as well as any symbol that contains `d'.
8850 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8851 +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8852 +# platforms (ab)use it in PIC code, but their linkers get confused if
8853 +# the symbol is explicitly referenced. Since portable code cannot
8854 +# rely on this symbol name, it's probably fine to never include it in
8855 +# preloaded symbol tables.
8856 +extract_expsyms_cmds=
8857 +
8858 +case $host_os in
8859 +cygwin* | mingw* | pw32*)
8860 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
8861 + # When not using gcc, we currently assume that we are using
8862 + # Microsoft Visual C++.
8863 + if test "$GCC" != yes; then
8864 + with_gnu_ld=no
8865 + fi
8866 + ;;
8867 +openbsd*)
8868 + with_gnu_ld=no
8869 + ;;
8870 +esac
8871 +
8872 +ld_shlibs=yes
8873 +if test "$with_gnu_ld" = yes; then
8874 + # If archive_cmds runs LD, not CC, wlarc should be empty
8875 + wlarc='${wl}'
8876 +
8877 + # See if GNU ld supports shared libraries.
8878 + case $host_os in
8879 + aix3* | aix4* | aix5*)
8880 + # On AIX, the GNU linker is very broken
8881 + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
8882 + ld_shlibs=no
8883 + cat <<EOF 1>&2
8884 +
8885 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8886 +*** to be unable to reliably create shared libraries on AIX.
8887 +*** Therefore, libtool is disabling shared libraries support. If you
8888 +*** really care for shared libraries, you may want to modify your PATH
8889 +*** so that a non-GNU linker is found, and then restart.
8890 +
8891 +EOF
8892 + ;;
8893 +
8894 + amigaos*)
8895 + 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)'
8896 + hardcode_libdir_flag_spec='-L$libdir'
8897 + hardcode_minus_L=yes
8898 +
8899 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8900 + # that the semantics of dynamic libraries on AmigaOS, at least up
8901 + # to version 4, is to share data among multiple programs linked
8902 + # with the same dynamic library. Since this doesn't match the
8903 + # behavior of shared libraries on other platforms, we can use
8904 + # them.
8905 + ld_shlibs=no
8906 + ;;
8907 +
8908 + beos*)
8909 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8910 + allow_undefined_flag=unsupported
8911 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8912 + # support --undefined. This deserves some investigation. FIXME
8913 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8914 + else
8915 + ld_shlibs=no
8916 + fi
8917 + ;;
8918 +
8919 + cygwin* | mingw* | pw32*)
8920 + # hardcode_libdir_flag_spec is actually meaningless, as there is
8921 + # no search path for DLLs.
8922 + hardcode_libdir_flag_spec='-L$libdir'
8923 + allow_undefined_flag=unsupported
8924 + always_export_symbols=yes
8925 +
8926 + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
8927 + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
8928 + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
8929 + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
8930 + else $CC -o impgen impgen.c ; fi)~
8931 + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
8932 +
8933 + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
8934 +
8935 + # cygwin and mingw dlls have different entry points and sets of symbols
8936 + # to exclude.
8937 + # FIXME: what about values for MSVC?
8938 + dll_entry=__cygwin_dll_entry@12
8939 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
8940 + case $host_os in
8941 + mingw*)
8942 + # mingw values
8943 + dll_entry=_DllMainCRTStartup@12
8944 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
8945 + ;;
8946 + esac
8947 +
8948 + # mingw and cygwin differ, and it's simplest to just exclude the union
8949 + # of the two symbol sets.
8950 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
8951 +
8952 + # recent cygwin and mingw systems supply a stub DllMain which the user
8953 + # can override, but on older systems we have to supply one (in ltdll.c)
8954 + if test "x$lt_cv_need_dllmain" = "xyes"; then
8955 + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
8956 + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
8957 + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
8958 + else
8959 + ltdll_obj=
8960 + ltdll_cmds=
8961 + fi
8962 +
8963 + # Extract the symbol export list from an `--export-all' def file,
8964 + # then regenerate the def file from the symbol export list, so that
8965 + # the compiled dll only exports the symbol export list.
8966 + # Be careful not to strip the DATA tag left be newer dlltools.
8967 + export_symbols_cmds="$ltdll_cmds"'
8968 + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
8969 + sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
8970 +
8971 + # If the export-symbols file already is a .def file (1st line
8972 + # is EXPORTS), use it as is.
8973 + # If DATA tags from a recent dlltool are present, honour them!
8974 + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
8975 + cp $export_symbols $output_objdir/$soname-def;
8976 + else
8977 + echo EXPORTS > $output_objdir/$soname-def;
8978 + _lt_hint=1;
8979 + cat $export_symbols | while read symbol; do
8980 + set dummy \$symbol;
8981 + case \$# in
8982 + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
8983 + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
8984 + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
8985 + esac;
8986 + _lt_hint=`expr 1 + \$_lt_hint`;
8987 + done;
8988 + fi~
8989 + '"$ltdll_cmds"'
8990 + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
8991 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
8992 + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
8993 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
8994 + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
8995 + ;;
8996 +
8997 + netbsd*)
8998 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8999 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9000 + wlarc=
9001 + else
9002 + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003 + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004 + fi
9005 + ;;
9006 +
9007 + solaris* | sysv5*)
9008 + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
9009 + ld_shlibs=no
9010 + cat <<EOF 1>&2
9011 +
9012 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9013 +*** create shared libraries on Solaris systems. Therefore, libtool
9014 +*** is disabling shared libraries support. We urge you to upgrade GNU
9015 +*** binutils to release 2.9.1 or newer. Another option is to modify
9016 +*** your PATH or compiler configuration so that the native linker is
9017 +*** used, and then restart.
9018 +
9019 +EOF
9020 + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
9021 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9023 + else
9024 + ld_shlibs=no
9025 + fi
9026 + ;;
9027 +
9028 + sunos4*)
9029 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9030 + wlarc=
9031 + hardcode_direct=yes
9032 + hardcode_shlibpath_var=no
9033 + ;;
9034 +
9035 + *)
9036 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
9037 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039 + else
9040 + ld_shlibs=no
9041 + fi
9042 + ;;
9043 + esac
9044 +
9045 + if test "$ld_shlibs" = yes; then
9046 + runpath_var=LD_RUN_PATH
9047 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9048 + export_dynamic_flag_spec='${wl}--export-dynamic'
9049 + case $host_os in
9050 + cygwin* | mingw* | pw32*)
9051 + # dlltool doesn't understand --whole-archive et. al.
9052 + whole_archive_flag_spec=
9053 + ;;
9054 + *)
9055 + # ancient GNU ld didn't support --whole-archive et. al.
9056 + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
9057 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9058 + else
9059 + whole_archive_flag_spec=
9060 + fi
9061 + ;;
9062 + esac
9063 + fi
9064 +else
9065 + # PORTME fill in a description of your system's linker (not GNU ld)
9066 + case $host_os in
9067 + aix3*)
9068 + allow_undefined_flag=unsupported
9069 + always_export_symbols=yes
9070 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9071 + # Note: this linker hardcodes the directories in LIBPATH if there
9072 + # are no directories specified by -L.
9073 + hardcode_minus_L=yes
9074 + if test "$GCC" = yes && test -z "$link_static_flag"; then
9075 + # Neither direct hardcoding nor static linking is supported with a
9076 + # broken collect2.
9077 + hardcode_direct=unsupported
9078 + fi
9079 + ;;
9080 +
9081 + aix4* | aix5*)
9082 + if test "$host_cpu" = ia64; then
9083 + # On IA64, the linker does run time linking by default, so we don't
9084 + # have to do anything special.
9085 + aix_use_runtimelinking=no
9086 + exp_sym_flag='-Bexport'
9087 + no_entry_flag=""
9088 + else
9089 + aix_use_runtimelinking=no
9090 +
9091 + # Test if we are trying to use run time linking or normal
9092 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9093 + # need to do runtime linking.
9094 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9095 + for ld_flag in $LDFLAGS; do
9096 + case $ld_flag in
9097 + *-brtl*)
9098 + aix_use_runtimelinking=yes
9099 + break
9100 + ;;
9101 + esac
9102 + done
9103 + esac
9104 +
9105 + exp_sym_flag='-bexport'
9106 + no_entry_flag='-bnoentry'
9107 + fi
9108 +
9109 + # When large executables or shared objects are built, AIX ld can
9110 + # have problems creating the table of contents. If linking a library
9111 + # or program results in "error TOC overflow" add -mminimal-toc to
9112 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9113 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9114 +
9115 + hardcode_direct=yes
9116 + archive_cmds=''
9117 + hardcode_libdir_separator=':'
9118 + if test "$GCC" = yes; then
9119 + case $host_os in aix4.[012]|aix4.[012].*)
9120 + collect2name=`${CC} -print-prog-name=collect2`
9121 + if test -f "$collect2name" && \
9122 + strings "$collect2name" | grep resolve_lib_name >/dev/null
9123 + then
9124 + # We have reworked collect2
9125 + hardcode_direct=yes
9126 + else
9127 + # We have old collect2
9128 + hardcode_direct=unsupported
9129 + # It fails to find uninstalled libraries when the uninstalled
9130 + # path is not listed in the libpath. Setting hardcode_minus_L
9131 + # to unsupported forces relinking
9132 + hardcode_minus_L=yes
9133 + hardcode_libdir_flag_spec='-L$libdir'
9134 + hardcode_libdir_separator=
9135 + fi
9136 + esac
9137 +
9138 + shared_flag='-shared'
9139 + else
9140 + # not using gcc
9141 + if test "$host_cpu" = ia64; then
9142 + shared_flag='${wl}-G'
9143 + else
9144 + if test "$aix_use_runtimelinking" = yes; then
9145 + shared_flag='${wl}-G'
9146 + else
9147 + shared_flag='${wl}-bM:SRE'
9148 + fi
9149 + fi
9150 + fi
9151 +
9152 + # It seems that -bexpall can do strange things, so it is better to
9153 + # generate a list of symbols to export.
9154 + always_export_symbols=yes
9155 + if test "$aix_use_runtimelinking" = yes; then
9156 + # Warning - without using the other runtime loading flags (-brtl),
9157 + # -berok will link without error, but may produce a broken library.
9158 + allow_undefined_flag='-berok'
9159 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
9160 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9161 + else
9162 + if test "$host_cpu" = ia64; then
9163 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9164 + allow_undefined_flag="-z nodefs"
9165 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9166 + else
9167 + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
9168 + # Warning - without using the other run time loading flags,
9169 + # -berok will link without error, but may produce a broken library.
9170 + allow_undefined_flag='${wl}-berok'
9171 + # This is a bit strange, but is similar to how AIX traditionally builds
9172 + # it's shared libraries.
9173 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
9174 + fi
9175 + fi
9176 + ;;
9177 +
9178 + amigaos*)
9179 + 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)'
9180 + hardcode_libdir_flag_spec='-L$libdir'
9181 + hardcode_minus_L=yes
9182 + # see comment about different semantics on the GNU ld section
9183 + ld_shlibs=no
9184 + ;;
9185 +
9186 + cygwin* | mingw* | pw32*)
9187 + # When not using gcc, we currently assume that we are using
9188 + # Microsoft Visual C++.
9189 + # hardcode_libdir_flag_spec is actually meaningless, as there is
9190 + # no search path for DLLs.
9191 + hardcode_libdir_flag_spec=' '
9192 + allow_undefined_flag=unsupported
9193 + # Tell ltmain to make .lib files, not .a files.
9194 + libext=lib
9195 + # FIXME: Setting linknames here is a bad hack.
9196 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9197 + # The linker will automatically build a .lib file if we build a DLL.
9198 + old_archive_from_new_cmds='true'
9199 + # FIXME: Should let the user specify the lib program.
9200 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9201 + fix_srcfile_path='`cygpath -w "$srcfile"`'
9202 + ;;
9203 +
9204 + darwin* | rhapsody*)
9205 + case "$host_os" in
9206 + rhapsody* | darwin1.[012])
9207 + allow_undefined_flag='-undefined suppress'
9208 + ;;
9209 + *) # Darwin 1.3 on
9210 + allow_undefined_flag='-flat_namespace -undefined suppress'
9211 + ;;
9212 + esac
9213 + # FIXME: Relying on posixy $() will cause problems for
9214 + # cross-compilation, but unfortunately the echo tests do not
9215 + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
9216 + # `"' quotes if we put them in here... so don't!
9217 + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
9218 + # We need to add '_' to the symbols in $export_symbols first
9219 + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
9220 + hardcode_direct=yes
9221 + hardcode_shlibpath_var=no
9222 + whole_archive_flag_spec='-all_load $convenience'
9223 + ;;
9224 +
9225 + freebsd1*)
9226 + ld_shlibs=no
9227 + ;;
9228 +
9229 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9230 + # support. Future versions do this automatically, but an explicit c++rt0.o
9231 + # does not break anything, and helps significantly (at the cost of a little
9232 + # extra space).
9233 + freebsd2.2*)
9234 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9235 + hardcode_libdir_flag_spec='-R$libdir'
9236 + hardcode_direct=yes
9237 + hardcode_shlibpath_var=no
9238 + ;;
9239 +
9240 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9241 + freebsd2*)
9242 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9243 + hardcode_direct=yes
9244 + hardcode_minus_L=yes
9245 + hardcode_shlibpath_var=no
9246 + ;;
9247 +
9248 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9249 + freebsd*)
9250 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9251 + hardcode_libdir_flag_spec='-R$libdir'
9252 + hardcode_direct=yes
9253 + hardcode_shlibpath_var=no
9254 + ;;
9255 +
9256 + hpux9* | hpux10* | hpux11*)
9257 + case $host_os in
9258 + hpux9*) 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' ;;
9259 + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
9260 + esac
9261 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9262 + hardcode_libdir_separator=:
9263 + hardcode_direct=yes
9264 + hardcode_minus_L=yes # Not in the search PATH, but as the default
9265 + # location of the library.
9266 + export_dynamic_flag_spec='${wl}-E'
9267 + ;;
9268 +
9269 + irix5* | irix6* | nonstopux*)
9270 + if test "$GCC" = yes; then
9271 + 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'
9272 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273 + else
9274 + 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'
9275 + hardcode_libdir_flag_spec='-rpath $libdir'
9276 + fi
9277 + hardcode_libdir_separator=:
9278 + link_all_deplibs=yes
9279 + ;;
9280 +
9281 + netbsd*)
9282 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9283 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9284 + else
9285 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9286 + fi
9287 + hardcode_libdir_flag_spec='-R$libdir'
9288 + hardcode_direct=yes
9289 + hardcode_shlibpath_var=no
9290 + ;;
9291 +
9292 + newsos6)
9293 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294 + hardcode_direct=yes
9295 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 + hardcode_libdir_separator=:
9297 + hardcode_shlibpath_var=no
9298 + ;;
9299 +
9300 + openbsd*)
9301 + hardcode_direct=yes
9302 + hardcode_shlibpath_var=no
9303 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9304 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9305 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9306 + export_dynamic_flag_spec='${wl}-E'
9307 + else
9308 + case "$host_os" in
9309 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9310 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9311 + hardcode_libdir_flag_spec='-R$libdir'
9312 + ;;
9313 + *)
9314 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9315 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9316 + ;;
9317 + esac
9318 + fi
9319 + ;;
9320 +
9321 + os2*)
9322 + hardcode_libdir_flag_spec='-L$libdir'
9323 + hardcode_minus_L=yes
9324 + allow_undefined_flag=unsupported
9325 + 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'
9326 + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9327 + ;;
9328 +
9329 + osf3*)
9330 + if test "$GCC" = yes; then
9331 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9332 + 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'
9333 + else
9334 + allow_undefined_flag=' -expect_unresolved \*'
9335 + 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'
9336 + fi
9337 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338 + hardcode_libdir_separator=:
9339 + ;;
9340 +
9341 + osf4* | osf5*) # as osf3* with the addition of -msym flag
9342 + if test "$GCC" = yes; then
9343 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9344 + 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'
9345 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9346 + else
9347 + allow_undefined_flag=' -expect_unresolved \*'
9348 + 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'
9349 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9350 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
9351 +
9352 + #Both c and cxx compiler support -rpath directly
9353 + hardcode_libdir_flag_spec='-rpath $libdir'
9354 + fi
9355 + hardcode_libdir_separator=:
9356 + ;;
9357 +
9358 + sco3.2v5*)
9359 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 + hardcode_shlibpath_var=no
9361 + runpath_var=LD_RUN_PATH
9362 + hardcode_runpath_var=yes
9363 + export_dynamic_flag_spec='${wl}-Bexport'
9364 + ;;
9365 +
9366 + solaris*)
9367 + # gcc --version < 3.0 without binutils cannot create self contained
9368 + # shared libraries reliably, requiring libgcc.a to resolve some of
9369 + # the object symbols generated in some cases. Libraries that use
9370 + # assert need libgcc.a to resolve __eprintf, for example. Linking
9371 + # a copy of libgcc.a into every shared library to guarantee resolving
9372 + # such symbols causes other problems: According to Tim Van Holder
9373 + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
9374 + # (to the application) exception stack for one thing.
9375 + no_undefined_flag=' -z defs'
9376 + if test "$GCC" = yes; then
9377 + case `$CC --version 2>/dev/null` in
9378 + [12].*)
9379 + cat <<EOF 1>&2
9380 +
9381 +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
9382 +*** create self contained shared libraries on Solaris systems, without
9383 +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
9384 +*** -no-undefined support, which will at least allow you to build shared
9385 +*** libraries. However, you may find that when you link such libraries
9386 +*** into an application without using GCC, you have to manually add
9387 +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
9388 +*** upgrade to a newer version of GCC. Another option is to rebuild your
9389 +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
9390 +
9391 +EOF
9392 + no_undefined_flag=
9393 + ;;
9394 + esac
9395 + fi
9396 + # $CC -shared without GNU ld will not create a library from C++
9397 + # object files and a static libstdc++, better avoid it by now
9398 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9400 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9401 + hardcode_libdir_flag_spec='-R$libdir'
9402 + hardcode_shlibpath_var=no
9403 + case $host_os in
9404 + solaris2.[0-5] | solaris2.[0-5].*) ;;
9405 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9406 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9407 + esac
9408 + link_all_deplibs=yes
9409 + ;;
9410 +
9411 + sunos4*)
9412 + if test "x$host_vendor" = xsequent; then
9413 + # Use $CC to link under sequent, because it throws in some extra .o
9414 + # files that make .init and .fini sections work.
9415 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9416 + else
9417 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9418 + fi
9419 + hardcode_libdir_flag_spec='-L$libdir'
9420 + hardcode_direct=yes
9421 + hardcode_minus_L=yes
9422 + hardcode_shlibpath_var=no
9423 + ;;
9424 +
9425 + sysv4)
9426 + case $host_vendor in
9427 + sni)
9428 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 + hardcode_direct=yes # is this really true???
9430 + ;;
9431 + siemens)
9432 + ## LD is ld it makes a PLAMLIB
9433 + ## CC just makes a GrossModule.
9434 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9435 + reload_cmds='$CC -r -o $output$reload_objs'
9436 + hardcode_direct=no
9437 + ;;
9438 + motorola)
9439 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9440 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9441 + ;;
9442 + esac
9443 + runpath_var='LD_RUN_PATH'
9444 + hardcode_shlibpath_var=no
9445 + ;;
9446 +
9447 + sysv4.3*)
9448 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 + hardcode_shlibpath_var=no
9450 + export_dynamic_flag_spec='-Bexport'
9451 + ;;
9452 +
9453 + sysv5*)
9454 + no_undefined_flag=' -z text'
9455 + # $CC -shared without GNU ld will not create a library from C++
9456 + # object files and a static libstdc++, better avoid it by now
9457 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9459 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9460 + hardcode_libdir_flag_spec=
9461 + hardcode_shlibpath_var=no
9462 + runpath_var='LD_RUN_PATH'
9463 + ;;
9464 +
9465 + uts4*)
9466 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467 + hardcode_libdir_flag_spec='-L$libdir'
9468 + hardcode_shlibpath_var=no
9469 + ;;
9470 +
9471 + dgux*)
9472 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 + hardcode_libdir_flag_spec='-L$libdir'
9474 + hardcode_shlibpath_var=no
9475 + ;;
9476 +
9477 + sysv4*MP*)
9478 + if test -d /usr/nec; then
9479 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 + hardcode_shlibpath_var=no
9481 + runpath_var=LD_RUN_PATH
9482 + hardcode_runpath_var=yes
9483 + ld_shlibs=yes
9484 + fi
9485 + ;;
9486 +
9487 + sysv4.2uw2*)
9488 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9489 + hardcode_direct=yes
9490 + hardcode_minus_L=no
9491 + hardcode_shlibpath_var=no
9492 + hardcode_runpath_var=yes
9493 + runpath_var=LD_RUN_PATH
9494 + ;;
9495 +
9496 + sysv5uw7* | unixware7*)
9497 + no_undefined_flag='${wl}-z ${wl}text'
9498 + if test "$GCC" = yes; then
9499 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9500 + else
9501 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 + fi
9503 + runpath_var='LD_RUN_PATH'
9504 + hardcode_shlibpath_var=no
9505 + ;;
9506 +
9507 + *)
9508 + ld_shlibs=no
9509 + ;;
9510 + esac
9511 +fi
9512 +echo "$ac_t""$ld_shlibs" 1>&6
9513 +test "$ld_shlibs" = no && can_build_shared=no
9514 +
9515 +# Check hardcoding attributes.
9516 +echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
9517 +echo "configure:3844: checking how to hardcode library paths into programs" >&5
9518 +hardcode_action=
9519 +if test -n "$hardcode_libdir_flag_spec" || \
9520 + test -n "$runpath_var"; then
9521 +
9522 + # We can hardcode non-existant directories.
9523 + if test "$hardcode_direct" != no &&
9524 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
9525 + # have to relink, otherwise we might link with an installed library
9526 + # when we should be linking with a yet-to-be-installed one
9527 + ## test "$hardcode_shlibpath_var" != no &&
9528 + test "$hardcode_minus_L" != no; then
9529 + # Linking always hardcodes the temporary library directory.
9530 + hardcode_action=relink
9531 + else
9532 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
9533 + hardcode_action=immediate
9534 + fi
9535 +else
9536 + # We cannot hardcode anything, or else we can only hardcode existing
9537 + # directories.
9538 + hardcode_action=unsupported
9539 +fi
9540 +echo "$ac_t""$hardcode_action" 1>&6
9541 +
9542 +striplib=
9543 +old_striplib=
9544 +echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
9545 +echo "configure:3872: checking whether stripping libraries is possible" >&5
9546 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9547 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9548 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9549 + echo "$ac_t""yes" 1>&6
9550 +else
9551 + echo "$ac_t""no" 1>&6
9552 +fi
9553 +
9554 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
9555 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
9556 +
9557 +# PORTME Fill in your ld.so characteristics
9558 +echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
9559 +echo "configure:3886: checking dynamic linker characteristics" >&5
9560 +library_names_spec=
9561 +libname_spec='lib$name'
9562 +soname_spec=
9563 +postinstall_cmds=
9564 +postuninstall_cmds=
9565 +finish_cmds=
9566 +finish_eval=
9567 +shlibpath_var=
9568 +shlibpath_overrides_runpath=unknown
9569 +version_type=none
9570 +dynamic_linker="$host_os ld.so"
9571 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
9572 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9573 +
9574 +case $host_os in
9575 +aix3*)
9576 + version_type=linux
9577 + library_names_spec='${libname}${release}.so$versuffix $libname.a'
9578 + shlibpath_var=LIBPATH
9579 +
9580 + # AIX has no versioning support, so we append a major version to the name.
9581 + soname_spec='${libname}${release}.so$major'
9582 + ;;
9583 +
9584 +aix4* | aix5*)
9585 + version_type=linux
9586 + need_lib_prefix=no
9587 + need_version=no
9588 + hardcode_into_libs=yes
9589 + if test "$host_cpu" = ia64; then
9590 + # AIX 5 supports IA64
9591 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
9592 + shlibpath_var=LD_LIBRARY_PATH
9593 + else
9594 + # With GCC up to 2.95.x, collect2 would create an import file
9595 + # for dependence libraries. The import file would start with
9596 + # the line `#! .'. This would cause the generated library to
9597 + # depend on `.', always an invalid library. This was fixed in
9598 + # development snapshots of GCC prior to 3.0.
9599 + case $host_os in
9600 + aix4 | aix4.[01] | aix4.[01].*)
9601 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9602 + echo ' yes '
9603 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9604 + :
9605 + else
9606 + can_build_shared=no
9607 + fi
9608 + ;;
9609 + esac
9610 + # AIX (on Power*) has no versioning support, so currently we can
9611 + # not hardcode correct soname into executable. Probably we can
9612 + # add versioning support to collect2, so additional links can
9613 + # be useful in future.
9614 + if test "$aix_use_runtimelinking" = yes; then
9615 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9616 + # instead of lib<name>.a to let people know that these are not
9617 + # typical AIX shared libraries.
9618 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9619 + else
9620 + # We preserve .a as extension for shared libraries through AIX4.2
9621 + # and later when we are not doing run time linking.
9622 + library_names_spec='${libname}${release}.a $libname.a'
9623 + soname_spec='${libname}${release}.so$major'
9624 + fi
9625 + shlibpath_var=LIBPATH
9626 + fi
9627 + hardcode_into_libs=yes
9628 + ;;
9629 +
9630 +amigaos*)
9631 + library_names_spec='$libname.ixlibrary $libname.a'
9632 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
9633 + 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'
9634 + ;;
9635 +
9636 +beos*)
9637 + library_names_spec='${libname}.so'
9638 + dynamic_linker="$host_os ld.so"
9639 + shlibpath_var=LIBRARY_PATH
9640 + ;;
9641 +
9642 +bsdi4*)
9643 + version_type=linux
9644 + need_version=no
9645 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9646 + soname_spec='${libname}${release}.so$major'
9647 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9648 + shlibpath_var=LD_LIBRARY_PATH
9649 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9650 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9651 + export_dynamic_flag_spec=-rdynamic
9652 + # the default ld.so.conf also contains /usr/contrib/lib and
9653 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9654 + # libtool to hard-code these into programs
9655 + ;;
9656 +
9657 +cygwin* | mingw* | pw32*)
9658 + version_type=windows
9659 + need_version=no
9660 + need_lib_prefix=no
9661 + case $GCC,$host_os in
9662 + yes,cygwin*)
9663 + library_names_spec='$libname.dll.a'
9664 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
9665 + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
9666 + dldir=$destdir/`dirname \$dlpath`~
9667 + test -d \$dldir || mkdir -p \$dldir~
9668 + $install_prog .libs/$dlname \$dldir/$dlname'
9669 + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
9670 + dlpath=$dir/\$dldll~
9671 + $rm \$dlpath'
9672 + ;;
9673 + yes,mingw*)
9674 + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
9675 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
9676 + ;;
9677 + yes,pw32*)
9678 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
9679 + ;;
9680 + *)
9681 + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
9682 + ;;
9683 + esac
9684 + dynamic_linker='Win32 ld.exe'
9685 + # FIXME: first we should search . and the directory the executable is in
9686 + shlibpath_var=PATH
9687 + ;;
9688 +
9689 +darwin* | rhapsody*)
9690 + dynamic_linker="$host_os dyld"
9691 + version_type=darwin
9692 + need_lib_prefix=no
9693 + need_version=no
9694 + # FIXME: Relying on posixy $() will cause problems for
9695 + # cross-compilation, but unfortunately the echo tests do not
9696 + # yet detect zsh echo's removal of \ escapes.
9697 + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
9698 + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
9699 + shlibpath_overrides_runpath=yes
9700 + shlibpath_var=DYLD_LIBRARY_PATH
9701 + ;;
9702 +
9703 +freebsd1*)
9704 + dynamic_linker=no
9705 + ;;
9706 +
9707 +freebsd*-gnu*)
9708 + version_type=linux
9709 + need_lib_prefix=no
9710 + need_version=no
9711 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9712 + soname_spec='${libname}${release}.so$major'
9713 + shlibpath_var=LD_LIBRARY_PATH
9714 + shlibpath_overrides_runpath=no
9715 + hardcode_into_libs=yes
9716 + dynamic_linker='GNU/FreeBSD ld.so'
9717 + ;;
9718 +
9719 +freebsd*)
9720 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9721 + version_type=freebsd-$objformat
9722 + case $version_type in
9723 + freebsd-elf*)
9724 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
9725 + need_version=no
9726 + need_lib_prefix=no
9727 + ;;
9728 + freebsd-*)
9729 + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
9730 + need_version=yes
9731 + ;;
9732 + esac
9733 + shlibpath_var=LD_LIBRARY_PATH
9734 + case $host_os in
9735 + freebsd2*)
9736 + shlibpath_overrides_runpath=yes
9737 + ;;
9738 + *)
9739 + shlibpath_overrides_runpath=no
9740 + hardcode_into_libs=yes
9741 + ;;
9742 + esac
9743 + ;;
9744 +
9745 +gnu*)
9746 + version_type=linux
9747 + need_lib_prefix=no
9748 + need_version=no
9749 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
9750 + soname_spec='${libname}${release}.so$major'
9751 + shlibpath_var=LD_LIBRARY_PATH
9752 + hardcode_into_libs=yes
9753 + ;;
9754 +
9755 +hpux9* | hpux10* | hpux11*)
9756 + # Give a soname corresponding to the major version so that dld.sl refuses to
9757 + # link against other versions.
9758 + dynamic_linker="$host_os dld.sl"
9759 + version_type=sunos
9760 + need_lib_prefix=no
9761 + need_version=no
9762 + shlibpath_var=SHLIB_PATH
9763 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9764 + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
9765 + soname_spec='${libname}${release}.sl$major'
9766 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
9767 + postinstall_cmds='chmod 555 $lib'
9768 + ;;
9769 +
9770 +irix5* | irix6* | nonstopux*)
9771 + case $host_os in
9772 + nonstopux*) version_type=nonstopux ;;
9773 + *) version_type=irix ;;
9774 + esac
9775 + need_lib_prefix=no
9776 + need_version=no
9777 + soname_spec='${libname}${release}.so$major'
9778 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
9779 + case $host_os in
9780 + irix5* | nonstopux*)
9781 + libsuff= shlibsuff=
9782 + ;;
9783 + *)
9784 + case $LD in # libtool.m4 will add one of these switches to LD
9785 + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
9786 + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
9787 + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
9788 + *) libsuff= shlibsuff= libmagic=never-match;;
9789 + esac
9790 + ;;
9791 + esac
9792 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9793 + shlibpath_overrides_runpath=no
9794 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9795 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9796 + ;;
9797 +
9798 +# No shared lib support for Linux oldld, aout, or coff.
9799 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
9800 + dynamic_linker=no
9801 + ;;
9802 +
9803 +# This must be Linux ELF.
9804 +linux-gnu*)
9805 + version_type=linux
9806 + need_lib_prefix=no
9807 + need_version=no
9808 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9809 + soname_spec='${libname}${release}.so$major'
9810 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9811 + shlibpath_var=LD_LIBRARY_PATH
9812 + shlibpath_overrides_runpath=no
9813 + # This implies no fast_install, which is unacceptable.
9814 + # Some rework will be needed to allow for fast_install
9815 + # before this can be enabled.
9816 + hardcode_into_libs=yes
9817 +
9818 + # We used to test for /lib/ld.so.1 and disable shared libraries on
9819 + # powerpc, because MkLinux only supported shared libraries with the
9820 + # GNU dynamic linker. Since this was broken with cross compilers,
9821 + # most powerpc-linux boxes support dynamic linking these days and
9822 + # people can always --disable-shared, the test was removed, and we
9823 + # assume the GNU/Linux dynamic linker is in use.
9824 + dynamic_linker='GNU/Linux ld.so'
9825 + ;;
9826 +
9827 +netbsd*)
9828 + version_type=sunos
9829 + need_lib_prefix=no
9830 + need_version=no
9831 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9832 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9833 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9834 + dynamic_linker='NetBSD (a.out) ld.so'
9835 + else
9836 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
9837 + soname_spec='${libname}${release}.so$major'
9838 + dynamic_linker='NetBSD ld.elf_so'
9839 + fi
9840 + shlibpath_var=LD_LIBRARY_PATH
9841 + shlibpath_overrides_runpath=yes
9842 + hardcode_into_libs=yes
9843 + ;;
9844 +
9845 +newsos6)
9846 + version_type=linux
9847 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9848 + shlibpath_var=LD_LIBRARY_PATH
9849 + shlibpath_overrides_runpath=yes
9850 + ;;
9851 +
9852 +openbsd*)
9853 + version_type=sunos
9854 + need_lib_prefix=no
9855 + need_version=no
9856 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9857 + case "$host_os" in
9858 + openbsd2.[89] | openbsd2.[89].*)
9859 + shlibpath_overrides_runpath=no
9860 + ;;
9861 + *)
9862 + shlibpath_overrides_runpath=yes
9863 + ;;
9864 + esac
9865 + else
9866 + shlibpath_overrides_runpath=yes
9867 + fi
9868 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9869 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9870 + shlibpath_var=LD_LIBRARY_PATH
9871 + ;;
9872 +
9873 +os2*)
9874 + libname_spec='$name'
9875 + need_lib_prefix=no
9876 + library_names_spec='$libname.dll $libname.a'
9877 + dynamic_linker='OS/2 ld.exe'
9878 + shlibpath_var=LIBPATH
9879 + ;;
9880 +
9881 +osf3* | osf4* | osf5*)
9882 + version_type=osf
9883 + need_version=no
9884 + need_lib_prefix=no
9885 + soname_spec='${libname}${release}.so$major'
9886 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9887 + shlibpath_var=LD_LIBRARY_PATH
9888 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9889 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9890 + hardcode_into_libs=yes
9891 + ;;
9892 +
9893 +sco3.2v5*)
9894 + version_type=osf
9895 + soname_spec='${libname}${release}.so$major'
9896 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9897 + shlibpath_var=LD_LIBRARY_PATH
9898 + ;;
9899 +
9900 +solaris*)
9901 + version_type=linux
9902 + need_lib_prefix=no
9903 + need_version=no
9904 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9905 + soname_spec='${libname}${release}.so$major'
9906 + shlibpath_var=LD_LIBRARY_PATH
9907 + shlibpath_overrides_runpath=yes
9908 + hardcode_into_libs=yes
9909 + # ldd complains unless libraries are executable
9910 + postinstall_cmds='chmod +x $lib'
9911 + ;;
9912 +
9913 +sunos4*)
9914 + version_type=sunos
9915 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9916 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9917 + shlibpath_var=LD_LIBRARY_PATH
9918 + shlibpath_overrides_runpath=yes
9919 + if test "$with_gnu_ld" = yes; then
9920 + need_lib_prefix=no
9921 + fi
9922 + need_version=yes
9923 + ;;
9924 +
9925 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9926 + version_type=linux
9927 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9928 + soname_spec='${libname}${release}.so$major'
9929 + shlibpath_var=LD_LIBRARY_PATH
9930 + case $host_vendor in
9931 + sni)
9932 + shlibpath_overrides_runpath=no
9933 + need_lib_prefix=no
9934 + export_dynamic_flag_spec='${wl}-Blargedynsym'
9935 + runpath_var=LD_RUN_PATH
9936 + ;;
9937 + siemens)
9938 + need_lib_prefix=no
9939 + ;;
9940 + motorola)
9941 + need_lib_prefix=no
9942 + need_version=no
9943 + shlibpath_overrides_runpath=no
9944 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9945 + ;;
9946 + esac
9947 + ;;
9948 +
9949 +uts4*)
9950 + version_type=linux
9951 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9952 + soname_spec='${libname}${release}.so$major'
9953 + shlibpath_var=LD_LIBRARY_PATH
9954 + ;;
9955 +
9956 +dgux*)
9957 + version_type=linux
9958 + need_lib_prefix=no
9959 + need_version=no
9960 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9961 + soname_spec='${libname}${release}.so$major'
9962 + shlibpath_var=LD_LIBRARY_PATH
9963 + ;;
9964 +
9965 +sysv4*MP*)
9966 + if test -d /usr/nec ;then
9967 + version_type=linux
9968 + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
9969 + soname_spec='$libname.so.$major'
9970 + shlibpath_var=LD_LIBRARY_PATH
9971 + fi
9972 + ;;
9973 +
9974 +*)
9975 + dynamic_linker=no
9976 + ;;
9977 +esac
9978 +echo "$ac_t""$dynamic_linker" 1>&6
9979 +test "$dynamic_linker" = no && can_build_shared=no
9980 +
9981 +# Report the final consequences.
9982 +echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
9983 +echo "configure:4310: checking if libtool supports shared libraries" >&5
9984 +echo "$ac_t""$can_build_shared" 1>&6
9985 +
9986 +echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
9987 +echo "configure:4314: checking whether to build shared libraries" >&5
9988 +test "$can_build_shared" = "no" && enable_shared=no
9989 +
9990 +# On AIX, shared libraries and static libraries use the same namespace, and
9991 +# are all built from PIC.
9992 +case "$host_os" in
9993 +aix3*)
9994 + test "$enable_shared" = yes && enable_static=no
9995 + if test -n "$RANLIB"; then
9996 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
9997 + postinstall_cmds='$RANLIB $lib'
9998 + fi
9999 + ;;
10000 +
10001 +aix4*)
10002 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10003 + test "$enable_shared" = yes && enable_static=no
10004 + fi
10005 + ;;
10006 +esac
10007 +echo "$ac_t""$enable_shared" 1>&6
10008 +
10009 +echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
10010 +echo "configure:4337: checking whether to build static libraries" >&5
10011 +# Make sure either enable_shared or enable_static is yes.
10012 +test "$enable_shared" = yes || enable_static=yes
10013 +echo "$ac_t""$enable_static" 1>&6
10014 +
10015 +if test "$hardcode_action" = relink; then
10016 + # Fast installation is not supported
10017 + enable_fast_install=no
10018 +elif test "$shlibpath_overrides_runpath" = yes ||
10019 + test "$enable_shared" = no; then
10020 + # Fast installation is not necessary
10021 + enable_fast_install=needless
10022 +fi
10023 +
10024 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10025 +if test "$GCC" = yes; then
10026 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10027 +fi
10028 +
10029 +if test "x$enable_dlopen" != xyes; then
10030 + enable_dlopen=unknown
10031 + enable_dlopen_self=unknown
10032 + enable_dlopen_self_static=unknown
10033 +else
10034 + lt_cv_dlopen=no
10035 + lt_cv_dlopen_libs=
10036 +
10037 + case $host_os in
10038 + beos*)
10039 + lt_cv_dlopen="load_add_on"
10040 + lt_cv_dlopen_libs=
10041 + lt_cv_dlopen_self=yes
10042 + ;;
10043 +
10044 + cygwin* | mingw* | pw32*)
10045 + lt_cv_dlopen="LoadLibrary"
10046 + lt_cv_dlopen_libs=
10047 + ;;
10048 +
10049 + *)
10050 + echo $ac_n "checking for shl_load""... $ac_c" 1>&6
10051 +echo "configure:4378: checking for shl_load" >&5
10052 +if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
10053 + echo $ac_n "(cached) $ac_c" 1>&6
10054 +else
10055 + cat > conftest.$ac_ext <<EOF
10056 +#line 4383 "configure"
10057 +#include "confdefs.h"
10058 +/* System header to define __stub macros and hopefully few prototypes,
10059 + which can conflict with char shl_load(); below. */
10060 +#include <assert.h>
10061 +/* Override any gcc2 internal prototype to avoid an error. */
10062 +/* We use char because int might match the return type of a gcc2
10063 + builtin and then its argument prototype would still apply. */
10064 +char shl_load();
10065 +
10066 +int main() {
10067 +
10068 +/* The GNU C library defines this for functions which it implements
10069 + to always fail with ENOSYS. Some functions are actually named
10070 + something starting with __ and the normal name is an alias. */
10071 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
10072 +choke me
10073 +#else
10074 +shl_load();
10075 +#endif
10076 +
10077 +; return 0; }
10078 +EOF
10079 +if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10080 + rm -rf conftest*
10081 + eval "ac_cv_func_shl_load=yes"
10082 +else
10083 + echo "configure: failed program was:" >&5
10084 + cat conftest.$ac_ext >&5
10085 + rm -rf conftest*
10086 + eval "ac_cv_func_shl_load=no"
10087 +fi
10088 +rm -f conftest*
10089 +fi
10090 +
10091 +if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
10092 + echo "$ac_t""yes" 1>&6
10093 + lt_cv_dlopen="shl_load"
10094 +else
10095 + echo "$ac_t""no" 1>&6
10096 +echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
10097 +echo "configure:4424: checking for shl_load in -ldld" >&5
10098 +ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
10099 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10100 + echo $ac_n "(cached) $ac_c" 1>&6
10101 +else
10102 + ac_save_LIBS="$LIBS"
10103 +LIBS="-ldld $LIBS"
10104 +cat > conftest.$ac_ext <<EOF
10105 +#line 4432 "configure"
10106 +#include "confdefs.h"
10107 +/* Override any gcc2 internal prototype to avoid an error. */
10108 +/* We use char because int might match the return type of a gcc2
10109 + builtin and then its argument prototype would still apply. */
10110 +char shl_load();
10111 +
10112 +int main() {
10113 +shl_load()
10114 +; return 0; }
10115 +EOF
10116 +if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10117 + rm -rf conftest*
10118 + eval "ac_cv_lib_$ac_lib_var=yes"
10119 +else
10120 + echo "configure: failed program was:" >&5
10121 + cat conftest.$ac_ext >&5
10122 + rm -rf conftest*
10123 + eval "ac_cv_lib_$ac_lib_var=no"
10124 +fi
10125 +rm -f conftest*
10126 +LIBS="$ac_save_LIBS"
10127 +
10128 +fi
10129 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10130 + echo "$ac_t""yes" 1>&6
10131 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10132 +else
10133 + echo "$ac_t""no" 1>&6
10134 +echo $ac_n "checking for dlopen""... $ac_c" 1>&6
10135 +echo "configure:4462: checking for dlopen" >&5
10136 +if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
10137 + echo $ac_n "(cached) $ac_c" 1>&6
10138 +else
10139 + cat > conftest.$ac_ext <<EOF
10140 +#line 4467 "configure"
10141 +#include "confdefs.h"
10142 +/* System header to define __stub macros and hopefully few prototypes,
10143 + which can conflict with char dlopen(); below. */
10144 +#include <assert.h>
10145 +/* Override any gcc2 internal prototype to avoid an error. */
10146 +/* We use char because int might match the return type of a gcc2
10147 + builtin and then its argument prototype would still apply. */
10148 +char dlopen();
10149 +
10150 +int main() {
10151 +
10152 +/* The GNU C library defines this for functions which it implements
10153 + to always fail with ENOSYS. Some functions are actually named
10154 + something starting with __ and the normal name is an alias. */
10155 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
10156 +choke me
10157 +#else
10158 +dlopen();
10159 +#endif
10160 +
10161 +; return 0; }
10162 +EOF
10163 +if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10164 + rm -rf conftest*
10165 + eval "ac_cv_func_dlopen=yes"
10166 +else
10167 + echo "configure: failed program was:" >&5
10168 + cat conftest.$ac_ext >&5
10169 + rm -rf conftest*
10170 + eval "ac_cv_func_dlopen=no"
10171 +fi
10172 +rm -f conftest*
10173 +fi
10174 +
10175 +if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
10176 + echo "$ac_t""yes" 1>&6
10177 + lt_cv_dlopen="dlopen"
10178 +else
10179 + echo "$ac_t""no" 1>&6
10180 +echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
10181 +echo "configure:4508: checking for dlopen in -ldl" >&5
10182 +ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
10183 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10184 + echo $ac_n "(cached) $ac_c" 1>&6
10185 +else
10186 + ac_save_LIBS="$LIBS"
10187 +LIBS="-ldl $LIBS"
10188 +cat > conftest.$ac_ext <<EOF
10189 +#line 4516 "configure"
10190 +#include "confdefs.h"
10191 +/* Override any gcc2 internal prototype to avoid an error. */
10192 +/* We use char because int might match the return type of a gcc2
10193 + builtin and then its argument prototype would still apply. */
10194 +char dlopen();
10195 +
10196 +int main() {
10197 +dlopen()
10198 +; return 0; }
10199 +EOF
10200 +if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10201 + rm -rf conftest*
10202 + eval "ac_cv_lib_$ac_lib_var=yes"
10203 +else
10204 + echo "configure: failed program was:" >&5
10205 + cat conftest.$ac_ext >&5
10206 + rm -rf conftest*
10207 + eval "ac_cv_lib_$ac_lib_var=no"
10208 +fi
10209 +rm -f conftest*
10210 +LIBS="$ac_save_LIBS"
10211 +
10212 +fi
10213 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10214 + echo "$ac_t""yes" 1>&6
10215 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10216 +else
10217 + echo "$ac_t""no" 1>&6
10218 +echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
10219 +echo "configure:4546: checking for dlopen in -lsvld" >&5
10220 +ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
10221 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10222 + echo $ac_n "(cached) $ac_c" 1>&6
10223 +else
10224 + ac_save_LIBS="$LIBS"
10225 +LIBS="-lsvld $LIBS"
10226 +cat > conftest.$ac_ext <<EOF
10227 +#line 4554 "configure"
10228 +#include "confdefs.h"
10229 +/* Override any gcc2 internal prototype to avoid an error. */
10230 +/* We use char because int might match the return type of a gcc2
10231 + builtin and then its argument prototype would still apply. */
10232 +char dlopen();
10233 +
10234 +int main() {
10235 +dlopen()
10236 +; return 0; }
10237 +EOF
10238 +if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10239 + rm -rf conftest*
10240 + eval "ac_cv_lib_$ac_lib_var=yes"
10241 +else
10242 + echo "configure: failed program was:" >&5
10243 + cat conftest.$ac_ext >&5
10244 + rm -rf conftest*
10245 + eval "ac_cv_lib_$ac_lib_var=no"
10246 +fi
10247 +rm -f conftest*
10248 +LIBS="$ac_save_LIBS"
10249 +
10250 +fi
10251 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10252 + echo "$ac_t""yes" 1>&6
10253 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10254 +else
10255 + echo "$ac_t""no" 1>&6
10256 +echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
10257 +echo "configure:4584: checking for dld_link in -ldld" >&5
10258 +ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
10259 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10260 + echo $ac_n "(cached) $ac_c" 1>&6
10261 +else
10262 + ac_save_LIBS="$LIBS"
10263 +LIBS="-ldld $LIBS"
10264 +cat > conftest.$ac_ext <<EOF
10265 +#line 4592 "configure"
10266 +#include "confdefs.h"
10267 +/* Override any gcc2 internal prototype to avoid an error. */
10268 +/* We use char because int might match the return type of a gcc2
10269 + builtin and then its argument prototype would still apply. */
10270 +char dld_link();
10271 +
10272 +int main() {
10273 +dld_link()
10274 +; return 0; }
10275 +EOF
10276 +if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10277 + rm -rf conftest*
10278 + eval "ac_cv_lib_$ac_lib_var=yes"
10279 +else
10280 + echo "configure: failed program was:" >&5
10281 + cat conftest.$ac_ext >&5
10282 + rm -rf conftest*
10283 + eval "ac_cv_lib_$ac_lib_var=no"
10284 +fi
10285 +rm -f conftest*
10286 +LIBS="$ac_save_LIBS"
10287 +
10288 +fi
10289 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10290 + echo "$ac_t""yes" 1>&6
10291 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10292 +else
10293 + echo "$ac_t""no" 1>&6
10294 +fi
10295 +
10296 +
10297 +fi
10298 +
10299 +
10300 +fi
10301 +
10302 +
10303 +fi
10304 +
10305 +
10306 +fi
10307 +
10308 +
10309 +fi
10310 +
10311 + ;;
10312 + esac
10313 +
10314 + if test "x$lt_cv_dlopen" != xno; then
10315 + enable_dlopen=yes
10316 + else
10317 + enable_dlopen=no
10318 + fi
10319 +
10320 + case $lt_cv_dlopen in
10321 + dlopen)
10322 + save_CPPFLAGS="$CPPFLAGS"
10323 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10324 +
10325 + save_LDFLAGS="$LDFLAGS"
10326 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10327 +
10328 + save_LIBS="$LIBS"
10329 + LIBS="$lt_cv_dlopen_libs $LIBS"
10330 +
10331 + echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
10332 +echo "configure:4659: checking whether a program can dlopen itself" >&5
10333 +if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
10334 + echo $ac_n "(cached) $ac_c" 1>&6
10335 +else
10336 + if test "$cross_compiling" = yes; then :
10337 + lt_cv_dlopen_self=cross
10338 +else
10339 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10340 + lt_status=$lt_dlunknown
10341 + cat > conftest.$ac_ext <<EOF
10342 +#line 4669 "configure"
10343 +#include "confdefs.h"
10344 +
10345 +#if HAVE_DLFCN_H
10346 +#include <dlfcn.h>
10347 +#endif
10348 +
10349 +#include <stdio.h>
10350 +
10351 +#ifdef RTLD_GLOBAL
10352 +# define LT_DLGLOBAL RTLD_GLOBAL
10353 +#else
10354 +# ifdef DL_GLOBAL
10355 +# define LT_DLGLOBAL DL_GLOBAL
10356 +# else
10357 +# define LT_DLGLOBAL 0
10358 +# endif
10359 +#endif
10360 +
10361 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10362 + find out it does not work in some platform. */
10363 +#ifndef LT_DLLAZY_OR_NOW
10364 +# ifdef RTLD_LAZY
10365 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
10366 +# else
10367 +# ifdef DL_LAZY
10368 +# define LT_DLLAZY_OR_NOW DL_LAZY
10369 +# else
10370 +# ifdef RTLD_NOW
10371 +# define LT_DLLAZY_OR_NOW RTLD_NOW
10372 +# else
10373 +# ifdef DL_NOW
10374 +# define LT_DLLAZY_OR_NOW DL_NOW
10375 +# else
10376 +# define LT_DLLAZY_OR_NOW 0
10377 +# endif
10378 +# endif
10379 +# endif
10380 +# endif
10381 +#endif
10382 +
10383 +#ifdef __cplusplus
10384 +extern "C" void exit (int);
10385 +#endif
10386 +
10387 +void fnord() { int i=42;}
10388 +int main ()
10389 +{
10390 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10391 + int status = $lt_dlunknown;
10392 +
10393 + if (self)
10394 + {
10395 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10396 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10397 + /* dlclose (self); */
10398 + }
10399 +
10400 + exit (status);
10401 +}
10402 +EOF
10403 + if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
10404 + (./conftest; exit; ) 2>/dev/null
10405 + lt_status=$?
10406 + case x$lt_status in
10407 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10408 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10409 + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10410 + esac
10411 + else :
10412 + # compilation failed
10413 + lt_cv_dlopen_self=no
10414 + fi
10415 +fi
10416 +rm -fr conftest*
10417 +
10418 +
10419 +fi
10420 +
10421 +echo "$ac_t""$lt_cv_dlopen_self" 1>&6
10422 +
10423 + if test "x$lt_cv_dlopen_self" = xyes; then
10424 + LDFLAGS="$LDFLAGS $link_static_flag"
10425 + echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
10426 +echo "configure:4753: checking whether a statically linked program can dlopen itself" >&5
10427 +if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
10428 + echo $ac_n "(cached) $ac_c" 1>&6
10429 +else
10430 + if test "$cross_compiling" = yes; then :
10431 + lt_cv_dlopen_self_static=cross
10432 +else
10433 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10434 + lt_status=$lt_dlunknown
10435 + cat > conftest.$ac_ext <<EOF
10436 +#line 4763 "configure"
10437 +#include "confdefs.h"
10438 +
10439 +#if HAVE_DLFCN_H
10440 +#include <dlfcn.h>
10441 +#endif
10442 +
10443 +#include <stdio.h>
10444 +
10445 +#ifdef RTLD_GLOBAL
10446 +# define LT_DLGLOBAL RTLD_GLOBAL
10447 +#else
10448 +# ifdef DL_GLOBAL
10449 +# define LT_DLGLOBAL DL_GLOBAL
10450 +# else
10451 +# define LT_DLGLOBAL 0
10452 +# endif
10453 +#endif
10454 +
10455 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10456 + find out it does not work in some platform. */
10457 +#ifndef LT_DLLAZY_OR_NOW
10458 +# ifdef RTLD_LAZY
10459 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
10460 +# else
10461 +# ifdef DL_LAZY
10462 +# define LT_DLLAZY_OR_NOW DL_LAZY
10463 +# else
10464 +# ifdef RTLD_NOW
10465 +# define LT_DLLAZY_OR_NOW RTLD_NOW
10466 +# else
10467 +# ifdef DL_NOW
10468 +# define LT_DLLAZY_OR_NOW DL_NOW
10469 +# else
10470 +# define LT_DLLAZY_OR_NOW 0
10471 +# endif
10472 +# endif
10473 +# endif
10474 +# endif
10475 +#endif
10476 +
10477 +#ifdef __cplusplus
10478 +extern "C" void exit (int);
10479 +#endif
10480 +
10481 +void fnord() { int i=42;}
10482 +int main ()
10483 +{
10484 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10485 + int status = $lt_dlunknown;
10486 +
10487 + if (self)
10488 + {
10489 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10490 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10491 + /* dlclose (self); */
10492 + }
10493 +
10494 + exit (status);
10495 +}
10496 +EOF
10497 + if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
10498 + (./conftest; exit; ) 2>/dev/null
10499 + lt_status=$?
10500 + case x$lt_status in
10501 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10502 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10503 + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10504 + esac
10505 + else :
10506 + # compilation failed
10507 + lt_cv_dlopen_self_static=no
10508 + fi
10509 +fi
10510 +rm -fr conftest*
10511 +
10512 +
10513 +fi
10514 +
10515 +echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
10516 + fi
10517 +
10518 + CPPFLAGS="$save_CPPFLAGS"
10519 + LDFLAGS="$save_LDFLAGS"
10520 + LIBS="$save_LIBS"
10521 + ;;
10522 + esac
10523 +
10524 + case $lt_cv_dlopen_self in
10525 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10526 + *) enable_dlopen_self=unknown ;;
10527 + esac
10528 +
10529 + case $lt_cv_dlopen_self_static in
10530 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10531 + *) enable_dlopen_self_static=unknown ;;
10532 + esac
10533 +fi
10534 +
10535 +
10536 +if test "$enable_shared" = yes && test "$GCC" = yes; then
10537 + case $archive_cmds in
10538 + *'~'*)
10539 + # FIXME: we may have to deal with multi-command sequences.
10540 + ;;
10541 + '$CC '*)
10542 + # Test whether the compiler implicitly links with -lc since on some
10543 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
10544 + # to ld, don't add -lc before -lgcc.
10545 + echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
10546 +echo "configure:4873: checking whether -lc should be explicitly linked in" >&5
10547 + if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
10548 + echo $ac_n "(cached) $ac_c" 1>&6
10549 +else
10550 + $rm conftest*
10551 + echo 'static int dummy;' > conftest.$ac_ext
10552 +
10553 + if { (eval echo configure:4880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10554 + soname=conftest
10555 + lib=conftest
10556 + libobjs=conftest.$ac_objext
10557 + deplibs=
10558 + wl=$lt_cv_prog_cc_wl
10559 + compiler_flags=-v
10560 + linker_flags=-v
10561 + verstring=
10562 + output_objdir=.
10563 + libname=conftest
10564 + save_allow_undefined_flag=$allow_undefined_flag
10565 + allow_undefined_flag=
10566 + if { (eval echo configure:4893: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
10567 + then
10568 + lt_cv_archive_cmds_need_lc=no
10569 + else
10570 + lt_cv_archive_cmds_need_lc=yes
10571 + fi
10572 + allow_undefined_flag=$save_allow_undefined_flag
10573 + else
10574 + cat conftest.err 1>&5
10575 + fi
10576 +fi
10577 +
10578 + echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
10579 + ;;
10580 + esac
10581 +fi
10582 +need_lc=${lt_cv_archive_cmds_need_lc-yes}
10583 +
10584 +# The second clause should only fire when bootstrapping the
10585 +# libtool distribution, otherwise you forgot to ship ltmain.sh
10586 +# with your package, and you will get complaints that there are
10587 +# no rules to generate ltmain.sh.
10588 +if test -f "$ltmain"; then
10589 + :
10590 +else
10591 + # If there is no Makefile yet, we rely on a make rule to execute
10592 + # `config.status --recheck' to rerun these tests and create the
10593 + # libtool script then.
10594 + test -f Makefile && make "$ltmain"
10595 +fi
10596 +
10597 +if test -f "$ltmain"; then
10598 + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
10599 + $rm -f "${ofile}T"
10600 +
10601 + echo creating $ofile
10602 +
10603 + # Now quote all the things that may contain metacharacters while being
10604 + # careful not to overquote the AC_SUBSTed values. We take copies of the
10605 + # variables and quote the copies for generation of the libtool script.
10606 + for var in echo old_CC old_CFLAGS SED \
10607 + AR AR_FLAGS CC LD LN_S NM SHELL \
10608 + reload_flag reload_cmds wl \
10609 + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
10610 + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
10611 + library_names_spec soname_spec \
10612 + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
10613 + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
10614 + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
10615 + old_striplib striplib file_magic_cmd export_symbols_cmds \
10616 + deplibs_check_method allow_undefined_flag no_undefined_flag \
10617 + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
10618 + global_symbol_to_c_name_address \
10619 + hardcode_libdir_flag_spec hardcode_libdir_separator \
10620 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10621 + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
10622 +
10623 + case $var in
10624 + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
10625 + old_postinstall_cmds | old_postuninstall_cmds | \
10626 + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
10627 + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
10628 + postinstall_cmds | postuninstall_cmds | \
10629 + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10630 + # Double-quote double-evaled strings.
10631 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10632 + ;;
10633 + *)
10634 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10635 + ;;
10636 + esac
10637 + done
10638 +
10639 + cat <<__EOF__ > "${ofile}T"
10640 +#! $SHELL
10641 +
10642 +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10643 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10644 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10645 +#
10646 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
10647 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10648 +#
10649 +# This program is free software; you can redistribute it and/or modify
10650 +# it under the terms of the GNU General Public License as published by
10651 +# the Free Software Foundation; either version 2 of the License, or
10652 +# (at your option) any later version.
10653 +#
10654 +# This program is distributed in the hope that it will be useful, but
10655 +# WITHOUT ANY WARRANTY; without even the implied warranty of
10656 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10657 +# General Public License for more details.
10658 +#
10659 +# You should have received a copy of the GNU General Public License
10660 +# along with this program; if not, write to the Free Software
10661 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10662 +#
10663 +# As a special exception to the GNU General Public License, if you
10664 +# distribute this file as part of a program that contains a
10665 +# configuration script generated by Autoconf, you may include it under
10666 +# the same distribution terms that you use for the rest of that program.
10667 +
10668 +# A sed that does not truncate output.
10669 +SED=$lt_SED
10670 +
10671 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10672 +Xsed="${SED} -e s/^X//"
10673 +
10674 +# The HP-UX ksh and POSIX shell print the target directory to stdout
10675 +# if CDPATH is set.
10676 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10677 +
10678 +# ### BEGIN LIBTOOL CONFIG
10679 +
10680 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10681 +
10682 +# Shell to use when invoking shell scripts.
10683 +SHELL=$lt_SHELL
10684 +
10685 +# Whether or not to build shared libraries.
10686 +build_libtool_libs=$enable_shared
10687 +
10688 +# Whether or not to build static libraries.
10689 +build_old_libs=$enable_static
10690 +
10691 +# Whether or not to add -lc for building shared libraries.
10692 +build_libtool_need_lc=$need_lc
10693 +
10694 +# Whether or not to optimize for fast installation.
10695 +fast_install=$enable_fast_install
10696 +
10697 +# The host system.
10698 +host_alias=$host_alias
10699 +host=$host
10700 +
10701 +# An echo program that does not interpret backslashes.
10702 +echo=$lt_echo
10703 +
10704 +# The archiver.
10705 +AR=$lt_AR
10706 +AR_FLAGS=$lt_AR_FLAGS
10707 +
10708 +# The default C compiler.
10709 +CC=$lt_CC
10710 +
10711 +# Is the compiler the GNU C compiler?
10712 +with_gcc=$GCC
10713 +
10714 +# The linker used to build libraries.
10715 +LD=$lt_LD
10716 +
10717 +# Whether we need hard or soft links.
10718 +LN_S=$lt_LN_S
10719 +
10720 +# A BSD-compatible nm program.
10721 +NM=$lt_NM
10722 +
10723 +# A symbol stripping program
10724 +STRIP=$STRIP
10725 +
10726 +# Used to examine libraries when file_magic_cmd begins "file"
10727 +MAGIC_CMD=$MAGIC_CMD
10728 +
10729 +# Used on cygwin: DLL creation program.
10730 +DLLTOOL="$DLLTOOL"
10731 +
10732 +# Used on cygwin: object dumper.
10733 +OBJDUMP="$OBJDUMP"
10734 +
10735 +# Used on cygwin: assembler.
10736 +AS="$AS"
10737 +
10738 +# The name of the directory that contains temporary libtool files.
10739 +objdir=$objdir
10740 +
10741 +# How to create reloadable object files.
10742 +reload_flag=$lt_reload_flag
10743 +reload_cmds=$lt_reload_cmds
10744 +
10745 +# How to pass a linker flag through the compiler.
10746 +wl=$lt_wl
10747 +
10748 +# Object file suffix (normally "o").
10749 +objext="$ac_objext"
10750 +
10751 +# Old archive suffix (normally "a").
10752 +libext="$libext"
10753 +
10754 +# Executable file suffix (normally "").
10755 +exeext="$exeext"
10756 +
10757 +# Additional compiler flags for building library objects.
10758 +pic_flag=$lt_pic_flag
10759 +pic_mode=$pic_mode
10760 +
10761 +# Does compiler simultaneously support -c and -o options?
10762 +compiler_c_o=$lt_compiler_c_o
10763 +
10764 +# Can we write directly to a .lo ?
10765 +compiler_o_lo=$lt_compiler_o_lo
10766 +
10767 +# Must we lock files when doing compilation ?
10768 +need_locks=$lt_need_locks
10769 +
10770 +# Do we need the lib prefix for modules?
10771 +need_lib_prefix=$need_lib_prefix
10772 +
10773 +# Do we need a version for libraries?
10774 +need_version=$need_version
10775 +
10776 +# Whether dlopen is supported.
10777 +dlopen_support=$enable_dlopen
10778 +
10779 +# Whether dlopen of programs is supported.
10780 +dlopen_self=$enable_dlopen_self
10781 +
10782 +# Whether dlopen of statically linked programs is supported.
10783 +dlopen_self_static=$enable_dlopen_self_static
10784 +
10785 +# Compiler flag to prevent dynamic linking.
10786 +link_static_flag=$lt_link_static_flag
10787 +
10788 +# Compiler flag to turn off builtin functions.
10789 +no_builtin_flag=$lt_no_builtin_flag
10790 +
10791 +# Compiler flag to allow reflexive dlopens.
10792 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10793 +
10794 +# Compiler flag to generate shared objects directly from archives.
10795 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
10796 +
10797 +# Compiler flag to generate thread-safe objects.
10798 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
10799 +
10800 +# Library versioning type.
10801 +version_type=$version_type
10802 +
10803 +# Format of library name prefix.
10804 +libname_spec=$lt_libname_spec
10805 +
10806 +# List of archive names. First name is the real one, the rest are links.
10807 +# The last name is the one that the linker finds with -lNAME.
10808 +library_names_spec=$lt_library_names_spec
10809 +
10810 +# The coded name of the library, if different from the real name.
10811 +soname_spec=$lt_soname_spec
10812 +
10813 +# Commands used to build and install an old-style archive.
10814 +RANLIB=$lt_RANLIB
10815 +old_archive_cmds=$lt_old_archive_cmds
10816 +old_postinstall_cmds=$lt_old_postinstall_cmds
10817 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
10818 +
10819 +# Create an old-style archive from a shared archive.
10820 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10821
10822 -NM="$ac_cv_path_NM"
10823 -echo "$ac_t""$NM" 1>&6
10824 +# Create a temporary old-style archive to link instead of a shared archive.
10825 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10826
10827 -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
10828 -echo "configure:1367: checking whether ln -s works" >&5
10829 -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
10830 - echo $ac_n "(cached) $ac_c" 1>&6
10831 -else
10832 - rm -f conftestdata
10833 -if ln -s X conftestdata 2>/dev/null
10834 -then
10835 - rm -f conftestdata
10836 - ac_cv_prog_LN_S="ln -s"
10837 -else
10838 - ac_cv_prog_LN_S=ln
10839 -fi
10840 -fi
10841 -LN_S="$ac_cv_prog_LN_S"
10842 -if test "$ac_cv_prog_LN_S" = "ln -s"; then
10843 - echo "$ac_t""yes" 1>&6
10844 -else
10845 - echo "$ac_t""no" 1>&6
10846 -fi
10847 +# Commands used to build and install a shared archive.
10848 +archive_cmds=$lt_archive_cmds
10849 +archive_expsym_cmds=$lt_archive_expsym_cmds
10850 +postinstall_cmds=$lt_postinstall_cmds
10851 +postuninstall_cmds=$lt_postuninstall_cmds
10852
10853 +# Commands to strip libraries.
10854 +old_striplib=$lt_old_striplib
10855 +striplib=$lt_striplib
10856
10857 -case "$target" in
10858 -NONE) lt_target="$host" ;;
10859 -*) lt_target="$target" ;;
10860 -esac
10861 +# Method to check whether dependent libraries are shared objects.
10862 +deplibs_check_method=$lt_deplibs_check_method
10863
10864 -# Check for any special flags to pass to ltconfig.
10865 -libtool_flags="--cache-file=$cache_file"
10866 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
10867 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
10868 -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
10869 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
10870 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
10871 +# Command to use when deplibs_check_method == file_magic.
10872 +file_magic_cmd=$lt_file_magic_cmd
10873
10874 +# Flag that allows shared libraries with undefined symbols to be built.
10875 +allow_undefined_flag=$lt_allow_undefined_flag
10876
10877 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10878 -if test "${enable_libtool_lock+set}" = set; then
10879 - enableval="$enable_libtool_lock"
10880 - :
10881 -fi
10882 +# Flag that forces no undefined symbols.
10883 +no_undefined_flag=$lt_no_undefined_flag
10884
10885 -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
10886 -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
10887 +# Commands used to finish a libtool library installation in a directory.
10888 +finish_cmds=$lt_finish_cmds
10889
10890 -# Some flags need to be propagated to the compiler or linker for good
10891 -# libtool support.
10892 -case "$lt_target" in
10893 -*-*-irix6*)
10894 - # Find out which ABI we are using.
10895 - echo '#line 1416 "configure"' > conftest.$ac_ext
10896 - if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10897 - case "`/usr/bin/file conftest.o`" in
10898 - *32-bit*)
10899 - LD="${LD-ld} -32"
10900 - ;;
10901 - *N32*)
10902 - LD="${LD-ld} -n32"
10903 - ;;
10904 - *64-bit*)
10905 - LD="${LD-ld} -64"
10906 - ;;
10907 - esac
10908 - fi
10909 - rm -rf conftest*
10910 - ;;
10911 +# Same as above, but a single script fragment to be evaled but not shown.
10912 +finish_eval=$lt_finish_eval
10913
10914 -*-*-sco3.2v5*)
10915 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10916 - SAVE_CFLAGS="$CFLAGS"
10917 - CFLAGS="$CFLAGS -belf"
10918 - echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
10919 -echo "configure:1438: checking whether the C compiler needs -belf" >&5
10920 -if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
10921 - echo $ac_n "(cached) $ac_c" 1>&6
10922 -else
10923 - cat > conftest.$ac_ext <<EOF
10924 -#line 1443 "configure"
10925 -#include "confdefs.h"
10926 +# Take the output of nm and produce a listing of raw symbols and C names.
10927 +global_symbol_pipe=$lt_global_symbol_pipe
10928
10929 -int main() {
10930 +# Transform the output of nm in a proper C declaration
10931 +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
10932
10933 -; return 0; }
10934 -EOF
10935 -if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10936 - rm -rf conftest*
10937 - lt_cv_cc_needs_belf=yes
10938 -else
10939 - echo "configure: failed program was:" >&5
10940 - cat conftest.$ac_ext >&5
10941 - rm -rf conftest*
10942 - lt_cv_cc_needs_belf=no
10943 -fi
10944 -rm -f conftest*
10945 -fi
10946 +# Transform the output of nm in a C name address pair
10947 +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
10948
10949 -echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
10950 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10951 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10952 - CFLAGS="$SAVE_CFLAGS"
10953 - fi
10954 - ;;
10955 +# This is the shared library runtime path variable.
10956 +runpath_var=$runpath_var
10957
10958 +# This is the shared library path variable.
10959 +shlibpath_var=$shlibpath_var
10960
10961 -esac
10962 +# Is shlibpath searched before the hard-coded library search path?
10963 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10964
10965 +# How to hardcode a shared library path into an executable.
10966 +hardcode_action=$hardcode_action
10967
10968 -# Save cache, so that ltconfig can load it
10969 -cat > confcache <<\EOF
10970 -# This file is a shell script that caches the results of configure
10971 -# tests run on this system so they can be shared between configure
10972 -# scripts and configure runs. It is not useful on other systems.
10973 -# If it contains results you don't want to keep, you may remove or edit it.
10974 +# Whether we should hardcode library paths into libraries.
10975 +hardcode_into_libs=$hardcode_into_libs
10976 +
10977 +# Flag to hardcode \$libdir into a binary during linking.
10978 +# This must work even if \$libdir does not exist.
10979 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10980 +
10981 +# Whether we need a single -rpath flag with a separated argument.
10982 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
10983 +
10984 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
10985 +# resulting binary.
10986 +hardcode_direct=$hardcode_direct
10987 +
10988 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10989 +# resulting binary.
10990 +hardcode_minus_L=$hardcode_minus_L
10991 +
10992 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10993 +# the resulting binary.
10994 +hardcode_shlibpath_var=$hardcode_shlibpath_var
10995 +
10996 +# Variables whose values should be saved in libtool wrapper scripts and
10997 +# restored at relink time.
10998 +variables_saved_for_relink="$variables_saved_for_relink"
10999 +
11000 +# Whether libtool must link a program against all its dependency libraries.
11001 +link_all_deplibs=$link_all_deplibs
11002 +
11003 +# Compile-time system search path for libraries
11004 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11005 +
11006 +# Run-time system search path for libraries
11007 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11008 +
11009 +# Fix the shell variable \$srcfile for the compiler.
11010 +fix_srcfile_path="$fix_srcfile_path"
11011 +
11012 +# Set to yes if exported symbols are required.
11013 +always_export_symbols=$always_export_symbols
11014 +
11015 +# The commands to list exported symbols.
11016 +export_symbols_cmds=$lt_export_symbols_cmds
11017 +
11018 +# The commands to extract the exported symbol list from a shared archive.
11019 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
11020 +
11021 +# Symbols that should not be listed in the preloaded symbols.
11022 +exclude_expsyms=$lt_exclude_expsyms
11023 +
11024 +# Symbols that must always be exported.
11025 +include_expsyms=$lt_include_expsyms
11026 +
11027 +# ### END LIBTOOL CONFIG
11028 +
11029 +__EOF__
11030 +
11031 + case $host_os in
11032 + aix3*)
11033 + cat <<\EOF >> "${ofile}T"
11034 +
11035 +# AIX sometimes has problems with the GCC collect2 program. For some
11036 +# reason, if we set the COLLECT_NAMES environment variable, the problems
11037 +# vanish in a puff of smoke.
11038 +if test "X${COLLECT_NAMES+set}" != Xset; then
11039 + COLLECT_NAMES=
11040 + export COLLECT_NAMES
11041 +fi
11042 +EOF
11043 + ;;
11044 + esac
11045 +
11046 + case $host_os in
11047 + cygwin* | mingw* | pw32* | os2*)
11048 + cat <<'EOF' >> "${ofile}T"
11049 + # This is a source program that is used to create dlls on Windows
11050 + # Don't remove nor modify the starting and closing comments
11051 +# /* ltdll.c starts here */
11052 +# #define WIN32_LEAN_AND_MEAN
11053 +# #include <windows.h>
11054 +# #undef WIN32_LEAN_AND_MEAN
11055 +# #include <stdio.h>
11056 #
11057 -# By default, configure uses ./config.cache as the cache file,
11058 -# creating it if it does not exist already. You can give configure
11059 -# the --cache-file=FILE option to use a different cache file; that is
11060 -# what configure does when it calls configure scripts in
11061 -# subdirectories, so they share the cache.
11062 -# Giving --cache-file=/dev/null disables caching, for debugging configure.
11063 -# config.status only pays attention to the cache file if you give it the
11064 -# --recheck option to rerun configure.
11065 +# #ifndef __CYGWIN__
11066 +# # ifdef __CYGWIN32__
11067 +# # define __CYGWIN__ __CYGWIN32__
11068 +# # endif
11069 +# #endif
11070 +#
11071 +# #ifdef __cplusplus
11072 +# extern "C" {
11073 +# #endif
11074 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
11075 +# #ifdef __cplusplus
11076 +# }
11077 +# #endif
11078 +#
11079 +# #ifdef __CYGWIN__
11080 +# #include <cygwin/cygwin_dll.h>
11081 +# DECLARE_CYGWIN_DLL( DllMain );
11082 +# #endif
11083 +# HINSTANCE __hDllInstance_base;
11084 +#
11085 +# BOOL APIENTRY
11086 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
11087 +# {
11088 +# __hDllInstance_base = hInst;
11089 +# return TRUE;
11090 +# }
11091 +# /* ltdll.c ends here */
11092 + # This is a source program that is used to create import libraries
11093 + # on Windows for dlls which lack them. Don't remove nor modify the
11094 + # starting and closing comments
11095 +# /* impgen.c starts here */
11096 +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
11097 +#
11098 +# This file is part of GNU libtool.
11099 +#
11100 +# This program is free software; you can redistribute it and/or modify
11101 +# it under the terms of the GNU General Public License as published by
11102 +# the Free Software Foundation; either version 2 of the License, or
11103 +# (at your option) any later version.
11104 +#
11105 +# This program is distributed in the hope that it will be useful,
11106 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
11107 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11108 +# GNU General Public License for more details.
11109 +#
11110 +# You should have received a copy of the GNU General Public License
11111 +# along with this program; if not, write to the Free Software
11112 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11113 +# */
11114 +#
11115 +# #include <stdio.h> /* for printf() */
11116 +# #include <unistd.h> /* for open(), lseek(), read() */
11117 +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
11118 +# #include <string.h> /* for strdup() */
11119 +#
11120 +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
11121 +# #ifndef O_BINARY
11122 +# #define O_BINARY 0
11123 +# #endif
11124 +#
11125 +# static unsigned int
11126 +# pe_get16 (fd, offset)
11127 +# int fd;
11128 +# int offset;
11129 +# {
11130 +# unsigned char b[2];
11131 +# lseek (fd, offset, SEEK_SET);
11132 +# read (fd, b, 2);
11133 +# return b[0] + (b[1]<<8);
11134 +# }
11135 +#
11136 +# static unsigned int
11137 +# pe_get32 (fd, offset)
11138 +# int fd;
11139 +# int offset;
11140 +# {
11141 +# unsigned char b[4];
11142 +# lseek (fd, offset, SEEK_SET);
11143 +# read (fd, b, 4);
11144 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
11145 +# }
11146 +#
11147 +# static unsigned int
11148 +# pe_as32 (ptr)
11149 +# void *ptr;
11150 +# {
11151 +# unsigned char *b = ptr;
11152 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
11153 +# }
11154 +#
11155 +# int
11156 +# main (argc, argv)
11157 +# int argc;
11158 +# char *argv[];
11159 +# {
11160 +# int dll;
11161 +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
11162 +# unsigned long export_rva, export_size, nsections, secptr, expptr;
11163 +# unsigned long name_rvas, nexp;
11164 +# unsigned char *expdata, *erva;
11165 +# char *filename, *dll_name;
11166 +#
11167 +# filename = argv[1];
11168 +#
11169 +# dll = open(filename, O_RDONLY|O_BINARY);
11170 +# if (dll < 1)
11171 +# return 1;
11172 +#
11173 +# dll_name = filename;
11174 +#
11175 +# for (i=0; filename[i]; i++)
11176 +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
11177 +# dll_name = filename + i +1;
11178 +#
11179 +# pe_header_offset = pe_get32 (dll, 0x3c);
11180 +# opthdr_ofs = pe_header_offset + 4 + 20;
11181 +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
11182 #
11183 +# if (num_entries < 1) /* no exports */
11184 +# return 1;
11185 +#
11186 +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
11187 +# export_size = pe_get32 (dll, opthdr_ofs + 100);
11188 +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
11189 +# secptr = (pe_header_offset + 4 + 20 +
11190 +# pe_get16 (dll, pe_header_offset + 4 + 16));
11191 +#
11192 +# expptr = 0;
11193 +# for (i = 0; i < nsections; i++)
11194 +# {
11195 +# char sname[8];
11196 +# unsigned long secptr1 = secptr + 40 * i;
11197 +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
11198 +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
11199 +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
11200 +# lseek(dll, secptr1, SEEK_SET);
11201 +# read(dll, sname, 8);
11202 +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
11203 +# {
11204 +# expptr = fptr + (export_rva - vaddr);
11205 +# if (export_rva + export_size > vaddr + vsize)
11206 +# export_size = vsize - (export_rva - vaddr);
11207 +# break;
11208 +# }
11209 +# }
11210 +#
11211 +# expdata = (unsigned char*)malloc(export_size);
11212 +# lseek (dll, expptr, SEEK_SET);
11213 +# read (dll, expdata, export_size);
11214 +# erva = expdata - export_rva;
11215 +#
11216 +# nexp = pe_as32 (expdata+24);
11217 +# name_rvas = pe_as32 (expdata+32);
11218 +#
11219 +# printf ("EXPORTS\n");
11220 +# for (i = 0; i<nexp; i++)
11221 +# {
11222 +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
11223 +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
11224 +# }
11225 +#
11226 +# return 0;
11227 +# }
11228 +# /* impgen.c ends here */
11229 +
11230 EOF
11231 -# The following way of writing the cache mishandles newlines in values,
11232 -# but we know of no workaround that is simple, portable, and efficient.
11233 -# So, don't put newlines in cache variables' values.
11234 -# Ultrix sh set writes to stderr and can't be redirected directly,
11235 -# and sets the high bit in the cache file unless we assign to the vars.
11236 -(set) 2>&1 |
11237 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
11238 - *ac_space=\ *)
11239 - # `set' does not quote correctly, so add quotes (double-quote substitution
11240 - # turns \\\\ into \\, and sed turns \\ into \).
11241 - sed -n \
11242 - -e "s/'/'\\\\''/g" \
11243 - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11244 - ;;
11245 - *)
11246 - # `set' quotes correctly as required by POSIX, so do not add quotes.
11247 - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11248 ;;
11249 - esac >> confcache
11250 -if cmp -s $cache_file confcache; then
11251 - :
11252 -else
11253 - if test -w $cache_file; then
11254 - echo "updating cache $cache_file"
11255 - cat confcache > $cache_file
11256 - else
11257 - echo "not updating unwritable cache $cache_file"
11258 - fi
11259 + esac
11260 +
11261 + # We use sed instead of cat because bash on DJGPP gets confused if
11262 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
11263 + # text mode, it properly converts lines to CR/LF. This bash problem
11264 + # is reportedly fixed, but why not run on old versions too?
11265 + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
11266 +
11267 + mv -f "${ofile}T" "$ofile" || \
11268 + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
11269 + chmod +x "$ofile"
11270 fi
11271 -rm -f confcache
11272
11273
11274 -# Actually configure libtool. ac_aux_dir is where install-sh is found.
11275 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
11276 -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
11277 -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
11278 -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
11279 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
11280 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
11281 -|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
11282
11283 -# Reload cache, that may have been modified by ltconfig
11284 -if test -r "$cache_file"; then
11285 - echo "loading cache $cache_file"
11286 - . $cache_file
11287 -else
11288 - echo "creating cache $cache_file"
11289 - > $cache_file
11290 -fi
11291
11292
11293 # This can be used to rebuild libtool when needed
11294 -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
11295 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11296
11297 # Always use our own libtool.
11298 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11299
11300 -# Redirect the config.log output again, so that the ltconfig log is not
11301 -# clobbered by the next message.
11302 -exec 5>>./config.log
11303 +# Prevent multiple expansion
11304 +
11305
11306
11307 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
11308 -echo "configure:1553: checking whether to enable maintainer-specific portions of Makefiles" >&5
11309 +echo "configure:5479: checking whether to enable maintainer-specific portions of Makefiles" >&5
11310 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11311 if test "${enable_maintainer_mode+set}" = set; then
11312 enableval="$enable_maintainer_mode"
11313 @@ -1579,7 +5505,7 @@
11314 fi
11315
11316 echo $ac_n "checking host system type""... $ac_c" 1>&6
11317 -echo "configure:1583: checking host system type" >&5
11318 +echo "configure:5509: checking host system type" >&5
11319
11320 host_alias=$host
11321 case "$host_alias" in
11322 @@ -1649,7 +5575,7 @@
11323 mem_warn=false
11324
11325 echo $ac_n "checking whether to enable memory checking""... $ac_c" 1>&6
11326 -echo "configure:1653: checking whether to enable memory checking" >&5
11327 +echo "configure:5579: checking whether to enable memory checking" >&5
11328 if test "x$enable_mem_check" = "xyes"; then
11329 cat >> confdefs.h <<\EOF
11330 #define ENABLE_MEM_CHECK 1
11331 @@ -1663,7 +5589,7 @@
11332 fi
11333
11334 echo $ac_n "checking whether to enable memory profiling""... $ac_c" 1>&6
11335 -echo "configure:1667: checking whether to enable memory profiling" >&5
11336 +echo "configure:5593: checking whether to enable memory profiling" >&5
11337 if test "x$enable_mem_profile" = "xyes"; then
11338 cat >> confdefs.h <<\EOF
11339 #define ENABLE_MEM_PROFILE 1
11340 @@ -1711,7 +5637,7 @@
11341 # Extract the first word of "gcc", so it can be a program name with args.
11342 set dummy gcc; ac_word=$2
11343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11344 -echo "configure:1715: checking for $ac_word" >&5
11345 +echo "configure:5641: checking for $ac_word" >&5
11346 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
11347 echo $ac_n "(cached) $ac_c" 1>&6
11348 else
11349 @@ -1741,7 +5667,7 @@
11350 # Extract the first word of "cc", so it can be a program name with args.
11351 set dummy cc; ac_word=$2
11352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11353 -echo "configure:1745: checking for $ac_word" >&5
11354 +echo "configure:5671: checking for $ac_word" >&5
11355 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
11356 echo $ac_n "(cached) $ac_c" 1>&6
11357 else
11358 @@ -1792,7 +5718,7 @@
11359 # Extract the first word of "cl", so it can be a program name with args.
11360 set dummy cl; ac_word=$2
11361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11362 -echo "configure:1796: checking for $ac_word" >&5
11363 +echo "configure:5722: checking for $ac_word" >&5
11364 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
11365 echo $ac_n "(cached) $ac_c" 1>&6
11366 else
11367 @@ -1824,7 +5750,7 @@
11368 fi
11369
11370 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
11371 -echo "configure:1828: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
11372 +echo "configure:5754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
11373
11374 ac_ext=c
11375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11376 @@ -1835,12 +5761,12 @@
11377
11378 cat > conftest.$ac_ext << EOF
11379
11380 -#line 1839 "configure"
11381 +#line 5765 "configure"
11382 #include "confdefs.h"
11383
11384 main(){return(0);}
11385 EOF
11386 -if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11387 +if { (eval echo configure:5770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11388 ac_cv_prog_cc_works=yes
11389 # If we can't run a trivial program, we are probably using a cross compiler.
11390 if (./conftest; exit) 2>/dev/null; then
11391 @@ -1866,12 +5792,12 @@
11392 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
11393 fi
11394 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
11395 -echo "configure:1870: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
11396 +echo "configure:5796: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
11397 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
11398 cross_compiling=$ac_cv_prog_cc_cross
11399
11400 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
11401 -echo "configure:1875: checking whether we are using GNU C" >&5
11402 +echo "configure:5801: checking whether we are using GNU C" >&5
11403 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
11404 echo $ac_n "(cached) $ac_c" 1>&6
11405 else
11406 @@ -1880,7 +5806,7 @@
11407 yes;
11408 #endif
11409 EOF
11410 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
11411 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
11412 ac_cv_prog_gcc=yes
11413 else
11414 ac_cv_prog_gcc=no
11415 @@ -1899,7 +5825,7 @@
11416 ac_save_CFLAGS="$CFLAGS"
11417 CFLAGS=
11418 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
11419 -echo "configure:1903: checking whether ${CC-cc} accepts -g" >&5
11420 +echo "configure:5829: checking whether ${CC-cc} accepts -g" >&5
11421 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
11422 echo $ac_n "(cached) $ac_c" 1>&6
11423 else
11424 @@ -1934,7 +5860,7 @@
11425
11426
11427 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
11428 -echo "configure:1938: checking for ${CC-cc} option to accept ANSI C" >&5
11429 +echo "configure:5864: checking for ${CC-cc} option to accept ANSI C" >&5
11430 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
11431 echo $ac_n "(cached) $ac_c" 1>&6
11432 else
11433 @@ -1950,7 +5876,7 @@
11434 do
11435 CC="$ac_save_CC $ac_arg"
11436 cat > conftest.$ac_ext <<EOF
11437 -#line 1954 "configure"
11438 +#line 5880 "configure"
11439 #include "confdefs.h"
11440 #include <stdarg.h>
11441 #include <stdio.h>
11442 @@ -1987,7 +5913,7 @@
11443
11444 ; return 0; }
11445 EOF
11446 -if { (eval echo configure:1991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11447 +if { (eval echo configure:5917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11448 rm -rf conftest*
11449 am_cv_prog_cc_stdc="$ac_arg"; break
11450 else
11451 @@ -2022,7 +5948,7 @@
11452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11453 # ./install, which can be erroneously created by make from ./install.sh.
11454 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
11455 -echo "configure:2026: checking for a BSD compatible install" >&5
11456 +echo "configure:5952: checking for a BSD compatible install" >&5
11457 if test -z "$INSTALL"; then
11458 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
11459 echo $ac_n "(cached) $ac_c" 1>&6
11460 @@ -2095,19 +6021,19 @@
11461 fi
11462
11463 echo $ac_n "checking for extra flags to get ANSI library prototypes""... $ac_c" 1>&6
11464 -echo "configure:2099: checking for extra flags to get ANSI library prototypes" >&5
11465 +echo "configure:6025: checking for extra flags to get ANSI library prototypes" >&5
11466 glib_save_LIBS=$LIBS
11467 LIBS="$LIBS -lm"
11468 if test "$cross_compiling" = yes; then
11469 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11470 else
11471 cat > conftest.$ac_ext <<EOF
11472 -#line 2106 "configure"
11473 +#line 6032 "configure"
11474 #include "confdefs.h"
11475 #include <math.h>
11476 int main (void) { return (log(1) != log(1.)); }
11477 EOF
11478 -if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11479 +if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11480 then
11481 echo "$ac_t""none needed" 1>&6
11482 else
11483 @@ -2120,12 +6046,12 @@
11484 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11485 else
11486 cat > conftest.$ac_ext <<EOF
11487 -#line 2124 "configure"
11488 +#line 6050 "configure"
11489 #include "confdefs.h"
11490 #include <math.h>
11491 int main (void) { return (log(1) != log(1.)); }
11492 EOF
11493 -if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11494 +if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11495 then
11496 echo "$ac_t""-std1" 1>&6
11497 else
11498 @@ -2148,16 +6074,16 @@
11499 LIBS=$glib_save_LIBS
11500
11501 echo $ac_n "checking for extra flags for POSIX compliance""... $ac_c" 1>&6
11502 -echo "configure:2152: checking for extra flags for POSIX compliance" >&5
11503 +echo "configure:6078: checking for extra flags for POSIX compliance" >&5
11504 cat > conftest.$ac_ext <<EOF
11505 -#line 2154 "configure"
11506 +#line 6080 "configure"
11507 #include "confdefs.h"
11508 #include <dirent.h>
11509 int main() {
11510 DIR *dir;
11511 ; return 0; }
11512 EOF
11513 -if { (eval echo configure:2161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11514 +if { (eval echo configure:6087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11515 rm -rf conftest*
11516 echo "$ac_t""none needed" 1>&6
11517 else
11518 @@ -2167,14 +6093,14 @@
11519 glib_save_CFLAGS=$CFLAGS
11520 CFLAGS="$CFLAGS -posix"
11521 cat > conftest.$ac_ext <<EOF
11522 -#line 2171 "configure"
11523 +#line 6097 "configure"
11524 #include "confdefs.h"
11525 #include <dirent.h>
11526 int main() {
11527 DIR *dir;
11528 ; return 0; }
11529 EOF
11530 -if { (eval echo configure:2178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11531 +if { (eval echo configure:6104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11532 rm -rf conftest*
11533 echo "$ac_t""-posix" 1>&6
11534 else
11535 @@ -2190,93 +6116,13 @@
11536 rm -f conftest*
11537
11538 # Checks for header files.
11539 -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
11540 -echo "configure:2195: checking how to run the C preprocessor" >&5
11541 -# On Suns, sometimes $CPP names a directory.
11542 -if test -n "$CPP" && test -d "$CPP"; then
11543 - CPP=
11544 -fi
11545 -if test -z "$CPP"; then
11546 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
11547 - echo $ac_n "(cached) $ac_c" 1>&6
11548 -else
11549 - # This must be in double quotes, not single quotes, because CPP may get
11550 - # substituted into the Makefile and "${CC-cc}" will confuse make.
11551 - CPP="${CC-cc} -E"
11552 - # On the NeXT, cc -E runs the code through the compiler's parser,
11553 - # not just through cpp.
11554 - cat > conftest.$ac_ext <<EOF
11555 -#line 2210 "configure"
11556 -#include "confdefs.h"
11557 -#include <assert.h>
11558 -Syntax Error
11559 -EOF
11560 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11561 -{ (eval echo configure:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11562 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11563 -if test -z "$ac_err"; then
11564 - :
11565 -else
11566 - echo "$ac_err" >&5
11567 - echo "configure: failed program was:" >&5
11568 - cat conftest.$ac_ext >&5
11569 - rm -rf conftest*
11570 - CPP="${CC-cc} -E -traditional-cpp"
11571 - cat > conftest.$ac_ext <<EOF
11572 -#line 2227 "configure"
11573 -#include "confdefs.h"
11574 -#include <assert.h>
11575 -Syntax Error
11576 -EOF
11577 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11578 -{ (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11579 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11580 -if test -z "$ac_err"; then
11581 - :
11582 -else
11583 - echo "$ac_err" >&5
11584 - echo "configure: failed program was:" >&5
11585 - cat conftest.$ac_ext >&5
11586 - rm -rf conftest*
11587 - CPP="${CC-cc} -nologo -E"
11588 - cat > conftest.$ac_ext <<EOF
11589 -#line 2244 "configure"
11590 -#include "confdefs.h"
11591 -#include <assert.h>
11592 -Syntax Error
11593 -EOF
11594 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11595 -{ (eval echo configure:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11596 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11597 -if test -z "$ac_err"; then
11598 - :
11599 -else
11600 - echo "$ac_err" >&5
11601 - echo "configure: failed program was:" >&5
11602 - cat conftest.$ac_ext >&5
11603 - rm -rf conftest*
11604 - CPP=/lib/cpp
11605 -fi
11606 -rm -f conftest*
11607 -fi
11608 -rm -f conftest*
11609 -fi
11610 -rm -f conftest*
11611 - ac_cv_prog_CPP="$CPP"
11612 -fi
11613 - CPP="$ac_cv_prog_CPP"
11614 -else
11615 - ac_cv_prog_CPP="$CPP"
11616 -fi
11617 -echo "$ac_t""$CPP" 1>&6
11618 -
11619 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11620 -echo "configure:2275: checking for ANSI C header files" >&5
11621 +echo "configure:6121: checking for ANSI C header files" >&5
11622 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11623 echo $ac_n "(cached) $ac_c" 1>&6
11624 else
11625 cat > conftest.$ac_ext <<EOF
11626 -#line 2280 "configure"
11627 +#line 6126 "configure"
11628 #include "confdefs.h"
11629 #include <stdlib.h>
11630 #include <stdarg.h>
11631 @@ -2284,7 +6130,7 @@
11632 #include <float.h>
11633 EOF
11634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11635 -{ (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11636 +{ (eval echo configure:6134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11638 if test -z "$ac_err"; then
11639 rm -rf conftest*
11640 @@ -2301,7 +6147,7 @@
11641 if test $ac_cv_header_stdc = yes; then
11642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11643 cat > conftest.$ac_ext <<EOF
11644 -#line 2305 "configure"
11645 +#line 6151 "configure"
11646 #include "confdefs.h"
11647 #include <string.h>
11648 EOF
11649 @@ -2319,7 +6165,7 @@
11650 if test $ac_cv_header_stdc = yes; then
11651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11652 cat > conftest.$ac_ext <<EOF
11653 -#line 2323 "configure"
11654 +#line 6169 "configure"
11655 #include "confdefs.h"
11656 #include <stdlib.h>
11657 EOF
11658 @@ -2340,7 +6186,7 @@
11659 :
11660 else
11661 cat > conftest.$ac_ext <<EOF
11662 -#line 2344 "configure"
11663 +#line 6190 "configure"
11664 #include "confdefs.h"
11665 #include <ctype.h>
11666 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11667 @@ -2351,7 +6197,7 @@
11668 exit (0); }
11669
11670 EOF
11671 -if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11672 +if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11673 then
11674 :
11675 else
11676 @@ -2377,12 +6223,12 @@
11677
11678 # Checks for library functions.
11679 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11680 -echo "configure:2381: checking for vprintf" >&5
11681 +echo "configure:6227: checking for vprintf" >&5
11682 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
11684 else
11685 cat > conftest.$ac_ext <<EOF
11686 -#line 2386 "configure"
11687 +#line 6232 "configure"
11688 #include "confdefs.h"
11689 /* System header to define __stub macros and hopefully few prototypes,
11690 which can conflict with char vprintf(); below. */
11691 @@ -2405,7 +6251,7 @@
11692
11693 ; return 0; }
11694 EOF
11695 -if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11696 +if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11697 rm -rf conftest*
11698 eval "ac_cv_func_vprintf=yes"
11699 else
11700 @@ -2429,12 +6275,12 @@
11701
11702 if test "$ac_cv_func_vprintf" != yes; then
11703 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11704 -echo "configure:2433: checking for _doprnt" >&5
11705 +echo "configure:6279: checking for _doprnt" >&5
11706 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11708 else
11709 cat > conftest.$ac_ext <<EOF
11710 -#line 2438 "configure"
11711 +#line 6284 "configure"
11712 #include "confdefs.h"
11713 /* System header to define __stub macros and hopefully few prototypes,
11714 which can conflict with char _doprnt(); below. */
11715 @@ -2457,7 +6303,7 @@
11716
11717 ; return 0; }
11718 EOF
11719 -if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11720 +if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11721 rm -rf conftest*
11722 eval "ac_cv_func__doprnt=yes"
11723 else
11724 @@ -2485,12 +6331,12 @@
11725 for ac_func in atexit on_exit
11726 do
11727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11728 -echo "configure:2489: checking for $ac_func" >&5
11729 +echo "configure:6335: checking for $ac_func" >&5
11730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
11732 else
11733 cat > conftest.$ac_ext <<EOF
11734 -#line 2494 "configure"
11735 +#line 6340 "configure"
11736 #include "confdefs.h"
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char $ac_func(); below. */
11739 @@ -2513,7 +6359,7 @@
11740
11741 ; return 0; }
11742 EOF
11743 -if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11744 +if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11745 rm -rf conftest*
11746 eval "ac_cv_func_$ac_func=yes"
11747 else
11748 @@ -2539,7 +6385,7 @@
11749
11750
11751 echo $ac_n "checking size of char""... $ac_c" 1>&6
11752 -echo "configure:2543: checking size of char" >&5
11753 +echo "configure:6389: checking size of char" >&5
11754 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11755 echo $ac_n "(cached) $ac_c" 1>&6
11756 else
11757 @@ -2547,9 +6393,10 @@
11758 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11759 else
11760 cat > conftest.$ac_ext <<EOF
11761 -#line 2551 "configure"
11762 +#line 6397 "configure"
11763 #include "confdefs.h"
11764 #include <stdio.h>
11765 +#include <sys/types.h>
11766 main()
11767 {
11768 FILE *f=fopen("conftestval", "w");
11769 @@ -2558,7 +6405,7 @@
11770 exit(0);
11771 }
11772 EOF
11773 -if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11774 +if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11775 then
11776 ac_cv_sizeof_char=`cat conftestval`
11777 else
11778 @@ -2578,7 +6425,7 @@
11779
11780
11781 echo $ac_n "checking size of short""... $ac_c" 1>&6
11782 -echo "configure:2582: checking size of short" >&5
11783 +echo "configure:6429: checking size of short" >&5
11784 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11786 else
11787 @@ -2586,9 +6433,10 @@
11788 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11789 else
11790 cat > conftest.$ac_ext <<EOF
11791 -#line 2590 "configure"
11792 +#line 6437 "configure"
11793 #include "confdefs.h"
11794 #include <stdio.h>
11795 +#include <sys/types.h>
11796 main()
11797 {
11798 FILE *f=fopen("conftestval", "w");
11799 @@ -2597,7 +6445,7 @@
11800 exit(0);
11801 }
11802 EOF
11803 -if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11804 +if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11805 then
11806 ac_cv_sizeof_short=`cat conftestval`
11807 else
11808 @@ -2617,7 +6465,7 @@
11809
11810
11811 echo $ac_n "checking size of long""... $ac_c" 1>&6
11812 -echo "configure:2621: checking size of long" >&5
11813 +echo "configure:6469: checking size of long" >&5
11814 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11815 echo $ac_n "(cached) $ac_c" 1>&6
11816 else
11817 @@ -2625,9 +6473,10 @@
11818 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11819 else
11820 cat > conftest.$ac_ext <<EOF
11821 -#line 2629 "configure"
11822 +#line 6477 "configure"
11823 #include "confdefs.h"
11824 #include <stdio.h>
11825 +#include <sys/types.h>
11826 main()
11827 {
11828 FILE *f=fopen("conftestval", "w");
11829 @@ -2636,7 +6485,7 @@
11830 exit(0);
11831 }
11832 EOF
11833 -if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11834 +if { (eval echo configure:6489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11835 then
11836 ac_cv_sizeof_long=`cat conftestval`
11837 else
11838 @@ -2656,7 +6505,7 @@
11839
11840
11841 echo $ac_n "checking size of int""... $ac_c" 1>&6
11842 -echo "configure:2660: checking size of int" >&5
11843 +echo "configure:6509: checking size of int" >&5
11844 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11845 echo $ac_n "(cached) $ac_c" 1>&6
11846 else
11847 @@ -2664,9 +6513,10 @@
11848 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11849 else
11850 cat > conftest.$ac_ext <<EOF
11851 -#line 2668 "configure"
11852 +#line 6517 "configure"
11853 #include "confdefs.h"
11854 #include <stdio.h>
11855 +#include <sys/types.h>
11856 main()
11857 {
11858 FILE *f=fopen("conftestval", "w");
11859 @@ -2675,7 +6525,7 @@
11860 exit(0);
11861 }
11862 EOF
11863 -if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11864 +if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11865 then
11866 ac_cv_sizeof_int=`cat conftestval`
11867 else
11868 @@ -2695,7 +6545,7 @@
11869
11870
11871 echo $ac_n "checking size of void *""... $ac_c" 1>&6
11872 -echo "configure:2699: checking size of void *" >&5
11873 +echo "configure:6549: checking size of void *" >&5
11874 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
11875 echo $ac_n "(cached) $ac_c" 1>&6
11876 else
11877 @@ -2703,9 +6553,10 @@
11878 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11879 else
11880 cat > conftest.$ac_ext <<EOF
11881 -#line 2707 "configure"
11882 +#line 6557 "configure"
11883 #include "confdefs.h"
11884 #include <stdio.h>
11885 +#include <sys/types.h>
11886 main()
11887 {
11888 FILE *f=fopen("conftestval", "w");
11889 @@ -2714,7 +6565,7 @@
11890 exit(0);
11891 }
11892 EOF
11893 -if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11894 +if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11895 then
11896 ac_cv_sizeof_void_p=`cat conftestval`
11897 else
11898 @@ -2734,7 +6585,7 @@
11899
11900
11901 echo $ac_n "checking size of long long""... $ac_c" 1>&6
11902 -echo "configure:2738: checking size of long long" >&5
11903 +echo "configure:6589: checking size of long long" >&5
11904 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11905 echo $ac_n "(cached) $ac_c" 1>&6
11906 else
11907 @@ -2742,9 +6593,10 @@
11908 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11909 else
11910 cat > conftest.$ac_ext <<EOF
11911 -#line 2746 "configure"
11912 +#line 6597 "configure"
11913 #include "confdefs.h"
11914 #include <stdio.h>
11915 +#include <sys/types.h>
11916 main()
11917 {
11918 FILE *f=fopen("conftestval", "w");
11919 @@ -2753,7 +6605,7 @@
11920 exit(0);
11921 }
11922 EOF
11923 -if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11924 +if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11925 then
11926 ac_cv_sizeof_long_long=`cat conftestval`
11927 else
11928 @@ -2774,12 +6626,12 @@
11929
11930
11931 echo $ac_n "checking for working const""... $ac_c" 1>&6
11932 -echo "configure:2778: checking for working const" >&5
11933 +echo "configure:6630: checking for working const" >&5
11934 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11935 echo $ac_n "(cached) $ac_c" 1>&6
11936 else
11937 cat > conftest.$ac_ext <<EOF
11938 -#line 2783 "configure"
11939 +#line 6635 "configure"
11940 #include "confdefs.h"
11941
11942 int main() {
11943 @@ -2828,7 +6680,7 @@
11944
11945 ; return 0; }
11946 EOF
11947 -if { (eval echo configure:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11948 +if { (eval echo configure:6684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11949 rm -rf conftest*
11950 ac_cv_c_const=yes
11951 else
11952 @@ -2850,7 +6702,7 @@
11953
11954
11955 echo $ac_n "checking for __inline""... $ac_c" 1>&6
11956 -echo "configure:2854: checking for __inline" >&5
11957 +echo "configure:6706: checking for __inline" >&5
11958 if eval "test \"`echo '$''{'glib_cv_has__inline'+set}'`\" = set"; then
11959 echo $ac_n "(cached) $ac_c" 1>&6
11960 else
11961 @@ -2859,14 +6711,14 @@
11962 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11963 else
11964 cat > conftest.$ac_ext <<EOF
11965 -#line 2863 "configure"
11966 +#line 6715 "configure"
11967 #include "confdefs.h"
11968
11969 __inline int foo () { return 0; }
11970 int main () { return foo (); }
11971
11972 EOF
11973 -if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11974 +if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11975 then
11976 glib_cv_has__inline=yes
11977
11978 @@ -2891,7 +6743,7 @@
11979
11980 esac
11981 echo $ac_n "checking for __inline__""... $ac_c" 1>&6
11982 -echo "configure:2895: checking for __inline__" >&5
11983 +echo "configure:6747: checking for __inline__" >&5
11984 if eval "test \"`echo '$''{'glib_cv_has__inline__'+set}'`\" = set"; then
11985 echo $ac_n "(cached) $ac_c" 1>&6
11986 else
11987 @@ -2900,14 +6752,14 @@
11988 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11989 else
11990 cat > conftest.$ac_ext <<EOF
11991 -#line 2904 "configure"
11992 +#line 6756 "configure"
11993 #include "confdefs.h"
11994
11995 __inline__ int foo () { return 0; }
11996 int main () { return foo (); }
11997
11998 EOF
11999 -if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12000 +if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12001 then
12002 glib_cv_has__inline__=yes
12003
12004 @@ -2932,7 +6784,7 @@
12005
12006 esac
12007 echo $ac_n "checking for inline""... $ac_c" 1>&6
12008 -echo "configure:2936: checking for inline" >&5
12009 +echo "configure:6788: checking for inline" >&5
12010 if eval "test \"`echo '$''{'glib_cv_hasinline'+set}'`\" = set"; then
12011 echo $ac_n "(cached) $ac_c" 1>&6
12012 else
12013 @@ -2941,14 +6793,14 @@
12014 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12015 else
12016 cat > conftest.$ac_ext <<EOF
12017 -#line 2945 "configure"
12018 +#line 6797 "configure"
12019 #include "confdefs.h"
12020
12021 inline int foo () { return 0; }
12022 int main () { return foo (); }
12023
12024 EOF
12025 -if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12026 +if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12027 then
12028 glib_cv_hasinline=yes
12029
12030 @@ -2974,14 +6826,14 @@
12031 esac
12032
12033 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12034 -echo "configure:2978: checking whether byte ordering is bigendian" >&5
12035 +echo "configure:6830: checking whether byte ordering is bigendian" >&5
12036 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12037 echo $ac_n "(cached) $ac_c" 1>&6
12038 else
12039 ac_cv_c_bigendian=unknown
12040 # See if sys/param.h defines the BYTE_ORDER macro.
12041 cat > conftest.$ac_ext <<EOF
12042 -#line 2985 "configure"
12043 +#line 6837 "configure"
12044 #include "confdefs.h"
12045 #include <sys/types.h>
12046 #include <sys/param.h>
12047 @@ -2992,11 +6844,11 @@
12048 #endif
12049 ; return 0; }
12050 EOF
12051 -if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12052 +if { (eval echo configure:6848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12053 rm -rf conftest*
12054 # It does; now see whether it defined to BIG_ENDIAN or not.
12055 cat > conftest.$ac_ext <<EOF
12056 -#line 3000 "configure"
12057 +#line 6852 "configure"
12058 #include "confdefs.h"
12059 #include <sys/types.h>
12060 #include <sys/param.h>
12061 @@ -3007,7 +6859,7 @@
12062 #endif
12063 ; return 0; }
12064 EOF
12065 -if { (eval echo configure:3011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12066 +if { (eval echo configure:6863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12067 rm -rf conftest*
12068 ac_cv_c_bigendian=yes
12069 else
12070 @@ -3027,7 +6879,7 @@
12071 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12072 else
12073 cat > conftest.$ac_ext <<EOF
12074 -#line 3031 "configure"
12075 +#line 6883 "configure"
12076 #include "confdefs.h"
12077 main () {
12078 /* Are we little or big endian? From Harbison&Steele. */
12079 @@ -3040,7 +6892,7 @@
12080 exit (u.c[sizeof (long) - 1] == 1);
12081 }
12082 EOF
12083 -if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12084 +if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12085 then
12086 ac_cv_c_bigendian=no
12087 else
12088 @@ -3068,17 +6920,17 @@
12089 do
12090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12092 -echo "configure:3072: checking for $ac_hdr" >&5
12093 +echo "configure:6924: checking for $ac_hdr" >&5
12094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12095 echo $ac_n "(cached) $ac_c" 1>&6
12096 else
12097 cat > conftest.$ac_ext <<EOF
12098 -#line 3077 "configure"
12099 +#line 6929 "configure"
12100 #include "confdefs.h"
12101 #include <$ac_hdr>
12102 EOF
12103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12104 -{ (eval echo configure:3082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12105 +{ (eval echo configure:6934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12107 if test -z "$ac_err"; then
12108 rm -rf conftest*
12109 @@ -3111,17 +6963,17 @@
12110 do
12111 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12112 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12113 -echo "configure:3115: checking for $ac_hdr" >&5
12114 +echo "configure:6967: checking for $ac_hdr" >&5
12115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12116 echo $ac_n "(cached) $ac_c" 1>&6
12117 else
12118 cat > conftest.$ac_ext <<EOF
12119 -#line 3120 "configure"
12120 +#line 6972 "configure"
12121 #include "confdefs.h"
12122 #include <$ac_hdr>
12123 EOF
12124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12125 -{ (eval echo configure:3125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12126 +{ (eval echo configure:6977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12128 if test -z "$ac_err"; then
12129 rm -rf conftest*
12130 @@ -3154,17 +7006,17 @@
12131 do
12132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12134 -echo "configure:3158: checking for $ac_hdr" >&5
12135 +echo "configure:7010: checking for $ac_hdr" >&5
12136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12137 echo $ac_n "(cached) $ac_c" 1>&6
12138 else
12139 cat > conftest.$ac_ext <<EOF
12140 -#line 3163 "configure"
12141 +#line 7015 "configure"
12142 #include "confdefs.h"
12143 #include <$ac_hdr>
12144 EOF
12145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12146 -{ (eval echo configure:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12147 +{ (eval echo configure:7020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12149 if test -z "$ac_err"; then
12150 rm -rf conftest*
12151 @@ -3197,17 +7049,17 @@
12152 do
12153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12155 -echo "configure:3201: checking for $ac_hdr" >&5
12156 +echo "configure:7053: checking for $ac_hdr" >&5
12157 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12158 echo $ac_n "(cached) $ac_c" 1>&6
12159 else
12160 cat > conftest.$ac_ext <<EOF
12161 -#line 3206 "configure"
12162 +#line 7058 "configure"
12163 #include "confdefs.h"
12164 #include <$ac_hdr>
12165 EOF
12166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12167 -{ (eval echo configure:3211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12168 +{ (eval echo configure:7063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12170 if test -z "$ac_err"; then
12171 rm -rf conftest*
12172 @@ -3240,17 +7092,17 @@
12173 do
12174 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12175 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12176 -echo "configure:3244: checking for $ac_hdr" >&5
12177 +echo "configure:7096: checking for $ac_hdr" >&5
12178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12179 echo $ac_n "(cached) $ac_c" 1>&6
12180 else
12181 cat > conftest.$ac_ext <<EOF
12182 -#line 3249 "configure"
12183 +#line 7101 "configure"
12184 #include "confdefs.h"
12185 #include <$ac_hdr>
12186 EOF
12187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12188 -{ (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12189 +{ (eval echo configure:7106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12191 if test -z "$ac_err"; then
12192 rm -rf conftest*
12193 @@ -3283,17 +7135,17 @@
12194 do
12195 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12196 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12197 -echo "configure:3287: checking for $ac_hdr" >&5
12198 +echo "configure:7139: checking for $ac_hdr" >&5
12199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12200 echo $ac_n "(cached) $ac_c" 1>&6
12201 else
12202 cat > conftest.$ac_ext <<EOF
12203 -#line 3292 "configure"
12204 +#line 7144 "configure"
12205 #include "confdefs.h"
12206 #include <$ac_hdr>
12207 EOF
12208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12209 -{ (eval echo configure:3297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12210 +{ (eval echo configure:7149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12212 if test -z "$ac_err"; then
12213 rm -rf conftest*
12214 @@ -3326,17 +7178,17 @@
12215 do
12216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12218 -echo "configure:3330: checking for $ac_hdr" >&5
12219 +echo "configure:7182: checking for $ac_hdr" >&5
12220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12221 echo $ac_n "(cached) $ac_c" 1>&6
12222 else
12223 cat > conftest.$ac_ext <<EOF
12224 -#line 3335 "configure"
12225 +#line 7187 "configure"
12226 #include "confdefs.h"
12227 #include <$ac_hdr>
12228 EOF
12229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12230 -{ (eval echo configure:3340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12231 +{ (eval echo configure:7192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12233 if test -z "$ac_err"; then
12234 rm -rf conftest*
12235 @@ -3369,17 +7221,17 @@
12236 do
12237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12239 -echo "configure:3373: checking for $ac_hdr" >&5
12240 +echo "configure:7225: checking for $ac_hdr" >&5
12241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12242 echo $ac_n "(cached) $ac_c" 1>&6
12243 else
12244 cat > conftest.$ac_ext <<EOF
12245 -#line 3378 "configure"
12246 +#line 7230 "configure"
12247 #include "confdefs.h"
12248 #include <$ac_hdr>
12249 EOF
12250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12251 -{ (eval echo configure:3383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12252 +{ (eval echo configure:7235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12254 if test -z "$ac_err"; then
12255 rm -rf conftest*
12256 @@ -3412,17 +7264,17 @@
12257 do
12258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12260 -echo "configure:3416: checking for $ac_hdr" >&5
12261 +echo "configure:7268: checking for $ac_hdr" >&5
12262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12263 echo $ac_n "(cached) $ac_c" 1>&6
12264 else
12265 cat > conftest.$ac_ext <<EOF
12266 -#line 3421 "configure"
12267 +#line 7273 "configure"
12268 #include "confdefs.h"
12269 #include <$ac_hdr>
12270 EOF
12271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12272 -{ (eval echo configure:3426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12273 +{ (eval echo configure:7278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12275 if test -z "$ac_err"; then
12276 rm -rf conftest*
12277 @@ -3455,17 +7307,17 @@
12278 do
12279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12281 -echo "configure:3459: checking for $ac_hdr" >&5
12282 +echo "configure:7311: checking for $ac_hdr" >&5
12283 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12284 echo $ac_n "(cached) $ac_c" 1>&6
12285 else
12286 cat > conftest.$ac_ext <<EOF
12287 -#line 3464 "configure"
12288 +#line 7316 "configure"
12289 #include "confdefs.h"
12290 #include <$ac_hdr>
12291 EOF
12292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12293 -{ (eval echo configure:3469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12294 +{ (eval echo configure:7321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12296 if test -z "$ac_err"; then
12297 rm -rf conftest*
12298 @@ -3499,12 +7351,12 @@
12299 for ac_func in lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll
12300 do
12301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12302 -echo "configure:3503: checking for $ac_func" >&5
12303 +echo "configure:7355: checking for $ac_func" >&5
12304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12305 echo $ac_n "(cached) $ac_c" 1>&6
12306 else
12307 cat > conftest.$ac_ext <<EOF
12308 -#line 3508 "configure"
12309 +#line 7360 "configure"
12310 #include "confdefs.h"
12311 /* System header to define __stub macros and hopefully few prototypes,
12312 which can conflict with char $ac_func(); below. */
12313 @@ -3527,7 +7379,7 @@
12314
12315 ; return 0; }
12316 EOF
12317 -if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12318 +if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12319 rm -rf conftest*
12320 eval "ac_cv_func_$ac_func=yes"
12321 else
12322 @@ -3554,9 +7406,9 @@
12323
12324 # Check for sys_errlist
12325 echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
12326 -echo "configure:3558: checking for sys_errlist" >&5
12327 +echo "configure:7410: checking for sys_errlist" >&5
12328 cat > conftest.$ac_ext <<EOF
12329 -#line 3560 "configure"
12330 +#line 7412 "configure"
12331 #include "confdefs.h"
12332
12333 int main() {
12334 @@ -3567,7 +7419,7 @@
12335
12336 ; return 0; }
12337 EOF
12338 -if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12339 +if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12340 rm -rf conftest*
12341 glib_ok=yes
12342 else
12343 @@ -3587,9 +7439,9 @@
12344
12345 # Check for sys_siglist
12346 echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6
12347 -echo "configure:3591: checking for sys_siglist" >&5
12348 +echo "configure:7443: checking for sys_siglist" >&5
12349 cat > conftest.$ac_ext <<EOF
12350 -#line 3593 "configure"
12351 +#line 7445 "configure"
12352 #include "confdefs.h"
12353
12354 int main() {
12355 @@ -3599,7 +7451,7 @@
12356
12357 ; return 0; }
12358 EOF
12359 -if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12360 +if { (eval echo configure:7455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12361 rm -rf conftest*
12362 glib_ok=yes
12363 else
12364 @@ -3619,9 +7471,9 @@
12365
12366 # Check for sys_siglist decl (see Tue Jan 19 00:44:24 1999 in changelog)
12367 echo $ac_n "checking for sys_siglist declaration""... $ac_c" 1>&6
12368 -echo "configure:3623: checking for sys_siglist declaration" >&5
12369 +echo "configure:7475: checking for sys_siglist declaration" >&5
12370 cat > conftest.$ac_ext <<EOF
12371 -#line 3625 "configure"
12372 +#line 7477 "configure"
12373 #include "confdefs.h"
12374 #include <signal.h>
12375 int main() {
12376 @@ -3630,7 +7482,7 @@
12377
12378 ; return 0; }
12379 EOF
12380 -if { (eval echo configure:3634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12381 +if { (eval echo configure:7486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12382 rm -rf conftest*
12383 glib_ok=yes
12384 else
12385 @@ -3650,16 +7502,16 @@
12386
12387 # Check if <sys/select.h> needs to be included for fd_set
12388 echo $ac_n "checking for fd_set""... $ac_c" 1>&6
12389 -echo "configure:3654: checking for fd_set" >&5
12390 +echo "configure:7506: checking for fd_set" >&5
12391 cat > conftest.$ac_ext <<EOF
12392 -#line 3656 "configure"
12393 +#line 7508 "configure"
12394 #include "confdefs.h"
12395 #include <sys/types.h>
12396 int main() {
12397 fd_set readMask, writeMask;
12398 ; return 0; }
12399 EOF
12400 -if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12401 +if { (eval echo configure:7515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12402 rm -rf conftest*
12403 gtk_ok=yes
12404 else
12405 @@ -3673,7 +7525,7 @@
12406 echo "$ac_t""yes, found in sys/types.h" 1>&6
12407 else
12408 cat > conftest.$ac_ext <<EOF
12409 -#line 3677 "configure"
12410 +#line 7529 "configure"
12411 #include "confdefs.h"
12412 #include <sys/select.h>
12413 EOF
12414 @@ -3707,14 +7559,14 @@
12415 # Check for wchar.h
12416
12417 echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
12418 -echo "configure:3711: checking for wchar.h" >&5
12419 +echo "configure:7563: checking for wchar.h" >&5
12420 cat > conftest.$ac_ext <<EOF
12421 -#line 3713 "configure"
12422 +#line 7565 "configure"
12423 #include "confdefs.h"
12424 #include <wchar.h>
12425 EOF
12426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12427 -{ (eval echo configure:3718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12428 +{ (eval echo configure:7570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12430 if test -z "$ac_err"; then
12431 rm -rf conftest*
12432 @@ -3738,14 +7590,14 @@
12433 # Check for wctype.h (for iswalnum)
12434
12435 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
12436 -echo "configure:3742: checking for wctype.h" >&5
12437 +echo "configure:7594: checking for wctype.h" >&5
12438 cat > conftest.$ac_ext <<EOF
12439 -#line 3744 "configure"
12440 +#line 7596 "configure"
12441 #include "confdefs.h"
12442 #include <wctype.h>
12443 EOF
12444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12445 -{ (eval echo configure:3749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12446 +{ (eval echo configure:7601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12448 if test -z "$ac_err"; then
12449 rm -rf conftest*
12450 @@ -3769,12 +7621,12 @@
12451 oLIBS="$LIBS"
12452 # in Solaris 2.5, `iswalnum' is in -lw
12453 echo $ac_n "checking for iswalnum""... $ac_c" 1>&6
12454 -echo "configure:3773: checking for iswalnum" >&5
12455 +echo "configure:7625: checking for iswalnum" >&5
12456 if eval "test \"`echo '$''{'ac_cv_func_iswalnum'+set}'`\" = set"; then
12457 echo $ac_n "(cached) $ac_c" 1>&6
12458 else
12459 cat > conftest.$ac_ext <<EOF
12460 -#line 3778 "configure"
12461 +#line 7630 "configure"
12462 #include "confdefs.h"
12463 /* System header to define __stub macros and hopefully few prototypes,
12464 which can conflict with char iswalnum(); below. */
12465 @@ -3797,7 +7649,7 @@
12466
12467 ; return 0; }
12468 EOF
12469 -if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12470 +if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12471 rm -rf conftest*
12472 eval "ac_cv_func_iswalnum=yes"
12473 else
12474 @@ -3815,7 +7667,7 @@
12475 else
12476 echo "$ac_t""no" 1>&6
12477 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
12478 -echo "configure:3819: checking for iswalnum in -lw" >&5
12479 +echo "configure:7671: checking for iswalnum in -lw" >&5
12480 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
12481 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12482 echo $ac_n "(cached) $ac_c" 1>&6
12483 @@ -3823,7 +7675,7 @@
12484 ac_save_LIBS="$LIBS"
12485 LIBS="-lw $LIBS"
12486 cat > conftest.$ac_ext <<EOF
12487 -#line 3827 "configure"
12488 +#line 7679 "configure"
12489 #include "confdefs.h"
12490 /* Override any gcc2 internal prototype to avoid an error. */
12491 /* We use char because int might match the return type of a gcc2
12492 @@ -3834,7 +7686,7 @@
12493 iswalnum()
12494 ; return 0; }
12495 EOF
12496 -if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12497 +if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12498 rm -rf conftest*
12499 eval "ac_cv_lib_$ac_lib_var=yes"
12500 else
12501 @@ -3866,9 +7718,9 @@
12502
12503 # The following is necessary for Linux libc-5.4.38
12504 echo $ac_n "checking if iswalnum() and friends are properly defined""... $ac_c" 1>&6
12505 -echo "configure:3870: checking if iswalnum() and friends are properly defined" >&5
12506 +echo "configure:7722: checking if iswalnum() and friends are properly defined" >&5
12507 cat > conftest.$ac_ext <<EOF
12508 -#line 3872 "configure"
12509 +#line 7724 "configure"
12510 #include "confdefs.h"
12511 #include <stdlib.h>
12512 int main() {
12513 @@ -3888,7 +7740,7 @@
12514
12515 ; return 0; }
12516 EOF
12517 -if { (eval echo configure:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12518 +if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12519 rm -rf conftest*
12520 glib_working_wctype=yes
12521 else
12522 @@ -3909,7 +7761,7 @@
12523 echo "$ac_t""$glib_working_wctype" 1>&6
12524
12525 echo $ac_n "checking whether realloc (NULL,) will work""... $ac_c" 1>&6
12526 -echo "configure:3913: checking whether realloc (NULL,) will work" >&5
12527 +echo "configure:7765: checking whether realloc (NULL,) will work" >&5
12528 if eval "test \"`echo '$''{'glib_cv_sane_realloc'+set}'`\" = set"; then
12529 echo $ac_n "(cached) $ac_c" 1>&6
12530 else
12531 @@ -3918,7 +7770,7 @@
12532 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12533 else
12534 cat > conftest.$ac_ext <<EOF
12535 -#line 3922 "configure"
12536 +#line 7774 "configure"
12537 #include "confdefs.h"
12538
12539 #include <stdlib.h>
12540 @@ -3926,7 +7778,7 @@
12541 return realloc (0, sizeof (int)) == 0;
12542 }
12543 EOF
12544 -if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12545 +if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12546 then
12547 glib_cv_sane_realloc=yes
12548 cat >> confdefs.h <<\EOF
12549 @@ -3951,7 +7803,7 @@
12550
12551
12552 echo $ac_n "checking for an implementation of va_copy()""... $ac_c" 1>&6
12553 -echo "configure:3955: checking for an implementation of va_copy()" >&5
12554 +echo "configure:7807: checking for an implementation of va_copy()" >&5
12555 if eval "test \"`echo '$''{'glib_cv_va_copy'+set}'`\" = set"; then
12556 echo $ac_n "(cached) $ac_c" 1>&6
12557 else
12558 @@ -3960,7 +7812,7 @@
12559 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12560 else
12561 cat > conftest.$ac_ext <<EOF
12562 -#line 3964 "configure"
12563 +#line 7816 "configure"
12564 #include "confdefs.h"
12565
12566 #include <stdarg.h>
12567 @@ -3977,7 +7829,7 @@
12568 return 0;
12569 }
12570 EOF
12571 -if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12572 +if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12573 then
12574 glib_cv_va_copy=yes
12575
12576 @@ -3996,7 +7848,7 @@
12577
12578 echo "$ac_t""$glib_cv_va_copy" 1>&6
12579 echo $ac_n "checking for an implementation of __va_copy()""... $ac_c" 1>&6
12580 -echo "configure:4000: checking for an implementation of __va_copy()" >&5
12581 +echo "configure:7852: checking for an implementation of __va_copy()" >&5
12582 if eval "test \"`echo '$''{'glib_cv___va_copy'+set}'`\" = set"; then
12583 echo $ac_n "(cached) $ac_c" 1>&6
12584 else
12585 @@ -4005,7 +7857,7 @@
12586 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12587 else
12588 cat > conftest.$ac_ext <<EOF
12589 -#line 4009 "configure"
12590 +#line 7861 "configure"
12591 #include "confdefs.h"
12592
12593 #include <stdarg.h>
12594 @@ -4022,7 +7874,7 @@
12595 return 0;
12596 }
12597 EOF
12598 -if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12599 +if { (eval echo configure:7878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12600 then
12601 glib_cv___va_copy=yes
12602
12603 @@ -4041,7 +7893,7 @@
12604
12605 echo "$ac_t""$glib_cv___va_copy" 1>&6
12606 echo $ac_n "checking whether va_lists can be copied by value""... $ac_c" 1>&6
12607 -echo "configure:4045: checking whether va_lists can be copied by value" >&5
12608 +echo "configure:7897: checking whether va_lists can be copied by value" >&5
12609 if eval "test \"`echo '$''{'glib_cv_va_val_copy'+set}'`\" = set"; then
12610 echo $ac_n "(cached) $ac_c" 1>&6
12611 else
12612 @@ -4050,7 +7902,7 @@
12613 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12614 else
12615 cat > conftest.$ac_ext <<EOF
12616 -#line 4054 "configure"
12617 +#line 7906 "configure"
12618 #include "confdefs.h"
12619
12620 #include <stdarg.h>
12621 @@ -4067,7 +7919,7 @@
12622 return 0;
12623 }
12624 EOF
12625 -if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12626 +if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12627 then
12628 glib_cv_va_val_copy=yes
12629
12630 @@ -4112,12 +7964,12 @@
12631 G_MODULE_HAVE_DLERROR=0
12632 if test -z "$G_MODULE_IMPL"; then
12633 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
12634 -echo "configure:4116: checking for dlopen" >&5
12635 +echo "configure:7968: checking for dlopen" >&5
12636 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
12637 echo $ac_n "(cached) $ac_c" 1>&6
12638 else
12639 cat > conftest.$ac_ext <<EOF
12640 -#line 4121 "configure"
12641 +#line 7973 "configure"
12642 #include "confdefs.h"
12643 /* System header to define __stub macros and hopefully few prototypes,
12644 which can conflict with char dlopen(); below. */
12645 @@ -4140,7 +7992,7 @@
12646
12647 ; return 0; }
12648 EOF
12649 -if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12650 +if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12651 rm -rf conftest*
12652 eval "ac_cv_func_dlopen=yes"
12653 else
12654 @@ -4155,12 +8007,12 @@
12655 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
12656 echo "$ac_t""yes" 1>&6
12657 echo $ac_n "checking for dlsym""... $ac_c" 1>&6
12658 -echo "configure:4159: checking for dlsym" >&5
12659 +echo "configure:8011: checking for dlsym" >&5
12660 if eval "test \"`echo '$''{'ac_cv_func_dlsym'+set}'`\" = set"; then
12661 echo $ac_n "(cached) $ac_c" 1>&6
12662 else
12663 cat > conftest.$ac_ext <<EOF
12664 -#line 4164 "configure"
12665 +#line 8016 "configure"
12666 #include "confdefs.h"
12667 /* System header to define __stub macros and hopefully few prototypes,
12668 which can conflict with char dlsym(); below. */
12669 @@ -4183,7 +8035,7 @@
12670
12671 ; return 0; }
12672 EOF
12673 -if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12674 +if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12675 rm -rf conftest*
12676 eval "ac_cv_func_dlsym=yes"
12677 else
12678 @@ -4211,7 +8063,7 @@
12679 fi
12680 if test -z "$G_MODULE_IMPL"; then
12681 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12682 -echo "configure:4215: checking for dlopen in -ldl" >&5
12683 +echo "configure:8067: checking for dlopen in -ldl" >&5
12684 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12686 echo $ac_n "(cached) $ac_c" 1>&6
12687 @@ -4219,7 +8071,7 @@
12688 ac_save_LIBS="$LIBS"
12689 LIBS="-ldl $LIBS"
12690 cat > conftest.$ac_ext <<EOF
12691 -#line 4223 "configure"
12692 +#line 8075 "configure"
12693 #include "confdefs.h"
12694 /* Override any gcc2 internal prototype to avoid an error. */
12695 /* We use char because int might match the return type of a gcc2
12696 @@ -4230,7 +8082,7 @@
12697 dlopen()
12698 ; return 0; }
12699 EOF
12700 -if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12701 +if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12702 rm -rf conftest*
12703 eval "ac_cv_lib_$ac_lib_var=yes"
12704 else
12705 @@ -4246,7 +8098,7 @@
12706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12707 echo "$ac_t""yes" 1>&6
12708 echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
12709 -echo "configure:4250: checking for dlsym in -ldl" >&5
12710 +echo "configure:8102: checking for dlsym in -ldl" >&5
12711 ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
12712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12713 echo $ac_n "(cached) $ac_c" 1>&6
12714 @@ -4254,7 +8106,7 @@
12715 ac_save_LIBS="$LIBS"
12716 LIBS="-ldl $LIBS"
12717 cat > conftest.$ac_ext <<EOF
12718 -#line 4258 "configure"
12719 +#line 8110 "configure"
12720 #include "confdefs.h"
12721 /* Override any gcc2 internal prototype to avoid an error. */
12722 /* We use char because int might match the return type of a gcc2
12723 @@ -4265,7 +8117,7 @@
12724 dlsym()
12725 ; return 0; }
12726 EOF
12727 -if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12728 +if { (eval echo configure:8121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12729 rm -rf conftest*
12730 eval "ac_cv_lib_$ac_lib_var=yes"
12731 else
12732 @@ -4295,18 +8147,18 @@
12733 fi
12734 if test -z "$G_MODULE_IMPL"; then
12735 echo $ac_n "checking how to export all symbols""... $ac_c" 1>&6
12736 -echo "configure:4299: checking how to export all symbols" >&5
12737 +echo "configure:8151: checking how to export all symbols" >&5
12738 SAVED_LDFLAGS=$LDFLAGS
12739 LDFLAGS="$LDFLAGS -Wl,-E"
12740 cat > conftest.$ac_ext <<EOF
12741 -#line 4303 "configure"
12742 +#line 8155 "configure"
12743 #include "confdefs.h"
12744
12745 int main() {
12746 return 0;
12747 ; return 0; }
12748 EOF
12749 -if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12750 +if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12751 rm -rf conftest*
12752 G_MODULE_LDFLAGS="-Wl,-E"
12753 else
12754 @@ -4316,14 +8168,14 @@
12755
12756 LDFLAGS="$SAVED_LDFLAGS -bexpall"
12757 cat > conftest.$ac_ext <<EOF
12758 -#line 4320 "configure"
12759 +#line 8172 "configure"
12760 #include "confdefs.h"
12761
12762 int main() {
12763 return 0;
12764 ; return 0; }
12765 EOF
12766 -if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12767 +if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12768 rm -rf conftest*
12769 G_MODULE_LDFLAGS="-bexpall"
12770 else
12771 @@ -4343,7 +8195,7 @@
12772 G_MODULE_LDFLAGS=
12773 fi
12774 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12775 -echo "configure:4347: checking for shl_load in -ldld" >&5
12776 +echo "configure:8199: checking for shl_load in -ldld" >&5
12777 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12779 echo $ac_n "(cached) $ac_c" 1>&6
12780 @@ -4351,7 +8203,7 @@
12781 ac_save_LIBS="$LIBS"
12782 LIBS="-ldld $LIBS"
12783 cat > conftest.$ac_ext <<EOF
12784 -#line 4355 "configure"
12785 +#line 8207 "configure"
12786 #include "confdefs.h"
12787 /* Override any gcc2 internal prototype to avoid an error. */
12788 /* We use char because int might match the return type of a gcc2
12789 @@ -4362,7 +8214,7 @@
12790 shl_load()
12791 ; return 0; }
12792 EOF
12793 -if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12794 +if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12795 rm -rf conftest*
12796 eval "ac_cv_lib_$ac_lib_var=yes"
12797 else
12798 @@ -4396,7 +8248,7 @@
12799 LIBS="$LIBS $G_MODULE_LIBS"
12800 LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
12801 echo $ac_n "checking for RTLD_GLOBAL brokenness""... $ac_c" 1>&6
12802 -echo "configure:4400: checking for RTLD_GLOBAL brokenness" >&5
12803 +echo "configure:8252: checking for RTLD_GLOBAL brokenness" >&5
12804 if eval "test \"`echo '$''{'glib_cv_rtldglobal_broken'+set}'`\" = set"; then
12805 echo $ac_n "(cached) $ac_c" 1>&6
12806 else
12807 @@ -4405,7 +8257,7 @@
12808 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12809 else
12810 cat > conftest.$ac_ext <<EOF
12811 -#line 4409 "configure"
12812 +#line 8261 "configure"
12813 #include "confdefs.h"
12814
12815 #include <dlfcn.h>
12816 @@ -4425,7 +8277,7 @@
12817 return global == local;
12818 }
12819 EOF
12820 -if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12821 +if { (eval echo configure:8281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12822 then
12823 glib_cv_rtldglobal_broken=no
12824 else
12825 @@ -4448,7 +8300,7 @@
12826 G_MODULE_BROKEN_RTLD_GLOBAL=0
12827 fi
12828 echo $ac_n "checking for preceeding underscore in symbols""... $ac_c" 1>&6
12829 -echo "configure:4452: checking for preceeding underscore in symbols" >&5
12830 +echo "configure:8304: checking for preceeding underscore in symbols" >&5
12831 if eval "test \"`echo '$''{'glib_cv_uscore'+set}'`\" = set"; then
12832 echo $ac_n "(cached) $ac_c" 1>&6
12833 else
12834 @@ -4457,7 +8309,7 @@
12835 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12836 else
12837 cat > conftest.$ac_ext <<EOF
12838 -#line 4461 "configure"
12839 +#line 8313 "configure"
12840 #include "confdefs.h"
12841
12842 #include <dlfcn.h>
12843 @@ -4471,7 +8323,7 @@
12844 } return (!f2 || f1);
12845 }
12846 EOF
12847 -if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12848 +if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12849 then
12850 glib_cv_uscore=yes
12851 else
12852 @@ -4496,12 +8348,12 @@
12853
12854 LDFLAGS="$LDFLAGS_orig"
12855 echo $ac_n "checking for dlerror""... $ac_c" 1>&6
12856 -echo "configure:4500: checking for dlerror" >&5
12857 +echo "configure:8352: checking for dlerror" >&5
12858 if eval "test \"`echo '$''{'ac_cv_func_dlerror'+set}'`\" = set"; then
12859 echo $ac_n "(cached) $ac_c" 1>&6
12860 else
12861 cat > conftest.$ac_ext <<EOF
12862 -#line 4505 "configure"
12863 +#line 8357 "configure"
12864 #include "confdefs.h"
12865 /* System header to define __stub macros and hopefully few prototypes,
12866 which can conflict with char dlerror(); below. */
12867 @@ -4524,7 +8376,7 @@
12868
12869 ; return 0; }
12870 EOF
12871 -if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12872 +if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12873 rm -rf conftest*
12874 eval "ac_cv_func_dlerror=yes"
12875 else
12876 @@ -4608,7 +8460,7 @@
12877 case $host in
12878 *-*-solaris*)
12879 echo $ac_n "checking for cond_init in -lthread""... $ac_c" 1>&6
12880 -echo "configure:4612: checking for cond_init in -lthread" >&5
12881 +echo "configure:8464: checking for cond_init in -lthread" >&5
12882 ac_lib_var=`echo thread'_'cond_init | sed 'y%./+-%__p_%'`
12883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12884 echo $ac_n "(cached) $ac_c" 1>&6
12885 @@ -4616,7 +8468,7 @@
12886 ac_save_LIBS="$LIBS"
12887 LIBS="-lthread $LIBS"
12888 cat > conftest.$ac_ext <<EOF
12889 -#line 4620 "configure"
12890 +#line 8472 "configure"
12891 #include "confdefs.h"
12892 /* Override any gcc2 internal prototype to avoid an error. */
12893 /* We use char because int might match the return type of a gcc2
12894 @@ -4627,7 +8479,7 @@
12895 cond_init()
12896 ; return 0; }
12897 EOF
12898 -if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12899 +if { (eval echo configure:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12900 rm -rf conftest*
12901 eval "ac_cv_lib_$ac_lib_var=yes"
12902 else
12903 @@ -4654,17 +8506,17 @@
12904 if test "x$have_threads" = xnone; then
12905 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
12906 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
12907 -echo "configure:4658: checking for pthread.h" >&5
12908 +echo "configure:8510: checking for pthread.h" >&5
12909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12910 echo $ac_n "(cached) $ac_c" 1>&6
12911 else
12912 cat > conftest.$ac_ext <<EOF
12913 -#line 4663 "configure"
12914 +#line 8515 "configure"
12915 #include "confdefs.h"
12916 #include <pthread.h>
12917 EOF
12918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12919 -{ (eval echo configure:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12920 +{ (eval echo configure:8520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12922 if test -z "$ac_err"; then
12923 rm -rf conftest*
12924 @@ -4690,7 +8542,7 @@
12925 if test "x$want_threads" = xyes || test "x$want_threads" = xnspr; then
12926 if test "x$have_threads" = xnone; then
12927 echo $ac_n "checking for PRP_NewNakedCondVar in -lnspr21""... $ac_c" 1>&6
12928 -echo "configure:4694: checking for PRP_NewNakedCondVar in -lnspr21" >&5
12929 +echo "configure:8546: checking for PRP_NewNakedCondVar in -lnspr21" >&5
12930 ac_lib_var=`echo nspr21'_'PRP_NewNakedCondVar | sed 'y%./+-%__p_%'`
12931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12932 echo $ac_n "(cached) $ac_c" 1>&6
12933 @@ -4698,7 +8550,7 @@
12934 ac_save_LIBS="$LIBS"
12935 LIBS="-lnspr21 $LIBS"
12936 cat > conftest.$ac_ext <<EOF
12937 -#line 4702 "configure"
12938 +#line 8554 "configure"
12939 #include "confdefs.h"
12940 /* Override any gcc2 internal prototype to avoid an error. */
12941 /* We use char because int might match the return type of a gcc2
12942 @@ -4709,7 +8561,7 @@
12943 PRP_NewNakedCondVar()
12944 ; return 0; }
12945 EOF
12946 -if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12947 +if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12948 rm -rf conftest*
12949 eval "ac_cv_lib_$ac_lib_var=yes"
12950 else
12951 @@ -4733,7 +8585,7 @@
12952 fi
12953
12954 echo $ac_n "checking for thread implementation""... $ac_c" 1>&6
12955 -echo "configure:4737: checking for thread implementation" >&5
12956 +echo "configure:8589: checking for thread implementation" >&5
12957
12958 if test "x$have_threads" = xnone && test "x$want_threads" != xno; then
12959 echo "$ac_t""none available" 1>&6
12960 @@ -4752,7 +8604,7 @@
12961 posix)
12962 G_THREAD_LIBS=error
12963 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
12964 -echo "configure:4756: checking for pthread_attr_init in -lpthread" >&5
12965 +echo "configure:8608: checking for pthread_attr_init in -lpthread" >&5
12966 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
12967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12968 echo $ac_n "(cached) $ac_c" 1>&6
12969 @@ -4760,7 +8612,7 @@
12970 ac_save_LIBS="$LIBS"
12971 LIBS="-lpthread $LIBS"
12972 cat > conftest.$ac_ext <<EOF
12973 -#line 4764 "configure"
12974 +#line 8616 "configure"
12975 #include "confdefs.h"
12976 /* Override any gcc2 internal prototype to avoid an error. */
12977 /* We use char because int might match the return type of a gcc2
12978 @@ -4771,7 +8623,7 @@
12979 pthread_attr_init()
12980 ; return 0; }
12981 EOF
12982 -if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12983 +if { (eval echo configure:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12984 rm -rf conftest*
12985 eval "ac_cv_lib_$ac_lib_var=yes"
12986 else
12987 @@ -4793,7 +8645,7 @@
12988
12989 if test "x$G_THREAD_LIBS" = xerror; then
12990 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
12991 -echo "configure:4797: checking for pthread_attr_init in -lpthreads" >&5
12992 +echo "configure:8649: checking for pthread_attr_init in -lpthreads" >&5
12993 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
12994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12995 echo $ac_n "(cached) $ac_c" 1>&6
12996 @@ -4801,7 +8653,7 @@
12997 ac_save_LIBS="$LIBS"
12998 LIBS="-lpthreads $LIBS"
12999 cat > conftest.$ac_ext <<EOF
13000 -#line 4805 "configure"
13001 +#line 8657 "configure"
13002 #include "confdefs.h"
13003 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 @@ -4812,7 +8664,7 @@
13006 pthread_attr_init()
13007 ; return 0; }
13008 EOF
13009 -if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13010 +if { (eval echo configure:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13011 rm -rf conftest*
13012 eval "ac_cv_lib_$ac_lib_var=yes"
13013 else
13014 @@ -4835,7 +8687,7 @@
13015 fi
13016 if test "x$G_THREAD_LIBS" = xerror; then
13017 echo $ac_n "checking for pthread_attr_init in -lthread""... $ac_c" 1>&6
13018 -echo "configure:4839: checking for pthread_attr_init in -lthread" >&5
13019 +echo "configure:8691: checking for pthread_attr_init in -lthread" >&5
13020 ac_lib_var=`echo thread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
13021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13022 echo $ac_n "(cached) $ac_c" 1>&6
13023 @@ -4843,7 +8695,7 @@
13024 ac_save_LIBS="$LIBS"
13025 LIBS="-lthread $LIBS"
13026 cat > conftest.$ac_ext <<EOF
13027 -#line 4847 "configure"
13028 +#line 8699 "configure"
13029 #include "confdefs.h"
13030 /* Override any gcc2 internal prototype to avoid an error. */
13031 /* We use char because int might match the return type of a gcc2
13032 @@ -4854,7 +8706,7 @@
13033 pthread_attr_init()
13034 ; return 0; }
13035 EOF
13036 -if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13037 +if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13038 rm -rf conftest*
13039 eval "ac_cv_lib_$ac_lib_var=yes"
13040 else
13041 @@ -4877,7 +8729,7 @@
13042 fi
13043 if test "x$G_THREAD_LIBS" = xerror; then
13044 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
13045 -echo "configure:4881: checking for pthread_attr_init in -lc_r" >&5
13046 +echo "configure:8733: checking for pthread_attr_init in -lc_r" >&5
13047 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
13048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13049 echo $ac_n "(cached) $ac_c" 1>&6
13050 @@ -4885,7 +8737,7 @@
13051 ac_save_LIBS="$LIBS"
13052 LIBS="-lc_r $LIBS"
13053 cat > conftest.$ac_ext <<EOF
13054 -#line 4889 "configure"
13055 +#line 8741 "configure"
13056 #include "confdefs.h"
13057 /* Override any gcc2 internal prototype to avoid an error. */
13058 /* We use char because int might match the return type of a gcc2
13059 @@ -4896,7 +8748,7 @@
13060 pthread_attr_init()
13061 ; return 0; }
13062 EOF
13063 -if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13064 +if { (eval echo configure:8752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13065 rm -rf conftest*
13066 eval "ac_cv_lib_$ac_lib_var=yes"
13067 else
13068 @@ -4919,12 +8771,12 @@
13069 fi
13070 if test "x$G_THREAD_LIBS" = xerror; then
13071 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
13072 -echo "configure:4923: checking for pthread_attr_init" >&5
13073 +echo "configure:8775: checking for pthread_attr_init" >&5
13074 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
13075 echo $ac_n "(cached) $ac_c" 1>&6
13076 else
13077 cat > conftest.$ac_ext <<EOF
13078 -#line 4928 "configure"
13079 +#line 8780 "configure"
13080 #include "confdefs.h"
13081 /* System header to define __stub macros and hopefully few prototypes,
13082 which can conflict with char pthread_attr_init(); below. */
13083 @@ -4947,7 +8799,7 @@
13084
13085 ; return 0; }
13086 EOF
13087 -if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13088 +if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13089 rm -rf conftest*
13090 eval "ac_cv_func_pthread_attr_init=yes"
13091 else
13092 @@ -4969,7 +8821,7 @@
13093 fi
13094 if test "x$G_THREAD_LIBS" = xerror; then
13095 echo $ac_n "checking for __d10_pthread_attr_init in -lthread""... $ac_c" 1>&6
13096 -echo "configure:4973: checking for __d10_pthread_attr_init in -lthread" >&5
13097 +echo "configure:8825: checking for __d10_pthread_attr_init in -lthread" >&5
13098 ac_lib_var=`echo thread'_'__d10_pthread_attr_init | sed 'y%./+-%__p_%'`
13099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13100 echo $ac_n "(cached) $ac_c" 1>&6
13101 @@ -4977,7 +8829,7 @@
13102 ac_save_LIBS="$LIBS"
13103 LIBS="-lthread $LIBS"
13104 cat > conftest.$ac_ext <<EOF
13105 -#line 4981 "configure"
13106 +#line 8833 "configure"
13107 #include "confdefs.h"
13108 /* Override any gcc2 internal prototype to avoid an error. */
13109 /* We use char because int might match the return type of a gcc2
13110 @@ -4988,7 +8840,7 @@
13111 __d10_pthread_attr_init()
13112 ; return 0; }
13113 EOF
13114 -if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13115 +if { (eval echo configure:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13116 rm -rf conftest*
13117 eval "ac_cv_lib_$ac_lib_var=yes"
13118 else
13119 @@ -5012,7 +8864,7 @@
13120 fi
13121 if test "x$G_THREAD_LIBS" = xerror; then
13122 echo $ac_n "checking for __pthread_attr_init_system in -lpthread""... $ac_c" 1>&6
13123 -echo "configure:5016: checking for __pthread_attr_init_system in -lpthread" >&5
13124 +echo "configure:8868: checking for __pthread_attr_init_system in -lpthread" >&5
13125 ac_lib_var=`echo pthread'_'__pthread_attr_init_system | sed 'y%./+-%__p_%'`
13126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13127 echo $ac_n "(cached) $ac_c" 1>&6
13128 @@ -5020,7 +8872,7 @@
13129 ac_save_LIBS="$LIBS"
13130 LIBS="-lpthread $LIBS"
13131 cat > conftest.$ac_ext <<EOF
13132 -#line 5024 "configure"
13133 +#line 8876 "configure"
13134 #include "confdefs.h"
13135 /* Override any gcc2 internal prototype to avoid an error. */
13136 /* We use char because int might match the return type of a gcc2
13137 @@ -5031,7 +8883,7 @@
13138 __pthread_attr_init_system()
13139 ; return 0; }
13140 EOF
13141 -if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13142 +if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13143 rm -rf conftest*
13144 eval "ac_cv_lib_$ac_lib_var=yes"
13145 else
13146 @@ -5061,7 +8913,7 @@
13147 solaris)
13148 G_THREAD_LIBS=error
13149 echo $ac_n "checking for cond_init in -lthread""... $ac_c" 1>&6
13150 -echo "configure:5065: checking for cond_init in -lthread" >&5
13151 +echo "configure:8917: checking for cond_init in -lthread" >&5
13152 ac_lib_var=`echo thread'_'cond_init | sed 'y%./+-%__p_%'`
13153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13154 echo $ac_n "(cached) $ac_c" 1>&6
13155 @@ -5069,7 +8921,7 @@
13156 ac_save_LIBS="$LIBS"
13157 LIBS="-lthread $LIBS"
13158 cat > conftest.$ac_ext <<EOF
13159 -#line 5073 "configure"
13160 +#line 8925 "configure"
13161 #include "confdefs.h"
13162 /* Override any gcc2 internal prototype to avoid an error. */
13163 /* We use char because int might match the return type of a gcc2
13164 @@ -5080,7 +8932,7 @@
13165 cond_init()
13166 ; return 0; }
13167 EOF
13168 -if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13169 +if { (eval echo configure:8936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13170 rm -rf conftest*
13171 eval "ac_cv_lib_$ac_lib_var=yes"
13172 else
13173 @@ -5108,7 +8960,7 @@
13174 ;;
13175 nspr)
13176 echo $ac_n "checking for PRP_NewNakedCondVar in -lnspr21""... $ac_c" 1>&6
13177 -echo "configure:5112: checking for PRP_NewNakedCondVar in -lnspr21" >&5
13178 +echo "configure:8964: checking for PRP_NewNakedCondVar in -lnspr21" >&5
13179 ac_lib_var=`echo nspr21'_'PRP_NewNakedCondVar | sed 'y%./+-%__p_%'`
13180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13181 echo $ac_n "(cached) $ac_c" 1>&6
13182 @@ -5116,7 +8968,7 @@
13183 ac_save_LIBS="$LIBS"
13184 LIBS="-lnspr21 $LIBS"
13185 cat > conftest.$ac_ext <<EOF
13186 -#line 5120 "configure"
13187 +#line 8972 "configure"
13188 #include "confdefs.h"
13189 /* Override any gcc2 internal prototype to avoid an error. */
13190 /* We use char because int might match the return type of a gcc2
13191 @@ -5127,7 +8979,7 @@
13192 PRP_NewNakedCondVar()
13193 ; return 0; }
13194 EOF
13195 -if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13196 +if { (eval echo configure:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13197 rm -rf conftest*
13198 eval "ac_cv_lib_$ac_lib_var=yes"
13199 else
13200 @@ -5163,7 +9015,7 @@
13201 fi
13202
13203 echo $ac_n "checking necessary linker options""... $ac_c" 1>&6
13204 -echo "configure:5167: checking necessary linker options" >&5
13205 +echo "configure:9019: checking necessary linker options" >&5
13206 echo "$ac_t""$G_THREAD_LIBS" 1>&6
13207
13208
13209 @@ -5191,7 +9043,7 @@
13210 old_CPPFLAGS=$CPPFLAGS
13211 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
13212 cat > conftest.$ac_ext <<EOF
13213 -#line 5195 "configure"
13214 +#line 9047 "configure"
13215 #include "confdefs.h"
13216 #include <time.h>
13217 EOF
13218 @@ -5208,7 +9060,7 @@
13219 CPPFLAGS=$old_CPPFLAGS
13220
13221 echo $ac_n "checking necessary compiler options""... $ac_c" 1>&6
13222 -echo "configure:5212: checking necessary compiler options" >&5
13223 +echo "configure:9064: checking necessary compiler options" >&5
13224
13225 echo "$ac_t""$G_THREAD_CFLAGS" 1>&6
13226 else
13227 @@ -5226,12 +9078,12 @@
13228 for ac_func in localtime_r rand_r
13229 do
13230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13231 -echo "configure:5230: checking for $ac_func" >&5
13232 +echo "configure:9082: checking for $ac_func" >&5
13233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13234 echo $ac_n "(cached) $ac_c" 1>&6
13235 else
13236 cat > conftest.$ac_ext <<EOF
13237 -#line 5235 "configure"
13238 +#line 9087 "configure"
13239 #include "confdefs.h"
13240 /* System header to define __stub macros and hopefully few prototypes,
13241 which can conflict with char $ac_func(); below. */
13242 @@ -5254,7 +9106,7 @@
13243
13244 ; return 0; }
13245 EOF
13246 -if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13247 +if { (eval echo configure:9110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13248 rm -rf conftest*
13249 eval "ac_cv_func_$ac_func=yes"
13250 else
13251 @@ -5280,7 +9132,7 @@
13252
13253 if test "$ac_cv_header_pwd_h" = "yes"; then
13254 echo $ac_n "checking for getpwuid_r""... $ac_c" 1>&6
13255 -echo "configure:5284: checking for getpwuid_r" >&5
13256 +echo "configure:9136: checking for getpwuid_r" >&5
13257 if eval "test \"`echo '$''{'ac_cv_func_getpwuid_r'+set}'`\" = set"; then
13258 echo $ac_n "(cached) $ac_c" 1>&6
13259 else
13260 @@ -5288,7 +9140,7 @@
13261 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13262 else
13263 cat > conftest.$ac_ext <<EOF
13264 -#line 5292 "configure"
13265 +#line 9144 "configure"
13266 #include "confdefs.h"
13267 #include <errno.h>
13268 int main () { char buffer[10000], *pointer;
13269 @@ -5300,7 +9152,7 @@
13270 sizeof (buffer), &pointer);
13271 return errno == ENOSYS || error == ENOSYS;}
13272 EOF
13273 -if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13274 +if { (eval echo configure:9156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13275 then
13276 ac_cv_func_getpwuid_r=yes
13277 else
13278 @@ -5325,11 +9177,11 @@
13279 fi
13280 if test "$ac_cv_func_getpwuid_r" = "yes"; then
13281 echo $ac_n "checking whether getpwuid_r is posix like""... $ac_c" 1>&6
13282 -echo "configure:5329: checking whether getpwuid_r is posix like" >&5
13283 +echo "configure:9181: checking whether getpwuid_r is posix like" >&5
13284 # The signature for the POSIX version is:
13285 # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **)
13286 cat > conftest.$ac_ext <<EOF
13287 -#line 5333 "configure"
13288 +#line 9185 "configure"
13289 #include "confdefs.h"
13290 #include <pwd.h>
13291 #include <sys/types.h>
13292 @@ -5338,7 +9190,7 @@
13293 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
13294 ; return 0; }
13295 EOF
13296 -if { (eval echo configure:5342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13297 +if { (eval echo configure:9194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13298 rm -rf conftest*
13299 cat >> confdefs.h <<\EOF
13300 #define HAVE_GETPWUID_R_POSIX 1
13301 @@ -5357,17 +9209,17 @@
13302 if test x"$have_threads" = xposix; then
13303 LIBS="$LIBS $G_THREAD_LIBS"
13304 echo $ac_n "checking whether pthread_getspecific is posix like""... $ac_c" 1>&6
13305 -echo "configure:5361: checking whether pthread_getspecific is posix like" >&5
13306 +echo "configure:9213: checking whether pthread_getspecific is posix like" >&5
13307 # PCThreads has pthread_getspecific(pthread_key_t, void **);
13308 cat > conftest.$ac_ext <<EOF
13309 -#line 5364 "configure"
13310 +#line 9216 "configure"
13311 #include "confdefs.h"
13312 #include <pthread.h>
13313 int main() {
13314 pthread_getspecific(0,NULL);
13315 ; return 0; }
13316 EOF
13317 -if { (eval echo configure:5371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13318 +if { (eval echo configure:9223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13319 rm -rf conftest*
13320 echo "$ac_t""no" 1>&6
13321 else
13322 @@ -5382,20 +9234,20 @@
13323 fi
13324 rm -f conftest*
13325 echo $ac_n "checking whether pthread_mutex_trylock is posix like""... $ac_c" 1>&6
13326 -echo "configure:5386: checking whether pthread_mutex_trylock is posix like" >&5
13327 +echo "configure:9238: checking whether pthread_mutex_trylock is posix like" >&5
13328 # DCE Threads return 1 as success, posix 0. what a mess.
13329 if test "$cross_compiling" = yes; then
13330 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13331 else
13332 cat > conftest.$ac_ext <<EOF
13333 -#line 5392 "configure"
13334 +#line 9244 "configure"
13335 #include "confdefs.h"
13336 #include <pthread.h>
13337 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
13338 int main () {
13339 return !pthread_mutex_trylock (&mutex); }
13340 EOF
13341 -if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13342 +if { (eval echo configure:9251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13343 then
13344 echo "$ac_t""no" 1>&6
13345 else
13346 @@ -5412,13 +9264,13 @@
13347 fi
13348
13349 echo $ac_n "checking whether pthread_cond_timedwait is posix like""... $ac_c" 1>&6
13350 -echo "configure:5416: checking whether pthread_cond_timedwait is posix like" >&5
13351 +echo "configure:9268: checking whether pthread_cond_timedwait is posix like" >&5
13352 # DCE Threads return -1 as failure, posix ETIMEDOUT.
13353 if test "$cross_compiling" = yes; then
13354 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13355 else
13356 cat > conftest.$ac_ext <<EOF
13357 -#line 5422 "configure"
13358 +#line 9274 "configure"
13359 #include "confdefs.h"
13360 #include <pthread.h>
13361 int main () {
13362 @@ -5432,7 +9284,7 @@
13363 return pthread_cond_timedwait (&cond,&mutex,&tspec)
13364 != -1;}
13365 EOF
13366 -if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13367 +if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13368 then
13369 echo "$ac_t""no" 1>&6
13370 else
13371 @@ -5475,7 +9327,7 @@
13372 case "$mutex_has_default" in
13373 "yes")
13374 echo $ac_n "checking size of $mutex_default_type""... $ac_c" 1>&6
13375 -echo "configure:5479: checking size of $mutex_default_type" >&5
13376 +echo "configure:9331: checking size of $mutex_default_type" >&5
13377 if eval "test \"`echo '$''{'glib_cv_sizeof_gmutex'+set}'`\" = set"; then
13378 echo $ac_n "(cached) $ac_c" 1>&6
13379 else
13380 @@ -5483,7 +9335,7 @@
13381 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13382 else
13383 cat > conftest.$ac_ext <<EOF
13384 -#line 5487 "configure"
13385 +#line 9339 "configure"
13386 #include "confdefs.h"
13387 #include <stdio.h>
13388 #include <$mutex_header_file>
13389 @@ -5495,7 +9347,7 @@
13390 exit(0);
13391 }
13392 EOF
13393 -if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13394 +if { (eval echo configure:9351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13395 then
13396 glib_cv_sizeof_gmutex=`cat conftestval`
13397 else
13398 @@ -5515,7 +9367,7 @@
13399
13400
13401 echo $ac_n "checking byte contents of $mutex_default_type""... $ac_c" 1>&6
13402 -echo "configure:5519: checking byte contents of $mutex_default_type" >&5
13403 +echo "configure:9371: checking byte contents of $mutex_default_type" >&5
13404 if eval "test \"`echo '$''{'glib_cv_byte_contents_gmutex'+set}'`\" = set"; then
13405 echo $ac_n "(cached) $ac_c" 1>&6
13406 else
13407 @@ -5523,7 +9375,7 @@
13408 glib_cv_byte_contents_gmutex=0
13409 else
13410 cat > conftest.$ac_ext <<EOF
13411 -#line 5527 "configure"
13412 +#line 9379 "configure"
13413 #include "confdefs.h"
13414 #include <stdio.h>
13415 #include <$mutex_header_file>
13416 @@ -5540,7 +9392,7 @@
13417 exit(0);
13418 }
13419 EOF
13420 -if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13421 +if { (eval echo configure:9396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13422 then
13423 glib_cv_byte_contents_gmutex=`cat conftestval`
13424 else
13425 @@ -5576,7 +9428,7 @@
13426 glib_nl='\n'
13427 fi
13428 echo $ac_n "checking system definitions for $glib_sysdef_msg""... $ac_c" 1>&6
13429 -echo "configure:5580: checking system definitions for $glib_sysdef_msg" >&5
13430 +echo "configure:9432: checking system definitions for $glib_sysdef_msg" >&5
13431 cat >confrun.c <<_______EOF
13432 #include <stdio.h>
13433 #include <sys/types.h>
13434 @@ -5603,11 +9455,11 @@
13435 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13436 else
13437 cat > conftest.$ac_ext <<EOF
13438 -#line 5607 "configure"
13439 +#line 9459 "configure"
13440 #include "confdefs.h"
13441 `cat confrun.c`
13442 EOF
13443 -if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13444 +if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13445 then
13446 echo "$ac_t""done" 1>&6
13447 else
13448 @@ -5813,16 +9665,20 @@
13449 s%@build_cpu@%$build_cpu%g
13450 s%@build_vendor@%$build_vendor%g
13451 s%@build_os@%$build_os%g
13452 -s%@RANLIB@%$RANLIB%g
13453 s%@CC@%$CC%g
13454 s%@LN_S@%$LN_S%g
13455 +s%@OBJEXT@%$OBJEXT%g
13456 +s%@EXEEXT@%$EXEEXT%g
13457 +s%@ECHO@%$ECHO%g
13458 +s%@RANLIB@%$RANLIB%g
13459 +s%@STRIP@%$STRIP%g
13460 +s%@CPP@%$CPP%g
13461 s%@LIBTOOL@%$LIBTOOL%g
13462 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
13463 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
13464 s%@MAINT@%$MAINT%g
13465 s%@ENABLE_MEM_CHECK@%$ENABLE_MEM_CHECK%g
13466 s%@ENABLE_MEM_PROFILE@%$ENABLE_MEM_PROFILE%g
13467 -s%@CPP@%$CPP%g
13468 s%@G_MODULE_IMPL@%$G_MODULE_IMPL%g
13469 s%@G_MODULE_LIBS@%$G_MODULE_LIBS%g
13470 s%@G_MODULE_LDFLAGS@%$G_MODULE_LDFLAGS%g
13471 --- glib1.2-1.2.10.orig/ltmain.sh
13472 +++ glib1.2-1.2.10/ltmain.sh
13473 @@ -1,7 +1,8 @@
13474 # ltmain.sh - Provide generalized library-building support services.
13475 -# NOTE: Changing this file will not affect anything until you rerun ltconfig.
13476 +# NOTE: Changing this file will not affect anything until you rerun configure.
13477 #
13478 -# Copyright (C) 1996-1999 Free Software Foundation, Inc.
13479 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13480 +# Free Software Foundation, Inc.
13481 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13482 #
13483 # This program is free software; you can redistribute it and/or modify
13484 @@ -48,14 +49,14 @@
13485 fi
13486
13487 # The name of this program.
13488 -progname=`$echo "$0" | sed 's%^.*/%%'`
13489 +progname=`$echo "$0" | ${SED} 's%^.*/%%'`
13490 modename="$progname"
13491
13492 # Constants.
13493 PROGRAM=ltmain.sh
13494 PACKAGE=libtool
13495 -VERSION=1.3.4
13496 -TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)"
13497 +VERSION=1.4.3
13498 +TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"
13499
13500 default_mode=
13501 help="Try \`$progname --help' for more information."
13502 @@ -66,10 +67,19 @@
13503
13504 # Sed substitution that helps us do robust quoting. It backslashifies
13505 # metacharacters that are still active within double-quoted strings.
13506 -Xsed='sed -e 1s/^X//'
13507 +Xsed="${SED}"' -e 1s/^X//'
13508 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
13509 -SP2NL='tr \040 \012'
13510 -NL2SP='tr \015\012 \040\040'
13511 +# test EBCDIC or ASCII
13512 +case `echo A|od -x` in
13513 + *[Cc]1*) # EBCDIC based system
13514 + SP2NL="tr '\100' '\n'"
13515 + NL2SP="tr '\r\n' '\100\100'"
13516 + ;;
13517 + *) # Assume ASCII based system
13518 + SP2NL="tr '\040' '\012'"
13519 + NL2SP="tr '\015\012' '\040\040'"
13520 + ;;
13521 +esac
13522
13523 # NLS nuisances.
13524 # Only set LANG and LC_ALL to C if already set.
13525 @@ -83,11 +93,8 @@
13526 save_LANG="$LANG"; LANG=C; export LANG
13527 fi
13528
13529 -if test "$LTCONFIG_VERSION" != "$VERSION"; then
13530 - echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
13531 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
13532 - exit 1
13533 -fi
13534 +# Make sure IFS has a sensible default
13535 +: ${IFS=" "}
13536
13537 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
13538 echo "$modename: not configured to build any kind of library" 1>&2
13539 @@ -113,16 +120,16 @@
13540 arg="$1"
13541 shift
13542
13543 - case "$arg" in
13544 + case $arg in
13545 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
13546 *) optarg= ;;
13547 esac
13548
13549 # If the previous option needs an argument, assign it.
13550 if test -n "$prev"; then
13551 - case "$prev" in
13552 + case $prev in
13553 execute_dlfiles)
13554 - eval "$prev=\"\$$prev \$arg\""
13555 + execute_dlfiles="$execute_dlfiles $arg"
13556 ;;
13557 *)
13558 eval "$prev=\$arg"
13559 @@ -135,7 +142,7 @@
13560 fi
13561
13562 # Have we seen a non-optional argument yet?
13563 - case "$arg" in
13564 + case $arg in
13565 --help)
13566 show_help=yes
13567 ;;
13568 @@ -146,7 +153,7 @@
13569 ;;
13570
13571 --config)
13572 - sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0
13573 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
13574 exit 0
13575 ;;
13576
13577 @@ -179,6 +186,8 @@
13578 --mode) prevopt="--mode" prev=mode ;;
13579 --mode=*) mode="$optarg" ;;
13580
13581 + --preserve-dup-deps) duplicate_deps="yes" ;;
13582 +
13583 --quiet | --silent)
13584 show=:
13585 ;;
13586 @@ -207,16 +216,21 @@
13587 exit 1
13588 fi
13589
13590 +# If this variable is set in any of the actions, the command in it
13591 +# will be execed at the end. This prevents here-documents from being
13592 +# left over by shells.
13593 +exec_cmd=
13594 +
13595 if test -z "$show_help"; then
13596
13597 # Infer the operation mode.
13598 if test -z "$mode"; then
13599 - case "$nonopt" in
13600 - *cc | *++ | gcc* | *-gcc*)
13601 + case $nonopt in
13602 + *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
13603 mode=link
13604 for arg
13605 do
13606 - case "$arg" in
13607 + case $arg in
13608 -c)
13609 mode=compile
13610 break
13611 @@ -261,12 +275,13 @@
13612 help="Try \`$modename --help --mode=$mode' for more information."
13613
13614 # These modes are in order of execution frequency so that they run quickly.
13615 - case "$mode" in
13616 + case $mode in
13617 # libtool compile mode
13618 compile)
13619 modename="$modename: compile"
13620 # Get the compilation command and the source file.
13621 base_compile=
13622 + prev=
13623 lastarg=
13624 srcfile="$nonopt"
13625 suppress_output=
13626 @@ -274,8 +289,34 @@
13627 user_target=no
13628 for arg
13629 do
13630 + case $prev in
13631 + "") ;;
13632 + xcompiler)
13633 + # Aesthetically quote the previous argument.
13634 + prev=
13635 + lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
13636 +
13637 + case $arg in
13638 + # Double-quote args containing other shell metacharacters.
13639 + # Many Bourne shells cannot handle close brackets correctly
13640 + # in scan sets, so we specify it separately.
13641 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
13642 + arg="\"$arg\""
13643 + ;;
13644 + esac
13645 +
13646 + # Add the previous argument to base_compile.
13647 + if test -z "$base_compile"; then
13648 + base_compile="$lastarg"
13649 + else
13650 + base_compile="$base_compile $lastarg"
13651 + fi
13652 + continue
13653 + ;;
13654 + esac
13655 +
13656 # Accept any command-line options.
13657 - case "$arg" in
13658 + case $arg in
13659 -o)
13660 if test "$user_target" != "no"; then
13661 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
13662 @@ -288,9 +329,53 @@
13663 build_old_libs=yes
13664 continue
13665 ;;
13666 +
13667 + -prefer-pic)
13668 + pic_mode=yes
13669 + continue
13670 + ;;
13671 +
13672 + -prefer-non-pic)
13673 + pic_mode=no
13674 + continue
13675 + ;;
13676 +
13677 + -Xcompiler)
13678 + prev=xcompiler
13679 + continue
13680 + ;;
13681 +
13682 + -Wc,*)
13683 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
13684 + lastarg=
13685 + save_ifs="$IFS"; IFS=','
13686 + for arg in $args; do
13687 + IFS="$save_ifs"
13688 +
13689 + # Double-quote args containing other shell metacharacters.
13690 + # Many Bourne shells cannot handle close brackets correctly
13691 + # in scan sets, so we specify it separately.
13692 + case $arg in
13693 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
13694 + arg="\"$arg\""
13695 + ;;
13696 + esac
13697 + lastarg="$lastarg $arg"
13698 + done
13699 + IFS="$save_ifs"
13700 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
13701 +
13702 + # Add the arguments to base_compile.
13703 + if test -z "$base_compile"; then
13704 + base_compile="$lastarg"
13705 + else
13706 + base_compile="$base_compile $lastarg"
13707 + fi
13708 + continue
13709 + ;;
13710 esac
13711
13712 - case "$user_target" in
13713 + case $user_target in
13714 next)
13715 # The next one is the -o target name
13716 user_target=yes
13717 @@ -316,10 +401,10 @@
13718 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
13719
13720 # Double-quote args containing other shell metacharacters.
13721 - # Many Bourne shells cannot handle close brackets correctly in scan
13722 - # sets, so we specify it separately.
13723 - case "$lastarg" in
13724 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
13725 + # Many Bourne shells cannot handle close brackets correctly
13726 + # in scan sets, so we specify it separately.
13727 + case $lastarg in
13728 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
13729 lastarg="\"$lastarg\""
13730 ;;
13731 esac
13732 @@ -332,7 +417,7 @@
13733 fi
13734 done
13735
13736 - case "$user_target" in
13737 + case $user_target in
13738 set)
13739 ;;
13740 no)
13741 @@ -348,7 +433,7 @@
13742 # Recognize several different file suffixes.
13743 # If the user specifies -o file.o, it is replaced with file.lo
13744 xform='[cCFSfmso]'
13745 - case "$libobj" in
13746 + case $libobj in
13747 *.ada) xform=ada ;;
13748 *.adb) xform=adb ;;
13749 *.ads) xform=ads ;;
13750 @@ -363,7 +448,7 @@
13751
13752 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
13753
13754 - case "$libobj" in
13755 + case $libobj in
13756 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
13757 *)
13758 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
13759 @@ -387,10 +472,21 @@
13760 $run $rm $removelist
13761 trap "$run $rm $removelist; exit 1" 1 2 15
13762
13763 + # On Cygwin there's no "real" PIC flag so we must build both object types
13764 + case $host_os in
13765 + cygwin* | mingw* | pw32* | os2*)
13766 + pic_mode=default
13767 + ;;
13768 + esac
13769 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
13770 + # non-PIC code in shared libraries is not supported
13771 + pic_mode=default
13772 + fi
13773 +
13774 # Calculate the filename of the output object if compiler does
13775 # not support -o with -c
13776 if test "$compiler_c_o" = no; then
13777 - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext}
13778 + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
13779 lockfile="$output_obj.lock"
13780 removelist="$removelist $output_obj $lockfile"
13781 trap "$run $rm $removelist; exit 1" 1 2 15
13782 @@ -402,7 +498,7 @@
13783 # Lock this critical section if it is needed
13784 # We use this script file to make the link, it avoids creating a new file
13785 if test "$need_locks" = yes; then
13786 - until ln "$0" "$lockfile" 2>/dev/null; do
13787 + until $run ln "$0" "$lockfile" 2>/dev/null; do
13788 $show "Waiting for $lockfile to be removed"
13789 sleep 2
13790 done
13791 @@ -434,8 +530,13 @@
13792 # Without this assignment, base_compile gets emptied.
13793 fbsd_hideous_sh_bug=$base_compile
13794
13795 - # All platforms use -DPIC, to notify preprocessed assembler code.
13796 - command="$base_compile $srcfile $pic_flag -DPIC"
13797 + if test "$pic_mode" != no; then
13798 + # All platforms use -DPIC, to notify preprocessed assembler code.
13799 + command="$base_compile $srcfile $pic_flag -DPIC"
13800 + else
13801 + # Don't build PIC code
13802 + command="$base_compile $srcfile"
13803 + fi
13804 if test "$build_old_libs" = yes; then
13805 lo_libobj="$libobj"
13806 dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
13807 @@ -506,7 +607,8 @@
13808 fi
13809
13810 # If we have no pic_flag, then copy the object into place and finish.
13811 - if test -z "$pic_flag" && test "$build_old_libs" = yes; then
13812 + if (test -z "$pic_flag" || test "$pic_mode" != default) &&
13813 + test "$build_old_libs" = yes; then
13814 # Rename the .lo from within objdir to obj
13815 if test -f $obj; then
13816 $show $rm $obj
13817 @@ -532,6 +634,10 @@
13818 # Now arrange that obj and lo_libobj become the same file
13819 $show "(cd $xdir && $LN_S $baseobj $libobj)"
13820 if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
13821 + # Unlock the critical section if it was locked
13822 + if test "$need_locks" != no; then
13823 + $run $rm "$lockfile"
13824 + fi
13825 exit 0
13826 else
13827 error=$?
13828 @@ -546,7 +652,13 @@
13829
13830 # Only build a position-dependent object if we build old libraries.
13831 if test "$build_old_libs" = yes; then
13832 - command="$base_compile $srcfile"
13833 + if test "$pic_mode" != yes; then
13834 + # Don't build PIC code
13835 + command="$base_compile $srcfile"
13836 + else
13837 + # All platforms use -DPIC, to notify preprocessed assembler code.
13838 + command="$base_compile $srcfile $pic_flag -DPIC"
13839 + fi
13840 if test "$compiler_c_o" = yes; then
13841 command="$command -o $obj"
13842 output_obj="$obj"
13843 @@ -612,17 +724,17 @@
13844
13845 # Unlock the critical section if it was locked
13846 if test "$need_locks" != no; then
13847 - $rm "$lockfile"
13848 + $run $rm "$lockfile"
13849 fi
13850
13851 exit 0
13852 ;;
13853
13854 # libtool link mode
13855 - link)
13856 + link | relink)
13857 modename="$modename: link"
13858 - case "$host" in
13859 - *-*-cygwin* | *-*-mingw* | *-*-os2*)
13860 + case $host in
13861 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
13862 # It is impossible to link a dll without this setting, and
13863 # we shouldn't force the makefile maintainer to figure out
13864 # which system we are compiling for in order to pass an extra
13865 @@ -635,179 +747,12 @@
13866 # -no-undefined on the libtool link line when we can be certain
13867 # that all symbols are satisfied, otherwise we get a static library.
13868 allow_undefined=yes
13869 -
13870 - # This is a source program that is used to create dlls on Windows
13871 - # Don't remove nor modify the starting and closing comments
13872 -# /* ltdll.c starts here */
13873 -# #define WIN32_LEAN_AND_MEAN
13874 -# #include <windows.h>
13875 -# #undef WIN32_LEAN_AND_MEAN
13876 -# #include <stdio.h>
13877 -#
13878 -# #ifndef __CYGWIN__
13879 -# # ifdef __CYGWIN32__
13880 -# # define __CYGWIN__ __CYGWIN32__
13881 -# # endif
13882 -# #endif
13883 -#
13884 -# #ifdef __cplusplus
13885 -# extern "C" {
13886 -# #endif
13887 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
13888 -# #ifdef __cplusplus
13889 -# }
13890 -# #endif
13891 -#
13892 -# #ifdef __CYGWIN__
13893 -# #include <cygwin/cygwin_dll.h>
13894 -# DECLARE_CYGWIN_DLL( DllMain );
13895 -# #endif
13896 -# HINSTANCE __hDllInstance_base;
13897 -#
13898 -# BOOL APIENTRY
13899 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
13900 -# {
13901 -# __hDllInstance_base = hInst;
13902 -# return TRUE;
13903 -# }
13904 -# /* ltdll.c ends here */
13905 - # This is a source program that is used to create import libraries
13906 - # on Windows for dlls which lack them. Don't remove nor modify the
13907 - # starting and closing comments
13908 -# /* impgen.c starts here */
13909 -# /* Copyright (C) 1999 Free Software Foundation, Inc.
13910 -#
13911 -# This file is part of GNU libtool.
13912 -#
13913 -# This program is free software; you can redistribute it and/or modify
13914 -# it under the terms of the GNU General Public License as published by
13915 -# the Free Software Foundation; either version 2 of the License, or
13916 -# (at your option) any later version.
13917 -#
13918 -# This program is distributed in the hope that it will be useful,
13919 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
13920 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13921 -# GNU General Public License for more details.
13922 -#
13923 -# You should have received a copy of the GNU General Public License
13924 -# along with this program; if not, write to the Free Software
13925 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
13926 -# */
13927 -#
13928 -# #include <stdio.h> /* for printf() */
13929 -# #include <unistd.h> /* for open(), lseek(), read() */
13930 -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
13931 -# #include <string.h> /* for strdup() */
13932 -#
13933 -# static unsigned int
13934 -# pe_get16 (fd, offset)
13935 -# int fd;
13936 -# int offset;
13937 -# {
13938 -# unsigned char b[2];
13939 -# lseek (fd, offset, SEEK_SET);
13940 -# read (fd, b, 2);
13941 -# return b[0] + (b[1]<<8);
13942 -# }
13943 -#
13944 -# static unsigned int
13945 -# pe_get32 (fd, offset)
13946 -# int fd;
13947 -# int offset;
13948 -# {
13949 -# unsigned char b[4];
13950 -# lseek (fd, offset, SEEK_SET);
13951 -# read (fd, b, 4);
13952 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
13953 -# }
13954 -#
13955 -# static unsigned int
13956 -# pe_as32 (ptr)
13957 -# void *ptr;
13958 -# {
13959 -# unsigned char *b = ptr;
13960 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
13961 -# }
13962 -#
13963 -# int
13964 -# main (argc, argv)
13965 -# int argc;
13966 -# char *argv[];
13967 -# {
13968 -# int dll;
13969 -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
13970 -# unsigned long export_rva, export_size, nsections, secptr, expptr;
13971 -# unsigned long name_rvas, nexp;
13972 -# unsigned char *expdata, *erva;
13973 -# char *filename, *dll_name;
13974 -#
13975 -# filename = argv[1];
13976 -#
13977 -# dll = open(filename, O_RDONLY|O_BINARY);
13978 -# if (!dll)
13979 -# return 1;
13980 -#
13981 -# dll_name = filename;
13982 -#
13983 -# for (i=0; filename[i]; i++)
13984 -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
13985 -# dll_name = filename + i +1;
13986 -#
13987 -# pe_header_offset = pe_get32 (dll, 0x3c);
13988 -# opthdr_ofs = pe_header_offset + 4 + 20;
13989 -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
13990 -#
13991 -# if (num_entries < 1) /* no exports */
13992 -# return 1;
13993 -#
13994 -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
13995 -# export_size = pe_get32 (dll, opthdr_ofs + 100);
13996 -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
13997 -# secptr = (pe_header_offset + 4 + 20 +
13998 -# pe_get16 (dll, pe_header_offset + 4 + 16));
13999 -#
14000 -# expptr = 0;
14001 -# for (i = 0; i < nsections; i++)
14002 -# {
14003 -# char sname[8];
14004 -# unsigned long secptr1 = secptr + 40 * i;
14005 -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
14006 -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
14007 -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
14008 -# lseek(dll, secptr1, SEEK_SET);
14009 -# read(dll, sname, 8);
14010 -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
14011 -# {
14012 -# expptr = fptr + (export_rva - vaddr);
14013 -# if (export_rva + export_size > vaddr + vsize)
14014 -# export_size = vsize - (export_rva - vaddr);
14015 -# break;
14016 -# }
14017 -# }
14018 -#
14019 -# expdata = (unsigned char*)malloc(export_size);
14020 -# lseek (dll, expptr, SEEK_SET);
14021 -# read (dll, expdata, export_size);
14022 -# erva = expdata - export_rva;
14023 -#
14024 -# nexp = pe_as32 (expdata+24);
14025 -# name_rvas = pe_as32 (expdata+32);
14026 -#
14027 -# printf ("EXPORTS\n");
14028 -# for (i = 0; i<nexp; i++)
14029 -# {
14030 -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
14031 -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
14032 -# }
14033 -#
14034 -# return 0;
14035 -# }
14036 -# /* impgen.c ends here */
14037 ;;
14038 *)
14039 allow_undefined=yes
14040 ;;
14041 esac
14042 + libtool_args="$nonopt"
14043 compile_command="$nonopt"
14044 finalize_command="$nonopt"
14045
14046 @@ -818,18 +763,13 @@
14047 convenience=
14048 old_convenience=
14049 deplibs=
14050 - linkopts=
14051 + old_deplibs=
14052 + compiler_flags=
14053 + linker_flags=
14054 + dllsearchpath=
14055 + lib_search_path=`pwd`
14056 + inst_prefix_dir=
14057
14058 - if test -n "$shlibpath_var"; then
14059 - # get the directories listed in $shlibpath_var
14060 - eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
14061 - else
14062 - lib_search_path=
14063 - fi
14064 - # now prepend the system-specific ones
14065 - eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\"
14066 - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
14067 -
14068 avoid_version=no
14069 dlfiles=
14070 dlprefiles=
14071 @@ -839,9 +779,9 @@
14072 export_symbols_regex=
14073 generated=
14074 libobjs=
14075 - link_against_libtool_libs=
14076 ltlibs=
14077 module=no
14078 + no_install=no
14079 objs=
14080 prefer_static_libs=no
14081 preload=no
14082 @@ -858,7 +798,7 @@
14083 # We need to know -static, to get the right output filenames.
14084 for arg
14085 do
14086 - case "$arg" in
14087 + case $arg in
14088 -all-static | -static)
14089 if test "X$arg" = "X-all-static"; then
14090 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
14091 @@ -887,17 +827,24 @@
14092 while test $# -gt 0; do
14093 arg="$1"
14094 shift
14095 + case $arg in
14096 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14097 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
14098 + ;;
14099 + *) qarg=$arg ;;
14100 + esac
14101 + libtool_args="$libtool_args $qarg"
14102
14103 # If the previous option needs an argument, assign it.
14104 if test -n "$prev"; then
14105 - case "$prev" in
14106 + case $prev in
14107 output)
14108 compile_command="$compile_command @OUTPUT@"
14109 finalize_command="$finalize_command @OUTPUT@"
14110 ;;
14111 esac
14112
14113 - case "$prev" in
14114 + case $prev in
14115 dlfiles|dlprefiles)
14116 if test "$preload" = no; then
14117 # Add the symbol object into the linking commands.
14118 @@ -905,7 +852,7 @@
14119 finalize_command="$finalize_command @SYMFILE@"
14120 preload=yes
14121 fi
14122 - case "$arg" in
14123 + case $arg in
14124 *.la | *.lo) ;; # We handle these cases below.
14125 force)
14126 if test "$dlself" = no; then
14127 @@ -934,6 +881,7 @@
14128 dlprefiles="$dlprefiles $arg"
14129 fi
14130 prev=
14131 + continue
14132 ;;
14133 esac
14134 ;;
14135 @@ -951,6 +899,11 @@
14136 prev=
14137 continue
14138 ;;
14139 + inst_prefix)
14140 + inst_prefix_dir="$arg"
14141 + prev=
14142 + continue
14143 + ;;
14144 release)
14145 release="-$arg"
14146 prev=
14147 @@ -958,7 +911,7 @@
14148 ;;
14149 rpath | xrpath)
14150 # We need an absolute path.
14151 - case "$arg" in
14152 + case $arg in
14153 [\\/]* | [A-Za-z]:[\\/]*) ;;
14154 *)
14155 $echo "$modename: only absolute run-paths are allowed" 1>&2
14156 @@ -979,17 +932,32 @@
14157 prev=
14158 continue
14159 ;;
14160 + xcompiler)
14161 + compiler_flags="$compiler_flags $qarg"
14162 + prev=
14163 + compile_command="$compile_command $qarg"
14164 + finalize_command="$finalize_command $qarg"
14165 + continue
14166 + ;;
14167 + xlinker)
14168 + linker_flags="$linker_flags $qarg"
14169 + compiler_flags="$compiler_flags $wl$qarg"
14170 + prev=
14171 + compile_command="$compile_command $wl$qarg"
14172 + finalize_command="$finalize_command $wl$qarg"
14173 + continue
14174 + ;;
14175 *)
14176 eval "$prev=\"\$arg\""
14177 prev=
14178 continue
14179 ;;
14180 esac
14181 - fi
14182 + fi # test -n $prev
14183
14184 prevarg="$arg"
14185
14186 - case "$arg" in
14187 + case $arg in
14188 -all-static)
14189 if test -n "$link_static_flag"; then
14190 compile_command="$compile_command $link_static_flag"
14191 @@ -1026,7 +994,7 @@
14192
14193 -export-symbols | -export-symbols-regex)
14194 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
14195 - $echo "$modename: not more than one -exported-symbols argument allowed"
14196 + $echo "$modename: more than one -exported-symbols argument is not allowed"
14197 exit 1
14198 fi
14199 if test "X$arg" = "X-export-symbols"; then
14200 @@ -1037,58 +1005,81 @@
14201 continue
14202 ;;
14203
14204 + -inst-prefix-dir)
14205 + prev=inst_prefix
14206 + continue
14207 + ;;
14208 +
14209 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
14210 + # so, if we see these flags be careful not to treat them like -L
14211 + -L[A-Z][A-Z]*:*)
14212 + case $with_gcc/$host in
14213 + no/*-*-irix* | no/*-*-nonstopux*)
14214 + compile_command="$compile_command $arg"
14215 + finalize_command="$finalize_command $arg"
14216 + ;;
14217 + esac
14218 + continue
14219 + ;;
14220 +
14221 -L*)
14222 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
14223 # We need an absolute path.
14224 - case "$dir" in
14225 + case $dir in
14226 [\\/]* | [A-Za-z]:[\\/]*) ;;
14227 *)
14228 absdir=`cd "$dir" && pwd`
14229 if test -z "$absdir"; then
14230 - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
14231 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
14232 - absdir="$dir"
14233 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
14234 + exit 1
14235 fi
14236 dir="$absdir"
14237 ;;
14238 esac
14239 - case " $deplibs " in
14240 - *" $arg "*) ;;
14241 - *) deplibs="$deplibs $arg";;
14242 - esac
14243 - case " $lib_search_path " in
14244 - *" $dir "*) ;;
14245 - *) lib_search_path="$lib_search_path $dir";;
14246 + case "$deplibs " in
14247 + *" -L$dir "*) ;;
14248 + *)
14249 + deplibs="$deplibs -L$dir"
14250 + lib_search_path="$lib_search_path $dir"
14251 + ;;
14252 esac
14253 - case "$host" in
14254 - *-*-cygwin* | *-*-mingw* | *-*-os2*)
14255 - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
14256 - case ":$dllsearchpath:" in
14257 - ::) dllsearchpath="$dllsearchdir";;
14258 - *":$dllsearchdir:"*) ;;
14259 - *) dllsearchpath="$dllsearchpath:$dllsearchdir";;
14260 + case $host in
14261 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
14262 + case :$dllsearchpath: in
14263 + *":$dir:"*) ;;
14264 + *) dllsearchpath="$dllsearchpath:$dir";;
14265 esac
14266 ;;
14267 esac
14268 + continue
14269 ;;
14270
14271 -l*)
14272 - if test "$arg" = "-lc"; then
14273 - case "$host" in
14274 - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
14275 - # These systems don't actually have c library (as such)
14276 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
14277 + case $host in
14278 + *-*-cygwin* | *-*-pw32* | *-*-beos*)
14279 + # These systems don't actually have a C or math library (as such)
14280 continue
14281 ;;
14282 + *-*-mingw* | *-*-os2*)
14283 + # These systems don't actually have a C library (as such)
14284 + test "X$arg" = "X-lc" && continue
14285 + ;;
14286 + *-*-openbsd* | *-*-freebsd*)
14287 + # Do not include libc due to us having libc/libc_r.
14288 + test "X$arg" = "X-lc" && continue
14289 + ;;
14290 esac
14291 - elif test "$arg" = "-lm"; then
14292 - case "$host" in
14293 - *-*-cygwin* | *-*-beos*)
14294 - # These systems don't actually have math library (as such)
14295 + elif test "X$arg" = "X-lc_r"; then
14296 + case $host in
14297 + *-*-openbsd* | *-*-freebsd*)
14298 + # Do not include libc_r directly, use -pthread flag.
14299 continue
14300 ;;
14301 esac
14302 fi
14303 deplibs="$deplibs $arg"
14304 + continue
14305 ;;
14306
14307 -module)
14308 @@ -1096,6 +1087,25 @@
14309 continue
14310 ;;
14311
14312 + -no-fast-install)
14313 + fast_install=no
14314 + continue
14315 + ;;
14316 +
14317 + -no-install)
14318 + case $host in
14319 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
14320 + # The PATH hackery in wrapper scripts is required on Windows
14321 + # in order for the loader to find any dlls it needs.
14322 + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
14323 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
14324 + fast_install=no
14325 + ;;
14326 + *) no_install=yes ;;
14327 + esac
14328 + continue
14329 + ;;
14330 +
14331 -no-undefined)
14332 allow_undefined=no
14333 continue
14334 @@ -1121,7 +1131,7 @@
14335 -R*)
14336 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
14337 # We need an absolute path.
14338 - case "$dir" in
14339 + case $dir in
14340 [\\/]* | [A-Za-z]:[\\/]*) ;;
14341 *)
14342 $echo "$modename: only absolute run-paths are allowed" 1>&2
14343 @@ -1136,11 +1146,11 @@
14344 ;;
14345
14346 -static)
14347 - # If we have no pic_flag, then this is the same as -all-static.
14348 - if test -z "$pic_flag" && test -n "$link_static_flag"; then
14349 - compile_command="$compile_command $link_static_flag"
14350 - finalize_command="$finalize_command $link_static_flag"
14351 - fi
14352 + # The effects of -static are defined in a previous loop.
14353 + # We used to do the same as -all-static on platforms that
14354 + # didn't have a PIC flag, but the assumption that the effects
14355 + # would be equivalent was wrong. It would break on at least
14356 + # Digital Unix and AIX.
14357 continue
14358 ;;
14359
14360 @@ -1154,28 +1164,71 @@
14361 continue
14362 ;;
14363
14364 + -Wc,*)
14365 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
14366 + arg=
14367 + save_ifs="$IFS"; IFS=','
14368 + for flag in $args; do
14369 + IFS="$save_ifs"
14370 + case $flag in
14371 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14372 + flag="\"$flag\""
14373 + ;;
14374 + esac
14375 + arg="$arg $wl$flag"
14376 + compiler_flags="$compiler_flags $flag"
14377 + done
14378 + IFS="$save_ifs"
14379 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
14380 + ;;
14381 +
14382 + -Wl,*)
14383 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
14384 + arg=
14385 + save_ifs="$IFS"; IFS=','
14386 + for flag in $args; do
14387 + IFS="$save_ifs"
14388 + case $flag in
14389 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14390 + flag="\"$flag\""
14391 + ;;
14392 + esac
14393 + arg="$arg $wl$flag"
14394 + compiler_flags="$compiler_flags $wl$flag"
14395 + linker_flags="$linker_flags $flag"
14396 + done
14397 + IFS="$save_ifs"
14398 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
14399 + ;;
14400 +
14401 + -Xcompiler)
14402 + prev=xcompiler
14403 + continue
14404 + ;;
14405 +
14406 + -Xlinker)
14407 + prev=xlinker
14408 + continue
14409 + ;;
14410 +
14411 # Some other compiler flag.
14412 -* | +*)
14413 # Unknown arguments in both finalize_command and compile_command need
14414 # to be aesthetically quoted because they are evaled later.
14415 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
14416 - case "$arg" in
14417 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
14418 + case $arg in
14419 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14420 arg="\"$arg\""
14421 ;;
14422 esac
14423 ;;
14424
14425 - *.o | *.obj | *.a | *.lib)
14426 - # A standard object.
14427 - objs="$objs $arg"
14428 - ;;
14429 -
14430 - *.lo)
14431 - # A library object.
14432 + *.lo | *.$objext)
14433 + # A library or standard object.
14434 if test "$prev" = dlfiles; then
14435 - dlfiles="$dlfiles $arg"
14436 - if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then
14437 + # This file was specified with -dlopen.
14438 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
14439 + dlfiles="$dlfiles $arg"
14440 prev=
14441 continue
14442 else
14443 @@ -1188,357 +1241,917 @@
14444 # Preload the old-style object.
14445 dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
14446 prev=
14447 + else
14448 + case $arg in
14449 + *.lo) libobjs="$libobjs $arg" ;;
14450 + *) objs="$objs $arg" ;;
14451 + esac
14452 fi
14453 - libobjs="$libobjs $arg"
14454 + ;;
14455 +
14456 + *.$libext)
14457 + # An archive.
14458 + deplibs="$deplibs $arg"
14459 + old_deplibs="$old_deplibs $arg"
14460 + continue
14461 ;;
14462
14463 *.la)
14464 # A libtool-controlled library.
14465
14466 - dlname=
14467 - libdir=
14468 - library_names=
14469 - old_library=
14470 -
14471 - # Check to see that this really is a libtool archive.
14472 - if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
14473 + if test "$prev" = dlfiles; then
14474 + # This library was specified with -dlopen.
14475 + dlfiles="$dlfiles $arg"
14476 + prev=
14477 + elif test "$prev" = dlprefiles; then
14478 + # The library was specified with -dlpreopen.
14479 + dlprefiles="$dlprefiles $arg"
14480 + prev=
14481 else
14482 - $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
14483 - exit 1
14484 + deplibs="$deplibs $arg"
14485 fi
14486 + continue
14487 + ;;
14488
14489 - # If the library was installed with an old release of libtool,
14490 - # it will not redefine variable installed.
14491 - installed=yes
14492 -
14493 - # Read the .la file
14494 - # If there is no directory component, then add one.
14495 - case "$arg" in
14496 - */* | *\\*) . $arg ;;
14497 - *) . ./$arg ;;
14498 + # Some other compiler argument.
14499 + *)
14500 + # Unknown arguments in both finalize_command and compile_command need
14501 + # to be aesthetically quoted because they are evaled later.
14502 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
14503 + case $arg in
14504 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14505 + arg="\"$arg\""
14506 + ;;
14507 esac
14508 + ;;
14509 + esac # arg
14510
14511 - # Get the name of the library we link against.
14512 - linklib=
14513 - for l in $old_library $library_names; do
14514 - linklib="$l"
14515 - done
14516 -
14517 - if test -z "$linklib"; then
14518 - $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
14519 - exit 1
14520 - fi
14521 -
14522 - # Find the relevant object directory and library name.
14523 - name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
14524 -
14525 - if test "X$installed" = Xyes; then
14526 - dir="$libdir"
14527 - else
14528 - dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
14529 - if test "X$dir" = "X$arg"; then
14530 - dir="$objdir"
14531 - else
14532 - dir="$dir/$objdir"
14533 - fi
14534 - fi
14535 + # Now actually substitute the argument into the commands.
14536 + if test -n "$arg"; then
14537 + compile_command="$compile_command $arg"
14538 + finalize_command="$finalize_command $arg"
14539 + fi
14540 + done # argument parsing loop
14541
14542 - if test -n "$dependency_libs"; then
14543 - # Extract -R and -L from dependency_libs
14544 - temp_deplibs=
14545 - for deplib in $dependency_libs; do
14546 - case "$deplib" in
14547 - -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
14548 - case " $rpath $xrpath " in
14549 - *" $temp_xrpath "*) ;;
14550 - *) xrpath="$xrpath $temp_xrpath";;
14551 - esac;;
14552 - -L*) case "$compile_command $temp_deplibs " in
14553 - *" $deplib "*) ;;
14554 - *) temp_deplibs="$temp_deplibs $deplib";;
14555 - esac
14556 - temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'`
14557 - case " $lib_search_path " in
14558 - *" $temp_dir "*) ;;
14559 - *) lib_search_path="$lib_search_path $temp_dir";;
14560 - esac
14561 - ;;
14562 - *) temp_deplibs="$temp_deplibs $deplib";;
14563 - esac
14564 - done
14565 - dependency_libs="$temp_deplibs"
14566 - fi
14567 + if test -n "$prev"; then
14568 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
14569 + $echo "$help" 1>&2
14570 + exit 1
14571 + fi
14572
14573 - if test -z "$libdir"; then
14574 - # It is a libtool convenience library, so add in its objects.
14575 - convenience="$convenience $dir/$old_library"
14576 - old_convenience="$old_convenience $dir/$old_library"
14577 - deplibs="$deplibs$dependency_libs"
14578 - compile_command="$compile_command $dir/$old_library$dependency_libs"
14579 - finalize_command="$finalize_command $dir/$old_library$dependency_libs"
14580 - continue
14581 - fi
14582 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
14583 + eval arg=\"$export_dynamic_flag_spec\"
14584 + compile_command="$compile_command $arg"
14585 + finalize_command="$finalize_command $arg"
14586 + fi
14587
14588 - # This library was specified with -dlopen.
14589 - if test "$prev" = dlfiles; then
14590 - dlfiles="$dlfiles $arg"
14591 - if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then
14592 - # If there is no dlname, no dlopen support or we're linking statically,
14593 - # we need to preload.
14594 - prev=dlprefiles
14595 - else
14596 - # We should not create a dependency on this library, but we
14597 - # may need any libraries it requires.
14598 - compile_command="$compile_command$dependency_libs"
14599 - finalize_command="$finalize_command$dependency_libs"
14600 - prev=
14601 - continue
14602 - fi
14603 - fi
14604 + # calculate the name of the file, without its directory
14605 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
14606 + libobjs_save="$libobjs"
14607
14608 - # The library was specified with -dlpreopen.
14609 - if test "$prev" = dlprefiles; then
14610 - # Prefer using a static library (so that no silly _DYNAMIC symbols
14611 - # are required to link).
14612 - if test -n "$old_library"; then
14613 - dlprefiles="$dlprefiles $dir/$old_library"
14614 - else
14615 - dlprefiles="$dlprefiles $dir/$linklib"
14616 - fi
14617 - prev=
14618 - fi
14619 + if test -n "$shlibpath_var"; then
14620 + # get the directories listed in $shlibpath_var
14621 + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
14622 + else
14623 + shlib_search_path=
14624 + fi
14625 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
14626 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
14627
14628 - if test -n "$library_names" &&
14629 - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
14630 - link_against_libtool_libs="$link_against_libtool_libs $arg"
14631 - if test -n "$shlibpath_var"; then
14632 - # Make sure the rpath contains only unique directories.
14633 - case "$temp_rpath " in
14634 - *" $dir "*) ;;
14635 - *) temp_rpath="$temp_rpath $dir" ;;
14636 - esac
14637 - fi
14638 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
14639 + if test "X$output_objdir" = "X$output"; then
14640 + output_objdir="$objdir"
14641 + else
14642 + output_objdir="$output_objdir/$objdir"
14643 + fi
14644 + # Create the object directory.
14645 + if test ! -d $output_objdir; then
14646 + $show "$mkdir $output_objdir"
14647 + $run $mkdir $output_objdir
14648 + status=$?
14649 + if test $status -ne 0 && test ! -d $output_objdir; then
14650 + exit $status
14651 + fi
14652 + fi
14653
14654 - # We need an absolute path.
14655 - case "$dir" in
14656 - [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
14657 - *)
14658 - absdir=`cd "$dir" && pwd`
14659 - if test -z "$absdir"; then
14660 - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
14661 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
14662 - absdir="$dir"
14663 - fi
14664 - ;;
14665 - esac
14666 -
14667 - # This is the magic to use -rpath.
14668 - # Skip directories that are in the system default run-time
14669 - # search path, unless they have been requested with -R.
14670 - case " $sys_lib_dlsearch_path " in
14671 - *" $absdir "*) ;;
14672 - *)
14673 - case "$compile_rpath " in
14674 - *" $absdir "*) ;;
14675 - *) compile_rpath="$compile_rpath $absdir"
14676 - esac
14677 - ;;
14678 - esac
14679 + # Determine the type of output
14680 + case $output in
14681 + "")
14682 + $echo "$modename: you must specify an output file" 1>&2
14683 + $echo "$help" 1>&2
14684 + exit 1
14685 + ;;
14686 + *.$libext) linkmode=oldlib ;;
14687 + *.lo | *.$objext) linkmode=obj ;;
14688 + *.la) linkmode=lib ;;
14689 + *) linkmode=prog ;; # Anything else should be a program.
14690 + esac
14691
14692 - case " $sys_lib_dlsearch_path " in
14693 - *" $libdir "*) ;;
14694 + specialdeplibs=
14695 + libs=
14696 + # Find all interdependent deplibs by searching for libraries
14697 + # that are linked more than once (e.g. -la -lb -la)
14698 + for deplib in $deplibs; do
14699 + if test "X$duplicate_deps" = "Xyes" ; then
14700 + case "$libs " in
14701 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
14702 + esac
14703 + fi
14704 + libs="$libs $deplib"
14705 + done
14706 + deplibs=
14707 + newdependency_libs=
14708 + newlib_search_path=
14709 + need_relink=no # whether we're linking any uninstalled libtool libraries
14710 + notinst_deplibs= # not-installed libtool libraries
14711 + notinst_path= # paths that contain not-installed libtool libraries
14712 + case $linkmode in
14713 + lib)
14714 + passes="conv link"
14715 + for file in $dlfiles $dlprefiles; do
14716 + case $file in
14717 + *.la) ;;
14718 *)
14719 - case "$finalize_rpath " in
14720 - *" $libdir "*) ;;
14721 - *) finalize_rpath="$finalize_rpath $libdir"
14722 - esac
14723 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
14724 + exit 1
14725 ;;
14726 esac
14727 -
14728 - lib_linked=yes
14729 - case "$hardcode_action" in
14730 - immediate | unsupported)
14731 - if test "$hardcode_direct" = no; then
14732 - compile_command="$compile_command $dir/$linklib"
14733 - deplibs="$deplibs $dir/$linklib"
14734 - case "$host" in
14735 - *-*-cygwin* | *-*-mingw* | *-*-os2*)
14736 - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
14737 - if test -n "$dllsearchpath"; then
14738 - dllsearchpath="$dllsearchpath:$dllsearchdir"
14739 - else
14740 - dllsearchpath="$dllsearchdir"
14741 - fi
14742 - ;;
14743 - esac
14744 - elif test "$hardcode_minus_L" = no; then
14745 - case "$host" in
14746 - *-*-sunos*)
14747 - compile_shlibpath="$compile_shlibpath$dir:"
14748 - ;;
14749 - esac
14750 - case "$compile_command " in
14751 - *" -L$dir "*) ;;
14752 - *) compile_command="$compile_command -L$dir";;
14753 - esac
14754 - compile_command="$compile_command -l$name"
14755 - deplibs="$deplibs -L$dir -l$name"
14756 - elif test "$hardcode_shlibpath_var" = no; then
14757 - case ":$compile_shlibpath:" in
14758 - *":$dir:"*) ;;
14759 - *) compile_shlibpath="$compile_shlibpath$dir:";;
14760 - esac
14761 - compile_command="$compile_command -l$name"
14762 - deplibs="$deplibs -l$name"
14763 + done
14764 + ;;
14765 + prog)
14766 + compile_deplibs=
14767 + finalize_deplibs=
14768 + alldeplibs=no
14769 + newdlfiles=
14770 + newdlprefiles=
14771 + passes="conv scan dlopen dlpreopen link"
14772 + ;;
14773 + *) passes="conv"
14774 + ;;
14775 + esac
14776 + for pass in $passes; do
14777 + if test $linkmode = prog; then
14778 + # Determine which files to process
14779 + case $pass in
14780 + dlopen)
14781 + libs="$dlfiles"
14782 + save_deplibs="$deplibs" # Collect dlpreopened libraries
14783 + deplibs=
14784 + ;;
14785 + dlpreopen) libs="$dlprefiles" ;;
14786 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
14787 + esac
14788 + fi
14789 + for deplib in $libs; do
14790 + lib=
14791 + found=no
14792 + case $deplib in
14793 + -l*)
14794 + if test $linkmode = oldlib && test $linkmode = obj; then
14795 + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
14796 + continue
14797 + fi
14798 + if test $pass = conv; then
14799 + deplibs="$deplib $deplibs"
14800 + continue
14801 + fi
14802 + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
14803 + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
14804 + # Search the libtool library
14805 + lib="$searchdir/lib${name}.la"
14806 + if test -f "$lib"; then
14807 + found=yes
14808 + break
14809 + fi
14810 + done
14811 + if test "$found" != yes; then
14812 + # deplib doesn't seem to be a libtool library
14813 + if test "$linkmode,$pass" = "prog,link"; then
14814 + compile_deplibs="$deplib $compile_deplibs"
14815 + finalize_deplibs="$deplib $finalize_deplibs"
14816 else
14817 - lib_linked=no
14818 + deplibs="$deplib $deplibs"
14819 + test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
14820 fi
14821 + continue
14822 + fi
14823 + ;; # -l
14824 + -L*)
14825 + case $linkmode in
14826 + lib)
14827 + deplibs="$deplib $deplibs"
14828 + test $pass = conv && continue
14829 + newdependency_libs="$deplib $newdependency_libs"
14830 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
14831 ;;
14832 -
14833 - relink)
14834 - if test "$hardcode_direct" = yes; then
14835 - compile_command="$compile_command $absdir/$linklib"
14836 - deplibs="$deplibs $absdir/$linklib"
14837 - elif test "$hardcode_minus_L" = yes; then
14838 - case "$compile_command " in
14839 - *" -L$absdir "*) ;;
14840 - *) compile_command="$compile_command -L$absdir";;
14841 - esac
14842 - compile_command="$compile_command -l$name"
14843 - deplibs="$deplibs -L$absdir -l$name"
14844 - elif test "$hardcode_shlibpath_var" = yes; then
14845 - case ":$compile_shlibpath:" in
14846 - *":$absdir:"*) ;;
14847 - *) compile_shlibpath="$compile_shlibpath$absdir:";;
14848 - esac
14849 - compile_command="$compile_command -l$name"
14850 - deplibs="$deplibs -l$name"
14851 + prog)
14852 + if test $pass = conv; then
14853 + deplibs="$deplib $deplibs"
14854 + continue
14855 + fi
14856 + if test $pass = scan; then
14857 + deplibs="$deplib $deplibs"
14858 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
14859 else
14860 - lib_linked=no
14861 + compile_deplibs="$deplib $compile_deplibs"
14862 + finalize_deplibs="$deplib $finalize_deplibs"
14863 fi
14864 ;;
14865 -
14866 *)
14867 - lib_linked=no
14868 + $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
14869 ;;
14870 - esac
14871 + esac # linkmode
14872 + continue
14873 + ;; # -L
14874 + -R*)
14875 + if test $pass = link; then
14876 + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
14877 + # Make sure the xrpath contains only unique directories.
14878 + case "$xrpath " in
14879 + *" $dir "*) ;;
14880 + *) xrpath="$xrpath $dir" ;;
14881 + esac
14882 + fi
14883 + deplibs="$deplib $deplibs"
14884 + continue
14885 + ;;
14886 + *.la) lib="$deplib" ;;
14887 + *.$libext)
14888 + if test $pass = conv; then
14889 + deplibs="$deplib $deplibs"
14890 + continue
14891 + fi
14892 + case $linkmode in
14893 + lib)
14894 + if test "$deplibs_check_method" != pass_all; then
14895 + echo
14896 + echo "*** Warning: Trying to link with static lib archive $deplib."
14897 + echo "*** I have the capability to make that library automatically link in when"
14898 + echo "*** you link to this library. But I can only do this if you have a"
14899 + echo "*** shared version of the library, which you do not appear to have"
14900 + echo "*** because the file extensions .$libext of this argument makes me believe"
14901 + echo "*** that it is just a static archive that I should not used here."
14902 + else
14903 + echo
14904 + echo "*** Warning: Linking the shared library $output against the"
14905 + echo "*** static library $deplib is not portable!"
14906 + deplibs="$deplib $deplibs"
14907 + fi
14908 + continue
14909 + ;;
14910 + prog)
14911 + if test $pass != link; then
14912 + deplibs="$deplib $deplibs"
14913 + else
14914 + compile_deplibs="$deplib $compile_deplibs"
14915 + finalize_deplibs="$deplib $finalize_deplibs"
14916 + fi
14917 + continue
14918 + ;;
14919 + esac # linkmode
14920 + ;; # *.$libext
14921 + *.lo | *.$objext)
14922 + if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
14923 + # If there is no dlopen support or we're linking statically,
14924 + # we need to preload.
14925 + newdlprefiles="$newdlprefiles $deplib"
14926 + compile_deplibs="$deplib $compile_deplibs"
14927 + finalize_deplibs="$deplib $finalize_deplibs"
14928 + else
14929 + newdlfiles="$newdlfiles $deplib"
14930 + fi
14931 + continue
14932 + ;;
14933 + %DEPLIBS%)
14934 + alldeplibs=yes
14935 + continue
14936 + ;;
14937 + esac # case $deplib
14938 + if test $found = yes || test -f "$lib"; then :
14939 + else
14940 + $echo "$modename: cannot find the library \`$lib'" 1>&2
14941 + exit 1
14942 + fi
14943 +
14944 + # Check to see that this really is a libtool archive.
14945 + if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
14946 + else
14947 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
14948 + exit 1
14949 + fi
14950 +
14951 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
14952 + test "X$ladir" = "X$lib" && ladir="."
14953 +
14954 + dlname=
14955 + dlopen=
14956 + dlpreopen=
14957 + libdir=
14958 + library_names=
14959 + old_library=
14960 + # If the library was installed with an old release of libtool,
14961 + # it will not redefine variable installed.
14962 + installed=yes
14963 +
14964 + # Read the .la file
14965 + case $lib in
14966 + */* | *\\*) . $lib ;;
14967 + *) . ./$lib ;;
14968 + esac
14969 +
14970 + if test "$linkmode,$pass" = "lib,link" ||
14971 + test "$linkmode,$pass" = "prog,scan" ||
14972 + { test $linkmode = oldlib && test $linkmode = obj; }; then
14973 + # Add dl[pre]opened files of deplib
14974 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
14975 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
14976 + fi
14977
14978 - if test "$lib_linked" != yes; then
14979 - $echo "$modename: configuration error: unsupported hardcode properties"
14980 + if test $pass = conv; then
14981 + # Only check for convenience libraries
14982 + deplibs="$lib $deplibs"
14983 + if test -z "$libdir"; then
14984 + if test -z "$old_library"; then
14985 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
14986 + exit 1
14987 + fi
14988 + # It is a libtool convenience library, so add in its objects.
14989 + convenience="$convenience $ladir/$objdir/$old_library"
14990 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
14991 + tmp_libs=
14992 + for deplib in $dependency_libs; do
14993 + deplibs="$deplib $deplibs"
14994 + if test "X$duplicate_deps" = "Xyes" ; then
14995 + case "$tmp_libs " in
14996 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
14997 + esac
14998 + fi
14999 + tmp_libs="$tmp_libs $deplib"
15000 + done
15001 + elif test $linkmode != prog && test $linkmode != lib; then
15002 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
15003 exit 1
15004 fi
15005 + continue
15006 + fi # $pass = conv
15007
15008 - # Finalize command for both is simple: just hardcode it.
15009 - if test "$hardcode_direct" = yes; then
15010 - finalize_command="$finalize_command $libdir/$linklib"
15011 - elif test "$hardcode_minus_L" = yes; then
15012 - case "$finalize_command " in
15013 - *" -L$libdir "*) ;;
15014 - *) finalize_command="$finalize_command -L$libdir";;
15015 - esac
15016 - finalize_command="$finalize_command -l$name"
15017 - elif test "$hardcode_shlibpath_var" = yes; then
15018 - case ":$finalize_shlibpath:" in
15019 - *":$libdir:"*) ;;
15020 - *) finalize_shlibpath="$finalize_shlibpath$libdir:";;
15021 - esac
15022 - finalize_command="$finalize_command -l$name"
15023 + # Get the name of the library we link against.
15024 + linklib=
15025 + for l in $old_library $library_names; do
15026 + linklib="$l"
15027 + done
15028 + if test -z "$linklib"; then
15029 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
15030 + exit 1
15031 + fi
15032 +
15033 + # This library was specified with -dlopen.
15034 + if test $pass = dlopen; then
15035 + if test -z "$libdir"; then
15036 + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
15037 + exit 1
15038 + fi
15039 + if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
15040 + # If there is no dlname, no dlopen support or we're linking
15041 + # statically, we need to preload.
15042 + dlprefiles="$dlprefiles $lib"
15043 else
15044 - # We cannot seem to hardcode it, guess we'll fake it.
15045 - case "$finalize_command " in
15046 - *" -L$dir "*) ;;
15047 - *) finalize_command="$finalize_command -L$libdir";;
15048 - esac
15049 - finalize_command="$finalize_command -l$name"
15050 + newdlfiles="$newdlfiles $lib"
15051 + fi
15052 + continue
15053 + fi # $pass = dlopen
15054 +
15055 + # We need an absolute path.
15056 + case $ladir in
15057 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
15058 + *)
15059 + abs_ladir=`cd "$ladir" && pwd`
15060 + if test -z "$abs_ladir"; then
15061 + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
15062 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
15063 + abs_ladir="$ladir"
15064 + fi
15065 + ;;
15066 + esac
15067 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
15068 +
15069 + # Find the relevant object directory and library name.
15070 + if test "X$installed" = Xyes; then
15071 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
15072 + $echo "$modename: warning: library \`$lib' was moved." 1>&2
15073 + dir="$ladir"
15074 + absdir="$abs_ladir"
15075 + libdir="$abs_ladir"
15076 + else
15077 + dir="$libdir"
15078 + absdir="$libdir"
15079 fi
15080 else
15081 - # Transform directly to old archives if we don't build new libraries.
15082 - if test -n "$pic_flag" && test -z "$old_library"; then
15083 - $echo "$modename: cannot find static library for \`$arg'" 1>&2
15084 + dir="$ladir/$objdir"
15085 + absdir="$abs_ladir/$objdir"
15086 + # Remove this search path later
15087 + notinst_path="$notinst_path $abs_ladir"
15088 + fi # $installed = yes
15089 + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
15090 +
15091 + # This library was specified with -dlpreopen.
15092 + if test $pass = dlpreopen; then
15093 + if test -z "$libdir"; then
15094 + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
15095 exit 1
15096 fi
15097 + # Prefer using a static library (so that no silly _DYNAMIC symbols
15098 + # are required to link).
15099 + if test -n "$old_library"; then
15100 + newdlprefiles="$newdlprefiles $dir/$old_library"
15101 + # Otherwise, use the dlname, so that lt_dlopen finds it.
15102 + elif test -n "$dlname"; then
15103 + newdlprefiles="$newdlprefiles $dir/$dlname"
15104 + else
15105 + newdlprefiles="$newdlprefiles $dir/$linklib"
15106 + fi
15107 + fi # $pass = dlpreopen
15108
15109 - # Here we assume that one of hardcode_direct or hardcode_minus_L
15110 - # is not unsupported. This is valid on all known static and
15111 - # shared platforms.
15112 - if test "$hardcode_direct" != unsupported; then
15113 - test -n "$old_library" && linklib="$old_library"
15114 - compile_command="$compile_command $dir/$linklib"
15115 - finalize_command="$finalize_command $dir/$linklib"
15116 + if test -z "$libdir"; then
15117 + # Link the convenience library
15118 + if test $linkmode = lib; then
15119 + deplibs="$dir/$old_library $deplibs"
15120 + elif test "$linkmode,$pass" = "prog,link"; then
15121 + compile_deplibs="$dir/$old_library $compile_deplibs"
15122 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
15123 else
15124 - case "$compile_command " in
15125 - *" -L$dir "*) ;;
15126 - *) compile_command="$compile_command -L$dir";;
15127 + deplibs="$lib $deplibs"
15128 + fi
15129 + continue
15130 + fi
15131 +
15132 + if test $linkmode = prog && test $pass != link; then
15133 + newlib_search_path="$newlib_search_path $ladir"
15134 + deplibs="$lib $deplibs"
15135 +
15136 + linkalldeplibs=no
15137 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
15138 + test "$build_libtool_libs" = no; then
15139 + linkalldeplibs=yes
15140 + fi
15141 +
15142 + tmp_libs=
15143 + for deplib in $dependency_libs; do
15144 + case $deplib in
15145 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
15146 esac
15147 - compile_command="$compile_command -l$name"
15148 - case "$finalize_command " in
15149 - *" -L$dir "*) ;;
15150 - *) finalize_command="$finalize_command -L$dir";;
15151 + # Need to link against all dependency_libs?
15152 + if test $linkalldeplibs = yes; then
15153 + deplibs="$deplib $deplibs"
15154 + else
15155 + # Need to hardcode shared library paths
15156 + # or/and link against static libraries
15157 + newdependency_libs="$deplib $newdependency_libs"
15158 + fi
15159 + if test "X$duplicate_deps" = "Xyes" ; then
15160 + case "$tmp_libs " in
15161 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
15162 + esac
15163 + fi
15164 + tmp_libs="$tmp_libs $deplib"
15165 + done # for deplib
15166 + continue
15167 + fi # $linkmode = prog...
15168 +
15169 + link_static=no # Whether the deplib will be linked statically
15170 + if test -n "$library_names" &&
15171 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
15172 + # Link against this shared library
15173 +
15174 + if test "$linkmode,$pass" = "prog,link" ||
15175 + { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
15176 + # Hardcode the library path.
15177 + # Skip directories that are in the system default run-time
15178 + # search path.
15179 + case " $sys_lib_dlsearch_path " in
15180 + *" $absdir "*) ;;
15181 + *)
15182 + case "$compile_rpath " in
15183 + *" $absdir "*) ;;
15184 + *) compile_rpath="$compile_rpath $absdir"
15185 + esac
15186 + ;;
15187 esac
15188 - finalize_command="$finalize_command -l$name"
15189 + case " $sys_lib_dlsearch_path " in
15190 + *" $libdir "*) ;;
15191 + *)
15192 + case "$finalize_rpath " in
15193 + *" $libdir "*) ;;
15194 + *) finalize_rpath="$finalize_rpath $libdir"
15195 + esac
15196 + ;;
15197 + esac
15198 + if test $linkmode = prog; then
15199 + # We need to hardcode the library path
15200 + if test -n "$shlibpath_var"; then
15201 + # Make sure the rpath contains only unique directories.
15202 + case "$temp_rpath " in
15203 + *" $dir "*) ;;
15204 + *" $absdir "*) ;;
15205 + *) temp_rpath="$temp_rpath $dir" ;;
15206 + esac
15207 + fi
15208 + fi
15209 + fi # $linkmode,$pass = prog,link...
15210 +
15211 + if test "$alldeplibs" = yes &&
15212 + { test "$deplibs_check_method" = pass_all ||
15213 + { test "$build_libtool_libs" = yes &&
15214 + test -n "$library_names"; }; }; then
15215 + # We only need to search for static libraries
15216 + continue
15217 fi
15218 - fi
15219
15220 - # Add in any libraries that this one depends upon.
15221 - compile_command="$compile_command$dependency_libs"
15222 - finalize_command="$finalize_command$dependency_libs"
15223 - continue
15224 - ;;
15225 + if test "$installed" = no; then
15226 + notinst_deplibs="$notinst_deplibs $lib"
15227 + need_relink=yes
15228 + fi
15229 +
15230 + if test -n "$old_archive_from_expsyms_cmds"; then
15231 + # figure out the soname
15232 + set dummy $library_names
15233 + realname="$2"
15234 + shift; shift
15235 + libname=`eval \\$echo \"$libname_spec\"`
15236 + # use dlname if we got it. it's perfectly good, no?
15237 + if test -n "$dlname"; then
15238 + soname="$dlname"
15239 + elif test -n "$soname_spec"; then
15240 + # bleh windows
15241 + case $host in
15242 + *cygwin*)
15243 + major=`expr $current - $age`
15244 + versuffix="-$major"
15245 + ;;
15246 + esac
15247 + eval soname=\"$soname_spec\"
15248 + else
15249 + soname="$realname"
15250 + fi
15251
15252 - # Some other compiler argument.
15253 - *)
15254 - # Unknown arguments in both finalize_command and compile_command need
15255 - # to be aesthetically quoted because they are evaled later.
15256 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
15257 - case "$arg" in
15258 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
15259 - arg="\"$arg\""
15260 - ;;
15261 - esac
15262 - ;;
15263 - esac
15264 + # Make a new name for the extract_expsyms_cmds to use
15265 + soroot="$soname"
15266 + soname=`echo $soroot | ${SED} -e 's/^.*\///'`
15267 + newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
15268
15269 - # Now actually substitute the argument into the commands.
15270 - if test -n "$arg"; then
15271 - compile_command="$compile_command $arg"
15272 - finalize_command="$finalize_command $arg"
15273 - fi
15274 - done
15275 + # If the library has no export list, then create one now
15276 + if test -f "$output_objdir/$soname-def"; then :
15277 + else
15278 + $show "extracting exported symbol list from \`$soname'"
15279 + save_ifs="$IFS"; IFS='~'
15280 + eval cmds=\"$extract_expsyms_cmds\"
15281 + for cmd in $cmds; do
15282 + IFS="$save_ifs"
15283 + $show "$cmd"
15284 + $run eval "$cmd" || exit $?
15285 + done
15286 + IFS="$save_ifs"
15287 + fi
15288
15289 - if test -n "$prev"; then
15290 - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
15291 - $echo "$help" 1>&2
15292 - exit 1
15293 - fi
15294 + # Create $newlib
15295 + if test -f "$output_objdir/$newlib"; then :; else
15296 + $show "generating import library for \`$soname'"
15297 + save_ifs="$IFS"; IFS='~'
15298 + eval cmds=\"$old_archive_from_expsyms_cmds\"
15299 + for cmd in $cmds; do
15300 + IFS="$save_ifs"
15301 + $show "$cmd"
15302 + $run eval "$cmd" || exit $?
15303 + done
15304 + IFS="$save_ifs"
15305 + fi
15306 + # make sure the library variables are pointing to the new library
15307 + dir=$output_objdir
15308 + linklib=$newlib
15309 + fi # test -n $old_archive_from_expsyms_cmds
15310 +
15311 + if test $linkmode = prog || test "$mode" != relink; then
15312 + add_shlibpath=
15313 + add_dir=
15314 + add=
15315 + lib_linked=yes
15316 + case $hardcode_action in
15317 + immediate | unsupported)
15318 + if test "$hardcode_direct" = no; then
15319 + add="$dir/$linklib"
15320 + elif test "$hardcode_minus_L" = no; then
15321 + case $host in
15322 + *-*-sunos*) add_shlibpath="$dir" ;;
15323 + esac
15324 + add_dir="-L$dir"
15325 + add="-l$name"
15326 + elif test "$hardcode_shlibpath_var" = no; then
15327 + add_shlibpath="$dir"
15328 + add="-l$name"
15329 + else
15330 + lib_linked=no
15331 + fi
15332 + ;;
15333 + relink)
15334 + if test "$hardcode_direct" = yes; then
15335 + add="$dir/$linklib"
15336 + elif test "$hardcode_minus_L" = yes; then
15337 + add_dir="-L$dir"
15338 + # Try looking first in the location we're being installed to.
15339 + if test -n "$inst_prefix_dir"; then
15340 + case "$libdir" in
15341 + [\/]*)
15342 + add_dir="-L$inst_prefix_dir$libdir $add_dir"
15343 + ;;
15344 + esac
15345 + fi
15346 + add="-l$name"
15347 + elif test "$hardcode_shlibpath_var" = yes; then
15348 + add_shlibpath="$dir"
15349 + add="-l$name"
15350 + else
15351 + lib_linked=no
15352 + fi
15353 + ;;
15354 + *) lib_linked=no ;;
15355 + esac
15356
15357 - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
15358 - eval arg=\"$export_dynamic_flag_spec\"
15359 - compile_command="$compile_command $arg"
15360 - finalize_command="$finalize_command $arg"
15361 - fi
15362 + if test "$lib_linked" != yes; then
15363 + $echo "$modename: configuration error: unsupported hardcode properties"
15364 + exit 1
15365 + fi
15366
15367 - oldlibs=
15368 - # calculate the name of the file, without its directory
15369 - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
15370 - libobjs_save="$libobjs"
15371 + if test -n "$add_shlibpath"; then
15372 + case :$compile_shlibpath: in
15373 + *":$add_shlibpath:"*) ;;
15374 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
15375 + esac
15376 + fi
15377 + if test $linkmode = prog; then
15378 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
15379 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
15380 + else
15381 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
15382 + test -n "$add" && deplibs="$add $deplibs"
15383 + if test "$hardcode_direct" != yes && \
15384 + test "$hardcode_minus_L" != yes && \
15385 + test "$hardcode_shlibpath_var" = yes; then
15386 + case :$finalize_shlibpath: in
15387 + *":$libdir:"*) ;;
15388 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
15389 + esac
15390 + fi
15391 + fi
15392 + fi
15393
15394 - case "$output" in
15395 - "")
15396 - $echo "$modename: you must specify an output file" 1>&2
15397 - $echo "$help" 1>&2
15398 - exit 1
15399 - ;;
15400 + if test $linkmode = prog || test "$mode" = relink; then
15401 + add_shlibpath=
15402 + add_dir=
15403 + add=
15404 + # Finalize command for both is simple: just hardcode it.
15405 + if test "$hardcode_direct" = yes; then
15406 + add="$libdir/$linklib"
15407 + elif test "$hardcode_minus_L" = yes; then
15408 + add_dir="-L$libdir"
15409 + add="-l$name"
15410 + elif test "$hardcode_shlibpath_var" = yes; then
15411 + case :$finalize_shlibpath: in
15412 + *":$libdir:"*) ;;
15413 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
15414 + esac
15415 + add="-l$name"
15416 + else
15417 + # We cannot seem to hardcode it, guess we'll fake it.
15418 + add_dir="-L$libdir"
15419 + # Try looking first in the location we're being installed to.
15420 + if test -n "$inst_prefix_dir"; then
15421 + case "$libdir" in
15422 + [\/]*)
15423 + add_dir="-L$inst_prefix_dir$libdir $add_dir"
15424 + ;;
15425 + esac
15426 + fi
15427 + add="-l$name"
15428 + fi
15429
15430 - *.a | *.lib)
15431 - if test -n "$link_against_libtool_libs"; then
15432 - $echo "$modename: error: cannot link libtool libraries into archives" 1>&2
15433 - exit 1
15434 + if test $linkmode = prog; then
15435 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
15436 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
15437 + else
15438 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
15439 + test -n "$add" && deplibs="$add $deplibs"
15440 + fi
15441 + fi
15442 + elif test $linkmode = prog; then
15443 + if test "$alldeplibs" = yes &&
15444 + { test "$deplibs_check_method" = pass_all ||
15445 + { test "$build_libtool_libs" = yes &&
15446 + test -n "$library_names"; }; }; then
15447 + # We only need to search for static libraries
15448 + continue
15449 + fi
15450 +
15451 + # Try to link the static library
15452 + # Here we assume that one of hardcode_direct or hardcode_minus_L
15453 + # is not unsupported. This is valid on all known static and
15454 + # shared platforms.
15455 + if test "$hardcode_direct" != unsupported; then
15456 + test -n "$old_library" && linklib="$old_library"
15457 + compile_deplibs="$dir/$linklib $compile_deplibs"
15458 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
15459 + else
15460 + compile_deplibs="-l$name -L$dir $compile_deplibs"
15461 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
15462 + fi
15463 + elif test "$build_libtool_libs" = yes; then
15464 + # Not a shared library
15465 + if test "$deplibs_check_method" != pass_all; then
15466 + # We're trying link a shared library against a static one
15467 + # but the system doesn't support it.
15468 +
15469 + # Just print a warning and add the library to dependency_libs so
15470 + # that the program can be linked against the static library.
15471 + echo
15472 + echo "*** Warning: This system can not link to static lib archive $lib."
15473 + echo "*** I have the capability to make that library automatically link in when"
15474 + echo "*** you link to this library. But I can only do this if you have a"
15475 + echo "*** shared version of the library, which you do not appear to have."
15476 + if test "$module" = yes; then
15477 + echo "*** But as you try to build a module library, libtool will still create "
15478 + echo "*** a static module, that should work as long as the dlopening application"
15479 + echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
15480 + if test -z "$global_symbol_pipe"; then
15481 + echo
15482 + echo "*** However, this would only work if libtool was able to extract symbol"
15483 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
15484 + echo "*** not find such a program. So, this module is probably useless."
15485 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
15486 + fi
15487 + if test "$build_old_libs" = no; then
15488 + build_libtool_libs=module
15489 + build_old_libs=yes
15490 + else
15491 + build_libtool_libs=no
15492 + fi
15493 + fi
15494 + else
15495 + convenience="$convenience $dir/$old_library"
15496 + old_convenience="$old_convenience $dir/$old_library"
15497 + deplibs="$dir/$old_library $deplibs"
15498 + link_static=yes
15499 + fi
15500 + fi # link shared/static library?
15501 +
15502 + if test $linkmode = lib; then
15503 + if test -n "$dependency_libs" &&
15504 + { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
15505 + test $link_static = yes; }; then
15506 + # Extract -R from dependency_libs
15507 + temp_deplibs=
15508 + for libdir in $dependency_libs; do
15509 + case $libdir in
15510 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
15511 + case " $xrpath " in
15512 + *" $temp_xrpath "*) ;;
15513 + *) xrpath="$xrpath $temp_xrpath";;
15514 + esac;;
15515 + *) temp_deplibs="$temp_deplibs $libdir";;
15516 + esac
15517 + done
15518 + dependency_libs="$temp_deplibs"
15519 + fi
15520 +
15521 + newlib_search_path="$newlib_search_path $absdir"
15522 + # Link against this library
15523 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
15524 + # ... and its dependency_libs
15525 + tmp_libs=
15526 + for deplib in $dependency_libs; do
15527 + newdependency_libs="$deplib $newdependency_libs"
15528 + if test "X$duplicate_deps" = "Xyes" ; then
15529 + case "$tmp_libs " in
15530 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
15531 + esac
15532 + fi
15533 + tmp_libs="$tmp_libs $deplib"
15534 + done
15535 +
15536 + if test $link_all_deplibs != no; then
15537 + # Add the search paths of all dependency libraries
15538 + for deplib in $dependency_libs; do
15539 + case $deplib in
15540 + -L*) path="$deplib" ;;
15541 + *.la)
15542 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
15543 + test "X$dir" = "X$deplib" && dir="."
15544 + # We need an absolute path.
15545 + case $dir in
15546 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
15547 + *)
15548 + absdir=`cd "$dir" && pwd`
15549 + if test -z "$absdir"; then
15550 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
15551 + absdir="$dir"
15552 + fi
15553 + ;;
15554 + esac
15555 + if grep "^installed=no" $deplib > /dev/null; then
15556 + path="-L$absdir/$objdir"
15557 + else
15558 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
15559 + if test -z "$libdir"; then
15560 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
15561 + exit 1
15562 + fi
15563 + if test "$absdir" != "$libdir"; then
15564 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
15565 + fi
15566 + path="-L$absdir"
15567 + fi
15568 + ;;
15569 + *) continue ;;
15570 + esac
15571 + case " $deplibs " in
15572 + *" $path "*) ;;
15573 + *) deplibs="$deplibs $path" ;;
15574 + esac
15575 + done
15576 + fi # link_all_deplibs != no
15577 + fi # linkmode = lib
15578 + done # for deplib in $libs
15579 + if test $pass = dlpreopen; then
15580 + # Link the dlpreopened libraries before other libraries
15581 + for deplib in $save_deplibs; do
15582 + deplibs="$deplib $deplibs"
15583 + done
15584 fi
15585 + if test $pass != dlopen; then
15586 + test $pass != scan && dependency_libs="$newdependency_libs"
15587 + if test $pass != conv; then
15588 + # Make sure lib_search_path contains only unique directories.
15589 + lib_search_path=
15590 + for dir in $newlib_search_path; do
15591 + case "$lib_search_path " in
15592 + *" $dir "*) ;;
15593 + *) lib_search_path="$lib_search_path $dir" ;;
15594 + esac
15595 + done
15596 + newlib_search_path=
15597 + fi
15598
15599 - if test -n "$deplibs"; then
15600 - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
15601 + if test "$linkmode,$pass" != "prog,link"; then
15602 + vars="deplibs"
15603 + else
15604 + vars="compile_deplibs finalize_deplibs"
15605 + fi
15606 + for var in $vars dependency_libs; do
15607 + # Add libraries to $var in reverse order
15608 + eval tmp_libs=\"\$$var\"
15609 + new_libs=
15610 + for deplib in $tmp_libs; do
15611 + case $deplib in
15612 + -L*) new_libs="$deplib $new_libs" ;;
15613 + *)
15614 + case " $specialdeplibs " in
15615 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
15616 + *)
15617 + case " $new_libs " in
15618 + *" $deplib "*) ;;
15619 + *) new_libs="$deplib $new_libs" ;;
15620 + esac
15621 + ;;
15622 + esac
15623 + ;;
15624 + esac
15625 + done
15626 + tmp_libs=
15627 + for deplib in $new_libs; do
15628 + case $deplib in
15629 + -L*)
15630 + case " $tmp_libs " in
15631 + *" $deplib "*) ;;
15632 + *) tmp_libs="$tmp_libs $deplib" ;;
15633 + esac
15634 + ;;
15635 + *) tmp_libs="$tmp_libs $deplib" ;;
15636 + esac
15637 + done
15638 + eval $var=\"$tmp_libs\"
15639 + done # for var
15640 fi
15641 + if test "$pass" = "conv" &&
15642 + { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
15643 + libs="$deplibs" # reset libs
15644 + deplibs=
15645 + fi
15646 + done # for pass
15647 + if test $linkmode = prog; then
15648 + dlfiles="$newdlfiles"
15649 + dlprefiles="$newdlprefiles"
15650 + fi
15651
15652 + case $linkmode in
15653 + oldlib)
15654 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
15655 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
15656 fi
15657 @@ -1566,11 +2179,12 @@
15658 # Now set the variables for building old libraries.
15659 build_libtool_libs=no
15660 oldlibs="$output"
15661 + objs="$objs$old_deplibs"
15662 ;;
15663
15664 - *.la)
15665 + lib)
15666 # Make sure we only generate libraries of the form `libNAME.la'.
15667 - case "$outputname" in
15668 + case $outputname in
15669 lib*)
15670 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
15671 eval libname=\"$libname_spec\"
15672 @@ -1591,26 +2205,20 @@
15673 ;;
15674 esac
15675
15676 - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
15677 - if test "X$output_objdir" = "X$output"; then
15678 - output_objdir="$objdir"
15679 - else
15680 - output_objdir="$output_objdir/$objdir"
15681 - fi
15682 -
15683 if test -n "$objs"; then
15684 - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
15685 - exit 1
15686 - fi
15687 -
15688 - # How the heck are we supposed to write a wrapper for a shared library?
15689 - if test -n "$link_against_libtool_libs"; then
15690 - $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
15691 - exit 1
15692 + if test "$deplibs_check_method" != pass_all; then
15693 + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
15694 + exit 1
15695 + else
15696 + echo
15697 + echo "*** Warning: Linking the shared library $output against the non-libtool"
15698 + echo "*** objects $objs is not portable!"
15699 + libobjs="$libobjs $objs"
15700 + fi
15701 fi
15702
15703 - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
15704 - $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
15705 + if test "$dlself" != no; then
15706 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
15707 fi
15708
15709 set dummy $rpath
15710 @@ -1628,7 +2236,6 @@
15711 build_libtool_libs=convenience
15712 build_old_libs=yes
15713 fi
15714 - dependency_libs="$deplibs"
15715
15716 if test -n "$vinfo"; then
15717 $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
15718 @@ -1640,7 +2247,7 @@
15719 else
15720
15721 # Parse the version information argument.
15722 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
15723 + save_ifs="$IFS"; IFS=':'
15724 set dummy $vinfo 0 0 0
15725 IFS="$save_ifs"
15726
15727 @@ -1655,8 +2262,8 @@
15728 age="$4"
15729
15730 # Check that each of the things are valid numbers.
15731 - case "$current" in
15732 - 0 | [1-9] | [1-9][0-9]*) ;;
15733 + case $current in
15734 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
15735 *)
15736 $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
15737 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
15738 @@ -1664,8 +2271,8 @@
15739 ;;
15740 esac
15741
15742 - case "$revision" in
15743 - 0 | [1-9] | [1-9][0-9]*) ;;
15744 + case $revision in
15745 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
15746 *)
15747 $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
15748 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
15749 @@ -1673,8 +2280,8 @@
15750 ;;
15751 esac
15752
15753 - case "$age" in
15754 - 0 | [1-9] | [1-9][0-9]*) ;;
15755 + case $age in
15756 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
15757 *)
15758 $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
15759 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
15760 @@ -1692,21 +2299,49 @@
15761 major=
15762 versuffix=
15763 verstring=
15764 - case "$version_type" in
15765 + case $version_type in
15766 none) ;;
15767
15768 - irix)
15769 + darwin)
15770 + # Like Linux, but with the current version available in
15771 + # verstring for coding it into the library header
15772 + major=.`expr $current - $age`
15773 + versuffix="$major.$age.$revision"
15774 + # Darwin ld doesn't like 0 for these options...
15775 + minor_current=`expr $current + 1`
15776 + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
15777 + ;;
15778 +
15779 + freebsd-aout)
15780 + major=".$current"
15781 + versuffix=".$current.$revision";
15782 + ;;
15783 +
15784 + freebsd-elf)
15785 + major=".$current"
15786 + versuffix=".$current";
15787 + ;;
15788 +
15789 + irix | nonstopux)
15790 major=`expr $current - $age + 1`
15791 - versuffix="$major.$revision"
15792 - verstring="sgi$major.$revision"
15793 +
15794 + case $version_type in
15795 + nonstopux) verstring_prefix=nonstopux ;;
15796 + *) verstring_prefix=sgi ;;
15797 + esac
15798 + verstring="$verstring_prefix$major.$revision"
15799
15800 # Add in all the interfaces that we are compatible with.
15801 loop=$revision
15802 while test $loop != 0; do
15803 iface=`expr $revision - $loop`
15804 loop=`expr $loop - 1`
15805 - verstring="sgi$major.$iface:$verstring"
15806 + verstring="$verstring_prefix$major.$iface:$verstring"
15807 done
15808 +
15809 + # Before this point, $major must not contain `.'.
15810 + major=.$major
15811 + versuffix="$major.$revision"
15812 ;;
15813
15814 linux)
15815 @@ -1715,7 +2350,7 @@
15816 ;;
15817
15818 osf)
15819 - major=`expr $current - $age`
15820 + major=.`expr $current - $age`
15821 versuffix=".$current.$age.$revision"
15822 verstring="$current.$age.$revision"
15823
15824 @@ -1736,21 +2371,11 @@
15825 versuffix=".$current.$revision"
15826 ;;
15827
15828 - freebsd-aout)
15829 - major=".$current"
15830 - versuffix=".$current.$revision";
15831 - ;;
15832 -
15833 - freebsd-elf)
15834 - major=".$current"
15835 - versuffix=".$current";
15836 - ;;
15837 -
15838 windows)
15839 - # Like Linux, but with '-' rather than '.', since we only
15840 - # want one extension on Windows 95.
15841 + # Use '-' rather than '.', since we only want one
15842 + # extension on DOS 8.3 filesystems.
15843 major=`expr $current - $age`
15844 - versuffix="-$major-$age-$revision"
15845 + versuffix="-$major"
15846 ;;
15847
15848 *)
15849 @@ -1764,6 +2389,16 @@
15850 if test -z "$vinfo" && test -n "$release"; then
15851 major=
15852 verstring="0.0"
15853 + case $version_type in
15854 + darwin)
15855 + # we can't check for "0.0" in archive_cmds due to quoting
15856 + # problems, so we reset it completely
15857 + verstring=""
15858 + ;;
15859 + *)
15860 + verstring="0.0"
15861 + ;;
15862 + esac
15863 if test "$need_version" = no; then
15864 versuffix=
15865 else
15866 @@ -1777,7 +2412,7 @@
15867 versuffix=
15868 verstring=""
15869 fi
15870 -
15871 +
15872 # Check to see if the archive will have undefined symbols.
15873 if test "$allow_undefined" = yes; then
15874 if test "$allow_undefined_flag" = unsupported; then
15875 @@ -1785,34 +2420,16 @@
15876 build_libtool_libs=no
15877 build_old_libs=yes
15878 fi
15879 - else
15880 - # Don't allow undefined symbols.
15881 - allow_undefined_flag="$no_undefined_flag"
15882 - fi
15883 -
15884 - dependency_libs="$deplibs"
15885 - case "$host" in
15886 - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
15887 - # these systems don't actually have a c library (as such)!
15888 - ;;
15889 - *)
15890 - # Add libc to deplibs on all other systems.
15891 - deplibs="$deplibs -lc"
15892 - ;;
15893 - esac
15894 + else
15895 + # Don't allow undefined symbols.
15896 + allow_undefined_flag="$no_undefined_flag"
15897 + fi
15898 fi
15899
15900 - # Create the output directory, or remove our outputs if we need to.
15901 - if test -d $output_objdir; then
15902 + if test "$mode" != relink; then
15903 + # Remove our outputs.
15904 $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
15905 $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
15906 - else
15907 - $show "$mkdir $output_objdir"
15908 - $run $mkdir $output_objdir
15909 - status=$?
15910 - if test $status -ne 0 && test ! -d $output_objdir; then
15911 - exit $status
15912 - fi
15913 fi
15914
15915 # Now set the variables for building old libraries.
15916 @@ -1823,7 +2440,73 @@
15917 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
15918 fi
15919
15920 + # Eliminate all temporary directories.
15921 + for path in $notinst_path; do
15922 + lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
15923 + deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
15924 + dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
15925 + done
15926 +
15927 + if test -n "$xrpath"; then
15928 + # If the user specified any rpath flags, then add them.
15929 + temp_xrpath=
15930 + for libdir in $xrpath; do
15931 + temp_xrpath="$temp_xrpath -R$libdir"
15932 + case "$finalize_rpath " in
15933 + *" $libdir "*) ;;
15934 + *) finalize_rpath="$finalize_rpath $libdir" ;;
15935 + esac
15936 + done
15937 + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
15938 + dependency_libs="$temp_xrpath $dependency_libs"
15939 + fi
15940 + fi
15941 +
15942 + # Make sure dlfiles contains only unique files that won't be dlpreopened
15943 + old_dlfiles="$dlfiles"
15944 + dlfiles=
15945 + for lib in $old_dlfiles; do
15946 + case " $dlprefiles $dlfiles " in
15947 + *" $lib "*) ;;
15948 + *) dlfiles="$dlfiles $lib" ;;
15949 + esac
15950 + done
15951 +
15952 + # Make sure dlprefiles contains only unique files
15953 + old_dlprefiles="$dlprefiles"
15954 + dlprefiles=
15955 + for lib in $old_dlprefiles; do
15956 + case "$dlprefiles " in
15957 + *" $lib "*) ;;
15958 + *) dlprefiles="$dlprefiles $lib" ;;
15959 + esac
15960 + done
15961 +
15962 if test "$build_libtool_libs" = yes; then
15963 + if test -n "$rpath"; then
15964 + case $host in
15965 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
15966 + # these systems don't actually have a c library (as such)!
15967 + ;;
15968 + *-*-rhapsody* | *-*-darwin1.[012])
15969 + # Rhapsody C library is in the System framework
15970 + deplibs="$deplibs -framework System"
15971 + ;;
15972 + *-*-netbsd*)
15973 + # Don't link with libc until the a.out ld.so is fixed.
15974 + ;;
15975 + *-*-openbsd* | *-*-freebsd*)
15976 + # Do not include libc due to us having libc/libc_r.
15977 + ;;
15978 + *)
15979 + # Add libc to deplibs on all other systems if necessary.
15980 + if test $build_libtool_need_lc = "yes"; then
15981 + deplibs="$deplibs -lc"
15982 + fi
15983 + ;;
15984 + esac
15985 + fi
15986 +
15987 # Transform deplibs into only deplibs that can be linked in shared.
15988 name_save=$name
15989 libname_save=$libname
15990 @@ -1838,7 +2521,7 @@
15991 major=""
15992 newdeplibs=
15993 droppeddeps=no
15994 - case "$deplibs_check_method" in
15995 + case $deplibs_check_method in
15996 pass_all)
15997 # Don't check for shared/static. Everything works.
15998 # This might be a little naive. We might want to check
15999 @@ -1863,7 +2546,7 @@
16000 for i in $deplibs; do
16001 name="`expr $i : '-l\(.*\)'`"
16002 # If $name is empty we are operating on a -L argument.
16003 - if test "$name" != "" ; then
16004 + if test -n "$name" && test "$name" != "0"; then
16005 libname=`eval \\$echo \"$libname_spec\"`
16006 deplib_matches=`eval \\$echo \"$library_names_spec\"`
16007 set dummy $deplib_matches
16008 @@ -1873,22 +2556,24 @@
16009 else
16010 droppeddeps=yes
16011 echo
16012 - echo "*** Warning: This library needs some functionality provided by $i."
16013 + echo "*** Warning: dynamic linker does not accept needed library $i."
16014 echo "*** I have the capability to make that library automatically link in when"
16015 echo "*** you link to this library. But I can only do this if you have a"
16016 - echo "*** shared version of the library, which you do not appear to have."
16017 + echo "*** shared version of the library, which I believe you do not have"
16018 + echo "*** because a test_compile did reveal that the linker did not use it for"
16019 + echo "*** its dynamic dependency list that programs get resolved with at runtime."
16020 fi
16021 else
16022 newdeplibs="$newdeplibs $i"
16023 fi
16024 done
16025 else
16026 - # Error occured in the first compile. Let's try to salvage the situation:
16027 - # Compile a seperate program for each library.
16028 + # Error occured in the first compile. Let's try to salvage
16029 + # the situation: Compile a separate program for each library.
16030 for i in $deplibs; do
16031 name="`expr $i : '-l\(.*\)'`"
16032 # If $name is empty we are operating on a -L argument.
16033 - if test "$name" != "" ; then
16034 + if test -n "$name" && test "$name" != "0"; then
16035 $rm conftest
16036 $CC -o conftest conftest.c $i
16037 # Did it work?
16038 @@ -1903,10 +2588,12 @@
16039 else
16040 droppeddeps=yes
16041 echo
16042 - echo "*** Warning: This library needs some functionality provided by $i."
16043 + echo "*** Warning: dynamic linker does not accept needed library $i."
16044 echo "*** I have the capability to make that library automatically link in when"
16045 echo "*** you link to this library. But I can only do this if you have a"
16046 - echo "*** shared version of the library, which you do not appear to have."
16047 + echo "*** shared version of the library, which you do not appear to have"
16048 + echo "*** because a test_compile did reveal that the linker did not use this one"
16049 + echo "*** as a dynamic dependency that programs can get resolved with at runtime."
16050 fi
16051 else
16052 droppeddeps=yes
16053 @@ -1924,19 +2611,19 @@
16054 ;;
16055 file_magic*)
16056 set dummy $deplibs_check_method
16057 - file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
16058 + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
16059 for a_deplib in $deplibs; do
16060 name="`expr $a_deplib : '-l\(.*\)'`"
16061 # If $name is empty we are operating on a -L argument.
16062 - if test "$name" != "" ; then
16063 + if test -n "$name" && test "$name" != "0"; then
16064 libname=`eval \\$echo \"$libname_spec\"`
16065 - for i in $lib_search_path; do
16066 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
16067 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
16068 for potent_lib in $potential_libs; do
16069 # Follow soft links.
16070 if ls -lLd "$potent_lib" 2>/dev/null \
16071 | grep " -> " >/dev/null; then
16072 - continue
16073 + continue
16074 fi
16075 # The statement above tries to avoid entering an
16076 # endless loop below, in case of cyclic links.
16077 @@ -1945,14 +2632,14 @@
16078 # but so what?
16079 potlib="$potent_lib"
16080 while test -h "$potlib" 2>/dev/null; do
16081 - potliblink=`ls -ld $potlib | sed 's/.* -> //'`
16082 - case "$potliblink" in
16083 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
16084 + case $potliblink in
16085 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
16086 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
16087 esac
16088 done
16089 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
16090 - | sed 10q \
16091 + | ${SED} 10q \
16092 | egrep "$file_magic_regex" > /dev/null; then
16093 newdeplibs="$newdeplibs $a_deplib"
16094 a_deplib=""
16095 @@ -1963,10 +2650,59 @@
16096 if test -n "$a_deplib" ; then
16097 droppeddeps=yes
16098 echo
16099 - echo "*** Warning: This library needs some functionality provided by $a_deplib."
16100 + echo "*** Warning: linker path does not have real file for library $a_deplib."
16101 + echo "*** I have the capability to make that library automatically link in when"
16102 + echo "*** you link to this library. But I can only do this if you have a"
16103 + echo "*** shared version of the library, which you do not appear to have"
16104 + echo "*** because I did check the linker path looking for a file starting"
16105 + if test -z "$potlib" ; then
16106 + echo "*** with $libname but no candidates were found. (...for file magic test)"
16107 + else
16108 + echo "*** with $libname and none of the candidates passed a file format test"
16109 + echo "*** using a file magic. Last file checked: $potlib"
16110 + fi
16111 + fi
16112 + else
16113 + # Add a -L argument.
16114 + newdeplibs="$newdeplibs $a_deplib"
16115 + fi
16116 + done # Gone through all deplibs.
16117 + ;;
16118 + match_pattern*)
16119 + set dummy $deplibs_check_method
16120 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
16121 + for a_deplib in $deplibs; do
16122 + name="`expr $a_deplib : '-l\(.*\)'`"
16123 + # If $name is empty we are operating on a -L argument.
16124 + if test -n "$name" && test "$name" != "0"; then
16125 + libname=`eval \\$echo \"$libname_spec\"`
16126 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
16127 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
16128 + for potent_lib in $potential_libs; do
16129 + potlib="$potent_lib" # see symlink-check below in file_magic test
16130 + if eval echo \"$potent_lib\" 2>/dev/null \
16131 + | ${SED} 10q \
16132 + | egrep "$match_pattern_regex" > /dev/null; then
16133 + newdeplibs="$newdeplibs $a_deplib"
16134 + a_deplib=""
16135 + break 2
16136 + fi
16137 + done
16138 + done
16139 + if test -n "$a_deplib" ; then
16140 + droppeddeps=yes
16141 + echo
16142 + echo "*** Warning: linker path does not have real file for library $a_deplib."
16143 echo "*** I have the capability to make that library automatically link in when"
16144 echo "*** you link to this library. But I can only do this if you have a"
16145 - echo "*** shared version of the library, which you do not appear to have."
16146 + echo "*** shared version of the library, which you do not appear to have"
16147 + echo "*** because I did check the linker path looking for a file starting"
16148 + if test -z "$potlib" ; then
16149 + echo "*** with $libname but no candidates were found. (...for regex pattern test)"
16150 + else
16151 + echo "*** with $libname and none of the candidates passed a file format test"
16152 + echo "*** using a regex pattern. Last file checked: $potlib"
16153 + fi
16154 fi
16155 else
16156 # Add a -L argument.
16157 @@ -1996,6 +2732,13 @@
16158 libname=$libname_save
16159 name=$name_save
16160
16161 + case $host in
16162 + *-*-rhapsody* | *-*-darwin1.[012])
16163 + # On Rhapsody replace the C library is the System framework
16164 + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
16165 + ;;
16166 + esac
16167 +
16168 if test "$droppeddeps" = yes; then
16169 if test "$module" = yes; then
16170 echo
16171 @@ -2021,6 +2764,21 @@
16172 echo "*** The inter-library dependencies that have been dropped here will be"
16173 echo "*** automatically added whenever a program is linked with this library"
16174 echo "*** or is declared to -dlopen it."
16175 +
16176 + if test $allow_undefined = no; then
16177 + echo
16178 + echo "*** Since this library must not contain undefined symbols,"
16179 + echo "*** because either the platform does not support them or"
16180 + echo "*** it was explicitly requested with -no-undefined,"
16181 + echo "*** libtool will only create a static version of it."
16182 + if test "$build_old_libs" = no; then
16183 + oldlibs="$output_objdir/$libname.$libext"
16184 + build_libtool_libs=module
16185 + build_old_libs=yes
16186 + else
16187 + build_libtool_libs=no
16188 + fi
16189 + fi
16190 fi
16191 fi
16192 # Done checking deplibs!
16193 @@ -2031,9 +2789,64 @@
16194 library_names=
16195 old_library=
16196 dlname=
16197 -
16198 +
16199 # Test again, we may have decided not to build it any more
16200 if test "$build_libtool_libs" = yes; then
16201 + if test $hardcode_into_libs = yes; then
16202 + # Hardcode the library paths
16203 + hardcode_libdirs=
16204 + dep_rpath=
16205 + rpath="$finalize_rpath"
16206 + test "$mode" != relink && rpath="$compile_rpath$rpath"
16207 + for libdir in $rpath; do
16208 + if test -n "$hardcode_libdir_flag_spec"; then
16209 + if test -n "$hardcode_libdir_separator"; then
16210 + if test -z "$hardcode_libdirs"; then
16211 + hardcode_libdirs="$libdir"
16212 + else
16213 + # Just accumulate the unique libdirs.
16214 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
16215 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
16216 + ;;
16217 + *)
16218 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
16219 + ;;
16220 + esac
16221 + fi
16222 + else
16223 + eval flag=\"$hardcode_libdir_flag_spec\"
16224 + dep_rpath="$dep_rpath $flag"
16225 + fi
16226 + elif test -n "$runpath_var"; then
16227 + case "$perm_rpath " in
16228 + *" $libdir "*) ;;
16229 + *) perm_rpath="$perm_rpath $libdir" ;;
16230 + esac
16231 + fi
16232 + done
16233 + # Substitute the hardcoded libdirs into the rpath.
16234 + if test -n "$hardcode_libdir_separator" &&
16235 + test -n "$hardcode_libdirs"; then
16236 + libdir="$hardcode_libdirs"
16237 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
16238 + fi
16239 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
16240 + # We should set the runpath_var.
16241 + rpath=
16242 + for dir in $perm_rpath; do
16243 + rpath="$rpath$dir:"
16244 + done
16245 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
16246 + fi
16247 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
16248 + fi
16249 +
16250 + shlibpath="$finalize_shlibpath"
16251 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
16252 + if test -n "$shlibpath"; then
16253 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
16254 + fi
16255 +
16256 # Get the real and link names of the library.
16257 eval library_names=\"$library_names_spec\"
16258 set dummy $library_names
16259 @@ -2045,6 +2858,7 @@
16260 else
16261 soname="$realname"
16262 fi
16263 + test -z "$dlname" && dlname=$soname
16264
16265 lib="$output_objdir/$realname"
16266 for link
16267 @@ -2079,7 +2893,7 @@
16268 export_symbols="$output_objdir/$libname.exp"
16269 $run $rm $export_symbols
16270 eval cmds=\"$export_symbols_cmds\"
16271 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
16272 + save_ifs="$IFS"; IFS='~'
16273 for cmd in $cmds; do
16274 IFS="$save_ifs"
16275 $show "$cmd"
16276 @@ -2116,7 +2930,7 @@
16277
16278 for xlib in $convenience; do
16279 # Extract the objects.
16280 - case "$xlib" in
16281 + case $xlib in
16282 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
16283 *) xabs=`pwd`"/$xlib" ;;
16284 esac
16285 @@ -2141,16 +2955,32 @@
16286
16287 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
16288 eval flag=\"$thread_safe_flag_spec\"
16289 - linkopts="$linkopts $flag"
16290 + linker_flags="$linker_flags $flag"
16291 + fi
16292 +
16293 + # Make a backup of the uninstalled library when relinking
16294 + if test "$mode" = relink; then
16295 + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
16296 fi
16297
16298 # Do each of the archive commands.
16299 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
16300 eval cmds=\"$archive_expsym_cmds\"
16301 else
16302 + save_deplibs="$deplibs"
16303 + for conv in $convenience; do
16304 + tmp_deplibs=
16305 + for test_deplib in $deplibs; do
16306 + if test "$test_deplib" != "$conv"; then
16307 + tmp_deplibs="$tmp_deplibs $test_deplib"
16308 + fi
16309 + done
16310 + deplibs="$tmp_deplibs"
16311 + done
16312 eval cmds=\"$archive_cmds\"
16313 + deplibs="$save_deplibs"
16314 fi
16315 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
16316 + save_ifs="$IFS"; IFS='~'
16317 for cmd in $cmds; do
16318 IFS="$save_ifs"
16319 $show "$cmd"
16320 @@ -2158,6 +2988,12 @@
16321 done
16322 IFS="$save_ifs"
16323
16324 + # Restore the uninstalled library and exit
16325 + if test "$mode" = relink; then
16326 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
16327 + exit 0
16328 + fi
16329 +
16330 # Create links to the real library.
16331 for linkname in $linknames; do
16332 if test "$realname" != "$linkname"; then
16333 @@ -2174,12 +3010,7 @@
16334 fi
16335 ;;
16336
16337 - *.lo | *.o | *.obj)
16338 - if test -n "$link_against_libtool_libs"; then
16339 - $echo "$modename: error: cannot link libtool libraries into objects" 1>&2
16340 - exit 1
16341 - fi
16342 -
16343 + obj)
16344 if test -n "$deplibs"; then
16345 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
16346 fi
16347 @@ -2204,9 +3035,9 @@
16348 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
16349 fi
16350
16351 - case "$output" in
16352 + case $output in
16353 *.lo)
16354 - if test -n "$objs"; then
16355 + if test -n "$objs$old_deplibs"; then
16356 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
16357 exit 1
16358 fi
16359 @@ -2230,7 +3061,7 @@
16360 gentop=
16361 # reload_cmds runs $LD directly, so let us get rid of
16362 # -Wl from whole_archive_flag_spec
16363 - wl=
16364 + wl=
16365
16366 if test -n "$convenience"; then
16367 if test -n "$whole_archive_flag_spec"; then
16368 @@ -2249,7 +3080,7 @@
16369
16370 for xlib in $convenience; do
16371 # Extract the objects.
16372 - case "$xlib" in
16373 + case $xlib in
16374 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
16375 *) xabs=`pwd`"/$xlib" ;;
16376 esac
16377 @@ -2273,11 +3104,11 @@
16378 fi
16379
16380 # Create the old-style object.
16381 - reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs"
16382 + 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
16383
16384 output="$obj"
16385 eval cmds=\"$reload_cmds\"
16386 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
16387 + save_ifs="$IFS"; IFS='~'
16388 for cmd in $cmds; do
16389 IFS="$save_ifs"
16390 $show "$cmd"
16391 @@ -2308,12 +3139,12 @@
16392 exit 0
16393 fi
16394
16395 - if test -n "$pic_flag"; then
16396 + if test -n "$pic_flag" || test "$pic_mode" != default; then
16397 # Only do commands if we really have different PIC objects.
16398 reload_objs="$libobjs $reload_conv_objs"
16399 output="$libobj"
16400 eval cmds=\"$reload_cmds\"
16401 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
16402 + save_ifs="$IFS"; IFS='~'
16403 for cmd in $cmds; do
16404 IFS="$save_ifs"
16405 $show "$cmd"
16406 @@ -2344,8 +3175,10 @@
16407 exit 0
16408 ;;
16409
16410 - # Anything else should be a program.
16411 - *)
16412 + prog)
16413 + case $host in
16414 + *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
16415 + esac
16416 if test -n "$vinfo"; then
16417 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
16418 fi
16419 @@ -2355,20 +3188,34 @@
16420 fi
16421
16422 if test "$preload" = yes; then
16423 - if test "$dlopen" = unknown && test "$dlopen_self" = unknown &&
16424 + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
16425 test "$dlopen_self_static" = unknown; then
16426 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
16427 - fi
16428 + fi
16429 fi
16430 -
16431 +
16432 + case $host in
16433 + *-*-rhapsody* | *-*-darwin1.[012])
16434 + # On Rhapsody replace the C library is the System framework
16435 + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
16436 + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
16437 + case $host in
16438 + *darwin*)
16439 + # Don't allow lazy linking, it breaks C++ global constructors
16440 + compile_command="$compile_command ${wl}-bind_at_load"
16441 + finalize_command="$finalize_command ${wl}-bind_at_load"
16442 + ;;
16443 + esac
16444 + ;;
16445 + esac
16446 +
16447 + compile_command="$compile_command $compile_deplibs"
16448 + finalize_command="$finalize_command $finalize_deplibs"
16449 +
16450 if test -n "$rpath$xrpath"; then
16451 # If the user specified any rpath flags, then add them.
16452 for libdir in $rpath $xrpath; do
16453 # This is the magic to use -rpath.
16454 - case "$compile_rpath " in
16455 - *" $libdir "*) ;;
16456 - *) compile_rpath="$compile_rpath $libdir" ;;
16457 - esac
16458 case "$finalize_rpath " in
16459 *" $libdir "*) ;;
16460 *) finalize_rpath="$finalize_rpath $libdir" ;;
16461 @@ -2386,7 +3233,7 @@
16462 hardcode_libdirs="$libdir"
16463 else
16464 # Just accumulate the unique libdirs.
16465 - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
16466 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
16467 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
16468 ;;
16469 *)
16470 @@ -2404,6 +3251,14 @@
16471 *) perm_rpath="$perm_rpath $libdir" ;;
16472 esac
16473 fi
16474 + case $host in
16475 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
16476 + case :$dllsearchpath: in
16477 + *":$libdir:"*) ;;
16478 + *) dllsearchpath="$dllsearchpath:$libdir";;
16479 + esac
16480 + ;;
16481 + esac
16482 done
16483 # Substitute the hardcoded libdirs into the rpath.
16484 if test -n "$hardcode_libdir_separator" &&
16485 @@ -2422,7 +3277,7 @@
16486 hardcode_libdirs="$libdir"
16487 else
16488 # Just accumulate the unique libdirs.
16489 - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
16490 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
16491 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
16492 ;;
16493 *)
16494 @@ -2449,23 +3304,6 @@
16495 fi
16496 finalize_rpath="$rpath"
16497
16498 - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
16499 - if test "X$output_objdir" = "X$output"; then
16500 - output_objdir="$objdir"
16501 - else
16502 - output_objdir="$output_objdir/$objdir"
16503 - fi
16504 -
16505 - # Create the binary in the object directory, then wrap it.
16506 - if test ! -d $output_objdir; then
16507 - $show "$mkdir $output_objdir"
16508 - $run $mkdir $output_objdir
16509 - status=$?
16510 - if test $status -ne 0 && test ! -d $output_objdir; then
16511 - exit $status
16512 - fi
16513 - fi
16514 -
16515 if test -n "$libobjs" && test "$build_old_libs" = yes; then
16516 # Transform all the library objects into standard objects.
16517 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
16518 @@ -2482,7 +3320,7 @@
16519 fi
16520
16521 if test -n "$dlsyms"; then
16522 - case "$dlsyms" in
16523 + case $dlsyms in
16524 "") ;;
16525 *.c)
16526 # Discover the nlist of each of the dlfiles.
16527 @@ -2514,7 +3352,7 @@
16528 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
16529
16530 # Add our own program objects to the symbol list.
16531 - progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
16532 + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
16533 for arg in $progfiles; do
16534 $show "extracting global C symbols from \`$arg'"
16535 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
16536 @@ -2524,7 +3362,7 @@
16537 $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
16538 $run eval '$mv "$nlist"T "$nlist"'
16539 fi
16540 -
16541 +
16542 if test -n "$export_symbols_regex"; then
16543 $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
16544 $run eval '$mv "$nlist"T "$nlist"'
16545 @@ -2534,9 +3372,9 @@
16546 if test -z "$export_symbols"; then
16547 export_symbols="$output_objdir/$output.exp"
16548 $run $rm $export_symbols
16549 - $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
16550 + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
16551 else
16552 - $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
16553 + $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
16554 $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
16555 $run eval 'mv "$nlist"T "$nlist"'
16556 fi
16557 @@ -2544,7 +3382,7 @@
16558
16559 for arg in $dlprefiles; do
16560 $show "extracting global C symbols from \`$arg'"
16561 - name=`echo "$arg" | sed -e 's%^.*/%%'`
16562 + name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
16563 $run eval 'echo ": $name " >> "$nlist"'
16564 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
16565 done
16566 @@ -2559,7 +3397,13 @@
16567 fi
16568
16569 # Try sorting and uniquifying the output.
16570 - if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
16571 + if grep -v "^: " < "$nlist" |
16572 + if sort -k 3 </dev/null >/dev/null 2>&1; then
16573 + sort -k 3
16574 + else
16575 + sort +2
16576 + fi |
16577 + uniq > "$nlist"S; then
16578 :
16579 else
16580 grep -v "^: " < "$nlist" > "$nlist"S
16581 @@ -2576,27 +3420,25 @@
16582 #undef lt_preloaded_symbols
16583
16584 #if defined (__STDC__) && __STDC__
16585 -# define lt_ptr_t void *
16586 +# define lt_ptr void *
16587 #else
16588 -# define lt_ptr_t char *
16589 +# define lt_ptr char *
16590 # define const
16591 #endif
16592
16593 /* The mapping between symbol names and symbols. */
16594 const struct {
16595 const char *name;
16596 - lt_ptr_t address;
16597 + lt_ptr address;
16598 }
16599 lt_preloaded_symbols[] =
16600 {\
16601 "
16602
16603 - sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
16604 - -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
16605 - < "$nlist" >> "$output_objdir/$dlsyms"
16606 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
16607
16608 $echo >> "$output_objdir/$dlsyms" "\
16609 - {0, (lt_ptr_t) 0}
16610 + {0, (lt_ptr) 0}
16611 };
16612
16613 /* This works around a problem in FreeBSD linker */
16614 @@ -2658,7 +3500,7 @@
16615 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
16616 fi
16617
16618 - if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
16619 + if test $need_relink = no || test "$build_libtool_libs" != yes; then
16620 # Replace the output file specification.
16621 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
16622 link_command="$compile_command$compile_rpath"
16623 @@ -2667,7 +3509,7 @@
16624 $show "$link_command"
16625 $run eval "$link_command"
16626 status=$?
16627 -
16628 +
16629 # Delete the generated files.
16630 if test -n "$dlsyms"; then
16631 $show "$rm $output_objdir/${outputname}S.${objext}"
16632 @@ -2681,7 +3523,7 @@
16633 # We should set the shlibpath_var
16634 rpath=
16635 for dir in $temp_rpath; do
16636 - case "$dir" in
16637 + case $dir in
16638 [\\/]* | [A-Za-z]:[\\/]*)
16639 # Absolute path.
16640 rpath="$rpath$dir:"
16641 @@ -2723,11 +3565,24 @@
16642 fi
16643 fi
16644
16645 + if test "$no_install" = yes; then
16646 + # We don't need to create a wrapper script.
16647 + link_command="$compile_var$compile_command$compile_rpath"
16648 + # Replace the output file specification.
16649 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
16650 + # Delete the old output file.
16651 + $run $rm $output
16652 + # Link the executable and exit
16653 + $show "$link_command"
16654 + $run eval "$link_command" || exit $?
16655 + exit 0
16656 + fi
16657 +
16658 if test "$hardcode_action" = relink; then
16659 # Fast installation is not supported
16660 link_command="$compile_var$compile_command$compile_rpath"
16661 relink_command="$finalize_var$finalize_command$finalize_rpath"
16662 -
16663 +
16664 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
16665 $echo "$modename: \`$output' will be relinked during installation" 1>&2
16666 else
16667 @@ -2747,7 +3602,7 @@
16668
16669 # Replace the output file specification.
16670 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
16671 -
16672 +
16673 # Delete the old output files.
16674 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
16675
16676 @@ -2759,12 +3614,24 @@
16677
16678 # Quote the relink command for shipping.
16679 if test -n "$relink_command"; then
16680 + # Preserve any variables that may affect compiler behavior
16681 + for var in $variables_saved_for_relink; do
16682 + if eval test -z \"\${$var+set}\"; then
16683 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
16684 + elif eval var_value=\$$var; test -z "$var_value"; then
16685 + relink_command="$var=; export $var; $relink_command"
16686 + else
16687 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
16688 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
16689 + fi
16690 + done
16691 + relink_command="(cd `pwd`; $relink_command)"
16692 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
16693 fi
16694
16695 # Quote $echo for shipping.
16696 if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
16697 - case "$0" in
16698 + case $0 in
16699 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
16700 *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
16701 esac
16702 @@ -2778,7 +3645,12 @@
16703 # win32 will think the script is a binary if it has
16704 # a .exe suffix, so we strip it off here.
16705 case $output in
16706 - *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
16707 + *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
16708 + esac
16709 + # test for cygwin because mv fails w/o .exe extensions
16710 + case $host in
16711 + *cygwin*) exeext=.exe ;;
16712 + *) exeext= ;;
16713 esac
16714 $rm $output
16715 trap "$rm $output; exit 1" 1 2 15
16716 @@ -2797,7 +3669,7 @@
16717
16718 # Sed substitution that helps us do robust quoting. It backslashifies
16719 # metacharacters that are still active within double-quoted strings.
16720 -Xsed='sed -e 1s/^X//'
16721 +Xsed="${SED}"' -e 1s/^X//'
16722 sed_quote_subst='$sed_quote_subst'
16723
16724 # The HP-UX ksh and POSIX shell print the target directory to stdout
16725 @@ -2809,7 +3681,7 @@
16726 # This environment variable determines our operation mode.
16727 if test \"\$libtool_install_magic\" = \"$magic\"; then
16728 # install mode needs the following variable:
16729 - link_against_libtool_libs='$link_against_libtool_libs'
16730 + notinst_deplibs='$notinst_deplibs'
16731 else
16732 # When we are sourced in execute mode, \$file and \$echo are already set.
16733 if test \"\$libtool_execute_magic\" != \"$magic\"; then
16734 @@ -2835,20 +3707,20 @@
16735 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
16736
16737 # Follow symbolic links until we get to the real thisdir.
16738 - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
16739 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
16740 while test -n \"\$file\"; do
16741 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
16742
16743 # If there was a directory component, then change thisdir.
16744 if test \"x\$destdir\" != \"x\$file\"; then
16745 case \"\$destdir\" in
16746 - [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
16747 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
16748 *) thisdir=\"\$thisdir/\$destdir\" ;;
16749 esac
16750 fi
16751
16752 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
16753 - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
16754 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
16755 done
16756
16757 # Try to get the absolute directory name.
16758 @@ -2858,11 +3730,11 @@
16759
16760 if test "$fast_install" = yes; then
16761 echo >> $output "\
16762 - program=lt-'$outputname'
16763 + program=lt-'$outputname'$exeext
16764 progdir=\"\$thisdir/$objdir\"
16765 -
16766 +
16767 if test ! -f \"\$progdir/\$program\" || \\
16768 - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
16769 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
16770 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
16771
16772 file=\"\$\$-\$program\"
16773 @@ -2877,8 +3749,9 @@
16774
16775 # relink executable if necessary
16776 if test -n \"\$relink_command\"; then
16777 - if (cd \"\$thisdir\" && eval \$relink_command); then :
16778 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
16779 else
16780 + $echo \"\$relink_command_output\" >&2
16781 $rm \"\$progdir/\$file\"
16782 exit 1
16783 fi
16784 @@ -2907,7 +3780,7 @@
16785 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
16786
16787 # Some systems cannot cope with colon-terminated $shlibpath_var
16788 - # The second colon is a workaround for a bug in BeOS R4 sed
16789 + # The second colon is a workaround for a bug in BeOS R4 ${SED}
16790 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
16791
16792 export $shlibpath_var
16793 @@ -2927,13 +3800,21 @@
16794 # Run the actual program with our arguments.
16795 "
16796 case $host in
16797 - *-*-cygwin* | *-*-mingw | *-*-os2*)
16798 - # win32 systems need to use the prog path for dll
16799 - # lookup to work
16800 + # win32 systems need to use the prog path for dll
16801 + # lookup to work
16802 + *-*-cygwin* | *-*-pw32*)
16803 + $echo >> $output "\
16804 + exec \$progdir/\$program \${1+\"\$@\"}
16805 +"
16806 + ;;
16807 +
16808 + # Backslashes separate directories on plain windows
16809 + *-*-mingw | *-*-os2*)
16810 $echo >> $output "\
16811 exec \$progdir\\\\\$program \${1+\"\$@\"}
16812 "
16813 ;;
16814 +
16815 *)
16816 $echo >> $output "\
16817 # Export the path to the program.
16818 @@ -2975,7 +3856,7 @@
16819 oldobjs="$libobjs_save"
16820 build_libtool_libs=no
16821 else
16822 - oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
16823 + oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
16824 fi
16825 addlibs="$old_convenience"
16826 fi
16827 @@ -2991,11 +3872,11 @@
16828 exit $status
16829 fi
16830 generated="$generated $gentop"
16831 -
16832 +
16833 # Add in members from convenience archives.
16834 for xlib in $addlibs; do
16835 # Extract the objects.
16836 - case "$xlib" in
16837 + case $xlib in
16838 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
16839 *) xabs=`pwd`"/$xlib" ;;
16840 esac
16841 @@ -3041,7 +3922,7 @@
16842
16843 eval cmds=\"$old_archive_cmds\"
16844 fi
16845 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
16846 + save_ifs="$IFS"; IFS='~'
16847 for cmd in $cmds; do
16848 IFS="$save_ifs"
16849 $show "$cmd"
16850 @@ -3056,19 +3937,26 @@
16851 fi
16852
16853 # Now create the libtool archive.
16854 - case "$output" in
16855 + case $output in
16856 *.la)
16857 old_library=
16858 test "$build_old_libs" = yes && old_library="$libname.$libext"
16859 $show "creating $output"
16860
16861 - if test -n "$xrpath"; then
16862 - temp_xrpath=
16863 - for libdir in $xrpath; do
16864 - temp_xrpath="$temp_xrpath -R$libdir"
16865 - done
16866 - dependency_libs="$temp_xrpath $dependency_libs"
16867 - fi
16868 + # Preserve any variables that may affect compiler behavior
16869 + for var in $variables_saved_for_relink; do
16870 + if eval test -z \"\${$var+set}\"; then
16871 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
16872 + elif eval var_value=\$$var; test -z "$var_value"; then
16873 + relink_command="$var=; export $var; $relink_command"
16874 + else
16875 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
16876 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
16877 + fi
16878 + done
16879 + # Quote the link command for shipping.
16880 + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
16881 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
16882
16883 # Only create the output if not a dry run.
16884 if test -z "$run"; then
16885 @@ -3078,8 +3966,52 @@
16886 break
16887 fi
16888 output="$output_objdir/$outputname"i
16889 + # Replace all uninstalled libtool libraries with the installed ones
16890 + newdependency_libs=
16891 + for deplib in $dependency_libs; do
16892 + case $deplib in
16893 + *.la)
16894 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
16895 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
16896 + if test -z "$libdir"; then
16897 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
16898 + exit 1
16899 + fi
16900 + newdependency_libs="$newdependency_libs $libdir/$name"
16901 + ;;
16902 + *) newdependency_libs="$newdependency_libs $deplib" ;;
16903 + esac
16904 + done
16905 + dependency_libs="$newdependency_libs"
16906 + newdlfiles=
16907 + for lib in $dlfiles; do
16908 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
16909 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
16910 + if test -z "$libdir"; then
16911 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
16912 + exit 1
16913 + fi
16914 + newdlfiles="$newdlfiles $libdir/$name"
16915 + done
16916 + dlfiles="$newdlfiles"
16917 + newdlprefiles=
16918 + for lib in $dlprefiles; do
16919 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
16920 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
16921 + if test -z "$libdir"; then
16922 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
16923 + exit 1
16924 + fi
16925 + newdlprefiles="$newdlprefiles $libdir/$name"
16926 + done
16927 + dlprefiles="$newdlprefiles"
16928 fi
16929 $rm $output
16930 + # place dlname in correct position for cygwin
16931 + tdlname=$dlname
16932 + case $host,$output,$installed,$module,$dlname in
16933 + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
16934 + esac
16935 $echo > $output "\
16936 # $outputname - a libtool library file
16937 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
16938 @@ -3088,7 +4020,7 @@
16939 # It is necessary for linking the library.
16940
16941 # The name that we can dlopen(3).
16942 -dlname='$dlname'
16943 +dlname='$tdlname'
16944
16945 # Names of this library.
16946 library_names='$library_names'
16947 @@ -3107,16 +4039,23 @@
16948 # Is this an already installed library?
16949 installed=$installed
16950
16951 +# Files to dlopen/dlpreopen
16952 +dlopen='$dlfiles'
16953 +dlpreopen='$dlprefiles'
16954 +
16955 # Directory that this library needs to be installed in:
16956 -libdir='$install_libdir'\
16957 -"
16958 +libdir='$install_libdir'"
16959 + if test "$installed" = no && test $need_relink = yes; then
16960 + $echo >> $output "\
16961 +relink_command=\"$relink_command\""
16962 + fi
16963 done
16964 fi
16965
16966 # Do a symbolic link so that the libtool archive can be found in
16967 # LD_LIBRARY_PATH before the program is installed.
16968 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
16969 - $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $?
16970 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
16971 ;;
16972 esac
16973 exit 0
16974 @@ -3128,10 +4067,12 @@
16975
16976 # There may be an optional sh(1) argument at the beginning of
16977 # install_prog (especially on Windows NT).
16978 - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
16979 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
16980 + # Allow the use of GNU shtool's install command.
16981 + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
16982 # Aesthetically quote it.
16983 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
16984 - case "$arg" in
16985 + case $arg in
16986 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
16987 arg="\"$arg\""
16988 ;;
16989 @@ -3147,7 +4088,7 @@
16990 # The real first argument should be the name of the installation program.
16991 # Aesthetically quote it.
16992 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
16993 - case "$arg" in
16994 + case $arg in
16995 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
16996 arg="\"$arg\""
16997 ;;
16998 @@ -3170,7 +4111,7 @@
16999 continue
17000 fi
17001
17002 - case "$arg" in
17003 + case $arg in
17004 -d) isdir=yes ;;
17005 -f) prev="-f" ;;
17006 -g) prev="-g" ;;
17007 @@ -3195,7 +4136,7 @@
17008
17009 # Aesthetically quote the argument.
17010 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
17011 - case "$arg" in
17012 + case $arg in
17013 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
17014 arg="\"$arg\""
17015 ;;
17016 @@ -3246,11 +4187,11 @@
17017 exit 1
17018 fi
17019 fi
17020 - case "$destdir" in
17021 + case $destdir in
17022 [\\/]* | [A-Za-z]:[\\/]*) ;;
17023 *)
17024 for file in $files; do
17025 - case "$file" in
17026 + case $file in
17027 *.lo) ;;
17028 *)
17029 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
17030 @@ -3272,15 +4213,15 @@
17031 for file in $files; do
17032
17033 # Do each installation.
17034 - case "$file" in
17035 - *.a | *.lib)
17036 + case $file in
17037 + *.$libext)
17038 # Do the static libraries later.
17039 staticlibs="$staticlibs $file"
17040 ;;
17041
17042 *.la)
17043 # Check to see that this really is a libtool archive.
17044 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
17045 + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
17046 else
17047 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
17048 $echo "$help" 1>&2
17049 @@ -3289,8 +4230,9 @@
17050
17051 library_names=
17052 old_library=
17053 + relink_command=
17054 # If there is no directory component, then add one.
17055 - case "$file" in
17056 + case $file in
17057 */* | *\\*) . $file ;;
17058 *) . ./$file ;;
17059 esac
17060 @@ -3309,10 +4251,38 @@
17061 esac
17062 fi
17063
17064 - dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
17065 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
17066 test "X$dir" = "X$file/" && dir=
17067 dir="$dir$objdir"
17068
17069 + if test -n "$relink_command"; then
17070 + # Determine the prefix the user has applied to our future dir.
17071 + inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
17072 +
17073 + # Don't allow the user to place us outside of our expected
17074 + # location b/c this prevents finding dependent libraries that
17075 + # are installed to the same prefix.
17076 + if test "$inst_prefix_dir" = "$destdir"; then
17077 + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
17078 + exit 1
17079 + fi
17080 +
17081 + if test -n "$inst_prefix_dir"; then
17082 + # Stick the inst_prefix_dir data into the link command.
17083 + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
17084 + else
17085 + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
17086 + fi
17087 +
17088 + $echo "$modename: warning: relinking \`$file'" 1>&2
17089 + $show "$relink_command"
17090 + if $run eval "$relink_command"; then :
17091 + else
17092 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
17093 + exit 1
17094 + fi
17095 + fi
17096 +
17097 # See the names of the shared library.
17098 set dummy $library_names
17099 if test -n "$2"; then
17100 @@ -3320,9 +4290,16 @@
17101 shift
17102 shift
17103
17104 + srcname="$realname"
17105 + test -n "$relink_command" && srcname="$realname"T
17106 +
17107 # Install the shared library and build the symlinks.
17108 - $show "$install_prog $dir/$realname $destdir/$realname"
17109 - $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
17110 + $show "$install_prog $dir/$srcname $destdir/$realname"
17111 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
17112 + if test -n "$stripme" && test -n "$striplib"; then
17113 + $show "$striplib $destdir/$realname"
17114 + $run eval "$striplib $destdir/$realname" || exit $?
17115 + fi
17116
17117 if test $# -gt 0; then
17118 # Delete the old symlinks, and create new ones.
17119 @@ -3338,7 +4315,7 @@
17120 # Do each command in the postinstall commands.
17121 lib="$destdir/$realname"
17122 eval cmds=\"$postinstall_cmds\"
17123 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
17124 + save_ifs="$IFS"; IFS='~'
17125 for cmd in $cmds; do
17126 IFS="$save_ifs"
17127 $show "$cmd"
17128 @@ -3369,11 +4346,11 @@
17129 fi
17130
17131 # Deduce the name of the destination old-style object file.
17132 - case "$destfile" in
17133 + case $destfile in
17134 *.lo)
17135 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
17136 ;;
17137 - *.o | *.obj)
17138 + *.$objext)
17139 staticdest="$destfile"
17140 destfile=
17141 ;;
17142 @@ -3411,40 +4388,55 @@
17143 fi
17144
17145 # Do a test to see if this is really a libtool program.
17146 - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17147 - link_against_libtool_libs=
17148 + case $host in
17149 + *cygwin*|*mingw*)
17150 + wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
17151 + ;;
17152 + *)
17153 + wrapper=$file
17154 + ;;
17155 + esac
17156 + if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
17157 + notinst_deplibs=
17158 relink_command=
17159
17160 # If there is no directory component, then add one.
17161 - case "$file" in
17162 - */* | *\\*) . $file ;;
17163 - *) . ./$file ;;
17164 + case $file in
17165 + */* | *\\*) . $wrapper ;;
17166 + *) . ./$wrapper ;;
17167 esac
17168
17169 # Check the variables that should have been set.
17170 - if test -z "$link_against_libtool_libs"; then
17171 - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
17172 + if test -z "$notinst_deplibs"; then
17173 + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
17174 exit 1
17175 fi
17176
17177 finalize=yes
17178 - for lib in $link_against_libtool_libs; do
17179 + for lib in $notinst_deplibs; do
17180 # Check to see that each library is installed.
17181 libdir=
17182 if test -f "$lib"; then
17183 # If there is no directory component, then add one.
17184 - case "$lib" in
17185 + case $lib in
17186 */* | *\\*) . $lib ;;
17187 *) . ./$lib ;;
17188 esac
17189 fi
17190 - libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
17191 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
17192 if test -n "$libdir" && test ! -f "$libfile"; then
17193 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
17194 finalize=no
17195 fi
17196 done
17197
17198 + relink_command=
17199 + # If there is no directory component, then add one.
17200 + case $file in
17201 + */* | *\\*) . $wrapper ;;
17202 + *) . ./$wrapper ;;
17203 + esac
17204 +
17205 outputname=
17206 if test "$fast_install" = no && test -n "$relink_command"; then
17207 if test "$finalize" = yes && test -z "$run"; then
17208 @@ -3456,6 +4448,7 @@
17209 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
17210 continue
17211 fi
17212 + file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
17213 outputname="$tmpdir/$file"
17214 # Replace the output file specification.
17215 relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
17216 @@ -3477,6 +4470,23 @@
17217 fi
17218 fi
17219
17220 + # remove .exe since cygwin /usr/bin/install will append another
17221 + # one anyways
17222 + case $install_prog,$host in
17223 + /usr/bin/install*,*cygwin*)
17224 + case $file:$destfile in
17225 + *.exe:*.exe)
17226 + # this is ok
17227 + ;;
17228 + *.exe:*)
17229 + destfile=$destfile.exe
17230 + ;;
17231 + *:*.exe)
17232 + destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
17233 + ;;
17234 + esac
17235 + ;;
17236 + esac
17237 $show "$install_prog$stripme $file $destfile"
17238 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
17239 test -n "$outputname" && ${rm}r "$tmpdir"
17240 @@ -3493,9 +4503,14 @@
17241 $show "$install_prog $file $oldlib"
17242 $run eval "$install_prog \$file \$oldlib" || exit $?
17243
17244 + if test -n "$stripme" && test -n "$striplib"; then
17245 + $show "$old_striplib $oldlib"
17246 + $run eval "$old_striplib $oldlib" || exit $?
17247 + fi
17248 +
17249 # Do each command in the postinstall commands.
17250 eval cmds=\"$old_postinstall_cmds\"
17251 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
17252 + save_ifs="$IFS"; IFS='~'
17253 for cmd in $cmds; do
17254 IFS="$save_ifs"
17255 $show "$cmd"
17256 @@ -3511,11 +4526,10 @@
17257 if test -n "$current_libdirs"; then
17258 # Maybe just do a dry run.
17259 test -n "$run" && current_libdirs=" -n$current_libdirs"
17260 - exec $SHELL $0 --finish$current_libdirs
17261 - exit 1
17262 + exec_cmd='$SHELL $0 --finish$current_libdirs'
17263 + else
17264 + exit 0
17265 fi
17266 -
17267 - exit 0
17268 ;;
17269
17270 # libtool finish mode
17271 @@ -3534,7 +4548,7 @@
17272 if test -n "$finish_cmds"; then
17273 # Do each command in the finish commands.
17274 eval cmds=\"$finish_cmds\"
17275 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
17276 + save_ifs="$IFS"; IFS='~'
17277 for cmd in $cmds; do
17278 IFS="$save_ifs"
17279 $show "$cmd"
17280 @@ -3553,7 +4567,7 @@
17281 fi
17282
17283 # Exit here if they wanted silent mode.
17284 - test "$show" = : && exit 0
17285 + test "$show" = ":" && exit 0
17286
17287 echo "----------------------------------------------------------------------"
17288 echo "Libraries have been installed in:"
17289 @@ -3563,7 +4577,7 @@
17290 echo
17291 echo "If you ever happen to want to link against installed libraries"
17292 echo "in a given directory, LIBDIR, you must either use libtool, and"
17293 - echo "specify the full pathname of the library, or use \`-LLIBDIR'"
17294 + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
17295 echo "flag during linking and do at least one of the following:"
17296 if test -n "$shlibpath_var"; then
17297 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
17298 @@ -3613,10 +4627,10 @@
17299 fi
17300
17301 dir=
17302 - case "$file" in
17303 + case $file in
17304 *.la)
17305 # Check to see that this really is a libtool archive.
17306 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
17307 + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
17308 else
17309 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
17310 $echo "$help" 1>&2
17311 @@ -3628,7 +4642,7 @@
17312 library_names=
17313
17314 # If there is no directory component, then add one.
17315 - case "$file" in
17316 + case $file in
17317 */* | *\\*) . $file ;;
17318 *) . ./$file ;;
17319 esac
17320 @@ -3683,13 +4697,13 @@
17321 args=
17322 for file
17323 do
17324 - case "$file" in
17325 + case $file in
17326 -*) ;;
17327 *)
17328 # Do a test to see if this is really a libtool program.
17329 - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17330 + if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17331 # If there is no directory component, then add one.
17332 - case "$file" in
17333 + case $file in
17334 */* | *\\*) . $file ;;
17335 *) . ./$file ;;
17336 esac
17337 @@ -3706,8 +4720,8 @@
17338
17339 if test -z "$run"; then
17340 if test -n "$shlibpath_var"; then
17341 - # Export the shlibpath_var.
17342 - eval "export $shlibpath_var"
17343 + # Export the shlibpath_var.
17344 + eval "export $shlibpath_var"
17345 fi
17346
17347 # Restore saved enviroment variables
17348 @@ -3718,31 +4732,35 @@
17349 LANG="$save_LANG"; export LANG
17350 fi
17351
17352 - # Now actually exec the command.
17353 - eval "exec \$cmd$args"
17354 -
17355 - $echo "$modename: cannot exec \$cmd$args"
17356 - exit 1
17357 + # Now prepare to actually exec the command.
17358 + exec_cmd="\$cmd$args"
17359 else
17360 # Display what would be done.
17361 if test -n "$shlibpath_var"; then
17362 - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
17363 - $echo "export $shlibpath_var"
17364 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
17365 + $echo "export $shlibpath_var"
17366 fi
17367 $echo "$cmd$args"
17368 exit 0
17369 fi
17370 ;;
17371
17372 - # libtool uninstall mode
17373 - uninstall)
17374 - modename="$modename: uninstall"
17375 + # libtool clean and uninstall mode
17376 + clean | uninstall)
17377 + modename="$modename: $mode"
17378 rm="$nonopt"
17379 files=
17380 + rmforce=
17381 + exit_status=0
17382 +
17383 + # This variable tells wrapper scripts just to set variables rather
17384 + # than running their programs.
17385 + libtool_install_magic="$magic"
17386
17387 for arg
17388 do
17389 - case "$arg" in
17390 + case $arg in
17391 + -f) rm="$rm $arg"; rmforce=yes ;;
17392 -*) rm="$rm $arg" ;;
17393 *) files="$files $arg" ;;
17394 esac
17395 @@ -3754,53 +4772,86 @@
17396 exit 1
17397 fi
17398
17399 + rmdirs=
17400 +
17401 for file in $files; do
17402 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
17403 - test "X$dir" = "X$file" && dir=.
17404 + if test "X$dir" = "X$file"; then
17405 + dir=.
17406 + objdir="$objdir"
17407 + else
17408 + objdir="$dir/$objdir"
17409 + fi
17410 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
17411 + test $mode = uninstall && objdir="$dir"
17412 +
17413 + # Remember objdir for removal later, being careful to avoid duplicates
17414 + if test $mode = clean; then
17415 + case " $rmdirs " in
17416 + *" $objdir "*) ;;
17417 + *) rmdirs="$rmdirs $objdir" ;;
17418 + esac
17419 + fi
17420 +
17421 + # Don't error if the file doesn't exist and rm -f was used.
17422 + if (test -L "$file") >/dev/null 2>&1 \
17423 + || (test -h "$file") >/dev/null 2>&1 \
17424 + || test -f "$file"; then
17425 + :
17426 + elif test -d "$file"; then
17427 + exit_status=1
17428 + continue
17429 + elif test "$rmforce" = yes; then
17430 + continue
17431 + fi
17432
17433 rmfiles="$file"
17434
17435 - case "$name" in
17436 + case $name in
17437 *.la)
17438 # Possibly a libtool archive, so verify it.
17439 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17440 + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17441 . $dir/$name
17442
17443 # Delete the libtool libraries and symlinks.
17444 for n in $library_names; do
17445 - rmfiles="$rmfiles $dir/$n"
17446 + rmfiles="$rmfiles $objdir/$n"
17447 done
17448 - test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
17449 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
17450 + test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
17451
17452 - $show "$rm $rmfiles"
17453 - $run $rm $rmfiles
17454 -
17455 - if test -n "$library_names"; then
17456 - # Do each command in the postuninstall commands.
17457 - eval cmds=\"$postuninstall_cmds\"
17458 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
17459 - for cmd in $cmds; do
17460 + if test $mode = uninstall; then
17461 + if test -n "$library_names"; then
17462 + # Do each command in the postuninstall commands.
17463 + eval cmds=\"$postuninstall_cmds\"
17464 + save_ifs="$IFS"; IFS='~'
17465 + for cmd in $cmds; do
17466 + IFS="$save_ifs"
17467 + $show "$cmd"
17468 + $run eval "$cmd"
17469 + if test $? != 0 && test "$rmforce" != yes; then
17470 + exit_status=1
17471 + fi
17472 + done
17473 IFS="$save_ifs"
17474 - $show "$cmd"
17475 - $run eval "$cmd"
17476 - done
17477 - IFS="$save_ifs"
17478 - fi
17479 + fi
17480
17481 - if test -n "$old_library"; then
17482 - # Do each command in the old_postuninstall commands.
17483 - eval cmds=\"$old_postuninstall_cmds\"
17484 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
17485 - for cmd in $cmds; do
17486 + if test -n "$old_library"; then
17487 + # Do each command in the old_postuninstall commands.
17488 + eval cmds=\"$old_postuninstall_cmds\"
17489 + save_ifs="$IFS"; IFS='~'
17490 + for cmd in $cmds; do
17491 + IFS="$save_ifs"
17492 + $show "$cmd"
17493 + $run eval "$cmd"
17494 + if test $? != 0 && test "$rmforce" != yes; then
17495 + exit_status=1
17496 + fi
17497 + done
17498 IFS="$save_ifs"
17499 - $show "$cmd"
17500 - $run eval "$cmd"
17501 - done
17502 - IFS="$save_ifs"
17503 + fi
17504 + # FIXME: should reinstall the best remaining shared library.
17505 fi
17506 -
17507 - # FIXME: should reinstall the best remaining shared library.
17508 fi
17509 ;;
17510
17511 @@ -3809,17 +4860,35 @@
17512 oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
17513 rmfiles="$rmfiles $dir/$oldobj"
17514 fi
17515 - $show "$rm $rmfiles"
17516 - $run $rm $rmfiles
17517 ;;
17518
17519 *)
17520 - $show "$rm $rmfiles"
17521 - $run $rm $rmfiles
17522 + # Do a test to see if this is a libtool program.
17523 + if test $mode = clean &&
17524 + (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17525 + relink_command=
17526 + . $dir/$file
17527 +
17528 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
17529 + if test "$fast_install" = yes && test -n "$relink_command"; then
17530 + rmfiles="$rmfiles $objdir/lt-$name"
17531 + fi
17532 + fi
17533 ;;
17534 esac
17535 + $show "$rm $rmfiles"
17536 + $run $rm $rmfiles || exit_status=1
17537 done
17538 - exit 0
17539 +
17540 + # Try to remove the ${objdir}s in the directories where we deleted files
17541 + for dir in $rmdirs; do
17542 + if test -d "$dir"; then
17543 + $show "rmdir $dir"
17544 + $run rmdir $dir >/dev/null 2>&1
17545 + fi
17546 + done
17547 +
17548 + exit $exit_status
17549 ;;
17550
17551 "")
17552 @@ -3829,13 +4898,20 @@
17553 ;;
17554 esac
17555
17556 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
17557 - $echo "$generic_help" 1>&2
17558 - exit 1
17559 + if test -z "$exec_cmd"; then
17560 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
17561 + $echo "$generic_help" 1>&2
17562 + exit 1
17563 + fi
17564 fi # test -z "$show_help"
17565
17566 +if test -n "$exec_cmd"; then
17567 + eval exec $exec_cmd
17568 + exit 1
17569 +fi
17570 +
17571 # We need to display help for each of the modes.
17572 -case "$mode" in
17573 +case $mode in
17574 "") $echo \
17575 "Usage: $modename [OPTION]... [MODE-ARG]...
17576
17577 @@ -3854,6 +4930,7 @@
17578
17579 MODE must be one of the following:
17580
17581 + clean remove files from the build directory
17582 compile compile a source file into a libtool object
17583 execute automatically set library path, then run a program
17584 finish complete the installation of libtool libraries
17585 @@ -3866,6 +4943,20 @@
17586 exit 0
17587 ;;
17588
17589 +clean)
17590 + $echo \
17591 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
17592 +
17593 +Remove files from the build directory.
17594 +
17595 +RM is the name of the program to use to delete files associated with each FILE
17596 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
17597 +to RM.
17598 +
17599 +If FILE is a libtool library, object or program, all the files associated
17600 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
17601 + ;;
17602 +
17603 compile)
17604 $echo \
17605 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
17606 @@ -3875,6 +4966,8 @@
17607 This mode accepts the following additional options:
17608
17609 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
17610 + -prefer-pic try to building PIC objects only
17611 + -prefer-non-pic try to building non-PIC objects only
17612 -static always build a \`.o' file suitable for static linking
17613
17614 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
17615 @@ -3954,6 +5047,8 @@
17616 -LLIBDIR search LIBDIR for required installed libraries
17617 -lNAME OUTPUT-FILE requires the installed library libNAME
17618 -module build a library that can dlopened
17619 + -no-fast-install disable the fast-install mode
17620 + -no-install link a not-installable executable
17621 -no-undefined declare that a library does not refer to external symbols
17622 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
17623 -release RELEASE specify package release information
17624 --- glib1.2-1.2.10.orig/gmodule/Makefile.in
17625 +++ glib1.2-1.2.10/gmodule/Makefile.in
17626 @@ -1,6 +1,6 @@
17627 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
17628 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
17629
17630 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
17631 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
17632 # This Makefile.in is free software; the Free Software Foundation
17633 # gives unlimited permission to copy and/or distribute it,
17634 # with or without modifications, as long as this notice is preserved.
17635 @@ -62,8 +62,10 @@
17636 AS = @AS@
17637 CC = @CC@
17638 DLLTOOL = @DLLTOOL@
17639 +ECHO = @ECHO@
17640 ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
17641 ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
17642 +EXEEXT = @EXEEXT@
17643 GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
17644 GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
17645 GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
17646 @@ -88,8 +90,10 @@
17647 MAINT = @MAINT@
17648 MAKEINFO = @MAKEINFO@
17649 OBJDUMP = @OBJDUMP@
17650 +OBJEXT = @OBJEXT@
17651 PACKAGE = @PACKAGE@
17652 RANLIB = @RANLIB@
17653 +STRIP = @STRIP@
17654 VERSION = @VERSION@
17655
17656 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gmodule -DG_LOG_DOMAIN=\"GModule\" @GLIB_DEBUG_FLAGS@
17657 @@ -112,17 +116,17 @@
17658 libgmodule_la_LDFLAGS = @G_MODULE_LDFLAGS@ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-dynamic
17659
17660
17661 -libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17662 +libgmodule_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17663 # we should really depend on $(libglib) for libgmodule.la, but libtool has a
17664 # problem with this ;(
17665
17666 libgplugin_a_la_SOURCES = libgplugin_a.c
17667 libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
17668 -libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17669 +libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17670
17671 libgplugin_b_la_SOURCES = libgplugin_b.c
17672 libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
17673 -libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17674 +libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17675
17676 noinst_PROGRAMS = testgmodule
17677 testgmodule_LDFLAGS = @G_MODULE_LDFLAGS@
17678 @@ -143,10 +147,11 @@
17679 libgplugin_a_la_OBJECTS = libgplugin_a.lo
17680 libgplugin_b_la_DEPENDENCIES =
17681 libgplugin_b_la_OBJECTS = libgplugin_b.lo
17682 +noinst_PROGRAMS = testgmodule$(EXEEXT)
17683 PROGRAMS = $(noinst_PROGRAMS)
17684
17685 testgmodule_SOURCES = testgmodule.c
17686 -testgmodule_OBJECTS = testgmodule.o
17687 +testgmodule_OBJECTS = testgmodule.$(OBJEXT)
17688 testgmodule_DEPENDENCIES = libgmodule.la $(top_builddir)/libglib.la
17689 CFLAGS = @CFLAGS@
17690 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
17691 @@ -161,14 +166,14 @@
17692
17693 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
17694
17695 -TAR = gtar
17696 +TAR = tar
17697 GZIP_ENV = --best
17698 SOURCES = $(libgmodule_la_SOURCES) $(libgplugin_a_la_SOURCES) $(libgplugin_b_la_SOURCES) testgmodule.c
17699 -OBJECTS = $(libgmodule_la_OBJECTS) $(libgplugin_a_la_OBJECTS) $(libgplugin_b_la_OBJECTS) testgmodule.o
17700 +OBJECTS = $(libgmodule_la_OBJECTS) $(libgplugin_a_la_OBJECTS) $(libgplugin_b_la_OBJECTS) testgmodule.$(OBJEXT)
17701
17702 all: all-redirect
17703 .SUFFIXES:
17704 -.SUFFIXES: .S .c .lo .o .s
17705 +.SUFFIXES: .S .c .lo .o .obj .s
17706 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
17707 cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gmodule/Makefile
17708
17709 @@ -197,6 +202,11 @@
17710 .c.o:
17711 $(COMPILE) -c $<
17712
17713 +# FIXME: We should only use cygpath when building on Windows,
17714 +# and only if it is available.
17715 +.c.obj:
17716 + $(COMPILE) -c `cygpath -w $<`
17717 +
17718 .s.o:
17719 $(COMPILE) -c $<
17720
17721 @@ -205,6 +215,7 @@
17722
17723 mostlyclean-compile:
17724 -rm -f *.o core *.core
17725 + -rm -f *.$(OBJEXT)
17726
17727 clean-compile:
17728
17729 @@ -250,8 +261,8 @@
17730
17731 maintainer-clean-noinstPROGRAMS:
17732
17733 -testgmodule: $(testgmodule_OBJECTS) $(testgmodule_DEPENDENCIES)
17734 - @rm -f testgmodule
17735 +testgmodule$(EXEEXT): $(testgmodule_OBJECTS) $(testgmodule_DEPENDENCIES)
17736 + @rm -f testgmodule$(EXEEXT)
17737 $(LINK) $(testgmodule_LDFLAGS) $(testgmodule_OBJECTS) $(testgmodule_LDADD) $(LIBS)
17738
17739 install-glibincludeHEADERS: $(glibinclude_HEADERS)
17740 @@ -287,7 +298,7 @@
17741 awk ' { files[$$0] = 1; } \
17742 END { for (i in files) print i; }'`; \
17743 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
17744 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
17745 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
17746
17747 mostlyclean-tags:
17748
17749 @@ -313,15 +324,6 @@
17750 || cp -p $$d/$$file $(distdir)/$$file || :; \
17751 fi; \
17752 done
17753 -gmodule.lo gmodule.o : gmodule.c gmodule.h ../glib.h ../glibconfig.h \
17754 - gmoduleconf.h gmodule-dl.c
17755 -libgplugin_a.lo libgplugin_a.o : libgplugin_a.c gmodule.h ../glib.h \
17756 - ../glibconfig.h
17757 -libgplugin_b.lo libgplugin_b.o : libgplugin_b.c gmodule.h ../glib.h \
17758 - ../glibconfig.h
17759 -testgmodule.o: testgmodule.c gmodule.h ../glib.h ../glibconfig.h \
17760 - gmoduleconf.h
17761 -
17762 info-am:
17763 info: info-am
17764 dvi-am:
17765 --- glib1.2-1.2.10.orig/gmodule/Makefile.am
17766 +++ glib1.2-1.2.10/gmodule/Makefile.am
17767 @@ -29,17 +29,17 @@
17768 -release $(LT_RELEASE) \
17769 -export-dynamic
17770
17771 -libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17772 +libgmodule_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17773 # we should really depend on $(libglib) for libgmodule.la, but libtool has a
17774 # problem with this ;(
17775
17776 libgplugin_a_la_SOURCES = libgplugin_a.c
17777 libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
17778 -libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17779 +libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17780
17781 libgplugin_b_la_SOURCES = libgplugin_b.c
17782 libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
17783 -libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17784 +libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17785
17786 noinst_PROGRAMS = testgmodule
17787 testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
17788 --- glib1.2-1.2.10.orig/gthread/Makefile.in
17789 +++ glib1.2-1.2.10/gthread/Makefile.in
17790 @@ -1,6 +1,6 @@
17791 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
17792 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
17793
17794 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
17795 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
17796 # This Makefile.in is free software; the Free Software Foundation
17797 # gives unlimited permission to copy and/or distribute it,
17798 # with or without modifications, as long as this notice is preserved.
17799 @@ -62,8 +62,10 @@
17800 AS = @AS@
17801 CC = @CC@
17802 DLLTOOL = @DLLTOOL@
17803 +ECHO = @ECHO@
17804 ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
17805 ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
17806 +EXEEXT = @EXEEXT@
17807 GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
17808 GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
17809 GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
17810 @@ -88,8 +90,10 @@
17811 MAINT = @MAINT@
17812 MAKEINFO = @MAKEINFO@
17813 OBJDUMP = @OBJDUMP@
17814 +OBJEXT = @OBJEXT@
17815 PACKAGE = @PACKAGE@
17816 RANLIB = @RANLIB@
17817 +STRIP = @STRIP@
17818 VERSION = @VERSION@
17819
17820 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gthread -DG_LOG_DOMAIN=\"GThread\"
17821 @@ -105,7 +109,7 @@
17822 libgthread_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-dynamic
17823
17824
17825 -libgthread_la_LIBADD = @G_THREAD_LIBS@
17826 +libgthread_la_LIBADD = @G_THREAD_LIBS@ $(libglib)
17827
17828 noinst_PROGRAMS = testgthread
17829 testgthread_LDADD = ../libglib.la libgthread.la
17830 @@ -121,10 +125,11 @@
17831 LIBS = @LIBS@
17832 libgthread_la_DEPENDENCIES =
17833 libgthread_la_OBJECTS = gthread.lo
17834 +noinst_PROGRAMS = testgthread$(EXEEXT)
17835 PROGRAMS = $(noinst_PROGRAMS)
17836
17837 testgthread_SOURCES = testgthread.c
17838 -testgthread_OBJECTS = testgthread.o
17839 +testgthread_OBJECTS = testgthread.$(OBJEXT)
17840 testgthread_DEPENDENCIES = ../libglib.la libgthread.la
17841 testgthread_LDFLAGS =
17842 CFLAGS = @CFLAGS@
17843 @@ -137,14 +142,14 @@
17844
17845 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
17846
17847 -TAR = gtar
17848 +TAR = tar
17849 GZIP_ENV = --best
17850 SOURCES = $(libgthread_la_SOURCES) testgthread.c
17851 -OBJECTS = $(libgthread_la_OBJECTS) testgthread.o
17852 +OBJECTS = $(libgthread_la_OBJECTS) testgthread.$(OBJEXT)
17853
17854 all: all-redirect
17855 .SUFFIXES:
17856 -.SUFFIXES: .S .c .lo .o .s
17857 +.SUFFIXES: .S .c .lo .o .obj .s
17858 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
17859 cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gthread/Makefile
17860
17861 @@ -181,6 +186,11 @@
17862 .c.o:
17863 $(COMPILE) -c $<
17864
17865 +# FIXME: We should only use cygpath when building on Windows,
17866 +# and only if it is available.
17867 +.c.obj:
17868 + $(COMPILE) -c `cygpath -w $<`
17869 +
17870 .s.o:
17871 $(COMPILE) -c $<
17872
17873 @@ -189,6 +199,7 @@
17874
17875 mostlyclean-compile:
17876 -rm -f *.o core *.core
17877 + -rm -f *.$(OBJEXT)
17878
17879 clean-compile:
17880
17881 @@ -228,8 +239,8 @@
17882
17883 maintainer-clean-noinstPROGRAMS:
17884
17885 -testgthread: $(testgthread_OBJECTS) $(testgthread_DEPENDENCIES)
17886 - @rm -f testgthread
17887 +testgthread$(EXEEXT): $(testgthread_OBJECTS) $(testgthread_DEPENDENCIES)
17888 + @rm -f testgthread$(EXEEXT)
17889 $(LINK) $(testgthread_LDFLAGS) $(testgthread_OBJECTS) $(testgthread_LDADD) $(LIBS)
17890
17891 tags: TAGS
17892 @@ -250,7 +261,7 @@
17893 awk ' { files[$$0] = 1; } \
17894 END { for (i in files) print i; }'`; \
17895 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
17896 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
17897 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
17898
17899 mostlyclean-tags:
17900
17901 @@ -276,11 +287,6 @@
17902 || cp -p $$d/$$file $(distdir)/$$file || :; \
17903 fi; \
17904 done
17905 -gthread.lo gthread.o : gthread.c ../config.h ../glib.h ../glibconfig.h \
17906 - gthread-posix.c
17907 -testgthread.o: testgthread.c ../config.h ../testglib.c ../glib.h \
17908 - ../glibconfig.h
17909 -
17910 info-am:
17911 info: info-am
17912 dvi-am:
17913 --- glib1.2-1.2.10.orig/gthread/Makefile.am
17914 +++ glib1.2-1.2.10/gthread/Makefile.am
17915 @@ -19,7 +19,7 @@
17916 -release $(LT_RELEASE) \
17917 -export-dynamic
17918
17919 -libgthread_la_LIBADD = @G_THREAD_LIBS@
17920 +libgthread_la_LIBADD = @G_THREAD_LIBS@ $(libglib)
17921
17922 noinst_PROGRAMS = testgthread
17923 testgthread_LDADD = ../libglib.la libgthread.la
17924 --- glib1.2-1.2.10.orig/docs/Makefile.in
17925 +++ glib1.2-1.2.10/docs/Makefile.in
17926 @@ -1,6 +1,6 @@
17927 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
17928 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
17929
17930 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
17931 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
17932 # This Makefile.in is free software; the Free Software Foundation
17933 # gives unlimited permission to copy and/or distribute it,
17934 # with or without modifications, as long as this notice is preserved.
17935 @@ -62,8 +62,10 @@
17936 AS = @AS@
17937 CC = @CC@
17938 DLLTOOL = @DLLTOOL@
17939 +ECHO = @ECHO@
17940 ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
17941 ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
17942 +EXEEXT = @EXEEXT@
17943 GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
17944 GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
17945 GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
17946 @@ -88,8 +90,10 @@
17947 MAINT = @MAINT@
17948 MAKEINFO = @MAKEINFO@
17949 OBJDUMP = @OBJDUMP@
17950 +OBJEXT = @OBJEXT@
17951 PACKAGE = @PACKAGE@
17952 RANLIB = @RANLIB@
17953 +STRIP = @STRIP@
17954 VERSION = @VERSION@
17955
17956 info_TEXINFOS = glib.texi
17957 @@ -114,7 +118,7 @@
17958
17959 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
17960
17961 -TAR = gtar
17962 +TAR = tar
17963 GZIP_ENV = --best
17964 all: all-redirect
17965 .SUFFIXES:
17966 @@ -208,7 +212,7 @@
17967 else ii=; fi; \
17968 list='$(INFO_DEPS)'; \
17969 for file in $$list; do \
17970 - test -z "$ii" \
17971 + test -z "$$ii" \
17972 || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
17973 done
17974 @$(NORMAL_UNINSTALL)
17975 --- glib1.2-1.2.10.orig/tests/Makefile.in
17976 +++ glib1.2-1.2.10/tests/Makefile.in
17977 @@ -1,6 +1,6 @@
17978 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
17979 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
17980
17981 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
17982 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
17983 # This Makefile.in is free software; the Free Software Foundation
17984 # gives unlimited permission to copy and/or distribute it,
17985 # with or without modifications, as long as this notice is preserved.
17986 @@ -62,8 +62,10 @@
17987 AS = @AS@
17988 CC = @CC@
17989 DLLTOOL = @DLLTOOL@
17990 +ECHO = @ECHO@
17991 ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
17992 ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
17993 +EXEEXT = @EXEEXT@
17994 GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
17995 GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
17996 GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
17997 @@ -88,8 +90,10 @@
17998 MAINT = @MAINT@
17999 MAKEINFO = @MAKEINFO@
18000 OBJDUMP = @OBJDUMP@
18001 +OBJEXT = @OBJEXT@
18002 PACKAGE = @PACKAGE@
18003 RANLIB = @RANLIB@
18004 +STRIP = @STRIP@
18005 VERSION = @VERSION@
18006
18007 INCLUDES = -I$(top_srcdir)
18008 @@ -116,6 +120,10 @@
18009 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
18010 CONFIG_HEADER = ../config.h
18011 CONFIG_CLEAN_FILES =
18012 +noinst_PROGRAMS = array-test$(EXEEXT) dirname-test$(EXEEXT) \
18013 +hash-test$(EXEEXT) list-test$(EXEEXT) node-test$(EXEEXT) \
18014 +relation-test$(EXEEXT) slist-test$(EXEEXT) string-test$(EXEEXT) \
18015 +strfunc-test$(EXEEXT) tree-test$(EXEEXT) type-test$(EXEEXT)
18016 PROGRAMS = $(noinst_PROGRAMS)
18017
18018
18019 @@ -124,47 +132,47 @@
18020 LDFLAGS = @LDFLAGS@
18021 LIBS = @LIBS@
18022 array_test_SOURCES = array-test.c
18023 -array_test_OBJECTS = array-test.o
18024 +array_test_OBJECTS = array-test.$(OBJEXT)
18025 array_test_DEPENDENCIES = $(top_builddir)/libglib.la
18026 array_test_LDFLAGS =
18027 dirname_test_SOURCES = dirname-test.c
18028 -dirname_test_OBJECTS = dirname-test.o
18029 +dirname_test_OBJECTS = dirname-test.$(OBJEXT)
18030 dirname_test_DEPENDENCIES = $(top_builddir)/libglib.la
18031 dirname_test_LDFLAGS =
18032 hash_test_SOURCES = hash-test.c
18033 -hash_test_OBJECTS = hash-test.o
18034 +hash_test_OBJECTS = hash-test.$(OBJEXT)
18035 hash_test_DEPENDENCIES = $(top_builddir)/libglib.la
18036 hash_test_LDFLAGS =
18037 list_test_SOURCES = list-test.c
18038 -list_test_OBJECTS = list-test.o
18039 +list_test_OBJECTS = list-test.$(OBJEXT)
18040 list_test_DEPENDENCIES = $(top_builddir)/libglib.la
18041 list_test_LDFLAGS =
18042 node_test_SOURCES = node-test.c
18043 -node_test_OBJECTS = node-test.o
18044 +node_test_OBJECTS = node-test.$(OBJEXT)
18045 node_test_DEPENDENCIES = $(top_builddir)/libglib.la
18046 node_test_LDFLAGS =
18047 relation_test_SOURCES = relation-test.c
18048 -relation_test_OBJECTS = relation-test.o
18049 +relation_test_OBJECTS = relation-test.$(OBJEXT)
18050 relation_test_DEPENDENCIES = $(top_builddir)/libglib.la
18051 relation_test_LDFLAGS =
18052 slist_test_SOURCES = slist-test.c
18053 -slist_test_OBJECTS = slist-test.o
18054 +slist_test_OBJECTS = slist-test.$(OBJEXT)
18055 slist_test_DEPENDENCIES = $(top_builddir)/libglib.la
18056 slist_test_LDFLAGS =
18057 string_test_SOURCES = string-test.c
18058 -string_test_OBJECTS = string-test.o
18059 +string_test_OBJECTS = string-test.$(OBJEXT)
18060 string_test_DEPENDENCIES = $(top_builddir)/libglib.la
18061 string_test_LDFLAGS =
18062 strfunc_test_SOURCES = strfunc-test.c
18063 -strfunc_test_OBJECTS = strfunc-test.o
18064 +strfunc_test_OBJECTS = strfunc-test.$(OBJEXT)
18065 strfunc_test_DEPENDENCIES = $(top_builddir)/libglib.la
18066 strfunc_test_LDFLAGS =
18067 tree_test_SOURCES = tree-test.c
18068 -tree_test_OBJECTS = tree-test.o
18069 +tree_test_OBJECTS = tree-test.$(OBJEXT)
18070 tree_test_DEPENDENCIES = $(top_builddir)/libglib.la
18071 tree_test_LDFLAGS =
18072 type_test_SOURCES = type-test.c
18073 -type_test_OBJECTS = type-test.o
18074 +type_test_OBJECTS = type-test.$(OBJEXT)
18075 type_test_DEPENDENCIES = $(top_builddir)/libglib.la
18076 type_test_LDFLAGS =
18077 CFLAGS = @CFLAGS@
18078 @@ -177,14 +185,14 @@
18079
18080 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
18081
18082 -TAR = gtar
18083 +TAR = tar
18084 GZIP_ENV = --best
18085 SOURCES = array-test.c dirname-test.c hash-test.c list-test.c node-test.c relation-test.c slist-test.c string-test.c strfunc-test.c tree-test.c type-test.c
18086 -OBJECTS = array-test.o dirname-test.o hash-test.o list-test.o node-test.o relation-test.o slist-test.o string-test.o strfunc-test.o tree-test.o type-test.o
18087 +OBJECTS = array-test.$(OBJEXT) dirname-test.$(OBJEXT) hash-test.$(OBJEXT) list-test.$(OBJEXT) node-test.$(OBJEXT) relation-test.$(OBJEXT) slist-test.$(OBJEXT) string-test.$(OBJEXT) strfunc-test.$(OBJEXT) tree-test.$(OBJEXT) type-test.$(OBJEXT)
18088
18089 all: all-redirect
18090 .SUFFIXES:
18091 -.SUFFIXES: .S .c .lo .o .s
18092 +.SUFFIXES: .S .c .lo .o .obj .s
18093 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
18094 cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps tests/Makefile
18095
18096 @@ -205,6 +213,11 @@
18097 .c.o:
18098 $(COMPILE) -c $<
18099
18100 +# FIXME: We should only use cygpath when building on Windows,
18101 +# and only if it is available.
18102 +.c.obj:
18103 + $(COMPILE) -c `cygpath -w $<`
18104 +
18105 .s.o:
18106 $(COMPILE) -c $<
18107
18108 @@ -213,6 +226,7 @@
18109
18110 mostlyclean-compile:
18111 -rm -f *.o core *.core
18112 + -rm -f *.$(OBJEXT)
18113
18114 clean-compile:
18115
18116 @@ -240,48 +254,48 @@
18117
18118 maintainer-clean-libtool:
18119
18120 -array-test: $(array_test_OBJECTS) $(array_test_DEPENDENCIES)
18121 - @rm -f array-test
18122 +array-test$(EXEEXT): $(array_test_OBJECTS) $(array_test_DEPENDENCIES)
18123 + @rm -f array-test$(EXEEXT)
18124 $(LINK) $(array_test_LDFLAGS) $(array_test_OBJECTS) $(array_test_LDADD) $(LIBS)
18125
18126 -dirname-test: $(dirname_test_OBJECTS) $(dirname_test_DEPENDENCIES)
18127 - @rm -f dirname-test
18128 +dirname-test$(EXEEXT): $(dirname_test_OBJECTS) $(dirname_test_DEPENDENCIES)
18129 + @rm -f dirname-test$(EXEEXT)
18130 $(LINK) $(dirname_test_LDFLAGS) $(dirname_test_OBJECTS) $(dirname_test_LDADD) $(LIBS)
18131
18132 -hash-test: $(hash_test_OBJECTS) $(hash_test_DEPENDENCIES)
18133 - @rm -f hash-test
18134 +hash-test$(EXEEXT): $(hash_test_OBJECTS) $(hash_test_DEPENDENCIES)
18135 + @rm -f hash-test$(EXEEXT)
18136 $(LINK) $(hash_test_LDFLAGS) $(hash_test_OBJECTS) $(hash_test_LDADD) $(LIBS)
18137
18138 -list-test: $(list_test_OBJECTS) $(list_test_DEPENDENCIES)
18139 - @rm -f list-test
18140 +list-test$(EXEEXT): $(list_test_OBJECTS) $(list_test_DEPENDENCIES)
18141 + @rm -f list-test$(EXEEXT)
18142 $(LINK) $(list_test_LDFLAGS) $(list_test_OBJECTS) $(list_test_LDADD) $(LIBS)
18143
18144 -node-test: $(node_test_OBJECTS) $(node_test_DEPENDENCIES)
18145 - @rm -f node-test
18146 +node-test$(EXEEXT): $(node_test_OBJECTS) $(node_test_DEPENDENCIES)
18147 + @rm -f node-test$(EXEEXT)
18148 $(LINK) $(node_test_LDFLAGS) $(node_test_OBJECTS) $(node_test_LDADD) $(LIBS)
18149
18150 -relation-test: $(relation_test_OBJECTS) $(relation_test_DEPENDENCIES)
18151 - @rm -f relation-test
18152 +relation-test$(EXEEXT): $(relation_test_OBJECTS) $(relation_test_DEPENDENCIES)
18153 + @rm -f relation-test$(EXEEXT)
18154 $(LINK) $(relation_test_LDFLAGS) $(relation_test_OBJECTS) $(relation_test_LDADD) $(LIBS)
18155
18156 -slist-test: $(slist_test_OBJECTS) $(slist_test_DEPENDENCIES)
18157 - @rm -f slist-test
18158 +slist-test$(EXEEXT): $(slist_test_OBJECTS) $(slist_test_DEPENDENCIES)
18159 + @rm -f slist-test$(EXEEXT)
18160 $(LINK) $(slist_test_LDFLAGS) $(slist_test_OBJECTS) $(slist_test_LDADD) $(LIBS)
18161
18162 -string-test: $(string_test_OBJECTS) $(string_test_DEPENDENCIES)
18163 - @rm -f string-test
18164 +string-test$(EXEEXT): $(string_test_OBJECTS) $(string_test_DEPENDENCIES)
18165 + @rm -f string-test$(EXEEXT)
18166 $(LINK) $(string_test_LDFLAGS) $(string_test_OBJECTS) $(string_test_LDADD) $(LIBS)
18167
18168 -strfunc-test: $(strfunc_test_OBJECTS) $(strfunc_test_DEPENDENCIES)
18169 - @rm -f strfunc-test
18170 +strfunc-test$(EXEEXT): $(strfunc_test_OBJECTS) $(strfunc_test_DEPENDENCIES)
18171 + @rm -f strfunc-test$(EXEEXT)
18172 $(LINK) $(strfunc_test_LDFLAGS) $(strfunc_test_OBJECTS) $(strfunc_test_LDADD) $(LIBS)
18173
18174 -tree-test: $(tree_test_OBJECTS) $(tree_test_DEPENDENCIES)
18175 - @rm -f tree-test
18176 +tree-test$(EXEEXT): $(tree_test_OBJECTS) $(tree_test_DEPENDENCIES)
18177 + @rm -f tree-test$(EXEEXT)
18178 $(LINK) $(tree_test_LDFLAGS) $(tree_test_OBJECTS) $(tree_test_LDADD) $(LIBS)
18179
18180 -type-test: $(type_test_OBJECTS) $(type_test_DEPENDENCIES)
18181 - @rm -f type-test
18182 +type-test$(EXEEXT): $(type_test_OBJECTS) $(type_test_DEPENDENCIES)
18183 + @rm -f type-test$(EXEEXT)
18184 $(LINK) $(type_test_LDFLAGS) $(type_test_OBJECTS) $(type_test_LDADD) $(LIBS)
18185
18186 tags: TAGS
18187 @@ -302,7 +316,7 @@
18188 awk ' { files[$$0] = 1; } \
18189 END { for (i in files) print i; }'`; \
18190 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
18191 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
18192 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
18193
18194 mostlyclean-tags:
18195
18196 @@ -328,18 +342,6 @@
18197 || cp -p $$d/$$file $(distdir)/$$file || :; \
18198 fi; \
18199 done
18200 -array-test.o: array-test.c ../glib.h ../glibconfig.h
18201 -dirname-test.o: dirname-test.c ../glib.h ../glibconfig.h
18202 -hash-test.o: hash-test.c ../config.h ../glib.h ../glibconfig.h
18203 -list-test.o: list-test.c ../glib.h ../glibconfig.h
18204 -node-test.o: node-test.c ../config.h ../glib.h ../glibconfig.h
18205 -relation-test.o: relation-test.c ../glib.h ../glibconfig.h
18206 -slist-test.o: slist-test.c ../glib.h ../glibconfig.h
18207 -strfunc-test.o: strfunc-test.c ../glib.h ../glibconfig.h
18208 -string-test.o: string-test.c ../glib.h ../glibconfig.h
18209 -tree-test.o: tree-test.c ../glib.h ../glibconfig.h
18210 -type-test.o: type-test.c ../glib.h ../glibconfig.h
18211 -
18212 check-TESTS: $(TESTS)
18213 @failed=0; all=0; \
18214 srcdir=$(srcdir); export srcdir; \
18215 --- glib1.2-1.2.10.orig/debian/rules
18216 +++ glib1.2-1.2.10/debian/rules
18217 @@ -0,0 +1,137 @@
18218 +#!/usr/bin/make -f
18219 +# Sample debian/rules that uses debhelper.
18220 +# GNU copyright 1997 to 1999 by Joey Hess.
18221 +
18222 +# Uncomment this to turn on verbose mode.
18223 +#export DH_VERBOSE=1
18224 +
18225 +# These are used for cross-compiling and for saving the configure script
18226 +# from having to guess our platform (since we know it already)
18227 +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
18228 +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18229 +
18230 +CFLAGS = -Wall -g
18231 +
18232 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18233 + CFLAGS += -O0
18234 +else
18235 + CFLAGS += -O2
18236 +endif
18237 +ifeq (,$(findstring,nostrip,$(DEB_BUILD_OPTIONS)))
18238 + INSTALL_PROGRAM += -s
18239 +endif
18240 +
18241 +# shared library versions, option 1
18242 +version=2.0.5
18243 +major=2
18244 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
18245 +#version=`ls src/.libs/lib*.so.* | \
18246 +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
18247 +#major=`ls src/.libs/lib*.so.* | \
18248 +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
18249 +
18250 +config.status: configure
18251 + dh_testdir
18252 +
18253 + # Add here commands to configure the package.
18254 + ./configure --host=$(DEB_HOST_GNU_TYPE) \
18255 + --build=$(DEB_BUILD_GNU_TYPE) \
18256 + --prefix=/usr \
18257 + --mandir=\$${prefix}/share/man \
18258 + --infodir=\$${prefix}/share/info \
18259 + --enable-debug=yes
18260 +
18261 +build: build-stamp
18262 +build-stamp: config.status
18263 + dh_testdir
18264 +
18265 + # Add here commands to compile the package.
18266 + $(MAKE)
18267 +
18268 + touch $@
18269 +
18270 +clean:
18271 + dh_testdir
18272 + dh_testroot
18273 + rm -f build-stamp
18274 +
18275 + # Add here commands to clean up after the build process.
18276 + -$(MAKE) distclean
18277 +
18278 + -test -r /usr/share/misc/config.sub && \
18279 + cp -r /usr/share/misc/config.sub config.sub
18280 + -test -r /usr/share/misc/config.guess && \
18281 + cp -r /usr/share/misc/config.guess config.guess
18282 +
18283 + dh_clean
18284 +
18285 +install: build
18286 + dh_testdir
18287 + dh_testroot
18288 + dh_clean -k
18289 + dh_installdirs
18290 +
18291 + # Add here commands to install the package into debian/tmp
18292 + $(MAKE) install prefix=$(CURDIR)/debian/libglib1.2/usr
18293 +
18294 + # for -dbg
18295 + mkdir -p $(CURDIR)/debian/libglib1.2/usr/lib/debug
18296 + for l in `find $(CURDIR)/debian/libglib1.2/usr/lib -name '*.so*'`; do \
18297 + cp -vdf $$l \
18298 + $(CURDIR)/debian/libglib1.2/usr/lib/debug/; \
18299 + done
18300 +
18301 + dh_movefiles --sourcedir=debian/libglib1.2
18302 + -find $(CURDIR)/debian/ -type d -empty | xargs rmdir -p 2>&1 > /dev/null
18303 +
18304 +# Build architecture-independent files here.
18305 +binary-indep: build install
18306 + dh_testdir -i
18307 + dh_testroot -i
18308 +
18309 + dh_installdocs -i
18310 +
18311 + dh_installexamples -i
18312 + dh_installinfo -i
18313 + dh_installchangelogs -i ChangeLog
18314 + dh_compress -i
18315 + dh_fixperms -i
18316 + dh_installdeb -i
18317 + dh_gencontrol -i
18318 + dh_md5sums -i
18319 + dh_builddeb -i
18320 +
18321 +# Build architecture-dependent files here.
18322 +binary-arch: build install
18323 + dh_testdir -a
18324 + dh_testroot -a
18325 +
18326 +# dh_installdebconf
18327 + dh_installdocs -a
18328 + dh_installexamples -a
18329 + dh_installmenu -a
18330 +# dh_installlogrotate
18331 +# dh_installemacsen
18332 +# dh_installpam
18333 +# dh_installmime
18334 +# dh_installinit
18335 +# dh_installcron
18336 + dh_installman -a
18337 + dh_installinfo -a
18338 +# dh_undocumented
18339 + dh_installchangelogs -a ChangeLog
18340 + dh_link -a
18341 + dh_strip -a -Nlibglib1.2-dbg
18342 + dh_compress -a
18343 + dh_fixperms -a
18344 + dh_makeshlibs -a -Nlibglib1.2-dbg
18345 + dh_makeshlibs -n -plibglib1.2 -V 'libglib1.2 (>= 1.2.0)'
18346 + dh_installdeb -a
18347 +# dh_perl
18348 + dh_shlibdeps -a
18349 + dh_gencontrol -a
18350 + dh_md5sums -a
18351 + dh_builddeb -a
18352 +
18353 +binary: binary-indep binary-arch
18354 +.PHONY: build clean binary-indep binary-arch binary install
18355 --- glib1.2-1.2.10.orig/debian/docs
18356 +++ glib1.2-1.2.10/debian/docs
18357 @@ -0,0 +1,2 @@
18358 +NEWS
18359 +README
18360 --- glib1.2-1.2.10.orig/debian/README.Debian
18361 +++ glib1.2-1.2.10/debian/README.Debian
18362 @@ -0,0 +1,25 @@
18363 +glib for Debian
18364 +----------------------
18365 +
18366 +This is GLib version 1.2. GLib, is a library which includes support
18367 +routines for C such as lists, trees, hashes, memory allocation, and
18368 +many other things.
18369 +
18370 +Versions of GLib prior to 1.1 are distributed with GTK+ versions 1.1.0
18371 +and earlier.
18372 +
18373 +The GIMP Tool Kit (gtk) is a set of widgets to help you program
18374 +programs for the X Windowing System easily and powerfully.
18375 +
18376 +gtk is the moving force behind The GNU Image Manipulation Program (The
18377 +GIMP) -- the number one freely-available image editing and creation
18378 +program available.
18379 +
18380 +gtk is rapidly under development, and the source tree has officially
18381 +been separated from The GIMP now, as other teams of programmers
18382 +are beginning to write software using its great widget set -- like
18383 +GNOME, a desktop interface for X, and gzilla, a freely available
18384 +web browser for X.
18385 +
18386 +Ben Gertzfield <che@debian.org>, Mon, 29 Sep 1997 13:11:45 -0700
18387 +
18388 --- glib1.2-1.2.10.orig/debian/changelog
18389 +++ glib1.2-1.2.10/debian/changelog
18390 @@ -0,0 +1,298 @@
18391 +glib1.2 (1.2.10-9) unstable; urgency=low
18392 +
18393 + * debian/control:
18394 + - bumped Standards-Version to 3.5.10.0.
18395 + - changed the sections for libglib1.2-dev and libglib1.2-dbg to libdevel.
18396 + * debian/compat:
18397 + - use it instead of DH_COMPAT.
18398 + * gmodule/Makefile.in, gthread/Makefile.in:
18399 + fix the undefined non-weak symbols. (closes: Bug#193347)
18400 +
18401 + -- Akira TAGOH <tagoh@debian.org> Sun, 18 May 2003 00:00:17 +0900
18402 +
18403 +glib1.2 (1.2.10-8) unstable; urgency=low
18404 +
18405 + * Fixed libtool issue on mispel. (closes: Bug#183793)
18406 + * acinclude.m4, ltconfig:
18407 + - removed. it contained the old libtool stuff.
18408 +
18409 + -- Akira TAGOH <tagoh@debian.org> Tue, 11 Mar 2003 23:36:10 +0900
18410 +
18411 +glib1.2 (1.2.10-7) unstable; urgency=low
18412 +
18413 + * debian/rules:
18414 + - fix twice modified the maintainer script for dh_installdocs.
18415 + - support DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE.
18416 + - support noopt and nostrip for DEB_BUILD_OPTIONS.
18417 + - copy the latest config.sub and config.guess. (closes: Bug#181942)
18418 + - don't call ldconfig for -dbg package.
18419 + * debian/control:
18420 + - bumped Standards-Version to 3.5.8.
18421 + - updated Build-Depends.
18422 + - split the documentation files into libglib1.2-doc.
18423 + * debian/libglib1.2-doc.info: add glib.info. (closes: Bug#159677)
18424 +
18425 + -- Akira TAGOH <tagoh@debian.org> Thu, 27 Feb 2003 00:12:39 +0900
18426 +
18427 +glib1.2 (1.2.10-6) unstable; urgency=low
18428 +
18429 + * debian/control:
18430 + - removed libc6-dev from Build-Depends.
18431 + - changed libc6-dev to libc6-dev | libc-dev in -dev's Depends.
18432 +
18433 + -- Akira TAGOH <tagoh@debian.org> Thu, 22 Aug 2002 02:02:32 +0900
18434 +
18435 +glib1.2 (1.2.10-5) unstable; urgency=low
18436 +
18437 + * debian/control: add libc6-dev to Depends for -dev (closes: Bug#147653)
18438 +
18439 + -- Akira TAGOH <tagoh@debian.org> Wed, 22 May 2002 23:58:14 +0900
18440 +
18441 +glib1.2 (1.2.10-4) unstable; urgency=low
18442 +
18443 + * debian/control: Fixed build-depends for NetBSD/i386 (closes: Bug#133443)
18444 +
18445 + -- Akira TAGOH <tagoh@debian.org> Wed, 13 Feb 2002 02:22:20 +0900
18446 +
18447 +glib1.2 (1.2.10-3) unstable; urgency=low
18448 +
18449 + * Closed a NMU bug. (closes: Bug#93932)
18450 + * Fixed description typo (closes: Bug#102988)
18451 + * -dbg package contains shared libraries for debugging. so if you
18452 + need static link, add -static to compiler option and use
18453 + static libraries which is included in libglib1.2-dev.
18454 +
18455 + -- Akira TAGOH <tagoh@debian.org> Sat, 24 Nov 2001 20:54:25 +0900
18456 +
18457 +glib1.2 (1.2.10-2) unstable; urgency=low
18458 +
18459 + * I took over this package from Ben.
18460 + * Closed a bug because it is already fixed in the latest release.
18461 + (closes: Bug#62463)
18462 +
18463 + -- Akira TAGOH <tagoh@debian.org> Sat, 10 Nov 2001 19:49:14 +0900
18464 +
18465 +glib1.2 (1.2.10-1.2) unstable; urgency=low
18466 +
18467 + * Non-Maintainer Upload, approved by Ben.
18468 + * Updated config.sub and config.guess for ia64 (closes: #93932).
18469 + * If -dev's postinst fails at install-info, have a look at Bug#99816.
18470 +
18471 + -- Jordi Mallach <jordi@debian.org> Sat, 23 Jun 2001 05:28:15 +0200
18472 +
18473 +glib1.2 (1.2.10-1.1) unstable; urgency=low
18474 +
18475 + * Binary-only rebuild because of gcc 2.95 atexit() problem on i386.
18476 + (Closes: #93052)
18477 +
18478 + -- Ben Gertzfield <che@debian.org> Wed, 11 Apr 2001 19:46:27 -0700
18479 +
18480 +glib1.2 (1.2.10-1) unstable; urgency=low
18481 +
18482 + * New upstream version.
18483 + * Patch config.sub for s390 architecture. (Closes: #88553)
18484 +
18485 + -- Ben Gertzfield <che@debian.org> Sun, 1 Apr 2001 21:44:47 -0700
18486 +
18487 +glib1.2 (1.2.9-1) unstable; urgency=low
18488 +
18489 + * New upstream version.
18490 + * Include upstream changelog. (Closes: #59744)
18491 + * Note that the include files have been moved (according to
18492 + upstream) to /usr/include/glib-1.2/, but this should not be a
18493 + problem for anything using glib-config. Please, PLEASE, don't
18494 + submit bugs on my poor packages because your program isn't using
18495 + glib-config!
18496 + * Fix bashisms in debian/rules. (Hah, caught 'em on my own..)
18497 +
18498 + -- Ben Gertzfield <che@debian.org> Fri, 2 Mar 2001 16:18:36 -0800
18499 +
18500 +glib1.2 (1.2.8-2) unstable; urgency=low
18501 +
18502 + * Bump Standards-Version to 3.2.1.
18503 +
18504 + -- Ben Gertzfield <che@debian.org> Sat, 23 Dec 2000 01:31:39 -0800
18505 +
18506 +glib1.2 (1.2.8-1) unstable; urgency=low
18507 +
18508 + * New upstream version.
18509 +
18510 + -- Ben Gertzfield <che@debian.org> Wed, 24 May 2000 19:41:54 -0700
18511 +
18512 +glib1.2 (1.2.7-2) frozen unstable; urgency=medium
18513 +
18514 + * Fix "guard code" in configure.in that tests for gcc version
18515 + greater than 2.8 (will fail when 3.0 comes out.) This fixes
18516 + *half* of the release-critical bug report #55246.
18517 + * The other half of RC bug #55246 is not really a glib problem;
18518 + G_GNUC_EXTENSION arguably should be defined on all platforms, but
18519 + that's up to upstream to change this. It's been reported upstream as
18520 + gnome bug #6328, http://bugs.gnome.org/db/63/6328.html. In any case,
18521 + gentoo should be using G_GINT64_CONSTANT(12345) for portably declaring
18522 + 64-bit constants, instead of the undocumented, internal,
18523 + not-defined-on-all-platforms G_GNUC_EXTENSION. I will be reassigning
18524 + the remainder of RC bug #55246 to gentoo.
18525 +
18526 + -- Ben Gertzfield <che@debian.org> Mon, 28 Feb 2000 12:33:57 -0800
18527 +
18528 +glib1.2 (1.2.7-1) frozen unstable; urgency=low
18529 +
18530 + * To fix i18n problems with GTK+, glib 1.2.7 and gtk+ 1.2.7
18531 + must both make it into frozen.
18532 + * (New upstream version, too. :)
18533 +
18534 + -- Ben Gertzfield <che@debian.org> Thu, 17 Feb 2000 09:12:20 -0800
18535 +
18536 +glib1.2 (1.2.6-1) unstable; urgency=low
18537 +
18538 + * New upstream version.
18539 + * Make sure docs are in /usr/share/doc/libglib1.2 etc.
18540 +
18541 + -- Ben Gertzfield <che@debian.org> Fri, 15 Oct 1999 09:44:19 -0700
18542 +
18543 +glib1.2 (1.2.5-1) unstable; urgency=low
18544 +
18545 + * New upstream version.
18546 +
18547 + -- Ben Gertzfield <che@debian.org> Fri, 24 Sep 1999 09:27:25 -0700
18548 +
18549 +glib1.2 (1.2.4-1) unstable; urgency=low
18550 +
18551 + * New upstream version.
18552 +
18553 + -- Ben Gertzfield <che@debian.org> Tue, 24 Aug 1999 11:10:11 -0700
18554 +
18555 +glib1.2 (1.2.3-2) unstable; urgency=low
18556 +
18557 + * Erg. Make sure -dev depends on exact version of lib, and -dbg
18558 + depends on exact version of -dev and lib.
18559 +
18560 + -- Ben Gertzfield <che@debian.org> Tue, 27 Jul 1999 15:24:33 -0700
18561 +
18562 +glib1.2 (1.2.3-1) unstable; urgency=low
18563 +
18564 + * New upstream version.
18565 +
18566 + -- Ben Gertzfield <che@debian.org> Tue, 11 May 1999 20:55:00 -0700
18567 +
18568 +glib1.2 (1.2.2-1) unstable; urgency=low
18569 +
18570 + * New upstream version.
18571 +
18572 + -- Ben Gertzfield <che@debian.org> Mon, 26 Apr 1999 18:15:06 -0700
18573 +
18574 +glib1.2 (1.2.1-2) unstable; urgency=low
18575 +
18576 + * Recompile with GNU libc 2.1.
18577 +
18578 + -- Ben Gertzfield <che@debian.org> Thu, 15 Apr 1999 13:26:50 -0700
18579 +
18580 +glib1.2 (1.2.1-1) unstable; urgency=low
18581 +
18582 + * New upstream version.
18583 + * Make the shlibs looser; now packages depend on libglib1.2 (>= 1.2.0)
18584 +
18585 + -- Ben Gertzfield <che@debian.org> Thu, 25 Mar 1999 10:33:26 -0800
18586 +
18587 +glib1.2 (1.2.0-1) unstable; urgency=low
18588 +
18589 + * Hallelujah! :) We made it.
18590 +
18591 + -- Ben Gertzfield <che@debian.org> Thu, 25 Feb 1999 22:17:36 -0800
18592 +
18593 +glib1.1.16 (1.1.16-1) unstable; urgency=low
18594 +
18595 + * New upstream version.
18596 +
18597 + -- Ben Gertzfield <che@debian.org> Tue, 16 Feb 1999 16:55:07 -0800
18598 +
18599 +glib1.1.13 (1.1.13-1) unstable; urgency=low
18600 +
18601 + * New upstream version.
18602 +
18603 + -- Ben Gertzfield <che@debian.org> Wed, 20 Jan 1999 18:25:48 -0800
18604 +
18605 +glib1.1.12 (1.1.12-1) unstable; urgency=low
18606 +
18607 + * New upstream version.
18608 +
18609 + -- Ben Gertzfield <che@debian.org> Mon, 4 Jan 1999 14:13:59 -0800
18610 +
18611 +glib1.1.11 (1.1.11-1) unstable; urgency=low
18612 +
18613 + * New upstream version. (They skipped .10.)
18614 +
18615 + -- Ben Gertzfield <che@debian.org> Wed, 30 Dec 1998 21:46:40 -0800
18616 +
18617 +glib1.1.9 (1.1.9-1) unstable; urgency=low
18618 +
18619 + * New upstream version.
18620 + * Now debian/rules uses a $(version) variable to make my life easier.
18621 +
18622 + -- Ben Gertzfield <che@debian.org> Thu, 17 Dec 1998 10:36:27 -0800
18623 +
18624 +glib1.1.6 (1.1.6-1) unstable; urgency=low
18625 +
18626 + * New upstream version.
18627 +
18628 + -- Ben Gertzfield <che@debian.org> Tue, 8 Dec 1998 20:54:59 -0800
18629 +
18630 +glib1.1.5 (1.1.5-2) unstable; urgency=low
18631 +
18632 + * Now libglib1.1.5-dev Provides: libglib-dev and libglib1.1-dev.
18633 +
18634 + -- Ben Gertzfield <che@debian.org> Sun, 29 Nov 1998 17:59:52 -0800
18635 +
18636 +glib1.1.5 (1.1.5-1) unstable; urgency=low
18637 +
18638 + * Now the source and binary packages *all* specifically have the version
18639 + number in them. This is so a new release of glib or gtk+ does not break
18640 + all apps dependant upon glib or gtk+'s unstable branch.
18641 + * Removed --enable-debug=no from libglib1.1 build; it was causing problems
18642 +
18643 + -- Ben Gertzfield <che@debian.org> Tue, 24 Nov 1998 14:25:15 -0800
18644 +
18645 +glib (1.1.4-1) unstable; urgency=low
18646 +
18647 + * New upstream version.
18648 + * debian/control: libglib-dev and libglib-dbg now depend on ${Source-Version}
18649 + of libglib1.1 to make upgrades force you to have one version of the library
18650 + and -dev and -dbg, no more multiple versions allowed.
18651 +
18652 + -- Ben Gertzfield <che@debian.org> Thu, 5 Nov 1998 10:50:03 -0800
18653 +
18654 +glib (1.1.3-2) unstable; urgency=low
18655 +
18656 + * Rebuild with new clean-dbg target to fix my error helped along by
18657 + an old broken debhelper.
18658 +
18659 + -- Ben Gertzfield <che@debian.org> Tue, 29 Sep 1998 13:01:24 -0700
18660 +
18661 +glib (1.1.3-1) unstable; urgency=low
18662 +
18663 + * New upstream version.
18664 + * New libglib-dbg package.
18665 +
18666 + -- Ben Gertzfield <che@debian.org> Mon, 21 Sep 1998 22:30:46 -0700
18667 +
18668 +glib (1.1.2-1) unstable; urgency=low
18669 +
18670 + * New upstream version (that was fast!).
18671 +
18672 + -- Ben Gertzfield <che@debian.org> Wed, 5 Aug 1998 12:13:59 -0700
18673 +
18674 +glib (1.1.1-1) unstable; urgency=low
18675 +
18676 + * New upstream version.
18677 +
18678 + -- Ben Gertzfield <che@debian.org> Tue, 4 Aug 1998 22:42:09 -0700
18679 +
18680 +glib (1.1.0-1) unstable; urgency=low
18681 +
18682 + * Split off of GTK+ package upstream. New package.
18683 +
18684 + -- Ben Gertzfield <che@debian.org> Mon, 27 Jul 1998 14:11:04 -0700
18685 +
18686 +Local variables:
18687 +mode: debian-changelog
18688 +End:
18689 --- glib1.2-1.2.10.orig/debian/control
18690 +++ glib1.2-1.2.10/debian/control
18691 @@ -0,0 +1,73 @@
18692 +Source: glib1.2
18693 +Priority: optional
18694 +Section: libs
18695 +Maintainer: Akira TAGOH <tagoh@debian.org>
18696 +Standards-Version: 3.5.10.0
18697 +Build-Depends: debhelper (>> 4.0.0), libpth-dev [netbsd-i386], autotools-dev
18698 +
18699 +Package: libglib1.2
18700 +Architecture: any
18701 +Section: libs
18702 +Depends: ${shlibs:Depends}
18703 +Replaces: libgtk-doc
18704 +Description: The GLib library of C routines
18705 + GLib is a library containing many useful C routines for things such
18706 + as trees, hashes, and lists. GLib was previously distributed with
18707 + the GTK+ toolkit, but has been split off as of the developers' version
18708 + 1.1.0.
18709 + .
18710 + You do not need to install this package if you have libgtk1 (note 1,
18711 + not 1.1 or 1.2) installed. libgtk1 included libglib in it. libgtk1.1
18712 + and libgtk1.2, however, do need libglib1.1 to be installed separately.
18713 +
18714 +Package: libglib1.2-dev
18715 +Architecture: any
18716 +Section: libdevel
18717 +Depends: libglib1.2 (= ${Source-Version}), libc6-dev | libc-dev, pkg-config
18718 +Conflicts: libglib-dev, libglib1.1.5-dev, libglib1.1.7-dev, libglib1.1.8-dev, libglib1.1.9-dev, libglib1.1.10-dev, libglib1.1.11-dev, libglib1.1.12-dev, libglib1.1.13-dev, libglib1.1.16-dev, libglib1.2 (<< 1.2.10-3)
18719 +Provides: libglib-dev, libglib1.1-dev
18720 +Replaces: libgtk-doc, libglib1.1.5-dev, libglib1.1.6-dev, libglib1.1.9-dev, libglib1.1.11-dev, libglib1.1.12-dev, libglib1.1.13-dev, libglib1.1.16-dev, libglib1.2 (<< 1.2.10-3)
18721 +Suggests: libglib1.2-doc
18722 +Description: Development files for GLib library
18723 + GLib is a library containing many useful C routines for things such
18724 + as trees, hashes, and lists. GLib was previously distributed with
18725 + the GTK+ toolkit, but has been split off as of the developers' version
18726 + 1.1.0.
18727 + .
18728 + This package contains the header files and static libraries for the
18729 + GLib C library
18730 +
18731 +Package: libglib1.2-dbg
18732 +Architecture: any
18733 +Section: libdevel
18734 +Priority: extra
18735 +Conflicts: libgtk-dev
18736 +Depends: libglib1.2 (= ${Source-Version})
18737 +Conflicts: libglib-dbg, libglib1.1.5-dbg, libglib1.1.7-dbg, libglib1.1.8-dbg, libglib1.1.9-dbg, libglib1.1.11-dbg, libglib1.1.12-dbg, libglib1.1.13-dbg, libglib1.1.16-dbg
18738 +Replaces: libglib1.1.5-dbg, libglib1.1.6-dbg, libglib1.1.9-dbg, libglib1.1.11-dbg, libglib1.1.12-dbg, libglib1.1.13-dbg, libglib1.1.16-dbg
18739 +Description: GLib libraries and debugging symbols
18740 + GLib is a library containing many useful C routines for things such
18741 + as trees, hashes, and lists. GLib was previously distributed with
18742 + the GTK+ toolkit, but has been split off as of the developers' version
18743 + 1.1.0.
18744 + .
18745 + This package contains unstripped shared libraries. it is provided
18746 + primarily to provide a backtrace with names in a debugger, this makes
18747 + it somewhat easier to interpret core dumps. The libraries are installed
18748 + in /usr/lib/debug and can be used by placing that directory in
18749 + LD_LIBRARY_PATH.
18750 + Most people will not need this package.
18751 +
18752 +Package: libglib1.2-doc
18753 +Architecture: all
18754 +Section: doc
18755 +Depends: lynx | www-browser
18756 +Description: Documentation files for the GLib library version 1.2
18757 + GLib is a library containing many useful C routines for things such
18758 + as trees, hashes, and lists. GLib was previously distributed with
18759 + the GTK+ toolkit, but has been split off as of the developers' version
18760 + 1.1.0.
18761 + .
18762 + This package contains the documentation files for the GLib library
18763 + in /usr/share/doc/libglib1.2-doc/ .
18764 +
18765 --- glib1.2-1.2.10.orig/debian/copyright
18766 +++ glib1.2-1.2.10/debian/copyright
18767 @@ -0,0 +1,8 @@
18768 +This package was debianized by Ben Gertzfield <che@debian.org>
18769 +on Mon, 27 Jul 1998 14:17:44 -0700
18770 +
18771 +GIMP's source may be fetched from http://www.gimp.org/ .
18772 +
18773 +It may be redistributed under the terms of the GNU LGPL, Version 2 or
18774 +later, found on Debian systems in the file /usr/share/common-licenses/LGPL-2.
18775 +
18776 --- glib1.2-1.2.10.orig/debian/compat
18777 +++ glib1.2-1.2.10/debian/compat
18778 @@ -0,0 +1 @@
18779 +4
18780 --- glib1.2-1.2.10.orig/debian/libglib1.2-dbg.dirs
18781 +++ glib1.2-1.2.10/debian/libglib1.2-dbg.dirs
18782 @@ -0,0 +1 @@
18783 +usr/lib/debug
18784 --- glib1.2-1.2.10.orig/debian/libglib1.2-dbg.files
18785 +++ glib1.2-1.2.10/debian/libglib1.2-dbg.files
18786 @@ -0,0 +1 @@
18787 +usr/lib/debug/*.so*
18788 --- glib1.2-1.2.10.orig/debian/libglib1.2-dev.dirs
18789 +++ glib1.2-1.2.10/debian/libglib1.2-dev.dirs
18790 @@ -0,0 +1,4 @@
18791 +usr/include
18792 +usr/lib
18793 +usr/lib/pkgconfig
18794 +
18795 --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.doc-base
18796 +++ glib1.2-1.2.10/debian/libglib1.2-doc.doc-base
18797 @@ -0,0 +1,16 @@
18798 +Document: glib-docs
18799 +Title: GLib C library documentation
18800 +Author: Gregory McLean
18801 +Abstract: Library reference for GLib C library of useful functions
18802 + This document goes into detail on each function of the GLib C
18803 + library of useful functions to deal with common structures like
18804 + lists, trees, et cetera.
18805 +Section: Apps/Programming
18806 +
18807 +Format: texinfo
18808 +Files: /usr/share/doc/libglib1.2-doc/glib.texi.gz
18809 +
18810 +Format: HTML
18811 +Index: /usr/share/doc/libglib1.2-doc/glib_toc.html
18812 +Files: /usr/share/doc/libglib1.2-doc/glib.html
18813 +
18814 --- glib1.2-1.2.10.orig/debian/libglib1.2-dev.files
18815 +++ glib1.2-1.2.10/debian/libglib1.2-dev.files
18816 @@ -0,0 +1,7 @@
18817 +usr/bin/glib-config
18818 +usr/include/*
18819 +usr/lib/lib*.{so,la,a}
18820 +usr/lib/glib/include/*
18821 +usr/lib/pkgconfig/*.pc
18822 +usr/share/aclocal/*m4
18823 +usr/share/man/man1/glib-config.1*
18824 --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.dirs
18825 +++ glib1.2-1.2.10/debian/libglib1.2-doc.dirs
18826 @@ -0,0 +1 @@
18827 +usr/share/doc/libglib1.2-doc
18828 --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.files
18829 +++ glib1.2-1.2.10/debian/libglib1.2-doc.files
18830 @@ -0,0 +1,2 @@
18831 +usr/share/doc/libglib1.2-doc/*
18832 +usr/share/info/*
18833 --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.docs
18834 +++ glib1.2-1.2.10/debian/libglib1.2-doc.docs
18835 @@ -0,0 +1,2 @@
18836 +docs/*.html
18837 +docs/*.texi
18838 --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.info
18839 +++ glib1.2-1.2.10/debian/libglib1.2-doc.info
18840 @@ -0,0 +1 @@
18841 +docs/glib.info
18842 --- glib1.2-1.2.10.orig/glibconfig.h
18843 +++ glib1.2-1.2.10/glibconfig.h
18844 @@ -0,0 +1,131 @@
18845 +/* glibconfig.h
18846 + *
18847 + * This is a generated file. Please modify `configure.in'
18848 + */
18849 +
18850 +#ifndef GLIBCONFIG_H
18851 +#define GLIBCONFIG_H
18852 +
18853 +#include <limits.h>
18854 +#include <float.h>
18855 +#define GLIB_HAVE_SYS_POLL_H
18856 +
18857 +#ifdef __cplusplus
18858 +extern "C" {
18859 +#endif /* __cplusplus */
18860 +
18861 +#define G_MINFLOAT FLT_MIN
18862 +#define G_MAXFLOAT FLT_MAX
18863 +#define G_MINDOUBLE DBL_MIN
18864 +#define G_MAXDOUBLE DBL_MAX
18865 +#define G_MINSHORT SHRT_MIN
18866 +#define G_MAXSHORT SHRT_MAX
18867 +#define G_MININT INT_MIN
18868 +#define G_MAXINT INT_MAX
18869 +#define G_MINLONG LONG_MIN
18870 +#define G_MAXLONG LONG_MAX
18871 +
18872 +typedef signed char gint8;
18873 +typedef unsigned char guint8;
18874 +typedef signed short gint16;
18875 +typedef unsigned short guint16;
18876 +typedef signed int gint32;
18877 +typedef unsigned int guint32;
18878 +
18879 +#if defined (__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
18880 +# define G_GNUC_EXTENSION __extension__
18881 +#else
18882 +# define G_GNUC_EXTENSION
18883 +#endif
18884 +
18885 +#define G_HAVE_GINT64 1
18886 +
18887 +G_GNUC_EXTENSION typedef signed long long gint64;
18888 +G_GNUC_EXTENSION typedef unsigned long long guint64;
18889 +
18890 +#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
18891 +
18892 +#define GPOINTER_TO_INT(p) ((gint) (p))
18893 +#define GPOINTER_TO_UINT(p) ((guint) (p))
18894 +
18895 +#define GINT_TO_POINTER(i) ((gpointer) (i))
18896 +#define GUINT_TO_POINTER(u) ((gpointer) (u))
18897 +
18898 +#ifdef NeXT /* @#%@! NeXTStep */
18899 +# define g_ATEXIT(proc) (!atexit (proc))
18900 +#else
18901 +# define g_ATEXIT(proc) (atexit (proc))
18902 +#endif
18903 +
18904 +#define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
18905 +
18906 +#define GLIB_MAJOR_VERSION 1
18907 +#define GLIB_MINOR_VERSION 2
18908 +#define GLIB_MICRO_VERSION 10
18909 +
18910 +
18911 +#define G_VA_COPY __va_copy
18912 +
18913 +#ifdef __cplusplus
18914 +#define G_HAVE_INLINE 1
18915 +#else /* !__cplusplus */
18916 +#define G_HAVE_INLINE 1
18917 +#define G_HAVE___INLINE 1
18918 +#define G_HAVE___INLINE__ 1
18919 +#endif /* !__cplusplus */
18920 +
18921 +#define G_THREADS_ENABLED
18922 +#define G_THREADS_IMPL_POSIX
18923 +typedef struct _GStaticMutex GStaticMutex;
18924 +struct _GStaticMutex
18925 +{
18926 + struct _GMutex *runtime_mutex;
18927 + union {
18928 + char pad[24];
18929 + double dummy_double;
18930 + void *dummy_pointer;
18931 + long dummy_long;
18932 + } aligned_pad_u;
18933 +};
18934 +#define G_STATIC_MUTEX_INIT { NULL, { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } }
18935 +#define g_static_mutex_get_mutex(mutex) (g_thread_use_default_impl ? ((GMutex*) &((mutex)->aligned_pad_u)) : g_static_mutex_get_mutex_impl (&((mutex)->runtime_mutex)))
18936 +
18937 +#define GINT16_TO_LE(val) ((gint16) (val))
18938 +#define GUINT16_TO_LE(val) ((guint16) (val))
18939 +#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
18940 +#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
18941 +#define GINT32_TO_LE(val) ((gint32) (val))
18942 +#define GUINT32_TO_LE(val) ((guint32) (val))
18943 +#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
18944 +#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
18945 +#define GINT64_TO_LE(val) ((gint64) (val))
18946 +#define GUINT64_TO_LE(val) ((guint64) (val))
18947 +#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
18948 +#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
18949 +#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
18950 +#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
18951 +#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
18952 +#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
18953 +#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
18954 +#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
18955 +#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
18956 +#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
18957 +#define G_BYTE_ORDER G_LITTLE_ENDIAN
18958 +
18959 +#define GLIB_SYSDEF_POLLIN =1
18960 +#define GLIB_SYSDEF_POLLOUT =4
18961 +#define GLIB_SYSDEF_POLLPRI =2
18962 +#define GLIB_SYSDEF_POLLERR =8
18963 +#define GLIB_SYSDEF_POLLHUP =16
18964 +#define GLIB_SYSDEF_POLLNVAL =32
18965 +
18966 +
18967 +#define G_HAVE_WCHAR_H 1
18968 +#define G_HAVE_WCTYPE_H 1
18969 +
18970 +
18971 +#ifdef __cplusplus
18972 +}
18973 +#endif /* __cplusplus */
18974 +
18975 +#endif /* GLIBCONFIG_H */
18976 --- glib1.2-1.2.10.orig/stamp-gc-h
18977 +++ glib1.2-1.2.10/stamp-gc-h
18978 @@ -0,0 +1 @@
18979 +timestamp
18980 --- glib1.2-1.2.10.orig/glibconfig-sysdefs.h
18981 +++ glib1.2-1.2.10/glibconfig-sysdefs.h
18982 @@ -0,0 +1,6 @@
18983 +#define GLIB_SYSDEF_POLLIN =1
18984 +#define GLIB_SYSDEF_POLLOUT =4
18985 +#define GLIB_SYSDEF_POLLPRI =2
18986 +#define GLIB_SYSDEF_POLLERR =8
18987 +#define GLIB_SYSDEF_POLLHUP =16
18988 +#define GLIB_SYSDEF_POLLNVAL =32
This page took 0.941672 seconds and 5 git commands to generate.