1 --- glib1.2-1.2.10.orig/Makefile.in
2 +++ glib1.2-1.2.10/Makefile.in
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
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.
17 ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
18 ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
20 GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
21 GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
22 GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
33 AUTOMAKE_OPTIONS = 1.4
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 \
38 +noinst_PROGRAMS = testglib$(EXEEXT) testgdate$(EXEEXT) \
39 +testgdateparser$(EXEEXT)
40 PROGRAMS = $(noinst_PROGRAMS)
42 testglib_SOURCES = testglib.c
43 -testglib_OBJECTS = testglib.o
44 +testglib_OBJECTS = testglib.$(OBJEXT)
45 testglib_DEPENDENCIES = libglib.la
47 testgdate_SOURCES = testgdate.c
48 -testgdate_OBJECTS = testgdate.o
49 +testgdate_OBJECTS = testgdate.$(OBJEXT)
50 testgdate_DEPENDENCIES = libglib.la
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)
59 HEADERS = $(glibinclude_HEADERS)
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 \
72 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
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)
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
90 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
92 -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4
93 +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
94 cd $(srcdir) && $(ACLOCAL)
96 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
101 +# FIXME: We should only use cygpath when building on Windows,
102 +# and only if it is available.
104 + $(COMPILE) -c `cygpath -w $<`
112 -rm -f *.o core *.core
117 @@ -324,16 +336,16 @@
119 maintainer-clean-noinstPROGRAMS:
121 -testglib: $(testglib_OBJECTS) $(testglib_DEPENDENCIES)
123 +testglib$(EXEEXT): $(testglib_OBJECTS) $(testglib_DEPENDENCIES)
124 + @rm -f testglib$(EXEEXT)
125 $(LINK) $(testglib_LDFLAGS) $(testglib_OBJECTS) $(testglib_LDADD) $(LIBS)
127 -testgdate: $(testgdate_OBJECTS) $(testgdate_DEPENDENCIES)
129 +testgdate$(EXEEXT): $(testgdate_OBJECTS) $(testgdate_DEPENDENCIES)
130 + @rm -f testgdate$(EXEEXT)
131 $(LINK) $(testgdate_LDFLAGS) $(testgdate_OBJECTS) $(testgdate_LDADD) $(LIBS)
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)
139 install-binSCRIPTS: $(bin_SCRIPTS)
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; \
147 test "$$dot_seen" = "no" && rev=". $$rev"; \
148 target=`echo $@ | sed s/-recursive//`; \
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))
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
194 --- glib1.2-1.2.10.orig/aclocal.m4
195 +++ glib1.2-1.2.10/aclocal.m4
197 -dnl aclocal.m4 generated automatically by aclocal 1.4
198 +dnl aclocal.m4 generated automatically by aclocal 1.4-p6
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.
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.
213 -# serial 40 AC_PROG_LIBTOOL
214 -AC_DEFUN(AC_PROG_LIBTOOL,
215 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
219 +dnl AM_INIT_AUTOMAKE(package,version, [no-define])
221 +AC_DEFUN([AM_INIT_AUTOMAKE],
222 +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
223 +AC_REQUIRE([AC_PROG_INSTALL])
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])
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])])
246 +# Copyright 2002 Free Software Foundation, Inc.
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.
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.
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
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"])
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])])
276 +# Check to make sure that the build environment is sane.
279 +AC_DEFUN([AM_SANITY_CHECK],
280 +[AC_MSG_CHECKING([whether build environment is sane])
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
290 + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
291 + if test "[$]*" = "X"; then
293 + set X `ls -t $srcdir/configure conftestfile`
295 + if test "[$]*" != "X $srcdir/configure conftestfile" \
296 + && test "[$]*" != "X conftestfile $srcdir/configure"; then
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])
306 + test "[$]2" = conftestfile
312 + AC_MSG_ERROR([newly created file is older than distributed files!
313 +Check your system clock])
316 +AC_MSG_RESULT(yes)])
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
327 + AC_MSG_RESULT(found)
330 + AC_MSG_RESULT(missing)
334 +# Like AC_CONFIG_HEADER, but automatically create stamp file.
336 +AC_DEFUN([AM_CONFIG_HEADER],
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>>,
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
353 + am_indx=`expr "<<$>>am_indx" + 1`
357 -# Save cache, so that ltconfig can load it
359 +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
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
371 -# Reload cache, that may have been modified by ltconfig
373 +AC_DEFUN([AC_PROG_LIBTOOL],
374 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
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"
380 # Always use our own libtool.
381 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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], [])
391 -AC_DEFUN(AC_LIBTOOL_SETUP,
392 +AC_DEFUN([AC_LIBTOOL_SETUP],
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
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
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
419 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
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, :)
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)
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
448 +# Some flags need to be propagated to the compiler or linker for good
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
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,
477 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
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"
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)
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,
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])])
500 + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
501 + # old mingw systems require "-dll" to link a DLL, while more recent ones
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" ;;
517 +_LT_AC_LTCONFIG_HACK
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],
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 ;;
537 +if test "x$lt_cv_func_assert_works" = xyes; then
538 + AC_CHECK_HEADERS(assert.h)
540 +])# AC_LIBTOOL_HEADER_ASSERT
542 +# _LT_AC_CHECK_DLFCN
543 +# --------------------
544 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
545 +[AC_CHECK_HEADERS(dlfcn.h)
546 +])# _LT_AC_CHECK_DLFCN
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
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?!! ;)]
561 +# Character class describing NM global symbol codes.
562 +symcode='[[BCDEGRST]]'
564 +# Regexp to match symbols that can be accessed directly from C.
565 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
567 +# Transform the above into a raw symbol and a C symbol.
568 +symxfrm='\1 \2\3 \3'
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'"
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'"
576 +# Define system-specific variables.
581 +cygwin* | mingw* | pw32*)
582 + symcode='[[ABCDGISTW]]'
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'"
589 + symcode='[[BCDEGRST]]'
592 + symcode='[[BCDEGQRST]]'
598 + symcode='[[DFNSTU]]'
602 +# Handle CRLF in mingw tool chain
606 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
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]]'
615 +# Try without a prefix undercore, then with it.
616 +for ac_symprfx in "" "_"; do
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'"
621 + # Check to see that the pipe works correctly.
624 + cat > conftest.$ac_ext <<EOF
629 +void nm_test_func(){}
633 +int main(){nm_test_var='a';nm_test_func();return(0);}
636 + if AC_TRY_EVAL(ac_compile); then
637 + # Now try to grab the symbols.
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"
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
656 + # Now generate the symbol file.
657 + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
659 + cat <<EOF >> conftest.$ac_ext
660 +#if defined (__STDC__) && __STDC__
661 +# define lt_ptr void *
663 +# define lt_ptr char *
667 +/* The mapping between symbol names and symbols. */
672 +lt_preloaded_symbols[[]] =
675 + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
676 + cat <<\EOF >> conftest.$ac_ext
684 + # Now try linking the two files.
685 + mv conftest.$ac_objext conftstm.$ac_objext
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
694 + CFLAGS="$save_CFLAGS"
696 + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
699 + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
702 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
705 + echo "$progname: failed program was:" >&AC_FD_CC
706 + cat conftest.$ac_ext >&5
708 + rm -f conftest* conftst*
710 + # Do not use the global_symbol_pipe unless it works.
711 + if test "$pipe_works" = yes; then
714 + lt_cv_sys_global_symbol_pipe=
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=
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"
726 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
728 + AC_MSG_RESULT(failed)
732 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
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`}
742 + *-DOS) lt_cv_sys_path_separator=';' ;;
743 + *) lt_cv_sys_path_separator=':' ;;
745 + PATH_SEPARATOR=$lt_cv_sys_path_separator
747 +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
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
758 +# Check that we are running under the correct shell.
759 +SHELL=${CONFIG_SHELL-/bin/sh}
763 + # Remove one level of quotation (which was required for Make).
764 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
769 +if test "X[$]1" = X--no-reexec; then
770 + # Discard the --no-reexec flag, and continue.
772 +elif test "X[$]1" = X--fallback-echo; then
773 + # Avoid inline document here, it may be left over
775 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
776 + # Yippee, $echo works!
779 + # Restart under the correct shell.
780 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
783 +if test "X[$]1" = X--fallback-echo; then
784 + # used as fallback echo
792 +# The HP-UX ksh and POSIX shell print the target directory to stdout
794 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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
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
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'
819 + # So, first we look for a working echo in the user's PATH.
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
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.
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+"[$]@"}
849 + # Try using printf.
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
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"
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"
871 + # maybe with a smaller string...
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
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+"[$]@"}
887 + # Oops. We lost completely, so just stick with echo.
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.
899 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
900 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
905 +])# _LT_AC_PROG_ECHO_BACKSLASH
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 :
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"
928 +# define LT_DLGLOBAL RTLD_GLOBAL
931 +# define LT_DLGLOBAL DL_GLOBAL
933 +# define LT_DLGLOBAL 0
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
941 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
944 +# define LT_DLLAZY_OR_NOW DL_LAZY
947 +# define LT_DLLAZY_OR_NOW RTLD_NOW
950 +# define LT_DLLAZY_OR_NOW DL_NOW
952 +# define LT_DLLAZY_OR_NOW 0
960 +extern "C" void exit (int);
963 +void fnord() { int i=42;}
966 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
967 + int status = $lt_dlunknown;
971 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
972 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
973 + /* dlclose (self); */
979 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
980 + (./conftest; exit; ) 2>/dev/null
982 + case x$lt_status in
983 + x$lt_dlno_uscore) $1 ;;
984 + x$lt_dlneed_uscore) $2 ;;
985 + x$lt_unknown|x*) $3 ;;
988 + # compilation failed
993 +])# _LT_AC_TRY_DLOPEN_SELF
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
1004 + lt_cv_dlopen_libs=
1008 + lt_cv_dlopen="load_add_on"
1009 + lt_cv_dlopen_libs=
1010 + lt_cv_dlopen_self=yes
1013 + cygwin* | mingw* | pw32*)
1014 + lt_cv_dlopen="LoadLibrary"
1015 + lt_cv_dlopen_libs=
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"])
1039 + if test "x$lt_cv_dlopen" != xno; then
1045 + case $lt_cv_dlopen in
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"
1051 + save_LDFLAGS="$LDFLAGS"
1052 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1055 + LIBS="$lt_cv_dlopen_libs $LIBS"
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)
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)
1074 + CPPFLAGS="$save_CPPFLAGS"
1075 + LDFLAGS="$save_LDFLAGS"
1080 + case $lt_cv_dlopen_self in
1081 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1082 + *) enable_dlopen_self=unknown ;;
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 ;;
1090 +])# AC_LIBTOOL_DLOPEN_SELF
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'
1099 +# Same as above, but do not quote variable references.
1100 +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
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'
1109 +# Global variables:
1110 +default_ofile=libtool
1111 +can_build_shared=yes
1113 +# All known linkers require a `.a' archive for static linking (except M$VC,
1114 +# which needs '.lib').
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"
1122 +old_CFLAGS="$CFLAGS"
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
1139 +if test x"$host" != x"$build"; then
1140 + ac_tool_prefix=${host_alias}-
1145 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
1148 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
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
1158 + export COLLECT_NAMES
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=
1168 +if test -n "$RANLIB"; then
1171 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1174 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1177 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1180 +# Allow CC to be a program name with arguments.
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
1190 + # MS-DOS does not allow filenames that begin with a dot.
1193 +rmdir .libs 2>/dev/null
1194 +AC_MSG_RESULT($objdir)
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
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=
1210 + lt_cv_prog_cc_static=
1211 + lt_cv_prog_cc_no_builtin=
1212 + lt_cv_prog_cc_can_build_shared=$can_build_shared
1214 + if test "$GCC" = yes; then
1215 + lt_cv_prog_cc_wl='-Wl,'
1216 + lt_cv_prog_cc_static='-static'
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"
1229 + # FIXME: we need at least 68020 code to build shared libraries, but
1230 + # adding the `-m68020' flag to GCC prevents building anything better,
1232 + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
1234 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1235 + # PIC is the default for these OSes.
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'
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'
1248 + if test -d /usr/nec; then
1249 + lt_cv_prog_cc_pic=-Kconform_pic
1253 + lt_cv_prog_cc_pic='-fPIC'
1257 + # PORTME Check for PIC flags for the system compiler.
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'
1266 + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
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'
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.
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'
1290 + lt_cv_prog_cc_pic='-KPIC'
1291 + lt_cv_prog_cc_static='-Bstatic'
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'
1301 + lt_cv_prog_cc_pic='-Kpic'
1302 + lt_cv_prog_cc_static='-dn'
1303 + lt_cv_prog_cc_shlib='-belf'
1307 + lt_cv_prog_cc_pic='-KPIC'
1308 + lt_cv_prog_cc_static='-Bstatic'
1309 + lt_cv_prog_cc_wl='-Wl,'
1313 + lt_cv_prog_cc_pic='-PIC'
1314 + lt_cv_prog_cc_static='-Bstatic'
1315 + lt_cv_prog_cc_wl='-Qoption ld '
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,'
1325 + lt_cv_prog_cc_pic='-pic'
1326 + lt_cv_prog_cc_static='-Bstatic'
1330 + if test -d /usr/nec ;then
1331 + lt_cv_prog_cc_pic='-Kconform_pic'
1332 + lt_cv_prog_cc_static='-Bstatic'
1337 + lt_cv_prog_cc_can_build_shared=no
1342 +if test -z "$lt_cv_prog_cc_pic"; then
1343 + AC_MSG_RESULT([none])
1345 + AC_MSG_RESULT([$lt_cv_prog_cc_pic])
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
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
1361 + lt_cv_prog_cc_pic_works=yes
1365 + lt_cv_prog_cc_pic_works=yes
1369 + lt_cv_prog_cc_pic_works=no
1371 + CFLAGS="$save_CFLAGS"
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
1378 + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
1381 + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
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 :
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
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"
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])
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"
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
1421 +echo "int some_variable = 0;" > conftest.$ac_ext
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
1429 +save_CFLAGS="$CFLAGS"
1430 +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
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
1438 + lt_cv_compiler_c_o=yes
1441 + # Append any errors to the config.log.
1442 + cat out/conftest.err 1>&AC_FD_CC
1443 + lt_cv_compiler_c_o=no
1445 +CFLAGS="$save_CFLAGS"
1447 +$rm conftest* out/*
1451 +$rm -r conftest 2>/dev/null
1453 +compiler_c_o=$lt_cv_compiler_c_o
1454 +AC_MSG_RESULT([$compiler_c_o])
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"
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
1471 + lt_cv_compiler_o_lo=yes
1474 + ac_objext="$save_objext"
1475 + CFLAGS="$save_CFLAGS"
1477 + compiler_o_lo=$lt_cv_compiler_o_lo
1478 + AC_MSG_RESULT([$compiler_o_lo])
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])
1490 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
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])
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
1516 + compiler_rtti_exceptions=yes
1519 + CFLAGS="$save_CFLAGS"
1520 + AC_MSG_RESULT([$compiler_rtti_exceptions])
1522 + if test "$compiler_rtti_exceptions" = "yes"; then
1523 + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
1525 + no_builtin_flag=' -fno-builtin'
1529 +# See if the linker supports building shared libraries.
1530 +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
1532 +allow_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
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=
1549 +hardcode_minus_L=no
1550 +hardcode_shlibpath_var=unsupported
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
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=
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
1585 +if test "$with_gnu_ld" = yes; then
1586 + # If archive_cmds runs LD, not CC, wlarc should be empty
1589 + # See if GNU ld supports shared libraries.
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.
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.
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
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
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'
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
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'
1645 + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
1647 + # cygwin and mingw dlls have different entry points and sets of symbols
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~
1655 + dll_entry=_DllMainCRTStartup@12
1656 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
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
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)~'
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'
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;
1689 + echo EXPORTS > $output_objdir/$soname-def;
1691 + cat $export_symbols | while read symbol; do
1692 + set dummy \$symbol;
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;;
1698 + _lt_hint=`expr 1 + \$_lt_hint`;
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'
1710 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1711 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
1719 + solaris* | sysv5*)
1720 + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
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.
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'
1741 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1743 + hardcode_direct=yes
1744 + hardcode_shlibpath_var=no
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'
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'
1762 + cygwin* | mingw* | pw32*)
1763 + # dlltool doesn't understand --whole-archive et. al.
1764 + whole_archive_flag_spec=
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'
1771 + whole_archive_flag_spec=
1777 + # PORTME fill in a description of your system's linker (not GNU ld)
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
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'
1801 + aix_use_runtimelinking=no
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
1810 + aix_use_runtimelinking=yes
1817 + exp_sym_flag='-bexport'
1818 + no_entry_flag='-bnoentry'
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.
1827 + hardcode_direct=yes
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
1836 + # We have reworked collect2
1837 + hardcode_direct=yes
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=
1850 + shared_flag='-shared'
1853 + if test "$host_cpu" = ia64; then
1854 + shared_flag='${wl}-G'
1856 + if test "$aix_use_runtimelinking" = yes; then
1857 + shared_flag='${wl}-G'
1859 + shared_flag='${wl}-bM:SRE'
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"
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"
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'
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
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.
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"`'
1916 + darwin* | rhapsody*)
1917 + case "$host_os" in
1918 + rhapsody* | darwin1.[[012]])
1919 + allow_undefined_flag='-undefined suppress'
1921 + *) # Darwin 1.3 on
1922 + allow_undefined_flag='-flat_namespace -undefined suppress'
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'
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
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
1952 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
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
1960 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
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
1968 + hpux9* | hpux10* | hpux11*)
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' ;;
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'
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'
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'
1989 + hardcode_libdir_separator=:
1990 + link_all_deplibs=yes
1994 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1995 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1997 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1999 + hardcode_libdir_flag_spec='-R$libdir'
2000 + hardcode_direct=yes
2001 + hardcode_shlibpath_var=no
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
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'
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'
2026 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2027 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
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'
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'
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'
2049 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2050 + hardcode_libdir_separator=:
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'
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'
2064 + #Both c and cxx compiler support -rpath directly
2065 + hardcode_libdir_flag_spec='-rpath $libdir'
2067 + hardcode_libdir_separator=:
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'
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
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.
2104 + no_undefined_flag=
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
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' ;;
2120 + link_all_deplibs=yes
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'
2129 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
2131 + hardcode_libdir_flag_spec='-L$libdir'
2132 + hardcode_direct=yes
2133 + hardcode_minus_L=yes
2134 + hardcode_shlibpath_var=no
2138 + case $host_vendor in
2140 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2141 + hardcode_direct=yes # is this really true???
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
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
2155 + runpath_var='LD_RUN_PATH'
2156 + hardcode_shlibpath_var=no
2160 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2161 + hardcode_shlibpath_var=no
2162 + export_dynamic_flag_spec='-Bexport'
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'
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
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
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
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
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'
2213 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2215 + runpath_var='LD_RUN_PATH'
2216 + hardcode_shlibpath_var=no
2224 +AC_MSG_RESULT([$ld_shlibs])
2225 +test "$ld_shlibs" = no && can_build_shared=no
2227 +# Check hardcoding attributes.
2228 +AC_MSG_CHECKING([how to hardcode library paths into programs])
2230 +if test -n "$hardcode_libdir_flag_spec" || \
2231 + test -n "$runpath_var"; then
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
2243 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2244 + hardcode_action=immediate
2247 + # We cannot hardcode anything, or else we can only hardcode existing
2249 + hardcode_action=unsupported
2251 +AC_MSG_RESULT([$hardcode_action])
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])
2261 + AC_MSG_RESULT([no])
2264 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
2265 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
2267 +# PORTME Fill in your ld.so characteristics
2268 +AC_MSG_CHECKING([dynamic linker characteristics])
2269 +library_names_spec=
2270 +libname_spec='lib$name'
2273 +postuninstall_cmds=
2277 +shlibpath_overrides_runpath=unknown
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"
2285 + version_type=linux
2286 + library_names_spec='${libname}${release}.so$versuffix $libname.a'
2287 + shlibpath_var=LIBPATH
2289 + # AIX has no versioning support, so we append a major version to the name.
2290 + soname_spec='${libname}${release}.so$major'
2294 + version_type=linux
2295 + need_lib_prefix=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
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.
2309 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2310 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2312 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2315 + can_build_shared=no
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'
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'
2334 + shlibpath_var=LIBPATH
2336 + hardcode_into_libs=yes
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'
2346 + library_names_spec='${libname}.so'
2347 + dynamic_linker="$host_os ld.so"
2348 + shlibpath_var=LIBRARY_PATH
2352 + version_type=linux
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
2366 +cygwin* | mingw* | pw32*)
2367 + version_type=windows
2369 + need_lib_prefix=no
2370 + case $GCC,$host_os in
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~
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"`
2387 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
2390 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
2393 + dynamic_linker='Win32 ld.exe'
2394 + # FIXME: first we should search . and the directory the executable is in
2395 + shlibpath_var=PATH
2398 +darwin* | rhapsody*)
2399 + dynamic_linker="$host_os dyld"
2400 + version_type=darwin
2401 + need_lib_prefix=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
2417 + version_type=linux
2418 + need_lib_prefix=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'
2429 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2430 + version_type=freebsd-$objformat
2431 + case $version_type in
2433 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
2435 + need_lib_prefix=no
2438 + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
2442 + shlibpath_var=LD_LIBRARY_PATH
2445 + shlibpath_overrides_runpath=yes
2448 + shlibpath_overrides_runpath=no
2449 + hardcode_into_libs=yes
2455 + version_type=linux
2456 + need_lib_prefix=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
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
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'
2479 +irix5* | irix6* | nonstopux*)
2481 + nonstopux*) version_type=nonstopux ;;
2482 + *) version_type=irix ;;
2484 + need_lib_prefix=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'
2489 + irix5* | nonstopux*)
2490 + libsuff= shlibsuff=
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;;
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}"
2507 +# No shared lib support for Linux oldld, aout, or coff.
2508 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
2512 +# This must be Linux ELF.
2514 + version_type=linux
2515 + need_lib_prefix=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
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'
2537 + version_type=sunos
2538 + need_lib_prefix=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'
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'
2549 + shlibpath_var=LD_LIBRARY_PATH
2550 + shlibpath_overrides_runpath=yes
2551 + hardcode_into_libs=yes
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
2562 + version_type=sunos
2563 + need_lib_prefix=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
2571 + shlibpath_overrides_runpath=yes
2575 + shlibpath_overrides_runpath=yes
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
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
2590 +osf3* | osf4* | osf5*)
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
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
2610 + version_type=linux
2611 + need_lib_prefix=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'
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
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
2641 + shlibpath_overrides_runpath=no
2642 + need_lib_prefix=no
2643 + export_dynamic_flag_spec='${wl}-Blargedynsym'
2644 + runpath_var=LD_RUN_PATH
2647 + need_lib_prefix=no
2650 + need_lib_prefix=no
2652 + shlibpath_overrides_runpath=no
2653 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
2666 + version_type=linux
2667 + need_lib_prefix=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
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
2687 +AC_MSG_RESULT([$dynamic_linker])
2688 +test "$dynamic_linker" = no && can_build_shared=no
2690 +# Report the final consequences.
2691 +AC_MSG_CHECKING([if libtool supports shared libraries])
2692 +AC_MSG_RESULT([$can_build_shared])
2694 +AC_MSG_CHECKING([whether to build shared libraries])
2695 +test "$can_build_shared" = "no" && enable_shared=no
2697 +# On AIX, shared libraries and static libraries use the same namespace, and
2698 +# are all built from PIC.
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'
2709 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2710 + test "$enable_shared" = yes && enable_static=no
2714 +AC_MSG_RESULT([$enable_shared])
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])
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
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"
2735 +AC_LIBTOOL_DLOPEN_SELF
2737 +if test "$enable_shared" = yes && test "$GCC" = yes; then
2738 + case $archive_cmds in
2740 + # FIXME: we may have to deal with multi-command sequences.
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],
2749 + echo 'static int dummy;' > conftest.$ac_ext
2751 + if AC_TRY_EVAL(ac_compile); then
2754 + libobjs=conftest.$ac_objext
2756 + wl=$lt_cv_prog_cc_wl
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)
2766 + lt_cv_archive_cmds_need_lc=no
2768 + lt_cv_archive_cmds_need_lc=yes
2770 + allow_undefined_flag=$save_allow_undefined_flag
2772 + cat conftest.err 1>&5
2774 + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
2778 +need_lc=${lt_cv_archive_cmds_need_lc-yes}
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
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"
2793 +if test -f "$ltmain"; then
2794 + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
2795 + $rm -f "${ofile}T"
2797 + echo creating $ofile
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
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\"\`\\\""
2830 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
2835 + cat <<__EOF__ > "${ofile}T"
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.
2842 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
2843 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
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.
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.
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.
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.
2864 +# A sed that does not truncate output.
2867 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
2868 +Xsed="${SED} -e s/^X//"
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
2874 +# ### BEGIN LIBTOOL CONFIG
2876 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2878 +# Shell to use when invoking shell scripts.
2881 +# Whether or not to build shared libraries.
2882 +build_libtool_libs=$enable_shared
2884 +# Whether or not to build static libraries.
2885 +build_old_libs=$enable_static
2887 +# Whether or not to add -lc for building shared libraries.
2888 +build_libtool_need_lc=$need_lc
2890 +# Whether or not to optimize for fast installation.
2891 +fast_install=$enable_fast_install
2894 +host_alias=$host_alias
2897 +# An echo program that does not interpret backslashes.
2902 +AR_FLAGS=$lt_AR_FLAGS
2904 +# The default C compiler.
2907 +# Is the compiler the GNU C compiler?
2910 +# The linker used to build libraries.
2913 +# Whether we need hard or soft links.
2916 +# A BSD-compatible nm program.
2919 +# A symbol stripping program
2922 +# Used to examine libraries when file_magic_cmd begins "file"
2923 +MAGIC_CMD=$MAGIC_CMD
2925 +# Used on cygwin: DLL creation program.
2928 +# Used on cygwin: object dumper.
2931 +# Used on cygwin: assembler.
2934 +# The name of the directory that contains temporary libtool files.
2937 +# How to create reloadable object files.
2938 +reload_flag=$lt_reload_flag
2939 +reload_cmds=$lt_reload_cmds
2941 +# How to pass a linker flag through the compiler.
2944 +# Object file suffix (normally "o").
2945 +objext="$ac_objext"
2947 +# Old archive suffix (normally "a").
2950 +# Executable file suffix (normally "").
2953 +# Additional compiler flags for building library objects.
2954 +pic_flag=$lt_pic_flag
2957 +# Does compiler simultaneously support -c and -o options?
2958 +compiler_c_o=$lt_compiler_c_o
2960 +# Can we write directly to a .lo ?
2961 +compiler_o_lo=$lt_compiler_o_lo
2963 +# Must we lock files when doing compilation ?
2964 +need_locks=$lt_need_locks
2966 +# Do we need the lib prefix for modules?
2967 +need_lib_prefix=$need_lib_prefix
2969 +# Do we need a version for libraries?
2970 +need_version=$need_version
2972 +# Whether dlopen is supported.
2973 +dlopen_support=$enable_dlopen
2975 +# Whether dlopen of programs is supported.
2976 +dlopen_self=$enable_dlopen_self
2978 +# Whether dlopen of statically linked programs is supported.
2979 +dlopen_self_static=$enable_dlopen_self_static
2981 +# Compiler flag to prevent dynamic linking.
2982 +link_static_flag=$lt_link_static_flag
2984 +# Compiler flag to turn off builtin functions.
2985 +no_builtin_flag=$lt_no_builtin_flag
2987 +# Compiler flag to allow reflexive dlopens.
2988 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
2990 +# Compiler flag to generate shared objects directly from archives.
2991 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
2993 +# Compiler flag to generate thread-safe objects.
2994 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
2996 +# Library versioning type.
2997 +version_type=$version_type
2999 +# Format of library name prefix.
3000 +libname_spec=$lt_libname_spec
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
3006 +# The coded name of the library, if different from the real name.
3007 +soname_spec=$lt_soname_spec
3009 +# Commands used to build and install an old-style archive.
3011 +old_archive_cmds=$lt_old_archive_cmds
3012 +old_postinstall_cmds=$lt_old_postinstall_cmds
3013 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
3015 +# Create an old-style archive from a shared archive.
3016 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
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
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
3027 +# Commands to strip libraries.
3028 +old_striplib=$lt_old_striplib
3029 +striplib=$lt_striplib
3031 +# Method to check whether dependent libraries are shared objects.
3032 +deplibs_check_method=$lt_deplibs_check_method
3034 +# Command to use when deplibs_check_method == file_magic.
3035 +file_magic_cmd=$lt_file_magic_cmd
3037 +# Flag that allows shared libraries with undefined symbols to be built.
3038 +allow_undefined_flag=$lt_allow_undefined_flag
3040 +# Flag that forces no undefined symbols.
3041 +no_undefined_flag=$lt_no_undefined_flag
3043 +# Commands used to finish a libtool library installation in a directory.
3044 +finish_cmds=$lt_finish_cmds
3046 +# Same as above, but a single script fragment to be evaled but not shown.
3047 +finish_eval=$lt_finish_eval
3049 +# Take the output of nm and produce a listing of raw symbols and C names.
3050 +global_symbol_pipe=$lt_global_symbol_pipe
3052 +# Transform the output of nm in a proper C declaration
3053 +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
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
3058 +# This is the shared library runtime path variable.
3059 +runpath_var=$runpath_var
3061 +# This is the shared library path variable.
3062 +shlibpath_var=$shlibpath_var
3064 +# Is shlibpath searched before the hard-coded library search path?
3065 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
3067 +# How to hardcode a shared library path into an executable.
3068 +hardcode_action=$hardcode_action
3070 +# Whether we should hardcode library paths into libraries.
3071 +hardcode_into_libs=$hardcode_into_libs
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
3077 +# Whether we need a single -rpath flag with a separated argument.
3078 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
3080 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
3081 +# resulting binary.
3082 +hardcode_direct=$hardcode_direct
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
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
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"
3096 +# Whether libtool must link a program against all its dependency libraries.
3097 +link_all_deplibs=$link_all_deplibs
3099 +# Compile-time system search path for libraries
3100 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
3102 +# Run-time system search path for libraries
3103 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
3105 +# Fix the shell variable \$srcfile for the compiler.
3106 +fix_srcfile_path="$fix_srcfile_path"
3108 +# Set to yes if exported symbols are required.
3109 +always_export_symbols=$always_export_symbols
3111 +# The commands to list exported symbols.
3112 +export_symbols_cmds=$lt_export_symbols_cmds
3114 +# The commands to extract the exported symbol list from a shared archive.
3115 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
3117 +# Symbols that should not be listed in the preloaded symbols.
3118 +exclude_expsyms=$lt_exclude_expsyms
3120 +# Symbols that must always be exported.
3121 +include_expsyms=$lt_include_expsyms
3123 +# ### END LIBTOOL CONFIG
3129 + cat <<\EOF >> "${ofile}T"
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
3136 + export COLLECT_NAMES
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>
3153 +# #ifndef __CYGWIN__
3154 +# # ifdef __CYGWIN32__
3155 +# # define __CYGWIN__ __CYGWIN32__
3159 +# #ifdef __cplusplus
3162 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
3163 +# #ifdef __cplusplus
3167 +# #ifdef __CYGWIN__
3168 +# #include <cygwin/cygwin_dll.h>
3169 +# DECLARE_CYGWIN_DLL( DllMain );
3171 +# HINSTANCE __hDllInstance_base;
3174 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
3176 +# __hDllInstance_base = hInst;
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.
3186 +# This file is part of GNU libtool.
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.
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.
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.
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() */
3208 +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
3210 +# #define O_BINARY 0
3213 +# static unsigned int
3214 +# pe_get16 (fd, offset)
3218 +# unsigned char b[2];
3219 +# lseek (fd, offset, SEEK_SET);
3221 +# return b[0] + (b[1]<<8);
3224 +# static unsigned int
3225 +# pe_get32 (fd, offset)
3229 +# unsigned char b[4];
3230 +# lseek (fd, offset, SEEK_SET);
3232 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3235 +# static unsigned int
3239 +# unsigned char *b = ptr;
3240 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3244 +# main (argc, argv)
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;
3255 +# filename = argv[1];
3257 +# dll = open(filename, O_RDONLY|O_BINARY);
3261 +# dll_name = filename;
3263 +# for (i=0; filename[i]; i++)
3264 +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
3265 +# dll_name = filename + i +1;
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);
3271 +# if (num_entries < 1) /* no exports */
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));
3281 +# for (i = 0; i < nsections; i++)
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)
3292 +# expptr = fptr + (export_rva - vaddr);
3293 +# if (export_rva + export_size > vaddr + vsize)
3294 +# export_size = vsize - (export_rva - vaddr);
3299 +# expdata = (unsigned char*)malloc(export_size);
3300 +# lseek (dll, expptr, SEEK_SET);
3301 +# read (dll, expdata, export_size);
3302 +# erva = expdata - export_rva;
3304 +# nexp = pe_as32 (expdata+24);
3305 +# name_rvas = pe_as32 (expdata+32);
3307 +# printf ("EXPORTS\n");
3308 +# for (i = 0; i<nexp; i++)
3310 +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
3311 +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
3316 +# /* impgen.c ends here */
3318 -# Some flags need to be propagated to the compiler or linker for good
3320 -case "$lt_target" in
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
3330 - LD="${LD-ld} -n32"
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"
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)
3360 + mv -f "${ofile}T" "$ofile" || \
3361 + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
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)
3374 +])# _LT_AC_LTCONFIG_HACK
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])])
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])])
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
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
3399 yes) enable_shared=yes ;;
3400 no) enable_shared=no ;;
3402 @@ -157,21 +3136,22 @@
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)])
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
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
3426 yes) enable_static=yes ;;
3427 no) enable_static=no ;;
3429 @@ -190,7 +3170,8 @@
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)])
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
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
3454 yes) enable_fast_install=yes ;;
3455 no) enable_fast_install=no ;;
3457 @@ -223,29 +3204,120 @@
3458 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
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)])
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
3472 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3473 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3474 +pic_mode=ifelse($#,1,$1,default)])
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
3483 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3486 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
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
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
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
3526 + IFS="$ac_save_ifs"
3527 + MAGIC_CMD="$ac_save_MAGIC_CMD"
3530 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3531 +if test -n "$MAGIC_CMD"; then
3532 + AC_MSG_RESULT($MAGIC_CMD)
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)
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
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
3572 + # gcc leaves a trailing carriage return which upsets mingw
3573 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3575 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3578 # Accept absolute paths.
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 @@
3590 AC_MSG_CHECKING([for non-GNU ld])
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
3609 test "$with_gnu_ld" != yes && break
3610 @@ -286,9 +3358,9 @@
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.
3617 -LD="$ac_cv_path_LD"
3618 +LD="$lt_cv_path_LD"
3619 if test -n "$LD"; then
3622 @@ -298,56 +3370,255 @@
3626 -AC_DEFUN(AC_PROG_LD_GNU,
3627 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
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
3636 - ac_cv_prog_gnu_ld=no
3637 + lt_cv_prog_gnu_ld=no
3639 +with_gnu_ld=$lt_cv_prog_gnu_ld
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"
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.
3672 + lt_cv_deplibs_check_method=pass_all
3676 + lt_cv_deplibs_check_method=pass_all
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
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'
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`
3697 + *) # Darwin 1.3 on
3698 + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3704 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
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.*`
3715 + lt_cv_deplibs_check_method=pass_all
3720 + lt_cv_deplibs_check_method=pass_all
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
3729 +irix5* | irix6* | nonstopux*)
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"
3737 + *-32|*"-32 ") libmagic=32-bit;;
3738 + *-n32|*"-n32 ") libmagic=N32;;
3739 + *-64|*"-64 ") libmagic=64-bit;;
3740 + *) libmagic=never-match;;
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"
3746 + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3747 + lt_cv_deplibs_check_method=pass_all
3750 +# This must be Linux ELF.
3753 + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3754 + lt_cv_deplibs_check_method=pass_all ;;
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 )' ;;
3759 + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
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]]+$'
3766 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
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
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'
3782 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
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
3794 + lt_cv_deplibs_check_method=pass_all
3798 + lt_cv_deplibs_check_method=pass_all
3799 + lt_cv_file_magic_test_file=/lib/libc.so
3802 +sysv5uw[[78]]* | sysv4*uw2*)
3803 + lt_cv_deplibs_check_method=pass_all
3806 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3807 + case $host_vendor in
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*`
3813 + lt_cv_deplibs_check_method=pass_all
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 )'
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
3825 + lt_cv_deplibs_check_method=pass_all
3831 +file_magic_cmd=$lt_cv_file_magic_cmd
3832 +deplibs_check_method=$lt_cv_deplibs_check_method
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"
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"
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"
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
3878 - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3879 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3881 -NM="$ac_cv_path_NM"
3882 +NM="$lt_cv_path_NM"
3883 AC_MSG_RESULT([$NM])
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
3891 -case "$lt_target" in
3892 -*-*-beos* | *-*-cygwin*)
3894 +*-*-beos* | *-*-cygwin* | *-*-pw32*)
3895 # These system don't have libm
3898 @@ -361,33 +3632,41 @@
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" ;;
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"
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 @@
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'])
3968 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3973 + # For backwards non-gettext consistent compatibility...
3974 + INCLTDL="$LTDLINCL"
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
3986 -dnl This is just to silence aclocal about the macro not being used
3987 -ifelse([AC_DISABLE_FAST_INSTALL])dnl
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.
3996 -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
3998 -AC_DEFUN(AM_INIT_AUTOMAKE,
3999 -[AC_REQUIRE([AC_PROG_INSTALL])
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])
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])])
4023 -# Check to make sure that the build environment is sane.
4026 -AC_DEFUN(AM_SANITY_CHECK,
4027 -[AC_MSG_CHECKING([whether build environment is sane])
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
4037 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
4038 - if test "[$]*" = "X"; then
4040 - set X `ls -t $srcdir/configure conftestfile`
4042 - if test "[$]*" != "X $srcdir/configure conftestfile" \
4043 - && test "[$]*" != "X conftestfile $srcdir/configure"; then
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])
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])
4061 +# This is just to silence aclocal about the macro not being used
4062 +ifelse([AC_DISABLE_FAST_INSTALL])
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. #
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
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"
4092 - test "[$]2" = conftestfile
4098 - AC_MSG_ERROR([newly created file is older than distributed files!
4099 -Check your system clock])
4102 -AC_MSG_RESULT(yes)])
4103 + # Create a temporary directory, and hook for its removal unless debugging.
4106 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4107 + trap '{ (exit 1); exit 1; }' 1 2 13 15
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
4119 - AC_MSG_RESULT(found)
4120 +# Create a (secure) tmp directory for tmp files.
4123 + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4124 + test -n "$tmp" && test -d "$tmp"
4127 + tmp=$TMPDIR/sed$$-$RANDOM
4128 + (umask 077 && mkdir $tmp)
4131 + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4132 + { (exit 1); exit 1; }
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"
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}
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
4160 + lt_cv_path_SED=$_sed
4166 +if test "X$SED" != "X"; then
4167 + lt_cv_path_SED=$SED
4169 - $1="$3/missing $2"
4170 - AC_MSG_RESULT(missing)
4171 + SED=$lt_cv_path_SED
4175 -# Like AC_CONFIG_HEADER, but automatically create stamp file.
4177 -AC_DEFUN(AM_CONFIG_HEADER,
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>>,
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
4194 - am_indx=`expr "<<$>>am_indx" + 1`
4196 -changequote([,]))])
4197 +AC_MSG_RESULT([$SED])
4200 # Add --enable-maintainer-mode option to configure.
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 @@
4212 # Define a conditional.
4214 -AC_DEFUN(AM_CONDITIONAL,
4215 +AC_DEFUN([AM_CONDITIONAL],
4219 @@ -585,7 +3840,7 @@
4220 # program @code{ansi2knr}, which comes with Ghostscript.
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
4232 # Attempt to guess a canonical system name.
4233 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
4234 -# Free Software Foundation, Inc.
4236 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4237 +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
4239 +timestamp='2003-05-09'
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.
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.
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.
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).
4262 -# Only a few systems have been added to this list; please add others
4263 -# (but try to keep the structure clean).
4265 +# don't specify an explicit build system type.
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"
4272 - if test x"$CC" != x; then
4273 - CC_FOR_BUILD="$CC"
4278 +me=`echo "$0" | sed -e 's,.*/,,'`
4283 +Output the configuration name of the system \`$me' is run on.
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
4290 +Report bugs and patches to <config-patches@gnu.org>."
4293 +GNU config.guess ($timestamp)
4295 +Originally written by Per Bothner.
4296 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4297 +Free Software Foundation, Inc.
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."
4303 +Try \`$me --help' for more information."
4305 +# Parse command line
4306 +while test $# -gt 0 ; do
4308 + --time-stamp | --time* | -t )
4309 + echo "$timestamp" ; exit 0 ;;
4311 + echo "$version" ; exit 0 ;;
4312 + --help | --h* | -h )
4313 + echo "$usage"; exit 0 ;;
4314 + -- ) # Stop option processing
4316 + - ) # Use stdin as input.
4319 + echo "$me: invalid option $1$help" >&2
4326 +if test $# != 0; then
4327 + echo "$me: too many arguments$help" >&2
4331 +trap 'exit 1' 1 2 15
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.
4338 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
4339 +# use `HOST_CC' if defined, but it is deprecated.
4341 +# Portable tmp directory creation inspired by the Autoconf team.
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 ;
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 ; } ;
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 ;
4359 + if test x"$CC_FOR_BUILD" = x ; then
4360 + CC_FOR_BUILD=no_compiler_found ;
4363 + ,,*) CC_FOR_BUILD=$CC ;;
4364 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
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
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
4381 -trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
4383 # Note: order is significant - the case branches are not exclusive.
4385 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
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.
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 ;;
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
4415 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
4416 + # Return netbsd for either. FIX?
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
4436 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
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}"
4444 + amiga:OpenBSD:*:*)
4445 + echo m68k-unknown-openbsd${UNAME_RELEASE}
4448 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
4450 + hp300:OpenBSD:*:*)
4451 + echo m68k-unknown-openbsd${UNAME_RELEASE}
4453 + mac68k:OpenBSD:*:*)
4454 + echo m68k-unknown-openbsd${UNAME_RELEASE}
4456 + macppc:OpenBSD:*:*)
4457 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
4459 + mvme68k:OpenBSD:*:*)
4460 + echo m68k-unknown-openbsd${UNAME_RELEASE}
4462 + mvme88k:OpenBSD:*:*)
4463 + echo m88k-unknown-openbsd${UNAME_RELEASE}
4465 + mvmeppc:OpenBSD:*:*)
4466 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
4469 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
4472 + echo mipseb-unknown-openbsd${UNAME_RELEASE}
4475 + echo m68k-unknown-openbsd${UNAME_RELEASE}
4477 + wgrisc:OpenBSD:*:*)
4478 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
4481 + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
4484 if test $UNAME_RELEASE = "V4.0"; then
4485 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
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
4494 + UNAME_MACHINE="alpha" ;;
4496 + UNAME_MACHINE="alpha" ;;
4497 + "LCA4 (21066/21068)")
4498 + UNAME_MACHINE="alpha" ;;
4500 + UNAME_MACHINE="alphaev5" ;;
4502 + UNAME_MACHINE="alphaev56" ;;
4503 + "EV5.6 (21164PC)")
4504 + UNAME_MACHINE="alphapca56" ;;
4505 + "EV5.7 (21164PC)")
4506 + UNAME_MACHINE="alphapca57" ;;
4508 + UNAME_MACHINE="alphaev6" ;;
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" ;;
4520 + UNAME_MACHINE="alphaev7" ;;
4522 + UNAME_MACHINE="alphaev79" ;;
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
4532 - .frame \$30,0,\$26,0
4534 - .long 0x47e03d80 # implver $0
4536 - .long 0x47e20c21 # amask $2,$1
4545 - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
4546 - if test "$?" = 0 ; then
4550 - UNAME_MACHINE="alpha"
4553 - UNAME_MACHINE="alphaev5"
4556 - UNAME_MACHINE="alphaev56"
4559 - UNAME_MACHINE="alphapca56"
4562 - UNAME_MACHINE="alphaev6"
4566 - rm -f $dummy.s $dummy
4567 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4569 Alpha\ *:Windows_NT*:*)
4570 @@ -127,34 +292,13 @@
4571 echo alpha-dec-winnt3.5
4573 Amiga*:UNIX_System_V:4.0:*)
4574 - echo m68k-cbm-sysv4
4575 + echo m68k-unknown-sysv4
4578 - echo m68k-cbm-netbsd${UNAME_RELEASE}
4580 - amiga:OpenBSD:*:*)
4581 - echo m68k-unknown-openbsd${UNAME_RELEASE}
4583 *:[Aa]miga[Oo][Ss]:*:*)
4584 echo ${UNAME_MACHINE}-unknown-amigaos
4586 - arc64:OpenBSD:*:*)
4587 - echo mips64el-unknown-openbsd${UNAME_RELEASE}
4590 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
4592 - hkmips:OpenBSD:*:*)
4593 - echo mips-unknown-openbsd${UNAME_RELEASE}
4596 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
4599 - echo mips-unknown-openbsd${UNAME_RELEASE}
4601 - wgrisc:OpenBSD:*:*)
4602 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
4603 + *:[Mm]orph[Oo][Ss]:*:*)
4604 + echo ${UNAME_MACHINE}-unknown-morphos
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}
4613 - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
4615 - SR2?01:HI-UX/MPP:*:*)
4616 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
4617 echo hppa1.1-hitachi-hiuxmpp
4619 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
4620 @@ -179,6 +320,10 @@
4622 echo pyramid-pyramid-svr4
4624 + DRS?6000:UNIX_SV:4.2*:7*)
4625 + case `/usr/bin/uname -p` in
4626 + sparc) echo sparc-icl-nx7 && exit 0 ;;
4629 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4632 echo m68k-sun-sunos${UNAME_RELEASE}
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
4640 @@ -221,15 +366,9 @@
4642 echo sparc-auspex-sunos${UNAME_RELEASE}
4644 - atari*:NetBSD:*:*)
4645 - echo m68k-atari-netbsd${UNAME_RELEASE}
4647 - atari*:OpenBSD:*:*)
4648 - echo m68k-unknown-openbsd${UNAME_RELEASE}
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}
4662 - echo m68k-sun-netbsd${UNAME_RELEASE}
4664 - sun3*:OpenBSD:*:*)
4665 - echo m68k-unknown-openbsd${UNAME_RELEASE}
4667 - mac68k:NetBSD:*:*)
4668 - echo m68k-apple-netbsd${UNAME_RELEASE}
4670 - mac68k:OpenBSD:*:*)
4671 - echo m68k-unknown-openbsd${UNAME_RELEASE}
4673 - mvme68k:OpenBSD:*:*)
4674 - echo m68k-unknown-openbsd${UNAME_RELEASE}
4676 - mvme88k:OpenBSD:*:*)
4677 - echo m88k-unknown-openbsd${UNAME_RELEASE}
4679 powerpc:machten:*:*)
4680 echo powerpc-apple-machten${UNAME_RELEASE}
4682 - macppc:NetBSD:*:*)
4683 - echo powerpc-apple-netbsd${UNAME_RELEASE}
4686 echo mips-dec-mach_bsd4.3
4688 @@ -290,8 +408,10 @@
4689 echo clipper-intergraph-clix${UNAME_RELEASE}
4691 mips:*:*:UMIPS | mips:*:*:RISCos)
4692 + eval $set_cc_for_build
4693 sed 's/^ //' << EOF >$dummy.c
4695 +#include <stdio.h> /* for printf() prototype */
4696 int main (int argc, char *argv[]) {
4698 int main (argc, argv) int argc; char *argv[]; {
4699 @@ -310,12 +430,20 @@
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'` \
4710 echo mips-mips-riscos${UNAME_RELEASE}
4712 + Motorola:PowerMAX_OS:*:*)
4713 + echo powerpc-motorola-powermax
4715 + Motorola:*:4.3:PL8-*)
4716 + echo powerpc-harris-powermax
4718 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
4719 + echo powerpc-harris-powermax
4721 Night_Hawk:Power_UNIX:*:*)
4722 echo powerpc-harris-powerunix
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 ]
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 '
4742 + if [ -x /usr/bin/oslevel ] ; then
4743 + IBM_REV=`/usr/bin/oslevel`
4745 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
4747 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
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>
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
4766 echo rs6000-ibm-aix3.2
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
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
4779 if [ -x /usr/bin/oslevel ] ; then
4780 IBM_REV=`/usr/bin/oslevel`
4782 - IBM_REV=4.${UNAME_RELEASE}
4783 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
4785 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
4788 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
4789 echo romp-ibm-bsd4.4
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
4796 @@ -424,11 +560,30 @@
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
4820 + if [ "${HP_ARCH}" = "" ]; then
4821 + eval $set_cc_for_build
4822 + sed 's/^ //' << EOF >$dummy.c
4824 + #define _HPUX_SOURCE
4828 @@ -459,13 +614,29 @@
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
4838 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
4839 + if [ ${HP_ARCH} = "hppa2.0w" ]
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
4845 + HP_ARCH="hppa2.0w"
4850 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
4853 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
4854 + echo ia64-hp-hpux${HPUX_REV}
4857 + eval $set_cc_for_build
4858 sed 's/^ //' << EOF >$dummy.c
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
4870 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
4872 9000/8??:4.3bsd:*:*)
4876 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
4877 echo hppa1.0-hp-mpeix
4879 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
4886 if [ -x /usr/sbin/sysversion ] ; then
4887 echo ${UNAME_MACHINE}-unknown-osf1mk
4891 echo hppa1.1-hp-lites
4893 - hppa*:OpenBSD:*:*)
4894 - echo hppa-unknown-openbsd
4896 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
4899 @@ -541,41 +708,34 @@
4900 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
4904 - echo xmp-cray-unicos
4907 - echo ymp-cray-unicos${UNAME_RELEASE}
4908 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
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/'
4918 - echo t90-cray-unicos${UNAME_RELEASE}
4919 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4922 - echo alpha-cray-unicosmk${UNAME_RELEASE}
4923 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4926 - echo cray2-cray-unicos
4928 - F300:UNIX_System_V:*:*)
4930 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4933 + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
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}"
4942 - F301:UNIX_System_V:*:*)
4943 - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
4945 - hp3[0-9][05]:NetBSD:*:*)
4946 - echo m68k-hp-netbsd${UNAME_RELEASE}
4948 - hp300:OpenBSD:*:*)
4949 - echo m68k-unknown-openbsd${UNAME_RELEASE}
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}
4956 @@ -584,20 +744,19 @@
4958 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
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/[-_].*//'`
4967 - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
4970 - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
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
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}
4989 echo ${UNAME_MACHINE}-pc-cygwin
4990 @@ -605,11 +764,20 @@
4992 echo ${UNAME_MACHINE}-pc-mingw32
4995 + echo ${UNAME_MACHINE}-pc-pw32
4998 + echo i586-pc-interix3
5000 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
5001 + echo i${UNAME_MACHINE}-pc-mks
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
5011 echo ${UNAME_MACHINE}-pc-uwin
5012 @@ -623,201 +791,159 @@
5014 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
5019 + echo ${UNAME_MACHINE}-pc-minix
5022 + echo ${UNAME_MACHINE}-unknown-linux-gnu
5025 + echo ${UNAME_MACHINE}-unknown-linux-gnu
5028 + echo ${UNAME_MACHINE}-unknown-linux-gnu
5031 + eval $set_cc_for_build
5032 + sed 's/^ //' << EOF >$dummy.c
5036 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
5039 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
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
5050 + eval $set_cc_for_build
5051 + sed 's/^ //' << EOF >$dummy.c
5055 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
5058 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
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
5069 + echo powerpc-unknown-linux-gnu
5072 + echo powerpc64-unknown-linux-gnu
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 ;;
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}
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 ;;
5096 + parisc64:Linux:*:* | hppa64:Linux:*:*)
5097 + echo hppa64-unknown-linux-gnu
5099 + s390:Linux:*:* | s390x:Linux:*:*)
5100 + echo ${UNAME_MACHINE}-ibm-linux
5103 + echo ${UNAME_MACHINE}-unknown-linux-gnu
5105 + sparc:Linux:*:* | sparc64:Linux:*:*)
5106 + echo ${UNAME_MACHINE}-unknown-linux-gnu
5109 + echo x86_64-unknown-linux-gnu
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
5122 - s/.*supported emulations: *//
5123 + s/.*supported targets: *//
5126 - case "$ld_supported_emulations" in
5128 - echo "${UNAME_MACHINE}-unknown-linux"
5130 + case "$ld_supported_targets" in
5132 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
5136 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
5142 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
5146 - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
5150 - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
5154 - echo "${UNAME_MACHINE}-unknown-linux-gnu"
5158 - echo "${UNAME_MACHINE}-unknown-linux-gnu"
5162 - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
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[];
5177 -#if defined(__GLIBC__)
5178 - printf("%s %s\n", __libc_version, __libc_release);
5180 - printf("unkown\n");
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
5193 - rm -f $dummy.c $dummy
5194 - echo powerpc-unknown-linux-gnu${LIBC}
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"
5205 - if test "${UNAME_MACHINE}" = "alpha" ; then
5206 - sed 's/^ //' <<EOF >$dummy.s
5210 - .frame \$30,0,\$26,0
5212 - .long 0x47e03d80 # implver $0
5214 - .long 0x47e20c21 # amask $2,$1
5224 - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
5225 - if test "$?" = 0 ; then
5229 - UNAME_MACHINE="alpha"
5232 - UNAME_MACHINE="alphaev5"
5235 - UNAME_MACHINE="alphaev56"
5238 - UNAME_MACHINE="alphapca56"
5241 - UNAME_MACHINE="alphaev6"
5245 - objdump --private-headers $dummy | \
5246 - grep ld.so.1 > /dev/null
5247 - if test "$?" = 0 ; then
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
5256 - int main (int argc, char *argv[]) {
5258 - int main (argc, argv) int argc; char *argv[]; {
5261 - printf ("%s-unknown-linux-gnu\n", argv[1]);
5264 - printf ("%sel-unknown-linux-gnu\n", argv[1]);
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
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
5280 - case "${UNAME_MACHINE}" in
5288 - # Determine whether the default compiler is a.out or elf
5289 - cat >$dummy.c <<EOF
5290 -#include <features.h>
5292 - int main (int argc, char *argv[]) {
5294 - int main (argc, argv) int argc; char *argv[]; {
5298 -# if __GLIBC__ >= 2
5299 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
5301 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
5304 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
5307 - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
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>
5317 + # if __GLIBC__ >= 2
5326 + #ifdef __INTEL_COMPILER
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
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
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
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}
5358 - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
5360 + # If we were able to find `uname', then EMX Unix compatibility
5361 + # is probably installed.
5362 + echo ${UNAME_MACHINE}-pc-os2-emx
5364 + i*86:XTS-300:*:STOP)
5365 + echo ${UNAME_MACHINE}-unknown-stop
5368 + echo ${UNAME_MACHINE}-unknown-atheos
5370 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
5371 + echo i386-unknown-lynxos${UNAME_RELEASE}
5374 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
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}
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}
5390 - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
5393 + case `/bin/uname -X | grep "^Machine"` in
5394 + *486*) UNAME_MACHINE=i486 ;;
5395 + *Pentium) UNAME_MACHINE=i586 ;;
5396 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
5398 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
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
5421 @@ -861,6 +1003,7 @@
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 @@
5431 echo m68010-convergent-sysv
5433 + mc68k:UNIX:SYSTEM5:3.51m)
5434 + echo m68k-convergent-sysv
5436 + M680?0:D-NIX:5.3:*)
5437 + echo m68k-diab-dnix
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)
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}
5454 mc68030:UNIX_System_V:4.*:*)
5455 echo m68k-atari-sysv4
5457 - i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
5458 - echo i386-unknown-lynxos${UNAME_RELEASE}
5460 TSUNAMI:LynxOS:2.*:*)
5461 echo sparc-unknown-lynxos${UNAME_RELEASE}
5463 - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
5464 + rs6000:LynxOS:2.*:*)
5465 echo rs6000-unknown-lynxos${UNAME_RELEASE}
5467 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
5468 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
5470 SM[BE]S:UNIX_SV:*:*)
5471 echo mips-dde-sysv${UNAME_RELEASE}
5473 @@ -927,8 +1076,8 @@
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
5483 *:UNIX_System_V:4*:FTX*)
5484 @@ -940,10 +1089,14 @@
5485 # From seanf@swdc.stratus.com.
5486 echo i860-stratus-sysv4
5489 + # From Paul.Green@stratus.com.
5490 + echo hppa1.1-stratus-vos
5493 echo m68k-apple-aux${UNAME_RELEASE}
5495 - news*:NEWS-OS:*:6*)
5496 + news*:NEWS-OS:6*:*)
5497 echo mips-sony-newsos6
5499 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
5500 @@ -968,20 +1121,80 @@
5502 echo sx5-nec-superux${UNAME_RELEASE}
5504 + SX-6:SUPER-UX:*:*)
5505 + echo sx6-nec-superux${UNAME_RELEASE}
5507 Power*:Rhapsody:*:*)
5508 echo powerpc-apple-rhapsody${UNAME_RELEASE}
5511 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
5514 + case `uname -p` in
5515 + *86) UNAME_PROCESSOR=i686 ;;
5516 + powerpc) UNAME_PROCESSOR=powerpc ;;
5518 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
5520 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
5521 + UNAME_PROCESSOR=`uname -p`
5522 + if test "$UNAME_PROCESSOR" = "x86"; then
5523 + UNAME_PROCESSOR=i386
5526 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
5529 - echo i386-qnx-qnx${UNAME_VERSION}
5532 + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
5533 + echo nsr-tandem-nsk${UNAME_RELEASE}
5536 + echo mips-compaq-nonstopux
5538 + BS2000:POSIX*:*:*)
5539 + echo bs2000-siemens-sysv
5541 + DS/*:UNIX_System_V:*:*)
5542 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
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
5551 + UNAME_MACHINE="$cputype"
5553 + echo ${UNAME_MACHINE}-unknown-plan9
5556 + echo pdp10-unknown-tops10
5559 + echo pdp10-unknown-tenex
5561 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
5562 + echo pdp10-dec-tops20
5564 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
5565 + echo pdp10-xkl-tops20
5568 + echo pdp10-unknown-tops20
5571 + echo pdp10-unknown-its
5575 #echo '(No uname command or uname output not recognized.)' 1>&2
5576 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
5578 +eval $set_cc_for_build
5581 # include <sys/types.h>
5582 @@ -1068,11 +1281,24 @@
5586 -#if !defined (ultrix)
5587 - printf ("vax-dec-bsd\n"); exit (0);
5589 - printf ("vax-dec-ultrix\n"); exit (0);
5591 +# if !defined (ultrix)
5592 +# include <sys/param.h>
5595 + printf ("vax-dec-bsd4.3\n"); exit (0);
5598 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
5600 + printf ("vax-dec-bsd\n"); exit (0);
5604 + printf ("vax-dec-bsd\n"); exit (0);
5607 + printf ("vax-dec-ultrix\n"); exit (0);
5611 #if defined (alliant) && defined (i860)
5612 @@ -1083,8 +1309,7 @@
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
5620 # Apollos put the system type in the environment.
5622 @@ -1116,6 +1341,48 @@
5626 -#echo '(Unable to guess system type)' 1>&2
5628 +$0: unable to guess system type
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
5634 + ftp://ftp.gnu.org/pub/gnu/config/
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.
5641 +config.guess timestamp = $timestamp
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`
5648 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
5649 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
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`
5658 +UNAME_MACHINE = ${UNAME_MACHINE}
5659 +UNAME_RELEASE = ${UNAME_RELEASE}
5660 +UNAME_SYSTEM = ${UNAME_SYSTEM}
5661 +UNAME_VERSION = ${UNAME_VERSION}
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: "'"
5672 --- glib1.2-1.2.10.orig/config.sub
5673 +++ glib1.2-1.2.10/config.sub
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.
5682 +timestamp='2003-05-09'
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.
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.
5691 +# Please send patches to <config-patches@gnu.org>. Submit a context
5692 +# diff and a properly formatted ChangeLog entry.
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.
5698 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
5699 # It is wrong to echo any other type of specification.
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
5709 +me=`echo "$0" | sed -e 's,.*/,,'`
5711 -# First pass through any local machine types.
5720 +Usage: $0 [OPTION] CPU-MFR-OPSYS
5723 +Canonicalize a configuration name.
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
5730 +Report bugs and patches to <config-patches@gnu.org>."
5733 +GNU config.sub ($timestamp)
5735 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
5736 +Free Software Foundation, Inc.
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."
5742 +Try \`$me --help' for more information."
5744 +# Parse command line
5745 +while test $# -gt 0 ; do
5747 + --time-stamp | --time* | -t )
5748 + echo "$timestamp" ; exit 0 ;;
5750 + echo "$version" ; exit 0 ;;
5751 + --help | --h* | -h )
5752 + echo "$usage"; exit 0 ;;
5753 + -- ) # Stop option processing
5755 + - ) # Use stdin as input.
5758 + echo "$me: invalid option $1$help"
5762 + # First pass through any local machine types.
5772 + 0) echo "$me: missing argument$help" >&2
5775 + *) echo "$me: too many arguments$help" >&2
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/'`
5784 + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
5786 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
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 | \
5797 @@ -108,6 +158,14 @@
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)
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 \
5834 + | d10v | d30v | dlx | dsp16xx \
5836 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
5837 + | i370 | i860 | i960 | ia64 \
5839 + | m32r | m68000 | m68k | m88k | mcore \
5840 + | mips | mipsbe | mipseb | mipsel | mipsle \
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 \
5857 + | openrisc | or32 \
5858 + | pdp10 | pdp11 | pj | pjl \
5859 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
5861 + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
5863 + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
5865 + | tahoe | thumb | tic80 | tron \
5868 + | x86 | xscale | xstormy16 | xtensa \
5870 + basic_machine=$basic_machine-unknown
5872 + m6811 | m68hc11 | m6812 | m68hc12)
5873 + # Motorola 68HC11/12.
5874 basic_machine=$basic_machine-unknown
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)
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.
5886 basic_machine=$basic_machine-pc
5888 # Object if more than one company name word.
5889 @@ -195,24 +288,60 @@
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-* \
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-* )
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*-* \
5919 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
5920 + | clipper-* | cydra-* \
5921 + | d10v-* | d30v-* | dlx-* \
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-* \
5929 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
5930 + | m88110-* | m88k-* | mcore-* \
5931 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
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-* \
5946 + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
5948 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
5949 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
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-* \
5959 + | v850-* | v850e-* | vax-* \
5961 + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
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
5973 + basic_machine=x86_64-pc
5976 basic_machine=580-amdahl
5980 - basic_machine=m68k-cbm
5981 + basic_machine=m68k-unknown
5984 - basic_machine=m68k-cbm
5985 + basic_machine=m68k-unknown
5989 - basic_machine=m68k-cbm
5990 + basic_machine=m68k-unknown
5994 @@ -275,6 +407,10 @@
5995 basic_machine=ns32k-sequent
5999 + basic_machine=c90-cray
6003 basic_machine=c1-convex
6005 @@ -295,27 +431,30 @@
6006 basic_machine=c38-convex
6010 - basic_machine=ymp-cray
6014 - basic_machine=cray2-cray
6018 - basic_machine=c90-cray
6020 + basic_machine=j90-cray
6024 basic_machine=m68k-crds
6026 + cris | cris-* | etrax*)
6027 + basic_machine=cris-axis
6030 basic_machine=m68k-da30
6032 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
6033 basic_machine=mips-dec
6035 + decsystem10* | dec10*)
6036 + basic_machine=pdp10-dec
6039 + decsystem20* | dec20*)
6040 + basic_machine=pdp10-dec
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
6051 + basic_machine=i386-pc
6055 basic_machine=hppa1.1-hitachi
6057 @@ -432,19 +575,19 @@
6058 basic_machine=i370-ibm
6060 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
6063 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6068 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6073 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6078 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6081 @@ -456,17 +599,6 @@
6082 basic_machine=i386-unknown
6086 - basic_machine=i386-unknown
6089 - i386-mingw32 | mingw32)
6090 - basic_machine=i386-unknown
6094 - basic_machine=i386-qnx
6097 basic_machine=mips-sgi
6099 @@ -492,6 +624,10 @@
6100 basic_machine=ns32k-utek
6104 + basic_machine=i386-pc
6108 basic_machine=m68000-convergent
6110 @@ -499,26 +635,26 @@
6111 basic_machine=m68k-atari
6115 - basic_machine=mipsel-unknown
6119 - basic_machine=mips-unknown
6123 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
6126 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
6129 + basic_machine=mmix-knuth
6133 basic_machine=m68k-rom68k
6137 + basic_machine=powerpc-unknown
6141 - basic_machine=i386-unknown
6142 + basic_machine=i386-pc
6146 @@ -582,13 +718,28 @@
6147 basic_machine=i960-intel
6151 + basic_machine=mips-compaq
6155 basic_machine=np1-gould
6158 + basic_machine=nv1-cray
6162 + basic_machine=nsr-tandem
6165 basic_machine=hppa1.1-oki
6169 + basic_machine=or32-unknown
6172 OSE68000 | ose68000)
6173 basic_machine=m68000-ericsson
6175 @@ -611,45 +762,59 @@
6177 basic_machine=m68k-tti
6181 basic_machine=ns32k-pc532
6183 - pentium | p5 | k5 | k6 | nexen)
6184 + pentium | p5 | k5 | k6 | nexgen | viac3)
6185 basic_machine=i586-pc
6187 - pentiumpro | p6 | 6x86)
6188 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
6189 basic_machine=i686-pc
6191 pentiumii | pentium2)
6192 - basic_machine=i786-pc
6193 + basic_machine=i686-pc
6195 - pentium-* | p5-* | k5-* | k6-* | nexen-*)
6196 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
6197 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
6199 - pentiumpro-* | p6-* | 6x86-*)
6200 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
6201 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
6203 pentiumii-* | pentium2-*)
6204 - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
6205 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
6208 basic_machine=pn-gould
6210 - power) basic_machine=rs6000-ibm
6211 + power) basic_machine=power-ibm
6213 ppc) basic_machine=powerpc-unknown
6216 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
6218 ppcle | powerpclittle | ppc-le | powerpc-little)
6219 basic_machine=powerpcle-unknown
6222 ppcle-* | powerpclittle-*)
6223 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
6225 + ppc64) basic_machine=powerpc64-unknown
6227 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
6229 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
6230 + basic_machine=powerpc64le-unknown
6232 + ppc64le-* | powerpc64little-*)
6233 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
6236 basic_machine=i386-ibm
6239 + basic_machine=i586-unknown
6243 basic_machine=m68k-rom68k
6245 @@ -660,10 +825,22 @@
6247 basic_machine=romp-ibm
6250 + basic_machine=s390-ibm
6253 + basic_machine=s390x-ibm
6256 basic_machine=a29k-amd
6260 + basic_machine=mipsisa64sb1-unknown
6263 + basic_machine=mipsisa64sb1el-unknown
6266 basic_machine=i386-sequent
6269 basic_machine=sh-hitachi
6273 + sparclite-wrs | simso-wrs)
6274 basic_machine=sparclite-wrs
6277 @@ -729,20 +906,48 @@
6278 sun386 | sun386i | roadrunner)
6279 basic_machine=i386-sun
6282 + basic_machine=sv1-cray
6286 basic_machine=i386-sequent
6290 - basic_machine=t3e-cray
6291 + basic_machine=alphaev5-cray
6295 + basic_machine=t90-cray
6299 + basic_machine=tic4x-unknown
6303 + basic_machine=tic54x-unknown
6307 + basic_machine=tic55x-unknown
6311 + basic_machine=tic6x-unknown
6315 basic_machine=mipstx39-unknown
6318 basic_machine=mipstx39el-unknown
6321 + basic_machine=pdp10-xkl
6325 basic_machine=m68k-ncr
6331 - basic_machine=f301-fujitsu
6333 + basic_machine=f301-fujitsu
6336 basic_machine=i960-wrs
6338 @@ -789,13 +994,13 @@
6339 basic_machine=hppa1.1-winbond
6343 - basic_machine=xmp-cray
6348 basic_machine=xps100-honeywell
6351 + basic_machine=ymp-cray
6355 basic_machine=z8k-unknown
6357 @@ -816,13 +1021,6 @@
6359 basic_machine=hppa1.1-oki
6362 - if [ x$os = x-linux-gnu ]; then
6363 - basic_machine=mips-unknown
6365 - basic_machine=mips-mips
6369 basic_machine=romp-ibm
6371 @@ -832,16 +1030,26 @@
6373 basic_machine=vax-dec
6376 + # there are many clones, so DEC is not a safe bet
6377 + basic_machine=pdp10-unknown
6380 basic_machine=pdp11-dec
6383 basic_machine=we32k-att
6386 + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
6387 + basic_machine=sh-unknown
6390 + basic_machine=sh64-unknown
6392 + sparc | sparcv9 | sparcv9b)
6393 basic_machine=sparc-sun
6397 basic_machine=cydra-cydrome
6400 @@ -856,9 +1064,8 @@
6402 basic_machine=powerpc-apple
6405 - basic_machine=c4x-none
6408 + # Make sure to match an already-canonicalized machine name.
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.
6429 + case $basic_machine in
6440 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
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*)
6448 os=`echo $os | sed -e 's|mac|macos|'`
6449 @@ -940,6 +1167,9 @@
6459 @@ -955,14 +1185,23 @@
6482 # Preserve the version number of sinix5.
6484 @@ -977,9 +1216,6 @@
6494 @@ -1001,8 +1237,14 @@
6500 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
6511 @@ -1035,7 +1277,11 @@
6516 + # This must come before the *-dec entry.
6524 @@ -1062,6 +1308,9 @@
6531 *-tti) # must be before sparc entry or we get the wrong os.
6534 @@ -1125,25 +1374,25 @@
6561 + f30[01]-fujitsu | f700-fujitsu)
6565 @@ -1209,7 +1458,7 @@
6569 - -vxsim* | -vxworks*)
6570 + -vxsim* | -vxworks* | -windiss*)
6574 @@ -1221,12 +1470,23 @@
6579 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
6586 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
6590 echo $basic_machine$os
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: "'"
6599 --- glib1.2-1.2.10.orig/configure
6600 +++ glib1.2-1.2.10/configure
6602 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
6604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
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`}
6611 + *-DOS) lt_cv_sys_path_separator=';' ;;
6612 + *) lt_cv_sys_path_separator=':' ;;
6614 + PATH_SEPARATOR=$lt_cv_sys_path_separator
6618 +# Check that we are running under the correct shell.
6619 +SHELL=${CONFIG_SHELL-/bin/sh}
6623 + # Remove one level of quotation (which was required for Make).
6624 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
6629 +if test "X$1" = X--no-reexec; then
6630 + # Discard the --no-reexec flag, and continue.
6632 +elif test "X$1" = X--fallback-echo; then
6633 + # Avoid inline document here, it may be left over
6635 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
6636 + # Yippee, $echo works!
6639 + # Restart under the correct shell.
6640 + exec $SHELL "$0" --no-reexec ${1+"$@"}
6643 +if test "X$1" = X--fallback-echo; then
6644 + # used as fallback echo
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
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
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
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'
6679 + # So, first we look for a working echo in the user's PATH.
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
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.
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+"$@"}
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
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"
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"
6731 + # maybe with a smaller string...
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
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+"$@"}
6747 + # Oops. We lost completely, so just stick with echo.
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.
6759 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
6760 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
6765 --disable-libtool-lock avoid locking (might break parallel builds)"
6767 + --with-pic try to use only PIC/non-PIC objects [default=use both]"
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
6773 ac_config_sub=$ac_aux_dir/config.sub
6774 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
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:
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
6790 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
6797 echo timestamp > conftestfile
6799 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
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 @@
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
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
6824 - ACLOCAL="$missing_dir/missing aclocal"
6825 + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
6826 echo "$ac_t""missing" 1>&6
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
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
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
6852 - AUTOMAKE="$missing_dir/missing automake"
6853 + AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
6854 echo "$ac_t""missing" 1>&6
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.
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 @@
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`}
6881 + *-DOS) lt_cv_sys_path_separator=';' ;;
6882 + *) lt_cv_sys_path_separator=':' ;;
6884 + PATH_SEPARATOR=$lt_cv_sys_path_separator
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
6892 + cat > conftest.$ac_ext <<EOF
6893 +#line 1054 "configure"
6894 +#include "confdefs.h"
6899 +#define __CYGWIN__ __CYGWIN32__
6904 +if { (eval echo configure:1065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6908 + echo "configure: failed program was:" >&5
6909 + cat conftest.$ac_ext >&5
6917 +echo "$ac_t""$ac_cv_cygwin" 1>&6
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
6925 + cat > conftest.$ac_ext <<EOF
6926 +#line 1087 "configure"
6927 +#include "confdefs.h"
6930 +return __MINGW32__;
6933 +if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6937 + echo "configure: failed program was:" >&5
6938 + cat conftest.$ac_ext >&5
6946 +echo "$ac_t""$ac_cv_mingw32" 1>&6
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
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
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.
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>
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
6976 + echo "$ac_err" >&5
6977 + echo "configure: failed program was:" >&5
6978 + cat conftest.$ac_ext >&5
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>
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
6993 + echo "$ac_err" >&5
6994 + echo "configure: failed program was:" >&5
6995 + cat conftest.$ac_ext >&5
6997 + CPP="${CC-cc} -nologo -E"
6998 + cat > conftest.$ac_ext <<EOF
6999 +#line 1160 "configure"
7000 +#include "confdefs.h"
7001 +#include <assert.h>
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
7010 + echo "$ac_err" >&5
7011 + echo "configure: failed program was:" >&5
7012 + cat conftest.$ac_ext >&5
7021 + ac_cv_prog_CPP="$CPP"
7023 + CPP="$ac_cv_prog_CPP"
7025 + ac_cv_prog_CPP="$CPP"
7027 +echo "$ac_t""$CPP" 1>&6
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
7035 yes) enable_shared=yes ;;
7036 no) enable_shared=no ;;
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
7044 yes) enable_static=yes ;;
7045 no) enable_static=no ;;
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
7053 yes) enable_fast_install=yes ;;
7054 no) enable_fast_install=no ;;
7056 @@ -947,7 +1262,7 @@
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
7064 case "$host_alias" in
7065 @@ -968,7 +1283,7 @@
7066 echo "$ac_t""$host" 1>&6
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
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
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
7085 - if test -n "$RANLIB"; then
7086 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7088 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
7097 - IFS="$ac_save_ifs"
7098 - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
7101 -RANLIB="$ac_cv_prog_RANLIB"
7102 -if test -n "$RANLIB"; then
7103 - echo "$ac_t""$RANLIB" 1>&6
7105 - echo "$ac_t""no" 1>&6
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
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
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
7134 @@ -1131,7 +1416,7 @@
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
7142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7143 @@ -1142,12 +1427,12 @@
7145 cat > conftest.$ac_ext << EOF
7147 -#line 1146 "configure"
7148 +#line 1431 "configure"
7149 #include "confdefs.h"
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; }
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
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
7173 @@ -1187,7 +1472,7 @@
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
7182 @@ -1206,7 +1491,7 @@
7183 ac_save_CFLAGS="$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
7191 @@ -1246,12 +1531,18 @@
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
7205 + # gcc leaves a trailing carriage return which upsets mingw
7206 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7208 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7211 # Accept absolute paths.
7212 [\\/]* | [A-Za-z]:[\\/]*)
7213 re_direlt='/[^/][^/]*/\.\./'
7214 @@ -1273,24 +1564,24 @@
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
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
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
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
7244 test "$with_gnu_ld" != yes && break
7245 @@ -1299,11 +1590,11 @@
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.
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
7259 @@ -1311,245 +1602,3880 @@
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
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
7274 - ac_cv_prog_gnu_ld=no
7275 + lt_cv_prog_gnu_ld=no
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
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
7289 + lt_cv_ld_reload_flag='-r'
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"
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
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"
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"
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"
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
7337 - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
7338 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7342 +NM="$lt_cv_path_NM"
7343 +echo "$ac_t""$NM" 1>&6
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
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
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"
7367 + # Create a temporary directory, and hook for its removal unless debugging.
7370 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7371 + trap '{ (exit 1); exit 1; }' 1 2 13 15
7374 +# Create a (secure) tmp directory for tmp files.
7377 + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
7378 + test -n "$tmp" && test -d "$tmp"
7381 + tmp=$TMPDIR/sed$$-$RANDOM
7382 + (umask 077 && mkdir $tmp)
7385 + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7386 + { (exit 1); exit 1; }
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"
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}
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
7414 + lt_cv_path_SED=$_sed
7422 +if test "X$SED" != "X"; then
7423 + lt_cv_path_SED=$SED
7425 + SED=$lt_cv_path_SED
7427 +echo "$ac_t""$SED" 1>&6
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
7434 + rm -f conftestdata
7435 +if ln -s X conftestdata 2>/dev/null
7437 + rm -f conftestdata
7438 + ac_cv_prog_LN_S="ln -s"
7440 + ac_cv_prog_LN_S=ln
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
7447 + echo "$ac_t""no" 1>&6
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
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.
7471 + lt_cv_deplibs_check_method=pass_all
7475 + lt_cv_deplibs_check_method=pass_all
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
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'
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`
7496 + *) # Darwin 1.3 on
7497 + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
7503 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
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.*`
7514 + lt_cv_deplibs_check_method=pass_all
7519 + lt_cv_deplibs_check_method=pass_all
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
7528 +irix5* | irix6* | nonstopux*)
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"
7536 + *-32|*"-32 ") libmagic=32-bit;;
7537 + *-n32|*"-n32 ") libmagic=N32;;
7538 + *-64|*"-64 ") libmagic=64-bit;;
7539 + *) libmagic=never-match;;
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"
7545 + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
7546 + lt_cv_deplibs_check_method=pass_all
7549 +# This must be Linux ELF.
7552 + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
7553 + lt_cv_deplibs_check_method=pass_all ;;
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 )' ;;
7558 + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
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]+$'
7565 + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
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
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'
7581 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
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
7593 + lt_cv_deplibs_check_method=pass_all
7597 + lt_cv_deplibs_check_method=pass_all
7598 + lt_cv_file_magic_test_file=/lib/libc.so
7601 +sysv5uw[78]* | sysv4*uw2*)
7602 + lt_cv_deplibs_check_method=pass_all
7605 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7606 + case $host_vendor in
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*`
7612 + lt_cv_deplibs_check_method=pass_all
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 )'
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
7624 + lt_cv_deplibs_check_method=pass_all
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
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
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
7647 + *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7651 + { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7656 +echo "$ac_t""$ac_cv_objext" 1>&6
7657 +OBJEXT=$ac_cv_objext
7658 +ac_objext=$ac_cv_objext
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
7667 + if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
7671 + echo 'int main () { return 0; }' > conftest.$ac_ext
7673 + if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7674 + for file in conftest.*; do
7676 + *.$ac_ext | *.c | *.o | *.obj) ;;
7677 + *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7681 + { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7684 + test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7689 +test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7690 +echo "$ac_t""${ac_cv_exeext}" 1>&6
7693 +if test $host != $build; then
7694 + ac_tool_prefix=${host_alias}-
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
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?!! ;)]
7712 +# Character class describing NM global symbol codes.
7713 +symcode='[BCDEGRST]'
7715 +# Regexp to match symbols that can be accessed directly from C.
7716 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7718 +# Transform the above into a raw symbol and a C symbol.
7719 +symxfrm='\1 \2\3 \3'
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'"
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'"
7727 +# Define system-specific variables.
7732 +cygwin* | mingw* | pw32*)
7733 + symcode='[ABCDGISTW]'
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'"
7739 +irix* | nonstopux*)
7740 + symcode='[BCDEGRST]'
7743 + symcode='[BCDEGQRST]'
7749 + symcode='[DFNSTU]'
7753 +# Handle CRLF in mingw tool chain
7757 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
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]'
7766 +# Try without a prefix undercore, then with it.
7767 +for ac_symprfx in "" "_"; do
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'"
7772 + # Check to see that the pipe works correctly.
7775 + cat > conftest.$ac_ext <<EOF
7780 +void nm_test_func(){}
7784 +int main(){nm_test_var='a';nm_test_func();return(0);}
7787 + if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7788 + # Now try to grab the symbols.
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"
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
7807 + # Now generate the symbol file.
7808 + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
7810 + cat <<EOF >> conftest.$ac_ext
7811 +#if defined (__STDC__) && __STDC__
7812 +# define lt_ptr void *
7814 +# define lt_ptr char *
7818 +/* The mapping between symbol names and symbols. */
7823 +lt_preloaded_symbols[] =
7826 + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
7827 + cat <<\EOF >> conftest.$ac_ext
7835 + # Now try linking the two files.
7836 + mv conftest.$ac_objext conftstm.$ac_objext
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
7845 + CFLAGS="$save_CFLAGS"
7847 + echo "cannot find nm_test_func in $nlist" >&5
7850 + echo "cannot find nm_test_var in $nlist" >&5
7853 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7856 + echo "$progname: failed program was:" >&5
7857 + cat conftest.$ac_ext >&5
7859 + rm -f conftest* conftst*
7861 + # Do not use the global_symbol_pipe unless it works.
7862 + if test "$pipe_works" = yes; then
7865 + lt_cv_sys_global_symbol_pipe=
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=
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"
7879 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
7881 + echo "$ac_t""failed" 1>&6
7883 + echo "$ac_t""ok" 1>&6
7886 +for ac_hdr in dlfcn.h
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
7894 + cat > conftest.$ac_ext <<EOF
7895 +#line 2222 "configure"
7896 +#include "confdefs.h"
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
7904 + eval "ac_cv_header_$ac_safe=yes"
7906 + echo "$ac_err" >&5
7907 + echo "configure: failed program was:" >&5
7908 + cat conftest.$ac_ext >&5
7910 + eval "ac_cv_header_$ac_safe=no"
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
7922 + echo "$ac_t""no" 1>&6
7931 +# Only perform the check for file, if the check method requires it
7932 +case $deplibs_check_method in
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
7940 + case $MAGIC_CMD in
7942 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7945 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
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
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
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
7982 + IFS="$ac_save_ifs"
7983 + MAGIC_CMD="$ac_save_MAGIC_CMD"
7988 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7989 +if test -n "$MAGIC_CMD"; then
7990 + echo "$ac_t""$MAGIC_CMD" 1>&6
7992 + echo "$ac_t""no" 1>&6
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
8002 + case $MAGIC_CMD in
8004 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8007 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
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
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
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
8044 + IFS="$ac_save_ifs"
8045 + MAGIC_CMD="$ac_save_MAGIC_CMD"
8050 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8051 +if test -n "$MAGIC_CMD"; then
8052 + echo "$ac_t""$MAGIC_CMD" 1>&6
8054 + echo "$ac_t""no" 1>&6
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
8073 + if test -n "$RANLIB"; then
8074 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8076 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
8085 + IFS="$ac_save_ifs"
8088 +RANLIB="$ac_cv_prog_RANLIB"
8089 +if test -n "$RANLIB"; then
8090 + echo "$ac_t""$RANLIB" 1>&6
8092 + echo "$ac_t""no" 1>&6
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
8105 + if test -n "$RANLIB"; then
8106 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8108 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
8117 + IFS="$ac_save_ifs"
8118 + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8121 +RANLIB="$ac_cv_prog_RANLIB"
8122 +if test -n "$RANLIB"; then
8123 + echo "$ac_t""$RANLIB" 1>&6
8125 + echo "$ac_t""no" 1>&6
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
8140 + if test -n "$STRIP"; then
8141 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8143 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
8152 + IFS="$ac_save_ifs"
8155 +STRIP="$ac_cv_prog_STRIP"
8156 +if test -n "$STRIP"; then
8157 + echo "$ac_t""$STRIP" 1>&6
8159 + echo "$ac_t""no" 1>&6
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
8172 + if test -n "$STRIP"; then
8173 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8175 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
8184 + IFS="$ac_save_ifs"
8185 + test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
8188 +STRIP="$ac_cv_prog_STRIP"
8189 +if test -n "$STRIP"; then
8190 + echo "$ac_t""$STRIP" 1>&6
8192 + echo "$ac_t""no" 1>&6
8202 +enable_win32_dll=no
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"
8210 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8212 +# Some flags need to be propagated to the compiler or linker for good
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
8224 + LD="${LD-ld} -n32"
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
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
8251 + cat > conftest.$ac_ext <<EOF
8252 +#line 2579 "configure"
8253 +#include "confdefs.h"
8259 +if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261 + lt_cv_cc_needs_belf=yes
8263 + echo "configure: failed program was:" >&5
8264 + cat conftest.$ac_ext >&5
8266 + lt_cv_cc_needs_belf=no
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
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"
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'
8293 +# Same as above, but do not quote variable references.
8294 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
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'
8303 +# Global variables:
8304 +default_ofile=libtool
8305 +can_build_shared=yes
8307 +# All known linkers require a `.a' archive for static linking (except M$VC,
8308 +# which needs '.lib').
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"
8316 +old_CFLAGS="$CFLAGS"
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
8333 +if test x"$host" != x"$build"; then
8334 + ac_tool_prefix=${host_alias}-
8339 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
8342 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
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
8352 + export COLLECT_NAMES
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=
8362 +if test -n "$RANLIB"; then
8365 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8368 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8371 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8374 +# Allow CC to be a program name with arguments.
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
8385 + # MS-DOS does not allow filenames that begin with a dot.
8388 +rmdir .libs 2>/dev/null
8389 +echo "$ac_t""$objdir" 1>&6
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"
8400 +test -z "$pic_mode" && pic_mode=default
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
8410 + lt_cv_prog_cc_pic=
8411 + lt_cv_prog_cc_shlib=
8413 + lt_cv_prog_cc_static=
8414 + lt_cv_prog_cc_no_builtin=
8415 + lt_cv_prog_cc_can_build_shared=$can_build_shared
8417 + if test "$GCC" = yes; then
8418 + lt_cv_prog_cc_wl='-Wl,'
8419 + lt_cv_prog_cc_static='-static'
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"
8432 + # FIXME: we need at least 68020 code to build shared libraries, but
8433 + # adding the `-m68020' flag to GCC prevents building anything better,
8435 + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
8437 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8438 + # PIC is the default for these OSes.
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'
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'
8451 + if test -d /usr/nec; then
8452 + lt_cv_prog_cc_pic=-Kconform_pic
8456 + lt_cv_prog_cc_pic='-fPIC'
8460 + # PORTME Check for PIC flags for the system compiler.
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'
8469 + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
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'
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.
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'
8493 + lt_cv_prog_cc_pic='-KPIC'
8494 + lt_cv_prog_cc_static='-Bstatic'
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'
8504 + lt_cv_prog_cc_pic='-Kpic'
8505 + lt_cv_prog_cc_static='-dn'
8506 + lt_cv_prog_cc_shlib='-belf'
8510 + lt_cv_prog_cc_pic='-KPIC'
8511 + lt_cv_prog_cc_static='-Bstatic'
8512 + lt_cv_prog_cc_wl='-Wl,'
8516 + lt_cv_prog_cc_pic='-PIC'
8517 + lt_cv_prog_cc_static='-Bstatic'
8518 + lt_cv_prog_cc_wl='-Qoption ld '
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,'
8528 + lt_cv_prog_cc_pic='-pic'
8529 + lt_cv_prog_cc_static='-Bstatic'
8533 + if test -d /usr/nec ;then
8534 + lt_cv_prog_cc_pic='-Kconform_pic'
8535 + lt_cv_prog_cc_static='-Bstatic'
8540 + lt_cv_prog_cc_can_build_shared=no
8547 +if test -z "$lt_cv_prog_cc_pic"; then
8548 + echo "$ac_t""none" 1>&6
8550 + echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
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
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"
8568 +if { (eval echo configure:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
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
8578 + lt_cv_prog_cc_pic_works=yes
8582 + lt_cv_prog_cc_pic_works=yes
8587 + echo "configure: failed program was:" >&5
8588 + cat conftest.$ac_ext >&5
8590 + lt_cv_prog_cc_pic_works=no
8594 + CFLAGS="$save_CFLAGS"
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
8603 + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
8606 + echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
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 :
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
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
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"
8635 +if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8637 + lt_cv_prog_cc_static_works=yes
8639 + echo "configure: failed program was:" >&5
8640 + cat conftest.$ac_ext >&5
8643 + LDFLAGS="$save_LDFLAGS"
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
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"
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
8667 +$rm -r conftest 2>/dev/null
8670 +echo "int some_variable = 0;" > conftest.$ac_ext
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
8678 +save_CFLAGS="$CFLAGS"
8679 +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
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
8687 + lt_cv_compiler_c_o=yes
8690 + # Append any errors to the config.log.
8691 + cat out/conftest.err 1>&5
8692 + lt_cv_compiler_c_o=no
8694 +CFLAGS="$save_CFLAGS"
8696 +$rm conftest* out/*
8700 +$rm -r conftest 2>/dev/null
8704 +compiler_c_o=$lt_cv_compiler_c_o
8705 +echo "$ac_t""$compiler_c_o" 1>&6
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
8715 + lt_cv_compiler_o_lo=no
8716 + save_CFLAGS="$CFLAGS"
8717 + CFLAGS="$CFLAGS -c -o conftest.lo"
8718 + save_objext="$ac_objext"
8720 + cat > conftest.$ac_ext <<EOF
8721 +#line 3048 "configure"
8722 +#include "confdefs.h"
8725 +int some_variable = 0;
8728 +if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
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
8735 + lt_cv_compiler_o_lo=yes
8739 + echo "configure: failed program was:" >&5
8740 + cat conftest.$ac_ext >&5
8743 + ac_objext="$save_objext"
8744 + CFLAGS="$save_CFLAGS"
8748 + compiler_o_lo=$lt_cv_compiler_o_lo
8749 + echo "$ac_t""$compiler_o_lo" 1>&6
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
8762 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
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
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"
8788 +int some_variable = 0;
8791 +if { (eval echo configure:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
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
8798 + compiler_rtti_exceptions=yes
8802 + echo "configure: failed program was:" >&5
8803 + cat conftest.$ac_ext >&5
8806 + CFLAGS="$save_CFLAGS"
8807 + echo "$ac_t""$compiler_rtti_exceptions" 1>&6
8809 + if test "$compiler_rtti_exceptions" = "yes"; then
8810 + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
8812 + no_builtin_flag=' -fno-builtin'
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
8820 +allow_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
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=
8837 +hardcode_minus_L=no
8838 +hardcode_shlibpath_var=unsupported
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
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=
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
8873 +if test "$with_gnu_ld" = yes; then
8874 + # If archive_cmds runs LD, not CC, wlarc should be empty
8877 + # See if GNU ld supports shared libraries.
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.
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.
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
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
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'
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
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'
8933 + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
8935 + # cygwin and mingw dlls have different entry points and sets of symbols
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~
8943 + dll_entry=_DllMainCRTStartup@12
8944 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
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
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)~'
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'
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;
8977 + echo EXPORTS > $output_objdir/$soname-def;
8979 + cat $export_symbols | while read symbol; do
8980 + set dummy \$symbol;
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;;
8986 + _lt_hint=`expr 1 + \$_lt_hint`;
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'
8998 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8999 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
9007 + solaris* | sysv5*)
9008 + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
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.
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'
9029 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9031 + hardcode_direct=yes
9032 + hardcode_shlibpath_var=no
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'
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'
9050 + cygwin* | mingw* | pw32*)
9051 + # dlltool doesn't understand --whole-archive et. al.
9052 + whole_archive_flag_spec=
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'
9059 + whole_archive_flag_spec=
9065 + # PORTME fill in a description of your system's linker (not GNU ld)
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
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'
9089 + aix_use_runtimelinking=no
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
9098 + aix_use_runtimelinking=yes
9105 + exp_sym_flag='-bexport'
9106 + no_entry_flag='-bnoentry'
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.
9115 + hardcode_direct=yes
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
9124 + # We have reworked collect2
9125 + hardcode_direct=yes
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=
9138 + shared_flag='-shared'
9141 + if test "$host_cpu" = ia64; then
9142 + shared_flag='${wl}-G'
9144 + if test "$aix_use_runtimelinking" = yes; then
9145 + shared_flag='${wl}-G'
9147 + shared_flag='${wl}-bM:SRE'
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"
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"
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'
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
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.
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"`'
9204 + darwin* | rhapsody*)
9205 + case "$host_os" in
9206 + rhapsody* | darwin1.[012])
9207 + allow_undefined_flag='-undefined suppress'
9209 + *) # Darwin 1.3 on
9210 + allow_undefined_flag='-flat_namespace -undefined suppress'
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'
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
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
9240 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
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
9248 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
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
9256 + hpux9* | hpux10* | hpux11*)
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' ;;
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'
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'
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'
9277 + hardcode_libdir_separator=:
9278 + link_all_deplibs=yes
9282 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9283 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9285 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9287 + hardcode_libdir_flag_spec='-R$libdir'
9288 + hardcode_direct=yes
9289 + hardcode_shlibpath_var=no
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
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'
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'
9314 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9315 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
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'
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'
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'
9337 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338 + hardcode_libdir_separator=:
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'
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'
9352 + #Both c and cxx compiler support -rpath directly
9353 + hardcode_libdir_flag_spec='-rpath $libdir'
9355 + hardcode_libdir_separator=:
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'
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
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.
9392 + no_undefined_flag=
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
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' ;;
9408 + link_all_deplibs=yes
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'
9417 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9419 + hardcode_libdir_flag_spec='-L$libdir'
9420 + hardcode_direct=yes
9421 + hardcode_minus_L=yes
9422 + hardcode_shlibpath_var=no
9426 + case $host_vendor in
9428 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 + hardcode_direct=yes # is this really true???
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
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
9443 + runpath_var='LD_RUN_PATH'
9444 + hardcode_shlibpath_var=no
9448 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 + hardcode_shlibpath_var=no
9450 + export_dynamic_flag_spec='-Bexport'
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'
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
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
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
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
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'
9501 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9503 + runpath_var='LD_RUN_PATH'
9504 + hardcode_shlibpath_var=no
9512 +echo "$ac_t""$ld_shlibs" 1>&6
9513 +test "$ld_shlibs" = no && can_build_shared=no
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
9519 +if test -n "$hardcode_libdir_flag_spec" || \
9520 + test -n "$runpath_var"; then
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
9532 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
9533 + hardcode_action=immediate
9536 + # We cannot hardcode anything, or else we can only hardcode existing
9538 + hardcode_action=unsupported
9540 +echo "$ac_t""$hardcode_action" 1>&6
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
9551 + echo "$ac_t""no" 1>&6
9554 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
9555 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
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'
9564 +postuninstall_cmds=
9568 +shlibpath_overrides_runpath=unknown
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"
9576 + version_type=linux
9577 + library_names_spec='${libname}${release}.so$versuffix $libname.a'
9578 + shlibpath_var=LIBPATH
9580 + # AIX has no versioning support, so we append a major version to the name.
9581 + soname_spec='${libname}${release}.so$major'
9585 + version_type=linux
9586 + need_lib_prefix=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
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.
9600 + aix4 | aix4.[01] | aix4.[01].*)
9601 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9603 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9606 + can_build_shared=no
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'
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'
9625 + shlibpath_var=LIBPATH
9627 + hardcode_into_libs=yes
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'
9637 + library_names_spec='${libname}.so'
9638 + dynamic_linker="$host_os ld.so"
9639 + shlibpath_var=LIBRARY_PATH
9643 + version_type=linux
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
9657 +cygwin* | mingw* | pw32*)
9658 + version_type=windows
9660 + need_lib_prefix=no
9661 + case $GCC,$host_os in
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~
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"`
9678 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
9681 + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
9684 + dynamic_linker='Win32 ld.exe'
9685 + # FIXME: first we should search . and the directory the executable is in
9686 + shlibpath_var=PATH
9689 +darwin* | rhapsody*)
9690 + dynamic_linker="$host_os dyld"
9691 + version_type=darwin
9692 + need_lib_prefix=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
9708 + version_type=linux
9709 + need_lib_prefix=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'
9720 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9721 + version_type=freebsd-$objformat
9722 + case $version_type in
9724 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
9726 + need_lib_prefix=no
9729 + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
9733 + shlibpath_var=LD_LIBRARY_PATH
9736 + shlibpath_overrides_runpath=yes
9739 + shlibpath_overrides_runpath=no
9740 + hardcode_into_libs=yes
9746 + version_type=linux
9747 + need_lib_prefix=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
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
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'
9770 +irix5* | irix6* | nonstopux*)
9772 + nonstopux*) version_type=nonstopux ;;
9773 + *) version_type=irix ;;
9775 + need_lib_prefix=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'
9780 + irix5* | nonstopux*)
9781 + libsuff= shlibsuff=
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;;
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}"
9798 +# No shared lib support for Linux oldld, aout, or coff.
9799 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
9803 +# This must be Linux ELF.
9805 + version_type=linux
9806 + need_lib_prefix=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
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'
9828 + version_type=sunos
9829 + need_lib_prefix=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'
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'
9840 + shlibpath_var=LD_LIBRARY_PATH
9841 + shlibpath_overrides_runpath=yes
9842 + hardcode_into_libs=yes
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
9853 + version_type=sunos
9854 + need_lib_prefix=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
9862 + shlibpath_overrides_runpath=yes
9866 + shlibpath_overrides_runpath=yes
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
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
9881 +osf3* | osf4* | osf5*)
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
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
9901 + version_type=linux
9902 + need_lib_prefix=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'
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
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
9932 + shlibpath_overrides_runpath=no
9933 + need_lib_prefix=no
9934 + export_dynamic_flag_spec='${wl}-Blargedynsym'
9935 + runpath_var=LD_RUN_PATH
9938 + need_lib_prefix=no
9941 + need_lib_prefix=no
9943 + shlibpath_overrides_runpath=no
9944 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
9957 + version_type=linux
9958 + need_lib_prefix=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
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
9978 +echo "$ac_t""$dynamic_linker" 1>&6
9979 +test "$dynamic_linker" = no && can_build_shared=no
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
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
9990 +# On AIX, shared libraries and static libraries use the same namespace, and
9991 +# are all built from PIC.
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'
10002 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10003 + test "$enable_shared" = yes && enable_static=no
10007 +echo "$ac_t""$enable_shared" 1>&6
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
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
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"
10029 +if test "x$enable_dlopen" != xyes; then
10030 + enable_dlopen=unknown
10031 + enable_dlopen_self=unknown
10032 + enable_dlopen_self_static=unknown
10035 + lt_cv_dlopen_libs=
10039 + lt_cv_dlopen="load_add_on"
10040 + lt_cv_dlopen_libs=
10041 + lt_cv_dlopen_self=yes
10044 + cygwin* | mingw* | pw32*)
10045 + lt_cv_dlopen="LoadLibrary"
10046 + lt_cv_dlopen_libs=
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
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. */
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)
10079 +if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10081 + eval "ac_cv_func_shl_load=yes"
10083 + echo "configure: failed program was:" >&5
10084 + cat conftest.$ac_ext >&5
10086 + eval "ac_cv_func_shl_load=no"
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"
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
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. */
10116 +if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10118 + eval "ac_cv_lib_$ac_lib_var=yes"
10120 + echo "configure: failed program was:" >&5
10121 + cat conftest.$ac_ext >&5
10123 + eval "ac_cv_lib_$ac_lib_var=no"
10126 +LIBS="$ac_save_LIBS"
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"
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
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. */
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)
10163 +if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10165 + eval "ac_cv_func_dlopen=yes"
10167 + echo "configure: failed program was:" >&5
10168 + cat conftest.$ac_ext >&5
10170 + eval "ac_cv_func_dlopen=no"
10175 +if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
10176 + echo "$ac_t""yes" 1>&6
10177 + lt_cv_dlopen="dlopen"
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
10186 + ac_save_LIBS="$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. */
10200 +if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10202 + eval "ac_cv_lib_$ac_lib_var=yes"
10204 + echo "configure: failed program was:" >&5
10205 + cat conftest.$ac_ext >&5
10207 + eval "ac_cv_lib_$ac_lib_var=no"
10210 +LIBS="$ac_save_LIBS"
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"
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
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. */
10238 +if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10240 + eval "ac_cv_lib_$ac_lib_var=yes"
10242 + echo "configure: failed program was:" >&5
10243 + cat conftest.$ac_ext >&5
10245 + eval "ac_cv_lib_$ac_lib_var=no"
10248 +LIBS="$ac_save_LIBS"
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"
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
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. */
10276 +if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10278 + eval "ac_cv_lib_$ac_lib_var=yes"
10280 + echo "configure: failed program was:" >&5
10281 + cat conftest.$ac_ext >&5
10283 + eval "ac_cv_lib_$ac_lib_var=no"
10286 +LIBS="$ac_save_LIBS"
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"
10293 + echo "$ac_t""no" 1>&6
10314 + if test "x$lt_cv_dlopen" != xno; then
10315 + enable_dlopen=yes
10320 + case $lt_cv_dlopen in
10322 + save_CPPFLAGS="$CPPFLAGS"
10323 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10325 + save_LDFLAGS="$LDFLAGS"
10326 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10328 + save_LIBS="$LIBS"
10329 + LIBS="$lt_cv_dlopen_libs $LIBS"
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
10336 + if test "$cross_compiling" = yes; then :
10337 + lt_cv_dlopen_self=cross
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"
10346 +#include <dlfcn.h>
10349 +#include <stdio.h>
10351 +#ifdef RTLD_GLOBAL
10352 +# define LT_DLGLOBAL RTLD_GLOBAL
10355 +# define LT_DLGLOBAL DL_GLOBAL
10357 +# define LT_DLGLOBAL 0
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
10365 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
10368 +# define LT_DLLAZY_OR_NOW DL_LAZY
10371 +# define LT_DLLAZY_OR_NOW RTLD_NOW
10374 +# define LT_DLLAZY_OR_NOW DL_NOW
10376 +# define LT_DLLAZY_OR_NOW 0
10383 +#ifdef __cplusplus
10384 +extern "C" void exit (int);
10387 +void fnord() { int i=42;}
10390 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10391 + int status = $lt_dlunknown;
10395 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10396 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10397 + /* dlclose (self); */
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
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 ;;
10412 + # compilation failed
10413 + lt_cv_dlopen_self=no
10421 +echo "$ac_t""$lt_cv_dlopen_self" 1>&6
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
10430 + if test "$cross_compiling" = yes; then :
10431 + lt_cv_dlopen_self_static=cross
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"
10440 +#include <dlfcn.h>
10443 +#include <stdio.h>
10445 +#ifdef RTLD_GLOBAL
10446 +# define LT_DLGLOBAL RTLD_GLOBAL
10449 +# define LT_DLGLOBAL DL_GLOBAL
10451 +# define LT_DLGLOBAL 0
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
10459 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
10462 +# define LT_DLLAZY_OR_NOW DL_LAZY
10465 +# define LT_DLLAZY_OR_NOW RTLD_NOW
10468 +# define LT_DLLAZY_OR_NOW DL_NOW
10470 +# define LT_DLLAZY_OR_NOW 0
10477 +#ifdef __cplusplus
10478 +extern "C" void exit (int);
10481 +void fnord() { int i=42;}
10484 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10485 + int status = $lt_dlunknown;
10489 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10490 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10491 + /* dlclose (self); */
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
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 ;;
10506 + # compilation failed
10507 + lt_cv_dlopen_self_static=no
10515 +echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
10518 + CPPFLAGS="$save_CPPFLAGS"
10519 + LDFLAGS="$save_LDFLAGS"
10520 + LIBS="$save_LIBS"
10524 + case $lt_cv_dlopen_self in
10525 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10526 + *) enable_dlopen_self=unknown ;;
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 ;;
10536 +if test "$enable_shared" = yes && test "$GCC" = yes; then
10537 + case $archive_cmds in
10539 + # FIXME: we may have to deal with multi-command sequences.
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
10551 + echo 'static int dummy;' > conftest.$ac_ext
10553 + if { (eval echo configure:4880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10556 + libobjs=conftest.$ac_objext
10558 + wl=$lt_cv_prog_cc_wl
10559 + compiler_flags=-v
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; }
10568 + lt_cv_archive_cmds_need_lc=no
10570 + lt_cv_archive_cmds_need_lc=yes
10572 + allow_undefined_flag=$save_allow_undefined_flag
10574 + cat conftest.err 1>&5
10578 + echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
10582 +need_lc=${lt_cv_archive_cmds_need_lc-yes}
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
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"
10597 +if test -f "$ltmain"; then
10598 + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
10599 + $rm -f "${ofile}T"
10601 + echo creating $ofile
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
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\"\`\\\""
10634 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10639 + cat <<__EOF__ > "${ofile}T"
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.
10646 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
10647 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
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.
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.
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.
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.
10668 +# A sed that does not truncate output.
10671 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10672 +Xsed="${SED} -e s/^X//"
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
10678 +# ### BEGIN LIBTOOL CONFIG
10680 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10682 +# Shell to use when invoking shell scripts.
10685 +# Whether or not to build shared libraries.
10686 +build_libtool_libs=$enable_shared
10688 +# Whether or not to build static libraries.
10689 +build_old_libs=$enable_static
10691 +# Whether or not to add -lc for building shared libraries.
10692 +build_libtool_need_lc=$need_lc
10694 +# Whether or not to optimize for fast installation.
10695 +fast_install=$enable_fast_install
10697 +# The host system.
10698 +host_alias=$host_alias
10701 +# An echo program that does not interpret backslashes.
10706 +AR_FLAGS=$lt_AR_FLAGS
10708 +# The default C compiler.
10711 +# Is the compiler the GNU C compiler?
10714 +# The linker used to build libraries.
10717 +# Whether we need hard or soft links.
10720 +# A BSD-compatible nm program.
10723 +# A symbol stripping program
10726 +# Used to examine libraries when file_magic_cmd begins "file"
10727 +MAGIC_CMD=$MAGIC_CMD
10729 +# Used on cygwin: DLL creation program.
10730 +DLLTOOL="$DLLTOOL"
10732 +# Used on cygwin: object dumper.
10733 +OBJDUMP="$OBJDUMP"
10735 +# Used on cygwin: assembler.
10738 +# The name of the directory that contains temporary libtool files.
10741 +# How to create reloadable object files.
10742 +reload_flag=$lt_reload_flag
10743 +reload_cmds=$lt_reload_cmds
10745 +# How to pass a linker flag through the compiler.
10748 +# Object file suffix (normally "o").
10749 +objext="$ac_objext"
10751 +# Old archive suffix (normally "a").
10754 +# Executable file suffix (normally "").
10757 +# Additional compiler flags for building library objects.
10758 +pic_flag=$lt_pic_flag
10759 +pic_mode=$pic_mode
10761 +# Does compiler simultaneously support -c and -o options?
10762 +compiler_c_o=$lt_compiler_c_o
10764 +# Can we write directly to a .lo ?
10765 +compiler_o_lo=$lt_compiler_o_lo
10767 +# Must we lock files when doing compilation ?
10768 +need_locks=$lt_need_locks
10770 +# Do we need the lib prefix for modules?
10771 +need_lib_prefix=$need_lib_prefix
10773 +# Do we need a version for libraries?
10774 +need_version=$need_version
10776 +# Whether dlopen is supported.
10777 +dlopen_support=$enable_dlopen
10779 +# Whether dlopen of programs is supported.
10780 +dlopen_self=$enable_dlopen_self
10782 +# Whether dlopen of statically linked programs is supported.
10783 +dlopen_self_static=$enable_dlopen_self_static
10785 +# Compiler flag to prevent dynamic linking.
10786 +link_static_flag=$lt_link_static_flag
10788 +# Compiler flag to turn off builtin functions.
10789 +no_builtin_flag=$lt_no_builtin_flag
10791 +# Compiler flag to allow reflexive dlopens.
10792 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10794 +# Compiler flag to generate shared objects directly from archives.
10795 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
10797 +# Compiler flag to generate thread-safe objects.
10798 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
10800 +# Library versioning type.
10801 +version_type=$version_type
10803 +# Format of library name prefix.
10804 +libname_spec=$lt_libname_spec
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
10810 +# The coded name of the library, if different from the real name.
10811 +soname_spec=$lt_soname_spec
10813 +# Commands used to build and install an old-style archive.
10815 +old_archive_cmds=$lt_old_archive_cmds
10816 +old_postinstall_cmds=$lt_old_postinstall_cmds
10817 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
10819 +# Create an old-style archive from a shared archive.
10820 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
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
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
10832 - rm -f conftestdata
10833 -if ln -s X conftestdata 2>/dev/null
10835 - rm -f conftestdata
10836 - ac_cv_prog_LN_S="ln -s"
10838 - ac_cv_prog_LN_S=ln
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
10845 - echo "$ac_t""no" 1>&6
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
10853 +# Commands to strip libraries.
10854 +old_striplib=$lt_old_striplib
10855 +striplib=$lt_striplib
10858 -NONE) lt_target="$host" ;;
10859 -*) lt_target="$target" ;;
10861 +# Method to check whether dependent libraries are shared objects.
10862 +deplibs_check_method=$lt_deplibs_check_method
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
10874 +# Flag that allows shared libraries with undefined symbols to be built.
10875 +allow_undefined_flag=$lt_allow_undefined_flag
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"
10882 +# Flag that forces no undefined symbols.
10883 +no_undefined_flag=$lt_no_undefined_flag
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
10890 -# Some flags need to be propagated to the compiler or linker for good
10891 -# libtool support.
10892 -case "$lt_target" in
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
10899 - LD="${LD-ld} -32"
10902 - LD="${LD-ld} -n32"
10905 - LD="${LD-ld} -64"
10911 +# Same as above, but a single script fragment to be evaled but not shown.
10912 +finish_eval=$lt_finish_eval
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
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
10930 +# Transform the output of nm in a proper C declaration
10931 +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
10935 -if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10937 - lt_cv_cc_needs_belf=yes
10939 - echo "configure: failed program was:" >&5
10940 - cat conftest.$ac_ext >&5
10942 - lt_cv_cc_needs_belf=no
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
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"
10955 +# This is the shared library runtime path variable.
10956 +runpath_var=$runpath_var
10958 +# This is the shared library path variable.
10959 +shlibpath_var=$shlibpath_var
10962 +# Is shlibpath searched before the hard-coded library search path?
10963 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10965 +# How to hardcode a shared library path into an executable.
10966 +hardcode_action=$hardcode_action
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
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
10981 +# Whether we need a single -rpath flag with a separated argument.
10982 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
10984 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
10985 +# resulting binary.
10986 +hardcode_direct=$hardcode_direct
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
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
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"
11000 +# Whether libtool must link a program against all its dependency libraries.
11001 +link_all_deplibs=$link_all_deplibs
11003 +# Compile-time system search path for libraries
11004 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11006 +# Run-time system search path for libraries
11007 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11009 +# Fix the shell variable \$srcfile for the compiler.
11010 +fix_srcfile_path="$fix_srcfile_path"
11012 +# Set to yes if exported symbols are required.
11013 +always_export_symbols=$always_export_symbols
11015 +# The commands to list exported symbols.
11016 +export_symbols_cmds=$lt_export_symbols_cmds
11018 +# The commands to extract the exported symbol list from a shared archive.
11019 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
11021 +# Symbols that should not be listed in the preloaded symbols.
11022 +exclude_expsyms=$lt_exclude_expsyms
11024 +# Symbols that must always be exported.
11025 +include_expsyms=$lt_include_expsyms
11027 +# ### END LIBTOOL CONFIG
11033 + cat <<\EOF >> "${ofile}T"
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
11040 + export COLLECT_NAMES
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>
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__
11071 +# #ifdef __cplusplus
11074 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
11075 +# #ifdef __cplusplus
11079 +# #ifdef __CYGWIN__
11080 +# #include <cygwin/cygwin_dll.h>
11081 +# DECLARE_CYGWIN_DLL( DllMain );
11083 +# HINSTANCE __hDllInstance_base;
11086 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
11088 +# __hDllInstance_base = hInst;
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.
11098 +# This file is part of GNU libtool.
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.
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.
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.
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() */
11120 +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
11121 +# #ifndef O_BINARY
11122 +# #define O_BINARY 0
11125 +# static unsigned int
11126 +# pe_get16 (fd, offset)
11130 +# unsigned char b[2];
11131 +# lseek (fd, offset, SEEK_SET);
11132 +# read (fd, b, 2);
11133 +# return b[0] + (b[1]<<8);
11136 +# static unsigned int
11137 +# pe_get32 (fd, offset)
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);
11147 +# static unsigned int
11151 +# unsigned char *b = ptr;
11152 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
11156 +# main (argc, argv)
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;
11167 +# filename = argv[1];
11169 +# dll = open(filename, O_RDONLY|O_BINARY);
11173 +# dll_name = filename;
11175 +# for (i=0; filename[i]; i++)
11176 +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
11177 +# dll_name = filename + i +1;
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);
11183 +# if (num_entries < 1) /* no exports */
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));
11193 +# for (i = 0; i < nsections; i++)
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)
11204 +# expptr = fptr + (export_rva - vaddr);
11205 +# if (export_rva + export_size > vaddr + vsize)
11206 +# export_size = vsize - (export_rva - vaddr);
11211 +# expdata = (unsigned char*)malloc(export_size);
11212 +# lseek (dll, expptr, SEEK_SET);
11213 +# read (dll, expdata, export_size);
11214 +# erva = expdata - export_rva;
11216 +# nexp = pe_as32 (expdata+24);
11217 +# name_rvas = pe_as32 (expdata+32);
11219 +# printf ("EXPORTS\n");
11220 +# for (i = 0; i<nexp; i++)
11222 +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
11223 +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
11228 +# /* impgen.c ends here */
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.
11237 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
11239 - # `set' does not quote correctly, so add quotes (double-quote substitution
11240 - # turns \\\\ into \\, and sed turns \\ into \).
11242 - -e "s/'/'\\\\''/g" \
11243 - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
11249 - esac >> confcache
11250 -if cmp -s $cache_file confcache; then
11253 - if test -w $cache_file; then
11254 - echo "updating cache $cache_file"
11255 - cat confcache > $cache_file
11257 - echo "not updating unwritable cache $cache_file"
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)
11267 + mv -f "${ofile}T" "$ofile" || \
11268 + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
11269 + chmod +x "$ofile"
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; }
11283 -# Reload cache, that may have been modified by ltconfig
11284 -if test -r "$cache_file"; then
11285 - echo "loading cache $cache_file"
11288 - echo "creating cache $cache_file"
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"
11297 # Always use our own libtool.
11298 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
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 @@
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
11321 case "$host_alias" in
11322 @@ -1649,7 +5575,7 @@
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 @@
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
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
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
11367 @@ -1824,7 +5750,7 @@
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
11375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11376 @@ -1835,12 +5761,12 @@
11378 cat > conftest.$ac_ext << EOF
11380 -#line 1839 "configure"
11381 +#line 5765 "configure"
11382 #include "confdefs.h"
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; }
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
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
11406 @@ -1880,7 +5806,7 @@
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
11415 @@ -1899,7 +5825,7 @@
11416 ac_save_CFLAGS="$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
11424 @@ -1934,7 +5860,7 @@
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
11433 @@ -1950,7 +5876,7 @@
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>
11442 @@ -1987,7 +5913,7 @@
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
11449 am_cv_prog_cc_stdc="$ac_arg"; break
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 @@
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
11468 if test "$cross_compiling" = yes; then
11469 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11471 cat > conftest.$ac_ext <<EOF
11472 -#line 2106 "configure"
11473 +#line 6032 "configure"
11474 #include "confdefs.h"
11476 int main (void) { return (log(1) != log(1.)); }
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
11481 echo "$ac_t""none needed" 1>&6
11483 @@ -2120,12 +6046,12 @@
11484 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11486 cat > conftest.$ac_ext <<EOF
11487 -#line 2124 "configure"
11488 +#line 6050 "configure"
11489 #include "confdefs.h"
11491 int main (void) { return (log(1) != log(1.)); }
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
11496 echo "$ac_t""-std1" 1>&6
11498 @@ -2148,16 +6074,16 @@
11499 LIBS=$glib_save_LIBS
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>
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
11516 echo "$ac_t""none needed" 1>&6
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>
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
11533 echo "$ac_t""-posix" 1>&6
11535 @@ -2190,93 +6116,13 @@
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
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
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>
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
11566 - echo "$ac_err" >&5
11567 - echo "configure: failed program was:" >&5
11568 - cat conftest.$ac_ext >&5
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>
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
11583 - echo "$ac_err" >&5
11584 - echo "configure: failed program was:" >&5
11585 - cat conftest.$ac_ext >&5
11587 - CPP="${CC-cc} -nologo -E"
11588 - cat > conftest.$ac_ext <<EOF
11589 -#line 2244 "configure"
11590 -#include "confdefs.h"
11591 -#include <assert.h>
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
11600 - echo "$ac_err" >&5
11601 - echo "configure: failed program was:" >&5
11602 - cat conftest.$ac_ext >&5
11611 - ac_cv_prog_CPP="$CPP"
11613 - CPP="$ac_cv_prog_CPP"
11615 - ac_cv_prog_CPP="$CPP"
11617 -echo "$ac_t""$CPP" 1>&6
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
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 @@
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
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>
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>
11658 @@ -2340,7 +6186,7 @@
11661 cat > conftest.$ac_ext <<EOF
11662 -#line 2344 "configure"
11663 +#line 6190 "configure"
11664 #include "confdefs.h"
11666 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11667 @@ -2351,7 +6197,7 @@
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
11676 @@ -2377,12 +6223,12 @@
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
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 @@
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
11698 eval "ac_cv_func_vprintf=yes"
11700 @@ -2429,12 +6275,12 @@
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
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 @@
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
11722 eval "ac_cv_func__doprnt=yes"
11724 @@ -2485,12 +6331,12 @@
11725 for ac_func in atexit on_exit
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
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 @@
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
11746 eval "ac_cv_func_$ac_func=yes"
11748 @@ -2539,7 +6385,7 @@
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
11757 @@ -2547,9 +6393,10 @@
11758 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11760 cat > conftest.$ac_ext <<EOF
11761 -#line 2551 "configure"
11762 +#line 6397 "configure"
11763 #include "confdefs.h"
11765 +#include <sys/types.h>
11768 FILE *f=fopen("conftestval", "w");
11769 @@ -2558,7 +6405,7 @@
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
11776 ac_cv_sizeof_char=`cat conftestval`
11778 @@ -2578,7 +6425,7 @@
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
11787 @@ -2586,9 +6433,10 @@
11788 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11790 cat > conftest.$ac_ext <<EOF
11791 -#line 2590 "configure"
11792 +#line 6437 "configure"
11793 #include "confdefs.h"
11795 +#include <sys/types.h>
11798 FILE *f=fopen("conftestval", "w");
11799 @@ -2597,7 +6445,7 @@
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
11806 ac_cv_sizeof_short=`cat conftestval`
11808 @@ -2617,7 +6465,7 @@
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
11817 @@ -2625,9 +6473,10 @@
11818 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11820 cat > conftest.$ac_ext <<EOF
11821 -#line 2629 "configure"
11822 +#line 6477 "configure"
11823 #include "confdefs.h"
11825 +#include <sys/types.h>
11828 FILE *f=fopen("conftestval", "w");
11829 @@ -2636,7 +6485,7 @@
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
11836 ac_cv_sizeof_long=`cat conftestval`
11838 @@ -2656,7 +6505,7 @@
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
11847 @@ -2664,9 +6513,10 @@
11848 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11850 cat > conftest.$ac_ext <<EOF
11851 -#line 2668 "configure"
11852 +#line 6517 "configure"
11853 #include "confdefs.h"
11855 +#include <sys/types.h>
11858 FILE *f=fopen("conftestval", "w");
11859 @@ -2675,7 +6525,7 @@
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
11866 ac_cv_sizeof_int=`cat conftestval`
11868 @@ -2695,7 +6545,7 @@
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
11877 @@ -2703,9 +6553,10 @@
11878 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11880 cat > conftest.$ac_ext <<EOF
11881 -#line 2707 "configure"
11882 +#line 6557 "configure"
11883 #include "confdefs.h"
11885 +#include <sys/types.h>
11888 FILE *f=fopen("conftestval", "w");
11889 @@ -2714,7 +6565,7 @@
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
11896 ac_cv_sizeof_void_p=`cat conftestval`
11898 @@ -2734,7 +6585,7 @@
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
11907 @@ -2742,9 +6593,10 @@
11908 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11910 cat > conftest.$ac_ext <<EOF
11911 -#line 2746 "configure"
11912 +#line 6597 "configure"
11913 #include "confdefs.h"
11915 +#include <sys/types.h>
11918 FILE *f=fopen("conftestval", "w");
11919 @@ -2753,7 +6605,7 @@
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
11926 ac_cv_sizeof_long_long=`cat conftestval`
11928 @@ -2774,12 +6626,12 @@
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
11937 cat > conftest.$ac_ext <<EOF
11938 -#line 2783 "configure"
11939 +#line 6635 "configure"
11940 #include "confdefs.h"
11943 @@ -2828,7 +6680,7 @@
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
11952 @@ -2850,7 +6702,7 @@
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
11961 @@ -2859,14 +6711,14 @@
11962 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11964 cat > conftest.$ac_ext <<EOF
11965 -#line 2863 "configure"
11966 +#line 6715 "configure"
11967 #include "confdefs.h"
11969 __inline int foo () { return 0; }
11970 int main () { return foo (); }
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
11976 glib_cv_has__inline=yes
11978 @@ -2891,7 +6743,7 @@
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
11987 @@ -2900,14 +6752,14 @@
11988 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11990 cat > conftest.$ac_ext <<EOF
11991 -#line 2904 "configure"
11992 +#line 6756 "configure"
11993 #include "confdefs.h"
11995 __inline__ int foo () { return 0; }
11996 int main () { return foo (); }
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
12002 glib_cv_has__inline__=yes
12004 @@ -2932,7 +6784,7 @@
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
12013 @@ -2941,14 +6793,14 @@
12014 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12016 cat > conftest.$ac_ext <<EOF
12017 -#line 2945 "configure"
12018 +#line 6797 "configure"
12019 #include "confdefs.h"
12021 inline int foo () { return 0; }
12022 int main () { return foo (); }
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
12028 glib_cv_hasinline=yes
12030 @@ -2974,14 +6826,14 @@
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
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 @@
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
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 @@
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
12068 ac_cv_c_bigendian=yes
12070 @@ -3027,7 +6879,7 @@
12071 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12073 cat > conftest.$ac_ext <<EOF
12074 -#line 3031 "configure"
12075 +#line 6883 "configure"
12076 #include "confdefs.h"
12078 /* Are we little or big endian? From Harbison&Steele. */
12079 @@ -3040,7 +6892,7 @@
12080 exit (u.c[sizeof (long) - 1] == 1);
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
12086 ac_cv_c_bigendian=no
12088 @@ -3068,17 +6920,17 @@
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
12097 cat > conftest.$ac_ext <<EOF
12098 -#line 3077 "configure"
12099 +#line 6929 "configure"
12100 #include "confdefs.h"
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
12109 @@ -3111,17 +6963,17 @@
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
12118 cat > conftest.$ac_ext <<EOF
12119 -#line 3120 "configure"
12120 +#line 6972 "configure"
12121 #include "confdefs.h"
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
12130 @@ -3154,17 +7006,17 @@
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
12139 cat > conftest.$ac_ext <<EOF
12140 -#line 3163 "configure"
12141 +#line 7015 "configure"
12142 #include "confdefs.h"
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
12151 @@ -3197,17 +7049,17 @@
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
12160 cat > conftest.$ac_ext <<EOF
12161 -#line 3206 "configure"
12162 +#line 7058 "configure"
12163 #include "confdefs.h"
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
12172 @@ -3240,17 +7092,17 @@
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
12181 cat > conftest.$ac_ext <<EOF
12182 -#line 3249 "configure"
12183 +#line 7101 "configure"
12184 #include "confdefs.h"
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
12193 @@ -3283,17 +7135,17 @@
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
12202 cat > conftest.$ac_ext <<EOF
12203 -#line 3292 "configure"
12204 +#line 7144 "configure"
12205 #include "confdefs.h"
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
12214 @@ -3326,17 +7178,17 @@
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
12223 cat > conftest.$ac_ext <<EOF
12224 -#line 3335 "configure"
12225 +#line 7187 "configure"
12226 #include "confdefs.h"
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
12235 @@ -3369,17 +7221,17 @@
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
12244 cat > conftest.$ac_ext <<EOF
12245 -#line 3378 "configure"
12246 +#line 7230 "configure"
12247 #include "confdefs.h"
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
12256 @@ -3412,17 +7264,17 @@
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
12265 cat > conftest.$ac_ext <<EOF
12266 -#line 3421 "configure"
12267 +#line 7273 "configure"
12268 #include "confdefs.h"
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
12277 @@ -3455,17 +7307,17 @@
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
12286 cat > conftest.$ac_ext <<EOF
12287 -#line 3464 "configure"
12288 +#line 7316 "configure"
12289 #include "confdefs.h"
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
12298 @@ -3499,12 +7351,12 @@
12299 for ac_func in lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll
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
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 @@
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
12320 eval "ac_cv_func_$ac_func=yes"
12322 @@ -3554,9 +7406,9 @@
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"
12334 @@ -3567,7 +7419,7 @@
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
12343 @@ -3587,9 +7439,9 @@
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"
12355 @@ -3599,7 +7451,7 @@
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
12364 @@ -3619,9 +7471,9 @@
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>
12376 @@ -3630,7 +7482,7 @@
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
12385 @@ -3650,16 +7502,16 @@
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>
12397 fd_set readMask, writeMask;
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
12405 @@ -3673,7 +7525,7 @@
12406 echo "$ac_t""yes, found in sys/types.h" 1>&6
12408 cat > conftest.$ac_ext <<EOF
12409 -#line 3677 "configure"
12410 +#line 7529 "configure"
12411 #include "confdefs.h"
12412 #include <sys/select.h>
12414 @@ -3707,14 +7559,14 @@
12415 # Check for wchar.h
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"
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
12432 @@ -3738,14 +7590,14 @@
12433 # Check for wctype.h (for iswalnum)
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>
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
12450 @@ -3769,12 +7621,12 @@
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
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 @@
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
12472 eval "ac_cv_func_iswalnum=yes"
12474 @@ -3815,7 +7667,7 @@
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"
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 @@
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
12499 eval "ac_cv_lib_$ac_lib_var=yes"
12501 @@ -3866,9 +7718,9 @@
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>
12513 @@ -3888,7 +7740,7 @@
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
12520 glib_working_wctype=yes
12522 @@ -3909,7 +7761,7 @@
12523 echo "$ac_t""$glib_working_wctype" 1>&6
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
12531 @@ -3918,7 +7770,7 @@
12532 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12534 cat > conftest.$ac_ext <<EOF
12535 -#line 3922 "configure"
12536 +#line 7774 "configure"
12537 #include "confdefs.h"
12539 #include <stdlib.h>
12540 @@ -3926,7 +7778,7 @@
12541 return realloc (0, sizeof (int)) == 0;
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
12547 glib_cv_sane_realloc=yes
12548 cat >> confdefs.h <<\EOF
12549 @@ -3951,7 +7803,7 @@
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
12558 @@ -3960,7 +7812,7 @@
12559 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12561 cat > conftest.$ac_ext <<EOF
12562 -#line 3964 "configure"
12563 +#line 7816 "configure"
12564 #include "confdefs.h"
12566 #include <stdarg.h>
12567 @@ -3977,7 +7829,7 @@
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
12574 glib_cv_va_copy=yes
12576 @@ -3996,7 +7848,7 @@
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
12585 @@ -4005,7 +7857,7 @@
12586 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12588 cat > conftest.$ac_ext <<EOF
12589 -#line 4009 "configure"
12590 +#line 7861 "configure"
12591 #include "confdefs.h"
12593 #include <stdarg.h>
12594 @@ -4022,7 +7874,7 @@
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
12601 glib_cv___va_copy=yes
12603 @@ -4041,7 +7893,7 @@
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
12612 @@ -4050,7 +7902,7 @@
12613 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12615 cat > conftest.$ac_ext <<EOF
12616 -#line 4054 "configure"
12617 +#line 7906 "configure"
12618 #include "confdefs.h"
12620 #include <stdarg.h>
12621 @@ -4067,7 +7919,7 @@
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
12628 glib_cv_va_val_copy=yes
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
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 @@
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
12652 eval "ac_cv_func_dlopen=yes"
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
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 @@
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
12676 eval "ac_cv_func_dlsym=yes"
12678 @@ -4211,7 +8063,7 @@
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"
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 @@
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
12703 eval "ac_cv_lib_$ac_lib_var=yes"
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"
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 @@
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
12730 eval "ac_cv_lib_$ac_lib_var=yes"
12732 @@ -4295,18 +8147,18 @@
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"
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
12752 G_MODULE_LDFLAGS="-Wl,-E"
12754 @@ -4316,14 +8168,14 @@
12756 LDFLAGS="$SAVED_LDFLAGS -bexpall"
12757 cat > conftest.$ac_ext <<EOF
12758 -#line 4320 "configure"
12759 +#line 8172 "configure"
12760 #include "confdefs.h"
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
12769 G_MODULE_LDFLAGS="-bexpall"
12771 @@ -4343,7 +8195,7 @@
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"
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 @@
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
12796 eval "ac_cv_lib_$ac_lib_var=yes"
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
12807 @@ -4405,7 +8257,7 @@
12808 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12810 cat > conftest.$ac_ext <<EOF
12811 -#line 4409 "configure"
12812 +#line 8261 "configure"
12813 #include "confdefs.h"
12816 @@ -4425,7 +8277,7 @@
12817 return global == local;
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
12823 glib_cv_rtldglobal_broken=no
12825 @@ -4448,7 +8300,7 @@
12826 G_MODULE_BROKEN_RTLD_GLOBAL=0
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
12834 @@ -4457,7 +8309,7 @@
12835 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12837 cat > conftest.$ac_ext <<EOF
12838 -#line 4461 "configure"
12839 +#line 8313 "configure"
12840 #include "confdefs.h"
12843 @@ -4471,7 +8323,7 @@
12844 } return (!f2 || f1);
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
12852 @@ -4496,12 +8348,12 @@
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
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 @@
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
12874 eval "ac_cv_func_dlerror=yes"
12876 @@ -4608,7 +8460,7 @@
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 @@
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
12901 eval "ac_cv_lib_$ac_lib_var=yes"
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
12912 cat > conftest.$ac_ext <<EOF
12913 -#line 4663 "configure"
12914 +#line 8515 "configure"
12915 #include "confdefs.h"
12916 #include <pthread.h>
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
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()
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
12949 eval "ac_cv_lib_$ac_lib_var=yes"
12951 @@ -4733,7 +8585,7 @@
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
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 @@
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()
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
12985 eval "ac_cv_lib_$ac_lib_var=yes"
12987 @@ -4793,7 +8645,7 @@
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()
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
13012 eval "ac_cv_lib_$ac_lib_var=yes"
13014 @@ -4835,7 +8687,7 @@
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()
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
13039 eval "ac_cv_lib_$ac_lib_var=yes"
13041 @@ -4877,7 +8729,7 @@
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"
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()
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
13066 eval "ac_cv_lib_$ac_lib_var=yes"
13068 @@ -4919,12 +8771,12 @@
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
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 @@
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
13090 eval "ac_cv_func_pthread_attr_init=yes"
13092 @@ -4969,7 +8821,7 @@
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()
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
13117 eval "ac_cv_lib_$ac_lib_var=yes"
13119 @@ -5012,7 +8864,7 @@
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()
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
13144 eval "ac_cv_lib_$ac_lib_var=yes"
13146 @@ -5061,7 +8913,7 @@
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 @@
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
13171 eval "ac_cv_lib_$ac_lib_var=yes"
13173 @@ -5108,7 +8960,7 @@
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()
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
13198 eval "ac_cv_lib_$ac_lib_var=yes"
13200 @@ -5163,7 +9015,7 @@
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
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"
13218 @@ -5208,7 +9060,7 @@
13219 CPPFLAGS=$old_CPPFLAGS
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
13225 echo "$ac_t""$G_THREAD_CFLAGS" 1>&6
13227 @@ -5226,12 +9078,12 @@
13228 for ac_func in localtime_r rand_r
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
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 @@
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
13249 eval "ac_cv_func_$ac_func=yes"
13251 @@ -5280,7 +9132,7 @@
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
13260 @@ -5288,7 +9140,7 @@
13261 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13263 cat > conftest.$ac_ext <<EOF
13264 -#line 5292 "configure"
13265 +#line 9144 "configure"
13266 #include "confdefs.h"
13268 int main () { char buffer[10000], *pointer;
13269 @@ -5300,7 +9152,7 @@
13270 sizeof (buffer), &pointer);
13271 return errno == ENOSYS || error == ENOSYS;}
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
13276 ac_cv_func_getpwuid_r=yes
13278 @@ -5325,11 +9177,11 @@
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"
13291 #include <sys/types.h>
13292 @@ -5338,7 +9190,7 @@
13293 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
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
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>
13314 pthread_getspecific(0,NULL);
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
13320 echo "$ac_t""no" 1>&6
13322 @@ -5382,20 +9234,20 @@
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; }
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;
13339 return !pthread_mutex_trylock (&mutex); }
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
13344 echo "$ac_t""no" 1>&6
13346 @@ -5412,13 +9264,13 @@
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; }
13356 cat > conftest.$ac_ext <<EOF
13357 -#line 5422 "configure"
13358 +#line 9274 "configure"
13359 #include "confdefs.h"
13360 #include <pthread.h>
13362 @@ -5432,7 +9284,7 @@
13363 return pthread_cond_timedwait (&cond,&mutex,&tspec)
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
13369 echo "$ac_t""no" 1>&6
13371 @@ -5475,7 +9327,7 @@
13372 case "$mutex_has_default" in
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
13380 @@ -5483,7 +9335,7 @@
13381 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13383 cat > conftest.$ac_ext <<EOF
13384 -#line 5487 "configure"
13385 +#line 9339 "configure"
13386 #include "confdefs.h"
13388 #include <$mutex_header_file>
13389 @@ -5495,7 +9347,7 @@
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
13396 glib_cv_sizeof_gmutex=`cat conftestval`
13398 @@ -5515,7 +9367,7 @@
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
13407 @@ -5523,7 +9375,7 @@
13408 glib_cv_byte_contents_gmutex=0
13410 cat > conftest.$ac_ext <<EOF
13411 -#line 5527 "configure"
13412 +#line 9379 "configure"
13413 #include "confdefs.h"
13415 #include <$mutex_header_file>
13416 @@ -5540,7 +9392,7 @@
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
13423 glib_cv_byte_contents_gmutex=`cat conftestval`
13425 @@ -5576,7 +9428,7 @@
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
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; }
13437 cat > conftest.$ac_ext <<EOF
13438 -#line 5607 "configure"
13439 +#line 9459 "configure"
13440 #include "confdefs.h"
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
13446 echo "$ac_t""done" 1>&6
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
13455 +s%@OBJEXT@%$OBJEXT%g
13456 +s%@EXEEXT@%$EXEEXT%g
13458 +s%@RANLIB@%$RANLIB%g
13459 +s%@STRIP@%$STRIP%g
13461 s%@LIBTOOL@%$LIBTOOL%g
13462 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
13463 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
13465 s%@ENABLE_MEM_CHECK@%$ENABLE_MEM_CHECK%g
13466 s%@ENABLE_MEM_PROFILE@%$ENABLE_MEM_PROFILE%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
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.
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
13483 # This program is free software; you can redistribute it and/or modify
13484 @@ -48,14 +49,14 @@
13487 # The name of this program.
13488 -progname=`$echo "$0" | sed 's%^.*/%%'`
13489 +progname=`$echo "$0" | ${SED} 's%^.*/%%'`
13490 modename="$progname"
13496 -TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)"
13498 +TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"
13501 help="Try \`$progname --help' for more information."
13502 @@ -66,10 +67,19 @@
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'"
13517 + *) # Assume ASCII based system
13518 + SP2NL="tr '\040' '\012'"
13519 + NL2SP="tr '\015\012' '\040\040'"
13524 # Only set LANG and LC_ALL to C if already set.
13526 save_LANG="$LANG"; LANG=C; export LANG
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
13534 +# Make sure IFS has a sensible default
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 @@
13545 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
13549 # If the previous option needs an argument, assign it.
13550 if test -n "$prev"; then
13554 - eval "$prev=\"\$$prev \$arg\""
13555 + execute_dlfiles="$execute_dlfiles $arg"
13559 @@ -135,7 +142,7 @@
13562 # Have we seen a non-optional argument yet?
13568 @@ -146,7 +153,7 @@
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
13577 @@ -179,6 +186,8 @@
13578 --mode) prevopt="--mode" prev=mode ;;
13579 --mode=*) mode="$optarg" ;;
13581 + --preserve-dup-deps) duplicate_deps="yes" ;;
13583 --quiet | --silent)
13586 @@ -207,16 +216,21 @@
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.
13595 if test -z "$show_help"; then
13597 # Infer the operation mode.
13598 if test -z "$mode"; then
13599 - case "$nonopt" in
13600 - *cc | *++ | gcc* | *-gcc*)
13602 + *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
13611 @@ -261,12 +275,13 @@
13612 help="Try \`$modename --help --mode=$mode' for more information."
13614 # These modes are in order of execution frequency so that they run quickly.
13617 # libtool compile mode
13619 modename="$modename: compile"
13620 # Get the compilation command and the source file.
13626 @@ -274,8 +289,34 @@
13633 + # Aesthetically quote the previous argument.
13635 + lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
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 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
13646 + # Add the previous argument to base_compile.
13647 + if test -z "$base_compile"; then
13648 + base_compile="$lastarg"
13650 + base_compile="$base_compile $lastarg"
13656 # Accept any command-line options.
13660 if test "$user_target" != "no"; then
13661 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
13662 @@ -288,9 +329,53 @@
13683 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
13685 + save_ifs="$IFS"; IFS=','
13686 + for arg in $args; do
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.
13693 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
13697 + lastarg="$lastarg $arg"
13700 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
13702 + # Add the arguments to base_compile.
13703 + if test -z "$base_compile"; then
13704 + base_compile="$lastarg"
13706 + base_compile="$base_compile $lastarg"
13712 - case "$user_target" in
13713 + case $user_target in
13715 # The next one is the -o target name
13717 @@ -316,10 +401,10 @@
13718 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
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.
13728 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
13729 lastarg="\"$lastarg\""
13732 @@ -332,7 +417,7 @@
13736 - case "$user_target" in
13737 + case $user_target in
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
13745 - case "$libobj" in
13747 *.ada) xform=ada ;;
13748 *.adb) xform=adb ;;
13749 *.ads) xform=ads ;;
13750 @@ -363,7 +448,7 @@
13752 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
13754 - case "$libobj" in
13756 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
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
13763 + # On Cygwin there's no "real" PIC flag so we must build both object types
13765 + cygwin* | mingw* | pw32* | os2*)
13769 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
13770 + # non-PIC code in shared libraries is not supported
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"
13791 @@ -434,8 +530,13 @@
13792 # Without this assignment, base_compile gets emptied.
13793 fbsd_hideous_sh_bug=$base_compile
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"
13801 + # Don't build PIC code
13802 + command="$base_compile $srcfile"
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 @@
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
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"
13828 @@ -546,7 +652,13 @@
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"
13837 + # All platforms use -DPIC, to notify preprocessed assembler code.
13838 + command="$base_compile $srcfile $pic_flag -DPIC"
13840 if test "$compiler_c_o" = yes; then
13841 command="$command -o $obj"
13843 @@ -612,17 +724,17 @@
13845 # Unlock the critical section if it was locked
13846 if test "$need_locks" != no; then
13848 + $run $rm "$lockfile"
13854 # libtool link mode
13857 modename="$modename: link"
13859 - *-*-cygwin* | *-*-mingw* | *-*-os2*)
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
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>
13878 -# #ifndef __CYGWIN__
13879 -# # ifdef __CYGWIN32__
13880 -# # define __CYGWIN__ __CYGWIN32__
13884 -# #ifdef __cplusplus
13887 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
13888 -# #ifdef __cplusplus
13892 -# #ifdef __CYGWIN__
13893 -# #include <cygwin/cygwin_dll.h>
13894 -# DECLARE_CYGWIN_DLL( DllMain );
13896 -# HINSTANCE __hDllInstance_base;
13899 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
13901 -# __hDllInstance_base = hInst;
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.
13911 -# This file is part of GNU libtool.
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.
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.
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.
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() */
13933 -# static unsigned int
13934 -# pe_get16 (fd, offset)
13938 -# unsigned char b[2];
13939 -# lseek (fd, offset, SEEK_SET);
13940 -# read (fd, b, 2);
13941 -# return b[0] + (b[1]<<8);
13944 -# static unsigned int
13945 -# pe_get32 (fd, offset)
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);
13955 -# static unsigned int
13959 -# unsigned char *b = ptr;
13960 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
13964 -# main (argc, argv)
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;
13975 -# filename = argv[1];
13977 -# dll = open(filename, O_RDONLY|O_BINARY);
13981 -# dll_name = filename;
13983 -# for (i=0; filename[i]; i++)
13984 -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
13985 -# dll_name = filename + i +1;
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);
13991 -# if (num_entries < 1) /* no exports */
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));
14001 -# for (i = 0; i < nsections; i++)
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)
14012 -# expptr = fptr + (export_rva - vaddr);
14013 -# if (export_rva + export_size > vaddr + vsize)
14014 -# export_size = vsize - (export_rva - vaddr);
14019 -# expdata = (unsigned char*)malloc(export_size);
14020 -# lseek (dll, expptr, SEEK_SET);
14021 -# read (dll, expdata, export_size);
14022 -# erva = expdata - export_rva;
14024 -# nexp = pe_as32 (expdata+24);
14025 -# name_rvas = pe_as32 (expdata+32);
14027 -# printf ("EXPORTS\n");
14028 -# for (i = 0; i<nexp; i++)
14030 -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
14031 -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
14036 -# /* impgen.c ends here */
14039 allow_undefined=yes
14042 + libtool_args="$nonopt"
14043 compile_command="$nonopt"
14044 finalize_command="$nonopt"
14046 @@ -818,18 +763,13 @@
14055 + lib_search_path=`pwd`
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\'\`
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\"
14071 @@ -839,9 +779,9 @@
14072 export_symbols_regex=
14075 - link_against_libtool_libs=
14080 prefer_static_libs=no
14082 @@ -858,7 +798,7 @@
14083 # We need to know -static, to get the right output filenames.
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
14096 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14097 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
14101 + libtool_args="$libtool_args $qarg"
14103 # If the previous option needs an argument, assign it.
14104 if test -n "$prev"; then
14108 compile_command="$compile_command @OUTPUT@"
14109 finalize_command="$finalize_command @OUTPUT@"
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@"
14124 *.la | *.lo) ;; # We handle these cases below.
14126 if test "$dlself" = no; then
14127 @@ -934,6 +881,7 @@
14128 dlprefiles="$dlprefiles $arg"
14135 @@ -951,6 +899,11 @@
14140 + inst_prefix_dir="$arg"
14147 @@ -958,7 +911,7 @@
14150 # We need an absolute path.
14153 [\\/]* | [A-Za-z]:[\\/]*) ;;
14155 $echo "$modename: only absolute run-paths are allowed" 1>&2
14156 @@ -979,17 +932,32 @@
14161 + compiler_flags="$compiler_flags $qarg"
14163 + compile_command="$compile_command $qarg"
14164 + finalize_command="$finalize_command $qarg"
14168 + linker_flags="$linker_flags $qarg"
14169 + compiler_flags="$compiler_flags $wl$qarg"
14171 + compile_command="$compile_command $wl$qarg"
14172 + finalize_command="$finalize_command $wl$qarg"
14176 eval "$prev=\"\$arg\""
14182 + fi # test -n $prev
14189 if test -n "$link_static_flag"; then
14190 compile_command="$compile_command $link_static_flag"
14191 @@ -1026,7 +994,7 @@
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"
14199 if test "X$arg" = "X-export-symbols"; then
14200 @@ -1037,58 +1005,81 @@
14204 + -inst-prefix-dir)
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
14212 + case $with_gcc/$host in
14213 + no/*-*-irix* | no/*-*-nonstopux*)
14214 + compile_command="$compile_command $arg"
14215 + finalize_command="$finalize_command $arg"
14222 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
14223 # We need an absolute path.
14226 [\\/]* | [A-Za-z]:[\\/]*) ;;
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
14233 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
14239 - case " $deplibs " in
14241 - *) deplibs="$deplibs $arg";;
14243 - case " $lib_search_path " in
14245 - *) lib_search_path="$lib_search_path $dir";;
14246 + case "$deplibs " in
14249 + deplibs="$deplibs -L$dir"
14250 + lib_search_path="$lib_search_path $dir"
14254 - *-*-cygwin* | *-*-mingw* | *-*-os2*)
14255 - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
14256 - case ":$dllsearchpath:" in
14257 - ::) dllsearchpath="$dllsearchdir";;
14258 - *":$dllsearchdir:"*) ;;
14259 - *) dllsearchpath="$dllsearchpath:$dllsearchdir";;
14261 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
14262 + case :$dllsearchpath: in
14264 + *) dllsearchpath="$dllsearchpath:$dir";;
14272 - if test "$arg" = "-lc"; then
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
14278 + *-*-cygwin* | *-*-pw32* | *-*-beos*)
14279 + # These systems don't actually have a C or math library (as such)
14282 + *-*-mingw* | *-*-os2*)
14283 + # These systems don't actually have a C library (as such)
14284 + test "X$arg" = "X-lc" && continue
14286 + *-*-openbsd* | *-*-freebsd*)
14287 + # Do not include libc due to us having libc/libc_r.
14288 + test "X$arg" = "X-lc" && continue
14291 - elif test "$arg" = "-lm"; then
14293 - *-*-cygwin* | *-*-beos*)
14294 - # These systems don't actually have math library (as such)
14295 + elif test "X$arg" = "X-lc_r"; then
14297 + *-*-openbsd* | *-*-freebsd*)
14298 + # Do not include libc_r directly, use -pthread flag.
14303 deplibs="$deplibs $arg"
14308 @@ -1096,6 +1087,25 @@
14312 + -no-fast-install)
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
14326 + *) no_install=yes ;;
14334 @@ -1121,7 +1131,7 @@
14336 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
14337 # We need an absolute path.
14340 [\\/]* | [A-Za-z]:[\\/]*) ;;
14342 $echo "$modename: only absolute run-paths are allowed" 1>&2
14343 @@ -1136,11 +1146,11 @@
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"
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.
14360 @@ -1154,28 +1164,71 @@
14365 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
14367 + save_ifs="$IFS"; IFS=','
14368 + for flag in $args; do
14371 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14375 + arg="$arg $wl$flag"
14376 + compiler_flags="$compiler_flags $flag"
14379 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
14383 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
14385 + save_ifs="$IFS"; IFS=','
14386 + for flag in $args; do
14389 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14393 + arg="$arg $wl$flag"
14394 + compiler_flags="$compiler_flags $wl$flag"
14395 + linker_flags="$linker_flags $flag"
14398 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
14411 # Some other compiler flag.
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"`
14417 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
14419 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14425 - *.o | *.obj | *.a | *.lib)
14426 - # A standard object.
14427 - objs="$objs $arg"
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"
14443 @@ -1188,357 +1241,917 @@
14444 # Preload the old-style object.
14445 dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
14449 + *.lo) libobjs="$libobjs $arg" ;;
14450 + *) objs="$objs $arg" ;;
14453 - libobjs="$libobjs $arg"
14458 + deplibs="$deplibs $arg"
14459 + old_deplibs="$old_deplibs $arg"
14464 # A libtool-controlled library.
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"
14477 + elif test "$prev" = dlprefiles; then
14478 + # The library was specified with -dlpreopen.
14479 + dlprefiles="$dlprefiles $arg"
14482 - $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
14484 + deplibs="$deplibs $arg"
14489 - # If the library was installed with an old release of libtool,
14490 - # it will not redefine variable installed.
14493 - # Read the .la file
14494 - # If there is no directory component, then add one.
14496 - */* | *\\*) . $arg ;;
14498 + # Some other compiler argument.
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"`
14504 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14511 - # Get the name of the library we link against.
14513 - for l in $old_library $library_names; do
14517 - if test -z "$linklib"; then
14518 - $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
14522 - # Find the relevant object directory and library name.
14523 - name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
14525 - if test "X$installed" = Xyes; then
14528 - dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
14529 - if test "X$dir" = "X$arg"; then
14532 - dir="$dir/$objdir"
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"
14540 + done # argument parsing loop
14542 - if test -n "$dependency_libs"; then
14543 - # Extract -R and -L from dependency_libs
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";;
14552 - -L*) case "$compile_command $temp_deplibs " in
14553 - *" $deplib "*) ;;
14554 - *) temp_deplibs="$temp_deplibs $deplib";;
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";;
14562 - *) temp_deplibs="$temp_deplibs $deplib";;
14565 - dependency_libs="$temp_deplibs"
14567 + if test -n "$prev"; then
14568 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
14569 + $echo "$help" 1>&2
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"
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"
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.
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"
14604 + # calculate the name of the file, without its directory
14605 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
14606 + libobjs_save="$libobjs"
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"
14615 - dlprefiles="$dlprefiles $dir/$linklib"
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\'\`
14623 + shlib_search_path=
14625 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
14626 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
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
14635 - *) temp_rpath="$temp_rpath $dir" ;;
14638 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
14639 + if test "X$output_objdir" = "X$output"; then
14640 + output_objdir="$objdir"
14642 + output_objdir="$output_objdir/$objdir"
14644 + # Create the object directory.
14645 + if test ! -d $output_objdir; then
14646 + $show "$mkdir $output_objdir"
14647 + $run $mkdir $output_objdir
14649 + if test $status -ne 0 && test ! -d $output_objdir; then
14654 - # We need an absolute path.
14656 - [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
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
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 "*) ;;
14673 - case "$compile_rpath " in
14674 - *" $absdir "*) ;;
14675 - *) compile_rpath="$compile_rpath $absdir"
14679 + # Determine the type of output
14682 + $echo "$modename: you must specify an output file" 1>&2
14683 + $echo "$help" 1>&2
14686 + *.$libext) linkmode=oldlib ;;
14687 + *.lo | *.$objext) linkmode=obj ;;
14688 + *.la) linkmode=lib ;;
14689 + *) linkmode=prog ;; # Anything else should be a program.
14692 - case " $sys_lib_dlsearch_path " in
14693 - *" $libdir "*) ;;
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
14701 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
14704 + libs="$libs $deplib"
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
14714 + passes="conv link"
14715 + for file in $dlfiles $dlprefiles; do
14719 - case "$finalize_rpath " in
14720 - *" $libdir "*) ;;
14721 - *) finalize_rpath="$finalize_rpath $libdir"
14723 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
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"
14735 - *-*-cygwin* | *-*-mingw* | *-*-os2*)
14736 - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
14737 - if test -n "$dllsearchpath"; then
14738 - dllsearchpath="$dllsearchpath:$dllsearchdir"
14740 - dllsearchpath="$dllsearchdir"
14744 - elif test "$hardcode_minus_L" = no; then
14747 - compile_shlibpath="$compile_shlibpath$dir:"
14750 - case "$compile_command " in
14752 - *) compile_command="$compile_command -L$dir";;
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
14759 - *) compile_shlibpath="$compile_shlibpath$dir:";;
14761 - compile_command="$compile_command -l$name"
14762 - deplibs="$deplibs -l$name"
14767 + finalize_deplibs=
14771 + passes="conv scan dlopen dlpreopen link"
14776 + for pass in $passes; do
14777 + if test $linkmode = prog; then
14778 + # Determine which files to process
14782 + save_deplibs="$deplibs" # Collect dlpreopened libraries
14785 + dlpreopen) libs="$dlprefiles" ;;
14786 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
14789 + for deplib in $libs; do
14794 + if test $linkmode = oldlib && test $linkmode = obj; then
14795 + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
14798 + if test $pass = conv; then
14799 + deplibs="$deplib $deplibs"
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
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"
14818 + deplibs="$deplib $deplibs"
14819 + test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
14825 + case $linkmode in
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//'`
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";;
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:";;
14849 - compile_command="$compile_command -l$name"
14850 - deplibs="$deplibs -l$name"
14852 + if test $pass = conv; then
14853 + deplibs="$deplib $deplibs"
14856 + if test $pass = scan; then
14857 + deplibs="$deplib $deplibs"
14858 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
14861 + compile_deplibs="$deplib $compile_deplibs"
14862 + finalize_deplibs="$deplib $finalize_deplibs"
14868 + $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
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
14880 + *) xrpath="$xrpath $dir" ;;
14883 + deplibs="$deplib $deplibs"
14886 + *.la) lib="$deplib" ;;
14888 + if test $pass = conv; then
14889 + deplibs="$deplib $deplibs"
14892 + case $linkmode in
14894 + if test "$deplibs_check_method" != pass_all; then
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."
14904 + echo "*** Warning: Linking the shared library $output against the"
14905 + echo "*** static library $deplib is not portable!"
14906 + deplibs="$deplib $deplibs"
14911 + if test $pass != link; then
14912 + deplibs="$deplib $deplibs"
14914 + compile_deplibs="$deplib $compile_deplibs"
14915 + finalize_deplibs="$deplib $finalize_deplibs"
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"
14929 + newdlfiles="$newdlfiles $deplib"
14937 + esac # case $deplib
14938 + if test $found = yes || test -f "$lib"; then :
14940 + $echo "$modename: cannot find the library \`$lib'" 1>&2
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 :
14947 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
14951 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
14952 + test "X$ladir" = "X$lib" && ladir="."
14960 + # If the library was installed with an old release of libtool,
14961 + # it will not redefine variable installed.
14964 + # Read the .la file
14966 + */* | *\\*) . $lib ;;
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"
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
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"
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" ;;
14999 + tmp_libs="$tmp_libs $deplib"
15001 + elif test $linkmode != prog && test $linkmode != lib; then
15002 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
15006 + fi # $pass = conv
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";;
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:";;
15022 - finalize_command="$finalize_command -l$name"
15023 + # Get the name of the library we link against.
15025 + for l in $old_library $library_names; do
15028 + if test -z "$linklib"; then
15029 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
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
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"
15044 - # We cannot seem to hardcode it, guess we'll fake it.
15045 - case "$finalize_command " in
15047 - *) finalize_command="$finalize_command -L$libdir";;
15049 - finalize_command="$finalize_command -l$name"
15050 + newdlfiles="$newdlfiles $lib"
15053 + fi # $pass = dlopen
15055 + # We need an absolute path.
15057 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
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"
15067 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
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
15074 + absdir="$abs_ladir"
15075 + libdir="$abs_ladir"
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//'`
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
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"
15105 + newdlprefiles="$newdlprefiles $dir/$linklib"
15107 + fi # $pass = dlpreopen
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"
15124 - case "$compile_command " in
15126 - *) compile_command="$compile_command -L$dir";;
15127 + deplibs="$lib $deplibs"
15132 + if test $linkmode = prog && test $pass != link; then
15133 + newlib_search_path="$newlib_search_path $ladir"
15134 + deplibs="$lib $deplibs"
15136 + linkalldeplibs=no
15137 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
15138 + test "$build_libtool_libs" = no; then
15139 + linkalldeplibs=yes
15143 + for deplib in $dependency_libs; do
15145 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
15147 - compile_command="$compile_command -l$name"
15148 - case "$finalize_command " in
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"
15155 + # Need to hardcode shared library paths
15156 + # or/and link against static libraries
15157 + newdependency_libs="$deplib $newdependency_libs"
15159 + if test "X$duplicate_deps" = "Xyes" ; then
15160 + case "$tmp_libs " in
15161 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
15164 + tmp_libs="$tmp_libs $deplib"
15165 + done # for deplib
15167 + fi # $linkmode = prog...
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
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
15179 + case " $sys_lib_dlsearch_path " in
15180 + *" $absdir "*) ;;
15182 + case "$compile_rpath " in
15183 + *" $absdir "*) ;;
15184 + *) compile_rpath="$compile_rpath $absdir"
15188 - finalize_command="$finalize_command -l$name"
15189 + case " $sys_lib_dlsearch_path " in
15190 + *" $libdir "*) ;;
15192 + case "$finalize_rpath " in
15193 + *" $libdir "*) ;;
15194 + *) finalize_rpath="$finalize_rpath $libdir"
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
15204 + *" $absdir "*) ;;
15205 + *) temp_rpath="$temp_rpath $dir" ;;
15209 + fi # $linkmode,$pass = prog,link...
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
15220 - # Add in any libraries that this one depends upon.
15221 - compile_command="$compile_command$dependency_libs"
15222 - finalize_command="$finalize_command$dependency_libs"
15225 + if test "$installed" = no; then
15226 + notinst_deplibs="$notinst_deplibs $lib"
15230 + if test -n "$old_archive_from_expsyms_cmds"; then
15231 + # figure out the soname
15232 + set dummy $library_names
15235 + libname=`eval \\$echo \"$libname_spec\"`
15236 + # use dlname if we got it. it's perfectly good, no?
15237 + if test -n "$dlname"; then
15239 + elif test -n "$soname_spec"; then
15243 + major=`expr $current - $age`
15244 + versuffix="-$major"
15247 + eval soname=\"$soname_spec\"
15249 + soname="$realname"
15252 - # Some other compiler argument.
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"`
15258 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
15264 + # Make a new name for the extract_expsyms_cmds to use
15266 + soname=`echo $soroot | ${SED} -e 's/^.*\///'`
15267 + newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
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"
15275 + # If the library has no export list, then create one now
15276 + if test -f "$output_objdir/$soname-def"; then :
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
15284 + $run eval "$cmd" || exit $?
15289 - if test -n "$prev"; then
15290 - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
15291 - $echo "$help" 1>&2
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
15302 + $run eval "$cmd" || exit $?
15306 + # make sure the library variables are pointing to the new library
15307 + dir=$output_objdir
15309 + fi # test -n $old_archive_from_expsyms_cmds
15311 + if test $linkmode = prog || test "$mode" != relink; then
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
15322 + *-*-sunos*) add_shlibpath="$dir" ;;
15326 + elif test "$hardcode_shlibpath_var" = no; then
15327 + add_shlibpath="$dir"
15334 + if test "$hardcode_direct" = yes; then
15335 + add="$dir/$linklib"
15336 + elif test "$hardcode_minus_L" = yes; then
15338 + # Try looking first in the location we're being installed to.
15339 + if test -n "$inst_prefix_dir"; then
15340 + case "$libdir" in
15342 + add_dir="-L$inst_prefix_dir$libdir $add_dir"
15347 + elif test "$hardcode_shlibpath_var" = yes; then
15348 + add_shlibpath="$dir"
15354 + *) lib_linked=no ;;
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"
15362 + if test "$lib_linked" != yes; then
15363 + $echo "$modename: configuration error: unsupported hardcode properties"
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:" ;;
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"
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:" ;;
15394 - case "$output" in
15396 - $echo "$modename: you must specify an output file" 1>&2
15397 - $echo "$help" 1>&2
15400 + if test $linkmode = prog || test "$mode" = relink; then
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"
15410 + elif test "$hardcode_shlibpath_var" = yes; then
15411 + case :$finalize_shlibpath: in
15412 + *":$libdir:"*) ;;
15413 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
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
15423 + add_dir="-L$inst_prefix_dir$libdir $add_dir"
15431 - if test -n "$link_against_libtool_libs"; then
15432 - $echo "$modename: error: cannot link libtool libraries into archives" 1>&2
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"
15438 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
15439 + test -n "$add" && deplibs="$add $deplibs"
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
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"
15460 + compile_deplibs="-l$name -L$dir $compile_deplibs"
15461 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
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.
15469 + # Just print a warning and add the library to dependency_libs so
15470 + # that the program can be linked against the static library.
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
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."
15487 + if test "$build_old_libs" = no; then
15488 + build_libtool_libs=module
15489 + build_old_libs=yes
15491 + build_libtool_libs=no
15495 + convenience="$convenience $dir/$old_library"
15496 + old_convenience="$old_convenience $dir/$old_library"
15497 + deplibs="$dir/$old_library $deplibs"
15500 + fi # link shared/static library?
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
15508 + for libdir in $dependency_libs; do
15510 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
15511 + case " $xrpath " in
15512 + *" $temp_xrpath "*) ;;
15513 + *) xrpath="$xrpath $temp_xrpath";;
15515 + *) temp_deplibs="$temp_deplibs $libdir";;
15518 + dependency_libs="$temp_deplibs"
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
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" ;;
15533 + tmp_libs="$tmp_libs $deplib"
15536 + if test $link_all_deplibs != no; then
15537 + # Add the search paths of all dependency libraries
15538 + for deplib in $dependency_libs; do
15540 + -L*) path="$deplib" ;;
15542 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
15543 + test "X$dir" = "X$deplib" && dir="."
15544 + # We need an absolute path.
15546 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
15548 + absdir=`cd "$dir" && pwd`
15549 + if test -z "$absdir"; then
15550 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
15555 + if grep "^installed=no" $deplib > /dev/null; then
15556 + path="-L$absdir/$objdir"
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
15563 + if test "$absdir" != "$libdir"; then
15564 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
15571 + case " $deplibs " in
15573 + *) deplibs="$deplibs $path" ;;
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"
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.
15590 + for dir in $newlib_search_path; do
15591 + case "$lib_search_path " in
15593 + *) lib_search_path="$lib_search_path $dir" ;;
15596 + newlib_search_path=
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
15604 + vars="compile_deplibs finalize_deplibs"
15606 + for var in $vars dependency_libs; do
15607 + # Add libraries to $var in reverse order
15608 + eval tmp_libs=\"\$$var\"
15610 + for deplib in $tmp_libs; do
15612 + -L*) new_libs="$deplib $new_libs" ;;
15614 + case " $specialdeplibs " in
15615 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
15617 + case " $new_libs " in
15618 + *" $deplib "*) ;;
15619 + *) new_libs="$deplib $new_libs" ;;
15627 + for deplib in $new_libs; do
15630 + case " $tmp_libs " in
15631 + *" $deplib "*) ;;
15632 + *) tmp_libs="$tmp_libs $deplib" ;;
15635 + *) tmp_libs="$tmp_libs $deplib" ;;
15638 + eval $var=\"$tmp_libs\"
15641 + if test "$pass" = "conv" &&
15642 + { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
15643 + libs="$deplibs" # reset libs
15647 + if test $linkmode = prog; then
15648 + dlfiles="$newdlfiles"
15649 + dlprefiles="$newdlprefiles"
15652 + case $linkmode in
15654 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
15655 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
15657 @@ -1566,11 +2179,12 @@
15658 # Now set the variables for building old libraries.
15659 build_libtool_libs=no
15661 + objs="$objs$old_deplibs"
15666 # Make sure we only generate libraries of the form `libNAME.la'.
15667 - case "$outputname" in
15668 + case $outputname in
15670 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
15671 eval libname=\"$libname_spec\"
15672 @@ -1591,26 +2205,20 @@
15676 - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
15677 - if test "X$output_objdir" = "X$output"; then
15678 - output_objdir="$objdir"
15680 - output_objdir="$output_objdir/$objdir"
15683 if test -n "$objs"; then
15684 - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
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
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
15697 + echo "*** Warning: Linking the shared library $output against the non-libtool"
15698 + echo "*** objects $objs is not portable!"
15699 + libobjs="$libobjs $objs"
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
15710 @@ -1628,7 +2236,6 @@
15711 build_libtool_libs=convenience
15714 - dependency_libs="$deplibs"
15716 if test -n "$vinfo"; then
15717 $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
15718 @@ -1640,7 +2247,7 @@
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
15727 @@ -1655,8 +2262,8 @@
15730 # Check that each of the things are valid numbers.
15731 - case "$current" in
15732 - 0 | [1-9] | [1-9][0-9]*) ;;
15734 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
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 @@
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]) ;;
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 @@
15754 - 0 | [1-9] | [1-9][0-9]*) ;;
15756 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
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 @@
15764 - case "$version_type" in
15765 + case $version_type in
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"
15780 + major=".$current"
15781 + versuffix=".$current.$revision";
15785 + major=".$current"
15786 + versuffix=".$current";
15789 + irix | nonstopux)
15790 major=`expr $current - $age + 1`
15791 - versuffix="$major.$revision"
15792 - verstring="sgi$major.$revision"
15794 + case $version_type in
15795 + nonstopux) verstring_prefix=nonstopux ;;
15796 + *) verstring_prefix=sgi ;;
15798 + verstring="$verstring_prefix$major.$revision"
15800 # Add in all the interfaces that we are compatible with.
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"
15809 + # Before this point, $major must not contain `.'.
15811 + versuffix="$major.$revision"
15815 @@ -1715,7 +2350,7 @@
15819 - major=`expr $current - $age`
15820 + major=.`expr $current - $age`
15821 versuffix=".$current.$age.$revision"
15822 verstring="$current.$age.$revision"
15824 @@ -1736,21 +2371,11 @@
15825 versuffix=".$current.$revision"
15829 - major=".$current"
15830 - versuffix=".$current.$revision";
15834 - major=".$current"
15835 - versuffix=".$current";
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"
15849 @@ -1764,6 +2389,16 @@
15850 if test -z "$vinfo" && test -n "$release"; then
15853 + case $version_type in
15855 + # we can't check for "0.0" in archive_cmds due to quoting
15856 + # problems, so we reset it completely
15863 if test "$need_version" = no; then
15866 @@ -1777,7 +2412,7 @@
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
15880 - # Don't allow undefined symbols.
15881 - allow_undefined_flag="$no_undefined_flag"
15884 - dependency_libs="$deplibs"
15886 - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
15887 - # these systems don't actually have a c library (as such)!
15890 - # Add libc to deplibs on all other systems.
15891 - deplibs="$deplibs -lc"
15895 + # Don't allow undefined symbols.
15896 + allow_undefined_flag="$no_undefined_flag"
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}.*
15907 - $show "$mkdir $output_objdir"
15908 - $run $mkdir $output_objdir
15910 - if test $status -ne 0 && test ! -d $output_objdir; then
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`
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'`
15927 + if test -n "$xrpath"; then
15928 + # If the user specified any rpath flags, then add them.
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" ;;
15937 + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
15938 + dependency_libs="$temp_xrpath $dependency_libs"
15942 + # Make sure dlfiles contains only unique files that won't be dlpreopened
15943 + old_dlfiles="$dlfiles"
15945 + for lib in $old_dlfiles; do
15946 + case " $dlprefiles $dlfiles " in
15948 + *) dlfiles="$dlfiles $lib" ;;
15952 + # Make sure dlprefiles contains only unique files
15953 + old_dlprefiles="$dlprefiles"
15955 + for lib in $old_dlprefiles; do
15956 + case "$dlprefiles " in
15958 + *) dlprefiles="$dlprefiles $lib" ;;
15962 if test "$build_libtool_libs" = yes; then
15963 + if test -n "$rpath"; then
15965 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
15966 + # these systems don't actually have a c library (as such)!
15968 + *-*-rhapsody* | *-*-darwin1.[012])
15969 + # Rhapsody C library is in the System framework
15970 + deplibs="$deplibs -framework System"
15973 + # Don't link with libc until the a.out ld.so is fixed.
15975 + *-*-openbsd* | *-*-freebsd*)
15976 + # Do not include libc due to us having libc/libc_r.
15979 + # Add libc to deplibs on all other systems if necessary.
15980 + if test $build_libtool_need_lc = "yes"; then
15981 + deplibs="$deplibs -lc"
15987 # Transform deplibs into only deplibs that can be linked in shared.
15989 libname_save=$libname
15990 @@ -1838,7 +2521,7 @@
15994 - case "$deplibs_check_method" in
15995 + case $deplibs_check_method in
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 @@
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."
16022 newdeplibs="$newdeplibs $i"
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
16036 $CC -o conftest conftest.c $i
16038 @@ -1903,10 +2588,12 @@
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."
16053 @@ -1924,19 +2611,19 @@
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
16075 # The statement above tries to avoid entering an
16076 # endless loop below, in case of cyclic links.
16077 @@ -1945,14 +2632,14 @@
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";;
16089 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
16092 | egrep "$file_magic_regex" > /dev/null; then
16093 newdeplibs="$newdeplibs $a_deplib"
16095 @@ -1963,10 +2650,59 @@
16096 if test -n "$a_deplib" ; then
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)"
16108 + echo "*** with $libname and none of the candidates passed a file format test"
16109 + echo "*** using a file magic. Last file checked: $potlib"
16113 + # Add a -L argument.
16114 + newdeplibs="$newdeplibs $a_deplib"
16116 + done # Gone through all deplibs.
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 \
16132 + | egrep "$match_pattern_regex" > /dev/null; then
16133 + newdeplibs="$newdeplibs $a_deplib"
16139 + if test -n "$a_deplib" ; then
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)"
16151 + echo "*** with $libname and none of the candidates passed a file format test"
16152 + echo "*** using a regex pattern. Last file checked: $potlib"
16156 # Add a -L argument.
16157 @@ -1996,6 +2732,13 @@
16158 libname=$libname_save
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 /'`
16168 if test "$droppeddeps" = yes; then
16169 if test "$module" = yes; then
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."
16176 + if test $allow_undefined = no; then
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
16187 + build_libtool_libs=no
16192 # Done checking deplibs!
16193 @@ -2031,9 +2789,64 @@
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=
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"
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"*)
16218 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
16223 + eval flag=\"$hardcode_libdir_flag_spec\"
16224 + dep_rpath="$dep_rpath $flag"
16226 + elif test -n "$runpath_var"; then
16227 + case "$perm_rpath " in
16228 + *" $libdir "*) ;;
16229 + *) perm_rpath="$perm_rpath $libdir" ;;
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\"
16239 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
16240 + # We should set the runpath_var.
16242 + for dir in $perm_rpath; do
16243 + rpath="$rpath$dir:"
16245 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
16247 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
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"
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 @@
16263 + test -z "$dlname" && dlname=$soname
16265 lib="$output_objdir/$realname"
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
16276 @@ -2116,7 +2930,7 @@
16278 for xlib in $convenience; do
16279 # Extract the objects.
16282 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
16283 *) xabs=`pwd`"/$xlib" ;;
16285 @@ -2141,16 +2955,32 @@
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"
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 $?
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\"
16302 + save_deplibs="$deplibs"
16303 + for conv in $convenience; do
16305 + for test_deplib in $deplibs; do
16306 + if test "$test_deplib" != "$conv"; then
16307 + tmp_deplibs="$tmp_deplibs $test_deplib"
16310 + deplibs="$tmp_deplibs"
16312 eval cmds=\"$archive_cmds\"
16313 + deplibs="$save_deplibs"
16315 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
16316 + save_ifs="$IFS"; IFS='~'
16317 for cmd in $cmds; do
16320 @@ -2158,6 +2988,12 @@
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 $?
16330 # Create links to the real library.
16331 for linkname in $linknames; do
16332 if test "$realname" != "$linkname"; then
16333 @@ -2174,12 +3010,7 @@
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
16344 if test -n "$deplibs"; then
16345 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
16347 @@ -2204,9 +3035,9 @@
16348 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
16351 - case "$output" in
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
16359 @@ -2230,7 +3061,7 @@
16361 # reload_cmds runs $LD directly, so let us get rid of
16362 # -Wl from whole_archive_flag_spec
16366 if test -n "$convenience"; then
16367 if test -n "$whole_archive_flag_spec"; then
16368 @@ -2249,7 +3080,7 @@
16370 for xlib in $convenience; do
16371 # Extract the objects.
16374 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
16375 *) xabs=`pwd`"/$xlib" ;;
16377 @@ -2273,11 +3104,11 @@
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
16385 eval cmds=\"$reload_cmds\"
16386 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
16387 + save_ifs="$IFS"; IFS='~'
16388 for cmd in $cmds; do
16391 @@ -2308,12 +3139,12 @@
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"
16400 eval cmds=\"$reload_cmds\"
16401 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
16402 + save_ifs="$IFS"; IFS='~'
16403 for cmd in $cmds; do
16406 @@ -2344,8 +3175,10 @@
16410 - # Anything else should be a program.
16414 + *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
16416 if test -n "$vinfo"; then
16417 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
16419 @@ -2355,20 +3188,34 @@
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."
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 /'`
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"
16447 + compile_command="$compile_command $compile_deplibs"
16448 + finalize_command="$finalize_command $finalize_deplibs"
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" ;;
16458 case "$finalize_rpath " in
16460 *) finalize_rpath="$finalize_rpath $libdir" ;;
16461 @@ -2386,7 +3233,7 @@
16462 hardcode_libdirs="$libdir"
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"*)
16470 @@ -2404,6 +3251,14 @@
16471 *) perm_rpath="$perm_rpath $libdir" ;;
16475 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
16476 + case :$dllsearchpath: in
16477 + *":$libdir:"*) ;;
16478 + *) dllsearchpath="$dllsearchpath:$libdir";;
16483 # Substitute the hardcoded libdirs into the rpath.
16484 if test -n "$hardcode_libdir_separator" &&
16485 @@ -2422,7 +3277,7 @@
16486 hardcode_libdirs="$libdir"
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"*)
16494 @@ -2449,23 +3304,6 @@
16496 finalize_rpath="$rpath"
16498 - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
16499 - if test "X$output_objdir" = "X$output"; then
16500 - output_objdir="$objdir"
16502 - output_objdir="$output_objdir/$objdir"
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
16510 - if test $status -ne 0 && test ! -d $output_objdir; then
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 @@
16521 if test -n "$dlsyms"; then
16522 - case "$dlsyms" in
16526 # Discover the nlist of each of the dlfiles.
16527 @@ -2514,7 +3352,7 @@
16528 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
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"'
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"'
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"'
16557 @@ -2544,7 +3382,7 @@
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'"
16566 @@ -2559,7 +3397,13 @@
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
16577 + uniq > "$nlist"S; then
16580 grep -v "^: " < "$nlist" > "$nlist"S
16581 @@ -2576,27 +3420,25 @@
16582 #undef lt_preloaded_symbols
16584 #if defined (__STDC__) && __STDC__
16585 -# define lt_ptr_t void *
16586 +# define lt_ptr void *
16588 -# define lt_ptr_t char *
16589 +# define lt_ptr char *
16593 /* The mapping between symbol names and symbols. */
16596 - lt_ptr_t address;
16599 lt_preloaded_symbols[] =
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"
16608 $echo >> "$output_objdir/$dlsyms" "\
16609 - {0, (lt_ptr_t) 0}
16613 /* This works around a problem in FreeBSD linker */
16614 @@ -2613,13 +3455,13 @@
16617 pic_flag_for_symtable=
16620 # compiling the symbol table file with pic_flag works around
16621 # a FreeBSD bug that causes programs to crash when -lm is
16622 # linked before any other PIC object. But we must not use
16623 # pic_flag when linking with -static. The problem exists in
16624 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
16625 - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
16626 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
16627 case "$compile_command " in
16629 *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
16630 @@ -2658,7 +3500,7 @@
16631 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
16634 - if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
16635 + if test $need_relink = no || test "$build_libtool_libs" != yes; then
16636 # Replace the output file specification.
16637 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
16638 link_command="$compile_command$compile_rpath"
16639 @@ -2667,7 +3509,7 @@
16640 $show "$link_command"
16641 $run eval "$link_command"
16645 # Delete the generated files.
16646 if test -n "$dlsyms"; then
16647 $show "$rm $output_objdir/${outputname}S.${objext}"
16648 @@ -2681,7 +3523,7 @@
16649 # We should set the shlibpath_var
16651 for dir in $temp_rpath; do
16654 [\\/]* | [A-Za-z]:[\\/]*)
16656 rpath="$rpath$dir:"
16657 @@ -2723,11 +3565,24 @@
16661 + if test "$no_install" = yes; then
16662 + # We don't need to create a wrapper script.
16663 + link_command="$compile_var$compile_command$compile_rpath"
16664 + # Replace the output file specification.
16665 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
16666 + # Delete the old output file.
16668 + # Link the executable and exit
16669 + $show "$link_command"
16670 + $run eval "$link_command" || exit $?
16674 if test "$hardcode_action" = relink; then
16675 # Fast installation is not supported
16676 link_command="$compile_var$compile_command$compile_rpath"
16677 relink_command="$finalize_var$finalize_command$finalize_rpath"
16680 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
16681 $echo "$modename: \`$output' will be relinked during installation" 1>&2
16683 @@ -2747,7 +3602,7 @@
16685 # Replace the output file specification.
16686 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
16689 # Delete the old output files.
16690 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
16692 @@ -2759,12 +3614,24 @@
16694 # Quote the relink command for shipping.
16695 if test -n "$relink_command"; then
16696 + # Preserve any variables that may affect compiler behavior
16697 + for var in $variables_saved_for_relink; do
16698 + if eval test -z \"\${$var+set}\"; then
16699 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
16700 + elif eval var_value=\$$var; test -z "$var_value"; then
16701 + relink_command="$var=; export $var; $relink_command"
16703 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
16704 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
16707 + relink_command="(cd `pwd`; $relink_command)"
16708 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
16711 # Quote $echo for shipping.
16712 if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
16715 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
16716 *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
16718 @@ -2778,7 +3645,12 @@
16719 # win32 will think the script is a binary if it has
16720 # a .exe suffix, so we strip it off here.
16722 - *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
16723 + *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
16725 + # test for cygwin because mv fails w/o .exe extensions
16727 + *cygwin*) exeext=.exe ;;
16731 trap "$rm $output; exit 1" 1 2 15
16732 @@ -2797,7 +3669,7 @@
16734 # Sed substitution that helps us do robust quoting. It backslashifies
16735 # metacharacters that are still active within double-quoted strings.
16736 -Xsed='sed -e 1s/^X//'
16737 +Xsed="${SED}"' -e 1s/^X//'
16738 sed_quote_subst='$sed_quote_subst'
16740 # The HP-UX ksh and POSIX shell print the target directory to stdout
16741 @@ -2809,7 +3681,7 @@
16742 # This environment variable determines our operation mode.
16743 if test \"\$libtool_install_magic\" = \"$magic\"; then
16744 # install mode needs the following variable:
16745 - link_against_libtool_libs='$link_against_libtool_libs'
16746 + notinst_deplibs='$notinst_deplibs'
16748 # When we are sourced in execute mode, \$file and \$echo are already set.
16749 if test \"\$libtool_execute_magic\" != \"$magic\"; then
16750 @@ -2835,20 +3707,20 @@
16751 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
16753 # Follow symbolic links until we get to the real thisdir.
16754 - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
16755 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
16756 while test -n \"\$file\"; do
16757 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
16759 # If there was a directory component, then change thisdir.
16760 if test \"x\$destdir\" != \"x\$file\"; then
16761 case \"\$destdir\" in
16762 - [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
16763 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
16764 *) thisdir=\"\$thisdir/\$destdir\" ;;
16768 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
16769 - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
16770 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
16773 # Try to get the absolute directory name.
16774 @@ -2858,11 +3730,11 @@
16776 if test "$fast_install" = yes; then
16778 - program=lt-'$outputname'
16779 + program=lt-'$outputname'$exeext
16780 progdir=\"\$thisdir/$objdir\"
16783 if test ! -f \"\$progdir/\$program\" || \\
16784 - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
16785 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
16786 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
16788 file=\"\$\$-\$program\"
16789 @@ -2877,8 +3749,9 @@
16791 # relink executable if necessary
16792 if test -n \"\$relink_command\"; then
16793 - if (cd \"\$thisdir\" && eval \$relink_command); then :
16794 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
16796 + $echo \"\$relink_command_output\" >&2
16797 $rm \"\$progdir/\$file\"
16800 @@ -2907,7 +3780,7 @@
16801 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
16803 # Some systems cannot cope with colon-terminated $shlibpath_var
16804 - # The second colon is a workaround for a bug in BeOS R4 sed
16805 + # The second colon is a workaround for a bug in BeOS R4 ${SED}
16806 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
16808 export $shlibpath_var
16809 @@ -2927,13 +3800,21 @@
16810 # Run the actual program with our arguments.
16813 - *-*-cygwin* | *-*-mingw | *-*-os2*)
16814 - # win32 systems need to use the prog path for dll
16816 + # win32 systems need to use the prog path for dll
16818 + *-*-cygwin* | *-*-pw32*)
16819 + $echo >> $output "\
16820 + exec \$progdir/\$program \${1+\"\$@\"}
16824 + # Backslashes separate directories on plain windows
16825 + *-*-mingw | *-*-os2*)
16826 $echo >> $output "\
16827 exec \$progdir\\\\\$program \${1+\"\$@\"}
16832 $echo >> $output "\
16833 # Export the path to the program.
16834 @@ -2975,7 +3856,7 @@
16835 oldobjs="$libobjs_save"
16836 build_libtool_libs=no
16838 - oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
16839 + oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
16841 addlibs="$old_convenience"
16843 @@ -2991,11 +3872,11 @@
16846 generated="$generated $gentop"
16849 # Add in members from convenience archives.
16850 for xlib in $addlibs; do
16851 # Extract the objects.
16854 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
16855 *) xabs=`pwd`"/$xlib" ;;
16857 @@ -3041,7 +3922,7 @@
16859 eval cmds=\"$old_archive_cmds\"
16861 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
16862 + save_ifs="$IFS"; IFS='~'
16863 for cmd in $cmds; do
16866 @@ -3056,19 +3937,26 @@
16869 # Now create the libtool archive.
16870 - case "$output" in
16874 test "$build_old_libs" = yes && old_library="$libname.$libext"
16875 $show "creating $output"
16877 - if test -n "$xrpath"; then
16879 - for libdir in $xrpath; do
16880 - temp_xrpath="$temp_xrpath -R$libdir"
16882 - dependency_libs="$temp_xrpath $dependency_libs"
16884 + # Preserve any variables that may affect compiler behavior
16885 + for var in $variables_saved_for_relink; do
16886 + if eval test -z \"\${$var+set}\"; then
16887 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
16888 + elif eval var_value=\$$var; test -z "$var_value"; then
16889 + relink_command="$var=; export $var; $relink_command"
16891 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
16892 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
16895 + # Quote the link command for shipping.
16896 + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
16897 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
16899 # Only create the output if not a dry run.
16900 if test -z "$run"; then
16901 @@ -3078,8 +3966,52 @@
16904 output="$output_objdir/$outputname"i
16905 + # Replace all uninstalled libtool libraries with the installed ones
16906 + newdependency_libs=
16907 + for deplib in $dependency_libs; do
16910 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
16911 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
16912 + if test -z "$libdir"; then
16913 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
16916 + newdependency_libs="$newdependency_libs $libdir/$name"
16918 + *) newdependency_libs="$newdependency_libs $deplib" ;;
16921 + dependency_libs="$newdependency_libs"
16923 + for lib in $dlfiles; do
16924 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
16925 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
16926 + if test -z "$libdir"; then
16927 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
16930 + newdlfiles="$newdlfiles $libdir/$name"
16932 + dlfiles="$newdlfiles"
16934 + for lib in $dlprefiles; do
16935 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
16936 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
16937 + if test -z "$libdir"; then
16938 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
16941 + newdlprefiles="$newdlprefiles $libdir/$name"
16943 + dlprefiles="$newdlprefiles"
16946 + # place dlname in correct position for cygwin
16948 + case $host,$output,$installed,$module,$dlname in
16949 + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
16952 # $outputname - a libtool library file
16953 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
16954 @@ -3088,7 +4020,7 @@
16955 # It is necessary for linking the library.
16957 # The name that we can dlopen(3).
16961 # Names of this library.
16962 library_names='$library_names'
16963 @@ -3107,16 +4039,23 @@
16964 # Is this an already installed library?
16965 installed=$installed
16967 +# Files to dlopen/dlpreopen
16969 +dlpreopen='$dlprefiles'
16971 # Directory that this library needs to be installed in:
16972 -libdir='$install_libdir'\
16974 +libdir='$install_libdir'"
16975 + if test "$installed" = no && test $need_relink = yes; then
16976 + $echo >> $output "\
16977 +relink_command=\"$relink_command\""
16982 # Do a symbolic link so that the libtool archive can be found in
16983 # LD_LIBRARY_PATH before the program is installed.
16984 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
16985 - $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $?
16986 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
16990 @@ -3128,10 +4067,12 @@
16992 # There may be an optional sh(1) argument at the beginning of
16993 # install_prog (especially on Windows NT).
16994 - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
16995 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
16996 + # Allow the use of GNU shtool's install command.
16997 + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
16998 # Aesthetically quote it.
16999 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
17002 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
17005 @@ -3147,7 +4088,7 @@
17006 # The real first argument should be the name of the installation program.
17007 # Aesthetically quote it.
17008 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
17011 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
17014 @@ -3170,7 +4111,7 @@
17023 @@ -3195,7 +4136,7 @@
17025 # Aesthetically quote the argument.
17026 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
17029 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
17032 @@ -3246,11 +4187,11 @@
17036 - case "$destdir" in
17038 [\\/]* | [A-Za-z]:[\\/]*) ;;
17040 for file in $files; do
17045 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
17046 @@ -3272,15 +4213,15 @@
17047 for file in $files; do
17049 # Do each installation.
17054 # Do the static libraries later.
17055 staticlibs="$staticlibs $file"
17059 # Check to see that this really is a libtool archive.
17060 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
17061 + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
17063 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
17065 @@ -3289,8 +4230,9 @@
17070 # If there is no directory component, then add one.
17073 */* | *\\*) . $file ;;
17076 @@ -3309,10 +4251,38 @@
17080 - dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
17081 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
17082 test "X$dir" = "X$file/" && dir=
17085 + if test -n "$relink_command"; then
17086 + # Determine the prefix the user has applied to our future dir.
17087 + inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
17089 + # Don't allow the user to place us outside of our expected
17090 + # location b/c this prevents finding dependent libraries that
17091 + # are installed to the same prefix.
17092 + if test "$inst_prefix_dir" = "$destdir"; then
17093 + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
17097 + if test -n "$inst_prefix_dir"; then
17098 + # Stick the inst_prefix_dir data into the link command.
17099 + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
17101 + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
17104 + $echo "$modename: warning: relinking \`$file'" 1>&2
17105 + $show "$relink_command"
17106 + if $run eval "$relink_command"; then :
17108 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
17113 # See the names of the shared library.
17114 set dummy $library_names
17115 if test -n "$2"; then
17116 @@ -3320,9 +4290,16 @@
17120 + srcname="$realname"
17121 + test -n "$relink_command" && srcname="$realname"T
17123 # Install the shared library and build the symlinks.
17124 - $show "$install_prog $dir/$realname $destdir/$realname"
17125 - $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
17126 + $show "$install_prog $dir/$srcname $destdir/$realname"
17127 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
17128 + if test -n "$stripme" && test -n "$striplib"; then
17129 + $show "$striplib $destdir/$realname"
17130 + $run eval "$striplib $destdir/$realname" || exit $?
17133 if test $# -gt 0; then
17134 # Delete the old symlinks, and create new ones.
17135 @@ -3338,7 +4315,7 @@
17136 # Do each command in the postinstall commands.
17137 lib="$destdir/$realname"
17138 eval cmds=\"$postinstall_cmds\"
17139 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
17140 + save_ifs="$IFS"; IFS='~'
17141 for cmd in $cmds; do
17144 @@ -3369,11 +4346,11 @@
17147 # Deduce the name of the destination old-style object file.
17148 - case "$destfile" in
17149 + case $destfile in
17151 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
17155 staticdest="$destfile"
17158 @@ -3411,40 +4388,55 @@
17161 # Do a test to see if this is really a libtool program.
17162 - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17163 - link_against_libtool_libs=
17165 + *cygwin*|*mingw*)
17166 + wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
17172 + if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
17176 # If there is no directory component, then add one.
17178 - */* | *\\*) . $file ;;
17181 + */* | *\\*) . $wrapper ;;
17182 + *) . ./$wrapper ;;
17185 # Check the variables that should have been set.
17186 - if test -z "$link_against_libtool_libs"; then
17187 - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
17188 + if test -z "$notinst_deplibs"; then
17189 + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
17194 - for lib in $link_against_libtool_libs; do
17195 + for lib in $notinst_deplibs; do
17196 # Check to see that each library is installed.
17198 if test -f "$lib"; then
17199 # If there is no directory component, then add one.
17202 */* | *\\*) . $lib ;;
17206 - libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
17207 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
17208 if test -n "$libdir" && test ! -f "$libfile"; then
17209 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
17215 + # If there is no directory component, then add one.
17217 + */* | *\\*) . $wrapper ;;
17218 + *) . ./$wrapper ;;
17222 if test "$fast_install" = no && test -n "$relink_command"; then
17223 if test "$finalize" = yes && test -z "$run"; then
17224 @@ -3456,6 +4448,7 @@
17225 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
17228 + file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
17229 outputname="$tmpdir/$file"
17230 # Replace the output file specification.
17231 relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
17232 @@ -3477,6 +4470,23 @@
17236 + # remove .exe since cygwin /usr/bin/install will append another
17238 + case $install_prog,$host in
17239 + /usr/bin/install*,*cygwin*)
17240 + case $file:$destfile in
17245 + destfile=$destfile.exe
17248 + destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
17253 $show "$install_prog$stripme $file $destfile"
17254 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
17255 test -n "$outputname" && ${rm}r "$tmpdir"
17256 @@ -3493,9 +4503,14 @@
17257 $show "$install_prog $file $oldlib"
17258 $run eval "$install_prog \$file \$oldlib" || exit $?
17260 + if test -n "$stripme" && test -n "$striplib"; then
17261 + $show "$old_striplib $oldlib"
17262 + $run eval "$old_striplib $oldlib" || exit $?
17265 # Do each command in the postinstall commands.
17266 eval cmds=\"$old_postinstall_cmds\"
17267 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
17268 + save_ifs="$IFS"; IFS='~'
17269 for cmd in $cmds; do
17272 @@ -3511,11 +4526,10 @@
17273 if test -n "$current_libdirs"; then
17274 # Maybe just do a dry run.
17275 test -n "$run" && current_libdirs=" -n$current_libdirs"
17276 - exec $SHELL $0 --finish$current_libdirs
17278 + exec_cmd='$SHELL $0 --finish$current_libdirs'
17286 # libtool finish mode
17287 @@ -3534,7 +4548,7 @@
17288 if test -n "$finish_cmds"; then
17289 # Do each command in the finish commands.
17290 eval cmds=\"$finish_cmds\"
17291 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
17292 + save_ifs="$IFS"; IFS='~'
17293 for cmd in $cmds; do
17296 @@ -3553,7 +4567,7 @@
17299 # Exit here if they wanted silent mode.
17300 - test "$show" = : && exit 0
17301 + test "$show" = ":" && exit 0
17303 echo "----------------------------------------------------------------------"
17304 echo "Libraries have been installed in:"
17305 @@ -3563,7 +4577,7 @@
17307 echo "If you ever happen to want to link against installed libraries"
17308 echo "in a given directory, LIBDIR, you must either use libtool, and"
17309 - echo "specify the full pathname of the library, or use \`-LLIBDIR'"
17310 + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
17311 echo "flag during linking and do at least one of the following:"
17312 if test -n "$shlibpath_var"; then
17313 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
17314 @@ -3613,10 +4627,10 @@
17321 # Check to see that this really is a libtool archive.
17322 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
17323 + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
17325 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
17327 @@ -3628,7 +4642,7 @@
17330 # If there is no directory component, then add one.
17333 */* | *\\*) . $file ;;
17336 @@ -3683,13 +4697,13 @@
17344 # Do a test to see if this is really a libtool program.
17345 - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17346 + if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17347 # If there is no directory component, then add one.
17350 */* | *\\*) . $file ;;
17353 @@ -3706,8 +4720,8 @@
17355 if test -z "$run"; then
17356 if test -n "$shlibpath_var"; then
17357 - # Export the shlibpath_var.
17358 - eval "export $shlibpath_var"
17359 + # Export the shlibpath_var.
17360 + eval "export $shlibpath_var"
17363 # Restore saved enviroment variables
17364 @@ -3718,31 +4732,35 @@
17365 LANG="$save_LANG"; export LANG
17368 - # Now actually exec the command.
17369 - eval "exec \$cmd$args"
17371 - $echo "$modename: cannot exec \$cmd$args"
17373 + # Now prepare to actually exec the command.
17374 + exec_cmd="\$cmd$args"
17376 # Display what would be done.
17377 if test -n "$shlibpath_var"; then
17378 - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
17379 - $echo "export $shlibpath_var"
17380 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
17381 + $echo "export $shlibpath_var"
17388 - # libtool uninstall mode
17390 - modename="$modename: uninstall"
17391 + # libtool clean and uninstall mode
17392 + clean | uninstall)
17393 + modename="$modename: $mode"
17399 + # This variable tells wrapper scripts just to set variables rather
17400 + # than running their programs.
17401 + libtool_install_magic="$magic"
17407 + -f) rm="$rm $arg"; rmforce=yes ;;
17408 -*) rm="$rm $arg" ;;
17409 *) files="$files $arg" ;;
17411 @@ -3754,53 +4772,86 @@
17417 for file in $files; do
17418 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
17419 - test "X$dir" = "X$file" && dir=.
17420 + if test "X$dir" = "X$file"; then
17424 + objdir="$dir/$objdir"
17426 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
17427 + test $mode = uninstall && objdir="$dir"
17429 + # Remember objdir for removal later, being careful to avoid duplicates
17430 + if test $mode = clean; then
17431 + case " $rmdirs " in
17432 + *" $objdir "*) ;;
17433 + *) rmdirs="$rmdirs $objdir" ;;
17437 + # Don't error if the file doesn't exist and rm -f was used.
17438 + if (test -L "$file") >/dev/null 2>&1 \
17439 + || (test -h "$file") >/dev/null 2>&1 \
17440 + || test -f "$file"; then
17442 + elif test -d "$file"; then
17445 + elif test "$rmforce" = yes; then
17454 # Possibly a libtool archive, so verify it.
17455 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17456 + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17459 # Delete the libtool libraries and symlinks.
17460 for n in $library_names; do
17461 - rmfiles="$rmfiles $dir/$n"
17462 + rmfiles="$rmfiles $objdir/$n"
17464 - test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
17465 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
17466 + test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
17468 - $show "$rm $rmfiles"
17469 - $run $rm $rmfiles
17471 - if test -n "$library_names"; then
17472 - # Do each command in the postuninstall commands.
17473 - eval cmds=\"$postuninstall_cmds\"
17474 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
17475 - for cmd in $cmds; do
17476 + if test $mode = uninstall; then
17477 + if test -n "$library_names"; then
17478 + # Do each command in the postuninstall commands.
17479 + eval cmds=\"$postuninstall_cmds\"
17480 + save_ifs="$IFS"; IFS='~'
17481 + for cmd in $cmds; do
17485 + if test $? != 0 && test "$rmforce" != yes; then
17497 - if test -n "$old_library"; then
17498 - # Do each command in the old_postuninstall commands.
17499 - eval cmds=\"$old_postuninstall_cmds\"
17500 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
17501 - for cmd in $cmds; do
17502 + if test -n "$old_library"; then
17503 + # Do each command in the old_postuninstall commands.
17504 + eval cmds=\"$old_postuninstall_cmds\"
17505 + save_ifs="$IFS"; IFS='~'
17506 + for cmd in $cmds; do
17510 + if test $? != 0 && test "$rmforce" != yes; then
17520 + # FIXME: should reinstall the best remaining shared library.
17523 - # FIXME: should reinstall the best remaining shared library.
17527 @@ -3809,17 +4860,35 @@
17528 oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
17529 rmfiles="$rmfiles $dir/$oldobj"
17531 - $show "$rm $rmfiles"
17532 - $run $rm $rmfiles
17536 - $show "$rm $rmfiles"
17537 - $run $rm $rmfiles
17538 + # Do a test to see if this is a libtool program.
17539 + if test $mode = clean &&
17540 + (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
17544 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
17545 + if test "$fast_install" = yes && test -n "$relink_command"; then
17546 + rmfiles="$rmfiles $objdir/lt-$name"
17551 + $show "$rm $rmfiles"
17552 + $run $rm $rmfiles || exit_status=1
17556 + # Try to remove the ${objdir}s in the directories where we deleted files
17557 + for dir in $rmdirs; do
17558 + if test -d "$dir"; then
17559 + $show "rmdir $dir"
17560 + $run rmdir $dir >/dev/null 2>&1
17564 + exit $exit_status
17568 @@ -3829,13 +4898,20 @@
17572 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
17573 - $echo "$generic_help" 1>&2
17575 + if test -z "$exec_cmd"; then
17576 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
17577 + $echo "$generic_help" 1>&2
17580 fi # test -z "$show_help"
17582 +if test -n "$exec_cmd"; then
17583 + eval exec $exec_cmd
17587 # We need to display help for each of the modes.
17591 "Usage: $modename [OPTION]... [MODE-ARG]...
17593 @@ -3854,6 +4930,7 @@
17595 MODE must be one of the following:
17597 + clean remove files from the build directory
17598 compile compile a source file into a libtool object
17599 execute automatically set library path, then run a program
17600 finish complete the installation of libtool libraries
17601 @@ -3866,6 +4943,20 @@
17607 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
17609 +Remove files from the build directory.
17611 +RM is the name of the program to use to delete files associated with each FILE
17612 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
17615 +If FILE is a libtool library, object or program, all the files associated
17616 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
17621 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
17622 @@ -3875,6 +4966,8 @@
17623 This mode accepts the following additional options:
17625 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
17626 + -prefer-pic try to building PIC objects only
17627 + -prefer-non-pic try to building non-PIC objects only
17628 -static always build a \`.o' file suitable for static linking
17630 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
17631 @@ -3954,6 +5047,8 @@
17632 -LLIBDIR search LIBDIR for required installed libraries
17633 -lNAME OUTPUT-FILE requires the installed library libNAME
17634 -module build a library that can dlopened
17635 + -no-fast-install disable the fast-install mode
17636 + -no-install link a not-installable executable
17637 -no-undefined declare that a library does not refer to external symbols
17638 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
17639 -release RELEASE specify package release information
17640 --- glib1.2-1.2.10.orig/gmodule/Makefile.in
17641 +++ glib1.2-1.2.10/gmodule/Makefile.in
17643 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
17644 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
17646 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
17647 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
17648 # This Makefile.in is free software; the Free Software Foundation
17649 # gives unlimited permission to copy and/or distribute it,
17650 # with or without modifications, as long as this notice is preserved.
17654 DLLTOOL = @DLLTOOL@
17656 ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
17657 ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
17659 GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
17660 GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
17661 GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
17664 MAKEINFO = @MAKEINFO@
17665 OBJDUMP = @OBJDUMP@
17667 PACKAGE = @PACKAGE@
17670 VERSION = @VERSION@
17672 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gmodule -DG_LOG_DOMAIN=\"GModule\" @GLIB_DEBUG_FLAGS@
17673 @@ -112,17 +116,17 @@
17674 libgmodule_la_LDFLAGS = @G_MODULE_LDFLAGS@ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-dynamic
17677 -libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17678 +libgmodule_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17679 # we should really depend on $(libglib) for libgmodule.la, but libtool has a
17680 # problem with this ;(
17682 libgplugin_a_la_SOURCES = libgplugin_a.c
17683 libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
17684 -libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17685 +libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17687 libgplugin_b_la_SOURCES = libgplugin_b.c
17688 libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
17689 -libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17690 +libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17692 noinst_PROGRAMS = testgmodule
17693 testgmodule_LDFLAGS = @G_MODULE_LDFLAGS@
17694 @@ -143,10 +147,11 @@
17695 libgplugin_a_la_OBJECTS = libgplugin_a.lo
17696 libgplugin_b_la_DEPENDENCIES =
17697 libgplugin_b_la_OBJECTS = libgplugin_b.lo
17698 +noinst_PROGRAMS = testgmodule$(EXEEXT)
17699 PROGRAMS = $(noinst_PROGRAMS)
17701 testgmodule_SOURCES = testgmodule.c
17702 -testgmodule_OBJECTS = testgmodule.o
17703 +testgmodule_OBJECTS = testgmodule.$(OBJEXT)
17704 testgmodule_DEPENDENCIES = libgmodule.la $(top_builddir)/libglib.la
17706 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
17707 @@ -161,14 +166,14 @@
17709 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
17714 SOURCES = $(libgmodule_la_SOURCES) $(libgplugin_a_la_SOURCES) $(libgplugin_b_la_SOURCES) testgmodule.c
17715 -OBJECTS = $(libgmodule_la_OBJECTS) $(libgplugin_a_la_OBJECTS) $(libgplugin_b_la_OBJECTS) testgmodule.o
17716 +OBJECTS = $(libgmodule_la_OBJECTS) $(libgplugin_a_la_OBJECTS) $(libgplugin_b_la_OBJECTS) testgmodule.$(OBJEXT)
17720 -.SUFFIXES: .S .c .lo .o .s
17721 +.SUFFIXES: .S .c .lo .o .obj .s
17722 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
17723 cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gmodule/Makefile
17725 @@ -197,6 +202,11 @@
17729 +# FIXME: We should only use cygpath when building on Windows,
17730 +# and only if it is available.
17732 + $(COMPILE) -c `cygpath -w $<`
17737 @@ -205,6 +215,7 @@
17739 mostlyclean-compile:
17740 -rm -f *.o core *.core
17741 + -rm -f *.$(OBJEXT)
17745 @@ -250,8 +261,8 @@
17747 maintainer-clean-noinstPROGRAMS:
17749 -testgmodule: $(testgmodule_OBJECTS) $(testgmodule_DEPENDENCIES)
17750 - @rm -f testgmodule
17751 +testgmodule$(EXEEXT): $(testgmodule_OBJECTS) $(testgmodule_DEPENDENCIES)
17752 + @rm -f testgmodule$(EXEEXT)
17753 $(LINK) $(testgmodule_LDFLAGS) $(testgmodule_OBJECTS) $(testgmodule_LDADD) $(LIBS)
17755 install-glibincludeHEADERS: $(glibinclude_HEADERS)
17756 @@ -287,7 +298,7 @@
17757 awk ' { files[$$0] = 1; } \
17758 END { for (i in files) print i; }'`; \
17759 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
17760 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
17761 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
17765 @@ -313,15 +324,6 @@
17766 || cp -p $$d/$$file $(distdir)/$$file || :; \
17769 -gmodule.lo gmodule.o : gmodule.c gmodule.h ../glib.h ../glibconfig.h \
17770 - gmoduleconf.h gmodule-dl.c
17771 -libgplugin_a.lo libgplugin_a.o : libgplugin_a.c gmodule.h ../glib.h \
17773 -libgplugin_b.lo libgplugin_b.o : libgplugin_b.c gmodule.h ../glib.h \
17775 -testgmodule.o: testgmodule.c gmodule.h ../glib.h ../glibconfig.h \
17781 --- glib1.2-1.2.10.orig/gmodule/Makefile.am
17782 +++ glib1.2-1.2.10/gmodule/Makefile.am
17783 @@ -29,17 +29,17 @@
17784 -release $(LT_RELEASE) \
17787 -libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17788 +libgmodule_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17789 # we should really depend on $(libglib) for libgmodule.la, but libtool has a
17790 # problem with this ;(
17792 libgplugin_a_la_SOURCES = libgplugin_a.c
17793 libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
17794 -libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17795 +libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17797 libgplugin_b_la_SOURCES = libgplugin_b.c
17798 libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
17799 -libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
17800 +libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
17802 noinst_PROGRAMS = testgmodule
17803 testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
17804 --- glib1.2-1.2.10.orig/gthread/Makefile.in
17805 +++ glib1.2-1.2.10/gthread/Makefile.in
17807 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
17808 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
17810 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
17811 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
17812 # This Makefile.in is free software; the Free Software Foundation
17813 # gives unlimited permission to copy and/or distribute it,
17814 # with or without modifications, as long as this notice is preserved.
17818 DLLTOOL = @DLLTOOL@
17820 ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
17821 ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
17823 GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
17824 GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
17825 GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
17828 MAKEINFO = @MAKEINFO@
17829 OBJDUMP = @OBJDUMP@
17831 PACKAGE = @PACKAGE@
17834 VERSION = @VERSION@
17836 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gthread -DG_LOG_DOMAIN=\"GThread\"
17837 @@ -105,7 +109,7 @@
17838 libgthread_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-dynamic
17841 -libgthread_la_LIBADD = @G_THREAD_LIBS@
17842 +libgthread_la_LIBADD = @G_THREAD_LIBS@ $(libglib)
17844 noinst_PROGRAMS = testgthread
17845 testgthread_LDADD = ../libglib.la libgthread.la
17846 @@ -121,10 +125,11 @@
17848 libgthread_la_DEPENDENCIES =
17849 libgthread_la_OBJECTS = gthread.lo
17850 +noinst_PROGRAMS = testgthread$(EXEEXT)
17851 PROGRAMS = $(noinst_PROGRAMS)
17853 testgthread_SOURCES = testgthread.c
17854 -testgthread_OBJECTS = testgthread.o
17855 +testgthread_OBJECTS = testgthread.$(OBJEXT)
17856 testgthread_DEPENDENCIES = ../libglib.la libgthread.la
17857 testgthread_LDFLAGS =
17859 @@ -137,14 +142,14 @@
17861 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
17866 SOURCES = $(libgthread_la_SOURCES) testgthread.c
17867 -OBJECTS = $(libgthread_la_OBJECTS) testgthread.o
17868 +OBJECTS = $(libgthread_la_OBJECTS) testgthread.$(OBJEXT)
17872 -.SUFFIXES: .S .c .lo .o .s
17873 +.SUFFIXES: .S .c .lo .o .obj .s
17874 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
17875 cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gthread/Makefile
17877 @@ -181,6 +186,11 @@
17881 +# FIXME: We should only use cygpath when building on Windows,
17882 +# and only if it is available.
17884 + $(COMPILE) -c `cygpath -w $<`
17889 @@ -189,6 +199,7 @@
17891 mostlyclean-compile:
17892 -rm -f *.o core *.core
17893 + -rm -f *.$(OBJEXT)
17897 @@ -228,8 +239,8 @@
17899 maintainer-clean-noinstPROGRAMS:
17901 -testgthread: $(testgthread_OBJECTS) $(testgthread_DEPENDENCIES)
17902 - @rm -f testgthread
17903 +testgthread$(EXEEXT): $(testgthread_OBJECTS) $(testgthread_DEPENDENCIES)
17904 + @rm -f testgthread$(EXEEXT)
17905 $(LINK) $(testgthread_LDFLAGS) $(testgthread_OBJECTS) $(testgthread_LDADD) $(LIBS)
17908 @@ -250,7 +261,7 @@
17909 awk ' { files[$$0] = 1; } \
17910 END { for (i in files) print i; }'`; \
17911 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
17912 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
17913 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
17917 @@ -276,11 +287,6 @@
17918 || cp -p $$d/$$file $(distdir)/$$file || :; \
17921 -gthread.lo gthread.o : gthread.c ../config.h ../glib.h ../glibconfig.h \
17923 -testgthread.o: testgthread.c ../config.h ../testglib.c ../glib.h \
17929 --- glib1.2-1.2.10.orig/gthread/Makefile.am
17930 +++ glib1.2-1.2.10/gthread/Makefile.am
17932 -release $(LT_RELEASE) \
17935 -libgthread_la_LIBADD = @G_THREAD_LIBS@
17936 +libgthread_la_LIBADD = @G_THREAD_LIBS@ $(libglib)
17938 noinst_PROGRAMS = testgthread
17939 testgthread_LDADD = ../libglib.la libgthread.la
17940 --- glib1.2-1.2.10.orig/docs/Makefile.in
17941 +++ glib1.2-1.2.10/docs/Makefile.in
17943 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
17944 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
17946 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
17947 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
17948 # This Makefile.in is free software; the Free Software Foundation
17949 # gives unlimited permission to copy and/or distribute it,
17950 # with or without modifications, as long as this notice is preserved.
17954 DLLTOOL = @DLLTOOL@
17956 ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
17957 ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
17959 GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
17960 GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
17961 GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
17964 MAKEINFO = @MAKEINFO@
17965 OBJDUMP = @OBJDUMP@
17967 PACKAGE = @PACKAGE@
17970 VERSION = @VERSION@
17972 info_TEXINFOS = glib.texi
17973 @@ -114,7 +118,7 @@
17975 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
17982 @@ -208,7 +212,7 @@
17984 list='$(INFO_DEPS)'; \
17985 for file in $$list; do \
17988 || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
17990 @$(NORMAL_UNINSTALL)
17991 --- glib1.2-1.2.10.orig/tests/Makefile.in
17992 +++ glib1.2-1.2.10/tests/Makefile.in
17994 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
17995 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
17997 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
17998 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
17999 # This Makefile.in is free software; the Free Software Foundation
18000 # gives unlimited permission to copy and/or distribute it,
18001 # with or without modifications, as long as this notice is preserved.
18005 DLLTOOL = @DLLTOOL@
18007 ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
18008 ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
18010 GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
18011 GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
18012 GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
18015 MAKEINFO = @MAKEINFO@
18016 OBJDUMP = @OBJDUMP@
18018 PACKAGE = @PACKAGE@
18021 VERSION = @VERSION@
18023 INCLUDES = -I$(top_srcdir)
18024 @@ -116,6 +120,10 @@
18025 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
18026 CONFIG_HEADER = ../config.h
18027 CONFIG_CLEAN_FILES =
18028 +noinst_PROGRAMS = array-test$(EXEEXT) dirname-test$(EXEEXT) \
18029 +hash-test$(EXEEXT) list-test$(EXEEXT) node-test$(EXEEXT) \
18030 +relation-test$(EXEEXT) slist-test$(EXEEXT) string-test$(EXEEXT) \
18031 +strfunc-test$(EXEEXT) tree-test$(EXEEXT) type-test$(EXEEXT)
18032 PROGRAMS = $(noinst_PROGRAMS)
18035 @@ -124,47 +132,47 @@
18036 LDFLAGS = @LDFLAGS@
18038 array_test_SOURCES = array-test.c
18039 -array_test_OBJECTS = array-test.o
18040 +array_test_OBJECTS = array-test.$(OBJEXT)
18041 array_test_DEPENDENCIES = $(top_builddir)/libglib.la
18042 array_test_LDFLAGS =
18043 dirname_test_SOURCES = dirname-test.c
18044 -dirname_test_OBJECTS = dirname-test.o
18045 +dirname_test_OBJECTS = dirname-test.$(OBJEXT)
18046 dirname_test_DEPENDENCIES = $(top_builddir)/libglib.la
18047 dirname_test_LDFLAGS =
18048 hash_test_SOURCES = hash-test.c
18049 -hash_test_OBJECTS = hash-test.o
18050 +hash_test_OBJECTS = hash-test.$(OBJEXT)
18051 hash_test_DEPENDENCIES = $(top_builddir)/libglib.la
18052 hash_test_LDFLAGS =
18053 list_test_SOURCES = list-test.c
18054 -list_test_OBJECTS = list-test.o
18055 +list_test_OBJECTS = list-test.$(OBJEXT)
18056 list_test_DEPENDENCIES = $(top_builddir)/libglib.la
18057 list_test_LDFLAGS =
18058 node_test_SOURCES = node-test.c
18059 -node_test_OBJECTS = node-test.o
18060 +node_test_OBJECTS = node-test.$(OBJEXT)
18061 node_test_DEPENDENCIES = $(top_builddir)/libglib.la
18062 node_test_LDFLAGS =
18063 relation_test_SOURCES = relation-test.c
18064 -relation_test_OBJECTS = relation-test.o
18065 +relation_test_OBJECTS = relation-test.$(OBJEXT)
18066 relation_test_DEPENDENCIES = $(top_builddir)/libglib.la
18067 relation_test_LDFLAGS =
18068 slist_test_SOURCES = slist-test.c
18069 -slist_test_OBJECTS = slist-test.o
18070 +slist_test_OBJECTS = slist-test.$(OBJEXT)
18071 slist_test_DEPENDENCIES = $(top_builddir)/libglib.la
18072 slist_test_LDFLAGS =
18073 string_test_SOURCES = string-test.c
18074 -string_test_OBJECTS = string-test.o
18075 +string_test_OBJECTS = string-test.$(OBJEXT)
18076 string_test_DEPENDENCIES = $(top_builddir)/libglib.la
18077 string_test_LDFLAGS =
18078 strfunc_test_SOURCES = strfunc-test.c
18079 -strfunc_test_OBJECTS = strfunc-test.o
18080 +strfunc_test_OBJECTS = strfunc-test.$(OBJEXT)
18081 strfunc_test_DEPENDENCIES = $(top_builddir)/libglib.la
18082 strfunc_test_LDFLAGS =
18083 tree_test_SOURCES = tree-test.c
18084 -tree_test_OBJECTS = tree-test.o
18085 +tree_test_OBJECTS = tree-test.$(OBJEXT)
18086 tree_test_DEPENDENCIES = $(top_builddir)/libglib.la
18087 tree_test_LDFLAGS =
18088 type_test_SOURCES = type-test.c
18089 -type_test_OBJECTS = type-test.o
18090 +type_test_OBJECTS = type-test.$(OBJEXT)
18091 type_test_DEPENDENCIES = $(top_builddir)/libglib.la
18092 type_test_LDFLAGS =
18094 @@ -177,14 +185,14 @@
18096 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
18101 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
18102 -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
18103 +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)
18107 -.SUFFIXES: .S .c .lo .o .s
18108 +.SUFFIXES: .S .c .lo .o .obj .s
18109 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
18110 cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps tests/Makefile
18112 @@ -205,6 +213,11 @@
18116 +# FIXME: We should only use cygpath when building on Windows,
18117 +# and only if it is available.
18119 + $(COMPILE) -c `cygpath -w $<`
18124 @@ -213,6 +226,7 @@
18126 mostlyclean-compile:
18127 -rm -f *.o core *.core
18128 + -rm -f *.$(OBJEXT)
18132 @@ -240,48 +254,48 @@
18134 maintainer-clean-libtool:
18136 -array-test: $(array_test_OBJECTS) $(array_test_DEPENDENCIES)
18137 - @rm -f array-test
18138 +array-test$(EXEEXT): $(array_test_OBJECTS) $(array_test_DEPENDENCIES)
18139 + @rm -f array-test$(EXEEXT)
18140 $(LINK) $(array_test_LDFLAGS) $(array_test_OBJECTS) $(array_test_LDADD) $(LIBS)
18142 -dirname-test: $(dirname_test_OBJECTS) $(dirname_test_DEPENDENCIES)
18143 - @rm -f dirname-test
18144 +dirname-test$(EXEEXT): $(dirname_test_OBJECTS) $(dirname_test_DEPENDENCIES)
18145 + @rm -f dirname-test$(EXEEXT)
18146 $(LINK) $(dirname_test_LDFLAGS) $(dirname_test_OBJECTS) $(dirname_test_LDADD) $(LIBS)
18148 -hash-test: $(hash_test_OBJECTS) $(hash_test_DEPENDENCIES)
18150 +hash-test$(EXEEXT): $(hash_test_OBJECTS) $(hash_test_DEPENDENCIES)
18151 + @rm -f hash-test$(EXEEXT)
18152 $(LINK) $(hash_test_LDFLAGS) $(hash_test_OBJECTS) $(hash_test_LDADD) $(LIBS)
18154 -list-test: $(list_test_OBJECTS) $(list_test_DEPENDENCIES)
18156 +list-test$(EXEEXT): $(list_test_OBJECTS) $(list_test_DEPENDENCIES)
18157 + @rm -f list-test$(EXEEXT)
18158 $(LINK) $(list_test_LDFLAGS) $(list_test_OBJECTS) $(list_test_LDADD) $(LIBS)
18160 -node-test: $(node_test_OBJECTS) $(node_test_DEPENDENCIES)
18162 +node-test$(EXEEXT): $(node_test_OBJECTS) $(node_test_DEPENDENCIES)
18163 + @rm -f node-test$(EXEEXT)
18164 $(LINK) $(node_test_LDFLAGS) $(node_test_OBJECTS) $(node_test_LDADD) $(LIBS)
18166 -relation-test: $(relation_test_OBJECTS) $(relation_test_DEPENDENCIES)
18167 - @rm -f relation-test
18168 +relation-test$(EXEEXT): $(relation_test_OBJECTS) $(relation_test_DEPENDENCIES)
18169 + @rm -f relation-test$(EXEEXT)
18170 $(LINK) $(relation_test_LDFLAGS) $(relation_test_OBJECTS) $(relation_test_LDADD) $(LIBS)
18172 -slist-test: $(slist_test_OBJECTS) $(slist_test_DEPENDENCIES)
18173 - @rm -f slist-test
18174 +slist-test$(EXEEXT): $(slist_test_OBJECTS) $(slist_test_DEPENDENCIES)
18175 + @rm -f slist-test$(EXEEXT)
18176 $(LINK) $(slist_test_LDFLAGS) $(slist_test_OBJECTS) $(slist_test_LDADD) $(LIBS)
18178 -string-test: $(string_test_OBJECTS) $(string_test_DEPENDENCIES)
18179 - @rm -f string-test
18180 +string-test$(EXEEXT): $(string_test_OBJECTS) $(string_test_DEPENDENCIES)
18181 + @rm -f string-test$(EXEEXT)
18182 $(LINK) $(string_test_LDFLAGS) $(string_test_OBJECTS) $(string_test_LDADD) $(LIBS)
18184 -strfunc-test: $(strfunc_test_OBJECTS) $(strfunc_test_DEPENDENCIES)
18185 - @rm -f strfunc-test
18186 +strfunc-test$(EXEEXT): $(strfunc_test_OBJECTS) $(strfunc_test_DEPENDENCIES)
18187 + @rm -f strfunc-test$(EXEEXT)
18188 $(LINK) $(strfunc_test_LDFLAGS) $(strfunc_test_OBJECTS) $(strfunc_test_LDADD) $(LIBS)
18190 -tree-test: $(tree_test_OBJECTS) $(tree_test_DEPENDENCIES)
18192 +tree-test$(EXEEXT): $(tree_test_OBJECTS) $(tree_test_DEPENDENCIES)
18193 + @rm -f tree-test$(EXEEXT)
18194 $(LINK) $(tree_test_LDFLAGS) $(tree_test_OBJECTS) $(tree_test_LDADD) $(LIBS)
18196 -type-test: $(type_test_OBJECTS) $(type_test_DEPENDENCIES)
18198 +type-test$(EXEEXT): $(type_test_OBJECTS) $(type_test_DEPENDENCIES)
18199 + @rm -f type-test$(EXEEXT)
18200 $(LINK) $(type_test_LDFLAGS) $(type_test_OBJECTS) $(type_test_LDADD) $(LIBS)
18203 @@ -302,7 +316,7 @@
18204 awk ' { files[$$0] = 1; } \
18205 END { for (i in files) print i; }'`; \
18206 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
18207 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
18208 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
18212 @@ -328,18 +342,6 @@
18213 || cp -p $$d/$$file $(distdir)/$$file || :; \
18216 -array-test.o: array-test.c ../glib.h ../glibconfig.h
18217 -dirname-test.o: dirname-test.c ../glib.h ../glibconfig.h
18218 -hash-test.o: hash-test.c ../config.h ../glib.h ../glibconfig.h
18219 -list-test.o: list-test.c ../glib.h ../glibconfig.h
18220 -node-test.o: node-test.c ../config.h ../glib.h ../glibconfig.h
18221 -relation-test.o: relation-test.c ../glib.h ../glibconfig.h
18222 -slist-test.o: slist-test.c ../glib.h ../glibconfig.h
18223 -strfunc-test.o: strfunc-test.c ../glib.h ../glibconfig.h
18224 -string-test.o: string-test.c ../glib.h ../glibconfig.h
18225 -tree-test.o: tree-test.c ../glib.h ../glibconfig.h
18226 -type-test.o: type-test.c ../glib.h ../glibconfig.h
18228 check-TESTS: $(TESTS)
18229 @failed=0; all=0; \
18230 srcdir=$(srcdir); export srcdir; \
18231 --- glib1.2-1.2.10.orig/debian/rules
18232 +++ glib1.2-1.2.10/debian/rules
18234 +#!/usr/bin/make -f
18235 +# Sample debian/rules that uses debhelper.
18236 +# GNU copyright 1997 to 1999 by Joey Hess.
18238 +# Uncomment this to turn on verbose mode.
18239 +#export DH_VERBOSE=1
18241 +# These are used for cross-compiling and for saving the configure script
18242 +# from having to guess our platform (since we know it already)
18243 +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
18244 +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18248 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18253 +ifeq (,$(findstring,nostrip,$(DEB_BUILD_OPTIONS)))
18254 + INSTALL_PROGRAM += -s
18257 +# shared library versions, option 1
18260 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
18261 +#version=`ls src/.libs/lib*.so.* | \
18262 +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
18263 +#major=`ls src/.libs/lib*.so.* | \
18264 +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
18266 +config.status: configure
18269 + # Add here commands to configure the package.
18270 + ./configure --host=$(DEB_HOST_GNU_TYPE) \
18271 + --build=$(DEB_BUILD_GNU_TYPE) \
18273 + --mandir=\$${prefix}/share/man \
18274 + --infodir=\$${prefix}/share/info \
18275 + --enable-debug=yes
18277 +build: build-stamp
18278 +build-stamp: config.status
18281 + # Add here commands to compile the package.
18289 + rm -f build-stamp
18291 + # Add here commands to clean up after the build process.
18292 + -$(MAKE) distclean
18294 + -test -r /usr/share/misc/config.sub && \
18295 + cp -r /usr/share/misc/config.sub config.sub
18296 + -test -r /usr/share/misc/config.guess && \
18297 + cp -r /usr/share/misc/config.guess config.guess
18307 + # Add here commands to install the package into debian/tmp
18308 + $(MAKE) install prefix=$(CURDIR)/debian/libglib1.2/usr
18311 + mkdir -p $(CURDIR)/debian/libglib1.2/usr/lib/debug
18312 + for l in `find $(CURDIR)/debian/libglib1.2/usr/lib -name '*.so*'`; do \
18314 + $(CURDIR)/debian/libglib1.2/usr/lib/debug/; \
18317 + dh_movefiles --sourcedir=debian/libglib1.2
18318 + -find $(CURDIR)/debian/ -type d -empty | xargs rmdir -p 2>&1 > /dev/null
18320 +# Build architecture-independent files here.
18321 +binary-indep: build install
18325 + dh_installdocs -i
18327 + dh_installexamples -i
18328 + dh_installinfo -i
18329 + dh_installchangelogs -i ChangeLog
18337 +# Build architecture-dependent files here.
18338 +binary-arch: build install
18342 +# dh_installdebconf
18343 + dh_installdocs -a
18344 + dh_installexamples -a
18345 + dh_installmenu -a
18346 +# dh_installlogrotate
18347 +# dh_installemacsen
18353 + dh_installinfo -a
18355 + dh_installchangelogs -a ChangeLog
18357 + dh_strip -a -Nlibglib1.2-dbg
18360 + dh_makeshlibs -a -Nlibglib1.2-dbg
18361 + dh_makeshlibs -n -plibglib1.2 -V 'libglib1.2 (>= 1.2.0)'
18369 +binary: binary-indep binary-arch
18370 +.PHONY: build clean binary-indep binary-arch binary install
18371 --- glib1.2-1.2.10.orig/debian/docs
18372 +++ glib1.2-1.2.10/debian/docs
18376 --- glib1.2-1.2.10.orig/debian/README.Debian
18377 +++ glib1.2-1.2.10/debian/README.Debian
18380 +----------------------
18382 +This is GLib version 1.2. GLib, is a library which includes support
18383 +routines for C such as lists, trees, hashes, memory allocation, and
18384 +many other things.
18386 +Versions of GLib prior to 1.1 are distributed with GTK+ versions 1.1.0
18389 +The GIMP Tool Kit (gtk) is a set of widgets to help you program
18390 +programs for the X Windowing System easily and powerfully.
18392 +gtk is the moving force behind The GNU Image Manipulation Program (The
18393 +GIMP) -- the number one freely-available image editing and creation
18394 +program available.
18396 +gtk is rapidly under development, and the source tree has officially
18397 +been separated from The GIMP now, as other teams of programmers
18398 +are beginning to write software using its great widget set -- like
18399 +GNOME, a desktop interface for X, and gzilla, a freely available
18400 +web browser for X.
18402 +Ben Gertzfield <che@debian.org>, Mon, 29 Sep 1997 13:11:45 -0700
18404 --- glib1.2-1.2.10.orig/debian/changelog
18405 +++ glib1.2-1.2.10/debian/changelog
18407 +glib1.2 (1.2.10-9) unstable; urgency=low
18409 + * debian/control:
18410 + - bumped Standards-Version to 3.5.10.0.
18411 + - changed the sections for libglib1.2-dev and libglib1.2-dbg to libdevel.
18413 + - use it instead of DH_COMPAT.
18414 + * gmodule/Makefile.in, gthread/Makefile.in:
18415 + fix the undefined non-weak symbols. (closes: Bug#193347)
18417 + -- Akira TAGOH <tagoh@debian.org> Sun, 18 May 2003 00:00:17 +0900
18419 +glib1.2 (1.2.10-8) unstable; urgency=low
18421 + * Fixed libtool issue on mispel. (closes: Bug#183793)
18422 + * acinclude.m4, ltconfig:
18423 + - removed. it contained the old libtool stuff.
18425 + -- Akira TAGOH <tagoh@debian.org> Tue, 11 Mar 2003 23:36:10 +0900
18427 +glib1.2 (1.2.10-7) unstable; urgency=low
18430 + - fix twice modified the maintainer script for dh_installdocs.
18431 + - support DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE.
18432 + - support noopt and nostrip for DEB_BUILD_OPTIONS.
18433 + - copy the latest config.sub and config.guess. (closes: Bug#181942)
18434 + - don't call ldconfig for -dbg package.
18435 + * debian/control:
18436 + - bumped Standards-Version to 3.5.8.
18437 + - updated Build-Depends.
18438 + - split the documentation files into libglib1.2-doc.
18439 + * debian/libglib1.2-doc.info: add glib.info. (closes: Bug#159677)
18441 + -- Akira TAGOH <tagoh@debian.org> Thu, 27 Feb 2003 00:12:39 +0900
18443 +glib1.2 (1.2.10-6) unstable; urgency=low
18445 + * debian/control:
18446 + - removed libc6-dev from Build-Depends.
18447 + - changed libc6-dev to libc6-dev | libc-dev in -dev's Depends.
18449 + -- Akira TAGOH <tagoh@debian.org> Thu, 22 Aug 2002 02:02:32 +0900
18451 +glib1.2 (1.2.10-5) unstable; urgency=low
18453 + * debian/control: add libc6-dev to Depends for -dev (closes: Bug#147653)
18455 + -- Akira TAGOH <tagoh@debian.org> Wed, 22 May 2002 23:58:14 +0900
18457 +glib1.2 (1.2.10-4) unstable; urgency=low
18459 + * debian/control: Fixed build-depends for NetBSD/i386 (closes: Bug#133443)
18461 + -- Akira TAGOH <tagoh@debian.org> Wed, 13 Feb 2002 02:22:20 +0900
18463 +glib1.2 (1.2.10-3) unstable; urgency=low
18465 + * Closed a NMU bug. (closes: Bug#93932)
18466 + * Fixed description typo (closes: Bug#102988)
18467 + * -dbg package contains shared libraries for debugging. so if you
18468 + need static link, add -static to compiler option and use
18469 + static libraries which is included in libglib1.2-dev.
18471 + -- Akira TAGOH <tagoh@debian.org> Sat, 24 Nov 2001 20:54:25 +0900
18473 +glib1.2 (1.2.10-2) unstable; urgency=low
18475 + * I took over this package from Ben.
18476 + * Closed a bug because it is already fixed in the latest release.
18477 + (closes: Bug#62463)
18479 + -- Akira TAGOH <tagoh@debian.org> Sat, 10 Nov 2001 19:49:14 +0900
18481 +glib1.2 (1.2.10-1.2) unstable; urgency=low
18483 + * Non-Maintainer Upload, approved by Ben.
18484 + * Updated config.sub and config.guess for ia64 (closes: #93932).
18485 + * If -dev's postinst fails at install-info, have a look at Bug#99816.
18487 + -- Jordi Mallach <jordi@debian.org> Sat, 23 Jun 2001 05:28:15 +0200
18489 +glib1.2 (1.2.10-1.1) unstable; urgency=low
18491 + * Binary-only rebuild because of gcc 2.95 atexit() problem on i386.
18494 + -- Ben Gertzfield <che@debian.org> Wed, 11 Apr 2001 19:46:27 -0700
18496 +glib1.2 (1.2.10-1) unstable; urgency=low
18498 + * New upstream version.
18499 + * Patch config.sub for s390 architecture. (Closes: #88553)
18501 + -- Ben Gertzfield <che@debian.org> Sun, 1 Apr 2001 21:44:47 -0700
18503 +glib1.2 (1.2.9-1) unstable; urgency=low
18505 + * New upstream version.
18506 + * Include upstream changelog. (Closes: #59744)
18507 + * Note that the include files have been moved (according to
18508 + upstream) to /usr/include/glib-1.2/, but this should not be a
18509 + problem for anything using glib-config. Please, PLEASE, don't
18510 + submit bugs on my poor packages because your program isn't using
18512 + * Fix bashisms in debian/rules. (Hah, caught 'em on my own..)
18514 + -- Ben Gertzfield <che@debian.org> Fri, 2 Mar 2001 16:18:36 -0800
18516 +glib1.2 (1.2.8-2) unstable; urgency=low
18518 + * Bump Standards-Version to 3.2.1.
18520 + -- Ben Gertzfield <che@debian.org> Sat, 23 Dec 2000 01:31:39 -0800
18522 +glib1.2 (1.2.8-1) unstable; urgency=low
18524 + * New upstream version.
18526 + -- Ben Gertzfield <che@debian.org> Wed, 24 May 2000 19:41:54 -0700
18528 +glib1.2 (1.2.7-2) frozen unstable; urgency=medium
18530 + * Fix "guard code" in configure.in that tests for gcc version
18531 + greater than 2.8 (will fail when 3.0 comes out.) This fixes
18532 + *half* of the release-critical bug report #55246.
18533 + * The other half of RC bug #55246 is not really a glib problem;
18534 + G_GNUC_EXTENSION arguably should be defined on all platforms, but
18535 + that's up to upstream to change this. It's been reported upstream as
18536 + gnome bug #6328, http://bugs.gnome.org/db/63/6328.html. In any case,
18537 + gentoo should be using G_GINT64_CONSTANT(12345) for portably declaring
18538 + 64-bit constants, instead of the undocumented, internal,
18539 + not-defined-on-all-platforms G_GNUC_EXTENSION. I will be reassigning
18540 + the remainder of RC bug #55246 to gentoo.
18542 + -- Ben Gertzfield <che@debian.org> Mon, 28 Feb 2000 12:33:57 -0800
18544 +glib1.2 (1.2.7-1) frozen unstable; urgency=low
18546 + * To fix i18n problems with GTK+, glib 1.2.7 and gtk+ 1.2.7
18547 + must both make it into frozen.
18548 + * (New upstream version, too. :)
18550 + -- Ben Gertzfield <che@debian.org> Thu, 17 Feb 2000 09:12:20 -0800
18552 +glib1.2 (1.2.6-1) unstable; urgency=low
18554 + * New upstream version.
18555 + * Make sure docs are in /usr/share/doc/libglib1.2 etc.
18557 + -- Ben Gertzfield <che@debian.org> Fri, 15 Oct 1999 09:44:19 -0700
18559 +glib1.2 (1.2.5-1) unstable; urgency=low
18561 + * New upstream version.
18563 + -- Ben Gertzfield <che@debian.org> Fri, 24 Sep 1999 09:27:25 -0700
18565 +glib1.2 (1.2.4-1) unstable; urgency=low
18567 + * New upstream version.
18569 + -- Ben Gertzfield <che@debian.org> Tue, 24 Aug 1999 11:10:11 -0700
18571 +glib1.2 (1.2.3-2) unstable; urgency=low
18573 + * Erg. Make sure -dev depends on exact version of lib, and -dbg
18574 + depends on exact version of -dev and lib.
18576 + -- Ben Gertzfield <che@debian.org> Tue, 27 Jul 1999 15:24:33 -0700
18578 +glib1.2 (1.2.3-1) unstable; urgency=low
18580 + * New upstream version.
18582 + -- Ben Gertzfield <che@debian.org> Tue, 11 May 1999 20:55:00 -0700
18584 +glib1.2 (1.2.2-1) unstable; urgency=low
18586 + * New upstream version.
18588 + -- Ben Gertzfield <che@debian.org> Mon, 26 Apr 1999 18:15:06 -0700
18590 +glib1.2 (1.2.1-2) unstable; urgency=low
18592 + * Recompile with GNU libc 2.1.
18594 + -- Ben Gertzfield <che@debian.org> Thu, 15 Apr 1999 13:26:50 -0700
18596 +glib1.2 (1.2.1-1) unstable; urgency=low
18598 + * New upstream version.
18599 + * Make the shlibs looser; now packages depend on libglib1.2 (>= 1.2.0)
18601 + -- Ben Gertzfield <che@debian.org> Thu, 25 Mar 1999 10:33:26 -0800
18603 +glib1.2 (1.2.0-1) unstable; urgency=low
18605 + * Hallelujah! :) We made it.
18607 + -- Ben Gertzfield <che@debian.org> Thu, 25 Feb 1999 22:17:36 -0800
18609 +glib1.1.16 (1.1.16-1) unstable; urgency=low
18611 + * New upstream version.
18613 + -- Ben Gertzfield <che@debian.org> Tue, 16 Feb 1999 16:55:07 -0800
18615 +glib1.1.13 (1.1.13-1) unstable; urgency=low
18617 + * New upstream version.
18619 + -- Ben Gertzfield <che@debian.org> Wed, 20 Jan 1999 18:25:48 -0800
18621 +glib1.1.12 (1.1.12-1) unstable; urgency=low
18623 + * New upstream version.
18625 + -- Ben Gertzfield <che@debian.org> Mon, 4 Jan 1999 14:13:59 -0800
18627 +glib1.1.11 (1.1.11-1) unstable; urgency=low
18629 + * New upstream version. (They skipped .10.)
18631 + -- Ben Gertzfield <che@debian.org> Wed, 30 Dec 1998 21:46:40 -0800
18633 +glib1.1.9 (1.1.9-1) unstable; urgency=low
18635 + * New upstream version.
18636 + * Now debian/rules uses a $(version) variable to make my life easier.
18638 + -- Ben Gertzfield <che@debian.org> Thu, 17 Dec 1998 10:36:27 -0800
18640 +glib1.1.6 (1.1.6-1) unstable; urgency=low
18642 + * New upstream version.
18644 + -- Ben Gertzfield <che@debian.org> Tue, 8 Dec 1998 20:54:59 -0800
18646 +glib1.1.5 (1.1.5-2) unstable; urgency=low
18648 + * Now libglib1.1.5-dev Provides: libglib-dev and libglib1.1-dev.
18650 + -- Ben Gertzfield <che@debian.org> Sun, 29 Nov 1998 17:59:52 -0800
18652 +glib1.1.5 (1.1.5-1) unstable; urgency=low
18654 + * Now the source and binary packages *all* specifically have the version
18655 + number in them. This is so a new release of glib or gtk+ does not break
18656 + all apps dependant upon glib or gtk+'s unstable branch.
18657 + * Removed --enable-debug=no from libglib1.1 build; it was causing problems
18659 + -- Ben Gertzfield <che@debian.org> Tue, 24 Nov 1998 14:25:15 -0800
18661 +glib (1.1.4-1) unstable; urgency=low
18663 + * New upstream version.
18664 + * debian/control: libglib-dev and libglib-dbg now depend on ${Source-Version}
18665 + of libglib1.1 to make upgrades force you to have one version of the library
18666 + and -dev and -dbg, no more multiple versions allowed.
18668 + -- Ben Gertzfield <che@debian.org> Thu, 5 Nov 1998 10:50:03 -0800
18670 +glib (1.1.3-2) unstable; urgency=low
18672 + * Rebuild with new clean-dbg target to fix my error helped along by
18673 + an old broken debhelper.
18675 + -- Ben Gertzfield <che@debian.org> Tue, 29 Sep 1998 13:01:24 -0700
18677 +glib (1.1.3-1) unstable; urgency=low
18679 + * New upstream version.
18680 + * New libglib-dbg package.
18682 + -- Ben Gertzfield <che@debian.org> Mon, 21 Sep 1998 22:30:46 -0700
18684 +glib (1.1.2-1) unstable; urgency=low
18686 + * New upstream version (that was fast!).
18688 + -- Ben Gertzfield <che@debian.org> Wed, 5 Aug 1998 12:13:59 -0700
18690 +glib (1.1.1-1) unstable; urgency=low
18692 + * New upstream version.
18694 + -- Ben Gertzfield <che@debian.org> Tue, 4 Aug 1998 22:42:09 -0700
18696 +glib (1.1.0-1) unstable; urgency=low
18698 + * Split off of GTK+ package upstream. New package.
18700 + -- Ben Gertzfield <che@debian.org> Mon, 27 Jul 1998 14:11:04 -0700
18703 +mode: debian-changelog
18705 --- glib1.2-1.2.10.orig/debian/control
18706 +++ glib1.2-1.2.10/debian/control
18709 +Priority: optional
18711 +Maintainer: Akira TAGOH <tagoh@debian.org>
18712 +Standards-Version: 3.5.10.0
18713 +Build-Depends: debhelper (>> 4.0.0), libpth-dev [netbsd-i386], autotools-dev
18715 +Package: libglib1.2
18718 +Depends: ${shlibs:Depends}
18719 +Replaces: libgtk-doc
18720 +Description: The GLib library of C routines
18721 + GLib is a library containing many useful C routines for things such
18722 + as trees, hashes, and lists. GLib was previously distributed with
18723 + the GTK+ toolkit, but has been split off as of the developers' version
18726 + You do not need to install this package if you have libgtk1 (note 1,
18727 + not 1.1 or 1.2) installed. libgtk1 included libglib in it. libgtk1.1
18728 + and libgtk1.2, however, do need libglib1.1 to be installed separately.
18730 +Package: libglib1.2-dev
18733 +Depends: libglib1.2 (= ${Source-Version}), libc6-dev | libc-dev, pkg-config
18734 +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)
18735 +Provides: libglib-dev, libglib1.1-dev
18736 +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)
18737 +Suggests: libglib1.2-doc
18738 +Description: Development files for GLib library
18739 + GLib is a library containing many useful C routines for things such
18740 + as trees, hashes, and lists. GLib was previously distributed with
18741 + the GTK+ toolkit, but has been split off as of the developers' version
18744 + This package contains the header files and static libraries for the
18747 +Package: libglib1.2-dbg
18751 +Conflicts: libgtk-dev
18752 +Depends: libglib1.2 (= ${Source-Version})
18753 +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
18754 +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
18755 +Description: GLib libraries and debugging symbols
18756 + GLib is a library containing many useful C routines for things such
18757 + as trees, hashes, and lists. GLib was previously distributed with
18758 + the GTK+ toolkit, but has been split off as of the developers' version
18761 + This package contains unstripped shared libraries. it is provided
18762 + primarily to provide a backtrace with names in a debugger, this makes
18763 + it somewhat easier to interpret core dumps. The libraries are installed
18764 + in /usr/lib/debug and can be used by placing that directory in
18766 + Most people will not need this package.
18768 +Package: libglib1.2-doc
18771 +Depends: lynx | www-browser
18772 +Description: Documentation files for the GLib library version 1.2
18773 + GLib is a library containing many useful C routines for things such
18774 + as trees, hashes, and lists. GLib was previously distributed with
18775 + the GTK+ toolkit, but has been split off as of the developers' version
18778 + This package contains the documentation files for the GLib library
18779 + in /usr/share/doc/libglib1.2-doc/ .
18781 --- glib1.2-1.2.10.orig/debian/copyright
18782 +++ glib1.2-1.2.10/debian/copyright
18784 +This package was debianized by Ben Gertzfield <che@debian.org>
18785 +on Mon, 27 Jul 1998 14:17:44 -0700
18787 +GIMP's source may be fetched from http://www.gimp.org/ .
18789 +It may be redistributed under the terms of the GNU LGPL, Version 2 or
18790 +later, found on Debian systems in the file /usr/share/common-licenses/LGPL-2.
18792 --- glib1.2-1.2.10.orig/debian/compat
18793 +++ glib1.2-1.2.10/debian/compat
18796 --- glib1.2-1.2.10.orig/debian/libglib1.2-dbg.dirs
18797 +++ glib1.2-1.2.10/debian/libglib1.2-dbg.dirs
18800 --- glib1.2-1.2.10.orig/debian/libglib1.2-dbg.files
18801 +++ glib1.2-1.2.10/debian/libglib1.2-dbg.files
18803 +usr/lib/debug/*.so*
18804 --- glib1.2-1.2.10.orig/debian/libglib1.2-dev.dirs
18805 +++ glib1.2-1.2.10/debian/libglib1.2-dev.dirs
18811 --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.doc-base
18812 +++ glib1.2-1.2.10/debian/libglib1.2-doc.doc-base
18814 +Document: glib-docs
18815 +Title: GLib C library documentation
18816 +Author: Gregory McLean
18817 +Abstract: Library reference for GLib C library of useful functions
18818 + This document goes into detail on each function of the GLib C
18819 + library of useful functions to deal with common structures like
18820 + lists, trees, et cetera.
18821 +Section: Apps/Programming
18824 +Files: /usr/share/doc/libglib1.2-doc/glib.texi.gz
18827 +Index: /usr/share/doc/libglib1.2-doc/glib_toc.html
18828 +Files: /usr/share/doc/libglib1.2-doc/glib.html
18830 --- glib1.2-1.2.10.orig/debian/libglib1.2-dev.files
18831 +++ glib1.2-1.2.10/debian/libglib1.2-dev.files
18833 +usr/bin/glib-config
18835 +usr/lib/lib*.{so,la,a}
18836 +usr/lib/glib/include/*
18837 +usr/lib/pkgconfig/*.pc
18838 +usr/share/aclocal/*m4
18839 +usr/share/man/man1/glib-config.1*
18840 --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.dirs
18841 +++ glib1.2-1.2.10/debian/libglib1.2-doc.dirs
18843 +usr/share/doc/libglib1.2-doc
18844 --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.files
18845 +++ glib1.2-1.2.10/debian/libglib1.2-doc.files
18847 +usr/share/doc/libglib1.2-doc/*
18849 --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.docs
18850 +++ glib1.2-1.2.10/debian/libglib1.2-doc.docs
18854 --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.info
18855 +++ glib1.2-1.2.10/debian/libglib1.2-doc.info
18858 --- glib1.2-1.2.10.orig/glibconfig.h
18859 +++ glib1.2-1.2.10/glibconfig.h
18863 + * This is a generated file. Please modify `configure.in'
18866 +#ifndef GLIBCONFIG_H
18867 +#define GLIBCONFIG_H
18869 +#include <limits.h>
18870 +#include <float.h>
18871 +#define GLIB_HAVE_SYS_POLL_H
18873 +#ifdef __cplusplus
18875 +#endif /* __cplusplus */
18877 +#define G_MINFLOAT FLT_MIN
18878 +#define G_MAXFLOAT FLT_MAX
18879 +#define G_MINDOUBLE DBL_MIN
18880 +#define G_MAXDOUBLE DBL_MAX
18881 +#define G_MINSHORT SHRT_MIN
18882 +#define G_MAXSHORT SHRT_MAX
18883 +#define G_MININT INT_MIN
18884 +#define G_MAXINT INT_MAX
18885 +#define G_MINLONG LONG_MIN
18886 +#define G_MAXLONG LONG_MAX
18888 +typedef signed char gint8;
18889 +typedef unsigned char guint8;
18890 +typedef signed short gint16;
18891 +typedef unsigned short guint16;
18892 +typedef signed int gint32;
18893 +typedef unsigned int guint32;
18895 +#if defined (__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
18896 +# define G_GNUC_EXTENSION __extension__
18898 +# define G_GNUC_EXTENSION
18901 +#define G_HAVE_GINT64 1
18903 +G_GNUC_EXTENSION typedef signed long long gint64;
18904 +G_GNUC_EXTENSION typedef unsigned long long guint64;
18906 +#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
18908 +#define GPOINTER_TO_INT(p) ((gint) (p))
18909 +#define GPOINTER_TO_UINT(p) ((guint) (p))
18911 +#define GINT_TO_POINTER(i) ((gpointer) (i))
18912 +#define GUINT_TO_POINTER(u) ((gpointer) (u))
18914 +#ifdef NeXT /* @#%@! NeXTStep */
18915 +# define g_ATEXIT(proc) (!atexit (proc))
18917 +# define g_ATEXIT(proc) (atexit (proc))
18920 +#define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
18922 +#define GLIB_MAJOR_VERSION 1
18923 +#define GLIB_MINOR_VERSION 2
18924 +#define GLIB_MICRO_VERSION 10
18927 +#define G_VA_COPY __va_copy
18929 +#ifdef __cplusplus
18930 +#define G_HAVE_INLINE 1
18931 +#else /* !__cplusplus */
18932 +#define G_HAVE_INLINE 1
18933 +#define G_HAVE___INLINE 1
18934 +#define G_HAVE___INLINE__ 1
18935 +#endif /* !__cplusplus */
18937 +#define G_THREADS_ENABLED
18938 +#define G_THREADS_IMPL_POSIX
18939 +typedef struct _GStaticMutex GStaticMutex;
18940 +struct _GStaticMutex
18942 + struct _GMutex *runtime_mutex;
18945 + double dummy_double;
18946 + void *dummy_pointer;
18950 +#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} } }
18951 +#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)))
18953 +#define GINT16_TO_LE(val) ((gint16) (val))
18954 +#define GUINT16_TO_LE(val) ((guint16) (val))
18955 +#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
18956 +#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
18957 +#define GINT32_TO_LE(val) ((gint32) (val))
18958 +#define GUINT32_TO_LE(val) ((guint32) (val))
18959 +#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
18960 +#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
18961 +#define GINT64_TO_LE(val) ((gint64) (val))
18962 +#define GUINT64_TO_LE(val) ((guint64) (val))
18963 +#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
18964 +#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
18965 +#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
18966 +#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
18967 +#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
18968 +#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
18969 +#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
18970 +#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
18971 +#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
18972 +#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
18973 +#define G_BYTE_ORDER G_LITTLE_ENDIAN
18975 +#define GLIB_SYSDEF_POLLIN =1
18976 +#define GLIB_SYSDEF_POLLOUT =4
18977 +#define GLIB_SYSDEF_POLLPRI =2
18978 +#define GLIB_SYSDEF_POLLERR =8
18979 +#define GLIB_SYSDEF_POLLHUP =16
18980 +#define GLIB_SYSDEF_POLLNVAL =32
18983 +#define G_HAVE_WCHAR_H 1
18984 +#define G_HAVE_WCTYPE_H 1
18987 +#ifdef __cplusplus
18989 +#endif /* __cplusplus */
18991 +#endif /* GLIBCONFIG_H */
18992 --- glib1.2-1.2.10.orig/stamp-gc-h
18993 +++ glib1.2-1.2.10/stamp-gc-h
18996 --- glib1.2-1.2.10.orig/glibconfig-sysdefs.h
18997 +++ glib1.2-1.2.10/glibconfig-sysdefs.h
18999 +#define GLIB_SYSDEF_POLLIN =1
19000 +#define GLIB_SYSDEF_POLLOUT =4
19001 +#define GLIB_SYSDEF_POLLPRI =2
19002 +#define GLIB_SYSDEF_POLLERR =8
19003 +#define GLIB_SYSDEF_POLLHUP =16
19004 +#define GLIB_SYSDEF_POLLNVAL =32