Use quilt instead of dpatch
[manu/libnss-mysql-bg.git] / debian / patches / 02_autotools.diff
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 02_autotools.dpatch by  <elacour@home-dn.net>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Autotools update (aclocal, libtoolize -c -f, autoconf, automake)
6
7 @DPATCH@
8 --- ./Makefile.in
9 +++ ./Makefile.in
10 @@ -1,8 +1,8 @@
11 -# Makefile.in generated by automake 1.9.2 from Makefile.am.
12 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
13  # @configure_input@
14  
15  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
16 -# 2003, 2004  Free Software Foundation, Inc.
17 +# 2003, 2004, 2005  Free Software Foundation, Inc.
18  # This Makefile.in is free software; the Free Software Foundation
19  # gives unlimited permission to copy and/or distribute it,
20  # with or without modifications, as long as this notice is preserved.
21 @@ -97,6 +97,7 @@ CXXFLAGS = @CXXFLAGS@
22  CYGPATH_W = @CYGPATH_W@
23  DEFS = @DEFS@
24  DEPDIR = @DEPDIR@
25 +DSYMUTIL = @DSYMUTIL@
26  ECHO = @ECHO@
27  ECHO_C = @ECHO_C@
28  ECHO_N = @ECHO_N@
29 @@ -105,6 +106,7 @@ EGREP = @EGREP@
30  EXEEXT = @EXEEXT@
31  F77 = @F77@
32  FFLAGS = @FFLAGS@
33 +GREP = @GREP@
34  INSTALL_DATA = @INSTALL_DATA@
35  INSTALL_PROGRAM = @INSTALL_PROGRAM@
36  INSTALL_SCRIPT = @INSTALL_SCRIPT@
37 @@ -120,6 +122,7 @@ MAINT = @MAINT@
38  MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
39  MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
40  MAKEINFO = @MAKEINFO@
41 +NMEDIT = @NMEDIT@
42  OBJEXT = @OBJEXT@
43  OS = @OS@
44  PACKAGE = @PACKAGE@
45 @@ -132,16 +135,14 @@ PATH_SEPARATOR = @PATH_SEPARATOR@
46  RANLIB = @RANLIB@
47  RENAME_FALSE = @RENAME_FALSE@
48  RENAME_TRUE = @RENAME_TRUE@
49 +SED = @SED@
50  SET_MAKE = @SET_MAKE@
51  SHELL = @SHELL@
52  STRIP = @STRIP@
53  VERSION = @VERSION@
54 -ac_ct_AR = @ac_ct_AR@
55  ac_ct_CC = @ac_ct_CC@
56  ac_ct_CXX = @ac_ct_CXX@
57  ac_ct_F77 = @ac_ct_F77@
58 -ac_ct_RANLIB = @ac_ct_RANLIB@
59 -ac_ct_STRIP = @ac_ct_STRIP@
60  am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
61  am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
62  am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
63 @@ -158,23 +159,30 @@ build_cpu = @build_cpu@
64  build_os = @build_os@
65  build_vendor = @build_vendor@
66  datadir = @datadir@
67 +datarootdir = @datarootdir@
68 +docdir = @docdir@
69 +dvidir = @dvidir@
70  exec_prefix = @exec_prefix@
71  host = @host@
72  host_alias = @host_alias@
73  host_cpu = @host_cpu@
74  host_os = @host_os@
75  host_vendor = @host_vendor@
76 +htmldir = @htmldir@
77  includedir = @includedir@
78  infodir = @infodir@
79  install_sh = @install_sh@
80  libdir = @libdir@
81  libexecdir = @libexecdir@
82 +localedir = @localedir@
83  localstatedir = @localstatedir@
84  mandir = @mandir@
85  mkdir_p = @mkdir_p@
86  oldincludedir = @oldincludedir@
87 +pdfdir = @pdfdir@
88  prefix = @prefix@
89  program_transform_name = @program_transform_name@
90 +psdir = @psdir@
91  sbindir = @sbindir@
92  sharedstatedir = @sharedstatedir@
93  sysconfdir = @sysconfdir@
94 @@ -261,7 +269,13 @@ uninstall-info-am:
95  #     (which will cause the Makefiles to be regenerated when you run `make');
96  # (2) otherwise, pass the desired values on the `make' command line.
97  $(RECURSIVE_TARGETS):
98 -       @set fnord $$MAKEFLAGS; amf=$$2; \
99 +       @failcom='exit 1'; \
100 +       for f in x $$MAKEFLAGS; do \
101 +         case $$f in \
102 +           *=* | --[!k]*);; \
103 +           *k*) failcom='fail=yes';; \
104 +         esac; \
105 +       done; \
106         dot_seen=no; \
107         target=`echo $@ | sed s/-recursive//`; \
108         list='$(SUBDIRS)'; for subdir in $$list; do \
109 @@ -273,7 +287,7 @@ $(RECURSIVE_TARGETS):
110             local_target="$$target"; \
111           fi; \
112           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
113 -          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
114 +         || eval $$failcom; \
115         done; \
116         if test "$$dot_seen" = "no"; then \
117           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
118 @@ -281,7 +295,13 @@ $(RECURSIVE_TARGETS):
119  
120  mostlyclean-recursive clean-recursive distclean-recursive \
121  maintainer-clean-recursive:
122 -       @set fnord $$MAKEFLAGS; amf=$$2; \
123 +       @failcom='exit 1'; \
124 +       for f in x $$MAKEFLAGS; do \
125 +         case $$f in \
126 +           *=* | --[!k]*);; \
127 +           *k*) failcom='fail=yes';; \
128 +         esac; \
129 +       done; \
130         dot_seen=no; \
131         case "$@" in \
132           distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
133 @@ -302,7 +322,7 @@ maintainer-clean-recursive:
134             local_target="$$target"; \
135           fi; \
136           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
137 -          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
138 +         || eval $$failcom; \
139         done && test -z "$$fail"
140  tags-recursive:
141         list='$(SUBDIRS)'; for subdir in $$list; do \
142 @@ -618,12 +638,12 @@ uninstall-info: uninstall-info-recursive
143  
144  install-data-hook:
145         @if test ! -f ${DESTDIR}${sysconfdir}/libnss-mysql.cfg; then \
146 -               ${srcdir}/aux/mkinstalldirs ${DESTDIR}${sysconfdir}; \
147 +               $(mkinstalldirs) ${DESTDIR}${sysconfdir}; \
148                 ${INSTALL_DATA} ${srcdir}/sample/@OS@/libnss-mysql.cfg \
149                         ${DESTDIR}${sysconfdir}/libnss-mysql.cfg; \
150         fi
151         @if test ! -f ${DESTDIR}${sysconfdir}/libnss-mysql-root.cfg; then \
152 -               ${srcdir}/aux/mkinstalldirs ${DESTDIR}${sysconfdir}; \
153 +               $(mkinstalldirs) ${DESTDIR}${sysconfdir}; \
154                 ${INSTALL_DATA} -m 600 ${srcdir}/sample/@OS@/libnss-mysql-root.cfg \
155                         ${DESTDIR}${sysconfdir}/libnss-mysql-root.cfg; \
156         fi
157 --- ./aclocal.m4
158 +++ ./aclocal.m4
159 @@ -1,7 +1,7 @@
160 -# generated automatically by aclocal 1.9.2 -*- Autoconf -*-
161 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
162  
163 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
164 -# Free Software Foundation, Inc.
165 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
166 +# 2005  Free Software Foundation, Inc.
167  # This file is free software; the Free Software Foundation
168  # gives unlimited permission to copy and/or distribute it,
169  # with or without modifications, as long as this notice is preserved.
170 @@ -13,7 +13,7 @@
171  
172  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
173  
174 -# serial 47 AC_PROG_LIBTOOL
175 +# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
176  
177  
178  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
179 @@ -101,7 +101,6 @@ AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
180  AC_REQUIRE([AC_OBJEXT])dnl
181  AC_REQUIRE([AC_EXEEXT])dnl
182  dnl
183 -
184  AC_LIBTOOL_SYS_MAX_CMD_LEN
185  AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
186  AC_LIBTOOL_OBJDIR
187 @@ -123,7 +122,7 @@ esac
188  
189  # Sed substitution that helps us do robust quoting.  It backslashifies
190  # metacharacters that are still active within double-quoted strings.
191 -Xsed='sed -e s/^X//'
192 +Xsed='sed -e 1s/^X//'
193  [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
194  
195  # Same as above, but do not quote variable references.
196 @@ -143,7 +142,7 @@ rm="rm -f"
197  default_ofile=libtool
198  can_build_shared=yes
199  
200 -# All known linkers require a `.a' archive for static linking (except M$VC,
201 +# All known linkers require a `.a' archive for static linking (except MSVC,
202  # which needs '.lib').
203  libext=a
204  ltmain="$ac_aux_dir/ltmain.sh"
205 @@ -163,6 +162,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
206  test -z "$AS" && AS=as
207  test -z "$CC" && CC=cc
208  test -z "$LTCC" && LTCC=$CC
209 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
210  test -z "$DLLTOOL" && DLLTOOL=dlltool
211  test -z "$LD" && LD=ld
212  test -z "$LN_S" && LN_S="ln -s"
213 @@ -175,22 +175,24 @@ test -z "$STRIP" && STRIP=:
214  test -z "$ac_objext" && ac_objext=o
215  
216  # Determine commands to create old-style static archives.
217 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
218 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
219  old_postinstall_cmds='chmod 644 $oldlib'
220  old_postuninstall_cmds=
221  
222  if test -n "$RANLIB"; then
223    case $host_os in
224    openbsd*)
225 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
226 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
227      ;;
228    *)
229 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
230 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
231      ;;
232    esac
233    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
234  fi
235  
236 +_LT_CC_BASENAME([$compiler])
237 +
238  # Only perform the check for file, if the check method requires it
239  case $deplibs_check_method in
240  file_magic*)
241 @@ -200,6 +202,8 @@ file_magic*)
242    ;;
243  esac
244  
245 +_LT_REQUIRED_DARWIN_CHECKS
246 +
247  AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
248  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
249  enable_win32_dll=yes, enable_win32_dll=no)
250 @@ -231,11 +235,129 @@ AC_DEFUN([_LT_AC_SYS_COMPILER],
251  # If no C compiler was specified, use CC.
252  LTCC=${LTCC-"$CC"}
253  
254 +# If no C compiler flags were specified, use CFLAGS.
255 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
256 +
257  # Allow CC to be a program name with arguments.
258  compiler=$CC
259  ])# _LT_AC_SYS_COMPILER
260  
261  
262 +# _LT_CC_BASENAME(CC)
263 +# -------------------
264 +# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
265 +AC_DEFUN([_LT_CC_BASENAME],
266 +[for cc_temp in $1""; do
267 +  case $cc_temp in
268 +    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
269 +    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
270 +    \-*) ;;
271 +    *) break;;
272 +  esac
273 +done
274 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
275 +])
276 +
277 +
278 +# _LT_COMPILER_BOILERPLATE
279 +# ------------------------
280 +# Check for compiler boilerplate output or warnings with
281 +# the simple compiler test code.
282 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
283 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
284 +ac_outfile=conftest.$ac_objext
285 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
286 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
287 +_lt_compiler_boilerplate=`cat conftest.err`
288 +$rm conftest*
289 +])# _LT_COMPILER_BOILERPLATE
290 +
291 +
292 +# _LT_LINKER_BOILERPLATE
293 +# ----------------------
294 +# Check for linker boilerplate output or warnings with
295 +# the simple link test code.
296 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
297 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
298 +ac_outfile=conftest.$ac_objext
299 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
300 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
301 +_lt_linker_boilerplate=`cat conftest.err`
302 +$rm -r conftest*
303 +])# _LT_LINKER_BOILERPLATE
304 +
305 +# _LT_REQUIRED_DARWIN_CHECKS
306 +# --------------------------
307 +# Check for some things on darwin
308 +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
309 +  case $host_os in
310 +    rhapsody* | darwin*)
311 +    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
312 +    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
313 +
314 +    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
315 +      [lt_cv_apple_cc_single_mod=no
316 +      if test -z "${LT_MULTI_MODULE}"; then
317 +   # By default we will add the -single_module flag. You can override
318 +   # by either setting the environment variable LT_MULTI_MODULE
319 +   # non-empty at configure time, or by adding -multi_module to the
320 +   # link flags.
321 +   echo "int foo(void){return 1;}" > conftest.c
322 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
323 +     -dynamiclib ${wl}-single_module conftest.c
324 +   if test -f libconftest.dylib; then
325 +     lt_cv_apple_cc_single_mod=yes
326 +     rm -rf libconftest.dylib*
327 +   fi
328 +   rm conftest.c
329 +      fi])
330 +    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
331 +      [lt_cv_ld_exported_symbols_list],
332 +      [lt_cv_ld_exported_symbols_list=no
333 +      save_LDFLAGS=$LDFLAGS
334 +      echo "_main" > conftest.sym
335 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
336 +      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
337 +   [lt_cv_ld_exported_symbols_list=yes],
338 +   [lt_cv_ld_exported_symbols_list=no])
339 +   LDFLAGS="$save_LDFLAGS"
340 +    ])
341 +    case $host_os in
342 +    rhapsody* | darwin1.[[0123]])
343 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
344 +    darwin1.*)
345 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
346 +    darwin*)
347 +      # if running on 10.5 or later, the deployment target defaults
348 +      # to the OS version, if on x86, and 10.4, the deployment
349 +      # target defaults to 10.4. Don't you love it?
350 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
351 +   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
352 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
353 +   10.[[012]]*)
354 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
355 +   10.*)
356 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
357 +      esac
358 +    ;;
359 +  esac
360 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
361 +      _lt_dar_single_mod='$single_module'
362 +    fi
363 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
364 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
365 +    else
366 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
367 +    fi
368 +    if test "$DSYMUTIL" != ":"; then
369 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
370 +    else
371 +      _lt_dsymutil=
372 +    fi
373 +    ;;
374 +  esac
375 +])
376 +
377  # _LT_AC_SYS_LIBPATH_AIX
378  # ----------------------
379  # Links a minimal program and checks the executable
380 @@ -245,12 +367,20 @@ compiler=$CC
381  # If we don't find anything, use the default library path according
382  # to the aix ld manual.
383  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
384 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
385 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
386 -}'`
387 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
388 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
389 +lt_aix_libpath_sed='
390 +    /Import File Strings/,/^$/ {
391 +       /^0/ {
392 +           s/^0  *\(.*\)$/\1/
393 +           p
394 +       }
395 +    }'
396 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
397  # Check for a 64-bit object if we didn't find anything.
398 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
399 -}'`; fi],[])
400 +if test -z "$aix_libpath"; then
401 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
402 +fi],[])
403  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
404  ])# _LT_AC_SYS_LIBPATH_AIX
405  
406 @@ -308,15 +438,15 @@ fi
407  
408  # The HP-UX ksh and POSIX shell print the target directory to stdout
409  # if CDPATH is set.
410 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
411 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
412  
413  if test -z "$ECHO"; then
414  if test "X${echo_test_string+set}" != Xset; then
415  # find a string as large as possible, as long as the shell can cope with it
416    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
417      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
418 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
419 -       echo_test_string="`eval $cmd`" &&
420 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
421 +       echo_test_string=`eval $cmd` &&
422         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
423      then
424        break
425 @@ -481,13 +611,17 @@ ia64-*-hpux*)
426    rm -rf conftest*
427    ;;
428  
429 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
430 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
431 +s390*-*linux*|sparc*-*linux*)
432    # Find out which ABI we are using.
433    echo 'int i;' > conftest.$ac_ext
434    if AC_TRY_EVAL(ac_compile); then
435 -    case "`/usr/bin/file conftest.o`" in
436 +    case `/usr/bin/file conftest.o` in
437      *32-bit*)
438        case $host in
439 +        x86_64-*kfreebsd*-gnu)
440 +          LD="${LD-ld} -m elf_i386_fbsd"
441 +          ;;
442          x86_64-*linux*)
443            LD="${LD-ld} -m elf_i386"
444            ;;
445 @@ -504,6 +638,9 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
446        ;;
447      *64-bit*)
448        case $host in
449 +        x86_64-*kfreebsd*-gnu)
450 +          LD="${LD-ld} -m elf_x86_64_fbsd"
451 +          ;;
452          x86_64-*linux*)
453            LD="${LD-ld} -m elf_x86_64"
454            ;;
455 @@ -536,6 +673,26 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
456      CFLAGS="$SAVE_CFLAGS"
457    fi
458    ;;
459 +sparc*-*solaris*)
460 +  # Find out which ABI we are using.
461 +  echo 'int i;' > conftest.$ac_ext
462 +  if AC_TRY_EVAL(ac_compile); then
463 +    case `/usr/bin/file conftest.o` in
464 +    *64-bit*)
465 +      case $lt_cv_prog_gnu_ld in
466 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
467 +      *)
468 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
469 +         LD="${LD-ld} -64"
470 +       fi
471 +       ;;
472 +      esac
473 +      ;;
474 +    esac
475 +  fi
476 +  rm -rf conftest*
477 +  ;;
478 +
479  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
480  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
481    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
482 @@ -559,7 +716,7 @@ AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
483  AC_CACHE_CHECK([$1], [$2],
484    [$2=no
485    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
486 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
487 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
488     lt_compiler_flag="$3"
489     # Insert the option either (1) after the last *FLAGS variable, or
490     # (2) before a word containing "conftest.", or (3) at the end.
491 @@ -567,7 +724,7 @@ AC_CACHE_CHECK([$1], [$2],
492     # with a dollar sign (not a hyphen), so the echo should work correctly.
493     # The option is referenced via a variable to avoid confusing sed.
494     lt_compile=`echo "$ac_compile" | $SED \
495 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
496 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
497     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
498     -e 's:$: $lt_compiler_flag:'`
499     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
500 @@ -577,8 +734,10 @@ AC_CACHE_CHECK([$1], [$2],
501     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
502     if (exit $ac_status) && test -s "$ac_outfile"; then
503       # The compiler can only warn and ignore the option if not recognized
504 -     # So say no if there are warnings
505 -     if test ! -s conftest.err; then
506 +     # So say no if there are warnings other than the usual output.
507 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
508 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
509 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
510         $2=yes
511       fi
512     fi
513 @@ -598,22 +757,28 @@ fi
514  # ------------------------------------------------------------
515  # Check whether the given compiler option works
516  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
517 -[AC_CACHE_CHECK([$1], [$2],
518 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
519 +AC_CACHE_CHECK([$1], [$2],
520    [$2=no
521     save_LDFLAGS="$LDFLAGS"
522     LDFLAGS="$LDFLAGS $3"
523 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
524 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
525     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
526 -     # The compiler can only warn and ignore the option if not recognized
527 +     # The linker can only warn and ignore the option if not recognized
528       # So say no if there are warnings
529       if test -s conftest.err; then
530         # Append any errors to the config.log.
531         cat conftest.err 1>&AS_MESSAGE_LOG_FD
532 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
533 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
534 +       if diff conftest.exp conftest.er2 >/dev/null; then
535 +         $2=yes
536 +       fi
537       else
538         $2=yes
539       fi
540     fi
541 -   $rm conftest*
542 +   $rm -r conftest*
543     LDFLAGS="$save_LDFLAGS"
544  ])
545  
546 @@ -667,24 +832,71 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
547      lt_cv_sys_max_cmd_len=8192;
548      ;;
549  
550 - *)
551 -    # If test is not a shell built-in, we'll probably end up computing a
552 -    # maximum length that is only half of the actual maximum length, but
553 -    # we can't tell.
554 -    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
555 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
556 +    # This has been around since 386BSD, at least.  Likely further.
557 +    if test -x /sbin/sysctl; then
558 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
559 +    elif test -x /usr/sbin/sysctl; then
560 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
561 +    else
562 +      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
563 +    fi
564 +    # And add a safety zone
565 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
566 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
567 +    ;;
568 +
569 +  interix*)
570 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
571 +    lt_cv_sys_max_cmd_len=196608
572 +    ;;
573 +
574 +  osf*)
575 +    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
576 +    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
577 +    # nice to cause kernel panics so lets avoid the loop below.
578 +    # First set a reasonable default.
579 +    lt_cv_sys_max_cmd_len=16384
580 +    #
581 +    if test -x /sbin/sysconfig; then
582 +      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
583 +        *1*) lt_cv_sys_max_cmd_len=-1 ;;
584 +      esac
585 +    fi
586 +    ;;
587 +  sco3.2v5*)
588 +    lt_cv_sys_max_cmd_len=102400
589 +    ;;
590 +  sysv5* | sco5v6* | sysv4.2uw2*)
591 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
592 +    if test -n "$kargmax"; then
593 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[       ]]//'`
594 +    else
595 +      lt_cv_sys_max_cmd_len=32768
596 +    fi
597 +    ;;
598 +  *)
599 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
600 +    if test -n "$lt_cv_sys_max_cmd_len"; then
601 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
602 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
603 +    else
604 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
605 +      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
606                = "XX$teststring") >/dev/null 2>&1 &&
607 -           new_result=`expr "X$teststring" : ".*" 2>&1` &&
608 -           lt_cv_sys_max_cmd_len=$new_result &&
609 -           test $i != 17 # 1/2 MB should be enough
610 -    do
611 -      i=`expr $i + 1`
612 -      teststring=$teststring$teststring
613 -    done
614 -    teststring=
615 -    # Add a significant safety factor because C++ compilers can tack on massive
616 -    # amounts of additional arguments before passing them to the linker.
617 -    # It appears as though 1/2 is a usable value.
618 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
619 +             new_result=`expr "X$teststring" : ".*" 2>&1` &&
620 +             lt_cv_sys_max_cmd_len=$new_result &&
621 +             test $i != 17 # 1/2 MB should be enough
622 +      do
623 +        i=`expr $i + 1`
624 +        teststring=$teststring$teststring
625 +      done
626 +      teststring=
627 +      # Add a significant safety factor because C++ compilers can tack on massive
628 +      # amounts of additional arguments before passing them to the linker.
629 +      # It appears as though 1/2 is a usable value.
630 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
631 +    fi
632      ;;
633    esac
634  ])
635 @@ -697,7 +909,7 @@ fi
636  
637  
638  # _LT_AC_CHECK_DLFCN
639 -# --------------------
640 +# ------------------
641  AC_DEFUN([_LT_AC_CHECK_DLFCN],
642  [AC_CHECK_HEADERS(dlfcn.h)dnl
643  ])# _LT_AC_CHECK_DLFCN
644 @@ -705,7 +917,7 @@ AC_DEFUN([_LT_AC_CHECK_DLFCN],
645  
646  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
647  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
648 -# ------------------------------------------------------------------
649 +# ---------------------------------------------------------------------
650  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
651  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
652  if test "$cross_compiling" = yes; then :
653 @@ -771,17 +983,19 @@ int main ()
654        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
655        /* dlclose (self); */
656      }
657 +  else
658 +    puts (dlerror ());
659  
660      exit (status);
661  }]
662  EOF
663    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
664 -    (./conftest; exit; ) 2>/dev/null
665 +    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
666      lt_status=$?
667      case x$lt_status in
668        x$lt_dlno_uscore) $1 ;;
669        x$lt_dlneed_uscore) $2 ;;
670 -      x$lt_unknown|x*) $3 ;;
671 +      x$lt_dlunknown|x*) $3 ;;
672      esac
673    else :
674      # compilation failed
675 @@ -793,7 +1007,7 @@ rm -fr conftest*
676  
677  
678  # AC_LIBTOOL_DLOPEN_SELF
679 -# -------------------
680 +# ----------------------
681  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
682  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
683  if test "x$enable_dlopen" != xyes; then
684 @@ -835,7 +1049,7 @@ else
685      AC_CHECK_FUNC([shl_load],
686           [lt_cv_dlopen="shl_load"],
687        [AC_CHECK_LIB([dld], [shl_load],
688 -           [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
689 +           [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
690         [AC_CHECK_FUNC([dlopen],
691               [lt_cv_dlopen="dlopen"],
692           [AC_CHECK_LIB([dl], [dlopen],
693 @@ -843,7 +1057,7 @@ else
694             [AC_CHECK_LIB([svld], [dlopen],
695                   [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
696               [AC_CHECK_LIB([dld], [dld_link],
697 -                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
698 +                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
699               ])
700             ])
701           ])
702 @@ -864,7 +1078,7 @@ else
703      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
704  
705      save_LDFLAGS="$LDFLAGS"
706 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
707 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
708  
709      save_LIBS="$LIBS"
710      LIBS="$lt_cv_dlopen_libs $LIBS"
711 @@ -877,7 +1091,7 @@ else
712      ])
713  
714      if test "x$lt_cv_dlopen_self" = xyes; then
715 -      LDFLAGS="$LDFLAGS $link_static_flag"
716 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
717        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
718           lt_cv_dlopen_self_static, [dnl
719           _LT_AC_TRY_DLOPEN_SELF(
720 @@ -909,7 +1123,8 @@ fi
721  # ---------------------------------
722  # Check to see if options -c and -o are simultaneously supported by compiler
723  AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
724 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
725 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
726 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
727  AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
728    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
729    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
730 @@ -917,7 +1132,7 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
731     mkdir conftest
732     cd conftest
733     mkdir out
734 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
735 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
736  
737     lt_compiler_flag="-o out/conftest2.$ac_objext"
738     # Insert the option either (1) after the last *FLAGS variable, or
739 @@ -925,7 +1140,7 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
740     # Note that $ac_compile itself does not contain backslashes and begins
741     # with a dollar sign (not a hyphen), so the echo should work correctly.
742     lt_compile=`echo "$ac_compile" | $SED \
743 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
744 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
745     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
746     -e 's:$: $lt_compiler_flag:'`
747     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
748 @@ -937,11 +1152,13 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
749     then
750       # The compiler can only warn and ignore the option if not recognized
751       # So say no if there are warnings
752 -     if test ! -s out/conftest.err; then
753 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
754 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
755 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
756         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
757       fi
758     fi
759 -   chmod u+w .
760 +   chmod u+w . 2>&AS_MESSAGE_LOG_FD
761     $rm conftest*
762     # SGI C++ compiler will create directory out/ii_files/ for
763     # template instantiation
764 @@ -1005,8 +1222,8 @@ AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
765  [AC_MSG_CHECKING([how to hardcode library paths into programs])
766  _LT_AC_TAGVAR(hardcode_action, $1)=
767  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
768 -   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
769 -   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
770 +   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
771 +   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
772  
773    # We can hardcode non-existant directories.
774    if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
775 @@ -1055,6 +1272,7 @@ else
776     darwin*)
777         if test -n "$STRIP" ; then
778           striplib="$STRIP -x"
779 +         old_striplib="$STRIP -S"
780           AC_MSG_RESULT([yes])
781         else
782    AC_MSG_RESULT([no])
783 @@ -1072,7 +1290,8 @@ fi
784  # -----------------------------
785  # PORTME Fill in your ld.so characteristics
786  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
787 -[AC_MSG_CHECKING([dynamic linker characteristics])
788 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
789 +AC_MSG_CHECKING([dynamic linker characteristics])
790  library_names_spec=
791  libname_spec='lib$name'
792  soname_spec=
793 @@ -1086,20 +1305,58 @@ shlibpath_overrides_runpath=unknown
794  version_type=none
795  dynamic_linker="$host_os ld.so"
796  sys_lib_dlsearch_path_spec="/lib /usr/lib"
797 +m4_if($1,[],[
798  if test "$GCC" = yes; then
799 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
800 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
801 +  case $host_os in
802 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
803 +    *) lt_awk_arg="/^libraries:/" ;;
804 +  esac
805 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
806 +  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
807      # if the path contains ";" then we assume it to be the separator
808      # otherwise default to the standard path separator (i.e. ":") - it is
809      # assumed that no part of a normal pathname contains ";" but that should
810      # okay in the real world where ";" in dirpaths is itself problematic.
811 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
812 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
813    else
814 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
815 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
816    fi
817 +  # Ok, now we have the path, separated by spaces, we can step through it
818 +  # and add multilib dir if necessary.
819 +  lt_tmp_lt_search_path_spec=
820 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
821 +  for lt_sys_path in $lt_search_path_spec; do
822 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
823 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
824 +    else
825 +      test -d "$lt_sys_path" && \
826 +       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
827 +    fi
828 +  done
829 +  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
830 +BEGIN {RS=" "; FS="/|\n";} {
831 +  lt_foo="";
832 +  lt_count=0;
833 +  for (lt_i = NF; lt_i > 0; lt_i--) {
834 +    if ($lt_i != "" && $lt_i != ".") {
835 +      if ($lt_i == "..") {
836 +        lt_count++;
837 +      } else {
838 +        if (lt_count == 0) {
839 +          lt_foo="/" $lt_i lt_foo;
840 +        } else {
841 +          lt_count--;
842 +        }
843 +      }
844 +    }
845 +  }
846 +  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
847 +  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
848 +}'`
849 +  sys_lib_search_path_spec=`echo $lt_search_path_spec`
850  else
851    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
852 -fi
853 +fi])
854  need_lib_prefix=unknown
855  hardcode_into_libs=no
856  
857 @@ -1117,7 +1374,7 @@ aix3*)
858    soname_spec='${libname}${release}${shared_ext}$major'
859    ;;
860  
861 -aix4* | aix5*)
862 +aix[[4-9]]*)
863    version_type=linux
864    need_lib_prefix=no
865    need_version=no
866 @@ -1173,7 +1430,7 @@ beos*)
867    shlibpath_var=LIBRARY_PATH
868    ;;
869  
870 -bsdi4*)
871 +bsdi[[45]]*)
872    version_type=linux
873    need_version=no
874    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
875 @@ -1201,7 +1458,8 @@ cygwin* | mingw* | pw32*)
876        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
877        dldir=$destdir/`dirname \$dlpath`~
878        test -d \$dldir || mkdir -p \$dldir~
879 -      $install_prog $dir/$dlname \$dldir/$dlname'
880 +      $install_prog $dir/$dlname \$dldir/$dlname~
881 +      chmod a+x \$dldir/$dlname'
882      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
883        dlpath=$dir/\$dldll~
884         $rm \$dlpath'
885 @@ -1231,7 +1489,7 @@ cygwin* | mingw* | pw32*)
886        ;;
887      pw32*)
888        # pw32 DLLs use 'pw' prefix rather than 'lib'
889 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
890 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
891        ;;
892      esac
893      ;;
894 @@ -1254,13 +1512,9 @@ darwin* | rhapsody*)
895    soname_spec='${libname}${release}${major}$shared_ext'
896    shlibpath_overrides_runpath=yes
897    shlibpath_var=DYLD_LIBRARY_PATH
898 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
899 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
900 -  if test "$GCC" = yes; then
901 -    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
902 -  else
903 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
904 -  fi
905 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
906 +  m4_if([$1], [],[
907 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
908    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
909    ;;
910  
911 @@ -1277,20 +1531,17 @@ freebsd1*)
912    dynamic_linker=no
913    ;;
914  
915 -kfreebsd*-gnu)
916 -  version_type=linux
917 -  need_lib_prefix=no
918 -  need_version=no
919 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
920 -  soname_spec='${libname}${release}${shared_ext}$major'
921 -  shlibpath_var=LD_LIBRARY_PATH
922 -  shlibpath_overrides_runpath=no
923 -  hardcode_into_libs=yes
924 -  dynamic_linker='GNU ld.so'
925 -  ;;
926 -
927 -freebsd*)
928 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
929 +freebsd* | dragonfly*)
930 +  # DragonFly does not have aout.  When/if they implement a new
931 +  # versioning mechanism, adjust this.
932 +  if test -x /usr/bin/objformat; then
933 +    objformat=`/usr/bin/objformat`
934 +  else
935 +    case $host_os in
936 +    freebsd[[123]]*) objformat=aout ;;
937 +    *) objformat=elf ;;
938 +    esac
939 +  fi
940    version_type=freebsd-$objformat
941    case $version_type in
942      freebsd-elf*)
943 @@ -1308,14 +1559,19 @@ freebsd*)
944    freebsd2*)
945      shlibpath_overrides_runpath=yes
946      ;;
947 -  freebsd3.[01]* | freebsdelf3.[01]*)
948 +  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
949      shlibpath_overrides_runpath=yes
950      hardcode_into_libs=yes
951      ;;
952 -  *) # from 3.2 on
953 +  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
954 +  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
955      shlibpath_overrides_runpath=no
956      hardcode_into_libs=yes
957      ;;
958 +  *) # from 4.6 on, and DragonFly
959 +    shlibpath_overrides_runpath=yes
960 +    hardcode_into_libs=yes
961 +    ;;
962    esac
963    ;;
964  
965 @@ -1335,7 +1591,7 @@ hpux9* | hpux10* | hpux11*)
966    version_type=sunos
967    need_lib_prefix=no
968    need_version=no
969 -  case "$host_cpu" in
970 +  case $host_cpu in
971    ia64*)
972      shrext_cmds='.so'
973      hardcode_into_libs=yes
974 @@ -1375,6 +1631,18 @@ hpux9* | hpux10* | hpux11*)
975    postinstall_cmds='chmod 555 $lib'
976    ;;
977  
978 +interix[[3-9]]*)
979 +  version_type=linux
980 +  need_lib_prefix=no
981 +  need_version=no
982 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
983 +  soname_spec='${libname}${release}${shared_ext}$major'
984 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
985 +  shlibpath_var=LD_LIBRARY_PATH
986 +  shlibpath_overrides_runpath=no
987 +  hardcode_into_libs=yes
988 +  ;;
989 +
990  irix5* | irix6* | nonstopux*)
991    case $host_os in
992      nonstopux*) version_type=nonstopux ;;
993 @@ -1418,7 +1686,7 @@ linux*oldld* | linux*aout* | linux*coff*)
994    ;;
995  
996  # This must be Linux ELF.
997 -linux*)
998 +linux* | k*bsd*-gnu)
999    version_type=linux
1000    need_lib_prefix=no
1001    need_version=no
1002 @@ -1432,27 +1700,10 @@ linux*)
1003    # before this can be enabled.
1004    hardcode_into_libs=yes
1005  
1006 -  # find out which ABI we are using
1007 -  libsuff=
1008 -  case "$host_cpu" in
1009 -  x86_64*|s390x*|powerpc64*)
1010 -    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1011 -    if AC_TRY_EVAL(ac_compile); then
1012 -      case `/usr/bin/file conftest.$ac_objext` in
1013 -      *64-bit*)
1014 -        libsuff=64
1015 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1016 -        ;;
1017 -      esac
1018 -    fi
1019 -    rm -rf conftest*
1020 -    ;;
1021 -  esac
1022 -
1023    # Append ld.so.conf contents to the search path
1024    if test -f /etc/ld.so.conf; then
1025 -    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
1026 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1027 +    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[         ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1028 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1029    fi
1030  
1031    # We used to test for /lib/ld.so.1 and disable shared libraries on
1032 @@ -1464,7 +1715,7 @@ linux*)
1033    dynamic_linker='GNU/Linux ld.so'
1034    ;;
1035  
1036 -knetbsd*-gnu)
1037 +netbsdelf*-gnu)
1038    version_type=linux
1039    need_lib_prefix=no
1040    need_version=no
1041 @@ -1473,7 +1724,7 @@ knetbsd*-gnu)
1042    shlibpath_var=LD_LIBRARY_PATH
1043    shlibpath_overrides_runpath=no
1044    hardcode_into_libs=yes
1045 -  dynamic_linker='GNU ld.so'
1046 +  dynamic_linker='NetBSD ld.elf_so'
1047    ;;
1048  
1049  netbsd*)
1050 @@ -1513,8 +1764,13 @@ nto-qnx*)
1051  
1052  openbsd*)
1053    version_type=sunos
1054 +  sys_lib_dlsearch_path_spec="/usr/lib"
1055    need_lib_prefix=no
1056 -  need_version=yes
1057 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1058 +  case $host_os in
1059 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1060 +    *)                         need_version=no  ;;
1061 +  esac
1062    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1063    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1064    shlibpath_var=LD_LIBRARY_PATH
1065 @@ -1552,11 +1808,8 @@ osf3* | osf4* | osf5*)
1066    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1067    ;;
1068  
1069 -sco3.2v5*)
1070 -  version_type=osf
1071 -  soname_spec='${libname}${release}${shared_ext}$major'
1072 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1073 -  shlibpath_var=LD_LIBRARY_PATH
1074 +rdos*)
1075 +  dynamic_linker=no
1076    ;;
1077  
1078  solaris*)
1079 @@ -1584,7 +1837,7 @@ sunos4*)
1080    need_version=yes
1081    ;;
1082  
1083 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1084 +sysv4 | sysv4.3*)
1085    version_type=linux
1086    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1087    soname_spec='${libname}${release}${shared_ext}$major'
1088 @@ -1617,6 +1870,29 @@ sysv4*MP*)
1089    fi
1090    ;;
1091  
1092 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1093 +  version_type=freebsd-elf
1094 +  need_lib_prefix=no
1095 +  need_version=no
1096 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1097 +  soname_spec='${libname}${release}${shared_ext}$major'
1098 +  shlibpath_var=LD_LIBRARY_PATH
1099 +  hardcode_into_libs=yes
1100 +  if test "$with_gnu_ld" = yes; then
1101 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1102 +    shlibpath_overrides_runpath=no
1103 +  else
1104 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1105 +    shlibpath_overrides_runpath=yes
1106 +    case $host_os in
1107 +      sco3.2v5*)
1108 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1109 +       ;;
1110 +    esac
1111 +  fi
1112 +  sys_lib_dlsearch_path_spec='/usr/lib'
1113 +  ;;
1114 +
1115  uts4*)
1116    version_type=linux
1117    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1118 @@ -1630,13 +1906,26 @@ uts4*)
1119  esac
1120  AC_MSG_RESULT([$dynamic_linker])
1121  test "$dynamic_linker" = no && can_build_shared=no
1122 +
1123 +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1124 +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1125 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1126 +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1127 +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1128 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1129 +
1130 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1131 +if test "$GCC" = yes; then
1132 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1133 +fi
1134  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1135  
1136  
1137  # _LT_AC_TAGCONFIG
1138  # ----------------
1139  AC_DEFUN([_LT_AC_TAGCONFIG],
1140 -[AC_ARG_WITH([tags],
1141 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
1142 +AC_ARG_WITH([tags],
1143      [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1144          [include additional configurations @<:@automatic@:>@])],
1145      [tagnames="$withval"])
1146 @@ -1654,6 +1943,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then
1147        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1148      fi
1149    fi
1150 +  if test -z "$LTCFLAGS"; then
1151 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1152 +  fi
1153  
1154    # Extract list of available tagged configurations in $ofile.
1155    # Note that this assumes the entire list is on one line.
1156 @@ -1680,7 +1972,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then
1157  
1158        case $tagname in
1159        CXX)
1160 -       if test -n "$CXX" && test "X$CXX" != "Xno"; then
1161 +       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1162 +           ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1163 +           (test "X$CXX" != "Xg++"))) ; then
1164           AC_LIBTOOL_LANG_CXX_CONFIG
1165         else
1166           tagname=""
1167 @@ -1742,7 +2036,7 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN],
1168  
1169  # AC_LIBTOOL_WIN32_DLL
1170  # --------------------
1171 -# declare package support for building win32 dll's
1172 +# declare package support for building win32 DLLs
1173  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1174  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1175  ])# AC_LIBTOOL_WIN32_DLL
1176 @@ -1780,7 +2074,7 @@ AC_ARG_ENABLE([shared],
1177  
1178  # AC_DISABLE_SHARED
1179  # -----------------
1180 -#- set the default shared flag to --disable-shared
1181 +# set the default shared flag to --disable-shared
1182  AC_DEFUN([AC_DISABLE_SHARED],
1183  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1184  AC_ENABLE_SHARED(no)
1185 @@ -1892,7 +2186,7 @@ m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
1186  
1187  # AC_PATH_TOOL_PREFIX
1188  # -------------------
1189 -# find a file program which can recognise shared library
1190 +# find a file program which can recognize shared library
1191  AC_DEFUN([AC_PATH_TOOL_PREFIX],
1192  [AC_REQUIRE([AC_PROG_EGREP])dnl
1193  AC_MSG_CHECKING([for $1])
1194 @@ -1916,7 +2210,7 @@ dnl not every word.  This closes a longstanding sh security hole.
1195        if test -n "$file_magic_test_file"; then
1196         case $deplibs_check_method in
1197         "file_magic "*)
1198 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1199 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1200           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1201           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1202             $EGREP "$file_magic_regex" > /dev/null; then
1203 @@ -1955,7 +2249,7 @@ fi
1204  
1205  # AC_PATH_MAGIC
1206  # -------------
1207 -# find a file program which can recognise a shared library
1208 +# find a file program which can recognize a shared library
1209  AC_DEFUN([AC_PATH_MAGIC],
1210  [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
1211  if test -z "$lt_cv_path_MAGIC_CMD"; then
1212 @@ -2026,7 +2320,7 @@ AC_CACHE_VAL(lt_cv_path_LD,
1213      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1214        lt_cv_path_LD="$ac_dir/$ac_prog"
1215        # Check to see if the program is GNU ld.  I'd rather use --version,
1216 -      # but apparently some GNU ld's only accept -v.
1217 +      # but apparently some variants of GNU ld only accept -v.
1218        # Break only if it was the GNU/non-GNU ld that we prefer.
1219        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1220        *GNU* | *'with BFD'*)
1221 @@ -2058,7 +2352,7 @@ AC_PROG_LD_GNU
1222  AC_DEFUN([AC_PROG_LD_GNU],
1223  [AC_REQUIRE([AC_PROG_EGREP])dnl
1224  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
1225 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1226 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
1227  case `$LD -v 2>&1 </dev/null` in
1228  *GNU* | *'with BFD'*)
1229    lt_cv_prog_gnu_ld=yes
1230 @@ -2085,6 +2379,15 @@ case $reload_flag in
1231  *) reload_flag=" $reload_flag" ;;
1232  esac
1233  reload_cmds='$LD$reload_flag -o $output$reload_objs'
1234 +case $host_os in
1235 +  darwin*)
1236 +    if test "$GCC" = yes; then
1237 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
1238 +    else
1239 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
1240 +    fi
1241 +    ;;
1242 +esac
1243  ])# AC_PROG_LD_RELOAD_FLAG
1244  
1245  
1246 @@ -2093,7 +2396,7 @@ reload_cmds='$LD$reload_flag -o $output$reload_objs'
1247  # how to check for library dependencies
1248  #  -- PORTME fill in with the dynamic library characteristics
1249  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
1250 -[AC_CACHE_CHECK([how to recognise dependent libraries],
1251 +[AC_CACHE_CHECK([how to recognize dependent libraries],
1252  lt_cv_deplibs_check_method,
1253  [lt_cv_file_magic_cmd='$MAGIC_CMD'
1254  lt_cv_file_magic_test_file=
1255 @@ -2110,7 +2413,7 @@ lt_cv_deplibs_check_method='unknown'
1256  # whether `pass_all' will *always* work, you probably want this one.
1257  
1258  case $host_os in
1259 -aix4* | aix5*)
1260 +aix[[4-9]]*)
1261    lt_cv_deplibs_check_method=pass_all
1262    ;;
1263  
1264 @@ -2118,7 +2421,7 @@ beos*)
1265    lt_cv_deplibs_check_method=pass_all
1266    ;;
1267  
1268 -bsdi4*)
1269 +bsdi[[45]]*)
1270    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
1271    lt_cv_file_magic_cmd='/usr/bin/file -L'
1272    lt_cv_file_magic_test_file=/shlib/libc.so
1273 @@ -2132,22 +2435,28 @@ cygwin*)
1274  
1275  mingw* | pw32*)
1276    # Base MSYS/MinGW do not provide the 'file' command needed by
1277 -  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
1278 -  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1279 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
1280 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
1281 +  # unless we find 'file', for example because we are cross-compiling.
1282 +  if ( file / ) >/dev/null 2>&1; then
1283 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1284 +    lt_cv_file_magic_cmd='func_win32_libid'
1285 +  else
1286 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1287 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
1288 +  fi
1289    ;;
1290  
1291  darwin* | rhapsody*)
1292    lt_cv_deplibs_check_method=pass_all
1293    ;;
1294  
1295 -freebsd* | kfreebsd*-gnu)
1296 +freebsd* | dragonfly*)
1297    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1298      case $host_cpu in
1299      i*86 )
1300        # Not sure whether the presence of OpenBSD here was a mistake.
1301        # Let's accept both of them until this is cleared up.
1302 -      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
1303 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
1304        lt_cv_file_magic_cmd=/usr/bin/file
1305        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1306        ;;
1307 @@ -2163,7 +2472,7 @@ gnu*)
1308  
1309  hpux10.20* | hpux11*)
1310    lt_cv_file_magic_cmd=/usr/bin/file
1311 -  case "$host_cpu" in
1312 +  case $host_cpu in
1313    ia64*)
1314      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
1315      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1316 @@ -2179,6 +2488,11 @@ hpux10.20* | hpux11*)
1317    esac
1318    ;;
1319  
1320 +interix[[3-9]]*)
1321 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
1322 +  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
1323 +  ;;
1324 +
1325  irix5* | irix6* | nonstopux*)
1326    case $LD in
1327    *-32|*"-32 ") libmagic=32-bit;;
1328 @@ -2190,20 +2504,11 @@ irix5* | irix6* | nonstopux*)
1329    ;;
1330  
1331  # This must be Linux ELF.
1332 -linux*)
1333 -  case $host_cpu in
1334 -  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
1335 -    lt_cv_deplibs_check_method=pass_all ;;
1336 -  *)
1337 -    # glibc up to 2.1.1 does not perform some relocations on ARM
1338 -    # this will be overridden with pass_all, but let us keep it just in case
1339 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
1340 -  esac
1341 -  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1342 +linux* | k*bsd*-gnu)
1343    lt_cv_deplibs_check_method=pass_all
1344    ;;
1345  
1346 -netbsd*)
1347 +netbsd* | netbsdelf*-gnu)
1348    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1349      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1350    else
1351 @@ -2222,12 +2527,10 @@ nto-qnx*)
1352    ;;
1353  
1354  openbsd*)
1355 -  lt_cv_file_magic_cmd=/usr/bin/file
1356 -  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1357    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1358 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
1359 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
1360    else
1361 -    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1362 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1363    fi
1364    ;;
1365  
1366 @@ -2235,7 +2538,7 @@ osf3* | osf4* | osf5*)
1367    lt_cv_deplibs_check_method=pass_all
1368    ;;
1369  
1370 -sco3.2v5*)
1371 +rdos*)
1372    lt_cv_deplibs_check_method=pass_all
1373    ;;
1374  
1375 @@ -2243,7 +2546,7 @@ solaris*)
1376    lt_cv_deplibs_check_method=pass_all
1377    ;;
1378  
1379 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1380 +sysv4 | sysv4.3*)
1381    case $host_vendor in
1382    motorola)
1383      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]]'
1384 @@ -2264,10 +2567,13 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1385    siemens)
1386      lt_cv_deplibs_check_method=pass_all
1387      ;;
1388 +  pc)
1389 +    lt_cv_deplibs_check_method=pass_all
1390 +    ;;
1391    esac
1392    ;;
1393  
1394 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
1395 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1396    lt_cv_deplibs_check_method=pass_all
1397    ;;
1398  esac
1399 @@ -2287,36 +2593,43 @@ AC_DEFUN([AC_PROG_NM],
1400    # Let the user override the test.
1401    lt_cv_path_NM="$NM"
1402  else
1403 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1404 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1405 -    IFS="$lt_save_ifs"
1406 -    test -z "$ac_dir" && ac_dir=.
1407 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
1408 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1409 -      # Check to see if the nm accepts a BSD-compat flag.
1410 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1411 -      #   nm: unknown option "B" ignored
1412 -      # Tru64's nm complains that /dev/null is an invalid object file
1413 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1414 -      */dev/null* | *'Invalid file or object type'*)
1415 -       lt_cv_path_NM="$tmp_nm -B"
1416 -       break
1417 -        ;;
1418 -      *)
1419 -       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1420 -       */dev/null*)
1421 -         lt_cv_path_NM="$tmp_nm -p"
1422 +  lt_nm_to_check="${ac_tool_prefix}nm"
1423 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
1424 +    lt_nm_to_check="$lt_nm_to_check nm"
1425 +  fi
1426 +  for lt_tmp_nm in $lt_nm_to_check; do
1427 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1428 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1429 +      IFS="$lt_save_ifs"
1430 +      test -z "$ac_dir" && ac_dir=.
1431 +      tmp_nm="$ac_dir/$lt_tmp_nm"
1432 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1433 +       # Check to see if the nm accepts a BSD-compat flag.
1434 +       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1435 +       #   nm: unknown option "B" ignored
1436 +       # Tru64's nm complains that /dev/null is an invalid object file
1437 +       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1438 +       */dev/null* | *'Invalid file or object type'*)
1439 +         lt_cv_path_NM="$tmp_nm -B"
1440           break
1441           ;;
1442         *)
1443 -         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1444 -         continue # so that we can try to find one that supports BSD flags
1445 +         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1446 +         */dev/null*)
1447 +           lt_cv_path_NM="$tmp_nm -p"
1448 +           break
1449 +           ;;
1450 +         *)
1451 +           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1452 +           continue # so that we can try to find one that supports BSD flags
1453 +           ;;
1454 +         esac
1455           ;;
1456         esac
1457 -      esac
1458 -    fi
1459 +      fi
1460 +    done
1461 +    IFS="$lt_save_ifs"
1462    done
1463 -  IFS="$lt_save_ifs"
1464    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1465  fi])
1466  NM="$lt_cv_path_NM"
1467 @@ -2348,13 +2661,13 @@ esac
1468  # -----------------------------------
1469  # sets LIBLTDL to the link flags for the libltdl convenience library and
1470  # LTDLINCL to the include flags for the libltdl header and adds
1471 -# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
1472 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
1473 -# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
1474 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
1475 -# '${top_srcdir}/' (note the single quotes!).  If your package is not
1476 -# flat and you're not using automake, define top_builddir and
1477 -# top_srcdir appropriately in the Makefiles.
1478 +# --enable-ltdl-convenience to the configure arguments.  Note that
1479 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1480 +# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
1481 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
1482 +# (note the single quotes!).  If your package is not flat and you're not
1483 +# using automake, define top_builddir and top_srcdir appropriately in
1484 +# the Makefiles.
1485  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1486  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1487    case $enable_ltdl_convenience in
1488 @@ -2373,13 +2686,13 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1489  # -----------------------------------
1490  # sets LIBLTDL to the link flags for the libltdl installable library and
1491  # LTDLINCL to the include flags for the libltdl header and adds
1492 -# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
1493 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
1494 -# DIRECTORY is not provided and an installed libltdl is not found, it is
1495 -# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
1496 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
1497 -# quotes!).  If your package is not flat and you're not using automake,
1498 -# define top_builddir and top_srcdir appropriately in the Makefiles.
1499 +# --enable-ltdl-install to the configure arguments.  Note that
1500 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1501 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
1502 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
1503 +# '${top_srcdir}/' (note the single quotes!).  If your package is not
1504 +# flat and you're not using automake, define top_builddir and top_srcdir
1505 +# appropriately in the Makefiles.
1506  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1507  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
1508  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1509 @@ -2417,10 +2730,21 @@ AC_DEFUN([AC_LIBTOOL_CXX],
1510  # ---------------
1511  AC_DEFUN([_LT_AC_LANG_CXX],
1512  [AC_REQUIRE([AC_PROG_CXX])
1513 -AC_REQUIRE([AC_PROG_CXXCPP])
1514 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1515  _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
1516  ])# _LT_AC_LANG_CXX
1517  
1518 +# _LT_AC_PROG_CXXCPP
1519 +# ------------------
1520 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
1521 +[
1522 +AC_REQUIRE([AC_PROG_CXX])
1523 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1524 +    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1525 +    (test "X$CXX" != "Xg++"))) ; then
1526 +  AC_PROG_CXXCPP
1527 +fi
1528 +])# _LT_AC_PROG_CXXCPP
1529  
1530  # AC_LIBTOOL_F77
1531  # --------------
1532 @@ -2460,7 +2784,7 @@ _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
1533  
1534  
1535  # AC_LIBTOOL_RC
1536 -# --------------
1537 +# -------------
1538  # enable support for Windows resource files
1539  AC_DEFUN([AC_LIBTOOL_RC],
1540  [AC_REQUIRE([LT_AC_PROG_RC])
1541 @@ -2486,43 +2810,16 @@ objext=o
1542  _LT_AC_TAGVAR(objext, $1)=$objext
1543  
1544  # Code to be used in simple compile tests
1545 -lt_simple_compile_test_code="int some_variable = 0;\n"
1546 +lt_simple_compile_test_code="int some_variable = 0;"
1547  
1548  # Code to be used in simple link tests
1549 -lt_simple_link_test_code='int main(){return(0);}\n'
1550 +lt_simple_link_test_code='int main(){return(0);}'
1551  
1552  _LT_AC_SYS_COMPILER
1553  
1554 -#
1555 -# Check for any special shared library compilation flags.
1556 -#
1557 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
1558 -if test "$GCC" = no; then
1559 -  case $host_os in
1560 -  sco3.2v5*)
1561 -    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
1562 -    ;;
1563 -  esac
1564 -fi
1565 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
1566 -  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
1567 -  if echo "$old_CC $old_CFLAGS " | grep "[[    ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
1568 -  else
1569 -    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
1570 -    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
1571 -  fi
1572 -fi
1573 -
1574 -
1575 -#
1576 -# Check to make sure the static flag actually works.
1577 -#
1578 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
1579 -  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1580 -  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
1581 -  [],
1582 -  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1583 -
1584 +# save warnings/boilerplate of simple test code
1585 +_LT_COMPILER_BOILERPLATE
1586 +_LT_LINKER_BOILERPLATE
1587  
1588  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
1589  AC_LIBTOOL_PROG_COMPILER_PIC($1)
1590 @@ -2532,9 +2829,9 @@ AC_LIBTOOL_PROG_LD_SHLIBS($1)
1591  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1592  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1593  AC_LIBTOOL_SYS_LIB_STRIP
1594 -AC_LIBTOOL_DLOPEN_SELF($1)
1595 +AC_LIBTOOL_DLOPEN_SELF
1596  
1597 -# Report which librarie types wil actually be built
1598 +# Report which library types will actually be built
1599  AC_MSG_CHECKING([if libtool supports shared libraries])
1600  AC_MSG_RESULT([$can_build_shared])
1601  
1602 @@ -2543,7 +2840,7 @@ test "$can_build_shared" = "no" && enable_shared=no
1603  
1604  # On AIX, shared libraries and static libraries use the same namespace, and
1605  # are all built from PIC.
1606 -case "$host_os" in
1607 +case $host_os in
1608  aix3*)
1609    test "$enable_shared" = yes && enable_static=no
1610    if test -n "$RANLIB"; then
1611 @@ -2552,47 +2849,10 @@ aix3*)
1612    fi
1613    ;;
1614  
1615 -aix4* | aix5*)
1616 +aix[[4-9]]*)
1617    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1618      test "$enable_shared" = yes && enable_static=no
1619    fi
1620 -  ;;
1621 -  darwin* | rhapsody*)
1622 -  if test "$GCC" = yes; then
1623 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1624 -    case "$host_os" in
1625 -    rhapsody* | darwin1.[[012]])
1626 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
1627 -      ;;
1628 -    *) # Darwin 1.3 on
1629 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1630 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1631 -      else
1632 -        case ${MACOSX_DEPLOYMENT_TARGET} in
1633 -          10.[[012]])
1634 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1635 -            ;;
1636 -          10.*)
1637 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
1638 -            ;;
1639 -        esac
1640 -      fi
1641 -      ;;
1642 -    esac
1643 -    output_verbose_link_cmd='echo'
1644 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
1645 -    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1646 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1647 -    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1648 -    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1649 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
1650 -    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1651 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1652 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1653 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1654 -  else
1655 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
1656 -  fi
1657      ;;
1658  esac
1659  AC_MSG_RESULT([$enable_shared])
1660 @@ -2618,7 +2878,7 @@ AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
1661  AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
1662  [AC_LANG_PUSH(C++)
1663  AC_REQUIRE([AC_PROG_CXX])
1664 -AC_REQUIRE([AC_PROG_CXXCPP])
1665 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1666  
1667  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1668  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
1669 @@ -2630,6 +2890,7 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
1670  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
1671  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1672  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
1673 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1674  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
1675  _LT_AC_TAGVAR(module_cmds, $1)=
1676  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
1677 @@ -2645,23 +2906,28 @@ _LT_AC_TAGVAR(postdep_objects, $1)=
1678  _LT_AC_TAGVAR(predeps, $1)=
1679  _LT_AC_TAGVAR(postdeps, $1)=
1680  _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
1681 +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
1682  
1683  # Source file extension for C++ test sources.
1684 -ac_ext=cc
1685 +ac_ext=cpp
1686  
1687  # Object file extension for compiled C++ test sources.
1688  objext=o
1689  _LT_AC_TAGVAR(objext, $1)=$objext
1690  
1691  # Code to be used in simple compile tests
1692 -lt_simple_compile_test_code="int some_variable = 0;\n"
1693 +lt_simple_compile_test_code="int some_variable = 0;"
1694  
1695  # Code to be used in simple link tests
1696 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
1697 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
1698  
1699  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
1700  _LT_AC_SYS_COMPILER
1701  
1702 +# save warnings/boilerplate of simple test code
1703 +_LT_COMPILER_BOILERPLATE
1704 +_LT_LINKER_BOILERPLATE
1705 +
1706  # Allow CC to be a program name with arguments.
1707  lt_save_CC=$CC
1708  lt_save_LD=$LD
1709 @@ -2672,18 +2938,18 @@ lt_save_path_LD=$lt_cv_path_LD
1710  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
1711    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
1712  else
1713 -  unset lt_cv_prog_gnu_ld
1714 +  $as_unset lt_cv_prog_gnu_ld
1715  fi
1716  if test -n "${lt_cv_path_LDCXX+set}"; then
1717    lt_cv_path_LD=$lt_cv_path_LDCXX
1718  else
1719 -  unset lt_cv_path_LD
1720 +  $as_unset lt_cv_path_LD
1721  fi
1722  test -z "${LDCXX+set}" || LD=$LDCXX
1723  CC=${CXX-"c++"}
1724  compiler=$CC
1725  _LT_AC_TAGVAR(compiler, $1)=$CC
1726 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
1727 +_LT_CC_BASENAME([$compiler])
1728  
1729  # We don't want -fno-exception wen compiling C++ code, so set the
1730  # no_builtin_flag separately
1731 @@ -2750,7 +3016,7 @@ case $host_os in
1732      # FIXME: insert proper C++ library support
1733      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1734      ;;
1735 -  aix4* | aix5*)
1736 +  aix[[4-9]]*)
1737      if test "$host_cpu" = ia64; then
1738        # On IA64, the linker does run time linking by default, so we don't
1739        # have to do anything special.
1740 @@ -2763,7 +3029,7 @@ case $host_os in
1741        # Test if we are trying to use run time linking or normal
1742        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1743        # need to do runtime linking.
1744 -      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1745 +      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
1746         for ld_flag in $LDFLAGS; do
1747           case $ld_flag in
1748           *-brtl*)
1749 @@ -2772,6 +3038,7 @@ case $host_os in
1750             ;;
1751           esac
1752         done
1753 +       ;;
1754        esac
1755  
1756        exp_sym_flag='-bexport'
1757 @@ -2790,7 +3057,7 @@ case $host_os in
1758      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1759  
1760      if test "$GXX" = yes; then
1761 -      case $host_os in aix4.[012]|aix4.[012].*)
1762 +      case $host_os in aix4.[[012]]|aix4.[[012]].*)
1763        # We only want to do this on AIX 4.2 and lower, the check
1764        # below for broken collect2 doesn't work under 4.3+
1765         collect2name=`${CC} -print-prog-name=collect2`
1766 @@ -2798,7 +3065,7 @@ case $host_os in
1767            strings "$collect2name" | grep resolve_lib_name >/dev/null
1768         then
1769           # We have reworked collect2
1770 -         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1771 +         :
1772         else
1773           # We have old collect2
1774           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
1775 @@ -2809,8 +3076,12 @@ case $host_os in
1776           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1777           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1778         fi
1779 +       ;;
1780        esac
1781        shared_flag='-shared'
1782 +      if test "$aix_use_runtimelinking" = yes; then
1783 +       shared_flag="$shared_flag "'${wl}-G'
1784 +      fi
1785      else
1786        # not using gcc
1787        if test "$host_cpu" = ia64; then
1788 @@ -2837,12 +3108,12 @@ case $host_os in
1789        _LT_AC_SYS_LIBPATH_AIX
1790        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1791  
1792 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
1793 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1794       else
1795        if test "$host_cpu" = ia64; then
1796         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1797         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1798 -       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
1799 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1800        else
1801         # Determine the default libpath from the value encoded in an empty executable.
1802         _LT_AC_SYS_LIBPATH_AIX
1803 @@ -2851,16 +3122,26 @@ case $host_os in
1804         # -berok will link without error, but may produce a broken library.
1805         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
1806         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1807 -       # -bexpall does not export symbols beginning with underscore (_)
1808 -       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1809         # Exported symbols can be pulled into shared objects from archives
1810 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
1811 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
1812         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1813 -       # This is similar to how AIX traditionally builds it's shared libraries.
1814 -       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1815 +       # This is similar to how AIX traditionally builds its shared libraries.
1816 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1817        fi
1818      fi
1819      ;;
1820 +
1821 +  beos*)
1822 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1823 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1824 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1825 +      # support --undefined.  This deserves some investigation.  FIXME
1826 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1827 +    else
1828 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1829 +    fi
1830 +    ;;
1831 +
1832    chorus*)
1833      case $cc_basename in
1834        *)
1835 @@ -2879,7 +3160,7 @@ case $host_os in
1836      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1837  
1838      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1839 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1840 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1841        # If the export-symbols file already is a .def file (1st line
1842        # is EXPORTS), use it as is; otherwise, prepend...
1843        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1844 @@ -2888,70 +3169,53 @@ case $host_os in
1845         echo EXPORTS > $output_objdir/$soname.def;
1846         cat $export_symbols >> $output_objdir/$soname.def;
1847        fi~
1848 -      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1849 +      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1850      else
1851        _LT_AC_TAGVAR(ld_shlibs, $1)=no
1852      fi
1853    ;;
1854 -
1855 -  darwin* | rhapsody*)
1856 -  if test "$GXX" = yes; then
1857 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1858 -    case "$host_os" in
1859 -    rhapsody* | darwin1.[[012]])
1860 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
1861 -      ;;
1862 -    *) # Darwin 1.3 on
1863 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1864 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1865 +      darwin* | rhapsody*)
1866 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1867 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
1868 +      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1869 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1870 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
1871 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1872 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1873 +      if test "$GXX" = yes ; then
1874 +      output_verbose_link_cmd='echo'
1875 +      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1876 +      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1877 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1878 +      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1879 +      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1880 +        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1881 +        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1882 +      fi
1883        else
1884 -        case ${MACOSX_DEPLOYMENT_TARGET} in
1885 -          10.[[012]])
1886 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
1887 -            ;;
1888 -          10.*)
1889 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
1890 -            ;;
1891 -        esac
1892 +      case $cc_basename in
1893 +        xlc*)
1894 +         output_verbose_link_cmd='echo'
1895 +          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
1896 +          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1897 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1898 +          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1899 +          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1900 +          ;;
1901 +       *)
1902 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1903 +          ;;
1904 +      esac
1905        fi
1906 -      ;;
1907 -    esac
1908 -    lt_int_apple_cc_single_mod=no
1909 -    output_verbose_link_cmd='echo'
1910 -    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
1911 -      lt_int_apple_cc_single_mod=yes
1912 -    fi
1913 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1914 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1915 -    else
1916 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1917 -    fi
1918 -    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1919 -
1920 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1921 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1922 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1923 -    else
1924 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1925 -    fi
1926 -    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1927 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
1928 -    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1929 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1930 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
1931 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1932 -  else
1933 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
1934 -  fi
1935 -    ;;
1936 +        ;;
1937  
1938    dgux*)
1939      case $cc_basename in
1940 -      ec++)
1941 +      ec++*)
1942         # FIXME: insert proper C++ library support
1943         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1944         ;;
1945 -      ghcx)
1946 +      ghcx*)
1947         # Green Hills C++ Compiler
1948         # FIXME: insert proper C++ library support
1949         _LT_AC_TAGVAR(ld_shlibs, $1)=no
1950 @@ -2962,14 +3226,14 @@ case $host_os in
1951         ;;
1952      esac
1953      ;;
1954 -  freebsd[12]*)
1955 +  freebsd[[12]]*)
1956      # C++ shared libraries reported to be fairly broken before switch to ELF
1957      _LT_AC_TAGVAR(ld_shlibs, $1)=no
1958      ;;
1959    freebsd-elf*)
1960      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1961      ;;
1962 -  freebsd* | kfreebsd*-gnu)
1963 +  freebsd* | dragonfly*)
1964      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1965      # conventions
1966      _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1967 @@ -2986,11 +3250,11 @@ case $host_os in
1968                                 # location of the library.
1969  
1970      case $cc_basename in
1971 -    CC)
1972 +    CC*)
1973        # FIXME: insert proper C++ library support
1974        _LT_AC_TAGVAR(ld_shlibs, $1)=no
1975        ;;
1976 -    aCC)
1977 +    aCC*)
1978        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1979        # Commands to make compiler produce verbose output that lists
1980        # what "hidden" libraries, object files and flags are used when
1981 @@ -3000,7 +3264,7 @@ case $host_os in
1982        # explicitly linking system object files so we need to strip them
1983        # from the output so that they don't get included in the library
1984        # dependencies.
1985 -      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1986 +      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1987        ;;
1988      *)
1989        if test "$GXX" = yes; then
1990 @@ -3014,33 +3278,20 @@ case $host_os in
1991      ;;
1992    hpux10*|hpux11*)
1993      if test $with_gnu_ld = no; then
1994 -      case "$host_cpu" in
1995 -      hppa*64*)
1996 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1997 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1998 -       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1999 -        ;;
2000 -      ia64*)
2001 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2002 -        ;;
2003 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2004 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2005 +
2006 +      case $host_cpu in
2007 +      hppa*64*|ia64*) ;;
2008        *)
2009 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2010 -       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2011         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2012          ;;
2013        esac
2014      fi
2015 -    case "$host_cpu" in
2016 -    hppa*64*)
2017 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
2018 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2019 -      ;;
2020 -    ia64*)
2021 +    case $host_cpu in
2022 +    hppa*64*|ia64*)
2023        _LT_AC_TAGVAR(hardcode_direct, $1)=no
2024        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2025 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
2026 -                                             # but as the default
2027 -                                             # location of the library.
2028        ;;
2029      *)
2030        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2031 @@ -3051,14 +3302,17 @@ case $host_os in
2032      esac
2033  
2034      case $cc_basename in
2035 -      CC)
2036 +      CC*)
2037         # FIXME: insert proper C++ library support
2038         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2039         ;;
2040 -      aCC)
2041 -       case "$host_cpu" in
2042 -       hppa*64*|ia64*)
2043 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
2044 +      aCC*)
2045 +       case $host_cpu in
2046 +       hppa*64*)
2047 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2048 +         ;;
2049 +       ia64*)
2050 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2051           ;;
2052         *)
2053           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2054 @@ -3077,9 +3331,12 @@ case $host_os in
2055        *)
2056         if test "$GXX" = yes; then
2057           if test $with_gnu_ld = no; then
2058 -           case "$host_cpu" in
2059 -           ia64*|hppa*64*)
2060 -             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
2061 +           case $host_cpu in
2062 +           hppa*64*)
2063 +             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2064 +             ;;
2065 +           ia64*)
2066 +             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2067               ;;
2068             *)
2069               _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2070 @@ -3093,11 +3350,25 @@ case $host_os in
2071         ;;
2072      esac
2073      ;;
2074 +  interix[[3-9]]*)
2075 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2076 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2077 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2078 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2079 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
2080 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
2081 +    # default) and relocated if they conflict, which is a slow very memory
2082 +    # consuming and fragmenting process.  To avoid this, we pick a random,
2083 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
2084 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
2085 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
2086 +    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
2087 +    ;;
2088    irix5* | irix6*)
2089      case $cc_basename in
2090 -      CC)
2091 +      CC*)
2092         # SGI C++
2093 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
2094 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2095  
2096         # Archives containing C++ object files must be created using
2097         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
2098 @@ -3108,7 +3379,7 @@ case $host_os in
2099        *)
2100         if test "$GXX" = yes; then
2101           if test "$with_gnu_ld" = no; then
2102 -           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
2103 +           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2104           else
2105             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
2106           fi
2107 @@ -3119,9 +3390,9 @@ case $host_os in
2108      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2109      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2110      ;;
2111 -  linux*)
2112 +  linux* | k*bsd*-gnu)
2113      case $cc_basename in
2114 -      KCC)
2115 +      KCC*)
2116         # Kuck and Associates, Inc. (KAI) C++ Compiler
2117  
2118         # KCC will only create a shared library if the output file
2119 @@ -3146,17 +3417,41 @@ case $host_os in
2120         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
2121         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2122         ;;
2123 -      icpc)
2124 +      icpc*)
2125         # Intel C++
2126         with_gnu_ld=yes
2127 +       # version 8.0 and above of icpc choke on multiply defined symbols
2128 +       # if we add $predep_objects and $postdep_objects, however 7.1 and
2129 +       # earlier do not add the objects themselves.
2130 +       case `$CC -V 2>&1` in
2131 +       *"Version 7."*)
2132 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2133 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2134 +         ;;
2135 +       *)  # Version 8.0 or newer
2136 +         tmp_idyn=
2137 +         case $host_cpu in
2138 +           ia64*) tmp_idyn=' -i_dynamic';;
2139 +         esac
2140 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2141 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2142 +         ;;
2143 +       esac
2144         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2145 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2146 -       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2147         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2148         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2149         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
2150         ;;
2151 -      cxx)
2152 +      pgCC* | pgcpp*)
2153 +        # Portland Group C++ compiler
2154 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2155 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
2156 +
2157 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2158 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2159 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
2160 +        ;;
2161 +      cxx*)
2162         # Compaq C++
2163         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2164         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
2165 @@ -3175,6 +3470,29 @@ case $host_os in
2166         # dependencies.
2167         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2168         ;;
2169 +      *)
2170 +       case `$CC -V 2>&1 | sed 5q` in
2171 +       *Sun\ C*)
2172 +         # Sun C++ 5.9
2173 +         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2174 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2175 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
2176 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2177 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
2178 +
2179 +         # Not sure whether something based on
2180 +         # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
2181 +         # would be better.
2182 +         output_verbose_link_cmd='echo'
2183 +
2184 +         # Archives containing C++ object files must be created using
2185 +         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
2186 +         # necessary to make sure instantiated templates are included
2187 +         # in the archive.
2188 +         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
2189 +         ;;
2190 +       esac
2191 +       ;;
2192      esac
2193      ;;
2194    lynxos*)
2195 @@ -3187,7 +3505,7 @@ case $host_os in
2196      ;;
2197    mvs*)
2198      case $cc_basename in
2199 -      cxx)
2200 +      cxx*)
2201         # FIXME: insert proper C++ library support
2202         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2203         ;;
2204 @@ -3197,7 +3515,7 @@ case $host_os in
2205         ;;
2206      esac
2207      ;;
2208 -  netbsd*)
2209 +  netbsd* | netbsdelf*-gnu)
2210      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2211        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
2212        wlarc=
2213 @@ -3208,9 +3526,29 @@ case $host_os in
2214      # Workaround some broken pre-1.5 toolchains
2215      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
2216      ;;
2217 +  openbsd2*)
2218 +    # C++ shared libraries are fairly broken
2219 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2220 +    ;;
2221 +  openbsd*)
2222 +    if test -f /usr/libexec/ld.so; then
2223 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2224 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2225 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2226 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2227 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2228 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
2229 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2230 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2231 +      fi
2232 +      output_verbose_link_cmd='echo'
2233 +    else
2234 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2235 +    fi
2236 +    ;;
2237    osf3*)
2238      case $cc_basename in
2239 -      KCC)
2240 +      KCC*)
2241         # Kuck and Associates, Inc. (KAI) C++ Compiler
2242  
2243         # KCC will only create a shared library if the output file
2244 @@ -3226,14 +3564,14 @@ case $host_os in
2245         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2246  
2247         ;;
2248 -      RCC)
2249 +      RCC*)
2250         # Rational C++ 2.4.1
2251         # FIXME: insert proper C++ library support
2252         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2253         ;;
2254 -      cxx)
2255 +      cxx*)
2256         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2257 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
2258 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2259  
2260         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2261         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2262 @@ -3251,7 +3589,7 @@ case $host_os in
2263        *)
2264         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2265           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2266 -         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
2267 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2268  
2269           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2270           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2271 @@ -3270,7 +3608,7 @@ case $host_os in
2272      ;;
2273    osf4* | osf5*)
2274      case $cc_basename in
2275 -      KCC)
2276 +      KCC*)
2277         # Kuck and Associates, Inc. (KAI) C++ Compiler
2278  
2279         # KCC will only create a shared library if the output file
2280 @@ -3285,17 +3623,17 @@ case $host_os in
2281         # the KAI C++ compiler.
2282         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
2283         ;;
2284 -      RCC)
2285 +      RCC*)
2286         # Rational C++ 2.4.1
2287         # FIXME: insert proper C++ library support
2288         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2289         ;;
2290 -      cxx)
2291 +      cxx*)
2292         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2293 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
2294 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2295         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
2296           echo "-hidden">> $lib.exp~
2297 -         $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
2298 +         $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
2299           $rm $lib.exp'
2300  
2301         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2302 @@ -3314,7 +3652,7 @@ case $host_os in
2303        *)
2304         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2305           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2306 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
2307 +        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2308  
2309           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2310           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2311 @@ -3335,27 +3673,14 @@ case $host_os in
2312      # FIXME: insert proper C++ library support
2313      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2314      ;;
2315 -  sco*)
2316 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2317 -    case $cc_basename in
2318 -      CC)
2319 -       # FIXME: insert proper C++ library support
2320 -       _LT_AC_TAGVAR(ld_shlibs, $1)=no
2321 -       ;;
2322 -      *)
2323 -       # FIXME: insert proper C++ library support
2324 -       _LT_AC_TAGVAR(ld_shlibs, $1)=no
2325 -       ;;
2326 -    esac
2327 -    ;;
2328    sunos4*)
2329      case $cc_basename in
2330 -      CC)
2331 +      CC*)
2332         # Sun C++ 4.x
2333         # FIXME: insert proper C++ library support
2334         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2335         ;;
2336 -      lcc)
2337 +      lcc*)
2338         # Lucid
2339         # FIXME: insert proper C++ library support
2340         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2341 @@ -3368,36 +3693,28 @@ case $host_os in
2342      ;;
2343    solaris*)
2344      case $cc_basename in
2345 -      CC)
2346 +      CC*)
2347         # Sun C++ 4.2, 5.x and Centerline C++
2348 +        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
2349         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2350 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2351 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2352         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2353 -       $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
2354 +       $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
2355  
2356         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2357         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2358         case $host_os in
2359 -         solaris2.[0-5] | solaris2.[0-5].*) ;;
2360 +         solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2361           *)
2362 -           # The C++ compiler is used as linker so we must use $wl
2363 -           # flag to pass the commands to the underlying system
2364 -           # linker.
2365 +           # The compiler driver will combine and reorder linker options,
2366 +           # but understands `-z linker_flag'.
2367             # Supported since Solaris 2.6 (maybe 2.5.1?)
2368 -           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
2369 +           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
2370             ;;
2371         esac
2372         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2373  
2374 -       # Commands to make compiler produce verbose output that lists
2375 -       # what "hidden" libraries, object files and flags are used when
2376 -       # linking a shared library.
2377 -       #
2378 -       # There doesn't appear to be a way to prevent this compiler from
2379 -       # explicitly linking system object files so we need to strip them
2380 -       # from the output so that they don't get included in the library
2381 -       # dependencies.
2382 -       output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2383 +       output_verbose_link_cmd='echo'
2384  
2385         # Archives containing C++ object files must be created using
2386         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
2387 @@ -3405,7 +3722,7 @@ case $host_os in
2388         # in the archive.
2389         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
2390         ;;
2391 -      gcx)
2392 +      gcx*)
2393         # Green Hills C++ Compiler
2394         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2395  
2396 @@ -3439,16 +3756,73 @@ case $host_os in
2397           fi
2398  
2399           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
2400 +         case $host_os in
2401 +         solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2402 +         *)
2403 +           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
2404 +           ;;
2405 +         esac
2406         fi
2407         ;;
2408      esac
2409      ;;
2410 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
2411 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
2412 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2413 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2414 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2415 +    runpath_var='LD_RUN_PATH'
2416 +
2417 +    case $cc_basename in
2418 +      CC*)
2419 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2420 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2421 +       ;;
2422 +      *)
2423 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2424 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2425 +       ;;
2426 +    esac
2427 +    ;;
2428 +  sysv5* | sco3.2v5* | sco5v6*)
2429 +    # Note: We can NOT use -z defs as we might desire, because we do not
2430 +    # link with -lc, and that would cause any symbols used from libc to
2431 +    # always be unresolved, which means just about no library would
2432 +    # ever link correctly.  If we're not using GNU ld we use -z text
2433 +    # though, which does catch some bad symbols but isn't as heavy-handed
2434 +    # as -z defs.
2435 +    # For security reasons, it is highly recommended that you always
2436 +    # use absolute paths for naming shared libraries, and exclude the
2437 +    # DT_RUNPATH tag from executables and libraries.  But doing so
2438 +    # requires that you compile everything twice, which is a pain.
2439 +    # So that behaviour is only enabled if SCOABSPATH is set to a
2440 +    # non-empty value in the environment.  Most likely only useful for
2441 +    # creating official distributions of packages.
2442 +    # This is a hack until libtool officially supports absolute path
2443 +    # names for shared libraries.
2444 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2445 +    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
2446      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2447 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2448 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
2449 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2450 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2451 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2452 +    runpath_var='LD_RUN_PATH'
2453 +
2454 +    case $cc_basename in
2455 +      CC*)
2456 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2457 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2458 +       ;;
2459 +      *)
2460 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2461 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2462 +       ;;
2463 +    esac
2464      ;;
2465    tandem*)
2466      case $cc_basename in
2467 -      NCC)
2468 +      NCC*)
2469         # NonStop-UX NCC 3.20
2470         # FIXME: insert proper C++ library support
2471         _LT_AC_TAGVAR(ld_shlibs, $1)=no
2472 @@ -3481,8 +3855,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2473  AC_LIBTOOL_PROG_LD_SHLIBS($1)
2474  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2475  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2476 -AC_LIBTOOL_SYS_LIB_STRIP
2477 -AC_LIBTOOL_DLOPEN_SELF($1)
2478  
2479  AC_LIBTOOL_CONFIG($1)
2480  
2481 @@ -3500,12 +3872,13 @@ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
2482  ])# AC_LIBTOOL_LANG_CXX_CONFIG
2483  
2484  # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
2485 -# ------------------------
2486 +# ------------------------------------
2487  # Figure out "hidden" library dependencies from verbose
2488  # compiler output when linking a shared library.
2489  # Parse the compiler output and extract the necessary
2490  # objects, libraries and library flags.
2491 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
2492 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
2493 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
2494  dnl we can't use the lt_simple_compile_test_code here,
2495  dnl because it contains code intended for an executable,
2496  dnl not a library.  It's possible we should let each
2497 @@ -3554,7 +3927,7 @@ if AC_TRY_EVAL(ac_compile); then
2498    # The `*' in the case matches for architectures that use `case' in
2499    # $output_verbose_cmd can trigger glob expansion during the loop
2500    # eval without this substitution.
2501 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
2502 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
2503  
2504    for p in `eval $output_verbose_link_cmd`; do
2505      case $p in
2506 @@ -3630,13 +4003,74 @@ fi
2507  
2508  $rm -f confest.$objext
2509  
2510 +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2511 +if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
2512 +  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
2513 +fi
2514 +
2515 +# PORTME: override above test on systems where it is broken
2516 +ifelse([$1],[CXX],
2517 +[case $host_os in
2518 +interix[[3-9]]*)
2519 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
2520 +  # hack all around it, let's just trust "g++" to DTRT.
2521 +  _LT_AC_TAGVAR(predep_objects,$1)=
2522 +  _LT_AC_TAGVAR(postdep_objects,$1)=
2523 +  _LT_AC_TAGVAR(postdeps,$1)=
2524 +  ;;
2525 +
2526 +linux*)
2527 +  case `$CC -V 2>&1 | sed 5q` in
2528 +  *Sun\ C*)
2529 +    # Sun C++ 5.9
2530 +    #
2531 +    # The more standards-conforming stlport4 library is
2532 +    # incompatible with the Cstd library. Avoid specifying
2533 +    # it if it's in CXXFLAGS. Ignore libCrun as
2534 +    # -library=stlport4 depends on it.
2535 +    case " $CXX $CXXFLAGS " in
2536 +    *" -library=stlport4 "*)
2537 +      solaris_use_stlport4=yes
2538 +      ;;
2539 +    esac
2540 +    if test "$solaris_use_stlport4" != yes; then
2541 +      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
2542 +    fi
2543 +    ;;
2544 +  esac
2545 +  ;;
2546 +
2547 +solaris*)
2548 +  case $cc_basename in
2549 +  CC*)
2550 +    # The more standards-conforming stlport4 library is
2551 +    # incompatible with the Cstd library. Avoid specifying
2552 +    # it if it's in CXXFLAGS. Ignore libCrun as
2553 +    # -library=stlport4 depends on it.
2554 +    case " $CXX $CXXFLAGS " in
2555 +    *" -library=stlport4 "*)
2556 +      solaris_use_stlport4=yes
2557 +      ;;
2558 +    esac
2559 +
2560 +    # Adding this requires a known-good setup of shared libraries for
2561 +    # Sun compiler versions before 5.6, else PIC objects from an old
2562 +    # archive will be linked into the output, leading to subtle bugs.
2563 +    if test "$solaris_use_stlport4" != yes; then
2564 +      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
2565 +    fi
2566 +    ;;
2567 +  esac
2568 +  ;;
2569 +esac
2570 +])
2571  case " $_LT_AC_TAGVAR(postdeps, $1) " in
2572  *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
2573  esac
2574  ])# AC_LIBTOOL_POSTDEP_PREDEP
2575  
2576  # AC_LIBTOOL_LANG_F77_CONFIG
2577 -# ------------------------
2578 +# --------------------------
2579  # Ensure that the configuration vars for the C compiler are
2580  # suitably defined.  Those variables are subsequently used by
2581  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2582 @@ -3672,20 +4106,31 @@ objext=o
2583  _LT_AC_TAGVAR(objext, $1)=$objext
2584  
2585  # Code to be used in simple compile tests
2586 -lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
2587 +lt_simple_compile_test_code="\
2588 +      subroutine t
2589 +      return
2590 +      end
2591 +"
2592  
2593  # Code to be used in simple link tests
2594 -lt_simple_link_test_code="      program t\n      end\n"
2595 +lt_simple_link_test_code="\
2596 +      program t
2597 +      end
2598 +"
2599  
2600  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2601  _LT_AC_SYS_COMPILER
2602  
2603 +# save warnings/boilerplate of simple test code
2604 +_LT_COMPILER_BOILERPLATE
2605 +_LT_LINKER_BOILERPLATE
2606 +
2607  # Allow CC to be a program name with arguments.
2608  lt_save_CC="$CC"
2609  CC=${F77-"f77"}
2610  compiler=$CC
2611  _LT_AC_TAGVAR(compiler, $1)=$CC
2612 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
2613 +_LT_CC_BASENAME([$compiler])
2614  
2615  AC_MSG_CHECKING([if libtool supports shared libraries])
2616  AC_MSG_RESULT([$can_build_shared])
2617 @@ -3695,7 +4140,7 @@ test "$can_build_shared" = "no" && enable_shared=no
2618  
2619  # On AIX, shared libraries and static libraries use the same namespace, and
2620  # are all built from PIC.
2621 -case "$host_os" in
2622 +case $host_os in
2623  aix3*)
2624    test "$enable_shared" = yes && enable_static=no
2625    if test -n "$RANLIB"; then
2626 @@ -3703,8 +4148,10 @@ aix3*)
2627      postinstall_cmds='$RANLIB $lib'
2628    fi
2629    ;;
2630 -aix4* | aix5*)
2631 -  test "$enable_shared" = yes && enable_static=no
2632 +aix[[4-9]]*)
2633 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2634 +    test "$enable_shared" = yes && enable_static=no
2635 +  fi
2636    ;;
2637  esac
2638  AC_MSG_RESULT([$enable_shared])
2639 @@ -3714,8 +4161,6 @@ AC_MSG_CHECKING([whether to build static libraries])
2640  test "$enable_shared" = yes || enable_static=yes
2641  AC_MSG_RESULT([$enable_static])
2642  
2643 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
2644 -
2645  _LT_AC_TAGVAR(GCC, $1)="$G77"
2646  _LT_AC_TAGVAR(LD, $1)="$LD"
2647  
2648 @@ -3725,8 +4170,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2649  AC_LIBTOOL_PROG_LD_SHLIBS($1)
2650  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2651  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2652 -AC_LIBTOOL_SYS_LIB_STRIP
2653 -
2654  
2655  AC_LIBTOOL_CONFIG($1)
2656  
2657 @@ -3752,23 +4195,30 @@ objext=o
2658  _LT_AC_TAGVAR(objext, $1)=$objext
2659  
2660  # Code to be used in simple compile tests
2661 -lt_simple_compile_test_code="class foo {}\n"
2662 +lt_simple_compile_test_code="class foo {}"
2663  
2664  # Code to be used in simple link tests
2665 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
2666 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
2667  
2668  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2669  _LT_AC_SYS_COMPILER
2670  
2671 +# save warnings/boilerplate of simple test code
2672 +_LT_COMPILER_BOILERPLATE
2673 +_LT_LINKER_BOILERPLATE
2674 +
2675  # Allow CC to be a program name with arguments.
2676  lt_save_CC="$CC"
2677  CC=${GCJ-"gcj"}
2678  compiler=$CC
2679  _LT_AC_TAGVAR(compiler, $1)=$CC
2680 +_LT_CC_BASENAME([$compiler])
2681  
2682  # GCJ did not exist at the time GCC didn't implicitly link libc in.
2683  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2684  
2685 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2686 +
2687  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2688  AC_LIBTOOL_PROG_COMPILER_PIC($1)
2689  AC_LIBTOOL_PROG_CC_C_O($1)
2690 @@ -3776,8 +4226,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2691  AC_LIBTOOL_PROG_LD_SHLIBS($1)
2692  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2693  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2694 -AC_LIBTOOL_SYS_LIB_STRIP
2695 -AC_LIBTOOL_DLOPEN_SELF($1)
2696  
2697  AC_LIBTOOL_CONFIG($1)
2698  
2699 @@ -3787,7 +4235,7 @@ CC="$lt_save_CC"
2700  
2701  
2702  # AC_LIBTOOL_LANG_RC_CONFIG
2703 -# --------------------------
2704 +# -------------------------
2705  # Ensure that the configuration vars for the Windows resource compiler are
2706  # suitably defined.  Those variables are subsequently used by
2707  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2708 @@ -3803,7 +4251,7 @@ objext=o
2709  _LT_AC_TAGVAR(objext, $1)=$objext
2710  
2711  # Code to be used in simple compile tests
2712 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
2713 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
2714  
2715  # Code to be used in simple link tests
2716  lt_simple_link_test_code="$lt_simple_compile_test_code"
2717 @@ -3811,11 +4259,16 @@ lt_simple_link_test_code="$lt_simple_compile_test_code"
2718  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2719  _LT_AC_SYS_COMPILER
2720  
2721 +# save warnings/boilerplate of simple test code
2722 +_LT_COMPILER_BOILERPLATE
2723 +_LT_LINKER_BOILERPLATE
2724 +
2725  # Allow CC to be a program name with arguments.
2726  lt_save_CC="$CC"
2727  CC=${RC-"windres"}
2728  compiler=$CC
2729  _LT_AC_TAGVAR(compiler, $1)=$CC
2730 +_LT_CC_BASENAME([$compiler])
2731  _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2732  
2733  AC_LIBTOOL_CONFIG($1)
2734 @@ -3845,7 +4298,7 @@ if test -f "$ltmain"; then
2735    # Now quote all the things that may contain metacharacters while being
2736    # careful not to overquote the AC_SUBSTed values.  We take copies of the
2737    # variables and quote the copies for generation of the libtool script.
2738 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
2739 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
2740      SED SHELL STRIP \
2741      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
2742      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
2743 @@ -3872,6 +4325,7 @@ if test -f "$ltmain"; then
2744      _LT_AC_TAGVAR(predeps, $1) \
2745      _LT_AC_TAGVAR(postdeps, $1) \
2746      _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
2747 +    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
2748      _LT_AC_TAGVAR(archive_cmds, $1) \
2749      _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
2750      _LT_AC_TAGVAR(postinstall_cmds, $1) \
2751 @@ -3887,6 +4341,7 @@ if test -f "$ltmain"; then
2752      _LT_AC_TAGVAR(module_cmds, $1) \
2753      _LT_AC_TAGVAR(module_expsym_cmds, $1) \
2754      _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
2755 +    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
2756      _LT_AC_TAGVAR(exclude_expsyms, $1) \
2757      _LT_AC_TAGVAR(include_expsyms, $1); do
2758  
2759 @@ -3933,7 +4388,7 @@ ifelse([$1], [],
2760  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2761  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
2762  #
2763 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
2764 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
2765  # Free Software Foundation, Inc.
2766  #
2767  # This file is part of GNU Libtool:
2768 @@ -3951,7 +4406,7 @@ ifelse([$1], [],
2769  #
2770  # You should have received a copy of the GNU General Public License
2771  # along with this program; if not, write to the Free Software
2772 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2773 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2774  #
2775  # As a special exception to the GNU General Public License, if you
2776  # distribute this file as part of a program that contains a
2777 @@ -3962,11 +4417,11 @@ ifelse([$1], [],
2778  SED=$lt_SED
2779  
2780  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
2781 -Xsed="$SED -e s/^X//"
2782 +Xsed="$SED -e 1s/^X//"
2783  
2784  # The HP-UX ksh and POSIX shell print the target directory to stdout
2785  # if CDPATH is set.
2786 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2787 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2788  
2789  # The names of the tagged configurations supported by this script.
2790  available_tags=
2791 @@ -3997,6 +4452,12 @@ fast_install=$enable_fast_install
2792  # The host system.
2793  host_alias=$host_alias
2794  host=$host
2795 +host_os=$host_os
2796 +
2797 +# The build system.
2798 +build_alias=$build_alias
2799 +build=$build
2800 +build_os=$build_os
2801  
2802  # An echo program that does not interpret backslashes.
2803  echo=$lt_echo
2804 @@ -4008,6 +4469,9 @@ AR_FLAGS=$lt_AR_FLAGS
2805  # A C compiler.
2806  LTCC=$lt_LTCC
2807  
2808 +# LTCC compiler flags.
2809 +LTCFLAGS=$lt_LTCFLAGS
2810 +
2811  # A language-specific compiler.
2812  CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
2813  
2814 @@ -4073,7 +4537,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
2815  # Does compiler simultaneously support -c and -o options?
2816  compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
2817  
2818 -# Must we lock files when doing compilation ?
2819 +# Must we lock files when doing compilation?
2820  need_locks=$lt_need_locks
2821  
2822  # Do we need the lib prefix for modules?
2823 @@ -4161,6 +4625,10 @@ predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
2824  # shared library.
2825  postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
2826  
2827 +# The directories searched by this compiler when creating a shared
2828 +# library
2829 +compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
2830 +
2831  # The library search path used internally by the compiler when linking
2832  # a shared library.
2833  compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
2834 @@ -4249,7 +4717,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
2835  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
2836  
2837  # Fix the shell variable \$srcfile for the compiler.
2838 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
2839 +fix_srcfile_path=$lt_fix_srcfile_path
2840  
2841  # Set to yes if exported symbols are required.
2842  always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
2843 @@ -4332,6 +4800,7 @@ fi
2844  # ---------------------------------
2845  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
2846  [AC_REQUIRE([AC_CANONICAL_HOST])
2847 +AC_REQUIRE([LT_AC_PROG_SED])
2848  AC_REQUIRE([AC_PROG_NM])
2849  AC_REQUIRE([AC_OBJEXT])
2850  # Check for command to grab the raw symbol name followed by C symbol from nm.
2851 @@ -4347,9 +4816,6 @@ symcode='[[BCDEGRST]]'
2852  # Regexp to match symbols that can be accessed directly from C.
2853  sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
2854  
2855 -# Transform the above into a raw symbol and a C symbol.
2856 -symxfrm='\1 \2\3 \3'
2857 -
2858  # Transform an extracted symbol line into a proper C declaration
2859  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
2860  
2861 @@ -4371,15 +4837,31 @@ hpux*) # Its linker distinguishes data from code symbols
2862    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2863    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2864    ;;
2865 +linux* | k*bsd*-gnu)
2866 +  if test "$host_cpu" = ia64; then
2867 +    symcode='[[ABCDGIRSTW]]'
2868 +    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2869 +    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2870 +  fi
2871 +  ;;
2872  irix* | nonstopux*)
2873    symcode='[[BCDEGRST]]'
2874    ;;
2875  osf*)
2876    symcode='[[BCDEGQRST]]'
2877    ;;
2878 -solaris* | sysv5*)
2879 +solaris*)
2880    symcode='[[BDRT]]'
2881    ;;
2882 +sco3.2v5*)
2883 +  symcode='[[DT]]'
2884 +  ;;
2885 +sysv4.2uw2*)
2886 +  symcode='[[DT]]'
2887 +  ;;
2888 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
2889 +  symcode='[[ABDT]]'
2890 +  ;;
2891  sysv4)
2892    symcode='[[DFNSTU]]'
2893    ;;
2894 @@ -4402,8 +4884,11 @@ esac
2895  # Try without a prefix undercore, then with it.
2896  for ac_symprfx in "" "_"; do
2897  
2898 +  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
2899 +  symxfrm="\\1 $ac_symprfx\\2 \\2"
2900 +
2901    # Write the raw and C identifiers.
2902 -  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2903 +  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
2904  
2905    # Check to see that the pipe works correctly.
2906    pipe_works=no
2907 @@ -4493,7 +4978,7 @@ EOF
2908      echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
2909      cat conftest.$ac_ext >&5
2910    fi
2911 -  rm -f conftest* conftst*
2912 +  rm -rf conftest* conftst*
2913  
2914    # Do not use the global_symbol_pipe unless it works.
2915    if test "$pipe_works" = yes; then
2916 @@ -4542,13 +5027,16 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2917        # like `-m68040'.
2918        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
2919        ;;
2920 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2921 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2922        # PIC is the default for these OSes.
2923        ;;
2924 -    mingw* | os2* | pw32*)
2925 +    mingw* | cygwin* | os2* | pw32*)
2926        # This hack is so that the source file can tell whether it is being
2927        # built for inclusion in a dll (and should export symbols for example).
2928 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
2929 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
2930 +      # (--disable-auto-import) libraries
2931 +      m4_if([$1], [GCJ], [],
2932 +       [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
2933        ;;
2934      darwin* | rhapsody*)
2935        # PIC is the default on this platform
2936 @@ -4559,6 +5047,10 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2937        # DJGPP does not support shared libraries at all
2938        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2939        ;;
2940 +    interix[[3-9]]*)
2941 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2942 +      # Instead, we relocate shared libraries at runtime.
2943 +      ;;
2944      sysv4*MP*)
2945        if test -d /usr/nec; then
2946         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
2947 @@ -4567,7 +5059,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2948      hpux*)
2949        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2950        # not for PA HP-UX.
2951 -      case "$host_cpu" in
2952 +      case $host_cpu in
2953        hppa*64*|ia64*)
2954         ;;
2955        *)
2956 @@ -4581,7 +5073,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2957      esac
2958    else
2959      case $host_os in
2960 -      aix4* | aix5*)
2961 +      aix[[4-9]]*)
2962         # All AIX code is PIC.
2963         if test "$host_cpu" = ia64; then
2964           # AIX 5 now supports IA64 processor
2965 @@ -4592,18 +5084,28 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2966         ;;
2967        chorus*)
2968         case $cc_basename in
2969 -       cxch68)
2970 +       cxch68*)
2971           # Green Hills C++ Compiler
2972           # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
2973           ;;
2974         esac
2975         ;;
2976 +       darwin*)
2977 +         # PIC is the default on this platform
2978 +         # Common symbols not allowed in MH_DYLIB files
2979 +         case $cc_basename in
2980 +           xlc*)
2981 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
2982 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2983 +           ;;
2984 +         esac
2985 +       ;;
2986        dgux*)
2987         case $cc_basename in
2988 -         ec++)
2989 +         ec++*)
2990             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2991             ;;
2992 -         ghcx)
2993 +         ghcx*)
2994             # Green Hills C++ Compiler
2995             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2996             ;;
2997 @@ -4611,22 +5113,22 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
2998             ;;
2999         esac
3000         ;;
3001 -      freebsd* | kfreebsd*-gnu)
3002 +      freebsd* | dragonfly*)
3003         # FreeBSD uses GNU C++
3004         ;;
3005        hpux9* | hpux10* | hpux11*)
3006         case $cc_basename in
3007 -         CC)
3008 +         CC*)
3009             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3010 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
3011 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3012             if test "$host_cpu" != ia64; then
3013               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3014             fi
3015             ;;
3016 -         aCC)
3017 +         aCC*)
3018             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3019 -           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
3020 -           case "$host_cpu" in
3021 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3022 +           case $host_cpu in
3023             hppa*64*|ia64*)
3024               # +Z the default
3025               ;;
3026 @@ -4639,9 +5141,13 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3027             ;;
3028         esac
3029         ;;
3030 +      interix*)
3031 +       # This is c89, which is MS Visual C++ (no shared libs)
3032 +       # Anyone wants to do a port?
3033 +       ;;
3034        irix5* | irix6* | nonstopux*)
3035         case $cc_basename in
3036 -         CC)
3037 +         CC*)
3038             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3039             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3040             # CC pic flag -KPIC is the default.
3041 @@ -4650,20 +5156,26 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3042             ;;
3043         esac
3044         ;;
3045 -      linux*)
3046 +      linux* | k*bsd*-gnu)
3047         case $cc_basename in
3048 -         KCC)
3049 +         KCC*)
3050             # KAI C++ Compiler
3051             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3052             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3053             ;;
3054 -         icpc)
3055 +         icpc* | ecpc*)
3056             # Intel C++
3057             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3058             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3059             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3060             ;;
3061 -         cxx)
3062 +         pgCC* | pgcpp*)
3063 +           # Portland Group C++ compiler.
3064 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3065 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3066 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3067 +           ;;
3068 +         cxx*)
3069             # Compaq C++
3070             # Make sure the PIC flag is empty.  It appears that all Alpha
3071             # Linux and Compaq Tru64 Unix objects are PIC.
3072 @@ -4671,6 +5183,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3073             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3074             ;;
3075           *)
3076 +           case `$CC -V 2>&1 | sed 5q` in
3077 +           *Sun\ C*)
3078 +             # Sun C++ 5.9
3079 +             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3080 +             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3081 +             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3082 +             ;;
3083 +           esac
3084             ;;
3085         esac
3086         ;;
3087 @@ -4680,25 +5200,25 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3088         ;;
3089        mvs*)
3090         case $cc_basename in
3091 -         cxx)
3092 +         cxx*)
3093             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3094             ;;
3095           *)
3096             ;;
3097         esac
3098         ;;
3099 -      netbsd*)
3100 +      netbsd* | netbsdelf*-gnu)
3101         ;;
3102        osf3* | osf4* | osf5*)
3103         case $cc_basename in
3104 -         KCC)
3105 +         KCC*)
3106             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3107             ;;
3108 -         RCC)
3109 +         RCC*)
3110             # Rational C++ 2.4.1
3111             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3112             ;;
3113 -         cxx)
3114 +         cxx*)
3115             # Digital/Compaq C++
3116             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3117             # Make sure the PIC flag is empty.  It appears that all Alpha
3118 @@ -4712,24 +5232,15 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3119         ;;
3120        psos*)
3121         ;;
3122 -      sco*)
3123 -       case $cc_basename in
3124 -         CC)
3125 -           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3126 -           ;;
3127 -         *)
3128 -           ;;
3129 -       esac
3130 -       ;;
3131        solaris*)
3132         case $cc_basename in
3133 -         CC)
3134 +         CC*)
3135             # Sun C++ 4.2, 5.x and Centerline C++
3136             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3137             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3138             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3139             ;;
3140 -         gcx)
3141 +         gcx*)
3142             # Green Hills C++ Compiler
3143             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3144             ;;
3145 @@ -4739,12 +5250,12 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3146         ;;
3147        sunos4*)
3148         case $cc_basename in
3149 -         CC)
3150 +         CC*)
3151             # Sun C++ 4.x
3152             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3153             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3154             ;;
3155 -         lcc)
3156 +         lcc*)
3157             # Lucid
3158             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3159             ;;
3160 @@ -4754,7 +5265,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3161         ;;
3162        tandem*)
3163         case $cc_basename in
3164 -         NCC)
3165 +         NCC*)
3166             # NonStop-UX NCC 3.20
3167             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3168             ;;
3169 @@ -4762,7 +5273,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3170             ;;
3171         esac
3172         ;;
3173 -      unixware*)
3174 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3175 +       case $cc_basename in
3176 +         CC*)
3177 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3178 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3179 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3180 +           ;;
3181 +       esac
3182         ;;
3183        vxworks*)
3184         ;;
3185 @@ -4793,14 +5311,17 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3186        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3187        ;;
3188  
3189 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3190 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3191        # PIC is the default for these OSes.
3192        ;;
3193  
3194 -    mingw* | pw32* | os2*)
3195 +    mingw* | cygwin* | pw32* | os2*)
3196        # This hack is so that the source file can tell whether it is being
3197        # built for inclusion in a dll (and should export symbols for example).
3198 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3199 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3200 +      # (--disable-auto-import) libraries
3201 +      m4_if([$1], [GCJ], [],
3202 +       [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3203        ;;
3204  
3205      darwin* | rhapsody*)
3206 @@ -4809,6 +5330,11 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3207        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3208        ;;
3209  
3210 +    interix[[3-9]]*)
3211 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3212 +      # Instead, we relocate shared libraries at runtime.
3213 +      ;;
3214 +
3215      msdosdjgpp*)
3216        # Just because we use GCC doesn't mean we suddenly get shared libraries
3217        # on systems that don't support them.
3218 @@ -4825,7 +5351,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3219      hpux*)
3220        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3221        # not for PA HP-UX.
3222 -      case "$host_cpu" in
3223 +      case $host_cpu in
3224        hppa*64*|ia64*)
3225         # +Z the default
3226         ;;
3227 @@ -4851,18 +5377,29 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3228         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3229        fi
3230        ;;
3231 +      darwin*)
3232 +        # PIC is the default on this platform
3233 +        # Common symbols not allowed in MH_DYLIB files
3234 +       case $cc_basename in
3235 +         xlc*)
3236 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
3237 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3238 +         ;;
3239 +       esac
3240 +       ;;
3241  
3242 -    mingw* | pw32* | os2*)
3243 +    mingw* | cygwin* | pw32* | os2*)
3244        # This hack is so that the source file can tell whether it is being
3245        # built for inclusion in a dll (and should export symbols for example).
3246 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3247 +      m4_if([$1], [GCJ], [],
3248 +       [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3249        ;;
3250  
3251      hpux9* | hpux10* | hpux11*)
3252        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3253        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3254        # not for PA HP-UX.
3255 -      case "$host_cpu" in
3256 +      case $host_cpu in
3257        hppa*64*|ia64*)
3258         # +Z the default
3259         ;;
3260 @@ -4885,18 +5422,41 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3261        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3262        ;;
3263  
3264 -    linux*)
3265 -      case $CC in
3266 +    linux* | k*bsd*-gnu)
3267 +      case $cc_basename in
3268        icc* | ecc*)
3269         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3270         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3271         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3272          ;;
3273 +      pgcc* | pgf77* | pgf90* | pgf95*)
3274 +        # Portland Group compilers (*not* the Pentium gcc compiler,
3275 +       # which looks to be a dead project)
3276 +       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3277 +       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3278 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3279 +        ;;
3280        ccc*)
3281          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3282          # All Alpha code is PIC.
3283          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3284          ;;
3285 +      *)
3286 +        case `$CC -V 2>&1 | sed 5q` in
3287 +       *Sun\ C*)
3288 +         # Sun C 5.9
3289 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3290 +         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3291 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3292 +         ;;
3293 +       *Sun\ F*)
3294 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
3295 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3296 +         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3297 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
3298 +         ;;
3299 +       esac
3300 +       ;;
3301        esac
3302        ;;
3303  
3304 @@ -4906,15 +5466,19 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3305        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3306        ;;
3307  
3308 -    sco3.2v5*)
3309 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
3310 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
3311 +    rdos*)
3312 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3313        ;;
3314  
3315      solaris*)
3316 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3317        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3318        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3319 +      case $cc_basename in
3320 +      f77* | f90* | f95*)
3321 +       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
3322 +      *)
3323 +       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
3324 +      esac
3325        ;;
3326  
3327      sunos4*)
3328 @@ -4923,7 +5487,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3329        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3330        ;;
3331  
3332 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3333 +    sysv4 | sysv4.2uw2* | sysv4.3*)
3334        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3335        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3336        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3337 @@ -4936,6 +5500,17 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
3338        fi
3339        ;;
3340  
3341 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3342 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3343 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3344 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3345 +      ;;
3346 +
3347 +    unicos*)
3348 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3349 +      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3350 +      ;;
3351 +
3352      uts4*)
3353        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3354        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3355 @@ -4954,7 +5529,7 @@ AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
3356  #
3357  if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
3358    AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
3359 -    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
3360 +    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
3361      [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
3362      [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
3363       "" | " "*) ;;
3364 @@ -4963,7 +5538,7 @@ if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
3365      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3366       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
3367  fi
3368 -case "$host_os" in
3369 +case $host_os in
3370    # For platforms which do not support PIC, -DPIC is meaningless:
3371    *djgpp*)
3372      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3373 @@ -4972,6 +5547,16 @@ case "$host_os" in
3374      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
3375      ;;
3376  esac
3377 +
3378 +#
3379 +# Check to make sure the static flag actually works.
3380 +#
3381 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
3382 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
3383 +  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
3384 +  $lt_tmp_static_flag,
3385 +  [],
3386 +  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3387  ])
3388  
3389  
3390 @@ -4979,11 +5564,12 @@ esac
3391  # ------------------------------------
3392  # See if the linker supports building shared libraries.
3393  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
3394 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3395 +[AC_REQUIRE([LT_AC_PROG_SED])dnl
3396 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3397  ifelse([$1],[CXX],[
3398    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3399    case $host_os in
3400 -  aix4* | aix5*)
3401 +  aix[[4-9]]*)
3402      # If we're using GNU nm, then we don't want the "-C" option.
3403      # -C means demangle to AIX nm, but means don't demangle with GNU nm
3404      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
3405 @@ -4996,12 +5582,16 @@ ifelse([$1],[CXX],[
3406      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
3407    ;;
3408    cygwin* | mingw*)
3409 -    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
3410 +    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
3411 +  ;;
3412 +  linux* | k*bsd*-gnu)
3413 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3414    ;;
3415    *)
3416      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3417    ;;
3418    esac
3419 +  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
3420  ],[
3421    runpath_var=
3422    _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3423 @@ -5032,14 +5622,17 @@ ifelse([$1],[CXX],[
3424    # it will be wrapped by ` (' and `)$', so one must not match beginning or
3425    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3426    # as well as any symbol that contains `d'.
3427 -  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
3428 +  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
3429    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3430    # platforms (ab)use it in PIC code, but their linkers get confused if
3431    # the symbol is explicitly referenced.  Since portable code cannot
3432    # rely on this symbol name, it's probably fine to never include it in
3433    # preloaded symbol tables.
3434 +  # Exclude shared library initialization/finalization symbols.
3435 +dnl Note also adjust exclude_expsyms for C++ above.
3436    extract_expsyms_cmds=
3437 -
3438 +  # Just being paranoid about ensuring that cc_basename is set.
3439 +  _LT_CC_BASENAME([$compiler])
3440    case $host_os in
3441    cygwin* | mingw* | pw32*)
3442      # FIXME: the MSVC++ port hasn't been tested in a loooong time
3443 @@ -5049,6 +5642,10 @@ ifelse([$1],[CXX],[
3444        with_gnu_ld=no
3445      fi
3446      ;;
3447 +  interix*)
3448 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
3449 +    with_gnu_ld=yes
3450 +    ;;
3451    openbsd*)
3452      with_gnu_ld=no
3453      ;;
3454 @@ -5059,9 +5656,30 @@ ifelse([$1],[CXX],[
3455      # If archive_cmds runs LD, not CC, wlarc should be empty
3456      wlarc='${wl}'
3457  
3458 +    # Set some defaults for GNU ld with shared library support. These
3459 +    # are reset later if shared libraries are not supported. Putting them
3460 +    # here allows them to be overridden if necessary.
3461 +    runpath_var=LD_RUN_PATH
3462 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3463 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3464 +    # ancient GNU ld didn't support --whole-archive et. al.
3465 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3466 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3467 +      else
3468 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3469 +    fi
3470 +    supports_anon_versioning=no
3471 +    case `$LD -v 2>/dev/null` in
3472 +      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
3473 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
3474 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
3475 +      *\ 2.11.*) ;; # other 2.11 versions
3476 +      *) supports_anon_versioning=yes ;;
3477 +    esac
3478 +
3479      # See if GNU ld supports shared libraries.
3480      case $host_os in
3481 -    aix3* | aix4* | aix5*)
3482 +    aix[[3-9]]*)
3483        # On AIX/PPC, the GNU linker is very broken
3484        if test "$host_cpu" != ia64; then
3485         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3486 @@ -5109,10 +5727,10 @@ EOF
3487        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3488        _LT_AC_TAGVAR(always_export_symbols, $1)=no
3489        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3490 -      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
3491 +      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
3492  
3493        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3494 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3495 +        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3496         # If the export-symbols file already is a .def file (1st line
3497         # is EXPORTS), use it as is; otherwise, prepend...
3498         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3499 @@ -5121,13 +5739,69 @@ EOF
3500           echo EXPORTS > $output_objdir/$soname.def;
3501           cat $export_symbols >> $output_objdir/$soname.def;
3502         fi~
3503 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
3504 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3505        else
3506 -       ld_shlibs=no
3507 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3508        fi
3509        ;;
3510  
3511 -    netbsd*)
3512 +    interix[[3-9]]*)
3513 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3514 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3515 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3516 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3517 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3518 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
3519 +      # default) and relocated if they conflict, which is a slow very memory
3520 +      # consuming and fragmenting process.  To avoid this, we pick a random,
3521 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3522 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3523 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3524 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3525 +      ;;
3526 +
3527 +    gnu* | linux* | k*bsd*-gnu)
3528 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3529 +       tmp_addflag=
3530 +       case $cc_basename,$host_cpu in
3531 +       pgcc*)                          # Portland Group C compiler
3532 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3533 +         tmp_addflag=' $pic_flag'
3534 +         ;;
3535 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
3536 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3537 +         tmp_addflag=' $pic_flag -Mnomain' ;;
3538 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
3539 +         tmp_addflag=' -i_dynamic' ;;
3540 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
3541 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
3542 +       ifc* | ifort*)                  # Intel Fortran compiler
3543 +         tmp_addflag=' -nofor_main' ;;
3544 +       esac
3545 +       case `$CC -V 2>&1 | sed 5q` in
3546 +       *Sun\ C*)                       # Sun C 5.9
3547 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3548 +         tmp_sharedflag='-G' ;;
3549 +       *Sun\ F*)                       # Sun Fortran 8.3
3550 +         tmp_sharedflag='-G' ;;
3551 +       *)
3552 +         tmp_sharedflag='-shared' ;;
3553 +       esac
3554 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3555 +
3556 +       if test $supports_anon_versioning = yes; then
3557 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
3558 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3559 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
3560 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3561 +       fi
3562 +       _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3563 +      else
3564 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3565 +      fi
3566 +      ;;
3567 +
3568 +    netbsd* | netbsdelf*-gnu)
3569        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3570         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3571         wlarc=
3572 @@ -5137,7 +5811,7 @@ EOF
3573        fi
3574        ;;
3575  
3576 -    solaris* | sysv5*)
3577 +    solaris*)
3578        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
3579         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3580         cat <<EOF 1>&2
3581 @@ -5158,6 +5832,33 @@ EOF
3582        fi
3583        ;;
3584  
3585 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
3586 +      case `$LD -v 2>&1` in
3587 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
3588 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
3589 +       cat <<_LT_EOF 1>&2
3590 +
3591 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
3592 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
3593 +*** is disabling shared libraries support.  We urge you to upgrade GNU
3594 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
3595 +*** your PATH or compiler configuration so that the native linker is
3596 +*** used, and then restart.
3597 +
3598 +_LT_EOF
3599 +       ;;
3600 +       *)
3601 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3602 +           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
3603 +           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
3604 +           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
3605 +         else
3606 +           _LT_AC_TAGVAR(ld_shlibs, $1)=no
3607 +         fi
3608 +       ;;
3609 +      esac
3610 +      ;;
3611 +
3612      sunos4*)
3613        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3614        wlarc=
3615 @@ -5165,31 +5866,6 @@ EOF
3616        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3617        ;;
3618  
3619 -  linux*)
3620 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3621 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3622 -       _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
3623 -      supports_anon_versioning=no
3624 -      case `$LD -v 2>/dev/null` in
3625 -        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
3626 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
3627 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
3628 -        *\ 2.11.*) ;; # other 2.11 versions
3629 -        *) supports_anon_versioning=yes ;;
3630 -      esac
3631 -      if test $supports_anon_versioning = yes; then
3632 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
3633 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3634 -$echo "local: *; };" >> $output_objdir/$libname.ver~
3635 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3636 -      else
3637 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
3638 -      fi
3639 -    else
3640 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3641 -    fi
3642 -    ;;
3643 -
3644      *)
3645        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3646         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3647 @@ -5200,16 +5876,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3648        ;;
3649      esac
3650  
3651 -    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
3652 -      runpath_var=LD_RUN_PATH
3653 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3654 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3655 -      # ancient GNU ld didn't support --whole-archive et. al.
3656 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3657 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3658 -      else
3659 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3660 -      fi
3661 +    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
3662 +      runpath_var=
3663 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3664 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3665 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3666      fi
3667    else
3668      # PORTME fill in a description of your system's linker (not GNU ld)
3669 @@ -5221,14 +5892,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3670        # Note: this linker hardcodes the directories in LIBPATH if there
3671        # are no directories specified by -L.
3672        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3673 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
3674 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
3675         # Neither direct hardcoding nor static linking is supported with a
3676         # broken collect2.
3677         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3678        fi
3679        ;;
3680  
3681 -    aix4* | aix5*)
3682 +    aix[[4-9]]*)
3683        if test "$host_cpu" = ia64; then
3684         # On IA64, the linker does run time linking by default, so we don't
3685         # have to do anything special.
3686 @@ -5248,13 +5919,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3687         # Test if we are trying to use run time linking or normal
3688         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3689         # need to do runtime linking.
3690 -       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3691 +       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3692           for ld_flag in $LDFLAGS; do
3693           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3694             aix_use_runtimelinking=yes
3695             break
3696           fi
3697           done
3698 +         ;;
3699         esac
3700  
3701         exp_sym_flag='-bexport'
3702 @@ -5273,7 +5945,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3703        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3704  
3705        if test "$GCC" = yes; then
3706 -       case $host_os in aix4.[012]|aix4.[012].*)
3707 +       case $host_os in aix4.[[012]]|aix4.[[012]].*)
3708         # We only want to do this on AIX 4.2 and lower, the check
3709         # below for broken collect2 doesn't work under 4.3+
3710           collect2name=`${CC} -print-prog-name=collect2`
3711 @@ -5281,7 +5953,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3712            strings "$collect2name" | grep resolve_lib_name >/dev/null
3713           then
3714           # We have reworked collect2
3715 -         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3716 +         :
3717           else
3718           # We have old collect2
3719           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3720 @@ -5292,8 +5964,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3721           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3722           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3723           fi
3724 +         ;;
3725         esac
3726         shared_flag='-shared'
3727 +       if test "$aix_use_runtimelinking" = yes; then
3728 +         shared_flag="$shared_flag "'${wl}-G'
3729 +       fi
3730        else
3731         # not using gcc
3732         if test "$host_cpu" = ia64; then
3733 @@ -5301,11 +5977,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3734         # chokes on -Wl,-G. The following line is correct:
3735           shared_flag='-G'
3736         else
3737 -       if test "$aix_use_runtimelinking" = yes; then
3738 +         if test "$aix_use_runtimelinking" = yes; then
3739             shared_flag='${wl}-G'
3740           else
3741             shared_flag='${wl}-bM:SRE'
3742 -       fi
3743 +         fi
3744         fi
3745        fi
3746  
3747 @@ -5319,12 +5995,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3748         # Determine the default libpath from the value encoded in an empty executable.
3749         _LT_AC_SYS_LIBPATH_AIX
3750         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3751 -       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
3752 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3753         else
3754         if test "$host_cpu" = ia64; then
3755           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3756           _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3757 -         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3758 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3759         else
3760          # Determine the default libpath from the value encoded in an empty executable.
3761          _LT_AC_SYS_LIBPATH_AIX
3762 @@ -5333,13 +6009,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3763           # -berok will link without error, but may produce a broken library.
3764           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3765           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3766 -         # -bexpall does not export symbols beginning with underscore (_)
3767 -         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3768           # Exported symbols can be pulled into shared objects from archives
3769 -         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3770 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3771           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3772 -         # This is similar to how AIX traditionally builds it's shared libraries.
3773 -         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3774 +         # This is similar to how AIX traditionally builds its shared libraries.
3775 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3776         fi
3777        fi
3778        ;;
3779 @@ -5352,7 +6026,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3780        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3781        ;;
3782  
3783 -    bsdi4*)
3784 +    bsdi[[45]]*)
3785        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
3786        ;;
3787  
3788 @@ -5372,58 +6046,57 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3789        # The linker will automatically build a .lib file if we build a DLL.
3790        _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
3791        # FIXME: Should let the user specify the lib program.
3792 -      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
3793 -      fix_srcfile_path='`cygpath -w "$srcfile"`'
3794 +      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
3795 +      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
3796        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3797        ;;
3798  
3799      darwin* | rhapsody*)
3800 -    if test "$GXX" = yes ; then
3801 -      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3802 -      case "$host_os" in
3803 -      rhapsody* | darwin1.[[012]])
3804 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3805 -       ;;
3806 -      *) # Darwin 1.3 on
3807 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3808 -       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3809 -      else
3810 -        case ${MACOSX_DEPLOYMENT_TARGET} in
3811 -          10.[[012]])
3812 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3813 -            ;;
3814 -          10.*)
3815 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3816 -            ;;
3817 -        esac
3818 -      fi
3819 -       ;;
3820 +      case $host_os in
3821 +        rhapsody* | darwin1.[[012]])
3822 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3823 +         ;;
3824 +       *) # Darwin 1.3 on
3825 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3826 +           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3827 +         else
3828 +           case ${MACOSX_DEPLOYMENT_TARGET} in
3829 +             10.[[012]])
3830 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3831 +               ;;
3832 +             10.*)
3833 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3834 +               ;;
3835 +           esac
3836 +         fi
3837 +         ;;
3838        esac
3839 -       lt_int_apple_cc_single_mod=no
3840 -       output_verbose_link_cmd='echo'
3841 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3842 -         lt_int_apple_cc_single_mod=yes
3843 -       fi
3844 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3845 -         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3846 -       else
3847 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3848 -      fi
3849 -      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3850 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3851 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3852 -          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3853 -        else
3854 -          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3855 -        fi
3856 -          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3857 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3858        _LT_AC_TAGVAR(hardcode_direct, $1)=no
3859        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3860        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3861 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3862 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3863        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3864 +    if test "$GCC" = yes ; then
3865 +       output_verbose_link_cmd='echo'
3866 +        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3867 +        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3868 +        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3869 +        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3870      else
3871 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3872 +      case $cc_basename in
3873 +        xlc*)
3874 +         output_verbose_link_cmd='echo'
3875 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3876 +         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3877 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3878 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3879 +          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3880 +          ;;
3881 +       *)
3882 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3883 +          ;;
3884 +      esac
3885      fi
3886        ;;
3887  
3888 @@ -5457,7 +6130,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3889        ;;
3890  
3891      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3892 -    freebsd* | kfreebsd*-gnu)
3893 +    freebsd* | dragonfly*)
3894        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3895        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3896        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3897 @@ -5480,47 +6153,62 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3898        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3899        ;;
3900  
3901 -    hpux10* | hpux11*)
3902 +    hpux10*)
3903        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3904 -       case "$host_cpu" in
3905 -       hppa*64*|ia64*)
3906 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3907 +      else
3908 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3909 +      fi
3910 +      if test "$with_gnu_ld" = no; then
3911 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3912 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3913 +
3914 +       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3915 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3916 +
3917 +       # hardcode_minus_L: Not really in the search PATH,
3918 +       # but as the default location of the library.
3919 +       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3920 +      fi
3921 +      ;;
3922 +
3923 +    hpux11*)
3924 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3925 +       case $host_cpu in
3926 +       hppa*64*)
3927           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3928           ;;
3929 +       ia64*)
3930 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3931 +         ;;
3932         *)
3933           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3934           ;;
3935         esac
3936        else
3937 -       case "$host_cpu" in
3938 -       hppa*64*|ia64*)
3939 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
3940 +       case $host_cpu in
3941 +       hppa*64*)
3942 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3943 +         ;;
3944 +       ia64*)
3945 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3946           ;;
3947         *)
3948 -         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3949 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3950           ;;
3951         esac
3952        fi
3953        if test "$with_gnu_ld" = no; then
3954 -       case "$host_cpu" in
3955 -       hppa*64*)
3956 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3957 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3958 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3959 +
3960 +       case $host_cpu in
3961 +       hppa*64*|ia64*)
3962           _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3963 -         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3964 -         _LT_AC_TAGVAR(hardcode_direct, $1)=no
3965 -         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3966 -         ;;
3967 -       ia64*)
3968 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3969           _LT_AC_TAGVAR(hardcode_direct, $1)=no
3970           _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3971 -
3972 -         # hardcode_minus_L: Not really in the search PATH,
3973 -         # but as the default location of the library.
3974 -         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3975           ;;
3976         *)
3977 -         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3978 -         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3979           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3980           _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3981  
3982 @@ -5544,7 +6232,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3983        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3984        ;;
3985  
3986 -    netbsd*)
3987 +    netbsd* | netbsdelf*-gnu)
3988        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3989         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3990        else
3991 @@ -5564,23 +6252,28 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
3992        ;;
3993  
3994      openbsd*)
3995 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3996 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3997 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3998 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3999 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4000 -       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4001 +      if test -f /usr/libexec/ld.so; then
4002 +       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4003 +       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4004 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4005 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4006 +         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4007 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4008 +         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4009 +       else
4010 +         case $host_os in
4011 +          openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4012 +            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4013 +            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4014 +            ;;
4015 +          *)
4016 +            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4017 +            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4018 +            ;;
4019 +         esac
4020 +        fi
4021        else
4022 -       case $host_os in
4023 -        openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4024 -          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4025 -          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4026 -          ;;
4027 -        *)
4028 -          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4029 -          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4030 -          ;;
4031 -       esac
4032 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
4033        fi
4034        ;;
4035  
4036 @@ -5613,7 +6306,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
4037         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4038         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4039         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4040 -       $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'
4041 +       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
4042  
4043         # Both c and cxx compiler support -rpath directly
4044         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4045 @@ -5621,21 +6314,15 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
4046        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4047        ;;
4048  
4049 -    sco3.2v5*)
4050 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4051 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4052 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4053 -      runpath_var=LD_RUN_PATH
4054 -      hardcode_runpath_var=yes
4055 -      ;;
4056 -
4057      solaris*)
4058        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4059        if test "$GCC" = yes; then
4060 +       wlarc='${wl}'
4061         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4062         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4063           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4064        else
4065 +       wlarc=''
4066         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4067         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4068         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4069 @@ -5644,8 +6331,17 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
4070        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4071        case $host_os in
4072        solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4073 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4074 -       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
4075 +      *)
4076 +       # The compiler driver will combine and reorder linker options,
4077 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
4078 +       # but is careful enough not to reorder.
4079 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
4080 +       if test "$GCC" = yes; then
4081 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4082 +       else
4083 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4084 +       fi
4085 +       ;;
4086        esac
4087        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4088        ;;
4089 @@ -5702,36 +6398,45 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
4090        fi
4091        ;;
4092  
4093 -    sysv4.2uw2*)
4094 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4095 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4096 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4097 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4098 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4099 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4100        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4101 -      hardcode_runpath_var=yes
4102 -      runpath_var=LD_RUN_PATH
4103 -      ;;
4104 +      runpath_var='LD_RUN_PATH'
4105  
4106 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
4107 -      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
4108        if test "$GCC" = yes; then
4109 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4110 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4111 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4112        else
4113 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4114 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4115 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4116        fi
4117 -      runpath_var='LD_RUN_PATH'
4118 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4119        ;;
4120  
4121 -    sysv5*)
4122 -      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4123 -      # $CC -shared without GNU ld will not create a library from C++
4124 -      # object files and a static libstdc++, better avoid it by now
4125 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4126 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4127 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4128 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4129 +    sysv5* | sco3.2v5* | sco5v6*)
4130 +      # Note: We can NOT use -z defs as we might desire, because we do not
4131 +      # link with -lc, and that would cause any symbols used from libc to
4132 +      # always be unresolved, which means just about no library would
4133 +      # ever link correctly.  If we're not using GNU ld we use -z text
4134 +      # though, which does catch some bad symbols but isn't as heavy-handed
4135 +      # as -z defs.
4136 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4137 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4138 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4139        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4140 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4141 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4142 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4143 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4144        runpath_var='LD_RUN_PATH'
4145 +
4146 +      if test "$GCC" = yes; then
4147 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4148 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4149 +      else
4150 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4151 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4152 +      fi
4153        ;;
4154  
4155      uts4*)
4156 @@ -5749,11 +6454,6 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
4157  AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4158  test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4159  
4160 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4161 -if test "$GCC" = yes; then
4162 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4163 -fi
4164 -
4165  #
4166  # Do we need to explicitly link libc?
4167  #
4168 @@ -5773,7 +6473,7 @@ x|xyes)
4169        # to ld, don't add -lc before -lgcc.
4170        AC_MSG_CHECKING([whether -lc should be explicitly linked in])
4171        $rm conftest*
4172 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
4173 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4174  
4175        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
4176          soname=conftest
4177 @@ -5781,6 +6481,7 @@ x|xyes)
4178          libobjs=conftest.$ac_objext
4179          deplibs=
4180          wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4181 +       pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4182          compiler_flags=-v
4183          linker_flags=-v
4184          verstring=
4185 @@ -5875,6 +6576,30 @@ AC_DEFUN([LT_AC_PROG_RC],
4186  [AC_CHECK_TOOL(RC, windres, no)
4187  ])
4188  
4189 +
4190 +# Cheap backport of AS_EXECUTABLE_P and required macros
4191 +# from Autoconf 2.59; we should not use $as_executable_p directly.
4192 +
4193 +# _AS_TEST_PREPARE
4194 +# ----------------
4195 +m4_ifndef([_AS_TEST_PREPARE],
4196 +[m4_defun([_AS_TEST_PREPARE],
4197 +[if test -x / >/dev/null 2>&1; then
4198 +  as_executable_p='test -x'
4199 +else
4200 +  as_executable_p='test -f'
4201 +fi
4202 +])])# _AS_TEST_PREPARE
4203 +
4204 +# AS_EXECUTABLE_P
4205 +# ---------------
4206 +# Check whether a file is executable.
4207 +m4_ifndef([AS_EXECUTABLE_P],
4208 +[m4_defun([AS_EXECUTABLE_P],
4209 +[AS_REQUIRE([_AS_TEST_PREPARE])dnl
4210 +$as_executable_p $1[]dnl
4211 +])])# AS_EXECUTABLE_P
4212 +
4213  # NOTE: This macro has been submitted for inclusion into   #
4214  #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
4215  #  a released version of Autoconf we should remove this    #
4216 @@ -5895,18 +6620,19 @@ do
4217    test -z "$as_dir" && as_dir=.
4218    for lt_ac_prog in sed gsed; do
4219      for ac_exec_ext in '' $ac_executable_extensions; do
4220 -      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4221 +      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
4222          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4223        fi
4224      done
4225    done
4226  done
4227 +IFS=$as_save_IFS
4228  lt_ac_max=0
4229  lt_ac_count=0
4230  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4231  # along with /bin/sed that truncates output.
4232  for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4233 -  test ! -f $lt_ac_sed && break
4234 +  test ! -f $lt_ac_sed && continue
4235    cat /dev/null > conftest.in
4236    lt_ac_count=0
4237    echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4238 @@ -5931,28 +6657,17 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4239      fi
4240    done
4241  done
4242 -SED=$lt_cv_path_SED
4243  ])
4244 +SED=$lt_cv_path_SED
4245 +AC_SUBST([SED])
4246  AC_MSG_RESULT([$SED])
4247  ])
4248  
4249 -#                                                        -*- Autoconf -*-
4250 -# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
4251 -# Generated from amversion.in; do not edit by hand.
4252 -
4253 -# This program is free software; you can redistribute it and/or modify
4254 -# it under the terms of the GNU General Public License as published by
4255 -# the Free Software Foundation; either version 2, or (at your option)
4256 -# any later version.
4257 -
4258 -# This program is distributed in the hope that it will be useful,
4259 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4260 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4261 -# GNU General Public License for more details.
4262 -
4263 -# You should have received a copy of the GNU General Public License
4264 -# along with this program; if not, write to the Free Software
4265 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4266 +# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
4267 +#
4268 +# This file is free software; the Free Software Foundation
4269 +# gives unlimited permission to copy and/or distribute it,
4270 +# with or without modifications, as long as this notice is preserved.
4271  
4272  # AM_AUTOMAKE_VERSION(VERSION)
4273  # ----------------------------
4274 @@ -5965,26 +6680,15 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
4275  # Call AM_AUTOMAKE_VERSION so it can be traced.
4276  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
4277  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
4278 -        [AM_AUTOMAKE_VERSION([1.9.2])])
4279 -
4280 -# AM_AUX_DIR_EXPAND
4281 +        [AM_AUTOMAKE_VERSION([1.9.6])])
4282  
4283 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4284 +# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
4285  
4286 -# This program is free software; you can redistribute it and/or modify
4287 -# it under the terms of the GNU General Public License as published by
4288 -# the Free Software Foundation; either version 2, or (at your option)
4289 -# any later version.
4290 -
4291 -# This program is distributed in the hope that it will be useful,
4292 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4293 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4294 -# GNU General Public License for more details.
4295 -
4296 -# You should have received a copy of the GNU General Public License
4297 -# along with this program; if not, write to the Free Software
4298 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4299 -# 02111-1307, USA.
4300 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
4301 +#
4302 +# This file is free software; the Free Software Foundation
4303 +# gives unlimited permission to copy and/or distribute it,
4304 +# with or without modifications, as long as this notice is preserved.
4305  
4306  # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
4307  # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
4308 @@ -6031,26 +6735,16 @@ AC_PREREQ([2.50])dnl
4309  am_aux_dir=`cd $ac_aux_dir && pwd`
4310  ])
4311  
4312 -# AM_CONDITIONAL                                              -*- Autoconf -*-
4313 -
4314 -# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
4315 -
4316 -# This program is free software; you can redistribute it and/or modify
4317 -# it under the terms of the GNU General Public License as published by
4318 -# the Free Software Foundation; either version 2, or (at your option)
4319 -# any later version.
4320 +# AM_CONDITIONAL                                            -*- Autoconf -*-
4321  
4322 -# This program is distributed in the hope that it will be useful,
4323 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4324 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4325 -# GNU General Public License for more details.
4326 -
4327 -# You should have received a copy of the GNU General Public License
4328 -# along with this program; if not, write to the Free Software
4329 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4330 -# 02111-1307, USA.
4331 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
4332 +# Free Software Foundation, Inc.
4333 +#
4334 +# This file is free software; the Free Software Foundation
4335 +# gives unlimited permission to copy and/or distribute it,
4336 +# with or without modifications, as long as this notice is preserved.
4337  
4338 -# serial 6
4339 +# serial 7
4340  
4341  # AM_CONDITIONAL(NAME, SHELL-CONDITION)
4342  # -------------------------------------
4343 @@ -6074,26 +6768,15 @@ AC_CONFIG_COMMANDS_PRE(
4344  Usually this means the macro was only invoked conditionally.]])
4345  fi])])
4346  
4347 -# serial 7                                             -*- Autoconf -*-
4348  
4349 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
4350 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
4351  # Free Software Foundation, Inc.
4352 +#
4353 +# This file is free software; the Free Software Foundation
4354 +# gives unlimited permission to copy and/or distribute it,
4355 +# with or without modifications, as long as this notice is preserved.
4356  
4357 -# This program is free software; you can redistribute it and/or modify
4358 -# it under the terms of the GNU General Public License as published by
4359 -# the Free Software Foundation; either version 2, or (at your option)
4360 -# any later version.
4361 -
4362 -# This program is distributed in the hope that it will be useful,
4363 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4364 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4365 -# GNU General Public License for more details.
4366 -
4367 -# You should have received a copy of the GNU General Public License
4368 -# along with this program; if not, write to the Free Software
4369 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4370 -# 02111-1307, USA.
4371 -
4372 +# serial 8
4373  
4374  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
4375  # written in clear, in which case automake, when reading aclocal.m4,
4376 @@ -6102,7 +6785,6 @@ fi])])
4377  # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
4378  
4379  
4380 -
4381  # _AM_DEPENDENCIES(NAME)
4382  # ----------------------
4383  # See how the compiler implements dependency checking.
4384 @@ -6242,27 +6924,16 @@ AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
4385  AC_SUBST([AMDEPBACKSLASH])
4386  ])
4387  
4388 -# Generate code to set up dependency tracking.   -*- Autoconf -*-
4389 -
4390 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
4391 -#   Free Software Foundation, Inc.
4392 -
4393 -# This program is free software; you can redistribute it and/or modify
4394 -# it under the terms of the GNU General Public License as published by
4395 -# the Free Software Foundation; either version 2, or (at your option)
4396 -# any later version.
4397 -
4398 -# This program is distributed in the hope that it will be useful,
4399 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4400 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4401 -# GNU General Public License for more details.
4402 +# Generate code to set up dependency tracking.              -*- Autoconf -*-
4403  
4404 -# You should have received a copy of the GNU General Public License
4405 -# along with this program; if not, write to the Free Software
4406 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4407 -# 02111-1307, USA.
4408 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
4409 +# Free Software Foundation, Inc.
4410 +#
4411 +# This file is free software; the Free Software Foundation
4412 +# gives unlimited permission to copy and/or distribute it,
4413 +# with or without modifications, as long as this notice is preserved.
4414  
4415 -#serial 2
4416 +#serial 3
4417  
4418  # _AM_OUTPUT_DEPENDENCY_COMMANDS
4419  # ------------------------------
4420 @@ -6321,54 +6992,31 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
4421       [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
4422  ])
4423  
4424 -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
4425 -
4426 -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
4427 -
4428 -# This program is free software; you can redistribute it and/or modify
4429 -# it under the terms of the GNU General Public License as published by
4430 -# the Free Software Foundation; either version 2, or (at your option)
4431 -# any later version.
4432 -
4433 -# This program is distributed in the hope that it will be useful,
4434 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4435 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4436 -# GNU General Public License for more details.
4437 -
4438 -# You should have received a copy of the GNU General Public License
4439 -# along with this program; if not, write to the Free Software
4440 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4441 -# 02111-1307, USA.
4442 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
4443 +# Free Software Foundation, Inc.
4444 +#
4445 +# This file is free software; the Free Software Foundation
4446 +# gives unlimited permission to copy and/or distribute it,
4447 +# with or without modifications, as long as this notice is preserved.
4448  
4449 -# serial 7
4450 +# serial 8
4451  
4452  # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
4453  AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
4454  
4455 -# Do all the work for Automake.                            -*- Autoconf -*-
4456 -
4457 -# This macro actually does too much some checks are only needed if
4458 -# your package does certain things.  But this isn't really a big deal.
4459 +# Do all the work for Automake.                             -*- Autoconf -*-
4460  
4461 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4462 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
4463  # Free Software Foundation, Inc.
4464 +#
4465 +# This file is free software; the Free Software Foundation
4466 +# gives unlimited permission to copy and/or distribute it,
4467 +# with or without modifications, as long as this notice is preserved.
4468  
4469 -# This program is free software; you can redistribute it and/or modify
4470 -# it under the terms of the GNU General Public License as published by
4471 -# the Free Software Foundation; either version 2, or (at your option)
4472 -# any later version.
4473 -
4474 -# This program is distributed in the hope that it will be useful,
4475 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4476 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4477 -# GNU General Public License for more details.
4478 -
4479 -# You should have received a copy of the GNU General Public License
4480 -# along with this program; if not, write to the Free Software
4481 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4482 -# 02111-1307, USA.
4483 +# serial 12
4484  
4485 -# serial 11
4486 +# This macro actually does too much.  Some checks are only needed if
4487 +# your package does certain things.  But this isn't really a big deal.
4488  
4489  # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
4490  # AM_INIT_AUTOMAKE([OPTIONS])
4491 @@ -6470,51 +7118,27 @@ for _am_header in $config_headers :; do
4492  done
4493  echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
4494  
4495 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
4496 +#
4497 +# This file is free software; the Free Software Foundation
4498 +# gives unlimited permission to copy and/or distribute it,
4499 +# with or without modifications, as long as this notice is preserved.
4500 +
4501  # AM_PROG_INSTALL_SH
4502  # ------------------
4503  # Define $install_sh.
4504 -
4505 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4506 -
4507 -# This program is free software; you can redistribute it and/or modify
4508 -# it under the terms of the GNU General Public License as published by
4509 -# the Free Software Foundation; either version 2, or (at your option)
4510 -# any later version.
4511 -
4512 -# This program is distributed in the hope that it will be useful,
4513 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4514 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4515 -# GNU General Public License for more details.
4516 -
4517 -# You should have received a copy of the GNU General Public License
4518 -# along with this program; if not, write to the Free Software
4519 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4520 -# 02111-1307, USA.
4521 -
4522  AC_DEFUN([AM_PROG_INSTALL_SH],
4523  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
4524  install_sh=${install_sh-"$am_aux_dir/install-sh"}
4525  AC_SUBST(install_sh)])
4526  
4527 -#                                                          -*- Autoconf -*-
4528 -# Copyright (C) 2003  Free Software Foundation, Inc.
4529 -
4530 -# This program is free software; you can redistribute it and/or modify
4531 -# it under the terms of the GNU General Public License as published by
4532 -# the Free Software Foundation; either version 2, or (at your option)
4533 -# any later version.
4534 -
4535 -# This program is distributed in the hope that it will be useful,
4536 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4537 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4538 -# GNU General Public License for more details.
4539 -
4540 -# You should have received a copy of the GNU General Public License
4541 -# along with this program; if not, write to the Free Software
4542 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4543 -# 02111-1307, USA.
4544 +# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
4545 +#
4546 +# This file is free software; the Free Software Foundation
4547 +# gives unlimited permission to copy and/or distribute it,
4548 +# with or without modifications, as long as this notice is preserved.
4549  
4550 -# serial 1
4551 +# serial 2
4552  
4553  # Check whether the underlying file-system supports filenames
4554  # with a leading dot.  For instance MS-DOS doesn't.
4555 @@ -6529,28 +7153,17 @@ fi
4556  rmdir .tst 2>/dev/null
4557  AC_SUBST([am__leading_dot])])
4558  
4559 -# Add --enable-maintainer-mode option to configure.
4560 +# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
4561  # From Jim Meyering
4562  
4563 -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
4564 +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
4565  # Free Software Foundation, Inc.
4566 +#
4567 +# This file is free software; the Free Software Foundation
4568 +# gives unlimited permission to copy and/or distribute it,
4569 +# with or without modifications, as long as this notice is preserved.
4570  
4571 -# This program is free software; you can redistribute it and/or modify
4572 -# it under the terms of the GNU General Public License as published by
4573 -# the Free Software Foundation; either version 2, or (at your option)
4574 -# any later version.
4575 -
4576 -# This program is distributed in the hope that it will be useful,
4577 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4578 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4579 -# GNU General Public License for more details.
4580 -
4581 -# You should have received a copy of the GNU General Public License
4582 -# along with this program; if not, write to the Free Software
4583 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4584 -# 02111-1307, USA.
4585 -
4586 -# serial 3
4587 +# serial 4
4588  
4589  AC_DEFUN([AM_MAINTAINER_MODE],
4590  [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4591 @@ -6569,26 +7182,15 @@ AC_DEFUN([AM_MAINTAINER_MODE],
4592  
4593  AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
4594  
4595 -# Check to see how 'make' treats includes.     -*- Autoconf -*-
4596 -
4597 -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4598 -
4599 -# This program is free software; you can redistribute it and/or modify
4600 -# it under the terms of the GNU General Public License as published by
4601 -# the Free Software Foundation; either version 2, or (at your option)
4602 -# any later version.
4603 -
4604 -# This program is distributed in the hope that it will be useful,
4605 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4606 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4607 -# GNU General Public License for more details.
4608 +# Check to see how 'make' treats includes.                 -*- Autoconf -*-
4609  
4610 -# You should have received a copy of the GNU General Public License
4611 -# along with this program; if not, write to the Free Software
4612 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4613 -# 02111-1307, USA.
4614 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
4615 +#
4616 +# This file is free software; the Free Software Foundation
4617 +# gives unlimited permission to copy and/or distribute it,
4618 +# with or without modifications, as long as this notice is preserved.
4619  
4620 -# serial 2
4621 +# serial 3
4622  
4623  # AM_MAKE_INCLUDE()
4624  # -----------------
4625 @@ -6632,27 +7234,16 @@ AC_MSG_RESULT([$_am_result])
4626  rm -f confinc confmf
4627  ])
4628  
4629 -#  -*- Autoconf -*-
4630 -
4631 -
4632 -# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
4633 -
4634 -# This program is free software; you can redistribute it and/or modify
4635 -# it under the terms of the GNU General Public License as published by
4636 -# the Free Software Foundation; either version 2, or (at your option)
4637 -# any later version.
4638 -
4639 -# This program is distributed in the hope that it will be useful,
4640 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4641 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4642 -# GNU General Public License for more details.
4643 +# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
4644  
4645 -# You should have received a copy of the GNU General Public License
4646 -# along with this program; if not, write to the Free Software
4647 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4648 -# 02111-1307, USA.
4649 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
4650 +# Free Software Foundation, Inc.
4651 +#
4652 +# This file is free software; the Free Software Foundation
4653 +# gives unlimited permission to copy and/or distribute it,
4654 +# with or without modifications, as long as this notice is preserved.
4655  
4656 -# serial 3
4657 +# serial 4
4658  
4659  # AM_MISSING_PROG(NAME, PROGRAM)
4660  # ------------------------------
4661 @@ -6678,27 +7269,16 @@ else
4662  fi
4663  ])
4664  
4665 +# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
4666 +#
4667 +# This file is free software; the Free Software Foundation
4668 +# gives unlimited permission to copy and/or distribute it,
4669 +# with or without modifications, as long as this notice is preserved.
4670 +
4671  # AM_PROG_MKDIR_P
4672  # ---------------
4673  # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
4674 -
4675 -# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
4676 -
4677 -# This program is free software; you can redistribute it and/or modify
4678 -# it under the terms of the GNU General Public License as published by
4679 -# the Free Software Foundation; either version 2, or (at your option)
4680 -# any later version.
4681 -
4682 -# This program is distributed in the hope that it will be useful,
4683 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4684 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4685 -# GNU General Public License for more details.
4686 -
4687 -# You should have received a copy of the GNU General Public License
4688 -# along with this program; if not, write to the Free Software
4689 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4690 -# 02111-1307, USA.
4691 -
4692 +#
4693  # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
4694  # created by `make install' are always world readable, even if the
4695  # installer happens to have an overly restrictive umask (e.g. 077).
4696 @@ -6752,26 +7332,15 @@ else
4697  fi
4698  AC_SUBST([mkdir_p])])
4699  
4700 -# Helper functions for option handling.                    -*- Autoconf -*-
4701 -
4702 -# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
4703 -
4704 -# This program is free software; you can redistribute it and/or modify
4705 -# it under the terms of the GNU General Public License as published by
4706 -# the Free Software Foundation; either version 2, or (at your option)
4707 -# any later version.
4708 -
4709 -# This program is distributed in the hope that it will be useful,
4710 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4711 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4712 -# GNU General Public License for more details.
4713 +# Helper functions for option handling.                     -*- Autoconf -*-
4714  
4715 -# You should have received a copy of the GNU General Public License
4716 -# along with this program; if not, write to the Free Software
4717 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4718 -# 02111-1307, USA.
4719 +# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
4720 +#
4721 +# This file is free software; the Free Software Foundation
4722 +# gives unlimited permission to copy and/or distribute it,
4723 +# with or without modifications, as long as this notice is preserved.
4724  
4725 -# serial 2
4726 +# serial 3
4727  
4728  # _AM_MANGLE_OPTION(NAME)
4729  # -----------------------
4730 @@ -6796,28 +7365,16 @@ AC_DEFUN([_AM_SET_OPTIONS],
4731  AC_DEFUN([_AM_IF_OPTION],
4732  [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
4733  
4734 -#
4735 -# Check to make sure that the build environment is sane.
4736 -#
4737 -
4738 -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
4739 +# Check to make sure that the build environment is sane.    -*- Autoconf -*-
4740  
4741 -# This program is free software; you can redistribute it and/or modify
4742 -# it under the terms of the GNU General Public License as published by
4743 -# the Free Software Foundation; either version 2, or (at your option)
4744 -# any later version.
4745 -
4746 -# This program is distributed in the hope that it will be useful,
4747 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4748 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4749 -# GNU General Public License for more details.
4750 -
4751 -# You should have received a copy of the GNU General Public License
4752 -# along with this program; if not, write to the Free Software
4753 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4754 -# 02111-1307, USA.
4755 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
4756 +# Free Software Foundation, Inc.
4757 +#
4758 +# This file is free software; the Free Software Foundation
4759 +# gives unlimited permission to copy and/or distribute it,
4760 +# with or without modifications, as long as this notice is preserved.
4761  
4762 -# serial 3
4763 +# serial 4
4764  
4765  # AM_SANITY_CHECK
4766  # ---------------
4767 @@ -6860,25 +7417,14 @@ Check your system clock])
4768  fi
4769  AC_MSG_RESULT(yes)])
4770  
4771 -# AM_PROG_INSTALL_STRIP
4772 -
4773 -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4774 -
4775 -# This program is free software; you can redistribute it and/or modify
4776 -# it under the terms of the GNU General Public License as published by
4777 -# the Free Software Foundation; either version 2, or (at your option)
4778 -# any later version.
4779 -
4780 -# This program is distributed in the hope that it will be useful,
4781 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4782 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4783 -# GNU General Public License for more details.
4784 -
4785 -# You should have received a copy of the GNU General Public License
4786 -# along with this program; if not, write to the Free Software
4787 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4788 -# 02111-1307, USA.
4789 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
4790 +#
4791 +# This file is free software; the Free Software Foundation
4792 +# gives unlimited permission to copy and/or distribute it,
4793 +# with or without modifications, as long as this notice is preserved.
4794  
4795 +# AM_PROG_INSTALL_STRIP
4796 +# ---------------------
4797  # One issue with vendor `install' (even GNU) is that you can't
4798  # specify the program used to strip binaries.  This is especially
4799  # annoying in cross-compiling environments, where the build's strip
4800 @@ -6901,25 +7447,13 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])])
4801  
4802  # Check how to create a tarball.                            -*- Autoconf -*-
4803  
4804 -# Copyright (C) 2004  Free Software Foundation, Inc.
4805 -
4806 -# This program is free software; you can redistribute it and/or modify
4807 -# it under the terms of the GNU General Public License as published by
4808 -# the Free Software Foundation; either version 2, or (at your option)
4809 -# any later version.
4810 -
4811 -# This program is distributed in the hope that it will be useful,
4812 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4813 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4814 -# GNU General Public License for more details.
4815 -
4816 -# You should have received a copy of the GNU General Public License
4817 -# along with this program; if not, write to the Free Software
4818 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4819 -# 02111-1307, USA.
4820 -
4821 -# serial 1
4822 +# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
4823 +#
4824 +# This file is free software; the Free Software Foundation
4825 +# gives unlimited permission to copy and/or distribute it,
4826 +# with or without modifications, as long as this notice is preserved.
4827  
4828 +# serial 2
4829  
4830  # _AM_PROG_TAR(FORMAT)
4831  # --------------------
4832 --- ./aux/config.guess
4833 +++ ./aux/config.guess
4834 @@ -1,9 +1,10 @@
4835  #! /bin/sh
4836  # Attempt to guess a canonical system name.
4837  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4838 -#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
4839 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4840 +#   Free Software Foundation, Inc.
4841  
4842 -timestamp='2003-06-17'
4843 +timestamp='2008-01-23'
4844  
4845  # This file is free software; you can redistribute it and/or modify it
4846  # under the terms of the GNU General Public License as published by
4847 @@ -17,13 +18,15 @@ timestamp='2003-06-17'
4848  #
4849  # You should have received a copy of the GNU General Public License
4850  # along with this program; if not, write to the Free Software
4851 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4852 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
4853 +# 02110-1301, USA.
4854  #
4855  # As a special exception to the GNU General Public License, if you
4856  # distribute this file as part of a program that contains a
4857  # configuration script generated by Autoconf, you may include it under
4858  # the same distribution terms that you use for the rest of that program.
4859  
4860 +
4861  # Originally written by Per Bothner <per@bothner.com>.
4862  # Please send patches to <config-patches@gnu.org>.  Submit a context
4863  # diff and a properly formatted ChangeLog entry.
4864 @@ -53,8 +56,8 @@ version="\
4865  GNU config.guess ($timestamp)
4866  
4867  Originally written by Per Bothner.
4868 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4869 -Free Software Foundation, Inc.
4870 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
4871 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4872  
4873  This is free software; see the source for copying conditions.  There is NO
4874  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4875 @@ -66,11 +69,11 @@ Try \`$me --help' for more information."
4876  while test $# -gt 0 ; do
4877    case $1 in
4878      --time-stamp | --time* | -t )
4879 -       echo "$timestamp" ; exit 0 ;;
4880 +       echo "$timestamp" ; exit ;;
4881      --version | -v )
4882 -       echo "$version" ; exit 0 ;;
4883 +       echo "$version" ; exit ;;
4884      --help | --h* | -h )
4885 -       echo "$usage"; exit 0 ;;
4886 +       echo "$usage"; exit ;;
4887      -- )     # Stop option processing
4888         shift; break ;;
4889      - )        # Use stdin as input.
4890 @@ -104,7 +107,7 @@ set_cc_for_build='
4891  trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
4892  trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
4893  : ${TMPDIR=/tmp} ;
4894 - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
4895 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
4896   { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
4897   { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
4898   { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
4899 @@ -123,7 +126,7 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in
4900         ;;
4901   ,,*)   CC_FOR_BUILD=$CC ;;
4902   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
4903 -esac ;'
4904 +esac ; set_cc_for_build= ;'
4905  
4906  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
4907  # (ghazi@noc.rutgers.edu 1994-08-24)
4908 @@ -136,13 +139,6 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
4909  UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
4910  UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
4911  
4912 -## for Red Hat Linux
4913 -if test -f /etc/redhat-release ; then
4914 -    VENDOR=redhat ;
4915 -else
4916 -    VENDOR= ;
4917 -fi
4918 -
4919  # Note: order is significant - the case branches are not exclusive.
4920  
4921  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4922 @@ -165,6 +161,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4923             arm*) machine=arm-unknown ;;
4924             sh3el) machine=shl-unknown ;;
4925             sh3eb) machine=sh-unknown ;;
4926 +           sh5el) machine=sh5le-unknown ;;
4927             *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
4928         esac
4929         # The Operating System including object format, if it has switched
4930 @@ -203,50 +200,32 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
4931         # contains redundant information, the shorter form:
4932         # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
4933         echo "${machine}-${os}${release}"
4934 -       exit 0 ;;
4935 -    amiga:OpenBSD:*:*)
4936 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4937 -       exit 0 ;;
4938 -    arc:OpenBSD:*:*)
4939 -       echo mipsel-unknown-openbsd${UNAME_RELEASE}
4940 -       exit 0 ;;
4941 -    hp300:OpenBSD:*:*)
4942 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4943 -       exit 0 ;;
4944 -    mac68k:OpenBSD:*:*)
4945 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4946 -       exit 0 ;;
4947 -    macppc:OpenBSD:*:*)
4948 -       echo powerpc-unknown-openbsd${UNAME_RELEASE}
4949 -       exit 0 ;;
4950 -    mvme68k:OpenBSD:*:*)
4951 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4952 -       exit 0 ;;
4953 -    mvme88k:OpenBSD:*:*)
4954 -       echo m88k-unknown-openbsd${UNAME_RELEASE}
4955 -       exit 0 ;;
4956 -    mvmeppc:OpenBSD:*:*)
4957 -       echo powerpc-unknown-openbsd${UNAME_RELEASE}
4958 -       exit 0 ;;
4959 -    pmax:OpenBSD:*:*)
4960 -       echo mipsel-unknown-openbsd${UNAME_RELEASE}
4961 -       exit 0 ;;
4962 -    sgi:OpenBSD:*:*)
4963 -       echo mipseb-unknown-openbsd${UNAME_RELEASE}
4964 -       exit 0 ;;
4965 -    sun3:OpenBSD:*:*)
4966 -       echo m68k-unknown-openbsd${UNAME_RELEASE}
4967 -       exit 0 ;;
4968 -    wgrisc:OpenBSD:*:*)
4969 -       echo mipsel-unknown-openbsd${UNAME_RELEASE}
4970 -       exit 0 ;;
4971 +       exit ;;
4972      *:OpenBSD:*:*)
4973 -       echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
4974 -       exit 0 ;;
4975 +       UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
4976 +       echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
4977 +       exit ;;
4978 +    *:ekkoBSD:*:*)
4979 +       echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
4980 +       exit ;;
4981 +    *:SolidBSD:*:*)
4982 +       echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
4983 +       exit ;;
4984 +    macppc:MirBSD:*:*)
4985 +       echo powerpc-unknown-mirbsd${UNAME_RELEASE}
4986 +       exit ;;
4987 +    *:MirBSD:*:*)
4988 +       echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
4989 +       exit ;;
4990      alpha:OSF1:*:*)
4991 -       if test $UNAME_RELEASE = "V4.0"; then
4992 +       case $UNAME_RELEASE in
4993 +       *4.0)
4994                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
4995 -       fi
4996 +               ;;
4997 +       *5.*)
4998 +               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
4999 +               ;;
5000 +       esac
5001         # According to Compaq, /usr/sbin/psrinfo has been available on
5002         # OSF/1 and Tru64 systems produced since 1995.  I hope that
5003         # covers most systems running today.  This code pipes the CPU
5004 @@ -284,42 +263,49 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5005             "EV7.9 (21364A)")
5006                 UNAME_MACHINE="alphaev79" ;;
5007         esac
5008 +       # A Pn.n version is a patched version.
5009         # A Vn.n version is a released version.
5010         # A Tn.n version is a released field test version.
5011         # A Xn.n version is an unreleased experimental baselevel.
5012         # 1.2 uses "1.2" for uname -r.
5013 -       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
5014 -       exit 0 ;;
5015 -    Alpha*:OpenVMS:*:*)
5016 -       echo alpha-hp-vms
5017 -       exit 0 ;;
5018 +       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
5019 +       exit ;;
5020      Alpha\ *:Windows_NT*:*)
5021         # How do we know it's Interix rather than the generic POSIX subsystem?
5022         # Should we change UNAME_MACHINE based on the output of uname instead
5023         # of the specific Alpha model?
5024         echo alpha-pc-interix
5025 -       exit 0 ;;
5026 +       exit ;;
5027      21064:Windows_NT:50:3)
5028         echo alpha-dec-winnt3.5
5029 -       exit 0 ;;
5030 +       exit ;;
5031      Amiga*:UNIX_System_V:4.0:*)
5032         echo m68k-unknown-sysv4
5033 -       exit 0;;
5034 +       exit ;;
5035      *:[Aa]miga[Oo][Ss]:*:*)
5036         echo ${UNAME_MACHINE}-unknown-amigaos
5037 -       exit 0 ;;
5038 +       exit ;;
5039      *:[Mm]orph[Oo][Ss]:*:*)
5040         echo ${UNAME_MACHINE}-unknown-morphos
5041 -       exit 0 ;;
5042 +       exit ;;
5043      *:OS/390:*:*)
5044         echo i370-ibm-openedition
5045 -       exit 0 ;;
5046 +       exit ;;
5047 +    *:z/VM:*:*)
5048 +       echo s390-ibm-zvmoe
5049 +       exit ;;
5050 +    *:OS400:*:*)
5051 +        echo powerpc-ibm-os400
5052 +       exit ;;
5053      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
5054         echo arm-acorn-riscix${UNAME_RELEASE}
5055 -       exit 0;;
5056 +       exit ;;
5057 +    arm:riscos:*:*|arm:RISCOS:*:*)
5058 +       echo arm-unknown-riscos
5059 +       exit ;;
5060      SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
5061         echo hppa1.1-hitachi-hiuxmpp
5062 -       exit 0;;
5063 +       exit ;;
5064      Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
5065         # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
5066         if test "`(/bin/universe) 2>/dev/null`" = att ; then
5067 @@ -327,32 +313,32 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5068         else
5069                 echo pyramid-pyramid-bsd
5070         fi
5071 -       exit 0 ;;
5072 +       exit ;;
5073      NILE*:*:*:dcosx)
5074         echo pyramid-pyramid-svr4
5075 -       exit 0 ;;
5076 +       exit ;;
5077      DRS?6000:unix:4.0:6*)
5078         echo sparc-icl-nx6
5079 -       exit 0 ;;
5080 -    DRS?6000:UNIX_SV:4.2*:7*)
5081 +       exit ;;
5082 +    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
5083         case `/usr/bin/uname -p` in
5084 -           sparc) echo sparc-icl-nx7 && exit 0 ;;
5085 +           sparc) echo sparc-icl-nx7; exit ;;
5086         esac ;;
5087      sun4H:SunOS:5.*:*)
5088         echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5089 -       exit 0 ;;
5090 +       exit ;;
5091      sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
5092         echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5093 -       exit 0 ;;
5094 -    i86pc:SunOS:5.*:*)
5095 +       exit ;;
5096 +    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
5097         echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5098 -       exit 0 ;;
5099 +       exit ;;
5100      sun4*:SunOS:6*:*)
5101         # According to config.sub, this is the proper way to canonicalize
5102         # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
5103         # it's likely to be more like Solaris than SunOS4.
5104         echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5105 -       exit 0 ;;
5106 +       exit ;;
5107      sun4*:SunOS:*:*)
5108         case "`/usr/bin/arch -k`" in
5109             Series*|S4*)
5110 @@ -361,10 +347,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5111         esac
5112         # Japanese Language versions have a version number like `4.1.3-JL'.
5113         echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
5114 -       exit 0 ;;
5115 +       exit ;;
5116      sun3*:SunOS:*:*)
5117         echo m68k-sun-sunos${UNAME_RELEASE}
5118 -       exit 0 ;;
5119 +       exit ;;
5120      sun*:*:4.2BSD:*)
5121         UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
5122         test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
5123 @@ -376,10 +362,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5124                 echo sparc-sun-sunos${UNAME_RELEASE}
5125                 ;;
5126         esac
5127 -       exit 0 ;;
5128 +       exit ;;
5129      aushp:SunOS:*:*)
5130         echo sparc-auspex-sunos${UNAME_RELEASE}
5131 -       exit 0 ;;
5132 +       exit ;;
5133      # The situation for MiNT is a little confusing.  The machine name
5134      # can be virtually everything (everything which is not
5135      # "atarist" or "atariste" at least should have a processor
5136 @@ -390,37 +376,40 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5137      # be no problem.
5138      atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
5139          echo m68k-atari-mint${UNAME_RELEASE}
5140 -       exit 0 ;;
5141 +       exit ;;
5142      atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
5143         echo m68k-atari-mint${UNAME_RELEASE}
5144 -        exit 0 ;;
5145 +        exit ;;
5146      *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
5147          echo m68k-atari-mint${UNAME_RELEASE}
5148 -       exit 0 ;;
5149 +       exit ;;
5150      milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
5151          echo m68k-milan-mint${UNAME_RELEASE}
5152 -        exit 0 ;;
5153 +        exit ;;
5154      hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
5155          echo m68k-hades-mint${UNAME_RELEASE}
5156 -        exit 0 ;;
5157 +        exit ;;
5158      *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
5159          echo m68k-unknown-mint${UNAME_RELEASE}
5160 -        exit 0 ;;
5161 +        exit ;;
5162 +    m68k:machten:*:*)
5163 +       echo m68k-apple-machten${UNAME_RELEASE}
5164 +       exit ;;
5165      powerpc:machten:*:*)
5166         echo powerpc-apple-machten${UNAME_RELEASE}
5167 -       exit 0 ;;
5168 +       exit ;;
5169      RISC*:Mach:*:*)
5170         echo mips-dec-mach_bsd4.3
5171 -       exit 0 ;;
5172 +       exit ;;
5173      RISC*:ULTRIX:*:*)
5174         echo mips-dec-ultrix${UNAME_RELEASE}
5175 -       exit 0 ;;
5176 +       exit ;;
5177      VAX*:ULTRIX*:*:*)
5178         echo vax-dec-ultrix${UNAME_RELEASE}
5179 -       exit 0 ;;
5180 +       exit ;;
5181      2020:CLIX:*:* | 2430:CLIX:*:*)
5182         echo clipper-intergraph-clix${UNAME_RELEASE}
5183 -       exit 0 ;;
5184 +       exit ;;
5185      mips:*:*:UMIPS | mips:*:*:RISCos)
5186         eval $set_cc_for_build
5187         sed 's/^        //' << EOF >$dummy.c
5188 @@ -444,32 +433,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5189           exit (-1);
5190         }
5191  EOF
5192 -       $CC_FOR_BUILD -o $dummy $dummy.c \
5193 -         && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
5194 -         && exit 0
5195 +       $CC_FOR_BUILD -o $dummy $dummy.c &&
5196 +         dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
5197 +         SYSTEM_NAME=`$dummy $dummyarg` &&
5198 +           { echo "$SYSTEM_NAME"; exit; }
5199         echo mips-mips-riscos${UNAME_RELEASE}
5200 -       exit 0 ;;
5201 +       exit ;;
5202      Motorola:PowerMAX_OS:*:*)
5203         echo powerpc-motorola-powermax
5204 -       exit 0 ;;
5205 +       exit ;;
5206      Motorola:*:4.3:PL8-*)
5207         echo powerpc-harris-powermax
5208 -       exit 0 ;;
5209 +       exit ;;
5210      Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
5211         echo powerpc-harris-powermax
5212 -       exit 0 ;;
5213 +       exit ;;
5214      Night_Hawk:Power_UNIX:*:*)
5215         echo powerpc-harris-powerunix
5216 -       exit 0 ;;
5217 +       exit ;;
5218      m88k:CX/UX:7*:*)
5219         echo m88k-harris-cxux7
5220 -       exit 0 ;;
5221 +       exit ;;
5222      m88k:*:4*:R4*)
5223         echo m88k-motorola-sysv4
5224 -       exit 0 ;;
5225 +       exit ;;
5226      m88k:*:3*:R3*)
5227         echo m88k-motorola-sysv3
5228 -       exit 0 ;;
5229 +       exit ;;
5230      AViiON:dgux:*:*)
5231          # DG/UX returns AViiON for all architectures
5232          UNAME_PROCESSOR=`/usr/bin/uname -p`
5233 @@ -485,29 +475,29 @@ EOF
5234         else
5235             echo i586-dg-dgux${UNAME_RELEASE}
5236         fi
5237 -       exit 0 ;;
5238 +       exit ;;
5239      M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
5240         echo m88k-dolphin-sysv3
5241 -       exit 0 ;;
5242 +       exit ;;
5243      M88*:*:R3*:*)
5244         # Delta 88k system running SVR3
5245         echo m88k-motorola-sysv3
5246 -       exit 0 ;;
5247 +       exit ;;
5248      XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
5249         echo m88k-tektronix-sysv3
5250 -       exit 0 ;;
5251 +       exit ;;
5252      Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
5253         echo m68k-tektronix-bsd
5254 -       exit 0 ;;
5255 +       exit ;;
5256      *:IRIX*:*:*)
5257         echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
5258 -       exit 0 ;;
5259 +       exit ;;
5260      ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
5261 -       echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
5262 -       exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
5263 +       echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
5264 +       exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
5265      i*86:AIX:*:*)
5266         echo i386-ibm-aix
5267 -       exit 0 ;;
5268 +       exit ;;
5269      ia64:AIX:*:*)
5270         if [ -x /usr/bin/oslevel ] ; then
5271                 IBM_REV=`/usr/bin/oslevel`
5272 @@ -515,7 +505,7 @@ EOF
5273                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5274         fi
5275         echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
5276 -       exit 0 ;;
5277 +       exit ;;
5278      *:AIX:2:3)
5279         if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
5280                 eval $set_cc_for_build
5281 @@ -530,15 +520,19 @@ EOF
5282                         exit(0);
5283                         }
5284  EOF
5285 -               $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
5286 -               echo rs6000-ibm-aix3.2.5
5287 +               if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
5288 +               then
5289 +                       echo "$SYSTEM_NAME"
5290 +               else
5291 +                       echo rs6000-ibm-aix3.2.5
5292 +               fi
5293         elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
5294                 echo rs6000-ibm-aix3.2.4
5295         else
5296                 echo rs6000-ibm-aix3.2
5297         fi
5298 -       exit 0 ;;
5299 -    *:AIX:*:[45])
5300 +       exit ;;
5301 +    *:AIX:*:[456])
5302         IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
5303         if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
5304                 IBM_ARCH=rs6000
5305 @@ -551,28 +545,28 @@ EOF
5306                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5307         fi
5308         echo ${IBM_ARCH}-ibm-aix${IBM_REV}
5309 -       exit 0 ;;
5310 +       exit ;;
5311      *:AIX:*:*)
5312         echo rs6000-ibm-aix
5313 -       exit 0 ;;
5314 +       exit ;;
5315      ibmrt:4.4BSD:*|romp-ibm:BSD:*)
5316         echo romp-ibm-bsd4.4
5317 -       exit 0 ;;
5318 +       exit ;;
5319      ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
5320         echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
5321 -       exit 0 ;;                           # report: romp-ibm BSD 4.3
5322 +       exit ;;                             # report: romp-ibm BSD 4.3
5323      *:BOSX:*:*)
5324         echo rs6000-bull-bosx
5325 -       exit 0 ;;
5326 +       exit ;;
5327      DPX/2?00:B.O.S.:*:*)
5328         echo m68k-bull-sysv3
5329 -       exit 0 ;;
5330 +       exit ;;
5331      9000/[34]??:4.3bsd:1.*:*)
5332         echo m68k-hp-bsd
5333 -       exit 0 ;;
5334 +       exit ;;
5335      hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
5336         echo m68k-hp-bsd4.4
5337 -       exit 0 ;;
5338 +       exit ;;
5339      9000/[34678]??:HP-UX:*:*)
5340         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
5341         case "${UNAME_MACHINE}" in
5342 @@ -634,9 +628,19 @@ EOF
5343         esac
5344         if [ ${HP_ARCH} = "hppa2.0w" ]
5345         then
5346 -           # avoid double evaluation of $set_cc_for_build
5347 -           test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
5348 -           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
5349 +           eval $set_cc_for_build
5350 +
5351 +           # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
5352 +           # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
5353 +           # generating 64-bit code.  GNU and HP use different nomenclature:
5354 +           #
5355 +           # $ CC_FOR_BUILD=cc ./config.guess
5356 +           # => hppa2.0w-hp-hpux11.23
5357 +           # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
5358 +           # => hppa64-hp-hpux11.23
5359 +
5360 +           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
5361 +               grep __LP64__ >/dev/null
5362             then
5363                 HP_ARCH="hppa2.0w"
5364             else
5365 @@ -644,11 +648,11 @@ EOF
5366             fi
5367         fi
5368         echo ${HP_ARCH}-hp-hpux${HPUX_REV}
5369 -       exit 0 ;;
5370 +       exit ;;
5371      ia64:HP-UX:*:*)
5372         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
5373         echo ia64-hp-hpux${HPUX_REV}
5374 -       exit 0 ;;
5375 +       exit ;;
5376      3050*:HI-UX:*:*)
5377         eval $set_cc_for_build
5378         sed 's/^        //' << EOF >$dummy.c
5379 @@ -676,150 +680,192 @@ EOF
5380           exit (0);
5381         }
5382  EOF
5383 -       $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
5384 +       $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
5385 +               { echo "$SYSTEM_NAME"; exit; }
5386         echo unknown-hitachi-hiuxwe2
5387 -       exit 0 ;;
5388 +       exit ;;
5389      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
5390         echo hppa1.1-hp-bsd
5391 -       exit 0 ;;
5392 +       exit ;;
5393      9000/8??:4.3bsd:*:*)
5394         echo hppa1.0-hp-bsd
5395 -       exit 0 ;;
5396 +       exit ;;
5397      *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
5398         echo hppa1.0-hp-mpeix
5399 -       exit 0 ;;
5400 +       exit ;;
5401      hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
5402         echo hppa1.1-hp-osf
5403 -       exit 0 ;;
5404 +       exit ;;
5405      hp8??:OSF1:*:*)
5406         echo hppa1.0-hp-osf
5407 -       exit 0 ;;
5408 +       exit ;;
5409      i*86:OSF1:*:*)
5410         if [ -x /usr/sbin/sysversion ] ; then
5411             echo ${UNAME_MACHINE}-unknown-osf1mk
5412         else
5413             echo ${UNAME_MACHINE}-unknown-osf1
5414         fi
5415 -       exit 0 ;;
5416 +       exit ;;
5417      parisc*:Lites*:*:*)
5418         echo hppa1.1-hp-lites
5419 -       exit 0 ;;
5420 +       exit ;;
5421      C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
5422         echo c1-convex-bsd
5423 -        exit 0 ;;
5424 +        exit ;;
5425      C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
5426         if getsysinfo -f scalar_acc
5427         then echo c32-convex-bsd
5428         else echo c2-convex-bsd
5429         fi
5430 -        exit 0 ;;
5431 +        exit ;;
5432      C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
5433         echo c34-convex-bsd
5434 -        exit 0 ;;
5435 +        exit ;;
5436      C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
5437         echo c38-convex-bsd
5438 -        exit 0 ;;
5439 +        exit ;;
5440      C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
5441         echo c4-convex-bsd
5442 -        exit 0 ;;
5443 +        exit ;;
5444      CRAY*Y-MP:*:*:*)
5445         echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5446 -       exit 0 ;;
5447 +       exit ;;
5448      CRAY*[A-Z]90:*:*:*)
5449         echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
5450         | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
5451               -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
5452               -e 's/\.[^.]*$/.X/'
5453 -       exit 0 ;;
5454 +       exit ;;
5455      CRAY*TS:*:*:*)
5456         echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5457 -       exit 0 ;;
5458 +       exit ;;
5459      CRAY*T3E:*:*:*)
5460         echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5461 -       exit 0 ;;
5462 +       exit ;;
5463      CRAY*SV1:*:*:*)
5464         echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5465 -       exit 0 ;;
5466 +       exit ;;
5467      *:UNICOS/mp:*:*)
5468 -       echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
5469 -       exit 0 ;;
5470 +       echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
5471 +       exit ;;
5472      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
5473         FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
5474          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
5475          FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
5476          echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
5477 -        exit 0 ;;
5478 +        exit ;;
5479 +    5000:UNIX_System_V:4.*:*)
5480 +        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
5481 +        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
5482 +        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
5483 +       exit ;;
5484      i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
5485         echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
5486 -       exit 0 ;;
5487 +       exit ;;
5488      sparc*:BSD/OS:*:*)
5489         echo sparc-unknown-bsdi${UNAME_RELEASE}
5490 -       exit 0 ;;
5491 +       exit ;;
5492      *:BSD/OS:*:*)
5493         echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
5494 -       exit 0 ;;
5495 -    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
5496 -       # Determine whether the default compiler uses glibc.
5497 -       eval $set_cc_for_build
5498 -       sed 's/^        //' << EOF >$dummy.c
5499 -       #include <features.h>
5500 -       #if __GLIBC__ >= 2
5501 -       LIBC=gnu
5502 -       #else
5503 -       LIBC=
5504 -       #endif
5505 -EOF
5506 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
5507 -       echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
5508 -       exit 0 ;;
5509 +       exit ;;
5510 +    *:FreeBSD:*:*)
5511 +       case ${UNAME_MACHINE} in
5512 +           pc98)
5513 +               echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5514 +           amd64)
5515 +               echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5516 +           *)
5517 +               echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
5518 +       esac
5519 +       exit ;;
5520      i*:CYGWIN*:*)
5521         echo ${UNAME_MACHINE}-pc-cygwin
5522 -       exit 0 ;;
5523 -    i*:MINGW*:*)
5524 +       exit ;;
5525 +    *:MINGW*:*)
5526         echo ${UNAME_MACHINE}-pc-mingw32
5527 -       exit 0 ;;
5528 +       exit ;;
5529 +    i*:windows32*:*)
5530 +       # uname -m includes "-pc" on this system.
5531 +       echo ${UNAME_MACHINE}-mingw32
5532 +       exit ;;
5533      i*:PW*:*)
5534         echo ${UNAME_MACHINE}-pc-pw32
5535 -       exit 0 ;;
5536 -    x86:Interix*:[34]*)
5537 -       echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
5538 -       exit 0 ;;
5539 +       exit ;;
5540 +    *:Interix*:[3456]*)
5541 +       case ${UNAME_MACHINE} in
5542 +           x86)
5543 +               echo i586-pc-interix${UNAME_RELEASE}
5544 +               exit ;;
5545 +           EM64T | authenticamd)
5546 +               echo x86_64-unknown-interix${UNAME_RELEASE}
5547 +               exit ;;
5548 +           IA64)
5549 +               echo ia64-unknown-interix${UNAME_RELEASE}
5550 +               exit ;;
5551 +       esac ;;
5552      [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
5553         echo i${UNAME_MACHINE}-pc-mks
5554 -       exit 0 ;;
5555 +       exit ;;
5556      i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
5557         # How do we know it's Interix rather than the generic POSIX subsystem?
5558         # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
5559         # UNAME_MACHINE based on the output of uname instead of i386?
5560         echo i586-pc-interix
5561 -       exit 0 ;;
5562 +       exit ;;
5563      i*:UWIN*:*)
5564         echo ${UNAME_MACHINE}-pc-uwin
5565 -       exit 0 ;;
5566 +       exit ;;
5567 +    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
5568 +       echo x86_64-unknown-cygwin
5569 +       exit ;;
5570      p*:CYGWIN*:*)
5571         echo powerpcle-unknown-cygwin
5572 -       exit 0 ;;
5573 +       exit ;;
5574      prep*:SunOS:5.*:*)
5575         echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
5576 -       exit 0 ;;
5577 +       exit ;;
5578      *:GNU:*:*)
5579 +       # the GNU system
5580         echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
5581 -       exit 0 ;;
5582 +       exit ;;
5583 +    *:GNU/*:*:*)
5584 +       # other systems with GNU libc and userland
5585 +       echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
5586 +       exit ;;
5587      i*86:Minix:*:*)
5588         echo ${UNAME_MACHINE}-pc-minix
5589 -       exit 0 ;;
5590 +       exit ;;
5591      arm*:Linux:*:*)
5592 +       eval $set_cc_for_build
5593 +       if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
5594 +           | grep -q __ARM_EABI__
5595 +       then
5596 +           echo ${UNAME_MACHINE}-unknown-linux-gnu
5597 +       else
5598 +           echo ${UNAME_MACHINE}-unknown-linux-gnueabi
5599 +       fi
5600 +       exit ;;
5601 +    avr32*:Linux:*:*)
5602         echo ${UNAME_MACHINE}-unknown-linux-gnu
5603 -       exit 0 ;;
5604 +       exit ;;
5605      cris:Linux:*:*)
5606         echo cris-axis-linux-gnu
5607 -       exit 0 ;;
5608 +       exit ;;
5609 +    crisv32:Linux:*:*)
5610 +       echo crisv32-axis-linux-gnu
5611 +       exit ;;
5612 +    frv:Linux:*:*)
5613 +       echo frv-unknown-linux-gnu
5614 +       exit ;;
5615      ia64:Linux:*:*)
5616 -       echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu
5617 -       exit 0 ;;
5618 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
5619 +       exit ;;
5620 +    m32r*:Linux:*:*)
5621 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
5622 +       exit ;;
5623      m68*:Linux:*:*)
5624         echo ${UNAME_MACHINE}-unknown-linux-gnu
5625 -       exit 0 ;;
5626 +       exit ;;
5627      mips:Linux:*:*)
5628         eval $set_cc_for_build
5629         sed 's/^        //' << EOF >$dummy.c
5630 @@ -836,8 +882,12 @@ EOF
5631         #endif
5632         #endif
5633  EOF
5634 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5635 -       test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
5636 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
5637 +           /^CPU/{
5638 +               s: ::g
5639 +               p
5640 +           }'`"
5641 +       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
5642         ;;
5643      mips64:Linux:*:*)
5644         eval $set_cc_for_build
5645 @@ -855,15 +905,22 @@ EOF
5646         #endif
5647         #endif
5648  EOF
5649 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5650 -       test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
5651 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
5652 +           /^CPU/{
5653 +               s: ::g
5654 +               p
5655 +           }'`"
5656 +       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
5657         ;;
5658 +    or32:Linux:*:*)
5659 +       echo or32-unknown-linux-gnu
5660 +       exit ;;
5661      ppc:Linux:*:*)
5662 -       echo powerpc-${VENDOR:-unknown}-linux-gnu
5663 -       exit 0 ;;
5664 +       echo powerpc-unknown-linux-gnu
5665 +       exit ;;
5666      ppc64:Linux:*:*)
5667 -       echo powerpc64-${VENDOR:-unknown}-linux-gnu
5668 -       exit 0 ;;
5669 +       echo powerpc64-unknown-linux-gnu
5670 +       exit ;;
5671      alpha:Linux:*:*)
5672         case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
5673           EV5)   UNAME_MACHINE=alphaev5 ;;
5674 @@ -877,7 +934,7 @@ EOF
5675         objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
5676         if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
5677         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
5678 -       exit 0 ;;
5679 +       exit ;;
5680      parisc:Linux:*:* | hppa:Linux:*:*)
5681         # Look for CPU level
5682         case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
5683 @@ -885,25 +942,31 @@ EOF
5684           PA8*) echo hppa2.0-unknown-linux-gnu ;;
5685           *)    echo hppa-unknown-linux-gnu ;;
5686         esac
5687 -       exit 0 ;;
5688 +       exit ;;
5689      parisc64:Linux:*:* | hppa64:Linux:*:*)
5690         echo hppa64-unknown-linux-gnu
5691 -       exit 0 ;;
5692 +       exit ;;
5693      s390:Linux:*:* | s390x:Linux:*:*)
5694 -       echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu
5695 -       exit 0 ;;
5696 +       echo ${UNAME_MACHINE}-ibm-linux
5697 +       exit ;;
5698      sh64*:Linux:*:*)
5699         echo ${UNAME_MACHINE}-unknown-linux-gnu
5700 -       exit 0 ;;
5701 +       exit ;;
5702      sh*:Linux:*:*)
5703         echo ${UNAME_MACHINE}-unknown-linux-gnu
5704 -       exit 0 ;;
5705 +       exit ;;
5706      sparc:Linux:*:* | sparc64:Linux:*:*)
5707         echo ${UNAME_MACHINE}-unknown-linux-gnu
5708 -       exit 0 ;;
5709 +       exit ;;
5710 +    vax:Linux:*:*)
5711 +       echo ${UNAME_MACHINE}-dec-linux-gnu
5712 +       exit ;;
5713      x86_64:Linux:*:*)
5714 -       echo x86_64-${VENDOR:-unknown}-linux-gnu
5715 -       exit 0 ;;
5716 +       echo x86_64-unknown-linux-gnu
5717 +       exit ;;
5718 +    xtensa*:Linux:*:*)
5719 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
5720 +       exit ;;
5721      i*86:Linux:*:*)
5722         # The BFD linker knows what the default object file format is, so
5723         # first see if it will tell us. cd to the root directory to prevent
5724 @@ -921,15 +984,15 @@ EOF
5725                 ;;
5726           a.out-i386-linux)
5727                 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
5728 -               exit 0 ;;
5729 +               exit ;;
5730           coff-i386)
5731                 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
5732 -               exit 0 ;;
5733 +               exit ;;
5734           "")
5735                 # Either a pre-BFD a.out linker (linux-gnuoldld) or
5736                 # one that does not give us useful --help.
5737                 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
5738 -               exit 0 ;;
5739 +               exit ;;
5740         esac
5741         # Determine whether the default compiler is a.out or elf
5742         eval $set_cc_for_build
5743 @@ -946,23 +1009,33 @@ EOF
5744         LIBC=gnulibc1
5745         # endif
5746         #else
5747 -       #ifdef __INTEL_COMPILER
5748 +       #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
5749         LIBC=gnu
5750         #else
5751         LIBC=gnuaout
5752         #endif
5753         #endif
5754 +       #ifdef __dietlibc__
5755 +       LIBC=dietlibc
5756 +       #endif
5757  EOF
5758 -       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
5759 -       test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0
5760 -       test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
5761 +       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
5762 +           /^LIBC/{
5763 +               s: ::g
5764 +               p
5765 +           }'`"
5766 +       test x"${LIBC}" != x && {
5767 +               echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
5768 +               exit
5769 +       }
5770 +       test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
5771         ;;
5772      i*86:DYNIX/ptx:4*:*)
5773         # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
5774         # earlier versions are messed up and put the nodename in both
5775         # sysname and nodename.
5776         echo i386-sequent-sysv4
5777 -       exit 0 ;;
5778 +       exit ;;
5779      i*86:UNIX_SV:4.2MP:2.*)
5780          # Unixware is an offshoot of SVR4, but it has its own version
5781          # number series starting with 2...
5782 @@ -970,24 +1043,27 @@ EOF
5783         # I just have to hope.  -- rms.
5784          # Use sysv4.2uw... so that sysv4* matches it.
5785         echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
5786 -       exit 0 ;;
5787 +       exit ;;
5788      i*86:OS/2:*:*)
5789         # If we were able to find `uname', then EMX Unix compatibility
5790         # is probably installed.
5791         echo ${UNAME_MACHINE}-pc-os2-emx
5792 -       exit 0 ;;
5793 +       exit ;;
5794      i*86:XTS-300:*:STOP)
5795         echo ${UNAME_MACHINE}-unknown-stop
5796 -       exit 0 ;;
5797 +       exit ;;
5798      i*86:atheos:*:*)
5799         echo ${UNAME_MACHINE}-unknown-atheos
5800 -       exit 0 ;;
5801 +       exit ;;
5802 +    i*86:syllable:*:*)
5803 +       echo ${UNAME_MACHINE}-pc-syllable
5804 +       exit ;;
5805      i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
5806         echo i386-unknown-lynxos${UNAME_RELEASE}
5807 -       exit 0 ;;
5808 +       exit ;;
5809      i*86:*DOS:*:*)
5810         echo ${UNAME_MACHINE}-pc-msdosdjgpp
5811 -       exit 0 ;;
5812 +       exit ;;
5813      i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
5814         UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
5815         if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
5816 @@ -995,15 +1071,16 @@ EOF
5817         else
5818                 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
5819         fi
5820 -       exit 0 ;;
5821 -    i*86:*:5:[78]*)
5822 +       exit ;;
5823 +    i*86:*:5:[678]*)
5824 +       # UnixWare 7.x, OpenUNIX and OpenServer 6.
5825         case `/bin/uname -X | grep "^Machine"` in
5826             *486*)           UNAME_MACHINE=i486 ;;
5827             *Pentium)        UNAME_MACHINE=i586 ;;
5828             *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
5829         esac
5830         echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
5831 -       exit 0 ;;
5832 +       exit ;;
5833      i*86:*:3.2:*)
5834         if test -f /usr/options/cb.name; then
5835                 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
5836 @@ -1021,73 +1098,73 @@ EOF
5837         else
5838                 echo ${UNAME_MACHINE}-pc-sysv32
5839         fi
5840 -       exit 0 ;;
5841 +       exit ;;
5842      pc:*:*:*)
5843         # Left here for compatibility:
5844          # uname -m prints for DJGPP always 'pc', but it prints nothing about
5845          # the processor, so we play safe by assuming i386.
5846         echo i386-pc-msdosdjgpp
5847 -        exit 0 ;;
5848 +        exit ;;
5849      Intel:Mach:3*:*)
5850         echo i386-pc-mach3
5851 -       exit 0 ;;
5852 +       exit ;;
5853      paragon:*:*:*)
5854         echo i860-intel-osf1
5855 -       exit 0 ;;
5856 +       exit ;;
5857      i860:*:4.*:*) # i860-SVR4
5858         if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
5859           echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
5860         else # Add other i860-SVR4 vendors below as they are discovered.
5861           echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
5862         fi
5863 -       exit 0 ;;
5864 +       exit ;;
5865      mini*:CTIX:SYS*5:*)
5866         # "miniframe"
5867         echo m68010-convergent-sysv
5868 -       exit 0 ;;
5869 +       exit ;;
5870      mc68k:UNIX:SYSTEM5:3.51m)
5871         echo m68k-convergent-sysv
5872 -       exit 0 ;;
5873 +       exit ;;
5874      M680?0:D-NIX:5.3:*)
5875         echo m68k-diab-dnix
5876 -       exit 0 ;;
5877 -    M68*:*:R3V[567]*:*)
5878 -       test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
5879 -    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)
5880 +       exit ;;
5881 +    M68*:*:R3V[5678]*:*)
5882 +       test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
5883 +    3[345]??:*: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 | S7501*:*:4.0:3.0)
5884         OS_REL=''
5885         test -r /etc/.relid \
5886         && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
5887         /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5888 -         && echo i486-ncr-sysv4.3${OS_REL} && exit 0
5889 +         && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
5890         /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
5891 -         && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
5892 +         && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
5893      3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
5894          /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
5895 -          && echo i486-ncr-sysv4 && exit 0 ;;
5896 +          && { echo i486-ncr-sysv4; exit; } ;;
5897      m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
5898         echo m68k-unknown-lynxos${UNAME_RELEASE}
5899 -       exit 0 ;;
5900 +       exit ;;
5901      mc68030:UNIX_System_V:4.*:*)
5902         echo m68k-atari-sysv4
5903 -       exit 0 ;;
5904 +       exit ;;
5905      TSUNAMI:LynxOS:2.*:*)
5906         echo sparc-unknown-lynxos${UNAME_RELEASE}
5907 -       exit 0 ;;
5908 +       exit ;;
5909      rs6000:LynxOS:2.*:*)
5910         echo rs6000-unknown-lynxos${UNAME_RELEASE}
5911 -       exit 0 ;;
5912 +       exit ;;
5913      PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
5914         echo powerpc-unknown-lynxos${UNAME_RELEASE}
5915 -       exit 0 ;;
5916 +       exit ;;
5917      SM[BE]S:UNIX_SV:*:*)
5918         echo mips-dde-sysv${UNAME_RELEASE}
5919 -       exit 0 ;;
5920 +       exit ;;
5921      RM*:ReliantUNIX-*:*:*)
5922         echo mips-sni-sysv4
5923 -       exit 0 ;;
5924 +       exit ;;
5925      RM*:SINIX-*:*:*)
5926         echo mips-sni-sysv4
5927 -       exit 0 ;;
5928 +       exit ;;
5929      *:SINIX-*:*:*)
5930         if uname -p 2>/dev/null >/dev/null ; then
5931                 UNAME_MACHINE=`(uname -p) 2>/dev/null`
5932 @@ -1095,68 +1172,81 @@ EOF
5933         else
5934                 echo ns32k-sni-sysv
5935         fi
5936 -       exit 0 ;;
5937 +       exit ;;
5938      PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
5939                        # says <Richard.M.Bartel@ccMail.Census.GOV>
5940          echo i586-unisys-sysv4
5941 -        exit 0 ;;
5942 +        exit ;;
5943      *:UNIX_System_V:4*:FTX*)
5944         # From Gerald Hewes <hewes@openmarket.com>.
5945         # How about differentiating between stratus architectures? -djm
5946         echo hppa1.1-stratus-sysv4
5947 -       exit 0 ;;
5948 +       exit ;;
5949      *:*:*:FTX*)
5950         # From seanf@swdc.stratus.com.
5951         echo i860-stratus-sysv4
5952 -       exit 0 ;;
5953 +       exit ;;
5954 +    i*86:VOS:*:*)
5955 +       # From Paul.Green@stratus.com.
5956 +       echo ${UNAME_MACHINE}-stratus-vos
5957 +       exit ;;
5958      *:VOS:*:*)
5959         # From Paul.Green@stratus.com.
5960         echo hppa1.1-stratus-vos
5961 -       exit 0 ;;
5962 +       exit ;;
5963      mc68*:A/UX:*:*)
5964         echo m68k-apple-aux${UNAME_RELEASE}
5965 -       exit 0 ;;
5966 +       exit ;;
5967      news*:NEWS-OS:6*:*)
5968         echo mips-sony-newsos6
5969 -       exit 0 ;;
5970 +       exit ;;
5971      R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
5972         if [ -d /usr/nec ]; then
5973                 echo mips-nec-sysv${UNAME_RELEASE}
5974         else
5975                 echo mips-unknown-sysv${UNAME_RELEASE}
5976         fi
5977 -        exit 0 ;;
5978 +        exit ;;
5979      BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
5980         echo powerpc-be-beos
5981 -       exit 0 ;;
5982 +       exit ;;
5983      BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
5984         echo powerpc-apple-beos
5985 -       exit 0 ;;
5986 +       exit ;;
5987      BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
5988         echo i586-pc-beos
5989 -       exit 0 ;;
5990 +       exit ;;
5991      SX-4:SUPER-UX:*:*)
5992         echo sx4-nec-superux${UNAME_RELEASE}
5993 -       exit 0 ;;
5994 +       exit ;;
5995      SX-5:SUPER-UX:*:*)
5996         echo sx5-nec-superux${UNAME_RELEASE}
5997 -       exit 0 ;;
5998 +       exit ;;
5999      SX-6:SUPER-UX:*:*)
6000         echo sx6-nec-superux${UNAME_RELEASE}
6001 -       exit 0 ;;
6002 +       exit ;;
6003 +    SX-7:SUPER-UX:*:*)
6004 +       echo sx7-nec-superux${UNAME_RELEASE}
6005 +       exit ;;
6006 +    SX-8:SUPER-UX:*:*)
6007 +       echo sx8-nec-superux${UNAME_RELEASE}
6008 +       exit ;;
6009 +    SX-8R:SUPER-UX:*:*)
6010 +       echo sx8r-nec-superux${UNAME_RELEASE}
6011 +       exit ;;
6012      Power*:Rhapsody:*:*)
6013         echo powerpc-apple-rhapsody${UNAME_RELEASE}
6014 -       exit 0 ;;
6015 +       exit ;;
6016      *:Rhapsody:*:*)
6017         echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
6018 -       exit 0 ;;
6019 +       exit ;;
6020      *:Darwin:*:*)
6021 -       case `uname -p` in
6022 -           *86) UNAME_PROCESSOR=i686 ;;
6023 -           powerpc) UNAME_PROCESSOR=powerpc ;;
6024 +       UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
6025 +       case $UNAME_PROCESSOR in
6026 +           unknown) UNAME_PROCESSOR=powerpc ;;
6027         esac
6028         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
6029 -       exit 0 ;;
6030 +       exit ;;
6031      *:procnto*:*:* | *:QNX:[0123456789]*:*)
6032         UNAME_PROCESSOR=`uname -p`
6033         if test "$UNAME_PROCESSOR" = "x86"; then
6034 @@ -1164,22 +1254,25 @@ EOF
6035                 UNAME_MACHINE=pc
6036         fi
6037         echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
6038 -       exit 0 ;;
6039 +       exit ;;
6040      *:QNX:*:4*)
6041         echo i386-pc-qnx
6042 -       exit 0 ;;
6043 -    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
6044 +       exit ;;
6045 +    NSE-?:NONSTOP_KERNEL:*:*)
6046 +       echo nse-tandem-nsk${UNAME_RELEASE}
6047 +       exit ;;
6048 +    NSR-?:NONSTOP_KERNEL:*:*)
6049         echo nsr-tandem-nsk${UNAME_RELEASE}
6050 -       exit 0 ;;
6051 +       exit ;;
6052      *:NonStop-UX:*:*)
6053         echo mips-compaq-nonstopux
6054 -       exit 0 ;;
6055 +       exit ;;
6056      BS2000:POSIX*:*:*)
6057         echo bs2000-siemens-sysv
6058 -       exit 0 ;;
6059 +       exit ;;
6060      DS/*:UNIX_System_V:*:*)
6061         echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
6062 -       exit 0 ;;
6063 +       exit ;;
6064      *:Plan9:*:*)
6065         # "uname -m" is not consistent, so use $cputype instead. 386
6066         # is converted to i386 for consistency with other x86
6067 @@ -1190,28 +1283,47 @@ EOF
6068             UNAME_MACHINE="$cputype"
6069         fi
6070         echo ${UNAME_MACHINE}-unknown-plan9
6071 -       exit 0 ;;
6072 +       exit ;;
6073      *:TOPS-10:*:*)
6074         echo pdp10-unknown-tops10
6075 -       exit 0 ;;
6076 +       exit ;;
6077      *:TENEX:*:*)
6078         echo pdp10-unknown-tenex
6079 -       exit 0 ;;
6080 +       exit ;;
6081      KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
6082         echo pdp10-dec-tops20
6083 -       exit 0 ;;
6084 +       exit ;;
6085      XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
6086         echo pdp10-xkl-tops20
6087 -       exit 0 ;;
6088 +       exit ;;
6089      *:TOPS-20:*:*)
6090         echo pdp10-unknown-tops20
6091 -       exit 0 ;;
6092 +       exit ;;
6093      *:ITS:*:*)
6094         echo pdp10-unknown-its
6095 -       exit 0 ;;
6096 +       exit ;;
6097      SEI:*:*:SEIUX)
6098          echo mips-sei-seiux${UNAME_RELEASE}
6099 -       exit 0 ;;
6100 +       exit ;;
6101 +    *:DragonFly:*:*)
6102 +       echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
6103 +       exit ;;
6104 +    *:*VMS:*:*)
6105 +       UNAME_MACHINE=`(uname -p) 2>/dev/null`
6106 +       case "${UNAME_MACHINE}" in
6107 +           A*) echo alpha-dec-vms ; exit ;;
6108 +           I*) echo ia64-dec-vms ; exit ;;
6109 +           V*) echo vax-dec-vms ; exit ;;
6110 +       esac ;;
6111 +    *:XENIX:*:SysV)
6112 +       echo i386-pc-xenix
6113 +       exit ;;
6114 +    i*86:skyos:*:*)
6115 +       echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
6116 +       exit ;;
6117 +    i*86:rdos:*:*)
6118 +       echo ${UNAME_MACHINE}-pc-rdos
6119 +       exit ;;
6120  esac
6121  
6122  #echo '(No uname command or uname output not recognized.)' 1>&2
6123 @@ -1243,7 +1355,7 @@ main ()
6124  #endif
6125  
6126  #if defined (__arm) && defined (__acorn) && defined (__unix)
6127 -  printf ("arm-acorn-riscix"); exit (0);
6128 +  printf ("arm-acorn-riscix\n"); exit (0);
6129  #endif
6130  
6131  #if defined (hp300) && !defined (hpux)
6132 @@ -1332,11 +1444,12 @@ main ()
6133  }
6134  EOF
6135  
6136 -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
6137 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
6138 +       { echo "$SYSTEM_NAME"; exit; }
6139  
6140  # Apollos put the system type in the environment.
6141  
6142 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
6143 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
6144  
6145  # Convex versions that predate uname can use getsysinfo(1)
6146  
6147 @@ -1345,22 +1458,22 @@ then
6148      case `getsysinfo -f cpu_type` in
6149      c1*)
6150         echo c1-convex-bsd
6151 -       exit 0 ;;
6152 +       exit ;;
6153      c2*)
6154         if getsysinfo -f scalar_acc
6155         then echo c32-convex-bsd
6156         else echo c2-convex-bsd
6157         fi
6158 -       exit 0 ;;
6159 +       exit ;;
6160      c34*)
6161         echo c34-convex-bsd
6162 -       exit 0 ;;
6163 +       exit ;;
6164      c38*)
6165         echo c38-convex-bsd
6166 -       exit 0 ;;
6167 +       exit ;;
6168      c4*)
6169         echo c4-convex-bsd
6170 -       exit 0 ;;
6171 +       exit ;;
6172      esac
6173  fi
6174  
6175 @@ -1371,7 +1484,9 @@ This script, last modified $timestamp, has failed to recognize
6176  the operating system you are using. It is advised that you
6177  download the most up to date version of the config scripts from
6178  
6179 -    ftp://ftp.gnu.org/pub/gnu/config/
6180 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
6181 +and
6182 +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
6183  
6184  If the version you run ($0) is already up to date, please
6185  send the following data and any information you think might be
6186 --- ./aux/config.sub
6187 +++ ./aux/config.sub
6188 @@ -1,9 +1,10 @@
6189  #! /bin/sh
6190  # Configuration validation subroutine script.
6191  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6192 -#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
6193 +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
6194 +#   Free Software Foundation, Inc.
6195  
6196 -timestamp='2003-06-18'
6197 +timestamp='2008-01-16'
6198  
6199  # This file is (in principle) common to ALL GNU software.
6200  # The presence of a machine in this file suggests that SOME GNU software
6201 @@ -21,14 +22,15 @@ timestamp='2003-06-18'
6202  #
6203  # You should have received a copy of the GNU General Public License
6204  # along with this program; if not, write to the Free Software
6205 -# Foundation, Inc., 59 Temple Place - Suite 330,
6206 -# Boston, MA 02111-1307, USA.
6207 -
6208 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
6209 +# 02110-1301, USA.
6210 +#
6211  # As a special exception to the GNU General Public License, if you
6212  # distribute this file as part of a program that contains a
6213  # configuration script generated by Autoconf, you may include it under
6214  # the same distribution terms that you use for the rest of that program.
6215  
6216 +
6217  # Please send patches to <config-patches@gnu.org>.  Submit a context
6218  # diff and a properly formatted ChangeLog entry.
6219  #
6220 @@ -70,8 +72,8 @@ Report bugs and patches to <config-patches@gnu.org>."
6221  version="\
6222  GNU config.sub ($timestamp)
6223  
6224 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
6225 -Free Software Foundation, Inc.
6226 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
6227 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6228  
6229  This is free software; see the source for copying conditions.  There is NO
6230  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
6231 @@ -83,11 +85,11 @@ Try \`$me --help' for more information."
6232  while test $# -gt 0 ; do
6233    case $1 in
6234      --time-stamp | --time* | -t )
6235 -       echo "$timestamp" ; exit 0 ;;
6236 +       echo "$timestamp" ; exit ;;
6237      --version | -v )
6238 -       echo "$version" ; exit 0 ;;
6239 +       echo "$version" ; exit ;;
6240      --help | --h* | -h )
6241 -       echo "$usage"; exit 0 ;;
6242 +       echo "$usage"; exit ;;
6243      -- )     # Stop option processing
6244         shift; break ;;
6245      - )        # Use stdin as input.
6246 @@ -99,7 +101,7 @@ while test $# -gt 0 ; do
6247      *local*)
6248         # First pass through any local machine types.
6249         echo $1
6250 -       exit 0;;
6251 +       exit ;;
6252  
6253      * )
6254         break ;;
6255 @@ -118,7 +120,9 @@ esac
6256  # Here we must recognize all the valid KERNEL-OS combinations.
6257  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
6258  case $maybe_os in
6259 -  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
6260 +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
6261 +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
6262 +  storm-chaos* | os2-emx* | rtmk-nova*)
6263      os=-$maybe_os
6264      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
6265      ;;
6266 @@ -144,7 +148,7 @@ case $os in
6267         -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
6268         -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
6269         -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
6270 -       -apple | -axis)
6271 +       -apple | -axis | -knuth | -cray)
6272                 os=
6273                 basic_machine=$1
6274                 ;;
6275 @@ -169,6 +173,10 @@ case $os in
6276         -hiux*)
6277                 os=-hiuxwe2
6278                 ;;
6279 +       -sco6)
6280 +               os=-sco5v6
6281 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6282 +               ;;
6283         -sco5)
6284                 os=-sco3.2v5
6285                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6286 @@ -185,6 +193,10 @@ case $os in
6287                 # Don't forget version if it is 3.2v4 or newer.
6288                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6289                 ;;
6290 +       -sco5v6*)
6291 +               # Don't forget version if it is 3.2v4 or newer.
6292 +               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6293 +               ;;
6294         -sco*)
6295                 os=-sco3.2v2
6296                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6297 @@ -228,14 +240,17 @@ case $basic_machine in
6298         | a29k \
6299         | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
6300         | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
6301 -       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
6302 +       | am33_2.0 \
6303 +       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
6304 +       | bfin \
6305         | c4x | clipper \
6306         | d10v | d30v | dlx | dsp16xx \
6307 -       | fr30 | frv \
6308 +       | fido | fr30 | frv \
6309         | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
6310         | i370 | i860 | i960 | ia64 \
6311 -       | ip2k \
6312 -       | m32r | m68000 | m68k | m88k | mcore \
6313 +       | ip2k | iq2000 \
6314 +       | m32c | m32r | m32rle | m68000 | m68k | m88k \
6315 +       | maxq | mb | microblaze | mcore | mep \
6316         | mips | mipsbe | mipseb | mipsel | mipsle \
6317         | mips16 \
6318         | mips64 | mips64el \
6319 @@ -244,28 +259,33 @@ case $basic_machine in
6320         | mips64vr4100 | mips64vr4100el \
6321         | mips64vr4300 | mips64vr4300el \
6322         | mips64vr5000 | mips64vr5000el \
6323 +       | mips64vr5900 | mips64vr5900el \
6324         | mipsisa32 | mipsisa32el \
6325         | mipsisa32r2 | mipsisa32r2el \
6326         | mipsisa64 | mipsisa64el \
6327 +       | mipsisa64r2 | mipsisa64r2el \
6328         | mipsisa64sb1 | mipsisa64sb1el \
6329         | mipsisa64sr71k | mipsisa64sr71kel \
6330         | mipstx39 | mipstx39el \
6331         | mn10200 | mn10300 \
6332 +       | mt \
6333         | msp430 \
6334 +       | nios | nios2 \
6335         | ns16k | ns32k \
6336 -       | openrisc | or32 \
6337 +       | or32 \
6338         | pdp10 | pdp11 | pj | pjl \
6339         | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
6340         | pyramid \
6341 -       | s390 | s390x \
6342 -       | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
6343 +       | score \
6344 +       | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
6345         | sh64 | sh64le \
6346 -       | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
6347 -       | strongarm \
6348 +       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
6349 +       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
6350 +       | spu | strongarm \
6351         | tahoe | thumb | tic4x | tic80 | tron \
6352         | v850 | v850e \
6353         | we32k \
6354 -       | x86 | xscale | xstormy16 | xtensa \
6355 +       | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
6356         | z8k)
6357                 basic_machine=$basic_machine-unknown
6358                 ;;
6359 @@ -276,6 +296,9 @@ case $basic_machine in
6360                 ;;
6361         m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
6362                 ;;
6363 +       ms1)
6364 +               basic_machine=mt-unknown
6365 +               ;;
6366  
6367         # We use `pc' rather than `unknown'
6368         # because (1) that's what they normally are, and
6369 @@ -295,20 +318,20 @@ case $basic_machine in
6370         | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
6371         | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
6372         | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
6373 -       | avr-* \
6374 -       | bs2000-* \
6375 +       | avr-* | avr32-* \
6376 +       | bfin-* | bs2000-* \
6377         | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
6378 -       | clipper-* | cydra-* \
6379 +       | clipper-* | craynv-* | cydra-* \
6380         | d10v-* | d30v-* | dlx-* \
6381         | elxsi-* \
6382 -       | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
6383 +       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
6384         | h8300-* | h8500-* \
6385         | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
6386         | i*86-* | i860-* | i960-* | ia64-* \
6387 -       | ip2k-* \
6388 -       | m32r-* \
6389 +       | ip2k-* | iq2000-* \
6390 +       | m32c-* | m32r-* | m32rle-* \
6391         | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
6392 -       | m88110-* | m88k-* | mcore-* \
6393 +       | m88110-* | m88k-* | maxq-* | mcore-* \
6394         | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
6395         | mips16-* \
6396         | mips64-* | mips64el-* \
6397 @@ -317,34 +340,43 @@ case $basic_machine in
6398         | mips64vr4100-* | mips64vr4100el-* \
6399         | mips64vr4300-* | mips64vr4300el-* \
6400         | mips64vr5000-* | mips64vr5000el-* \
6401 +       | mips64vr5900-* | mips64vr5900el-* \
6402         | mipsisa32-* | mipsisa32el-* \
6403         | mipsisa32r2-* | mipsisa32r2el-* \
6404         | mipsisa64-* | mipsisa64el-* \
6405 +       | mipsisa64r2-* | mipsisa64r2el-* \
6406         | mipsisa64sb1-* | mipsisa64sb1el-* \
6407         | mipsisa64sr71k-* | mipsisa64sr71kel-* \
6408         | mipstx39-* | mipstx39el-* \
6409 +       | mmix-* \
6410 +       | mt-* \
6411         | msp430-* \
6412 -       | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
6413 +       | nios-* | nios2-* \
6414 +       | none-* | np1-* | ns16k-* | ns32k-* \
6415         | orion-* \
6416         | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
6417         | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
6418         | pyramid-* \
6419         | romp-* | rs6000-* \
6420 -       | s390-* | s390x-* \
6421 -       | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
6422 +       | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
6423         | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
6424 -       | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
6425 -       | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
6426 +       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
6427 +       | sparclite-* \
6428 +       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
6429         | tahoe-* | thumb-* \
6430         | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
6431         | tron-* \
6432         | v850-* | v850e-* | vax-* \
6433         | we32k-* \
6434 -       | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
6435 -       | xtensa-* \
6436 +       | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
6437 +       | xstormy16-* | xtensa*-* \
6438         | ymp-* \
6439         | z8k-*)
6440                 ;;
6441 +       # Recognize the basic CPU types without company name, with glob match.
6442 +       xtensa*)
6443 +               basic_machine=$basic_machine-unknown
6444 +               ;;
6445         # Recognize the various machine names and aliases which stand
6446         # for a CPU type and a company and sometimes even an OS.
6447         386bsd)
6448 @@ -361,6 +393,9 @@ case $basic_machine in
6449                 basic_machine=a29k-amd
6450                 os=-udi
6451                 ;;
6452 +       abacus)
6453 +               basic_machine=abacus-unknown
6454 +               ;;
6455         adobe68k)
6456                 basic_machine=m68010-adobe
6457                 os=-scout
6458 @@ -378,6 +413,9 @@ case $basic_machine in
6459         amd64)
6460                 basic_machine=x86_64-pc
6461                 ;;
6462 +       amd64-*)
6463 +               basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
6464 +               ;;
6465         amdahl)
6466                 basic_machine=580-amdahl
6467                 os=-sysv
6468 @@ -409,6 +447,14 @@ case $basic_machine in
6469                 basic_machine=ns32k-sequent
6470                 os=-dynix
6471                 ;;
6472 +       blackfin)
6473 +               basic_machine=bfin-unknown
6474 +               os=-linux
6475 +               ;;
6476 +       blackfin-*)
6477 +               basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
6478 +               os=-linux
6479 +               ;;
6480         c90)
6481                 basic_machine=c90-cray
6482                 os=-unicos
6483 @@ -437,12 +483,27 @@ case $basic_machine in
6484                 basic_machine=j90-cray
6485                 os=-unicos
6486                 ;;
6487 +       craynv)
6488 +               basic_machine=craynv-cray
6489 +               os=-unicosmp
6490 +               ;;
6491 +       cr16)
6492 +               basic_machine=cr16-unknown
6493 +               os=-elf
6494 +               ;;
6495         crds | unos)
6496                 basic_machine=m68k-crds
6497                 ;;
6498 +       crisv32 | crisv32-* | etraxfs*)
6499 +               basic_machine=crisv32-axis
6500 +               ;;
6501         cris | cris-* | etrax*)
6502                 basic_machine=cris-axis
6503                 ;;
6504 +       crx)
6505 +               basic_machine=crx-unknown
6506 +               os=-elf
6507 +               ;;
6508         da30 | da30-*)
6509                 basic_machine=m68k-da30
6510                 ;;
6511 @@ -465,6 +526,10 @@ case $basic_machine in
6512                 basic_machine=m88k-motorola
6513                 os=-sysv3
6514                 ;;
6515 +       djgpp)
6516 +               basic_machine=i586-pc
6517 +               os=-msdosdjgpp
6518 +               ;;
6519         dpx20 | dpx20-*)
6520                 basic_machine=rs6000-bull
6521                 os=-bosx
6522 @@ -615,6 +680,14 @@ case $basic_machine in
6523                 basic_machine=m68k-isi
6524                 os=-sysv
6525                 ;;
6526 +       m68knommu)
6527 +               basic_machine=m68k-unknown
6528 +               os=-linux
6529 +               ;;
6530 +       m68knommu-*)
6531 +               basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
6532 +               os=-linux
6533 +               ;;
6534         m88k-omron*)
6535                 basic_machine=m88k-omron
6536                 ;;
6537 @@ -630,6 +703,10 @@ case $basic_machine in
6538                 basic_machine=i386-pc
6539                 os=-mingw32
6540                 ;;
6541 +       mingw32ce)
6542 +               basic_machine=arm-unknown
6543 +               os=-mingw32ce
6544 +               ;;
6545         miniframe)
6546                 basic_machine=m68000-convergent
6547                 ;;
6548 @@ -643,10 +720,6 @@ case $basic_machine in
6549         mips3*)
6550                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
6551                 ;;
6552 -       mmix*)
6553 -               basic_machine=mmix-knuth
6554 -               os=-mmixware
6555 -               ;;
6556         monitor)
6557                 basic_machine=m68k-rom68k
6558                 os=-coff
6559 @@ -659,6 +732,9 @@ case $basic_machine in
6560                 basic_machine=i386-pc
6561                 os=-msdos
6562                 ;;
6563 +       ms1-*)
6564 +               basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
6565 +               ;;
6566         mvs)
6567                 basic_machine=i370-ibm
6568                 os=-mvs
6569 @@ -727,10 +803,6 @@ case $basic_machine in
6570         np1)
6571                 basic_machine=np1-gould
6572                 ;;
6573 -       nv1)
6574 -               basic_machine=nv1-cray
6575 -               os=-unicosmp
6576 -               ;;
6577         nsr-tandem)
6578                 basic_machine=nsr-tandem
6579                 ;;
6580 @@ -738,9 +810,12 @@ case $basic_machine in
6581                 basic_machine=hppa1.1-oki
6582                 os=-proelf
6583                 ;;
6584 -       or32 | or32-*)
6585 +       openrisc | openrisc-*)
6586                 basic_machine=or32-unknown
6587 -               os=-coff
6588 +               ;;
6589 +       os400)
6590 +               basic_machine=powerpc-ibm
6591 +               os=-os400
6592                 ;;
6593         OSE68000 | ose68000)
6594                 basic_machine=m68000-ericsson
6595 @@ -758,6 +833,14 @@ case $basic_machine in
6596                 basic_machine=i860-intel
6597                 os=-osf
6598                 ;;
6599 +       parisc)
6600 +               basic_machine=hppa-unknown
6601 +               os=-linux
6602 +               ;;
6603 +       parisc-*)
6604 +               basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
6605 +               os=-linux
6606 +               ;;
6607         pbd)
6608                 basic_machine=sparc-tti
6609                 ;;
6610 @@ -767,6 +850,12 @@ case $basic_machine in
6611         pc532 | pc532-*)
6612                 basic_machine=ns32k-pc532
6613                 ;;
6614 +       pc98)
6615 +               basic_machine=i386-pc
6616 +               ;;
6617 +       pc98-*)
6618 +               basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
6619 +               ;;
6620         pentium | p5 | k5 | k6 | nexgen | viac3)
6621                 basic_machine=i586-pc
6622                 ;;
6623 @@ -823,6 +912,10 @@ case $basic_machine in
6624                 basic_machine=i586-unknown
6625                 os=-pw32
6626                 ;;
6627 +       rdos)
6628 +               basic_machine=i386-pc
6629 +               os=-rdos
6630 +               ;;
6631         rom68k)
6632                 basic_machine=m68k-rom68k
6633                 os=-coff
6634 @@ -833,6 +926,12 @@ case $basic_machine in
6635         rtpc | rtpc-*)
6636                 basic_machine=romp-ibm
6637                 ;;
6638 +       s390 | s390-*)
6639 +               basic_machine=s390-ibm
6640 +               ;;
6641 +       s390x | s390x-*)
6642 +               basic_machine=s390x-ibm
6643 +               ;;
6644         sa29200)
6645                 basic_machine=a29k-amd
6646                 os=-udi
6647 @@ -843,6 +942,10 @@ case $basic_machine in
6648         sb1el)
6649                 basic_machine=mipsisa64sb1el-unknown
6650                 ;;
6651 +       sde)
6652 +               basic_machine=mipsisa32-sde
6653 +               os=-elf
6654 +               ;;
6655         sei)
6656                 basic_machine=mips-sei
6657                 os=-seiux
6658 @@ -854,6 +957,9 @@ case $basic_machine in
6659                 basic_machine=sh-hitachi
6660                 os=-hms
6661                 ;;
6662 +       sh5el)
6663 +               basic_machine=sh5le-unknown
6664 +               ;;
6665         sh64)
6666                 basic_machine=sh64-unknown
6667                 ;;
6668 @@ -943,6 +1049,10 @@ case $basic_machine in
6669                 basic_machine=tic6x-unknown
6670                 os=-coff
6671                 ;;
6672 +       tile*)
6673 +               basic_machine=tile-unknown
6674 +               os=-linux-gnu
6675 +               ;;
6676         tx39)
6677                 basic_machine=mipstx39-unknown
6678                 ;;
6679 @@ -956,6 +1066,10 @@ case $basic_machine in
6680         tower | tower-32)
6681                 basic_machine=m68k-ncr
6682                 ;;
6683 +       tpf)
6684 +               basic_machine=s390x-ibm
6685 +               os=-tpf
6686 +               ;;
6687         udi29k)
6688                 basic_machine=a29k-amd
6689                 os=-udi
6690 @@ -999,6 +1113,10 @@ case $basic_machine in
6691                 basic_machine=hppa1.1-winbond
6692                 os=-proelf
6693                 ;;
6694 +       xbox)
6695 +               basic_machine=i686-pc
6696 +               os=-mingw32
6697 +               ;;
6698         xps | xps100)
6699                 basic_machine=xps100-honeywell
6700                 ;;
6701 @@ -1029,6 +1147,9 @@ case $basic_machine in
6702         romp)
6703                 basic_machine=romp-ibm
6704                 ;;
6705 +       mmix)
6706 +               basic_machine=mmix-knuth
6707 +               ;;
6708         rs6000)
6709                 basic_machine=rs6000-ibm
6710                 ;;
6711 @@ -1045,13 +1166,10 @@ case $basic_machine in
6712         we32k)
6713                 basic_machine=we32k-att
6714                 ;;
6715 -       sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
6716 +       sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
6717                 basic_machine=sh-unknown
6718                 ;;
6719 -       sh64)
6720 -               basic_machine=sh64-unknown
6721 -               ;;
6722 -       sparc | sparcv9 | sparcv9b)
6723 +       sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
6724                 basic_machine=sparc-sun
6725                 ;;
6726         cydra)
6727 @@ -1124,19 +1242,23 @@ case $os in
6728               | -aos* \
6729               | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
6730               | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
6731 -             | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
6732 -             | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
6733 +             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
6734 +             | -openbsd* | -solidbsd* \
6735 +             | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
6736 +             | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
6737               | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
6738               | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
6739               | -chorusos* | -chorusrdb* \
6740               | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
6741 -             | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
6742 +             | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
6743 +             | -uxpv* | -beos* | -mpeix* | -udk* \
6744               | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
6745               | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
6746               | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
6747               | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
6748               | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
6749 -             | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
6750 +             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
6751 +             | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
6752         # Remember, each alternative MUST END IN *, to match a version number.
6753                 ;;
6754         -qnx*)
6755 @@ -1154,12 +1276,15 @@ case $os in
6756                 os=`echo $os | sed -e 's|nto|nto-qnx|'`
6757                 ;;
6758         -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
6759 -             | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
6760 +             | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
6761               | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
6762                 ;;
6763         -mac*)
6764                 os=`echo $os | sed -e 's|mac|macos|'`
6765                 ;;
6766 +       -linux-dietlibc)
6767 +               os=-linux-dietlibc
6768 +               ;;
6769         -linux*)
6770                 os=`echo $os | sed -e 's|linux|linux-gnu|'`
6771                 ;;
6772 @@ -1172,6 +1297,9 @@ case $os in
6773         -opened*)
6774                 os=-openedition
6775                 ;;
6776 +        -os400*)
6777 +               os=-os400
6778 +               ;;
6779         -wince*)
6780                 os=-wince
6781                 ;;
6782 @@ -1193,6 +1321,9 @@ case $os in
6783         -atheos*)
6784                 os=-atheos
6785                 ;;
6786 +       -syllable*)
6787 +               os=-syllable
6788 +               ;;
6789         -386bsd)
6790                 os=-bsd
6791                 ;;
6792 @@ -1215,6 +1346,9 @@ case $os in
6793         -sinix*)
6794                 os=-sysv4
6795                 ;;
6796 +        -tpf*)
6797 +               os=-tpf
6798 +               ;;
6799         -triton*)
6800                 os=-sysv3
6801                 ;;
6802 @@ -1251,6 +1385,9 @@ case $os in
6803         -kaos*)
6804                 os=-kaos
6805                 ;;
6806 +       -zvmoe)
6807 +               os=-zvmoe
6808 +               ;;
6809         -none)
6810                 ;;
6811         *)
6812 @@ -1273,6 +1410,12 @@ else
6813  # system, and we'll never get to this point.
6814  
6815  case $basic_machine in
6816 +        score-*)
6817 +               os=-elf
6818 +               ;;
6819 +        spu-*)
6820 +               os=-elf
6821 +               ;;
6822         *-acorn)
6823                 os=-riscix1.2
6824                 ;;
6825 @@ -1282,8 +1425,8 @@ case $basic_machine in
6826         arm*-semi)
6827                 os=-aout
6828                 ;;
6829 -       c4x-* | tic4x-*)
6830 -               os=-coff
6831 +        c4x-* | tic4x-*)
6832 +               os=-coff
6833                 ;;
6834         # This must come before the *-dec entry.
6835         pdp10-*)
6836 @@ -1310,6 +1453,9 @@ case $basic_machine in
6837         m68*-cisco)
6838                 os=-aout
6839                 ;;
6840 +        mep-*)
6841 +               os=-elf
6842 +               ;;
6843         mips*-cisco)
6844                 os=-elf
6845                 ;;
6846 @@ -1328,9 +1474,15 @@ case $basic_machine in
6847         *-be)
6848                 os=-beos
6849                 ;;
6850 +       *-haiku)
6851 +               os=-haiku
6852 +               ;;
6853         *-ibm)
6854                 os=-aix
6855                 ;;
6856 +       *-knuth)
6857 +               os=-mmixware
6858 +               ;;
6859         *-wec)
6860                 os=-proelf
6861                 ;;
6862 @@ -1463,9 +1615,15 @@ case $basic_machine in
6863                         -mvs* | -opened*)
6864                                 vendor=ibm
6865                                 ;;
6866 +                       -os400*)
6867 +                               vendor=ibm
6868 +                               ;;
6869                         -ptx*)
6870                                 vendor=sequent
6871                                 ;;
6872 +                       -tpf*)
6873 +                               vendor=ibm
6874 +                               ;;
6875                         -vxsim* | -vxworks* | -windiss*)
6876                                 vendor=wrs
6877                                 ;;
6878 @@ -1490,7 +1648,7 @@ case $basic_machine in
6879  esac
6880  
6881  echo $basic_machine$os
6882 -exit 0
6883 +exit
6884  
6885  # Local variables:
6886  # eval: (add-hook 'write-file-hooks 'time-stamp)
6887 --- ./aux/ltmain.sh
6888 +++ ./aux/ltmain.sh
6889 @@ -1,8 +1,8 @@
6890  # ltmain.sh - Provide generalized library-building support services.
6891  # NOTE: Changing this file will not affect anything until you rerun configure.
6892  #
6893 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
6894 -# Free Software Foundation, Inc.
6895 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
6896 +# 2007, 2008  Free Software Foundation, Inc.
6897  # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6898  #
6899  # This program is free software; you can redistribute it and/or modify
6900 @@ -17,7 +17,7 @@
6901  #
6902  # You should have received a copy of the GNU General Public License
6903  # along with this program; if not, write to the Free Software
6904 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6905 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6906  #
6907  # As a special exception to the GNU General Public License, if you
6908  # distribute this file as part of a program that contains a
6909 @@ -33,9 +33,6 @@ basename="s,^.*/,,g"
6910  # function.
6911  progpath="$0"
6912  
6913 -# RH: define SED for historic ltconfig's generated by Libtool 1.3
6914 -[ -z "$SED" ] && SED=sed
6915 -
6916  # The name of this program:
6917  progname=`echo "$progpath" | $SED $basename`
6918  modename="$progname"
6919 @@ -46,9 +43,22 @@ EXIT_FAILURE=1
6920  
6921  PROGRAM=ltmain.sh
6922  PACKAGE=libtool
6923 -VERSION=1.5.6
6924 -TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)"
6925 -
6926 +VERSION="1.5.26 Debian 1.5.26-4"
6927 +TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
6928 +
6929 +# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
6930 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6931 +  emulate sh
6932 +  NULLCMD=:
6933 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6934 +  # is contrary to our usage.  Disable this feature.
6935 +  alias -g '${1+"$@"}'='"$@"'
6936 +  setopt NO_GLOB_SUBST
6937 +else
6938 +  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6939 +fi
6940 +BIN_SH=xpg4; export BIN_SH # for Tru64
6941 +DUALCASE=1; export DUALCASE # for MKS sh
6942  
6943  # Check that we have a working $echo.
6944  if test "X$1" = X--no-reexec; then
6945 @@ -86,14 +96,15 @@ rm="rm -f"
6946  Xsed="${SED}"' -e 1s/^X//'
6947  sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
6948  # test EBCDIC or ASCII
6949 -case `echo A|tr A '\301'` in
6950 - A) # EBCDIC based system
6951 -  SP2NL="tr '\100' '\n'"
6952 -  NL2SP="tr '\r\n' '\100\100'"
6953 +case `echo X|tr X '\101'` in
6954 + A) # ASCII based system
6955 +    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6956 +  SP2NL='tr \040 \012'
6957 +  NL2SP='tr \015\012 \040\040'
6958    ;;
6959 - *) # Assume ASCII based system
6960 -  SP2NL="tr '\040' '\012'"
6961 -  NL2SP="tr '\015\012' '\040\040'"
6962 + *) # EBCDIC based system
6963 +  SP2NL='tr \100 \n'
6964 +  NL2SP='tr \r\n \100\100'
6965    ;;
6966  esac
6967  
6968 @@ -102,16 +113,25 @@ esac
6969  # These must not be set unconditionally because not all systems understand
6970  # e.g. LANG=C (notably SCO).
6971  # We save the old values to restore during execute mode.
6972 -if test "${LC_ALL+set}" = set; then
6973 -  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
6974 -fi
6975 -if test "${LANG+set}" = set; then
6976 -  save_LANG="$LANG"; LANG=C; export LANG
6977 +lt_env=
6978 +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6979 +do
6980 +  eval "if test \"\${$lt_var+set}\" = set; then
6981 +         save_$lt_var=\$$lt_var
6982 +         lt_env=\"$lt_var=\$$lt_var \$lt_env\"
6983 +         $lt_var=C
6984 +         export $lt_var
6985 +       fi"
6986 +done
6987 +
6988 +if test -n "$lt_env"; then
6989 +  lt_env="env $lt_env"
6990  fi
6991  
6992  # Make sure IFS has a sensible default
6993 -: ${IFS="      
6994 -"}
6995 +lt_nl='
6996 +'
6997 +IFS="  $lt_nl"
6998  
6999  if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
7000    $echo "$modename: not configured to build any kind of library" 1>&2
7001 @@ -128,20 +148,62 @@ run=
7002  show="$echo"
7003  show_help=
7004  execute_dlfiles=
7005 +duplicate_deps=no
7006 +preserve_args=
7007  lo2o="s/\\.lo\$/.${objext}/"
7008  o2lo="s/\\.${objext}\$/.lo/"
7009 +extracted_archives=
7010 +extracted_serial=0
7011  
7012  #####################################
7013  # Shell function definitions:
7014  # This seems to be the best place for them
7015  
7016 +# func_mktempdir [string]
7017 +# Make a temporary directory that won't clash with other running
7018 +# libtool processes, and avoids race conditions if possible.  If
7019 +# given, STRING is the basename for that directory.
7020 +func_mktempdir ()
7021 +{
7022 +    my_template="${TMPDIR-/tmp}/${1-$progname}"
7023 +
7024 +    if test "$run" = ":"; then
7025 +      # Return a directory name, but don't create it in dry-run mode
7026 +      my_tmpdir="${my_template}-$$"
7027 +    else
7028 +
7029 +      # If mktemp works, use that first and foremost
7030 +      my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
7031 +
7032 +      if test ! -d "$my_tmpdir"; then
7033 +       # Failing that, at least try and use $RANDOM to avoid a race
7034 +       my_tmpdir="${my_template}-${RANDOM-0}$$"
7035 +
7036 +       save_mktempdir_umask=`umask`
7037 +       umask 0077
7038 +       $mkdir "$my_tmpdir"
7039 +       umask $save_mktempdir_umask
7040 +      fi
7041 +
7042 +      # If we're not in dry-run mode, bomb out on failure
7043 +      test -d "$my_tmpdir" || {
7044 +        $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
7045 +       exit $EXIT_FAILURE
7046 +      }
7047 +    fi
7048 +
7049 +    $echo "X$my_tmpdir" | $Xsed
7050 +}
7051 +
7052 +
7053  # func_win32_libid arg
7054  # return the library type of file 'arg'
7055  #
7056  # Need a lot of goo to handle *both* DLLs and import libs
7057  # Has to be a shell function in order to 'eat' the argument
7058  # that is supplied when $file_magic_command is called.
7059 -func_win32_libid () {
7060 +func_win32_libid ()
7061 +{
7062    win32_libid_type="unknown"
7063    win32_fileres=`file -L $1 2>/dev/null`
7064    case $win32_fileres in
7065 @@ -152,12 +214,17 @@ func_win32_libid () {
7066      if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
7067        $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
7068        win32_nmres=`eval $NM -f posix -A $1 | \
7069 -       sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
7070 -      if test "X$win32_nmres" = "Ximport" ; then
7071 -        win32_libid_type="x86 archive import"
7072 -      else
7073 -        win32_libid_type="x86 archive static"
7074 -      fi
7075 +       $SED -n -e '1,100{
7076 +               / I /{
7077 +                       s,.*,import,
7078 +                       p
7079 +                       q
7080 +                       }
7081 +               }'`
7082 +      case $win32_nmres in
7083 +      import*)  win32_libid_type="x86 archive import";;
7084 +      *)        win32_libid_type="x86 archive static";;
7085 +      esac
7086      fi
7087      ;;
7088    *DLL*)
7089 @@ -181,7 +248,8 @@ func_win32_libid () {
7090  # Only attempt this if the compiler in the base compile
7091  # command doesn't match the default compiler.
7092  # arg is usually of the form 'gcc ...'
7093 -func_infer_tag () {
7094 +func_infer_tag ()
7095 +{
7096      if test -n "$available_tags" && test -z "$tagname"; then
7097        CC_quoted=
7098        for arg in $CC; do
7099 @@ -238,12 +306,126 @@ func_infer_tag () {
7100        esac
7101      fi
7102  }
7103 +
7104 +
7105 +# func_extract_an_archive dir oldlib
7106 +func_extract_an_archive ()
7107 +{
7108 +    f_ex_an_ar_dir="$1"; shift
7109 +    f_ex_an_ar_oldlib="$1"
7110 +
7111 +    $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
7112 +    $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
7113 +    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
7114 +     :
7115 +    else
7116 +      $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
7117 +      exit $EXIT_FAILURE
7118 +    fi
7119 +}
7120 +
7121 +# func_extract_archives gentop oldlib ...
7122 +func_extract_archives ()
7123 +{
7124 +    my_gentop="$1"; shift
7125 +    my_oldlibs=${1+"$@"}
7126 +    my_oldobjs=""
7127 +    my_xlib=""
7128 +    my_xabs=""
7129 +    my_xdir=""
7130 +    my_status=""
7131 +
7132 +    $show "${rm}r $my_gentop"
7133 +    $run ${rm}r "$my_gentop"
7134 +    $show "$mkdir $my_gentop"
7135 +    $run $mkdir "$my_gentop"
7136 +    my_status=$?
7137 +    if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
7138 +      exit $my_status
7139 +    fi
7140 +
7141 +    for my_xlib in $my_oldlibs; do
7142 +      # Extract the objects.
7143 +      case $my_xlib in
7144 +       [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
7145 +       *) my_xabs=`pwd`"/$my_xlib" ;;
7146 +      esac
7147 +      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
7148 +      my_xlib_u=$my_xlib
7149 +      while :; do
7150 +        case " $extracted_archives " in
7151 +       *" $my_xlib_u "*)
7152 +         extracted_serial=`expr $extracted_serial + 1`
7153 +         my_xlib_u=lt$extracted_serial-$my_xlib ;;
7154 +       *) break ;;
7155 +       esac
7156 +      done
7157 +      extracted_archives="$extracted_archives $my_xlib_u"
7158 +      my_xdir="$my_gentop/$my_xlib_u"
7159 +
7160 +      $show "${rm}r $my_xdir"
7161 +      $run ${rm}r "$my_xdir"
7162 +      $show "$mkdir $my_xdir"
7163 +      $run $mkdir "$my_xdir"
7164 +      exit_status=$?
7165 +      if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
7166 +       exit $exit_status
7167 +      fi
7168 +      case $host in
7169 +      *-darwin*)
7170 +       $show "Extracting $my_xabs"
7171 +       # Do not bother doing anything if just a dry run
7172 +       if test -z "$run"; then
7173 +         darwin_orig_dir=`pwd`
7174 +         cd $my_xdir || exit $?
7175 +         darwin_archive=$my_xabs
7176 +         darwin_curdir=`pwd`
7177 +         darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
7178 +         darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
7179 +         if test -n "$darwin_arches"; then 
7180 +           darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
7181 +           darwin_arch=
7182 +           $show "$darwin_base_archive has multiple architectures $darwin_arches"
7183 +           for darwin_arch in  $darwin_arches ; do
7184 +             mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
7185 +             lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
7186 +             cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
7187 +             func_extract_an_archive "`pwd`" "${darwin_base_archive}"
7188 +             cd "$darwin_curdir"
7189 +             $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
7190 +           done # $darwin_arches
7191 +      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
7192 +           darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
7193 +           darwin_file=
7194 +           darwin_files=
7195 +           for darwin_file in $darwin_filelist; do
7196 +             darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
7197 +             lipo -create -output "$darwin_file" $darwin_files
7198 +           done # $darwin_filelist
7199 +           ${rm}r unfat-$$
7200 +           cd "$darwin_orig_dir"
7201 +         else
7202 +           cd "$darwin_orig_dir"
7203 +           func_extract_an_archive "$my_xdir" "$my_xabs"
7204 +         fi # $darwin_arches
7205 +       fi # $run
7206 +       ;;
7207 +      *)
7208 +        func_extract_an_archive "$my_xdir" "$my_xabs"
7209 +        ;;
7210 +      esac
7211 +      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
7212 +    done
7213 +    func_extract_archives_result="$my_oldobjs"
7214 +}
7215  # End of Shell function definitions
7216  #####################################
7217  
7218  # Darwin sucks
7219  eval std_shrext=\"$shrext_cmds\"
7220  
7221 +disable_libs=no
7222 +
7223  # Parse our command line options once, thoroughly.
7224  while test "$#" -gt 0
7225  do
7226 @@ -306,12 +488,13 @@ do
7227      ;;
7228  
7229    --version)
7230 -    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
7231 -    $echo
7232 -    $echo "Copyright (C) 2003  Free Software Foundation, Inc."
7233 -    $echo "This is free software; see the source for copying conditions.  There is NO"
7234 -    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7235 -    exit $EXIT_SUCCESS
7236 +    echo "\
7237 +$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
7238 +
7239 +Copyright (C) 2008  Free Software Foundation, Inc.
7240 +This is free software; see the source for copying conditions.  There is NO
7241 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7242 +    exit $?
7243      ;;
7244  
7245    --config)
7246 @@ -320,7 +503,7 @@ do
7247      for tagname in $taglist; do
7248        ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
7249      done
7250 -    exit $EXIT_SUCCESS
7251 +    exit $?
7252      ;;
7253  
7254    --debug)
7255 @@ -345,7 +528,7 @@ do
7256      else
7257        $echo "disable static libraries"
7258      fi
7259 -    exit $EXIT_SUCCESS
7260 +    exit $?
7261      ;;
7262  
7263    --finish) mode="finish" ;;
7264 @@ -360,7 +543,11 @@ do
7265      preserve_args="$preserve_args $arg"
7266      ;;
7267  
7268 -  --tag) prevopt="--tag" prev=tag ;;
7269 +  --tag)
7270 +    prevopt="--tag"
7271 +    prev=tag
7272 +    preserve_args="$preserve_args --tag"
7273 +    ;;
7274    --tag=*)
7275      set tag "$optarg" ${1+"$@"}
7276      shift
7277 @@ -392,6 +579,18 @@ if test -n "$prevopt"; then
7278    exit $EXIT_FAILURE
7279  fi
7280  
7281 +case $disable_libs in
7282 +no) 
7283 +  ;;
7284 +shared)
7285 +  build_libtool_libs=no
7286 +  build_old_libs=yes
7287 +  ;;
7288 +static)
7289 +  build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
7290 +  ;;
7291 +esac
7292 +
7293  # If this variable is set in any of the actions, the command in it
7294  # will be execed at the end.  This prevents here-documents from being
7295  # left over by shells.
7296 @@ -402,7 +601,7 @@ if test -z "$show_help"; then
7297    # Infer the operation mode.
7298    if test -z "$mode"; then
7299      $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
7300 -    $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
7301 +    $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
7302      case $nonopt in
7303      *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
7304        mode=link
7305 @@ -468,7 +667,7 @@ if test -z "$show_help"; then
7306  
7307      for arg
7308      do
7309 -      case "$arg_mode" in
7310 +      case $arg_mode in
7311        arg  )
7312         # do not "continue".  Instead, add this to base_compile
7313         lastarg="$arg"
7314 @@ -550,7 +749,10 @@ if test -z "$show_help"; then
7315        case $lastarg in
7316        # Double-quote args containing other shell metacharacters.
7317        # Many Bourne shells cannot handle close brackets correctly
7318 -      # in scan sets, so we specify it separately.
7319 +      # in scan sets, and some SunOS ksh mistreat backslash-escaping
7320 +      # in scan sets (worked around with variable expansion),
7321 +      # and furthermore cannot handle '|' '&' '(' ')' in scan sets 
7322 +      # at all, so we specify them separately.
7323        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
7324         lastarg="\"$lastarg\""
7325         ;;
7326 @@ -588,9 +790,11 @@ if test -z "$show_help"; then
7327      *.class) xform=class ;;
7328      *.cpp) xform=cpp ;;
7329      *.cxx) xform=cxx ;;
7330 -    *.f90) xform=f90 ;;
7331 +    *.[fF][09]?) xform=[fF][09]. ;;
7332      *.for) xform=for ;;
7333      *.java) xform=java ;;
7334 +    *.obj) xform=obj ;;
7335 +    *.sx) xform=sx ;;
7336      esac
7337  
7338      libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
7339 @@ -624,6 +828,14 @@ if test -z "$show_help"; then
7340        esac
7341      done
7342  
7343 +    qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
7344 +    case $qlibobj in
7345 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
7346 +       qlibobj="\"$qlibobj\"" ;;
7347 +    esac
7348 +    test "X$libobj" != "X$qlibobj" \
7349 +       && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"'  &()|`$[]' \
7350 +       && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
7351      objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
7352      xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
7353      if test "X$xdir" = "X$obj"; then
7354 @@ -696,12 +908,17 @@ compiler."
7355         $run $rm $removelist
7356         exit $EXIT_FAILURE
7357        fi
7358 -      $echo $srcfile > "$lockfile"
7359 +      $echo "$srcfile" > "$lockfile"
7360      fi
7361  
7362      if test -n "$fix_srcfile_path"; then
7363        eval srcfile=\"$fix_srcfile_path\"
7364      fi
7365 +    qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
7366 +    case $qsrcfile in
7367 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
7368 +      qsrcfile="\"$qsrcfile\"" ;;
7369 +    esac
7370  
7371      $run $rm "$libobj" "${libobj}T"
7372  
7373 @@ -723,18 +940,18 @@ EOF
7374        fbsd_hideous_sh_bug=$base_compile
7375  
7376        if test "$pic_mode" != no; then
7377 -       command="$base_compile $srcfile $pic_flag"
7378 +       command="$base_compile $qsrcfile $pic_flag"
7379        else
7380         # Don't build PIC code
7381 -       command="$base_compile $srcfile"
7382 +       command="$base_compile $qsrcfile"
7383        fi
7384  
7385        if test ! -d "${xdir}$objdir"; then
7386         $show "$mkdir ${xdir}$objdir"
7387         $run $mkdir ${xdir}$objdir
7388 -       status=$?
7389 -       if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
7390 -         exit $status
7391 +       exit_status=$?
7392 +       if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
7393 +         exit $exit_status
7394         fi
7395        fi
7396  
7397 @@ -746,7 +963,7 @@ EOF
7398        $run $rm "$lobj" "$output_obj"
7399  
7400        $show "$command"
7401 -      if $run eval "$command"; then :
7402 +      if $run eval $lt_env "$command"; then :
7403        else
7404         test -n "$output_obj" && $run $rm $removelist
7405         exit $EXIT_FAILURE
7406 @@ -806,9 +1023,9 @@ EOF
7407      if test "$build_old_libs" = yes; then
7408        if test "$pic_mode" != yes; then
7409         # Don't build PIC code
7410 -       command="$base_compile $srcfile"
7411 +       command="$base_compile $qsrcfile"
7412        else
7413 -       command="$base_compile $srcfile $pic_flag"
7414 +       command="$base_compile $qsrcfile $pic_flag"
7415        fi
7416        if test "$compiler_c_o" = yes; then
7417         command="$command -o $obj"
7418 @@ -818,7 +1035,7 @@ EOF
7419        command="$command$suppress_output"
7420        $run $rm "$obj" "$output_obj"
7421        $show "$command"
7422 -      if $run eval "$command"; then :
7423 +      if $run eval $lt_env "$command"; then :
7424        else
7425         $run $rm $removelist
7426         exit $EXIT_FAILURE
7427 @@ -937,6 +1154,7 @@ EOF
7428      no_install=no
7429      objs=
7430      non_pic_objects=
7431 +    notinst_path= # paths that contain not-installed libtool libraries
7432      precious_files_regex=
7433      prefer_static_libs=no
7434      preload=no
7435 @@ -950,6 +1168,7 @@ EOF
7436      thread_safe=no
7437      vinfo=
7438      vinfo_number=no
7439 +    single_module="${wl}-single_module"
7440  
7441      func_infer_tag $base_compile
7442  
7443 @@ -957,22 +1176,32 @@ EOF
7444      for arg
7445      do
7446        case $arg in
7447 -      -all-static | -static)
7448 -       if test "X$arg" = "X-all-static"; then
7449 +      -all-static | -static | -static-libtool-libs)
7450 +       case $arg in
7451 +       -all-static)
7452           if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
7453             $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
7454           fi
7455           if test -n "$link_static_flag"; then
7456             dlopen_self=$dlopen_self_static
7457           fi
7458 -       else
7459 +         prefer_static_libs=yes
7460 +         ;;
7461 +       -static)
7462           if test -z "$pic_flag" && test -n "$link_static_flag"; then
7463             dlopen_self=$dlopen_self_static
7464           fi
7465 -       fi
7466 +         prefer_static_libs=built
7467 +         ;;
7468 +       -static-libtool-libs)
7469 +         if test -z "$pic_flag" && test -n "$link_static_flag"; then
7470 +           dlopen_self=$dlopen_self_static
7471 +         fi
7472 +         prefer_static_libs=yes
7473 +         ;;
7474 +       esac
7475         build_libtool_libs=no
7476         build_old_libs=yes
7477 -       prefer_static_libs=yes
7478         break
7479         ;;
7480        esac
7481 @@ -1147,6 +1376,11 @@ EOF
7482                   if test -z "$pic_object" || test "$pic_object" = none ; then
7483                     arg="$non_pic_object"
7484                   fi
7485 +               else
7486 +                 # If the PIC object exists, use it instead.
7487 +                 # $xdir was prepended to $pic_object above.
7488 +                 non_pic_object="$pic_object"
7489 +                 non_pic_objects="$non_pic_objects $non_pic_object"
7490                 fi
7491               else
7492                 # Only an error if not doing a dry-run.
7493 @@ -1230,6 +1464,13 @@ EOF
7494           prev=
7495           continue
7496           ;;
7497 +       darwin_framework|darwin_framework_skip)
7498 +         test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
7499 +         compile_command="$compile_command $arg"
7500 +         finalize_command="$finalize_command $arg"
7501 +         prev=
7502 +         continue
7503 +         ;;
7504         *)
7505           eval "$prev=\"\$arg\""
7506           prev=
7507 @@ -1288,6 +1529,18 @@ EOF
7508         continue
7509         ;;
7510  
7511 +      -framework|-arch|-isysroot)
7512 +       case " $CC " in
7513 +         *" ${arg} ${1} "* | *" ${arg} ${1} "*) 
7514 +               prev=darwin_framework_skip ;;
7515 +         *) compiler_flags="$compiler_flags $arg"
7516 +            prev=darwin_framework ;;
7517 +       esac
7518 +       compile_command="$compile_command $arg"
7519 +       finalize_command="$finalize_command $arg"
7520 +       continue
7521 +       ;;
7522 +
7523        -inst-prefix-dir)
7524         prev=inst_prefix
7525         continue
7526 @@ -1314,7 +1567,8 @@ EOF
7527           absdir=`cd "$dir" && pwd`
7528           if test -z "$absdir"; then
7529             $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
7530 -           exit $EXIT_FAILURE
7531 +           absdir="$dir"
7532 +           notinst_path="$notinst_path $dir"
7533           fi
7534           dir="$absdir"
7535           ;;
7536 @@ -1328,10 +1582,15 @@ EOF
7537         esac
7538         case $host in
7539         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7540 +         testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
7541           case :$dllsearchpath: in
7542           *":$dir:"*) ;;
7543           *) dllsearchpath="$dllsearchpath:$dir";;
7544           esac
7545 +         case :$dllsearchpath: in
7546 +         *":$testbindir:"*) ;;
7547 +         *) dllsearchpath="$dllsearchpath:$testbindir";;
7548 +         esac
7549           ;;
7550         esac
7551         continue
7552 @@ -1340,15 +1599,15 @@ EOF
7553        -l*)
7554         if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7555           case $host in
7556 -         *-*-cygwin* | *-*-pw32* | *-*-beos*)
7557 +         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
7558             # These systems don't actually have a C or math library (as such)
7559             continue
7560             ;;
7561 -         *-*-mingw* | *-*-os2*)
7562 +         *-*-os2*)
7563             # These systems don't actually have a C library (as such)
7564             test "X$arg" = "X-lc" && continue
7565             ;;
7566 -         *-*-openbsd* | *-*-freebsd*)
7567 +         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7568             # Do not include libc due to us having libc/libc_r.
7569             test "X$arg" = "X-lc" && continue
7570             ;;
7571 @@ -1356,10 +1615,19 @@ EOF
7572             # Rhapsody C and math libraries are in the System framework
7573             deplibs="$deplibs -framework System"
7574             continue
7575 +           ;;
7576 +         *-*-sco3.2v5* | *-*-sco5v6*)
7577 +           # Causes problems with __ctype
7578 +           test "X$arg" = "X-lc" && continue
7579 +           ;;
7580 +         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7581 +           # Compiler inserts libc in the correct place for threads to work
7582 +           test "X$arg" = "X-lc" && continue
7583 +           ;;
7584           esac
7585         elif test "X$arg" = "X-lc_r"; then
7586          case $host in
7587 -        *-*-openbsd* | *-*-freebsd*)
7588 +        *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7589            # Do not include libc_r directly, use -pthread flag.
7590            continue
7591            ;;
7592 @@ -1369,8 +1637,25 @@ EOF
7593         continue
7594         ;;
7595  
7596 -     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
7597 -       deplibs="$deplibs $arg"
7598 +      # Tru64 UNIX uses -model [arg] to determine the layout of C++
7599 +      # classes, name mangling, and exception handling.
7600 +      -model)
7601 +       compile_command="$compile_command $arg"
7602 +       compiler_flags="$compiler_flags $arg"
7603 +       finalize_command="$finalize_command $arg"
7604 +       prev=xcompiler
7605 +       continue
7606 +       ;;
7607 +
7608 +     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
7609 +       compiler_flags="$compiler_flags $arg"
7610 +       compile_command="$compile_command $arg"
7611 +       finalize_command="$finalize_command $arg"
7612 +       continue
7613 +       ;;
7614 +
7615 +      -multi_module)
7616 +       single_module="${wl}-multi_module"
7617         continue
7618         ;;
7619  
7620 @@ -1379,13 +1664,20 @@ EOF
7621         continue
7622         ;;
7623  
7624 -      # gcc -m* arguments should be passed to the linker via $compiler_flags
7625 -      # in order to pass architecture information to the linker
7626 -      # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
7627 -      # but this is not reliable with gcc because gcc may use -mfoo to
7628 -      # select a different linker, different libraries, etc, while
7629 -      # -Wl,-mfoo simply passes -mfoo to the linker.
7630 -      -m*)
7631 +      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
7632 +      # -r[0-9][0-9]* specifies the processor on the SGI compiler
7633 +      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
7634 +      # +DA*, +DD* enable 64-bit mode on the HP compiler
7635 +      # -q* pass through compiler args for the IBM compiler
7636 +      # -m* pass through architecture-specific compiler args for GCC
7637 +      # -m*, -t[45]*, -txscale* pass through architecture-specific
7638 +      # compiler args for GCC
7639 +      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
7640 +      # -F/path gives path to uninstalled frameworks, gcc on darwin
7641 +      # @file GCC response files
7642 +      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7643 +      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
7644 +
7645         # Unknown arguments in both finalize_command and compile_command need
7646         # to be aesthetically quoted because they are evaled later.
7647         arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
7648 @@ -1396,9 +1688,7 @@ EOF
7649         esac
7650          compile_command="$compile_command $arg"
7651          finalize_command="$finalize_command $arg"
7652 -        if test "$with_gcc" = "yes" ; then
7653 -          compiler_flags="$compiler_flags $arg"
7654 -        fi
7655 +        compiler_flags="$compiler_flags $arg"
7656          continue
7657          ;;
7658  
7659 @@ -1414,9 +1704,9 @@ EOF
7660  
7661        -no-install)
7662         case $host in
7663 -       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7664 +       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
7665           # The PATH hackery in wrapper scripts is required on Windows
7666 -         # in order for the loader to find any dlls it needs.
7667 +         # and Darwin in order for the loader to find any dlls it needs.
7668           $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
7669           $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
7670           fast_install=no
7671 @@ -1475,7 +1765,7 @@ EOF
7672         continue
7673         ;;
7674  
7675 -      -static)
7676 +      -static | -static-libtool-libs)
7677         # The effects of -static are defined in a previous loop.
7678         # We used to do the same as -all-static on platforms that
7679         # didn't have a PIC flag, but the assumption that the effects
7680 @@ -1636,6 +1926,11 @@ EOF
7681             if test -z "$pic_object" || test "$pic_object" = none ; then
7682               arg="$non_pic_object"
7683             fi
7684 +         else
7685 +           # If the PIC object exists, use it instead.
7686 +           # $xdir was prepended to $pic_object above.
7687 +           non_pic_object="$pic_object"
7688 +           non_pic_objects="$non_pic_objects $non_pic_object"
7689           fi
7690         else
7691           # Only an error if not doing a dry-run.
7692 @@ -1741,9 +2036,9 @@ EOF
7693      if test ! -d "$output_objdir"; then
7694        $show "$mkdir $output_objdir"
7695        $run $mkdir $output_objdir
7696 -      status=$?
7697 -      if test "$status" -ne 0 && test ! -d "$output_objdir"; then
7698 -       exit $status
7699 +      exit_status=$?
7700 +      if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
7701 +       exit $exit_status
7702        fi
7703      fi
7704  
7705 @@ -1806,7 +2101,6 @@ EOF
7706      newlib_search_path=
7707      need_relink=no # whether we're linking any uninstalled libtool libraries
7708      notinst_deplibs= # not-installed libtool libraries
7709 -    notinst_path= # paths that contain not-installed libtool libraries
7710      case $linkmode in
7711      lib)
7712         passes="conv link"
7713 @@ -1841,7 +2135,10 @@ EOF
7714         case $pass in
7715         dlopen) libs="$dlfiles" ;;
7716         dlpreopen) libs="$dlprefiles" ;;
7717 -       link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
7718 +       link)
7719 +         libs="$deplibs %DEPLIBS%"
7720 +         test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
7721 +         ;;
7722         esac
7723        fi
7724        if test "$pass" = dlopen; then
7725 @@ -1853,12 +2150,12 @@ EOF
7726         lib=
7727         found=no
7728         case $deplib in
7729 -       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
7730 +       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
7731           if test "$linkmode,$pass" = "prog,link"; then
7732             compile_deplibs="$deplib $compile_deplibs"
7733             finalize_deplibs="$deplib $finalize_deplibs"
7734           else
7735 -           deplibs="$deplib $deplibs"
7736 +           compiler_flags="$compiler_flags $deplib"
7737           fi
7738           continue
7739           ;;
7740 @@ -1867,12 +2164,13 @@ EOF
7741             $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
7742             continue
7743           fi
7744 -         if test "$pass" = conv; then
7745 -           deplibs="$deplib $deplibs"
7746 -           continue
7747 -         fi
7748           name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
7749 -         for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
7750 +         if test "$linkmode" = lib; then
7751 +           searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
7752 +         else
7753 +           searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
7754 +         fi
7755 +         for searchdir in $searchdirs; do
7756             for search_ext in .la $std_shrext .so .a; do
7757               # Search the libtool library
7758               lib="$searchdir/lib${name}${search_ext}"
7759 @@ -1981,7 +2279,22 @@ EOF
7760           fi
7761           case $linkmode in
7762           lib)
7763 -           if test "$deplibs_check_method" != pass_all; then
7764 +           valid_a_lib=no
7765 +           case $deplibs_check_method in
7766 +             match_pattern*)
7767 +               set dummy $deplibs_check_method
7768 +               match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
7769 +               if eval $echo \"$deplib\" 2>/dev/null \
7770 +                   | $SED 10q \
7771 +                   | $EGREP "$match_pattern_regex" > /dev/null; then
7772 +                 valid_a_lib=yes
7773 +               fi
7774 +               ;;
7775 +             pass_all)
7776 +               valid_a_lib=yes
7777 +               ;;
7778 +            esac
7779 +           if test "$valid_a_lib" != yes; then
7780               $echo
7781               $echo "*** Warning: Trying to link with static lib archive $deplib."
7782               $echo "*** I have the capability to make that library automatically link in when"
7783 @@ -2031,7 +2344,7 @@ EOF
7784         esac # case $deplib
7785         if test "$found" = yes || test -f "$lib"; then :
7786         else
7787 -         $echo "$modename: cannot find the library \`$lib'" 1>&2
7788 +         $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
7789           exit $EXIT_FAILURE
7790         fi
7791  
7792 @@ -2055,6 +2368,8 @@ EOF
7793         # it will not redefine variables installed, or shouldnotlink
7794         installed=yes
7795         shouldnotlink=no
7796 +       avoidtemprpath=
7797 +
7798  
7799         # Read the .la file
7800         case $lib in
7801 @@ -2153,11 +2468,19 @@ EOF
7802             dir="$libdir"
7803             absdir="$libdir"
7804           fi
7805 +         test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
7806         else
7807 -         dir="$ladir/$objdir"
7808 -         absdir="$abs_ladir/$objdir"
7809 -         # Remove this search path later
7810 -         notinst_path="$notinst_path $abs_ladir"
7811 +         if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
7812 +           dir="$ladir"
7813 +           absdir="$abs_ladir"
7814 +           # Remove this search path later
7815 +           notinst_path="$notinst_path $abs_ladir"
7816 +         else
7817 +           dir="$ladir/$objdir"
7818 +           absdir="$abs_ladir/$objdir"
7819 +           # Remove this search path later
7820 +           notinst_path="$notinst_path $abs_ladir"
7821 +         fi
7822         fi # $installed = yes
7823         name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
7824  
7825 @@ -2228,14 +2551,16 @@ EOF
7826  
7827         if test "$linkmode,$pass" = "prog,link"; then
7828           if test -n "$library_names" &&
7829 -            { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
7830 +            { { test "$prefer_static_libs" = no ||
7831 +                test "$prefer_static_libs,$installed" = "built,yes"; } ||
7832 +              test -z "$old_library"; }; then
7833             # We need to hardcode the library path
7834 -           if test -n "$shlibpath_var"; then
7835 +           if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
7836               # Make sure the rpath contains only unique directories.
7837               case "$temp_rpath " in
7838               *" $dir "*) ;;
7839               *" $absdir "*) ;;
7840 -             *) temp_rpath="$temp_rpath $dir" ;;
7841 +             *) temp_rpath="$temp_rpath $absdir" ;;
7842               esac
7843             fi
7844  
7845 @@ -2272,8 +2597,12 @@ EOF
7846         fi
7847  
7848         link_static=no # Whether the deplib will be linked statically
7849 +       use_static_libs=$prefer_static_libs
7850 +       if test "$use_static_libs" = built && test "$installed" = yes ; then
7851 +         use_static_libs=no
7852 +       fi
7853         if test -n "$library_names" &&
7854 -          { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
7855 +          { test "$use_static_libs" = no || test -z "$old_library"; }; then
7856           if test "$installed" = no; then
7857             notinst_deplibs="$notinst_deplibs $lib"
7858             need_relink=yes
7859 @@ -2386,11 +2715,15 @@ EOF
7860               if test "$hardcode_direct" = no; then
7861                 add="$dir/$linklib"
7862                 case $host in
7863 -                 *-*-sco3.2v5* ) add_dir="-L$dir" ;;
7864 +                 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
7865 +                 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
7866 +                 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
7867 +                   *-*-unixware7*) add_dir="-L$dir" ;;
7868                   *-*-darwin* )
7869                     # if the lib is a module then we can not link against
7870                     # it, someone is ignoring the new warnings I added
7871 -                   if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
7872 +                   if /usr/bin/file -L $add 2> /dev/null |
7873 +                      $EGREP ": [^:]* bundle" >/dev/null ; then
7874                       $echo "** Warning, lib $linklib is a module, not a shared library"
7875                       if test -z "$old_library" ; then
7876                         $echo
7877 @@ -2421,7 +2754,7 @@ EOF
7878                 add_dir="-L$dir"
7879                 # Try looking first in the location we're being installed to.
7880                 if test -n "$inst_prefix_dir"; then
7881 -                 case "$libdir" in
7882 +                 case $libdir in
7883                     [\\/]*)
7884                       add_dir="$add_dir -L$inst_prefix_dir$libdir"
7885                       ;;
7886 @@ -2494,7 +2827,7 @@ EOF
7887               add_dir="-L$libdir"
7888               # Try looking first in the location we're being installed to.
7889               if test -n "$inst_prefix_dir"; then
7890 -               case "$libdir" in
7891 +               case $libdir in
7892                   [\\/]*)
7893                     add_dir="$add_dir -L$inst_prefix_dir$libdir"
7894                     ;;
7895 @@ -2555,8 +2888,6 @@ EOF
7896               fi
7897             fi
7898           else
7899 -           convenience="$convenience $dir/$old_library"
7900 -           old_convenience="$old_convenience $dir/$old_library"
7901             deplibs="$dir/$old_library $deplibs"
7902             link_static=yes
7903           fi
7904 @@ -2635,12 +2966,18 @@ EOF
7905                   # we do not want to link against static libs,
7906                   # but need to link against shared
7907                   eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7908 +                 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7909                   if test -n "$deplibrary_names" ; then
7910                     for tmp in $deplibrary_names ; do
7911                       depdepl=$tmp
7912                     done
7913 -                   if test -f "$path/$depdepl" ; then
7914 +                   if test -f "$deplibdir/$depdepl" ; then
7915 +                     depdepl="$deplibdir/$depdepl"
7916 +                   elif test -f "$path/$depdepl" ; then
7917                       depdepl="$path/$depdepl"
7918 +                   else
7919 +                     # Can't find it, oh well...
7920 +                     depdepl=
7921                     fi
7922                     # do not add paths which are already there
7923                     case " $newlib_search_path " in
7924 @@ -2674,12 +3011,12 @@ EOF
7925               *) continue ;;
7926               esac
7927               case " $deplibs " in
7928 -             *" $depdepl "*) ;;
7929 -             *) deplibs="$depdepl $deplibs" ;;
7930 +             *" $path "*) ;;
7931 +             *) deplibs="$path $deplibs" ;;
7932               esac
7933               case " $deplibs " in
7934 -             *" $path "*) ;;
7935 -             *) deplibs="$deplibs $path" ;;
7936 +             *" $depdepl "*) ;;
7937 +             *) deplibs="$depdepl $deplibs" ;;
7938               esac
7939             done
7940           fi # link_all_deplibs != no
7941 @@ -2788,9 +3125,10 @@ EOF
7942  
7943      case $linkmode in
7944      oldlib)
7945 -      if test -n "$deplibs"; then
7946 -       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
7947 -      fi
7948 +      case " $deplibs" in
7949 +      *\ -l* | *\ -L*)
7950 +       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
7951 +      esac
7952  
7953        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7954         $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
7955 @@ -2918,7 +3256,7 @@ EOF
7956           # which has an extra 1 added just for fun
7957           #
7958           case $version_type in
7959 -         darwin|linux|osf|windows)
7960 +         darwin|linux|osf|windows|none)
7961             current=`expr $number_major + $number_minor`
7962             age="$number_minor"
7963             revision="$number_revision"
7964 @@ -2929,9 +3267,15 @@ EOF
7965             age="0"
7966             ;;
7967           irix|nonstopux)
7968 -           current=`expr $number_major + $number_minor - 1`
7969 +           current=`expr $number_major + $number_minor`
7970             age="$number_minor"
7971             revision="$number_minor"
7972 +           lt_irix_increment=no
7973 +           ;;
7974 +         *)
7975 +           $echo "$modename: unknown library version type \`$version_type'" 1>&2
7976 +           $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
7977 +           exit $EXIT_FAILURE
7978             ;;
7979           esac
7980           ;;
7981 @@ -2944,27 +3288,27 @@ EOF
7982  
7983         # Check that each of the things are valid numbers.
7984         case $current in
7985 -       [0-9]*) ;;
7986 +       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7987         *)
7988 -         $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
7989 +         $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
7990           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
7991           exit $EXIT_FAILURE
7992           ;;
7993         esac
7994  
7995         case $revision in
7996 -       [0-9]*) ;;
7997 +       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7998         *)
7999 -         $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
8000 +         $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
8001           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
8002           exit $EXIT_FAILURE
8003           ;;
8004         esac
8005  
8006         case $age in
8007 -       [0-9]*) ;;
8008 +       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
8009         *)
8010 -         $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
8011 +         $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
8012           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
8013           exit $EXIT_FAILURE
8014           ;;
8015 @@ -2990,6 +3334,7 @@ EOF
8016           versuffix="$major.$age.$revision"
8017           # Darwin ld doesn't like 0 for these options...
8018           minor_current=`expr $current + 1`
8019 +         xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
8020           verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8021           ;;
8022  
8023 @@ -3004,8 +3349,11 @@ EOF
8024           ;;
8025  
8026         irix | nonstopux)
8027 -         major=`expr $current - $age + 1`
8028 -
8029 +         if test "X$lt_irix_increment" = "Xno"; then
8030 +           major=`expr $current - $age`
8031 +         else
8032 +           major=`expr $current - $age + 1`
8033 +         fi
8034           case $version_type in
8035             nonstopux) verstring_prefix=nonstopux ;;
8036             *)         verstring_prefix=sgi ;;
8037 @@ -3142,11 +3490,11 @@ EOF
8038        fi
8039  
8040        # Eliminate all temporary directories.
8041 -      for path in $notinst_path; do
8042 -       lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
8043 -       deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
8044 -       dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
8045 -      done
8046 +      #for path in $notinst_path; do
8047 +      #        lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
8048 +      #        deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
8049 +      #        dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
8050 +      #done
8051  
8052        if test -n "$xrpath"; then
8053         # If the user specified any rpath flags, then add them.
8054 @@ -3196,9 +3544,14 @@ EOF
8055           *-*-netbsd*)
8056             # Don't link with libc until the a.out ld.so is fixed.
8057             ;;
8058 -         *-*-openbsd* | *-*-freebsd*)
8059 +         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
8060             # Do not include libc due to us having libc/libc_r.
8061 -           test "X$arg" = "X-lc" && continue
8062 +           ;;
8063 +         *-*-sco3.2v5* | *-*-sco5v6*)
8064 +           # Causes problems with __ctype
8065 +           ;;
8066 +         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
8067 +           # Compiler inserts libc in the correct place for threads to work
8068             ;;
8069           *)
8070             # Add libc to deplibs on all other systems if necessary.
8071 @@ -3242,13 +3595,12 @@ EOF
8072           int main() { return 0; }
8073  EOF
8074           $rm conftest
8075 -         $LTCC -o conftest conftest.c $deplibs
8076 -         if test "$?" -eq 0 ; then
8077 +         if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
8078             ldd_output=`ldd conftest`
8079             for i in $deplibs; do
8080 -             name="`expr $i : '-l\(.*\)'`"
8081 +             name=`expr $i : '-l\(.*\)'`
8082               # If $name is empty we are operating on a -L argument.
8083 -              if test "$name" != "" && test "$name" -ne "0"; then
8084 +              if test "$name" != "" && test "$name" != "0"; then
8085                 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
8086                   case " $predeps $postdeps " in
8087                   *" $i "*)
8088 @@ -3283,13 +3635,11 @@ EOF
8089             # Error occurred in the first compile.  Let's try to salvage
8090             # the situation: Compile a separate program for each library.
8091             for i in $deplibs; do
8092 -             name="`expr $i : '-l\(.*\)'`"
8093 +             name=`expr $i : '-l\(.*\)'`
8094               # If $name is empty we are operating on a -L argument.
8095                if test "$name" != "" && test "$name" != "0"; then
8096                 $rm conftest
8097 -               $LTCC -o conftest conftest.c $i
8098 -               # Did it work?
8099 -               if test "$?" -eq 0 ; then
8100 +               if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
8101                   ldd_output=`ldd conftest`
8102                   if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
8103                     case " $predeps $postdeps " in
8104 @@ -3321,7 +3671,7 @@ EOF
8105                   droppeddeps=yes
8106                   $echo
8107                   $echo "*** Warning!  Library $i is needed by this library but I was not able to"
8108 -                 $echo "***  make it link in!  You will probably need to install it or some"
8109 +                 $echo "*** make it link in!  You will probably need to install it or some"
8110                   $echo "*** library that it depends on before this library will be fully"
8111                   $echo "*** functional.  Installing it before continuing would be even better."
8112                 fi
8113 @@ -3335,7 +3685,7 @@ EOF
8114           set dummy $deplibs_check_method
8115           file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
8116           for a_deplib in $deplibs; do
8117 -           name="`expr $a_deplib : '-l\(.*\)'`"
8118 +           name=`expr $a_deplib : '-l\(.*\)'`
8119             # If $name is empty we are operating on a -L argument.
8120              if test "$name" != "" && test  "$name" != "0"; then
8121               if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
8122 @@ -3404,7 +3754,7 @@ EOF
8123           set dummy $deplibs_check_method
8124           match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
8125           for a_deplib in $deplibs; do
8126 -           name="`expr $a_deplib : '-l\(.*\)'`"
8127 +           name=`expr $a_deplib : '-l\(.*\)'`
8128             # If $name is empty we are operating on a -L argument.
8129             if test -n "$name" && test "$name" != "0"; then
8130               if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
8131 @@ -3534,6 +3884,35 @@ EOF
8132         deplibs=$newdeplibs
8133        fi
8134  
8135 +
8136 +      # move library search paths that coincide with paths to not yet
8137 +      # installed libraries to the beginning of the library search list
8138 +      new_libs=
8139 +      for path in $notinst_path; do
8140 +       case " $new_libs " in
8141 +       *" -L$path/$objdir "*) ;;
8142 +       *)
8143 +         case " $deplibs " in
8144 +         *" -L$path/$objdir "*)
8145 +           new_libs="$new_libs -L$path/$objdir" ;;
8146 +         esac
8147 +         ;;
8148 +       esac
8149 +      done
8150 +      for deplib in $deplibs; do
8151 +       case $deplib in
8152 +       -L*)
8153 +         case " $new_libs " in
8154 +         *" $deplib "*) ;;
8155 +         *) new_libs="$new_libs $deplib" ;;
8156 +         esac
8157 +         ;;
8158 +       *) new_libs="$new_libs $deplib" ;;
8159 +       esac
8160 +      done
8161 +      deplibs="$new_libs"
8162 +
8163 +
8164        # All the library-specific variables (install_libdir is set above).
8165        library_names=
8166        old_library=
8167 @@ -3578,7 +3957,10 @@ EOF
8168              test -n "$hardcode_libdirs"; then
8169             libdir="$hardcode_libdirs"
8170             if test -n "$hardcode_libdir_flag_spec_ld"; then
8171 -             eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
8172 +             case $archive_cmds in
8173 +             *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
8174 +             *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
8175 +             esac
8176             else
8177               eval dep_rpath=\"$hardcode_libdir_flag_spec\"
8178             fi
8179 @@ -3617,6 +3999,7 @@ EOF
8180         fi
8181  
8182         lib="$output_objdir/$realname"
8183 +       linknames=
8184         for link
8185         do
8186           linknames="$linknames $link"
8187 @@ -3645,6 +4028,9 @@ EOF
8188                 # The command line is too long to execute in one step.
8189                 $show "using reloadable object file for export list..."
8190                 skipped_export=:
8191 +               # Break out early, otherwise skipped_export may be
8192 +               # set to false by a later but shorter cmd.
8193 +               break
8194               fi
8195             done
8196             IFS="$save_ifs"
8197 @@ -3678,67 +4064,13 @@ EOF
8198             eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8199           else
8200             gentop="$output_objdir/${outputname}x"
8201 -           $show "${rm}r $gentop"
8202 -           $run ${rm}r "$gentop"
8203 -           $show "$mkdir $gentop"
8204 -           $run $mkdir "$gentop"
8205 -           status=$?
8206 -           if test "$status" -ne 0 && test ! -d "$gentop"; then
8207 -             exit $status
8208 -           fi
8209             generated="$generated $gentop"
8210  
8211 -           for xlib in $convenience; do
8212 -             # Extract the objects.
8213 -             case $xlib in
8214 -             [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
8215 -             *) xabs=`pwd`"/$xlib" ;;
8216 -             esac
8217 -             xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
8218 -             xdir="$gentop/$xlib"
8219 -
8220 -             $show "${rm}r $xdir"
8221 -             $run ${rm}r "$xdir"
8222 -             $show "$mkdir $xdir"
8223 -             $run $mkdir "$xdir"
8224 -             status=$?
8225 -             if test "$status" -ne 0 && test ! -d "$xdir"; then
8226 -               exit $status
8227 -             fi
8228 -             # We will extract separately just the conflicting names and we will no
8229 -             # longer touch any unique names. It is faster to leave these extract
8230 -             # automatically by $AR in one run.
8231 -             $show "(cd $xdir && $AR x $xabs)"
8232 -             $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
8233 -             if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
8234 -               :
8235 -             else
8236 -               $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
8237 -               $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
8238 -               $AR t "$xabs" | sort | uniq -cd | while read -r count name
8239 -               do
8240 -                 i=1
8241 -                 while test "$i" -le "$count"
8242 -                 do
8243 -                  # Put our $i before any first dot (extension)
8244 -                  # Never overwrite any file
8245 -                  name_to="$name"
8246 -                  while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
8247 -                  do
8248 -                    name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
8249 -                  done
8250 -                  $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
8251 -                  $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
8252 -                  i=`expr $i + 1`
8253 -                 done
8254 -               done
8255 -             fi
8256 -
8257 -             libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
8258 -           done
8259 +           func_extract_archives $gentop $convenience
8260 +           libobjs="$libobjs $func_extract_archives_result"
8261           fi
8262         fi
8263 -
8264 +       
8265         if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8266           eval flag=\"$thread_safe_flag_spec\"
8267           linker_flags="$linker_flags $flag"
8268 @@ -3768,7 +4100,8 @@ EOF
8269           fi
8270         fi
8271  
8272 -       if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
8273 +       if test "X$skipped_export" != "X:" &&
8274 +          len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
8275            test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8276           :
8277         else
8278 @@ -3787,6 +4120,7 @@ EOF
8279             save_libobjs=$libobjs
8280           fi
8281           save_output=$output
8282 +         output_la=`$echo "X$output" | $Xsed -e "$basename"`
8283  
8284           # Clear the reloadable object creation command queue and
8285           # initialize k to one.
8286 @@ -3796,13 +4130,13 @@ EOF
8287           delfiles=
8288           last_robj=
8289           k=1
8290 -         output=$output_objdir/$save_output-${k}.$objext
8291 +         output=$output_objdir/$output_la-${k}.$objext
8292           # Loop over the list of objects to be linked.
8293           for obj in $save_libobjs
8294           do
8295             eval test_cmds=\"$reload_cmds $objlist $last_robj\"
8296             if test "X$objlist" = X ||
8297 -              { len=`expr "X$test_cmds" : ".*"` &&
8298 +              { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
8299                  test "$len" -le "$max_cmd_len"; }; then
8300               objlist="$objlist $obj"
8301             else
8302 @@ -3816,9 +4150,9 @@ EOF
8303                 # the last one created.
8304                 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
8305               fi
8306 -             last_robj=$output_objdir/$save_output-${k}.$objext
8307 +             last_robj=$output_objdir/$output_la-${k}.$objext
8308               k=`expr $k + 1`
8309 -             output=$output_objdir/$save_output-${k}.$objext
8310 +             output=$output_objdir/$output_la-${k}.$objext
8311               objlist=$obj
8312               len=1
8313             fi
8314 @@ -3838,13 +4172,13 @@ EOF
8315             eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
8316            fi
8317  
8318 -         # Set up a command to remove the reloadale object files
8319 +         # Set up a command to remove the reloadable object files
8320           # after they are used.
8321           i=0
8322           while test "$i" -lt "$k"
8323           do
8324             i=`expr $i + 1`
8325 -           delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
8326 +           delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
8327           done
8328  
8329           $echo "creating a temporary reloadable object file: $output"
8330 @@ -3892,13 +4226,30 @@ EOF
8331           IFS="$save_ifs"
8332           eval cmd=\"$cmd\"
8333           $show "$cmd"
8334 -         $run eval "$cmd" || exit $?
8335 +         $run eval "$cmd" || {
8336 +           lt_exit=$?
8337 +
8338 +           # Restore the uninstalled library and exit
8339 +           if test "$mode" = relink; then
8340 +             $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
8341 +           fi
8342 +
8343 +           exit $lt_exit
8344 +         }
8345         done
8346         IFS="$save_ifs"
8347  
8348         # Restore the uninstalled library and exit
8349         if test "$mode" = relink; then
8350           $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
8351 +
8352 +         if test -n "$convenience"; then
8353 +           if test -z "$whole_archive_flag_spec"; then
8354 +             $show "${rm}r $gentop"
8355 +             $run ${rm}r "$gentop"
8356 +           fi
8357 +         fi
8358 +
8359           exit $EXIT_SUCCESS
8360         fi
8361  
8362 @@ -3919,9 +4270,10 @@ EOF
8363        ;;
8364  
8365      obj)
8366 -      if test -n "$deplibs"; then
8367 -       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
8368 -      fi
8369 +      case " $deplibs" in
8370 +      *\ -l* | *\ -L*)
8371 +       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
8372 +      esac
8373  
8374        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8375         $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
8376 @@ -3968,72 +4320,20 @@ EOF
8377        reload_conv_objs=
8378        gentop=
8379        # reload_cmds runs $LD directly, so let us get rid of
8380 -      # -Wl from whole_archive_flag_spec
8381 +      # -Wl from whole_archive_flag_spec and hope we can get by with
8382 +      # turning comma into space..
8383        wl=
8384  
8385        if test -n "$convenience"; then
8386         if test -n "$whole_archive_flag_spec"; then
8387 -         eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
8388 +         eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8389 +         reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
8390         else
8391           gentop="$output_objdir/${obj}x"
8392 -         $show "${rm}r $gentop"
8393 -         $run ${rm}r "$gentop"
8394 -         $show "$mkdir $gentop"
8395 -         $run $mkdir "$gentop"
8396 -         status=$?
8397 -         if test "$status" -ne 0 && test ! -d "$gentop"; then
8398 -           exit $status
8399 -         fi
8400           generated="$generated $gentop"
8401  
8402 -         for xlib in $convenience; do
8403 -           # Extract the objects.
8404 -           case $xlib in
8405 -           [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
8406 -           *) xabs=`pwd`"/$xlib" ;;
8407 -           esac
8408 -           xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
8409 -           xdir="$gentop/$xlib"
8410 -
8411 -           $show "${rm}r $xdir"
8412 -           $run ${rm}r "$xdir"
8413 -           $show "$mkdir $xdir"
8414 -           $run $mkdir "$xdir"
8415 -           status=$?
8416 -           if test "$status" -ne 0 && test ! -d "$xdir"; then
8417 -             exit $status
8418 -           fi
8419 -           # We will extract separately just the conflicting names and we will no
8420 -           # longer touch any unique names. It is faster to leave these extract
8421 -           # automatically by $AR in one run.
8422 -           $show "(cd $xdir && $AR x $xabs)"
8423 -           $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
8424 -           if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
8425 -             :
8426 -           else
8427 -             $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
8428 -             $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
8429 -             $AR t "$xabs" | sort | uniq -cd | while read -r count name
8430 -             do
8431 -               i=1
8432 -               while test "$i" -le "$count"
8433 -               do
8434 -                # Put our $i before any first dot (extension)
8435 -                # Never overwrite any file
8436 -                name_to="$name"
8437 -                while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
8438 -                do
8439 -                  name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
8440 -                done
8441 -                $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
8442 -                $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
8443 -                i=`expr $i + 1`
8444 -               done
8445 -             done
8446 -           fi
8447 -
8448 -           reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
8449 -         done
8450 +         func_extract_archives $gentop $convenience
8451 +         reload_conv_objs="$reload_objs $func_extract_archives_result"
8452         fi
8453        fi
8454  
8455 @@ -4134,6 +4434,35 @@ EOF
8456          ;;
8457        esac
8458  
8459 +
8460 +      # move library search paths that coincide with paths to not yet
8461 +      # installed libraries to the beginning of the library search list
8462 +      new_libs=
8463 +      for path in $notinst_path; do
8464 +       case " $new_libs " in
8465 +       *" -L$path/$objdir "*) ;;
8466 +       *)
8467 +         case " $compile_deplibs " in
8468 +         *" -L$path/$objdir "*)
8469 +           new_libs="$new_libs -L$path/$objdir" ;;
8470 +         esac
8471 +         ;;
8472 +       esac
8473 +      done
8474 +      for deplib in $compile_deplibs; do
8475 +       case $deplib in
8476 +       -L*)
8477 +         case " $new_libs " in
8478 +         *" $deplib "*) ;;
8479 +         *) new_libs="$new_libs $deplib" ;;
8480 +         esac
8481 +         ;;
8482 +       *) new_libs="$new_libs $deplib" ;;
8483 +       esac
8484 +      done
8485 +      compile_deplibs="$new_libs"
8486 +
8487 +
8488        compile_command="$compile_command $compile_deplibs"
8489        finalize_command="$finalize_command $finalize_deplibs"
8490  
8491 @@ -4178,10 +4507,15 @@ EOF
8492         fi
8493         case $host in
8494         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
8495 +         testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
8496           case :$dllsearchpath: in
8497           *":$libdir:"*) ;;
8498           *) dllsearchpath="$dllsearchpath:$libdir";;
8499           esac
8500 +         case :$dllsearchpath: in
8501 +         *":$testbindir:"*) ;;
8502 +         *) dllsearchpath="$dllsearchpath:$testbindir";;
8503 +         esac
8504           ;;
8505         esac
8506        done
8507 @@ -4295,13 +4629,25 @@ extern \"C\" {
8508  
8509             # Prepare the list of exported symbols
8510             if test -z "$export_symbols"; then
8511 -             export_symbols="$output_objdir/$output.exp"
8512 +             export_symbols="$output_objdir/$outputname.exp"
8513               $run $rm $export_symbols
8514 -             $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
8515 +             $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
8516 +              case $host in
8517 +              *cygwin* | *mingw* )
8518 +               $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
8519 +               $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
8520 +                ;;
8521 +              esac
8522             else
8523 -             $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
8524 -             $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
8525 +             $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
8526 +             $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
8527               $run eval 'mv "$nlist"T "$nlist"'
8528 +              case $host in
8529 +              *cygwin* | *mingw* )
8530 +               $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
8531 +               $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
8532 +                ;;
8533 +              esac
8534             fi
8535           fi
8536  
8537 @@ -4352,7 +4698,26 @@ extern \"C\" {
8538  #endif
8539  
8540  /* The mapping between symbol names and symbols. */
8541 +"
8542 +
8543 +           case $host in
8544 +           *cygwin* | *mingw* )
8545 +         $echo >> "$output_objdir/$dlsyms" "\
8546 +/* DATA imports from DLLs on WIN32 can't be const, because
8547 +   runtime relocations are performed -- see ld's documentation
8548 +   on pseudo-relocs */
8549 +struct {
8550 +"
8551 +             ;;
8552 +           * )
8553 +         $echo >> "$output_objdir/$dlsyms" "\
8554  const struct {
8555 +"
8556 +             ;;
8557 +           esac
8558 +
8559 +
8560 +         $echo >> "$output_objdir/$dlsyms" "\
8561    const char *name;
8562    lt_ptr address;
8563  }
8564 @@ -4399,16 +4764,29 @@ static const void *lt_preloaded_setup() {
8565           esac
8566  
8567           # Now compile the dynamic symbol file.
8568 -         $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
8569 -         $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
8570 +         $show "(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
8571 +         $run eval '(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
8572  
8573           # Clean up the generated files.
8574           $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
8575           $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
8576  
8577           # Transform the symbol file into the correct name.
8578 -         compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
8579 -         finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
8580 +          case $host in
8581 +          *cygwin* | *mingw* )
8582 +            if test -f "$output_objdir/${outputname}.def" ; then
8583 +              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
8584 +              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
8585 +            else
8586 +              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8587 +              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8588 +             fi
8589 +            ;;
8590 +          * )
8591 +            compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8592 +            finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
8593 +            ;;
8594 +          esac
8595           ;;
8596         *)
8597           $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
8598 @@ -4421,19 +4799,19 @@ static const void *lt_preloaded_setup() {
8599         # really was required.
8600  
8601         # Nullify the symbol file.
8602 -       compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
8603 -       finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
8604 +       compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
8605 +       finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
8606        fi
8607  
8608        if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8609         # Replace the output file specification.
8610 -       compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8611 +       compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
8612         link_command="$compile_command$compile_rpath"
8613  
8614         # We have no uninstalled library dependencies, so finalize right now.
8615         $show "$link_command"
8616         $run eval "$link_command"
8617 -       status=$?
8618 +       exit_status=$?
8619  
8620         # Delete the generated files.
8621         if test -n "$dlsyms"; then
8622 @@ -4441,7 +4819,7 @@ static const void *lt_preloaded_setup() {
8623           $run $rm "$output_objdir/${outputname}S.${objext}"
8624         fi
8625  
8626 -       exit $status
8627 +       exit $exit_status
8628        fi
8629  
8630        if test -n "$shlibpath_var"; then
8631 @@ -4514,7 +4892,7 @@ static const void *lt_preloaded_setup() {
8632         if test "$fast_install" != no; then
8633           link_command="$finalize_var$compile_command$finalize_rpath"
8634           if test "$fast_install" = yes; then
8635 -           relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
8636 +           relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
8637           else
8638             # fast_install is set to needless
8639             relink_command=
8640 @@ -4551,7 +4929,7 @@ static const void *lt_preloaded_setup() {
8641           fi
8642         done
8643         relink_command="(cd `pwd`; $relink_command)"
8644 -       relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
8645 +       relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
8646        fi
8647  
8648        # Quote $echo for shipping.
8649 @@ -4581,10 +4959,12 @@ static const void *lt_preloaded_setup() {
8650         esac
8651         case $host in
8652           *cygwin* | *mingw* )
8653 -           cwrappersource=`$echo ${objdir}/lt-${output}.c`
8654 -           cwrapper=`$echo ${output}.exe`
8655 -           $rm $cwrappersource $cwrapper
8656 -           trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
8657 +            output_name=`basename $output`
8658 +            output_path=`dirname $output`
8659 +            cwrappersource="$output_path/$objdir/lt-$output_name.c"
8660 +            cwrapper="$output_path/$output_name.exe"
8661 +            $rm $cwrappersource $cwrapper
8662 +            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
8663  
8664             cat > $cwrappersource <<EOF
8665  
8666 @@ -4609,6 +4989,9 @@ EOF
8667  #include <malloc.h>
8668  #include <stdarg.h>
8669  #include <assert.h>
8670 +#include <string.h>
8671 +#include <ctype.h>
8672 +#include <sys/stat.h>
8673  
8674  #if defined(PATH_MAX)
8675  # define LT_PATHMAX PATH_MAX
8676 @@ -4619,15 +5002,19 @@ EOF
8677  #endif
8678  
8679  #ifndef DIR_SEPARATOR
8680 -#define DIR_SEPARATOR '/'
8681 +# define DIR_SEPARATOR '/'
8682 +# define PATH_SEPARATOR ':'
8683  #endif
8684  
8685  #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
8686    defined (__OS2__)
8687 -#define HAVE_DOS_BASED_FILE_SYSTEM
8688 -#ifndef DIR_SEPARATOR_2
8689 -#define DIR_SEPARATOR_2 '\\'
8690 -#endif
8691 +# define HAVE_DOS_BASED_FILE_SYSTEM
8692 +# ifndef DIR_SEPARATOR_2
8693 +#  define DIR_SEPARATOR_2 '\\'
8694 +# endif
8695 +# ifndef PATH_SEPARATOR_2
8696 +#  define PATH_SEPARATOR_2 ';'
8697 +# endif
8698  #endif
8699  
8700  #ifndef DIR_SEPARATOR_2
8701 @@ -4637,17 +5024,32 @@ EOF
8702          (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
8703  #endif /* DIR_SEPARATOR_2 */
8704  
8705 +#ifndef PATH_SEPARATOR_2
8706 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
8707 +#else /* PATH_SEPARATOR_2 */
8708 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
8709 +#endif /* PATH_SEPARATOR_2 */
8710 +
8711  #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
8712  #define XFREE(stale) do { \
8713    if (stale) { free ((void *) stale); stale = 0; } \
8714  } while (0)
8715  
8716 +/* -DDEBUG is fairly common in CFLAGS.  */
8717 +#undef DEBUG
8718 +#if defined DEBUGWRAPPER
8719 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
8720 +#else
8721 +# define DEBUG(format, ...)
8722 +#endif
8723 +
8724  const char *program_name = NULL;
8725  
8726  void * xmalloc (size_t num);
8727  char * xstrdup (const char *string);
8728 -char * basename (const char *name);
8729 -char * fnqualify(const char *path);
8730 +const char * base_name (const char *name);
8731 +char * find_executable(const char *wrapper);
8732 +int    check_executable(const char *path);
8733  char * strendzap(char *str, const char *pat);
8734  void lt_fatal (const char *message, ...);
8735  
8736 @@ -4657,29 +5059,51 @@ main (int argc, char *argv[])
8737    char **newargz;
8738    int i;
8739  
8740 -  program_name = (char *) xstrdup ((char *) basename (argv[0]));
8741 +  program_name = (char *) xstrdup (base_name (argv[0]));
8742 +  DEBUG("(main) argv[0]      : %s\n",argv[0]);
8743 +  DEBUG("(main) program_name : %s\n",program_name);
8744    newargz = XMALLOC(char *, argc+2);
8745  EOF
8746  
8747 -           cat >> $cwrappersource <<EOF
8748 -  newargz[0] = "$SHELL";
8749 +            cat >> $cwrappersource <<EOF
8750 +  newargz[0] = (char *) xstrdup("$SHELL");
8751  EOF
8752  
8753 -           cat >> $cwrappersource <<"EOF"
8754 -  newargz[1] = fnqualify(argv[0]);
8755 +            cat >> $cwrappersource <<"EOF"
8756 +  newargz[1] = find_executable(argv[0]);
8757 +  if (newargz[1] == NULL)
8758 +    lt_fatal("Couldn't find %s", argv[0]);
8759 +  DEBUG("(main) found exe at : %s\n",newargz[1]);
8760    /* we know the script has the same name, without the .exe */
8761    /* so make sure newargz[1] doesn't end in .exe */
8762    strendzap(newargz[1],".exe");
8763    for (i = 1; i < argc; i++)
8764      newargz[i+1] = xstrdup(argv[i]);
8765    newargz[argc+1] = NULL;
8766 +
8767 +  for (i=0; i<argc+1; i++)
8768 +  {
8769 +    DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
8770 +    ;
8771 +  }
8772 +
8773  EOF
8774  
8775 -           cat >> $cwrappersource <<EOF
8776 +            case $host_os in
8777 +              mingw*)
8778 +                cat >> $cwrappersource <<EOF
8779 +  execv("$SHELL",(char const **)newargz);
8780 +EOF
8781 +              ;;
8782 +              *)
8783 +                cat >> $cwrappersource <<EOF
8784    execv("$SHELL",newargz);
8785  EOF
8786 +              ;;
8787 +            esac
8788  
8789 -           cat >> $cwrappersource <<"EOF"
8790 +            cat >> $cwrappersource <<"EOF"
8791 +  return 127;
8792  }
8793  
8794  void *
8795 @@ -4699,48 +5123,148 @@ xstrdup (const char *string)
8796  ;
8797  }
8798  
8799 -char *
8800 -basename (const char *name)
8801 +const char *
8802 +base_name (const char *name)
8803  {
8804    const char *base;
8805  
8806  #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
8807    /* Skip over the disk name in MSDOS pathnames. */
8808 -  if (isalpha (name[0]) && name[1] == ':')
8809 +  if (isalpha ((unsigned char)name[0]) && name[1] == ':')
8810      name += 2;
8811  #endif
8812  
8813    for (base = name; *name; name++)
8814      if (IS_DIR_SEPARATOR (*name))
8815        base = name + 1;
8816 -  return (char *) base;
8817 +  return base;
8818  }
8819  
8820 +int
8821 +check_executable(const char * path)
8822 +{
8823 +  struct stat st;
8824 +
8825 +  DEBUG("(check_executable)  : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
8826 +  if ((!path) || (!*path))
8827 +    return 0;
8828 +
8829 +  if ((stat (path, &st) >= 0) &&
8830 +      (
8831 +        /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
8832 +#if defined (S_IXOTH)
8833 +       ((st.st_mode & S_IXOTH) == S_IXOTH) ||
8834 +#endif
8835 +#if defined (S_IXGRP)
8836 +       ((st.st_mode & S_IXGRP) == S_IXGRP) ||
8837 +#endif
8838 +       ((st.st_mode & S_IXUSR) == S_IXUSR))
8839 +      )
8840 +    return 1;
8841 +  else
8842 +    return 0;
8843 +}
8844 +
8845 +/* Searches for the full path of the wrapper.  Returns
8846 +   newly allocated full path name if found, NULL otherwise */
8847  char *
8848 -fnqualify(const char *path)
8849 +find_executable (const char* wrapper)
8850  {
8851 -  size_t size;
8852 -  char *p;
8853 +  int has_slash = 0;
8854 +  const char* p;
8855 +  const char* p_next;
8856 +  /* static buffer for getcwd */
8857    char tmp[LT_PATHMAX + 1];
8858 +  int tmp_len;
8859 +  char* concat_name;
8860 +
8861 +  DEBUG("(find_executable)  : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
8862  
8863 -  assert(path != NULL);
8864 +  if ((wrapper == NULL) || (*wrapper == '\0'))
8865 +    return NULL;
8866  
8867 -  /* Is it qualified already? */
8868 +  /* Absolute path? */
8869 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
8870 +  if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
8871 +  {
8872 +    concat_name = xstrdup (wrapper);
8873 +    if (check_executable(concat_name))
8874 +      return concat_name;
8875 +    XFREE(concat_name);
8876 +  }
8877 +  else
8878 +  {
8879 +#endif
8880 +    if (IS_DIR_SEPARATOR (wrapper[0]))
8881 +    {
8882 +      concat_name = xstrdup (wrapper);
8883 +      if (check_executable(concat_name))
8884 +        return concat_name;
8885 +      XFREE(concat_name);
8886 +    }
8887  #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
8888 -  if (isalpha (path[0]) && path[1] == ':')
8889 -    return xstrdup (path);
8890 +  }
8891  #endif
8892 -  if (IS_DIR_SEPARATOR (path[0]))
8893 -    return xstrdup (path);
8894  
8895 -  /* prepend the current directory */
8896 -  /* doesn't handle '~' */
8897 +  for (p = wrapper; *p; p++)
8898 +    if (*p == '/')
8899 +    {
8900 +      has_slash = 1;
8901 +      break;
8902 +    }
8903 +  if (!has_slash)
8904 +  {
8905 +    /* no slashes; search PATH */
8906 +    const char* path = getenv ("PATH");
8907 +    if (path != NULL)
8908 +    {
8909 +      for (p = path; *p; p = p_next)
8910 +      {
8911 +        const char* q;
8912 +        size_t p_len;
8913 +        for (q = p; *q; q++)
8914 +          if (IS_PATH_SEPARATOR(*q))
8915 +            break;
8916 +        p_len = q - p;
8917 +        p_next = (*q == '\0' ? q : q + 1);
8918 +        if (p_len == 0)
8919 +        {
8920 +          /* empty path: current directory */
8921 +          if (getcwd (tmp, LT_PATHMAX) == NULL)
8922 +            lt_fatal ("getcwd failed");
8923 +          tmp_len = strlen(tmp);
8924 +          concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
8925 +          memcpy (concat_name, tmp, tmp_len);
8926 +          concat_name[tmp_len] = '/';
8927 +          strcpy (concat_name + tmp_len + 1, wrapper);
8928 +        }
8929 +        else
8930 +        {
8931 +          concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
8932 +          memcpy (concat_name, p, p_len);
8933 +          concat_name[p_len] = '/';
8934 +          strcpy (concat_name + p_len + 1, wrapper);
8935 +        }
8936 +        if (check_executable(concat_name))
8937 +          return concat_name;
8938 +        XFREE(concat_name);
8939 +      }
8940 +    }
8941 +    /* not found in PATH; assume curdir */
8942 +  }
8943 +  /* Relative path | not found in path: prepend cwd */
8944    if (getcwd (tmp, LT_PATHMAX) == NULL)
8945      lt_fatal ("getcwd failed");
8946 -  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
8947 -  p = XMALLOC(char, size);
8948 -  sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
8949 -  return p;
8950 +  tmp_len = strlen(tmp);
8951 +  concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
8952 +  memcpy (concat_name, tmp, tmp_len);
8953 +  concat_name[tmp_len] = '/';
8954 +  strcpy (concat_name + tmp_len + 1, wrapper);
8955 +
8956 +  if (check_executable(concat_name))
8957 +    return concat_name;
8958 +  XFREE(concat_name);
8959 +  return NULL;
8960  }
8961  
8962  char *
8963 @@ -4784,16 +5308,16 @@ lt_fatal (const char *message, ...)
8964    va_end (ap);
8965  }
8966  EOF
8967 -         # we should really use a build-platform specific compiler
8968 -         # here, but OTOH, the wrappers (shell script and this C one)
8969 -         # are only useful if you want to execute the "real" binary.
8970 -         # Since the "real" binary is built for $host, then this
8971 -         # wrapper might as well be built for $host, too.
8972 -         $run $LTCC -s -o $cwrapper $cwrappersource
8973 -         ;;
8974 -       esac
8975 -       $rm $output
8976 -       trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
8977 +          # we should really use a build-platform specific compiler
8978 +          # here, but OTOH, the wrappers (shell script and this C one)
8979 +          # are only useful if you want to execute the "real" binary.
8980 +          # Since the "real" binary is built for $host, then this
8981 +          # wrapper might as well be built for $host, too.
8982 +          $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
8983 +          ;;
8984 +        esac
8985 +        $rm $output
8986 +        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
8987  
8988         $echo > $output "\
8989  #! $SHELL
8990 @@ -4812,9 +5336,23 @@ EOF
8991  Xsed='${SED} -e 1s/^X//'
8992  sed_quote_subst='$sed_quote_subst'
8993  
8994 +# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
8995 +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
8996 +  emulate sh
8997 +  NULLCMD=:
8998 +  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
8999 +  # is contrary to our usage.  Disable this feature.
9000 +  alias -g '\${1+\"\$@\"}'='\"\$@\"'
9001 +  setopt NO_GLOB_SUBST
9002 +else
9003 +  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
9004 +fi
9005 +BIN_SH=xpg4; export BIN_SH # for Tru64
9006 +DUALCASE=1; export DUALCASE # for MKS sh
9007 +
9008  # The HP-UX ksh and POSIX shell print the target directory to stdout
9009  # if CDPATH is set.
9010 -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
9011 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9012  
9013  relink_command=\"$relink_command\"
9014  
9015 @@ -4943,23 +5481,23 @@ else
9016         # Backslashes separate directories on plain windows
9017         *-*-mingw | *-*-os2*)
9018           $echo >> $output "\
9019 -      exec \$progdir\\\\\$program \${1+\"\$@\"}
9020 +      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
9021  "
9022           ;;
9023  
9024         *)
9025           $echo >> $output "\
9026 -      exec \$progdir/\$program \${1+\"\$@\"}
9027 +      exec \"\$progdir/\$program\" \${1+\"\$@\"}
9028  "
9029           ;;
9030         esac
9031         $echo >> $output "\
9032 -      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
9033 +      \$echo \"\$0: cannot exec \$program \$*\"
9034        exit $EXIT_FAILURE
9035      fi
9036    else
9037      # The program doesn't exist.
9038 -    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
9039 +    \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
9040      \$echo \"This script is just a wrapper for \$program.\" 1>&2
9041      $echo \"See the $PACKAGE documentation for more information.\" 1>&2
9042      exit $EXIT_FAILURE
9043 @@ -4991,71 +5529,73 @@ fi\
9044  
9045        if test -n "$addlibs"; then
9046         gentop="$output_objdir/${outputname}x"
9047 -       $show "${rm}r $gentop"
9048 -       $run ${rm}r "$gentop"
9049 -       $show "$mkdir $gentop"
9050 -       $run $mkdir "$gentop"
9051 -       status=$?
9052 -       if test "$status" -ne 0 && test ! -d "$gentop"; then
9053 -         exit $status
9054 -       fi
9055         generated="$generated $gentop"
9056  
9057 -       # Add in members from convenience archives.
9058 -       for xlib in $addlibs; do
9059 -         # Extract the objects.
9060 -         case $xlib in
9061 -         [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
9062 -         *) xabs=`pwd`"/$xlib" ;;
9063 -         esac
9064 -         xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
9065 -         xdir="$gentop/$xlib"
9066 -
9067 -         $show "${rm}r $xdir"
9068 -         $run ${rm}r "$xdir"
9069 -         $show "$mkdir $xdir"
9070 -         $run $mkdir "$xdir"
9071 -         status=$?
9072 -         if test "$status" -ne 0 && test ! -d "$xdir"; then
9073 -           exit $status
9074 -         fi
9075 -         # We will extract separately just the conflicting names and we will no
9076 -         # longer touch any unique names. It is faster to leave these extract
9077 -         # automatically by $AR in one run.
9078 -         $show "(cd $xdir && $AR x $xabs)"
9079 -         $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
9080 -         if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
9081 -           :
9082 -         else
9083 -           $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
9084 -           $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
9085 -           $AR t "$xabs" | sort | uniq -cd | while read -r count name
9086 -           do
9087 -             i=1
9088 -             while test "$i" -le "$count"
9089 -             do
9090 -              # Put our $i before any first dot (extension)
9091 -              # Never overwrite any file
9092 -              name_to="$name"
9093 -              while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
9094 -              do
9095 -                name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
9096 -              done
9097 -              $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
9098 -              $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
9099 -              i=`expr $i + 1`
9100 -             done
9101 -           done
9102 -         fi
9103 -
9104 -         oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
9105 -       done
9106 +       func_extract_archives $gentop $addlibs
9107 +       oldobjs="$oldobjs $func_extract_archives_result"
9108        fi
9109  
9110        # Do each command in the archive commands.
9111        if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
9112         cmds=$old_archive_from_new_cmds
9113        else
9114 +       # POSIX demands no paths to be encoded in archives.  We have
9115 +       # to avoid creating archives with duplicate basenames if we
9116 +       # might have to extract them afterwards, e.g., when creating a
9117 +       # static archive out of a convenience library, or when linking
9118 +       # the entirety of a libtool archive into another (currently
9119 +       # not supported by libtool).
9120 +       if (for obj in $oldobjs
9121 +           do
9122 +             $echo "X$obj" | $Xsed -e 's%^.*/%%'
9123 +           done | sort | sort -uc >/dev/null 2>&1); then
9124 +         :
9125 +       else
9126 +         $echo "copying selected object files to avoid basename conflicts..."
9127 +
9128 +         if test -z "$gentop"; then
9129 +           gentop="$output_objdir/${outputname}x"
9130 +           generated="$generated $gentop"
9131 +
9132 +           $show "${rm}r $gentop"
9133 +           $run ${rm}r "$gentop"
9134 +           $show "$mkdir $gentop"
9135 +           $run $mkdir "$gentop"
9136 +           exit_status=$?
9137 +           if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
9138 +             exit $exit_status
9139 +           fi
9140 +         fi
9141 +
9142 +         save_oldobjs=$oldobjs
9143 +         oldobjs=
9144 +         counter=1
9145 +         for obj in $save_oldobjs
9146 +         do
9147 +           objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
9148 +           case " $oldobjs " in
9149 +           " ") oldobjs=$obj ;;
9150 +           *[\ /]"$objbase "*)
9151 +             while :; do
9152 +               # Make sure we don't pick an alternate name that also
9153 +               # overlaps.
9154 +               newobj=lt$counter-$objbase
9155 +               counter=`expr $counter + 1`
9156 +               case " $oldobjs " in
9157 +               *[\ /]"$newobj "*) ;;
9158 +               *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9159 +               esac
9160 +             done
9161 +             $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
9162 +             $run ln "$obj" "$gentop/$newobj" ||
9163 +             $run cp "$obj" "$gentop/$newobj"
9164 +             oldobjs="$oldobjs $gentop/$newobj"
9165 +             ;;
9166 +           *) oldobjs="$oldobjs $obj" ;;
9167 +           esac
9168 +         done
9169 +       fi
9170 +
9171         eval cmds=\"$old_archive_cmds\"
9172  
9173         if len=`expr "X$cmds" : ".*"` &&
9174 @@ -5069,20 +5609,7 @@ fi\
9175           objlist=
9176           concat_cmds=
9177           save_oldobjs=$oldobjs
9178 -         # GNU ar 2.10+ was changed to match POSIX; thus no paths are
9179 -         # encoded into archives.  This makes 'ar r' malfunction in
9180 -         # this piecewise linking case whenever conflicting object
9181 -         # names appear in distinct ar calls; check, warn and compensate.
9182 -           if (for obj in $save_oldobjs
9183 -           do
9184 -             $echo "X$obj" | $Xsed -e 's%^.*/%%'
9185 -           done | sort | sort -uc >/dev/null 2>&1); then
9186 -           :
9187 -         else
9188 -           $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
9189 -           $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
9190 -           AR_FLAGS=cq
9191 -         fi
9192 +
9193           # Is there a better way of finding the last object in the list?
9194           for obj in $save_oldobjs
9195           do
9196 @@ -5093,7 +5620,7 @@ fi\
9197             oldobjs="$objlist $obj"
9198             objlist="$objlist $obj"
9199             eval test_cmds=\"$old_archive_cmds\"
9200 -           if len=`expr "X$test_cmds" : ".*"` &&
9201 +           if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
9202                test "$len" -le "$max_cmd_len"; then
9203               :
9204             else
9205 @@ -5151,7 +5678,7 @@ fi\
9206        done
9207        # Quote the link command for shipping.
9208        relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
9209 -      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
9210 +      relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
9211        if test "$hardcode_automatic" = yes ; then
9212         relink_command=
9213        fi
9214 @@ -5290,11 +5817,11 @@ relink_command=\"$relink_command\""
9215      # install_prog (especially on Windows NT).
9216      if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
9217         # Allow the use of GNU shtool's install command.
9218 -       $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
9219 +       $echo "X$nonopt" | grep shtool > /dev/null; then
9220        # Aesthetically quote it.
9221        arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
9222        case $arg in
9223 -      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
9224 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
9225         arg="\"$arg\""
9226         ;;
9227        esac
9228 @@ -5303,14 +5830,14 @@ relink_command=\"$relink_command\""
9229        shift
9230      else
9231        install_prog=
9232 -      arg="$nonopt"
9233 +      arg=$nonopt
9234      fi
9235  
9236      # The real first argument should be the name of the installation program.
9237      # Aesthetically quote it.
9238      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
9239      case $arg in
9240 -    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \      ]*|*]*)
9241 +    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \      ]*|*]*|"")
9242        arg="\"$arg\""
9243        ;;
9244      esac
9245 @@ -5328,28 +5855,31 @@ relink_command=\"$relink_command\""
9246      do
9247        if test -n "$dest"; then
9248         files="$files $dest"
9249 -       dest="$arg"
9250 +       dest=$arg
9251         continue
9252        fi
9253  
9254        case $arg in
9255        -d) isdir=yes ;;
9256 -      -f) prev="-f" ;;
9257 -      -g) prev="-g" ;;
9258 -      -m) prev="-m" ;;
9259 -      -o) prev="-o" ;;
9260 +      -f) 
9261 +       case " $install_prog " in
9262 +       *[\\\ /]cp\ *) ;;
9263 +       *) prev=$arg ;;
9264 +       esac
9265 +       ;;
9266 +      -g | -m | -o) prev=$arg ;;
9267        -s)
9268         stripme=" -s"
9269         continue
9270         ;;
9271 -      -*) ;;
9272 -
9273 +      -*)
9274 +       ;;
9275        *)
9276         # If the previous option needed an argument, then skip it.
9277         if test -n "$prev"; then
9278           prev=
9279         else
9280 -         dest="$arg"
9281 +         dest=$arg
9282           continue
9283         fi
9284         ;;
9285 @@ -5358,7 +5888,7 @@ relink_command=\"$relink_command\""
9286        # Aesthetically quote the argument.
9287        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
9288        case $arg in
9289 -      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
9290 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
9291         arg="\"$arg\""
9292         ;;
9293        esac
9294 @@ -5493,9 +6023,9 @@ relink_command=\"$relink_command\""
9295  
9296           if test -n "$inst_prefix_dir"; then
9297             # Stick the inst_prefix_dir data into the link command.
9298 -           relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
9299 +           relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
9300           else
9301 -           relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
9302 +           relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
9303           fi
9304  
9305           $echo "$modename: warning: relinking \`$file'" 1>&2
9306 @@ -5527,11 +6057,14 @@ relink_command=\"$relink_command\""
9307  
9308           if test "$#" -gt 0; then
9309             # Delete the old symlinks, and create new ones.
9310 +           # Try `ln -sf' first, because the `ln' binary might depend on
9311 +           # the symlink we replace!  Solaris /bin/ln does not understand -f,
9312 +           # so we also need to try rm && ln -s.
9313             for linkname
9314             do
9315               if test "$linkname" != "$realname"; then
9316 -               $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
9317 -               $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
9318 +                $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
9319 +                $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
9320               fi
9321             done
9322           fi
9323 @@ -5544,7 +6077,16 @@ relink_command=\"$relink_command\""
9324             IFS="$save_ifs"
9325             eval cmd=\"$cmd\"
9326             $show "$cmd"
9327 -           $run eval "$cmd" || exit $?
9328 +           $run eval "$cmd" || {
9329 +             lt_exit=$?
9330 +
9331 +             # Restore the uninstalled library and exit
9332 +             if test "$mode" = relink; then
9333 +               $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
9334 +             fi
9335 +
9336 +             exit $lt_exit
9337 +           }
9338           done
9339           IFS="$save_ifs"
9340         fi
9341 @@ -5638,17 +6180,15 @@ relink_command=\"$relink_command\""
9342           notinst_deplibs=
9343           relink_command=
9344  
9345 -         # To insure that "foo" is sourced, and not "foo.exe",
9346 -         # finese the cygwin/MSYS system by explicitly sourcing "foo."
9347 -         # which disallows the automatic-append-.exe behavior.
9348 -         case $build in
9349 -         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
9350 -         *) wrapperdot=${wrapper} ;;
9351 -         esac
9352 +         # Note that it is not necessary on cygwin/mingw to append a dot to
9353 +         # foo even if both foo and FILE.exe exist: automatic-append-.exe
9354 +         # behavior happens only for exec(3), not for open(2)!  Also, sourcing
9355 +         # `FILE.' does not work on cygwin managed mounts.
9356 +         #
9357           # If there is no directory component, then add one.
9358 -         case $file in
9359 -         */* | *\\*) . ${wrapperdot} ;;
9360 -         *) . ./${wrapperdot} ;;
9361 +         case $wrapper in
9362 +         */* | *\\*) . ${wrapper} ;;
9363 +         *) . ./${wrapper} ;;
9364           esac
9365  
9366           # Check the variables that should have been set.
9367 @@ -5676,38 +6216,25 @@ relink_command=\"$relink_command\""
9368           done
9369  
9370           relink_command=
9371 -         # To insure that "foo" is sourced, and not "foo.exe",
9372 -         # finese the cygwin/MSYS system by explicitly sourcing "foo."
9373 -         # which disallows the automatic-append-.exe behavior.
9374 -         case $build in
9375 -         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
9376 -         *) wrapperdot=${wrapper} ;;
9377 -         esac
9378 +         # Note that it is not necessary on cygwin/mingw to append a dot to
9379 +         # foo even if both foo and FILE.exe exist: automatic-append-.exe
9380 +         # behavior happens only for exec(3), not for open(2)!  Also, sourcing
9381 +         # `FILE.' does not work on cygwin managed mounts.
9382 +         #
9383           # If there is no directory component, then add one.
9384 -         case $file in
9385 -         */* | *\\*) . ${wrapperdot} ;;
9386 -         *) . ./${wrapperdot} ;;
9387 +         case $wrapper in
9388 +         */* | *\\*) . ${wrapper} ;;
9389 +         *) . ./${wrapper} ;;
9390           esac
9391  
9392           outputname=
9393           if test "$fast_install" = no && test -n "$relink_command"; then
9394             if test "$finalize" = yes && test -z "$run"; then
9395 -             tmpdir="/tmp"
9396 -             test -n "$TMPDIR" && tmpdir="$TMPDIR"
9397 -             tmpdir="$tmpdir/libtool-$$"
9398 -             save_umask=`umask`
9399 -             umask 0077
9400 -             if $mkdir "$tmpdir"; then
9401 -               umask $save_umask
9402 -             else
9403 -               umask $save_umask
9404 -               $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
9405 -               continue
9406 -             fi
9407 +             tmpdir=`func_mktempdir`
9408               file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
9409               outputname="$tmpdir/$file"
9410               # Replace the output file specification.
9411 -             relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
9412 +             relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
9413  
9414               $show "$relink_command"
9415               if $run eval "$relink_command"; then :
9416 @@ -5727,7 +6254,7 @@ relink_command=\"$relink_command\""
9417         fi
9418  
9419         # remove .exe since cygwin /usr/bin/install will append another
9420 -       # one anyways
9421 +       # one anyway 
9422         case $install_prog,$host in
9423         */usr/bin/install*,*cygwin*)
9424           case $file:$destfile in
9425 @@ -5827,7 +6354,7 @@ relink_command=\"$relink_command\""
9426      # Exit here if they wanted silent mode.
9427      test "$show" = : && exit $EXIT_SUCCESS
9428  
9429 -    $echo "----------------------------------------------------------------------"
9430 +    $echo "X----------------------------------------------------------------------" | $Xsed
9431      $echo "Libraries have been installed in:"
9432      for libdir in $libdirs; do
9433        $echo "   $libdir"
9434 @@ -5860,7 +6387,7 @@ relink_command=\"$relink_command\""
9435      $echo
9436      $echo "See any operating system documentation about shared libraries for"
9437      $echo "more information, such as the ld(1) and ld.so(8) manual pages."
9438 -    $echo "----------------------------------------------------------------------"
9439 +    $echo "X----------------------------------------------------------------------" | $Xsed
9440      exit $EXIT_SUCCESS
9441      ;;
9442  
9443 @@ -5918,8 +6445,10 @@ relink_command=\"$relink_command\""
9444         if test -f "$dir/$objdir/$dlname"; then
9445           dir="$dir/$objdir"
9446         else
9447 -         $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
9448 -         exit $EXIT_FAILURE
9449 +         if test ! -f "$dir/$dlname"; then
9450 +           $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
9451 +           exit $EXIT_FAILURE
9452 +         fi
9453         fi
9454         ;;
9455  
9456 @@ -5983,12 +6512,12 @@ relink_command=\"$relink_command\""
9457        fi
9458  
9459        # Restore saved environment variables
9460 -      if test "${save_LC_ALL+set}" = set; then
9461 -       LC_ALL="$save_LC_ALL"; export LC_ALL
9462 -      fi
9463 -      if test "${save_LANG+set}" = set; then
9464 -       LANG="$save_LANG"; export LANG
9465 -      fi
9466 +      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
9467 +      do
9468 +       eval "if test \"\${save_$lt_var+set}\" = set; then
9469 +               $lt_var=\$save_$lt_var; export $lt_var
9470 +             fi"
9471 +      done
9472  
9473        # Now prepare to actually exec the command.
9474        exec_cmd="\$cmd$args"
9475 @@ -6077,9 +6606,17 @@ relink_command=\"$relink_command\""
9476             rmfiles="$rmfiles $objdir/$n"
9477           done
9478           test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
9479 -         test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9480  
9481 -         if test "$mode" = uninstall; then
9482 +         case "$mode" in
9483 +         clean)
9484 +           case "  $library_names " in
9485 +           # "  " in the beginning catches empty $dlname
9486 +           *" $dlname "*) ;;
9487 +           *) rmfiles="$rmfiles $objdir/$dlname" ;;
9488 +           esac
9489 +            test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9490 +           ;;
9491 +         uninstall)
9492             if test -n "$library_names"; then
9493               # Do each command in the postuninstall commands.
9494               cmds=$postuninstall_cmds
9495 @@ -6112,7 +6649,8 @@ relink_command=\"$relink_command\""
9496               IFS="$save_ifs"
9497             fi
9498             # FIXME: should reinstall the best remaining shared library.
9499 -         fi
9500 +           ;;
9501 +         esac
9502         fi
9503         ;;
9504  
9505 @@ -6336,9 +6874,9 @@ The following components of LINK-COMMAND are treated specially:
9506    -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
9507    -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
9508    -export-symbols SYMFILE
9509 -                   try to export only the symbols listed in SYMFILE
9510 +                    try to export only the symbols listed in SYMFILE
9511    -export-symbols-regex REGEX
9512 -                   try to export only the symbols matching REGEX
9513 +                    try to export only the symbols matching REGEX
9514    -LLIBDIR          search LIBDIR for required installed libraries
9515    -lNAME            OUTPUT-FILE requires the installed library libNAME
9516    -module           build a library that can dlopened
9517 @@ -6352,9 +6890,11 @@ The following components of LINK-COMMAND are treated specially:
9518    -release RELEASE  specify package release information
9519    -rpath LIBDIR     the created library will eventually be installed in LIBDIR
9520    -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
9521 -  -static           do not do any dynamic linking of libtool libraries
9522 +  -static           do not do any dynamic linking of uninstalled libtool libraries
9523 +  -static-libtool-libs
9524 +                    do not do any dynamic linking of libtool libraries
9525    -version-info CURRENT[:REVISION[:AGE]]
9526 -                   specify library version info [each variable defaults to 0]
9527 +                    specify library version info [each variable defaults to 0]
9528  
9529  All other options (arguments beginning with \`-') are ignored.
9530  
9531 @@ -6397,7 +6937,7 @@ esac
9532  $echo
9533  $echo "Try \`$modename --help' for more information about other modes."
9534  
9535 -exit $EXIT_SUCCESS
9536 +exit $?
9537  
9538  # The TAGs below are defined such that we never get into a situation
9539  # in which we disable both kinds of libraries.  Given conflicting
9540 @@ -6411,12 +6951,11 @@ exit $EXIT_SUCCESS
9541  # configuration.  But we'll never go from static-only to shared-only.
9542  
9543  # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
9544 -build_libtool_libs=no
9545 -build_old_libs=yes
9546 +disable_libs=shared
9547  # ### END LIBTOOL TAG CONFIG: disable-shared
9548  
9549  # ### BEGIN LIBTOOL TAG CONFIG: disable-static
9550 -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
9551 +disable_libs=static
9552  # ### END LIBTOOL TAG CONFIG: disable-static
9553  
9554  # Local Variables:
9555 --- ./configure
9556 +++ ./configure
9557 @@ -1,26 +1,83 @@
9558  #! /bin/sh
9559  # From configure.in Revision: 1.56 .
9560  # Guess values for system-dependent variables and create Makefiles.
9561 -# Generated by GNU Autoconf 2.59.
9562 +# Generated by GNU Autoconf 2.63.
9563  #
9564 -# Copyright (C) 2003 Free Software Foundation, Inc.
9565 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9566 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9567  # This configure script is free software; the Free Software Foundation
9568  # gives unlimited permission to copy, distribute and modify it.
9569  ## --------------------- ##
9570  ## M4sh Initialization.  ##
9571  ## --------------------- ##
9572  
9573 -# Be Bourne compatible
9574 +# Be more Bourne compatible
9575 +DUALCASE=1; export DUALCASE # for MKS sh
9576  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9577    emulate sh
9578    NULLCMD=:
9579 -  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9580 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9581    # is contrary to our usage.  Disable this feature.
9582    alias -g '${1+"$@"}'='"$@"'
9583 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9584 -  set -o posix
9585 +  setopt NO_GLOB_SUBST
9586 +else
9587 +  case `(set -o) 2>/dev/null` in
9588 +  *posix*) set -o posix ;;
9589 +esac
9590 +
9591 +fi
9592 +
9593 +
9594 +
9595 +
9596 +# PATH needs CR
9597 +# Avoid depending upon Character Ranges.
9598 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9599 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9600 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9601 +as_cr_digits='0123456789'
9602 +as_cr_alnum=$as_cr_Letters$as_cr_digits
9603 +
9604 +as_nl='
9605 +'
9606 +export as_nl
9607 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
9608 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9609 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9610 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9611 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9612 +  as_echo='printf %s\n'
9613 +  as_echo_n='printf %s'
9614 +else
9615 +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9616 +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9617 +    as_echo_n='/usr/ucb/echo -n'
9618 +  else
9619 +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9620 +    as_echo_n_body='eval
9621 +      arg=$1;
9622 +      case $arg in
9623 +      *"$as_nl"*)
9624 +       expr "X$arg" : "X\\(.*\\)$as_nl";
9625 +       arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9626 +      esac;
9627 +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9628 +    '
9629 +    export as_echo_n_body
9630 +    as_echo_n='sh -c $as_echo_n_body as_echo'
9631 +  fi
9632 +  export as_echo_body
9633 +  as_echo='sh -c $as_echo_body as_echo'
9634 +fi
9635 +
9636 +# The user is always right.
9637 +if test "${PATH_SEPARATOR+set}" != set; then
9638 +  PATH_SEPARATOR=:
9639 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9640 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9641 +      PATH_SEPARATOR=';'
9642 +  }
9643  fi
9644 -DUALCASE=1; export DUALCASE # for MKS sh
9645  
9646  # Support unset when possible.
9647  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9648 @@ -30,33 +87,60 @@ else
9649  fi
9650  
9651  
9652 +# IFS
9653 +# We need space, tab and new line, in precisely that order.  Quoting is
9654 +# there to prevent editors from complaining about space-tab.
9655 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9656 +# splitting by setting IFS to empty value.)
9657 +IFS=" ""       $as_nl"
9658 +
9659 +# Find who we are.  Look in the path if we contain no directory separator.
9660 +case $0 in
9661 +  *[\\/]* ) as_myself=$0 ;;
9662 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 +for as_dir in $PATH
9664 +do
9665 +  IFS=$as_save_IFS
9666 +  test -z "$as_dir" && as_dir=.
9667 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9668 +done
9669 +IFS=$as_save_IFS
9670 +
9671 +     ;;
9672 +esac
9673 +# We did not find ourselves, most probably we were run as `sh COMMAND'
9674 +# in which case we are not to be found in the path.
9675 +if test "x$as_myself" = x; then
9676 +  as_myself=$0
9677 +fi
9678 +if test ! -f "$as_myself"; then
9679 +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9680 +  { (exit 1); exit 1; }
9681 +fi
9682 +
9683  # Work around bugs in pre-3.0 UWIN ksh.
9684 -$as_unset ENV MAIL MAILPATH
9685 +for as_var in ENV MAIL MAILPATH
9686 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9687 +done
9688  PS1='$ '
9689  PS2='> '
9690  PS4='+ '
9691  
9692  # NLS nuisances.
9693 -for as_var in \
9694 -  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9695 -  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9696 -  LC_TELEPHONE LC_TIME
9697 -do
9698 -  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9699 -    eval $as_var=C; export $as_var
9700 -  else
9701 -    $as_unset $as_var
9702 -  fi
9703 -done
9704 +LC_ALL=C
9705 +export LC_ALL
9706 +LANGUAGE=C
9707 +export LANGUAGE
9708  
9709  # Required to use basename.
9710 -if expr a : '\(a\)' >/dev/null 2>&1; then
9711 +if expr a : '\(a\)' >/dev/null 2>&1 &&
9712 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9713    as_expr=expr
9714  else
9715    as_expr=false
9716  fi
9717  
9718 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9719 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9720    as_basename=basename
9721  else
9722    as_basename=false
9723 @@ -64,157 +148,391 @@ fi
9724  
9725  
9726  # Name of the executable.
9727 -as_me=`$as_basename "$0" ||
9728 +as_me=`$as_basename -- "$0" ||
9729  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9730          X"$0" : 'X\(//\)$' \| \
9731 -        X"$0" : 'X\(/\)$' \| \
9732 -        .     : '\(.\)' 2>/dev/null ||
9733 -echo X/"$0" |
9734 -    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9735 -         /^X\/\(\/\/\)$/{ s//\1/; q; }
9736 -         /^X\/\(\/\).*/{ s//\1/; q; }
9737 -         s/.*/./; q'`
9738 +        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9739 +$as_echo X/"$0" |
9740 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
9741 +           s//\1/
9742 +           q
9743 +         }
9744 +         /^X\/\(\/\/\)$/{
9745 +           s//\1/
9746 +           q
9747 +         }
9748 +         /^X\/\(\/\).*/{
9749 +           s//\1/
9750 +           q
9751 +         }
9752 +         s/.*/./; q'`
9753  
9754 +# CDPATH.
9755 +$as_unset CDPATH
9756  
9757 -# PATH needs CR, and LINENO needs CR and PATH.
9758 -# Avoid depending upon Character Ranges.
9759 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9760 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9761 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9762 -as_cr_digits='0123456789'
9763 -as_cr_alnum=$as_cr_Letters$as_cr_digits
9764  
9765 -# The user is always right.
9766 -if test "${PATH_SEPARATOR+set}" != set; then
9767 -  echo "#! /bin/sh" >conf$$.sh
9768 -  echo  "exit 0"   >>conf$$.sh
9769 -  chmod +x conf$$.sh
9770 -  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9771 -    PATH_SEPARATOR=';'
9772 -  else
9773 -    PATH_SEPARATOR=:
9774 -  fi
9775 -  rm -f conf$$.sh
9776 +if test "x$CONFIG_SHELL" = x; then
9777 +  if (eval ":") 2>/dev/null; then
9778 +  as_have_required=yes
9779 +else
9780 +  as_have_required=no
9781  fi
9782  
9783 +  if test $as_have_required = yes &&    (eval ":
9784 +(as_func_return () {
9785 +  (exit \$1)
9786 +}
9787 +as_func_success () {
9788 +  as_func_return 0
9789 +}
9790 +as_func_failure () {
9791 +  as_func_return 1
9792 +}
9793 +as_func_ret_success () {
9794 +  return 0
9795 +}
9796 +as_func_ret_failure () {
9797 +  return 1
9798 +}
9799  
9800 -  as_lineno_1=$LINENO
9801 -  as_lineno_2=$LINENO
9802 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9803 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
9804 -  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9805 -  # Find who we are.  Look in the path if we contain no path at all
9806 -  # relative or not.
9807 -  case $0 in
9808 -    *[\\/]* ) as_myself=$0 ;;
9809 -    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810 -for as_dir in $PATH
9811 -do
9812 -  IFS=$as_save_IFS
9813 -  test -z "$as_dir" && as_dir=.
9814 -  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9815 -done
9816 +exitcode=0
9817 +if as_func_success; then
9818 +  :
9819 +else
9820 +  exitcode=1
9821 +  echo as_func_success failed.
9822 +fi
9823  
9824 -       ;;
9825 -  esac
9826 -  # We did not find ourselves, most probably we were run as `sh COMMAND'
9827 -  # in which case we are not to be found in the path.
9828 -  if test "x$as_myself" = x; then
9829 -    as_myself=$0
9830 -  fi
9831 -  if test ! -f "$as_myself"; then
9832 -    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
9833 -   { (exit 1); exit 1; }; }
9834 -  fi
9835 -  case $CONFIG_SHELL in
9836 -  '')
9837 +if as_func_failure; then
9838 +  exitcode=1
9839 +  echo as_func_failure succeeded.
9840 +fi
9841 +
9842 +if as_func_ret_success; then
9843 +  :
9844 +else
9845 +  exitcode=1
9846 +  echo as_func_ret_success failed.
9847 +fi
9848 +
9849 +if as_func_ret_failure; then
9850 +  exitcode=1
9851 +  echo as_func_ret_failure succeeded.
9852 +fi
9853 +
9854 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
9855 +  :
9856 +else
9857 +  exitcode=1
9858 +  echo positional parameters were not saved.
9859 +fi
9860 +
9861 +test \$exitcode = 0) || { (exit 1); exit 1; }
9862 +
9863 +(
9864 +  as_lineno_1=\$LINENO
9865 +  as_lineno_2=\$LINENO
9866 +  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
9867 +  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
9868 +") 2> /dev/null; then
9869 +  :
9870 +else
9871 +  as_candidate_shells=
9872      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873  for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9874  do
9875    IFS=$as_save_IFS
9876    test -z "$as_dir" && as_dir=.
9877 -  for as_base in sh bash ksh sh5; do
9878 -        case $as_dir in
9879 +  case $as_dir in
9880          /*)
9881 -          if ("$as_dir/$as_base" -c '
9882 +          for as_base in sh bash ksh sh5; do
9883 +            as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
9884 +          done;;
9885 +       esac
9886 +done
9887 +IFS=$as_save_IFS
9888 +
9889 +
9890 +      for as_shell in $as_candidate_shells $SHELL; do
9891 +        # Try only shells that exist, to save several forks.
9892 +        if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
9893 +               { ("$as_shell") 2> /dev/null <<\_ASEOF
9894 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9895 +  emulate sh
9896 +  NULLCMD=:
9897 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9898 +  # is contrary to our usage.  Disable this feature.
9899 +  alias -g '${1+"$@"}'='"$@"'
9900 +  setopt NO_GLOB_SUBST
9901 +else
9902 +  case `(set -o) 2>/dev/null` in
9903 +  *posix*) set -o posix ;;
9904 +esac
9905 +
9906 +fi
9907 +
9908 +
9909 +:
9910 +_ASEOF
9911 +}; then
9912 +  CONFIG_SHELL=$as_shell
9913 +              as_have_required=yes
9914 +              if { "$as_shell" 2> /dev/null <<\_ASEOF
9915 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9916 +  emulate sh
9917 +  NULLCMD=:
9918 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9919 +  # is contrary to our usage.  Disable this feature.
9920 +  alias -g '${1+"$@"}'='"$@"'
9921 +  setopt NO_GLOB_SUBST
9922 +else
9923 +  case `(set -o) 2>/dev/null` in
9924 +  *posix*) set -o posix ;;
9925 +esac
9926 +
9927 +fi
9928 +
9929 +
9930 +:
9931 +(as_func_return () {
9932 +  (exit $1)
9933 +}
9934 +as_func_success () {
9935 +  as_func_return 0
9936 +}
9937 +as_func_failure () {
9938 +  as_func_return 1
9939 +}
9940 +as_func_ret_success () {
9941 +  return 0
9942 +}
9943 +as_func_ret_failure () {
9944 +  return 1
9945 +}
9946 +
9947 +exitcode=0
9948 +if as_func_success; then
9949 +  :
9950 +else
9951 +  exitcode=1
9952 +  echo as_func_success failed.
9953 +fi
9954 +
9955 +if as_func_failure; then
9956 +  exitcode=1
9957 +  echo as_func_failure succeeded.
9958 +fi
9959 +
9960 +if as_func_ret_success; then
9961 +  :
9962 +else
9963 +  exitcode=1
9964 +  echo as_func_ret_success failed.
9965 +fi
9966 +
9967 +if as_func_ret_failure; then
9968 +  exitcode=1
9969 +  echo as_func_ret_failure succeeded.
9970 +fi
9971 +
9972 +if ( set x; as_func_ret_success y && test x = "$1" ); then
9973 +  :
9974 +else
9975 +  exitcode=1
9976 +  echo positional parameters were not saved.
9977 +fi
9978 +
9979 +test $exitcode = 0) || { (exit 1); exit 1; }
9980 +
9981 +(
9982    as_lineno_1=$LINENO
9983    as_lineno_2=$LINENO
9984 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9985    test "x$as_lineno_1" != "x$as_lineno_2" &&
9986 -  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9987 -            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9988 -            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9989 -            CONFIG_SHELL=$as_dir/$as_base
9990 -            export CONFIG_SHELL
9991 -            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9992 -          fi;;
9993 -        esac
9994 -       done
9995 -done
9996 -;;
9997 -  esac
9998 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
9999 +
10000 +_ASEOF
10001 +}; then
10002 +  break
10003 +fi
10004 +
10005 +fi
10006 +
10007 +      done
10008 +
10009 +      if test "x$CONFIG_SHELL" != x; then
10010 +  for as_var in BASH_ENV ENV
10011 +       do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10012 +       done
10013 +       export CONFIG_SHELL
10014 +       exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
10015 +fi
10016 +
10017 +
10018 +    if test $as_have_required = no; then
10019 +  echo This script requires a shell more modern than all the
10020 +      echo shells that I found on your system.  Please install a
10021 +      echo modern shell, or manually run the script under such a
10022 +      echo shell if you do have one.
10023 +      { (exit 1); exit 1; }
10024 +fi
10025 +
10026 +
10027 +fi
10028 +
10029 +fi
10030 +
10031 +
10032 +
10033 +(eval "as_func_return () {
10034 +  (exit \$1)
10035 +}
10036 +as_func_success () {
10037 +  as_func_return 0
10038 +}
10039 +as_func_failure () {
10040 +  as_func_return 1
10041 +}
10042 +as_func_ret_success () {
10043 +  return 0
10044 +}
10045 +as_func_ret_failure () {
10046 +  return 1
10047 +}
10048 +
10049 +exitcode=0
10050 +if as_func_success; then
10051 +  :
10052 +else
10053 +  exitcode=1
10054 +  echo as_func_success failed.
10055 +fi
10056 +
10057 +if as_func_failure; then
10058 +  exitcode=1
10059 +  echo as_func_failure succeeded.
10060 +fi
10061 +
10062 +if as_func_ret_success; then
10063 +  :
10064 +else
10065 +  exitcode=1
10066 +  echo as_func_ret_success failed.
10067 +fi
10068 +
10069 +if as_func_ret_failure; then
10070 +  exitcode=1
10071 +  echo as_func_ret_failure succeeded.
10072 +fi
10073 +
10074 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
10075 +  :
10076 +else
10077 +  exitcode=1
10078 +  echo positional parameters were not saved.
10079 +fi
10080 +
10081 +test \$exitcode = 0") || {
10082 +  echo No shell found that supports shell functions.
10083 +  echo Please tell bug-autoconf@gnu.org about your system,
10084 +  echo including any error possibly output before this message.
10085 +  echo This can help us improve future autoconf versions.
10086 +  echo Configuration will now proceed without shell functions.
10087 +}
10088 +
10089 +
10090 +
10091 +  as_lineno_1=$LINENO
10092 +  as_lineno_2=$LINENO
10093 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
10094 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10095  
10096    # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10097    # uniformly replaced by the line number.  The first 'sed' inserts a
10098 -  # line-number line before each line; the second 'sed' does the real
10099 -  # work.  The second script uses 'N' to pair each line-number line
10100 -  # with the numbered line, and appends trailing '-' during
10101 -  # substitution so that $LINENO is not a special case at line end.
10102 +  # line-number line after each line using $LINENO; the second 'sed'
10103 +  # does the real work.  The second script uses 'N' to pair each
10104 +  # line-number line with the line containing $LINENO, and appends
10105 +  # trailing '-' during substitution so that $LINENO is not a special
10106 +  # case at line end.
10107    # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10108 -  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10109 -  sed '=' <$as_myself |
10110 +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
10111 +  # E. McMahon (1931-1989) for sed's syntax.  :-)
10112 +  sed -n '
10113 +    p
10114 +    /[$]LINENO/=
10115 +  ' <$as_myself |
10116      sed '
10117 +      s/[$]LINENO.*/&-/
10118 +      t lineno
10119 +      b
10120 +      :lineno
10121        N
10122 -      s,$,-,
10123 -      : loop
10124 -      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10125 +      :loop
10126 +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10127        t loop
10128 -      s,-$,,
10129 -      s,^['$as_cr_digits']*\n,,
10130 +      s/-\n.*//
10131      ' >$as_me.lineno &&
10132 -  chmod +x $as_me.lineno ||
10133 -    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10134 +  chmod +x "$as_me.lineno" ||
10135 +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10136     { (exit 1); exit 1; }; }
10137  
10138    # Don't try to exec as it changes $[0], causing all sort of problems
10139    # (the dirname of $[0] is not the place where we might find the
10140 -  # original and so on.  Autoconf is especially sensible to this).
10141 -  . ./$as_me.lineno
10142 +  # original and so on.  Autoconf is especially sensitive to this).
10143 +  . "./$as_me.lineno"
10144    # Exit status is that of the last command.
10145    exit
10146  }
10147  
10148  
10149 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10150 -  *c*,-n*) ECHO_N= ECHO_C='
10151 -' ECHO_T='     ' ;;
10152 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10153 -  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10154 -esac
10155 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10156 +  as_dirname=dirname
10157 +else
10158 +  as_dirname=false
10159 +fi
10160  
10161 -if expr a : '\(a\)' >/dev/null 2>&1; then
10162 +ECHO_C= ECHO_N= ECHO_T=
10163 +case `echo -n x` in
10164 +-n*)
10165 +  case `echo 'x\c'` in
10166 +  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
10167 +  *)   ECHO_C='\c';;
10168 +  esac;;
10169 +*)
10170 +  ECHO_N='-n';;
10171 +esac
10172 +if expr a : '\(a\)' >/dev/null 2>&1 &&
10173 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10174    as_expr=expr
10175  else
10176    as_expr=false
10177  fi
10178  
10179  rm -f conf$$ conf$$.exe conf$$.file
10180 -echo >conf$$.file
10181 -if ln -s conf$$.file conf$$ 2>/dev/null; then
10182 -  # We could just check for DJGPP; but this test a) works b) is more generic
10183 -  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10184 -  if test -f conf$$.exe; then
10185 -    # Don't use ln at all; we don't have any links
10186 -    as_ln_s='cp -p'
10187 -  else
10188 +if test -d conf$$.dir; then
10189 +  rm -f conf$$.dir/conf$$.file
10190 +else
10191 +  rm -f conf$$.dir
10192 +  mkdir conf$$.dir 2>/dev/null
10193 +fi
10194 +if (echo >conf$$.file) 2>/dev/null; then
10195 +  if ln -s conf$$.file conf$$ 2>/dev/null; then
10196      as_ln_s='ln -s'
10197 +    # ... but there are two gotchas:
10198 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10199 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10200 +    # In both cases, we have to default to `cp -p'.
10201 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10202 +      as_ln_s='cp -p'
10203 +  elif ln conf$$.file conf$$ 2>/dev/null; then
10204 +    as_ln_s=ln
10205 +  else
10206 +    as_ln_s='cp -p'
10207    fi
10208 -elif ln conf$$.file conf$$ 2>/dev/null; then
10209 -  as_ln_s=ln
10210  else
10211    as_ln_s='cp -p'
10212  fi
10213 -rm -f conf$$ conf$$.exe conf$$.file
10214 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10215 +rmdir conf$$.dir 2>/dev/null
10216  
10217  if mkdir -p . 2>/dev/null; then
10218    as_mkdir_p=:
10219 @@ -223,7 +541,28 @@ else
10220    as_mkdir_p=false
10221  fi
10222  
10223 -as_executable_p="test -f"
10224 +if test -x / >/dev/null 2>&1; then
10225 +  as_test_x='test -x'
10226 +else
10227 +  if ls -dL / >/dev/null 2>&1; then
10228 +    as_ls_L_option=L
10229 +  else
10230 +    as_ls_L_option=
10231 +  fi
10232 +  as_test_x='
10233 +    eval sh -c '\''
10234 +      if test -d "$1"; then
10235 +       test -d "$1/.";
10236 +      else
10237 +       case $1 in
10238 +       -*)set "./$1";;
10239 +       esac;
10240 +       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10241 +       ???[sx]*):;;*)false;;esac;fi
10242 +    '\'' sh
10243 +  '
10244 +fi
10245 +as_executable_p=$as_test_x
10246  
10247  # Sed expression to map a string onto a valid CPP name.
10248  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10249 @@ -232,15 +571,6 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10250  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10251  
10252  
10253 -# IFS
10254 -# We need space, tab and new line, in precisely that order.
10255 -as_nl='
10256 -'
10257 -IFS="  $as_nl"
10258 -
10259 -# CDPATH.
10260 -$as_unset CDPATH
10261 -
10262  
10263  
10264  # Check that we are running under the correct shell.
10265 @@ -279,15 +609,15 @@ fi
10266  
10267  # The HP-UX ksh and POSIX shell print the target directory to stdout
10268  # if CDPATH is set.
10269 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10270 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10271  
10272  if test -z "$ECHO"; then
10273  if test "X${echo_test_string+set}" != Xset; then
10274  # find a string as large as possible, as long as the shell can cope with it
10275    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
10276      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
10277 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
10278 -       echo_test_string="`eval $cmd`" &&
10279 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
10280 +       echo_test_string=`eval $cmd` &&
10281         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
10282      then
10283        break
10284 @@ -396,29 +726,26 @@ tagnames=${tagnames+${tagnames},}CXX
10285  
10286  tagnames=${tagnames+${tagnames},}F77
10287  
10288 +exec 7<&0 </dev/null 6>&1
10289 +
10290  # Name of the host.
10291  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
10292  # so uname gets run too.
10293  ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
10294  
10295 -exec 6>&1
10296 -
10297  #
10298  # Initializations.
10299  #
10300  ac_default_prefix=/usr/local
10301 +ac_clean_files=
10302  ac_config_libobj_dir=.
10303 +LIBOBJS=
10304  cross_compiling=no
10305  subdirs=
10306  MFLAGS=
10307  MAKEFLAGS=
10308  SHELL=${CONFIG_SHELL-/bin/sh}
10309  
10310 -# Maximum number of lines to put in a shell here document.
10311 -# This variable seems obsolete.  It should probably be removed, and
10312 -# only ac_max_sed_lines should be used.
10313 -: ${ac_max_here_lines=38}
10314 -
10315  # Identity of this package.
10316  PACKAGE_NAME=
10317  PACKAGE_TARNAME=
10318 @@ -431,46 +758,192 @@ ac_default_prefix=
10319  # Factoring default headers for most tests.
10320  ac_includes_default="\
10321  #include <stdio.h>
10322 -#if HAVE_SYS_TYPES_H
10323 +#ifdef HAVE_SYS_TYPES_H
10324  # include <sys/types.h>
10325  #endif
10326 -#if HAVE_SYS_STAT_H
10327 +#ifdef HAVE_SYS_STAT_H
10328  # include <sys/stat.h>
10329  #endif
10330 -#if STDC_HEADERS
10331 +#ifdef STDC_HEADERS
10332  # include <stdlib.h>
10333  # include <stddef.h>
10334  #else
10335 -# if HAVE_STDLIB_H
10336 +# ifdef HAVE_STDLIB_H
10337  #  include <stdlib.h>
10338  # endif
10339  #endif
10340 -#if HAVE_STRING_H
10341 -# if !STDC_HEADERS && HAVE_MEMORY_H
10342 +#ifdef HAVE_STRING_H
10343 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
10344  #  include <memory.h>
10345  # endif
10346  # include <string.h>
10347  #endif
10348 -#if HAVE_STRINGS_H
10349 +#ifdef HAVE_STRINGS_H
10350  # include <strings.h>
10351  #endif
10352 -#if HAVE_INTTYPES_H
10353 +#ifdef HAVE_INTTYPES_H
10354  # include <inttypes.h>
10355 -#else
10356 -# if HAVE_STDINT_H
10357 -#  include <stdint.h>
10358 -# endif
10359  #endif
10360 -#if HAVE_UNISTD_H
10361 +#ifdef HAVE_STDINT_H
10362 +# include <stdint.h>
10363 +#endif
10364 +#ifdef HAVE_UNISTD_H
10365  # include <unistd.h>
10366  #endif"
10367  
10368 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RENAME_TRUE RENAME_FALSE LIBVER OS LIBOBJS LTLIBOBJS'
10369 +ac_subst_vars='LTLIBOBJS
10370 +LIBOBJS
10371 +OS
10372 +LIBVER
10373 +RENAME_FALSE
10374 +RENAME_TRUE
10375 +LIBTOOL
10376 +ac_ct_F77
10377 +FFLAGS
10378 +F77
10379 +CXXCPP
10380 +am__fastdepCXX_FALSE
10381 +am__fastdepCXX_TRUE
10382 +CXXDEPMODE
10383 +ac_ct_CXX
10384 +CXXFLAGS
10385 +CXX
10386 +CPP
10387 +NMEDIT
10388 +DSYMUTIL
10389 +RANLIB
10390 +AR
10391 +ECHO
10392 +LN_S
10393 +EGREP
10394 +GREP
10395 +SED
10396 +am__fastdepCC_FALSE
10397 +am__fastdepCC_TRUE
10398 +CCDEPMODE
10399 +AMDEPBACKSLASH
10400 +AMDEP_FALSE
10401 +AMDEP_TRUE
10402 +am__quote
10403 +am__include
10404 +DEPDIR
10405 +OBJEXT
10406 +EXEEXT
10407 +ac_ct_CC
10408 +CPPFLAGS
10409 +LDFLAGS
10410 +CFLAGS
10411 +CC
10412 +MAINT
10413 +MAINTAINER_MODE_FALSE
10414 +MAINTAINER_MODE_TRUE
10415 +am__untar
10416 +am__tar
10417 +AMTAR
10418 +am__leading_dot
10419 +SET_MAKE
10420 +AWK
10421 +mkdir_p
10422 +INSTALL_STRIP_PROGRAM
10423 +STRIP
10424 +install_sh
10425 +MAKEINFO
10426 +AUTOHEADER
10427 +AUTOMAKE
10428 +AUTOCONF
10429 +ACLOCAL
10430 +VERSION
10431 +PACKAGE
10432 +CYGPATH_W
10433 +INSTALL_DATA
10434 +INSTALL_SCRIPT
10435 +INSTALL_PROGRAM
10436 +target_os
10437 +target_vendor
10438 +target_cpu
10439 +target
10440 +host_os
10441 +host_vendor
10442 +host_cpu
10443 +host
10444 +build_os
10445 +build_vendor
10446 +build_cpu
10447 +build
10448 +target_alias
10449 +host_alias
10450 +build_alias
10451 +LIBS
10452 +ECHO_T
10453 +ECHO_N
10454 +ECHO_C
10455 +DEFS
10456 +mandir
10457 +localedir
10458 +libdir
10459 +psdir
10460 +pdfdir
10461 +dvidir
10462 +htmldir
10463 +infodir
10464 +docdir
10465 +oldincludedir
10466 +includedir
10467 +localstatedir
10468 +sharedstatedir
10469 +sysconfdir
10470 +datadir
10471 +datarootdir
10472 +libexecdir
10473 +sbindir
10474 +bindir
10475 +program_transform_name
10476 +prefix
10477 +exec_prefix
10478 +PACKAGE_BUGREPORT
10479 +PACKAGE_STRING
10480 +PACKAGE_VERSION
10481 +PACKAGE_TARNAME
10482 +PACKAGE_NAME
10483 +PATH_SEPARATOR
10484 +SHELL'
10485  ac_subst_files=''
10486 +ac_user_opts='
10487 +enable_option_checking
10488 +enable_maintainer_mode
10489 +enable_dependency_tracking
10490 +enable_static
10491 +enable_shared
10492 +enable_fast_install
10493 +with_gnu_ld
10494 +enable_libtool_lock
10495 +with_pic
10496 +with_tags
10497 +with_mysql
10498 +enable_debug
10499 +'
10500 +      ac_precious_vars='build_alias
10501 +host_alias
10502 +target_alias
10503 +CC
10504 +CFLAGS
10505 +LDFLAGS
10506 +LIBS
10507 +CPPFLAGS
10508 +CPP
10509 +CXX
10510 +CXXFLAGS
10511 +CCC
10512 +CXXCPP
10513 +F77
10514 +FFLAGS'
10515 +
10516  
10517  # Initialize some variables set by options.
10518  ac_init_help=
10519  ac_init_version=false
10520 +ac_unrecognized_opts=
10521 +ac_unrecognized_sep=
10522  # The variables have the same names as the options, with
10523  # dashes changed to underlines.
10524  cache_file=/dev/null
10525 @@ -493,34 +966,48 @@ x_libraries=NONE
10526  # and all the variables that are supposed to be based on exec_prefix
10527  # by default will actually change.
10528  # Use braces instead of parens because sh, perl, etc. also accept them.
10529 +# (The list follows the same order as the GNU Coding Standards.)
10530  bindir='${exec_prefix}/bin'
10531  sbindir='${exec_prefix}/sbin'
10532  libexecdir='${exec_prefix}/libexec'
10533 -datadir='${prefix}/share'
10534 +datarootdir='${prefix}/share'
10535 +datadir='${datarootdir}'
10536  sysconfdir='${prefix}/etc'
10537  sharedstatedir='${prefix}/com'
10538  localstatedir='${prefix}/var'
10539 -libdir='${exec_prefix}/lib'
10540  includedir='${prefix}/include'
10541  oldincludedir='/usr/include'
10542 -infodir='${prefix}/info'
10543 -mandir='${prefix}/man'
10544 +docdir='${datarootdir}/doc/${PACKAGE}'
10545 +infodir='${datarootdir}/info'
10546 +htmldir='${docdir}'
10547 +dvidir='${docdir}'
10548 +pdfdir='${docdir}'
10549 +psdir='${docdir}'
10550 +libdir='${exec_prefix}/lib'
10551 +localedir='${datarootdir}/locale'
10552 +mandir='${datarootdir}/man'
10553  
10554  ac_prev=
10555 +ac_dashdash=
10556  for ac_option
10557  do
10558    # If the previous option needs an argument, assign it.
10559    if test -n "$ac_prev"; then
10560 -    eval "$ac_prev=\$ac_option"
10561 +    eval $ac_prev=\$ac_option
10562      ac_prev=
10563      continue
10564    fi
10565  
10566 -  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10567 +  case $ac_option in
10568 +  *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
10569 +  *)   ac_optarg=yes ;;
10570 +  esac
10571  
10572    # Accept the important Cygnus configure options, so we can diagnose typos.
10573  
10574 -  case $ac_option in
10575 +  case $ac_dashdash$ac_option in
10576 +  --)
10577 +    ac_dashdash=yes ;;
10578  
10579    -bindir | --bindir | --bindi | --bind | --bin | --bi)
10580      ac_prev=bindir ;;
10581 @@ -542,33 +1029,61 @@ do
10582    --config-cache | -C)
10583      cache_file=config.cache ;;
10584  
10585 -  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
10586 +  -datadir | --datadir | --datadi | --datad)
10587      ac_prev=datadir ;;
10588 -  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
10589 -  | --da=*)
10590 +  -datadir=* | --datadir=* | --datadi=* | --datad=*)
10591      datadir=$ac_optarg ;;
10592  
10593 +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
10594 +  | --dataroo | --dataro | --datar)
10595 +    ac_prev=datarootdir ;;
10596 +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
10597 +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
10598 +    datarootdir=$ac_optarg ;;
10599 +
10600    -disable-* | --disable-*)
10601 -    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10602 +    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10603      # Reject names that are not valid shell variable names.
10604 -    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10605 -      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
10606 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10607 +      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
10608     { (exit 1); exit 1; }; }
10609 -    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
10610 -    eval "enable_$ac_feature=no" ;;
10611 +    ac_useropt_orig=$ac_useropt
10612 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10613 +    case $ac_user_opts in
10614 +      *"
10615 +"enable_$ac_useropt"
10616 +"*) ;;
10617 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
10618 +        ac_unrecognized_sep=', ';;
10619 +    esac
10620 +    eval enable_$ac_useropt=no ;;
10621 +
10622 +  -docdir | --docdir | --docdi | --doc | --do)
10623 +    ac_prev=docdir ;;
10624 +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
10625 +    docdir=$ac_optarg ;;
10626 +
10627 +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
10628 +    ac_prev=dvidir ;;
10629 +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
10630 +    dvidir=$ac_optarg ;;
10631  
10632    -enable-* | --enable-*)
10633 -    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10634 +    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10635      # Reject names that are not valid shell variable names.
10636 -    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10637 -      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
10638 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10639 +      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
10640     { (exit 1); exit 1; }; }
10641 -    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
10642 -    case $ac_option in
10643 -      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10644 -      *) ac_optarg=yes ;;
10645 +    ac_useropt_orig=$ac_useropt
10646 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10647 +    case $ac_user_opts in
10648 +      *"
10649 +"enable_$ac_useropt"
10650 +"*) ;;
10651 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
10652 +        ac_unrecognized_sep=', ';;
10653      esac
10654 -    eval "enable_$ac_feature='$ac_optarg'" ;;
10655 +    eval enable_$ac_useropt=\$ac_optarg ;;
10656  
10657    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
10658    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
10659 @@ -595,6 +1110,12 @@ do
10660    -host=* | --host=* | --hos=* | --ho=*)
10661      host_alias=$ac_optarg ;;
10662  
10663 +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
10664 +    ac_prev=htmldir ;;
10665 +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
10666 +  | --ht=*)
10667 +    htmldir=$ac_optarg ;;
10668 +
10669    -includedir | --includedir | --includedi | --included | --include \
10670    | --includ | --inclu | --incl | --inc)
10671      ac_prev=includedir ;;
10672 @@ -619,13 +1140,16 @@ do
10673    | --libexe=* | --libex=* | --libe=*)
10674      libexecdir=$ac_optarg ;;
10675  
10676 +  -localedir | --localedir | --localedi | --localed | --locale)
10677 +    ac_prev=localedir ;;
10678 +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
10679 +    localedir=$ac_optarg ;;
10680 +
10681    -localstatedir | --localstatedir | --localstatedi | --localstated \
10682 -  | --localstate | --localstat | --localsta | --localst \
10683 -  | --locals | --local | --loca | --loc | --lo)
10684 +  | --localstate | --localstat | --localsta | --localst | --locals)
10685      ac_prev=localstatedir ;;
10686    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
10687 -  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
10688 -  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
10689 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10690      localstatedir=$ac_optarg ;;
10691  
10692    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10693 @@ -690,6 +1214,16 @@ do
10694    | --progr-tra=* | --program-tr=* | --program-t=*)
10695      program_transform_name=$ac_optarg ;;
10696  
10697 +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10698 +    ac_prev=pdfdir ;;
10699 +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10700 +    pdfdir=$ac_optarg ;;
10701 +
10702 +  -psdir | --psdir | --psdi | --psd | --ps)
10703 +    ac_prev=psdir ;;
10704 +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10705 +    psdir=$ac_optarg ;;
10706 +
10707    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10708    | -silent | --silent | --silen | --sile | --sil)
10709      silent=yes ;;
10710 @@ -740,26 +1274,38 @@ do
10711      ac_init_version=: ;;
10712  
10713    -with-* | --with-*)
10714 -    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10715 +    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10716      # Reject names that are not valid shell variable names.
10717 -    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10718 -      { echo "$as_me: error: invalid package name: $ac_package" >&2
10719 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10720 +      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
10721     { (exit 1); exit 1; }; }
10722 -    ac_package=`echo $ac_package| sed 's/-/_/g'`
10723 -    case $ac_option in
10724 -      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10725 -      *) ac_optarg=yes ;;
10726 +    ac_useropt_orig=$ac_useropt
10727 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10728 +    case $ac_user_opts in
10729 +      *"
10730 +"with_$ac_useropt"
10731 +"*) ;;
10732 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10733 +        ac_unrecognized_sep=', ';;
10734      esac
10735 -    eval "with_$ac_package='$ac_optarg'" ;;
10736 +    eval with_$ac_useropt=\$ac_optarg ;;
10737  
10738    -without-* | --without-*)
10739 -    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10740 +    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10741      # Reject names that are not valid shell variable names.
10742 -    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
10743 -      { echo "$as_me: error: invalid package name: $ac_package" >&2
10744 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10745 +      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
10746     { (exit 1); exit 1; }; }
10747 -    ac_package=`echo $ac_package | sed 's/-/_/g'`
10748 -    eval "with_$ac_package=no" ;;
10749 +    ac_useropt_orig=$ac_useropt
10750 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10751 +    case $ac_user_opts in
10752 +      *"
10753 +"with_$ac_useropt"
10754 +"*) ;;
10755 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
10756 +        ac_unrecognized_sep=', ';;
10757 +    esac
10758 +    eval with_$ac_useropt=no ;;
10759  
10760    --x)
10761      # Obsolete; use --with-x.
10762 @@ -779,7 +1325,7 @@ do
10763    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
10764      x_libraries=$ac_optarg ;;
10765  
10766 -  -*) { echo "$as_me: error: unrecognized option: $ac_option
10767 +  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
10768  Try \`$0 --help' for more information." >&2
10769     { (exit 1); exit 1; }; }
10770      ;;
10771 @@ -788,17 +1334,16 @@ Try \`$0 --help' for more information." >&2
10772      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
10773      # Reject names that are not valid shell variable names.
10774      expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
10775 -      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
10776 +      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
10777     { (exit 1); exit 1; }; }
10778 -    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
10779 -    eval "$ac_envvar='$ac_optarg'"
10780 +    eval $ac_envvar=\$ac_optarg
10781      export $ac_envvar ;;
10782  
10783    *)
10784      # FIXME: should be removed in autoconf 3.0.
10785 -    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
10786 +    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
10787      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
10788 -      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
10789 +      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
10790      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10791      ;;
10792  
10793 @@ -807,31 +1352,39 @@ done
10794  
10795  if test -n "$ac_prev"; then
10796    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
10797 -  { echo "$as_me: error: missing argument to $ac_option" >&2
10798 +  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
10799     { (exit 1); exit 1; }; }
10800  fi
10801  
10802 -# Be sure to have absolute paths.
10803 -for ac_var in exec_prefix prefix
10804 -do
10805 -  eval ac_val=$`echo $ac_var`
10806 -  case $ac_val in
10807 -    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
10808 -    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10809 -   { (exit 1); exit 1; }; };;
10810 +if test -n "$ac_unrecognized_opts"; then
10811 +  case $enable_option_checking in
10812 +    no) ;;
10813 +    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
10814 +   { (exit 1); exit 1; }; } ;;
10815 +    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
10816    esac
10817 -done
10818 +fi
10819  
10820 -# Be sure to have absolute paths.
10821 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
10822 -             localstatedir libdir includedir oldincludedir infodir mandir
10823 +# Check all directory arguments for consistency.
10824 +for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
10825 +               datadir sysconfdir sharedstatedir localstatedir includedir \
10826 +               oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
10827 +               libdir localedir mandir
10828  do
10829 -  eval ac_val=$`echo $ac_var`
10830 +  eval ac_val=\$$ac_var
10831 +  # Remove trailing slashes.
10832    case $ac_val in
10833 -    [\\/$]* | ?:[\\/]* ) ;;
10834 -    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10835 -   { (exit 1); exit 1; }; };;
10836 +    */ )
10837 +      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
10838 +      eval $ac_var=\$ac_val;;
10839 +  esac
10840 +  # Be sure to have absolute directory names.
10841 +  case $ac_val in
10842 +    [\\/$]* | ?:[\\/]* )  continue;;
10843 +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
10844    esac
10845 +  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10846 +   { (exit 1); exit 1; }; }
10847  done
10848  
10849  # There might be people who depend on the old broken behavior: `$host'
10850 @@ -845,7 +1398,7 @@ target=$target_alias
10851  if test "x$host_alias" != x; then
10852    if test "x$build_alias" = x; then
10853      cross_compiling=maybe
10854 -    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
10855 +    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
10856      If a cross compiler is detected then cross compile mode will be used." >&2
10857    elif test "x$build_alias" != "x$host_alias"; then
10858      cross_compiling=yes
10859 @@ -858,94 +1411,76 @@ test -n "$host_alias" && ac_tool_prefix=$host_alias-
10860  test "$silent" = yes && exec 6>/dev/null
10861  
10862  
10863 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
10864 +ac_ls_di=`ls -di .` &&
10865 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
10866 +  { $as_echo "$as_me: error: working directory cannot be determined" >&2
10867 +   { (exit 1); exit 1; }; }
10868 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
10869 +  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
10870 +   { (exit 1); exit 1; }; }
10871 +
10872 +
10873  # Find the source files, if location was not specified.
10874  if test -z "$srcdir"; then
10875    ac_srcdir_defaulted=yes
10876 -  # Try the directory containing this script, then its parent.
10877 -  ac_confdir=`(dirname "$0") 2>/dev/null ||
10878 -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10879 -        X"$0" : 'X\(//\)[^/]' \| \
10880 -        X"$0" : 'X\(//\)$' \| \
10881 -        X"$0" : 'X\(/\)' \| \
10882 -        .     : '\(.\)' 2>/dev/null ||
10883 -echo X"$0" |
10884 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10885 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10886 -         /^X\(\/\/\)$/{ s//\1/; q; }
10887 -         /^X\(\/\).*/{ s//\1/; q; }
10888 -         s/.*/./; q'`
10889 +  # Try the directory containing this script, then the parent directory.
10890 +  ac_confdir=`$as_dirname -- "$as_myself" ||
10891 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10892 +        X"$as_myself" : 'X\(//\)[^/]' \| \
10893 +        X"$as_myself" : 'X\(//\)$' \| \
10894 +        X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
10895 +$as_echo X"$as_myself" |
10896 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10897 +           s//\1/
10898 +           q
10899 +         }
10900 +         /^X\(\/\/\)[^/].*/{
10901 +           s//\1/
10902 +           q
10903 +         }
10904 +         /^X\(\/\/\)$/{
10905 +           s//\1/
10906 +           q
10907 +         }
10908 +         /^X\(\/\).*/{
10909 +           s//\1/
10910 +           q
10911 +         }
10912 +         s/.*/./; q'`
10913    srcdir=$ac_confdir
10914 -  if test ! -r $srcdir/$ac_unique_file; then
10915 +  if test ! -r "$srcdir/$ac_unique_file"; then
10916      srcdir=..
10917    fi
10918  else
10919    ac_srcdir_defaulted=no
10920  fi
10921 -if test ! -r $srcdir/$ac_unique_file; then
10922 -  if test "$ac_srcdir_defaulted" = yes; then
10923 -    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
10924 -   { (exit 1); exit 1; }; }
10925 -  else
10926 -    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
10927 +if test ! -r "$srcdir/$ac_unique_file"; then
10928 +  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
10929 +  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
10930     { (exit 1); exit 1; }; }
10931 -  fi
10932  fi
10933 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
10934 -  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
10935 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
10936 +ac_abs_confdir=`(
10937 +       cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
10938     { (exit 1); exit 1; }; }
10939 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
10940 -ac_env_build_alias_set=${build_alias+set}
10941 -ac_env_build_alias_value=$build_alias
10942 -ac_cv_env_build_alias_set=${build_alias+set}
10943 -ac_cv_env_build_alias_value=$build_alias
10944 -ac_env_host_alias_set=${host_alias+set}
10945 -ac_env_host_alias_value=$host_alias
10946 -ac_cv_env_host_alias_set=${host_alias+set}
10947 -ac_cv_env_host_alias_value=$host_alias
10948 -ac_env_target_alias_set=${target_alias+set}
10949 -ac_env_target_alias_value=$target_alias
10950 -ac_cv_env_target_alias_set=${target_alias+set}
10951 -ac_cv_env_target_alias_value=$target_alias
10952 -ac_env_CC_set=${CC+set}
10953 -ac_env_CC_value=$CC
10954 -ac_cv_env_CC_set=${CC+set}
10955 -ac_cv_env_CC_value=$CC
10956 -ac_env_CFLAGS_set=${CFLAGS+set}
10957 -ac_env_CFLAGS_value=$CFLAGS
10958 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
10959 -ac_cv_env_CFLAGS_value=$CFLAGS
10960 -ac_env_LDFLAGS_set=${LDFLAGS+set}
10961 -ac_env_LDFLAGS_value=$LDFLAGS
10962 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
10963 -ac_cv_env_LDFLAGS_value=$LDFLAGS
10964 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
10965 -ac_env_CPPFLAGS_value=$CPPFLAGS
10966 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
10967 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
10968 -ac_env_CPP_set=${CPP+set}
10969 -ac_env_CPP_value=$CPP
10970 -ac_cv_env_CPP_set=${CPP+set}
10971 -ac_cv_env_CPP_value=$CPP
10972 -ac_env_CXX_set=${CXX+set}
10973 -ac_env_CXX_value=$CXX
10974 -ac_cv_env_CXX_set=${CXX+set}
10975 -ac_cv_env_CXX_value=$CXX
10976 -ac_env_CXXFLAGS_set=${CXXFLAGS+set}
10977 -ac_env_CXXFLAGS_value=$CXXFLAGS
10978 -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
10979 -ac_cv_env_CXXFLAGS_value=$CXXFLAGS
10980 -ac_env_CXXCPP_set=${CXXCPP+set}
10981 -ac_env_CXXCPP_value=$CXXCPP
10982 -ac_cv_env_CXXCPP_set=${CXXCPP+set}
10983 -ac_cv_env_CXXCPP_value=$CXXCPP
10984 -ac_env_F77_set=${F77+set}
10985 -ac_env_F77_value=$F77
10986 -ac_cv_env_F77_set=${F77+set}
10987 -ac_cv_env_F77_value=$F77
10988 -ac_env_FFLAGS_set=${FFLAGS+set}
10989 -ac_env_FFLAGS_value=$FFLAGS
10990 -ac_cv_env_FFLAGS_set=${FFLAGS+set}
10991 -ac_cv_env_FFLAGS_value=$FFLAGS
10992 +       pwd)`
10993 +# When building in place, set srcdir=.
10994 +if test "$ac_abs_confdir" = "$ac_pwd"; then
10995 +  srcdir=.
10996 +fi
10997 +# Remove unnecessary trailing slashes from srcdir.
10998 +# Double slashes in file names in object file debugging info
10999 +# mess up M-x gdb in Emacs.
11000 +case $srcdir in
11001 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
11002 +esac
11003 +for ac_var in $ac_precious_vars; do
11004 +  eval ac_env_${ac_var}_set=\${${ac_var}+set}
11005 +  eval ac_env_${ac_var}_value=\$${ac_var}
11006 +  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
11007 +  eval ac_cv_env_${ac_var}_value=\$${ac_var}
11008 +done
11009  
11010  #
11011  # Report the --help message.
11012 @@ -974,14 +1509,11 @@ Configuration:
11013    -n, --no-create         do not create output files
11014        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
11015  
11016 -_ACEOF
11017 -
11018 -  cat <<_ACEOF
11019  Installation directories:
11020    --prefix=PREFIX         install architecture-independent files in PREFIX
11021 -                         [$ac_default_prefix]
11022 +                          [$ac_default_prefix]
11023    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
11024 -                         [PREFIX]
11025 +                          [PREFIX]
11026  
11027  By default, \`make install' will install all the files in
11028  \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
11029 @@ -991,18 +1523,25 @@ for instance \`--prefix=\$HOME'.
11030  For better control, use the options below.
11031  
11032  Fine tuning of the installation directories:
11033 -  --bindir=DIR           user executables [EPREFIX/bin]
11034 -  --sbindir=DIR          system admin executables [EPREFIX/sbin]
11035 -  --libexecdir=DIR       program executables [EPREFIX/libexec]
11036 -  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
11037 -  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
11038 -  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
11039 -  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
11040 -  --libdir=DIR           object code libraries [EPREFIX/lib]
11041 -  --includedir=DIR       C header files [PREFIX/include]
11042 -  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
11043 -  --infodir=DIR          info documentation [PREFIX/info]
11044 -  --mandir=DIR           man documentation [PREFIX/man]
11045 +  --bindir=DIR            user executables [EPREFIX/bin]
11046 +  --sbindir=DIR           system admin executables [EPREFIX/sbin]
11047 +  --libexecdir=DIR        program executables [EPREFIX/libexec]
11048 +  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
11049 +  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
11050 +  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
11051 +  --libdir=DIR            object code libraries [EPREFIX/lib]
11052 +  --includedir=DIR        C header files [PREFIX/include]
11053 +  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
11054 +  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
11055 +  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
11056 +  --infodir=DIR           info documentation [DATAROOTDIR/info]
11057 +  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
11058 +  --mandir=DIR            man documentation [DATAROOTDIR/man]
11059 +  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
11060 +  --htmldir=DIR           html documentation [DOCDIR]
11061 +  --dvidir=DIR            dvi documentation [DOCDIR]
11062 +  --pdfdir=DIR            pdf documentation [DOCDIR]
11063 +  --psdir=DIR             ps documentation [DOCDIR]
11064  _ACEOF
11065  
11066    cat <<\_ACEOF
11067 @@ -1024,16 +1563,15 @@ if test -n "$ac_init_help"; then
11068    cat <<\_ACEOF
11069  
11070  Optional Features:
11071 +  --disable-option-checking  ignore unrecognized --enable/--with options
11072    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
11073    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
11074    --enable-maintainer-mode  enable make rules and dependencies not useful
11075                           (and sometimes confusing) to the casual installer
11076    --disable-dependency-tracking  speeds up one-time build
11077    --enable-dependency-tracking   do not reject slow dependency extractors
11078 -  --enable-static[=PKGS]
11079 -                          build static libraries [default=no]
11080 -  --enable-shared[=PKGS]
11081 -                          build shared libraries [default=yes]
11082 +  --enable-static[=PKGS]  build static libraries [default=no]
11083 +  --enable-shared[=PKGS]  build shared libraries [default=yes]
11084    --enable-fast-install[=PKGS]
11085                            optimize for fast installation [default=yes]
11086    --disable-libtool-lock  avoid locking (might break parallel builds)
11087 @@ -1045,8 +1583,7 @@ Optional Packages:
11088    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
11089    --with-pic              try to use only PIC/non-PIC objects [default=use
11090                            both]
11091 -  --with-tags[=TAGS]
11092 -                          include additional configurations [automatic]
11093 +  --with-tags[=TAGS]      include additional configurations [automatic]
11094    --with-mysql=DIR        Location of your MySQL installation
11095  
11096  Some influential environment variables:
11097 @@ -1054,8 +1591,9 @@ Some influential environment variables:
11098    CFLAGS      C compiler flags
11099    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
11100                nonstandard directory <lib dir>
11101 -  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
11102 -              headers in a nonstandard directory <include dir>
11103 +  LIBS        libraries to pass to the linker, e.g. -l<library>
11104 +  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
11105 +              you have headers in a nonstandard directory <include dir>
11106    CPP         C preprocessor
11107    CXX         C++ compiler command
11108    CXXFLAGS    C++ compiler flags
11109 @@ -1067,118 +1605,88 @@ Use these variables to override the choices made by `configure' or to help
11110  it to find libraries and programs with nonstandard names/locations.
11111  
11112  _ACEOF
11113 +ac_status=$?
11114  fi
11115  
11116  if test "$ac_init_help" = "recursive"; then
11117    # If there are subdirs, report their specific --help.
11118 -  ac_popdir=`pwd`
11119    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
11120 -    test -d $ac_dir || continue
11121 +    test -d "$ac_dir" ||
11122 +      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
11123 +      continue
11124      ac_builddir=.
11125  
11126 -if test "$ac_dir" != .; then
11127 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11128 -  # A "../" for each directory in $ac_dir_suffix.
11129 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11130 -else
11131 -  ac_dir_suffix= ac_top_builddir=
11132 -fi
11133 +case "$ac_dir" in
11134 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11135 +*)
11136 +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11137 +  # A ".." for each directory in $ac_dir_suffix.
11138 +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11139 +  case $ac_top_builddir_sub in
11140 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11141 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11142 +  esac ;;
11143 +esac
11144 +ac_abs_top_builddir=$ac_pwd
11145 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
11146 +# for backward compatibility:
11147 +ac_top_builddir=$ac_top_build_prefix
11148  
11149  case $srcdir in
11150 -  .)  # No --srcdir option.  We are building in place.
11151 +  .)  # We are building in place.
11152      ac_srcdir=.
11153 -    if test -z "$ac_top_builddir"; then
11154 -       ac_top_srcdir=.
11155 -    else
11156 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11157 -    fi ;;
11158 -  [\\/]* | ?:[\\/]* )  # Absolute path.
11159 +    ac_top_srcdir=$ac_top_builddir_sub
11160 +    ac_abs_top_srcdir=$ac_pwd ;;
11161 +  [\\/]* | ?:[\\/]* )  # Absolute name.
11162      ac_srcdir=$srcdir$ac_dir_suffix;
11163 -    ac_top_srcdir=$srcdir ;;
11164 -  *) # Relative path.
11165 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11166 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11167 +    ac_top_srcdir=$srcdir
11168 +    ac_abs_top_srcdir=$srcdir ;;
11169 +  *) # Relative name.
11170 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11171 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
11172 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11173  esac
11174 -
11175 -# Do not use `cd foo && pwd` to compute absolute paths, because
11176 -# the directories may not exist.
11177 -case `pwd` in
11178 -.) ac_abs_builddir="$ac_dir";;
11179 -*)
11180 -  case "$ac_dir" in
11181 -  .) ac_abs_builddir=`pwd`;;
11182 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11183 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11184 -  esac;;
11185 -esac
11186 -case $ac_abs_builddir in
11187 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
11188 -*)
11189 -  case ${ac_top_builddir}. in
11190 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
11191 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11192 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11193 -  esac;;
11194 -esac
11195 -case $ac_abs_builddir in
11196 -.) ac_abs_srcdir=$ac_srcdir;;
11197 -*)
11198 -  case $ac_srcdir in
11199 -  .) ac_abs_srcdir=$ac_abs_builddir;;
11200 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11201 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11202 -  esac;;
11203 -esac
11204 -case $ac_abs_builddir in
11205 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
11206 -*)
11207 -  case $ac_top_srcdir in
11208 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11209 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11210 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11211 -  esac;;
11212 -esac
11213 -
11214 -    cd $ac_dir
11215 -    # Check for guested configure; otherwise get Cygnus style configure.
11216 -    if test -f $ac_srcdir/configure.gnu; then
11217 -      echo
11218 -      $SHELL $ac_srcdir/configure.gnu  --help=recursive
11219 -    elif test -f $ac_srcdir/configure; then
11220 -      echo
11221 -      $SHELL $ac_srcdir/configure  --help=recursive
11222 -    elif test -f $ac_srcdir/configure.ac ||
11223 -          test -f $ac_srcdir/configure.in; then
11224 -      echo
11225 -      $ac_configure --help
11226 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11227 +
11228 +    cd "$ac_dir" || { ac_status=$?; continue; }
11229 +    # Check for guested configure.
11230 +    if test -f "$ac_srcdir/configure.gnu"; then
11231 +      echo &&
11232 +      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
11233 +    elif test -f "$ac_srcdir/configure"; then
11234 +      echo &&
11235 +      $SHELL "$ac_srcdir/configure" --help=recursive
11236      else
11237 -      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
11238 -    fi
11239 -    cd $ac_popdir
11240 +      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
11241 +    fi || ac_status=$?
11242 +    cd "$ac_pwd" || { ac_status=$?; break; }
11243    done
11244  fi
11245  
11246 -test -n "$ac_init_help" && exit 0
11247 +test -n "$ac_init_help" && exit $ac_status
11248  if $ac_init_version; then
11249    cat <<\_ACEOF
11250 +configure
11251 +generated by GNU Autoconf 2.63
11252  
11253 -Copyright (C) 2003 Free Software Foundation, Inc.
11254 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11255 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
11256  This configure script is free software; the Free Software Foundation
11257  gives unlimited permission to copy, distribute and modify it.
11258  _ACEOF
11259 -  exit 0
11260 +  exit
11261  fi
11262 -exec 5>config.log
11263 -cat >&5 <<_ACEOF
11264 +cat >config.log <<_ACEOF
11265  This file contains any messages produced by compilers while
11266  running configure, to aid debugging if configure makes a mistake.
11267  
11268  It was created by $as_me, which was
11269 -generated by GNU Autoconf 2.59.  Invocation command line was
11270 +generated by GNU Autoconf 2.63.  Invocation command line was
11271  
11272    $ $0 $@
11273  
11274  _ACEOF
11275 +exec 5>>config.log
11276  {
11277  cat <<_ASUNAME
11278  ## --------- ##
11279 @@ -1197,7 +1705,7 @@ uname -v = `(uname -v) 2>/dev/null || echo unknown`
11280  /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
11281  /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
11282  /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
11283 -hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
11284 +/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
11285  /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
11286  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
11287  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
11288 @@ -1209,8 +1717,9 @@ for as_dir in $PATH
11289  do
11290    IFS=$as_save_IFS
11291    test -z "$as_dir" && as_dir=.
11292 -  echo "PATH: $as_dir"
11293 +  $as_echo "PATH: $as_dir"
11294  done
11295 +IFS=$as_save_IFS
11296  
11297  } >&5
11298  
11299 @@ -1232,7 +1741,6 @@ _ACEOF
11300  ac_configure_args=
11301  ac_configure_args0=
11302  ac_configure_args1=
11303 -ac_sep=
11304  ac_must_keep_next=false
11305  for ac_pass in 1 2
11306  do
11307 @@ -1243,8 +1751,8 @@ do
11308      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11309      | -silent | --silent | --silen | --sile | --sil)
11310        continue ;;
11311 -    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
11312 -      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11313 +    *\'*)
11314 +      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11315      esac
11316      case $ac_pass in
11317      1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
11318 @@ -1265,9 +1773,7 @@ do
11319           -* ) ac_must_keep_next=true ;;
11320         esac
11321        fi
11322 -      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
11323 -      # Get rid of the leading space.
11324 -      ac_sep=" "
11325 +      ac_configure_args="$ac_configure_args '$ac_arg'"
11326        ;;
11327      esac
11328    done
11329 @@ -1278,8 +1784,8 @@ $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_
11330  # When interrupted or exit'd, cleanup temporary files, and complete
11331  # config.log.  We remove comments because anyway the quotes in there
11332  # would cause problems or look ugly.
11333 -# WARNING: Be sure not to use single quotes in there, as some shells,
11334 -# such as our DU 5.0 friend, will then `close' the trap.
11335 +# WARNING: Use '\'' to represent an apostrophe within the trap.
11336 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
11337  trap 'exit_status=$?
11338    # Save into config.log some information that might help in debugging.
11339    {
11340 @@ -1292,20 +1798,35 @@ trap 'exit_status=$?
11341  _ASBOX
11342      echo
11343      # The following way of writing the cache mishandles newlines in values,
11344 -{
11345 +(
11346 +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
11347 +    eval ac_val=\$$ac_var
11348 +    case $ac_val in #(
11349 +    *${as_nl}*)
11350 +      case $ac_var in #(
11351 +      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11352 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11353 +      esac
11354 +      case $ac_var in #(
11355 +      _ | IFS | as_nl) ;; #(
11356 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11357 +      *) $as_unset $ac_var ;;
11358 +      esac ;;
11359 +    esac
11360 +  done
11361    (set) 2>&1 |
11362 -    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
11363 -    *ac_space=\ *)
11364 +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
11365 +    *${as_nl}ac_space=\ *)
11366        sed -n \
11367 -       "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
11368 -         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
11369 -      ;;
11370 +       "s/'\''/'\''\\\\'\'''\''/g;
11371 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
11372 +      ;; #(
11373      *)
11374 -      sed -n \
11375 -       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11376 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11377        ;;
11378 -    esac;
11379 -}
11380 +    esac |
11381 +    sort
11382 +)
11383      echo
11384  
11385      cat <<\_ASBOX
11386 @@ -1316,22 +1837,28 @@ _ASBOX
11387      echo
11388      for ac_var in $ac_subst_vars
11389      do
11390 -      eval ac_val=$`echo $ac_var`
11391 -      echo "$ac_var='"'"'$ac_val'"'"'"
11392 +      eval ac_val=\$$ac_var
11393 +      case $ac_val in
11394 +      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
11395 +      esac
11396 +      $as_echo "$ac_var='\''$ac_val'\''"
11397      done | sort
11398      echo
11399  
11400      if test -n "$ac_subst_files"; then
11401        cat <<\_ASBOX
11402 -## ------------- ##
11403 -## Output files. ##
11404 -## ------------- ##
11405 +## ------------------- ##
11406 +## File substitutions. ##
11407 +## ------------------- ##
11408  _ASBOX
11409        echo
11410        for ac_var in $ac_subst_files
11411        do
11412 -       eval ac_val=$`echo $ac_var`
11413 -       echo "$ac_var='"'"'$ac_val'"'"'"
11414 +       eval ac_val=\$$ac_var
11415 +       case $ac_val in
11416 +       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
11417 +       esac
11418 +       $as_echo "$ac_var='\''$ac_val'\''"
11419        done | sort
11420        echo
11421      fi
11422 @@ -1343,26 +1870,24 @@ _ASBOX
11423  ## ----------- ##
11424  _ASBOX
11425        echo
11426 -      sed "/^$/d" confdefs.h | sort
11427 +      cat confdefs.h
11428        echo
11429      fi
11430      test "$ac_signal" != 0 &&
11431 -      echo "$as_me: caught signal $ac_signal"
11432 -    echo "$as_me: exit $exit_status"
11433 +      $as_echo "$as_me: caught signal $ac_signal"
11434 +    $as_echo "$as_me: exit $exit_status"
11435    } >&5
11436 -  rm -f core *.core &&
11437 -  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
11438 +  rm -f core *.core core.conftest.* &&
11439 +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
11440      exit $exit_status
11441 -     ' 0
11442 +' 0
11443  for ac_signal in 1 2 13 15; do
11444    trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
11445  done
11446  ac_signal=0
11447  
11448  # confdefs.h avoids OS command line length limits that DEFS can exceed.
11449 -rm -rf conftest* confdefs.h
11450 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
11451 -echo >confdefs.h
11452 +rm -f -r conftest* confdefs.h
11453  
11454  # Predefined preprocessor variables.
11455  
11456 @@ -1392,18 +1917,24 @@ _ACEOF
11457  
11458  
11459  # Let the site file select an alternate cache file if it wants to.
11460 -# Prefer explicitly selected file to automatically selected ones.
11461 -if test -z "$CONFIG_SITE"; then
11462 -  if test "x$prefix" != xNONE; then
11463 -    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
11464 -  else
11465 -    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
11466 -  fi
11467 -fi
11468 -for ac_site_file in $CONFIG_SITE; do
11469 +# Prefer an explicitly selected file to automatically selected ones.
11470 +ac_site_file1=NONE
11471 +ac_site_file2=NONE
11472 +if test -n "$CONFIG_SITE"; then
11473 +  ac_site_file1=$CONFIG_SITE
11474 +elif test "x$prefix" != xNONE; then
11475 +  ac_site_file1=$prefix/share/config.site
11476 +  ac_site_file2=$prefix/etc/config.site
11477 +else
11478 +  ac_site_file1=$ac_default_prefix/share/config.site
11479 +  ac_site_file2=$ac_default_prefix/etc/config.site
11480 +fi
11481 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
11482 +do
11483 +  test "x$ac_site_file" = xNONE && continue
11484    if test -r "$ac_site_file"; then
11485 -    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
11486 -echo "$as_me: loading site script $ac_site_file" >&6;}
11487 +    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
11488 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
11489      sed 's/^/| /' "$ac_site_file" >&5
11490      . "$ac_site_file"
11491    fi
11492 @@ -1413,54 +1944,61 @@ if test -r "$cache_file"; then
11493    # Some versions of bash will fail to source /dev/null (special
11494    # files actually), so we avoid doing that.
11495    if test -f "$cache_file"; then
11496 -    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
11497 -echo "$as_me: loading cache $cache_file" >&6;}
11498 +    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
11499 +$as_echo "$as_me: loading cache $cache_file" >&6;}
11500      case $cache_file in
11501 -      [\\/]* | ?:[\\/]* ) . $cache_file;;
11502 -      *)                      . ./$cache_file;;
11503 +      [\\/]* | ?:[\\/]* ) . "$cache_file";;
11504 +      *)                      . "./$cache_file";;
11505      esac
11506    fi
11507  else
11508 -  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
11509 -echo "$as_me: creating cache $cache_file" >&6;}
11510 +  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
11511 +$as_echo "$as_me: creating cache $cache_file" >&6;}
11512    >$cache_file
11513  fi
11514  
11515  # Check that the precious variables saved in the cache have kept the same
11516  # value.
11517  ac_cache_corrupted=false
11518 -for ac_var in `(set) 2>&1 |
11519 -              sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
11520 +for ac_var in $ac_precious_vars; do
11521    eval ac_old_set=\$ac_cv_env_${ac_var}_set
11522    eval ac_new_set=\$ac_env_${ac_var}_set
11523 -  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
11524 -  eval ac_new_val="\$ac_env_${ac_var}_value"
11525 +  eval ac_old_val=\$ac_cv_env_${ac_var}_value
11526 +  eval ac_new_val=\$ac_env_${ac_var}_value
11527    case $ac_old_set,$ac_new_set in
11528      set,)
11529 -      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
11530 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
11531 +      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
11532 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
11533        ac_cache_corrupted=: ;;
11534      ,set)
11535 -      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
11536 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
11537 +      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
11538 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
11539        ac_cache_corrupted=: ;;
11540      ,);;
11541      *)
11542        if test "x$ac_old_val" != "x$ac_new_val"; then
11543 -       { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
11544 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
11545 -       { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
11546 -echo "$as_me:   former value:  $ac_old_val" >&2;}
11547 -       { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
11548 -echo "$as_me:   current value: $ac_new_val" >&2;}
11549 -       ac_cache_corrupted=:
11550 +       # differences in whitespace do not lead to failure.
11551 +       ac_old_val_w=`echo x $ac_old_val`
11552 +       ac_new_val_w=`echo x $ac_new_val`
11553 +       if test "$ac_old_val_w" != "$ac_new_val_w"; then
11554 +         { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
11555 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
11556 +         ac_cache_corrupted=:
11557 +       else
11558 +         { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
11559 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
11560 +         eval $ac_var=\$ac_old_val
11561 +       fi
11562 +       { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
11563 +$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
11564 +       { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
11565 +$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
11566        fi;;
11567    esac
11568    # Pass precious variables to config.status.
11569    if test "$ac_new_set" = set; then
11570      case $ac_new_val in
11571 -    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
11572 -      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
11573 +    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
11574      *) ac_arg=$ac_var=$ac_new_val ;;
11575      esac
11576      case " $ac_configure_args " in
11577 @@ -1470,19 +2008,15 @@ echo "$as_me:   current value: $ac_new_val" >&2;}
11578    fi
11579  done
11580  if $ac_cache_corrupted; then
11581 -  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
11582 -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
11583 -  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
11584 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
11585 +  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11586 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11587 +  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
11588 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
11589 +  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
11590 +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
11591     { (exit 1); exit 1; }; }
11592  fi
11593  
11594 -ac_ext=c
11595 -ac_cpp='$CPP $CPPFLAGS'
11596 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11597 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11598 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
11599 -
11600  
11601  
11602  
11603 @@ -1499,109 +2033,164 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
11604  
11605  
11606  
11607 +ac_ext=c
11608 +ac_cpp='$CPP $CPPFLAGS'
11609 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11610 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11611 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
11612  
11613  
11614  ac_aux_dir=
11615 -for ac_dir in aux $srcdir/aux; do
11616 -  if test -f $ac_dir/install-sh; then
11617 +for ac_dir in aux "$srcdir"/aux; do
11618 +  if test -f "$ac_dir/install-sh"; then
11619      ac_aux_dir=$ac_dir
11620      ac_install_sh="$ac_aux_dir/install-sh -c"
11621      break
11622 -  elif test -f $ac_dir/install.sh; then
11623 +  elif test -f "$ac_dir/install.sh"; then
11624      ac_aux_dir=$ac_dir
11625      ac_install_sh="$ac_aux_dir/install.sh -c"
11626      break
11627 -  elif test -f $ac_dir/shtool; then
11628 +  elif test -f "$ac_dir/shtool"; then
11629      ac_aux_dir=$ac_dir
11630      ac_install_sh="$ac_aux_dir/shtool install -c"
11631      break
11632    fi
11633  done
11634  if test -z "$ac_aux_dir"; then
11635 -  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
11636 -echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
11637 +  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux \"$srcdir\"/aux" >&5
11638 +$as_echo "$as_me: error: cannot find install-sh or install.sh in aux \"$srcdir\"/aux" >&2;}
11639     { (exit 1); exit 1; }; }
11640  fi
11641 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
11642 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
11643 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
11644 +
11645 +# These three variables are undocumented and unsupported,
11646 +# and are intended to be withdrawn in a future Autoconf release.
11647 +# They can cause serious problems if a builder's source tree is in a directory
11648 +# whose full name contains unusual characters.
11649 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
11650 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
11651 +ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
11652 +
11653  
11654  
11655  
11656  # Make sure we can run config.sub.
11657 -$ac_config_sub sun4 >/dev/null 2>&1 ||
11658 -  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
11659 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
11660 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
11661 +  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
11662 +$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
11663     { (exit 1); exit 1; }; }
11664  
11665 -echo "$as_me:$LINENO: checking build system type" >&5
11666 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
11667 +{ $as_echo "$as_me:$LINENO: checking build system type" >&5
11668 +$as_echo_n "checking build system type... " >&6; }
11669  if test "${ac_cv_build+set}" = set; then
11670 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11671 -else
11672 -  ac_cv_build_alias=$build_alias
11673 -test -z "$ac_cv_build_alias" &&
11674 -  ac_cv_build_alias=`$ac_config_guess`
11675 -test -z "$ac_cv_build_alias" &&
11676 -  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11677 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11678 +  $as_echo_n "(cached) " >&6
11679 +else
11680 +  ac_build_alias=$build_alias
11681 +test "x$ac_build_alias" = x &&
11682 +  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
11683 +test "x$ac_build_alias" = x &&
11684 +  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11685 +$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11686     { (exit 1); exit 1; }; }
11687 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
11688 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
11689 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
11690 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
11691 +  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
11692 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
11693     { (exit 1); exit 1; }; }
11694  
11695  fi
11696 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11697 -echo "${ECHO_T}$ac_cv_build" >&6
11698 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11699 +$as_echo "$ac_cv_build" >&6; }
11700 +case $ac_cv_build in
11701 +*-*-*) ;;
11702 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
11703 +$as_echo "$as_me: error: invalid value of canonical build" >&2;}
11704 +   { (exit 1); exit 1; }; };;
11705 +esac
11706  build=$ac_cv_build
11707 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11708 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11709 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11710 -
11711 -
11712 -echo "$as_me:$LINENO: checking host system type" >&5
11713 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
11714 +ac_save_IFS=$IFS; IFS='-'
11715 +set x $ac_cv_build
11716 +shift
11717 +build_cpu=$1
11718 +build_vendor=$2
11719 +shift; shift
11720 +# Remember, the first character of IFS is used to create $*,
11721 +# except with old shells:
11722 +build_os=$*
11723 +IFS=$ac_save_IFS
11724 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
11725 +
11726 +
11727 +{ $as_echo "$as_me:$LINENO: checking host system type" >&5
11728 +$as_echo_n "checking host system type... " >&6; }
11729  if test "${ac_cv_host+set}" = set; then
11730 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11731 -else
11732 -  ac_cv_host_alias=$host_alias
11733 -test -z "$ac_cv_host_alias" &&
11734 -  ac_cv_host_alias=$ac_cv_build_alias
11735 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
11736 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
11737 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
11738 +  $as_echo_n "(cached) " >&6
11739 +else
11740 +  if test "x$host_alias" = x; then
11741 +  ac_cv_host=$ac_cv_build
11742 +else
11743 +  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11744 +    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11745 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11746     { (exit 1); exit 1; }; }
11747 +fi
11748  
11749  fi
11750 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11751 -echo "${ECHO_T}$ac_cv_host" >&6
11752 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11753 +$as_echo "$ac_cv_host" >&6; }
11754 +case $ac_cv_host in
11755 +*-*-*) ;;
11756 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11757 +$as_echo "$as_me: error: invalid value of canonical host" >&2;}
11758 +   { (exit 1); exit 1; }; };;
11759 +esac
11760  host=$ac_cv_host
11761 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11762 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11763 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11764 -
11765 -
11766 -echo "$as_me:$LINENO: checking target system type" >&5
11767 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
11768 +ac_save_IFS=$IFS; IFS='-'
11769 +set x $ac_cv_host
11770 +shift
11771 +host_cpu=$1
11772 +host_vendor=$2
11773 +shift; shift
11774 +# Remember, the first character of IFS is used to create $*,
11775 +# except with old shells:
11776 +host_os=$*
11777 +IFS=$ac_save_IFS
11778 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11779 +
11780 +
11781 +{ $as_echo "$as_me:$LINENO: checking target system type" >&5
11782 +$as_echo_n "checking target system type... " >&6; }
11783  if test "${ac_cv_target+set}" = set; then
11784 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11785 -else
11786 -  ac_cv_target_alias=$target_alias
11787 -test "x$ac_cv_target_alias" = "x" &&
11788 -  ac_cv_target_alias=$ac_cv_host_alias
11789 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
11790 -  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
11791 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
11792 +  $as_echo_n "(cached) " >&6
11793 +else
11794 +  if test "x$target_alias" = x; then
11795 +  ac_cv_target=$ac_cv_host
11796 +else
11797 +  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
11798 +    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
11799 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
11800     { (exit 1); exit 1; }; }
11801 +fi
11802  
11803  fi
11804 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
11805 -echo "${ECHO_T}$ac_cv_target" >&6
11806 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
11807 +$as_echo "$ac_cv_target" >&6; }
11808 +case $ac_cv_target in
11809 +*-*-*) ;;
11810 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
11811 +$as_echo "$as_me: error: invalid value of canonical target" >&2;}
11812 +   { (exit 1); exit 1; }; };;
11813 +esac
11814  target=$ac_cv_target
11815 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11816 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11817 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11818 +ac_save_IFS=$IFS; IFS='-'
11819 +set x $ac_cv_target
11820 +shift
11821 +target_cpu=$1
11822 +target_vendor=$2
11823 +shift; shift
11824 +# Remember, the first character of IFS is used to create $*,
11825 +# except with old shells:
11826 +target_os=$*
11827 +IFS=$ac_save_IFS
11828 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
11829  
11830  
11831  # The aliases save the names the user supplied, while $host etc.
11832 @@ -1625,11 +2214,12 @@ am__api_version="1.9"
11833  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11834  # OS/2's system install, which has a completely different semantic
11835  # ./install, which can be erroneously created by make from ./install.sh.
11836 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11837 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11838 +# Reject install programs that cannot install multiple files.
11839 +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11840 +$as_echo_n "checking for a BSD-compatible install... " >&6; }
11841  if test -z "$INSTALL"; then
11842  if test "${ac_cv_path_install+set}" = set; then
11843 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11844 +  $as_echo_n "(cached) " >&6
11845  else
11846    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847  for as_dir in $PATH
11848 @@ -1648,7 +2238,7 @@ case $as_dir/ in
11849      # by default.
11850      for ac_prog in ginstall scoinst install; do
11851        for ac_exec_ext in '' $ac_executable_extensions; do
11852 -       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11853 +       if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11854           if test $ac_prog = install &&
11855             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11856             # AIX install.  It has an incompatible calling convention.
11857 @@ -1658,30 +2248,43 @@ case $as_dir/ in
11858             # program-specific install script used by HP pwplus--don't use.
11859             :
11860           else
11861 -           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11862 -           break 3
11863 +           rm -rf conftest.one conftest.two conftest.dir
11864 +           echo one > conftest.one
11865 +           echo two > conftest.two
11866 +           mkdir conftest.dir
11867 +           if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11868 +             test -s conftest.one && test -s conftest.two &&
11869 +             test -s conftest.dir/conftest.one &&
11870 +             test -s conftest.dir/conftest.two
11871 +           then
11872 +             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11873 +             break 3
11874 +           fi
11875           fi
11876         fi
11877        done
11878      done
11879      ;;
11880  esac
11881 +
11882  done
11883 +IFS=$as_save_IFS
11884  
11885 +rm -rf conftest.one conftest.two conftest.dir
11886  
11887  fi
11888    if test "${ac_cv_path_install+set}" = set; then
11889      INSTALL=$ac_cv_path_install
11890    else
11891 -    # As a last resort, use the slow shell script.  We don't cache a
11892 -    # path for INSTALL within a source directory, because that will
11893 +    # As a last resort, use the slow shell script.  Don't cache a
11894 +    # value for INSTALL within a source directory, because that will
11895      # break other packages using the cache if that directory is
11896 -    # removed, or if the path is relative.
11897 +    # removed, or if the value is a relative name.
11898      INSTALL=$ac_install_sh
11899    fi
11900  fi
11901 -echo "$as_me:$LINENO: result: $INSTALL" >&5
11902 -echo "${ECHO_T}$INSTALL" >&6
11903 +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
11904 +$as_echo "$INSTALL" >&6; }
11905  
11906  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11907  # It thinks the first close brace ends the variable substitution.
11908 @@ -1691,8 +2294,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11909  
11910  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11911  
11912 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
11913 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
11914 +{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
11915 +$as_echo_n "checking whether build environment is sane... " >&6; }
11916  # Just in case
11917  sleep 1
11918  echo timestamp > conftest.file
11919 @@ -1715,9 +2318,9 @@ if (
11920        # if, for instance, CONFIG_SHELL is bash and it inherits a
11921        # broken ls alias from the environment.  This has actually
11922        # happened.  Such a system could not be considered "sane".
11923 -      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
11924 +      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
11925  alias in your environment" >&5
11926 -echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
11927 +$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
11928  alias in your environment" >&2;}
11929     { (exit 1); exit 1; }; }
11930     fi
11931 @@ -1728,26 +2331,23 @@ then
11932     # Ok.
11933     :
11934  else
11935 -   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
11936 +   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
11937  Check your system clock" >&5
11938 -echo "$as_me: error: newly created file is older than distributed files!
11939 +$as_echo "$as_me: error: newly created file is older than distributed files!
11940  Check your system clock" >&2;}
11941     { (exit 1); exit 1; }; }
11942  fi
11943 -echo "$as_me:$LINENO: result: yes" >&5
11944 -echo "${ECHO_T}yes" >&6
11945 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
11946 +$as_echo "yes" >&6; }
11947  test "$program_prefix" != NONE &&
11948 -  program_transform_name="s,^,$program_prefix,;$program_transform_name"
11949 +  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11950  # Use a double $ so make ignores it.
11951  test "$program_suffix" != NONE &&
11952 -  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
11953 -# Double any \ or $.  echo might interpret backslashes.
11954 +  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11955 +# Double any \ or $.
11956  # By default was `s,x,x', remove it if useless.
11957 -cat <<\_ACEOF >conftest.sed
11958 -s/[\\$]/&&/g;s/;s,x,x,$//
11959 -_ACEOF
11960 -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
11961 -rm conftest.sed
11962 +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11963 +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11964  
11965  # expand $ac_aux_dir to an absolute path
11966  am_aux_dir=`cd $ac_aux_dir && pwd`
11967 @@ -1758,8 +2358,8 @@ if eval "$MISSING --run true"; then
11968    am_missing_run="$MISSING --run "
11969  else
11970    am_missing_run=
11971 -  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
11972 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11973 +  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
11974 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11975  fi
11976  
11977  if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
11978 @@ -1799,10 +2399,10 @@ for ac_prog in gawk mawk nawk awk
11979  do
11980    # Extract the first word of "$ac_prog", so it can be a program name with args.
11981  set dummy $ac_prog; ac_word=$2
11982 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11983 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11984 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11985 +$as_echo_n "checking for $ac_word... " >&6; }
11986  if test "${ac_cv_prog_AWK+set}" = set; then
11987 -  echo $ECHO_N "(cached) $ECHO_C" >&6
11988 +  $as_echo_n "(cached) " >&6
11989  else
11990    if test -n "$AWK"; then
11991    ac_cv_prog_AWK="$AWK" # Let the user override the test.
11992 @@ -1813,54 +2413,58 @@ do
11993    IFS=$as_save_IFS
11994    test -z "$as_dir" && as_dir=.
11995    for ac_exec_ext in '' $ac_executable_extensions; do
11996 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11998      ac_cv_prog_AWK="$ac_prog"
11999 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12001      break 2
12002    fi
12003  done
12004  done
12005 +IFS=$as_save_IFS
12006  
12007  fi
12008  fi
12009  AWK=$ac_cv_prog_AWK
12010  if test -n "$AWK"; then
12011 -  echo "$as_me:$LINENO: result: $AWK" >&5
12012 -echo "${ECHO_T}$AWK" >&6
12013 +  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
12014 +$as_echo "$AWK" >&6; }
12015  else
12016 -  echo "$as_me:$LINENO: result: no" >&5
12017 -echo "${ECHO_T}no" >&6
12018 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12019 +$as_echo "no" >&6; }
12020  fi
12021  
12022 +
12023    test -n "$AWK" && break
12024  done
12025  
12026 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12027 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
12028 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
12029 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
12030 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12031 +{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12032 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12033 +set x ${MAKE-make}
12034 +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12035 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12036 +  $as_echo_n "(cached) " >&6
12037  else
12038    cat >conftest.make <<\_ACEOF
12039 +SHELL = /bin/sh
12040  all:
12041 -       @echo 'ac_maketemp="$(MAKE)"'
12042 +       @echo '@@@%%%=$(MAKE)=@@@%%%'
12043  _ACEOF
12044  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12045 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
12046 -if test -n "$ac_maketemp"; then
12047 -  eval ac_cv_prog_make_${ac_make}_set=yes
12048 -else
12049 -  eval ac_cv_prog_make_${ac_make}_set=no
12050 -fi
12051 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
12052 +  *@@@%%%=?*=@@@%%%*)
12053 +    eval ac_cv_prog_make_${ac_make}_set=yes;;
12054 +  *)
12055 +    eval ac_cv_prog_make_${ac_make}_set=no;;
12056 +esac
12057  rm -f conftest.make
12058  fi
12059 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12060 -  echo "$as_me:$LINENO: result: yes" >&5
12061 -echo "${ECHO_T}yes" >&6
12062 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12063 +  { $as_echo "$as_me:$LINENO: result: yes" >&5
12064 +$as_echo "yes" >&6; }
12065    SET_MAKE=
12066  else
12067 -  echo "$as_me:$LINENO: result: no" >&5
12068 -echo "${ECHO_T}no" >&6
12069 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12070 +$as_echo "no" >&6; }
12071    SET_MAKE="MAKE=${MAKE-make}"
12072  fi
12073  
12074 @@ -1876,8 +2480,8 @@ rmdir .tst 2>/dev/null
12075  # test to see if srcdir already configured
12076  if test "`cd $srcdir && pwd`" != "`pwd`" &&
12077     test -f $srcdir/config.status; then
12078 -  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
12079 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
12080 +  { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
12081 +$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
12082     { (exit 1); exit 1; }; }
12083  fi
12084  
12085 @@ -1931,10 +2535,10 @@ if test "$cross_compiling" != no; then
12086    if test -n "$ac_tool_prefix"; then
12087    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12088  set dummy ${ac_tool_prefix}strip; ac_word=$2
12089 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12090 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12091 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12092 +$as_echo_n "checking for $ac_word... " >&6; }
12093  if test "${ac_cv_prog_STRIP+set}" = set; then
12094 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12095 +  $as_echo_n "(cached) " >&6
12096  else
12097    if test -n "$STRIP"; then
12098    ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12099 @@ -1945,34 +2549,36 @@ do
12100    IFS=$as_save_IFS
12101    test -z "$as_dir" && as_dir=.
12102    for ac_exec_ext in '' $ac_executable_extensions; do
12103 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12106 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12107 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12108      break 2
12109    fi
12110  done
12111  done
12112 +IFS=$as_save_IFS
12113  
12114  fi
12115  fi
12116  STRIP=$ac_cv_prog_STRIP
12117  if test -n "$STRIP"; then
12118 -  echo "$as_me:$LINENO: result: $STRIP" >&5
12119 -echo "${ECHO_T}$STRIP" >&6
12120 +  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12121 +$as_echo "$STRIP" >&6; }
12122  else
12123 -  echo "$as_me:$LINENO: result: no" >&5
12124 -echo "${ECHO_T}no" >&6
12125 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12126 +$as_echo "no" >&6; }
12127  fi
12128  
12129 +
12130  fi
12131  if test -z "$ac_cv_prog_STRIP"; then
12132    ac_ct_STRIP=$STRIP
12133    # Extract the first word of "strip", so it can be a program name with args.
12134  set dummy strip; ac_word=$2
12135 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12136 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12137 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12138 +$as_echo_n "checking for $ac_word... " >&6; }
12139  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12140 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12141 +  $as_echo_n "(cached) " >&6
12142  else
12143    if test -n "$ac_ct_STRIP"; then
12144    ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12145 @@ -1983,27 +2589,37 @@ do
12146    IFS=$as_save_IFS
12147    test -z "$as_dir" && as_dir=.
12148    for ac_exec_ext in '' $ac_executable_extensions; do
12149 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12150 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12151      ac_cv_prog_ac_ct_STRIP="strip"
12152 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12153 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12154      break 2
12155    fi
12156  done
12157  done
12158 +IFS=$as_save_IFS
12159  
12160 -  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12161  fi
12162  fi
12163  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12164  if test -n "$ac_ct_STRIP"; then
12165 -  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12166 -echo "${ECHO_T}$ac_ct_STRIP" >&6
12167 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12168 +$as_echo "$ac_ct_STRIP" >&6; }
12169  else
12170 -  echo "$as_me:$LINENO: result: no" >&5
12171 -echo "${ECHO_T}no" >&6
12172 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12173 +$as_echo "no" >&6; }
12174  fi
12175  
12176 -  STRIP=$ac_ct_STRIP
12177 +  if test "x$ac_ct_STRIP" = x; then
12178 +    STRIP=":"
12179 +  else
12180 +    case $cross_compiling:$ac_tool_warned in
12181 +yes:)
12182 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12183 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12184 +ac_tool_warned=yes ;;
12185 +esac
12186 +    STRIP=$ac_ct_STRIP
12187 +  fi
12188  else
12189    STRIP="$ac_cv_prog_STRIP"
12190  fi
12191 @@ -2023,19 +2639,19 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
12192  
12193  
12194  
12195 -          ac_config_headers="$ac_config_headers config.h"
12196 +ac_config_headers="$ac_config_headers config.h"
12197  
12198 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12199 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12200 -    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12201 +{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12202 +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12203 +    # Check whether --enable-maintainer-mode was given.
12204  if test "${enable_maintainer_mode+set}" = set; then
12205 -  enableval="$enable_maintainer_mode"
12206 -  USE_MAINTAINER_MODE=$enableval
12207 +  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12208  else
12209    USE_MAINTAINER_MODE=no
12210 -fi;
12211 -  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12212 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12213 +fi
12214 +
12215 +  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12216 +$as_echo "$USE_MAINTAINER_MODE" >&6; }
12217  
12218  
12219  if test $USE_MAINTAINER_MODE = yes; then
12220 @@ -2058,10 +2674,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
12221  if test -n "$ac_tool_prefix"; then
12222    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12223  set dummy ${ac_tool_prefix}gcc; ac_word=$2
12224 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12225 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12226 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12227 +$as_echo_n "checking for $ac_word... " >&6; }
12228  if test "${ac_cv_prog_CC+set}" = set; then
12229 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12230 +  $as_echo_n "(cached) " >&6
12231  else
12232    if test -n "$CC"; then
12233    ac_cv_prog_CC="$CC" # Let the user override the test.
12234 @@ -2072,34 +2688,36 @@ do
12235    IFS=$as_save_IFS
12236    test -z "$as_dir" && as_dir=.
12237    for ac_exec_ext in '' $ac_executable_extensions; do
12238 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240      ac_cv_prog_CC="${ac_tool_prefix}gcc"
12241 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12243      break 2
12244    fi
12245  done
12246  done
12247 +IFS=$as_save_IFS
12248  
12249  fi
12250  fi
12251  CC=$ac_cv_prog_CC
12252  if test -n "$CC"; then
12253 -  echo "$as_me:$LINENO: result: $CC" >&5
12254 -echo "${ECHO_T}$CC" >&6
12255 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12256 +$as_echo "$CC" >&6; }
12257  else
12258 -  echo "$as_me:$LINENO: result: no" >&5
12259 -echo "${ECHO_T}no" >&6
12260 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12261 +$as_echo "no" >&6; }
12262  fi
12263  
12264 +
12265  fi
12266  if test -z "$ac_cv_prog_CC"; then
12267    ac_ct_CC=$CC
12268    # Extract the first word of "gcc", so it can be a program name with args.
12269  set dummy gcc; ac_word=$2
12270 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12271 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12272 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12273 +$as_echo_n "checking for $ac_word... " >&6; }
12274  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12275 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12276 +  $as_echo_n "(cached) " >&6
12277  else
12278    if test -n "$ac_ct_CC"; then
12279    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12280 @@ -2110,38 +2728,49 @@ do
12281    IFS=$as_save_IFS
12282    test -z "$as_dir" && as_dir=.
12283    for ac_exec_ext in '' $ac_executable_extensions; do
12284 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286      ac_cv_prog_ac_ct_CC="gcc"
12287 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12289      break 2
12290    fi
12291  done
12292  done
12293 +IFS=$as_save_IFS
12294  
12295  fi
12296  fi
12297  ac_ct_CC=$ac_cv_prog_ac_ct_CC
12298  if test -n "$ac_ct_CC"; then
12299 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12300 -echo "${ECHO_T}$ac_ct_CC" >&6
12301 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12302 +$as_echo "$ac_ct_CC" >&6; }
12303  else
12304 -  echo "$as_me:$LINENO: result: no" >&5
12305 -echo "${ECHO_T}no" >&6
12306 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12307 +$as_echo "no" >&6; }
12308  fi
12309  
12310 -  CC=$ac_ct_CC
12311 +  if test "x$ac_ct_CC" = x; then
12312 +    CC=""
12313 +  else
12314 +    case $cross_compiling:$ac_tool_warned in
12315 +yes:)
12316 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12317 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12318 +ac_tool_warned=yes ;;
12319 +esac
12320 +    CC=$ac_ct_CC
12321 +  fi
12322  else
12323    CC="$ac_cv_prog_CC"
12324  fi
12325  
12326  if test -z "$CC"; then
12327 -  if test -n "$ac_tool_prefix"; then
12328 -  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12329 +          if test -n "$ac_tool_prefix"; then
12330 +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12331  set dummy ${ac_tool_prefix}cc; ac_word=$2
12332 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12333 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12334 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12335 +$as_echo_n "checking for $ac_word... " >&6; }
12336  if test "${ac_cv_prog_CC+set}" = set; then
12337 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12338 +  $as_echo_n "(cached) " >&6
12339  else
12340    if test -n "$CC"; then
12341    ac_cv_prog_CC="$CC" # Let the user override the test.
12342 @@ -2152,76 +2781,36 @@ do
12343    IFS=$as_save_IFS
12344    test -z "$as_dir" && as_dir=.
12345    for ac_exec_ext in '' $ac_executable_extensions; do
12346 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12348      ac_cv_prog_CC="${ac_tool_prefix}cc"
12349 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12350 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12351      break 2
12352    fi
12353  done
12354  done
12355 +IFS=$as_save_IFS
12356  
12357  fi
12358  fi
12359  CC=$ac_cv_prog_CC
12360  if test -n "$CC"; then
12361 -  echo "$as_me:$LINENO: result: $CC" >&5
12362 -echo "${ECHO_T}$CC" >&6
12363 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12364 +$as_echo "$CC" >&6; }
12365  else
12366 -  echo "$as_me:$LINENO: result: no" >&5
12367 -echo "${ECHO_T}no" >&6
12368 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12369 +$as_echo "no" >&6; }
12370  fi
12371  
12372 -fi
12373 -if test -z "$ac_cv_prog_CC"; then
12374 -  ac_ct_CC=$CC
12375 -  # Extract the first word of "cc", so it can be a program name with args.
12376 -set dummy cc; ac_word=$2
12377 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12378 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12379 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12380 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12381 -else
12382 -  if test -n "$ac_ct_CC"; then
12383 -  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12384 -else
12385 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 -for as_dir in $PATH
12387 -do
12388 -  IFS=$as_save_IFS
12389 -  test -z "$as_dir" && as_dir=.
12390 -  for ac_exec_ext in '' $ac_executable_extensions; do
12391 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392 -    ac_cv_prog_ac_ct_CC="cc"
12393 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12394 -    break 2
12395 -  fi
12396 -done
12397 -done
12398 -
12399 -fi
12400 -fi
12401 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
12402 -if test -n "$ac_ct_CC"; then
12403 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12404 -echo "${ECHO_T}$ac_ct_CC" >&6
12405 -else
12406 -  echo "$as_me:$LINENO: result: no" >&5
12407 -echo "${ECHO_T}no" >&6
12408 -fi
12409 -
12410 -  CC=$ac_ct_CC
12411 -else
12412 -  CC="$ac_cv_prog_CC"
12413 -fi
12414  
12415 +  fi
12416  fi
12417  if test -z "$CC"; then
12418    # Extract the first word of "cc", so it can be a program name with args.
12419  set dummy cc; ac_word=$2
12420 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12421 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12422 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12423 +$as_echo_n "checking for $ac_word... " >&6; }
12424  if test "${ac_cv_prog_CC+set}" = set; then
12425 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12426 +  $as_echo_n "(cached) " >&6
12427  else
12428    if test -n "$CC"; then
12429    ac_cv_prog_CC="$CC" # Let the user override the test.
12430 @@ -2233,17 +2822,18 @@ do
12431    IFS=$as_save_IFS
12432    test -z "$as_dir" && as_dir=.
12433    for ac_exec_ext in '' $ac_executable_extensions; do
12434 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12436      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12437         ac_prog_rejected=yes
12438         continue
12439       fi
12440      ac_cv_prog_CC="cc"
12441 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12443      break 2
12444    fi
12445  done
12446  done
12447 +IFS=$as_save_IFS
12448  
12449  if test $ac_prog_rejected = yes; then
12450    # We found a bogon in the path, so make sure we never use it.
12451 @@ -2261,24 +2851,25 @@ fi
12452  fi
12453  CC=$ac_cv_prog_CC
12454  if test -n "$CC"; then
12455 -  echo "$as_me:$LINENO: result: $CC" >&5
12456 -echo "${ECHO_T}$CC" >&6
12457 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12458 +$as_echo "$CC" >&6; }
12459  else
12460 -  echo "$as_me:$LINENO: result: no" >&5
12461 -echo "${ECHO_T}no" >&6
12462 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12463 +$as_echo "no" >&6; }
12464  fi
12465  
12466 +
12467  fi
12468  if test -z "$CC"; then
12469    if test -n "$ac_tool_prefix"; then
12470 -  for ac_prog in cl
12471 +  for ac_prog in cl.exe
12472    do
12473      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12474  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12475 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12476 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12477 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12478 +$as_echo_n "checking for $ac_word... " >&6; }
12479  if test "${ac_cv_prog_CC+set}" = set; then
12480 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12481 +  $as_echo_n "(cached) " >&6
12482  else
12483    if test -n "$CC"; then
12484    ac_cv_prog_CC="$CC" # Let the user override the test.
12485 @@ -2289,38 +2880,40 @@ do
12486    IFS=$as_save_IFS
12487    test -z "$as_dir" && as_dir=.
12488    for ac_exec_ext in '' $ac_executable_extensions; do
12489 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12491      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12492 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12494      break 2
12495    fi
12496  done
12497  done
12498 +IFS=$as_save_IFS
12499  
12500  fi
12501  fi
12502  CC=$ac_cv_prog_CC
12503  if test -n "$CC"; then
12504 -  echo "$as_me:$LINENO: result: $CC" >&5
12505 -echo "${ECHO_T}$CC" >&6
12506 +  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12507 +$as_echo "$CC" >&6; }
12508  else
12509 -  echo "$as_me:$LINENO: result: no" >&5
12510 -echo "${ECHO_T}no" >&6
12511 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12512 +$as_echo "no" >&6; }
12513  fi
12514  
12515 +
12516      test -n "$CC" && break
12517    done
12518  fi
12519  if test -z "$CC"; then
12520    ac_ct_CC=$CC
12521 -  for ac_prog in cl
12522 +  for ac_prog in cl.exe
12523  do
12524    # Extract the first word of "$ac_prog", so it can be a program name with args.
12525  set dummy $ac_prog; ac_word=$2
12526 -echo "$as_me:$LINENO: checking for $ac_word" >&5
12527 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12528 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12529 +$as_echo_n "checking for $ac_word... " >&6; }
12530  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12531 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12532 +  $as_echo_n "(cached) " >&6
12533  else
12534    if test -n "$ac_ct_CC"; then
12535    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12536 @@ -2331,58 +2924,90 @@ do
12537    IFS=$as_save_IFS
12538    test -z "$as_dir" && as_dir=.
12539    for ac_exec_ext in '' $ac_executable_extensions; do
12540 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12541 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12542      ac_cv_prog_ac_ct_CC="$ac_prog"
12543 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12544 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12545      break 2
12546    fi
12547  done
12548  done
12549 +IFS=$as_save_IFS
12550  
12551  fi
12552  fi
12553  ac_ct_CC=$ac_cv_prog_ac_ct_CC
12554  if test -n "$ac_ct_CC"; then
12555 -  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12556 -echo "${ECHO_T}$ac_ct_CC" >&6
12557 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12558 +$as_echo "$ac_ct_CC" >&6; }
12559  else
12560 -  echo "$as_me:$LINENO: result: no" >&5
12561 -echo "${ECHO_T}no" >&6
12562 +  { $as_echo "$as_me:$LINENO: result: no" >&5
12563 +$as_echo "no" >&6; }
12564  fi
12565  
12566 +
12567    test -n "$ac_ct_CC" && break
12568  done
12569  
12570 -  CC=$ac_ct_CC
12571 +  if test "x$ac_ct_CC" = x; then
12572 +    CC=""
12573 +  else
12574 +    case $cross_compiling:$ac_tool_warned in
12575 +yes:)
12576 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12577 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12578 +ac_tool_warned=yes ;;
12579 +esac
12580 +    CC=$ac_ct_CC
12581 +  fi
12582  fi
12583  
12584  fi
12585  
12586  
12587 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12588 +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12589 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12590 +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12591  See \`config.log' for more details." >&5
12592 -echo "$as_me: error: no acceptable C compiler found in \$PATH
12593 +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
12594  See \`config.log' for more details." >&2;}
12595 -   { (exit 1); exit 1; }; }
12596 +   { (exit 1); exit 1; }; }; }
12597  
12598  # Provide some information about the compiler.
12599 -echo "$as_me:$LINENO:" \
12600 -     "checking for C compiler version" >&5
12601 -ac_compiler=`set X $ac_compile; echo $2`
12602 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12603 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
12604 +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
12605 +set X $ac_compile
12606 +ac_compiler=$2
12607 +{ (ac_try="$ac_compiler --version >&5"
12608 +case "(($ac_try" in
12609 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 +  *) ac_try_echo=$ac_try;;
12611 +esac
12612 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12613 +$as_echo "$ac_try_echo") >&5
12614 +  (eval "$ac_compiler --version >&5") 2>&5
12615    ac_status=$?
12616 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618    (exit $ac_status); }
12619 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12620 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
12621 +{ (ac_try="$ac_compiler -v >&5"
12622 +case "(($ac_try" in
12623 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 +  *) ac_try_echo=$ac_try;;
12625 +esac
12626 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12627 +$as_echo "$ac_try_echo") >&5
12628 +  (eval "$ac_compiler -v >&5") 2>&5
12629    ac_status=$?
12630 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632    (exit $ac_status); }
12633 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12634 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
12635 +{ (ac_try="$ac_compiler -V >&5"
12636 +case "(($ac_try" in
12637 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 +  *) ac_try_echo=$ac_try;;
12639 +esac
12640 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12641 +$as_echo "$ac_try_echo") >&5
12642 +  (eval "$ac_compiler -V >&5") 2>&5
12643    ac_status=$?
12644 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646    (exit $ac_status); }
12647  
12648  cat >conftest.$ac_ext <<_ACEOF
12649 @@ -2401,111 +3026,150 @@ main ()
12650  }
12651  _ACEOF
12652  ac_clean_files_save=$ac_clean_files
12653 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
12654 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
12655  # Try to create an executable without -o first, disregard a.out.
12656  # It will help us diagnose broken compilers, and finding out an intuition
12657  # of exeext.
12658 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12659 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
12660 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12661 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12662 -  (eval $ac_link_default) 2>&5
12663 +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12664 +$as_echo_n "checking for C compiler default output file name... " >&6; }
12665 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12666 +
12667 +# The possible output files:
12668 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
12669 +
12670 +ac_rmfiles=
12671 +for ac_file in $ac_files
12672 +do
12673 +  case $ac_file in
12674 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
12675 +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
12676 +  esac
12677 +done
12678 +rm -f $ac_rmfiles
12679 +
12680 +if { (ac_try="$ac_link_default"
12681 +case "(($ac_try" in
12682 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 +  *) ac_try_echo=$ac_try;;
12684 +esac
12685 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12686 +$as_echo "$ac_try_echo") >&5
12687 +  (eval "$ac_link_default") 2>&5
12688    ac_status=$?
12689 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691    (exit $ac_status); }; then
12692 -  # Find the output, starting from the most likely.  This scheme is
12693 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12694 -# resort.
12695 -
12696 -# Be careful to initialize this variable, since it used to be cached.
12697 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12698 -ac_cv_exeext=
12699 -# b.out is created by i960 compilers.
12700 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12701 +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
12702 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
12703 +# in a Makefile.  We should not override ac_cv_exeext if it was cached,
12704 +# so that the user can short-circuit this test for compilers unknown to
12705 +# Autoconf.
12706 +for ac_file in $ac_files ''
12707  do
12708    test -f "$ac_file" || continue
12709    case $ac_file in
12710 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12711 -       ;;
12712 -    conftest.$ac_ext )
12713 -       # This is the source file.
12714 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
12715         ;;
12716      [ab].out )
12717         # We found the default executable, but exeext='' is most
12718         # certainly right.
12719         break;;
12720      *.* )
12721 -       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12722 -       # FIXME: I believe we export ac_cv_exeext for Libtool,
12723 -       # but it would be cool to find out if it's true.  Does anybody
12724 -       # maintain Libtool? --akim.
12725 -       export ac_cv_exeext
12726 +        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
12727 +       then :; else
12728 +          ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12729 +       fi
12730 +       # We set ac_cv_exeext here because the later test for it is not
12731 +       # safe: cross compilers may not add the suffix if given an `-o'
12732 +       # argument, so we may need to know it at that point already.
12733 +       # Even if this section looks crufty: it has the advantage of
12734 +       # actually working.
12735         break;;
12736      * )
12737         break;;
12738    esac
12739  done
12740 +test "$ac_cv_exeext" = no && ac_cv_exeext=
12741 +
12742  else
12743 -  echo "$as_me: failed program was:" >&5
12744 +  ac_file=''
12745 +fi
12746 +
12747 +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
12748 +$as_echo "$ac_file" >&6; }
12749 +if test -z "$ac_file"; then
12750 +  $as_echo "$as_me: failed program was:" >&5
12751  sed 's/^/| /' conftest.$ac_ext >&5
12752  
12753 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12754 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12755 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12756 +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
12757  See \`config.log' for more details." >&5
12758 -echo "$as_me: error: C compiler cannot create executables
12759 +$as_echo "$as_me: error: C compiler cannot create executables
12760  See \`config.log' for more details." >&2;}
12761 -   { (exit 77); exit 77; }; }
12762 +   { (exit 77); exit 77; }; }; }
12763  fi
12764  
12765  ac_exeext=$ac_cv_exeext
12766 -echo "$as_me:$LINENO: result: $ac_file" >&5
12767 -echo "${ECHO_T}$ac_file" >&6
12768  
12769 -# Check the compiler produces executables we can run.  If not, either
12770 +# Check that the compiler produces executables we can run.  If not, either
12771  # the compiler is broken, or we cross compile.
12772 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12773 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12774 +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12775 +$as_echo_n "checking whether the C compiler works... " >&6; }
12776  # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12777  # If not cross compiling, check that we can run a simple program.
12778  if test "$cross_compiling" != yes; then
12779    if { ac_try='./$ac_file'
12780 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 -  (eval $ac_try) 2>&5
12782 +  { (case "(($ac_try" in
12783 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 +  *) ac_try_echo=$ac_try;;
12785 +esac
12786 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12787 +$as_echo "$ac_try_echo") >&5
12788 +  (eval "$ac_try") 2>&5
12789    ac_status=$?
12790 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792    (exit $ac_status); }; }; then
12793      cross_compiling=no
12794    else
12795      if test "$cross_compiling" = maybe; then
12796         cross_compiling=yes
12797      else
12798 -       { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12799 +       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12800 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12801 +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
12802  If you meant to cross compile, use \`--host'.
12803  See \`config.log' for more details." >&5
12804 -echo "$as_me: error: cannot run C compiled programs.
12805 +$as_echo "$as_me: error: cannot run C compiled programs.
12806  If you meant to cross compile, use \`--host'.
12807  See \`config.log' for more details." >&2;}
12808 -   { (exit 1); exit 1; }; }
12809 +   { (exit 1); exit 1; }; }; }
12810      fi
12811    fi
12812  fi
12813 -echo "$as_me:$LINENO: result: yes" >&5
12814 -echo "${ECHO_T}yes" >&6
12815 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
12816 +$as_echo "yes" >&6; }
12817  
12818 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
12819 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
12820  ac_clean_files=$ac_clean_files_save
12821 -# Check the compiler produces executables we can run.  If not, either
12822 +# Check that the compiler produces executables we can run.  If not, either
12823  # the compiler is broken, or we cross compile.
12824 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12825 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12826 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
12827 -echo "${ECHO_T}$cross_compiling" >&6
12828 -
12829 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
12830 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12831 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12832 -  (eval $ac_link) 2>&5
12833 +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12834 +$as_echo_n "checking whether we are cross compiling... " >&6; }
12835 +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
12836 +$as_echo "$cross_compiling" >&6; }
12837 +
12838 +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
12839 +$as_echo_n "checking for suffix of executables... " >&6; }
12840 +if { (ac_try="$ac_link"
12841 +case "(($ac_try" in
12842 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 +  *) ac_try_echo=$ac_try;;
12844 +esac
12845 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12846 +$as_echo "$ac_try_echo") >&5
12847 +  (eval "$ac_link") 2>&5
12848    ac_status=$?
12849 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851    (exit $ac_status); }; then
12852    # If both `conftest.exe' and `conftest' are `present' (well, observable)
12853  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12854 @@ -2514,32 +3178,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855  for ac_file in conftest.exe conftest conftest.*; do
12856    test -f "$ac_file" || continue
12857    case $ac_file in
12858 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12859 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
12860      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12861 -         export ac_cv_exeext
12862           break;;
12863      * ) break;;
12864    esac
12865  done
12866  else
12867 -  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12868 +  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12869 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12870 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12871  See \`config.log' for more details." >&5
12872 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12873 +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12874  See \`config.log' for more details." >&2;}
12875 -   { (exit 1); exit 1; }; }
12876 +   { (exit 1); exit 1; }; }; }
12877  fi
12878  
12879  rm -f conftest$ac_cv_exeext
12880 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12881 -echo "${ECHO_T}$ac_cv_exeext" >&6
12882 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12883 +$as_echo "$ac_cv_exeext" >&6; }
12884  
12885  rm -f conftest.$ac_ext
12886  EXEEXT=$ac_cv_exeext
12887  ac_exeext=$EXEEXT
12888 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
12889 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12890 +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
12891 +$as_echo_n "checking for suffix of object files... " >&6; }
12892  if test "${ac_cv_objext+set}" = set; then
12893 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12894 +  $as_echo_n "(cached) " >&6
12895  else
12896    cat >conftest.$ac_ext <<_ACEOF
12897  /* confdefs.h.  */
12898 @@ -2557,39 +3222,48 @@ main ()
12899  }
12900  _ACEOF
12901  rm -f conftest.o conftest.obj
12902 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 -  (eval $ac_compile) 2>&5
12904 +if { (ac_try="$ac_compile"
12905 +case "(($ac_try" in
12906 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 +  *) ac_try_echo=$ac_try;;
12908 +esac
12909 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12910 +$as_echo "$ac_try_echo") >&5
12911 +  (eval "$ac_compile") 2>&5
12912    ac_status=$?
12913 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915    (exit $ac_status); }; then
12916 -  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12917 +  for ac_file in conftest.o conftest.obj conftest.*; do
12918 +  test -f "$ac_file" || continue;
12919    case $ac_file in
12920 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12921 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
12922      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12923         break;;
12924    esac
12925  done
12926  else
12927 -  echo "$as_me: failed program was:" >&5
12928 +  $as_echo "$as_me: failed program was:" >&5
12929  sed 's/^/| /' conftest.$ac_ext >&5
12930  
12931 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12932 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12933 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12934 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12935  See \`config.log' for more details." >&5
12936 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
12937 +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
12938  See \`config.log' for more details." >&2;}
12939 -   { (exit 1); exit 1; }; }
12940 +   { (exit 1); exit 1; }; }; }
12941  fi
12942  
12943  rm -f conftest.$ac_cv_objext conftest.$ac_ext
12944  fi
12945 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12946 -echo "${ECHO_T}$ac_cv_objext" >&6
12947 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12948 +$as_echo "$ac_cv_objext" >&6; }
12949  OBJEXT=$ac_cv_objext
12950  ac_objext=$OBJEXT
12951 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12952 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12953 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12954 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12955  if test "${ac_cv_c_compiler_gnu+set}" = set; then
12956 -  echo $ECHO_N "(cached) $ECHO_C" >&6
12957 +  $as_echo_n "(cached) " >&6
12958  else
12959    cat >conftest.$ac_ext <<_ACEOF
12960  /* confdefs.h.  */
12961 @@ -2610,50 +3284,54 @@ main ()
12962  }
12963  _ACEOF
12964  rm -f conftest.$ac_objext
12965 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 -  (eval $ac_compile) 2>conftest.er1
12967 +if { (ac_try="$ac_compile"
12968 +case "(($ac_try" in
12969 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 +  *) ac_try_echo=$ac_try;;
12971 +esac
12972 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12973 +$as_echo "$ac_try_echo") >&5
12974 +  (eval "$ac_compile") 2>conftest.er1
12975    ac_status=$?
12976    grep -v '^ *+' conftest.er1 >conftest.err
12977    rm -f conftest.er1
12978    cat conftest.err >&5
12979 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 -  (exit $ac_status); } &&
12981 -        { ac_try='test -z "$ac_c_werror_flag"
12982 -                        || test ! -s conftest.err'
12983 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 -  (eval $ac_try) 2>&5
12985 -  ac_status=$?
12986 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 -  (exit $ac_status); }; } &&
12988 -        { ac_try='test -s conftest.$ac_objext'
12989 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 -  (eval $ac_try) 2>&5
12991 -  ac_status=$?
12992 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 -  (exit $ac_status); }; }; then
12994 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 +  (exit $ac_status); } && {
12996 +        test -z "$ac_c_werror_flag" ||
12997 +        test ! -s conftest.err
12998 +       } && test -s conftest.$ac_objext; then
12999    ac_compiler_gnu=yes
13000  else
13001 -  echo "$as_me: failed program was:" >&5
13002 +  $as_echo "$as_me: failed program was:" >&5
13003  sed 's/^/| /' conftest.$ac_ext >&5
13004  
13005 -ac_compiler_gnu=no
13006 +       ac_compiler_gnu=no
13007  fi
13008 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13009 +
13010 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011  ac_cv_c_compiler_gnu=$ac_compiler_gnu
13012  
13013  fi
13014 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13015 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
13016 -GCC=`test $ac_compiler_gnu = yes && echo yes`
13017 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13018 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13019 +if test $ac_compiler_gnu = yes; then
13020 +  GCC=yes
13021 +else
13022 +  GCC=
13023 +fi
13024  ac_test_CFLAGS=${CFLAGS+set}
13025  ac_save_CFLAGS=$CFLAGS
13026 -CFLAGS="-g"
13027 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13028 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13029 +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13030 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
13031  if test "${ac_cv_prog_cc_g+set}" = set; then
13032 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13033 +  $as_echo_n "(cached) " >&6
13034  else
13035 -  cat >conftest.$ac_ext <<_ACEOF
13036 +  ac_save_c_werror_flag=$ac_c_werror_flag
13037 +   ac_c_werror_flag=yes
13038 +   ac_cv_prog_cc_g=no
13039 +   CFLAGS="-g"
13040 +   cat >conftest.$ac_ext <<_ACEOF
13041  /* confdefs.h.  */
13042  _ACEOF
13043  cat confdefs.h >>conftest.$ac_ext
13044 @@ -2669,38 +3347,121 @@ main ()
13045  }
13046  _ACEOF
13047  rm -f conftest.$ac_objext
13048 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049 -  (eval $ac_compile) 2>conftest.er1
13050 +if { (ac_try="$ac_compile"
13051 +case "(($ac_try" in
13052 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 +  *) ac_try_echo=$ac_try;;
13054 +esac
13055 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13056 +$as_echo "$ac_try_echo") >&5
13057 +  (eval "$ac_compile") 2>conftest.er1
13058    ac_status=$?
13059    grep -v '^ *+' conftest.er1 >conftest.err
13060    rm -f conftest.er1
13061    cat conftest.err >&5
13062 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 -  (exit $ac_status); } &&
13064 -        { ac_try='test -z "$ac_c_werror_flag"
13065 -                        || test ! -s conftest.err'
13066 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 -  (eval $ac_try) 2>&5
13068 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 +  (exit $ac_status); } && {
13070 +        test -z "$ac_c_werror_flag" ||
13071 +        test ! -s conftest.err
13072 +       } && test -s conftest.$ac_objext; then
13073 +  ac_cv_prog_cc_g=yes
13074 +else
13075 +  $as_echo "$as_me: failed program was:" >&5
13076 +sed 's/^/| /' conftest.$ac_ext >&5
13077 +
13078 +       CFLAGS=""
13079 +      cat >conftest.$ac_ext <<_ACEOF
13080 +/* confdefs.h.  */
13081 +_ACEOF
13082 +cat confdefs.h >>conftest.$ac_ext
13083 +cat >>conftest.$ac_ext <<_ACEOF
13084 +/* end confdefs.h.  */
13085 +
13086 +int
13087 +main ()
13088 +{
13089 +
13090 +  ;
13091 +  return 0;
13092 +}
13093 +_ACEOF
13094 +rm -f conftest.$ac_objext
13095 +if { (ac_try="$ac_compile"
13096 +case "(($ac_try" in
13097 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 +  *) ac_try_echo=$ac_try;;
13099 +esac
13100 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13101 +$as_echo "$ac_try_echo") >&5
13102 +  (eval "$ac_compile") 2>conftest.er1
13103    ac_status=$?
13104 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 -  (exit $ac_status); }; } &&
13106 -        { ac_try='test -s conftest.$ac_objext'
13107 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 -  (eval $ac_try) 2>&5
13109 +  grep -v '^ *+' conftest.er1 >conftest.err
13110 +  rm -f conftest.er1
13111 +  cat conftest.err >&5
13112 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 +  (exit $ac_status); } && {
13114 +        test -z "$ac_c_werror_flag" ||
13115 +        test ! -s conftest.err
13116 +       } && test -s conftest.$ac_objext; then
13117 +  :
13118 +else
13119 +  $as_echo "$as_me: failed program was:" >&5
13120 +sed 's/^/| /' conftest.$ac_ext >&5
13121 +
13122 +       ac_c_werror_flag=$ac_save_c_werror_flag
13123 +        CFLAGS="-g"
13124 +        cat >conftest.$ac_ext <<_ACEOF
13125 +/* confdefs.h.  */
13126 +_ACEOF
13127 +cat confdefs.h >>conftest.$ac_ext
13128 +cat >>conftest.$ac_ext <<_ACEOF
13129 +/* end confdefs.h.  */
13130 +
13131 +int
13132 +main ()
13133 +{
13134 +
13135 +  ;
13136 +  return 0;
13137 +}
13138 +_ACEOF
13139 +rm -f conftest.$ac_objext
13140 +if { (ac_try="$ac_compile"
13141 +case "(($ac_try" in
13142 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 +  *) ac_try_echo=$ac_try;;
13144 +esac
13145 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13146 +$as_echo "$ac_try_echo") >&5
13147 +  (eval "$ac_compile") 2>conftest.er1
13148    ac_status=$?
13149 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 -  (exit $ac_status); }; }; then
13151 +  grep -v '^ *+' conftest.er1 >conftest.err
13152 +  rm -f conftest.er1
13153 +  cat conftest.err >&5
13154 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 +  (exit $ac_status); } && {
13156 +        test -z "$ac_c_werror_flag" ||
13157 +        test ! -s conftest.err
13158 +       } && test -s conftest.$ac_objext; then
13159    ac_cv_prog_cc_g=yes
13160  else
13161 -  echo "$as_me: failed program was:" >&5
13162 +  $as_echo "$as_me: failed program was:" >&5
13163  sed 's/^/| /' conftest.$ac_ext >&5
13164  
13165 -ac_cv_prog_cc_g=no
13166 +
13167 +fi
13168 +
13169 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170 +fi
13171 +
13172 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13173  fi
13174 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13175 +
13176 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 +   ac_c_werror_flag=$ac_save_c_werror_flag
13178  fi
13179 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13180 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13181 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13182 +$as_echo "$ac_cv_prog_cc_g" >&6; }
13183  if test "$ac_test_CFLAGS" = set; then
13184    CFLAGS=$ac_save_CFLAGS
13185  elif test $ac_cv_prog_cc_g = yes; then
13186 @@ -2716,12 +3477,12 @@ else
13187      CFLAGS=
13188    fi
13189  fi
13190 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
13191 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13192 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
13193 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13194 +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13195 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13196 +if test "${ac_cv_prog_cc_c89+set}" = set; then
13197 +  $as_echo_n "(cached) " >&6
13198  else
13199 -  ac_cv_prog_cc_stdc=no
13200 +  ac_cv_prog_cc_c89=no
13201  ac_save_CC=$CC
13202  cat >conftest.$ac_ext <<_ACEOF
13203  /* confdefs.h.  */
13204 @@ -2755,12 +3516,17 @@ static char *f (char * (*g) (char **, int), char **p, ...)
13205  /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13206     function prototypes and stuff, but not '\xHH' hex character constants.
13207     These don't provoke an error unfortunately, instead are silently treated
13208 -   as 'x'.  The following induces an error, until -std1 is added to get
13209 +   as 'x'.  The following induces an error, until -std is added to get
13210     proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13211     array size at least.  It's necessary to write '\x00'==0 to get something
13212 -   that's true only with -std1.  */
13213 +   that's true only with -std.  */
13214  int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13215  
13216 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13217 +   inside strings and character constants.  */
13218 +#define FOO(x) 'x'
13219 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13220 +
13221  int test (int i, double x);
13222  struct s1 {int (*f) (int a);};
13223  struct s2 {int (*f) (double a);};
13224 @@ -2775,205 +3541,58 @@ return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13225    return 0;
13226  }
13227  _ACEOF
13228 -# Don't try gcc -ansi; that turns off useful extensions and
13229 -# breaks some systems' header files.
13230 -# AIX                  -qlanglvl=ansi
13231 -# Ultrix and OSF/1     -std1
13232 -# HP-UX 10.20 and later        -Ae
13233 -# HP-UX older versions -Aa -D_HPUX_SOURCE
13234 -# SVR4                 -Xc -D__EXTENSIONS__
13235 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13236 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13237 +       -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13238  do
13239    CC="$ac_save_CC $ac_arg"
13240    rm -f conftest.$ac_objext
13241 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242 -  (eval $ac_compile) 2>conftest.er1
13243 +if { (ac_try="$ac_compile"
13244 +case "(($ac_try" in
13245 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 +  *) ac_try_echo=$ac_try;;
13247 +esac
13248 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13249 +$as_echo "$ac_try_echo") >&5
13250 +  (eval "$ac_compile") 2>conftest.er1
13251    ac_status=$?
13252    grep -v '^ *+' conftest.er1 >conftest.err
13253    rm -f conftest.er1
13254    cat conftest.err >&5
13255 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 -  (exit $ac_status); } &&
13257 -        { ac_try='test -z "$ac_c_werror_flag"
13258 -                        || test ! -s conftest.err'
13259 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 -  (eval $ac_try) 2>&5
13261 -  ac_status=$?
13262 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 -  (exit $ac_status); }; } &&
13264 -        { ac_try='test -s conftest.$ac_objext'
13265 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 -  (eval $ac_try) 2>&5
13267 -  ac_status=$?
13268 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 -  (exit $ac_status); }; }; then
13270 -  ac_cv_prog_cc_stdc=$ac_arg
13271 -break
13272 -else
13273 -  echo "$as_me: failed program was:" >&5
13274 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 +  (exit $ac_status); } && {
13276 +        test -z "$ac_c_werror_flag" ||
13277 +        test ! -s conftest.err
13278 +       } && test -s conftest.$ac_objext; then
13279 +  ac_cv_prog_cc_c89=$ac_arg
13280 +else
13281 +  $as_echo "$as_me: failed program was:" >&5
13282  sed 's/^/| /' conftest.$ac_ext >&5
13283  
13284 +
13285  fi
13286 -rm -f conftest.err conftest.$ac_objext
13287 +
13288 +rm -f core conftest.err conftest.$ac_objext
13289 +  test "x$ac_cv_prog_cc_c89" != "xno" && break
13290  done
13291 -rm -f conftest.$ac_ext conftest.$ac_objext
13292 +rm -f conftest.$ac_ext
13293  CC=$ac_save_CC
13294  
13295  fi
13296 -
13297 -case "x$ac_cv_prog_cc_stdc" in
13298 -  x|xno)
13299 -    echo "$as_me:$LINENO: result: none needed" >&5
13300 -echo "${ECHO_T}none needed" >&6 ;;
13301 +# AC_CACHE_VAL
13302 +case "x$ac_cv_prog_cc_c89" in
13303 +  x)
13304 +    { $as_echo "$as_me:$LINENO: result: none needed" >&5
13305 +$as_echo "none needed" >&6; } ;;
13306 +  xno)
13307 +    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
13308 +$as_echo "unsupported" >&6; } ;;
13309    *)
13310 -    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
13311 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13312 -    CC="$CC $ac_cv_prog_cc_stdc" ;;
13313 +    CC="$CC $ac_cv_prog_cc_c89"
13314 +    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13315 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13316  esac
13317  
13318 -# Some people use a C++ compiler to compile C.  Since we use `exit',
13319 -# in C++ we need to declare it.  In case someone uses the same compiler
13320 -# for both compiling C and C++ we need to have the C++ compiler decide
13321 -# the declaration of exit, since it's the most demanding environment.
13322 -cat >conftest.$ac_ext <<_ACEOF
13323 -#ifndef __cplusplus
13324 -  choke me
13325 -#endif
13326 -_ACEOF
13327 -rm -f conftest.$ac_objext
13328 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13329 -  (eval $ac_compile) 2>conftest.er1
13330 -  ac_status=$?
13331 -  grep -v '^ *+' conftest.er1 >conftest.err
13332 -  rm -f conftest.er1
13333 -  cat conftest.err >&5
13334 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 -  (exit $ac_status); } &&
13336 -        { ac_try='test -z "$ac_c_werror_flag"
13337 -                        || test ! -s conftest.err'
13338 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13339 -  (eval $ac_try) 2>&5
13340 -  ac_status=$?
13341 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 -  (exit $ac_status); }; } &&
13343 -        { ac_try='test -s conftest.$ac_objext'
13344 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 -  (eval $ac_try) 2>&5
13346 -  ac_status=$?
13347 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 -  (exit $ac_status); }; }; then
13349 -  for ac_declaration in \
13350 -   '' \
13351 -   'extern "C" void std::exit (int) throw (); using std::exit;' \
13352 -   'extern "C" void std::exit (int); using std::exit;' \
13353 -   'extern "C" void exit (int) throw ();' \
13354 -   'extern "C" void exit (int);' \
13355 -   'void exit (int);'
13356 -do
13357 -  cat >conftest.$ac_ext <<_ACEOF
13358 -/* confdefs.h.  */
13359 -_ACEOF
13360 -cat confdefs.h >>conftest.$ac_ext
13361 -cat >>conftest.$ac_ext <<_ACEOF
13362 -/* end confdefs.h.  */
13363 -$ac_declaration
13364 -#include <stdlib.h>
13365 -int
13366 -main ()
13367 -{
13368 -exit (42);
13369 -  ;
13370 -  return 0;
13371 -}
13372 -_ACEOF
13373 -rm -f conftest.$ac_objext
13374 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375 -  (eval $ac_compile) 2>conftest.er1
13376 -  ac_status=$?
13377 -  grep -v '^ *+' conftest.er1 >conftest.err
13378 -  rm -f conftest.er1
13379 -  cat conftest.err >&5
13380 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 -  (exit $ac_status); } &&
13382 -        { ac_try='test -z "$ac_c_werror_flag"
13383 -                        || test ! -s conftest.err'
13384 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 -  (eval $ac_try) 2>&5
13386 -  ac_status=$?
13387 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 -  (exit $ac_status); }; } &&
13389 -        { ac_try='test -s conftest.$ac_objext'
13390 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 -  (eval $ac_try) 2>&5
13392 -  ac_status=$?
13393 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 -  (exit $ac_status); }; }; then
13395 -  :
13396 -else
13397 -  echo "$as_me: failed program was:" >&5
13398 -sed 's/^/| /' conftest.$ac_ext >&5
13399 -
13400 -continue
13401 -fi
13402 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13403 -  cat >conftest.$ac_ext <<_ACEOF
13404 -/* confdefs.h.  */
13405 -_ACEOF
13406 -cat confdefs.h >>conftest.$ac_ext
13407 -cat >>conftest.$ac_ext <<_ACEOF
13408 -/* end confdefs.h.  */
13409 -$ac_declaration
13410 -int
13411 -main ()
13412 -{
13413 -exit (42);
13414 -  ;
13415 -  return 0;
13416 -}
13417 -_ACEOF
13418 -rm -f conftest.$ac_objext
13419 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420 -  (eval $ac_compile) 2>conftest.er1
13421 -  ac_status=$?
13422 -  grep -v '^ *+' conftest.er1 >conftest.err
13423 -  rm -f conftest.er1
13424 -  cat conftest.err >&5
13425 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 -  (exit $ac_status); } &&
13427 -        { ac_try='test -z "$ac_c_werror_flag"
13428 -                        || test ! -s conftest.err'
13429 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 -  (eval $ac_try) 2>&5
13431 -  ac_status=$?
13432 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 -  (exit $ac_status); }; } &&
13434 -        { ac_try='test -s conftest.$ac_objext'
13435 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 -  (eval $ac_try) 2>&5
13437 -  ac_status=$?
13438 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 -  (exit $ac_status); }; }; then
13440 -  break
13441 -else
13442 -  echo "$as_me: failed program was:" >&5
13443 -sed 's/^/| /' conftest.$ac_ext >&5
13444 -
13445 -fi
13446 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13447 -done
13448 -rm -f conftest*
13449 -if test -n "$ac_declaration"; then
13450 -  echo '#ifdef __cplusplus' >>confdefs.h
13451 -  echo $ac_declaration      >>confdefs.h
13452 -  echo '#endif'             >>confdefs.h
13453 -fi
13454  
13455 -else
13456 -  echo "$as_me: failed program was:" >&5
13457 -sed 's/^/| /' conftest.$ac_ext >&5
13458 -
13459 -fi
13460 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13461  ac_ext=c
13462  ac_cpp='$CPP $CPPFLAGS'
13463  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464 @@ -2981,7 +3600,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
13465  ac_compiler_gnu=$ac_cv_c_compiler_gnu
13466  DEPDIR="${am__leading_dot}deps"
13467  
13468 -          ac_config_commands="$ac_config_commands depfiles"
13469 +ac_config_commands="$ac_config_commands depfiles"
13470  
13471  
13472  am_make=${MAKE-make}
13473 @@ -2991,8 +3610,8 @@ am__doit:
13474  .PHONY: am__doit
13475  END
13476  # If we don't find an include directive, just comment out the code.
13477 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
13478 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
13479 +{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
13480 +$as_echo_n "checking for style of include used by $am_make... " >&6; }
13481  am__include="#"
13482  am__quote=
13483  _am_result=none
13484 @@ -3019,15 +3638,15 @@ if test "$am__include" = "#"; then
13485  fi
13486  
13487  
13488 -echo "$as_me:$LINENO: result: $_am_result" >&5
13489 -echo "${ECHO_T}$_am_result" >&6
13490 +{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
13491 +$as_echo "$_am_result" >&6; }
13492  rm -f confinc confmf
13493  
13494 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
13495 +# Check whether --enable-dependency-tracking was given.
13496  if test "${enable_dependency_tracking+set}" = set; then
13497 -  enableval="$enable_dependency_tracking"
13498 +  enableval=$enable_dependency_tracking;
13499 +fi
13500  
13501 -fi;
13502  if test "x$enable_dependency_tracking" != xno; then
13503    am_depcomp="$ac_aux_dir/depcomp"
13504    AMDEPBACKSLASH='\'
13505 @@ -3047,10 +3666,10 @@ fi
13506  
13507  depcc="$CC"   am_compiler_list=
13508  
13509 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13510 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13511 +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13512 +$as_echo_n "checking dependency style of $depcc... " >&6; }
13513  if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13514 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13515 +  $as_echo_n "(cached) " >&6
13516  else
13517    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13518    # We make a subdir and do the tests there.  Otherwise we can end up
13519 @@ -3137,8 +3756,8 @@ else
13520  fi
13521  
13522  fi
13523 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13524 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
13525 +{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13526 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13527  CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13528  
13529  
13530 @@ -3155,10 +3774,9 @@ fi
13531  
13532  
13533  
13534 -# Check whether --enable-static or --disable-static was given.
13535 +# Check whether --enable-static was given.
13536  if test "${enable_static+set}" = set; then
13537 -  enableval="$enable_static"
13538 -  p=${PACKAGE-default}
13539 +  enableval=$enable_static; p=${PACKAGE-default}
13540      case $enableval in
13541      yes) enable_static=yes ;;
13542      no) enable_static=no ;;
13543 @@ -3177,13 +3795,13 @@ if test "${enable_static+set}" = set; then
13544      esac
13545  else
13546    enable_static=no
13547 -fi;
13548 +fi
13549  
13550  
13551 -# Check whether --enable-shared or --disable-shared was given.
13552 +
13553 +# Check whether --enable-shared was given.
13554  if test "${enable_shared+set}" = set; then
13555 -  enableval="$enable_shared"
13556 -  p=${PACKAGE-default}
13557 +  enableval=$enable_shared; p=${PACKAGE-default}
13558      case $enableval in
13559      yes) enable_shared=yes ;;
13560      no) enable_shared=no ;;
13561 @@ -3202,12 +3820,12 @@ if test "${enable_shared+set}" = set; then
13562      esac
13563  else
13564    enable_shared=yes
13565 -fi;
13566 +fi
13567  
13568 -# Check whether --enable-fast-install or --disable-fast-install was given.
13569 +
13570 +# Check whether --enable-fast-install was given.
13571  if test "${enable_fast_install+set}" = set; then
13572 -  enableval="$enable_fast_install"
13573 -  p=${PACKAGE-default}
13574 +  enableval=$enable_fast_install; p=${PACKAGE-default}
13575      case $enableval in
13576      yes) enable_fast_install=yes ;;
13577      no) enable_fast_install=no ;;
13578 @@ -3226,12 +3844,13 @@ if test "${enable_fast_install+set}" = set; then
13579      esac
13580  else
13581    enable_fast_install=yes
13582 -fi;
13583 +fi
13584  
13585 -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13586 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
13587 +
13588 +{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13589 +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13590  if test "${lt_cv_path_SED+set}" = set; then
13591 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13592 +  $as_echo_n "(cached) " >&6
13593  else
13594    # Loop through the user's path and test for sed and gsed.
13595  # Then use that list of sed's as ones to test for truncation.
13596 @@ -3242,18 +3861,19 @@ do
13597    test -z "$as_dir" && as_dir=.
13598    for lt_ac_prog in sed gsed; do
13599      for ac_exec_ext in '' $ac_executable_extensions; do
13600 -      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13601 +      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
13602          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13603        fi
13604      done
13605    done
13606  done
13607 +IFS=$as_save_IFS
13608  lt_ac_max=0
13609  lt_ac_count=0
13610  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
13611  # along with /bin/sed that truncates output.
13612  for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13613 -  test ! -f $lt_ac_sed && break
13614 +  test ! -f $lt_ac_sed && continue
13615    cat /dev/null > conftest.in
13616    lt_ac_count=0
13617    echo $ECHO_N "0123456789$ECHO_C" >conftest.in
13618 @@ -3278,41 +3898,161 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13619      fi
13620    done
13621  done
13622 +
13623 +fi
13624 +
13625  SED=$lt_cv_path_SED
13626  
13627 +{ $as_echo "$as_me:$LINENO: result: $SED" >&5
13628 +$as_echo "$SED" >&6; }
13629 +
13630 +{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
13631 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13632 +if test "${ac_cv_path_GREP+set}" = set; then
13633 +  $as_echo_n "(cached) " >&6
13634 +else
13635 +  if test -z "$GREP"; then
13636 +  ac_path_GREP_found=false
13637 +  # Loop through the user's path and test for each of PROGNAME-LIST
13638 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13640 +do
13641 +  IFS=$as_save_IFS
13642 +  test -z "$as_dir" && as_dir=.
13643 +  for ac_prog in grep ggrep; do
13644 +    for ac_exec_ext in '' $ac_executable_extensions; do
13645 +      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13646 +      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
13647 +# Check for GNU ac_path_GREP and select it if it is found.
13648 +  # Check for GNU $ac_path_GREP
13649 +case `"$ac_path_GREP" --version 2>&1` in
13650 +*GNU*)
13651 +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13652 +*)
13653 +  ac_count=0
13654 +  $as_echo_n 0123456789 >"conftest.in"
13655 +  while :
13656 +  do
13657 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
13658 +    mv "conftest.tmp" "conftest.in"
13659 +    cp "conftest.in" "conftest.nl"
13660 +    $as_echo 'GREP' >> "conftest.nl"
13661 +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13662 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13663 +    ac_count=`expr $ac_count + 1`
13664 +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
13665 +      # Best one so far, save it but keep looking for a better one
13666 +      ac_cv_path_GREP="$ac_path_GREP"
13667 +      ac_path_GREP_max=$ac_count
13668 +    fi
13669 +    # 10*(2^10) chars as input seems more than enough
13670 +    test $ac_count -gt 10 && break
13671 +  done
13672 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13673 +esac
13674 +
13675 +      $ac_path_GREP_found && break 3
13676 +    done
13677 +  done
13678 +done
13679 +IFS=$as_save_IFS
13680 +  if test -z "$ac_cv_path_GREP"; then
13681 +    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
13682 +$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
13683 +   { (exit 1); exit 1; }; }
13684 +  fi
13685 +else
13686 +  ac_cv_path_GREP=$GREP
13687  fi
13688  
13689 -echo "$as_me:$LINENO: result: $SED" >&5
13690 -echo "${ECHO_T}$SED" >&6
13691 +fi
13692 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
13693 +$as_echo "$ac_cv_path_GREP" >&6; }
13694 + GREP="$ac_cv_path_GREP"
13695  
13696 -echo "$as_me:$LINENO: checking for egrep" >&5
13697 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13698 -if test "${ac_cv_prog_egrep+set}" = set; then
13699 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13700 +
13701 +{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
13702 +$as_echo_n "checking for egrep... " >&6; }
13703 +if test "${ac_cv_path_EGREP+set}" = set; then
13704 +  $as_echo_n "(cached) " >&6
13705  else
13706 -  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13707 -    then ac_cv_prog_egrep='grep -E'
13708 -    else ac_cv_prog_egrep='egrep'
13709 +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13710 +   then ac_cv_path_EGREP="$GREP -E"
13711 +   else
13712 +     if test -z "$EGREP"; then
13713 +  ac_path_EGREP_found=false
13714 +  # Loop through the user's path and test for each of PROGNAME-LIST
13715 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13717 +do
13718 +  IFS=$as_save_IFS
13719 +  test -z "$as_dir" && as_dir=.
13720 +  for ac_prog in egrep; do
13721 +    for ac_exec_ext in '' $ac_executable_extensions; do
13722 +      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13723 +      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
13724 +# Check for GNU ac_path_EGREP and select it if it is found.
13725 +  # Check for GNU $ac_path_EGREP
13726 +case `"$ac_path_EGREP" --version 2>&1` in
13727 +*GNU*)
13728 +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13729 +*)
13730 +  ac_count=0
13731 +  $as_echo_n 0123456789 >"conftest.in"
13732 +  while :
13733 +  do
13734 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
13735 +    mv "conftest.tmp" "conftest.in"
13736 +    cp "conftest.in" "conftest.nl"
13737 +    $as_echo 'EGREP' >> "conftest.nl"
13738 +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13739 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13740 +    ac_count=`expr $ac_count + 1`
13741 +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13742 +      # Best one so far, save it but keep looking for a better one
13743 +      ac_cv_path_EGREP="$ac_path_EGREP"
13744 +      ac_path_EGREP_max=$ac_count
13745      fi
13746 +    # 10*(2^10) chars as input seems more than enough
13747 +    test $ac_count -gt 10 && break
13748 +  done
13749 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13750 +esac
13751 +
13752 +      $ac_path_EGREP_found && break 3
13753 +    done
13754 +  done
13755 +done
13756 +IFS=$as_save_IFS
13757 +  if test -z "$ac_cv_path_EGREP"; then
13758 +    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
13759 +$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
13760 +   { (exit 1); exit 1; }; }
13761 +  fi
13762 +else
13763 +  ac_cv_path_EGREP=$EGREP
13764  fi
13765 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13766 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13767 - EGREP=$ac_cv_prog_egrep
13768 +
13769 +   fi
13770 +fi
13771 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
13772 +$as_echo "$ac_cv_path_EGREP" >&6; }
13773 + EGREP="$ac_cv_path_EGREP"
13774  
13775  
13776  
13777 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
13778 +# Check whether --with-gnu-ld was given.
13779  if test "${with_gnu_ld+set}" = set; then
13780 -  withval="$with_gnu_ld"
13781 -  test "$withval" = no || with_gnu_ld=yes
13782 +  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13783  else
13784    with_gnu_ld=no
13785 -fi;
13786 +fi
13787 +
13788  ac_prog=ld
13789  if test "$GCC" = yes; then
13790    # Check if gcc -print-prog-name=ld gives a path.
13791 -  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13792 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13793 +  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13794 +$as_echo_n "checking for ld used by $CC... " >&6; }
13795    case $host in
13796    *-*-mingw*)
13797      # gcc leaves a trailing carriage return which upsets mingw
13798 @@ -3341,14 +4081,14 @@ echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13799      ;;
13800    esac
13801  elif test "$with_gnu_ld" = yes; then
13802 -  echo "$as_me:$LINENO: checking for GNU ld" >&5
13803 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13804 +  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13805 +$as_echo_n "checking for GNU ld... " >&6; }
13806  else
13807 -  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13808 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13809 +  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13810 +$as_echo_n "checking for non-GNU ld... " >&6; }
13811  fi
13812  if test "${lt_cv_path_LD+set}" = set; then
13813 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13814 +  $as_echo_n "(cached) " >&6
13815  else
13816    if test -z "$LD"; then
13817    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13818 @@ -3358,7 +4098,7 @@ else
13819      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13820        lt_cv_path_LD="$ac_dir/$ac_prog"
13821        # Check to see if the program is GNU ld.  I'd rather use --version,
13822 -      # but apparently some GNU ld's only accept -v.
13823 +      # but apparently some variants of GNU ld only accept -v.
13824        # Break only if it was the GNU/non-GNU ld that we prefer.
13825        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13826        *GNU* | *'with BFD'*)
13827 @@ -3378,21 +4118,21 @@ fi
13828  
13829  LD="$lt_cv_path_LD"
13830  if test -n "$LD"; then
13831 -  echo "$as_me:$LINENO: result: $LD" >&5
13832 -echo "${ECHO_T}$LD" >&6
13833 +  { $as_echo "$as_me:$LINENO: result: $LD" >&5
13834 +$as_echo "$LD" >&6; }
13835  else
13836 -  echo "$as_me:$LINENO: result: no" >&5
13837 -echo "${ECHO_T}no" >&6
13838 +  { $as_echo "$as_me:$LINENO: result: no" >&5
13839 +$as_echo "no" >&6; }
13840  fi
13841 -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13842 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13843 +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13844 +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13845     { (exit 1); exit 1; }; }
13846 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13847 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13848 +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13849 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13850  if test "${lt_cv_prog_gnu_ld+set}" = set; then
13851 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13852 +  $as_echo_n "(cached) " >&6
13853  else
13854 -  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13855 +  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13856  case `$LD -v 2>&1 </dev/null` in
13857  *GNU* | *'with BFD'*)
13858    lt_cv_prog_gnu_ld=yes
13859 @@ -3402,88 +4142,104 @@ case `$LD -v 2>&1 </dev/null` in
13860    ;;
13861  esac
13862  fi
13863 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13864 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13865 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13866 +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13867  with_gnu_ld=$lt_cv_prog_gnu_ld
13868  
13869  
13870 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13871 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
13872 +{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13873 +$as_echo_n "checking for $LD option to reload object files... " >&6; }
13874  if test "${lt_cv_ld_reload_flag+set}" = set; then
13875 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13876 +  $as_echo_n "(cached) " >&6
13877  else
13878    lt_cv_ld_reload_flag='-r'
13879  fi
13880 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13881 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
13882 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13883 +$as_echo "$lt_cv_ld_reload_flag" >&6; }
13884  reload_flag=$lt_cv_ld_reload_flag
13885  case $reload_flag in
13886  "" | " "*) ;;
13887  *) reload_flag=" $reload_flag" ;;
13888  esac
13889  reload_cmds='$LD$reload_flag -o $output$reload_objs'
13890 +case $host_os in
13891 +  darwin*)
13892 +    if test "$GCC" = yes; then
13893 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13894 +    else
13895 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13896 +    fi
13897 +    ;;
13898 +esac
13899  
13900 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
13901 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
13902 +{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
13903 +$as_echo_n "checking for BSD-compatible nm... " >&6; }
13904  if test "${lt_cv_path_NM+set}" = set; then
13905 -  echo $ECHO_N "(cached) $ECHO_C" >&6
13906 +  $as_echo_n "(cached) " >&6
13907  else
13908    if test -n "$NM"; then
13909    # Let the user override the test.
13910    lt_cv_path_NM="$NM"
13911  else
13912 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13913 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
13914 -    IFS="$lt_save_ifs"
13915 -    test -z "$ac_dir" && ac_dir=.
13916 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
13917 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13918 -      # Check to see if the nm accepts a BSD-compat flag.
13919 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13920 -      #   nm: unknown option "B" ignored
13921 -      # Tru64's nm complains that /dev/null is an invalid object file
13922 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13923 -      */dev/null* | *'Invalid file or object type'*)
13924 -       lt_cv_path_NM="$tmp_nm -B"
13925 -       break
13926 -        ;;
13927 -      *)
13928 -       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13929 -       */dev/null*)
13930 -         lt_cv_path_NM="$tmp_nm -p"
13931 +  lt_nm_to_check="${ac_tool_prefix}nm"
13932 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13933 +    lt_nm_to_check="$lt_nm_to_check nm"
13934 +  fi
13935 +  for lt_tmp_nm in $lt_nm_to_check; do
13936 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13937 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13938 +      IFS="$lt_save_ifs"
13939 +      test -z "$ac_dir" && ac_dir=.
13940 +      tmp_nm="$ac_dir/$lt_tmp_nm"
13941 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13942 +       # Check to see if the nm accepts a BSD-compat flag.
13943 +       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13944 +       #   nm: unknown option "B" ignored
13945 +       # Tru64's nm complains that /dev/null is an invalid object file
13946 +       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13947 +       */dev/null* | *'Invalid file or object type'*)
13948 +         lt_cv_path_NM="$tmp_nm -B"
13949           break
13950           ;;
13951         *)
13952 -         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13953 -         continue # so that we can try to find one that supports BSD flags
13954 +         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13955 +         */dev/null*)
13956 +           lt_cv_path_NM="$tmp_nm -p"
13957 +           break
13958 +           ;;
13959 +         *)
13960 +           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13961 +           continue # so that we can try to find one that supports BSD flags
13962 +           ;;
13963 +         esac
13964           ;;
13965         esac
13966 -      esac
13967 -    fi
13968 +      fi
13969 +    done
13970 +    IFS="$lt_save_ifs"
13971    done
13972 -  IFS="$lt_save_ifs"
13973    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
13974  fi
13975  fi
13976 -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
13977 -echo "${ECHO_T}$lt_cv_path_NM" >&6
13978 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
13979 +$as_echo "$lt_cv_path_NM" >&6; }
13980  NM="$lt_cv_path_NM"
13981  
13982 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
13983 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13984 +{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
13985 +$as_echo_n "checking whether ln -s works... " >&6; }
13986  LN_S=$as_ln_s
13987  if test "$LN_S" = "ln -s"; then
13988 -  echo "$as_me:$LINENO: result: yes" >&5
13989 -echo "${ECHO_T}yes" >&6
13990 +  { $as_echo "$as_me:$LINENO: result: yes" >&5
13991 +$as_echo "yes" >&6; }
13992  else
13993 -  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13994 -echo "${ECHO_T}no, using $LN_S" >&6
13995 +  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13996 +$as_echo "no, using $LN_S" >&6; }
13997  fi
13998  
13999 -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
14000 -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
14001 +{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14002 +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
14003  if test "${lt_cv_deplibs_check_method+set}" = set; then
14004 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14005 +  $as_echo_n "(cached) " >&6
14006  else
14007    lt_cv_file_magic_cmd='$MAGIC_CMD'
14008  lt_cv_file_magic_test_file=
14009 @@ -3500,7 +4256,7 @@ lt_cv_deplibs_check_method='unknown'
14010  # whether `pass_all' will *always* work, you probably want this one.
14011  
14012  case $host_os in
14013 -aix4* | aix5*)
14014 +aix[4-9]*)
14015    lt_cv_deplibs_check_method=pass_all
14016    ;;
14017  
14018 @@ -3508,7 +4264,7 @@ beos*)
14019    lt_cv_deplibs_check_method=pass_all
14020    ;;
14021  
14022 -bsdi4*)
14023 +bsdi[45]*)
14024    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14025    lt_cv_file_magic_cmd='/usr/bin/file -L'
14026    lt_cv_file_magic_test_file=/shlib/libc.so
14027 @@ -3522,22 +4278,28 @@ cygwin*)
14028  
14029  mingw* | pw32*)
14030    # Base MSYS/MinGW do not provide the 'file' command needed by
14031 -  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
14032 -  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14033 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
14034 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
14035 +  # unless we find 'file', for example because we are cross-compiling.
14036 +  if ( file / ) >/dev/null 2>&1; then
14037 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14038 +    lt_cv_file_magic_cmd='func_win32_libid'
14039 +  else
14040 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14041 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
14042 +  fi
14043    ;;
14044  
14045  darwin* | rhapsody*)
14046    lt_cv_deplibs_check_method=pass_all
14047    ;;
14048  
14049 -freebsd* | kfreebsd*-gnu)
14050 +freebsd* | dragonfly*)
14051    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14052      case $host_cpu in
14053      i*86 )
14054        # Not sure whether the presence of OpenBSD here was a mistake.
14055        # Let's accept both of them until this is cleared up.
14056 -      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
14057 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14058        lt_cv_file_magic_cmd=/usr/bin/file
14059        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14060        ;;
14061 @@ -3553,7 +4315,7 @@ gnu*)
14062  
14063  hpux10.20* | hpux11*)
14064    lt_cv_file_magic_cmd=/usr/bin/file
14065 -  case "$host_cpu" in
14066 +  case $host_cpu in
14067    ia64*)
14068      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14069      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14070 @@ -3569,6 +4331,11 @@ hpux10.20* | hpux11*)
14071    esac
14072    ;;
14073  
14074 +interix[3-9]*)
14075 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14076 +  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14077 +  ;;
14078 +
14079  irix5* | irix6* | nonstopux*)
14080    case $LD in
14081    *-32|*"-32 ") libmagic=32-bit;;
14082 @@ -3580,20 +4347,11 @@ irix5* | irix6* | nonstopux*)
14083    ;;
14084  
14085  # This must be Linux ELF.
14086 -linux*)
14087 -  case $host_cpu in
14088 -  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
14089 -    lt_cv_deplibs_check_method=pass_all ;;
14090 -  *)
14091 -    # glibc up to 2.1.1 does not perform some relocations on ARM
14092 -    # this will be overridden with pass_all, but let us keep it just in case
14093 -    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
14094 -  esac
14095 -  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
14096 +linux* | k*bsd*-gnu)
14097    lt_cv_deplibs_check_method=pass_all
14098    ;;
14099  
14100 -netbsd*)
14101 +netbsd* | netbsdelf*-gnu)
14102    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14103      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14104    else
14105 @@ -3612,12 +4370,10 @@ nto-qnx*)
14106    ;;
14107  
14108  openbsd*)
14109 -  lt_cv_file_magic_cmd=/usr/bin/file
14110 -  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14111    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14112 -    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
14113 +    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14114    else
14115 -    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
14116 +    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14117    fi
14118    ;;
14119  
14120 @@ -3625,7 +4381,7 @@ osf3* | osf4* | osf5*)
14121    lt_cv_deplibs_check_method=pass_all
14122    ;;
14123  
14124 -sco3.2v5*)
14125 +rdos*)
14126    lt_cv_deplibs_check_method=pass_all
14127    ;;
14128  
14129 @@ -3633,7 +4389,7 @@ solaris*)
14130    lt_cv_deplibs_check_method=pass_all
14131    ;;
14132  
14133 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14134 +sysv4 | sysv4.3*)
14135    case $host_vendor in
14136    motorola)
14137      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]'
14138 @@ -3654,17 +4410,20 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14139    siemens)
14140      lt_cv_deplibs_check_method=pass_all
14141      ;;
14142 +  pc)
14143 +    lt_cv_deplibs_check_method=pass_all
14144 +    ;;
14145    esac
14146    ;;
14147  
14148 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
14149 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14150    lt_cv_deplibs_check_method=pass_all
14151    ;;
14152  esac
14153  
14154  fi
14155 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14156 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14157 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14158 +$as_echo "$lt_cv_deplibs_check_method" >&6; }
14159  file_magic_cmd=$lt_cv_file_magic_cmd
14160  deplibs_check_method=$lt_cv_deplibs_check_method
14161  test -z "$deplibs_check_method" && deplibs_check_method=unknown
14162 @@ -3675,15 +4434,18 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
14163  # If no C compiler was specified, use CC.
14164  LTCC=${LTCC-"$CC"}
14165  
14166 +# If no C compiler flags were specified, use CFLAGS.
14167 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14168 +
14169  # Allow CC to be a program name with arguments.
14170  compiler=$CC
14171  
14172  
14173 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14174 +# Check whether --enable-libtool-lock was given.
14175  if test "${enable_libtool_lock+set}" = set; then
14176 -  enableval="$enable_libtool_lock"
14177 +  enableval=$enable_libtool_lock;
14178 +fi
14179  
14180 -fi;
14181  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14182  
14183  # Some flags need to be propagated to the compiler or linker for good
14184 @@ -3695,7 +4457,7 @@ ia64-*-hpux*)
14185    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14186    (eval $ac_compile) 2>&5
14187    ac_status=$?
14188 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190    (exit $ac_status); }; then
14191      case `/usr/bin/file conftest.$ac_objext` in
14192      *ELF-32*)
14193 @@ -3710,11 +4472,11 @@ ia64-*-hpux*)
14194    ;;
14195  *-*-irix6*)
14196    # Find out which ABI we are using.
14197 -  echo '#line 3713 "configure"' > conftest.$ac_ext
14198 +  echo '#line 4475 "configure"' > conftest.$ac_ext
14199    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14200    (eval $ac_compile) 2>&5
14201    ac_status=$?
14202 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204    (exit $ac_status); }; then
14205     if test "$lt_cv_prog_gnu_ld" = yes; then
14206      case `/usr/bin/file conftest.$ac_objext` in
14207 @@ -3745,17 +4507,21 @@ ia64-*-hpux*)
14208    rm -rf conftest*
14209    ;;
14210  
14211 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14212 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
14213 +s390*-*linux*|sparc*-*linux*)
14214    # Find out which ABI we are using.
14215    echo 'int i;' > conftest.$ac_ext
14216    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217    (eval $ac_compile) 2>&5
14218    ac_status=$?
14219 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221    (exit $ac_status); }; then
14222 -    case "`/usr/bin/file conftest.o`" in
14223 +    case `/usr/bin/file conftest.o` in
14224      *32-bit*)
14225        case $host in
14226 +        x86_64-*kfreebsd*-gnu)
14227 +          LD="${LD-ld} -m elf_i386_fbsd"
14228 +          ;;
14229          x86_64-*linux*)
14230            LD="${LD-ld} -m elf_i386"
14231            ;;
14232 @@ -3772,6 +4538,9 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14233        ;;
14234      *64-bit*)
14235        case $host in
14236 +        x86_64-*kfreebsd*-gnu)
14237 +          LD="${LD-ld} -m elf_x86_64_fbsd"
14238 +          ;;
14239          x86_64-*linux*)
14240            LD="${LD-ld} -m elf_x86_64"
14241            ;;
14242 @@ -3795,10 +4564,10 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14243    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14244    SAVE_CFLAGS="$CFLAGS"
14245    CFLAGS="$CFLAGS -belf"
14246 -  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14247 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
14248 +  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14249 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14250  if test "${lt_cv_cc_needs_belf+set}" = set; then
14251 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14252 +  $as_echo_n "(cached) " >&6
14253  else
14254    ac_ext=c
14255  ac_cpp='$CPP $CPPFLAGS'
14256 @@ -3822,35 +4591,36 @@ main ()
14257  }
14258  _ACEOF
14259  rm -f conftest.$ac_objext conftest$ac_exeext
14260 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14261 -  (eval $ac_link) 2>conftest.er1
14262 +if { (ac_try="$ac_link"
14263 +case "(($ac_try" in
14264 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 +  *) ac_try_echo=$ac_try;;
14266 +esac
14267 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14268 +$as_echo "$ac_try_echo") >&5
14269 +  (eval "$ac_link") 2>conftest.er1
14270    ac_status=$?
14271    grep -v '^ *+' conftest.er1 >conftest.err
14272    rm -f conftest.er1
14273    cat conftest.err >&5
14274 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 -  (exit $ac_status); } &&
14276 -        { ac_try='test -z "$ac_c_werror_flag"
14277 -                        || test ! -s conftest.err'
14278 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 -  (eval $ac_try) 2>&5
14280 -  ac_status=$?
14281 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 -  (exit $ac_status); }; } &&
14283 -        { ac_try='test -s conftest$ac_exeext'
14284 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 -  (eval $ac_try) 2>&5
14286 -  ac_status=$?
14287 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 -  (exit $ac_status); }; }; then
14289 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 +  (exit $ac_status); } && {
14291 +        test -z "$ac_c_werror_flag" ||
14292 +        test ! -s conftest.err
14293 +       } && test -s conftest$ac_exeext && {
14294 +        test "$cross_compiling" = yes ||
14295 +        $as_test_x conftest$ac_exeext
14296 +       }; then
14297    lt_cv_cc_needs_belf=yes
14298  else
14299 -  echo "$as_me: failed program was:" >&5
14300 +  $as_echo "$as_me: failed program was:" >&5
14301  sed 's/^/| /' conftest.$ac_ext >&5
14302  
14303 -lt_cv_cc_needs_belf=no
14304 +       lt_cv_cc_needs_belf=no
14305  fi
14306 -rm -f conftest.err conftest.$ac_objext \
14307 +
14308 +rm -rf conftest.dSYM
14309 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14310        conftest$ac_exeext conftest.$ac_ext
14311       ac_ext=c
14312  ac_cpp='$CPP $CPPFLAGS'
14313 @@ -3859,13 +4629,37 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
14314  ac_compiler_gnu=$ac_cv_c_compiler_gnu
14315  
14316  fi
14317 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
14318 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
14319 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
14320 +$as_echo "$lt_cv_cc_needs_belf" >&6; }
14321    if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14322      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14323      CFLAGS="$SAVE_CFLAGS"
14324    fi
14325    ;;
14326 +sparc*-*solaris*)
14327 +  # Find out which ABI we are using.
14328 +  echo 'int i;' > conftest.$ac_ext
14329 +  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330 +  (eval $ac_compile) 2>&5
14331 +  ac_status=$?
14332 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 +  (exit $ac_status); }; then
14334 +    case `/usr/bin/file conftest.o` in
14335 +    *64-bit*)
14336 +      case $lt_cv_prog_gnu_ld in
14337 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
14338 +      *)
14339 +        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14340 +         LD="${LD-ld} -64"
14341 +       fi
14342 +       ;;
14343 +      esac
14344 +      ;;
14345 +    esac
14346 +  fi
14347 +  rm -rf conftest*
14348 +  ;;
14349 +
14350  
14351  esac
14352  
14353 @@ -3877,15 +4671,15 @@ ac_cpp='$CPP $CPPFLAGS'
14354  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14355  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14356  ac_compiler_gnu=$ac_cv_c_compiler_gnu
14357 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14358 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
14359 +{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14360 +$as_echo_n "checking how to run the C preprocessor... " >&6; }
14361  # On Suns, sometimes $CPP names a directory.
14362  if test -n "$CPP" && test -d "$CPP"; then
14363    CPP=
14364  fi
14365  if test -z "$CPP"; then
14366    if test "${ac_cv_prog_CPP+set}" = set; then
14367 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14368 +  $as_echo_n "(cached) " >&6
14369  else
14370        # Double quotes because CPP needs to be expanded
14371      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14372 @@ -3912,35 +4706,35 @@ cat >>conftest.$ac_ext <<_ACEOF
14373  #endif
14374                      Syntax error
14375  _ACEOF
14376 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14377 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14378 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14379 +case "(($ac_try" in
14380 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 +  *) ac_try_echo=$ac_try;;
14382 +esac
14383 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14384 +$as_echo "$ac_try_echo") >&5
14385 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14386    ac_status=$?
14387    grep -v '^ *+' conftest.er1 >conftest.err
14388    rm -f conftest.er1
14389    cat conftest.err >&5
14390 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 -  (exit $ac_status); } >/dev/null; then
14392 -  if test -s conftest.err; then
14393 -    ac_cpp_err=$ac_c_preproc_warn_flag
14394 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14395 -  else
14396 -    ac_cpp_err=
14397 -  fi
14398 -else
14399 -  ac_cpp_err=yes
14400 -fi
14401 -if test -z "$ac_cpp_err"; then
14402 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 +  (exit $ac_status); } >/dev/null && {
14404 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14405 +        test ! -s conftest.err
14406 +       }; then
14407    :
14408  else
14409 -  echo "$as_me: failed program was:" >&5
14410 +  $as_echo "$as_me: failed program was:" >&5
14411  sed 's/^/| /' conftest.$ac_ext >&5
14412  
14413    # Broken: fails on valid input.
14414  continue
14415  fi
14416 +
14417  rm -f conftest.err conftest.$ac_ext
14418  
14419 -  # OK, works on sane cases.  Now check whether non-existent headers
14420 +  # OK, works on sane cases.  Now check whether nonexistent headers
14421    # can be detected and how.
14422    cat >conftest.$ac_ext <<_ACEOF
14423  /* confdefs.h.  */
14424 @@ -3950,34 +4744,34 @@ cat >>conftest.$ac_ext <<_ACEOF
14425  /* end confdefs.h.  */
14426  #include <ac_nonexistent.h>
14427  _ACEOF
14428 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14429 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14430 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14431 +case "(($ac_try" in
14432 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 +  *) ac_try_echo=$ac_try;;
14434 +esac
14435 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14436 +$as_echo "$ac_try_echo") >&5
14437 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14438    ac_status=$?
14439    grep -v '^ *+' conftest.er1 >conftest.err
14440    rm -f conftest.er1
14441    cat conftest.err >&5
14442 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 -  (exit $ac_status); } >/dev/null; then
14444 -  if test -s conftest.err; then
14445 -    ac_cpp_err=$ac_c_preproc_warn_flag
14446 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14447 -  else
14448 -    ac_cpp_err=
14449 -  fi
14450 -else
14451 -  ac_cpp_err=yes
14452 -fi
14453 -if test -z "$ac_cpp_err"; then
14454 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 +  (exit $ac_status); } >/dev/null && {
14456 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14457 +        test ! -s conftest.err
14458 +       }; then
14459    # Broken: success on invalid input.
14460  continue
14461  else
14462 -  echo "$as_me: failed program was:" >&5
14463 +  $as_echo "$as_me: failed program was:" >&5
14464  sed 's/^/| /' conftest.$ac_ext >&5
14465  
14466    # Passes both tests.
14467  ac_preproc_ok=:
14468  break
14469  fi
14470 +
14471  rm -f conftest.err conftest.$ac_ext
14472  
14473  done
14474 @@ -3995,8 +4789,8 @@ fi
14475  else
14476    ac_cv_prog_CPP=$CPP
14477  fi
14478 -echo "$as_me:$LINENO: result: $CPP" >&5
14479 -echo "${ECHO_T}$CPP" >&6
14480 +{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
14481 +$as_echo "$CPP" >&6; }
14482  ac_preproc_ok=false
14483  for ac_c_preproc_warn_flag in '' yes
14484  do
14485 @@ -4019,35 +4813,35 @@ cat >>conftest.$ac_ext <<_ACEOF
14486  #endif
14487                      Syntax error
14488  _ACEOF
14489 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14490 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14491 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14492 +case "(($ac_try" in
14493 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 +  *) ac_try_echo=$ac_try;;
14495 +esac
14496 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14497 +$as_echo "$ac_try_echo") >&5
14498 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14499    ac_status=$?
14500    grep -v '^ *+' conftest.er1 >conftest.err
14501    rm -f conftest.er1
14502    cat conftest.err >&5
14503 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 -  (exit $ac_status); } >/dev/null; then
14505 -  if test -s conftest.err; then
14506 -    ac_cpp_err=$ac_c_preproc_warn_flag
14507 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14508 -  else
14509 -    ac_cpp_err=
14510 -  fi
14511 -else
14512 -  ac_cpp_err=yes
14513 -fi
14514 -if test -z "$ac_cpp_err"; then
14515 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 +  (exit $ac_status); } >/dev/null && {
14517 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14518 +        test ! -s conftest.err
14519 +       }; then
14520    :
14521  else
14522 -  echo "$as_me: failed program was:" >&5
14523 +  $as_echo "$as_me: failed program was:" >&5
14524  sed 's/^/| /' conftest.$ac_ext >&5
14525  
14526    # Broken: fails on valid input.
14527  continue
14528  fi
14529 +
14530  rm -f conftest.err conftest.$ac_ext
14531  
14532 -  # OK, works on sane cases.  Now check whether non-existent headers
14533 +  # OK, works on sane cases.  Now check whether nonexistent headers
14534    # can be detected and how.
14535    cat >conftest.$ac_ext <<_ACEOF
14536  /* confdefs.h.  */
14537 @@ -4057,34 +4851,34 @@ cat >>conftest.$ac_ext <<_ACEOF
14538  /* end confdefs.h.  */
14539  #include <ac_nonexistent.h>
14540  _ACEOF
14541 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14542 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14543 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14544 +case "(($ac_try" in
14545 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 +  *) ac_try_echo=$ac_try;;
14547 +esac
14548 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14549 +$as_echo "$ac_try_echo") >&5
14550 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14551    ac_status=$?
14552    grep -v '^ *+' conftest.er1 >conftest.err
14553    rm -f conftest.er1
14554    cat conftest.err >&5
14555 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 -  (exit $ac_status); } >/dev/null; then
14557 -  if test -s conftest.err; then
14558 -    ac_cpp_err=$ac_c_preproc_warn_flag
14559 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14560 -  else
14561 -    ac_cpp_err=
14562 -  fi
14563 -else
14564 -  ac_cpp_err=yes
14565 -fi
14566 -if test -z "$ac_cpp_err"; then
14567 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 +  (exit $ac_status); } >/dev/null && {
14569 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14570 +        test ! -s conftest.err
14571 +       }; then
14572    # Broken: success on invalid input.
14573  continue
14574  else
14575 -  echo "$as_me: failed program was:" >&5
14576 +  $as_echo "$as_me: failed program was:" >&5
14577  sed 's/^/| /' conftest.$ac_ext >&5
14578  
14579    # Passes both tests.
14580  ac_preproc_ok=:
14581  break
14582  fi
14583 +
14584  rm -f conftest.err conftest.$ac_ext
14585  
14586  done
14587 @@ -4093,11 +4887,13 @@ rm -f conftest.err conftest.$ac_ext
14588  if $ac_preproc_ok; then
14589    :
14590  else
14591 -  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
14592 +  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14593 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14594 +{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
14595  See \`config.log' for more details." >&5
14596 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
14597 +$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
14598  See \`config.log' for more details." >&2;}
14599 -   { (exit 1); exit 1; }; }
14600 +   { (exit 1); exit 1; }; }; }
14601  fi
14602  
14603  ac_ext=c
14604 @@ -4107,10 +4903,10 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
14605  ac_compiler_gnu=$ac_cv_c_compiler_gnu
14606  
14607  
14608 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14609 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14610 +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14611 +$as_echo_n "checking for ANSI C header files... " >&6; }
14612  if test "${ac_cv_header_stdc+set}" = set; then
14613 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14614 +  $as_echo_n "(cached) " >&6
14615  else
14616    cat >conftest.$ac_ext <<_ACEOF
14617  /* confdefs.h.  */
14618 @@ -4132,35 +4928,32 @@ main ()
14619  }
14620  _ACEOF
14621  rm -f conftest.$ac_objext
14622 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623 -  (eval $ac_compile) 2>conftest.er1
14624 +if { (ac_try="$ac_compile"
14625 +case "(($ac_try" in
14626 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 +  *) ac_try_echo=$ac_try;;
14628 +esac
14629 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14630 +$as_echo "$ac_try_echo") >&5
14631 +  (eval "$ac_compile") 2>conftest.er1
14632    ac_status=$?
14633    grep -v '^ *+' conftest.er1 >conftest.err
14634    rm -f conftest.er1
14635    cat conftest.err >&5
14636 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 -  (exit $ac_status); } &&
14638 -        { ac_try='test -z "$ac_c_werror_flag"
14639 -                        || test ! -s conftest.err'
14640 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 -  (eval $ac_try) 2>&5
14642 -  ac_status=$?
14643 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 -  (exit $ac_status); }; } &&
14645 -        { ac_try='test -s conftest.$ac_objext'
14646 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 -  (eval $ac_try) 2>&5
14648 -  ac_status=$?
14649 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 -  (exit $ac_status); }; }; then
14651 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 +  (exit $ac_status); } && {
14653 +        test -z "$ac_c_werror_flag" ||
14654 +        test ! -s conftest.err
14655 +       } && test -s conftest.$ac_objext; then
14656    ac_cv_header_stdc=yes
14657  else
14658 -  echo "$as_me: failed program was:" >&5
14659 +  $as_echo "$as_me: failed program was:" >&5
14660  sed 's/^/| /' conftest.$ac_ext >&5
14661  
14662 -ac_cv_header_stdc=no
14663 +       ac_cv_header_stdc=no
14664  fi
14665 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14666 +
14667 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14668  
14669  if test $ac_cv_header_stdc = yes; then
14670    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14671 @@ -4216,6 +5009,7 @@ cat confdefs.h >>conftest.$ac_ext
14672  cat >>conftest.$ac_ext <<_ACEOF
14673  /* end confdefs.h.  */
14674  #include <ctype.h>
14675 +#include <stdlib.h>
14676  #if ((' ' & 0x0FF) == 0x020)
14677  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14678  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14679 @@ -4235,36 +5029,50 @@ main ()
14680    for (i = 0; i < 256; i++)
14681      if (XOR (islower (i), ISLOWER (i))
14682         || toupper (i) != TOUPPER (i))
14683 -      exit(2);
14684 -  exit (0);
14685 +      return 2;
14686 +  return 0;
14687  }
14688  _ACEOF
14689  rm -f conftest$ac_exeext
14690 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14691 -  (eval $ac_link) 2>&5
14692 +if { (ac_try="$ac_link"
14693 +case "(($ac_try" in
14694 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 +  *) ac_try_echo=$ac_try;;
14696 +esac
14697 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14698 +$as_echo "$ac_try_echo") >&5
14699 +  (eval "$ac_link") 2>&5
14700    ac_status=$?
14701 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14704 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 -  (eval $ac_try) 2>&5
14706 +  { (case "(($ac_try" in
14707 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 +  *) ac_try_echo=$ac_try;;
14709 +esac
14710 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14711 +$as_echo "$ac_try_echo") >&5
14712 +  (eval "$ac_try") 2>&5
14713    ac_status=$?
14714 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716    (exit $ac_status); }; }; then
14717    :
14718  else
14719 -  echo "$as_me: program exited with status $ac_status" >&5
14720 -echo "$as_me: failed program was:" >&5
14721 +  $as_echo "$as_me: program exited with status $ac_status" >&5
14722 +$as_echo "$as_me: failed program was:" >&5
14723  sed 's/^/| /' conftest.$ac_ext >&5
14724  
14725  ( exit $ac_status )
14726  ac_cv_header_stdc=no
14727  fi
14728 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14729 +rm -rf conftest.dSYM
14730 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14731  fi
14732 +
14733 +
14734  fi
14735  fi
14736 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14737 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
14738 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14739 +$as_echo "$ac_cv_header_stdc" >&6; }
14740  if test $ac_cv_header_stdc = yes; then
14741  
14742  cat >>confdefs.h <<\_ACEOF
14743 @@ -4286,11 +5094,11 @@ fi
14744  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14745                   inttypes.h stdint.h unistd.h
14746  do
14747 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14748 -echo "$as_me:$LINENO: checking for $ac_header" >&5
14749 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14750 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14751 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14752 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14753 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14754 +$as_echo_n "checking for $ac_header... " >&6; }
14755 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14756 +  $as_echo_n "(cached) " >&6
14757  else
14758    cat >conftest.$ac_ext <<_ACEOF
14759  /* confdefs.h.  */
14760 @@ -4303,41 +5111,42 @@ $ac_includes_default
14761  #include <$ac_header>
14762  _ACEOF
14763  rm -f conftest.$ac_objext
14764 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765 -  (eval $ac_compile) 2>conftest.er1
14766 +if { (ac_try="$ac_compile"
14767 +case "(($ac_try" in
14768 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 +  *) ac_try_echo=$ac_try;;
14770 +esac
14771 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14772 +$as_echo "$ac_try_echo") >&5
14773 +  (eval "$ac_compile") 2>conftest.er1
14774    ac_status=$?
14775    grep -v '^ *+' conftest.er1 >conftest.err
14776    rm -f conftest.er1
14777    cat conftest.err >&5
14778 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 -  (exit $ac_status); } &&
14780 -        { ac_try='test -z "$ac_c_werror_flag"
14781 -                        || test ! -s conftest.err'
14782 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 -  (eval $ac_try) 2>&5
14784 -  ac_status=$?
14785 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 -  (exit $ac_status); }; } &&
14787 -        { ac_try='test -s conftest.$ac_objext'
14788 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 -  (eval $ac_try) 2>&5
14790 -  ac_status=$?
14791 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 -  (exit $ac_status); }; }; then
14793 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 +  (exit $ac_status); } && {
14795 +        test -z "$ac_c_werror_flag" ||
14796 +        test ! -s conftest.err
14797 +       } && test -s conftest.$ac_objext; then
14798    eval "$as_ac_Header=yes"
14799  else
14800 -  echo "$as_me: failed program was:" >&5
14801 +  $as_echo "$as_me: failed program was:" >&5
14802  sed 's/^/| /' conftest.$ac_ext >&5
14803  
14804 -eval "$as_ac_Header=no"
14805 +       eval "$as_ac_Header=no"
14806  fi
14807 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14808 +
14809 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810  fi
14811 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14812 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14813 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
14814 +ac_res=`eval 'as_val=${'$as_ac_Header'}
14815 +                $as_echo "$as_val"'`
14816 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14817 +$as_echo "$ac_res" >&6; }
14818 +as_val=`eval 'as_val=${'$as_ac_Header'}
14819 +                $as_echo "$as_val"'`
14820 +   if test "x$as_val" = x""yes; then
14821    cat >>confdefs.h <<_ACEOF
14822 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14823 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14824  _ACEOF
14825  
14826  fi
14827 @@ -4348,19 +5157,21 @@ done
14828  
14829  for ac_header in dlfcn.h
14830  do
14831 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14832 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14833 -  echo "$as_me:$LINENO: checking for $ac_header" >&5
14834 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14835 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14836 -  echo $ECHO_N "(cached) $ECHO_C" >&6
14837 -fi
14838 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14839 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14840 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14841 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842 +  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14843 +$as_echo_n "checking for $ac_header... " >&6; }
14844 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845 +  $as_echo_n "(cached) " >&6
14846 +fi
14847 +ac_res=`eval 'as_val=${'$as_ac_Header'}
14848 +                $as_echo "$as_val"'`
14849 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14850 +$as_echo "$ac_res" >&6; }
14851  else
14852    # Is the header compilable?
14853 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
14854 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14855 +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14856 +$as_echo_n "checking $ac_header usability... " >&6; }
14857  cat >conftest.$ac_ext <<_ACEOF
14858  /* confdefs.h.  */
14859  _ACEOF
14860 @@ -4371,41 +5182,38 @@ $ac_includes_default
14861  #include <$ac_header>
14862  _ACEOF
14863  rm -f conftest.$ac_objext
14864 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14865 -  (eval $ac_compile) 2>conftest.er1
14866 +if { (ac_try="$ac_compile"
14867 +case "(($ac_try" in
14868 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 +  *) ac_try_echo=$ac_try;;
14870 +esac
14871 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14872 +$as_echo "$ac_try_echo") >&5
14873 +  (eval "$ac_compile") 2>conftest.er1
14874    ac_status=$?
14875    grep -v '^ *+' conftest.er1 >conftest.err
14876    rm -f conftest.er1
14877    cat conftest.err >&5
14878 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 -  (exit $ac_status); } &&
14880 -        { ac_try='test -z "$ac_c_werror_flag"
14881 -                        || test ! -s conftest.err'
14882 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 -  (eval $ac_try) 2>&5
14884 -  ac_status=$?
14885 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 -  (exit $ac_status); }; } &&
14887 -        { ac_try='test -s conftest.$ac_objext'
14888 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 -  (eval $ac_try) 2>&5
14890 -  ac_status=$?
14891 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 -  (exit $ac_status); }; }; then
14893 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 +  (exit $ac_status); } && {
14895 +        test -z "$ac_c_werror_flag" ||
14896 +        test ! -s conftest.err
14897 +       } && test -s conftest.$ac_objext; then
14898    ac_header_compiler=yes
14899  else
14900 -  echo "$as_me: failed program was:" >&5
14901 +  $as_echo "$as_me: failed program was:" >&5
14902  sed 's/^/| /' conftest.$ac_ext >&5
14903  
14904 -ac_header_compiler=no
14905 +       ac_header_compiler=no
14906  fi
14907 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14908 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14909 -echo "${ECHO_T}$ac_header_compiler" >&6
14910 +
14911 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14913 +$as_echo "$ac_header_compiler" >&6; }
14914  
14915  # Is the header present?
14916 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
14917 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14918 +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14919 +$as_echo_n "checking $ac_header presence... " >&6; }
14920  cat >conftest.$ac_ext <<_ACEOF
14921  /* confdefs.h.  */
14922  _ACEOF
14923 @@ -4414,101 +5222,102 @@ cat >>conftest.$ac_ext <<_ACEOF
14924  /* end confdefs.h.  */
14925  #include <$ac_header>
14926  _ACEOF
14927 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14928 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14929 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14930 +case "(($ac_try" in
14931 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 +  *) ac_try_echo=$ac_try;;
14933 +esac
14934 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14935 +$as_echo "$ac_try_echo") >&5
14936 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14937    ac_status=$?
14938    grep -v '^ *+' conftest.er1 >conftest.err
14939    rm -f conftest.er1
14940    cat conftest.err >&5
14941 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 -  (exit $ac_status); } >/dev/null; then
14943 -  if test -s conftest.err; then
14944 -    ac_cpp_err=$ac_c_preproc_warn_flag
14945 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14946 -  else
14947 -    ac_cpp_err=
14948 -  fi
14949 -else
14950 -  ac_cpp_err=yes
14951 -fi
14952 -if test -z "$ac_cpp_err"; then
14953 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 +  (exit $ac_status); } >/dev/null && {
14955 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14956 +        test ! -s conftest.err
14957 +       }; then
14958    ac_header_preproc=yes
14959  else
14960 -  echo "$as_me: failed program was:" >&5
14961 +  $as_echo "$as_me: failed program was:" >&5
14962  sed 's/^/| /' conftest.$ac_ext >&5
14963  
14964    ac_header_preproc=no
14965  fi
14966 +
14967  rm -f conftest.err conftest.$ac_ext
14968 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14969 -echo "${ECHO_T}$ac_header_preproc" >&6
14970 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14971 +$as_echo "$ac_header_preproc" >&6; }
14972  
14973  # So?  What about this header?
14974  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14975    yes:no: )
14976 -    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14977 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14978 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14979 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14980 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14981 +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14982 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14983 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14984      ac_header_preproc=yes
14985      ;;
14986    no:yes:* )
14987 -    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14988 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14989 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14990 -echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14991 -    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14992 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14993 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14994 -echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14995 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14996 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14997 -    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14998 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14999 -    (
15000 -      cat <<\_ASBOX
15001 -## ------------------------------------------ ##
15002 -## Report this to the AC_PACKAGE_NAME lists.  ##
15003 -## ------------------------------------------ ##
15004 -_ASBOX
15005 -    ) |
15006 -      sed "s/^/$as_me: WARNING:     /" >&2
15007 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15008 +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15009 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15010 +$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15011 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15012 +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15013 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15014 +$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15015 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15016 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15017 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15018 +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15019 +
15020      ;;
15021  esac
15022 -echo "$as_me:$LINENO: checking for $ac_header" >&5
15023 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15024 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
15025 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15026 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15027 +$as_echo_n "checking for $ac_header... " >&6; }
15028 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029 +  $as_echo_n "(cached) " >&6
15030  else
15031    eval "$as_ac_Header=\$ac_header_preproc"
15032  fi
15033 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15034 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15035 +ac_res=`eval 'as_val=${'$as_ac_Header'}
15036 +                $as_echo "$as_val"'`
15037 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15038 +$as_echo "$ac_res" >&6; }
15039  
15040  fi
15041 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
15042 +as_val=`eval 'as_val=${'$as_ac_Header'}
15043 +                $as_echo "$as_val"'`
15044 +   if test "x$as_val" = x""yes; then
15045    cat >>confdefs.h <<_ACEOF
15046 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15047 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15048  _ACEOF
15049  
15050  fi
15051  
15052  done
15053  
15054 -ac_ext=cc
15055 +ac_ext=cpp
15056  ac_cpp='$CXXCPP $CPPFLAGS'
15057  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15058  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15059  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15060 -if test -n "$ac_tool_prefix"; then
15061 -  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15062 +if test -z "$CXX"; then
15063 +  if test -n "$CCC"; then
15064 +    CXX=$CCC
15065 +  else
15066 +    if test -n "$ac_tool_prefix"; then
15067 +  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15068    do
15069      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15070  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15071 -echo "$as_me:$LINENO: checking for $ac_word" >&5
15072 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15073 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15074 +$as_echo_n "checking for $ac_word... " >&6; }
15075  if test "${ac_cv_prog_CXX+set}" = set; then
15076 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15077 +  $as_echo_n "(cached) " >&6
15078  else
15079    if test -n "$CXX"; then
15080    ac_cv_prog_CXX="$CXX" # Let the user override the test.
15081 @@ -4519,38 +5328,40 @@ do
15082    IFS=$as_save_IFS
15083    test -z "$as_dir" && as_dir=.
15084    for ac_exec_ext in '' $ac_executable_extensions; do
15085 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15086 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15087      ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15088 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15089 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15090      break 2
15091    fi
15092  done
15093  done
15094 +IFS=$as_save_IFS
15095  
15096  fi
15097  fi
15098  CXX=$ac_cv_prog_CXX
15099  if test -n "$CXX"; then
15100 -  echo "$as_me:$LINENO: result: $CXX" >&5
15101 -echo "${ECHO_T}$CXX" >&6
15102 +  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
15103 +$as_echo "$CXX" >&6; }
15104  else
15105 -  echo "$as_me:$LINENO: result: no" >&5
15106 -echo "${ECHO_T}no" >&6
15107 +  { $as_echo "$as_me:$LINENO: result: no" >&5
15108 +$as_echo "no" >&6; }
15109  fi
15110  
15111 +
15112      test -n "$CXX" && break
15113    done
15114  fi
15115  if test -z "$CXX"; then
15116    ac_ct_CXX=$CXX
15117 -  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15118 +  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15119  do
15120    # Extract the first word of "$ac_prog", so it can be a program name with args.
15121  set dummy $ac_prog; ac_word=$2
15122 -echo "$as_me:$LINENO: checking for $ac_word" >&5
15123 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15124 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15125 +$as_echo_n "checking for $ac_word... " >&6; }
15126  if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15127 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15128 +  $as_echo_n "(cached) " >&6
15129  else
15130    if test -n "$ac_ct_CXX"; then
15131    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15132 @@ -4561,57 +5372,87 @@ do
15133    IFS=$as_save_IFS
15134    test -z "$as_dir" && as_dir=.
15135    for ac_exec_ext in '' $ac_executable_extensions; do
15136 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15137 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15138      ac_cv_prog_ac_ct_CXX="$ac_prog"
15139 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15140 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15141      break 2
15142    fi
15143  done
15144  done
15145 +IFS=$as_save_IFS
15146  
15147  fi
15148  fi
15149  ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15150  if test -n "$ac_ct_CXX"; then
15151 -  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15152 -echo "${ECHO_T}$ac_ct_CXX" >&6
15153 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15154 +$as_echo "$ac_ct_CXX" >&6; }
15155  else
15156 -  echo "$as_me:$LINENO: result: no" >&5
15157 -echo "${ECHO_T}no" >&6
15158 +  { $as_echo "$as_me:$LINENO: result: no" >&5
15159 +$as_echo "no" >&6; }
15160  fi
15161  
15162 +
15163    test -n "$ac_ct_CXX" && break
15164  done
15165 -test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15166  
15167 -  CXX=$ac_ct_CXX
15168 +  if test "x$ac_ct_CXX" = x; then
15169 +    CXX="g++"
15170 +  else
15171 +    case $cross_compiling:$ac_tool_warned in
15172 +yes:)
15173 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15174 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15175 +ac_tool_warned=yes ;;
15176 +esac
15177 +    CXX=$ac_ct_CXX
15178 +  fi
15179  fi
15180  
15181 -
15182 +  fi
15183 +fi
15184  # Provide some information about the compiler.
15185 -echo "$as_me:$LINENO:" \
15186 -     "checking for C++ compiler version" >&5
15187 -ac_compiler=`set X $ac_compile; echo $2`
15188 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15189 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
15190 +$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
15191 +set X $ac_compile
15192 +ac_compiler=$2
15193 +{ (ac_try="$ac_compiler --version >&5"
15194 +case "(($ac_try" in
15195 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 +  *) ac_try_echo=$ac_try;;
15197 +esac
15198 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15199 +$as_echo "$ac_try_echo") >&5
15200 +  (eval "$ac_compiler --version >&5") 2>&5
15201    ac_status=$?
15202 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204    (exit $ac_status); }
15205 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15206 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
15207 +{ (ac_try="$ac_compiler -v >&5"
15208 +case "(($ac_try" in
15209 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 +  *) ac_try_echo=$ac_try;;
15211 +esac
15212 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15213 +$as_echo "$ac_try_echo") >&5
15214 +  (eval "$ac_compiler -v >&5") 2>&5
15215    ac_status=$?
15216 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218    (exit $ac_status); }
15219 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15220 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
15221 +{ (ac_try="$ac_compiler -V >&5"
15222 +case "(($ac_try" in
15223 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 +  *) ac_try_echo=$ac_try;;
15225 +esac
15226 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15227 +$as_echo "$ac_try_echo") >&5
15228 +  (eval "$ac_compiler -V >&5") 2>&5
15229    ac_status=$?
15230 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232    (exit $ac_status); }
15233  
15234 -echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15235 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15236 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15237 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15238  if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15239 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15240 +  $as_echo_n "(cached) " >&6
15241  else
15242    cat >conftest.$ac_ext <<_ACEOF
15243  /* confdefs.h.  */
15244 @@ -4632,50 +5473,54 @@ main ()
15245  }
15246  _ACEOF
15247  rm -f conftest.$ac_objext
15248 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15249 -  (eval $ac_compile) 2>conftest.er1
15250 +if { (ac_try="$ac_compile"
15251 +case "(($ac_try" in
15252 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 +  *) ac_try_echo=$ac_try;;
15254 +esac
15255 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15256 +$as_echo "$ac_try_echo") >&5
15257 +  (eval "$ac_compile") 2>conftest.er1
15258    ac_status=$?
15259    grep -v '^ *+' conftest.er1 >conftest.err
15260    rm -f conftest.er1
15261    cat conftest.err >&5
15262 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 -  (exit $ac_status); } &&
15264 -        { ac_try='test -z "$ac_cxx_werror_flag"
15265 -                        || test ! -s conftest.err'
15266 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 -  (eval $ac_try) 2>&5
15268 -  ac_status=$?
15269 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 -  (exit $ac_status); }; } &&
15271 -        { ac_try='test -s conftest.$ac_objext'
15272 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 -  (eval $ac_try) 2>&5
15274 -  ac_status=$?
15275 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 -  (exit $ac_status); }; }; then
15277 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 +  (exit $ac_status); } && {
15279 +        test -z "$ac_cxx_werror_flag" ||
15280 +        test ! -s conftest.err
15281 +       } && test -s conftest.$ac_objext; then
15282    ac_compiler_gnu=yes
15283  else
15284 -  echo "$as_me: failed program was:" >&5
15285 +  $as_echo "$as_me: failed program was:" >&5
15286  sed 's/^/| /' conftest.$ac_ext >&5
15287  
15288 -ac_compiler_gnu=no
15289 +       ac_compiler_gnu=no
15290  fi
15291 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15292 +
15293 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15294  ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15295  
15296  fi
15297 -echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15298 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15299 -GXX=`test $ac_compiler_gnu = yes && echo yes`
15300 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15301 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15302 +if test $ac_compiler_gnu = yes; then
15303 +  GXX=yes
15304 +else
15305 +  GXX=
15306 +fi
15307  ac_test_CXXFLAGS=${CXXFLAGS+set}
15308  ac_save_CXXFLAGS=$CXXFLAGS
15309 -CXXFLAGS="-g"
15310 -echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15311 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15312 +{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15313 +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
15314  if test "${ac_cv_prog_cxx_g+set}" = set; then
15315 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15316 +  $as_echo_n "(cached) " >&6
15317  else
15318 -  cat >conftest.$ac_ext <<_ACEOF
15319 +  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15320 +   ac_cxx_werror_flag=yes
15321 +   ac_cv_prog_cxx_g=no
15322 +   CXXFLAGS="-g"
15323 +   cat >conftest.$ac_ext <<_ACEOF
15324  /* confdefs.h.  */
15325  _ACEOF
15326  cat confdefs.h >>conftest.$ac_ext
15327 @@ -4691,160 +5536,137 @@ main ()
15328  }
15329  _ACEOF
15330  rm -f conftest.$ac_objext
15331 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15332 -  (eval $ac_compile) 2>conftest.er1
15333 +if { (ac_try="$ac_compile"
15334 +case "(($ac_try" in
15335 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 +  *) ac_try_echo=$ac_try;;
15337 +esac
15338 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15339 +$as_echo "$ac_try_echo") >&5
15340 +  (eval "$ac_compile") 2>conftest.er1
15341    ac_status=$?
15342    grep -v '^ *+' conftest.er1 >conftest.err
15343    rm -f conftest.er1
15344    cat conftest.err >&5
15345 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 -  (exit $ac_status); } &&
15347 -        { ac_try='test -z "$ac_cxx_werror_flag"
15348 -                        || test ! -s conftest.err'
15349 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 -  (eval $ac_try) 2>&5
15351 -  ac_status=$?
15352 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 -  (exit $ac_status); }; } &&
15354 -        { ac_try='test -s conftest.$ac_objext'
15355 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 -  (eval $ac_try) 2>&5
15357 -  ac_status=$?
15358 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 -  (exit $ac_status); }; }; then
15360 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 +  (exit $ac_status); } && {
15362 +        test -z "$ac_cxx_werror_flag" ||
15363 +        test ! -s conftest.err
15364 +       } && test -s conftest.$ac_objext; then
15365    ac_cv_prog_cxx_g=yes
15366  else
15367 -  echo "$as_me: failed program was:" >&5
15368 +  $as_echo "$as_me: failed program was:" >&5
15369  sed 's/^/| /' conftest.$ac_ext >&5
15370  
15371 -ac_cv_prog_cxx_g=no
15372 -fi
15373 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15374 -fi
15375 -echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15376 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15377 -if test "$ac_test_CXXFLAGS" = set; then
15378 -  CXXFLAGS=$ac_save_CXXFLAGS
15379 -elif test $ac_cv_prog_cxx_g = yes; then
15380 -  if test "$GXX" = yes; then
15381 -    CXXFLAGS="-g -O2"
15382 -  else
15383 -    CXXFLAGS="-g"
15384 -  fi
15385 -else
15386 -  if test "$GXX" = yes; then
15387 -    CXXFLAGS="-O2"
15388 -  else
15389 -    CXXFLAGS=
15390 -  fi
15391 -fi
15392 -for ac_declaration in \
15393 -   '' \
15394 -   'extern "C" void std::exit (int) throw (); using std::exit;' \
15395 -   'extern "C" void std::exit (int); using std::exit;' \
15396 -   'extern "C" void exit (int) throw ();' \
15397 -   'extern "C" void exit (int);' \
15398 -   'void exit (int);'
15399 -do
15400 -  cat >conftest.$ac_ext <<_ACEOF
15401 +       CXXFLAGS=""
15402 +      cat >conftest.$ac_ext <<_ACEOF
15403  /* confdefs.h.  */
15404  _ACEOF
15405  cat confdefs.h >>conftest.$ac_ext
15406  cat >>conftest.$ac_ext <<_ACEOF
15407  /* end confdefs.h.  */
15408 -$ac_declaration
15409 -#include <stdlib.h>
15410 +
15411  int
15412  main ()
15413  {
15414 -exit (42);
15415 +
15416    ;
15417    return 0;
15418  }
15419  _ACEOF
15420  rm -f conftest.$ac_objext
15421 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422 -  (eval $ac_compile) 2>conftest.er1
15423 +if { (ac_try="$ac_compile"
15424 +case "(($ac_try" in
15425 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 +  *) ac_try_echo=$ac_try;;
15427 +esac
15428 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15429 +$as_echo "$ac_try_echo") >&5
15430 +  (eval "$ac_compile") 2>conftest.er1
15431    ac_status=$?
15432    grep -v '^ *+' conftest.er1 >conftest.err
15433    rm -f conftest.er1
15434    cat conftest.err >&5
15435 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 -  (exit $ac_status); } &&
15437 -        { ac_try='test -z "$ac_cxx_werror_flag"
15438 -                        || test ! -s conftest.err'
15439 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 -  (eval $ac_try) 2>&5
15441 -  ac_status=$?
15442 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 -  (exit $ac_status); }; } &&
15444 -        { ac_try='test -s conftest.$ac_objext'
15445 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 -  (eval $ac_try) 2>&5
15447 -  ac_status=$?
15448 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 -  (exit $ac_status); }; }; then
15450 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 +  (exit $ac_status); } && {
15452 +        test -z "$ac_cxx_werror_flag" ||
15453 +        test ! -s conftest.err
15454 +       } && test -s conftest.$ac_objext; then
15455    :
15456  else
15457 -  echo "$as_me: failed program was:" >&5
15458 +  $as_echo "$as_me: failed program was:" >&5
15459  sed 's/^/| /' conftest.$ac_ext >&5
15460  
15461 -continue
15462 -fi
15463 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15464 -  cat >conftest.$ac_ext <<_ACEOF
15465 +       ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15466 +        CXXFLAGS="-g"
15467 +        cat >conftest.$ac_ext <<_ACEOF
15468  /* confdefs.h.  */
15469  _ACEOF
15470  cat confdefs.h >>conftest.$ac_ext
15471  cat >>conftest.$ac_ext <<_ACEOF
15472  /* end confdefs.h.  */
15473 -$ac_declaration
15474 +
15475  int
15476  main ()
15477  {
15478 -exit (42);
15479 +
15480    ;
15481    return 0;
15482  }
15483  _ACEOF
15484  rm -f conftest.$ac_objext
15485 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15486 -  (eval $ac_compile) 2>conftest.er1
15487 +if { (ac_try="$ac_compile"
15488 +case "(($ac_try" in
15489 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 +  *) ac_try_echo=$ac_try;;
15491 +esac
15492 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15493 +$as_echo "$ac_try_echo") >&5
15494 +  (eval "$ac_compile") 2>conftest.er1
15495    ac_status=$?
15496    grep -v '^ *+' conftest.er1 >conftest.err
15497    rm -f conftest.er1
15498    cat conftest.err >&5
15499 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 -  (exit $ac_status); } &&
15501 -        { ac_try='test -z "$ac_cxx_werror_flag"
15502 -                        || test ! -s conftest.err'
15503 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 -  (eval $ac_try) 2>&5
15505 -  ac_status=$?
15506 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 -  (exit $ac_status); }; } &&
15508 -        { ac_try='test -s conftest.$ac_objext'
15509 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 -  (eval $ac_try) 2>&5
15511 -  ac_status=$?
15512 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 -  (exit $ac_status); }; }; then
15514 -  break
15515 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 +  (exit $ac_status); } && {
15517 +        test -z "$ac_cxx_werror_flag" ||
15518 +        test ! -s conftest.err
15519 +       } && test -s conftest.$ac_objext; then
15520 +  ac_cv_prog_cxx_g=yes
15521  else
15522 -  echo "$as_me: failed program was:" >&5
15523 +  $as_echo "$as_me: failed program was:" >&5
15524  sed 's/^/| /' conftest.$ac_ext >&5
15525  
15526 +
15527  fi
15528 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15529 -done
15530 -rm -f conftest*
15531 -if test -n "$ac_declaration"; then
15532 -  echo '#ifdef __cplusplus' >>confdefs.h
15533 -  echo $ac_declaration      >>confdefs.h
15534 -  echo '#endif'             >>confdefs.h
15535 +
15536 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537  fi
15538  
15539 -ac_ext=cc
15540 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541 +fi
15542 +
15543 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 +   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15545 +fi
15546 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15547 +$as_echo "$ac_cv_prog_cxx_g" >&6; }
15548 +if test "$ac_test_CXXFLAGS" = set; then
15549 +  CXXFLAGS=$ac_save_CXXFLAGS
15550 +elif test $ac_cv_prog_cxx_g = yes; then
15551 +  if test "$GXX" = yes; then
15552 +    CXXFLAGS="-g -O2"
15553 +  else
15554 +    CXXFLAGS="-g"
15555 +  fi
15556 +else
15557 +  if test "$GXX" = yes; then
15558 +    CXXFLAGS="-O2"
15559 +  else
15560 +    CXXFLAGS=
15561 +  fi
15562 +fi
15563 +ac_ext=cpp
15564  ac_cpp='$CXXCPP $CPPFLAGS'
15565  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15566  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15567 @@ -4852,10 +5674,10 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15568  
15569  depcc="$CXX"  am_compiler_list=
15570  
15571 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15572 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15573 +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15574 +$as_echo_n "checking dependency style of $depcc... " >&6; }
15575  if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15576 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15577 +  $as_echo_n "(cached) " >&6
15578  else
15579    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15580    # We make a subdir and do the tests there.  Otherwise we can end up
15581 @@ -4942,8 +5764,8 @@ else
15582  fi
15583  
15584  fi
15585 -echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15586 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
15587 +{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15588 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15589  CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15590  
15591  
15592 @@ -4959,16 +5781,21 @@ else
15593  fi
15594  
15595  
15596 -ac_ext=cc
15597 +
15598 +
15599 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15600 +    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15601 +    (test "X$CXX" != "Xg++"))) ; then
15602 +  ac_ext=cpp
15603  ac_cpp='$CXXCPP $CPPFLAGS'
15604  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15605  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15606  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15607 -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15608 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15609 +{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15610 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15611  if test -z "$CXXCPP"; then
15612    if test "${ac_cv_prog_CXXCPP+set}" = set; then
15613 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15614 +  $as_echo_n "(cached) " >&6
15615  else
15616        # Double quotes because CXXCPP needs to be expanded
15617      for CXXCPP in "$CXX -E" "/lib/cpp"
15618 @@ -4995,35 +5822,35 @@ cat >>conftest.$ac_ext <<_ACEOF
15619  #endif
15620                      Syntax error
15621  _ACEOF
15622 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15623 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15624 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15625 +case "(($ac_try" in
15626 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 +  *) ac_try_echo=$ac_try;;
15628 +esac
15629 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15630 +$as_echo "$ac_try_echo") >&5
15631 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15632    ac_status=$?
15633    grep -v '^ *+' conftest.er1 >conftest.err
15634    rm -f conftest.er1
15635    cat conftest.err >&5
15636 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 -  (exit $ac_status); } >/dev/null; then
15638 -  if test -s conftest.err; then
15639 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15640 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15641 -  else
15642 -    ac_cpp_err=
15643 -  fi
15644 -else
15645 -  ac_cpp_err=yes
15646 -fi
15647 -if test -z "$ac_cpp_err"; then
15648 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 +  (exit $ac_status); } >/dev/null && {
15650 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15651 +        test ! -s conftest.err
15652 +       }; then
15653    :
15654  else
15655 -  echo "$as_me: failed program was:" >&5
15656 +  $as_echo "$as_me: failed program was:" >&5
15657  sed 's/^/| /' conftest.$ac_ext >&5
15658  
15659    # Broken: fails on valid input.
15660  continue
15661  fi
15662 +
15663  rm -f conftest.err conftest.$ac_ext
15664  
15665 -  # OK, works on sane cases.  Now check whether non-existent headers
15666 +  # OK, works on sane cases.  Now check whether nonexistent headers
15667    # can be detected and how.
15668    cat >conftest.$ac_ext <<_ACEOF
15669  /* confdefs.h.  */
15670 @@ -5033,34 +5860,34 @@ cat >>conftest.$ac_ext <<_ACEOF
15671  /* end confdefs.h.  */
15672  #include <ac_nonexistent.h>
15673  _ACEOF
15674 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15675 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15676 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15677 +case "(($ac_try" in
15678 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679 +  *) ac_try_echo=$ac_try;;
15680 +esac
15681 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15682 +$as_echo "$ac_try_echo") >&5
15683 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15684    ac_status=$?
15685    grep -v '^ *+' conftest.er1 >conftest.err
15686    rm -f conftest.er1
15687    cat conftest.err >&5
15688 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 -  (exit $ac_status); } >/dev/null; then
15690 -  if test -s conftest.err; then
15691 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15692 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15693 -  else
15694 -    ac_cpp_err=
15695 -  fi
15696 -else
15697 -  ac_cpp_err=yes
15698 -fi
15699 -if test -z "$ac_cpp_err"; then
15700 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 +  (exit $ac_status); } >/dev/null && {
15702 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15703 +        test ! -s conftest.err
15704 +       }; then
15705    # Broken: success on invalid input.
15706  continue
15707  else
15708 -  echo "$as_me: failed program was:" >&5
15709 +  $as_echo "$as_me: failed program was:" >&5
15710  sed 's/^/| /' conftest.$ac_ext >&5
15711  
15712    # Passes both tests.
15713  ac_preproc_ok=:
15714  break
15715  fi
15716 +
15717  rm -f conftest.err conftest.$ac_ext
15718  
15719  done
15720 @@ -5078,8 +5905,8 @@ fi
15721  else
15722    ac_cv_prog_CXXCPP=$CXXCPP
15723  fi
15724 -echo "$as_me:$LINENO: result: $CXXCPP" >&5
15725 -echo "${ECHO_T}$CXXCPP" >&6
15726 +{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
15727 +$as_echo "$CXXCPP" >&6; }
15728  ac_preproc_ok=false
15729  for ac_cxx_preproc_warn_flag in '' yes
15730  do
15731 @@ -5102,35 +5929,35 @@ cat >>conftest.$ac_ext <<_ACEOF
15732  #endif
15733                      Syntax error
15734  _ACEOF
15735 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15736 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15737 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15738 +case "(($ac_try" in
15739 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 +  *) ac_try_echo=$ac_try;;
15741 +esac
15742 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15743 +$as_echo "$ac_try_echo") >&5
15744 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15745    ac_status=$?
15746    grep -v '^ *+' conftest.er1 >conftest.err
15747    rm -f conftest.er1
15748    cat conftest.err >&5
15749 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 -  (exit $ac_status); } >/dev/null; then
15751 -  if test -s conftest.err; then
15752 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15753 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15754 -  else
15755 -    ac_cpp_err=
15756 -  fi
15757 -else
15758 -  ac_cpp_err=yes
15759 -fi
15760 -if test -z "$ac_cpp_err"; then
15761 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 +  (exit $ac_status); } >/dev/null && {
15763 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15764 +        test ! -s conftest.err
15765 +       }; then
15766    :
15767  else
15768 -  echo "$as_me: failed program was:" >&5
15769 +  $as_echo "$as_me: failed program was:" >&5
15770  sed 's/^/| /' conftest.$ac_ext >&5
15771  
15772    # Broken: fails on valid input.
15773  continue
15774  fi
15775 +
15776  rm -f conftest.err conftest.$ac_ext
15777  
15778 -  # OK, works on sane cases.  Now check whether non-existent headers
15779 +  # OK, works on sane cases.  Now check whether nonexistent headers
15780    # can be detected and how.
15781    cat >conftest.$ac_ext <<_ACEOF
15782  /* confdefs.h.  */
15783 @@ -5140,34 +5967,34 @@ cat >>conftest.$ac_ext <<_ACEOF
15784  /* end confdefs.h.  */
15785  #include <ac_nonexistent.h>
15786  _ACEOF
15787 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15788 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15789 +if { (ac_try="$ac_cpp conftest.$ac_ext"
15790 +case "(($ac_try" in
15791 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 +  *) ac_try_echo=$ac_try;;
15793 +esac
15794 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15795 +$as_echo "$ac_try_echo") >&5
15796 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15797    ac_status=$?
15798    grep -v '^ *+' conftest.er1 >conftest.err
15799    rm -f conftest.er1
15800    cat conftest.err >&5
15801 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 -  (exit $ac_status); } >/dev/null; then
15803 -  if test -s conftest.err; then
15804 -    ac_cpp_err=$ac_cxx_preproc_warn_flag
15805 -    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15806 -  else
15807 -    ac_cpp_err=
15808 -  fi
15809 -else
15810 -  ac_cpp_err=yes
15811 -fi
15812 -if test -z "$ac_cpp_err"; then
15813 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 +  (exit $ac_status); } >/dev/null && {
15815 +        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15816 +        test ! -s conftest.err
15817 +       }; then
15818    # Broken: success on invalid input.
15819  continue
15820  else
15821 -  echo "$as_me: failed program was:" >&5
15822 +  $as_echo "$as_me: failed program was:" >&5
15823  sed 's/^/| /' conftest.$ac_ext >&5
15824  
15825    # Passes both tests.
15826  ac_preproc_ok=:
15827  break
15828  fi
15829 +
15830  rm -f conftest.err conftest.$ac_ext
15831  
15832  done
15833 @@ -5176,33 +6003,37 @@ rm -f conftest.err conftest.$ac_ext
15834  if $ac_preproc_ok; then
15835    :
15836  else
15837 -  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15838 +  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15839 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15840 +{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15841  See \`config.log' for more details." >&5
15842 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15843 +$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15844  See \`config.log' for more details." >&2;}
15845 -   { (exit 1); exit 1; }; }
15846 +   { (exit 1); exit 1; }; }; }
15847  fi
15848  
15849 -ac_ext=cc
15850 +ac_ext=cpp
15851  ac_cpp='$CXXCPP $CPPFLAGS'
15852  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15853  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15854  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15855  
15856 +fi
15857 +
15858  
15859  ac_ext=f
15860  ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15861  ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15862  ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15863  if test -n "$ac_tool_prefix"; then
15864 -  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
15865 +  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
15866    do
15867      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15868  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15869 -echo "$as_me:$LINENO: checking for $ac_word" >&5
15870 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15871 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15872 +$as_echo_n "checking for $ac_word... " >&6; }
15873  if test "${ac_cv_prog_F77+set}" = set; then
15874 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15875 +  $as_echo_n "(cached) " >&6
15876  else
15877    if test -n "$F77"; then
15878    ac_cv_prog_F77="$F77" # Let the user override the test.
15879 @@ -5213,38 +6044,40 @@ do
15880    IFS=$as_save_IFS
15881    test -z "$as_dir" && as_dir=.
15882    for ac_exec_ext in '' $ac_executable_extensions; do
15883 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15884 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15885      ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
15886 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15887 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15888      break 2
15889    fi
15890  done
15891  done
15892 +IFS=$as_save_IFS
15893  
15894  fi
15895  fi
15896  F77=$ac_cv_prog_F77
15897  if test -n "$F77"; then
15898 -  echo "$as_me:$LINENO: result: $F77" >&5
15899 -echo "${ECHO_T}$F77" >&6
15900 +  { $as_echo "$as_me:$LINENO: result: $F77" >&5
15901 +$as_echo "$F77" >&6; }
15902  else
15903 -  echo "$as_me:$LINENO: result: no" >&5
15904 -echo "${ECHO_T}no" >&6
15905 +  { $as_echo "$as_me:$LINENO: result: no" >&5
15906 +$as_echo "no" >&6; }
15907  fi
15908  
15909 +
15910      test -n "$F77" && break
15911    done
15912  fi
15913  if test -z "$F77"; then
15914    ac_ct_F77=$F77
15915 -  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
15916 +  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
15917  do
15918    # Extract the first word of "$ac_prog", so it can be a program name with args.
15919  set dummy $ac_prog; ac_word=$2
15920 -echo "$as_me:$LINENO: checking for $ac_word" >&5
15921 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15922 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15923 +$as_echo_n "checking for $ac_word... " >&6; }
15924  if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
15925 -  echo $ECHO_N "(cached) $ECHO_C" >&6
15926 +  $as_echo_n "(cached) " >&6
15927  else
15928    if test -n "$ac_ct_F77"; then
15929    ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
15930 @@ -5255,50 +6088,80 @@ do
15931    IFS=$as_save_IFS
15932    test -z "$as_dir" && as_dir=.
15933    for ac_exec_ext in '' $ac_executable_extensions; do
15934 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15935 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15936      ac_cv_prog_ac_ct_F77="$ac_prog"
15937 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15938 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15939      break 2
15940    fi
15941  done
15942  done
15943 +IFS=$as_save_IFS
15944  
15945  fi
15946  fi
15947  ac_ct_F77=$ac_cv_prog_ac_ct_F77
15948  if test -n "$ac_ct_F77"; then
15949 -  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
15950 -echo "${ECHO_T}$ac_ct_F77" >&6
15951 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
15952 +$as_echo "$ac_ct_F77" >&6; }
15953  else
15954 -  echo "$as_me:$LINENO: result: no" >&5
15955 -echo "${ECHO_T}no" >&6
15956 +  { $as_echo "$as_me:$LINENO: result: no" >&5
15957 +$as_echo "no" >&6; }
15958  fi
15959  
15960 +
15961    test -n "$ac_ct_F77" && break
15962  done
15963  
15964 -  F77=$ac_ct_F77
15965 +  if test "x$ac_ct_F77" = x; then
15966 +    F77=""
15967 +  else
15968 +    case $cross_compiling:$ac_tool_warned in
15969 +yes:)
15970 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15971 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15972 +ac_tool_warned=yes ;;
15973 +esac
15974 +    F77=$ac_ct_F77
15975 +  fi
15976  fi
15977  
15978  
15979  # Provide some information about the compiler.
15980 -echo "$as_me:5285:" \
15981 -     "checking for Fortran 77 compiler version" >&5
15982 -ac_compiler=`set X $ac_compile; echo $2`
15983 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15984 -  (eval $ac_compiler --version </dev/null >&5) 2>&5
15985 +$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
15986 +set X $ac_compile
15987 +ac_compiler=$2
15988 +{ (ac_try="$ac_compiler --version >&5"
15989 +case "(($ac_try" in
15990 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 +  *) ac_try_echo=$ac_try;;
15992 +esac
15993 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994 +$as_echo "$ac_try_echo") >&5
15995 +  (eval "$ac_compiler --version >&5") 2>&5
15996    ac_status=$?
15997 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999    (exit $ac_status); }
16000 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
16001 -  (eval $ac_compiler -v </dev/null >&5) 2>&5
16002 +{ (ac_try="$ac_compiler -v >&5"
16003 +case "(($ac_try" in
16004 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 +  *) ac_try_echo=$ac_try;;
16006 +esac
16007 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16008 +$as_echo "$ac_try_echo") >&5
16009 +  (eval "$ac_compiler -v >&5") 2>&5
16010    ac_status=$?
16011 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013    (exit $ac_status); }
16014 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
16015 -  (eval $ac_compiler -V </dev/null >&5) 2>&5
16016 +{ (ac_try="$ac_compiler -V >&5"
16017 +case "(($ac_try" in
16018 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 +  *) ac_try_echo=$ac_try;;
16020 +esac
16021 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16022 +$as_echo "$ac_try_echo") >&5
16023 +  (eval "$ac_compiler -V >&5") 2>&5
16024    ac_status=$?
16025 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027    (exit $ac_status); }
16028  rm -f a.out
16029  
16030 @@ -5306,10 +6169,10 @@ rm -f a.out
16031  # input file.  (Note that this only needs to work for GNU compilers.)
16032  ac_save_ext=$ac_ext
16033  ac_ext=F
16034 -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
16035 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
16036 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
16037 +$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
16038  if test "${ac_cv_f77_compiler_gnu+set}" = set; then
16039 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16040 +  $as_echo_n "(cached) " >&6
16041  else
16042    cat >conftest.$ac_ext <<_ACEOF
16043        program main
16044 @@ -5320,48 +6183,45 @@ else
16045        end
16046  _ACEOF
16047  rm -f conftest.$ac_objext
16048 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16049 -  (eval $ac_compile) 2>conftest.er1
16050 +if { (ac_try="$ac_compile"
16051 +case "(($ac_try" in
16052 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 +  *) ac_try_echo=$ac_try;;
16054 +esac
16055 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16056 +$as_echo "$ac_try_echo") >&5
16057 +  (eval "$ac_compile") 2>conftest.er1
16058    ac_status=$?
16059    grep -v '^ *+' conftest.er1 >conftest.err
16060    rm -f conftest.er1
16061    cat conftest.err >&5
16062 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 -  (exit $ac_status); } &&
16064 -        { ac_try='test -z "$ac_f77_werror_flag"
16065 -                        || test ! -s conftest.err'
16066 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 -  (eval $ac_try) 2>&5
16068 -  ac_status=$?
16069 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 -  (exit $ac_status); }; } &&
16071 -        { ac_try='test -s conftest.$ac_objext'
16072 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 -  (eval $ac_try) 2>&5
16074 -  ac_status=$?
16075 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 -  (exit $ac_status); }; }; then
16077 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 +  (exit $ac_status); } && {
16079 +        test -z "$ac_f77_werror_flag" ||
16080 +        test ! -s conftest.err
16081 +       } && test -s conftest.$ac_objext; then
16082    ac_compiler_gnu=yes
16083  else
16084 -  echo "$as_me: failed program was:" >&5
16085 +  $as_echo "$as_me: failed program was:" >&5
16086  sed 's/^/| /' conftest.$ac_ext >&5
16087  
16088 -ac_compiler_gnu=no
16089 +       ac_compiler_gnu=no
16090  fi
16091 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16092 +
16093 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16094  ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16095  
16096  fi
16097 -echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
16098 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
16099 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
16100 +$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
16101  ac_ext=$ac_save_ext
16102  ac_test_FFLAGS=${FFLAGS+set}
16103  ac_save_FFLAGS=$FFLAGS
16104  FFLAGS=
16105 -echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
16106 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
16107 +{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
16108 +$as_echo_n "checking whether $F77 accepts -g... " >&6; }
16109  if test "${ac_cv_prog_f77_g+set}" = set; then
16110 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16111 +  $as_echo_n "(cached) " >&6
16112  else
16113    FFLAGS=-g
16114  cat >conftest.$ac_ext <<_ACEOF
16115 @@ -5370,39 +6230,36 @@ cat >conftest.$ac_ext <<_ACEOF
16116        end
16117  _ACEOF
16118  rm -f conftest.$ac_objext
16119 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16120 -  (eval $ac_compile) 2>conftest.er1
16121 +if { (ac_try="$ac_compile"
16122 +case "(($ac_try" in
16123 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 +  *) ac_try_echo=$ac_try;;
16125 +esac
16126 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16127 +$as_echo "$ac_try_echo") >&5
16128 +  (eval "$ac_compile") 2>conftest.er1
16129    ac_status=$?
16130    grep -v '^ *+' conftest.er1 >conftest.err
16131    rm -f conftest.er1
16132    cat conftest.err >&5
16133 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 -  (exit $ac_status); } &&
16135 -        { ac_try='test -z "$ac_f77_werror_flag"
16136 -                        || test ! -s conftest.err'
16137 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 -  (eval $ac_try) 2>&5
16139 -  ac_status=$?
16140 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 -  (exit $ac_status); }; } &&
16142 -        { ac_try='test -s conftest.$ac_objext'
16143 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 -  (eval $ac_try) 2>&5
16145 -  ac_status=$?
16146 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 -  (exit $ac_status); }; }; then
16148 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 +  (exit $ac_status); } && {
16150 +        test -z "$ac_f77_werror_flag" ||
16151 +        test ! -s conftest.err
16152 +       } && test -s conftest.$ac_objext; then
16153    ac_cv_prog_f77_g=yes
16154  else
16155 -  echo "$as_me: failed program was:" >&5
16156 +  $as_echo "$as_me: failed program was:" >&5
16157  sed 's/^/| /' conftest.$ac_ext >&5
16158  
16159 -ac_cv_prog_f77_g=no
16160 +       ac_cv_prog_f77_g=no
16161  fi
16162 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16163 +
16164 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165  
16166  fi
16167 -echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16168 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
16169 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16170 +$as_echo "$ac_cv_prog_f77_g" >&6; }
16171  if test "$ac_test_FFLAGS" = set; then
16172    FFLAGS=$ac_save_FFLAGS
16173  elif test $ac_cv_prog_f77_g = yes; then
16174 @@ -5419,7 +6276,11 @@ else
16175    fi
16176  fi
16177  
16178 -G77=`test $ac_compiler_gnu = yes && echo yes`
16179 +if test $ac_compiler_gnu = yes; then
16180 +  G77=yes
16181 +else
16182 +  G77=
16183 +fi
16184  ac_ext=c
16185  ac_cpp='$CPP $CPPFLAGS'
16186  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16187 @@ -5429,12 +6290,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
16188  
16189  
16190  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
16191 -
16192  # find the maximum length of command line arguments
16193 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16194 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
16195 +{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16196 +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
16197  if test "${lt_cv_sys_max_cmd_len+set}" = set; then
16198 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16199 +  $as_echo_n "(cached) " >&6
16200  else
16201      i=0
16202    teststring="ABCD"
16203 @@ -5472,45 +6332,93 @@ else
16204      lt_cv_sys_max_cmd_len=8192;
16205      ;;
16206  
16207 - *)
16208 -    # If test is not a shell built-in, we'll probably end up computing a
16209 -    # maximum length that is only half of the actual maximum length, but
16210 -    # we can't tell.
16211 -    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16212 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16213 +    # This has been around since 386BSD, at least.  Likely further.
16214 +    if test -x /sbin/sysctl; then
16215 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16216 +    elif test -x /usr/sbin/sysctl; then
16217 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16218 +    else
16219 +      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
16220 +    fi
16221 +    # And add a safety zone
16222 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16223 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16224 +    ;;
16225 +
16226 +  interix*)
16227 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
16228 +    lt_cv_sys_max_cmd_len=196608
16229 +    ;;
16230 +
16231 +  osf*)
16232 +    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16233 +    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16234 +    # nice to cause kernel panics so lets avoid the loop below.
16235 +    # First set a reasonable default.
16236 +    lt_cv_sys_max_cmd_len=16384
16237 +    #
16238 +    if test -x /sbin/sysconfig; then
16239 +      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16240 +        *1*) lt_cv_sys_max_cmd_len=-1 ;;
16241 +      esac
16242 +    fi
16243 +    ;;
16244 +  sco3.2v5*)
16245 +    lt_cv_sys_max_cmd_len=102400
16246 +    ;;
16247 +  sysv5* | sco5v6* | sysv4.2uw2*)
16248 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16249 +    if test -n "$kargmax"; then
16250 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
16251 +    else
16252 +      lt_cv_sys_max_cmd_len=32768
16253 +    fi
16254 +    ;;
16255 +  *)
16256 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16257 +    if test -n "$lt_cv_sys_max_cmd_len"; then
16258 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16259 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16260 +    else
16261 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16262 +      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16263                = "XX$teststring") >/dev/null 2>&1 &&
16264 -           new_result=`expr "X$teststring" : ".*" 2>&1` &&
16265 -           lt_cv_sys_max_cmd_len=$new_result &&
16266 -           test $i != 17 # 1/2 MB should be enough
16267 -    do
16268 -      i=`expr $i + 1`
16269 -      teststring=$teststring$teststring
16270 -    done
16271 -    teststring=
16272 -    # Add a significant safety factor because C++ compilers can tack on massive
16273 -    # amounts of additional arguments before passing them to the linker.
16274 -    # It appears as though 1/2 is a usable value.
16275 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16276 +             new_result=`expr "X$teststring" : ".*" 2>&1` &&
16277 +             lt_cv_sys_max_cmd_len=$new_result &&
16278 +             test $i != 17 # 1/2 MB should be enough
16279 +      do
16280 +        i=`expr $i + 1`
16281 +        teststring=$teststring$teststring
16282 +      done
16283 +      teststring=
16284 +      # Add a significant safety factor because C++ compilers can tack on massive
16285 +      # amounts of additional arguments before passing them to the linker.
16286 +      # It appears as though 1/2 is a usable value.
16287 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16288 +    fi
16289      ;;
16290    esac
16291  
16292  fi
16293  
16294  if test -n $lt_cv_sys_max_cmd_len ; then
16295 -  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16296 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
16297 +  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16298 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16299  else
16300 -  echo "$as_me:$LINENO: result: none" >&5
16301 -echo "${ECHO_T}none" >&6
16302 +  { $as_echo "$as_me:$LINENO: result: none" >&5
16303 +$as_echo "none" >&6; }
16304  fi
16305  
16306  
16307  
16308  
16309 +
16310  # Check for command to grab the raw symbol name followed by C symbol from nm.
16311 -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16312 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
16313 +{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16314 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16315  if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16316 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16317 +  $as_echo_n "(cached) " >&6
16318  else
16319  
16320  # These are sane defaults that work on at least a few old systems.
16321 @@ -5522,9 +6430,6 @@ symcode='[BCDEGRST]'
16322  # Regexp to match symbols that can be accessed directly from C.
16323  sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16324  
16325 -# Transform the above into a raw symbol and a C symbol.
16326 -symxfrm='\1 \2\3 \3'
16327 -
16328  # Transform an extracted symbol line into a proper C declaration
16329  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16330  
16331 @@ -5546,15 +6451,31 @@ hpux*) # Its linker distinguishes data from code symbols
16332    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16333    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
16334    ;;
16335 +linux* | k*bsd*-gnu)
16336 +  if test "$host_cpu" = ia64; then
16337 +    symcode='[ABCDGIRSTW]'
16338 +    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16339 +    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
16340 +  fi
16341 +  ;;
16342  irix* | nonstopux*)
16343    symcode='[BCDEGRST]'
16344    ;;
16345  osf*)
16346    symcode='[BCDEGQRST]'
16347    ;;
16348 -solaris* | sysv5*)
16349 +solaris*)
16350    symcode='[BDRT]'
16351    ;;
16352 +sco3.2v5*)
16353 +  symcode='[DT]'
16354 +  ;;
16355 +sysv4.2uw2*)
16356 +  symcode='[DT]'
16357 +  ;;
16358 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
16359 +  symcode='[ABDT]'
16360 +  ;;
16361  sysv4)
16362    symcode='[DFNSTU]'
16363    ;;
16364 @@ -5577,8 +6498,11 @@ esac
16365  # Try without a prefix undercore, then with it.
16366  for ac_symprfx in "" "_"; do
16367  
16368 +  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16369 +  symxfrm="\\1 $ac_symprfx\\2 \\2"
16370 +
16371    # Write the raw and C identifiers.
16372 -  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
16373 +  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16374  
16375    # Check to see that the pipe works correctly.
16376    pipe_works=no
16377 @@ -5599,14 +6523,14 @@ EOF
16378    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16379    (eval $ac_compile) 2>&5
16380    ac_status=$?
16381 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383    (exit $ac_status); }; then
16384      # Now try to grab the symbols.
16385      nlist=conftest.nm
16386      if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16387    (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16388    ac_status=$?
16389 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391    (exit $ac_status); } && test -s "$nlist"; then
16392        # Try sorting and uniquifying the output.
16393        if sort "$nlist" | uniq > "$nlist"T; then
16394 @@ -5661,7 +6585,7 @@ EOF
16395           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16396    (eval $ac_link) 2>&5
16397    ac_status=$?
16398 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400    (exit $ac_status); } && test -s conftest${ac_exeext}; then
16401             pipe_works=yes
16402           fi
16403 @@ -5680,7 +6604,7 @@ EOF
16404      echo "$progname: failed program was:" >&5
16405      cat conftest.$ac_ext >&5
16406    fi
16407 -  rm -f conftest* conftst*
16408 +  rm -rf conftest* conftst*
16409  
16410    # Do not use the global_symbol_pipe unless it works.
16411    if test "$pipe_works" = yes; then
16412 @@ -5696,17 +6620,17 @@ if test -z "$lt_cv_sys_global_symbol_pipe"; then
16413    lt_cv_sys_global_symbol_to_cdecl=
16414  fi
16415  if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16416 -  echo "$as_me:$LINENO: result: failed" >&5
16417 -echo "${ECHO_T}failed" >&6
16418 +  { $as_echo "$as_me:$LINENO: result: failed" >&5
16419 +$as_echo "failed" >&6; }
16420  else
16421 -  echo "$as_me:$LINENO: result: ok" >&5
16422 -echo "${ECHO_T}ok" >&6
16423 +  { $as_echo "$as_me:$LINENO: result: ok" >&5
16424 +$as_echo "ok" >&6; }
16425  fi
16426  
16427 -echo "$as_me:$LINENO: checking for objdir" >&5
16428 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16429 +{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
16430 +$as_echo_n "checking for objdir... " >&6; }
16431  if test "${lt_cv_objdir+set}" = set; then
16432 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16433 +  $as_echo_n "(cached) " >&6
16434  else
16435    rm -f .libs 2>/dev/null
16436  mkdir .libs 2>/dev/null
16437 @@ -5718,8 +6642,8 @@ else
16438  fi
16439  rmdir .libs 2>/dev/null
16440  fi
16441 -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16442 -echo "${ECHO_T}$lt_cv_objdir" >&6
16443 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16444 +$as_echo "$lt_cv_objdir" >&6; }
16445  objdir=$lt_cv_objdir
16446  
16447  
16448 @@ -5740,7 +6664,7 @@ esac
16449  
16450  # Sed substitution that helps us do robust quoting.  It backslashifies
16451  # metacharacters that are still active within double-quoted strings.
16452 -Xsed='sed -e s/^X//'
16453 +Xsed='sed -e 1s/^X//'
16454  sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
16455  
16456  # Same as above, but do not quote variable references.
16457 @@ -5760,7 +6684,7 @@ rm="rm -f"
16458  default_ofile=libtool
16459  can_build_shared=yes
16460  
16461 -# All known linkers require a `.a' archive for static linking (except M$VC,
16462 +# All known linkers require a `.a' archive for static linking (except MSVC,
16463  # which needs '.lib').
16464  libext=a
16465  ltmain="$ac_aux_dir/ltmain.sh"
16466 @@ -5770,10 +6694,10 @@ with_gnu_ld="$lt_cv_prog_gnu_ld"
16467  if test -n "$ac_tool_prefix"; then
16468    # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16469  set dummy ${ac_tool_prefix}ar; ac_word=$2
16470 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16471 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16472 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16473 +$as_echo_n "checking for $ac_word... " >&6; }
16474  if test "${ac_cv_prog_AR+set}" = set; then
16475 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16476 +  $as_echo_n "(cached) " >&6
16477  else
16478    if test -n "$AR"; then
16479    ac_cv_prog_AR="$AR" # Let the user override the test.
16480 @@ -5784,34 +6708,36 @@ do
16481    IFS=$as_save_IFS
16482    test -z "$as_dir" && as_dir=.
16483    for ac_exec_ext in '' $ac_executable_extensions; do
16484 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16485 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16486      ac_cv_prog_AR="${ac_tool_prefix}ar"
16487 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16488 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16489      break 2
16490    fi
16491  done
16492  done
16493 +IFS=$as_save_IFS
16494  
16495  fi
16496  fi
16497  AR=$ac_cv_prog_AR
16498  if test -n "$AR"; then
16499 -  echo "$as_me:$LINENO: result: $AR" >&5
16500 -echo "${ECHO_T}$AR" >&6
16501 +  { $as_echo "$as_me:$LINENO: result: $AR" >&5
16502 +$as_echo "$AR" >&6; }
16503  else
16504 -  echo "$as_me:$LINENO: result: no" >&5
16505 -echo "${ECHO_T}no" >&6
16506 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16507 +$as_echo "no" >&6; }
16508  fi
16509  
16510 +
16511  fi
16512  if test -z "$ac_cv_prog_AR"; then
16513    ac_ct_AR=$AR
16514    # Extract the first word of "ar", so it can be a program name with args.
16515  set dummy ar; ac_word=$2
16516 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16517 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16518 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16519 +$as_echo_n "checking for $ac_word... " >&6; }
16520  if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16521 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16522 +  $as_echo_n "(cached) " >&6
16523  else
16524    if test -n "$ac_ct_AR"; then
16525    ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16526 @@ -5822,27 +6748,37 @@ do
16527    IFS=$as_save_IFS
16528    test -z "$as_dir" && as_dir=.
16529    for ac_exec_ext in '' $ac_executable_extensions; do
16530 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16531 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16532      ac_cv_prog_ac_ct_AR="ar"
16533 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16534 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16535      break 2
16536    fi
16537  done
16538  done
16539 +IFS=$as_save_IFS
16540  
16541 -  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
16542  fi
16543  fi
16544  ac_ct_AR=$ac_cv_prog_ac_ct_AR
16545  if test -n "$ac_ct_AR"; then
16546 -  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16547 -echo "${ECHO_T}$ac_ct_AR" >&6
16548 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16549 +$as_echo "$ac_ct_AR" >&6; }
16550  else
16551 -  echo "$as_me:$LINENO: result: no" >&5
16552 -echo "${ECHO_T}no" >&6
16553 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16554 +$as_echo "no" >&6; }
16555  fi
16556  
16557 -  AR=$ac_ct_AR
16558 +  if test "x$ac_ct_AR" = x; then
16559 +    AR="false"
16560 +  else
16561 +    case $cross_compiling:$ac_tool_warned in
16562 +yes:)
16563 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16564 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16565 +ac_tool_warned=yes ;;
16566 +esac
16567 +    AR=$ac_ct_AR
16568 +  fi
16569  else
16570    AR="$ac_cv_prog_AR"
16571  fi
16572 @@ -5850,10 +6786,10 @@ fi
16573  if test -n "$ac_tool_prefix"; then
16574    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16575  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16576 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16577 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16578 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16579 +$as_echo_n "checking for $ac_word... " >&6; }
16580  if test "${ac_cv_prog_RANLIB+set}" = set; then
16581 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16582 +  $as_echo_n "(cached) " >&6
16583  else
16584    if test -n "$RANLIB"; then
16585    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16586 @@ -5864,34 +6800,36 @@ do
16587    IFS=$as_save_IFS
16588    test -z "$as_dir" && as_dir=.
16589    for ac_exec_ext in '' $ac_executable_extensions; do
16590 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16591 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16592      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16593 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16594 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16595      break 2
16596    fi
16597  done
16598  done
16599 +IFS=$as_save_IFS
16600  
16601  fi
16602  fi
16603  RANLIB=$ac_cv_prog_RANLIB
16604  if test -n "$RANLIB"; then
16605 -  echo "$as_me:$LINENO: result: $RANLIB" >&5
16606 -echo "${ECHO_T}$RANLIB" >&6
16607 +  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
16608 +$as_echo "$RANLIB" >&6; }
16609  else
16610 -  echo "$as_me:$LINENO: result: no" >&5
16611 -echo "${ECHO_T}no" >&6
16612 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16613 +$as_echo "no" >&6; }
16614  fi
16615  
16616 +
16617  fi
16618  if test -z "$ac_cv_prog_RANLIB"; then
16619    ac_ct_RANLIB=$RANLIB
16620    # Extract the first word of "ranlib", so it can be a program name with args.
16621  set dummy ranlib; ac_word=$2
16622 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16623 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16624 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16625 +$as_echo_n "checking for $ac_word... " >&6; }
16626  if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16627 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16628 +  $as_echo_n "(cached) " >&6
16629  else
16630    if test -n "$ac_ct_RANLIB"; then
16631    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16632 @@ -5902,27 +6840,37 @@ do
16633    IFS=$as_save_IFS
16634    test -z "$as_dir" && as_dir=.
16635    for ac_exec_ext in '' $ac_executable_extensions; do
16636 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16637 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16638      ac_cv_prog_ac_ct_RANLIB="ranlib"
16639 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16640 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16641      break 2
16642    fi
16643  done
16644  done
16645 +IFS=$as_save_IFS
16646  
16647 -  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16648  fi
16649  fi
16650  ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16651  if test -n "$ac_ct_RANLIB"; then
16652 -  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16653 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
16654 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16655 +$as_echo "$ac_ct_RANLIB" >&6; }
16656  else
16657 -  echo "$as_me:$LINENO: result: no" >&5
16658 -echo "${ECHO_T}no" >&6
16659 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16660 +$as_echo "no" >&6; }
16661  fi
16662  
16663 -  RANLIB=$ac_ct_RANLIB
16664 +  if test "x$ac_ct_RANLIB" = x; then
16665 +    RANLIB=":"
16666 +  else
16667 +    case $cross_compiling:$ac_tool_warned in
16668 +yes:)
16669 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16670 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16671 +ac_tool_warned=yes ;;
16672 +esac
16673 +    RANLIB=$ac_ct_RANLIB
16674 +  fi
16675  else
16676    RANLIB="$ac_cv_prog_RANLIB"
16677  fi
16678 @@ -5930,10 +6878,10 @@ fi
16679  if test -n "$ac_tool_prefix"; then
16680    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16681  set dummy ${ac_tool_prefix}strip; ac_word=$2
16682 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16683 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16684 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16685 +$as_echo_n "checking for $ac_word... " >&6; }
16686  if test "${ac_cv_prog_STRIP+set}" = set; then
16687 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16688 +  $as_echo_n "(cached) " >&6
16689  else
16690    if test -n "$STRIP"; then
16691    ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16692 @@ -5944,34 +6892,36 @@ do
16693    IFS=$as_save_IFS
16694    test -z "$as_dir" && as_dir=.
16695    for ac_exec_ext in '' $ac_executable_extensions; do
16696 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16697 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16698      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16699 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16700 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16701      break 2
16702    fi
16703  done
16704  done
16705 +IFS=$as_save_IFS
16706  
16707  fi
16708  fi
16709  STRIP=$ac_cv_prog_STRIP
16710  if test -n "$STRIP"; then
16711 -  echo "$as_me:$LINENO: result: $STRIP" >&5
16712 -echo "${ECHO_T}$STRIP" >&6
16713 +  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
16714 +$as_echo "$STRIP" >&6; }
16715  else
16716 -  echo "$as_me:$LINENO: result: no" >&5
16717 -echo "${ECHO_T}no" >&6
16718 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16719 +$as_echo "no" >&6; }
16720  fi
16721  
16722 +
16723  fi
16724  if test -z "$ac_cv_prog_STRIP"; then
16725    ac_ct_STRIP=$STRIP
16726    # Extract the first word of "strip", so it can be a program name with args.
16727  set dummy strip; ac_word=$2
16728 -echo "$as_me:$LINENO: checking for $ac_word" >&5
16729 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16730 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16731 +$as_echo_n "checking for $ac_word... " >&6; }
16732  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16733 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16734 +  $as_echo_n "(cached) " >&6
16735  else
16736    if test -n "$ac_ct_STRIP"; then
16737    ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16738 @@ -5982,27 +6932,37 @@ do
16739    IFS=$as_save_IFS
16740    test -z "$as_dir" && as_dir=.
16741    for ac_exec_ext in '' $ac_executable_extensions; do
16742 -  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16743 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16744      ac_cv_prog_ac_ct_STRIP="strip"
16745 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16746 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16747      break 2
16748    fi
16749  done
16750  done
16751 +IFS=$as_save_IFS
16752  
16753 -  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
16754  fi
16755  fi
16756  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16757  if test -n "$ac_ct_STRIP"; then
16758 -  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16759 -echo "${ECHO_T}$ac_ct_STRIP" >&6
16760 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16761 +$as_echo "$ac_ct_STRIP" >&6; }
16762  else
16763 -  echo "$as_me:$LINENO: result: no" >&5
16764 -echo "${ECHO_T}no" >&6
16765 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16766 +$as_echo "no" >&6; }
16767  fi
16768  
16769 -  STRIP=$ac_ct_STRIP
16770 +  if test "x$ac_ct_STRIP" = x; then
16771 +    STRIP=":"
16772 +  else
16773 +    case $cross_compiling:$ac_tool_warned in
16774 +yes:)
16775 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16776 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16777 +ac_tool_warned=yes ;;
16778 +esac
16779 +    STRIP=$ac_ct_STRIP
16780 +  fi
16781  else
16782    STRIP="$ac_cv_prog_STRIP"
16783  fi
16784 @@ -6017,6 +6977,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
16785  test -z "$AS" && AS=as
16786  test -z "$CC" && CC=cc
16787  test -z "$LTCC" && LTCC=$CC
16788 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16789  test -z "$DLLTOOL" && DLLTOOL=dlltool
16790  test -z "$LD" && LD=ld
16791  test -z "$LN_S" && LN_S="ln -s"
16792 @@ -6029,30 +6990,41 @@ test -z "$STRIP" && STRIP=:
16793  test -z "$ac_objext" && ac_objext=o
16794  
16795  # Determine commands to create old-style static archives.
16796 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
16797 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16798  old_postinstall_cmds='chmod 644 $oldlib'
16799  old_postuninstall_cmds=
16800  
16801  if test -n "$RANLIB"; then
16802    case $host_os in
16803    openbsd*)
16804 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
16805 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16806      ;;
16807    *)
16808 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
16809 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16810      ;;
16811    esac
16812    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16813  fi
16814  
16815 +for cc_temp in $compiler""; do
16816 +  case $cc_temp in
16817 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16818 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16819 +    \-*) ;;
16820 +    *) break;;
16821 +  esac
16822 +done
16823 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16824 +
16825 +
16826  # Only perform the check for file, if the check method requires it
16827  case $deplibs_check_method in
16828  file_magic*)
16829    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16830 -    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16831 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16832 +    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16833 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16834  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16835 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16836 +  $as_echo_n "(cached) " >&6
16837  else
16838    case $MAGIC_CMD in
16839  [\\/*] |  ?:[\\/]*)
16840 @@ -6070,7 +7042,7 @@ else
16841        if test -n "$file_magic_test_file"; then
16842         case $deplibs_check_method in
16843         "file_magic "*)
16844 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
16845 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16846           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16847           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16848             $EGREP "$file_magic_regex" > /dev/null; then
16849 @@ -6102,19 +7074,19 @@ fi
16850  
16851  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16852  if test -n "$MAGIC_CMD"; then
16853 -  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16854 -echo "${ECHO_T}$MAGIC_CMD" >&6
16855 +  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16856 +$as_echo "$MAGIC_CMD" >&6; }
16857  else
16858 -  echo "$as_me:$LINENO: result: no" >&5
16859 -echo "${ECHO_T}no" >&6
16860 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16861 +$as_echo "no" >&6; }
16862  fi
16863  
16864  if test -z "$lt_cv_path_MAGIC_CMD"; then
16865    if test -n "$ac_tool_prefix"; then
16866 -    echo "$as_me:$LINENO: checking for file" >&5
16867 -echo $ECHO_N "checking for file... $ECHO_C" >&6
16868 +    { $as_echo "$as_me:$LINENO: checking for file" >&5
16869 +$as_echo_n "checking for file... " >&6; }
16870  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16871 -  echo $ECHO_N "(cached) $ECHO_C" >&6
16872 +  $as_echo_n "(cached) " >&6
16873  else
16874    case $MAGIC_CMD in
16875  [\\/*] |  ?:[\\/]*)
16876 @@ -6132,7 +7104,7 @@ else
16877        if test -n "$file_magic_test_file"; then
16878         case $deplibs_check_method in
16879         "file_magic "*)
16880 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
16881 +         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16882           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16883           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16884             $EGREP "$file_magic_regex" > /dev/null; then
16885 @@ -6164,11 +7136,11 @@ fi
16886  
16887  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16888  if test -n "$MAGIC_CMD"; then
16889 -  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16890 -echo "${ECHO_T}$MAGIC_CMD" >&6
16891 +  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16892 +$as_echo "$MAGIC_CMD" >&6; }
16893  else
16894 -  echo "$as_me:$LINENO: result: no" >&5
16895 -echo "${ECHO_T}no" >&6
16896 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16897 +$as_echo "no" >&6; }
16898  fi
16899  
16900    else
16901 @@ -6180,24 +7152,332 @@ fi
16902    ;;
16903  esac
16904  
16905 +
16906 +  case $host_os in
16907 +    rhapsody* | darwin*)
16908 +    if test -n "$ac_tool_prefix"; then
16909 +  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
16910 +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
16911 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16912 +$as_echo_n "checking for $ac_word... " >&6; }
16913 +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
16914 +  $as_echo_n "(cached) " >&6
16915 +else
16916 +  if test -n "$DSYMUTIL"; then
16917 +  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
16918 +else
16919 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16920 +for as_dir in $PATH
16921 +do
16922 +  IFS=$as_save_IFS
16923 +  test -z "$as_dir" && as_dir=.
16924 +  for ac_exec_ext in '' $ac_executable_extensions; do
16925 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16926 +    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
16927 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16928 +    break 2
16929 +  fi
16930 +done
16931 +done
16932 +IFS=$as_save_IFS
16933 +
16934 +fi
16935 +fi
16936 +DSYMUTIL=$ac_cv_prog_DSYMUTIL
16937 +if test -n "$DSYMUTIL"; then
16938 +  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
16939 +$as_echo "$DSYMUTIL" >&6; }
16940 +else
16941 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16942 +$as_echo "no" >&6; }
16943 +fi
16944 +
16945 +
16946 +fi
16947 +if test -z "$ac_cv_prog_DSYMUTIL"; then
16948 +  ac_ct_DSYMUTIL=$DSYMUTIL
16949 +  # Extract the first word of "dsymutil", so it can be a program name with args.
16950 +set dummy dsymutil; ac_word=$2
16951 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16952 +$as_echo_n "checking for $ac_word... " >&6; }
16953 +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
16954 +  $as_echo_n "(cached) " >&6
16955 +else
16956 +  if test -n "$ac_ct_DSYMUTIL"; then
16957 +  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
16958 +else
16959 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16960 +for as_dir in $PATH
16961 +do
16962 +  IFS=$as_save_IFS
16963 +  test -z "$as_dir" && as_dir=.
16964 +  for ac_exec_ext in '' $ac_executable_extensions; do
16965 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16966 +    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
16967 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16968 +    break 2
16969 +  fi
16970 +done
16971 +done
16972 +IFS=$as_save_IFS
16973 +
16974 +fi
16975 +fi
16976 +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
16977 +if test -n "$ac_ct_DSYMUTIL"; then
16978 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
16979 +$as_echo "$ac_ct_DSYMUTIL" >&6; }
16980 +else
16981 +  { $as_echo "$as_me:$LINENO: result: no" >&5
16982 +$as_echo "no" >&6; }
16983 +fi
16984 +
16985 +  if test "x$ac_ct_DSYMUTIL" = x; then
16986 +    DSYMUTIL=":"
16987 +  else
16988 +    case $cross_compiling:$ac_tool_warned in
16989 +yes:)
16990 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16991 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16992 +ac_tool_warned=yes ;;
16993 +esac
16994 +    DSYMUTIL=$ac_ct_DSYMUTIL
16995 +  fi
16996 +else
16997 +  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
16998 +fi
16999 +
17000 +    if test -n "$ac_tool_prefix"; then
17001 +  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17002 +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17003 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17004 +$as_echo_n "checking for $ac_word... " >&6; }
17005 +if test "${ac_cv_prog_NMEDIT+set}" = set; then
17006 +  $as_echo_n "(cached) " >&6
17007 +else
17008 +  if test -n "$NMEDIT"; then
17009 +  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17010 +else
17011 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17012 +for as_dir in $PATH
17013 +do
17014 +  IFS=$as_save_IFS
17015 +  test -z "$as_dir" && as_dir=.
17016 +  for ac_exec_ext in '' $ac_executable_extensions; do
17017 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17018 +    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17019 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17020 +    break 2
17021 +  fi
17022 +done
17023 +done
17024 +IFS=$as_save_IFS
17025 +
17026 +fi
17027 +fi
17028 +NMEDIT=$ac_cv_prog_NMEDIT
17029 +if test -n "$NMEDIT"; then
17030 +  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
17031 +$as_echo "$NMEDIT" >&6; }
17032 +else
17033 +  { $as_echo "$as_me:$LINENO: result: no" >&5
17034 +$as_echo "no" >&6; }
17035 +fi
17036 +
17037 +
17038 +fi
17039 +if test -z "$ac_cv_prog_NMEDIT"; then
17040 +  ac_ct_NMEDIT=$NMEDIT
17041 +  # Extract the first word of "nmedit", so it can be a program name with args.
17042 +set dummy nmedit; ac_word=$2
17043 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17044 +$as_echo_n "checking for $ac_word... " >&6; }
17045 +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
17046 +  $as_echo_n "(cached) " >&6
17047 +else
17048 +  if test -n "$ac_ct_NMEDIT"; then
17049 +  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17050 +else
17051 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17052 +for as_dir in $PATH
17053 +do
17054 +  IFS=$as_save_IFS
17055 +  test -z "$as_dir" && as_dir=.
17056 +  for ac_exec_ext in '' $ac_executable_extensions; do
17057 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17058 +    ac_cv_prog_ac_ct_NMEDIT="nmedit"
17059 +    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17060 +    break 2
17061 +  fi
17062 +done
17063 +done
17064 +IFS=$as_save_IFS
17065 +
17066 +fi
17067 +fi
17068 +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17069 +if test -n "$ac_ct_NMEDIT"; then
17070 +  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
17071 +$as_echo "$ac_ct_NMEDIT" >&6; }
17072 +else
17073 +  { $as_echo "$as_me:$LINENO: result: no" >&5
17074 +$as_echo "no" >&6; }
17075 +fi
17076 +
17077 +  if test "x$ac_ct_NMEDIT" = x; then
17078 +    NMEDIT=":"
17079 +  else
17080 +    case $cross_compiling:$ac_tool_warned in
17081 +yes:)
17082 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17083 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17084 +ac_tool_warned=yes ;;
17085 +esac
17086 +    NMEDIT=$ac_ct_NMEDIT
17087 +  fi
17088 +else
17089 +  NMEDIT="$ac_cv_prog_NMEDIT"
17090 +fi
17091 +
17092 +
17093 +    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
17094 +$as_echo_n "checking for -single_module linker flag... " >&6; }
17095 +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17096 +  $as_echo_n "(cached) " >&6
17097 +else
17098 +  lt_cv_apple_cc_single_mod=no
17099 +      if test -z "${LT_MULTI_MODULE}"; then
17100 +   # By default we will add the -single_module flag. You can override
17101 +   # by either setting the environment variable LT_MULTI_MODULE
17102 +   # non-empty at configure time, or by adding -multi_module to the
17103 +   # link flags.
17104 +   echo "int foo(void){return 1;}" > conftest.c
17105 +   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17106 +     -dynamiclib ${wl}-single_module conftest.c
17107 +   if test -f libconftest.dylib; then
17108 +     lt_cv_apple_cc_single_mod=yes
17109 +     rm -rf libconftest.dylib*
17110 +   fi
17111 +   rm conftest.c
17112 +      fi
17113 +fi
17114 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
17115 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17116 +    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
17117 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17118 +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
17119 +  $as_echo_n "(cached) " >&6
17120 +else
17121 +  lt_cv_ld_exported_symbols_list=no
17122 +      save_LDFLAGS=$LDFLAGS
17123 +      echo "_main" > conftest.sym
17124 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17125 +      cat >conftest.$ac_ext <<_ACEOF
17126 +/* confdefs.h.  */
17127 +_ACEOF
17128 +cat confdefs.h >>conftest.$ac_ext
17129 +cat >>conftest.$ac_ext <<_ACEOF
17130 +/* end confdefs.h.  */
17131 +
17132 +int
17133 +main ()
17134 +{
17135 +
17136 +  ;
17137 +  return 0;
17138 +}
17139 +_ACEOF
17140 +rm -f conftest.$ac_objext conftest$ac_exeext
17141 +if { (ac_try="$ac_link"
17142 +case "(($ac_try" in
17143 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 +  *) ac_try_echo=$ac_try;;
17145 +esac
17146 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17147 +$as_echo "$ac_try_echo") >&5
17148 +  (eval "$ac_link") 2>conftest.er1
17149 +  ac_status=$?
17150 +  grep -v '^ *+' conftest.er1 >conftest.err
17151 +  rm -f conftest.er1
17152 +  cat conftest.err >&5
17153 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 +  (exit $ac_status); } && {
17155 +        test -z "$ac_c_werror_flag" ||
17156 +        test ! -s conftest.err
17157 +       } && test -s conftest$ac_exeext && {
17158 +        test "$cross_compiling" = yes ||
17159 +        $as_test_x conftest$ac_exeext
17160 +       }; then
17161 +  lt_cv_ld_exported_symbols_list=yes
17162 +else
17163 +  $as_echo "$as_me: failed program was:" >&5
17164 +sed 's/^/| /' conftest.$ac_ext >&5
17165 +
17166 +       lt_cv_ld_exported_symbols_list=no
17167 +fi
17168 +
17169 +rm -rf conftest.dSYM
17170 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17171 +      conftest$ac_exeext conftest.$ac_ext
17172 +   LDFLAGS="$save_LDFLAGS"
17173 +
17174 +fi
17175 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
17176 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17177 +    case $host_os in
17178 +    rhapsody* | darwin1.[0123])
17179 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17180 +    darwin1.*)
17181 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17182 +    darwin*)
17183 +      # if running on 10.5 or later, the deployment target defaults
17184 +      # to the OS version, if on x86, and 10.4, the deployment
17185 +      # target defaults to 10.4. Don't you love it?
17186 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
17187 +   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
17188 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17189 +   10.[012]*)
17190 +     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17191 +   10.*)
17192 +     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17193 +      esac
17194 +    ;;
17195 +  esac
17196 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17197 +      _lt_dar_single_mod='$single_module'
17198 +    fi
17199 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17200 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17201 +    else
17202 +      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
17203 +    fi
17204 +    if test "$DSYMUTIL" != ":"; then
17205 +      _lt_dsymutil="~$DSYMUTIL \$lib || :"
17206 +    else
17207 +      _lt_dsymutil=
17208 +    fi
17209 +    ;;
17210 +  esac
17211 +
17212 +
17213  enable_dlopen=no
17214  enable_win32_dll=no
17215  
17216 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
17217 +# Check whether --enable-libtool-lock was given.
17218  if test "${enable_libtool_lock+set}" = set; then
17219 -  enableval="$enable_libtool_lock"
17220 +  enableval=$enable_libtool_lock;
17221 +fi
17222  
17223 -fi;
17224  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17225  
17226  
17227 -# Check whether --with-pic or --without-pic was given.
17228 +# Check whether --with-pic was given.
17229  if test "${with_pic+set}" = set; then
17230 -  withval="$with_pic"
17231 -  pic_mode="$withval"
17232 +  withval=$with_pic; pic_mode="$withval"
17233  else
17234    pic_mode=default
17235 -fi;
17236 +fi
17237 +
17238  test -z "$pic_mode" && pic_mode=default
17239  
17240  # Use C for the default configuration in the libtool script
17241 @@ -6218,77 +7498,34 @@ objext=o
17242  objext=$objext
17243  
17244  # Code to be used in simple compile tests
17245 -lt_simple_compile_test_code="int some_variable = 0;\n"
17246 +lt_simple_compile_test_code="int some_variable = 0;"
17247  
17248  # Code to be used in simple link tests
17249 -lt_simple_link_test_code='int main(){return(0);}\n'
17250 +lt_simple_link_test_code='int main(){return(0);}'
17251  
17252  
17253  # If no C compiler was specified, use CC.
17254  LTCC=${LTCC-"$CC"}
17255  
17256 +# If no C compiler flags were specified, use CFLAGS.
17257 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17258 +
17259  # Allow CC to be a program name with arguments.
17260  compiler=$CC
17261  
17262  
17263 -#
17264 -# Check for any special shared library compilation flags.
17265 -#
17266 -lt_prog_cc_shlib=
17267 -if test "$GCC" = no; then
17268 -  case $host_os in
17269 -  sco3.2v5*)
17270 -    lt_prog_cc_shlib='-belf'
17271 -    ;;
17272 -  esac
17273 -fi
17274 -if test -n "$lt_prog_cc_shlib"; then
17275 -  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
17276 -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
17277 -  if echo "$old_CC $old_CFLAGS " | grep "[     ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
17278 -  else
17279 -    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
17280 -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
17281 -    lt_cv_prog_cc_can_build_shared=no
17282 -  fi
17283 -fi
17284 -
17285 -
17286 -#
17287 -# Check to make sure the static flag actually works.
17288 -#
17289 -echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
17290 -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
17291 -if test "${lt_prog_compiler_static_works+set}" = set; then
17292 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17293 -else
17294 -  lt_prog_compiler_static_works=no
17295 -   save_LDFLAGS="$LDFLAGS"
17296 -   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
17297 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17298 -   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17299 -     # The compiler can only warn and ignore the option if not recognized
17300 -     # So say no if there are warnings
17301 -     if test -s conftest.err; then
17302 -       # Append any errors to the config.log.
17303 -       cat conftest.err 1>&5
17304 -     else
17305 -       lt_prog_compiler_static_works=yes
17306 -     fi
17307 -   fi
17308 -   $rm conftest*
17309 -   LDFLAGS="$save_LDFLAGS"
17310 -
17311 -fi
17312 -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
17313 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
17314 -
17315 -if test x"$lt_prog_compiler_static_works" = xyes; then
17316 -    :
17317 -else
17318 -    lt_prog_compiler_static=
17319 -fi
17320 +# save warnings/boilerplate of simple test code
17321 +ac_outfile=conftest.$ac_objext
17322 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17323 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17324 +_lt_compiler_boilerplate=`cat conftest.err`
17325 +$rm conftest*
17326  
17327 +ac_outfile=conftest.$ac_objext
17328 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
17329 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17330 +_lt_linker_boilerplate=`cat conftest.err`
17331 +$rm -r conftest*
17332  
17333  
17334  
17335 @@ -6298,14 +7535,14 @@ if test "$GCC" = yes; then
17336    lt_prog_compiler_no_builtin_flag=' -fno-builtin'
17337  
17338  
17339 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17340 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17341 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17342 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17343  if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17344 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17345 +  $as_echo_n "(cached) " >&6
17346  else
17347    lt_cv_prog_compiler_rtti_exceptions=no
17348    ac_outfile=conftest.$ac_objext
17349 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17350 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17351     lt_compiler_flag="-fno-rtti -fno-exceptions"
17352     # Insert the option either (1) after the last *FLAGS variable, or
17353     # (2) before a word containing "conftest.", or (3) at the end.
17354 @@ -6313,26 +7550,28 @@ else
17355     # with a dollar sign (not a hyphen), so the echo should work correctly.
17356     # The option is referenced via a variable to avoid confusing sed.
17357     lt_compile=`echo "$ac_compile" | $SED \
17358 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17359 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17360     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17361     -e 's:$: $lt_compiler_flag:'`
17362 -   (eval echo "\"\$as_me:6319: $lt_compile\"" >&5)
17363 +   (eval echo "\"\$as_me:7556: $lt_compile\"" >&5)
17364     (eval "$lt_compile" 2>conftest.err)
17365     ac_status=$?
17366     cat conftest.err >&5
17367 -   echo "$as_me:6323: \$? = $ac_status" >&5
17368 +   echo "$as_me:7560: \$? = $ac_status" >&5
17369     if (exit $ac_status) && test -s "$ac_outfile"; then
17370       # The compiler can only warn and ignore the option if not recognized
17371 -     # So say no if there are warnings
17372 -     if test ! -s conftest.err; then
17373 +     # So say no if there are warnings other than the usual output.
17374 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17375 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17376 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17377         lt_cv_prog_compiler_rtti_exceptions=yes
17378       fi
17379     fi
17380     $rm conftest*
17381  
17382  fi
17383 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17384 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17385 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17386 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17387  
17388  if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17389      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17390 @@ -6346,8 +7585,8 @@ lt_prog_compiler_wl=
17391  lt_prog_compiler_pic=
17392  lt_prog_compiler_static=
17393  
17394 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17395 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17396 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17397 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17398  
17399    if test "$GCC" = yes; then
17400      lt_prog_compiler_wl='-Wl,'
17401 @@ -6369,13 +7608,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17402        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17403        ;;
17404  
17405 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17406 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17407        # PIC is the default for these OSes.
17408        ;;
17409  
17410 -    mingw* | pw32* | os2*)
17411 +    mingw* | cygwin* | pw32* | os2*)
17412        # This hack is so that the source file can tell whether it is being
17413        # built for inclusion in a dll (and should export symbols for example).
17414 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17415 +      # (--disable-auto-import) libraries
17416        lt_prog_compiler_pic='-DDLL_EXPORT'
17417        ;;
17418  
17419 @@ -6385,6 +7626,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17420        lt_prog_compiler_pic='-fno-common'
17421        ;;
17422  
17423 +    interix[3-9]*)
17424 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17425 +      # Instead, we relocate shared libraries at runtime.
17426 +      ;;
17427 +
17428      msdosdjgpp*)
17429        # Just because we use GCC doesn't mean we suddenly get shared libraries
17430        # on systems that don't support them.
17431 @@ -6401,7 +7647,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17432      hpux*)
17433        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17434        # not for PA HP-UX.
17435 -      case "$host_cpu" in
17436 +      case $host_cpu in
17437        hppa*64*|ia64*)
17438         # +Z the default
17439         ;;
17440 @@ -6427,8 +7673,18 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17441         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17442        fi
17443        ;;
17444 +      darwin*)
17445 +        # PIC is the default on this platform
17446 +        # Common symbols not allowed in MH_DYLIB files
17447 +       case $cc_basename in
17448 +         xlc*)
17449 +         lt_prog_compiler_pic='-qnocommon'
17450 +         lt_prog_compiler_wl='-Wl,'
17451 +         ;;
17452 +       esac
17453 +       ;;
17454  
17455 -    mingw* | pw32* | os2*)
17456 +    mingw* | cygwin* | pw32* | os2*)
17457        # This hack is so that the source file can tell whether it is being
17458        # built for inclusion in a dll (and should export symbols for example).
17459        lt_prog_compiler_pic='-DDLL_EXPORT'
17460 @@ -6438,7 +7694,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17461        lt_prog_compiler_wl='-Wl,'
17462        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17463        # not for PA HP-UX.
17464 -      case "$host_cpu" in
17465 +      case $host_cpu in
17466        hppa*64*|ia64*)
17467         # +Z the default
17468         ;;
17469 @@ -6461,18 +7717,41 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17470        lt_prog_compiler_static='-Bstatic'
17471        ;;
17472  
17473 -    linux*)
17474 -      case $CC in
17475 +    linux* | k*bsd*-gnu)
17476 +      case $cc_basename in
17477        icc* | ecc*)
17478         lt_prog_compiler_wl='-Wl,'
17479         lt_prog_compiler_pic='-KPIC'
17480         lt_prog_compiler_static='-static'
17481          ;;
17482 +      pgcc* | pgf77* | pgf90* | pgf95*)
17483 +        # Portland Group compilers (*not* the Pentium gcc compiler,
17484 +       # which looks to be a dead project)
17485 +       lt_prog_compiler_wl='-Wl,'
17486 +       lt_prog_compiler_pic='-fpic'
17487 +       lt_prog_compiler_static='-Bstatic'
17488 +        ;;
17489        ccc*)
17490          lt_prog_compiler_wl='-Wl,'
17491          # All Alpha code is PIC.
17492          lt_prog_compiler_static='-non_shared'
17493          ;;
17494 +      *)
17495 +        case `$CC -V 2>&1 | sed 5q` in
17496 +       *Sun\ C*)
17497 +         # Sun C 5.9
17498 +         lt_prog_compiler_pic='-KPIC'
17499 +         lt_prog_compiler_static='-Bstatic'
17500 +         lt_prog_compiler_wl='-Wl,'
17501 +         ;;
17502 +       *Sun\ F*)
17503 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
17504 +         lt_prog_compiler_pic='-KPIC'
17505 +         lt_prog_compiler_static='-Bstatic'
17506 +         lt_prog_compiler_wl=''
17507 +         ;;
17508 +       esac
17509 +       ;;
17510        esac
17511        ;;
17512  
17513 @@ -6482,15 +7761,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17514        lt_prog_compiler_static='-non_shared'
17515        ;;
17516  
17517 -    sco3.2v5*)
17518 -      lt_prog_compiler_pic='-Kpic'
17519 -      lt_prog_compiler_static='-dn'
17520 +    rdos*)
17521 +      lt_prog_compiler_static='-non_shared'
17522        ;;
17523  
17524      solaris*)
17525 -      lt_prog_compiler_wl='-Wl,'
17526        lt_prog_compiler_pic='-KPIC'
17527        lt_prog_compiler_static='-Bstatic'
17528 +      case $cc_basename in
17529 +      f77* | f90* | f95*)
17530 +       lt_prog_compiler_wl='-Qoption ld ';;
17531 +      *)
17532 +       lt_prog_compiler_wl='-Wl,';;
17533 +      esac
17534        ;;
17535  
17536      sunos4*)
17537 @@ -6499,7 +7782,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17538        lt_prog_compiler_static='-Bstatic'
17539        ;;
17540  
17541 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17542 +    sysv4 | sysv4.2uw2* | sysv4.3*)
17543        lt_prog_compiler_wl='-Wl,'
17544        lt_prog_compiler_pic='-KPIC'
17545        lt_prog_compiler_static='-Bstatic'
17546 @@ -6512,6 +7795,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17547        fi
17548        ;;
17549  
17550 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17551 +      lt_prog_compiler_wl='-Wl,'
17552 +      lt_prog_compiler_pic='-KPIC'
17553 +      lt_prog_compiler_static='-Bstatic'
17554 +      ;;
17555 +
17556 +    unicos*)
17557 +      lt_prog_compiler_wl='-Wl,'
17558 +      lt_prog_compiler_can_build_shared=no
17559 +      ;;
17560 +
17561      uts4*)
17562        lt_prog_compiler_pic='-pic'
17563        lt_prog_compiler_static='-Bstatic'
17564 @@ -6523,22 +7817,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17565      esac
17566    fi
17567  
17568 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17569 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17570 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17571 +$as_echo "$lt_prog_compiler_pic" >&6; }
17572  
17573  #
17574  # Check to make sure the PIC flag actually works.
17575  #
17576  if test -n "$lt_prog_compiler_pic"; then
17577  
17578 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17579 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17580 -if test "${lt_prog_compiler_pic_works+set}" = set; then
17581 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17582 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17583 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17584 +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17585 +  $as_echo_n "(cached) " >&6
17586  else
17587 -  lt_prog_compiler_pic_works=no
17588 +  lt_cv_prog_compiler_pic_works=no
17589    ac_outfile=conftest.$ac_objext
17590 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17591 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17592     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17593     # Insert the option either (1) after the last *FLAGS variable, or
17594     # (2) before a word containing "conftest.", or (3) at the end.
17595 @@ -6546,28 +7840,30 @@ else
17596     # with a dollar sign (not a hyphen), so the echo should work correctly.
17597     # The option is referenced via a variable to avoid confusing sed.
17598     lt_compile=`echo "$ac_compile" | $SED \
17599 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17600 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17601     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17602     -e 's:$: $lt_compiler_flag:'`
17603 -   (eval echo "\"\$as_me:6552: $lt_compile\"" >&5)
17604 +   (eval echo "\"\$as_me:7846: $lt_compile\"" >&5)
17605     (eval "$lt_compile" 2>conftest.err)
17606     ac_status=$?
17607     cat conftest.err >&5
17608 -   echo "$as_me:6556: \$? = $ac_status" >&5
17609 +   echo "$as_me:7850: \$? = $ac_status" >&5
17610     if (exit $ac_status) && test -s "$ac_outfile"; then
17611       # The compiler can only warn and ignore the option if not recognized
17612 -     # So say no if there are warnings
17613 -     if test ! -s conftest.err; then
17614 -       lt_prog_compiler_pic_works=yes
17615 +     # So say no if there are warnings other than the usual output.
17616 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17617 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17618 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17619 +       lt_cv_prog_compiler_pic_works=yes
17620       fi
17621     fi
17622     $rm conftest*
17623  
17624  fi
17625 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
17626 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
17627 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17628 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17629  
17630 -if test x"$lt_prog_compiler_pic_works" = xyes; then
17631 +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17632      case $lt_prog_compiler_pic in
17633       "" | " "*) ;;
17634       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17635 @@ -6578,7 +7874,7 @@ else
17636  fi
17637  
17638  fi
17639 -case "$host_os" in
17640 +case $host_os in
17641    # For platforms which do not support PIC, -DPIC is meaningless:
17642    *djgpp*)
17643      lt_prog_compiler_pic=
17644 @@ -6588,17 +7884,59 @@ case "$host_os" in
17645      ;;
17646  esac
17647  
17648 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17649 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17650 +#
17651 +# Check to make sure the static flag actually works.
17652 +#
17653 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17654 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17655 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17656 +if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17657 +  $as_echo_n "(cached) " >&6
17658 +else
17659 +  lt_cv_prog_compiler_static_works=no
17660 +   save_LDFLAGS="$LDFLAGS"
17661 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17662 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17663 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17664 +     # The linker can only warn and ignore the option if not recognized
17665 +     # So say no if there are warnings
17666 +     if test -s conftest.err; then
17667 +       # Append any errors to the config.log.
17668 +       cat conftest.err 1>&5
17669 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17670 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17671 +       if diff conftest.exp conftest.er2 >/dev/null; then
17672 +         lt_cv_prog_compiler_static_works=yes
17673 +       fi
17674 +     else
17675 +       lt_cv_prog_compiler_static_works=yes
17676 +     fi
17677 +   fi
17678 +   $rm -r conftest*
17679 +   LDFLAGS="$save_LDFLAGS"
17680 +
17681 +fi
17682 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17683 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17684 +
17685 +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17686 +    :
17687 +else
17688 +    lt_prog_compiler_static=
17689 +fi
17690 +
17691 +
17692 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17693 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17694  if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17695 -  echo $ECHO_N "(cached) $ECHO_C" >&6
17696 +  $as_echo_n "(cached) " >&6
17697  else
17698    lt_cv_prog_compiler_c_o=no
17699     $rm -r conftest 2>/dev/null
17700     mkdir conftest
17701     cd conftest
17702     mkdir out
17703 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17704 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17705  
17706     lt_compiler_flag="-o out/conftest2.$ac_objext"
17707     # Insert the option either (1) after the last *FLAGS variable, or
17708 @@ -6606,23 +7944,25 @@ else
17709     # Note that $ac_compile itself does not contain backslashes and begins
17710     # with a dollar sign (not a hyphen), so the echo should work correctly.
17711     lt_compile=`echo "$ac_compile" | $SED \
17712 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17713 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17714     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17715     -e 's:$: $lt_compiler_flag:'`
17716 -   (eval echo "\"\$as_me:6612: $lt_compile\"" >&5)
17717 +   (eval echo "\"\$as_me:7950: $lt_compile\"" >&5)
17718     (eval "$lt_compile" 2>out/conftest.err)
17719     ac_status=$?
17720     cat out/conftest.err >&5
17721 -   echo "$as_me:6616: \$? = $ac_status" >&5
17722 +   echo "$as_me:7954: \$? = $ac_status" >&5
17723     if (exit $ac_status) && test -s out/conftest2.$ac_objext
17724     then
17725       # The compiler can only warn and ignore the option if not recognized
17726       # So say no if there are warnings
17727 -     if test ! -s out/conftest.err; then
17728 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17729 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17730 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17731         lt_cv_prog_compiler_c_o=yes
17732       fi
17733     fi
17734 -   chmod u+w .
17735 +   chmod u+w . 2>&5
17736     $rm conftest*
17737     # SGI C++ compiler will create directory out/ii_files/ for
17738     # template instantiation
17739 @@ -6633,34 +7973,34 @@ else
17740     $rm conftest*
17741  
17742  fi
17743 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17744 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17745 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17746 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17747  
17748  
17749  hard_links="nottested"
17750  if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17751    # do not overwrite the value of need_locks provided by the user
17752 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17753 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17754 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17755 +$as_echo_n "checking if we can lock with hard links... " >&6; }
17756    hard_links=yes
17757    $rm conftest*
17758    ln conftest.a conftest.b 2>/dev/null && hard_links=no
17759    touch conftest.a
17760    ln conftest.a conftest.b 2>&5 || hard_links=no
17761    ln conftest.a conftest.b 2>/dev/null && hard_links=no
17762 -  echo "$as_me:$LINENO: result: $hard_links" >&5
17763 -echo "${ECHO_T}$hard_links" >&6
17764 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17765 +$as_echo "$hard_links" >&6; }
17766    if test "$hard_links" = no; then
17767 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17768 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17769 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17770 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17771      need_locks=warn
17772    fi
17773  else
17774    need_locks=no
17775  fi
17776  
17777 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17778 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17779 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17780 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17781  
17782    runpath_var=
17783    allow_undefined_flag=
17784 @@ -6691,13 +8031,24 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
17785    # it will be wrapped by ` (' and `)$', so one must not match beginning or
17786    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17787    # as well as any symbol that contains `d'.
17788 -  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17789 +  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17790    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17791    # platforms (ab)use it in PIC code, but their linkers get confused if
17792    # the symbol is explicitly referenced.  Since portable code cannot
17793    # rely on this symbol name, it's probably fine to never include it in
17794    # preloaded symbol tables.
17795 +  # Exclude shared library initialization/finalization symbols.
17796    extract_expsyms_cmds=
17797 +  # Just being paranoid about ensuring that cc_basename is set.
17798 +  for cc_temp in $compiler""; do
17799 +  case $cc_temp in
17800 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17801 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17802 +    \-*) ;;
17803 +    *) break;;
17804 +  esac
17805 +done
17806 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17807  
17808    case $host_os in
17809    cygwin* | mingw* | pw32*)
17810 @@ -6708,6 +8059,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
17811        with_gnu_ld=no
17812      fi
17813      ;;
17814 +  interix*)
17815 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
17816 +    with_gnu_ld=yes
17817 +    ;;
17818    openbsd*)
17819      with_gnu_ld=no
17820      ;;
17821 @@ -6718,9 +8073,30 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
17822      # If archive_cmds runs LD, not CC, wlarc should be empty
17823      wlarc='${wl}'
17824  
17825 +    # Set some defaults for GNU ld with shared library support. These
17826 +    # are reset later if shared libraries are not supported. Putting them
17827 +    # here allows them to be overridden if necessary.
17828 +    runpath_var=LD_RUN_PATH
17829 +    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17830 +    export_dynamic_flag_spec='${wl}--export-dynamic'
17831 +    # ancient GNU ld didn't support --whole-archive et. al.
17832 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17833 +       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17834 +      else
17835 +       whole_archive_flag_spec=
17836 +    fi
17837 +    supports_anon_versioning=no
17838 +    case `$LD -v 2>/dev/null` in
17839 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17840 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17841 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17842 +      *\ 2.11.*) ;; # other 2.11 versions
17843 +      *) supports_anon_versioning=yes ;;
17844 +    esac
17845 +
17846      # See if GNU ld supports shared libraries.
17847      case $host_os in
17848 -    aix3* | aix4* | aix5*)
17849 +    aix[3-9]*)
17850        # On AIX/PPC, the GNU linker is very broken
17851        if test "$host_cpu" != ia64; then
17852         ld_shlibs=no
17853 @@ -6768,10 +8144,10 @@ EOF
17854        allow_undefined_flag=unsupported
17855        always_export_symbols=no
17856        enable_shared_with_static_runtimes=yes
17857 -      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17858 +      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17859  
17860        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17861 -        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17862 +        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17863         # If the export-symbols file already is a .def file (1st line
17864         # is EXPORTS), use it as is; otherwise, prepend...
17865         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17866 @@ -6780,13 +8156,69 @@ EOF
17867           echo EXPORTS > $output_objdir/$soname.def;
17868           cat $export_symbols >> $output_objdir/$soname.def;
17869         fi~
17870 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17871 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17872 +      else
17873 +       ld_shlibs=no
17874 +      fi
17875 +      ;;
17876 +
17877 +    interix[3-9]*)
17878 +      hardcode_direct=no
17879 +      hardcode_shlibpath_var=no
17880 +      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17881 +      export_dynamic_flag_spec='${wl}-E'
17882 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17883 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
17884 +      # default) and relocated if they conflict, which is a slow very memory
17885 +      # consuming and fragmenting process.  To avoid this, we pick a random,
17886 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17887 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17888 +      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17889 +      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17890 +      ;;
17891 +
17892 +    gnu* | linux* | k*bsd*-gnu)
17893 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17894 +       tmp_addflag=
17895 +       case $cc_basename,$host_cpu in
17896 +       pgcc*)                          # Portland Group C compiler
17897 +         whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17898 +         tmp_addflag=' $pic_flag'
17899 +         ;;
17900 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17901 +         whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17902 +         tmp_addflag=' $pic_flag -Mnomain' ;;
17903 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17904 +         tmp_addflag=' -i_dynamic' ;;
17905 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17906 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
17907 +       ifc* | ifort*)                  # Intel Fortran compiler
17908 +         tmp_addflag=' -nofor_main' ;;
17909 +       esac
17910 +       case `$CC -V 2>&1 | sed 5q` in
17911 +       *Sun\ C*)                       # Sun C 5.9
17912 +         whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17913 +         tmp_sharedflag='-G' ;;
17914 +       *Sun\ F*)                       # Sun Fortran 8.3
17915 +         tmp_sharedflag='-G' ;;
17916 +       *)
17917 +         tmp_sharedflag='-shared' ;;
17918 +       esac
17919 +       archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17920 +
17921 +       if test $supports_anon_versioning = yes; then
17922 +         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17923 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17924 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
17925 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17926 +       fi
17927 +       link_all_deplibs=no
17928        else
17929         ld_shlibs=no
17930        fi
17931        ;;
17932  
17933 -    netbsd*)
17934 +    netbsd* | netbsdelf*-gnu)
17935        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17936         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17937         wlarc=
17938 @@ -6796,7 +8228,7 @@ EOF
17939        fi
17940        ;;
17941  
17942 -    solaris* | sysv5*)
17943 +    solaris*)
17944        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17945         ld_shlibs=no
17946         cat <<EOF 1>&2
17947 @@ -6817,6 +8249,33 @@ EOF
17948        fi
17949        ;;
17950  
17951 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17952 +      case `$LD -v 2>&1` in
17953 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17954 +       ld_shlibs=no
17955 +       cat <<_LT_EOF 1>&2
17956 +
17957 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17958 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
17959 +*** is disabling shared libraries support.  We urge you to upgrade GNU
17960 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17961 +*** your PATH or compiler configuration so that the native linker is
17962 +*** used, and then restart.
17963 +
17964 +_LT_EOF
17965 +       ;;
17966 +       *)
17967 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17968 +           hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17969 +           archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17970 +           archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17971 +         else
17972 +           ld_shlibs=no
17973 +         fi
17974 +       ;;
17975 +      esac
17976 +      ;;
17977 +
17978      sunos4*)
17979        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17980        wlarc=
17981 @@ -6824,31 +8283,6 @@ EOF
17982        hardcode_shlibpath_var=no
17983        ;;
17984  
17985 -  linux*)
17986 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17987 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17988 -       archive_cmds="$tmp_archive_cmds"
17989 -      supports_anon_versioning=no
17990 -      case `$LD -v 2>/dev/null` in
17991 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17992 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17993 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17994 -        *\ 2.11.*) ;; # other 2.11 versions
17995 -        *) supports_anon_versioning=yes ;;
17996 -      esac
17997 -      if test $supports_anon_versioning = yes; then
17998 -        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17999 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18000 -$echo "local: *; };" >> $output_objdir/$libname.ver~
18001 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18002 -      else
18003 -        archive_expsym_cmds="$tmp_archive_cmds"
18004 -      fi
18005 -    else
18006 -      ld_shlibs=no
18007 -    fi
18008 -    ;;
18009 -
18010      *)
18011        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18012         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18013 @@ -6859,16 +8293,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
18014        ;;
18015      esac
18016  
18017 -    if test "$ld_shlibs" = yes; then
18018 -      runpath_var=LD_RUN_PATH
18019 -      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
18020 -      export_dynamic_flag_spec='${wl}--export-dynamic'
18021 -      # ancient GNU ld didn't support --whole-archive et. al.
18022 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18023 -       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18024 -      else
18025 -       whole_archive_flag_spec=
18026 -      fi
18027 +    if test "$ld_shlibs" = no; then
18028 +      runpath_var=
18029 +      hardcode_libdir_flag_spec=
18030 +      export_dynamic_flag_spec=
18031 +      whole_archive_flag_spec=
18032      fi
18033    else
18034      # PORTME fill in a description of your system's linker (not GNU ld)
18035 @@ -6880,14 +8309,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
18036        # Note: this linker hardcodes the directories in LIBPATH if there
18037        # are no directories specified by -L.
18038        hardcode_minus_L=yes
18039 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
18040 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18041         # Neither direct hardcoding nor static linking is supported with a
18042         # broken collect2.
18043         hardcode_direct=unsupported
18044        fi
18045        ;;
18046  
18047 -    aix4* | aix5*)
18048 +    aix[4-9]*)
18049        if test "$host_cpu" = ia64; then
18050         # On IA64, the linker does run time linking by default, so we don't
18051         # have to do anything special.
18052 @@ -6907,13 +8336,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
18053         # Test if we are trying to use run time linking or normal
18054         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18055         # need to do runtime linking.
18056 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18057 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18058           for ld_flag in $LDFLAGS; do
18059           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18060             aix_use_runtimelinking=yes
18061             break
18062           fi
18063           done
18064 +         ;;
18065         esac
18066  
18067         exp_sym_flag='-bexport'
18068 @@ -6932,7 +8362,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
18069        link_all_deplibs=yes
18070  
18071        if test "$GCC" = yes; then
18072 -       case $host_os in aix4.012|aix4.012.*)
18073 +       case $host_os in aix4.[012]|aix4.[012].*)
18074         # We only want to do this on AIX 4.2 and lower, the check
18075         # below for broken collect2 doesn't work under 4.3+
18076           collect2name=`${CC} -print-prog-name=collect2`
18077 @@ -6940,7 +8370,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
18078            strings "$collect2name" | grep resolve_lib_name >/dev/null
18079           then
18080           # We have reworked collect2
18081 -         hardcode_direct=yes
18082 +         :
18083           else
18084           # We have old collect2
18085           hardcode_direct=unsupported
18086 @@ -6951,8 +8381,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
18087           hardcode_libdir_flag_spec='-L$libdir'
18088           hardcode_libdir_separator=
18089           fi
18090 +         ;;
18091         esac
18092         shared_flag='-shared'
18093 +       if test "$aix_use_runtimelinking" = yes; then
18094 +         shared_flag="$shared_flag "'${wl}-G'
18095 +       fi
18096        else
18097         # not using gcc
18098         if test "$host_cpu" = ia64; then
18099 @@ -6960,11 +8394,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
18100         # chokes on -Wl,-G. The following line is correct:
18101           shared_flag='-G'
18102         else
18103 -       if test "$aix_use_runtimelinking" = yes; then
18104 +         if test "$aix_use_runtimelinking" = yes; then
18105             shared_flag='${wl}-G'
18106           else
18107             shared_flag='${wl}-bM:SRE'
18108 -       fi
18109 +         fi
18110         fi
18111        fi
18112  
18113 @@ -6992,49 +8426,58 @@ main ()
18114  }
18115  _ACEOF
18116  rm -f conftest.$ac_objext conftest$ac_exeext
18117 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18118 -  (eval $ac_link) 2>conftest.er1
18119 +if { (ac_try="$ac_link"
18120 +case "(($ac_try" in
18121 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 +  *) ac_try_echo=$ac_try;;
18123 +esac
18124 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18125 +$as_echo "$ac_try_echo") >&5
18126 +  (eval "$ac_link") 2>conftest.er1
18127    ac_status=$?
18128    grep -v '^ *+' conftest.er1 >conftest.err
18129    rm -f conftest.er1
18130    cat conftest.err >&5
18131 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 -  (exit $ac_status); } &&
18133 -        { ac_try='test -z "$ac_c_werror_flag"
18134 -                        || test ! -s conftest.err'
18135 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 -  (eval $ac_try) 2>&5
18137 -  ac_status=$?
18138 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 -  (exit $ac_status); }; } &&
18140 -        { ac_try='test -s conftest$ac_exeext'
18141 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 -  (eval $ac_try) 2>&5
18143 -  ac_status=$?
18144 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 -  (exit $ac_status); }; }; then
18146 -
18147 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18148 -}'`
18149 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 +  (exit $ac_status); } && {
18151 +        test -z "$ac_c_werror_flag" ||
18152 +        test ! -s conftest.err
18153 +       } && test -s conftest$ac_exeext && {
18154 +        test "$cross_compiling" = yes ||
18155 +        $as_test_x conftest$ac_exeext
18156 +       }; then
18157 +
18158 +lt_aix_libpath_sed='
18159 +    /Import File Strings/,/^$/ {
18160 +       /^0/ {
18161 +           s/^0  *\(.*\)$/\1/
18162 +           p
18163 +       }
18164 +    }'
18165 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18166  # Check for a 64-bit object if we didn't find anything.
18167 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18168 -}'`; fi
18169 +if test -z "$aix_libpath"; then
18170 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18171 +fi
18172  else
18173 -  echo "$as_me: failed program was:" >&5
18174 +  $as_echo "$as_me: failed program was:" >&5
18175  sed 's/^/| /' conftest.$ac_ext >&5
18176  
18177 +
18178  fi
18179 -rm -f conftest.err conftest.$ac_objext \
18180 +
18181 +rm -rf conftest.dSYM
18182 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18183        conftest$ac_exeext conftest.$ac_ext
18184  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18185  
18186         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18187 -       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"
18188 +       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18189         else
18190         if test "$host_cpu" = ia64; then
18191           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18192           allow_undefined_flag="-z nodefs"
18193 -         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18194 +         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18195         else
18196          # Determine the default libpath from the value encoded in an empty executable.
18197          cat >conftest.$ac_ext <<_ACEOF
18198 @@ -7053,39 +8496,48 @@ main ()
18199  }
18200  _ACEOF
18201  rm -f conftest.$ac_objext conftest$ac_exeext
18202 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 -  (eval $ac_link) 2>conftest.er1
18204 +if { (ac_try="$ac_link"
18205 +case "(($ac_try" in
18206 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 +  *) ac_try_echo=$ac_try;;
18208 +esac
18209 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18210 +$as_echo "$ac_try_echo") >&5
18211 +  (eval "$ac_link") 2>conftest.er1
18212    ac_status=$?
18213    grep -v '^ *+' conftest.er1 >conftest.err
18214    rm -f conftest.er1
18215    cat conftest.err >&5
18216 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 -  (exit $ac_status); } &&
18218 -        { ac_try='test -z "$ac_c_werror_flag"
18219 -                        || test ! -s conftest.err'
18220 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 -  (eval $ac_try) 2>&5
18222 -  ac_status=$?
18223 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 -  (exit $ac_status); }; } &&
18225 -        { ac_try='test -s conftest$ac_exeext'
18226 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 -  (eval $ac_try) 2>&5
18228 -  ac_status=$?
18229 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 -  (exit $ac_status); }; }; then
18231 -
18232 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18233 -}'`
18234 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 +  (exit $ac_status); } && {
18236 +        test -z "$ac_c_werror_flag" ||
18237 +        test ! -s conftest.err
18238 +       } && test -s conftest$ac_exeext && {
18239 +        test "$cross_compiling" = yes ||
18240 +        $as_test_x conftest$ac_exeext
18241 +       }; then
18242 +
18243 +lt_aix_libpath_sed='
18244 +    /Import File Strings/,/^$/ {
18245 +       /^0/ {
18246 +           s/^0  *\(.*\)$/\1/
18247 +           p
18248 +       }
18249 +    }'
18250 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18251  # Check for a 64-bit object if we didn't find anything.
18252 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18253 -}'`; fi
18254 +if test -z "$aix_libpath"; then
18255 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18256 +fi
18257  else
18258 -  echo "$as_me: failed program was:" >&5
18259 +  $as_echo "$as_me: failed program was:" >&5
18260  sed 's/^/| /' conftest.$ac_ext >&5
18261  
18262 +
18263  fi
18264 -rm -f conftest.err conftest.$ac_objext \
18265 +
18266 +rm -rf conftest.dSYM
18267 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18268        conftest$ac_exeext conftest.$ac_ext
18269  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18270  
18271 @@ -7094,13 +8546,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18272           # -berok will link without error, but may produce a broken library.
18273           no_undefined_flag=' ${wl}-bernotok'
18274           allow_undefined_flag=' ${wl}-berok'
18275 -         # -bexpall does not export symbols beginning with underscore (_)
18276 -         always_export_symbols=yes
18277           # Exported symbols can be pulled into shared objects from archives
18278 -         whole_archive_flag_spec=' '
18279 +         whole_archive_flag_spec='$convenience'
18280           archive_cmds_need_lc=yes
18281 -         # This is similar to how AIX traditionally builds it's shared libraries.
18282 -         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18283 +         # This is similar to how AIX traditionally builds its shared libraries.
18284 +         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18285         fi
18286        fi
18287        ;;
18288 @@ -7113,7 +8563,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18289        ld_shlibs=no
18290        ;;
18291  
18292 -    bsdi4*)
18293 +    bsdi[45]*)
18294        export_dynamic_flag_spec=-rdynamic
18295        ;;
18296  
18297 @@ -7133,58 +8583,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18298        # The linker will automatically build a .lib file if we build a DLL.
18299        old_archive_From_new_cmds='true'
18300        # FIXME: Should let the user specify the lib program.
18301 -      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
18302 +      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18303        fix_srcfile_path='`cygpath -w "$srcfile"`'
18304        enable_shared_with_static_runtimes=yes
18305        ;;
18306  
18307      darwin* | rhapsody*)
18308 -    if test "$GXX" = yes ; then
18309 -      archive_cmds_need_lc=no
18310 -      case "$host_os" in
18311 -      rhapsody* | darwin1.[012])
18312 -       allow_undefined_flag='-undefined suppress'
18313 -       ;;
18314 -      *) # Darwin 1.3 on
18315 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18316 -       allow_undefined_flag='-flat_namespace -undefined suppress'
18317 -      else
18318 -        case ${MACOSX_DEPLOYMENT_TARGET} in
18319 -          10.[012])
18320 -            allow_undefined_flag='-flat_namespace -undefined suppress'
18321 -            ;;
18322 -          10.*)
18323 -            allow_undefined_flag='-undefined dynamic_lookup'
18324 -            ;;
18325 -        esac
18326 -      fi
18327 -       ;;
18328 +      case $host_os in
18329 +        rhapsody* | darwin1.[012])
18330 +         allow_undefined_flag='${wl}-undefined ${wl}suppress'
18331 +         ;;
18332 +       *) # Darwin 1.3 on
18333 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18334 +           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18335 +         else
18336 +           case ${MACOSX_DEPLOYMENT_TARGET} in
18337 +             10.[012])
18338 +               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18339 +               ;;
18340 +             10.*)
18341 +               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
18342 +               ;;
18343 +           esac
18344 +         fi
18345 +         ;;
18346        esac
18347 -       lt_int_apple_cc_single_mod=no
18348 -       output_verbose_link_cmd='echo'
18349 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18350 -         lt_int_apple_cc_single_mod=yes
18351 -       fi
18352 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18353 -         archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18354 -       else
18355 -        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18356 -      fi
18357 -      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18358 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18359 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18360 -          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18361 -        else
18362 -          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18363 -        fi
18364 -          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18365 +      archive_cmds_need_lc=no
18366        hardcode_direct=no
18367        hardcode_automatic=yes
18368        hardcode_shlibpath_var=unsupported
18369 -      whole_archive_flag_spec='-all_load $convenience'
18370 +      whole_archive_flag_spec=''
18371        link_all_deplibs=yes
18372 +    if test "$GCC" = yes ; then
18373 +       output_verbose_link_cmd='echo'
18374 +        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18375 +        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18376 +        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18377 +        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18378      else
18379 -      ld_shlibs=no
18380 +      case $cc_basename in
18381 +        xlc*)
18382 +         output_verbose_link_cmd='echo'
18383 +         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18384 +         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18385 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18386 +         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18387 +          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18388 +          ;;
18389 +       *)
18390 +         ld_shlibs=no
18391 +          ;;
18392 +      esac
18393      fi
18394        ;;
18395  
18396 @@ -7218,7 +8667,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18397        ;;
18398  
18399      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18400 -    freebsd* | kfreebsd*-gnu)
18401 +    freebsd* | dragonfly*)
18402        archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18403        hardcode_libdir_flag_spec='-R$libdir'
18404        hardcode_direct=yes
18405 @@ -7241,47 +8690,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18406        export_dynamic_flag_spec='${wl}-E'
18407        ;;
18408  
18409 -    hpux10* | hpux11*)
18410 +    hpux10*)
18411        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18412 -       case "$host_cpu" in
18413 -       hppa*64*|ia64*)
18414 +       archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18415 +      else
18416 +       archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18417 +      fi
18418 +      if test "$with_gnu_ld" = no; then
18419 +       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18420 +       hardcode_libdir_separator=:
18421 +
18422 +       hardcode_direct=yes
18423 +       export_dynamic_flag_spec='${wl}-E'
18424 +
18425 +       # hardcode_minus_L: Not really in the search PATH,
18426 +       # but as the default location of the library.
18427 +       hardcode_minus_L=yes
18428 +      fi
18429 +      ;;
18430 +
18431 +    hpux11*)
18432 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18433 +       case $host_cpu in
18434 +       hppa*64*)
18435           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18436           ;;
18437 +       ia64*)
18438 +         archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18439 +         ;;
18440         *)
18441           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18442           ;;
18443         esac
18444        else
18445 -       case "$host_cpu" in
18446 -       hppa*64*|ia64*)
18447 -         archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18448 +       case $host_cpu in
18449 +       hppa*64*)
18450 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18451 +         ;;
18452 +       ia64*)
18453 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18454           ;;
18455         *)
18456 -         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18457 +         archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18458           ;;
18459         esac
18460        fi
18461        if test "$with_gnu_ld" = no; then
18462 -       case "$host_cpu" in
18463 -       hppa*64*)
18464 -         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18465 +       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18466 +       hardcode_libdir_separator=:
18467 +
18468 +       case $host_cpu in
18469 +       hppa*64*|ia64*)
18470           hardcode_libdir_flag_spec_ld='+b $libdir'
18471 -         hardcode_libdir_separator=:
18472 -         hardcode_direct=no
18473 -         hardcode_shlibpath_var=no
18474 -         ;;
18475 -       ia64*)
18476 -         hardcode_libdir_flag_spec='-L$libdir'
18477           hardcode_direct=no
18478           hardcode_shlibpath_var=no
18479 -
18480 -         # hardcode_minus_L: Not really in the search PATH,
18481 -         # but as the default location of the library.
18482 -         hardcode_minus_L=yes
18483           ;;
18484         *)
18485 -         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18486 -         hardcode_libdir_separator=:
18487           hardcode_direct=yes
18488           export_dynamic_flag_spec='${wl}-E'
18489  
18490 @@ -7305,7 +8769,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18491        link_all_deplibs=yes
18492        ;;
18493  
18494 -    netbsd*)
18495 +    netbsd* | netbsdelf*-gnu)
18496        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18497         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18498        else
18499 @@ -7325,23 +8789,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18500        ;;
18501  
18502      openbsd*)
18503 -      hardcode_direct=yes
18504 -      hardcode_shlibpath_var=no
18505 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18506 -       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18507 -       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18508 -       export_dynamic_flag_spec='${wl}-E'
18509 +      if test -f /usr/libexec/ld.so; then
18510 +       hardcode_direct=yes
18511 +       hardcode_shlibpath_var=no
18512 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18513 +         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18514 +         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18515 +         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18516 +         export_dynamic_flag_spec='${wl}-E'
18517 +       else
18518 +         case $host_os in
18519 +          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18520 +            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18521 +            hardcode_libdir_flag_spec='-R$libdir'
18522 +            ;;
18523 +          *)
18524 +            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18525 +            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18526 +            ;;
18527 +         esac
18528 +        fi
18529        else
18530 -       case $host_os in
18531 -        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18532 -          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18533 -          hardcode_libdir_flag_spec='-R$libdir'
18534 -          ;;
18535 -        *)
18536 -          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18537 -          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18538 -          ;;
18539 -       esac
18540 +       ld_shlibs=no
18541        fi
18542        ;;
18543  
18544 @@ -7374,7 +8843,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18545         allow_undefined_flag=' -expect_unresolved \*'
18546         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'
18547         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18548 -       $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'
18549 +       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18550  
18551         # Both c and cxx compiler support -rpath directly
18552         hardcode_libdir_flag_spec='-rpath $libdir'
18553 @@ -7382,21 +8851,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18554        hardcode_libdir_separator=:
18555        ;;
18556  
18557 -    sco3.2v5*)
18558 -      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18559 -      hardcode_shlibpath_var=no
18560 -      export_dynamic_flag_spec='${wl}-Bexport'
18561 -      runpath_var=LD_RUN_PATH
18562 -      hardcode_runpath_var=yes
18563 -      ;;
18564 -
18565      solaris*)
18566        no_undefined_flag=' -z text'
18567        if test "$GCC" = yes; then
18568 +       wlarc='${wl}'
18569         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18570         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18571           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18572        else
18573 +       wlarc=''
18574         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18575         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18576         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18577 @@ -7405,8 +8868,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18578        hardcode_shlibpath_var=no
18579        case $host_os in
18580        solaris2.[0-5] | solaris2.[0-5].*) ;;
18581 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18582 -       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
18583 +      *)
18584 +       # The compiler driver will combine and reorder linker options,
18585 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
18586 +       # but is careful enough not to reorder.
18587 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
18588 +       if test "$GCC" = yes; then
18589 +         whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18590 +       else
18591 +         whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18592 +       fi
18593 +       ;;
18594        esac
18595        link_all_deplibs=yes
18596        ;;
18597 @@ -7463,36 +8935,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18598        fi
18599        ;;
18600  
18601 -    sysv4.2uw2*)
18602 -      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18603 -      hardcode_direct=yes
18604 -      hardcode_minus_L=no
18605 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18606 +      no_undefined_flag='${wl}-z,text'
18607 +      archive_cmds_need_lc=no
18608        hardcode_shlibpath_var=no
18609 -      hardcode_runpath_var=yes
18610 -      runpath_var=LD_RUN_PATH
18611 -      ;;
18612 +      runpath_var='LD_RUN_PATH'
18613  
18614 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18615 -      no_undefined_flag='${wl}-z ${wl}text'
18616        if test "$GCC" = yes; then
18617 -       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18618 +       archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18619 +       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18620        else
18621 -       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18622 +       archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18623 +       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18624        fi
18625 -      runpath_var='LD_RUN_PATH'
18626 -      hardcode_shlibpath_var=no
18627        ;;
18628  
18629 -    sysv5*)
18630 -      no_undefined_flag=' -z text'
18631 -      # $CC -shared without GNU ld will not create a library from C++
18632 -      # object files and a static libstdc++, better avoid it by now
18633 -      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18634 -      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18635 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18636 -      hardcode_libdir_flag_spec=
18637 +    sysv5* | sco3.2v5* | sco5v6*)
18638 +      # Note: We can NOT use -z defs as we might desire, because we do not
18639 +      # link with -lc, and that would cause any symbols used from libc to
18640 +      # always be unresolved, which means just about no library would
18641 +      # ever link correctly.  If we're not using GNU ld we use -z text
18642 +      # though, which does catch some bad symbols but isn't as heavy-handed
18643 +      # as -z defs.
18644 +      no_undefined_flag='${wl}-z,text'
18645 +      allow_undefined_flag='${wl}-z,nodefs'
18646 +      archive_cmds_need_lc=no
18647        hardcode_shlibpath_var=no
18648 +      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18649 +      hardcode_libdir_separator=':'
18650 +      link_all_deplibs=yes
18651 +      export_dynamic_flag_spec='${wl}-Bexport'
18652        runpath_var='LD_RUN_PATH'
18653 +
18654 +      if test "$GCC" = yes; then
18655 +       archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18656 +       archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18657 +      else
18658 +       archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18659 +       archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18660 +      fi
18661        ;;
18662  
18663      uts4*)
18664 @@ -7507,15 +8988,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18665      esac
18666    fi
18667  
18668 -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18669 -echo "${ECHO_T}$ld_shlibs" >&6
18670 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18671 +$as_echo "$ld_shlibs" >&6; }
18672  test "$ld_shlibs" = no && can_build_shared=no
18673  
18674 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18675 -if test "$GCC" = yes; then
18676 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18677 -fi
18678 -
18679  #
18680  # Do we need to explicitly link libc?
18681  #
18682 @@ -7533,21 +9009,22 @@ x|xyes)
18683        # Test whether the compiler implicitly links with -lc since on some
18684        # systems, -lgcc has to come before -lc. If gcc already passes -lc
18685        # to ld, don't add -lc before -lgcc.
18686 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18687 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18688 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18689 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18690        $rm conftest*
18691 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18692 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18693  
18694        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18695    (eval $ac_compile) 2>&5
18696    ac_status=$?
18697 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699    (exit $ac_status); } 2>conftest.err; then
18700          soname=conftest
18701          lib=conftest
18702          libobjs=conftest.$ac_objext
18703          deplibs=
18704          wl=$lt_prog_compiler_wl
18705 +       pic_flag=$lt_prog_compiler_pic
18706          compiler_flags=-v
18707          linker_flags=-v
18708          verstring=
18709 @@ -7558,7 +9035,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
18710          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18711    (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18712    ac_status=$?
18713 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715    (exit $ac_status); }
18716          then
18717           archive_cmds_need_lc=no
18718 @@ -7570,16 +9047,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
18719          cat conftest.err 1>&5
18720        fi
18721        $rm conftest*
18722 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18723 -echo "${ECHO_T}$archive_cmds_need_lc" >&6
18724 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18725 +$as_echo "$archive_cmds_need_lc" >&6; }
18726        ;;
18727      esac
18728    fi
18729    ;;
18730  esac
18731  
18732 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18733 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18734 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18735 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
18736  library_names_spec=
18737  libname_spec='lib$name'
18738  soname_spec=
18739 @@ -7593,17 +9070,55 @@ shlibpath_overrides_runpath=unknown
18740  version_type=none
18741  dynamic_linker="$host_os ld.so"
18742  sys_lib_dlsearch_path_spec="/lib /usr/lib"
18743 +
18744  if test "$GCC" = yes; then
18745 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18746 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18747 +  case $host_os in
18748 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18749 +    *) lt_awk_arg="/^libraries:/" ;;
18750 +  esac
18751 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18752 +  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
18753      # if the path contains ";" then we assume it to be the separator
18754      # otherwise default to the standard path separator (i.e. ":") - it is
18755      # assumed that no part of a normal pathname contains ";" but that should
18756      # okay in the real world where ";" in dirpaths is itself problematic.
18757 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18758 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18759    else
18760 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18761 +    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18762    fi
18763 +  # Ok, now we have the path, separated by spaces, we can step through it
18764 +  # and add multilib dir if necessary.
18765 +  lt_tmp_lt_search_path_spec=
18766 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18767 +  for lt_sys_path in $lt_search_path_spec; do
18768 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18769 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18770 +    else
18771 +      test -d "$lt_sys_path" && \
18772 +       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18773 +    fi
18774 +  done
18775 +  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
18776 +BEGIN {RS=" "; FS="/|\n";} {
18777 +  lt_foo="";
18778 +  lt_count=0;
18779 +  for (lt_i = NF; lt_i > 0; lt_i--) {
18780 +    if ($lt_i != "" && $lt_i != ".") {
18781 +      if ($lt_i == "..") {
18782 +        lt_count++;
18783 +      } else {
18784 +        if (lt_count == 0) {
18785 +          lt_foo="/" $lt_i lt_foo;
18786 +        } else {
18787 +          lt_count--;
18788 +        }
18789 +      }
18790 +    }
18791 +  }
18792 +  if (lt_foo != "") { lt_freq[lt_foo]++; }
18793 +  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18794 +}'`
18795 +  sys_lib_search_path_spec=`echo $lt_search_path_spec`
18796  else
18797    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18798  fi
18799 @@ -7624,7 +9139,7 @@ aix3*)
18800    soname_spec='${libname}${release}${shared_ext}$major'
18801    ;;
18802  
18803 -aix4* | aix5*)
18804 +aix[4-9]*)
18805    version_type=linux
18806    need_lib_prefix=no
18807    need_version=no
18808 @@ -7680,7 +9195,7 @@ beos*)
18809    shlibpath_var=LIBRARY_PATH
18810    ;;
18811  
18812 -bsdi4*)
18813 +bsdi[45]*)
18814    version_type=linux
18815    need_version=no
18816    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817 @@ -7708,7 +9223,8 @@ cygwin* | mingw* | pw32*)
18818        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18819        dldir=$destdir/`dirname \$dlpath`~
18820        test -d \$dldir || mkdir -p \$dldir~
18821 -      $install_prog $dir/$dlname \$dldir/$dlname'
18822 +      $install_prog $dir/$dlname \$dldir/$dlname~
18823 +      chmod a+x \$dldir/$dlname'
18824      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18825        dlpath=$dir/\$dldll~
18826         $rm \$dlpath'
18827 @@ -7738,7 +9254,7 @@ cygwin* | mingw* | pw32*)
18828        ;;
18829      pw32*)
18830        # pw32 DLLs use 'pw' prefix rather than 'lib'
18831 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18832 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18833        ;;
18834      esac
18835      ;;
18836 @@ -7761,13 +9277,9 @@ darwin* | rhapsody*)
18837    soname_spec='${libname}${release}${major}$shared_ext'
18838    shlibpath_overrides_runpath=yes
18839    shlibpath_var=DYLD_LIBRARY_PATH
18840 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18841 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18842 -  if test "$GCC" = yes; then
18843 -    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18844 -  else
18845 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18846 -  fi
18847 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18848 +
18849 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18850    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18851    ;;
18852  
18853 @@ -7784,20 +9296,17 @@ freebsd1*)
18854    dynamic_linker=no
18855    ;;
18856  
18857 -kfreebsd*-gnu)
18858 -  version_type=linux
18859 -  need_lib_prefix=no
18860 -  need_version=no
18861 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18862 -  soname_spec='${libname}${release}${shared_ext}$major'
18863 -  shlibpath_var=LD_LIBRARY_PATH
18864 -  shlibpath_overrides_runpath=no
18865 -  hardcode_into_libs=yes
18866 -  dynamic_linker='GNU ld.so'
18867 -  ;;
18868 -
18869 -freebsd*)
18870 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18871 +freebsd* | dragonfly*)
18872 +  # DragonFly does not have aout.  When/if they implement a new
18873 +  # versioning mechanism, adjust this.
18874 +  if test -x /usr/bin/objformat; then
18875 +    objformat=`/usr/bin/objformat`
18876 +  else
18877 +    case $host_os in
18878 +    freebsd[123]*) objformat=aout ;;
18879 +    *) objformat=elf ;;
18880 +    esac
18881 +  fi
18882    version_type=freebsd-$objformat
18883    case $version_type in
18884      freebsd-elf*)
18885 @@ -7815,14 +9324,19 @@ freebsd*)
18886    freebsd2*)
18887      shlibpath_overrides_runpath=yes
18888      ;;
18889 -  freebsd3.01* | freebsdelf3.01*)
18890 +  freebsd3.[01]* | freebsdelf3.[01]*)
18891      shlibpath_overrides_runpath=yes
18892      hardcode_into_libs=yes
18893      ;;
18894 -  *) # from 3.2 on
18895 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18896 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18897      shlibpath_overrides_runpath=no
18898      hardcode_into_libs=yes
18899      ;;
18900 +  *) # from 4.6 on, and DragonFly
18901 +    shlibpath_overrides_runpath=yes
18902 +    hardcode_into_libs=yes
18903 +    ;;
18904    esac
18905    ;;
18906  
18907 @@ -7842,7 +9356,7 @@ hpux9* | hpux10* | hpux11*)
18908    version_type=sunos
18909    need_lib_prefix=no
18910    need_version=no
18911 -  case "$host_cpu" in
18912 +  case $host_cpu in
18913    ia64*)
18914      shrext_cmds='.so'
18915      hardcode_into_libs=yes
18916 @@ -7882,6 +9396,18 @@ hpux9* | hpux10* | hpux11*)
18917    postinstall_cmds='chmod 555 $lib'
18918    ;;
18919  
18920 +interix[3-9]*)
18921 +  version_type=linux
18922 +  need_lib_prefix=no
18923 +  need_version=no
18924 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18925 +  soname_spec='${libname}${release}${shared_ext}$major'
18926 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18927 +  shlibpath_var=LD_LIBRARY_PATH
18928 +  shlibpath_overrides_runpath=no
18929 +  hardcode_into_libs=yes
18930 +  ;;
18931 +
18932  irix5* | irix6* | nonstopux*)
18933    case $host_os in
18934      nonstopux*) version_type=nonstopux ;;
18935 @@ -7925,7 +9451,7 @@ linux*oldld* | linux*aout* | linux*coff*)
18936    ;;
18937  
18938  # This must be Linux ELF.
18939 -linux*)
18940 +linux* | k*bsd*-gnu)
18941    version_type=linux
18942    need_lib_prefix=no
18943    need_version=no
18944 @@ -7939,31 +9465,10 @@ linux*)
18945    # before this can be enabled.
18946    hardcode_into_libs=yes
18947  
18948 -  # find out which ABI we are using
18949 -  libsuff=
18950 -  case "$host_cpu" in
18951 -  x86_64*|s390x*|powerpc64*)
18952 -    echo '#line 7946 "configure"' > conftest.$ac_ext
18953 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18954 -  (eval $ac_compile) 2>&5
18955 -  ac_status=$?
18956 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 -  (exit $ac_status); }; then
18958 -      case `/usr/bin/file conftest.$ac_objext` in
18959 -      *64-bit*)
18960 -        libsuff=64
18961 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18962 -        ;;
18963 -      esac
18964 -    fi
18965 -    rm -rf conftest*
18966 -    ;;
18967 -  esac
18968 -
18969    # Append ld.so.conf contents to the search path
18970    if test -f /etc/ld.so.conf; then
18971 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18972 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18973 +    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[     ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18974 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18975    fi
18976  
18977    # We used to test for /lib/ld.so.1 and disable shared libraries on
18978 @@ -7975,7 +9480,7 @@ linux*)
18979    dynamic_linker='GNU/Linux ld.so'
18980    ;;
18981  
18982 -knetbsd*-gnu)
18983 +netbsdelf*-gnu)
18984    version_type=linux
18985    need_lib_prefix=no
18986    need_version=no
18987 @@ -7984,7 +9489,7 @@ knetbsd*-gnu)
18988    shlibpath_var=LD_LIBRARY_PATH
18989    shlibpath_overrides_runpath=no
18990    hardcode_into_libs=yes
18991 -  dynamic_linker='GNU ld.so'
18992 +  dynamic_linker='NetBSD ld.elf_so'
18993    ;;
18994  
18995  netbsd*)
18996 @@ -8024,8 +9529,13 @@ nto-qnx*)
18997  
18998  openbsd*)
18999    version_type=sunos
19000 +  sys_lib_dlsearch_path_spec="/usr/lib"
19001    need_lib_prefix=no
19002 -  need_version=yes
19003 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19004 +  case $host_os in
19005 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19006 +    *)                         need_version=no  ;;
19007 +  esac
19008    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19009    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19010    shlibpath_var=LD_LIBRARY_PATH
19011 @@ -8063,11 +9573,8 @@ osf3* | osf4* | osf5*)
19012    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19013    ;;
19014  
19015 -sco3.2v5*)
19016 -  version_type=osf
19017 -  soname_spec='${libname}${release}${shared_ext}$major'
19018 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19019 -  shlibpath_var=LD_LIBRARY_PATH
19020 +rdos*)
19021 +  dynamic_linker=no
19022    ;;
19023  
19024  solaris*)
19025 @@ -8095,7 +9602,7 @@ sunos4*)
19026    need_version=yes
19027    ;;
19028  
19029 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19030 +sysv4 | sysv4.3*)
19031    version_type=linux
19032    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19033    soname_spec='${libname}${release}${shared_ext}$major'
19034 @@ -8128,6 +9635,29 @@ sysv4*MP*)
19035    fi
19036    ;;
19037  
19038 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19039 +  version_type=freebsd-elf
19040 +  need_lib_prefix=no
19041 +  need_version=no
19042 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19043 +  soname_spec='${libname}${release}${shared_ext}$major'
19044 +  shlibpath_var=LD_LIBRARY_PATH
19045 +  hardcode_into_libs=yes
19046 +  if test "$with_gnu_ld" = yes; then
19047 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19048 +    shlibpath_overrides_runpath=no
19049 +  else
19050 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19051 +    shlibpath_overrides_runpath=yes
19052 +    case $host_os in
19053 +      sco3.2v5*)
19054 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19055 +       ;;
19056 +    esac
19057 +  fi
19058 +  sys_lib_dlsearch_path_spec='/usr/lib'
19059 +  ;;
19060 +
19061  uts4*)
19062    version_type=linux
19063    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19064 @@ -8139,16 +9669,36 @@ uts4*)
19065    dynamic_linker=no
19066    ;;
19067  esac
19068 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19069 -echo "${ECHO_T}$dynamic_linker" >&6
19070 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19071 +$as_echo "$dynamic_linker" >&6; }
19072  test "$dynamic_linker" = no && can_build_shared=no
19073  
19074 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19075 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19076 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19077 +  $as_echo_n "(cached) " >&6
19078 +else
19079 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19080 +fi
19081 +
19082 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19083 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19084 +  $as_echo_n "(cached) " >&6
19085 +else
19086 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19087 +fi
19088 +
19089 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19090 +
19091 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19092 +if test "$GCC" = yes; then
19093 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19094 +fi
19095 +
19096 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19097 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19098  hardcode_action=
19099  if test -n "$hardcode_libdir_flag_spec" || \
19100 -   test -n "$runpath_var " || \
19101 -   test "X$hardcode_automatic"="Xyes" ; then
19102 +   test -n "$runpath_var" || \
19103 +   test "X$hardcode_automatic" = "Xyes" ; then
19104  
19105    # We can hardcode non-existant directories.
19106    if test "$hardcode_direct" != no &&
19107 @@ -8168,8 +9718,8 @@ else
19108    # directories.
19109    hardcode_action=unsupported
19110  fi
19111 -echo "$as_me:$LINENO: result: $hardcode_action" >&5
19112 -echo "${ECHO_T}$hardcode_action" >&6
19113 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
19114 +$as_echo "$hardcode_action" >&6; }
19115  
19116  if test "$hardcode_action" = relink; then
19117    # Fast installation is not supported
19118 @@ -8182,29 +9732,30 @@ fi
19119  
19120  striplib=
19121  old_striplib=
19122 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19123 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19124 +{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19125 +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
19126  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19127    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19128    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19129 -  echo "$as_me:$LINENO: result: yes" >&5
19130 -echo "${ECHO_T}yes" >&6
19131 +  { $as_echo "$as_me:$LINENO: result: yes" >&5
19132 +$as_echo "yes" >&6; }
19133  else
19134  # FIXME - insert some real tests, host_os isn't really good enough
19135    case $host_os in
19136     darwin*)
19137         if test -n "$STRIP" ; then
19138           striplib="$STRIP -x"
19139 -         echo "$as_me:$LINENO: result: yes" >&5
19140 -echo "${ECHO_T}yes" >&6
19141 +         old_striplib="$STRIP -S"
19142 +         { $as_echo "$as_me:$LINENO: result: yes" >&5
19143 +$as_echo "yes" >&6; }
19144         else
19145 -  echo "$as_me:$LINENO: result: no" >&5
19146 -echo "${ECHO_T}no" >&6
19147 +  { $as_echo "$as_me:$LINENO: result: no" >&5
19148 +$as_echo "no" >&6; }
19149  fi
19150         ;;
19151     *)
19152 -  echo "$as_me:$LINENO: result: no" >&5
19153 -echo "${ECHO_T}no" >&6
19154 +  { $as_echo "$as_me:$LINENO: result: no" >&5
19155 +$as_echo "no" >&6; }
19156      ;;
19157    esac
19158  fi
19159 @@ -8236,10 +9787,10 @@ else
19160  
19161    darwin*)
19162    # if libdl is installed we need to link against it
19163 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19164 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19165 +    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19166 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
19167  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19168 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19169 +  $as_echo_n "(cached) " >&6
19170  else
19171    ac_check_lib_save_LIBS=$LIBS
19172  LIBS="-ldl  $LIBS"
19173 @@ -8250,57 +9801,58 @@ cat confdefs.h >>conftest.$ac_ext
19174  cat >>conftest.$ac_ext <<_ACEOF
19175  /* end confdefs.h.  */
19176  
19177 -/* Override any gcc2 internal prototype to avoid an error.  */
19178 +/* Override any GCC internal prototype to avoid an error.
19179 +   Use char because int might match the return type of a GCC
19180 +   builtin and then its argument prototype would still apply.  */
19181  #ifdef __cplusplus
19182  extern "C"
19183  #endif
19184 -/* We use char because int might match the return type of a gcc2
19185 -   builtin and then its argument prototype would still apply.  */
19186  char dlopen ();
19187  int
19188  main ()
19189  {
19190 -dlopen ();
19191 +return dlopen ();
19192    ;
19193    return 0;
19194  }
19195  _ACEOF
19196  rm -f conftest.$ac_objext conftest$ac_exeext
19197 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19198 -  (eval $ac_link) 2>conftest.er1
19199 +if { (ac_try="$ac_link"
19200 +case "(($ac_try" in
19201 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 +  *) ac_try_echo=$ac_try;;
19203 +esac
19204 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19205 +$as_echo "$ac_try_echo") >&5
19206 +  (eval "$ac_link") 2>conftest.er1
19207    ac_status=$?
19208    grep -v '^ *+' conftest.er1 >conftest.err
19209    rm -f conftest.er1
19210    cat conftest.err >&5
19211 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 -  (exit $ac_status); } &&
19213 -        { ac_try='test -z "$ac_c_werror_flag"
19214 -                        || test ! -s conftest.err'
19215 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 -  (eval $ac_try) 2>&5
19217 -  ac_status=$?
19218 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 -  (exit $ac_status); }; } &&
19220 -        { ac_try='test -s conftest$ac_exeext'
19221 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 -  (eval $ac_try) 2>&5
19223 -  ac_status=$?
19224 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 -  (exit $ac_status); }; }; then
19226 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 +  (exit $ac_status); } && {
19228 +        test -z "$ac_c_werror_flag" ||
19229 +        test ! -s conftest.err
19230 +       } && test -s conftest$ac_exeext && {
19231 +        test "$cross_compiling" = yes ||
19232 +        $as_test_x conftest$ac_exeext
19233 +       }; then
19234    ac_cv_lib_dl_dlopen=yes
19235  else
19236 -  echo "$as_me: failed program was:" >&5
19237 +  $as_echo "$as_me: failed program was:" >&5
19238  sed 's/^/| /' conftest.$ac_ext >&5
19239  
19240 -ac_cv_lib_dl_dlopen=no
19241 +       ac_cv_lib_dl_dlopen=no
19242  fi
19243 -rm -f conftest.err conftest.$ac_objext \
19244 +
19245 +rm -rf conftest.dSYM
19246 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19247        conftest$ac_exeext conftest.$ac_ext
19248  LIBS=$ac_check_lib_save_LIBS
19249  fi
19250 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19251 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19252 -if test $ac_cv_lib_dl_dlopen = yes; then
19253 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19254 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19255 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
19256    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19257  else
19258  
19259 @@ -8313,10 +9865,10 @@ fi
19260     ;;
19261  
19262    *)
19263 -    echo "$as_me:$LINENO: checking for shl_load" >&5
19264 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19265 +    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
19266 +$as_echo_n "checking for shl_load... " >&6; }
19267  if test "${ac_cv_func_shl_load+set}" = set; then
19268 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19269 +  $as_echo_n "(cached) " >&6
19270  else
19271    cat >conftest.$ac_ext <<_ACEOF
19272  /* confdefs.h.  */
19273 @@ -8341,75 +9893,70 @@ cat >>conftest.$ac_ext <<_ACEOF
19274  
19275  #undef shl_load
19276  
19277 -/* Override any gcc2 internal prototype to avoid an error.  */
19278 +/* Override any GCC internal prototype to avoid an error.
19279 +   Use char because int might match the return type of a GCC
19280 +   builtin and then its argument prototype would still apply.  */
19281  #ifdef __cplusplus
19282  extern "C"
19283 -{
19284  #endif
19285 -/* We use char because int might match the return type of a gcc2
19286 -   builtin and then its argument prototype would still apply.  */
19287  char shl_load ();
19288  /* The GNU C library defines this for functions which it implements
19289      to always fail with ENOSYS.  Some functions are actually named
19290      something starting with __ and the normal name is an alias.  */
19291 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
19292 +#if defined __stub_shl_load || defined __stub___shl_load
19293  choke me
19294 -#else
19295 -char (*f) () = shl_load;
19296 -#endif
19297 -#ifdef __cplusplus
19298 -}
19299  #endif
19300  
19301  int
19302  main ()
19303  {
19304 -return f != shl_load;
19305 +return shl_load ();
19306    ;
19307    return 0;
19308  }
19309  _ACEOF
19310  rm -f conftest.$ac_objext conftest$ac_exeext
19311 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312 -  (eval $ac_link) 2>conftest.er1
19313 +if { (ac_try="$ac_link"
19314 +case "(($ac_try" in
19315 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 +  *) ac_try_echo=$ac_try;;
19317 +esac
19318 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19319 +$as_echo "$ac_try_echo") >&5
19320 +  (eval "$ac_link") 2>conftest.er1
19321    ac_status=$?
19322    grep -v '^ *+' conftest.er1 >conftest.err
19323    rm -f conftest.er1
19324    cat conftest.err >&5
19325 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 -  (exit $ac_status); } &&
19327 -        { ac_try='test -z "$ac_c_werror_flag"
19328 -                        || test ! -s conftest.err'
19329 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 -  (eval $ac_try) 2>&5
19331 -  ac_status=$?
19332 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 -  (exit $ac_status); }; } &&
19334 -        { ac_try='test -s conftest$ac_exeext'
19335 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 -  (eval $ac_try) 2>&5
19337 -  ac_status=$?
19338 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 -  (exit $ac_status); }; }; then
19340 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 +  (exit $ac_status); } && {
19342 +        test -z "$ac_c_werror_flag" ||
19343 +        test ! -s conftest.err
19344 +       } && test -s conftest$ac_exeext && {
19345 +        test "$cross_compiling" = yes ||
19346 +        $as_test_x conftest$ac_exeext
19347 +       }; then
19348    ac_cv_func_shl_load=yes
19349  else
19350 -  echo "$as_me: failed program was:" >&5
19351 +  $as_echo "$as_me: failed program was:" >&5
19352  sed 's/^/| /' conftest.$ac_ext >&5
19353  
19354 -ac_cv_func_shl_load=no
19355 +       ac_cv_func_shl_load=no
19356  fi
19357 -rm -f conftest.err conftest.$ac_objext \
19358 +
19359 +rm -rf conftest.dSYM
19360 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19361        conftest$ac_exeext conftest.$ac_ext
19362  fi
19363 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19364 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19365 -if test $ac_cv_func_shl_load = yes; then
19366 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19367 +$as_echo "$ac_cv_func_shl_load" >&6; }
19368 +if test "x$ac_cv_func_shl_load" = x""yes; then
19369    lt_cv_dlopen="shl_load"
19370  else
19371 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19372 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19373 +  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19374 +$as_echo_n "checking for shl_load in -ldld... " >&6; }
19375  if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19376 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19377 +  $as_echo_n "(cached) " >&6
19378  else
19379    ac_check_lib_save_LIBS=$LIBS
19380  LIBS="-ldld  $LIBS"
19381 @@ -8420,63 +9967,64 @@ cat confdefs.h >>conftest.$ac_ext
19382  cat >>conftest.$ac_ext <<_ACEOF
19383  /* end confdefs.h.  */
19384  
19385 -/* Override any gcc2 internal prototype to avoid an error.  */
19386 +/* Override any GCC internal prototype to avoid an error.
19387 +   Use char because int might match the return type of a GCC
19388 +   builtin and then its argument prototype would still apply.  */
19389  #ifdef __cplusplus
19390  extern "C"
19391  #endif
19392 -/* We use char because int might match the return type of a gcc2
19393 -   builtin and then its argument prototype would still apply.  */
19394  char shl_load ();
19395  int
19396  main ()
19397  {
19398 -shl_load ();
19399 +return shl_load ();
19400    ;
19401    return 0;
19402  }
19403  _ACEOF
19404  rm -f conftest.$ac_objext conftest$ac_exeext
19405 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19406 -  (eval $ac_link) 2>conftest.er1
19407 +if { (ac_try="$ac_link"
19408 +case "(($ac_try" in
19409 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 +  *) ac_try_echo=$ac_try;;
19411 +esac
19412 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19413 +$as_echo "$ac_try_echo") >&5
19414 +  (eval "$ac_link") 2>conftest.er1
19415    ac_status=$?
19416    grep -v '^ *+' conftest.er1 >conftest.err
19417    rm -f conftest.er1
19418    cat conftest.err >&5
19419 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 -  (exit $ac_status); } &&
19421 -        { ac_try='test -z "$ac_c_werror_flag"
19422 -                        || test ! -s conftest.err'
19423 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 -  (eval $ac_try) 2>&5
19425 -  ac_status=$?
19426 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 -  (exit $ac_status); }; } &&
19428 -        { ac_try='test -s conftest$ac_exeext'
19429 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 -  (eval $ac_try) 2>&5
19431 -  ac_status=$?
19432 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 -  (exit $ac_status); }; }; then
19434 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 +  (exit $ac_status); } && {
19436 +        test -z "$ac_c_werror_flag" ||
19437 +        test ! -s conftest.err
19438 +       } && test -s conftest$ac_exeext && {
19439 +        test "$cross_compiling" = yes ||
19440 +        $as_test_x conftest$ac_exeext
19441 +       }; then
19442    ac_cv_lib_dld_shl_load=yes
19443  else
19444 -  echo "$as_me: failed program was:" >&5
19445 +  $as_echo "$as_me: failed program was:" >&5
19446  sed 's/^/| /' conftest.$ac_ext >&5
19447  
19448 -ac_cv_lib_dld_shl_load=no
19449 +       ac_cv_lib_dld_shl_load=no
19450  fi
19451 -rm -f conftest.err conftest.$ac_objext \
19452 +
19453 +rm -rf conftest.dSYM
19454 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19455        conftest$ac_exeext conftest.$ac_ext
19456  LIBS=$ac_check_lib_save_LIBS
19457  fi
19458 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19459 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19460 -if test $ac_cv_lib_dld_shl_load = yes; then
19461 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19462 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19463 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19464 +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
19465 +  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19466  else
19467 -  echo "$as_me:$LINENO: checking for dlopen" >&5
19468 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19469 +  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
19470 +$as_echo_n "checking for dlopen... " >&6; }
19471  if test "${ac_cv_func_dlopen+set}" = set; then
19472 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19473 +  $as_echo_n "(cached) " >&6
19474  else
19475    cat >conftest.$ac_ext <<_ACEOF
19476  /* confdefs.h.  */
19477 @@ -8501,75 +10049,70 @@ cat >>conftest.$ac_ext <<_ACEOF
19478  
19479  #undef dlopen
19480  
19481 -/* Override any gcc2 internal prototype to avoid an error.  */
19482 +/* Override any GCC internal prototype to avoid an error.
19483 +   Use char because int might match the return type of a GCC
19484 +   builtin and then its argument prototype would still apply.  */
19485  #ifdef __cplusplus
19486  extern "C"
19487 -{
19488  #endif
19489 -/* We use char because int might match the return type of a gcc2
19490 -   builtin and then its argument prototype would still apply.  */
19491  char dlopen ();
19492  /* The GNU C library defines this for functions which it implements
19493      to always fail with ENOSYS.  Some functions are actually named
19494      something starting with __ and the normal name is an alias.  */
19495 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
19496 +#if defined __stub_dlopen || defined __stub___dlopen
19497  choke me
19498 -#else
19499 -char (*f) () = dlopen;
19500 -#endif
19501 -#ifdef __cplusplus
19502 -}
19503  #endif
19504  
19505  int
19506  main ()
19507  {
19508 -return f != dlopen;
19509 +return dlopen ();
19510    ;
19511    return 0;
19512  }
19513  _ACEOF
19514  rm -f conftest.$ac_objext conftest$ac_exeext
19515 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19516 -  (eval $ac_link) 2>conftest.er1
19517 +if { (ac_try="$ac_link"
19518 +case "(($ac_try" in
19519 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 +  *) ac_try_echo=$ac_try;;
19521 +esac
19522 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19523 +$as_echo "$ac_try_echo") >&5
19524 +  (eval "$ac_link") 2>conftest.er1
19525    ac_status=$?
19526    grep -v '^ *+' conftest.er1 >conftest.err
19527    rm -f conftest.er1
19528    cat conftest.err >&5
19529 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 -  (exit $ac_status); } &&
19531 -        { ac_try='test -z "$ac_c_werror_flag"
19532 -                        || test ! -s conftest.err'
19533 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 -  (eval $ac_try) 2>&5
19535 -  ac_status=$?
19536 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 -  (exit $ac_status); }; } &&
19538 -        { ac_try='test -s conftest$ac_exeext'
19539 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 -  (eval $ac_try) 2>&5
19541 -  ac_status=$?
19542 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 -  (exit $ac_status); }; }; then
19544 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 +  (exit $ac_status); } && {
19546 +        test -z "$ac_c_werror_flag" ||
19547 +        test ! -s conftest.err
19548 +       } && test -s conftest$ac_exeext && {
19549 +        test "$cross_compiling" = yes ||
19550 +        $as_test_x conftest$ac_exeext
19551 +       }; then
19552    ac_cv_func_dlopen=yes
19553  else
19554 -  echo "$as_me: failed program was:" >&5
19555 +  $as_echo "$as_me: failed program was:" >&5
19556  sed 's/^/| /' conftest.$ac_ext >&5
19557  
19558 -ac_cv_func_dlopen=no
19559 +       ac_cv_func_dlopen=no
19560  fi
19561 -rm -f conftest.err conftest.$ac_objext \
19562 +
19563 +rm -rf conftest.dSYM
19564 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19565        conftest$ac_exeext conftest.$ac_ext
19566  fi
19567 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19568 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19569 -if test $ac_cv_func_dlopen = yes; then
19570 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19571 +$as_echo "$ac_cv_func_dlopen" >&6; }
19572 +if test "x$ac_cv_func_dlopen" = x""yes; then
19573    lt_cv_dlopen="dlopen"
19574  else
19575 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19576 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19577 +  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19578 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
19579  if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19580 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19581 +  $as_echo_n "(cached) " >&6
19582  else
19583    ac_check_lib_save_LIBS=$LIBS
19584  LIBS="-ldl  $LIBS"
19585 @@ -8580,63 +10123,64 @@ cat confdefs.h >>conftest.$ac_ext
19586  cat >>conftest.$ac_ext <<_ACEOF
19587  /* end confdefs.h.  */
19588  
19589 -/* Override any gcc2 internal prototype to avoid an error.  */
19590 +/* Override any GCC internal prototype to avoid an error.
19591 +   Use char because int might match the return type of a GCC
19592 +   builtin and then its argument prototype would still apply.  */
19593  #ifdef __cplusplus
19594  extern "C"
19595  #endif
19596 -/* We use char because int might match the return type of a gcc2
19597 -   builtin and then its argument prototype would still apply.  */
19598  char dlopen ();
19599  int
19600  main ()
19601  {
19602 -dlopen ();
19603 +return dlopen ();
19604    ;
19605    return 0;
19606  }
19607  _ACEOF
19608  rm -f conftest.$ac_objext conftest$ac_exeext
19609 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19610 -  (eval $ac_link) 2>conftest.er1
19611 +if { (ac_try="$ac_link"
19612 +case "(($ac_try" in
19613 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 +  *) ac_try_echo=$ac_try;;
19615 +esac
19616 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19617 +$as_echo "$ac_try_echo") >&5
19618 +  (eval "$ac_link") 2>conftest.er1
19619    ac_status=$?
19620    grep -v '^ *+' conftest.er1 >conftest.err
19621    rm -f conftest.er1
19622    cat conftest.err >&5
19623 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 -  (exit $ac_status); } &&
19625 -        { ac_try='test -z "$ac_c_werror_flag"
19626 -                        || test ! -s conftest.err'
19627 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 -  (eval $ac_try) 2>&5
19629 -  ac_status=$?
19630 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 -  (exit $ac_status); }; } &&
19632 -        { ac_try='test -s conftest$ac_exeext'
19633 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 -  (eval $ac_try) 2>&5
19635 -  ac_status=$?
19636 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 -  (exit $ac_status); }; }; then
19638 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 +  (exit $ac_status); } && {
19640 +        test -z "$ac_c_werror_flag" ||
19641 +        test ! -s conftest.err
19642 +       } && test -s conftest$ac_exeext && {
19643 +        test "$cross_compiling" = yes ||
19644 +        $as_test_x conftest$ac_exeext
19645 +       }; then
19646    ac_cv_lib_dl_dlopen=yes
19647  else
19648 -  echo "$as_me: failed program was:" >&5
19649 +  $as_echo "$as_me: failed program was:" >&5
19650  sed 's/^/| /' conftest.$ac_ext >&5
19651  
19652 -ac_cv_lib_dl_dlopen=no
19653 +       ac_cv_lib_dl_dlopen=no
19654  fi
19655 -rm -f conftest.err conftest.$ac_objext \
19656 +
19657 +rm -rf conftest.dSYM
19658 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19659        conftest$ac_exeext conftest.$ac_ext
19660  LIBS=$ac_check_lib_save_LIBS
19661  fi
19662 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19663 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19664 -if test $ac_cv_lib_dl_dlopen = yes; then
19665 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19666 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19667 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
19668    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19669  else
19670 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19671 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19672 +  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19673 +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19674  if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19675 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19676 +  $as_echo_n "(cached) " >&6
19677  else
19678    ac_check_lib_save_LIBS=$LIBS
19679  LIBS="-lsvld  $LIBS"
19680 @@ -8647,63 +10191,64 @@ cat confdefs.h >>conftest.$ac_ext
19681  cat >>conftest.$ac_ext <<_ACEOF
19682  /* end confdefs.h.  */
19683  
19684 -/* Override any gcc2 internal prototype to avoid an error.  */
19685 +/* Override any GCC internal prototype to avoid an error.
19686 +   Use char because int might match the return type of a GCC
19687 +   builtin and then its argument prototype would still apply.  */
19688  #ifdef __cplusplus
19689  extern "C"
19690  #endif
19691 -/* We use char because int might match the return type of a gcc2
19692 -   builtin and then its argument prototype would still apply.  */
19693  char dlopen ();
19694  int
19695  main ()
19696  {
19697 -dlopen ();
19698 +return dlopen ();
19699    ;
19700    return 0;
19701  }
19702  _ACEOF
19703  rm -f conftest.$ac_objext conftest$ac_exeext
19704 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705 -  (eval $ac_link) 2>conftest.er1
19706 +if { (ac_try="$ac_link"
19707 +case "(($ac_try" in
19708 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 +  *) ac_try_echo=$ac_try;;
19710 +esac
19711 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19712 +$as_echo "$ac_try_echo") >&5
19713 +  (eval "$ac_link") 2>conftest.er1
19714    ac_status=$?
19715    grep -v '^ *+' conftest.er1 >conftest.err
19716    rm -f conftest.er1
19717    cat conftest.err >&5
19718 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 -  (exit $ac_status); } &&
19720 -        { ac_try='test -z "$ac_c_werror_flag"
19721 -                        || test ! -s conftest.err'
19722 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 -  (eval $ac_try) 2>&5
19724 -  ac_status=$?
19725 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 -  (exit $ac_status); }; } &&
19727 -        { ac_try='test -s conftest$ac_exeext'
19728 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729 -  (eval $ac_try) 2>&5
19730 -  ac_status=$?
19731 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 -  (exit $ac_status); }; }; then
19733 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 +  (exit $ac_status); } && {
19735 +        test -z "$ac_c_werror_flag" ||
19736 +        test ! -s conftest.err
19737 +       } && test -s conftest$ac_exeext && {
19738 +        test "$cross_compiling" = yes ||
19739 +        $as_test_x conftest$ac_exeext
19740 +       }; then
19741    ac_cv_lib_svld_dlopen=yes
19742  else
19743 -  echo "$as_me: failed program was:" >&5
19744 +  $as_echo "$as_me: failed program was:" >&5
19745  sed 's/^/| /' conftest.$ac_ext >&5
19746  
19747 -ac_cv_lib_svld_dlopen=no
19748 +       ac_cv_lib_svld_dlopen=no
19749  fi
19750 -rm -f conftest.err conftest.$ac_objext \
19751 +
19752 +rm -rf conftest.dSYM
19753 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19754        conftest$ac_exeext conftest.$ac_ext
19755  LIBS=$ac_check_lib_save_LIBS
19756  fi
19757 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19758 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19759 -if test $ac_cv_lib_svld_dlopen = yes; then
19760 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19761 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19762 +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
19763    lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19764  else
19765 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19766 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19767 +  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19768 +$as_echo_n "checking for dld_link in -ldld... " >&6; }
19769  if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19770 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19771 +  $as_echo_n "(cached) " >&6
19772  else
19773    ac_check_lib_save_LIBS=$LIBS
19774  LIBS="-ldld  $LIBS"
19775 @@ -8714,58 +10259,59 @@ cat confdefs.h >>conftest.$ac_ext
19776  cat >>conftest.$ac_ext <<_ACEOF
19777  /* end confdefs.h.  */
19778  
19779 -/* Override any gcc2 internal prototype to avoid an error.  */
19780 +/* Override any GCC internal prototype to avoid an error.
19781 +   Use char because int might match the return type of a GCC
19782 +   builtin and then its argument prototype would still apply.  */
19783  #ifdef __cplusplus
19784  extern "C"
19785  #endif
19786 -/* We use char because int might match the return type of a gcc2
19787 -   builtin and then its argument prototype would still apply.  */
19788  char dld_link ();
19789  int
19790  main ()
19791  {
19792 -dld_link ();
19793 +return dld_link ();
19794    ;
19795    return 0;
19796  }
19797  _ACEOF
19798  rm -f conftest.$ac_objext conftest$ac_exeext
19799 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19800 -  (eval $ac_link) 2>conftest.er1
19801 +if { (ac_try="$ac_link"
19802 +case "(($ac_try" in
19803 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 +  *) ac_try_echo=$ac_try;;
19805 +esac
19806 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19807 +$as_echo "$ac_try_echo") >&5
19808 +  (eval "$ac_link") 2>conftest.er1
19809    ac_status=$?
19810    grep -v '^ *+' conftest.er1 >conftest.err
19811    rm -f conftest.er1
19812    cat conftest.err >&5
19813 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 -  (exit $ac_status); } &&
19815 -        { ac_try='test -z "$ac_c_werror_flag"
19816 -                        || test ! -s conftest.err'
19817 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 -  (eval $ac_try) 2>&5
19819 -  ac_status=$?
19820 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 -  (exit $ac_status); }; } &&
19822 -        { ac_try='test -s conftest$ac_exeext'
19823 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 -  (eval $ac_try) 2>&5
19825 -  ac_status=$?
19826 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 -  (exit $ac_status); }; }; then
19828 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 +  (exit $ac_status); } && {
19830 +        test -z "$ac_c_werror_flag" ||
19831 +        test ! -s conftest.err
19832 +       } && test -s conftest$ac_exeext && {
19833 +        test "$cross_compiling" = yes ||
19834 +        $as_test_x conftest$ac_exeext
19835 +       }; then
19836    ac_cv_lib_dld_dld_link=yes
19837  else
19838 -  echo "$as_me: failed program was:" >&5
19839 +  $as_echo "$as_me: failed program was:" >&5
19840  sed 's/^/| /' conftest.$ac_ext >&5
19841  
19842 -ac_cv_lib_dld_dld_link=no
19843 +       ac_cv_lib_dld_dld_link=no
19844  fi
19845 -rm -f conftest.err conftest.$ac_objext \
19846 +
19847 +rm -rf conftest.dSYM
19848 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19849        conftest$ac_exeext conftest.$ac_ext
19850  LIBS=$ac_check_lib_save_LIBS
19851  fi
19852 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19853 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19854 -if test $ac_cv_lib_dld_dld_link = yes; then
19855 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19856 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19857 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19858 +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
19859 +  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19860  fi
19861  
19862  
19863 @@ -8798,15 +10344,15 @@ fi
19864      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19865  
19866      save_LDFLAGS="$LDFLAGS"
19867 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19868 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19869  
19870      save_LIBS="$LIBS"
19871      LIBS="$lt_cv_dlopen_libs $LIBS"
19872  
19873 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19874 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19875 +    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19876 +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
19877  if test "${lt_cv_dlopen_self+set}" = set; then
19878 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19879 +  $as_echo_n "(cached) " >&6
19880  else
19881           if test "$cross_compiling" = yes; then :
19882    lt_cv_dlopen_self=cross
19883 @@ -8814,7 +10360,7 @@ else
19884    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19885    lt_status=$lt_dlunknown
19886    cat > conftest.$ac_ext <<EOF
19887 -#line 8817 "configure"
19888 +#line 10363 "configure"
19889  #include "confdefs.h"
19890  
19891  #if HAVE_DLFCN_H
19892 @@ -8871,6 +10417,8 @@ int main ()
19893        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19894        /* dlclose (self); */
19895      }
19896 +  else
19897 +    puts (dlerror ());
19898  
19899      exit (status);
19900  }
19901 @@ -8878,14 +10426,14 @@ EOF
19902    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19903    (eval $ac_link) 2>&5
19904    ac_status=$?
19905 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19908 -    (./conftest; exit; ) 2>/dev/null
19909 +    (./conftest; exit; ) >&5 2>/dev/null
19910      lt_status=$?
19911      case x$lt_status in
19912        x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19913        x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19914 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19915 +      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19916      esac
19917    else :
19918      # compilation failed
19919 @@ -8896,15 +10444,15 @@ rm -fr conftest*
19920  
19921  
19922  fi
19923 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19924 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19925 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19926 +$as_echo "$lt_cv_dlopen_self" >&6; }
19927  
19928      if test "x$lt_cv_dlopen_self" = xyes; then
19929 -      LDFLAGS="$LDFLAGS $link_static_flag"
19930 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19931 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19932 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19933 +      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19934 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19935  if test "${lt_cv_dlopen_self_static+set}" = set; then
19936 -  echo $ECHO_N "(cached) $ECHO_C" >&6
19937 +  $as_echo_n "(cached) " >&6
19938  else
19939           if test "$cross_compiling" = yes; then :
19940    lt_cv_dlopen_self_static=cross
19941 @@ -8912,7 +10460,7 @@ else
19942    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19943    lt_status=$lt_dlunknown
19944    cat > conftest.$ac_ext <<EOF
19945 -#line 8915 "configure"
19946 +#line 10463 "configure"
19947  #include "confdefs.h"
19948  
19949  #if HAVE_DLFCN_H
19950 @@ -8969,6 +10517,8 @@ int main ()
19951        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19952        /* dlclose (self); */
19953      }
19954 +  else
19955 +    puts (dlerror ());
19956  
19957      exit (status);
19958  }
19959 @@ -8976,14 +10526,14 @@ EOF
19960    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19961    (eval $ac_link) 2>&5
19962    ac_status=$?
19963 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19966 -    (./conftest; exit; ) 2>/dev/null
19967 +    (./conftest; exit; ) >&5 2>/dev/null
19968      lt_status=$?
19969      case x$lt_status in
19970        x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19971        x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19972 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19973 +      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19974      esac
19975    else :
19976      # compilation failed
19977 @@ -8994,8 +10544,8 @@ rm -fr conftest*
19978  
19979  
19980  fi
19981 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19982 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19983 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19984 +$as_echo "$lt_cv_dlopen_self_static" >&6; }
19985      fi
19986  
19987      CPPFLAGS="$save_CPPFLAGS"
19988 @@ -9016,19 +10566,19 @@ echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19989  fi
19990  
19991  
19992 -# Report which librarie types wil actually be built
19993 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19994 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19995 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
19996 -echo "${ECHO_T}$can_build_shared" >&6
19997 +# Report which library types will actually be built
19998 +{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19999 +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
20000 +{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
20001 +$as_echo "$can_build_shared" >&6; }
20002  
20003 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20004 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20005 +{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20006 +$as_echo_n "checking whether to build shared libraries... " >&6; }
20007  test "$can_build_shared" = "no" && enable_shared=no
20008  
20009  # On AIX, shared libraries and static libraries use the same namespace, and
20010  # are all built from PIC.
20011 -case "$host_os" in
20012 +case $host_os in
20013  aix3*)
20014    test "$enable_shared" = yes && enable_static=no
20015    if test -n "$RANLIB"; then
20016 @@ -9037,58 +10587,21 @@ aix3*)
20017    fi
20018    ;;
20019  
20020 -aix4* | aix5*)
20021 +aix[4-9]*)
20022    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20023      test "$enable_shared" = yes && enable_static=no
20024    fi
20025 -  ;;
20026 -  darwin* | rhapsody*)
20027 -  if test "$GCC" = yes; then
20028 -    archive_cmds_need_lc=no
20029 -    case "$host_os" in
20030 -    rhapsody* | darwin1.[012])
20031 -      allow_undefined_flag='-undefined suppress'
20032 -      ;;
20033 -    *) # Darwin 1.3 on
20034 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20035 -       allow_undefined_flag='-flat_namespace -undefined suppress'
20036 -      else
20037 -        case ${MACOSX_DEPLOYMENT_TARGET} in
20038 -          10.[012])
20039 -            allow_undefined_flag='-flat_namespace -undefined suppress'
20040 -            ;;
20041 -          10.*)
20042 -            allow_undefined_flag='-undefined dynamic_lookup'
20043 -            ;;
20044 -        esac
20045 -      fi
20046 -      ;;
20047 -    esac
20048 -    output_verbose_link_cmd='echo'
20049 -    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
20050 -    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20051 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20052 -    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20053 -    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20054 -    hardcode_direct=no
20055 -    hardcode_automatic=yes
20056 -    hardcode_shlibpath_var=unsupported
20057 -    whole_archive_flag_spec='-all_load $convenience'
20058 -    link_all_deplibs=yes
20059 -  else
20060 -    ld_shlibs=no
20061 -  fi
20062      ;;
20063  esac
20064 -echo "$as_me:$LINENO: result: $enable_shared" >&5
20065 -echo "${ECHO_T}$enable_shared" >&6
20066 +{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
20067 +$as_echo "$enable_shared" >&6; }
20068  
20069 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20070 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20071 +{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20072 +$as_echo_n "checking whether to build static libraries... " >&6; }
20073  # Make sure either enable_shared or enable_static is yes.
20074  test "$enable_shared" = yes || enable_static=yes
20075 -echo "$as_me:$LINENO: result: $enable_static" >&5
20076 -echo "${ECHO_T}$enable_static" >&6
20077 +{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
20078 +$as_echo "$enable_static" >&6; }
20079  
20080  # The else clause should only fire when bootstrapping the
20081  # libtool distribution, otherwise you forgot to ship ltmain.sh
20082 @@ -9103,7 +10616,7 @@ if test -f "$ltmain"; then
20083    # Now quote all the things that may contain metacharacters while being
20084    # careful not to overquote the AC_SUBSTed values.  We take copies of the
20085    # variables and quote the copies for generation of the libtool script.
20086 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20087 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20088      SED SHELL STRIP \
20089      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20090      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20091 @@ -9130,6 +10643,7 @@ if test -f "$ltmain"; then
20092      predeps \
20093      postdeps \
20094      compiler_lib_search_path \
20095 +    compiler_lib_search_dirs \
20096      archive_cmds \
20097      archive_expsym_cmds \
20098      postinstall_cmds \
20099 @@ -9145,6 +10659,7 @@ if test -f "$ltmain"; then
20100      module_cmds \
20101      module_expsym_cmds \
20102      lt_cv_prog_compiler_c_o \
20103 +    fix_srcfile_path \
20104      exclude_expsyms \
20105      include_expsyms; do
20106  
20107 @@ -9179,8 +10694,8 @@ if test -f "$ltmain"; then
20108  cfgfile="${ofile}T"
20109    trap "$rm \"$cfgfile\"; exit 1" 1 2 15
20110    $rm -f "$cfgfile"
20111 -  { echo "$as_me:$LINENO: creating $ofile" >&5
20112 -echo "$as_me: creating $ofile" >&6;}
20113 +  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
20114 +$as_echo "$as_me: creating $ofile" >&6;}
20115  
20116    cat <<__EOF__ >> "$cfgfile"
20117  #! $SHELL
20118 @@ -9189,7 +10704,7 @@ echo "$as_me: creating $ofile" >&6;}
20119  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
20120  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20121  #
20122 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
20123 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
20124  # Free Software Foundation, Inc.
20125  #
20126  # This file is part of GNU Libtool:
20127 @@ -9207,7 +10722,7 @@ echo "$as_me: creating $ofile" >&6;}
20128  #
20129  # You should have received a copy of the GNU General Public License
20130  # along with this program; if not, write to the Free Software
20131 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20132 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20133  #
20134  # As a special exception to the GNU General Public License, if you
20135  # distribute this file as part of a program that contains a
20136 @@ -9218,11 +10733,11 @@ echo "$as_me: creating $ofile" >&6;}
20137  SED=$lt_SED
20138  
20139  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20140 -Xsed="$SED -e s/^X//"
20141 +Xsed="$SED -e 1s/^X//"
20142  
20143  # The HP-UX ksh and POSIX shell print the target directory to stdout
20144  # if CDPATH is set.
20145 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
20146 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20147  
20148  # The names of the tagged configurations supported by this script.
20149  available_tags=
20150 @@ -9252,6 +10767,12 @@ fast_install=$enable_fast_install
20151  # The host system.
20152  host_alias=$host_alias
20153  host=$host
20154 +host_os=$host_os
20155 +
20156 +# The build system.
20157 +build_alias=$build_alias
20158 +build=$build
20159 +build_os=$build_os
20160  
20161  # An echo program that does not interpret backslashes.
20162  echo=$lt_echo
20163 @@ -9263,6 +10784,9 @@ AR_FLAGS=$lt_AR_FLAGS
20164  # A C compiler.
20165  LTCC=$lt_LTCC
20166  
20167 +# LTCC compiler flags.
20168 +LTCFLAGS=$lt_LTCFLAGS
20169 +
20170  # A language-specific compiler.
20171  CC=$lt_compiler
20172  
20173 @@ -9328,7 +10852,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
20174  # Does compiler simultaneously support -c and -o options?
20175  compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20176  
20177 -# Must we lock files when doing compilation ?
20178 +# Must we lock files when doing compilation?
20179  need_locks=$lt_need_locks
20180  
20181  # Do we need the lib prefix for modules?
20182 @@ -9416,6 +10940,10 @@ predeps=$lt_predeps
20183  # shared library.
20184  postdeps=$lt_postdeps
20185  
20186 +# The directories searched by this compiler when creating a shared
20187 +# library
20188 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20189 +
20190  # The library search path used internally by the compiler when linking
20191  # a shared library.
20192  compiler_lib_search_path=$lt_compiler_lib_search_path
20193 @@ -9504,7 +11032,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20194  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20195  
20196  # Fix the shell variable \$srcfile for the compiler.
20197 -fix_srcfile_path="$fix_srcfile_path"
20198 +fix_srcfile_path=$lt_fix_srcfile_path
20199  
20200  # Set to yes if exported symbols are required.
20201  always_export_symbols=$always_export_symbols
20202 @@ -9571,28 +11099,31 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
20203  CC="$lt_save_CC"
20204  
20205  
20206 -# Check whether --with-tags or --without-tags was given.
20207 +# Check whether --with-tags was given.
20208  if test "${with_tags+set}" = set; then
20209 -  withval="$with_tags"
20210 -  tagnames="$withval"
20211 -fi;
20212 +  withval=$with_tags; tagnames="$withval"
20213 +fi
20214 +
20215  
20216  if test -f "$ltmain" && test -n "$tagnames"; then
20217    if test ! -f "${ofile}"; then
20218 -    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20219 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20220 +    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20221 +$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20222    fi
20223  
20224    if test -z "$LTCC"; then
20225      eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
20226      if test -z "$LTCC"; then
20227 -      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20228 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20229 +      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20230 +$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20231      else
20232 -      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20233 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20234 +      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20235 +$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20236      fi
20237    fi
20238 +  if test -z "$LTCFLAGS"; then
20239 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
20240 +  fi
20241  
20242    # Extract list of available tagged configurations in $ofile.
20243    # Note that this assumes the entire list is on one line.
20244 @@ -9604,16 +11135,16 @@ echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20245      # Check whether tagname contains only valid characters
20246      case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
20247      "") ;;
20248 -    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20249 -echo "$as_me: error: invalid tag name: $tagname" >&2;}
20250 +    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20251 +$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
20252     { (exit 1); exit 1; }; }
20253         ;;
20254      esac
20255  
20256      if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
20257      then
20258 -      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20259 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20260 +      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20261 +$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20262     { (exit 1); exit 1; }; }
20263      fi
20264  
20265 @@ -9623,8 +11154,10 @@ echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20266  
20267        case $tagname in
20268        CXX)
20269 -       if test -n "$CXX" && test "X$CXX" != "Xno"; then
20270 -         ac_ext=cc
20271 +       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20272 +           ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20273 +           (test "X$CXX" != "Xg++"))) ; then
20274 +         ac_ext=cpp
20275  ac_cpp='$CXXCPP $CPPFLAGS'
20276  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278 @@ -9643,6 +11176,7 @@ hardcode_libdir_flag_spec_CXX=
20279  hardcode_libdir_flag_spec_ld_CXX=
20280  hardcode_libdir_separator_CXX=
20281  hardcode_minus_L_CXX=no
20282 +hardcode_shlibpath_var_CXX=unsupported
20283  hardcode_automatic_CXX=no
20284  module_cmds_CXX=
20285  module_expsym_cmds_CXX=
20286 @@ -9658,29 +11192,47 @@ postdep_objects_CXX=
20287  predeps_CXX=
20288  postdeps_CXX=
20289  compiler_lib_search_path_CXX=
20290 +compiler_lib_search_dirs_CXX=
20291  
20292  # Source file extension for C++ test sources.
20293 -ac_ext=cc
20294 +ac_ext=cpp
20295  
20296  # Object file extension for compiled C++ test sources.
20297  objext=o
20298  objext_CXX=$objext
20299  
20300  # Code to be used in simple compile tests
20301 -lt_simple_compile_test_code="int some_variable = 0;\n"
20302 +lt_simple_compile_test_code="int some_variable = 0;"
20303  
20304  # Code to be used in simple link tests
20305 -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
20306 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20307  
20308  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20309  
20310  # If no C compiler was specified, use CC.
20311  LTCC=${LTCC-"$CC"}
20312  
20313 +# If no C compiler flags were specified, use CFLAGS.
20314 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20315 +
20316  # Allow CC to be a program name with arguments.
20317  compiler=$CC
20318  
20319  
20320 +# save warnings/boilerplate of simple test code
20321 +ac_outfile=conftest.$ac_objext
20322 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20323 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20324 +_lt_compiler_boilerplate=`cat conftest.err`
20325 +$rm conftest*
20326 +
20327 +ac_outfile=conftest.$ac_objext
20328 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
20329 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20330 +_lt_linker_boilerplate=`cat conftest.err`
20331 +$rm -r conftest*
20332 +
20333 +
20334  # Allow CC to be a program name with arguments.
20335  lt_save_CC=$CC
20336  lt_save_LD=$LD
20337 @@ -9691,18 +11243,27 @@ lt_save_path_LD=$lt_cv_path_LD
20338  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20339    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20340  else
20341 -  unset lt_cv_prog_gnu_ld
20342 +  $as_unset lt_cv_prog_gnu_ld
20343  fi
20344  if test -n "${lt_cv_path_LDCXX+set}"; then
20345    lt_cv_path_LD=$lt_cv_path_LDCXX
20346  else
20347 -  unset lt_cv_path_LD
20348 +  $as_unset lt_cv_path_LD
20349  fi
20350  test -z "${LDCXX+set}" || LD=$LDCXX
20351  CC=${CXX-"c++"}
20352  compiler=$CC
20353  compiler_CXX=$CC
20354 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
20355 +for cc_temp in $compiler""; do
20356 +  case $cc_temp in
20357 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20358 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20359 +    \-*) ;;
20360 +    *) break;;
20361 +  esac
20362 +done
20363 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20364 +
20365  
20366  # We don't want -fno-exception wen compiling C++ code, so set the
20367  # no_builtin_flag separately
20368 @@ -9716,18 +11277,18 @@ if test "$GXX" = yes; then
20369    # Set up default GNU C++ configuration
20370  
20371  
20372 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
20373 +# Check whether --with-gnu-ld was given.
20374  if test "${with_gnu_ld+set}" = set; then
20375 -  withval="$with_gnu_ld"
20376 -  test "$withval" = no || with_gnu_ld=yes
20377 +  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20378  else
20379    with_gnu_ld=no
20380 -fi;
20381 +fi
20382 +
20383  ac_prog=ld
20384  if test "$GCC" = yes; then
20385    # Check if gcc -print-prog-name=ld gives a path.
20386 -  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20387 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20388 +  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20389 +$as_echo_n "checking for ld used by $CC... " >&6; }
20390    case $host in
20391    *-*-mingw*)
20392      # gcc leaves a trailing carriage return which upsets mingw
20393 @@ -9756,14 +11317,14 @@ echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20394      ;;
20395    esac
20396  elif test "$with_gnu_ld" = yes; then
20397 -  echo "$as_me:$LINENO: checking for GNU ld" >&5
20398 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20399 +  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
20400 +$as_echo_n "checking for GNU ld... " >&6; }
20401  else
20402 -  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20403 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20404 +  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20405 +$as_echo_n "checking for non-GNU ld... " >&6; }
20406  fi
20407  if test "${lt_cv_path_LD+set}" = set; then
20408 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20409 +  $as_echo_n "(cached) " >&6
20410  else
20411    if test -z "$LD"; then
20412    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20413 @@ -9773,7 +11334,7 @@ else
20414      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20415        lt_cv_path_LD="$ac_dir/$ac_prog"
20416        # Check to see if the program is GNU ld.  I'd rather use --version,
20417 -      # but apparently some GNU ld's only accept -v.
20418 +      # but apparently some variants of GNU ld only accept -v.
20419        # Break only if it was the GNU/non-GNU ld that we prefer.
20420        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20421        *GNU* | *'with BFD'*)
20422 @@ -9793,21 +11354,21 @@ fi
20423  
20424  LD="$lt_cv_path_LD"
20425  if test -n "$LD"; then
20426 -  echo "$as_me:$LINENO: result: $LD" >&5
20427 -echo "${ECHO_T}$LD" >&6
20428 +  { $as_echo "$as_me:$LINENO: result: $LD" >&5
20429 +$as_echo "$LD" >&6; }
20430  else
20431 -  echo "$as_me:$LINENO: result: no" >&5
20432 -echo "${ECHO_T}no" >&6
20433 +  { $as_echo "$as_me:$LINENO: result: no" >&5
20434 +$as_echo "no" >&6; }
20435  fi
20436 -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20437 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20438 +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20439 +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20440     { (exit 1); exit 1; }; }
20441 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20442 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20443 +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20444 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20445  if test "${lt_cv_prog_gnu_ld+set}" = set; then
20446 -  echo $ECHO_N "(cached) $ECHO_C" >&6
20447 +  $as_echo_n "(cached) " >&6
20448  else
20449 -  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20450 +  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20451  case `$LD -v 2>&1 </dev/null` in
20452  *GNU* | *'with BFD'*)
20453    lt_cv_prog_gnu_ld=yes
20454 @@ -9817,8 +11378,8 @@ case `$LD -v 2>&1 </dev/null` in
20455    ;;
20456  esac
20457  fi
20458 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20459 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
20460 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20461 +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20462  with_gnu_ld=$lt_cv_prog_gnu_ld
20463  
20464  
20465 @@ -9868,15 +11429,15 @@ else
20466  fi
20467  
20468  # PORTME: fill in a description of your system's C++ link characteristics
20469 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20470 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20471 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20472 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20473  ld_shlibs_CXX=yes
20474  case $host_os in
20475    aix3*)
20476      # FIXME: insert proper C++ library support
20477      ld_shlibs_CXX=no
20478      ;;
20479 -  aix4* | aix5*)
20480 +  aix[4-9]*)
20481      if test "$host_cpu" = ia64; then
20482        # On IA64, the linker does run time linking by default, so we don't
20483        # have to do anything special.
20484 @@ -9889,7 +11450,7 @@ case $host_os in
20485        # Test if we are trying to use run time linking or normal
20486        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20487        # need to do runtime linking.
20488 -      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20489 +      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20490         for ld_flag in $LDFLAGS; do
20491           case $ld_flag in
20492           *-brtl*)
20493 @@ -9898,6 +11459,7 @@ case $host_os in
20494             ;;
20495           esac
20496         done
20497 +       ;;
20498        esac
20499  
20500        exp_sym_flag='-bexport'
20501 @@ -9916,7 +11478,7 @@ case $host_os in
20502      link_all_deplibs_CXX=yes
20503  
20504      if test "$GXX" = yes; then
20505 -      case $host_os in aix4.012|aix4.012.*)
20506 +      case $host_os in aix4.[012]|aix4.[012].*)
20507        # We only want to do this on AIX 4.2 and lower, the check
20508        # below for broken collect2 doesn't work under 4.3+
20509         collect2name=`${CC} -print-prog-name=collect2`
20510 @@ -9924,7 +11486,7 @@ case $host_os in
20511            strings "$collect2name" | grep resolve_lib_name >/dev/null
20512         then
20513           # We have reworked collect2
20514 -         hardcode_direct_CXX=yes
20515 +         :
20516         else
20517           # We have old collect2
20518           hardcode_direct_CXX=unsupported
20519 @@ -9935,8 +11497,12 @@ case $host_os in
20520           hardcode_libdir_flag_spec_CXX='-L$libdir'
20521           hardcode_libdir_separator_CXX=
20522         fi
20523 +       ;;
20524        esac
20525        shared_flag='-shared'
20526 +      if test "$aix_use_runtimelinking" = yes; then
20527 +       shared_flag="$shared_flag "'${wl}-G'
20528 +      fi
20529      else
20530        # not using gcc
20531        if test "$host_cpu" = ia64; then
20532 @@ -9976,50 +11542,59 @@ main ()
20533  }
20534  _ACEOF
20535  rm -f conftest.$ac_objext conftest$ac_exeext
20536 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20537 -  (eval $ac_link) 2>conftest.er1
20538 +if { (ac_try="$ac_link"
20539 +case "(($ac_try" in
20540 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 +  *) ac_try_echo=$ac_try;;
20542 +esac
20543 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20544 +$as_echo "$ac_try_echo") >&5
20545 +  (eval "$ac_link") 2>conftest.er1
20546    ac_status=$?
20547    grep -v '^ *+' conftest.er1 >conftest.err
20548    rm -f conftest.er1
20549    cat conftest.err >&5
20550 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 -  (exit $ac_status); } &&
20552 -        { ac_try='test -z "$ac_cxx_werror_flag"
20553 -                        || test ! -s conftest.err'
20554 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 -  (eval $ac_try) 2>&5
20556 -  ac_status=$?
20557 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 -  (exit $ac_status); }; } &&
20559 -        { ac_try='test -s conftest$ac_exeext'
20560 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 -  (eval $ac_try) 2>&5
20562 -  ac_status=$?
20563 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 -  (exit $ac_status); }; }; then
20565 -
20566 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20567 -}'`
20568 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 +  (exit $ac_status); } && {
20570 +        test -z "$ac_cxx_werror_flag" ||
20571 +        test ! -s conftest.err
20572 +       } && test -s conftest$ac_exeext && {
20573 +        test "$cross_compiling" = yes ||
20574 +        $as_test_x conftest$ac_exeext
20575 +       }; then
20576 +
20577 +lt_aix_libpath_sed='
20578 +    /Import File Strings/,/^$/ {
20579 +       /^0/ {
20580 +           s/^0  *\(.*\)$/\1/
20581 +           p
20582 +       }
20583 +    }'
20584 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20585  # Check for a 64-bit object if we didn't find anything.
20586 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20587 -}'`; fi
20588 +if test -z "$aix_libpath"; then
20589 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20590 +fi
20591  else
20592 -  echo "$as_me: failed program was:" >&5
20593 +  $as_echo "$as_me: failed program was:" >&5
20594  sed 's/^/| /' conftest.$ac_ext >&5
20595  
20596 +
20597  fi
20598 -rm -f conftest.err conftest.$ac_objext \
20599 +
20600 +rm -rf conftest.dSYM
20601 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20602        conftest$ac_exeext conftest.$ac_ext
20603  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20604  
20605        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20606  
20607 -      archive_expsym_cmds_CXX="\$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"
20608 +      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20609       else
20610        if test "$host_cpu" = ia64; then
20611         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20612         allow_undefined_flag_CXX="-z nodefs"
20613 -       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
20614 +       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
20615        else
20616         # Determine the default libpath from the value encoded in an empty executable.
20617         cat >conftest.$ac_ext <<_ACEOF
20618 @@ -10038,39 +11613,48 @@ main ()
20619  }
20620  _ACEOF
20621  rm -f conftest.$ac_objext conftest$ac_exeext
20622 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20623 -  (eval $ac_link) 2>conftest.er1
20624 +if { (ac_try="$ac_link"
20625 +case "(($ac_try" in
20626 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 +  *) ac_try_echo=$ac_try;;
20628 +esac
20629 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20630 +$as_echo "$ac_try_echo") >&5
20631 +  (eval "$ac_link") 2>conftest.er1
20632    ac_status=$?
20633    grep -v '^ *+' conftest.er1 >conftest.err
20634    rm -f conftest.er1
20635    cat conftest.err >&5
20636 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 -  (exit $ac_status); } &&
20638 -        { ac_try='test -z "$ac_cxx_werror_flag"
20639 -                        || test ! -s conftest.err'
20640 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641 -  (eval $ac_try) 2>&5
20642 -  ac_status=$?
20643 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 -  (exit $ac_status); }; } &&
20645 -        { ac_try='test -s conftest$ac_exeext'
20646 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647 -  (eval $ac_try) 2>&5
20648 -  ac_status=$?
20649 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 -  (exit $ac_status); }; }; then
20651 -
20652 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20653 -}'`
20654 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 +  (exit $ac_status); } && {
20656 +        test -z "$ac_cxx_werror_flag" ||
20657 +        test ! -s conftest.err
20658 +       } && test -s conftest$ac_exeext && {
20659 +        test "$cross_compiling" = yes ||
20660 +        $as_test_x conftest$ac_exeext
20661 +       }; then
20662 +
20663 +lt_aix_libpath_sed='
20664 +    /Import File Strings/,/^$/ {
20665 +       /^0/ {
20666 +           s/^0  *\(.*\)$/\1/
20667 +           p
20668 +       }
20669 +    }'
20670 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20671  # Check for a 64-bit object if we didn't find anything.
20672 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20673 -}'`; fi
20674 +if test -z "$aix_libpath"; then
20675 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20676 +fi
20677  else
20678 -  echo "$as_me: failed program was:" >&5
20679 +  $as_echo "$as_me: failed program was:" >&5
20680  sed 's/^/| /' conftest.$ac_ext >&5
20681  
20682 +
20683  fi
20684 -rm -f conftest.err conftest.$ac_objext \
20685 +
20686 +rm -rf conftest.dSYM
20687 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20688        conftest$ac_exeext conftest.$ac_ext
20689  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20690  
20691 @@ -10079,16 +11663,26 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20692         # -berok will link without error, but may produce a broken library.
20693         no_undefined_flag_CXX=' ${wl}-bernotok'
20694         allow_undefined_flag_CXX=' ${wl}-berok'
20695 -       # -bexpall does not export symbols beginning with underscore (_)
20696 -       always_export_symbols_CXX=yes
20697         # Exported symbols can be pulled into shared objects from archives
20698 -       whole_archive_flag_spec_CXX=' '
20699 +       whole_archive_flag_spec_CXX='$convenience'
20700         archive_cmds_need_lc_CXX=yes
20701 -       # This is similar to how AIX traditionally builds it's shared libraries.
20702 -       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20703 +       # This is similar to how AIX traditionally builds its shared libraries.
20704 +       archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20705        fi
20706      fi
20707      ;;
20708 +
20709 +  beos*)
20710 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20711 +      allow_undefined_flag_CXX=unsupported
20712 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20713 +      # support --undefined.  This deserves some investigation.  FIXME
20714 +      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20715 +    else
20716 +      ld_shlibs_CXX=no
20717 +    fi
20718 +    ;;
20719 +
20720    chorus*)
20721      case $cc_basename in
20722        *)
20723 @@ -10107,7 +11701,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20724      enable_shared_with_static_runtimes_CXX=yes
20725  
20726      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20727 -      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20728 +      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20729        # If the export-symbols file already is a .def file (1st line
20730        # is EXPORTS), use it as is; otherwise, prepend...
20731        archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20732 @@ -10116,70 +11710,53 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20733         echo EXPORTS > $output_objdir/$soname.def;
20734         cat $export_symbols >> $output_objdir/$soname.def;
20735        fi~
20736 -      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20737 +      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20738      else
20739        ld_shlibs_CXX=no
20740      fi
20741    ;;
20742 -
20743 -  darwin* | rhapsody*)
20744 -  if test "$GXX" = yes; then
20745 -    archive_cmds_need_lc_CXX=no
20746 -    case "$host_os" in
20747 -    rhapsody* | darwin1.[012])
20748 -      allow_undefined_flag_CXX='-undefined suppress'
20749 -      ;;
20750 -    *) # Darwin 1.3 on
20751 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20752 -       allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
20753 +      darwin* | rhapsody*)
20754 +      archive_cmds_need_lc_CXX=no
20755 +      hardcode_direct_CXX=no
20756 +      hardcode_automatic_CXX=yes
20757 +      hardcode_shlibpath_var_CXX=unsupported
20758 +      whole_archive_flag_spec_CXX=''
20759 +      link_all_deplibs_CXX=yes
20760 +      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20761 +      if test "$GXX" = yes ; then
20762 +      output_verbose_link_cmd='echo'
20763 +      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20764 +      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20765 +      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20766 +      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
20767 +      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20768 +        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
20769 +        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
20770 +      fi
20771        else
20772 -        case ${MACOSX_DEPLOYMENT_TARGET} in
20773 -          10.[012])
20774 -            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
20775 -            ;;
20776 -          10.*)
20777 -            allow_undefined_flag_CXX='-undefined dynamic_lookup'
20778 -            ;;
20779 -        esac
20780 +      case $cc_basename in
20781 +        xlc*)
20782 +         output_verbose_link_cmd='echo'
20783 +          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20784 +          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20785 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20786 +          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20787 +          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20788 +          ;;
20789 +       *)
20790 +         ld_shlibs_CXX=no
20791 +          ;;
20792 +      esac
20793        fi
20794 -      ;;
20795 -    esac
20796 -    lt_int_apple_cc_single_mod=no
20797 -    output_verbose_link_cmd='echo'
20798 -    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20799 -      lt_int_apple_cc_single_mod=yes
20800 -    fi
20801 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20802 -      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20803 -    else
20804 -      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20805 -    fi
20806 -    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20807 -
20808 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20809 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20810 -      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20811 -    else
20812 -      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20813 -    fi
20814 -    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20815 -    hardcode_direct_CXX=no
20816 -    hardcode_automatic_CXX=yes
20817 -    hardcode_shlibpath_var_CXX=unsupported
20818 -    whole_archive_flag_spec_CXX='-all_load $convenience'
20819 -    link_all_deplibs_CXX=yes
20820 -  else
20821 -    ld_shlibs_CXX=no
20822 -  fi
20823 -    ;;
20824 +        ;;
20825  
20826    dgux*)
20827      case $cc_basename in
20828 -      ec++)
20829 +      ec++*)
20830         # FIXME: insert proper C++ library support
20831         ld_shlibs_CXX=no
20832         ;;
20833 -      ghcx)
20834 +      ghcx*)
20835         # Green Hills C++ Compiler
20836         # FIXME: insert proper C++ library support
20837         ld_shlibs_CXX=no
20838 @@ -10190,14 +11767,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20839         ;;
20840      esac
20841      ;;
20842 -  freebsd12*)
20843 +  freebsd[12]*)
20844      # C++ shared libraries reported to be fairly broken before switch to ELF
20845      ld_shlibs_CXX=no
20846      ;;
20847    freebsd-elf*)
20848      archive_cmds_need_lc_CXX=no
20849      ;;
20850 -  freebsd* | kfreebsd*-gnu)
20851 +  freebsd* | dragonfly*)
20852      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20853      # conventions
20854      ld_shlibs_CXX=yes
20855 @@ -10214,11 +11791,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20856                                 # location of the library.
20857  
20858      case $cc_basename in
20859 -    CC)
20860 +    CC*)
20861        # FIXME: insert proper C++ library support
20862        ld_shlibs_CXX=no
20863        ;;
20864 -    aCC)
20865 +    aCC*)
20866        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20867        # Commands to make compiler produce verbose output that lists
20868        # what "hidden" libraries, object files and flags are used when
20869 @@ -10228,7 +11805,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20870        # explicitly linking system object files so we need to strip them
20871        # from the output so that they don't get included in the library
20872        # dependencies.
20873 -      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20874 +      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20875        ;;
20876      *)
20877        if test "$GXX" = yes; then
20878 @@ -10242,33 +11819,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20879      ;;
20880    hpux10*|hpux11*)
20881      if test $with_gnu_ld = no; then
20882 -      case "$host_cpu" in
20883 -      hppa*64*)
20884 -       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20885 -       hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
20886 -       hardcode_libdir_separator_CXX=:
20887 -        ;;
20888 -      ia64*)
20889 -       hardcode_libdir_flag_spec_CXX='-L$libdir'
20890 -        ;;
20891 +      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20892 +      hardcode_libdir_separator_CXX=:
20893 +
20894 +      case $host_cpu in
20895 +      hppa*64*|ia64*) ;;
20896        *)
20897 -       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20898 -       hardcode_libdir_separator_CXX=:
20899         export_dynamic_flag_spec_CXX='${wl}-E'
20900          ;;
20901        esac
20902      fi
20903 -    case "$host_cpu" in
20904 -    hppa*64*)
20905 -      hardcode_direct_CXX=no
20906 -      hardcode_shlibpath_var_CXX=no
20907 -      ;;
20908 -    ia64*)
20909 +    case $host_cpu in
20910 +    hppa*64*|ia64*)
20911        hardcode_direct_CXX=no
20912        hardcode_shlibpath_var_CXX=no
20913 -      hardcode_minus_L_CXX=yes # Not in the search PATH,
20914 -                                             # but as the default
20915 -                                             # location of the library.
20916        ;;
20917      *)
20918        hardcode_direct_CXX=yes
20919 @@ -10279,14 +11843,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20920      esac
20921  
20922      case $cc_basename in
20923 -      CC)
20924 +      CC*)
20925         # FIXME: insert proper C++ library support
20926         ld_shlibs_CXX=no
20927         ;;
20928 -      aCC)
20929 -       case "$host_cpu" in
20930 -       hppa*64*|ia64*)
20931 -         archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
20932 +      aCC*)
20933 +       case $host_cpu in
20934 +       hppa*64*)
20935 +         archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20936 +         ;;
20937 +       ia64*)
20938 +         archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20939           ;;
20940         *)
20941           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20942 @@ -10305,9 +11872,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20943        *)
20944         if test "$GXX" = yes; then
20945           if test $with_gnu_ld = no; then
20946 -           case "$host_cpu" in
20947 -           ia64*|hppa*64*)
20948 -             archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
20949 +           case $host_cpu in
20950 +           hppa*64*)
20951 +             archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20952 +             ;;
20953 +           ia64*)
20954 +             archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20955               ;;
20956             *)
20957               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20958 @@ -10321,11 +11891,25 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20959         ;;
20960      esac
20961      ;;
20962 +  interix[3-9]*)
20963 +    hardcode_direct_CXX=no
20964 +    hardcode_shlibpath_var_CXX=no
20965 +    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20966 +    export_dynamic_flag_spec_CXX='${wl}-E'
20967 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20968 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
20969 +    # default) and relocated if they conflict, which is a slow very memory
20970 +    # consuming and fragmenting process.  To avoid this, we pick a random,
20971 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20972 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20973 +    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20974 +    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20975 +    ;;
20976    irix5* | irix6*)
20977      case $cc_basename in
20978 -      CC)
20979 +      CC*)
20980         # SGI C++
20981 -       archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
20982 +       archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20983  
20984         # Archives containing C++ object files must be created using
20985         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
20986 @@ -10336,7 +11920,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20987        *)
20988         if test "$GXX" = yes; then
20989           if test "$with_gnu_ld" = no; then
20990 -           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
20991 +           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20992           else
20993             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
20994           fi
20995 @@ -10347,9 +11931,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20996      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20997      hardcode_libdir_separator_CXX=:
20998      ;;
20999 -  linux*)
21000 +  linux* | k*bsd*-gnu)
21001      case $cc_basename in
21002 -      KCC)
21003 +      KCC*)
21004         # Kuck and Associates, Inc. (KAI) C++ Compiler
21005  
21006         # KCC will only create a shared library if the output file
21007 @@ -10374,17 +11958,41 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21008         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21009         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21010         ;;
21011 -      icpc)
21012 +      icpc*)
21013         # Intel C++
21014         with_gnu_ld=yes
21015 +       # version 8.0 and above of icpc choke on multiply defined symbols
21016 +       # if we add $predep_objects and $postdep_objects, however 7.1 and
21017 +       # earlier do not add the objects themselves.
21018 +       case `$CC -V 2>&1` in
21019 +       *"Version 7."*)
21020 +         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21021 +         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21022 +         ;;
21023 +       *)  # Version 8.0 or newer
21024 +         tmp_idyn=
21025 +         case $host_cpu in
21026 +           ia64*) tmp_idyn=' -i_dynamic';;
21027 +         esac
21028 +         archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21029 +         archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21030 +         ;;
21031 +       esac
21032         archive_cmds_need_lc_CXX=no
21033 -       archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21034 -       archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21035         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21036         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21037         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21038         ;;
21039 -      cxx)
21040 +      pgCC* | pgcpp*)
21041 +        # Portland Group C++ compiler
21042 +       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21043 +       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
21044 +
21045 +       hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21046 +       export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21047 +       whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21048 +        ;;
21049 +      cxx*)
21050         # Compaq C++
21051         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21052         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
21053 @@ -10403,6 +12011,29 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21054         # dependencies.
21055         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
21056         ;;
21057 +      *)
21058 +       case `$CC -V 2>&1 | sed 5q` in
21059 +       *Sun\ C*)
21060 +         # Sun C++ 5.9
21061 +         no_undefined_flag_CXX=' -zdefs'
21062 +         archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21063 +         archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
21064 +         hardcode_libdir_flag_spec_CXX='-R$libdir'
21065 +         whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21066 +
21067 +         # Not sure whether something based on
21068 +         # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21069 +         # would be better.
21070 +         output_verbose_link_cmd='echo'
21071 +
21072 +         # Archives containing C++ object files must be created using
21073 +         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21074 +         # necessary to make sure instantiated templates are included
21075 +         # in the archive.
21076 +         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21077 +         ;;
21078 +       esac
21079 +       ;;
21080      esac
21081      ;;
21082    lynxos*)
21083 @@ -10415,7 +12046,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21084      ;;
21085    mvs*)
21086      case $cc_basename in
21087 -      cxx)
21088 +      cxx*)
21089         # FIXME: insert proper C++ library support
21090         ld_shlibs_CXX=no
21091         ;;
21092 @@ -10425,7 +12056,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21093         ;;
21094      esac
21095      ;;
21096 -  netbsd*)
21097 +  netbsd* | netbsdelf*-gnu)
21098      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21099        archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21100        wlarc=
21101 @@ -10436,9 +12067,29 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21102      # Workaround some broken pre-1.5 toolchains
21103      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21104      ;;
21105 +  openbsd2*)
21106 +    # C++ shared libraries are fairly broken
21107 +    ld_shlibs_CXX=no
21108 +    ;;
21109 +  openbsd*)
21110 +    if test -f /usr/libexec/ld.so; then
21111 +      hardcode_direct_CXX=yes
21112 +      hardcode_shlibpath_var_CXX=no
21113 +      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21114 +      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21115 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21116 +       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21117 +       export_dynamic_flag_spec_CXX='${wl}-E'
21118 +       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21119 +      fi
21120 +      output_verbose_link_cmd='echo'
21121 +    else
21122 +      ld_shlibs_CXX=no
21123 +    fi
21124 +    ;;
21125    osf3*)
21126      case $cc_basename in
21127 -      KCC)
21128 +      KCC*)
21129         # Kuck and Associates, Inc. (KAI) C++ Compiler
21130  
21131         # KCC will only create a shared library if the output file
21132 @@ -10454,14 +12105,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21133         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21134  
21135         ;;
21136 -      RCC)
21137 +      RCC*)
21138         # Rational C++ 2.4.1
21139         # FIXME: insert proper C++ library support
21140         ld_shlibs_CXX=no
21141         ;;
21142 -      cxx)
21143 +      cxx*)
21144         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21145 -       archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
21146 +       archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21147  
21148         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21149         hardcode_libdir_separator_CXX=:
21150 @@ -10479,7 +12130,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21151        *)
21152         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21153           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21154 -         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
21155 +         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21156  
21157           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21158           hardcode_libdir_separator_CXX=:
21159 @@ -10498,7 +12149,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21160      ;;
21161    osf4* | osf5*)
21162      case $cc_basename in
21163 -      KCC)
21164 +      KCC*)
21165         # Kuck and Associates, Inc. (KAI) C++ Compiler
21166  
21167         # KCC will only create a shared library if the output file
21168 @@ -10513,17 +12164,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21169         # the KAI C++ compiler.
21170         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
21171         ;;
21172 -      RCC)
21173 +      RCC*)
21174         # Rational C++ 2.4.1
21175         # FIXME: insert proper C++ library support
21176         ld_shlibs_CXX=no
21177         ;;
21178 -      cxx)
21179 +      cxx*)
21180         allow_undefined_flag_CXX=' -expect_unresolved \*'
21181 -       archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
21182 +       archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21183         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21184           echo "-hidden">> $lib.exp~
21185 -         $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
21186 +         $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
21187           $rm $lib.exp'
21188  
21189         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21190 @@ -10542,7 +12193,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21191        *)
21192         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21193           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21194 -        archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
21195 +        archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21196  
21197           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21198           hardcode_libdir_separator_CXX=:
21199 @@ -10563,27 +12214,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21200      # FIXME: insert proper C++ library support
21201      ld_shlibs_CXX=no
21202      ;;
21203 -  sco*)
21204 -    archive_cmds_need_lc_CXX=no
21205 -    case $cc_basename in
21206 -      CC)
21207 -       # FIXME: insert proper C++ library support
21208 -       ld_shlibs_CXX=no
21209 -       ;;
21210 -      *)
21211 -       # FIXME: insert proper C++ library support
21212 -       ld_shlibs_CXX=no
21213 -       ;;
21214 -    esac
21215 -    ;;
21216    sunos4*)
21217      case $cc_basename in
21218 -      CC)
21219 +      CC*)
21220         # Sun C++ 4.x
21221         # FIXME: insert proper C++ library support
21222         ld_shlibs_CXX=no
21223         ;;
21224 -      lcc)
21225 +      lcc*)
21226         # Lucid
21227         # FIXME: insert proper C++ library support
21228         ld_shlibs_CXX=no
21229 @@ -10596,36 +12234,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21230      ;;
21231    solaris*)
21232      case $cc_basename in
21233 -      CC)
21234 +      CC*)
21235         # Sun C++ 4.2, 5.x and Centerline C++
21236 +        archive_cmds_need_lc_CXX=yes
21237         no_undefined_flag_CXX=' -zdefs'
21238 -       archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21239 +       archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21240         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21241 -       $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21242 +       $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21243  
21244         hardcode_libdir_flag_spec_CXX='-R$libdir'
21245         hardcode_shlibpath_var_CXX=no
21246         case $host_os in
21247 -         solaris2.0-5 | solaris2.0-5.*) ;;
21248 +         solaris2.[0-5] | solaris2.[0-5].*) ;;
21249           *)
21250 -           # The C++ compiler is used as linker so we must use $wl
21251 -           # flag to pass the commands to the underlying system
21252 -           # linker.
21253 +           # The compiler driver will combine and reorder linker options,
21254 +           # but understands `-z linker_flag'.
21255             # Supported since Solaris 2.6 (maybe 2.5.1?)
21256 -           whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21257 +           whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21258             ;;
21259         esac
21260         link_all_deplibs_CXX=yes
21261  
21262 -       # Commands to make compiler produce verbose output that lists
21263 -       # what "hidden" libraries, object files and flags are used when
21264 -       # linking a shared library.
21265 -       #
21266 -       # There doesn't appear to be a way to prevent this compiler from
21267 -       # explicitly linking system object files so we need to strip them
21268 -       # from the output so that they don't get included in the library
21269 -       # dependencies.
21270 -       output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
21271 +       output_verbose_link_cmd='echo'
21272  
21273         # Archives containing C++ object files must be created using
21274         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21275 @@ -10633,7 +12263,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21276         # in the archive.
21277         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21278         ;;
21279 -      gcx)
21280 +      gcx*)
21281         # Green Hills C++ Compiler
21282         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21283  
21284 @@ -10667,16 +12297,73 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21285           fi
21286  
21287           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21288 +         case $host_os in
21289 +         solaris2.[0-5] | solaris2.[0-5].*) ;;
21290 +         *)
21291 +           whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21292 +           ;;
21293 +         esac
21294         fi
21295         ;;
21296      esac
21297      ;;
21298 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21299 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21300 +    no_undefined_flag_CXX='${wl}-z,text'
21301 +    archive_cmds_need_lc_CXX=no
21302 +    hardcode_shlibpath_var_CXX=no
21303 +    runpath_var='LD_RUN_PATH'
21304 +
21305 +    case $cc_basename in
21306 +      CC*)
21307 +       archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21308 +       archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21309 +       ;;
21310 +      *)
21311 +       archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21312 +       archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21313 +       ;;
21314 +    esac
21315 +    ;;
21316 +  sysv5* | sco3.2v5* | sco5v6*)
21317 +    # Note: We can NOT use -z defs as we might desire, because we do not
21318 +    # link with -lc, and that would cause any symbols used from libc to
21319 +    # always be unresolved, which means just about no library would
21320 +    # ever link correctly.  If we're not using GNU ld we use -z text
21321 +    # though, which does catch some bad symbols but isn't as heavy-handed
21322 +    # as -z defs.
21323 +    # For security reasons, it is highly recommended that you always
21324 +    # use absolute paths for naming shared libraries, and exclude the
21325 +    # DT_RUNPATH tag from executables and libraries.  But doing so
21326 +    # requires that you compile everything twice, which is a pain.
21327 +    # So that behaviour is only enabled if SCOABSPATH is set to a
21328 +    # non-empty value in the environment.  Most likely only useful for
21329 +    # creating official distributions of packages.
21330 +    # This is a hack until libtool officially supports absolute path
21331 +    # names for shared libraries.
21332 +    no_undefined_flag_CXX='${wl}-z,text'
21333 +    allow_undefined_flag_CXX='${wl}-z,nodefs'
21334      archive_cmds_need_lc_CXX=no
21335 +    hardcode_shlibpath_var_CXX=no
21336 +    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21337 +    hardcode_libdir_separator_CXX=':'
21338 +    link_all_deplibs_CXX=yes
21339 +    export_dynamic_flag_spec_CXX='${wl}-Bexport'
21340 +    runpath_var='LD_RUN_PATH'
21341 +
21342 +    case $cc_basename in
21343 +      CC*)
21344 +       archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21345 +       archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21346 +       ;;
21347 +      *)
21348 +       archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21349 +       archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21350 +       ;;
21351 +    esac
21352      ;;
21353    tandem*)
21354      case $cc_basename in
21355 -      NCC)
21356 +      NCC*)
21357         # NonStop-UX NCC 3.20
21358         # FIXME: insert proper C++ library support
21359         ld_shlibs_CXX=no
21360 @@ -10696,14 +12383,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21361      ld_shlibs_CXX=no
21362      ;;
21363  esac
21364 -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21365 -echo "${ECHO_T}$ld_shlibs_CXX" >&6
21366 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21367 +$as_echo "$ld_shlibs_CXX" >&6; }
21368  test "$ld_shlibs_CXX" = no && can_build_shared=no
21369  
21370  GCC_CXX="$GXX"
21371  LD_CXX="$LD"
21372  
21373 -
21374  cat > conftest.$ac_ext <<EOF
21375  class Foo
21376  {
21377 @@ -10717,7 +12403,7 @@ EOF
21378  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21379    (eval $ac_compile) 2>&5
21380    ac_status=$?
21381 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383    (exit $ac_status); }; then
21384    # Parse the compiler output and extract the necessary
21385    # objects, libraries and library flags.
21386 @@ -10729,7 +12415,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21387    # The `*' in the case matches for architectures that use `case' in
21388    # $output_verbose_cmd can trigger glob expansion during the loop
21389    # eval without this substitution.
21390 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
21391 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
21392  
21393    for p in `eval $output_verbose_link_cmd`; do
21394      case $p in
21395 @@ -10805,6 +12491,66 @@ fi
21396  
21397  $rm -f confest.$objext
21398  
21399 +compiler_lib_search_dirs_CXX=
21400 +if test -n "$compiler_lib_search_path_CXX"; then
21401 +  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21402 +fi
21403 +
21404 +# PORTME: override above test on systems where it is broken
21405 +case $host_os in
21406 +interix[3-9]*)
21407 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
21408 +  # hack all around it, let's just trust "g++" to DTRT.
21409 +  predep_objects_CXX=
21410 +  postdep_objects_CXX=
21411 +  postdeps_CXX=
21412 +  ;;
21413 +
21414 +linux*)
21415 +  case `$CC -V 2>&1 | sed 5q` in
21416 +  *Sun\ C*)
21417 +    # Sun C++ 5.9
21418 +    #
21419 +    # The more standards-conforming stlport4 library is
21420 +    # incompatible with the Cstd library. Avoid specifying
21421 +    # it if it's in CXXFLAGS. Ignore libCrun as
21422 +    # -library=stlport4 depends on it.
21423 +    case " $CXX $CXXFLAGS " in
21424 +    *" -library=stlport4 "*)
21425 +      solaris_use_stlport4=yes
21426 +      ;;
21427 +    esac
21428 +    if test "$solaris_use_stlport4" != yes; then
21429 +      postdeps_CXX='-library=Cstd -library=Crun'
21430 +    fi
21431 +    ;;
21432 +  esac
21433 +  ;;
21434 +
21435 +solaris*)
21436 +  case $cc_basename in
21437 +  CC*)
21438 +    # The more standards-conforming stlport4 library is
21439 +    # incompatible with the Cstd library. Avoid specifying
21440 +    # it if it's in CXXFLAGS. Ignore libCrun as
21441 +    # -library=stlport4 depends on it.
21442 +    case " $CXX $CXXFLAGS " in
21443 +    *" -library=stlport4 "*)
21444 +      solaris_use_stlport4=yes
21445 +      ;;
21446 +    esac
21447 +
21448 +    # Adding this requires a known-good setup of shared libraries for
21449 +    # Sun compiler versions before 5.6, else PIC objects from an old
21450 +    # archive will be linked into the output, leading to subtle bugs.
21451 +    if test "$solaris_use_stlport4" != yes; then
21452 +      postdeps_CXX='-library=Cstd -library=Crun'
21453 +    fi
21454 +    ;;
21455 +  esac
21456 +  ;;
21457 +esac
21458 +
21459  case " $postdeps_CXX " in
21460  *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21461  esac
21462 @@ -10813,8 +12559,8 @@ lt_prog_compiler_wl_CXX=
21463  lt_prog_compiler_pic_CXX=
21464  lt_prog_compiler_static_CXX=
21465  
21466 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21467 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21468 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21469 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21470  
21471    # C++ specific cases for pic, static, wl, etc.
21472    if test "$GXX" = yes; then
21473 @@ -10835,12 +12581,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21474        # like `-m68040'.
21475        lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21476        ;;
21477 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21478 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21479        # PIC is the default for these OSes.
21480        ;;
21481 -    mingw* | os2* | pw32*)
21482 +    mingw* | cygwin* | os2* | pw32*)
21483        # This hack is so that the source file can tell whether it is being
21484        # built for inclusion in a dll (and should export symbols for example).
21485 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21486 +      # (--disable-auto-import) libraries
21487        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21488        ;;
21489      darwin* | rhapsody*)
21490 @@ -10852,6 +12600,10 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21491        # DJGPP does not support shared libraries at all
21492        lt_prog_compiler_pic_CXX=
21493        ;;
21494 +    interix[3-9]*)
21495 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21496 +      # Instead, we relocate shared libraries at runtime.
21497 +      ;;
21498      sysv4*MP*)
21499        if test -d /usr/nec; then
21500         lt_prog_compiler_pic_CXX=-Kconform_pic
21501 @@ -10860,7 +12612,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21502      hpux*)
21503        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21504        # not for PA HP-UX.
21505 -      case "$host_cpu" in
21506 +      case $host_cpu in
21507        hppa*64*|ia64*)
21508         ;;
21509        *)
21510 @@ -10874,7 +12626,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21511      esac
21512    else
21513      case $host_os in
21514 -      aix4* | aix5*)
21515 +      aix[4-9]*)
21516         # All AIX code is PIC.
21517         if test "$host_cpu" = ia64; then
21518           # AIX 5 now supports IA64 processor
21519 @@ -10885,18 +12637,28 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21520         ;;
21521        chorus*)
21522         case $cc_basename in
21523 -       cxch68)
21524 +       cxch68*)
21525           # Green Hills C++ Compiler
21526           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
21527           ;;
21528         esac
21529         ;;
21530 +       darwin*)
21531 +         # PIC is the default on this platform
21532 +         # Common symbols not allowed in MH_DYLIB files
21533 +         case $cc_basename in
21534 +           xlc*)
21535 +           lt_prog_compiler_pic_CXX='-qnocommon'
21536 +           lt_prog_compiler_wl_CXX='-Wl,'
21537 +           ;;
21538 +         esac
21539 +       ;;
21540        dgux*)
21541         case $cc_basename in
21542 -         ec++)
21543 +         ec++*)
21544             lt_prog_compiler_pic_CXX='-KPIC'
21545             ;;
21546 -         ghcx)
21547 +         ghcx*)
21548             # Green Hills C++ Compiler
21549             lt_prog_compiler_pic_CXX='-pic'
21550             ;;
21551 @@ -10904,22 +12666,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21552             ;;
21553         esac
21554         ;;
21555 -      freebsd* | kfreebsd*-gnu)
21556 +      freebsd* | dragonfly*)
21557         # FreeBSD uses GNU C++
21558         ;;
21559        hpux9* | hpux10* | hpux11*)
21560         case $cc_basename in
21561 -         CC)
21562 +         CC*)
21563             lt_prog_compiler_wl_CXX='-Wl,'
21564 -           lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
21565 +           lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21566             if test "$host_cpu" != ia64; then
21567               lt_prog_compiler_pic_CXX='+Z'
21568             fi
21569             ;;
21570 -         aCC)
21571 +         aCC*)
21572             lt_prog_compiler_wl_CXX='-Wl,'
21573 -           lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
21574 -           case "$host_cpu" in
21575 +           lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21576 +           case $host_cpu in
21577             hppa*64*|ia64*)
21578               # +Z the default
21579               ;;
21580 @@ -10932,9 +12694,13 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21581             ;;
21582         esac
21583         ;;
21584 +      interix*)
21585 +       # This is c89, which is MS Visual C++ (no shared libs)
21586 +       # Anyone wants to do a port?
21587 +       ;;
21588        irix5* | irix6* | nonstopux*)
21589         case $cc_basename in
21590 -         CC)
21591 +         CC*)
21592             lt_prog_compiler_wl_CXX='-Wl,'
21593             lt_prog_compiler_static_CXX='-non_shared'
21594             # CC pic flag -KPIC is the default.
21595 @@ -10943,20 +12709,26 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21596             ;;
21597         esac
21598         ;;
21599 -      linux*)
21600 +      linux* | k*bsd*-gnu)
21601         case $cc_basename in
21602 -         KCC)
21603 +         KCC*)
21604             # KAI C++ Compiler
21605             lt_prog_compiler_wl_CXX='--backend -Wl,'
21606             lt_prog_compiler_pic_CXX='-fPIC'
21607             ;;
21608 -         icpc)
21609 +         icpc* | ecpc*)
21610             # Intel C++
21611             lt_prog_compiler_wl_CXX='-Wl,'
21612             lt_prog_compiler_pic_CXX='-KPIC'
21613             lt_prog_compiler_static_CXX='-static'
21614             ;;
21615 -         cxx)
21616 +         pgCC* | pgcpp*)
21617 +           # Portland Group C++ compiler.
21618 +           lt_prog_compiler_wl_CXX='-Wl,'
21619 +           lt_prog_compiler_pic_CXX='-fpic'
21620 +           lt_prog_compiler_static_CXX='-Bstatic'
21621 +           ;;
21622 +         cxx*)
21623             # Compaq C++
21624             # Make sure the PIC flag is empty.  It appears that all Alpha
21625             # Linux and Compaq Tru64 Unix objects are PIC.
21626 @@ -10964,6 +12736,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21627             lt_prog_compiler_static_CXX='-non_shared'
21628             ;;
21629           *)
21630 +           case `$CC -V 2>&1 | sed 5q` in
21631 +           *Sun\ C*)
21632 +             # Sun C++ 5.9
21633 +             lt_prog_compiler_pic_CXX='-KPIC'
21634 +             lt_prog_compiler_static_CXX='-Bstatic'
21635 +             lt_prog_compiler_wl_CXX='-Qoption ld '
21636 +             ;;
21637 +           esac
21638             ;;
21639         esac
21640         ;;
21641 @@ -10973,25 +12753,25 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21642         ;;
21643        mvs*)
21644         case $cc_basename in
21645 -         cxx)
21646 +         cxx*)
21647             lt_prog_compiler_pic_CXX='-W c,exportall'
21648             ;;
21649           *)
21650             ;;
21651         esac
21652         ;;
21653 -      netbsd*)
21654 +      netbsd* | netbsdelf*-gnu)
21655         ;;
21656        osf3* | osf4* | osf5*)
21657         case $cc_basename in
21658 -         KCC)
21659 +         KCC*)
21660             lt_prog_compiler_wl_CXX='--backend -Wl,'
21661             ;;
21662 -         RCC)
21663 +         RCC*)
21664             # Rational C++ 2.4.1
21665             lt_prog_compiler_pic_CXX='-pic'
21666             ;;
21667 -         cxx)
21668 +         cxx*)
21669             # Digital/Compaq C++
21670             lt_prog_compiler_wl_CXX='-Wl,'
21671             # Make sure the PIC flag is empty.  It appears that all Alpha
21672 @@ -11005,24 +12785,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21673         ;;
21674        psos*)
21675         ;;
21676 -      sco*)
21677 -       case $cc_basename in
21678 -         CC)
21679 -           lt_prog_compiler_pic_CXX='-fPIC'
21680 -           ;;
21681 -         *)
21682 -           ;;
21683 -       esac
21684 -       ;;
21685        solaris*)
21686         case $cc_basename in
21687 -         CC)
21688 +         CC*)
21689             # Sun C++ 4.2, 5.x and Centerline C++
21690             lt_prog_compiler_pic_CXX='-KPIC'
21691             lt_prog_compiler_static_CXX='-Bstatic'
21692             lt_prog_compiler_wl_CXX='-Qoption ld '
21693             ;;
21694 -         gcx)
21695 +         gcx*)
21696             # Green Hills C++ Compiler
21697             lt_prog_compiler_pic_CXX='-PIC'
21698             ;;
21699 @@ -11032,12 +12803,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21700         ;;
21701        sunos4*)
21702         case $cc_basename in
21703 -         CC)
21704 +         CC*)
21705             # Sun C++ 4.x
21706             lt_prog_compiler_pic_CXX='-pic'
21707             lt_prog_compiler_static_CXX='-Bstatic'
21708             ;;
21709 -         lcc)
21710 +         lcc*)
21711             # Lucid
21712             lt_prog_compiler_pic_CXX='-pic'
21713             ;;
21714 @@ -11047,7 +12818,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21715         ;;
21716        tandem*)
21717         case $cc_basename in
21718 -         NCC)
21719 +         NCC*)
21720             # NonStop-UX NCC 3.20
21721             lt_prog_compiler_pic_CXX='-KPIC'
21722             ;;
21723 @@ -11055,7 +12826,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21724             ;;
21725         esac
21726         ;;
21727 -      unixware*)
21728 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21729 +       case $cc_basename in
21730 +         CC*)
21731 +           lt_prog_compiler_wl_CXX='-Wl,'
21732 +           lt_prog_compiler_pic_CXX='-KPIC'
21733 +           lt_prog_compiler_static_CXX='-Bstatic'
21734 +           ;;
21735 +       esac
21736         ;;
21737        vxworks*)
21738         ;;
21739 @@ -11065,22 +12843,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21740      esac
21741    fi
21742  
21743 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
21744 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
21745 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
21746 +$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21747  
21748  #
21749  # Check to make sure the PIC flag actually works.
21750  #
21751  if test -n "$lt_prog_compiler_pic_CXX"; then
21752  
21753 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21754 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
21755 -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
21756 -  echo $ECHO_N "(cached) $ECHO_C" >&6
21757 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21758 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21759 +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
21760 +  $as_echo_n "(cached) " >&6
21761  else
21762 -  lt_prog_compiler_pic_works_CXX=no
21763 +  lt_cv_prog_compiler_pic_works_CXX=no
21764    ac_outfile=conftest.$ac_objext
21765 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21766 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21767     lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21768     # Insert the option either (1) after the last *FLAGS variable, or
21769     # (2) before a word containing "conftest.", or (3) at the end.
21770 @@ -11088,28 +12866,30 @@ else
21771     # with a dollar sign (not a hyphen), so the echo should work correctly.
21772     # The option is referenced via a variable to avoid confusing sed.
21773     lt_compile=`echo "$ac_compile" | $SED \
21774 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21775 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21776     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21777     -e 's:$: $lt_compiler_flag:'`
21778 -   (eval echo "\"\$as_me:11094: $lt_compile\"" >&5)
21779 +   (eval echo "\"\$as_me:12872: $lt_compile\"" >&5)
21780     (eval "$lt_compile" 2>conftest.err)
21781     ac_status=$?
21782     cat conftest.err >&5
21783 -   echo "$as_me:11098: \$? = $ac_status" >&5
21784 +   echo "$as_me:12876: \$? = $ac_status" >&5
21785     if (exit $ac_status) && test -s "$ac_outfile"; then
21786       # The compiler can only warn and ignore the option if not recognized
21787 -     # So say no if there are warnings
21788 -     if test ! -s conftest.err; then
21789 -       lt_prog_compiler_pic_works_CXX=yes
21790 +     # So say no if there are warnings other than the usual output.
21791 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21792 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21793 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21794 +       lt_cv_prog_compiler_pic_works_CXX=yes
21795       fi
21796     fi
21797     $rm conftest*
21798  
21799  fi
21800 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
21801 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
21802 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21803 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21804  
21805 -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
21806 +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21807      case $lt_prog_compiler_pic_CXX in
21808       "" | " "*) ;;
21809       *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21810 @@ -11120,7 +12900,7 @@ else
21811  fi
21812  
21813  fi
21814 -case "$host_os" in
21815 +case $host_os in
21816    # For platforms which do not support PIC, -DPIC is meaningless:
21817    *djgpp*)
21818      lt_prog_compiler_pic_CXX=
21819 @@ -11130,17 +12910,59 @@ case "$host_os" in
21820      ;;
21821  esac
21822  
21823 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21824 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21825 +#
21826 +# Check to make sure the static flag actually works.
21827 +#
21828 +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21829 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21830 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21831 +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
21832 +  $as_echo_n "(cached) " >&6
21833 +else
21834 +  lt_cv_prog_compiler_static_works_CXX=no
21835 +   save_LDFLAGS="$LDFLAGS"
21836 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21837 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21838 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21839 +     # The linker can only warn and ignore the option if not recognized
21840 +     # So say no if there are warnings
21841 +     if test -s conftest.err; then
21842 +       # Append any errors to the config.log.
21843 +       cat conftest.err 1>&5
21844 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21845 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21846 +       if diff conftest.exp conftest.er2 >/dev/null; then
21847 +         lt_cv_prog_compiler_static_works_CXX=yes
21848 +       fi
21849 +     else
21850 +       lt_cv_prog_compiler_static_works_CXX=yes
21851 +     fi
21852 +   fi
21853 +   $rm -r conftest*
21854 +   LDFLAGS="$save_LDFLAGS"
21855 +
21856 +fi
21857 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21858 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21859 +
21860 +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21861 +    :
21862 +else
21863 +    lt_prog_compiler_static_CXX=
21864 +fi
21865 +
21866 +
21867 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21868 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21869  if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
21870 -  echo $ECHO_N "(cached) $ECHO_C" >&6
21871 +  $as_echo_n "(cached) " >&6
21872  else
21873    lt_cv_prog_compiler_c_o_CXX=no
21874     $rm -r conftest 2>/dev/null
21875     mkdir conftest
21876     cd conftest
21877     mkdir out
21878 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21879 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21880  
21881     lt_compiler_flag="-o out/conftest2.$ac_objext"
21882     # Insert the option either (1) after the last *FLAGS variable, or
21883 @@ -11148,23 +12970,25 @@ else
21884     # Note that $ac_compile itself does not contain backslashes and begins
21885     # with a dollar sign (not a hyphen), so the echo should work correctly.
21886     lt_compile=`echo "$ac_compile" | $SED \
21887 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21888 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21889     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21890     -e 's:$: $lt_compiler_flag:'`
21891 -   (eval echo "\"\$as_me:11154: $lt_compile\"" >&5)
21892 +   (eval echo "\"\$as_me:12976: $lt_compile\"" >&5)
21893     (eval "$lt_compile" 2>out/conftest.err)
21894     ac_status=$?
21895     cat out/conftest.err >&5
21896 -   echo "$as_me:11158: \$? = $ac_status" >&5
21897 +   echo "$as_me:12980: \$? = $ac_status" >&5
21898     if (exit $ac_status) && test -s out/conftest2.$ac_objext
21899     then
21900       # The compiler can only warn and ignore the option if not recognized
21901       # So say no if there are warnings
21902 -     if test ! -s out/conftest.err; then
21903 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21904 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21905 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21906         lt_cv_prog_compiler_c_o_CXX=yes
21907       fi
21908     fi
21909 -   chmod u+w .
21910 +   chmod u+w . 2>&5
21911     $rm conftest*
21912     # SGI C++ compiler will create directory out/ii_files/ for
21913     # template instantiation
21914 @@ -11175,38 +12999,38 @@ else
21915     $rm conftest*
21916  
21917  fi
21918 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21919 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
21920 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21921 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21922  
21923  
21924  hard_links="nottested"
21925  if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21926    # do not overwrite the value of need_locks provided by the user
21927 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21928 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21929 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21930 +$as_echo_n "checking if we can lock with hard links... " >&6; }
21931    hard_links=yes
21932    $rm conftest*
21933    ln conftest.a conftest.b 2>/dev/null && hard_links=no
21934    touch conftest.a
21935    ln conftest.a conftest.b 2>&5 || hard_links=no
21936    ln conftest.a conftest.b 2>/dev/null && hard_links=no
21937 -  echo "$as_me:$LINENO: result: $hard_links" >&5
21938 -echo "${ECHO_T}$hard_links" >&6
21939 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
21940 +$as_echo "$hard_links" >&6; }
21941    if test "$hard_links" = no; then
21942 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21943 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21944 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21945 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21946      need_locks=warn
21947    fi
21948  else
21949    need_locks=no
21950  fi
21951  
21952 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21953 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21954 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21955 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21956  
21957    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21958    case $host_os in
21959 -  aix4* | aix5*)
21960 +  aix[4-9]*)
21961      # If we're using GNU nm, then we don't want the "-C" option.
21962      # -C means demangle to AIX nm, but means don't demangle with GNU nm
21963      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21964 @@ -11219,22 +13043,21 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
21965      export_symbols_cmds_CXX="$ltdll_cmds"
21966    ;;
21967    cygwin* | mingw*)
21968 -    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21969 +    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21970 +  ;;
21971 +  linux* | k*bsd*-gnu)
21972 +    link_all_deplibs_CXX=no
21973    ;;
21974    *)
21975      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21976    ;;
21977    esac
21978 +  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21979  
21980 -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21981 -echo "${ECHO_T}$ld_shlibs_CXX" >&6
21982 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21983 +$as_echo "$ld_shlibs_CXX" >&6; }
21984  test "$ld_shlibs_CXX" = no && can_build_shared=no
21985  
21986 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21987 -if test "$GCC" = yes; then
21988 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21989 -fi
21990 -
21991  #
21992  # Do we need to explicitly link libc?
21993  #
21994 @@ -11252,21 +13075,22 @@ x|xyes)
21995        # Test whether the compiler implicitly links with -lc since on some
21996        # systems, -lgcc has to come before -lc. If gcc already passes -lc
21997        # to ld, don't add -lc before -lgcc.
21998 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21999 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22000 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22001 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22002        $rm conftest*
22003 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22004 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22005  
22006        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22007    (eval $ac_compile) 2>&5
22008    ac_status=$?
22009 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011    (exit $ac_status); } 2>conftest.err; then
22012          soname=conftest
22013          lib=conftest
22014          libobjs=conftest.$ac_objext
22015          deplibs=
22016          wl=$lt_prog_compiler_wl_CXX
22017 +       pic_flag=$lt_prog_compiler_pic_CXX
22018          compiler_flags=-v
22019          linker_flags=-v
22020          verstring=
22021 @@ -11277,7 +13101,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
22022          if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22023    (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22024    ac_status=$?
22025 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027    (exit $ac_status); }
22028          then
22029           archive_cmds_need_lc_CXX=no
22030 @@ -11289,16 +13113,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
22031          cat conftest.err 1>&5
22032        fi
22033        $rm conftest*
22034 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
22035 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
22036 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
22037 +$as_echo "$archive_cmds_need_lc_CXX" >&6; }
22038        ;;
22039      esac
22040    fi
22041    ;;
22042  esac
22043  
22044 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22045 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22046 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22047 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
22048  library_names_spec=
22049  libname_spec='lib$name'
22050  soname_spec=
22051 @@ -11312,20 +13136,7 @@ shlibpath_overrides_runpath=unknown
22052  version_type=none
22053  dynamic_linker="$host_os ld.so"
22054  sys_lib_dlsearch_path_spec="/lib /usr/lib"
22055 -if test "$GCC" = yes; then
22056 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22057 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22058 -    # if the path contains ";" then we assume it to be the separator
22059 -    # otherwise default to the standard path separator (i.e. ":") - it is
22060 -    # assumed that no part of a normal pathname contains ";" but that should
22061 -    # okay in the real world where ";" in dirpaths is itself problematic.
22062 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22063 -  else
22064 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22065 -  fi
22066 -else
22067 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22068 -fi
22069 +
22070  need_lib_prefix=unknown
22071  hardcode_into_libs=no
22072  
22073 @@ -11343,7 +13154,7 @@ aix3*)
22074    soname_spec='${libname}${release}${shared_ext}$major'
22075    ;;
22076  
22077 -aix4* | aix5*)
22078 +aix[4-9]*)
22079    version_type=linux
22080    need_lib_prefix=no
22081    need_version=no
22082 @@ -11399,7 +13210,7 @@ beos*)
22083    shlibpath_var=LIBRARY_PATH
22084    ;;
22085  
22086 -bsdi4*)
22087 +bsdi[45]*)
22088    version_type=linux
22089    need_version=no
22090    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22091 @@ -11427,7 +13238,8 @@ cygwin* | mingw* | pw32*)
22092        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22093        dldir=$destdir/`dirname \$dlpath`~
22094        test -d \$dldir || mkdir -p \$dldir~
22095 -      $install_prog $dir/$dlname \$dldir/$dlname'
22096 +      $install_prog $dir/$dlname \$dldir/$dlname~
22097 +      chmod a+x \$dldir/$dlname'
22098      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22099        dlpath=$dir/\$dldll~
22100         $rm \$dlpath'
22101 @@ -11457,7 +13269,7 @@ cygwin* | mingw* | pw32*)
22102        ;;
22103      pw32*)
22104        # pw32 DLLs use 'pw' prefix rather than 'lib'
22105 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22106 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22107        ;;
22108      esac
22109      ;;
22110 @@ -11480,13 +13292,8 @@ darwin* | rhapsody*)
22111    soname_spec='${libname}${release}${major}$shared_ext'
22112    shlibpath_overrides_runpath=yes
22113    shlibpath_var=DYLD_LIBRARY_PATH
22114 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22115 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22116 -  if test "$GCC" = yes; then
22117 -    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22118 -  else
22119 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22120 -  fi
22121 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22122 +
22123    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22124    ;;
22125  
22126 @@ -11503,20 +13310,17 @@ freebsd1*)
22127    dynamic_linker=no
22128    ;;
22129  
22130 -kfreebsd*-gnu)
22131 -  version_type=linux
22132 -  need_lib_prefix=no
22133 -  need_version=no
22134 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22135 -  soname_spec='${libname}${release}${shared_ext}$major'
22136 -  shlibpath_var=LD_LIBRARY_PATH
22137 -  shlibpath_overrides_runpath=no
22138 -  hardcode_into_libs=yes
22139 -  dynamic_linker='GNU ld.so'
22140 -  ;;
22141 -
22142 -freebsd*)
22143 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22144 +freebsd* | dragonfly*)
22145 +  # DragonFly does not have aout.  When/if they implement a new
22146 +  # versioning mechanism, adjust this.
22147 +  if test -x /usr/bin/objformat; then
22148 +    objformat=`/usr/bin/objformat`
22149 +  else
22150 +    case $host_os in
22151 +    freebsd[123]*) objformat=aout ;;
22152 +    *) objformat=elf ;;
22153 +    esac
22154 +  fi
22155    version_type=freebsd-$objformat
22156    case $version_type in
22157      freebsd-elf*)
22158 @@ -11534,14 +13338,19 @@ freebsd*)
22159    freebsd2*)
22160      shlibpath_overrides_runpath=yes
22161      ;;
22162 -  freebsd3.01* | freebsdelf3.01*)
22163 +  freebsd3.[01]* | freebsdelf3.[01]*)
22164      shlibpath_overrides_runpath=yes
22165      hardcode_into_libs=yes
22166      ;;
22167 -  *) # from 3.2 on
22168 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22169 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22170      shlibpath_overrides_runpath=no
22171      hardcode_into_libs=yes
22172      ;;
22173 +  *) # from 4.6 on, and DragonFly
22174 +    shlibpath_overrides_runpath=yes
22175 +    hardcode_into_libs=yes
22176 +    ;;
22177    esac
22178    ;;
22179  
22180 @@ -11561,7 +13370,7 @@ hpux9* | hpux10* | hpux11*)
22181    version_type=sunos
22182    need_lib_prefix=no
22183    need_version=no
22184 -  case "$host_cpu" in
22185 +  case $host_cpu in
22186    ia64*)
22187      shrext_cmds='.so'
22188      hardcode_into_libs=yes
22189 @@ -11601,6 +13410,18 @@ hpux9* | hpux10* | hpux11*)
22190    postinstall_cmds='chmod 555 $lib'
22191    ;;
22192  
22193 +interix[3-9]*)
22194 +  version_type=linux
22195 +  need_lib_prefix=no
22196 +  need_version=no
22197 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22198 +  soname_spec='${libname}${release}${shared_ext}$major'
22199 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22200 +  shlibpath_var=LD_LIBRARY_PATH
22201 +  shlibpath_overrides_runpath=no
22202 +  hardcode_into_libs=yes
22203 +  ;;
22204 +
22205  irix5* | irix6* | nonstopux*)
22206    case $host_os in
22207      nonstopux*) version_type=nonstopux ;;
22208 @@ -11644,7 +13465,7 @@ linux*oldld* | linux*aout* | linux*coff*)
22209    ;;
22210  
22211  # This must be Linux ELF.
22212 -linux*)
22213 +linux* | k*bsd*-gnu)
22214    version_type=linux
22215    need_lib_prefix=no
22216    need_version=no
22217 @@ -11658,31 +13479,10 @@ linux*)
22218    # before this can be enabled.
22219    hardcode_into_libs=yes
22220  
22221 -  # find out which ABI we are using
22222 -  libsuff=
22223 -  case "$host_cpu" in
22224 -  x86_64*|s390x*|powerpc64*)
22225 -    echo '#line 11665 "configure"' > conftest.$ac_ext
22226 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22227 -  (eval $ac_compile) 2>&5
22228 -  ac_status=$?
22229 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 -  (exit $ac_status); }; then
22231 -      case `/usr/bin/file conftest.$ac_objext` in
22232 -      *64-bit*)
22233 -        libsuff=64
22234 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22235 -        ;;
22236 -      esac
22237 -    fi
22238 -    rm -rf conftest*
22239 -    ;;
22240 -  esac
22241 -
22242    # Append ld.so.conf contents to the search path
22243    if test -f /etc/ld.so.conf; then
22244 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22245 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
22246 +    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[     ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22247 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22248    fi
22249  
22250    # We used to test for /lib/ld.so.1 and disable shared libraries on
22251 @@ -11694,7 +13494,7 @@ linux*)
22252    dynamic_linker='GNU/Linux ld.so'
22253    ;;
22254  
22255 -knetbsd*-gnu)
22256 +netbsdelf*-gnu)
22257    version_type=linux
22258    need_lib_prefix=no
22259    need_version=no
22260 @@ -11703,7 +13503,7 @@ knetbsd*-gnu)
22261    shlibpath_var=LD_LIBRARY_PATH
22262    shlibpath_overrides_runpath=no
22263    hardcode_into_libs=yes
22264 -  dynamic_linker='GNU ld.so'
22265 +  dynamic_linker='NetBSD ld.elf_so'
22266    ;;
22267  
22268  netbsd*)
22269 @@ -11743,8 +13543,13 @@ nto-qnx*)
22270  
22271  openbsd*)
22272    version_type=sunos
22273 +  sys_lib_dlsearch_path_spec="/usr/lib"
22274    need_lib_prefix=no
22275 -  need_version=yes
22276 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22277 +  case $host_os in
22278 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22279 +    *)                         need_version=no  ;;
22280 +  esac
22281    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22282    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22283    shlibpath_var=LD_LIBRARY_PATH
22284 @@ -11782,11 +13587,8 @@ osf3* | osf4* | osf5*)
22285    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22286    ;;
22287  
22288 -sco3.2v5*)
22289 -  version_type=osf
22290 -  soname_spec='${libname}${release}${shared_ext}$major'
22291 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22292 -  shlibpath_var=LD_LIBRARY_PATH
22293 +rdos*)
22294 +  dynamic_linker=no
22295    ;;
22296  
22297  solaris*)
22298 @@ -11814,7 +13616,7 @@ sunos4*)
22299    need_version=yes
22300    ;;
22301  
22302 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22303 +sysv4 | sysv4.3*)
22304    version_type=linux
22305    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22306    soname_spec='${libname}${release}${shared_ext}$major'
22307 @@ -11847,6 +13649,29 @@ sysv4*MP*)
22308    fi
22309    ;;
22310  
22311 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22312 +  version_type=freebsd-elf
22313 +  need_lib_prefix=no
22314 +  need_version=no
22315 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22316 +  soname_spec='${libname}${release}${shared_ext}$major'
22317 +  shlibpath_var=LD_LIBRARY_PATH
22318 +  hardcode_into_libs=yes
22319 +  if test "$with_gnu_ld" = yes; then
22320 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22321 +    shlibpath_overrides_runpath=no
22322 +  else
22323 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22324 +    shlibpath_overrides_runpath=yes
22325 +    case $host_os in
22326 +      sco3.2v5*)
22327 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22328 +       ;;
22329 +    esac
22330 +  fi
22331 +  sys_lib_dlsearch_path_spec='/usr/lib'
22332 +  ;;
22333 +
22334  uts4*)
22335    version_type=linux
22336    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22337 @@ -11858,16 +13683,36 @@ uts4*)
22338    dynamic_linker=no
22339    ;;
22340  esac
22341 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22342 -echo "${ECHO_T}$dynamic_linker" >&6
22343 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22344 +$as_echo "$dynamic_linker" >&6; }
22345  test "$dynamic_linker" = no && can_build_shared=no
22346  
22347 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22348 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22349 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22350 +  $as_echo_n "(cached) " >&6
22351 +else
22352 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
22353 +fi
22354 +
22355 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22356 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22357 +  $as_echo_n "(cached) " >&6
22358 +else
22359 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
22360 +fi
22361 +
22362 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22363 +
22364 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22365 +if test "$GCC" = yes; then
22366 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22367 +fi
22368 +
22369 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22370 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22371  hardcode_action_CXX=
22372  if test -n "$hardcode_libdir_flag_spec_CXX" || \
22373 -   test -n "$runpath_var CXX" || \
22374 -   test "X$hardcode_automatic_CXX"="Xyes" ; then
22375 +   test -n "$runpath_var_CXX" || \
22376 +   test "X$hardcode_automatic_CXX" = "Xyes" ; then
22377  
22378    # We can hardcode non-existant directories.
22379    if test "$hardcode_direct_CXX" != no &&
22380 @@ -11887,8 +13732,8 @@ else
22381    # directories.
22382    hardcode_action_CXX=unsupported
22383  fi
22384 -echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22385 -echo "${ECHO_T}$hardcode_action_CXX" >&6
22386 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22387 +$as_echo "$hardcode_action_CXX" >&6; }
22388  
22389  if test "$hardcode_action_CXX" = relink; then
22390    # Fast installation is not supported
22391 @@ -11899,841 +13744,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
22392    enable_fast_install=needless
22393  fi
22394  
22395 -striplib=
22396 -old_striplib=
22397 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22398 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22399 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22400 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22401 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22402 -  echo "$as_me:$LINENO: result: yes" >&5
22403 -echo "${ECHO_T}yes" >&6
22404 -else
22405 -# FIXME - insert some real tests, host_os isn't really good enough
22406 -  case $host_os in
22407 -   darwin*)
22408 -       if test -n "$STRIP" ; then
22409 -         striplib="$STRIP -x"
22410 -         echo "$as_me:$LINENO: result: yes" >&5
22411 -echo "${ECHO_T}yes" >&6
22412 -       else
22413 -  echo "$as_me:$LINENO: result: no" >&5
22414 -echo "${ECHO_T}no" >&6
22415 -fi
22416 -       ;;
22417 -   *)
22418 -  echo "$as_me:$LINENO: result: no" >&5
22419 -echo "${ECHO_T}no" >&6
22420 -    ;;
22421 -  esac
22422 -fi
22423 -
22424 -if test "x$enable_dlopen" != xyes; then
22425 -  enable_dlopen=unknown
22426 -  enable_dlopen_self=unknown
22427 -  enable_dlopen_self_static=unknown
22428 -else
22429 -  lt_cv_dlopen=no
22430 -  lt_cv_dlopen_libs=
22431 -
22432 -  case $host_os in
22433 -  beos*)
22434 -    lt_cv_dlopen="load_add_on"
22435 -    lt_cv_dlopen_libs=
22436 -    lt_cv_dlopen_self=yes
22437 -    ;;
22438 -
22439 -  mingw* | pw32*)
22440 -    lt_cv_dlopen="LoadLibrary"
22441 -    lt_cv_dlopen_libs=
22442 -   ;;
22443 -
22444 -  cygwin*)
22445 -    lt_cv_dlopen="dlopen"
22446 -    lt_cv_dlopen_libs=
22447 -   ;;
22448 -
22449 -  darwin*)
22450 -  # if libdl is installed we need to link against it
22451 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22452 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22453 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22454 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22455 -else
22456 -  ac_check_lib_save_LIBS=$LIBS
22457 -LIBS="-ldl  $LIBS"
22458 -cat >conftest.$ac_ext <<_ACEOF
22459 -/* confdefs.h.  */
22460 -_ACEOF
22461 -cat confdefs.h >>conftest.$ac_ext
22462 -cat >>conftest.$ac_ext <<_ACEOF
22463 -/* end confdefs.h.  */
22464 -
22465 -/* Override any gcc2 internal prototype to avoid an error.  */
22466 -#ifdef __cplusplus
22467 -extern "C"
22468 -#endif
22469 -/* We use char because int might match the return type of a gcc2
22470 -   builtin and then its argument prototype would still apply.  */
22471 -char dlopen ();
22472 -int
22473 -main ()
22474 -{
22475 -dlopen ();
22476 -  ;
22477 -  return 0;
22478 -}
22479 -_ACEOF
22480 -rm -f conftest.$ac_objext conftest$ac_exeext
22481 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22482 -  (eval $ac_link) 2>conftest.er1
22483 -  ac_status=$?
22484 -  grep -v '^ *+' conftest.er1 >conftest.err
22485 -  rm -f conftest.er1
22486 -  cat conftest.err >&5
22487 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 -  (exit $ac_status); } &&
22489 -        { ac_try='test -z "$ac_cxx_werror_flag"
22490 -                        || test ! -s conftest.err'
22491 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22492 -  (eval $ac_try) 2>&5
22493 -  ac_status=$?
22494 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 -  (exit $ac_status); }; } &&
22496 -        { ac_try='test -s conftest$ac_exeext'
22497 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498 -  (eval $ac_try) 2>&5
22499 -  ac_status=$?
22500 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 -  (exit $ac_status); }; }; then
22502 -  ac_cv_lib_dl_dlopen=yes
22503 -else
22504 -  echo "$as_me: failed program was:" >&5
22505 -sed 's/^/| /' conftest.$ac_ext >&5
22506 -
22507 -ac_cv_lib_dl_dlopen=no
22508 -fi
22509 -rm -f conftest.err conftest.$ac_objext \
22510 -      conftest$ac_exeext conftest.$ac_ext
22511 -LIBS=$ac_check_lib_save_LIBS
22512 -fi
22513 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22514 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22515 -if test $ac_cv_lib_dl_dlopen = yes; then
22516 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22517 -else
22518 -
22519 -    lt_cv_dlopen="dyld"
22520 -    lt_cv_dlopen_libs=
22521 -    lt_cv_dlopen_self=yes
22522 -
22523 -fi
22524 -
22525 -   ;;
22526 -
22527 -  *)
22528 -    echo "$as_me:$LINENO: checking for shl_load" >&5
22529 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22530 -if test "${ac_cv_func_shl_load+set}" = set; then
22531 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22532 -else
22533 -  cat >conftest.$ac_ext <<_ACEOF
22534 -/* confdefs.h.  */
22535 -_ACEOF
22536 -cat confdefs.h >>conftest.$ac_ext
22537 -cat >>conftest.$ac_ext <<_ACEOF
22538 -/* end confdefs.h.  */
22539 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22540 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22541 -#define shl_load innocuous_shl_load
22542 -
22543 -/* System header to define __stub macros and hopefully few prototypes,
22544 -    which can conflict with char shl_load (); below.
22545 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22546 -    <limits.h> exists even on freestanding compilers.  */
22547 -
22548 -#ifdef __STDC__
22549 -# include <limits.h>
22550 -#else
22551 -# include <assert.h>
22552 -#endif
22553 -
22554 -#undef shl_load
22555 -
22556 -/* Override any gcc2 internal prototype to avoid an error.  */
22557 -#ifdef __cplusplus
22558 -extern "C"
22559 -{
22560 -#endif
22561 -/* We use char because int might match the return type of a gcc2
22562 -   builtin and then its argument prototype would still apply.  */
22563 -char shl_load ();
22564 -/* The GNU C library defines this for functions which it implements
22565 -    to always fail with ENOSYS.  Some functions are actually named
22566 -    something starting with __ and the normal name is an alias.  */
22567 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
22568 -choke me
22569 -#else
22570 -char (*f) () = shl_load;
22571 -#endif
22572 -#ifdef __cplusplus
22573 -}
22574 -#endif
22575 -
22576 -int
22577 -main ()
22578 -{
22579 -return f != shl_load;
22580 -  ;
22581 -  return 0;
22582 -}
22583 -_ACEOF
22584 -rm -f conftest.$ac_objext conftest$ac_exeext
22585 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22586 -  (eval $ac_link) 2>conftest.er1
22587 -  ac_status=$?
22588 -  grep -v '^ *+' conftest.er1 >conftest.err
22589 -  rm -f conftest.er1
22590 -  cat conftest.err >&5
22591 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 -  (exit $ac_status); } &&
22593 -        { ac_try='test -z "$ac_cxx_werror_flag"
22594 -                        || test ! -s conftest.err'
22595 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596 -  (eval $ac_try) 2>&5
22597 -  ac_status=$?
22598 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 -  (exit $ac_status); }; } &&
22600 -        { ac_try='test -s conftest$ac_exeext'
22601 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602 -  (eval $ac_try) 2>&5
22603 -  ac_status=$?
22604 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 -  (exit $ac_status); }; }; then
22606 -  ac_cv_func_shl_load=yes
22607 -else
22608 -  echo "$as_me: failed program was:" >&5
22609 -sed 's/^/| /' conftest.$ac_ext >&5
22610 -
22611 -ac_cv_func_shl_load=no
22612 -fi
22613 -rm -f conftest.err conftest.$ac_objext \
22614 -      conftest$ac_exeext conftest.$ac_ext
22615 -fi
22616 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22617 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22618 -if test $ac_cv_func_shl_load = yes; then
22619 -  lt_cv_dlopen="shl_load"
22620 -else
22621 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22622 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22623 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22624 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22625 -else
22626 -  ac_check_lib_save_LIBS=$LIBS
22627 -LIBS="-ldld  $LIBS"
22628 -cat >conftest.$ac_ext <<_ACEOF
22629 -/* confdefs.h.  */
22630 -_ACEOF
22631 -cat confdefs.h >>conftest.$ac_ext
22632 -cat >>conftest.$ac_ext <<_ACEOF
22633 -/* end confdefs.h.  */
22634 -
22635 -/* Override any gcc2 internal prototype to avoid an error.  */
22636 -#ifdef __cplusplus
22637 -extern "C"
22638 -#endif
22639 -/* We use char because int might match the return type of a gcc2
22640 -   builtin and then its argument prototype would still apply.  */
22641 -char shl_load ();
22642 -int
22643 -main ()
22644 -{
22645 -shl_load ();
22646 -  ;
22647 -  return 0;
22648 -}
22649 -_ACEOF
22650 -rm -f conftest.$ac_objext conftest$ac_exeext
22651 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22652 -  (eval $ac_link) 2>conftest.er1
22653 -  ac_status=$?
22654 -  grep -v '^ *+' conftest.er1 >conftest.err
22655 -  rm -f conftest.er1
22656 -  cat conftest.err >&5
22657 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 -  (exit $ac_status); } &&
22659 -        { ac_try='test -z "$ac_cxx_werror_flag"
22660 -                        || test ! -s conftest.err'
22661 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22662 -  (eval $ac_try) 2>&5
22663 -  ac_status=$?
22664 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 -  (exit $ac_status); }; } &&
22666 -        { ac_try='test -s conftest$ac_exeext'
22667 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668 -  (eval $ac_try) 2>&5
22669 -  ac_status=$?
22670 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 -  (exit $ac_status); }; }; then
22672 -  ac_cv_lib_dld_shl_load=yes
22673 -else
22674 -  echo "$as_me: failed program was:" >&5
22675 -sed 's/^/| /' conftest.$ac_ext >&5
22676 -
22677 -ac_cv_lib_dld_shl_load=no
22678 -fi
22679 -rm -f conftest.err conftest.$ac_objext \
22680 -      conftest$ac_exeext conftest.$ac_ext
22681 -LIBS=$ac_check_lib_save_LIBS
22682 -fi
22683 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
22684 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
22685 -if test $ac_cv_lib_dld_shl_load = yes; then
22686 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
22687 -else
22688 -  echo "$as_me:$LINENO: checking for dlopen" >&5
22689 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
22690 -if test "${ac_cv_func_dlopen+set}" = set; then
22691 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22692 -else
22693 -  cat >conftest.$ac_ext <<_ACEOF
22694 -/* confdefs.h.  */
22695 -_ACEOF
22696 -cat confdefs.h >>conftest.$ac_ext
22697 -cat >>conftest.$ac_ext <<_ACEOF
22698 -/* end confdefs.h.  */
22699 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
22700 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22701 -#define dlopen innocuous_dlopen
22702 -
22703 -/* System header to define __stub macros and hopefully few prototypes,
22704 -    which can conflict with char dlopen (); below.
22705 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22706 -    <limits.h> exists even on freestanding compilers.  */
22707 -
22708 -#ifdef __STDC__
22709 -# include <limits.h>
22710 -#else
22711 -# include <assert.h>
22712 -#endif
22713 -
22714 -#undef dlopen
22715 -
22716 -/* Override any gcc2 internal prototype to avoid an error.  */
22717 -#ifdef __cplusplus
22718 -extern "C"
22719 -{
22720 -#endif
22721 -/* We use char because int might match the return type of a gcc2
22722 -   builtin and then its argument prototype would still apply.  */
22723 -char dlopen ();
22724 -/* The GNU C library defines this for functions which it implements
22725 -    to always fail with ENOSYS.  Some functions are actually named
22726 -    something starting with __ and the normal name is an alias.  */
22727 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
22728 -choke me
22729 -#else
22730 -char (*f) () = dlopen;
22731 -#endif
22732 -#ifdef __cplusplus
22733 -}
22734 -#endif
22735 -
22736 -int
22737 -main ()
22738 -{
22739 -return f != dlopen;
22740 -  ;
22741 -  return 0;
22742 -}
22743 -_ACEOF
22744 -rm -f conftest.$ac_objext conftest$ac_exeext
22745 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22746 -  (eval $ac_link) 2>conftest.er1
22747 -  ac_status=$?
22748 -  grep -v '^ *+' conftest.er1 >conftest.err
22749 -  rm -f conftest.er1
22750 -  cat conftest.err >&5
22751 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 -  (exit $ac_status); } &&
22753 -        { ac_try='test -z "$ac_cxx_werror_flag"
22754 -                        || test ! -s conftest.err'
22755 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 -  (eval $ac_try) 2>&5
22757 -  ac_status=$?
22758 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 -  (exit $ac_status); }; } &&
22760 -        { ac_try='test -s conftest$ac_exeext'
22761 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762 -  (eval $ac_try) 2>&5
22763 -  ac_status=$?
22764 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 -  (exit $ac_status); }; }; then
22766 -  ac_cv_func_dlopen=yes
22767 -else
22768 -  echo "$as_me: failed program was:" >&5
22769 -sed 's/^/| /' conftest.$ac_ext >&5
22770 -
22771 -ac_cv_func_dlopen=no
22772 -fi
22773 -rm -f conftest.err conftest.$ac_objext \
22774 -      conftest$ac_exeext conftest.$ac_ext
22775 -fi
22776 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
22777 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
22778 -if test $ac_cv_func_dlopen = yes; then
22779 -  lt_cv_dlopen="dlopen"
22780 -else
22781 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22782 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22783 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22784 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22785 -else
22786 -  ac_check_lib_save_LIBS=$LIBS
22787 -LIBS="-ldl  $LIBS"
22788 -cat >conftest.$ac_ext <<_ACEOF
22789 -/* confdefs.h.  */
22790 -_ACEOF
22791 -cat confdefs.h >>conftest.$ac_ext
22792 -cat >>conftest.$ac_ext <<_ACEOF
22793 -/* end confdefs.h.  */
22794 -
22795 -/* Override any gcc2 internal prototype to avoid an error.  */
22796 -#ifdef __cplusplus
22797 -extern "C"
22798 -#endif
22799 -/* We use char because int might match the return type of a gcc2
22800 -   builtin and then its argument prototype would still apply.  */
22801 -char dlopen ();
22802 -int
22803 -main ()
22804 -{
22805 -dlopen ();
22806 -  ;
22807 -  return 0;
22808 -}
22809 -_ACEOF
22810 -rm -f conftest.$ac_objext conftest$ac_exeext
22811 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22812 -  (eval $ac_link) 2>conftest.er1
22813 -  ac_status=$?
22814 -  grep -v '^ *+' conftest.er1 >conftest.err
22815 -  rm -f conftest.er1
22816 -  cat conftest.err >&5
22817 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 -  (exit $ac_status); } &&
22819 -        { ac_try='test -z "$ac_cxx_werror_flag"
22820 -                        || test ! -s conftest.err'
22821 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 -  (eval $ac_try) 2>&5
22823 -  ac_status=$?
22824 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 -  (exit $ac_status); }; } &&
22826 -        { ac_try='test -s conftest$ac_exeext'
22827 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 -  (eval $ac_try) 2>&5
22829 -  ac_status=$?
22830 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 -  (exit $ac_status); }; }; then
22832 -  ac_cv_lib_dl_dlopen=yes
22833 -else
22834 -  echo "$as_me: failed program was:" >&5
22835 -sed 's/^/| /' conftest.$ac_ext >&5
22836 -
22837 -ac_cv_lib_dl_dlopen=no
22838 -fi
22839 -rm -f conftest.err conftest.$ac_objext \
22840 -      conftest$ac_exeext conftest.$ac_ext
22841 -LIBS=$ac_check_lib_save_LIBS
22842 -fi
22843 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22844 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22845 -if test $ac_cv_lib_dl_dlopen = yes; then
22846 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22847 -else
22848 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
22849 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
22850 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
22851 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22852 -else
22853 -  ac_check_lib_save_LIBS=$LIBS
22854 -LIBS="-lsvld  $LIBS"
22855 -cat >conftest.$ac_ext <<_ACEOF
22856 -/* confdefs.h.  */
22857 -_ACEOF
22858 -cat confdefs.h >>conftest.$ac_ext
22859 -cat >>conftest.$ac_ext <<_ACEOF
22860 -/* end confdefs.h.  */
22861 -
22862 -/* Override any gcc2 internal prototype to avoid an error.  */
22863 -#ifdef __cplusplus
22864 -extern "C"
22865 -#endif
22866 -/* We use char because int might match the return type of a gcc2
22867 -   builtin and then its argument prototype would still apply.  */
22868 -char dlopen ();
22869 -int
22870 -main ()
22871 -{
22872 -dlopen ();
22873 -  ;
22874 -  return 0;
22875 -}
22876 -_ACEOF
22877 -rm -f conftest.$ac_objext conftest$ac_exeext
22878 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22879 -  (eval $ac_link) 2>conftest.er1
22880 -  ac_status=$?
22881 -  grep -v '^ *+' conftest.er1 >conftest.err
22882 -  rm -f conftest.er1
22883 -  cat conftest.err >&5
22884 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 -  (exit $ac_status); } &&
22886 -        { ac_try='test -z "$ac_cxx_werror_flag"
22887 -                        || test ! -s conftest.err'
22888 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 -  (eval $ac_try) 2>&5
22890 -  ac_status=$?
22891 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 -  (exit $ac_status); }; } &&
22893 -        { ac_try='test -s conftest$ac_exeext'
22894 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895 -  (eval $ac_try) 2>&5
22896 -  ac_status=$?
22897 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 -  (exit $ac_status); }; }; then
22899 -  ac_cv_lib_svld_dlopen=yes
22900 -else
22901 -  echo "$as_me: failed program was:" >&5
22902 -sed 's/^/| /' conftest.$ac_ext >&5
22903 -
22904 -ac_cv_lib_svld_dlopen=no
22905 -fi
22906 -rm -f conftest.err conftest.$ac_objext \
22907 -      conftest$ac_exeext conftest.$ac_ext
22908 -LIBS=$ac_check_lib_save_LIBS
22909 -fi
22910 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
22911 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
22912 -if test $ac_cv_lib_svld_dlopen = yes; then
22913 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22914 -else
22915 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
22916 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
22917 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
22918 -  echo $ECHO_N "(cached) $ECHO_C" >&6
22919 -else
22920 -  ac_check_lib_save_LIBS=$LIBS
22921 -LIBS="-ldld  $LIBS"
22922 -cat >conftest.$ac_ext <<_ACEOF
22923 -/* confdefs.h.  */
22924 -_ACEOF
22925 -cat confdefs.h >>conftest.$ac_ext
22926 -cat >>conftest.$ac_ext <<_ACEOF
22927 -/* end confdefs.h.  */
22928 -
22929 -/* Override any gcc2 internal prototype to avoid an error.  */
22930 -#ifdef __cplusplus
22931 -extern "C"
22932 -#endif
22933 -/* We use char because int might match the return type of a gcc2
22934 -   builtin and then its argument prototype would still apply.  */
22935 -char dld_link ();
22936 -int
22937 -main ()
22938 -{
22939 -dld_link ();
22940 -  ;
22941 -  return 0;
22942 -}
22943 -_ACEOF
22944 -rm -f conftest.$ac_objext conftest$ac_exeext
22945 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22946 -  (eval $ac_link) 2>conftest.er1
22947 -  ac_status=$?
22948 -  grep -v '^ *+' conftest.er1 >conftest.err
22949 -  rm -f conftest.er1
22950 -  cat conftest.err >&5
22951 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 -  (exit $ac_status); } &&
22953 -        { ac_try='test -z "$ac_cxx_werror_flag"
22954 -                        || test ! -s conftest.err'
22955 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 -  (eval $ac_try) 2>&5
22957 -  ac_status=$?
22958 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 -  (exit $ac_status); }; } &&
22960 -        { ac_try='test -s conftest$ac_exeext'
22961 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 -  (eval $ac_try) 2>&5
22963 -  ac_status=$?
22964 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 -  (exit $ac_status); }; }; then
22966 -  ac_cv_lib_dld_dld_link=yes
22967 -else
22968 -  echo "$as_me: failed program was:" >&5
22969 -sed 's/^/| /' conftest.$ac_ext >&5
22970 -
22971 -ac_cv_lib_dld_dld_link=no
22972 -fi
22973 -rm -f conftest.err conftest.$ac_objext \
22974 -      conftest$ac_exeext conftest.$ac_ext
22975 -LIBS=$ac_check_lib_save_LIBS
22976 -fi
22977 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
22978 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
22979 -if test $ac_cv_lib_dld_dld_link = yes; then
22980 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
22981 -fi
22982 -
22983 -
22984 -fi
22985 -
22986 -
22987 -fi
22988 -
22989 -
22990 -fi
22991 -
22992 -
22993 -fi
22994 -
22995 -
22996 -fi
22997 -
22998 -    ;;
22999 -  esac
23000 -
23001 -  if test "x$lt_cv_dlopen" != xno; then
23002 -    enable_dlopen=yes
23003 -  else
23004 -    enable_dlopen=no
23005 -  fi
23006 -
23007 -  case $lt_cv_dlopen in
23008 -  dlopen)
23009 -    save_CPPFLAGS="$CPPFLAGS"
23010 -    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23011 -
23012 -    save_LDFLAGS="$LDFLAGS"
23013 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23014 -
23015 -    save_LIBS="$LIBS"
23016 -    LIBS="$lt_cv_dlopen_libs $LIBS"
23017 -
23018 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23019 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23020 -if test "${lt_cv_dlopen_self+set}" = set; then
23021 -  echo $ECHO_N "(cached) $ECHO_C" >&6
23022 -else
23023 -         if test "$cross_compiling" = yes; then :
23024 -  lt_cv_dlopen_self=cross
23025 -else
23026 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23027 -  lt_status=$lt_dlunknown
23028 -  cat > conftest.$ac_ext <<EOF
23029 -#line 12536 "configure"
23030 -#include "confdefs.h"
23031 -
23032 -#if HAVE_DLFCN_H
23033 -#include <dlfcn.h>
23034 -#endif
23035 -
23036 -#include <stdio.h>
23037 -
23038 -#ifdef RTLD_GLOBAL
23039 -#  define LT_DLGLOBAL          RTLD_GLOBAL
23040 -#else
23041 -#  ifdef DL_GLOBAL
23042 -#    define LT_DLGLOBAL                DL_GLOBAL
23043 -#  else
23044 -#    define LT_DLGLOBAL                0
23045 -#  endif
23046 -#endif
23047 -
23048 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23049 -   find out it does not work in some platform. */
23050 -#ifndef LT_DLLAZY_OR_NOW
23051 -#  ifdef RTLD_LAZY
23052 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
23053 -#  else
23054 -#    ifdef DL_LAZY
23055 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
23056 -#    else
23057 -#      ifdef RTLD_NOW
23058 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
23059 -#      else
23060 -#        ifdef DL_NOW
23061 -#          define LT_DLLAZY_OR_NOW     DL_NOW
23062 -#        else
23063 -#          define LT_DLLAZY_OR_NOW     0
23064 -#        endif
23065 -#      endif
23066 -#    endif
23067 -#  endif
23068 -#endif
23069 -
23070 -#ifdef __cplusplus
23071 -extern "C" void exit (int);
23072 -#endif
23073 -
23074 -void fnord() { int i=42;}
23075 -int main ()
23076 -{
23077 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23078 -  int status = $lt_dlunknown;
23079 -
23080 -  if (self)
23081 -    {
23082 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23083 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23084 -      /* dlclose (self); */
23085 -    }
23086 -
23087 -    exit (status);
23088 -}
23089 -EOF
23090 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23091 -  (eval $ac_link) 2>&5
23092 -  ac_status=$?
23093 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23095 -    (./conftest; exit; ) 2>/dev/null
23096 -    lt_status=$?
23097 -    case x$lt_status in
23098 -      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23099 -      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23100 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23101 -    esac
23102 -  else :
23103 -    # compilation failed
23104 -    lt_cv_dlopen_self=no
23105 -  fi
23106 -fi
23107 -rm -fr conftest*
23108 -
23109 -
23110 -fi
23111 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23112 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23113 -
23114 -    if test "x$lt_cv_dlopen_self" = xyes; then
23115 -      LDFLAGS="$LDFLAGS $link_static_flag"
23116 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23117 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23118 -if test "${lt_cv_dlopen_self_static+set}" = set; then
23119 -  echo $ECHO_N "(cached) $ECHO_C" >&6
23120 -else
23121 -         if test "$cross_compiling" = yes; then :
23122 -  lt_cv_dlopen_self_static=cross
23123 -else
23124 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23125 -  lt_status=$lt_dlunknown
23126 -  cat > conftest.$ac_ext <<EOF
23127 -#line 12634 "configure"
23128 -#include "confdefs.h"
23129 -
23130 -#if HAVE_DLFCN_H
23131 -#include <dlfcn.h>
23132 -#endif
23133 -
23134 -#include <stdio.h>
23135 -
23136 -#ifdef RTLD_GLOBAL
23137 -#  define LT_DLGLOBAL          RTLD_GLOBAL
23138 -#else
23139 -#  ifdef DL_GLOBAL
23140 -#    define LT_DLGLOBAL                DL_GLOBAL
23141 -#  else
23142 -#    define LT_DLGLOBAL                0
23143 -#  endif
23144 -#endif
23145 -
23146 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23147 -   find out it does not work in some platform. */
23148 -#ifndef LT_DLLAZY_OR_NOW
23149 -#  ifdef RTLD_LAZY
23150 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
23151 -#  else
23152 -#    ifdef DL_LAZY
23153 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
23154 -#    else
23155 -#      ifdef RTLD_NOW
23156 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
23157 -#      else
23158 -#        ifdef DL_NOW
23159 -#          define LT_DLLAZY_OR_NOW     DL_NOW
23160 -#        else
23161 -#          define LT_DLLAZY_OR_NOW     0
23162 -#        endif
23163 -#      endif
23164 -#    endif
23165 -#  endif
23166 -#endif
23167 -
23168 -#ifdef __cplusplus
23169 -extern "C" void exit (int);
23170 -#endif
23171 -
23172 -void fnord() { int i=42;}
23173 -int main ()
23174 -{
23175 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23176 -  int status = $lt_dlunknown;
23177 -
23178 -  if (self)
23179 -    {
23180 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23181 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23182 -      /* dlclose (self); */
23183 -    }
23184 -
23185 -    exit (status);
23186 -}
23187 -EOF
23188 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23189 -  (eval $ac_link) 2>&5
23190 -  ac_status=$?
23191 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23193 -    (./conftest; exit; ) 2>/dev/null
23194 -    lt_status=$?
23195 -    case x$lt_status in
23196 -      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23197 -      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23198 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23199 -    esac
23200 -  else :
23201 -    # compilation failed
23202 -    lt_cv_dlopen_self_static=no
23203 -  fi
23204 -fi
23205 -rm -fr conftest*
23206 -
23207 -
23208 -fi
23209 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23210 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23211 -    fi
23212 -
23213 -    CPPFLAGS="$save_CPPFLAGS"
23214 -    LDFLAGS="$save_LDFLAGS"
23215 -    LIBS="$save_LIBS"
23216 -    ;;
23217 -  esac
23218 -
23219 -  case $lt_cv_dlopen_self in
23220 -  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23221 -  *) enable_dlopen_self=unknown ;;
23222 -  esac
23223 -
23224 -  case $lt_cv_dlopen_self_static in
23225 -  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23226 -  *) enable_dlopen_self_static=unknown ;;
23227 -  esac
23228 -fi
23229 -
23230  
23231  # The else clause should only fire when bootstrapping the
23232  # libtool distribution, otherwise you forgot to ship ltmain.sh
23233 @@ -12748,7 +13758,7 @@ if test -f "$ltmain"; then
23234    # Now quote all the things that may contain metacharacters while being
23235    # careful not to overquote the AC_SUBSTed values.  We take copies of the
23236    # variables and quote the copies for generation of the libtool script.
23237 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23238 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23239      SED SHELL STRIP \
23240      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23241      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23242 @@ -12775,6 +13785,7 @@ if test -f "$ltmain"; then
23243      predeps_CXX \
23244      postdeps_CXX \
23245      compiler_lib_search_path_CXX \
23246 +    compiler_lib_search_dirs_CXX \
23247      archive_cmds_CXX \
23248      archive_expsym_cmds_CXX \
23249      postinstall_cmds_CXX \
23250 @@ -12790,6 +13801,7 @@ if test -f "$ltmain"; then
23251      module_cmds_CXX \
23252      module_expsym_cmds_CXX \
23253      lt_cv_prog_compiler_c_o_CXX \
23254 +    fix_srcfile_path_CXX \
23255      exclude_expsyms_CXX \
23256      include_expsyms_CXX; do
23257  
23258 @@ -12849,6 +13861,12 @@ fast_install=$enable_fast_install
23259  # The host system.
23260  host_alias=$host_alias
23261  host=$host
23262 +host_os=$host_os
23263 +
23264 +# The build system.
23265 +build_alias=$build_alias
23266 +build=$build
23267 +build_os=$build_os
23268  
23269  # An echo program that does not interpret backslashes.
23270  echo=$lt_echo
23271 @@ -12860,6 +13878,9 @@ AR_FLAGS=$lt_AR_FLAGS
23272  # A C compiler.
23273  LTCC=$lt_LTCC
23274  
23275 +# LTCC compiler flags.
23276 +LTCFLAGS=$lt_LTCFLAGS
23277 +
23278  # A language-specific compiler.
23279  CC=$lt_compiler_CXX
23280  
23281 @@ -12925,7 +13946,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
23282  # Does compiler simultaneously support -c and -o options?
23283  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23284  
23285 -# Must we lock files when doing compilation ?
23286 +# Must we lock files when doing compilation?
23287  need_locks=$lt_need_locks
23288  
23289  # Do we need the lib prefix for modules?
23290 @@ -13013,6 +14034,10 @@ predeps=$lt_predeps_CXX
23291  # shared library.
23292  postdeps=$lt_postdeps_CXX
23293  
23294 +# The directories searched by this compiler when creating a shared
23295 +# library
23296 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23297 +
23298  # The library search path used internally by the compiler when linking
23299  # a shared library.
23300  compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23301 @@ -13101,7 +14126,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23302  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23303  
23304  # Fix the shell variable \$srcfile for the compiler.
23305 -fix_srcfile_path="$fix_srcfile_path_CXX"
23306 +fix_srcfile_path=$lt_fix_srcfile_path
23307  
23308  # Set to yes if exported symbols are required.
23309  always_export_symbols=$always_export_symbols_CXX
23310 @@ -13192,39 +14217,72 @@ objext=o
23311  objext_F77=$objext
23312  
23313  # Code to be used in simple compile tests
23314 -lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
23315 +lt_simple_compile_test_code="\
23316 +      subroutine t
23317 +      return
23318 +      end
23319 +"
23320  
23321  # Code to be used in simple link tests
23322 -lt_simple_link_test_code="      program t\n      end\n"
23323 +lt_simple_link_test_code="\
23324 +      program t
23325 +      end
23326 +"
23327  
23328  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23329  
23330  # If no C compiler was specified, use CC.
23331  LTCC=${LTCC-"$CC"}
23332  
23333 +# If no C compiler flags were specified, use CFLAGS.
23334 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23335 +
23336  # Allow CC to be a program name with arguments.
23337  compiler=$CC
23338  
23339  
23340 +# save warnings/boilerplate of simple test code
23341 +ac_outfile=conftest.$ac_objext
23342 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23343 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23344 +_lt_compiler_boilerplate=`cat conftest.err`
23345 +$rm conftest*
23346 +
23347 +ac_outfile=conftest.$ac_objext
23348 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
23349 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23350 +_lt_linker_boilerplate=`cat conftest.err`
23351 +$rm -r conftest*
23352 +
23353 +
23354  # Allow CC to be a program name with arguments.
23355  lt_save_CC="$CC"
23356  CC=${F77-"f77"}
23357  compiler=$CC
23358  compiler_F77=$CC
23359 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
23360 +for cc_temp in $compiler""; do
23361 +  case $cc_temp in
23362 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23363 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23364 +    \-*) ;;
23365 +    *) break;;
23366 +  esac
23367 +done
23368 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23369 +
23370  
23371 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
23372 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
23373 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
23374 -echo "${ECHO_T}$can_build_shared" >&6
23375 +{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
23376 +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
23377 +{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
23378 +$as_echo "$can_build_shared" >&6; }
23379  
23380 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
23381 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
23382 +{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
23383 +$as_echo_n "checking whether to build shared libraries... " >&6; }
23384  test "$can_build_shared" = "no" && enable_shared=no
23385  
23386  # On AIX, shared libraries and static libraries use the same namespace, and
23387  # are all built from PIC.
23388 -case "$host_os" in
23389 +case $host_os in
23390  aix3*)
23391    test "$enable_shared" = yes && enable_static=no
23392    if test -n "$RANLIB"; then
23393 @@ -13232,21 +14290,21 @@ aix3*)
23394      postinstall_cmds='$RANLIB $lib'
23395    fi
23396    ;;
23397 -aix4* | aix5*)
23398 -  test "$enable_shared" = yes && enable_static=no
23399 +aix[4-9]*)
23400 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23401 +    test "$enable_shared" = yes && enable_static=no
23402 +  fi
23403    ;;
23404  esac
23405 -echo "$as_me:$LINENO: result: $enable_shared" >&5
23406 -echo "${ECHO_T}$enable_shared" >&6
23407 +{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
23408 +$as_echo "$enable_shared" >&6; }
23409  
23410 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
23411 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
23412 +{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
23413 +$as_echo_n "checking whether to build static libraries... " >&6; }
23414  # Make sure either enable_shared or enable_static is yes.
23415  test "$enable_shared" = yes || enable_static=yes
23416 -echo "$as_me:$LINENO: result: $enable_static" >&5
23417 -echo "${ECHO_T}$enable_static" >&6
23418 -
23419 -test "$ld_shlibs_F77" = no && can_build_shared=no
23420 +{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
23421 +$as_echo "$enable_static" >&6; }
23422  
23423  GCC_F77="$G77"
23424  LD_F77="$LD"
23425 @@ -13255,8 +14313,8 @@ lt_prog_compiler_wl_F77=
23426  lt_prog_compiler_pic_F77=
23427  lt_prog_compiler_static_F77=
23428  
23429 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23430 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23431 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23432 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23433  
23434    if test "$GCC" = yes; then
23435      lt_prog_compiler_wl_F77='-Wl,'
23436 @@ -13278,13 +14336,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23437        lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
23438        ;;
23439  
23440 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23441 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23442        # PIC is the default for these OSes.
23443        ;;
23444  
23445 -    mingw* | pw32* | os2*)
23446 +    mingw* | cygwin* | pw32* | os2*)
23447        # This hack is so that the source file can tell whether it is being
23448        # built for inclusion in a dll (and should export symbols for example).
23449 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
23450 +      # (--disable-auto-import) libraries
23451        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23452        ;;
23453  
23454 @@ -13294,6 +14354,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23455        lt_prog_compiler_pic_F77='-fno-common'
23456        ;;
23457  
23458 +    interix[3-9]*)
23459 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23460 +      # Instead, we relocate shared libraries at runtime.
23461 +      ;;
23462 +
23463      msdosdjgpp*)
23464        # Just because we use GCC doesn't mean we suddenly get shared libraries
23465        # on systems that don't support them.
23466 @@ -13310,7 +14375,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23467      hpux*)
23468        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23469        # not for PA HP-UX.
23470 -      case "$host_cpu" in
23471 +      case $host_cpu in
23472        hppa*64*|ia64*)
23473         # +Z the default
23474         ;;
23475 @@ -13336,8 +14401,18 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23476         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
23477        fi
23478        ;;
23479 +      darwin*)
23480 +        # PIC is the default on this platform
23481 +        # Common symbols not allowed in MH_DYLIB files
23482 +       case $cc_basename in
23483 +         xlc*)
23484 +         lt_prog_compiler_pic_F77='-qnocommon'
23485 +         lt_prog_compiler_wl_F77='-Wl,'
23486 +         ;;
23487 +       esac
23488 +       ;;
23489  
23490 -    mingw* | pw32* | os2*)
23491 +    mingw* | cygwin* | pw32* | os2*)
23492        # This hack is so that the source file can tell whether it is being
23493        # built for inclusion in a dll (and should export symbols for example).
23494        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23495 @@ -13347,7 +14422,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23496        lt_prog_compiler_wl_F77='-Wl,'
23497        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23498        # not for PA HP-UX.
23499 -      case "$host_cpu" in
23500 +      case $host_cpu in
23501        hppa*64*|ia64*)
23502         # +Z the default
23503         ;;
23504 @@ -13370,18 +14445,41 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23505        lt_prog_compiler_static_F77='-Bstatic'
23506        ;;
23507  
23508 -    linux*)
23509 -      case $CC in
23510 +    linux* | k*bsd*-gnu)
23511 +      case $cc_basename in
23512        icc* | ecc*)
23513         lt_prog_compiler_wl_F77='-Wl,'
23514         lt_prog_compiler_pic_F77='-KPIC'
23515         lt_prog_compiler_static_F77='-static'
23516          ;;
23517 +      pgcc* | pgf77* | pgf90* | pgf95*)
23518 +        # Portland Group compilers (*not* the Pentium gcc compiler,
23519 +       # which looks to be a dead project)
23520 +       lt_prog_compiler_wl_F77='-Wl,'
23521 +       lt_prog_compiler_pic_F77='-fpic'
23522 +       lt_prog_compiler_static_F77='-Bstatic'
23523 +        ;;
23524        ccc*)
23525          lt_prog_compiler_wl_F77='-Wl,'
23526          # All Alpha code is PIC.
23527          lt_prog_compiler_static_F77='-non_shared'
23528          ;;
23529 +      *)
23530 +        case `$CC -V 2>&1 | sed 5q` in
23531 +       *Sun\ C*)
23532 +         # Sun C 5.9
23533 +         lt_prog_compiler_pic_F77='-KPIC'
23534 +         lt_prog_compiler_static_F77='-Bstatic'
23535 +         lt_prog_compiler_wl_F77='-Wl,'
23536 +         ;;
23537 +       *Sun\ F*)
23538 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
23539 +         lt_prog_compiler_pic_F77='-KPIC'
23540 +         lt_prog_compiler_static_F77='-Bstatic'
23541 +         lt_prog_compiler_wl_F77=''
23542 +         ;;
23543 +       esac
23544 +       ;;
23545        esac
23546        ;;
23547  
23548 @@ -13391,15 +14489,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23549        lt_prog_compiler_static_F77='-non_shared'
23550        ;;
23551  
23552 -    sco3.2v5*)
23553 -      lt_prog_compiler_pic_F77='-Kpic'
23554 -      lt_prog_compiler_static_F77='-dn'
23555 +    rdos*)
23556 +      lt_prog_compiler_static_F77='-non_shared'
23557        ;;
23558  
23559      solaris*)
23560 -      lt_prog_compiler_wl_F77='-Wl,'
23561        lt_prog_compiler_pic_F77='-KPIC'
23562        lt_prog_compiler_static_F77='-Bstatic'
23563 +      case $cc_basename in
23564 +      f77* | f90* | f95*)
23565 +       lt_prog_compiler_wl_F77='-Qoption ld ';;
23566 +      *)
23567 +       lt_prog_compiler_wl_F77='-Wl,';;
23568 +      esac
23569        ;;
23570  
23571      sunos4*)
23572 @@ -13408,7 +14510,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23573        lt_prog_compiler_static_F77='-Bstatic'
23574        ;;
23575  
23576 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23577 +    sysv4 | sysv4.2uw2* | sysv4.3*)
23578        lt_prog_compiler_wl_F77='-Wl,'
23579        lt_prog_compiler_pic_F77='-KPIC'
23580        lt_prog_compiler_static_F77='-Bstatic'
23581 @@ -13421,6 +14523,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23582        fi
23583        ;;
23584  
23585 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23586 +      lt_prog_compiler_wl_F77='-Wl,'
23587 +      lt_prog_compiler_pic_F77='-KPIC'
23588 +      lt_prog_compiler_static_F77='-Bstatic'
23589 +      ;;
23590 +
23591 +    unicos*)
23592 +      lt_prog_compiler_wl_F77='-Wl,'
23593 +      lt_prog_compiler_can_build_shared_F77=no
23594 +      ;;
23595 +
23596      uts4*)
23597        lt_prog_compiler_pic_F77='-pic'
23598        lt_prog_compiler_static_F77='-Bstatic'
23599 @@ -13432,22 +14545,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23600      esac
23601    fi
23602  
23603 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
23604 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
23605 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
23606 +$as_echo "$lt_prog_compiler_pic_F77" >&6; }
23607  
23608  #
23609  # Check to make sure the PIC flag actually works.
23610  #
23611  if test -n "$lt_prog_compiler_pic_F77"; then
23612  
23613 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
23614 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
23615 -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
23616 -  echo $ECHO_N "(cached) $ECHO_C" >&6
23617 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
23618 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
23619 +if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
23620 +  $as_echo_n "(cached) " >&6
23621  else
23622 -  lt_prog_compiler_pic_works_F77=no
23623 +  lt_cv_prog_compiler_pic_works_F77=no
23624    ac_outfile=conftest.$ac_objext
23625 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23626 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23627     lt_compiler_flag="$lt_prog_compiler_pic_F77"
23628     # Insert the option either (1) after the last *FLAGS variable, or
23629     # (2) before a word containing "conftest.", or (3) at the end.
23630 @@ -13455,28 +14568,30 @@ else
23631     # with a dollar sign (not a hyphen), so the echo should work correctly.
23632     # The option is referenced via a variable to avoid confusing sed.
23633     lt_compile=`echo "$ac_compile" | $SED \
23634 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
23635 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23636     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23637     -e 's:$: $lt_compiler_flag:'`
23638 -   (eval echo "\"\$as_me:13461: $lt_compile\"" >&5)
23639 +   (eval echo "\"\$as_me:14574: $lt_compile\"" >&5)
23640     (eval "$lt_compile" 2>conftest.err)
23641     ac_status=$?
23642     cat conftest.err >&5
23643 -   echo "$as_me:13465: \$? = $ac_status" >&5
23644 +   echo "$as_me:14578: \$? = $ac_status" >&5
23645     if (exit $ac_status) && test -s "$ac_outfile"; then
23646       # The compiler can only warn and ignore the option if not recognized
23647 -     # So say no if there are warnings
23648 -     if test ! -s conftest.err; then
23649 -       lt_prog_compiler_pic_works_F77=yes
23650 +     # So say no if there are warnings other than the usual output.
23651 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23652 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23653 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23654 +       lt_cv_prog_compiler_pic_works_F77=yes
23655       fi
23656     fi
23657     $rm conftest*
23658  
23659  fi
23660 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
23661 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
23662 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
23663 +$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
23664  
23665 -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
23666 +if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
23667      case $lt_prog_compiler_pic_F77 in
23668       "" | " "*) ;;
23669       *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
23670 @@ -13487,7 +14602,7 @@ else
23671  fi
23672  
23673  fi
23674 -case "$host_os" in
23675 +case $host_os in
23676    # For platforms which do not support PIC, -DPIC is meaningless:
23677    *djgpp*)
23678      lt_prog_compiler_pic_F77=
23679 @@ -13497,17 +14612,59 @@ case "$host_os" in
23680      ;;
23681  esac
23682  
23683 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23684 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23685 +#
23686 +# Check to make sure the static flag actually works.
23687 +#
23688 +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
23689 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23690 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23691 +if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
23692 +  $as_echo_n "(cached) " >&6
23693 +else
23694 +  lt_cv_prog_compiler_static_works_F77=no
23695 +   save_LDFLAGS="$LDFLAGS"
23696 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23697 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
23698 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23699 +     # The linker can only warn and ignore the option if not recognized
23700 +     # So say no if there are warnings
23701 +     if test -s conftest.err; then
23702 +       # Append any errors to the config.log.
23703 +       cat conftest.err 1>&5
23704 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23705 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23706 +       if diff conftest.exp conftest.er2 >/dev/null; then
23707 +         lt_cv_prog_compiler_static_works_F77=yes
23708 +       fi
23709 +     else
23710 +       lt_cv_prog_compiler_static_works_F77=yes
23711 +     fi
23712 +   fi
23713 +   $rm -r conftest*
23714 +   LDFLAGS="$save_LDFLAGS"
23715 +
23716 +fi
23717 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
23718 +$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
23719 +
23720 +if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
23721 +    :
23722 +else
23723 +    lt_prog_compiler_static_F77=
23724 +fi
23725 +
23726 +
23727 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23728 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23729  if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
23730 -  echo $ECHO_N "(cached) $ECHO_C" >&6
23731 +  $as_echo_n "(cached) " >&6
23732  else
23733    lt_cv_prog_compiler_c_o_F77=no
23734     $rm -r conftest 2>/dev/null
23735     mkdir conftest
23736     cd conftest
23737     mkdir out
23738 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23739 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23740  
23741     lt_compiler_flag="-o out/conftest2.$ac_objext"
23742     # Insert the option either (1) after the last *FLAGS variable, or
23743 @@ -13515,23 +14672,25 @@ else
23744     # Note that $ac_compile itself does not contain backslashes and begins
23745     # with a dollar sign (not a hyphen), so the echo should work correctly.
23746     lt_compile=`echo "$ac_compile" | $SED \
23747 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
23748 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23749     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23750     -e 's:$: $lt_compiler_flag:'`
23751 -   (eval echo "\"\$as_me:13521: $lt_compile\"" >&5)
23752 +   (eval echo "\"\$as_me:14678: $lt_compile\"" >&5)
23753     (eval "$lt_compile" 2>out/conftest.err)
23754     ac_status=$?
23755     cat out/conftest.err >&5
23756 -   echo "$as_me:13525: \$? = $ac_status" >&5
23757 +   echo "$as_me:14682: \$? = $ac_status" >&5
23758     if (exit $ac_status) && test -s out/conftest2.$ac_objext
23759     then
23760       # The compiler can only warn and ignore the option if not recognized
23761       # So say no if there are warnings
23762 -     if test ! -s out/conftest.err; then
23763 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23764 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23765 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23766         lt_cv_prog_compiler_c_o_F77=yes
23767       fi
23768     fi
23769 -   chmod u+w .
23770 +   chmod u+w . 2>&5
23771     $rm conftest*
23772     # SGI C++ compiler will create directory out/ii_files/ for
23773     # template instantiation
23774 @@ -13542,34 +14701,34 @@ else
23775     $rm conftest*
23776  
23777  fi
23778 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
23779 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
23780 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
23781 +$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
23782  
23783  
23784  hard_links="nottested"
23785  if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
23786    # do not overwrite the value of need_locks provided by the user
23787 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23788 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23789 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23790 +$as_echo_n "checking if we can lock with hard links... " >&6; }
23791    hard_links=yes
23792    $rm conftest*
23793    ln conftest.a conftest.b 2>/dev/null && hard_links=no
23794    touch conftest.a
23795    ln conftest.a conftest.b 2>&5 || hard_links=no
23796    ln conftest.a conftest.b 2>/dev/null && hard_links=no
23797 -  echo "$as_me:$LINENO: result: $hard_links" >&5
23798 -echo "${ECHO_T}$hard_links" >&6
23799 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
23800 +$as_echo "$hard_links" >&6; }
23801    if test "$hard_links" = no; then
23802 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23803 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23804 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23805 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23806      need_locks=warn
23807    fi
23808  else
23809    need_locks=no
23810  fi
23811  
23812 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23813 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
23814 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23815 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23816  
23817    runpath_var=
23818    allow_undefined_flag_F77=
23819 @@ -13600,13 +14759,24 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
23820    # it will be wrapped by ` (' and `)$', so one must not match beginning or
23821    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23822    # as well as any symbol that contains `d'.
23823 -  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
23824 +  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23825    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23826    # platforms (ab)use it in PIC code, but their linkers get confused if
23827    # the symbol is explicitly referenced.  Since portable code cannot
23828    # rely on this symbol name, it's probably fine to never include it in
23829    # preloaded symbol tables.
23830 +  # Exclude shared library initialization/finalization symbols.
23831    extract_expsyms_cmds=
23832 +  # Just being paranoid about ensuring that cc_basename is set.
23833 +  for cc_temp in $compiler""; do
23834 +  case $cc_temp in
23835 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23836 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23837 +    \-*) ;;
23838 +    *) break;;
23839 +  esac
23840 +done
23841 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23842  
23843    case $host_os in
23844    cygwin* | mingw* | pw32*)
23845 @@ -13617,6 +14787,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
23846        with_gnu_ld=no
23847      fi
23848      ;;
23849 +  interix*)
23850 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
23851 +    with_gnu_ld=yes
23852 +    ;;
23853    openbsd*)
23854      with_gnu_ld=no
23855      ;;
23856 @@ -13627,9 +14801,30 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
23857      # If archive_cmds runs LD, not CC, wlarc should be empty
23858      wlarc='${wl}'
23859  
23860 +    # Set some defaults for GNU ld with shared library support. These
23861 +    # are reset later if shared libraries are not supported. Putting them
23862 +    # here allows them to be overridden if necessary.
23863 +    runpath_var=LD_RUN_PATH
23864 +    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
23865 +    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
23866 +    # ancient GNU ld didn't support --whole-archive et. al.
23867 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23868 +       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23869 +      else
23870 +       whole_archive_flag_spec_F77=
23871 +    fi
23872 +    supports_anon_versioning=no
23873 +    case `$LD -v 2>/dev/null` in
23874 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23875 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23876 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23877 +      *\ 2.11.*) ;; # other 2.11 versions
23878 +      *) supports_anon_versioning=yes ;;
23879 +    esac
23880 +
23881      # See if GNU ld supports shared libraries.
23882      case $host_os in
23883 -    aix3* | aix4* | aix5*)
23884 +    aix[3-9]*)
23885        # On AIX/PPC, the GNU linker is very broken
23886        if test "$host_cpu" != ia64; then
23887         ld_shlibs_F77=no
23888 @@ -13677,10 +14872,10 @@ EOF
23889        allow_undefined_flag_F77=unsupported
23890        always_export_symbols_F77=no
23891        enable_shared_with_static_runtimes_F77=yes
23892 -      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23893 +      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23894  
23895        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23896 -        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
23897 +        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23898         # If the export-symbols file already is a .def file (1st line
23899         # is EXPORTS), use it as is; otherwise, prepend...
23900         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23901 @@ -13689,13 +14884,69 @@ EOF
23902           echo EXPORTS > $output_objdir/$soname.def;
23903           cat $export_symbols >> $output_objdir/$soname.def;
23904         fi~
23905 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
23906 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23907        else
23908 -       ld_shlibs=no
23909 +       ld_shlibs_F77=no
23910        fi
23911        ;;
23912  
23913 -    netbsd*)
23914 +    interix[3-9]*)
23915 +      hardcode_direct_F77=no
23916 +      hardcode_shlibpath_var_F77=no
23917 +      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23918 +      export_dynamic_flag_spec_F77='${wl}-E'
23919 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23920 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
23921 +      # default) and relocated if they conflict, which is a slow very memory
23922 +      # consuming and fragmenting process.  To avoid this, we pick a random,
23923 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23924 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23925 +      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
23926 +      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
23927 +      ;;
23928 +
23929 +    gnu* | linux* | k*bsd*-gnu)
23930 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23931 +       tmp_addflag=
23932 +       case $cc_basename,$host_cpu in
23933 +       pgcc*)                          # Portland Group C compiler
23934 +         whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
23935 +         tmp_addflag=' $pic_flag'
23936 +         ;;
23937 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23938 +         whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
23939 +         tmp_addflag=' $pic_flag -Mnomain' ;;
23940 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23941 +         tmp_addflag=' -i_dynamic' ;;
23942 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23943 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
23944 +       ifc* | ifort*)                  # Intel Fortran compiler
23945 +         tmp_addflag=' -nofor_main' ;;
23946 +       esac
23947 +       case `$CC -V 2>&1 | sed 5q` in
23948 +       *Sun\ C*)                       # Sun C 5.9
23949 +         whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
23950 +         tmp_sharedflag='-G' ;;
23951 +       *Sun\ F*)                       # Sun Fortran 8.3
23952 +         tmp_sharedflag='-G' ;;
23953 +       *)
23954 +         tmp_sharedflag='-shared' ;;
23955 +       esac
23956 +       archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23957 +
23958 +       if test $supports_anon_versioning = yes; then
23959 +         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
23960 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23961 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
23962 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23963 +       fi
23964 +       link_all_deplibs_F77=no
23965 +      else
23966 +       ld_shlibs_F77=no
23967 +      fi
23968 +      ;;
23969 +
23970 +    netbsd* | netbsdelf*-gnu)
23971        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23972         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23973         wlarc=
23974 @@ -13705,7 +14956,7 @@ EOF
23975        fi
23976        ;;
23977  
23978 -    solaris* | sysv5*)
23979 +    solaris*)
23980        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23981         ld_shlibs_F77=no
23982         cat <<EOF 1>&2
23983 @@ -13726,6 +14977,33 @@ EOF
23984        fi
23985        ;;
23986  
23987 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23988 +      case `$LD -v 2>&1` in
23989 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23990 +       ld_shlibs_F77=no
23991 +       cat <<_LT_EOF 1>&2
23992 +
23993 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23994 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
23995 +*** is disabling shared libraries support.  We urge you to upgrade GNU
23996 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23997 +*** your PATH or compiler configuration so that the native linker is
23998 +*** used, and then restart.
23999 +
24000 +_LT_EOF
24001 +       ;;
24002 +       *)
24003 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24004 +           hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24005 +           archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24006 +           archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24007 +         else
24008 +           ld_shlibs_F77=no
24009 +         fi
24010 +       ;;
24011 +      esac
24012 +      ;;
24013 +
24014      sunos4*)
24015        archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24016        wlarc=
24017 @@ -13733,31 +15011,6 @@ EOF
24018        hardcode_shlibpath_var_F77=no
24019        ;;
24020  
24021 -  linux*)
24022 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24023 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24024 -       archive_cmds_F77="$tmp_archive_cmds"
24025 -      supports_anon_versioning=no
24026 -      case `$LD -v 2>/dev/null` in
24027 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24028 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24029 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24030 -        *\ 2.11.*) ;; # other 2.11 versions
24031 -        *) supports_anon_versioning=yes ;;
24032 -      esac
24033 -      if test $supports_anon_versioning = yes; then
24034 -        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
24035 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24036 -$echo "local: *; };" >> $output_objdir/$libname.ver~
24037 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24038 -      else
24039 -        archive_expsym_cmds_F77="$tmp_archive_cmds"
24040 -      fi
24041 -    else
24042 -      ld_shlibs_F77=no
24043 -    fi
24044 -    ;;
24045 -
24046      *)
24047        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24048         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24049 @@ -13768,16 +15021,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
24050        ;;
24051      esac
24052  
24053 -    if test "$ld_shlibs_F77" = yes; then
24054 -      runpath_var=LD_RUN_PATH
24055 -      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
24056 -      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
24057 -      # ancient GNU ld didn't support --whole-archive et. al.
24058 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24059 -       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24060 -      else
24061 -       whole_archive_flag_spec_F77=
24062 -      fi
24063 +    if test "$ld_shlibs_F77" = no; then
24064 +      runpath_var=
24065 +      hardcode_libdir_flag_spec_F77=
24066 +      export_dynamic_flag_spec_F77=
24067 +      whole_archive_flag_spec_F77=
24068      fi
24069    else
24070      # PORTME fill in a description of your system's linker (not GNU ld)
24071 @@ -13789,14 +15037,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
24072        # Note: this linker hardcodes the directories in LIBPATH if there
24073        # are no directories specified by -L.
24074        hardcode_minus_L_F77=yes
24075 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
24076 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24077         # Neither direct hardcoding nor static linking is supported with a
24078         # broken collect2.
24079         hardcode_direct_F77=unsupported
24080        fi
24081        ;;
24082  
24083 -    aix4* | aix5*)
24084 +    aix[4-9]*)
24085        if test "$host_cpu" = ia64; then
24086         # On IA64, the linker does run time linking by default, so we don't
24087         # have to do anything special.
24088 @@ -13816,13 +15064,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
24089         # Test if we are trying to use run time linking or normal
24090         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24091         # need to do runtime linking.
24092 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24093 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
24094           for ld_flag in $LDFLAGS; do
24095           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24096             aix_use_runtimelinking=yes
24097             break
24098           fi
24099           done
24100 +         ;;
24101         esac
24102  
24103         exp_sym_flag='-bexport'
24104 @@ -13841,7 +15090,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
24105        link_all_deplibs_F77=yes
24106  
24107        if test "$GCC" = yes; then
24108 -       case $host_os in aix4.012|aix4.012.*)
24109 +       case $host_os in aix4.[012]|aix4.[012].*)
24110         # We only want to do this on AIX 4.2 and lower, the check
24111         # below for broken collect2 doesn't work under 4.3+
24112           collect2name=`${CC} -print-prog-name=collect2`
24113 @@ -13849,7 +15098,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
24114            strings "$collect2name" | grep resolve_lib_name >/dev/null
24115           then
24116           # We have reworked collect2
24117 -         hardcode_direct_F77=yes
24118 +         :
24119           else
24120           # We have old collect2
24121           hardcode_direct_F77=unsupported
24122 @@ -13860,8 +15109,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
24123           hardcode_libdir_flag_spec_F77='-L$libdir'
24124           hardcode_libdir_separator_F77=
24125           fi
24126 +         ;;
24127         esac
24128         shared_flag='-shared'
24129 +       if test "$aix_use_runtimelinking" = yes; then
24130 +         shared_flag="$shared_flag "'${wl}-G'
24131 +       fi
24132        else
24133         # not using gcc
24134         if test "$host_cpu" = ia64; then
24135 @@ -13869,11 +15122,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
24136         # chokes on -Wl,-G. The following line is correct:
24137           shared_flag='-G'
24138         else
24139 -       if test "$aix_use_runtimelinking" = yes; then
24140 +         if test "$aix_use_runtimelinking" = yes; then
24141             shared_flag='${wl}-G'
24142           else
24143             shared_flag='${wl}-bM:SRE'
24144 -       fi
24145 +         fi
24146         fi
24147        fi
24148  
24149 @@ -13891,49 +15144,58 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
24150        end
24151  _ACEOF
24152  rm -f conftest.$ac_objext conftest$ac_exeext
24153 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24154 -  (eval $ac_link) 2>conftest.er1
24155 +if { (ac_try="$ac_link"
24156 +case "(($ac_try" in
24157 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158 +  *) ac_try_echo=$ac_try;;
24159 +esac
24160 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24161 +$as_echo "$ac_try_echo") >&5
24162 +  (eval "$ac_link") 2>conftest.er1
24163    ac_status=$?
24164    grep -v '^ *+' conftest.er1 >conftest.err
24165    rm -f conftest.er1
24166    cat conftest.err >&5
24167 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 -  (exit $ac_status); } &&
24169 -        { ac_try='test -z "$ac_f77_werror_flag"
24170 -                        || test ! -s conftest.err'
24171 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172 -  (eval $ac_try) 2>&5
24173 -  ac_status=$?
24174 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 -  (exit $ac_status); }; } &&
24176 -        { ac_try='test -s conftest$ac_exeext'
24177 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 -  (eval $ac_try) 2>&5
24179 -  ac_status=$?
24180 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 -  (exit $ac_status); }; }; then
24182 -
24183 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24184 -}'`
24185 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 +  (exit $ac_status); } && {
24187 +        test -z "$ac_f77_werror_flag" ||
24188 +        test ! -s conftest.err
24189 +       } && test -s conftest$ac_exeext && {
24190 +        test "$cross_compiling" = yes ||
24191 +        $as_test_x conftest$ac_exeext
24192 +       }; then
24193 +
24194 +lt_aix_libpath_sed='
24195 +    /Import File Strings/,/^$/ {
24196 +       /^0/ {
24197 +           s/^0  *\(.*\)$/\1/
24198 +           p
24199 +       }
24200 +    }'
24201 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24202  # Check for a 64-bit object if we didn't find anything.
24203 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24204 -}'`; fi
24205 +if test -z "$aix_libpath"; then
24206 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24207 +fi
24208  else
24209 -  echo "$as_me: failed program was:" >&5
24210 +  $as_echo "$as_me: failed program was:" >&5
24211  sed 's/^/| /' conftest.$ac_ext >&5
24212  
24213 +
24214  fi
24215 -rm -f conftest.err conftest.$ac_objext \
24216 +
24217 +rm -rf conftest.dSYM
24218 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24219        conftest$ac_exeext conftest.$ac_ext
24220  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24221  
24222         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
24223 -       archive_expsym_cmds_F77="\$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"
24224 +       archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24225         else
24226         if test "$host_cpu" = ia64; then
24227           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
24228           allow_undefined_flag_F77="-z nodefs"
24229 -         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
24230 +         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
24231         else
24232          # Determine the default libpath from the value encoded in an empty executable.
24233          cat >conftest.$ac_ext <<_ACEOF
24234 @@ -13942,39 +15204,48 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24235        end
24236  _ACEOF
24237  rm -f conftest.$ac_objext conftest$ac_exeext
24238 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24239 -  (eval $ac_link) 2>conftest.er1
24240 +if { (ac_try="$ac_link"
24241 +case "(($ac_try" in
24242 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243 +  *) ac_try_echo=$ac_try;;
24244 +esac
24245 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24246 +$as_echo "$ac_try_echo") >&5
24247 +  (eval "$ac_link") 2>conftest.er1
24248    ac_status=$?
24249    grep -v '^ *+' conftest.er1 >conftest.err
24250    rm -f conftest.er1
24251    cat conftest.err >&5
24252 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 -  (exit $ac_status); } &&
24254 -        { ac_try='test -z "$ac_f77_werror_flag"
24255 -                        || test ! -s conftest.err'
24256 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 -  (eval $ac_try) 2>&5
24258 -  ac_status=$?
24259 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 -  (exit $ac_status); }; } &&
24261 -        { ac_try='test -s conftest$ac_exeext'
24262 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 -  (eval $ac_try) 2>&5
24264 -  ac_status=$?
24265 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 -  (exit $ac_status); }; }; then
24267 -
24268 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24269 -}'`
24270 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 +  (exit $ac_status); } && {
24272 +        test -z "$ac_f77_werror_flag" ||
24273 +        test ! -s conftest.err
24274 +       } && test -s conftest$ac_exeext && {
24275 +        test "$cross_compiling" = yes ||
24276 +        $as_test_x conftest$ac_exeext
24277 +       }; then
24278 +
24279 +lt_aix_libpath_sed='
24280 +    /Import File Strings/,/^$/ {
24281 +       /^0/ {
24282 +           s/^0  *\(.*\)$/\1/
24283 +           p
24284 +       }
24285 +    }'
24286 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24287  # Check for a 64-bit object if we didn't find anything.
24288 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24289 -}'`; fi
24290 +if test -z "$aix_libpath"; then
24291 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24292 +fi
24293  else
24294 -  echo "$as_me: failed program was:" >&5
24295 +  $as_echo "$as_me: failed program was:" >&5
24296  sed 's/^/| /' conftest.$ac_ext >&5
24297  
24298 +
24299  fi
24300 -rm -f conftest.err conftest.$ac_objext \
24301 +
24302 +rm -rf conftest.dSYM
24303 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24304        conftest$ac_exeext conftest.$ac_ext
24305  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24306  
24307 @@ -13983,13 +15254,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24308           # -berok will link without error, but may produce a broken library.
24309           no_undefined_flag_F77=' ${wl}-bernotok'
24310           allow_undefined_flag_F77=' ${wl}-berok'
24311 -         # -bexpall does not export symbols beginning with underscore (_)
24312 -         always_export_symbols_F77=yes
24313           # Exported symbols can be pulled into shared objects from archives
24314 -         whole_archive_flag_spec_F77=' '
24315 +         whole_archive_flag_spec_F77='$convenience'
24316           archive_cmds_need_lc_F77=yes
24317 -         # This is similar to how AIX traditionally builds it's shared libraries.
24318 -         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
24319 +         # This is similar to how AIX traditionally builds its shared libraries.
24320 +         archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
24321         fi
24322        fi
24323        ;;
24324 @@ -14002,7 +15271,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24325        ld_shlibs_F77=no
24326        ;;
24327  
24328 -    bsdi4*)
24329 +    bsdi[45]*)
24330        export_dynamic_flag_spec_F77=-rdynamic
24331        ;;
24332  
24333 @@ -14022,58 +15291,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24334        # The linker will automatically build a .lib file if we build a DLL.
24335        old_archive_From_new_cmds_F77='true'
24336        # FIXME: Should let the user specify the lib program.
24337 -      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
24338 -      fix_srcfile_path='`cygpath -w "$srcfile"`'
24339 +      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
24340 +      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
24341        enable_shared_with_static_runtimes_F77=yes
24342        ;;
24343  
24344      darwin* | rhapsody*)
24345 -    if test "$GXX" = yes ; then
24346 -      archive_cmds_need_lc_F77=no
24347 -      case "$host_os" in
24348 -      rhapsody* | darwin1.[012])
24349 -       allow_undefined_flag_F77='-undefined suppress'
24350 -       ;;
24351 -      *) # Darwin 1.3 on
24352 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24353 -       allow_undefined_flag_F77='-flat_namespace -undefined suppress'
24354 -      else
24355 -        case ${MACOSX_DEPLOYMENT_TARGET} in
24356 -          10.[012])
24357 -            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
24358 -            ;;
24359 -          10.*)
24360 -            allow_undefined_flag_F77='-undefined dynamic_lookup'
24361 -            ;;
24362 -        esac
24363 -      fi
24364 -       ;;
24365 +      case $host_os in
24366 +        rhapsody* | darwin1.[012])
24367 +         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
24368 +         ;;
24369 +       *) # Darwin 1.3 on
24370 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24371 +           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24372 +         else
24373 +           case ${MACOSX_DEPLOYMENT_TARGET} in
24374 +             10.[012])
24375 +               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24376 +               ;;
24377 +             10.*)
24378 +               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
24379 +               ;;
24380 +           esac
24381 +         fi
24382 +         ;;
24383        esac
24384 -       lt_int_apple_cc_single_mod=no
24385 -       output_verbose_link_cmd='echo'
24386 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
24387 -         lt_int_apple_cc_single_mod=yes
24388 -       fi
24389 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
24390 -         archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24391 -       else
24392 -        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24393 -      fi
24394 -      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24395 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
24396 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
24397 -          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24398 -        else
24399 -          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24400 -        fi
24401 -          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24402 +      archive_cmds_need_lc_F77=no
24403        hardcode_direct_F77=no
24404        hardcode_automatic_F77=yes
24405        hardcode_shlibpath_var_F77=unsupported
24406 -      whole_archive_flag_spec_F77='-all_load $convenience'
24407 +      whole_archive_flag_spec_F77=''
24408        link_all_deplibs_F77=yes
24409 +    if test "$GCC" = yes ; then
24410 +       output_verbose_link_cmd='echo'
24411 +        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
24412 +        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
24413 +        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
24414 +        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
24415      else
24416 -      ld_shlibs_F77=no
24417 +      case $cc_basename in
24418 +        xlc*)
24419 +         output_verbose_link_cmd='echo'
24420 +         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
24421 +         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24422 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24423 +         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24424 +          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24425 +          ;;
24426 +       *)
24427 +         ld_shlibs_F77=no
24428 +          ;;
24429 +      esac
24430      fi
24431        ;;
24432  
24433 @@ -14107,7 +15375,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24434        ;;
24435  
24436      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24437 -    freebsd* | kfreebsd*-gnu)
24438 +    freebsd* | dragonfly*)
24439        archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24440        hardcode_libdir_flag_spec_F77='-R$libdir'
24441        hardcode_direct_F77=yes
24442 @@ -14130,47 +15398,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24443        export_dynamic_flag_spec_F77='${wl}-E'
24444        ;;
24445  
24446 -    hpux10* | hpux11*)
24447 +    hpux10*)
24448        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24449 -       case "$host_cpu" in
24450 -       hppa*64*|ia64*)
24451 +       archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24452 +      else
24453 +       archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24454 +      fi
24455 +      if test "$with_gnu_ld" = no; then
24456 +       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24457 +       hardcode_libdir_separator_F77=:
24458 +
24459 +       hardcode_direct_F77=yes
24460 +       export_dynamic_flag_spec_F77='${wl}-E'
24461 +
24462 +       # hardcode_minus_L: Not really in the search PATH,
24463 +       # but as the default location of the library.
24464 +       hardcode_minus_L_F77=yes
24465 +      fi
24466 +      ;;
24467 +
24468 +    hpux11*)
24469 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24470 +       case $host_cpu in
24471 +       hppa*64*)
24472           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24473           ;;
24474 +       ia64*)
24475 +         archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24476 +         ;;
24477         *)
24478           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24479           ;;
24480         esac
24481        else
24482 -       case "$host_cpu" in
24483 -       hppa*64*|ia64*)
24484 -         archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
24485 +       case $host_cpu in
24486 +       hppa*64*)
24487 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24488 +         ;;
24489 +       ia64*)
24490 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24491           ;;
24492         *)
24493 -         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24494 +         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24495           ;;
24496         esac
24497        fi
24498        if test "$with_gnu_ld" = no; then
24499 -       case "$host_cpu" in
24500 -       hppa*64*)
24501 -         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24502 +       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24503 +       hardcode_libdir_separator_F77=:
24504 +
24505 +       case $host_cpu in
24506 +       hppa*64*|ia64*)
24507           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
24508 -         hardcode_libdir_separator_F77=:
24509           hardcode_direct_F77=no
24510           hardcode_shlibpath_var_F77=no
24511           ;;
24512 -       ia64*)
24513 -         hardcode_libdir_flag_spec_F77='-L$libdir'
24514 -         hardcode_direct_F77=no
24515 -         hardcode_shlibpath_var_F77=no
24516 -
24517 -         # hardcode_minus_L: Not really in the search PATH,
24518 -         # but as the default location of the library.
24519 -         hardcode_minus_L_F77=yes
24520 -         ;;
24521         *)
24522 -         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24523 -         hardcode_libdir_separator_F77=:
24524           hardcode_direct_F77=yes
24525           export_dynamic_flag_spec_F77='${wl}-E'
24526  
24527 @@ -14194,7 +15477,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24528        link_all_deplibs_F77=yes
24529        ;;
24530  
24531 -    netbsd*)
24532 +    netbsd* | netbsdelf*-gnu)
24533        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24534         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24535        else
24536 @@ -14214,23 +15497,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24537        ;;
24538  
24539      openbsd*)
24540 -      hardcode_direct_F77=yes
24541 -      hardcode_shlibpath_var_F77=no
24542 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24543 -       archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24544 -       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24545 -       export_dynamic_flag_spec_F77='${wl}-E'
24546 +      if test -f /usr/libexec/ld.so; then
24547 +       hardcode_direct_F77=yes
24548 +       hardcode_shlibpath_var_F77=no
24549 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24550 +         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24551 +         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24552 +         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24553 +         export_dynamic_flag_spec_F77='${wl}-E'
24554 +       else
24555 +         case $host_os in
24556 +          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24557 +            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24558 +            hardcode_libdir_flag_spec_F77='-R$libdir'
24559 +            ;;
24560 +          *)
24561 +            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24562 +            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24563 +            ;;
24564 +         esac
24565 +        fi
24566        else
24567 -       case $host_os in
24568 -        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24569 -          archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24570 -          hardcode_libdir_flag_spec_F77='-R$libdir'
24571 -          ;;
24572 -        *)
24573 -          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24574 -          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24575 -          ;;
24576 -       esac
24577 +       ld_shlibs_F77=no
24578        fi
24579        ;;
24580  
24581 @@ -14263,7 +15551,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24582         allow_undefined_flag_F77=' -expect_unresolved \*'
24583         archive_cmds_F77='$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'
24584         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
24585 -       $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'
24586 +       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
24587  
24588         # Both c and cxx compiler support -rpath directly
24589         hardcode_libdir_flag_spec_F77='-rpath $libdir'
24590 @@ -14271,21 +15559,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24591        hardcode_libdir_separator_F77=:
24592        ;;
24593  
24594 -    sco3.2v5*)
24595 -      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24596 -      hardcode_shlibpath_var_F77=no
24597 -      export_dynamic_flag_spec_F77='${wl}-Bexport'
24598 -      runpath_var=LD_RUN_PATH
24599 -      hardcode_runpath_var=yes
24600 -      ;;
24601 -
24602      solaris*)
24603        no_undefined_flag_F77=' -z text'
24604        if test "$GCC" = yes; then
24605 +       wlarc='${wl}'
24606         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24607         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24608           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24609        else
24610 +       wlarc=''
24611         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24612         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24613         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24614 @@ -14294,8 +15576,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24615        hardcode_shlibpath_var_F77=no
24616        case $host_os in
24617        solaris2.[0-5] | solaris2.[0-5].*) ;;
24618 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
24619 -       whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
24620 +      *)
24621 +       # The compiler driver will combine and reorder linker options,
24622 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
24623 +       # but is careful enough not to reorder.
24624 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
24625 +       if test "$GCC" = yes; then
24626 +         whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
24627 +       else
24628 +         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
24629 +       fi
24630 +       ;;
24631        esac
24632        link_all_deplibs_F77=yes
24633        ;;
24634 @@ -14352,36 +15643,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24635        fi
24636        ;;
24637  
24638 -    sysv4.2uw2*)
24639 -      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24640 -      hardcode_direct_F77=yes
24641 -      hardcode_minus_L_F77=no
24642 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
24643 +      no_undefined_flag_F77='${wl}-z,text'
24644 +      archive_cmds_need_lc_F77=no
24645        hardcode_shlibpath_var_F77=no
24646 -      hardcode_runpath_var=yes
24647 -      runpath_var=LD_RUN_PATH
24648 -      ;;
24649 +      runpath_var='LD_RUN_PATH'
24650  
24651 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
24652 -      no_undefined_flag_F77='${wl}-z ${wl}text'
24653        if test "$GCC" = yes; then
24654 -       archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24655 +       archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24656 +       archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24657        else
24658 -       archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24659 +       archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24660 +       archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24661        fi
24662 -      runpath_var='LD_RUN_PATH'
24663 -      hardcode_shlibpath_var_F77=no
24664        ;;
24665  
24666 -    sysv5*)
24667 -      no_undefined_flag_F77=' -z text'
24668 -      # $CC -shared without GNU ld will not create a library from C++
24669 -      # object files and a static libstdc++, better avoid it by now
24670 -      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24671 -      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24672 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24673 -      hardcode_libdir_flag_spec_F77=
24674 +    sysv5* | sco3.2v5* | sco5v6*)
24675 +      # Note: We can NOT use -z defs as we might desire, because we do not
24676 +      # link with -lc, and that would cause any symbols used from libc to
24677 +      # always be unresolved, which means just about no library would
24678 +      # ever link correctly.  If we're not using GNU ld we use -z text
24679 +      # though, which does catch some bad symbols but isn't as heavy-handed
24680 +      # as -z defs.
24681 +      no_undefined_flag_F77='${wl}-z,text'
24682 +      allow_undefined_flag_F77='${wl}-z,nodefs'
24683 +      archive_cmds_need_lc_F77=no
24684        hardcode_shlibpath_var_F77=no
24685 +      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24686 +      hardcode_libdir_separator_F77=':'
24687 +      link_all_deplibs_F77=yes
24688 +      export_dynamic_flag_spec_F77='${wl}-Bexport'
24689        runpath_var='LD_RUN_PATH'
24690 +
24691 +      if test "$GCC" = yes; then
24692 +       archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24693 +       archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24694 +      else
24695 +       archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24696 +       archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24697 +      fi
24698        ;;
24699  
24700      uts4*)
24701 @@ -14396,15 +15696,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24702      esac
24703    fi
24704  
24705 -echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
24706 -echo "${ECHO_T}$ld_shlibs_F77" >&6
24707 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
24708 +$as_echo "$ld_shlibs_F77" >&6; }
24709  test "$ld_shlibs_F77" = no && can_build_shared=no
24710  
24711 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24712 -if test "$GCC" = yes; then
24713 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24714 -fi
24715 -
24716  #
24717  # Do we need to explicitly link libc?
24718  #
24719 @@ -14422,21 +15717,22 @@ x|xyes)
24720        # Test whether the compiler implicitly links with -lc since on some
24721        # systems, -lgcc has to come before -lc. If gcc already passes -lc
24722        # to ld, don't add -lc before -lgcc.
24723 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24724 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
24725 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24726 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24727        $rm conftest*
24728 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24729 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24730  
24731        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24732    (eval $ac_compile) 2>&5
24733    ac_status=$?
24734 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736    (exit $ac_status); } 2>conftest.err; then
24737          soname=conftest
24738          lib=conftest
24739          libobjs=conftest.$ac_objext
24740          deplibs=
24741          wl=$lt_prog_compiler_wl_F77
24742 +       pic_flag=$lt_prog_compiler_pic_F77
24743          compiler_flags=-v
24744          linker_flags=-v
24745          verstring=
24746 @@ -14447,7 +15743,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
24747          if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24748    (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24749    ac_status=$?
24750 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752    (exit $ac_status); }
24753          then
24754           archive_cmds_need_lc_F77=no
24755 @@ -14459,16 +15755,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
24756          cat conftest.err 1>&5
24757        fi
24758        $rm conftest*
24759 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
24760 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
24761 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
24762 +$as_echo "$archive_cmds_need_lc_F77" >&6; }
24763        ;;
24764      esac
24765    fi
24766    ;;
24767  esac
24768  
24769 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24770 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
24771 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24772 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
24773  library_names_spec=
24774  libname_spec='lib$name'
24775  soname_spec=
24776 @@ -14482,20 +15778,7 @@ shlibpath_overrides_runpath=unknown
24777  version_type=none
24778  dynamic_linker="$host_os ld.so"
24779  sys_lib_dlsearch_path_spec="/lib /usr/lib"
24780 -if test "$GCC" = yes; then
24781 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24782 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24783 -    # if the path contains ";" then we assume it to be the separator
24784 -    # otherwise default to the standard path separator (i.e. ":") - it is
24785 -    # assumed that no part of a normal pathname contains ";" but that should
24786 -    # okay in the real world where ";" in dirpaths is itself problematic.
24787 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24788 -  else
24789 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24790 -  fi
24791 -else
24792 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24793 -fi
24794 +
24795  need_lib_prefix=unknown
24796  hardcode_into_libs=no
24797  
24798 @@ -14513,7 +15796,7 @@ aix3*)
24799    soname_spec='${libname}${release}${shared_ext}$major'
24800    ;;
24801  
24802 -aix4* | aix5*)
24803 +aix[4-9]*)
24804    version_type=linux
24805    need_lib_prefix=no
24806    need_version=no
24807 @@ -14569,7 +15852,7 @@ beos*)
24808    shlibpath_var=LIBRARY_PATH
24809    ;;
24810  
24811 -bsdi4*)
24812 +bsdi[45]*)
24813    version_type=linux
24814    need_version=no
24815    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24816 @@ -14597,7 +15880,8 @@ cygwin* | mingw* | pw32*)
24817        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24818        dldir=$destdir/`dirname \$dlpath`~
24819        test -d \$dldir || mkdir -p \$dldir~
24820 -      $install_prog $dir/$dlname \$dldir/$dlname'
24821 +      $install_prog $dir/$dlname \$dldir/$dlname~
24822 +      chmod a+x \$dldir/$dlname'
24823      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24824        dlpath=$dir/\$dldll~
24825         $rm \$dlpath'
24826 @@ -14627,7 +15911,7 @@ cygwin* | mingw* | pw32*)
24827        ;;
24828      pw32*)
24829        # pw32 DLLs use 'pw' prefix rather than 'lib'
24830 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
24831 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24832        ;;
24833      esac
24834      ;;
24835 @@ -14650,13 +15934,8 @@ darwin* | rhapsody*)
24836    soname_spec='${libname}${release}${major}$shared_ext'
24837    shlibpath_overrides_runpath=yes
24838    shlibpath_var=DYLD_LIBRARY_PATH
24839 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
24840 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24841 -  if test "$GCC" = yes; then
24842 -    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
24843 -  else
24844 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24845 -  fi
24846 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24847 +
24848    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24849    ;;
24850  
24851 @@ -14673,20 +15952,17 @@ freebsd1*)
24852    dynamic_linker=no
24853    ;;
24854  
24855 -kfreebsd*-gnu)
24856 -  version_type=linux
24857 -  need_lib_prefix=no
24858 -  need_version=no
24859 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24860 -  soname_spec='${libname}${release}${shared_ext}$major'
24861 -  shlibpath_var=LD_LIBRARY_PATH
24862 -  shlibpath_overrides_runpath=no
24863 -  hardcode_into_libs=yes
24864 -  dynamic_linker='GNU ld.so'
24865 -  ;;
24866 -
24867 -freebsd*)
24868 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
24869 +freebsd* | dragonfly*)
24870 +  # DragonFly does not have aout.  When/if they implement a new
24871 +  # versioning mechanism, adjust this.
24872 +  if test -x /usr/bin/objformat; then
24873 +    objformat=`/usr/bin/objformat`
24874 +  else
24875 +    case $host_os in
24876 +    freebsd[123]*) objformat=aout ;;
24877 +    *) objformat=elf ;;
24878 +    esac
24879 +  fi
24880    version_type=freebsd-$objformat
24881    case $version_type in
24882      freebsd-elf*)
24883 @@ -14704,14 +15980,19 @@ freebsd*)
24884    freebsd2*)
24885      shlibpath_overrides_runpath=yes
24886      ;;
24887 -  freebsd3.01* | freebsdelf3.01*)
24888 +  freebsd3.[01]* | freebsdelf3.[01]*)
24889      shlibpath_overrides_runpath=yes
24890      hardcode_into_libs=yes
24891      ;;
24892 -  *) # from 3.2 on
24893 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24894 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24895      shlibpath_overrides_runpath=no
24896      hardcode_into_libs=yes
24897      ;;
24898 +  *) # from 4.6 on, and DragonFly
24899 +    shlibpath_overrides_runpath=yes
24900 +    hardcode_into_libs=yes
24901 +    ;;
24902    esac
24903    ;;
24904  
24905 @@ -14731,7 +16012,7 @@ hpux9* | hpux10* | hpux11*)
24906    version_type=sunos
24907    need_lib_prefix=no
24908    need_version=no
24909 -  case "$host_cpu" in
24910 +  case $host_cpu in
24911    ia64*)
24912      shrext_cmds='.so'
24913      hardcode_into_libs=yes
24914 @@ -14771,6 +16052,18 @@ hpux9* | hpux10* | hpux11*)
24915    postinstall_cmds='chmod 555 $lib'
24916    ;;
24917  
24918 +interix[3-9]*)
24919 +  version_type=linux
24920 +  need_lib_prefix=no
24921 +  need_version=no
24922 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24923 +  soname_spec='${libname}${release}${shared_ext}$major'
24924 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24925 +  shlibpath_var=LD_LIBRARY_PATH
24926 +  shlibpath_overrides_runpath=no
24927 +  hardcode_into_libs=yes
24928 +  ;;
24929 +
24930  irix5* | irix6* | nonstopux*)
24931    case $host_os in
24932      nonstopux*) version_type=nonstopux ;;
24933 @@ -14814,7 +16107,7 @@ linux*oldld* | linux*aout* | linux*coff*)
24934    ;;
24935  
24936  # This must be Linux ELF.
24937 -linux*)
24938 +linux* | k*bsd*-gnu)
24939    version_type=linux
24940    need_lib_prefix=no
24941    need_version=no
24942 @@ -14828,31 +16121,10 @@ linux*)
24943    # before this can be enabled.
24944    hardcode_into_libs=yes
24945  
24946 -  # find out which ABI we are using
24947 -  libsuff=
24948 -  case "$host_cpu" in
24949 -  x86_64*|s390x*|powerpc64*)
24950 -    echo '#line 14835 "configure"' > conftest.$ac_ext
24951 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24952 -  (eval $ac_compile) 2>&5
24953 -  ac_status=$?
24954 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 -  (exit $ac_status); }; then
24956 -      case `/usr/bin/file conftest.$ac_objext` in
24957 -      *64-bit*)
24958 -        libsuff=64
24959 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24960 -        ;;
24961 -      esac
24962 -    fi
24963 -    rm -rf conftest*
24964 -    ;;
24965 -  esac
24966 -
24967    # Append ld.so.conf contents to the search path
24968    if test -f /etc/ld.so.conf; then
24969 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
24970 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24971 +    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[     ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24972 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24973    fi
24974  
24975    # We used to test for /lib/ld.so.1 and disable shared libraries on
24976 @@ -14864,7 +16136,7 @@ linux*)
24977    dynamic_linker='GNU/Linux ld.so'
24978    ;;
24979  
24980 -knetbsd*-gnu)
24981 +netbsdelf*-gnu)
24982    version_type=linux
24983    need_lib_prefix=no
24984    need_version=no
24985 @@ -14873,7 +16145,7 @@ knetbsd*-gnu)
24986    shlibpath_var=LD_LIBRARY_PATH
24987    shlibpath_overrides_runpath=no
24988    hardcode_into_libs=yes
24989 -  dynamic_linker='GNU ld.so'
24990 +  dynamic_linker='NetBSD ld.elf_so'
24991    ;;
24992  
24993  netbsd*)
24994 @@ -14913,8 +16185,13 @@ nto-qnx*)
24995  
24996  openbsd*)
24997    version_type=sunos
24998 +  sys_lib_dlsearch_path_spec="/usr/lib"
24999    need_lib_prefix=no
25000 -  need_version=yes
25001 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25002 +  case $host_os in
25003 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25004 +    *)                         need_version=no  ;;
25005 +  esac
25006    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25007    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25008    shlibpath_var=LD_LIBRARY_PATH
25009 @@ -14952,11 +16229,8 @@ osf3* | osf4* | osf5*)
25010    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25011    ;;
25012  
25013 -sco3.2v5*)
25014 -  version_type=osf
25015 -  soname_spec='${libname}${release}${shared_ext}$major'
25016 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25017 -  shlibpath_var=LD_LIBRARY_PATH
25018 +rdos*)
25019 +  dynamic_linker=no
25020    ;;
25021  
25022  solaris*)
25023 @@ -14984,7 +16258,7 @@ sunos4*)
25024    need_version=yes
25025    ;;
25026  
25027 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25028 +sysv4 | sysv4.3*)
25029    version_type=linux
25030    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25031    soname_spec='${libname}${release}${shared_ext}$major'
25032 @@ -15017,6 +16291,29 @@ sysv4*MP*)
25033    fi
25034    ;;
25035  
25036 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25037 +  version_type=freebsd-elf
25038 +  need_lib_prefix=no
25039 +  need_version=no
25040 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25041 +  soname_spec='${libname}${release}${shared_ext}$major'
25042 +  shlibpath_var=LD_LIBRARY_PATH
25043 +  hardcode_into_libs=yes
25044 +  if test "$with_gnu_ld" = yes; then
25045 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25046 +    shlibpath_overrides_runpath=no
25047 +  else
25048 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25049 +    shlibpath_overrides_runpath=yes
25050 +    case $host_os in
25051 +      sco3.2v5*)
25052 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25053 +       ;;
25054 +    esac
25055 +  fi
25056 +  sys_lib_dlsearch_path_spec='/usr/lib'
25057 +  ;;
25058 +
25059  uts4*)
25060    version_type=linux
25061    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25062 @@ -15028,16 +16325,36 @@ uts4*)
25063    dynamic_linker=no
25064    ;;
25065  esac
25066 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25067 -echo "${ECHO_T}$dynamic_linker" >&6
25068 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25069 +$as_echo "$dynamic_linker" >&6; }
25070  test "$dynamic_linker" = no && can_build_shared=no
25071  
25072 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25073 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
25074 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
25075 +  $as_echo_n "(cached) " >&6
25076 +else
25077 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
25078 +fi
25079 +
25080 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
25081 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
25082 +  $as_echo_n "(cached) " >&6
25083 +else
25084 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
25085 +fi
25086 +
25087 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
25088 +
25089 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25090 +if test "$GCC" = yes; then
25091 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25092 +fi
25093 +
25094 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25095 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
25096  hardcode_action_F77=
25097  if test -n "$hardcode_libdir_flag_spec_F77" || \
25098 -   test -n "$runpath_var F77" || \
25099 -   test "X$hardcode_automatic_F77"="Xyes" ; then
25100 +   test -n "$runpath_var_F77" || \
25101 +   test "X$hardcode_automatic_F77" = "Xyes" ; then
25102  
25103    # We can hardcode non-existant directories.
25104    if test "$hardcode_direct_F77" != no &&
25105 @@ -15057,8 +16374,8 @@ else
25106    # directories.
25107    hardcode_action_F77=unsupported
25108  fi
25109 -echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
25110 -echo "${ECHO_T}$hardcode_action_F77" >&6
25111 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
25112 +$as_echo "$hardcode_action_F77" >&6; }
25113  
25114  if test "$hardcode_action_F77" = relink; then
25115    # Fast installation is not supported
25116 @@ -15069,36 +16386,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
25117    enable_fast_install=needless
25118  fi
25119  
25120 -striplib=
25121 -old_striplib=
25122 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
25123 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
25124 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
25125 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
25126 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
25127 -  echo "$as_me:$LINENO: result: yes" >&5
25128 -echo "${ECHO_T}yes" >&6
25129 -else
25130 -# FIXME - insert some real tests, host_os isn't really good enough
25131 -  case $host_os in
25132 -   darwin*)
25133 -       if test -n "$STRIP" ; then
25134 -         striplib="$STRIP -x"
25135 -         echo "$as_me:$LINENO: result: yes" >&5
25136 -echo "${ECHO_T}yes" >&6
25137 -       else
25138 -  echo "$as_me:$LINENO: result: no" >&5
25139 -echo "${ECHO_T}no" >&6
25140 -fi
25141 -       ;;
25142 -   *)
25143 -  echo "$as_me:$LINENO: result: no" >&5
25144 -echo "${ECHO_T}no" >&6
25145 -    ;;
25146 -  esac
25147 -fi
25148 -
25149 -
25150  
25151  # The else clause should only fire when bootstrapping the
25152  # libtool distribution, otherwise you forgot to ship ltmain.sh
25153 @@ -15113,7 +16400,7 @@ if test -f "$ltmain"; then
25154    # Now quote all the things that may contain metacharacters while being
25155    # careful not to overquote the AC_SUBSTed values.  We take copies of the
25156    # variables and quote the copies for generation of the libtool script.
25157 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25158 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25159      SED SHELL STRIP \
25160      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25161      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25162 @@ -15140,6 +16427,7 @@ if test -f "$ltmain"; then
25163      predeps_F77 \
25164      postdeps_F77 \
25165      compiler_lib_search_path_F77 \
25166 +    compiler_lib_search_dirs_F77 \
25167      archive_cmds_F77 \
25168      archive_expsym_cmds_F77 \
25169      postinstall_cmds_F77 \
25170 @@ -15155,6 +16443,7 @@ if test -f "$ltmain"; then
25171      module_cmds_F77 \
25172      module_expsym_cmds_F77 \
25173      lt_cv_prog_compiler_c_o_F77 \
25174 +    fix_srcfile_path_F77 \
25175      exclude_expsyms_F77 \
25176      include_expsyms_F77; do
25177  
25178 @@ -15214,6 +16503,12 @@ fast_install=$enable_fast_install
25179  # The host system.
25180  host_alias=$host_alias
25181  host=$host
25182 +host_os=$host_os
25183 +
25184 +# The build system.
25185 +build_alias=$build_alias
25186 +build=$build
25187 +build_os=$build_os
25188  
25189  # An echo program that does not interpret backslashes.
25190  echo=$lt_echo
25191 @@ -15225,6 +16520,9 @@ AR_FLAGS=$lt_AR_FLAGS
25192  # A C compiler.
25193  LTCC=$lt_LTCC
25194  
25195 +# LTCC compiler flags.
25196 +LTCFLAGS=$lt_LTCFLAGS
25197 +
25198  # A language-specific compiler.
25199  CC=$lt_compiler_F77
25200  
25201 @@ -15290,7 +16588,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
25202  # Does compiler simultaneously support -c and -o options?
25203  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
25204  
25205 -# Must we lock files when doing compilation ?
25206 +# Must we lock files when doing compilation?
25207  need_locks=$lt_need_locks
25208  
25209  # Do we need the lib prefix for modules?
25210 @@ -15378,6 +16676,10 @@ predeps=$lt_predeps_F77
25211  # shared library.
25212  postdeps=$lt_postdeps_F77
25213  
25214 +# The directories searched by this compiler when creating a shared
25215 +# library
25216 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
25217 +
25218  # The library search path used internally by the compiler when linking
25219  # a shared library.
25220  compiler_lib_search_path=$lt_compiler_lib_search_path_F77
25221 @@ -15466,7 +16768,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25222  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25223  
25224  # Fix the shell variable \$srcfile for the compiler.
25225 -fix_srcfile_path="$fix_srcfile_path_F77"
25226 +fix_srcfile_path=$lt_fix_srcfile_path
25227  
25228  # Set to yes if exported symbols are required.
25229  always_export_symbols=$always_export_symbols_F77
25230 @@ -15516,7 +16818,6 @@ CC="$lt_save_CC"
25231         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
25232  
25233  
25234 -
25235  # Source file extension for Java test sources.
25236  ac_ext=java
25237  
25238 @@ -15525,29 +16826,58 @@ objext=o
25239  objext_GCJ=$objext
25240  
25241  # Code to be used in simple compile tests
25242 -lt_simple_compile_test_code="class foo {}\n"
25243 +lt_simple_compile_test_code="class foo {}"
25244  
25245  # Code to be used in simple link tests
25246 -lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
25247 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
25248  
25249  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25250  
25251  # If no C compiler was specified, use CC.
25252  LTCC=${LTCC-"$CC"}
25253  
25254 +# If no C compiler flags were specified, use CFLAGS.
25255 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25256 +
25257  # Allow CC to be a program name with arguments.
25258  compiler=$CC
25259  
25260  
25261 +# save warnings/boilerplate of simple test code
25262 +ac_outfile=conftest.$ac_objext
25263 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
25264 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25265 +_lt_compiler_boilerplate=`cat conftest.err`
25266 +$rm conftest*
25267 +
25268 +ac_outfile=conftest.$ac_objext
25269 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
25270 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25271 +_lt_linker_boilerplate=`cat conftest.err`
25272 +$rm -r conftest*
25273 +
25274 +
25275  # Allow CC to be a program name with arguments.
25276  lt_save_CC="$CC"
25277  CC=${GCJ-"gcj"}
25278  compiler=$CC
25279  compiler_GCJ=$CC
25280 +for cc_temp in $compiler""; do
25281 +  case $cc_temp in
25282 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25283 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25284 +    \-*) ;;
25285 +    *) break;;
25286 +  esac
25287 +done
25288 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25289 +
25290  
25291  # GCJ did not exist at the time GCC didn't implicitly link libc in.
25292  archive_cmds_need_lc_GCJ=no
25293  
25294 +old_archive_cmds_GCJ=$old_archive_cmds
25295 +
25296  
25297  lt_prog_compiler_no_builtin_flag_GCJ=
25298  
25299 @@ -15555,14 +16885,14 @@ if test "$GCC" = yes; then
25300    lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
25301  
25302  
25303 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25304 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
25305 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25306 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
25307  if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
25308 -  echo $ECHO_N "(cached) $ECHO_C" >&6
25309 +  $as_echo_n "(cached) " >&6
25310  else
25311    lt_cv_prog_compiler_rtti_exceptions=no
25312    ac_outfile=conftest.$ac_objext
25313 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25314 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25315     lt_compiler_flag="-fno-rtti -fno-exceptions"
25316     # Insert the option either (1) after the last *FLAGS variable, or
25317     # (2) before a word containing "conftest.", or (3) at the end.
25318 @@ -15570,26 +16900,28 @@ else
25319     # with a dollar sign (not a hyphen), so the echo should work correctly.
25320     # The option is referenced via a variable to avoid confusing sed.
25321     lt_compile=`echo "$ac_compile" | $SED \
25322 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25323 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25324     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25325     -e 's:$: $lt_compiler_flag:'`
25326 -   (eval echo "\"\$as_me:15576: $lt_compile\"" >&5)
25327 +   (eval echo "\"\$as_me:16906: $lt_compile\"" >&5)
25328     (eval "$lt_compile" 2>conftest.err)
25329     ac_status=$?
25330     cat conftest.err >&5
25331 -   echo "$as_me:15580: \$? = $ac_status" >&5
25332 +   echo "$as_me:16910: \$? = $ac_status" >&5
25333     if (exit $ac_status) && test -s "$ac_outfile"; then
25334       # The compiler can only warn and ignore the option if not recognized
25335 -     # So say no if there are warnings
25336 -     if test ! -s conftest.err; then
25337 +     # So say no if there are warnings other than the usual output.
25338 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
25339 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25340 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25341         lt_cv_prog_compiler_rtti_exceptions=yes
25342       fi
25343     fi
25344     $rm conftest*
25345  
25346  fi
25347 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25348 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
25349 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25350 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
25351  
25352  if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
25353      lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
25354 @@ -15603,8 +16935,8 @@ lt_prog_compiler_wl_GCJ=
25355  lt_prog_compiler_pic_GCJ=
25356  lt_prog_compiler_static_GCJ=
25357  
25358 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25359 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25360 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25361 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25362  
25363    if test "$GCC" = yes; then
25364      lt_prog_compiler_wl_GCJ='-Wl,'
25365 @@ -15626,14 +16958,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25366        lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
25367        ;;
25368  
25369 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25370 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25371        # PIC is the default for these OSes.
25372        ;;
25373  
25374 -    mingw* | pw32* | os2*)
25375 +    mingw* | cygwin* | pw32* | os2*)
25376        # This hack is so that the source file can tell whether it is being
25377        # built for inclusion in a dll (and should export symbols for example).
25378 -      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
25379 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
25380 +      # (--disable-auto-import) libraries
25381 +
25382        ;;
25383  
25384      darwin* | rhapsody*)
25385 @@ -15642,6 +16976,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25386        lt_prog_compiler_pic_GCJ='-fno-common'
25387        ;;
25388  
25389 +    interix[3-9]*)
25390 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
25391 +      # Instead, we relocate shared libraries at runtime.
25392 +      ;;
25393 +
25394      msdosdjgpp*)
25395        # Just because we use GCC doesn't mean we suddenly get shared libraries
25396        # on systems that don't support them.
25397 @@ -15658,7 +16997,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25398      hpux*)
25399        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25400        # not for PA HP-UX.
25401 -      case "$host_cpu" in
25402 +      case $host_cpu in
25403        hppa*64*|ia64*)
25404         # +Z the default
25405         ;;
25406 @@ -15684,18 +17023,28 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25407         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
25408        fi
25409        ;;
25410 +      darwin*)
25411 +        # PIC is the default on this platform
25412 +        # Common symbols not allowed in MH_DYLIB files
25413 +       case $cc_basename in
25414 +         xlc*)
25415 +         lt_prog_compiler_pic_GCJ='-qnocommon'
25416 +         lt_prog_compiler_wl_GCJ='-Wl,'
25417 +         ;;
25418 +       esac
25419 +       ;;
25420  
25421 -    mingw* | pw32* | os2*)
25422 +    mingw* | cygwin* | pw32* | os2*)
25423        # This hack is so that the source file can tell whether it is being
25424        # built for inclusion in a dll (and should export symbols for example).
25425 -      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
25426 +
25427        ;;
25428  
25429      hpux9* | hpux10* | hpux11*)
25430        lt_prog_compiler_wl_GCJ='-Wl,'
25431        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25432        # not for PA HP-UX.
25433 -      case "$host_cpu" in
25434 +      case $host_cpu in
25435        hppa*64*|ia64*)
25436         # +Z the default
25437         ;;
25438 @@ -15718,18 +17067,41 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25439        lt_prog_compiler_static_GCJ='-Bstatic'
25440        ;;
25441  
25442 -    linux*)
25443 -      case $CC in
25444 +    linux* | k*bsd*-gnu)
25445 +      case $cc_basename in
25446        icc* | ecc*)
25447         lt_prog_compiler_wl_GCJ='-Wl,'
25448         lt_prog_compiler_pic_GCJ='-KPIC'
25449         lt_prog_compiler_static_GCJ='-static'
25450          ;;
25451 +      pgcc* | pgf77* | pgf90* | pgf95*)
25452 +        # Portland Group compilers (*not* the Pentium gcc compiler,
25453 +       # which looks to be a dead project)
25454 +       lt_prog_compiler_wl_GCJ='-Wl,'
25455 +       lt_prog_compiler_pic_GCJ='-fpic'
25456 +       lt_prog_compiler_static_GCJ='-Bstatic'
25457 +        ;;
25458        ccc*)
25459          lt_prog_compiler_wl_GCJ='-Wl,'
25460          # All Alpha code is PIC.
25461          lt_prog_compiler_static_GCJ='-non_shared'
25462          ;;
25463 +      *)
25464 +        case `$CC -V 2>&1 | sed 5q` in
25465 +       *Sun\ C*)
25466 +         # Sun C 5.9
25467 +         lt_prog_compiler_pic_GCJ='-KPIC'
25468 +         lt_prog_compiler_static_GCJ='-Bstatic'
25469 +         lt_prog_compiler_wl_GCJ='-Wl,'
25470 +         ;;
25471 +       *Sun\ F*)
25472 +         # Sun Fortran 8.3 passes all unrecognized flags to the linker
25473 +         lt_prog_compiler_pic_GCJ='-KPIC'
25474 +         lt_prog_compiler_static_GCJ='-Bstatic'
25475 +         lt_prog_compiler_wl_GCJ=''
25476 +         ;;
25477 +       esac
25478 +       ;;
25479        esac
25480        ;;
25481  
25482 @@ -15739,15 +17111,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25483        lt_prog_compiler_static_GCJ='-non_shared'
25484        ;;
25485  
25486 -    sco3.2v5*)
25487 -      lt_prog_compiler_pic_GCJ='-Kpic'
25488 -      lt_prog_compiler_static_GCJ='-dn'
25489 +    rdos*)
25490 +      lt_prog_compiler_static_GCJ='-non_shared'
25491        ;;
25492  
25493      solaris*)
25494 -      lt_prog_compiler_wl_GCJ='-Wl,'
25495        lt_prog_compiler_pic_GCJ='-KPIC'
25496        lt_prog_compiler_static_GCJ='-Bstatic'
25497 +      case $cc_basename in
25498 +      f77* | f90* | f95*)
25499 +       lt_prog_compiler_wl_GCJ='-Qoption ld ';;
25500 +      *)
25501 +       lt_prog_compiler_wl_GCJ='-Wl,';;
25502 +      esac
25503        ;;
25504  
25505      sunos4*)
25506 @@ -15756,7 +17132,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25507        lt_prog_compiler_static_GCJ='-Bstatic'
25508        ;;
25509  
25510 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25511 +    sysv4 | sysv4.2uw2* | sysv4.3*)
25512        lt_prog_compiler_wl_GCJ='-Wl,'
25513        lt_prog_compiler_pic_GCJ='-KPIC'
25514        lt_prog_compiler_static_GCJ='-Bstatic'
25515 @@ -15769,6 +17145,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25516        fi
25517        ;;
25518  
25519 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
25520 +      lt_prog_compiler_wl_GCJ='-Wl,'
25521 +      lt_prog_compiler_pic_GCJ='-KPIC'
25522 +      lt_prog_compiler_static_GCJ='-Bstatic'
25523 +      ;;
25524 +
25525 +    unicos*)
25526 +      lt_prog_compiler_wl_GCJ='-Wl,'
25527 +      lt_prog_compiler_can_build_shared_GCJ=no
25528 +      ;;
25529 +
25530      uts4*)
25531        lt_prog_compiler_pic_GCJ='-pic'
25532        lt_prog_compiler_static_GCJ='-Bstatic'
25533 @@ -15780,22 +17167,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25534      esac
25535    fi
25536  
25537 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
25538 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
25539 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
25540 +$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
25541  
25542  #
25543  # Check to make sure the PIC flag actually works.
25544  #
25545  if test -n "$lt_prog_compiler_pic_GCJ"; then
25546  
25547 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
25548 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
25549 -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
25550 -  echo $ECHO_N "(cached) $ECHO_C" >&6
25551 +{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
25552 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
25553 +if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
25554 +  $as_echo_n "(cached) " >&6
25555  else
25556 -  lt_prog_compiler_pic_works_GCJ=no
25557 +  lt_cv_prog_compiler_pic_works_GCJ=no
25558    ac_outfile=conftest.$ac_objext
25559 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25560 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25561     lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
25562     # Insert the option either (1) after the last *FLAGS variable, or
25563     # (2) before a word containing "conftest.", or (3) at the end.
25564 @@ -15803,28 +17190,30 @@ else
25565     # with a dollar sign (not a hyphen), so the echo should work correctly.
25566     # The option is referenced via a variable to avoid confusing sed.
25567     lt_compile=`echo "$ac_compile" | $SED \
25568 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25569 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25570     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25571     -e 's:$: $lt_compiler_flag:'`
25572 -   (eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
25573 +   (eval echo "\"\$as_me:17196: $lt_compile\"" >&5)
25574     (eval "$lt_compile" 2>conftest.err)
25575     ac_status=$?
25576     cat conftest.err >&5
25577 -   echo "$as_me:15813: \$? = $ac_status" >&5
25578 +   echo "$as_me:17200: \$? = $ac_status" >&5
25579     if (exit $ac_status) && test -s "$ac_outfile"; then
25580       # The compiler can only warn and ignore the option if not recognized
25581 -     # So say no if there are warnings
25582 -     if test ! -s conftest.err; then
25583 -       lt_prog_compiler_pic_works_GCJ=yes
25584 +     # So say no if there are warnings other than the usual output.
25585 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
25586 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25587 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25588 +       lt_cv_prog_compiler_pic_works_GCJ=yes
25589       fi
25590     fi
25591     $rm conftest*
25592  
25593  fi
25594 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
25595 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
25596 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
25597 +$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
25598  
25599 -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
25600 +if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
25601      case $lt_prog_compiler_pic_GCJ in
25602       "" | " "*) ;;
25603       *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
25604 @@ -15835,7 +17224,7 @@ else
25605  fi
25606  
25607  fi
25608 -case "$host_os" in
25609 +case $host_os in
25610    # For platforms which do not support PIC, -DPIC is meaningless:
25611    *djgpp*)
25612      lt_prog_compiler_pic_GCJ=
25613 @@ -15845,17 +17234,59 @@ case "$host_os" in
25614      ;;
25615  esac
25616  
25617 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25618 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
25619 +#
25620 +# Check to make sure the static flag actually works.
25621 +#
25622 +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
25623 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25624 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
25625 +if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
25626 +  $as_echo_n "(cached) " >&6
25627 +else
25628 +  lt_cv_prog_compiler_static_works_GCJ=no
25629 +   save_LDFLAGS="$LDFLAGS"
25630 +   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
25631 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
25632 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
25633 +     # The linker can only warn and ignore the option if not recognized
25634 +     # So say no if there are warnings
25635 +     if test -s conftest.err; then
25636 +       # Append any errors to the config.log.
25637 +       cat conftest.err 1>&5
25638 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
25639 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25640 +       if diff conftest.exp conftest.er2 >/dev/null; then
25641 +         lt_cv_prog_compiler_static_works_GCJ=yes
25642 +       fi
25643 +     else
25644 +       lt_cv_prog_compiler_static_works_GCJ=yes
25645 +     fi
25646 +   fi
25647 +   $rm -r conftest*
25648 +   LDFLAGS="$save_LDFLAGS"
25649 +
25650 +fi
25651 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
25652 +$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
25653 +
25654 +if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
25655 +    :
25656 +else
25657 +    lt_prog_compiler_static_GCJ=
25658 +fi
25659 +
25660 +
25661 +{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25662 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25663  if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
25664 -  echo $ECHO_N "(cached) $ECHO_C" >&6
25665 +  $as_echo_n "(cached) " >&6
25666  else
25667    lt_cv_prog_compiler_c_o_GCJ=no
25668     $rm -r conftest 2>/dev/null
25669     mkdir conftest
25670     cd conftest
25671     mkdir out
25672 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25673 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25674  
25675     lt_compiler_flag="-o out/conftest2.$ac_objext"
25676     # Insert the option either (1) after the last *FLAGS variable, or
25677 @@ -15863,23 +17294,25 @@ else
25678     # Note that $ac_compile itself does not contain backslashes and begins
25679     # with a dollar sign (not a hyphen), so the echo should work correctly.
25680     lt_compile=`echo "$ac_compile" | $SED \
25681 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25682 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25683     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25684     -e 's:$: $lt_compiler_flag:'`
25685 -   (eval echo "\"\$as_me:15869: $lt_compile\"" >&5)
25686 +   (eval echo "\"\$as_me:17300: $lt_compile\"" >&5)
25687     (eval "$lt_compile" 2>out/conftest.err)
25688     ac_status=$?
25689     cat out/conftest.err >&5
25690 -   echo "$as_me:15873: \$? = $ac_status" >&5
25691 +   echo "$as_me:17304: \$? = $ac_status" >&5
25692     if (exit $ac_status) && test -s out/conftest2.$ac_objext
25693     then
25694       # The compiler can only warn and ignore the option if not recognized
25695       # So say no if there are warnings
25696 -     if test ! -s out/conftest.err; then
25697 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
25698 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25699 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25700         lt_cv_prog_compiler_c_o_GCJ=yes
25701       fi
25702     fi
25703 -   chmod u+w .
25704 +   chmod u+w . 2>&5
25705     $rm conftest*
25706     # SGI C++ compiler will create directory out/ii_files/ for
25707     # template instantiation
25708 @@ -15890,34 +17323,34 @@ else
25709     $rm conftest*
25710  
25711  fi
25712 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25713 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
25714 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25715 +$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
25716  
25717  
25718  hard_links="nottested"
25719  if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
25720    # do not overwrite the value of need_locks provided by the user
25721 -  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25722 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
25723 +  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25724 +$as_echo_n "checking if we can lock with hard links... " >&6; }
25725    hard_links=yes
25726    $rm conftest*
25727    ln conftest.a conftest.b 2>/dev/null && hard_links=no
25728    touch conftest.a
25729    ln conftest.a conftest.b 2>&5 || hard_links=no
25730    ln conftest.a conftest.b 2>/dev/null && hard_links=no
25731 -  echo "$as_me:$LINENO: result: $hard_links" >&5
25732 -echo "${ECHO_T}$hard_links" >&6
25733 +  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
25734 +$as_echo "$hard_links" >&6; }
25735    if test "$hard_links" = no; then
25736 -    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25737 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25738 +    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25739 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25740      need_locks=warn
25741    fi
25742  else
25743    need_locks=no
25744  fi
25745  
25746 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25747 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
25748 +{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25749 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25750  
25751    runpath_var=
25752    allow_undefined_flag_GCJ=
25753 @@ -15948,13 +17381,24 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
25754    # it will be wrapped by ` (' and `)$', so one must not match beginning or
25755    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25756    # as well as any symbol that contains `d'.
25757 -  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
25758 +  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25759    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25760    # platforms (ab)use it in PIC code, but their linkers get confused if
25761    # the symbol is explicitly referenced.  Since portable code cannot
25762    # rely on this symbol name, it's probably fine to never include it in
25763    # preloaded symbol tables.
25764 +  # Exclude shared library initialization/finalization symbols.
25765    extract_expsyms_cmds=
25766 +  # Just being paranoid about ensuring that cc_basename is set.
25767 +  for cc_temp in $compiler""; do
25768 +  case $cc_temp in
25769 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25770 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25771 +    \-*) ;;
25772 +    *) break;;
25773 +  esac
25774 +done
25775 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25776  
25777    case $host_os in
25778    cygwin* | mingw* | pw32*)
25779 @@ -15965,6 +17409,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
25780        with_gnu_ld=no
25781      fi
25782      ;;
25783 +  interix*)
25784 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
25785 +    with_gnu_ld=yes
25786 +    ;;
25787    openbsd*)
25788      with_gnu_ld=no
25789      ;;
25790 @@ -15975,9 +17423,30 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
25791      # If archive_cmds runs LD, not CC, wlarc should be empty
25792      wlarc='${wl}'
25793  
25794 +    # Set some defaults for GNU ld with shared library support. These
25795 +    # are reset later if shared libraries are not supported. Putting them
25796 +    # here allows them to be overridden if necessary.
25797 +    runpath_var=LD_RUN_PATH
25798 +    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25799 +    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25800 +    # ancient GNU ld didn't support --whole-archive et. al.
25801 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25802 +       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25803 +      else
25804 +       whole_archive_flag_spec_GCJ=
25805 +    fi
25806 +    supports_anon_versioning=no
25807 +    case `$LD -v 2>/dev/null` in
25808 +      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25809 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25810 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25811 +      *\ 2.11.*) ;; # other 2.11 versions
25812 +      *) supports_anon_versioning=yes ;;
25813 +    esac
25814 +
25815      # See if GNU ld supports shared libraries.
25816      case $host_os in
25817 -    aix3* | aix4* | aix5*)
25818 +    aix[3-9]*)
25819        # On AIX/PPC, the GNU linker is very broken
25820        if test "$host_cpu" != ia64; then
25821         ld_shlibs_GCJ=no
25822 @@ -16025,10 +17494,10 @@ EOF
25823        allow_undefined_flag_GCJ=unsupported
25824        always_export_symbols_GCJ=no
25825        enable_shared_with_static_runtimes_GCJ=yes
25826 -      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
25827 +      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25828  
25829        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25830 -        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
25831 +        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25832         # If the export-symbols file already is a .def file (1st line
25833         # is EXPORTS), use it as is; otherwise, prepend...
25834         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25835 @@ -16037,13 +17506,69 @@ EOF
25836           echo EXPORTS > $output_objdir/$soname.def;
25837           cat $export_symbols >> $output_objdir/$soname.def;
25838         fi~
25839 -       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
25840 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25841        else
25842 -       ld_shlibs=no
25843 +       ld_shlibs_GCJ=no
25844 +      fi
25845 +      ;;
25846 +
25847 +    interix[3-9]*)
25848 +      hardcode_direct_GCJ=no
25849 +      hardcode_shlibpath_var_GCJ=no
25850 +      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25851 +      export_dynamic_flag_spec_GCJ='${wl}-E'
25852 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25853 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
25854 +      # default) and relocated if they conflict, which is a slow very memory
25855 +      # consuming and fragmenting process.  To avoid this, we pick a random,
25856 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25857 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
25858 +      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25859 +      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25860 +      ;;
25861 +
25862 +    gnu* | linux* | k*bsd*-gnu)
25863 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25864 +       tmp_addflag=
25865 +       case $cc_basename,$host_cpu in
25866 +       pgcc*)                          # Portland Group C compiler
25867 +         whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25868 +         tmp_addflag=' $pic_flag'
25869 +         ;;
25870 +       pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
25871 +         whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25872 +         tmp_addflag=' $pic_flag -Mnomain' ;;
25873 +       ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
25874 +         tmp_addflag=' -i_dynamic' ;;
25875 +       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
25876 +         tmp_addflag=' -i_dynamic -nofor_main' ;;
25877 +       ifc* | ifort*)                  # Intel Fortran compiler
25878 +         tmp_addflag=' -nofor_main' ;;
25879 +       esac
25880 +       case `$CC -V 2>&1 | sed 5q` in
25881 +       *Sun\ C*)                       # Sun C 5.9
25882 +         whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25883 +         tmp_sharedflag='-G' ;;
25884 +       *Sun\ F*)                       # Sun Fortran 8.3
25885 +         tmp_sharedflag='-G' ;;
25886 +       *)
25887 +         tmp_sharedflag='-shared' ;;
25888 +       esac
25889 +       archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25890 +
25891 +       if test $supports_anon_versioning = yes; then
25892 +         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25893 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25894 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
25895 +         $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25896 +       fi
25897 +       link_all_deplibs_GCJ=no
25898 +      else
25899 +       ld_shlibs_GCJ=no
25900        fi
25901        ;;
25902  
25903 -    netbsd*)
25904 +    netbsd* | netbsdelf*-gnu)
25905        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25906         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25907         wlarc=
25908 @@ -16053,7 +17578,7 @@ EOF
25909        fi
25910        ;;
25911  
25912 -    solaris* | sysv5*)
25913 +    solaris*)
25914        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25915         ld_shlibs_GCJ=no
25916         cat <<EOF 1>&2
25917 @@ -16074,6 +17599,33 @@ EOF
25918        fi
25919        ;;
25920  
25921 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25922 +      case `$LD -v 2>&1` in
25923 +        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25924 +       ld_shlibs_GCJ=no
25925 +       cat <<_LT_EOF 1>&2
25926 +
25927 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25928 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
25929 +*** is disabling shared libraries support.  We urge you to upgrade GNU
25930 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
25931 +*** your PATH or compiler configuration so that the native linker is
25932 +*** used, and then restart.
25933 +
25934 +_LT_EOF
25935 +       ;;
25936 +       *)
25937 +         if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25938 +           hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
25939 +           archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
25940 +           archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
25941 +         else
25942 +           ld_shlibs_GCJ=no
25943 +         fi
25944 +       ;;
25945 +      esac
25946 +      ;;
25947 +
25948      sunos4*)
25949        archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25950        wlarc=
25951 @@ -16081,31 +17633,6 @@ EOF
25952        hardcode_shlibpath_var_GCJ=no
25953        ;;
25954  
25955 -  linux*)
25956 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25957 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25958 -       archive_cmds_GCJ="$tmp_archive_cmds"
25959 -      supports_anon_versioning=no
25960 -      case `$LD -v 2>/dev/null` in
25961 -        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25962 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25963 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25964 -        *\ 2.11.*) ;; # other 2.11 versions
25965 -        *) supports_anon_versioning=yes ;;
25966 -      esac
25967 -      if test $supports_anon_versioning = yes; then
25968 -        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25969 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25970 -$echo "local: *; };" >> $output_objdir/$libname.ver~
25971 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25972 -      else
25973 -        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
25974 -      fi
25975 -    else
25976 -      ld_shlibs_GCJ=no
25977 -    fi
25978 -    ;;
25979 -
25980      *)
25981        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25982         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25983 @@ -16116,16 +17643,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
25984        ;;
25985      esac
25986  
25987 -    if test "$ld_shlibs_GCJ" = yes; then
25988 -      runpath_var=LD_RUN_PATH
25989 -      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25990 -      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25991 -      # ancient GNU ld didn't support --whole-archive et. al.
25992 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25993 -       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25994 -      else
25995 -       whole_archive_flag_spec_GCJ=
25996 -      fi
25997 +    if test "$ld_shlibs_GCJ" = no; then
25998 +      runpath_var=
25999 +      hardcode_libdir_flag_spec_GCJ=
26000 +      export_dynamic_flag_spec_GCJ=
26001 +      whole_archive_flag_spec_GCJ=
26002      fi
26003    else
26004      # PORTME fill in a description of your system's linker (not GNU ld)
26005 @@ -16137,14 +17659,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
26006        # Note: this linker hardcodes the directories in LIBPATH if there
26007        # are no directories specified by -L.
26008        hardcode_minus_L_GCJ=yes
26009 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
26010 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
26011         # Neither direct hardcoding nor static linking is supported with a
26012         # broken collect2.
26013         hardcode_direct_GCJ=unsupported
26014        fi
26015        ;;
26016  
26017 -    aix4* | aix5*)
26018 +    aix[4-9]*)
26019        if test "$host_cpu" = ia64; then
26020         # On IA64, the linker does run time linking by default, so we don't
26021         # have to do anything special.
26022 @@ -16164,13 +17686,14 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
26023         # Test if we are trying to use run time linking or normal
26024         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
26025         # need to do runtime linking.
26026 -       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
26027 +       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
26028           for ld_flag in $LDFLAGS; do
26029           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26030             aix_use_runtimelinking=yes
26031             break
26032           fi
26033           done
26034 +         ;;
26035         esac
26036  
26037         exp_sym_flag='-bexport'
26038 @@ -16189,7 +17712,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
26039        link_all_deplibs_GCJ=yes
26040  
26041        if test "$GCC" = yes; then
26042 -       case $host_os in aix4.012|aix4.012.*)
26043 +       case $host_os in aix4.[012]|aix4.[012].*)
26044         # We only want to do this on AIX 4.2 and lower, the check
26045         # below for broken collect2 doesn't work under 4.3+
26046           collect2name=`${CC} -print-prog-name=collect2`
26047 @@ -16197,7 +17720,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
26048            strings "$collect2name" | grep resolve_lib_name >/dev/null
26049           then
26050           # We have reworked collect2
26051 -         hardcode_direct_GCJ=yes
26052 +         :
26053           else
26054           # We have old collect2
26055           hardcode_direct_GCJ=unsupported
26056 @@ -16208,8 +17731,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
26057           hardcode_libdir_flag_spec_GCJ='-L$libdir'
26058           hardcode_libdir_separator_GCJ=
26059           fi
26060 +         ;;
26061         esac
26062         shared_flag='-shared'
26063 +       if test "$aix_use_runtimelinking" = yes; then
26064 +         shared_flag="$shared_flag "'${wl}-G'
26065 +       fi
26066        else
26067         # not using gcc
26068         if test "$host_cpu" = ia64; then
26069 @@ -16217,11 +17744,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
26070         # chokes on -Wl,-G. The following line is correct:
26071           shared_flag='-G'
26072         else
26073 -       if test "$aix_use_runtimelinking" = yes; then
26074 +         if test "$aix_use_runtimelinking" = yes; then
26075             shared_flag='${wl}-G'
26076           else
26077             shared_flag='${wl}-bM:SRE'
26078 -       fi
26079 +         fi
26080         fi
26081        fi
26082  
26083 @@ -16249,49 +17776,58 @@ main ()
26084  }
26085  _ACEOF
26086  rm -f conftest.$ac_objext conftest$ac_exeext
26087 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26088 -  (eval $ac_link) 2>conftest.er1
26089 +if { (ac_try="$ac_link"
26090 +case "(($ac_try" in
26091 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092 +  *) ac_try_echo=$ac_try;;
26093 +esac
26094 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26095 +$as_echo "$ac_try_echo") >&5
26096 +  (eval "$ac_link") 2>conftest.er1
26097    ac_status=$?
26098    grep -v '^ *+' conftest.er1 >conftest.err
26099    rm -f conftest.er1
26100    cat conftest.err >&5
26101 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 -  (exit $ac_status); } &&
26103 -        { ac_try='test -z "$ac_c_werror_flag"
26104 -                        || test ! -s conftest.err'
26105 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26106 -  (eval $ac_try) 2>&5
26107 -  ac_status=$?
26108 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 -  (exit $ac_status); }; } &&
26110 -        { ac_try='test -s conftest$ac_exeext'
26111 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112 -  (eval $ac_try) 2>&5
26113 -  ac_status=$?
26114 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 -  (exit $ac_status); }; }; then
26116 -
26117 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
26118 -}'`
26119 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 +  (exit $ac_status); } && {
26121 +        test -z "$ac_c_werror_flag" ||
26122 +        test ! -s conftest.err
26123 +       } && test -s conftest$ac_exeext && {
26124 +        test "$cross_compiling" = yes ||
26125 +        $as_test_x conftest$ac_exeext
26126 +       }; then
26127 +
26128 +lt_aix_libpath_sed='
26129 +    /Import File Strings/,/^$/ {
26130 +       /^0/ {
26131 +           s/^0  *\(.*\)$/\1/
26132 +           p
26133 +       }
26134 +    }'
26135 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26136  # Check for a 64-bit object if we didn't find anything.
26137 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
26138 -}'`; fi
26139 +if test -z "$aix_libpath"; then
26140 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26141 +fi
26142  else
26143 -  echo "$as_me: failed program was:" >&5
26144 +  $as_echo "$as_me: failed program was:" >&5
26145  sed 's/^/| /' conftest.$ac_ext >&5
26146  
26147 +
26148  fi
26149 -rm -f conftest.err conftest.$ac_objext \
26150 +
26151 +rm -rf conftest.dSYM
26152 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26153        conftest$ac_exeext conftest.$ac_ext
26154  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26155  
26156         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
26157 -       archive_expsym_cmds_GCJ="\$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"
26158 +       archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
26159         else
26160         if test "$host_cpu" = ia64; then
26161           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
26162           allow_undefined_flag_GCJ="-z nodefs"
26163 -         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
26164 +         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
26165         else
26166          # Determine the default libpath from the value encoded in an empty executable.
26167          cat >conftest.$ac_ext <<_ACEOF
26168 @@ -16310,39 +17846,48 @@ main ()
26169  }
26170  _ACEOF
26171  rm -f conftest.$ac_objext conftest$ac_exeext
26172 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26173 -  (eval $ac_link) 2>conftest.er1
26174 +if { (ac_try="$ac_link"
26175 +case "(($ac_try" in
26176 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26177 +  *) ac_try_echo=$ac_try;;
26178 +esac
26179 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26180 +$as_echo "$ac_try_echo") >&5
26181 +  (eval "$ac_link") 2>conftest.er1
26182    ac_status=$?
26183    grep -v '^ *+' conftest.er1 >conftest.err
26184    rm -f conftest.er1
26185    cat conftest.err >&5
26186 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 -  (exit $ac_status); } &&
26188 -        { ac_try='test -z "$ac_c_werror_flag"
26189 -                        || test ! -s conftest.err'
26190 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191 -  (eval $ac_try) 2>&5
26192 -  ac_status=$?
26193 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 -  (exit $ac_status); }; } &&
26195 -        { ac_try='test -s conftest$ac_exeext'
26196 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197 -  (eval $ac_try) 2>&5
26198 -  ac_status=$?
26199 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 -  (exit $ac_status); }; }; then
26201 -
26202 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
26203 -}'`
26204 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 +  (exit $ac_status); } && {
26206 +        test -z "$ac_c_werror_flag" ||
26207 +        test ! -s conftest.err
26208 +       } && test -s conftest$ac_exeext && {
26209 +        test "$cross_compiling" = yes ||
26210 +        $as_test_x conftest$ac_exeext
26211 +       }; then
26212 +
26213 +lt_aix_libpath_sed='
26214 +    /Import File Strings/,/^$/ {
26215 +       /^0/ {
26216 +           s/^0  *\(.*\)$/\1/
26217 +           p
26218 +       }
26219 +    }'
26220 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26221  # Check for a 64-bit object if we didn't find anything.
26222 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
26223 -}'`; fi
26224 +if test -z "$aix_libpath"; then
26225 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26226 +fi
26227  else
26228 -  echo "$as_me: failed program was:" >&5
26229 +  $as_echo "$as_me: failed program was:" >&5
26230  sed 's/^/| /' conftest.$ac_ext >&5
26231  
26232 +
26233  fi
26234 -rm -f conftest.err conftest.$ac_objext \
26235 +
26236 +rm -rf conftest.dSYM
26237 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26238        conftest$ac_exeext conftest.$ac_ext
26239  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26240  
26241 @@ -16351,13 +17896,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26242           # -berok will link without error, but may produce a broken library.
26243           no_undefined_flag_GCJ=' ${wl}-bernotok'
26244           allow_undefined_flag_GCJ=' ${wl}-berok'
26245 -         # -bexpall does not export symbols beginning with underscore (_)
26246 -         always_export_symbols_GCJ=yes
26247           # Exported symbols can be pulled into shared objects from archives
26248 -         whole_archive_flag_spec_GCJ=' '
26249 +         whole_archive_flag_spec_GCJ='$convenience'
26250           archive_cmds_need_lc_GCJ=yes
26251 -         # This is similar to how AIX traditionally builds it's shared libraries.
26252 -         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
26253 +         # This is similar to how AIX traditionally builds its shared libraries.
26254 +         archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
26255         fi
26256        fi
26257        ;;
26258 @@ -16370,7 +17913,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26259        ld_shlibs_GCJ=no
26260        ;;
26261  
26262 -    bsdi4*)
26263 +    bsdi[45]*)
26264        export_dynamic_flag_spec_GCJ=-rdynamic
26265        ;;
26266  
26267 @@ -16390,58 +17933,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26268        # The linker will automatically build a .lib file if we build a DLL.
26269        old_archive_From_new_cmds_GCJ='true'
26270        # FIXME: Should let the user specify the lib program.
26271 -      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
26272 -      fix_srcfile_path='`cygpath -w "$srcfile"`'
26273 +      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
26274 +      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
26275        enable_shared_with_static_runtimes_GCJ=yes
26276        ;;
26277  
26278      darwin* | rhapsody*)
26279 -    if test "$GXX" = yes ; then
26280 -      archive_cmds_need_lc_GCJ=no
26281 -      case "$host_os" in
26282 -      rhapsody* | darwin1.[012])
26283 -       allow_undefined_flag_GCJ='-undefined suppress'
26284 -       ;;
26285 -      *) # Darwin 1.3 on
26286 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26287 -       allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
26288 -      else
26289 -        case ${MACOSX_DEPLOYMENT_TARGET} in
26290 -          10.[012])
26291 -            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
26292 -            ;;
26293 -          10.*)
26294 -            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
26295 -            ;;
26296 -        esac
26297 -      fi
26298 -       ;;
26299 +      case $host_os in
26300 +        rhapsody* | darwin1.[012])
26301 +         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
26302 +         ;;
26303 +       *) # Darwin 1.3 on
26304 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26305 +           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26306 +         else
26307 +           case ${MACOSX_DEPLOYMENT_TARGET} in
26308 +             10.[012])
26309 +               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26310 +               ;;
26311 +             10.*)
26312 +               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
26313 +               ;;
26314 +           esac
26315 +         fi
26316 +         ;;
26317        esac
26318 -       lt_int_apple_cc_single_mod=no
26319 -       output_verbose_link_cmd='echo'
26320 -       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
26321 -         lt_int_apple_cc_single_mod=yes
26322 -       fi
26323 -       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
26324 -         archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
26325 -       else
26326 -        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
26327 -      fi
26328 -      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26329 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
26330 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
26331 -          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26332 -        else
26333 -          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26334 -        fi
26335 -          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26336 +      archive_cmds_need_lc_GCJ=no
26337        hardcode_direct_GCJ=no
26338        hardcode_automatic_GCJ=yes
26339        hardcode_shlibpath_var_GCJ=unsupported
26340 -      whole_archive_flag_spec_GCJ='-all_load $convenience'
26341 +      whole_archive_flag_spec_GCJ=''
26342        link_all_deplibs_GCJ=yes
26343 +    if test "$GCC" = yes ; then
26344 +       output_verbose_link_cmd='echo'
26345 +        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
26346 +        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
26347 +        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
26348 +        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
26349      else
26350 -      ld_shlibs_GCJ=no
26351 +      case $cc_basename in
26352 +        xlc*)
26353 +         output_verbose_link_cmd='echo'
26354 +         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
26355 +         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26356 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
26357 +         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26358 +          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26359 +          ;;
26360 +       *)
26361 +         ld_shlibs_GCJ=no
26362 +          ;;
26363 +      esac
26364      fi
26365        ;;
26366  
26367 @@ -16475,7 +18017,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26368        ;;
26369  
26370      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26371 -    freebsd* | kfreebsd*-gnu)
26372 +    freebsd* | dragonfly*)
26373        archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
26374        hardcode_libdir_flag_spec_GCJ='-R$libdir'
26375        hardcode_direct_GCJ=yes
26376 @@ -16498,47 +18040,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26377        export_dynamic_flag_spec_GCJ='${wl}-E'
26378        ;;
26379  
26380 -    hpux10* | hpux11*)
26381 +    hpux10*)
26382        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26383 -       case "$host_cpu" in
26384 -       hppa*64*|ia64*)
26385 +       archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26386 +      else
26387 +       archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26388 +      fi
26389 +      if test "$with_gnu_ld" = no; then
26390 +       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26391 +       hardcode_libdir_separator_GCJ=:
26392 +
26393 +       hardcode_direct_GCJ=yes
26394 +       export_dynamic_flag_spec_GCJ='${wl}-E'
26395 +
26396 +       # hardcode_minus_L: Not really in the search PATH,
26397 +       # but as the default location of the library.
26398 +       hardcode_minus_L_GCJ=yes
26399 +      fi
26400 +      ;;
26401 +
26402 +    hpux11*)
26403 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26404 +       case $host_cpu in
26405 +       hppa*64*)
26406           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26407           ;;
26408 +       ia64*)
26409 +         archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26410 +         ;;
26411         *)
26412           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26413           ;;
26414         esac
26415        else
26416 -       case "$host_cpu" in
26417 -       hppa*64*|ia64*)
26418 -         archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
26419 +       case $host_cpu in
26420 +       hppa*64*)
26421 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26422 +         ;;
26423 +       ia64*)
26424 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26425           ;;
26426         *)
26427 -         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26428 +         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26429           ;;
26430         esac
26431        fi
26432        if test "$with_gnu_ld" = no; then
26433 -       case "$host_cpu" in
26434 -       hppa*64*)
26435 -         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26436 +       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26437 +       hardcode_libdir_separator_GCJ=:
26438 +
26439 +       case $host_cpu in
26440 +       hppa*64*|ia64*)
26441           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
26442 -         hardcode_libdir_separator_GCJ=:
26443 -         hardcode_direct_GCJ=no
26444 -         hardcode_shlibpath_var_GCJ=no
26445 -         ;;
26446 -       ia64*)
26447 -         hardcode_libdir_flag_spec_GCJ='-L$libdir'
26448           hardcode_direct_GCJ=no
26449           hardcode_shlibpath_var_GCJ=no
26450 -
26451 -         # hardcode_minus_L: Not really in the search PATH,
26452 -         # but as the default location of the library.
26453 -         hardcode_minus_L_GCJ=yes
26454           ;;
26455         *)
26456 -         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26457 -         hardcode_libdir_separator_GCJ=:
26458           hardcode_direct_GCJ=yes
26459           export_dynamic_flag_spec_GCJ='${wl}-E'
26460  
26461 @@ -16562,7 +18119,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26462        link_all_deplibs_GCJ=yes
26463        ;;
26464  
26465 -    netbsd*)
26466 +    netbsd* | netbsdelf*-gnu)
26467        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26468         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
26469        else
26470 @@ -16582,23 +18139,28 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26471        ;;
26472  
26473      openbsd*)
26474 -      hardcode_direct_GCJ=yes
26475 -      hardcode_shlibpath_var_GCJ=no
26476 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26477 -       archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26478 -       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26479 -       export_dynamic_flag_spec_GCJ='${wl}-E'
26480 +      if test -f /usr/libexec/ld.so; then
26481 +       hardcode_direct_GCJ=yes
26482 +       hardcode_shlibpath_var_GCJ=no
26483 +       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26484 +         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26485 +         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
26486 +         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26487 +         export_dynamic_flag_spec_GCJ='${wl}-E'
26488 +       else
26489 +         case $host_os in
26490 +          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26491 +            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26492 +            hardcode_libdir_flag_spec_GCJ='-R$libdir'
26493 +            ;;
26494 +          *)
26495 +            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26496 +            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26497 +            ;;
26498 +         esac
26499 +        fi
26500        else
26501 -       case $host_os in
26502 -        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26503 -          archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26504 -          hardcode_libdir_flag_spec_GCJ='-R$libdir'
26505 -          ;;
26506 -        *)
26507 -          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26508 -          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26509 -          ;;
26510 -       esac
26511 +       ld_shlibs_GCJ=no
26512        fi
26513        ;;
26514  
26515 @@ -16631,7 +18193,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26516         allow_undefined_flag_GCJ=' -expect_unresolved \*'
26517         archive_cmds_GCJ='$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'
26518         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
26519 -       $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'
26520 +       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
26521  
26522         # Both c and cxx compiler support -rpath directly
26523         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
26524 @@ -16639,21 +18201,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26525        hardcode_libdir_separator_GCJ=:
26526        ;;
26527  
26528 -    sco3.2v5*)
26529 -      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26530 -      hardcode_shlibpath_var_GCJ=no
26531 -      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
26532 -      runpath_var=LD_RUN_PATH
26533 -      hardcode_runpath_var=yes
26534 -      ;;
26535 -
26536      solaris*)
26537        no_undefined_flag_GCJ=' -z text'
26538        if test "$GCC" = yes; then
26539 +       wlarc='${wl}'
26540         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26541         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26542           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
26543        else
26544 +       wlarc=''
26545         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26546         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26547         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26548 @@ -16662,8 +18218,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26549        hardcode_shlibpath_var_GCJ=no
26550        case $host_os in
26551        solaris2.[0-5] | solaris2.[0-5].*) ;;
26552 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
26553 -       whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
26554 +      *)
26555 +       # The compiler driver will combine and reorder linker options,
26556 +       # but understands `-z linker_flag'.  GCC discards it without `$wl',
26557 +       # but is careful enough not to reorder.
26558 +       # Supported since Solaris 2.6 (maybe 2.5.1?)
26559 +       if test "$GCC" = yes; then
26560 +         whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
26561 +       else
26562 +         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
26563 +       fi
26564 +       ;;
26565        esac
26566        link_all_deplibs_GCJ=yes
26567        ;;
26568 @@ -16720,36 +18285,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26569        fi
26570        ;;
26571  
26572 -    sysv4.2uw2*)
26573 -      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26574 -      hardcode_direct_GCJ=yes
26575 -      hardcode_minus_L_GCJ=no
26576 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
26577 +      no_undefined_flag_GCJ='${wl}-z,text'
26578 +      archive_cmds_need_lc_GCJ=no
26579        hardcode_shlibpath_var_GCJ=no
26580 -      hardcode_runpath_var=yes
26581 -      runpath_var=LD_RUN_PATH
26582 -      ;;
26583 +      runpath_var='LD_RUN_PATH'
26584  
26585 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
26586 -      no_undefined_flag_GCJ='${wl}-z ${wl}text'
26587        if test "$GCC" = yes; then
26588 -       archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26589 +       archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26590 +       archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26591        else
26592 -       archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26593 +       archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26594 +       archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26595        fi
26596 -      runpath_var='LD_RUN_PATH'
26597 -      hardcode_shlibpath_var_GCJ=no
26598        ;;
26599  
26600 -    sysv5*)
26601 -      no_undefined_flag_GCJ=' -z text'
26602 -      # $CC -shared without GNU ld will not create a library from C++
26603 -      # object files and a static libstdc++, better avoid it by now
26604 -      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26605 -      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26606 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26607 -      hardcode_libdir_flag_spec_GCJ=
26608 +    sysv5* | sco3.2v5* | sco5v6*)
26609 +      # Note: We can NOT use -z defs as we might desire, because we do not
26610 +      # link with -lc, and that would cause any symbols used from libc to
26611 +      # always be unresolved, which means just about no library would
26612 +      # ever link correctly.  If we're not using GNU ld we use -z text
26613 +      # though, which does catch some bad symbols but isn't as heavy-handed
26614 +      # as -z defs.
26615 +      no_undefined_flag_GCJ='${wl}-z,text'
26616 +      allow_undefined_flag_GCJ='${wl}-z,nodefs'
26617 +      archive_cmds_need_lc_GCJ=no
26618        hardcode_shlibpath_var_GCJ=no
26619 +      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
26620 +      hardcode_libdir_separator_GCJ=':'
26621 +      link_all_deplibs_GCJ=yes
26622 +      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
26623        runpath_var='LD_RUN_PATH'
26624 +
26625 +      if test "$GCC" = yes; then
26626 +       archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26627 +       archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26628 +      else
26629 +       archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26630 +       archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26631 +      fi
26632        ;;
26633  
26634      uts4*)
26635 @@ -16764,15 +18338,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26636      esac
26637    fi
26638  
26639 -echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
26640 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6
26641 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
26642 +$as_echo "$ld_shlibs_GCJ" >&6; }
26643  test "$ld_shlibs_GCJ" = no && can_build_shared=no
26644  
26645 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26646 -if test "$GCC" = yes; then
26647 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26648 -fi
26649 -
26650  #
26651  # Do we need to explicitly link libc?
26652  #
26653 @@ -16790,21 +18359,22 @@ x|xyes)
26654        # Test whether the compiler implicitly links with -lc since on some
26655        # systems, -lgcc has to come before -lc. If gcc already passes -lc
26656        # to ld, don't add -lc before -lgcc.
26657 -      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26658 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
26659 +      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26660 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
26661        $rm conftest*
26662 -      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26663 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26664  
26665        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26666    (eval $ac_compile) 2>&5
26667    ac_status=$?
26668 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670    (exit $ac_status); } 2>conftest.err; then
26671          soname=conftest
26672          lib=conftest
26673          libobjs=conftest.$ac_objext
26674          deplibs=
26675          wl=$lt_prog_compiler_wl_GCJ
26676 +       pic_flag=$lt_prog_compiler_pic_GCJ
26677          compiler_flags=-v
26678          linker_flags=-v
26679          verstring=
26680 @@ -16815,7 +18385,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
26681          if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26682    (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26683    ac_status=$?
26684 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686    (exit $ac_status); }
26687          then
26688           archive_cmds_need_lc_GCJ=no
26689 @@ -16827,16 +18397,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
26690          cat conftest.err 1>&5
26691        fi
26692        $rm conftest*
26693 -      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26694 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
26695 +      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26696 +$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
26697        ;;
26698      esac
26699    fi
26700    ;;
26701  esac
26702  
26703 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26704 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
26705 +{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26706 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
26707  library_names_spec=
26708  libname_spec='lib$name'
26709  soname_spec=
26710 @@ -16850,20 +18420,7 @@ shlibpath_overrides_runpath=unknown
26711  version_type=none
26712  dynamic_linker="$host_os ld.so"
26713  sys_lib_dlsearch_path_spec="/lib /usr/lib"
26714 -if test "$GCC" = yes; then
26715 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26716 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26717 -    # if the path contains ";" then we assume it to be the separator
26718 -    # otherwise default to the standard path separator (i.e. ":") - it is
26719 -    # assumed that no part of a normal pathname contains ";" but that should
26720 -    # okay in the real world where ";" in dirpaths is itself problematic.
26721 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26722 -  else
26723 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26724 -  fi
26725 -else
26726 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26727 -fi
26728 +
26729  need_lib_prefix=unknown
26730  hardcode_into_libs=no
26731  
26732 @@ -16881,7 +18438,7 @@ aix3*)
26733    soname_spec='${libname}${release}${shared_ext}$major'
26734    ;;
26735  
26736 -aix4* | aix5*)
26737 +aix[4-9]*)
26738    version_type=linux
26739    need_lib_prefix=no
26740    need_version=no
26741 @@ -16937,7 +18494,7 @@ beos*)
26742    shlibpath_var=LIBRARY_PATH
26743    ;;
26744  
26745 -bsdi4*)
26746 +bsdi[45]*)
26747    version_type=linux
26748    need_version=no
26749    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26750 @@ -16965,7 +18522,8 @@ cygwin* | mingw* | pw32*)
26751        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26752        dldir=$destdir/`dirname \$dlpath`~
26753        test -d \$dldir || mkdir -p \$dldir~
26754 -      $install_prog $dir/$dlname \$dldir/$dlname'
26755 +      $install_prog $dir/$dlname \$dldir/$dlname~
26756 +      chmod a+x \$dldir/$dlname'
26757      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26758        dlpath=$dir/\$dldll~
26759         $rm \$dlpath'
26760 @@ -16995,7 +18553,7 @@ cygwin* | mingw* | pw32*)
26761        ;;
26762      pw32*)
26763        # pw32 DLLs use 'pw' prefix rather than 'lib'
26764 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
26765 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26766        ;;
26767      esac
26768      ;;
26769 @@ -17018,13 +18576,8 @@ darwin* | rhapsody*)
26770    soname_spec='${libname}${release}${major}$shared_ext'
26771    shlibpath_overrides_runpath=yes
26772    shlibpath_var=DYLD_LIBRARY_PATH
26773 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
26774 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26775 -  if test "$GCC" = yes; then
26776 -    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
26777 -  else
26778 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26779 -  fi
26780 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26781 +
26782    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26783    ;;
26784  
26785 @@ -17041,20 +18594,17 @@ freebsd1*)
26786    dynamic_linker=no
26787    ;;
26788  
26789 -kfreebsd*-gnu)
26790 -  version_type=linux
26791 -  need_lib_prefix=no
26792 -  need_version=no
26793 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26794 -  soname_spec='${libname}${release}${shared_ext}$major'
26795 -  shlibpath_var=LD_LIBRARY_PATH
26796 -  shlibpath_overrides_runpath=no
26797 -  hardcode_into_libs=yes
26798 -  dynamic_linker='GNU ld.so'
26799 -  ;;
26800 -
26801 -freebsd*)
26802 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
26803 +freebsd* | dragonfly*)
26804 +  # DragonFly does not have aout.  When/if they implement a new
26805 +  # versioning mechanism, adjust this.
26806 +  if test -x /usr/bin/objformat; then
26807 +    objformat=`/usr/bin/objformat`
26808 +  else
26809 +    case $host_os in
26810 +    freebsd[123]*) objformat=aout ;;
26811 +    *) objformat=elf ;;
26812 +    esac
26813 +  fi
26814    version_type=freebsd-$objformat
26815    case $version_type in
26816      freebsd-elf*)
26817 @@ -17072,14 +18622,19 @@ freebsd*)
26818    freebsd2*)
26819      shlibpath_overrides_runpath=yes
26820      ;;
26821 -  freebsd3.01* | freebsdelf3.01*)
26822 +  freebsd3.[01]* | freebsdelf3.[01]*)
26823      shlibpath_overrides_runpath=yes
26824      hardcode_into_libs=yes
26825      ;;
26826 -  *) # from 3.2 on
26827 +  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26828 +  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26829      shlibpath_overrides_runpath=no
26830      hardcode_into_libs=yes
26831      ;;
26832 +  *) # from 4.6 on, and DragonFly
26833 +    shlibpath_overrides_runpath=yes
26834 +    hardcode_into_libs=yes
26835 +    ;;
26836    esac
26837    ;;
26838  
26839 @@ -17099,7 +18654,7 @@ hpux9* | hpux10* | hpux11*)
26840    version_type=sunos
26841    need_lib_prefix=no
26842    need_version=no
26843 -  case "$host_cpu" in
26844 +  case $host_cpu in
26845    ia64*)
26846      shrext_cmds='.so'
26847      hardcode_into_libs=yes
26848 @@ -17139,6 +18694,18 @@ hpux9* | hpux10* | hpux11*)
26849    postinstall_cmds='chmod 555 $lib'
26850    ;;
26851  
26852 +interix[3-9]*)
26853 +  version_type=linux
26854 +  need_lib_prefix=no
26855 +  need_version=no
26856 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26857 +  soname_spec='${libname}${release}${shared_ext}$major'
26858 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26859 +  shlibpath_var=LD_LIBRARY_PATH
26860 +  shlibpath_overrides_runpath=no
26861 +  hardcode_into_libs=yes
26862 +  ;;
26863 +
26864  irix5* | irix6* | nonstopux*)
26865    case $host_os in
26866      nonstopux*) version_type=nonstopux ;;
26867 @@ -17182,7 +18749,7 @@ linux*oldld* | linux*aout* | linux*coff*)
26868    ;;
26869  
26870  # This must be Linux ELF.
26871 -linux*)
26872 +linux* | k*bsd*-gnu)
26873    version_type=linux
26874    need_lib_prefix=no
26875    need_version=no
26876 @@ -17196,31 +18763,10 @@ linux*)
26877    # before this can be enabled.
26878    hardcode_into_libs=yes
26879  
26880 -  # find out which ABI we are using
26881 -  libsuff=
26882 -  case "$host_cpu" in
26883 -  x86_64*|s390x*|powerpc64*)
26884 -    echo '#line 17203 "configure"' > conftest.$ac_ext
26885 -    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26886 -  (eval $ac_compile) 2>&5
26887 -  ac_status=$?
26888 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 -  (exit $ac_status); }; then
26890 -      case `/usr/bin/file conftest.$ac_objext` in
26891 -      *64-bit*)
26892 -        libsuff=64
26893 -        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
26894 -        ;;
26895 -      esac
26896 -    fi
26897 -    rm -rf conftest*
26898 -    ;;
26899 -  esac
26900 -
26901    # Append ld.so.conf contents to the search path
26902    if test -f /etc/ld.so.conf; then
26903 -    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
26904 -    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
26905 +    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[     ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
26906 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26907    fi
26908  
26909    # We used to test for /lib/ld.so.1 and disable shared libraries on
26910 @@ -17232,7 +18778,7 @@ linux*)
26911    dynamic_linker='GNU/Linux ld.so'
26912    ;;
26913  
26914 -knetbsd*-gnu)
26915 +netbsdelf*-gnu)
26916    version_type=linux
26917    need_lib_prefix=no
26918    need_version=no
26919 @@ -17241,7 +18787,7 @@ knetbsd*-gnu)
26920    shlibpath_var=LD_LIBRARY_PATH
26921    shlibpath_overrides_runpath=no
26922    hardcode_into_libs=yes
26923 -  dynamic_linker='GNU ld.so'
26924 +  dynamic_linker='NetBSD ld.elf_so'
26925    ;;
26926  
26927  netbsd*)
26928 @@ -17281,8 +18827,13 @@ nto-qnx*)
26929  
26930  openbsd*)
26931    version_type=sunos
26932 +  sys_lib_dlsearch_path_spec="/usr/lib"
26933    need_lib_prefix=no
26934 -  need_version=yes
26935 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26936 +  case $host_os in
26937 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26938 +    *)                         need_version=no  ;;
26939 +  esac
26940    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26941    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26942    shlibpath_var=LD_LIBRARY_PATH
26943 @@ -17320,11 +18871,8 @@ osf3* | osf4* | osf5*)
26944    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26945    ;;
26946  
26947 -sco3.2v5*)
26948 -  version_type=osf
26949 -  soname_spec='${libname}${release}${shared_ext}$major'
26950 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26951 -  shlibpath_var=LD_LIBRARY_PATH
26952 +rdos*)
26953 +  dynamic_linker=no
26954    ;;
26955  
26956  solaris*)
26957 @@ -17352,7 +18900,7 @@ sunos4*)
26958    need_version=yes
26959    ;;
26960  
26961 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26962 +sysv4 | sysv4.3*)
26963    version_type=linux
26964    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26965    soname_spec='${libname}${release}${shared_ext}$major'
26966 @@ -17385,6 +18933,29 @@ sysv4*MP*)
26967    fi
26968    ;;
26969  
26970 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26971 +  version_type=freebsd-elf
26972 +  need_lib_prefix=no
26973 +  need_version=no
26974 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26975 +  soname_spec='${libname}${release}${shared_ext}$major'
26976 +  shlibpath_var=LD_LIBRARY_PATH
26977 +  hardcode_into_libs=yes
26978 +  if test "$with_gnu_ld" = yes; then
26979 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26980 +    shlibpath_overrides_runpath=no
26981 +  else
26982 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26983 +    shlibpath_overrides_runpath=yes
26984 +    case $host_os in
26985 +      sco3.2v5*)
26986 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26987 +       ;;
26988 +    esac
26989 +  fi
26990 +  sys_lib_dlsearch_path_spec='/usr/lib'
26991 +  ;;
26992 +
26993  uts4*)
26994    version_type=linux
26995    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26996 @@ -17396,16 +18967,36 @@ uts4*)
26997    dynamic_linker=no
26998    ;;
26999  esac
27000 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
27001 -echo "${ECHO_T}$dynamic_linker" >&6
27002 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
27003 +$as_echo "$dynamic_linker" >&6; }
27004  test "$dynamic_linker" = no && can_build_shared=no
27005  
27006 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
27007 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
27008 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
27009 +  $as_echo_n "(cached) " >&6
27010 +else
27011 +  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
27012 +fi
27013 +
27014 +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
27015 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
27016 +  $as_echo_n "(cached) " >&6
27017 +else
27018 +  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
27019 +fi
27020 +
27021 +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
27022 +
27023 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
27024 +if test "$GCC" = yes; then
27025 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
27026 +fi
27027 +
27028 +{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
27029 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
27030  hardcode_action_GCJ=
27031  if test -n "$hardcode_libdir_flag_spec_GCJ" || \
27032 -   test -n "$runpath_var GCJ" || \
27033 -   test "X$hardcode_automatic_GCJ"="Xyes" ; then
27034 +   test -n "$runpath_var_GCJ" || \
27035 +   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
27036  
27037    # We can hardcode non-existant directories.
27038    if test "$hardcode_direct_GCJ" != no &&
27039 @@ -17425,8 +19016,8 @@ else
27040    # directories.
27041    hardcode_action_GCJ=unsupported
27042  fi
27043 -echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
27044 -echo "${ECHO_T}$hardcode_action_GCJ" >&6
27045 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
27046 +$as_echo "$hardcode_action_GCJ" >&6; }
27047  
27048  if test "$hardcode_action_GCJ" = relink; then
27049    # Fast installation is not supported
27050 @@ -17437,841 +19028,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
27051    enable_fast_install=needless
27052  fi
27053  
27054 -striplib=
27055 -old_striplib=
27056 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
27057 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
27058 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
27059 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
27060 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
27061 -  echo "$as_me:$LINENO: result: yes" >&5
27062 -echo "${ECHO_T}yes" >&6
27063 -else
27064 -# FIXME - insert some real tests, host_os isn't really good enough
27065 -  case $host_os in
27066 -   darwin*)
27067 -       if test -n "$STRIP" ; then
27068 -         striplib="$STRIP -x"
27069 -         echo "$as_me:$LINENO: result: yes" >&5
27070 -echo "${ECHO_T}yes" >&6
27071 -       else
27072 -  echo "$as_me:$LINENO: result: no" >&5
27073 -echo "${ECHO_T}no" >&6
27074 -fi
27075 -       ;;
27076 -   *)
27077 -  echo "$as_me:$LINENO: result: no" >&5
27078 -echo "${ECHO_T}no" >&6
27079 -    ;;
27080 -  esac
27081 -fi
27082 -
27083 -if test "x$enable_dlopen" != xyes; then
27084 -  enable_dlopen=unknown
27085 -  enable_dlopen_self=unknown
27086 -  enable_dlopen_self_static=unknown
27087 -else
27088 -  lt_cv_dlopen=no
27089 -  lt_cv_dlopen_libs=
27090 -
27091 -  case $host_os in
27092 -  beos*)
27093 -    lt_cv_dlopen="load_add_on"
27094 -    lt_cv_dlopen_libs=
27095 -    lt_cv_dlopen_self=yes
27096 -    ;;
27097 -
27098 -  mingw* | pw32*)
27099 -    lt_cv_dlopen="LoadLibrary"
27100 -    lt_cv_dlopen_libs=
27101 -   ;;
27102 -
27103 -  cygwin*)
27104 -    lt_cv_dlopen="dlopen"
27105 -    lt_cv_dlopen_libs=
27106 -   ;;
27107 -
27108 -  darwin*)
27109 -  # if libdl is installed we need to link against it
27110 -    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27111 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27112 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27113 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27114 -else
27115 -  ac_check_lib_save_LIBS=$LIBS
27116 -LIBS="-ldl  $LIBS"
27117 -cat >conftest.$ac_ext <<_ACEOF
27118 -/* confdefs.h.  */
27119 -_ACEOF
27120 -cat confdefs.h >>conftest.$ac_ext
27121 -cat >>conftest.$ac_ext <<_ACEOF
27122 -/* end confdefs.h.  */
27123 -
27124 -/* Override any gcc2 internal prototype to avoid an error.  */
27125 -#ifdef __cplusplus
27126 -extern "C"
27127 -#endif
27128 -/* We use char because int might match the return type of a gcc2
27129 -   builtin and then its argument prototype would still apply.  */
27130 -char dlopen ();
27131 -int
27132 -main ()
27133 -{
27134 -dlopen ();
27135 -  ;
27136 -  return 0;
27137 -}
27138 -_ACEOF
27139 -rm -f conftest.$ac_objext conftest$ac_exeext
27140 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27141 -  (eval $ac_link) 2>conftest.er1
27142 -  ac_status=$?
27143 -  grep -v '^ *+' conftest.er1 >conftest.err
27144 -  rm -f conftest.er1
27145 -  cat conftest.err >&5
27146 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 -  (exit $ac_status); } &&
27148 -        { ac_try='test -z "$ac_c_werror_flag"
27149 -                        || test ! -s conftest.err'
27150 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151 -  (eval $ac_try) 2>&5
27152 -  ac_status=$?
27153 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 -  (exit $ac_status); }; } &&
27155 -        { ac_try='test -s conftest$ac_exeext'
27156 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157 -  (eval $ac_try) 2>&5
27158 -  ac_status=$?
27159 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 -  (exit $ac_status); }; }; then
27161 -  ac_cv_lib_dl_dlopen=yes
27162 -else
27163 -  echo "$as_me: failed program was:" >&5
27164 -sed 's/^/| /' conftest.$ac_ext >&5
27165 -
27166 -ac_cv_lib_dl_dlopen=no
27167 -fi
27168 -rm -f conftest.err conftest.$ac_objext \
27169 -      conftest$ac_exeext conftest.$ac_ext
27170 -LIBS=$ac_check_lib_save_LIBS
27171 -fi
27172 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27173 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27174 -if test $ac_cv_lib_dl_dlopen = yes; then
27175 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27176 -else
27177 -
27178 -    lt_cv_dlopen="dyld"
27179 -    lt_cv_dlopen_libs=
27180 -    lt_cv_dlopen_self=yes
27181 -
27182 -fi
27183 -
27184 -   ;;
27185 -
27186 -  *)
27187 -    echo "$as_me:$LINENO: checking for shl_load" >&5
27188 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
27189 -if test "${ac_cv_func_shl_load+set}" = set; then
27190 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27191 -else
27192 -  cat >conftest.$ac_ext <<_ACEOF
27193 -/* confdefs.h.  */
27194 -_ACEOF
27195 -cat confdefs.h >>conftest.$ac_ext
27196 -cat >>conftest.$ac_ext <<_ACEOF
27197 -/* end confdefs.h.  */
27198 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
27199 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27200 -#define shl_load innocuous_shl_load
27201 -
27202 -/* System header to define __stub macros and hopefully few prototypes,
27203 -    which can conflict with char shl_load (); below.
27204 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27205 -    <limits.h> exists even on freestanding compilers.  */
27206 -
27207 -#ifdef __STDC__
27208 -# include <limits.h>
27209 -#else
27210 -# include <assert.h>
27211 -#endif
27212 -
27213 -#undef shl_load
27214 -
27215 -/* Override any gcc2 internal prototype to avoid an error.  */
27216 -#ifdef __cplusplus
27217 -extern "C"
27218 -{
27219 -#endif
27220 -/* We use char because int might match the return type of a gcc2
27221 -   builtin and then its argument prototype would still apply.  */
27222 -char shl_load ();
27223 -/* The GNU C library defines this for functions which it implements
27224 -    to always fail with ENOSYS.  Some functions are actually named
27225 -    something starting with __ and the normal name is an alias.  */
27226 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
27227 -choke me
27228 -#else
27229 -char (*f) () = shl_load;
27230 -#endif
27231 -#ifdef __cplusplus
27232 -}
27233 -#endif
27234 -
27235 -int
27236 -main ()
27237 -{
27238 -return f != shl_load;
27239 -  ;
27240 -  return 0;
27241 -}
27242 -_ACEOF
27243 -rm -f conftest.$ac_objext conftest$ac_exeext
27244 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27245 -  (eval $ac_link) 2>conftest.er1
27246 -  ac_status=$?
27247 -  grep -v '^ *+' conftest.er1 >conftest.err
27248 -  rm -f conftest.er1
27249 -  cat conftest.err >&5
27250 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 -  (exit $ac_status); } &&
27252 -        { ac_try='test -z "$ac_c_werror_flag"
27253 -                        || test ! -s conftest.err'
27254 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255 -  (eval $ac_try) 2>&5
27256 -  ac_status=$?
27257 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 -  (exit $ac_status); }; } &&
27259 -        { ac_try='test -s conftest$ac_exeext'
27260 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27261 -  (eval $ac_try) 2>&5
27262 -  ac_status=$?
27263 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 -  (exit $ac_status); }; }; then
27265 -  ac_cv_func_shl_load=yes
27266 -else
27267 -  echo "$as_me: failed program was:" >&5
27268 -sed 's/^/| /' conftest.$ac_ext >&5
27269 -
27270 -ac_cv_func_shl_load=no
27271 -fi
27272 -rm -f conftest.err conftest.$ac_objext \
27273 -      conftest$ac_exeext conftest.$ac_ext
27274 -fi
27275 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
27276 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
27277 -if test $ac_cv_func_shl_load = yes; then
27278 -  lt_cv_dlopen="shl_load"
27279 -else
27280 -  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
27281 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
27282 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
27283 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27284 -else
27285 -  ac_check_lib_save_LIBS=$LIBS
27286 -LIBS="-ldld  $LIBS"
27287 -cat >conftest.$ac_ext <<_ACEOF
27288 -/* confdefs.h.  */
27289 -_ACEOF
27290 -cat confdefs.h >>conftest.$ac_ext
27291 -cat >>conftest.$ac_ext <<_ACEOF
27292 -/* end confdefs.h.  */
27293 -
27294 -/* Override any gcc2 internal prototype to avoid an error.  */
27295 -#ifdef __cplusplus
27296 -extern "C"
27297 -#endif
27298 -/* We use char because int might match the return type of a gcc2
27299 -   builtin and then its argument prototype would still apply.  */
27300 -char shl_load ();
27301 -int
27302 -main ()
27303 -{
27304 -shl_load ();
27305 -  ;
27306 -  return 0;
27307 -}
27308 -_ACEOF
27309 -rm -f conftest.$ac_objext conftest$ac_exeext
27310 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27311 -  (eval $ac_link) 2>conftest.er1
27312 -  ac_status=$?
27313 -  grep -v '^ *+' conftest.er1 >conftest.err
27314 -  rm -f conftest.er1
27315 -  cat conftest.err >&5
27316 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 -  (exit $ac_status); } &&
27318 -        { ac_try='test -z "$ac_c_werror_flag"
27319 -                        || test ! -s conftest.err'
27320 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27321 -  (eval $ac_try) 2>&5
27322 -  ac_status=$?
27323 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 -  (exit $ac_status); }; } &&
27325 -        { ac_try='test -s conftest$ac_exeext'
27326 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 -  (eval $ac_try) 2>&5
27328 -  ac_status=$?
27329 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 -  (exit $ac_status); }; }; then
27331 -  ac_cv_lib_dld_shl_load=yes
27332 -else
27333 -  echo "$as_me: failed program was:" >&5
27334 -sed 's/^/| /' conftest.$ac_ext >&5
27335 -
27336 -ac_cv_lib_dld_shl_load=no
27337 -fi
27338 -rm -f conftest.err conftest.$ac_objext \
27339 -      conftest$ac_exeext conftest.$ac_ext
27340 -LIBS=$ac_check_lib_save_LIBS
27341 -fi
27342 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
27343 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
27344 -if test $ac_cv_lib_dld_shl_load = yes; then
27345 -  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
27346 -else
27347 -  echo "$as_me:$LINENO: checking for dlopen" >&5
27348 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
27349 -if test "${ac_cv_func_dlopen+set}" = set; then
27350 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27351 -else
27352 -  cat >conftest.$ac_ext <<_ACEOF
27353 -/* confdefs.h.  */
27354 -_ACEOF
27355 -cat confdefs.h >>conftest.$ac_ext
27356 -cat >>conftest.$ac_ext <<_ACEOF
27357 -/* end confdefs.h.  */
27358 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
27359 -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27360 -#define dlopen innocuous_dlopen
27361 -
27362 -/* System header to define __stub macros and hopefully few prototypes,
27363 -    which can conflict with char dlopen (); below.
27364 -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27365 -    <limits.h> exists even on freestanding compilers.  */
27366 -
27367 -#ifdef __STDC__
27368 -# include <limits.h>
27369 -#else
27370 -# include <assert.h>
27371 -#endif
27372 -
27373 -#undef dlopen
27374 -
27375 -/* Override any gcc2 internal prototype to avoid an error.  */
27376 -#ifdef __cplusplus
27377 -extern "C"
27378 -{
27379 -#endif
27380 -/* We use char because int might match the return type of a gcc2
27381 -   builtin and then its argument prototype would still apply.  */
27382 -char dlopen ();
27383 -/* The GNU C library defines this for functions which it implements
27384 -    to always fail with ENOSYS.  Some functions are actually named
27385 -    something starting with __ and the normal name is an alias.  */
27386 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
27387 -choke me
27388 -#else
27389 -char (*f) () = dlopen;
27390 -#endif
27391 -#ifdef __cplusplus
27392 -}
27393 -#endif
27394 -
27395 -int
27396 -main ()
27397 -{
27398 -return f != dlopen;
27399 -  ;
27400 -  return 0;
27401 -}
27402 -_ACEOF
27403 -rm -f conftest.$ac_objext conftest$ac_exeext
27404 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27405 -  (eval $ac_link) 2>conftest.er1
27406 -  ac_status=$?
27407 -  grep -v '^ *+' conftest.er1 >conftest.err
27408 -  rm -f conftest.er1
27409 -  cat conftest.err >&5
27410 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 -  (exit $ac_status); } &&
27412 -        { ac_try='test -z "$ac_c_werror_flag"
27413 -                        || test ! -s conftest.err'
27414 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27415 -  (eval $ac_try) 2>&5
27416 -  ac_status=$?
27417 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 -  (exit $ac_status); }; } &&
27419 -        { ac_try='test -s conftest$ac_exeext'
27420 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27421 -  (eval $ac_try) 2>&5
27422 -  ac_status=$?
27423 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 -  (exit $ac_status); }; }; then
27425 -  ac_cv_func_dlopen=yes
27426 -else
27427 -  echo "$as_me: failed program was:" >&5
27428 -sed 's/^/| /' conftest.$ac_ext >&5
27429 -
27430 -ac_cv_func_dlopen=no
27431 -fi
27432 -rm -f conftest.err conftest.$ac_objext \
27433 -      conftest$ac_exeext conftest.$ac_ext
27434 -fi
27435 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
27436 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
27437 -if test $ac_cv_func_dlopen = yes; then
27438 -  lt_cv_dlopen="dlopen"
27439 -else
27440 -  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27441 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27442 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27443 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27444 -else
27445 -  ac_check_lib_save_LIBS=$LIBS
27446 -LIBS="-ldl  $LIBS"
27447 -cat >conftest.$ac_ext <<_ACEOF
27448 -/* confdefs.h.  */
27449 -_ACEOF
27450 -cat confdefs.h >>conftest.$ac_ext
27451 -cat >>conftest.$ac_ext <<_ACEOF
27452 -/* end confdefs.h.  */
27453 -
27454 -/* Override any gcc2 internal prototype to avoid an error.  */
27455 -#ifdef __cplusplus
27456 -extern "C"
27457 -#endif
27458 -/* We use char because int might match the return type of a gcc2
27459 -   builtin and then its argument prototype would still apply.  */
27460 -char dlopen ();
27461 -int
27462 -main ()
27463 -{
27464 -dlopen ();
27465 -  ;
27466 -  return 0;
27467 -}
27468 -_ACEOF
27469 -rm -f conftest.$ac_objext conftest$ac_exeext
27470 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27471 -  (eval $ac_link) 2>conftest.er1
27472 -  ac_status=$?
27473 -  grep -v '^ *+' conftest.er1 >conftest.err
27474 -  rm -f conftest.er1
27475 -  cat conftest.err >&5
27476 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 -  (exit $ac_status); } &&
27478 -        { ac_try='test -z "$ac_c_werror_flag"
27479 -                        || test ! -s conftest.err'
27480 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481 -  (eval $ac_try) 2>&5
27482 -  ac_status=$?
27483 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 -  (exit $ac_status); }; } &&
27485 -        { ac_try='test -s conftest$ac_exeext'
27486 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27487 -  (eval $ac_try) 2>&5
27488 -  ac_status=$?
27489 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 -  (exit $ac_status); }; }; then
27491 -  ac_cv_lib_dl_dlopen=yes
27492 -else
27493 -  echo "$as_me: failed program was:" >&5
27494 -sed 's/^/| /' conftest.$ac_ext >&5
27495 -
27496 -ac_cv_lib_dl_dlopen=no
27497 -fi
27498 -rm -f conftest.err conftest.$ac_objext \
27499 -      conftest$ac_exeext conftest.$ac_ext
27500 -LIBS=$ac_check_lib_save_LIBS
27501 -fi
27502 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27503 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27504 -if test $ac_cv_lib_dl_dlopen = yes; then
27505 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27506 -else
27507 -  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
27508 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
27509 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
27510 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27511 -else
27512 -  ac_check_lib_save_LIBS=$LIBS
27513 -LIBS="-lsvld  $LIBS"
27514 -cat >conftest.$ac_ext <<_ACEOF
27515 -/* confdefs.h.  */
27516 -_ACEOF
27517 -cat confdefs.h >>conftest.$ac_ext
27518 -cat >>conftest.$ac_ext <<_ACEOF
27519 -/* end confdefs.h.  */
27520 -
27521 -/* Override any gcc2 internal prototype to avoid an error.  */
27522 -#ifdef __cplusplus
27523 -extern "C"
27524 -#endif
27525 -/* We use char because int might match the return type of a gcc2
27526 -   builtin and then its argument prototype would still apply.  */
27527 -char dlopen ();
27528 -int
27529 -main ()
27530 -{
27531 -dlopen ();
27532 -  ;
27533 -  return 0;
27534 -}
27535 -_ACEOF
27536 -rm -f conftest.$ac_objext conftest$ac_exeext
27537 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27538 -  (eval $ac_link) 2>conftest.er1
27539 -  ac_status=$?
27540 -  grep -v '^ *+' conftest.er1 >conftest.err
27541 -  rm -f conftest.er1
27542 -  cat conftest.err >&5
27543 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 -  (exit $ac_status); } &&
27545 -        { ac_try='test -z "$ac_c_werror_flag"
27546 -                        || test ! -s conftest.err'
27547 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548 -  (eval $ac_try) 2>&5
27549 -  ac_status=$?
27550 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 -  (exit $ac_status); }; } &&
27552 -        { ac_try='test -s conftest$ac_exeext'
27553 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554 -  (eval $ac_try) 2>&5
27555 -  ac_status=$?
27556 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 -  (exit $ac_status); }; }; then
27558 -  ac_cv_lib_svld_dlopen=yes
27559 -else
27560 -  echo "$as_me: failed program was:" >&5
27561 -sed 's/^/| /' conftest.$ac_ext >&5
27562 -
27563 -ac_cv_lib_svld_dlopen=no
27564 -fi
27565 -rm -f conftest.err conftest.$ac_objext \
27566 -      conftest$ac_exeext conftest.$ac_ext
27567 -LIBS=$ac_check_lib_save_LIBS
27568 -fi
27569 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
27570 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
27571 -if test $ac_cv_lib_svld_dlopen = yes; then
27572 -  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
27573 -else
27574 -  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
27575 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
27576 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
27577 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27578 -else
27579 -  ac_check_lib_save_LIBS=$LIBS
27580 -LIBS="-ldld  $LIBS"
27581 -cat >conftest.$ac_ext <<_ACEOF
27582 -/* confdefs.h.  */
27583 -_ACEOF
27584 -cat confdefs.h >>conftest.$ac_ext
27585 -cat >>conftest.$ac_ext <<_ACEOF
27586 -/* end confdefs.h.  */
27587 -
27588 -/* Override any gcc2 internal prototype to avoid an error.  */
27589 -#ifdef __cplusplus
27590 -extern "C"
27591 -#endif
27592 -/* We use char because int might match the return type of a gcc2
27593 -   builtin and then its argument prototype would still apply.  */
27594 -char dld_link ();
27595 -int
27596 -main ()
27597 -{
27598 -dld_link ();
27599 -  ;
27600 -  return 0;
27601 -}
27602 -_ACEOF
27603 -rm -f conftest.$ac_objext conftest$ac_exeext
27604 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27605 -  (eval $ac_link) 2>conftest.er1
27606 -  ac_status=$?
27607 -  grep -v '^ *+' conftest.er1 >conftest.err
27608 -  rm -f conftest.er1
27609 -  cat conftest.err >&5
27610 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 -  (exit $ac_status); } &&
27612 -        { ac_try='test -z "$ac_c_werror_flag"
27613 -                        || test ! -s conftest.err'
27614 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27615 -  (eval $ac_try) 2>&5
27616 -  ac_status=$?
27617 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 -  (exit $ac_status); }; } &&
27619 -        { ac_try='test -s conftest$ac_exeext'
27620 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27621 -  (eval $ac_try) 2>&5
27622 -  ac_status=$?
27623 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 -  (exit $ac_status); }; }; then
27625 -  ac_cv_lib_dld_dld_link=yes
27626 -else
27627 -  echo "$as_me: failed program was:" >&5
27628 -sed 's/^/| /' conftest.$ac_ext >&5
27629 -
27630 -ac_cv_lib_dld_dld_link=no
27631 -fi
27632 -rm -f conftest.err conftest.$ac_objext \
27633 -      conftest$ac_exeext conftest.$ac_ext
27634 -LIBS=$ac_check_lib_save_LIBS
27635 -fi
27636 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
27637 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
27638 -if test $ac_cv_lib_dld_dld_link = yes; then
27639 -  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
27640 -fi
27641 -
27642 -
27643 -fi
27644 -
27645 -
27646 -fi
27647 -
27648 -
27649 -fi
27650 -
27651 -
27652 -fi
27653 -
27654 -
27655 -fi
27656 -
27657 -    ;;
27658 -  esac
27659 -
27660 -  if test "x$lt_cv_dlopen" != xno; then
27661 -    enable_dlopen=yes
27662 -  else
27663 -    enable_dlopen=no
27664 -  fi
27665 -
27666 -  case $lt_cv_dlopen in
27667 -  dlopen)
27668 -    save_CPPFLAGS="$CPPFLAGS"
27669 -    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
27670 -
27671 -    save_LDFLAGS="$LDFLAGS"
27672 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
27673 -
27674 -    save_LIBS="$LIBS"
27675 -    LIBS="$lt_cv_dlopen_libs $LIBS"
27676 -
27677 -    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
27678 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
27679 -if test "${lt_cv_dlopen_self+set}" = set; then
27680 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27681 -else
27682 -         if test "$cross_compiling" = yes; then :
27683 -  lt_cv_dlopen_self=cross
27684 -else
27685 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27686 -  lt_status=$lt_dlunknown
27687 -  cat > conftest.$ac_ext <<EOF
27688 -#line 18074 "configure"
27689 -#include "confdefs.h"
27690 -
27691 -#if HAVE_DLFCN_H
27692 -#include <dlfcn.h>
27693 -#endif
27694 -
27695 -#include <stdio.h>
27696 -
27697 -#ifdef RTLD_GLOBAL
27698 -#  define LT_DLGLOBAL          RTLD_GLOBAL
27699 -#else
27700 -#  ifdef DL_GLOBAL
27701 -#    define LT_DLGLOBAL                DL_GLOBAL
27702 -#  else
27703 -#    define LT_DLGLOBAL                0
27704 -#  endif
27705 -#endif
27706 -
27707 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27708 -   find out it does not work in some platform. */
27709 -#ifndef LT_DLLAZY_OR_NOW
27710 -#  ifdef RTLD_LAZY
27711 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
27712 -#  else
27713 -#    ifdef DL_LAZY
27714 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
27715 -#    else
27716 -#      ifdef RTLD_NOW
27717 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
27718 -#      else
27719 -#        ifdef DL_NOW
27720 -#          define LT_DLLAZY_OR_NOW     DL_NOW
27721 -#        else
27722 -#          define LT_DLLAZY_OR_NOW     0
27723 -#        endif
27724 -#      endif
27725 -#    endif
27726 -#  endif
27727 -#endif
27728 -
27729 -#ifdef __cplusplus
27730 -extern "C" void exit (int);
27731 -#endif
27732 -
27733 -void fnord() { int i=42;}
27734 -int main ()
27735 -{
27736 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27737 -  int status = $lt_dlunknown;
27738 -
27739 -  if (self)
27740 -    {
27741 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
27742 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27743 -      /* dlclose (self); */
27744 -    }
27745 -
27746 -    exit (status);
27747 -}
27748 -EOF
27749 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27750 -  (eval $ac_link) 2>&5
27751 -  ac_status=$?
27752 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27754 -    (./conftest; exit; ) 2>/dev/null
27755 -    lt_status=$?
27756 -    case x$lt_status in
27757 -      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
27758 -      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
27759 -      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
27760 -    esac
27761 -  else :
27762 -    # compilation failed
27763 -    lt_cv_dlopen_self=no
27764 -  fi
27765 -fi
27766 -rm -fr conftest*
27767 -
27768 -
27769 -fi
27770 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
27771 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
27772 -
27773 -    if test "x$lt_cv_dlopen_self" = xyes; then
27774 -      LDFLAGS="$LDFLAGS $link_static_flag"
27775 -      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
27776 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
27777 -if test "${lt_cv_dlopen_self_static+set}" = set; then
27778 -  echo $ECHO_N "(cached) $ECHO_C" >&6
27779 -else
27780 -         if test "$cross_compiling" = yes; then :
27781 -  lt_cv_dlopen_self_static=cross
27782 -else
27783 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27784 -  lt_status=$lt_dlunknown
27785 -  cat > conftest.$ac_ext <<EOF
27786 -#line 18172 "configure"
27787 -#include "confdefs.h"
27788 -
27789 -#if HAVE_DLFCN_H
27790 -#include <dlfcn.h>
27791 -#endif
27792 -
27793 -#include <stdio.h>
27794 -
27795 -#ifdef RTLD_GLOBAL
27796 -#  define LT_DLGLOBAL          RTLD_GLOBAL
27797 -#else
27798 -#  ifdef DL_GLOBAL
27799 -#    define LT_DLGLOBAL                DL_GLOBAL
27800 -#  else
27801 -#    define LT_DLGLOBAL                0
27802 -#  endif
27803 -#endif
27804 -
27805 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27806 -   find out it does not work in some platform. */
27807 -#ifndef LT_DLLAZY_OR_NOW
27808 -#  ifdef RTLD_LAZY
27809 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
27810 -#  else
27811 -#    ifdef DL_LAZY
27812 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
27813 -#    else
27814 -#      ifdef RTLD_NOW
27815 -#        define LT_DLLAZY_OR_NOW       RTLD_NOW
27816 -#      else
27817 -#        ifdef DL_NOW
27818 -#          define LT_DLLAZY_OR_NOW     DL_NOW
27819 -#        else
27820 -#          define LT_DLLAZY_OR_NOW     0
27821 -#        endif
27822 -#      endif
27823 -#    endif
27824 -#  endif
27825 -#endif
27826 -
27827 -#ifdef __cplusplus
27828 -extern "C" void exit (int);
27829 -#endif
27830 -
27831 -void fnord() { int i=42;}
27832 -int main ()
27833 -{
27834 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27835 -  int status = $lt_dlunknown;
27836 -
27837 -  if (self)
27838 -    {
27839 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
27840 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27841 -      /* dlclose (self); */
27842 -    }
27843 -
27844 -    exit (status);
27845 -}
27846 -EOF
27847 -  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27848 -  (eval $ac_link) 2>&5
27849 -  ac_status=$?
27850 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851 -  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27852 -    (./conftest; exit; ) 2>/dev/null
27853 -    lt_status=$?
27854 -    case x$lt_status in
27855 -      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
27856 -      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
27857 -      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
27858 -    esac
27859 -  else :
27860 -    # compilation failed
27861 -    lt_cv_dlopen_self_static=no
27862 -  fi
27863 -fi
27864 -rm -fr conftest*
27865 -
27866 -
27867 -fi
27868 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
27869 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
27870 -    fi
27871 -
27872 -    CPPFLAGS="$save_CPPFLAGS"
27873 -    LDFLAGS="$save_LDFLAGS"
27874 -    LIBS="$save_LIBS"
27875 -    ;;
27876 -  esac
27877 -
27878 -  case $lt_cv_dlopen_self in
27879 -  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
27880 -  *) enable_dlopen_self=unknown ;;
27881 -  esac
27882 -
27883 -  case $lt_cv_dlopen_self_static in
27884 -  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
27885 -  *) enable_dlopen_self_static=unknown ;;
27886 -  esac
27887 -fi
27888 -
27889  
27890  # The else clause should only fire when bootstrapping the
27891  # libtool distribution, otherwise you forgot to ship ltmain.sh
27892 @@ -18286,7 +19042,7 @@ if test -f "$ltmain"; then
27893    # Now quote all the things that may contain metacharacters while being
27894    # careful not to overquote the AC_SUBSTed values.  We take copies of the
27895    # variables and quote the copies for generation of the libtool script.
27896 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27897 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27898      SED SHELL STRIP \
27899      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27900      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27901 @@ -18313,6 +19069,7 @@ if test -f "$ltmain"; then
27902      predeps_GCJ \
27903      postdeps_GCJ \
27904      compiler_lib_search_path_GCJ \
27905 +    compiler_lib_search_dirs_GCJ \
27906      archive_cmds_GCJ \
27907      archive_expsym_cmds_GCJ \
27908      postinstall_cmds_GCJ \
27909 @@ -18328,6 +19085,7 @@ if test -f "$ltmain"; then
27910      module_cmds_GCJ \
27911      module_expsym_cmds_GCJ \
27912      lt_cv_prog_compiler_c_o_GCJ \
27913 +    fix_srcfile_path_GCJ \
27914      exclude_expsyms_GCJ \
27915      include_expsyms_GCJ; do
27916  
27917 @@ -18387,6 +19145,12 @@ fast_install=$enable_fast_install
27918  # The host system.
27919  host_alias=$host_alias
27920  host=$host
27921 +host_os=$host_os
27922 +
27923 +# The build system.
27924 +build_alias=$build_alias
27925 +build=$build
27926 +build_os=$build_os
27927  
27928  # An echo program that does not interpret backslashes.
27929  echo=$lt_echo
27930 @@ -18398,6 +19162,9 @@ AR_FLAGS=$lt_AR_FLAGS
27931  # A C compiler.
27932  LTCC=$lt_LTCC
27933  
27934 +# LTCC compiler flags.
27935 +LTCFLAGS=$lt_LTCFLAGS
27936 +
27937  # A language-specific compiler.
27938  CC=$lt_compiler_GCJ
27939  
27940 @@ -18463,7 +19230,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
27941  # Does compiler simultaneously support -c and -o options?
27942  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27943  
27944 -# Must we lock files when doing compilation ?
27945 +# Must we lock files when doing compilation?
27946  need_locks=$lt_need_locks
27947  
27948  # Do we need the lib prefix for modules?
27949 @@ -18551,6 +19318,10 @@ predeps=$lt_predeps_GCJ
27950  # shared library.
27951  postdeps=$lt_postdeps_GCJ
27952  
27953 +# The directories searched by this compiler when creating a shared
27954 +# library
27955 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27956 +
27957  # The library search path used internally by the compiler when linking
27958  # a shared library.
27959  compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27960 @@ -18639,7 +19410,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27961  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27962  
27963  # Fix the shell variable \$srcfile for the compiler.
27964 -fix_srcfile_path="$fix_srcfile_path_GCJ"
27965 +fix_srcfile_path=$lt_fix_srcfile_path
27966  
27967  # Set to yes if exported symbols are required.
27968  always_export_symbols=$always_export_symbols_GCJ
27969 @@ -18688,7 +19459,6 @@ CC="$lt_save_CC"
27970        RC)
27971  
27972  
27973 -
27974  # Source file extension for RC test sources.
27975  ac_ext=rc
27976  
27977 @@ -18697,7 +19467,7 @@ objext=o
27978  objext_RC=$objext
27979  
27980  # Code to be used in simple compile tests
27981 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
27982 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
27983  
27984  # Code to be used in simple link tests
27985  lt_simple_link_test_code="$lt_simple_compile_test_code"
27986 @@ -18707,15 +19477,42 @@ lt_simple_link_test_code="$lt_simple_compile_test_code"
27987  # If no C compiler was specified, use CC.
27988  LTCC=${LTCC-"$CC"}
27989  
27990 +# If no C compiler flags were specified, use CFLAGS.
27991 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27992 +
27993  # Allow CC to be a program name with arguments.
27994  compiler=$CC
27995  
27996  
27997 +# save warnings/boilerplate of simple test code
27998 +ac_outfile=conftest.$ac_objext
27999 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
28000 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
28001 +_lt_compiler_boilerplate=`cat conftest.err`
28002 +$rm conftest*
28003 +
28004 +ac_outfile=conftest.$ac_objext
28005 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
28006 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
28007 +_lt_linker_boilerplate=`cat conftest.err`
28008 +$rm -r conftest*
28009 +
28010 +
28011  # Allow CC to be a program name with arguments.
28012  lt_save_CC="$CC"
28013  CC=${RC-"windres"}
28014  compiler=$CC
28015  compiler_RC=$CC
28016 +for cc_temp in $compiler""; do
28017 +  case $cc_temp in
28018 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28019 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28020 +    \-*) ;;
28021 +    *) break;;
28022 +  esac
28023 +done
28024 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
28025 +
28026  lt_cv_prog_compiler_c_o_RC=yes
28027  
28028  # The else clause should only fire when bootstrapping the
28029 @@ -18731,7 +19528,7 @@ if test -f "$ltmain"; then
28030    # Now quote all the things that may contain metacharacters while being
28031    # careful not to overquote the AC_SUBSTed values.  We take copies of the
28032    # variables and quote the copies for generation of the libtool script.
28033 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
28034 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
28035      SED SHELL STRIP \
28036      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
28037      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
28038 @@ -18758,6 +19555,7 @@ if test -f "$ltmain"; then
28039      predeps_RC \
28040      postdeps_RC \
28041      compiler_lib_search_path_RC \
28042 +    compiler_lib_search_dirs_RC \
28043      archive_cmds_RC \
28044      archive_expsym_cmds_RC \
28045      postinstall_cmds_RC \
28046 @@ -18773,6 +19571,7 @@ if test -f "$ltmain"; then
28047      module_cmds_RC \
28048      module_expsym_cmds_RC \
28049      lt_cv_prog_compiler_c_o_RC \
28050 +    fix_srcfile_path_RC \
28051      exclude_expsyms_RC \
28052      include_expsyms_RC; do
28053  
28054 @@ -18832,6 +19631,12 @@ fast_install=$enable_fast_install
28055  # The host system.
28056  host_alias=$host_alias
28057  host=$host
28058 +host_os=$host_os
28059 +
28060 +# The build system.
28061 +build_alias=$build_alias
28062 +build=$build
28063 +build_os=$build_os
28064  
28065  # An echo program that does not interpret backslashes.
28066  echo=$lt_echo
28067 @@ -18843,6 +19648,9 @@ AR_FLAGS=$lt_AR_FLAGS
28068  # A C compiler.
28069  LTCC=$lt_LTCC
28070  
28071 +# LTCC compiler flags.
28072 +LTCFLAGS=$lt_LTCFLAGS
28073 +
28074  # A language-specific compiler.
28075  CC=$lt_compiler_RC
28076  
28077 @@ -18908,7 +19716,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
28078  # Does compiler simultaneously support -c and -o options?
28079  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
28080  
28081 -# Must we lock files when doing compilation ?
28082 +# Must we lock files when doing compilation?
28083  need_locks=$lt_need_locks
28084  
28085  # Do we need the lib prefix for modules?
28086 @@ -18996,6 +19804,10 @@ predeps=$lt_predeps_RC
28087  # shared library.
28088  postdeps=$lt_postdeps_RC
28089  
28090 +# The directories searched by this compiler when creating a shared
28091 +# library
28092 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
28093 +
28094  # The library search path used internally by the compiler when linking
28095  # a shared library.
28096  compiler_lib_search_path=$lt_compiler_lib_search_path_RC
28097 @@ -19084,7 +19896,7 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28098  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28099  
28100  # Fix the shell variable \$srcfile for the compiler.
28101 -fix_srcfile_path="$fix_srcfile_path_RC"
28102 +fix_srcfile_path=$lt_fix_srcfile_path
28103  
28104  # Set to yes if exported symbols are required.
28105  always_export_symbols=$always_export_symbols_RC
28106 @@ -19128,8 +19940,8 @@ CC="$lt_save_CC"
28107         ;;
28108  
28109        *)
28110 -       { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
28111 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
28112 +       { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
28113 +$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
28114     { (exit 1); exit 1; }; }
28115         ;;
28116        esac
28117 @@ -19148,8 +19960,8 @@ echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
28118      chmod +x "$ofile"
28119    else
28120      rm -f "${ofile}T"
28121 -    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
28122 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
28123 +    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
28124 +$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
28125     { (exit 1); exit 1; }; }
28126    fi
28127  fi
28128 @@ -19185,20 +19997,20 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
28129  
28130  
28131  
28132 -# Check whether --with-mysql or --without-mysql was given.
28133 +# Check whether --with-mysql was given.
28134  if test "${with_mysql+set}" = set; then
28135 -  withval="$with_mysql"
28136 +  withval=$with_mysql;
28137 +fi
28138  
28139 -fi;
28140 -# Check whether --enable-debug or --disable-debug was given.
28141 +# Check whether --enable-debug was given.
28142  if test "${enable_debug+set}" = set; then
28143 -  enableval="$enable_debug"
28144 -
28145 +  enableval=$enable_debug;
28146  cat >>confdefs.h <<\_ACEOF
28147  #define DEBUG 1
28148  _ACEOF
28149  
28150 -fi;
28151 +fi
28152 +
28153  
28154  case "$target_os" in
28155  linux*)
28156 @@ -19237,10 +20049,10 @@ else
28157  fi
28158  
28159  
28160 -echo "$as_me:$LINENO: checking whether the linker accepts -znodelete" >&5
28161 -echo $ECHO_N "checking whether the linker accepts -znodelete... $ECHO_C" >&6
28162 +{ $as_echo "$as_me:$LINENO: checking whether the linker accepts -znodelete" >&5
28163 +$as_echo_n "checking whether the linker accepts -znodelete... " >&6; }
28164  if test "${nss_mysql_cv_cc_znodelete+set}" = set; then
28165 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28166 +  $as_echo_n "(cached) " >&6
28167  else
28168  
28169      SAVELIBS=$LIBS
28170 @@ -19261,40 +20073,41 @@ main ()
28171  }
28172  _ACEOF
28173  rm -f conftest.$ac_objext conftest$ac_exeext
28174 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28175 -  (eval $ac_link) 2>conftest.er1
28176 +if { (ac_try="$ac_link"
28177 +case "(($ac_try" in
28178 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179 +  *) ac_try_echo=$ac_try;;
28180 +esac
28181 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28182 +$as_echo "$ac_try_echo") >&5
28183 +  (eval "$ac_link") 2>conftest.er1
28184    ac_status=$?
28185    grep -v '^ *+' conftest.er1 >conftest.err
28186    rm -f conftest.er1
28187    cat conftest.err >&5
28188 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 -  (exit $ac_status); } &&
28190 -        { ac_try='test -z "$ac_c_werror_flag"
28191 -                        || test ! -s conftest.err'
28192 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28193 -  (eval $ac_try) 2>&5
28194 -  ac_status=$?
28195 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 -  (exit $ac_status); }; } &&
28197 -        { ac_try='test -s conftest$ac_exeext'
28198 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28199 -  (eval $ac_try) 2>&5
28200 -  ac_status=$?
28201 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 -  (exit $ac_status); }; }; then
28203 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 +  (exit $ac_status); } && {
28205 +        test -z "$ac_c_werror_flag" ||
28206 +        test ! -s conftest.err
28207 +       } && test -s conftest$ac_exeext && {
28208 +        test "$cross_compiling" = yes ||
28209 +        $as_test_x conftest$ac_exeext
28210 +       }; then
28211    nss_mysql_cv_cc_znodelete=yes
28212  else
28213 -  echo "$as_me: failed program was:" >&5
28214 +  $as_echo "$as_me: failed program was:" >&5
28215  sed 's/^/| /' conftest.$ac_ext >&5
28216  
28217 -nss_mysql_cv_cc_znodelete=no
28218 +       nss_mysql_cv_cc_znodelete=no
28219  fi
28220 -rm -f conftest.err conftest.$ac_objext \
28221 +
28222 +rm -rf conftest.dSYM
28223 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28224        conftest$ac_exeext conftest.$ac_ext
28225      LIBS=$SAVELIBS
28226  fi
28227 -echo "$as_me:$LINENO: result: $nss_mysql_cv_cc_znodelete" >&5
28228 -echo "${ECHO_T}$nss_mysql_cv_cc_znodelete" >&6
28229 +{ $as_echo "$as_me:$LINENO: result: $nss_mysql_cv_cc_znodelete" >&5
28230 +$as_echo "$nss_mysql_cv_cc_znodelete" >&6; }
28231  if test $nss_mysql_cv_cc_znodelete = "yes"; then
28232      LIBS="-Wl,-znodelete $SAVELIBS"
28233  fi
28234 @@ -19311,8 +20124,8 @@ baselist="$with_mysql \
28235            /opt/local \
28236            /opt/local/mysql"
28237  
28238 -echo "$as_me:$LINENO: checking for MySQL headers" >&5
28239 -echo $ECHO_N "checking for MySQL headers... $ECHO_C" >&6
28240 +{ $as_echo "$as_me:$LINENO: checking for MySQL headers" >&5
28241 +$as_echo_n "checking for MySQL headers... " >&6; }
28242  for f in $baselist; do
28243      if test -f "$f/include/mysql/mysql.h"
28244      then
28245 @@ -19329,17 +20142,17 @@ done
28246  
28247  if test -n "$MYSQL_INC_DIR"
28248  then
28249 -    echo "$as_me:$LINENO: result: $MYSQL_INC_DIR" >&5
28250 -echo "${ECHO_T}$MYSQL_INC_DIR" >&6
28251 +    { $as_echo "$as_me:$LINENO: result: $MYSQL_INC_DIR" >&5
28252 +$as_echo "$MYSQL_INC_DIR" >&6; }
28253      CPPFLAGS="-I $MYSQL_INC_DIR $CPPFLAGS"
28254  else
28255 -    { { echo "$as_me:$LINENO: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&5
28256 -echo "$as_me: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&2;}
28257 +    { { $as_echo "$as_me:$LINENO: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&5
28258 +$as_echo "$as_me: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&2;}
28259     { (exit 1); exit 1; }; }
28260  fi
28261  
28262 -echo "$as_me:$LINENO: checking for MySQL libraries" >&5
28263 -echo $ECHO_N "checking for MySQL libraries... $ECHO_C" >&6
28264 +{ $as_echo "$as_me:$LINENO: checking for MySQL libraries" >&5
28265 +$as_echo_n "checking for MySQL libraries... " >&6; }
28266  for f in $baselist; do
28267      if test -f "$f/lib/libmysqlclient.so"
28268      then
28269 @@ -19370,22 +20183,22 @@ done
28270  
28271  if test -n "$MYSQL_LIB_DIR"
28272  then
28273 -    echo "$as_me:$LINENO: result: $MYSQL_LIB_DIR" >&5
28274 -echo "${ECHO_T}$MYSQL_LIB_DIR" >&6
28275 +    { $as_echo "$as_me:$LINENO: result: $MYSQL_LIB_DIR" >&5
28276 +$as_echo "$MYSQL_LIB_DIR" >&6; }
28277      LDFLAGS="-L$MYSQL_LIB_DIR $LDFLAGS"
28278  else
28279 -    { { echo "$as_me:$LINENO: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&5
28280 -echo "$as_me: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&2;}
28281 +    { { $as_echo "$as_me:$LINENO: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&5
28282 +$as_echo "$as_me: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&2;}
28283     { (exit 1); exit 1; }; }
28284  fi
28285  
28286  
28287  
28288  
28289 -echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
28290 -echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
28291 +{ $as_echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
28292 +$as_echo_n "checking for getsockname in -lsocket... " >&6; }
28293  if test "${ac_cv_lib_socket_getsockname+set}" = set; then
28294 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28295 +  $as_echo_n "(cached) " >&6
28296  else
28297    ac_check_lib_save_LIBS=$LIBS
28298  LIBS="-lsocket  $LIBS"
28299 @@ -19396,57 +20209,58 @@ cat confdefs.h >>conftest.$ac_ext
28300  cat >>conftest.$ac_ext <<_ACEOF
28301  /* end confdefs.h.  */
28302  
28303 -/* Override any gcc2 internal prototype to avoid an error.  */
28304 +/* Override any GCC internal prototype to avoid an error.
28305 +   Use char because int might match the return type of a GCC
28306 +   builtin and then its argument prototype would still apply.  */
28307  #ifdef __cplusplus
28308  extern "C"
28309  #endif
28310 -/* We use char because int might match the return type of a gcc2
28311 -   builtin and then its argument prototype would still apply.  */
28312  char getsockname ();
28313  int
28314  main ()
28315  {
28316 -getsockname ();
28317 +return getsockname ();
28318    ;
28319    return 0;
28320  }
28321  _ACEOF
28322  rm -f conftest.$ac_objext conftest$ac_exeext
28323 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28324 -  (eval $ac_link) 2>conftest.er1
28325 +if { (ac_try="$ac_link"
28326 +case "(($ac_try" in
28327 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28328 +  *) ac_try_echo=$ac_try;;
28329 +esac
28330 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28331 +$as_echo "$ac_try_echo") >&5
28332 +  (eval "$ac_link") 2>conftest.er1
28333    ac_status=$?
28334    grep -v '^ *+' conftest.er1 >conftest.err
28335    rm -f conftest.er1
28336    cat conftest.err >&5
28337 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 -  (exit $ac_status); } &&
28339 -        { ac_try='test -z "$ac_c_werror_flag"
28340 -                        || test ! -s conftest.err'
28341 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342 -  (eval $ac_try) 2>&5
28343 -  ac_status=$?
28344 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 -  (exit $ac_status); }; } &&
28346 -        { ac_try='test -s conftest$ac_exeext'
28347 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348 -  (eval $ac_try) 2>&5
28349 -  ac_status=$?
28350 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 -  (exit $ac_status); }; }; then
28352 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 +  (exit $ac_status); } && {
28354 +        test -z "$ac_c_werror_flag" ||
28355 +        test ! -s conftest.err
28356 +       } && test -s conftest$ac_exeext && {
28357 +        test "$cross_compiling" = yes ||
28358 +        $as_test_x conftest$ac_exeext
28359 +       }; then
28360    ac_cv_lib_socket_getsockname=yes
28361  else
28362 -  echo "$as_me: failed program was:" >&5
28363 +  $as_echo "$as_me: failed program was:" >&5
28364  sed 's/^/| /' conftest.$ac_ext >&5
28365  
28366 -ac_cv_lib_socket_getsockname=no
28367 +       ac_cv_lib_socket_getsockname=no
28368  fi
28369 -rm -f conftest.err conftest.$ac_objext \
28370 +
28371 +rm -rf conftest.dSYM
28372 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28373        conftest$ac_exeext conftest.$ac_ext
28374  LIBS=$ac_check_lib_save_LIBS
28375  fi
28376 -echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
28377 -echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
28378 -if test $ac_cv_lib_socket_getsockname = yes; then
28379 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
28380 +$as_echo "$ac_cv_lib_socket_getsockname" >&6; }
28381 +if test "x$ac_cv_lib_socket_getsockname" = x""yes; then
28382    cat >>confdefs.h <<_ACEOF
28383  #define HAVE_LIBSOCKET 1
28384  _ACEOF
28385 @@ -19456,10 +20270,10 @@ _ACEOF
28386  fi
28387  
28388  
28389 -echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28390 -echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28391 +{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28392 +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
28393  if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28394 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28395 +  $as_echo_n "(cached) " >&6
28396  else
28397    ac_check_lib_save_LIBS=$LIBS
28398  LIBS="-lnsl  $LIBS"
28399 @@ -19470,57 +20284,58 @@ cat confdefs.h >>conftest.$ac_ext
28400  cat >>conftest.$ac_ext <<_ACEOF
28401  /* end confdefs.h.  */
28402  
28403 -/* Override any gcc2 internal prototype to avoid an error.  */
28404 +/* Override any GCC internal prototype to avoid an error.
28405 +   Use char because int might match the return type of a GCC
28406 +   builtin and then its argument prototype would still apply.  */
28407  #ifdef __cplusplus
28408  extern "C"
28409  #endif
28410 -/* We use char because int might match the return type of a gcc2
28411 -   builtin and then its argument prototype would still apply.  */
28412  char gethostbyname ();
28413  int
28414  main ()
28415  {
28416 -gethostbyname ();
28417 +return gethostbyname ();
28418    ;
28419    return 0;
28420  }
28421  _ACEOF
28422  rm -f conftest.$ac_objext conftest$ac_exeext
28423 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28424 -  (eval $ac_link) 2>conftest.er1
28425 +if { (ac_try="$ac_link"
28426 +case "(($ac_try" in
28427 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428 +  *) ac_try_echo=$ac_try;;
28429 +esac
28430 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28431 +$as_echo "$ac_try_echo") >&5
28432 +  (eval "$ac_link") 2>conftest.er1
28433    ac_status=$?
28434    grep -v '^ *+' conftest.er1 >conftest.err
28435    rm -f conftest.er1
28436    cat conftest.err >&5
28437 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 -  (exit $ac_status); } &&
28439 -        { ac_try='test -z "$ac_c_werror_flag"
28440 -                        || test ! -s conftest.err'
28441 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 -  (eval $ac_try) 2>&5
28443 -  ac_status=$?
28444 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 -  (exit $ac_status); }; } &&
28446 -        { ac_try='test -s conftest$ac_exeext'
28447 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 -  (eval $ac_try) 2>&5
28449 -  ac_status=$?
28450 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 -  (exit $ac_status); }; }; then
28452 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 +  (exit $ac_status); } && {
28454 +        test -z "$ac_c_werror_flag" ||
28455 +        test ! -s conftest.err
28456 +       } && test -s conftest$ac_exeext && {
28457 +        test "$cross_compiling" = yes ||
28458 +        $as_test_x conftest$ac_exeext
28459 +       }; then
28460    ac_cv_lib_nsl_gethostbyname=yes
28461  else
28462 -  echo "$as_me: failed program was:" >&5
28463 +  $as_echo "$as_me: failed program was:" >&5
28464  sed 's/^/| /' conftest.$ac_ext >&5
28465  
28466 -ac_cv_lib_nsl_gethostbyname=no
28467 +       ac_cv_lib_nsl_gethostbyname=no
28468  fi
28469 -rm -f conftest.err conftest.$ac_objext \
28470 +
28471 +rm -rf conftest.dSYM
28472 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28473        conftest$ac_exeext conftest.$ac_ext
28474  LIBS=$ac_check_lib_save_LIBS
28475  fi
28476 -echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28477 -echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28478 -if test $ac_cv_lib_nsl_gethostbyname = yes; then
28479 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28480 +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
28481 +if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
28482    cat >>confdefs.h <<_ACEOF
28483  #define HAVE_LIBNSL 1
28484  _ACEOF
28485 @@ -19530,10 +20345,10 @@ _ACEOF
28486  fi
28487  
28488  
28489 -echo "$as_me:$LINENO: checking for floor in -lm" >&5
28490 -echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
28491 +{ $as_echo "$as_me:$LINENO: checking for floor in -lm" >&5
28492 +$as_echo_n "checking for floor in -lm... " >&6; }
28493  if test "${ac_cv_lib_m_floor+set}" = set; then
28494 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28495 +  $as_echo_n "(cached) " >&6
28496  else
28497    ac_check_lib_save_LIBS=$LIBS
28498  LIBS="-lm  $LIBS"
28499 @@ -19544,57 +20359,58 @@ cat confdefs.h >>conftest.$ac_ext
28500  cat >>conftest.$ac_ext <<_ACEOF
28501  /* end confdefs.h.  */
28502  
28503 -/* Override any gcc2 internal prototype to avoid an error.  */
28504 +/* Override any GCC internal prototype to avoid an error.
28505 +   Use char because int might match the return type of a GCC
28506 +   builtin and then its argument prototype would still apply.  */
28507  #ifdef __cplusplus
28508  extern "C"
28509  #endif
28510 -/* We use char because int might match the return type of a gcc2
28511 -   builtin and then its argument prototype would still apply.  */
28512  char floor ();
28513  int
28514  main ()
28515  {
28516 -floor ();
28517 +return floor ();
28518    ;
28519    return 0;
28520  }
28521  _ACEOF
28522  rm -f conftest.$ac_objext conftest$ac_exeext
28523 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28524 -  (eval $ac_link) 2>conftest.er1
28525 +if { (ac_try="$ac_link"
28526 +case "(($ac_try" in
28527 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528 +  *) ac_try_echo=$ac_try;;
28529 +esac
28530 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28531 +$as_echo "$ac_try_echo") >&5
28532 +  (eval "$ac_link") 2>conftest.er1
28533    ac_status=$?
28534    grep -v '^ *+' conftest.er1 >conftest.err
28535    rm -f conftest.er1
28536    cat conftest.err >&5
28537 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 -  (exit $ac_status); } &&
28539 -        { ac_try='test -z "$ac_c_werror_flag"
28540 -                        || test ! -s conftest.err'
28541 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28542 -  (eval $ac_try) 2>&5
28543 -  ac_status=$?
28544 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 -  (exit $ac_status); }; } &&
28546 -        { ac_try='test -s conftest$ac_exeext'
28547 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28548 -  (eval $ac_try) 2>&5
28549 -  ac_status=$?
28550 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 -  (exit $ac_status); }; }; then
28552 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 +  (exit $ac_status); } && {
28554 +        test -z "$ac_c_werror_flag" ||
28555 +        test ! -s conftest.err
28556 +       } && test -s conftest$ac_exeext && {
28557 +        test "$cross_compiling" = yes ||
28558 +        $as_test_x conftest$ac_exeext
28559 +       }; then
28560    ac_cv_lib_m_floor=yes
28561  else
28562 -  echo "$as_me: failed program was:" >&5
28563 +  $as_echo "$as_me: failed program was:" >&5
28564  sed 's/^/| /' conftest.$ac_ext >&5
28565  
28566 -ac_cv_lib_m_floor=no
28567 +       ac_cv_lib_m_floor=no
28568  fi
28569 -rm -f conftest.err conftest.$ac_objext \
28570 +
28571 +rm -rf conftest.dSYM
28572 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28573        conftest$ac_exeext conftest.$ac_ext
28574  LIBS=$ac_check_lib_save_LIBS
28575  fi
28576 -echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
28577 -echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
28578 -if test $ac_cv_lib_m_floor = yes; then
28579 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
28580 +$as_echo "$ac_cv_lib_m_floor" >&6; }
28581 +if test "x$ac_cv_lib_m_floor" = x""yes; then
28582    cat >>confdefs.h <<_ACEOF
28583  #define HAVE_LIBM 1
28584  _ACEOF
28585 @@ -19604,10 +20420,10 @@ _ACEOF
28586  fi
28587  
28588  
28589 -echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
28590 -echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
28591 +{ $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
28592 +$as_echo_n "checking for dlsym in -ldl... " >&6; }
28593  if test "${ac_cv_lib_dl_dlsym+set}" = set; then
28594 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28595 +  $as_echo_n "(cached) " >&6
28596  else
28597    ac_check_lib_save_LIBS=$LIBS
28598  LIBS="-ldl  $LIBS"
28599 @@ -19618,57 +20434,58 @@ cat confdefs.h >>conftest.$ac_ext
28600  cat >>conftest.$ac_ext <<_ACEOF
28601  /* end confdefs.h.  */
28602  
28603 -/* Override any gcc2 internal prototype to avoid an error.  */
28604 +/* Override any GCC internal prototype to avoid an error.
28605 +   Use char because int might match the return type of a GCC
28606 +   builtin and then its argument prototype would still apply.  */
28607  #ifdef __cplusplus
28608  extern "C"
28609  #endif
28610 -/* We use char because int might match the return type of a gcc2
28611 -   builtin and then its argument prototype would still apply.  */
28612  char dlsym ();
28613  int
28614  main ()
28615  {
28616 -dlsym ();
28617 +return dlsym ();
28618    ;
28619    return 0;
28620  }
28621  _ACEOF
28622  rm -f conftest.$ac_objext conftest$ac_exeext
28623 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28624 -  (eval $ac_link) 2>conftest.er1
28625 +if { (ac_try="$ac_link"
28626 +case "(($ac_try" in
28627 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28628 +  *) ac_try_echo=$ac_try;;
28629 +esac
28630 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28631 +$as_echo "$ac_try_echo") >&5
28632 +  (eval "$ac_link") 2>conftest.er1
28633    ac_status=$?
28634    grep -v '^ *+' conftest.er1 >conftest.err
28635    rm -f conftest.er1
28636    cat conftest.err >&5
28637 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 -  (exit $ac_status); } &&
28639 -        { ac_try='test -z "$ac_c_werror_flag"
28640 -                        || test ! -s conftest.err'
28641 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642 -  (eval $ac_try) 2>&5
28643 -  ac_status=$?
28644 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 -  (exit $ac_status); }; } &&
28646 -        { ac_try='test -s conftest$ac_exeext'
28647 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28648 -  (eval $ac_try) 2>&5
28649 -  ac_status=$?
28650 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 -  (exit $ac_status); }; }; then
28652 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 +  (exit $ac_status); } && {
28654 +        test -z "$ac_c_werror_flag" ||
28655 +        test ! -s conftest.err
28656 +       } && test -s conftest$ac_exeext && {
28657 +        test "$cross_compiling" = yes ||
28658 +        $as_test_x conftest$ac_exeext
28659 +       }; then
28660    ac_cv_lib_dl_dlsym=yes
28661  else
28662 -  echo "$as_me: failed program was:" >&5
28663 +  $as_echo "$as_me: failed program was:" >&5
28664  sed 's/^/| /' conftest.$ac_ext >&5
28665  
28666 -ac_cv_lib_dl_dlsym=no
28667 +       ac_cv_lib_dl_dlsym=no
28668  fi
28669 -rm -f conftest.err conftest.$ac_objext \
28670 +
28671 +rm -rf conftest.dSYM
28672 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28673        conftest$ac_exeext conftest.$ac_ext
28674  LIBS=$ac_check_lib_save_LIBS
28675  fi
28676 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
28677 -echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
28678 -if test $ac_cv_lib_dl_dlsym = yes; then
28679 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
28680 +$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
28681 +if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
28682    cat >>confdefs.h <<_ACEOF
28683  #define HAVE_LIBDL 1
28684  _ACEOF
28685 @@ -19678,10 +20495,10 @@ _ACEOF
28686  fi
28687  
28688  
28689 -echo "$as_me:$LINENO: checking for compress in -lz" >&5
28690 -echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
28691 +{ $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
28692 +$as_echo_n "checking for compress in -lz... " >&6; }
28693  if test "${ac_cv_lib_z_compress+set}" = set; then
28694 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28695 +  $as_echo_n "(cached) " >&6
28696  else
28697    ac_check_lib_save_LIBS=$LIBS
28698  LIBS="-lz  $LIBS"
28699 @@ -19692,57 +20509,58 @@ cat confdefs.h >>conftest.$ac_ext
28700  cat >>conftest.$ac_ext <<_ACEOF
28701  /* end confdefs.h.  */
28702  
28703 -/* Override any gcc2 internal prototype to avoid an error.  */
28704 +/* Override any GCC internal prototype to avoid an error.
28705 +   Use char because int might match the return type of a GCC
28706 +   builtin and then its argument prototype would still apply.  */
28707  #ifdef __cplusplus
28708  extern "C"
28709  #endif
28710 -/* We use char because int might match the return type of a gcc2
28711 -   builtin and then its argument prototype would still apply.  */
28712  char compress ();
28713  int
28714  main ()
28715  {
28716 -compress ();
28717 +return compress ();
28718    ;
28719    return 0;
28720  }
28721  _ACEOF
28722  rm -f conftest.$ac_objext conftest$ac_exeext
28723 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28724 -  (eval $ac_link) 2>conftest.er1
28725 +if { (ac_try="$ac_link"
28726 +case "(($ac_try" in
28727 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28728 +  *) ac_try_echo=$ac_try;;
28729 +esac
28730 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28731 +$as_echo "$ac_try_echo") >&5
28732 +  (eval "$ac_link") 2>conftest.er1
28733    ac_status=$?
28734    grep -v '^ *+' conftest.er1 >conftest.err
28735    rm -f conftest.er1
28736    cat conftest.err >&5
28737 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 -  (exit $ac_status); } &&
28739 -        { ac_try='test -z "$ac_c_werror_flag"
28740 -                        || test ! -s conftest.err'
28741 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 -  (eval $ac_try) 2>&5
28743 -  ac_status=$?
28744 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 -  (exit $ac_status); }; } &&
28746 -        { ac_try='test -s conftest$ac_exeext'
28747 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28748 -  (eval $ac_try) 2>&5
28749 -  ac_status=$?
28750 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 -  (exit $ac_status); }; }; then
28752 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 +  (exit $ac_status); } && {
28754 +        test -z "$ac_c_werror_flag" ||
28755 +        test ! -s conftest.err
28756 +       } && test -s conftest$ac_exeext && {
28757 +        test "$cross_compiling" = yes ||
28758 +        $as_test_x conftest$ac_exeext
28759 +       }; then
28760    ac_cv_lib_z_compress=yes
28761  else
28762 -  echo "$as_me: failed program was:" >&5
28763 +  $as_echo "$as_me: failed program was:" >&5
28764  sed 's/^/| /' conftest.$ac_ext >&5
28765  
28766 -ac_cv_lib_z_compress=no
28767 +       ac_cv_lib_z_compress=no
28768  fi
28769 -rm -f conftest.err conftest.$ac_objext \
28770 +
28771 +rm -rf conftest.dSYM
28772 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28773        conftest$ac_exeext conftest.$ac_ext
28774  LIBS=$ac_check_lib_save_LIBS
28775  fi
28776 -echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28777 -echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
28778 -if test $ac_cv_lib_z_compress = yes; then
28779 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
28780 +$as_echo "$ac_cv_lib_z_compress" >&6; }
28781 +if test "x$ac_cv_lib_z_compress" = x""yes; then
28782    cat >>confdefs.h <<_ACEOF
28783  #define HAVE_LIBZ 1
28784  _ACEOF
28785 @@ -19753,10 +20571,10 @@ fi
28786  
28787  
28788  
28789 -echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
28790 -echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
28791 +{ $as_echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
28792 +$as_echo_n "checking for main in -lmysqlclient... " >&6; }
28793  if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
28794 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28795 +  $as_echo_n "(cached) " >&6
28796  else
28797    ac_check_lib_save_LIBS=$LIBS
28798  LIBS="-lmysqlclient  $LIBS"
28799 @@ -19771,47 +20589,48 @@ cat >>conftest.$ac_ext <<_ACEOF
28800  int
28801  main ()
28802  {
28803 -main ();
28804 +return main ();
28805    ;
28806    return 0;
28807  }
28808  _ACEOF
28809  rm -f conftest.$ac_objext conftest$ac_exeext
28810 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28811 -  (eval $ac_link) 2>conftest.er1
28812 +if { (ac_try="$ac_link"
28813 +case "(($ac_try" in
28814 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815 +  *) ac_try_echo=$ac_try;;
28816 +esac
28817 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28818 +$as_echo "$ac_try_echo") >&5
28819 +  (eval "$ac_link") 2>conftest.er1
28820    ac_status=$?
28821    grep -v '^ *+' conftest.er1 >conftest.err
28822    rm -f conftest.er1
28823    cat conftest.err >&5
28824 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 -  (exit $ac_status); } &&
28826 -        { ac_try='test -z "$ac_c_werror_flag"
28827 -                        || test ! -s conftest.err'
28828 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829 -  (eval $ac_try) 2>&5
28830 -  ac_status=$?
28831 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 -  (exit $ac_status); }; } &&
28833 -        { ac_try='test -s conftest$ac_exeext'
28834 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835 -  (eval $ac_try) 2>&5
28836 -  ac_status=$?
28837 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 -  (exit $ac_status); }; }; then
28839 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 +  (exit $ac_status); } && {
28841 +        test -z "$ac_c_werror_flag" ||
28842 +        test ! -s conftest.err
28843 +       } && test -s conftest$ac_exeext && {
28844 +        test "$cross_compiling" = yes ||
28845 +        $as_test_x conftest$ac_exeext
28846 +       }; then
28847    ac_cv_lib_mysqlclient_main=yes
28848  else
28849 -  echo "$as_me: failed program was:" >&5
28850 +  $as_echo "$as_me: failed program was:" >&5
28851  sed 's/^/| /' conftest.$ac_ext >&5
28852  
28853 -ac_cv_lib_mysqlclient_main=no
28854 +       ac_cv_lib_mysqlclient_main=no
28855  fi
28856 -rm -f conftest.err conftest.$ac_objext \
28857 +
28858 +rm -rf conftest.dSYM
28859 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28860        conftest$ac_exeext conftest.$ac_ext
28861  LIBS=$ac_check_lib_save_LIBS
28862  fi
28863 -echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
28864 -echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
28865 -if test $ac_cv_lib_mysqlclient_main = yes; then
28866 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
28867 +$as_echo "$ac_cv_lib_mysqlclient_main" >&6; }
28868 +if test "x$ac_cv_lib_mysqlclient_main" = x""yes; then
28869    cat >>confdefs.h <<_ACEOF
28870  #define HAVE_LIBMYSQLCLIENT 1
28871  _ACEOF
28872 @@ -19819,16 +20638,16 @@ _ACEOF
28873    LIBS="-lmysqlclient $LIBS"
28874  
28875  else
28876 -  { { echo "$as_me:$LINENO: error: Unable find a functioning MySQL library" >&5
28877 -echo "$as_me: error: Unable find a functioning MySQL library" >&2;}
28878 +  { { $as_echo "$as_me:$LINENO: error: Unable find a functioning MySQL library" >&5
28879 +$as_echo "$as_me: error: Unable find a functioning MySQL library" >&2;}
28880     { (exit 1); exit 1; }; }
28881  fi
28882  
28883  
28884 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28885 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
28886 +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28887 +$as_echo_n "checking for ANSI C header files... " >&6; }
28888  if test "${ac_cv_header_stdc+set}" = set; then
28889 -  echo $ECHO_N "(cached) $ECHO_C" >&6
28890 +  $as_echo_n "(cached) " >&6
28891  else
28892    cat >conftest.$ac_ext <<_ACEOF
28893  /* confdefs.h.  */
28894 @@ -19850,35 +20669,32 @@ main ()
28895  }
28896  _ACEOF
28897  rm -f conftest.$ac_objext
28898 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28899 -  (eval $ac_compile) 2>conftest.er1
28900 +if { (ac_try="$ac_compile"
28901 +case "(($ac_try" in
28902 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28903 +  *) ac_try_echo=$ac_try;;
28904 +esac
28905 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28906 +$as_echo "$ac_try_echo") >&5
28907 +  (eval "$ac_compile") 2>conftest.er1
28908    ac_status=$?
28909    grep -v '^ *+' conftest.er1 >conftest.err
28910    rm -f conftest.er1
28911    cat conftest.err >&5
28912 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 -  (exit $ac_status); } &&
28914 -        { ac_try='test -z "$ac_c_werror_flag"
28915 -                        || test ! -s conftest.err'
28916 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917 -  (eval $ac_try) 2>&5
28918 -  ac_status=$?
28919 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 -  (exit $ac_status); }; } &&
28921 -        { ac_try='test -s conftest.$ac_objext'
28922 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923 -  (eval $ac_try) 2>&5
28924 -  ac_status=$?
28925 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 -  (exit $ac_status); }; }; then
28927 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 +  (exit $ac_status); } && {
28929 +        test -z "$ac_c_werror_flag" ||
28930 +        test ! -s conftest.err
28931 +       } && test -s conftest.$ac_objext; then
28932    ac_cv_header_stdc=yes
28933  else
28934 -  echo "$as_me: failed program was:" >&5
28935 +  $as_echo "$as_me: failed program was:" >&5
28936  sed 's/^/| /' conftest.$ac_ext >&5
28937  
28938 -ac_cv_header_stdc=no
28939 +       ac_cv_header_stdc=no
28940  fi
28941 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28942 +
28943 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28944  
28945  if test $ac_cv_header_stdc = yes; then
28946    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28947 @@ -19934,6 +20750,7 @@ cat confdefs.h >>conftest.$ac_ext
28948  cat >>conftest.$ac_ext <<_ACEOF
28949  /* end confdefs.h.  */
28950  #include <ctype.h>
28951 +#include <stdlib.h>
28952  #if ((' ' & 0x0FF) == 0x020)
28953  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28954  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28955 @@ -19953,36 +20770,50 @@ main ()
28956    for (i = 0; i < 256; i++)
28957      if (XOR (islower (i), ISLOWER (i))
28958         || toupper (i) != TOUPPER (i))
28959 -      exit(2);
28960 -  exit (0);
28961 +      return 2;
28962 +  return 0;
28963  }
28964  _ACEOF
28965  rm -f conftest$ac_exeext
28966 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28967 -  (eval $ac_link) 2>&5
28968 +if { (ac_try="$ac_link"
28969 +case "(($ac_try" in
28970 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28971 +  *) ac_try_echo=$ac_try;;
28972 +esac
28973 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28974 +$as_echo "$ac_try_echo") >&5
28975 +  (eval "$ac_link") 2>&5
28976    ac_status=$?
28977 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28980 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28981 -  (eval $ac_try) 2>&5
28982 +  { (case "(($ac_try" in
28983 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984 +  *) ac_try_echo=$ac_try;;
28985 +esac
28986 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28987 +$as_echo "$ac_try_echo") >&5
28988 +  (eval "$ac_try") 2>&5
28989    ac_status=$?
28990 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992    (exit $ac_status); }; }; then
28993    :
28994  else
28995 -  echo "$as_me: program exited with status $ac_status" >&5
28996 -echo "$as_me: failed program was:" >&5
28997 +  $as_echo "$as_me: program exited with status $ac_status" >&5
28998 +$as_echo "$as_me: failed program was:" >&5
28999  sed 's/^/| /' conftest.$ac_ext >&5
29000  
29001  ( exit $ac_status )
29002  ac_cv_header_stdc=no
29003  fi
29004 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29005 +rm -rf conftest.dSYM
29006 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29007  fi
29008 +
29009 +
29010  fi
29011  fi
29012 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29013 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
29014 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29015 +$as_echo "$ac_cv_header_stdc" >&6; }
29016  if test $ac_cv_header_stdc = yes; then
29017  
29018  cat >>confdefs.h <<\_ACEOF
29019 @@ -19992,17 +20823,17 @@ _ACEOF
29020  fi
29021  
29022  if test "${ac_cv_header_mysql_h+set}" = set; then
29023 -  echo "$as_me:$LINENO: checking for mysql.h" >&5
29024 -echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
29025 +  { $as_echo "$as_me:$LINENO: checking for mysql.h" >&5
29026 +$as_echo_n "checking for mysql.h... " >&6; }
29027  if test "${ac_cv_header_mysql_h+set}" = set; then
29028 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29029 +  $as_echo_n "(cached) " >&6
29030  fi
29031 -echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
29032 -echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
29033 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
29034 +$as_echo "$ac_cv_header_mysql_h" >&6; }
29035  else
29036    # Is the header compilable?
29037 -echo "$as_me:$LINENO: checking mysql.h usability" >&5
29038 -echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
29039 +{ $as_echo "$as_me:$LINENO: checking mysql.h usability" >&5
29040 +$as_echo_n "checking mysql.h usability... " >&6; }
29041  cat >conftest.$ac_ext <<_ACEOF
29042  /* confdefs.h.  */
29043  _ACEOF
29044 @@ -20013,41 +20844,38 @@ $ac_includes_default
29045  #include <mysql.h>
29046  _ACEOF
29047  rm -f conftest.$ac_objext
29048 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29049 -  (eval $ac_compile) 2>conftest.er1
29050 +if { (ac_try="$ac_compile"
29051 +case "(($ac_try" in
29052 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29053 +  *) ac_try_echo=$ac_try;;
29054 +esac
29055 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29056 +$as_echo "$ac_try_echo") >&5
29057 +  (eval "$ac_compile") 2>conftest.er1
29058    ac_status=$?
29059    grep -v '^ *+' conftest.er1 >conftest.err
29060    rm -f conftest.er1
29061    cat conftest.err >&5
29062 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 -  (exit $ac_status); } &&
29064 -        { ac_try='test -z "$ac_c_werror_flag"
29065 -                        || test ! -s conftest.err'
29066 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 -  (eval $ac_try) 2>&5
29068 -  ac_status=$?
29069 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 -  (exit $ac_status); }; } &&
29071 -        { ac_try='test -s conftest.$ac_objext'
29072 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073 -  (eval $ac_try) 2>&5
29074 -  ac_status=$?
29075 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 -  (exit $ac_status); }; }; then
29077 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 +  (exit $ac_status); } && {
29079 +        test -z "$ac_c_werror_flag" ||
29080 +        test ! -s conftest.err
29081 +       } && test -s conftest.$ac_objext; then
29082    ac_header_compiler=yes
29083  else
29084 -  echo "$as_me: failed program was:" >&5
29085 +  $as_echo "$as_me: failed program was:" >&5
29086  sed 's/^/| /' conftest.$ac_ext >&5
29087  
29088 -ac_header_compiler=no
29089 +       ac_header_compiler=no
29090  fi
29091 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29092 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29093 -echo "${ECHO_T}$ac_header_compiler" >&6
29094 +
29095 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29096 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29097 +$as_echo "$ac_header_compiler" >&6; }
29098  
29099  # Is the header present?
29100 -echo "$as_me:$LINENO: checking mysql.h presence" >&5
29101 -echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
29102 +{ $as_echo "$as_me:$LINENO: checking mysql.h presence" >&5
29103 +$as_echo_n "checking mysql.h presence... " >&6; }
29104  cat >conftest.$ac_ext <<_ACEOF
29105  /* confdefs.h.  */
29106  _ACEOF
29107 @@ -20056,83 +20884,76 @@ cat >>conftest.$ac_ext <<_ACEOF
29108  /* end confdefs.h.  */
29109  #include <mysql.h>
29110  _ACEOF
29111 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29112 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29113 +if { (ac_try="$ac_cpp conftest.$ac_ext"
29114 +case "(($ac_try" in
29115 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 +  *) ac_try_echo=$ac_try;;
29117 +esac
29118 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29119 +$as_echo "$ac_try_echo") >&5
29120 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29121    ac_status=$?
29122    grep -v '^ *+' conftest.er1 >conftest.err
29123    rm -f conftest.er1
29124    cat conftest.err >&5
29125 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 -  (exit $ac_status); } >/dev/null; then
29127 -  if test -s conftest.err; then
29128 -    ac_cpp_err=$ac_c_preproc_warn_flag
29129 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29130 -  else
29131 -    ac_cpp_err=
29132 -  fi
29133 -else
29134 -  ac_cpp_err=yes
29135 -fi
29136 -if test -z "$ac_cpp_err"; then
29137 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 +  (exit $ac_status); } >/dev/null && {
29139 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29140 +        test ! -s conftest.err
29141 +       }; then
29142    ac_header_preproc=yes
29143  else
29144 -  echo "$as_me: failed program was:" >&5
29145 +  $as_echo "$as_me: failed program was:" >&5
29146  sed 's/^/| /' conftest.$ac_ext >&5
29147  
29148    ac_header_preproc=no
29149  fi
29150 +
29151  rm -f conftest.err conftest.$ac_ext
29152 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29153 -echo "${ECHO_T}$ac_header_preproc" >&6
29154 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29155 +$as_echo "$ac_header_preproc" >&6; }
29156  
29157  # So?  What about this header?
29158  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29159    yes:no: )
29160 -    { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29161 -echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29162 -    { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
29163 -echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
29164 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29165 +$as_echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29166 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
29167 +$as_echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
29168      ac_header_preproc=yes
29169      ;;
29170    no:yes:* )
29171 -    { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
29172 -echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
29173 -    { echo "$as_me:$LINENO: WARNING: mysql.h:     check for missing prerequisite headers?" >&5
29174 -echo "$as_me: WARNING: mysql.h:     check for missing prerequisite headers?" >&2;}
29175 -    { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
29176 -echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
29177 -    { echo "$as_me:$LINENO: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
29178 -echo "$as_me: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29179 -    { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
29180 -echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
29181 -    { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
29182 -echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
29183 -    (
29184 -      cat <<\_ASBOX
29185 -## ------------------------------------------ ##
29186 -## Report this to the AC_PACKAGE_NAME lists.  ##
29187 -## ------------------------------------------ ##
29188 -_ASBOX
29189 -    ) |
29190 -      sed "s/^/$as_me: WARNING:     /" >&2
29191 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
29192 +$as_echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
29193 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h:     check for missing prerequisite headers?" >&5
29194 +$as_echo "$as_me: WARNING: mysql.h:     check for missing prerequisite headers?" >&2;}
29195 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
29196 +$as_echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
29197 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
29198 +$as_echo "$as_me: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29199 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
29200 +$as_echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
29201 +    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
29202 +$as_echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
29203 +
29204      ;;
29205  esac
29206 -echo "$as_me:$LINENO: checking for mysql.h" >&5
29207 -echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
29208 +{ $as_echo "$as_me:$LINENO: checking for mysql.h" >&5
29209 +$as_echo_n "checking for mysql.h... " >&6; }
29210  if test "${ac_cv_header_mysql_h+set}" = set; then
29211 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29212 +  $as_echo_n "(cached) " >&6
29213  else
29214    ac_cv_header_mysql_h=$ac_header_preproc
29215  fi
29216 -echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
29217 -echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
29218 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
29219 +$as_echo "$ac_cv_header_mysql_h" >&6; }
29220  
29221  fi
29222 -if test $ac_cv_header_mysql_h = yes; then
29223 +if test "x$ac_cv_header_mysql_h" = x""yes; then
29224    :
29225  else
29226 -  { { echo "$as_me:$LINENO: error: Unable to find mysql.h" >&5
29227 -echo "$as_me: error: Unable to find mysql.h" >&2;}
29228 +  { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h" >&5
29229 +$as_echo "$as_me: error: Unable to find mysql.h" >&2;}
29230     { (exit 1); exit 1; }; }
29231  fi
29232  
29233 @@ -20144,19 +20965,21 @@ fi
29234  
29235  for ac_header in syslog.h stdint.h nss.h nss_common.h shadow.h
29236  do
29237 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29238 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
29239 -  echo "$as_me:$LINENO: checking for $ac_header" >&5
29240 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29241 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
29242 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29243 -fi
29244 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29245 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29246 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29247 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29248 +  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29249 +$as_echo_n "checking for $ac_header... " >&6; }
29250 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29251 +  $as_echo_n "(cached) " >&6
29252 +fi
29253 +ac_res=`eval 'as_val=${'$as_ac_Header'}
29254 +                $as_echo "$as_val"'`
29255 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29256 +$as_echo "$ac_res" >&6; }
29257  else
29258    # Is the header compilable?
29259 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
29260 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29261 +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29262 +$as_echo_n "checking $ac_header usability... " >&6; }
29263  cat >conftest.$ac_ext <<_ACEOF
29264  /* confdefs.h.  */
29265  _ACEOF
29266 @@ -20167,41 +20990,38 @@ $ac_includes_default
29267  #include <$ac_header>
29268  _ACEOF
29269  rm -f conftest.$ac_objext
29270 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29271 -  (eval $ac_compile) 2>conftest.er1
29272 +if { (ac_try="$ac_compile"
29273 +case "(($ac_try" in
29274 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275 +  *) ac_try_echo=$ac_try;;
29276 +esac
29277 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29278 +$as_echo "$ac_try_echo") >&5
29279 +  (eval "$ac_compile") 2>conftest.er1
29280    ac_status=$?
29281    grep -v '^ *+' conftest.er1 >conftest.err
29282    rm -f conftest.er1
29283    cat conftest.err >&5
29284 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 -  (exit $ac_status); } &&
29286 -        { ac_try='test -z "$ac_c_werror_flag"
29287 -                        || test ! -s conftest.err'
29288 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29289 -  (eval $ac_try) 2>&5
29290 -  ac_status=$?
29291 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292 -  (exit $ac_status); }; } &&
29293 -        { ac_try='test -s conftest.$ac_objext'
29294 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29295 -  (eval $ac_try) 2>&5
29296 -  ac_status=$?
29297 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 -  (exit $ac_status); }; }; then
29299 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 +  (exit $ac_status); } && {
29301 +        test -z "$ac_c_werror_flag" ||
29302 +        test ! -s conftest.err
29303 +       } && test -s conftest.$ac_objext; then
29304    ac_header_compiler=yes
29305  else
29306 -  echo "$as_me: failed program was:" >&5
29307 +  $as_echo "$as_me: failed program was:" >&5
29308  sed 's/^/| /' conftest.$ac_ext >&5
29309  
29310 -ac_header_compiler=no
29311 +       ac_header_compiler=no
29312  fi
29313 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29314 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29315 -echo "${ECHO_T}$ac_header_compiler" >&6
29316 +
29317 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29318 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29319 +$as_echo "$ac_header_compiler" >&6; }
29320  
29321  # Is the header present?
29322 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
29323 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29324 +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29325 +$as_echo_n "checking $ac_header presence... " >&6; }
29326  cat >conftest.$ac_ext <<_ACEOF
29327  /* confdefs.h.  */
29328  _ACEOF
29329 @@ -20210,81 +21030,78 @@ cat >>conftest.$ac_ext <<_ACEOF
29330  /* end confdefs.h.  */
29331  #include <$ac_header>
29332  _ACEOF
29333 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29334 -  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29335 +if { (ac_try="$ac_cpp conftest.$ac_ext"
29336 +case "(($ac_try" in
29337 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29338 +  *) ac_try_echo=$ac_try;;
29339 +esac
29340 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29341 +$as_echo "$ac_try_echo") >&5
29342 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29343    ac_status=$?
29344    grep -v '^ *+' conftest.er1 >conftest.err
29345    rm -f conftest.er1
29346    cat conftest.err >&5
29347 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 -  (exit $ac_status); } >/dev/null; then
29349 -  if test -s conftest.err; then
29350 -    ac_cpp_err=$ac_c_preproc_warn_flag
29351 -    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29352 -  else
29353 -    ac_cpp_err=
29354 -  fi
29355 -else
29356 -  ac_cpp_err=yes
29357 -fi
29358 -if test -z "$ac_cpp_err"; then
29359 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 +  (exit $ac_status); } >/dev/null && {
29361 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29362 +        test ! -s conftest.err
29363 +       }; then
29364    ac_header_preproc=yes
29365  else
29366 -  echo "$as_me: failed program was:" >&5
29367 +  $as_echo "$as_me: failed program was:" >&5
29368  sed 's/^/| /' conftest.$ac_ext >&5
29369  
29370    ac_header_preproc=no
29371  fi
29372 +
29373  rm -f conftest.err conftest.$ac_ext
29374 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29375 -echo "${ECHO_T}$ac_header_preproc" >&6
29376 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29377 +$as_echo "$ac_header_preproc" >&6; }
29378  
29379  # So?  What about this header?
29380  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29381    yes:no: )
29382 -    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29383 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29384 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29385 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29386 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29387 +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29388 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29389 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29390      ac_header_preproc=yes
29391      ;;
29392    no:yes:* )
29393 -    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29394 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29395 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29396 -echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29397 -    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29398 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29399 -    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29400 -echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29401 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29402 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29403 -    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29404 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29405 -    (
29406 -      cat <<\_ASBOX
29407 -## ------------------------------------------ ##
29408 -## Report this to the AC_PACKAGE_NAME lists.  ##
29409 -## ------------------------------------------ ##
29410 -_ASBOX
29411 -    ) |
29412 -      sed "s/^/$as_me: WARNING:     /" >&2
29413 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29414 +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29415 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29416 +$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29417 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29418 +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29419 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29420 +$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29421 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29422 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29423 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29424 +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29425 +
29426      ;;
29427  esac
29428 -echo "$as_me:$LINENO: checking for $ac_header" >&5
29429 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29430 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
29431 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29432 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29433 +$as_echo_n "checking for $ac_header... " >&6; }
29434 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29435 +  $as_echo_n "(cached) " >&6
29436  else
29437    eval "$as_ac_Header=\$ac_header_preproc"
29438  fi
29439 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29440 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29441 +ac_res=`eval 'as_val=${'$as_ac_Header'}
29442 +                $as_echo "$as_val"'`
29443 +              { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29444 +$as_echo "$ac_res" >&6; }
29445  
29446  fi
29447 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
29448 +as_val=`eval 'as_val=${'$as_ac_Header'}
29449 +                $as_echo "$as_val"'`
29450 +   if test "x$as_val" = x""yes; then
29451    cat >>confdefs.h <<_ACEOF
29452 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29453 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29454  _ACEOF
29455  
29456  fi
29457 @@ -20292,10 +21109,10 @@ fi
29458  done
29459  
29460  
29461 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
29462 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
29463 +{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
29464 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29465  if test "${ac_cv_c_const+set}" = set; then
29466 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29467 +  $as_echo_n "(cached) " >&6
29468  else
29469    cat >conftest.$ac_ext <<_ACEOF
29470  /* confdefs.h.  */
29471 @@ -20311,10 +21128,10 @@ main ()
29472  #ifndef __cplusplus
29473    /* Ultrix mips cc rejects this.  */
29474    typedef int charset[2];
29475 -  const charset x;
29476 +  const charset cs;
29477    /* SunOS 4.1.1 cc rejects this.  */
29478 -  char const *const *ccp;
29479 -  char **p;
29480 +  char const *const *pcpcc;
29481 +  char **ppc;
29482    /* NEC SVR4.0.2 mips cc rejects this.  */
29483    struct point {int x, y;};
29484    static struct point const zero = {0,0};
29485 @@ -20323,16 +21140,17 @@ main ()
29486       an arm of an if-expression whose if-part is not a constant
29487       expression */
29488    const char *g = "string";
29489 -  ccp = &g + (g ? g-g : 0);
29490 +  pcpcc = &g + (g ? g-g : 0);
29491    /* HPUX 7.0 cc rejects these. */
29492 -  ++ccp;
29493 -  p = (char**) ccp;
29494 -  ccp = (char const *const *) p;
29495 +  ++pcpcc;
29496 +  ppc = (char**) pcpcc;
29497 +  pcpcc = (char const *const *) ppc;
29498    { /* SCO 3.2v4 cc rejects this.  */
29499      char *t;
29500      char const *s = 0 ? (char *) 0 : (char const *) 0;
29501  
29502      *t++ = 0;
29503 +    if (s) return 0;
29504    }
29505    { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
29506      int x[] = {25, 17};
29507 @@ -20351,7 +21169,9 @@ main ()
29508    }
29509    { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29510      const int foo = 10;
29511 +    if (!foo) return 0;
29512    }
29513 +  return !cs[0] && !zero.x;
29514  #endif
29515  
29516    ;
29517 @@ -20359,50 +21179,47 @@ main ()
29518  }
29519  _ACEOF
29520  rm -f conftest.$ac_objext
29521 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29522 -  (eval $ac_compile) 2>conftest.er1
29523 +if { (ac_try="$ac_compile"
29524 +case "(($ac_try" in
29525 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29526 +  *) ac_try_echo=$ac_try;;
29527 +esac
29528 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29529 +$as_echo "$ac_try_echo") >&5
29530 +  (eval "$ac_compile") 2>conftest.er1
29531    ac_status=$?
29532    grep -v '^ *+' conftest.er1 >conftest.err
29533    rm -f conftest.er1
29534    cat conftest.err >&5
29535 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 -  (exit $ac_status); } &&
29537 -        { ac_try='test -z "$ac_c_werror_flag"
29538 -                        || test ! -s conftest.err'
29539 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540 -  (eval $ac_try) 2>&5
29541 -  ac_status=$?
29542 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 -  (exit $ac_status); }; } &&
29544 -        { ac_try='test -s conftest.$ac_objext'
29545 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546 -  (eval $ac_try) 2>&5
29547 -  ac_status=$?
29548 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 -  (exit $ac_status); }; }; then
29550 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 +  (exit $ac_status); } && {
29552 +        test -z "$ac_c_werror_flag" ||
29553 +        test ! -s conftest.err
29554 +       } && test -s conftest.$ac_objext; then
29555    ac_cv_c_const=yes
29556  else
29557 -  echo "$as_me: failed program was:" >&5
29558 +  $as_echo "$as_me: failed program was:" >&5
29559  sed 's/^/| /' conftest.$ac_ext >&5
29560  
29561 -ac_cv_c_const=no
29562 +       ac_cv_c_const=no
29563  fi
29564 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29565 +
29566 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29567  fi
29568 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
29569 -echo "${ECHO_T}$ac_cv_c_const" >&6
29570 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
29571 +$as_echo "$ac_cv_c_const" >&6; }
29572  if test $ac_cv_c_const = no; then
29573  
29574  cat >>confdefs.h <<\_ACEOF
29575 -#define const
29576 +#define const /**/
29577  _ACEOF
29578  
29579  fi
29580  
29581 -echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29582 -echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29583 +{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29584 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
29585  if test "${ac_cv_type_uid_t+set}" = set; then
29586 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29587 +  $as_echo_n "(cached) " >&6
29588  else
29589    cat >conftest.$ac_ext <<_ACEOF
29590  /* confdefs.h.  */
29591 @@ -20422,8 +21239,8 @@ fi
29592  rm -f conftest*
29593  
29594  fi
29595 -echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29596 -echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29597 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29598 +$as_echo "$ac_cv_type_uid_t" >&6; }
29599  if test $ac_cv_type_uid_t = no; then
29600  
29601  cat >>confdefs.h <<\_ACEOF
29602 @@ -20437,12 +21254,13 @@ _ACEOF
29603  
29604  fi
29605  
29606 -echo "$as_me:$LINENO: checking for size_t" >&5
29607 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29608 +{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
29609 +$as_echo_n "checking for size_t... " >&6; }
29610  if test "${ac_cv_type_size_t+set}" = set; then
29611 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29612 +  $as_echo_n "(cached) " >&6
29613  else
29614 -  cat >conftest.$ac_ext <<_ACEOF
29615 +  ac_cv_type_size_t=no
29616 +cat >conftest.$ac_ext <<_ACEOF
29617  /* confdefs.h.  */
29618  _ACEOF
29619  cat confdefs.h >>conftest.$ac_ext
29620 @@ -20452,63 +21270,101 @@ $ac_includes_default
29621  int
29622  main ()
29623  {
29624 -if ((size_t *) 0)
29625 -  return 0;
29626  if (sizeof (size_t))
29627 -  return 0;
29628 +       return 0;
29629    ;
29630    return 0;
29631  }
29632  _ACEOF
29633  rm -f conftest.$ac_objext
29634 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29635 -  (eval $ac_compile) 2>conftest.er1
29636 +if { (ac_try="$ac_compile"
29637 +case "(($ac_try" in
29638 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29639 +  *) ac_try_echo=$ac_try;;
29640 +esac
29641 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29642 +$as_echo "$ac_try_echo") >&5
29643 +  (eval "$ac_compile") 2>conftest.er1
29644    ac_status=$?
29645    grep -v '^ *+' conftest.er1 >conftest.err
29646    rm -f conftest.er1
29647    cat conftest.err >&5
29648 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 -  (exit $ac_status); } &&
29650 -        { ac_try='test -z "$ac_c_werror_flag"
29651 -                        || test ! -s conftest.err'
29652 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653 -  (eval $ac_try) 2>&5
29654 -  ac_status=$?
29655 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 -  (exit $ac_status); }; } &&
29657 -        { ac_try='test -s conftest.$ac_objext'
29658 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29659 -  (eval $ac_try) 2>&5
29660 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 +  (exit $ac_status); } && {
29662 +        test -z "$ac_c_werror_flag" ||
29663 +        test ! -s conftest.err
29664 +       } && test -s conftest.$ac_objext; then
29665 +  cat >conftest.$ac_ext <<_ACEOF
29666 +/* confdefs.h.  */
29667 +_ACEOF
29668 +cat confdefs.h >>conftest.$ac_ext
29669 +cat >>conftest.$ac_ext <<_ACEOF
29670 +/* end confdefs.h.  */
29671 +$ac_includes_default
29672 +int
29673 +main ()
29674 +{
29675 +if (sizeof ((size_t)))
29676 +         return 0;
29677 +  ;
29678 +  return 0;
29679 +}
29680 +_ACEOF
29681 +rm -f conftest.$ac_objext
29682 +if { (ac_try="$ac_compile"
29683 +case "(($ac_try" in
29684 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685 +  *) ac_try_echo=$ac_try;;
29686 +esac
29687 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29688 +$as_echo "$ac_try_echo") >&5
29689 +  (eval "$ac_compile") 2>conftest.er1
29690    ac_status=$?
29691 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 -  (exit $ac_status); }; }; then
29693 -  ac_cv_type_size_t=yes
29694 +  grep -v '^ *+' conftest.er1 >conftest.err
29695 +  rm -f conftest.er1
29696 +  cat conftest.err >&5
29697 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 +  (exit $ac_status); } && {
29699 +        test -z "$ac_c_werror_flag" ||
29700 +        test ! -s conftest.err
29701 +       } && test -s conftest.$ac_objext; then
29702 +  :
29703  else
29704 -  echo "$as_me: failed program was:" >&5
29705 +  $as_echo "$as_me: failed program was:" >&5
29706  sed 's/^/| /' conftest.$ac_ext >&5
29707  
29708 -ac_cv_type_size_t=no
29709 +       ac_cv_type_size_t=yes
29710  fi
29711 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29712 +
29713 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29714 +else
29715 +  $as_echo "$as_me: failed program was:" >&5
29716 +sed 's/^/| /' conftest.$ac_ext >&5
29717 +
29718 +
29719 +fi
29720 +
29721 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29722  fi
29723 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29724 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
29725 -if test $ac_cv_type_size_t = yes; then
29726 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29727 +$as_echo "$ac_cv_type_size_t" >&6; }
29728 +if test "x$ac_cv_type_size_t" = x""yes; then
29729    :
29730  else
29731  
29732  cat >>confdefs.h <<_ACEOF
29733 -#define size_t unsigned
29734 +#define size_t unsigned int
29735  _ACEOF
29736  
29737  fi
29738  
29739 -echo "$as_me:$LINENO: checking for socklen_t" >&5
29740 -echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
29741 +{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
29742 +$as_echo_n "checking for socklen_t... " >&6; }
29743  if test "${ac_cv_type_socklen_t+set}" = set; then
29744 -  echo $ECHO_N "(cached) $ECHO_C" >&6
29745 +  $as_echo_n "(cached) " >&6
29746  else
29747 -  cat >conftest.$ac_ext <<_ACEOF
29748 +  ac_cv_type_socklen_t=no
29749 +cat >conftest.$ac_ext <<_ACEOF
29750  /* confdefs.h.  */
29751  _ACEOF
29752  cat confdefs.h >>conftest.$ac_ext
29753 @@ -20522,48 +21378,89 @@ cat >>conftest.$ac_ext <<_ACEOF
29754  int
29755  main ()
29756  {
29757 -if ((socklen_t *) 0)
29758 -  return 0;
29759  if (sizeof (socklen_t))
29760 -  return 0;
29761 +       return 0;
29762    ;
29763    return 0;
29764  }
29765  _ACEOF
29766  rm -f conftest.$ac_objext
29767 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29768 -  (eval $ac_compile) 2>conftest.er1
29769 +if { (ac_try="$ac_compile"
29770 +case "(($ac_try" in
29771 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772 +  *) ac_try_echo=$ac_try;;
29773 +esac
29774 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29775 +$as_echo "$ac_try_echo") >&5
29776 +  (eval "$ac_compile") 2>conftest.er1
29777    ac_status=$?
29778    grep -v '^ *+' conftest.er1 >conftest.err
29779    rm -f conftest.er1
29780    cat conftest.err >&5
29781 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 -  (exit $ac_status); } &&
29783 -        { ac_try='test -z "$ac_c_werror_flag"
29784 -                        || test ! -s conftest.err'
29785 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 -  (eval $ac_try) 2>&5
29787 -  ac_status=$?
29788 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 -  (exit $ac_status); }; } &&
29790 -        { ac_try='test -s conftest.$ac_objext'
29791 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 -  (eval $ac_try) 2>&5
29793 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 +  (exit $ac_status); } && {
29795 +        test -z "$ac_c_werror_flag" ||
29796 +        test ! -s conftest.err
29797 +       } && test -s conftest.$ac_objext; then
29798 +  cat >conftest.$ac_ext <<_ACEOF
29799 +/* confdefs.h.  */
29800 +_ACEOF
29801 +cat confdefs.h >>conftest.$ac_ext
29802 +cat >>conftest.$ac_ext <<_ACEOF
29803 +/* end confdefs.h.  */
29804 +
29805 +#include <unistd.h>
29806 +#include <sys/socket.h>
29807 +
29808 +
29809 +int
29810 +main ()
29811 +{
29812 +if (sizeof ((socklen_t)))
29813 +         return 0;
29814 +  ;
29815 +  return 0;
29816 +}
29817 +_ACEOF
29818 +rm -f conftest.$ac_objext
29819 +if { (ac_try="$ac_compile"
29820 +case "(($ac_try" in
29821 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822 +  *) ac_try_echo=$ac_try;;
29823 +esac
29824 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29825 +$as_echo "$ac_try_echo") >&5
29826 +  (eval "$ac_compile") 2>conftest.er1
29827    ac_status=$?
29828 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 -  (exit $ac_status); }; }; then
29830 -  ac_cv_type_socklen_t=yes
29831 +  grep -v '^ *+' conftest.er1 >conftest.err
29832 +  rm -f conftest.er1
29833 +  cat conftest.err >&5
29834 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 +  (exit $ac_status); } && {
29836 +        test -z "$ac_c_werror_flag" ||
29837 +        test ! -s conftest.err
29838 +       } && test -s conftest.$ac_objext; then
29839 +  :
29840 +else
29841 +  $as_echo "$as_me: failed program was:" >&5
29842 +sed 's/^/| /' conftest.$ac_ext >&5
29843 +
29844 +       ac_cv_type_socklen_t=yes
29845 +fi
29846 +
29847 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848  else
29849 -  echo "$as_me: failed program was:" >&5
29850 +  $as_echo "$as_me: failed program was:" >&5
29851  sed 's/^/| /' conftest.$ac_ext >&5
29852  
29853 -ac_cv_type_socklen_t=no
29854 +
29855  fi
29856 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29857 +
29858 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29859  fi
29860 -echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29861 -echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
29862 -if test $ac_cv_type_socklen_t = yes; then
29863 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29864 +$as_echo "$ac_cv_type_socklen_t" >&6; }
29865 +if test "x$ac_cv_type_socklen_t" = x""yes; then
29866  
29867  cat >>confdefs.h <<_ACEOF
29868  #define HAVE_SOCKLEN_T 1
29869 @@ -20585,7 +21482,7 @@ cat >>confdefs.h <<_ACEOF
29870  _ACEOF
29871  
29872  
29873 -                              ac_config_files="$ac_config_files Makefile src/Makefile src/version.c"
29874 +ac_config_files="$ac_config_files Makefile src/Makefile src/version.c"
29875  
29876  cat >confcache <<\_ACEOF
29877  # This file is a shell script that caches the results of configure
29878 @@ -20605,39 +21502,59 @@ _ACEOF
29879  
29880  # The following way of writing the cache mishandles newlines in values,
29881  # but we know of no workaround that is simple, portable, and efficient.
29882 -# So, don't put newlines in cache variables' values.
29883 +# So, we kill variables containing newlines.
29884  # Ultrix sh set writes to stderr and can't be redirected directly,
29885  # and sets the high bit in the cache file unless we assign to the vars.
29886 -{
29887 +(
29888 +  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29889 +    eval ac_val=\$$ac_var
29890 +    case $ac_val in #(
29891 +    *${as_nl}*)
29892 +      case $ac_var in #(
29893 +      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29894 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29895 +      esac
29896 +      case $ac_var in #(
29897 +      _ | IFS | as_nl) ;; #(
29898 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29899 +      *) $as_unset $ac_var ;;
29900 +      esac ;;
29901 +    esac
29902 +  done
29903 +
29904    (set) 2>&1 |
29905 -    case `(ac_space=' '; set | grep ac_space) 2>&1` in
29906 -    *ac_space=\ *)
29907 +    case $as_nl`(ac_space=' '; set) 2>&1` in #(
29908 +    *${as_nl}ac_space=\ *)
29909        # `set' does not quote correctly, so add quotes (double-quote
29910        # substitution turns \\\\ into \\, and sed turns \\ into \).
29911        sed -n \
29912         "s/'/'\\\\''/g;
29913           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29914 -      ;;
29915 +      ;; #(
29916      *)
29917        # `set' quotes correctly as required by POSIX, so do not add quotes.
29918 -      sed -n \
29919 -       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29920 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29921        ;;
29922 -    esac;
29923 -} |
29924 +    esac |
29925 +    sort
29926 +) |
29927    sed '
29928 +     /^ac_cv_env_/b end
29929       t clear
29930 -     : clear
29931 +     :clear
29932       s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29933       t end
29934 -     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29935 -     : end' >>confcache
29936 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
29937 -  if test -w $cache_file; then
29938 -    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29939 +     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29940 +     :end' >>confcache
29941 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29942 +  if test -w "$cache_file"; then
29943 +    test "x$cache_file" != "x/dev/null" &&
29944 +      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29945 +$as_echo "$as_me: updating cache $cache_file" >&6;}
29946      cat confcache >$cache_file
29947    else
29948 -    echo "not updating unwritable cache $cache_file"
29949 +    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29950 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29951    fi
29952  fi
29953  rm -f confcache
29954 @@ -20646,32 +21563,18 @@ test "x$prefix" = xNONE && prefix=$ac_default_prefix
29955  # Let make expand exec_prefix.
29956  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29957  
29958 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
29959 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29960 -# trailing colons and then remove the whole line if VPATH becomes empty
29961 -# (actually we leave an empty line to preserve line numbers).
29962 -if test "x$srcdir" = x.; then
29963 -  ac_vpsub='/^[         ]*VPATH[        ]*=/{
29964 -s/:*\$(srcdir):*/:/;
29965 -s/:*\${srcdir}:*/:/;
29966 -s/:*@srcdir@:*/:/;
29967 -s/^\([^=]*=[    ]*\):*/\1/;
29968 -s/:*$//;
29969 -s/^[^=]*=[      ]*$//;
29970 -}'
29971 -fi
29972 -
29973  DEFS=-DHAVE_CONFIG_H
29974  
29975  ac_libobjs=
29976  ac_ltlibobjs=
29977  for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29978    # 1. Remove the extension, and $U if already installed.
29979 -  ac_i=`echo "$ac_i" |
29980 -        sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29981 -  # 2. Add them.
29982 -  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29983 -  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29984 +  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29985 +  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29986 +  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29987 +  #    will be set to the directory where LIBOBJS objects are built.
29988 +  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29989 +  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29990  done
29991  LIBOBJS=$ac_libobjs
29992  
29993 @@ -20679,47 +21582,48 @@ LTLIBOBJS=$ac_ltlibobjs
29994  
29995  
29996  if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29997 -  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29998 +  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29999  Usually this means the macro was only invoked conditionally." >&5
30000 -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30001 +$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30002  Usually this means the macro was only invoked conditionally." >&2;}
30003     { (exit 1); exit 1; }; }
30004  fi
30005  if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30006 -  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30007 +  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30008  Usually this means the macro was only invoked conditionally." >&5
30009 -echo "$as_me: error: conditional \"AMDEP\" was never defined.
30010 +$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
30011  Usually this means the macro was only invoked conditionally." >&2;}
30012     { (exit 1); exit 1; }; }
30013  fi
30014  if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30015 -  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30016 +  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30017  Usually this means the macro was only invoked conditionally." >&5
30018 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30019 +$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30020  Usually this means the macro was only invoked conditionally." >&2;}
30021     { (exit 1); exit 1; }; }
30022  fi
30023  if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30024 -  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30025 +  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30026  Usually this means the macro was only invoked conditionally." >&5
30027 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30028 +$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30029  Usually this means the macro was only invoked conditionally." >&2;}
30030     { (exit 1); exit 1; }; }
30031  fi
30032  if test -z "${RENAME_TRUE}" && test -z "${RENAME_FALSE}"; then
30033 -  { { echo "$as_me:$LINENO: error: conditional \"RENAME\" was never defined.
30034 +  { { $as_echo "$as_me:$LINENO: error: conditional \"RENAME\" was never defined.
30035  Usually this means the macro was only invoked conditionally." >&5
30036 -echo "$as_me: error: conditional \"RENAME\" was never defined.
30037 +$as_echo "$as_me: error: conditional \"RENAME\" was never defined.
30038  Usually this means the macro was only invoked conditionally." >&2;}
30039     { (exit 1); exit 1; }; }
30040  fi
30041  
30042  : ${CONFIG_STATUS=./config.status}
30043 +ac_write_fail=0
30044  ac_clean_files_save=$ac_clean_files
30045  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30046 -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30047 -echo "$as_me: creating $CONFIG_STATUS" >&6;}
30048 -cat >$CONFIG_STATUS <<_ACEOF
30049 +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30050 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30051 +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30052  #! $SHELL
30053  # Generated by $as_me.
30054  # Run this file to recreate the current configuration.
30055 @@ -20732,22 +21636,78 @@ ac_cs_silent=false
30056  SHELL=\${CONFIG_SHELL-$SHELL}
30057  _ACEOF
30058  
30059 -cat >>$CONFIG_STATUS <<\_ACEOF
30060 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30061  ## --------------------- ##
30062  ## M4sh Initialization.  ##
30063  ## --------------------- ##
30064  
30065 -# Be Bourne compatible
30066 +# Be more Bourne compatible
30067 +DUALCASE=1; export DUALCASE # for MKS sh
30068  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30069    emulate sh
30070    NULLCMD=:
30071 -  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30072 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30073    # is contrary to our usage.  Disable this feature.
30074    alias -g '${1+"$@"}'='"$@"'
30075 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30076 -  set -o posix
30077 +  setopt NO_GLOB_SUBST
30078 +else
30079 +  case `(set -o) 2>/dev/null` in
30080 +  *posix*) set -o posix ;;
30081 +esac
30082 +
30083 +fi
30084 +
30085 +
30086 +
30087 +
30088 +# PATH needs CR
30089 +# Avoid depending upon Character Ranges.
30090 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30091 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30092 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30093 +as_cr_digits='0123456789'
30094 +as_cr_alnum=$as_cr_Letters$as_cr_digits
30095 +
30096 +as_nl='
30097 +'
30098 +export as_nl
30099 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
30100 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30101 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30102 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30103 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30104 +  as_echo='printf %s\n'
30105 +  as_echo_n='printf %s'
30106 +else
30107 +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30108 +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30109 +    as_echo_n='/usr/ucb/echo -n'
30110 +  else
30111 +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30112 +    as_echo_n_body='eval
30113 +      arg=$1;
30114 +      case $arg in
30115 +      *"$as_nl"*)
30116 +       expr "X$arg" : "X\\(.*\\)$as_nl";
30117 +       arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30118 +      esac;
30119 +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30120 +    '
30121 +    export as_echo_n_body
30122 +    as_echo_n='sh -c $as_echo_n_body as_echo'
30123 +  fi
30124 +  export as_echo_body
30125 +  as_echo='sh -c $as_echo_body as_echo'
30126 +fi
30127 +
30128 +# The user is always right.
30129 +if test "${PATH_SEPARATOR+set}" != set; then
30130 +  PATH_SEPARATOR=:
30131 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30132 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30133 +      PATH_SEPARATOR=';'
30134 +  }
30135  fi
30136 -DUALCASE=1; export DUALCASE # for MKS sh
30137  
30138  # Support unset when possible.
30139  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30140 @@ -20757,33 +21717,60 @@ else
30141  fi
30142  
30143  
30144 +# IFS
30145 +# We need space, tab and new line, in precisely that order.  Quoting is
30146 +# there to prevent editors from complaining about space-tab.
30147 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30148 +# splitting by setting IFS to empty value.)
30149 +IFS=" ""       $as_nl"
30150 +
30151 +# Find who we are.  Look in the path if we contain no directory separator.
30152 +case $0 in
30153 +  *[\\/]* ) as_myself=$0 ;;
30154 +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30155 +for as_dir in $PATH
30156 +do
30157 +  IFS=$as_save_IFS
30158 +  test -z "$as_dir" && as_dir=.
30159 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30160 +done
30161 +IFS=$as_save_IFS
30162 +
30163 +     ;;
30164 +esac
30165 +# We did not find ourselves, most probably we were run as `sh COMMAND'
30166 +# in which case we are not to be found in the path.
30167 +if test "x$as_myself" = x; then
30168 +  as_myself=$0
30169 +fi
30170 +if test ! -f "$as_myself"; then
30171 +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30172 +  { (exit 1); exit 1; }
30173 +fi
30174 +
30175  # Work around bugs in pre-3.0 UWIN ksh.
30176 -$as_unset ENV MAIL MAILPATH
30177 +for as_var in ENV MAIL MAILPATH
30178 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30179 +done
30180  PS1='$ '
30181  PS2='> '
30182  PS4='+ '
30183  
30184  # NLS nuisances.
30185 -for as_var in \
30186 -  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30187 -  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30188 -  LC_TELEPHONE LC_TIME
30189 -do
30190 -  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30191 -    eval $as_var=C; export $as_var
30192 -  else
30193 -    $as_unset $as_var
30194 -  fi
30195 -done
30196 +LC_ALL=C
30197 +export LC_ALL
30198 +LANGUAGE=C
30199 +export LANGUAGE
30200  
30201  # Required to use basename.
30202 -if expr a : '\(a\)' >/dev/null 2>&1; then
30203 +if expr a : '\(a\)' >/dev/null 2>&1 &&
30204 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30205    as_expr=expr
30206  else
30207    as_expr=false
30208  fi
30209  
30210 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30211 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30212    as_basename=basename
30213  else
30214    as_basename=false
30215 @@ -20791,159 +21778,122 @@ fi
30216  
30217  
30218  # Name of the executable.
30219 -as_me=`$as_basename "$0" ||
30220 +as_me=`$as_basename -- "$0" ||
30221  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30222          X"$0" : 'X\(//\)$' \| \
30223 -        X"$0" : 'X\(/\)$' \| \
30224 -        .     : '\(.\)' 2>/dev/null ||
30225 -echo X/"$0" |
30226 -    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30227 -         /^X\/\(\/\/\)$/{ s//\1/; q; }
30228 -         /^X\/\(\/\).*/{ s//\1/; q; }
30229 -         s/.*/./; q'`
30230 -
30231 +        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30232 +$as_echo X/"$0" |
30233 +    sed '/^.*\/\([^/][^/]*\)\/*$/{
30234 +           s//\1/
30235 +           q
30236 +         }
30237 +         /^X\/\(\/\/\)$/{
30238 +           s//\1/
30239 +           q
30240 +         }
30241 +         /^X\/\(\/\).*/{
30242 +           s//\1/
30243 +           q
30244 +         }
30245 +         s/.*/./; q'`
30246  
30247 -# PATH needs CR, and LINENO needs CR and PATH.
30248 -# Avoid depending upon Character Ranges.
30249 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30250 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30251 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30252 -as_cr_digits='0123456789'
30253 -as_cr_alnum=$as_cr_Letters$as_cr_digits
30254 +# CDPATH.
30255 +$as_unset CDPATH
30256  
30257 -# The user is always right.
30258 -if test "${PATH_SEPARATOR+set}" != set; then
30259 -  echo "#! /bin/sh" >conf$$.sh
30260 -  echo  "exit 0"   >>conf$$.sh
30261 -  chmod +x conf$$.sh
30262 -  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30263 -    PATH_SEPARATOR=';'
30264 -  else
30265 -    PATH_SEPARATOR=:
30266 -  fi
30267 -  rm -f conf$$.sh
30268 -fi
30269  
30270  
30271    as_lineno_1=$LINENO
30272    as_lineno_2=$LINENO
30273 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30274    test "x$as_lineno_1" != "x$as_lineno_2" &&
30275 -  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30276 -  # Find who we are.  Look in the path if we contain no path at all
30277 -  # relative or not.
30278 -  case $0 in
30279 -    *[\\/]* ) as_myself=$0 ;;
30280 -    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30281 -for as_dir in $PATH
30282 -do
30283 -  IFS=$as_save_IFS
30284 -  test -z "$as_dir" && as_dir=.
30285 -  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30286 -done
30287 -
30288 -       ;;
30289 -  esac
30290 -  # We did not find ourselves, most probably we were run as `sh COMMAND'
30291 -  # in which case we are not to be found in the path.
30292 -  if test "x$as_myself" = x; then
30293 -    as_myself=$0
30294 -  fi
30295 -  if test ! -f "$as_myself"; then
30296 -    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30297 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30298 -   { (exit 1); exit 1; }; }
30299 -  fi
30300 -  case $CONFIG_SHELL in
30301 -  '')
30302 -    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30303 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30304 -do
30305 -  IFS=$as_save_IFS
30306 -  test -z "$as_dir" && as_dir=.
30307 -  for as_base in sh bash ksh sh5; do
30308 -        case $as_dir in
30309 -        /*)
30310 -          if ("$as_dir/$as_base" -c '
30311 -  as_lineno_1=$LINENO
30312 -  as_lineno_2=$LINENO
30313 -  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30314 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
30315 -  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30316 -            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30317 -            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30318 -            CONFIG_SHELL=$as_dir/$as_base
30319 -            export CONFIG_SHELL
30320 -            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30321 -          fi;;
30322 -        esac
30323 -       done
30324 -done
30325 -;;
30326 -  esac
30327 +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30328  
30329    # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30330    # uniformly replaced by the line number.  The first 'sed' inserts a
30331 -  # line-number line before each line; the second 'sed' does the real
30332 -  # work.  The second script uses 'N' to pair each line-number line
30333 -  # with the numbered line, and appends trailing '-' during
30334 -  # substitution so that $LINENO is not a special case at line end.
30335 +  # line-number line after each line using $LINENO; the second 'sed'
30336 +  # does the real work.  The second script uses 'N' to pair each
30337 +  # line-number line with the line containing $LINENO, and appends
30338 +  # trailing '-' during substitution so that $LINENO is not a special
30339 +  # case at line end.
30340    # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30341 -  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30342 -  sed '=' <$as_myself |
30343 +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
30344 +  # E. McMahon (1931-1989) for sed's syntax.  :-)
30345 +  sed -n '
30346 +    p
30347 +    /[$]LINENO/=
30348 +  ' <$as_myself |
30349      sed '
30350 +      s/[$]LINENO.*/&-/
30351 +      t lineno
30352 +      b
30353 +      :lineno
30354        N
30355 -      s,$,-,
30356 -      : loop
30357 -      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30358 +      :loop
30359 +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30360        t loop
30361 -      s,-$,,
30362 -      s,^['$as_cr_digits']*\n,,
30363 +      s/-\n.*//
30364      ' >$as_me.lineno &&
30365 -  chmod +x $as_me.lineno ||
30366 -    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30367 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30368 +  chmod +x "$as_me.lineno" ||
30369 +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30370     { (exit 1); exit 1; }; }
30371  
30372    # Don't try to exec as it changes $[0], causing all sort of problems
30373    # (the dirname of $[0] is not the place where we might find the
30374 -  # original and so on.  Autoconf is especially sensible to this).
30375 -  . ./$as_me.lineno
30376 +  # original and so on.  Autoconf is especially sensitive to this).
30377 +  . "./$as_me.lineno"
30378    # Exit status is that of the last command.
30379    exit
30380  }
30381  
30382  
30383 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30384 -  *c*,-n*) ECHO_N= ECHO_C='
30385 -' ECHO_T='     ' ;;
30386 -  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30387 -  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30388 -esac
30389 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30390 +  as_dirname=dirname
30391 +else
30392 +  as_dirname=false
30393 +fi
30394  
30395 -if expr a : '\(a\)' >/dev/null 2>&1; then
30396 +ECHO_C= ECHO_N= ECHO_T=
30397 +case `echo -n x` in
30398 +-n*)
30399 +  case `echo 'x\c'` in
30400 +  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
30401 +  *)   ECHO_C='\c';;
30402 +  esac;;
30403 +*)
30404 +  ECHO_N='-n';;
30405 +esac
30406 +if expr a : '\(a\)' >/dev/null 2>&1 &&
30407 +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30408    as_expr=expr
30409  else
30410    as_expr=false
30411  fi
30412  
30413  rm -f conf$$ conf$$.exe conf$$.file
30414 -echo >conf$$.file
30415 -if ln -s conf$$.file conf$$ 2>/dev/null; then
30416 -  # We could just check for DJGPP; but this test a) works b) is more generic
30417 -  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30418 -  if test -f conf$$.exe; then
30419 -    # Don't use ln at all; we don't have any links
30420 -    as_ln_s='cp -p'
30421 -  else
30422 +if test -d conf$$.dir; then
30423 +  rm -f conf$$.dir/conf$$.file
30424 +else
30425 +  rm -f conf$$.dir
30426 +  mkdir conf$$.dir 2>/dev/null
30427 +fi
30428 +if (echo >conf$$.file) 2>/dev/null; then
30429 +  if ln -s conf$$.file conf$$ 2>/dev/null; then
30430      as_ln_s='ln -s'
30431 +    # ... but there are two gotchas:
30432 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30433 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30434 +    # In both cases, we have to default to `cp -p'.
30435 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30436 +      as_ln_s='cp -p'
30437 +  elif ln conf$$.file conf$$ 2>/dev/null; then
30438 +    as_ln_s=ln
30439 +  else
30440 +    as_ln_s='cp -p'
30441    fi
30442 -elif ln conf$$.file conf$$ 2>/dev/null; then
30443 -  as_ln_s=ln
30444  else
30445    as_ln_s='cp -p'
30446  fi
30447 -rm -f conf$$ conf$$.exe conf$$.file
30448 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30449 +rmdir conf$$.dir 2>/dev/null
30450  
30451  if mkdir -p . 2>/dev/null; then
30452    as_mkdir_p=:
30453 @@ -20952,7 +21902,28 @@ else
30454    as_mkdir_p=false
30455  fi
30456  
30457 -as_executable_p="test -f"
30458 +if test -x / >/dev/null 2>&1; then
30459 +  as_test_x='test -x'
30460 +else
30461 +  if ls -dL / >/dev/null 2>&1; then
30462 +    as_ls_L_option=L
30463 +  else
30464 +    as_ls_L_option=
30465 +  fi
30466 +  as_test_x='
30467 +    eval sh -c '\''
30468 +      if test -d "$1"; then
30469 +       test -d "$1/.";
30470 +      else
30471 +       case $1 in
30472 +       -*)set "./$1";;
30473 +       esac;
30474 +       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30475 +       ???[sx]*):;;*)false;;esac;fi
30476 +    '\'' sh
30477 +  '
30478 +fi
30479 +as_executable_p=$as_test_x
30480  
30481  # Sed expression to map a string onto a valid CPP name.
30482  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30483 @@ -20961,31 +21932,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30484  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30485  
30486  
30487 -# IFS
30488 -# We need space, tab and new line, in precisely that order.
30489 -as_nl='
30490 -'
30491 -IFS="  $as_nl"
30492 -
30493 -# CDPATH.
30494 -$as_unset CDPATH
30495 -
30496  exec 6>&1
30497  
30498 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
30499 +# Save the log message, to keep $[0] and so on meaningful, and to
30500  # report actual input values of CONFIG_FILES etc. instead of their
30501 -# values after options handling.  Logging --version etc. is OK.
30502 -exec 5>>config.log
30503 -{
30504 -  echo
30505 -  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30506 -## Running $as_me. ##
30507 -_ASBOX
30508 -} >&5
30509 -cat >&5 <<_CSEOF
30510 -
30511 +# values after options handling.
30512 +ac_log="
30513  This file was extended by $as_me, which was
30514 -generated by GNU Autoconf 2.59.  Invocation command line was
30515 +generated by GNU Autoconf 2.63.  Invocation command line was
30516  
30517    CONFIG_FILES    = $CONFIG_FILES
30518    CONFIG_HEADERS  = $CONFIG_HEADERS
30519 @@ -20993,45 +21947,45 @@ generated by GNU Autoconf 2.59.  Invocation command line was
30520    CONFIG_COMMANDS = $CONFIG_COMMANDS
30521    $ $0 $@
30522  
30523 -_CSEOF
30524 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30525 -echo >&5
30526 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
30527 +"
30528 +
30529  _ACEOF
30530  
30531 -# Files that config.status was made for.
30532 -if test -n "$ac_config_files"; then
30533 -  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30534 -fi
30535 +case $ac_config_files in *"
30536 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
30537 +esac
30538  
30539 -if test -n "$ac_config_headers"; then
30540 -  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30541 -fi
30542 +case $ac_config_headers in *"
30543 +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30544 +esac
30545  
30546 -if test -n "$ac_config_links"; then
30547 -  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30548 -fi
30549  
30550 -if test -n "$ac_config_commands"; then
30551 -  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30552 -fi
30553 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30554 +# Files that config.status was made for.
30555 +config_files="$ac_config_files"
30556 +config_headers="$ac_config_headers"
30557 +config_commands="$ac_config_commands"
30558  
30559 -cat >>$CONFIG_STATUS <<\_ACEOF
30560 +_ACEOF
30561  
30562 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30563  ac_cs_usage="\
30564  \`$as_me' instantiates files from templates according to the
30565  current configuration.
30566  
30567 -Usage: $0 [OPTIONS] [FILE]...
30568 +Usage: $0 [OPTION]... [FILE]...
30569  
30570    -h, --help       print this help, then exit
30571 -  -V, --version    print version number, then exit
30572 -  -q, --quiet      do not print progress messages
30573 +  -V, --version    print version number and configuration settings, then exit
30574 +  -q, --quiet, --silent
30575 +                   do not print progress messages
30576    -d, --debug      don't remove temporary files
30577        --recheck    update $as_me by reconfiguring in the same conditions
30578 -  --file=FILE[:TEMPLATE]
30579 -                  instantiate the configuration file FILE
30580 -  --header=FILE[:TEMPLATE]
30581 -                  instantiate the configuration header FILE
30582 +      --file=FILE[:TEMPLATE]
30583 +                   instantiate the configuration file FILE
30584 +      --header=FILE[:TEMPLATE]
30585 +                   instantiate the configuration header FILE
30586  
30587  Configuration files:
30588  $config_files
30589 @@ -21043,83 +21997,83 @@ Configuration commands:
30590  $config_commands
30591  
30592  Report bugs to <bug-autoconf@gnu.org>."
30593 -_ACEOF
30594  
30595 -cat >>$CONFIG_STATUS <<_ACEOF
30596 +_ACEOF
30597 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30598  ac_cs_version="\\
30599  config.status
30600 -configured by $0, generated by GNU Autoconf 2.59,
30601 -  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30602 +configured by $0, generated by GNU Autoconf 2.63,
30603 +  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30604  
30605 -Copyright (C) 2003 Free Software Foundation, Inc.
30606 +Copyright (C) 2008 Free Software Foundation, Inc.
30607  This config.status script is free software; the Free Software Foundation
30608  gives unlimited permission to copy, distribute and modify it."
30609 -srcdir=$srcdir
30610 -INSTALL="$INSTALL"
30611 +
30612 +ac_pwd='$ac_pwd'
30613 +srcdir='$srcdir'
30614 +INSTALL='$INSTALL'
30615 +AWK='$AWK'
30616 +test -n "\$AWK" || AWK=awk
30617  _ACEOF
30618  
30619 -cat >>$CONFIG_STATUS <<\_ACEOF
30620 -# If no file are specified by the user, then we need to provide default
30621 -# value.  By we need to know if files were specified by the user.
30622 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30623 +# The default lists apply if the user does not specify any file.
30624  ac_need_defaults=:
30625  while test $# != 0
30626  do
30627    case $1 in
30628    --*=*)
30629 -    ac_option=`expr "x$1" : 'x\([^=]*\)='`
30630 -    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30631 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30632 +    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30633      ac_shift=:
30634      ;;
30635 -  -*)
30636 +  *)
30637      ac_option=$1
30638      ac_optarg=$2
30639      ac_shift=shift
30640      ;;
30641 -  *) # This is not an option, so the user has probably given explicit
30642 -     # arguments.
30643 -     ac_option=$1
30644 -     ac_need_defaults=false;;
30645    esac
30646  
30647    case $ac_option in
30648    # Handling of the options.
30649 -_ACEOF
30650 -cat >>$CONFIG_STATUS <<\_ACEOF
30651    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30652      ac_cs_recheck=: ;;
30653 -  --version | --vers* | -V )
30654 -    echo "$ac_cs_version"; exit 0 ;;
30655 -  --he | --h)
30656 -    # Conflict between --help and --header
30657 -    { { echo "$as_me:$LINENO: error: ambiguous option: $1
30658 -Try \`$0 --help' for more information." >&5
30659 -echo "$as_me: error: ambiguous option: $1
30660 -Try \`$0 --help' for more information." >&2;}
30661 -   { (exit 1); exit 1; }; };;
30662 -  --help | --hel | -h )
30663 -    echo "$ac_cs_usage"; exit 0 ;;
30664 -  --debug | --d* | -d )
30665 +  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30666 +    $as_echo "$ac_cs_version"; exit ;;
30667 +  --debug | --debu | --deb | --de | --d | -d )
30668      debug=: ;;
30669    --file | --fil | --fi | --f )
30670      $ac_shift
30671 -    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30672 +    case $ac_optarg in
30673 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30674 +    esac
30675 +    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30676      ac_need_defaults=false;;
30677    --header | --heade | --head | --hea )
30678      $ac_shift
30679 -    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30680 +    case $ac_optarg in
30681 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30682 +    esac
30683 +    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30684      ac_need_defaults=false;;
30685 +  --he | --h)
30686 +    # Conflict between --help and --header
30687 +    { $as_echo "$as_me: error: ambiguous option: $1
30688 +Try \`$0 --help' for more information." >&2
30689 +   { (exit 1); exit 1; }; };;
30690 +  --help | --hel | -h )
30691 +    $as_echo "$ac_cs_usage"; exit ;;
30692    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30693    | -silent | --silent | --silen | --sile | --sil | --si | --s)
30694      ac_cs_silent=: ;;
30695  
30696    # This is an error.
30697 -  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30698 -Try \`$0 --help' for more information." >&5
30699 -echo "$as_me: error: unrecognized option: $1
30700 -Try \`$0 --help' for more information." >&2;}
30701 +  -*) { $as_echo "$as_me: error: unrecognized option: $1
30702 +Try \`$0 --help' for more information." >&2
30703     { (exit 1); exit 1; }; } ;;
30704  
30705 -  *) ac_config_targets="$ac_config_targets $1" ;;
30706 +  *) ac_config_targets="$ac_config_targets $1"
30707 +     ac_need_defaults=false ;;
30708  
30709    esac
30710    shift
30711 @@ -21133,41 +22087,55 @@ if $ac_cs_silent; then
30712  fi
30713  
30714  _ACEOF
30715 -cat >>$CONFIG_STATUS <<_ACEOF
30716 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30717  if \$ac_cs_recheck; then
30718 -  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30719 -  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30720 +  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30721 +  shift
30722 +  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30723 +  CONFIG_SHELL='$SHELL'
30724 +  export CONFIG_SHELL
30725 +  exec "\$@"
30726  fi
30727  
30728  _ACEOF
30729 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30730 +exec 5>>config.log
30731 +{
30732 +  echo
30733 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30734 +## Running $as_me. ##
30735 +_ASBOX
30736 +  $as_echo "$ac_log"
30737 +} >&5
30738  
30739 -cat >>$CONFIG_STATUS <<_ACEOF
30740 +_ACEOF
30741 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30742  #
30743 -# INIT-COMMANDS section.
30744 +# INIT-COMMANDS
30745  #
30746 -
30747  AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30748  
30749  _ACEOF
30750  
30751 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30752  
30753 -
30754 -cat >>$CONFIG_STATUS <<\_ACEOF
30755 +# Handling of arguments.
30756  for ac_config_target in $ac_config_targets
30757  do
30758 -  case "$ac_config_target" in
30759 -  # Handling of arguments.
30760 -  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30761 -  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30762 -  "src/version.c" ) CONFIG_FILES="$CONFIG_FILES src/version.c" ;;
30763 -  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30764 -  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30765 -  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30766 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30767 +  case $ac_config_target in
30768 +    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30769 +    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30770 +    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30771 +    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30772 +    "src/version.c") CONFIG_FILES="$CONFIG_FILES src/version.c" ;;
30773 +
30774 +  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30775 +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30776     { (exit 1); exit 1; }; };;
30777    esac
30778  done
30779  
30780 +
30781  # If the user did not use the arguments to specify the items to instantiate,
30782  # then the envvar interface is used.  Set only those that are not.
30783  # We use the long form for the default assignment because of an extremely
30784 @@ -21179,750 +22147,635 @@ if $ac_need_defaults; then
30785  fi
30786  
30787  # Have a temporary directory for convenience.  Make it in the build tree
30788 -# simply because there is no reason to put it here, and in addition,
30789 +# simply because there is no reason against having it here, and in addition,
30790  # creating and moving files from /tmp can sometimes cause problems.
30791 -# Create a temporary directory, and hook for its removal unless debugging.
30792 +# Hook for its removal unless debugging.
30793 +# Note that there is a small window in which the directory will not be cleaned:
30794 +# after its creation but before its name has been assigned to `$tmp'.
30795  $debug ||
30796  {
30797 -  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30798 +  tmp=
30799 +  trap 'exit_status=$?
30800 +  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30801 +' 0
30802    trap '{ (exit 1); exit 1; }' 1 2 13 15
30803  }
30804 -
30805  # Create a (secure) tmp directory for tmp files.
30806  
30807  {
30808 -  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30809 +  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30810    test -n "$tmp" && test -d "$tmp"
30811  }  ||
30812  {
30813 -  tmp=./confstat$$-$RANDOM
30814 -  (umask 077 && mkdir $tmp)
30815 +  tmp=./conf$$-$RANDOM
30816 +  (umask 077 && mkdir "$tmp")
30817  } ||
30818  {
30819 -   echo "$me: cannot create a temporary directory in ." >&2
30820 +   $as_echo "$as_me: cannot create a temporary directory in ." >&2
30821     { (exit 1); exit 1; }
30822  }
30823  
30824 +# Set up the scripts for CONFIG_FILES section.
30825 +# No need to generate them if there are no CONFIG_FILES.
30826 +# This happens for instance with `./config.status config.h'.
30827 +if test -n "$CONFIG_FILES"; then
30828 +
30829 +
30830 +ac_cr='\r'
30831 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30832 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30833 +  ac_cs_awk_cr='\\r'
30834 +else
30835 +  ac_cs_awk_cr=$ac_cr
30836 +fi
30837 +
30838 +echo 'BEGIN {' >"$tmp/subs1.awk" &&
30839  _ACEOF
30840  
30841 -cat >>$CONFIG_STATUS <<_ACEOF
30842  
30843 -#
30844 -# CONFIG_FILES section.
30845 -#
30846 +{
30847 +  echo "cat >conf$$subs.awk <<_ACEOF" &&
30848 +  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30849 +  echo "_ACEOF"
30850 +} >conf$$subs.sh ||
30851 +  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30852 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30853 +   { (exit 1); exit 1; }; }
30854 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30855 +ac_delim='%!_!# '
30856 +for ac_last_try in false false false false false :; do
30857 +  . ./conf$$subs.sh ||
30858 +    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30859 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30860 +   { (exit 1); exit 1; }; }
30861  
30862 -# No need to generate the scripts if there are no CONFIG_FILES.
30863 -# This happens for instance when ./config.status config.h
30864 -if test -n "\$CONFIG_FILES"; then
30865 -  # Protect against being on the right side of a sed subst in config.status.
30866 -  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30867 -   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30868 -s,@SHELL@,$SHELL,;t t
30869 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30870 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30871 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30872 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30873 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30874 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30875 -s,@exec_prefix@,$exec_prefix,;t t
30876 -s,@prefix@,$prefix,;t t
30877 -s,@program_transform_name@,$program_transform_name,;t t
30878 -s,@bindir@,$bindir,;t t
30879 -s,@sbindir@,$sbindir,;t t
30880 -s,@libexecdir@,$libexecdir,;t t
30881 -s,@datadir@,$datadir,;t t
30882 -s,@sysconfdir@,$sysconfdir,;t t
30883 -s,@sharedstatedir@,$sharedstatedir,;t t
30884 -s,@localstatedir@,$localstatedir,;t t
30885 -s,@libdir@,$libdir,;t t
30886 -s,@includedir@,$includedir,;t t
30887 -s,@oldincludedir@,$oldincludedir,;t t
30888 -s,@infodir@,$infodir,;t t
30889 -s,@mandir@,$mandir,;t t
30890 -s,@build_alias@,$build_alias,;t t
30891 -s,@host_alias@,$host_alias,;t t
30892 -s,@target_alias@,$target_alias,;t t
30893 -s,@DEFS@,$DEFS,;t t
30894 -s,@ECHO_C@,$ECHO_C,;t t
30895 -s,@ECHO_N@,$ECHO_N,;t t
30896 -s,@ECHO_T@,$ECHO_T,;t t
30897 -s,@LIBS@,$LIBS,;t t
30898 -s,@build@,$build,;t t
30899 -s,@build_cpu@,$build_cpu,;t t
30900 -s,@build_vendor@,$build_vendor,;t t
30901 -s,@build_os@,$build_os,;t t
30902 -s,@host@,$host,;t t
30903 -s,@host_cpu@,$host_cpu,;t t
30904 -s,@host_vendor@,$host_vendor,;t t
30905 -s,@host_os@,$host_os,;t t
30906 -s,@target@,$target,;t t
30907 -s,@target_cpu@,$target_cpu,;t t
30908 -s,@target_vendor@,$target_vendor,;t t
30909 -s,@target_os@,$target_os,;t t
30910 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30911 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30912 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30913 -s,@CYGPATH_W@,$CYGPATH_W,;t t
30914 -s,@PACKAGE@,$PACKAGE,;t t
30915 -s,@VERSION@,$VERSION,;t t
30916 -s,@ACLOCAL@,$ACLOCAL,;t t
30917 -s,@AUTOCONF@,$AUTOCONF,;t t
30918 -s,@AUTOMAKE@,$AUTOMAKE,;t t
30919 -s,@AUTOHEADER@,$AUTOHEADER,;t t
30920 -s,@MAKEINFO@,$MAKEINFO,;t t
30921 -s,@install_sh@,$install_sh,;t t
30922 -s,@STRIP@,$STRIP,;t t
30923 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30924 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
30925 -s,@mkdir_p@,$mkdir_p,;t t
30926 -s,@AWK@,$AWK,;t t
30927 -s,@SET_MAKE@,$SET_MAKE,;t t
30928 -s,@am__leading_dot@,$am__leading_dot,;t t
30929 -s,@AMTAR@,$AMTAR,;t t
30930 -s,@am__tar@,$am__tar,;t t
30931 -s,@am__untar@,$am__untar,;t t
30932 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
30933 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
30934 -s,@MAINT@,$MAINT,;t t
30935 -s,@CC@,$CC,;t t
30936 -s,@CFLAGS@,$CFLAGS,;t t
30937 -s,@LDFLAGS@,$LDFLAGS,;t t
30938 -s,@CPPFLAGS@,$CPPFLAGS,;t t
30939 -s,@ac_ct_CC@,$ac_ct_CC,;t t
30940 -s,@EXEEXT@,$EXEEXT,;t t
30941 -s,@OBJEXT@,$OBJEXT,;t t
30942 -s,@DEPDIR@,$DEPDIR,;t t
30943 -s,@am__include@,$am__include,;t t
30944 -s,@am__quote@,$am__quote,;t t
30945 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
30946 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
30947 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
30948 -s,@CCDEPMODE@,$CCDEPMODE,;t t
30949 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
30950 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
30951 -s,@EGREP@,$EGREP,;t t
30952 -s,@LN_S@,$LN_S,;t t
30953 -s,@ECHO@,$ECHO,;t t
30954 -s,@AR@,$AR,;t t
30955 -s,@ac_ct_AR@,$ac_ct_AR,;t t
30956 -s,@RANLIB@,$RANLIB,;t t
30957 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30958 -s,@CPP@,$CPP,;t t
30959 -s,@CXX@,$CXX,;t t
30960 -s,@CXXFLAGS@,$CXXFLAGS,;t t
30961 -s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30962 -s,@CXXDEPMODE@,$CXXDEPMODE,;t t
30963 -s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
30964 -s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
30965 -s,@CXXCPP@,$CXXCPP,;t t
30966 -s,@F77@,$F77,;t t
30967 -s,@FFLAGS@,$FFLAGS,;t t
30968 -s,@ac_ct_F77@,$ac_ct_F77,;t t
30969 -s,@LIBTOOL@,$LIBTOOL,;t t
30970 -s,@RENAME_TRUE@,$RENAME_TRUE,;t t
30971 -s,@RENAME_FALSE@,$RENAME_FALSE,;t t
30972 -s,@LIBVER@,$LIBVER,;t t
30973 -s,@OS@,$OS,;t t
30974 -s,@LIBOBJS@,$LIBOBJS,;t t
30975 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30976 -CEOF
30977 +  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30978 +  if test $ac_delim_n = $ac_delim_num; then
30979 +    break
30980 +  elif $ac_last_try; then
30981 +    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30982 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30983 +   { (exit 1); exit 1; }; }
30984 +  else
30985 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30986 +  fi
30987 +done
30988 +rm -f conf$$subs.sh
30989  
30990 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30991 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30992  _ACEOF
30993 +sed -n '
30994 +h
30995 +s/^/S["/; s/!.*/"]=/
30996 +p
30997 +g
30998 +s/^[^!]*!//
30999 +:repl
31000 +t repl
31001 +s/'"$ac_delim"'$//
31002 +t delim
31003 +:nl
31004 +h
31005 +s/\(.\{148\}\).*/\1/
31006 +t more1
31007 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31008 +p
31009 +n
31010 +b repl
31011 +:more1
31012 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31013 +p
31014 +g
31015 +s/.\{148\}//
31016 +t nl
31017 +:delim
31018 +h
31019 +s/\(.\{148\}\).*/\1/
31020 +t more2
31021 +s/["\\]/\\&/g; s/^/"/; s/$/"/
31022 +p
31023 +b
31024 +:more2
31025 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31026 +p
31027 +g
31028 +s/.\{148\}//
31029 +t delim
31030 +' <conf$$subs.awk | sed '
31031 +/^[^""]/{
31032 +  N
31033 +  s/\n//
31034 +}
31035 +' >>$CONFIG_STATUS || ac_write_fail=1
31036 +rm -f conf$$subs.awk
31037 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31038 +_ACAWK
31039 +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31040 +  for (key in S) S_is_set[key] = 1
31041 +  FS = "\a"
31042  
31043 -  cat >>$CONFIG_STATUS <<\_ACEOF
31044 -  # Split the substitutions into bite-sized pieces for seds with
31045 -  # small command number limits, like on Digital OSF/1 and HP-UX.
31046 -  ac_max_sed_lines=48
31047 -  ac_sed_frag=1 # Number of current file.
31048 -  ac_beg=1 # First line for current file.
31049 -  ac_end=$ac_max_sed_lines # Line after last line for current file.
31050 -  ac_more_lines=:
31051 -  ac_sed_cmds=
31052 -  while $ac_more_lines; do
31053 -    if test $ac_beg -gt 1; then
31054 -      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31055 -    else
31056 -      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31057 -    fi
31058 -    if test ! -s $tmp/subs.frag; then
31059 -      ac_more_lines=false
31060 -    else
31061 -      # The purpose of the label and of the branching condition is to
31062 -      # speed up the sed processing (if there are no `@' at all, there
31063 -      # is no need to browse any of the substitutions).
31064 -      # These are the two extra sed commands mentioned above.
31065 -      (echo ':t
31066 -  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31067 -      if test -z "$ac_sed_cmds"; then
31068 -       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31069 -      else
31070 -       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31071 -      fi
31072 -      ac_sed_frag=`expr $ac_sed_frag + 1`
31073 -      ac_beg=$ac_end
31074 -      ac_end=`expr $ac_end + $ac_max_sed_lines`
31075 -    fi
31076 -  done
31077 -  if test -z "$ac_sed_cmds"; then
31078 -    ac_sed_cmds=cat
31079 -  fi
31080 +}
31081 +{
31082 +  line = $ 0
31083 +  nfields = split(line, field, "@")
31084 +  substed = 0
31085 +  len = length(field[1])
31086 +  for (i = 2; i < nfields; i++) {
31087 +    key = field[i]
31088 +    keylen = length(key)
31089 +    if (S_is_set[key]) {
31090 +      value = S[key]
31091 +      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31092 +      len += length(value) + length(field[++i])
31093 +      substed = 1
31094 +    } else
31095 +      len += 1 + keylen
31096 +  }
31097 +
31098 +  print line
31099 +}
31100 +
31101 +_ACAWK
31102 +_ACEOF
31103 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31104 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31105 +  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31106 +else
31107 +  cat
31108 +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31109 +  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31110 +$as_echo "$as_me: error: could not setup config files machinery" >&2;}
31111 +   { (exit 1); exit 1; }; }
31112 +_ACEOF
31113 +
31114 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
31115 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31116 +# trailing colons and then remove the whole line if VPATH becomes empty
31117 +# (actually we leave an empty line to preserve line numbers).
31118 +if test "x$srcdir" = x.; then
31119 +  ac_vpsub='/^[         ]*VPATH[        ]*=/{
31120 +s/:*\$(srcdir):*/:/
31121 +s/:*\${srcdir}:*/:/
31122 +s/:*@srcdir@:*/:/
31123 +s/^\([^=]*=[    ]*\):*/\1/
31124 +s/:*$//
31125 +s/^[^=]*=[      ]*$//
31126 +}'
31127 +fi
31128 +
31129 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31130  fi # test -n "$CONFIG_FILES"
31131  
31132 +# Set up the scripts for CONFIG_HEADERS section.
31133 +# No need to generate them if there are no CONFIG_HEADERS.
31134 +# This happens for instance with `./config.status Makefile'.
31135 +if test -n "$CONFIG_HEADERS"; then
31136 +cat >"$tmp/defines.awk" <<\_ACAWK ||
31137 +BEGIN {
31138  _ACEOF
31139 -cat >>$CONFIG_STATUS <<\_ACEOF
31140 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31141 -  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31142 -  case $ac_file in
31143 -  - | *:- | *:-:* ) # input from stdin
31144 -       cat >$tmp/stdin
31145 -       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31146 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31147 -  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31148 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31149 -  * )   ac_file_in=$ac_file.in ;;
31150 +
31151 +# Transform confdefs.h into an awk script `defines.awk', embedded as
31152 +# here-document in config.status, that substitutes the proper values into
31153 +# config.h.in to produce config.h.
31154 +
31155 +# Create a delimiter string that does not exist in confdefs.h, to ease
31156 +# handling of long lines.
31157 +ac_delim='%!_!# '
31158 +for ac_last_try in false false :; do
31159 +  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31160 +  if test -z "$ac_t"; then
31161 +    break
31162 +  elif $ac_last_try; then
31163 +    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31164 +$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31165 +   { (exit 1); exit 1; }; }
31166 +  else
31167 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31168 +  fi
31169 +done
31170 +
31171 +# For the awk script, D is an array of macro values keyed by name,
31172 +# likewise P contains macro parameters if any.  Preserve backslash
31173 +# newline sequences.
31174 +
31175 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31176 +sed -n '
31177 +s/.\{148\}/&'"$ac_delim"'/g
31178 +t rset
31179 +:rset
31180 +s/^[    ]*#[    ]*define[       ][      ]*/ /
31181 +t def
31182 +d
31183 +:def
31184 +s/\\$//
31185 +t bsnl
31186 +s/["\\]/\\&/g
31187 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
31188 +D["\1"]=" \3"/p
31189 +s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2"/p
31190 +d
31191 +:bsnl
31192 +s/["\\]/\\&/g
31193 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
31194 +D["\1"]=" \3\\\\\\n"\\/p
31195 +t cont
31196 +s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31197 +t cont
31198 +d
31199 +:cont
31200 +n
31201 +s/.\{148\}/&'"$ac_delim"'/g
31202 +t clear
31203 +:clear
31204 +s/\\$//
31205 +t bsnlc
31206 +s/["\\]/\\&/g; s/^/"/; s/$/"/p
31207 +d
31208 +:bsnlc
31209 +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31210 +b cont
31211 +' <confdefs.h | sed '
31212 +s/'"$ac_delim"'/"\\\
31213 +"/g' >>$CONFIG_STATUS || ac_write_fail=1
31214 +
31215 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31216 +  for (key in D) D_is_set[key] = 1
31217 +  FS = "\a"
31218 +}
31219 +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31220 +  line = \$ 0
31221 +  split(line, arg, " ")
31222 +  if (arg[1] == "#") {
31223 +    defundef = arg[2]
31224 +    mac1 = arg[3]
31225 +  } else {
31226 +    defundef = substr(arg[1], 2)
31227 +    mac1 = arg[2]
31228 +  }
31229 +  split(mac1, mac2, "(") #)
31230 +  macro = mac2[1]
31231 +  prefix = substr(line, 1, index(line, defundef) - 1)
31232 +  if (D_is_set[macro]) {
31233 +    # Preserve the white space surrounding the "#".
31234 +    print prefix "define", macro P[macro] D[macro]
31235 +    next
31236 +  } else {
31237 +    # Replace #undef with comments.  This is necessary, for example,
31238 +    # in the case of _POSIX_SOURCE, which is predefined and required
31239 +    # on some systems where configure will not decide to define it.
31240 +    if (defundef == "undef") {
31241 +      print "/*", prefix defundef, macro, "*/"
31242 +      next
31243 +    }
31244 +  }
31245 +}
31246 +{ print }
31247 +_ACAWK
31248 +_ACEOF
31249 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31250 +  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31251 +$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31252 +   { (exit 1); exit 1; }; }
31253 +fi # test -n "$CONFIG_HEADERS"
31254 +
31255 +
31256 +eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31257 +shift
31258 +for ac_tag
31259 +do
31260 +  case $ac_tag in
31261 +  :[FHLC]) ac_mode=$ac_tag; continue;;
31262 +  esac
31263 +  case $ac_mode$ac_tag in
31264 +  :[FHL]*:*);;
31265 +  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31266 +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31267 +   { (exit 1); exit 1; }; };;
31268 +  :[FH]-) ac_tag=-:-;;
31269 +  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31270 +  esac
31271 +  ac_save_IFS=$IFS
31272 +  IFS=:
31273 +  set x $ac_tag
31274 +  IFS=$ac_save_IFS
31275 +  shift
31276 +  ac_file=$1
31277 +  shift
31278 +
31279 +  case $ac_mode in
31280 +  :L) ac_source=$1;;
31281 +  :[FH])
31282 +    ac_file_inputs=
31283 +    for ac_f
31284 +    do
31285 +      case $ac_f in
31286 +      -) ac_f="$tmp/stdin";;
31287 +      *) # Look for the file first in the build tree, then in the source tree
31288 +        # (if the path is not absolute).  The absolute path cannot be DOS-style,
31289 +        # because $ac_f cannot contain `:'.
31290 +        test -f "$ac_f" ||
31291 +          case $ac_f in
31292 +          [\\/$]*) false;;
31293 +          *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31294 +          esac ||
31295 +          { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31296 +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31297 +   { (exit 1); exit 1; }; };;
31298 +      esac
31299 +      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31300 +      ac_file_inputs="$ac_file_inputs '$ac_f'"
31301 +    done
31302 +
31303 +    # Let's still pretend it is `configure' which instantiates (i.e., don't
31304 +    # use $as_me), people would be surprised to read:
31305 +    #    /* config.h.  Generated by config.status.  */
31306 +    configure_input='Generated from '`
31307 +         $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31308 +       `' by configure.'
31309 +    if test x"$ac_file" != x-; then
31310 +      configure_input="$ac_file.  $configure_input"
31311 +      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31312 +$as_echo "$as_me: creating $ac_file" >&6;}
31313 +    fi
31314 +    # Neutralize special characters interpreted by sed in replacement strings.
31315 +    case $configure_input in #(
31316 +    *\&* | *\|* | *\\* )
31317 +       ac_sed_conf_input=`$as_echo "$configure_input" |
31318 +       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31319 +    *) ac_sed_conf_input=$configure_input;;
31320 +    esac
31321 +
31322 +    case $ac_tag in
31323 +    *:-:* | *:-) cat >"$tmp/stdin" \
31324 +      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31325 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31326 +   { (exit 1); exit 1; }; } ;;
31327 +    esac
31328 +    ;;
31329    esac
31330  
31331 -  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31332 -  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31333 +  ac_dir=`$as_dirname -- "$ac_file" ||
31334  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31335          X"$ac_file" : 'X\(//\)[^/]' \| \
31336          X"$ac_file" : 'X\(//\)$' \| \
31337 -        X"$ac_file" : 'X\(/\)' \| \
31338 -        .     : '\(.\)' 2>/dev/null ||
31339 -echo X"$ac_file" |
31340 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31341 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31342 -         /^X\(\/\/\)$/{ s//\1/; q; }
31343 -         /^X\(\/\).*/{ s//\1/; q; }
31344 -         s/.*/./; q'`
31345 -  { if $as_mkdir_p; then
31346 -    mkdir -p "$ac_dir"
31347 -  else
31348 -    as_dir="$ac_dir"
31349 +        X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31350 +$as_echo X"$ac_file" |
31351 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31352 +           s//\1/
31353 +           q
31354 +         }
31355 +         /^X\(\/\/\)[^/].*/{
31356 +           s//\1/
31357 +           q
31358 +         }
31359 +         /^X\(\/\/\)$/{
31360 +           s//\1/
31361 +           q
31362 +         }
31363 +         /^X\(\/\).*/{
31364 +           s//\1/
31365 +           q
31366 +         }
31367 +         s/.*/./; q'`
31368 +  { as_dir="$ac_dir"
31369 +  case $as_dir in #(
31370 +  -*) as_dir=./$as_dir;;
31371 +  esac
31372 +  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31373      as_dirs=
31374 -    while test ! -d "$as_dir"; do
31375 -      as_dirs="$as_dir $as_dirs"
31376 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31377 +    while :; do
31378 +      case $as_dir in #(
31379 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31380 +      *) as_qdir=$as_dir;;
31381 +      esac
31382 +      as_dirs="'$as_qdir' $as_dirs"
31383 +      as_dir=`$as_dirname -- "$as_dir" ||
31384  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31385          X"$as_dir" : 'X\(//\)[^/]' \| \
31386          X"$as_dir" : 'X\(//\)$' \| \
31387 -        X"$as_dir" : 'X\(/\)' \| \
31388 -        .     : '\(.\)' 2>/dev/null ||
31389 -echo X"$as_dir" |
31390 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31391 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31392 -         /^X\(\/\/\)$/{ s//\1/; q; }
31393 -         /^X\(\/\).*/{ s//\1/; q; }
31394 -         s/.*/./; q'`
31395 +        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31396 +$as_echo X"$as_dir" |
31397 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31398 +           s//\1/
31399 +           q
31400 +         }
31401 +         /^X\(\/\/\)[^/].*/{
31402 +           s//\1/
31403 +           q
31404 +         }
31405 +         /^X\(\/\/\)$/{
31406 +           s//\1/
31407 +           q
31408 +         }
31409 +         /^X\(\/\).*/{
31410 +           s//\1/
31411 +           q
31412 +         }
31413 +         s/.*/./; q'`
31414 +      test -d "$as_dir" && break
31415      done
31416 -    test ! -n "$as_dirs" || mkdir $as_dirs
31417 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31418 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31419 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
31420 +  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31421 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31422     { (exit 1); exit 1; }; }; }
31423 -
31424    ac_builddir=.
31425  
31426 -if test "$ac_dir" != .; then
31427 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31428 -  # A "../" for each directory in $ac_dir_suffix.
31429 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31430 -else
31431 -  ac_dir_suffix= ac_top_builddir=
31432 -fi
31433 +case "$ac_dir" in
31434 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31435 +*)
31436 +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31437 +  # A ".." for each directory in $ac_dir_suffix.
31438 +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31439 +  case $ac_top_builddir_sub in
31440 +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31441 +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31442 +  esac ;;
31443 +esac
31444 +ac_abs_top_builddir=$ac_pwd
31445 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
31446 +# for backward compatibility:
31447 +ac_top_builddir=$ac_top_build_prefix
31448  
31449  case $srcdir in
31450 -  .)  # No --srcdir option.  We are building in place.
31451 +  .)  # We are building in place.
31452      ac_srcdir=.
31453 -    if test -z "$ac_top_builddir"; then
31454 -       ac_top_srcdir=.
31455 -    else
31456 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31457 -    fi ;;
31458 -  [\\/]* | ?:[\\/]* )  # Absolute path.
31459 +    ac_top_srcdir=$ac_top_builddir_sub
31460 +    ac_abs_top_srcdir=$ac_pwd ;;
31461 +  [\\/]* | ?:[\\/]* )  # Absolute name.
31462      ac_srcdir=$srcdir$ac_dir_suffix;
31463 -    ac_top_srcdir=$srcdir ;;
31464 -  *) # Relative path.
31465 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31466 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31467 +    ac_top_srcdir=$srcdir
31468 +    ac_abs_top_srcdir=$srcdir ;;
31469 +  *) # Relative name.
31470 +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31471 +    ac_top_srcdir=$ac_top_build_prefix$srcdir
31472 +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31473  esac
31474 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31475  
31476 -# Do not use `cd foo && pwd` to compute absolute paths, because
31477 -# the directories may not exist.
31478 -case `pwd` in
31479 -.) ac_abs_builddir="$ac_dir";;
31480 -*)
31481 -  case "$ac_dir" in
31482 -  .) ac_abs_builddir=`pwd`;;
31483 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31484 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31485 -  esac;;
31486 -esac
31487 -case $ac_abs_builddir in
31488 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
31489 -*)
31490 -  case ${ac_top_builddir}. in
31491 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
31492 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31493 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31494 -  esac;;
31495 -esac
31496 -case $ac_abs_builddir in
31497 -.) ac_abs_srcdir=$ac_srcdir;;
31498 -*)
31499 -  case $ac_srcdir in
31500 -  .) ac_abs_srcdir=$ac_abs_builddir;;
31501 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31502 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31503 -  esac;;
31504 -esac
31505 -case $ac_abs_builddir in
31506 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
31507 -*)
31508 -  case $ac_top_srcdir in
31509 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31510 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31511 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31512 -  esac;;
31513 -esac
31514  
31515 +  case $ac_mode in
31516 +  :F)
31517 +  #
31518 +  # CONFIG_FILE
31519 +  #
31520  
31521    case $INSTALL in
31522    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31523 -  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31524 +  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31525    esac
31526 +_ACEOF
31527  
31528 -  if test x"$ac_file" != x-; then
31529 -    { echo "$as_me:$LINENO: creating $ac_file" >&5
31530 -echo "$as_me: creating $ac_file" >&6;}
31531 -    rm -f "$ac_file"
31532 -  fi
31533 -  # Let's still pretend it is `configure' which instantiates (i.e., don't
31534 -  # use $as_me), people would be surprised to read:
31535 -  #    /* config.h.  Generated by config.status.  */
31536 -  if test x"$ac_file" = x-; then
31537 -    configure_input=
31538 -  else
31539 -    configure_input="$ac_file.  "
31540 -  fi
31541 -  configure_input=$configure_input"Generated from `echo $ac_file_in |
31542 -                                    sed 's,.*/,,'` by configure."
31543 -
31544 -  # First look for the input files in the build tree, otherwise in the
31545 -  # src tree.
31546 -  ac_file_inputs=`IFS=:
31547 -    for f in $ac_file_in; do
31548 -      case $f in
31549 -      -) echo $tmp/stdin ;;
31550 -      [\\/$]*)
31551 -        # Absolute (can't be DOS-style, as IFS=:)
31552 -        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31553 -echo "$as_me: error: cannot find input file: $f" >&2;}
31554 -   { (exit 1); exit 1; }; }
31555 -        echo "$f";;
31556 -      *) # Relative
31557 -        if test -f "$f"; then
31558 -          # Build tree
31559 -          echo "$f"
31560 -        elif test -f "$srcdir/$f"; then
31561 -          # Source tree
31562 -          echo "$srcdir/$f"
31563 -        else
31564 -          # /dev/null tree
31565 -          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31566 -echo "$as_me: error: cannot find input file: $f" >&2;}
31567 -   { (exit 1); exit 1; }; }
31568 -        fi;;
31569 -      esac
31570 -    done` || { (exit 1); exit 1; }
31571 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31572 +# If the template does not know about datarootdir, expand it.
31573 +# FIXME: This hack should be removed a few years after 2.60.
31574 +ac_datarootdir_hack=; ac_datarootdir_seen=
31575 +
31576 +ac_sed_dataroot='
31577 +/datarootdir/ {
31578 +  p
31579 +  q
31580 +}
31581 +/@datadir@/p
31582 +/@docdir@/p
31583 +/@infodir@/p
31584 +/@localedir@/p
31585 +/@mandir@/p
31586 +'
31587 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31588 +*datarootdir*) ac_datarootdir_seen=yes;;
31589 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31590 +  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31591 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31592  _ACEOF
31593 -cat >>$CONFIG_STATUS <<_ACEOF
31594 -  sed "$ac_vpsub
31595 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31596 +  ac_datarootdir_hack='
31597 +  s&@datadir@&$datadir&g
31598 +  s&@docdir@&$docdir&g
31599 +  s&@infodir@&$infodir&g
31600 +  s&@localedir@&$localedir&g
31601 +  s&@mandir@&$mandir&g
31602 +    s&\\\${datarootdir}&$datarootdir&g' ;;
31603 +esac
31604 +_ACEOF
31605 +
31606 +# Neutralize VPATH when `$srcdir' = `.'.
31607 +# Shell code in configure.ac might set extrasub.
31608 +# FIXME: do we really want to maintain this feature?
31609 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31610 +ac_sed_extra="$ac_vpsub
31611  $extrasub
31612  _ACEOF
31613 -cat >>$CONFIG_STATUS <<\_ACEOF
31614 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31615  :t
31616  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31617 -s,@configure_input@,$configure_input,;t t
31618 -s,@srcdir@,$ac_srcdir,;t t
31619 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
31620 -s,@top_srcdir@,$ac_top_srcdir,;t t
31621 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31622 -s,@builddir@,$ac_builddir,;t t
31623 -s,@abs_builddir@,$ac_abs_builddir,;t t
31624 -s,@top_builddir@,$ac_top_builddir,;t t
31625 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31626 -s,@INSTALL@,$ac_INSTALL,;t t
31627 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31628 -  rm -f $tmp/stdin
31629 -  if test x"$ac_file" != x-; then
31630 -    mv $tmp/out $ac_file
31631 -  else
31632 -    cat $tmp/out
31633 -    rm -f $tmp/out
31634 -  fi
31635 -
31636 -done
31637 -_ACEOF
31638 -cat >>$CONFIG_STATUS <<\_ACEOF
31639 +s|@configure_input@|$ac_sed_conf_input|;t t
31640 +s&@top_builddir@&$ac_top_builddir_sub&;t t
31641 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
31642 +s&@srcdir@&$ac_srcdir&;t t
31643 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
31644 +s&@top_srcdir@&$ac_top_srcdir&;t t
31645 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31646 +s&@builddir@&$ac_builddir&;t t
31647 +s&@abs_builddir@&$ac_abs_builddir&;t t
31648 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31649 +s&@INSTALL@&$ac_INSTALL&;t t
31650 +$ac_datarootdir_hack
31651 +"
31652 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31653 +  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31654 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31655 +   { (exit 1); exit 1; }; }
31656  
31657 -#
31658 -# CONFIG_HEADER section.
31659 -#
31660 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31661 +  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31662 +  { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31663 +  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31664 +which seems to be undefined.  Please make sure it is defined." >&5
31665 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31666 +which seems to be undefined.  Please make sure it is defined." >&2;}
31667  
31668 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31669 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
31670 -#
31671 -# ac_d sets the value in "#define NAME VALUE" lines.
31672 -ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
31673 -ac_dB='[        ].*$,\1#\2'
31674 -ac_dC=' '
31675 -ac_dD=',;t'
31676 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31677 -ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31678 -ac_uB='$,\1#\2define\3'
31679 -ac_uC=' '
31680 -ac_uD=',;t'
31681 -
31682 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31683 -  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31684 +  rm -f "$tmp/stdin"
31685    case $ac_file in
31686 -  - | *:- | *:-:* ) # input from stdin
31687 -       cat >$tmp/stdin
31688 -       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31689 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31690 -  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31691 -       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31692 -  * )   ac_file_in=$ac_file.in ;;
31693 -  esac
31694 -
31695 -  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31696 -echo "$as_me: creating $ac_file" >&6;}
31697 -
31698 -  # First look for the input files in the build tree, otherwise in the
31699 -  # src tree.
31700 -  ac_file_inputs=`IFS=:
31701 -    for f in $ac_file_in; do
31702 -      case $f in
31703 -      -) echo $tmp/stdin ;;
31704 -      [\\/$]*)
31705 -        # Absolute (can't be DOS-style, as IFS=:)
31706 -        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31707 -echo "$as_me: error: cannot find input file: $f" >&2;}
31708 -   { (exit 1); exit 1; }; }
31709 -        # Do quote $f, to prevent DOS paths from being IFS'd.
31710 -        echo "$f";;
31711 -      *) # Relative
31712 -        if test -f "$f"; then
31713 -          # Build tree
31714 -          echo "$f"
31715 -        elif test -f "$srcdir/$f"; then
31716 -          # Source tree
31717 -          echo "$srcdir/$f"
31718 -        else
31719 -          # /dev/null tree
31720 -          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31721 -echo "$as_me: error: cannot find input file: $f" >&2;}
31722 +  -) cat "$tmp/out" && rm -f "$tmp/out";;
31723 +  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31724 +  esac \
31725 +  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31726 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31727     { (exit 1); exit 1; }; }
31728 -        fi;;
31729 -      esac
31730 -    done` || { (exit 1); exit 1; }
31731 -  # Remove the trailing spaces.
31732 -  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
31733 -
31734 -_ACEOF
31735 -
31736 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
31737 -# `conftest.undefs', that substitutes the proper values into
31738 -# config.h.in to produce config.h.  The first handles `#define'
31739 -# templates, and the second `#undef' templates.
31740 -# And first: Protect against being on the right side of a sed subst in
31741 -# config.status.  Protect against being in an unquoted here document
31742 -# in config.status.
31743 -rm -f conftest.defines conftest.undefs
31744 -# Using a here document instead of a string reduces the quoting nightmare.
31745 -# Putting comments in sed scripts is not portable.
31746 -#
31747 -# `end' is used to avoid that the second main sed command (meant for
31748 -# 0-ary CPP macros) applies to n-ary macro definitions.
31749 -# See the Autoconf documentation for `clear'.
31750 -cat >confdef2sed.sed <<\_ACEOF
31751 -s/[\\&,]/\\&/g
31752 -s,[\\$`],\\&,g
31753 -t clear
31754 -: clear
31755 -s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31756 -t end
31757 -s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31758 -: end
31759 -_ACEOF
31760 -# If some macros were called several times there might be several times
31761 -# the same #defines, which is useless.  Nevertheless, we may not want to
31762 -# sort them, since we want the *last* AC-DEFINE to be honored.
31763 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31764 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31765 -rm -f confdef2sed.sed
31766 -
31767 -# This sed command replaces #undef with comments.  This is necessary, for
31768 -# example, in the case of _POSIX_SOURCE, which is predefined and required
31769 -# on some systems where configure will not decide to define it.
31770 -cat >>conftest.undefs <<\_ACEOF
31771 -s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31772 -_ACEOF
31773 -
31774 -# Break up conftest.defines because some shells have a limit on the size
31775 -# of here documents, and old seds have small limits too (100 cmds).
31776 -echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31777 -echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31778 -echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31779 -echo '  :' >>$CONFIG_STATUS
31780 -rm -f conftest.tail
31781 -while grep . conftest.defines >/dev/null
31782 -do
31783 -  # Write a limited-size here document to $tmp/defines.sed.
31784 -  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31785 -  # Speed up: don't consider the non `#define' lines.
31786 -  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
31787 -  # Work around the forget-to-reset-the-flag bug.
31788 -  echo 't clr' >>$CONFIG_STATUS
31789 -  echo ': clr' >>$CONFIG_STATUS
31790 -  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31791 -  echo 'CEOF
31792 -  sed -f $tmp/defines.sed $tmp/in >$tmp/out
31793 -  rm -f $tmp/in
31794 -  mv $tmp/out $tmp/in
31795 -' >>$CONFIG_STATUS
31796 -  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31797 -  rm -f conftest.defines
31798 -  mv conftest.tail conftest.defines
31799 -done
31800 -rm -f conftest.defines
31801 -echo '  fi # grep' >>$CONFIG_STATUS
31802 -echo >>$CONFIG_STATUS
31803 -
31804 -# Break up conftest.undefs because some shells have a limit on the size
31805 -# of here documents, and old seds have small limits too (100 cmds).
31806 -echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31807 -rm -f conftest.tail
31808 -while grep . conftest.undefs >/dev/null
31809 -do
31810 -  # Write a limited-size here document to $tmp/undefs.sed.
31811 -  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31812 -  # Speed up: don't consider the non `#undef'
31813 -  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31814 -  # Work around the forget-to-reset-the-flag bug.
31815 -  echo 't clr' >>$CONFIG_STATUS
31816 -  echo ': clr' >>$CONFIG_STATUS
31817 -  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31818 -  echo 'CEOF
31819 -  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31820 -  rm -f $tmp/in
31821 -  mv $tmp/out $tmp/in
31822 -' >>$CONFIG_STATUS
31823 -  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31824 -  rm -f conftest.undefs
31825 -  mv conftest.tail conftest.undefs
31826 -done
31827 -rm -f conftest.undefs
31828 -
31829 -cat >>$CONFIG_STATUS <<\_ACEOF
31830 -  # Let's still pretend it is `configure' which instantiates (i.e., don't
31831 -  # use $as_me), people would be surprised to read:
31832 -  #    /* config.h.  Generated by config.status.  */
31833 -  if test x"$ac_file" = x-; then
31834 -    echo "/* Generated by configure.  */" >$tmp/config.h
31835 -  else
31836 -    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31837 -  fi
31838 -  cat $tmp/in >>$tmp/config.h
31839 -  rm -f $tmp/in
31840 + ;;
31841 +  :H)
31842 +  #
31843 +  # CONFIG_HEADER
31844 +  #
31845    if test x"$ac_file" != x-; then
31846 -    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31847 -      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31848 -echo "$as_me: $ac_file is unchanged" >&6;}
31849 +    {
31850 +      $as_echo "/* $configure_input  */" \
31851 +      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31852 +    } >"$tmp/config.h" \
31853 +      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31854 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31855 +   { (exit 1); exit 1; }; }
31856 +    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31857 +      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31858 +$as_echo "$as_me: $ac_file is unchanged" >&6;}
31859      else
31860 -      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31861 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31862 -        X"$ac_file" : 'X\(//\)[^/]' \| \
31863 -        X"$ac_file" : 'X\(//\)$' \| \
31864 -        X"$ac_file" : 'X\(/\)' \| \
31865 -        .     : '\(.\)' 2>/dev/null ||
31866 -echo X"$ac_file" |
31867 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31868 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31869 -         /^X\(\/\/\)$/{ s//\1/; q; }
31870 -         /^X\(\/\).*/{ s//\1/; q; }
31871 -         s/.*/./; q'`
31872 -      { if $as_mkdir_p; then
31873 -    mkdir -p "$ac_dir"
31874 -  else
31875 -    as_dir="$ac_dir"
31876 -    as_dirs=
31877 -    while test ! -d "$as_dir"; do
31878 -      as_dirs="$as_dir $as_dirs"
31879 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31880 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31881 -        X"$as_dir" : 'X\(//\)[^/]' \| \
31882 -        X"$as_dir" : 'X\(//\)$' \| \
31883 -        X"$as_dir" : 'X\(/\)' \| \
31884 -        .     : '\(.\)' 2>/dev/null ||
31885 -echo X"$as_dir" |
31886 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31887 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31888 -         /^X\(\/\/\)$/{ s//\1/; q; }
31889 -         /^X\(\/\).*/{ s//\1/; q; }
31890 -         s/.*/./; q'`
31891 -    done
31892 -    test ! -n "$as_dirs" || mkdir $as_dirs
31893 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31894 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31895 -   { (exit 1); exit 1; }; }; }
31896 -
31897 -      rm -f $ac_file
31898 -      mv $tmp/config.h $ac_file
31899 +      rm -f "$ac_file"
31900 +      mv "$tmp/config.h" "$ac_file" \
31901 +       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31902 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31903 +   { (exit 1); exit 1; }; }
31904      fi
31905    else
31906 -    cat $tmp/config.h
31907 -    rm -f $tmp/config.h
31908 +    $as_echo "/* $configure_input  */" \
31909 +      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31910 +      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31911 +$as_echo "$as_me: error: could not create -" >&2;}
31912 +   { (exit 1); exit 1; }; }
31913    fi
31914 -# Compute $ac_file's index in $config_headers.
31915 +# Compute "$ac_file"'s index in $config_headers.
31916  _am_stamp_count=1
31917  for _am_header in $config_headers :; do
31918    case $_am_header in
31919 -    $ac_file | $ac_file:* )
31920 +    "$ac_file" | "$ac_file":* )
31921        break ;;
31922      * )
31923        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31924    esac
31925  done
31926 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31927 -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31928 -        X$ac_file : 'X\(//\)[^/]' \| \
31929 -        X$ac_file : 'X\(//\)$' \| \
31930 -        X$ac_file : 'X\(/\)' \| \
31931 -        .     : '\(.\)' 2>/dev/null ||
31932 -echo X$ac_file |
31933 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31934 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31935 -         /^X\(\/\/\)$/{ s//\1/; q; }
31936 -         /^X\(\/\).*/{ s//\1/; q; }
31937 -         s/.*/./; q'`/stamp-h$_am_stamp_count
31938 -done
31939 -_ACEOF
31940 -cat >>$CONFIG_STATUS <<\_ACEOF
31941 -
31942 -#
31943 -# CONFIG_COMMANDS section.
31944 -#
31945 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31946 -  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31947 -  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31948 -  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31949 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31950 -        X"$ac_dest" : 'X\(//\)[^/]' \| \
31951 -        X"$ac_dest" : 'X\(//\)$' \| \
31952 -        X"$ac_dest" : 'X\(/\)' \| \
31953 -        .     : '\(.\)' 2>/dev/null ||
31954 -echo X"$ac_dest" |
31955 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31956 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31957 -         /^X\(\/\/\)$/{ s//\1/; q; }
31958 -         /^X\(\/\).*/{ s//\1/; q; }
31959 -         s/.*/./; q'`
31960 -  { if $as_mkdir_p; then
31961 -    mkdir -p "$ac_dir"
31962 -  else
31963 -    as_dir="$ac_dir"
31964 -    as_dirs=
31965 -    while test ! -d "$as_dir"; do
31966 -      as_dirs="$as_dir $as_dirs"
31967 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31968 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31969 -        X"$as_dir" : 'X\(//\)[^/]' \| \
31970 -        X"$as_dir" : 'X\(//\)$' \| \
31971 -        X"$as_dir" : 'X\(/\)' \| \
31972 -        .     : '\(.\)' 2>/dev/null ||
31973 -echo X"$as_dir" |
31974 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31975 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31976 -         /^X\(\/\/\)$/{ s//\1/; q; }
31977 -         /^X\(\/\).*/{ s//\1/; q; }
31978 -         s/.*/./; q'`
31979 -    done
31980 -    test ! -n "$as_dirs" || mkdir $as_dirs
31981 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31982 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31983 -   { (exit 1); exit 1; }; }; }
31984 -
31985 -  ac_builddir=.
31986 -
31987 -if test "$ac_dir" != .; then
31988 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31989 -  # A "../" for each directory in $ac_dir_suffix.
31990 -  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31991 -else
31992 -  ac_dir_suffix= ac_top_builddir=
31993 -fi
31994 -
31995 -case $srcdir in
31996 -  .)  # No --srcdir option.  We are building in place.
31997 -    ac_srcdir=.
31998 -    if test -z "$ac_top_builddir"; then
31999 -       ac_top_srcdir=.
32000 -    else
32001 -       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32002 -    fi ;;
32003 -  [\\/]* | ?:[\\/]* )  # Absolute path.
32004 -    ac_srcdir=$srcdir$ac_dir_suffix;
32005 -    ac_top_srcdir=$srcdir ;;
32006 -  *) # Relative path.
32007 -    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32008 -    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32009 -esac
32010 +echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
32011 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32012 +        X"$ac_file" : 'X\(//\)[^/]' \| \
32013 +        X"$ac_file" : 'X\(//\)$' \| \
32014 +        X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32015 +$as_echo X"$ac_file" |
32016 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32017 +           s//\1/
32018 +           q
32019 +         }
32020 +         /^X\(\/\/\)[^/].*/{
32021 +           s//\1/
32022 +           q
32023 +         }
32024 +         /^X\(\/\/\)$/{
32025 +           s//\1/
32026 +           q
32027 +         }
32028 +         /^X\(\/\).*/{
32029 +           s//\1/
32030 +           q
32031 +         }
32032 +         s/.*/./; q'`/stamp-h$_am_stamp_count
32033 + ;;
32034  
32035 -# Do not use `cd foo && pwd` to compute absolute paths, because
32036 -# the directories may not exist.
32037 -case `pwd` in
32038 -.) ac_abs_builddir="$ac_dir";;
32039 -*)
32040 -  case "$ac_dir" in
32041 -  .) ac_abs_builddir=`pwd`;;
32042 -  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32043 -  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32044 -  esac;;
32045 -esac
32046 -case $ac_abs_builddir in
32047 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
32048 -*)
32049 -  case ${ac_top_builddir}. in
32050 -  .) ac_abs_top_builddir=$ac_abs_builddir;;
32051 -  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32052 -  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32053 -  esac;;
32054 -esac
32055 -case $ac_abs_builddir in
32056 -.) ac_abs_srcdir=$ac_srcdir;;
32057 -*)
32058 -  case $ac_srcdir in
32059 -  .) ac_abs_srcdir=$ac_abs_builddir;;
32060 -  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32061 -  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32062 -  esac;;
32063 -esac
32064 -case $ac_abs_builddir in
32065 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
32066 -*)
32067 -  case $ac_top_srcdir in
32068 -  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32069 -  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32070 -  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32071 -  esac;;
32072 -esac
32073 +  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
32074 +$as_echo "$as_me: executing $ac_file commands" >&6;}
32075 + ;;
32076 +  esac
32077  
32078  
32079 -  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32080 -echo "$as_me: executing $ac_dest commands" >&6;}
32081 -  case $ac_dest in
32082 -    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32083 +  case $ac_file$ac_mode in
32084 +    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32085    # Strip MF so we end up with the name of the file.
32086    mf=`echo "$mf" | sed -e 's/:.*$//'`
32087    # Check whether this is an Automake generated Makefile or not.
32088 @@ -21932,18 +22785,29 @@ echo "$as_me: executing $ac_dest commands" >&6;}
32089    # each Makefile.in and add a new line on top of each file to say so.
32090    # So let's grep whole file.
32091    if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
32092 -    dirpart=`(dirname "$mf") 2>/dev/null ||
32093 +    dirpart=`$as_dirname -- "$mf" ||
32094  $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32095          X"$mf" : 'X\(//\)[^/]' \| \
32096          X"$mf" : 'X\(//\)$' \| \
32097 -        X"$mf" : 'X\(/\)' \| \
32098 -        .     : '\(.\)' 2>/dev/null ||
32099 -echo X"$mf" |
32100 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32101 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32102 -         /^X\(\/\/\)$/{ s//\1/; q; }
32103 -         /^X\(\/\).*/{ s//\1/; q; }
32104 -         s/.*/./; q'`
32105 +        X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32106 +$as_echo X"$mf" |
32107 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32108 +           s//\1/
32109 +           q
32110 +         }
32111 +         /^X\(\/\/\)[^/].*/{
32112 +           s//\1/
32113 +           q
32114 +         }
32115 +         /^X\(\/\/\)$/{
32116 +           s//\1/
32117 +           q
32118 +         }
32119 +         /^X\(\/\).*/{
32120 +           s//\1/
32121 +           q
32122 +         }
32123 +         s/.*/./; q'`
32124    else
32125      continue
32126    fi
32127 @@ -21965,59 +22829,90 @@ echo X"$mf" |
32128         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32129      # Make sure the directory exists.
32130      test -f "$dirpart/$file" && continue
32131 -    fdir=`(dirname "$file") 2>/dev/null ||
32132 +    fdir=`$as_dirname -- "$file" ||
32133  $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32134          X"$file" : 'X\(//\)[^/]' \| \
32135          X"$file" : 'X\(//\)$' \| \
32136 -        X"$file" : 'X\(/\)' \| \
32137 -        .     : '\(.\)' 2>/dev/null ||
32138 -echo X"$file" |
32139 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32140 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32141 -         /^X\(\/\/\)$/{ s//\1/; q; }
32142 -         /^X\(\/\).*/{ s//\1/; q; }
32143 -         s/.*/./; q'`
32144 -    { if $as_mkdir_p; then
32145 -    mkdir -p $dirpart/$fdir
32146 -  else
32147 -    as_dir=$dirpart/$fdir
32148 +        X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32149 +$as_echo X"$file" |
32150 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32151 +           s//\1/
32152 +           q
32153 +         }
32154 +         /^X\(\/\/\)[^/].*/{
32155 +           s//\1/
32156 +           q
32157 +         }
32158 +         /^X\(\/\/\)$/{
32159 +           s//\1/
32160 +           q
32161 +         }
32162 +         /^X\(\/\).*/{
32163 +           s//\1/
32164 +           q
32165 +         }
32166 +         s/.*/./; q'`
32167 +    { as_dir=$dirpart/$fdir
32168 +  case $as_dir in #(
32169 +  -*) as_dir=./$as_dir;;
32170 +  esac
32171 +  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32172      as_dirs=
32173 -    while test ! -d "$as_dir"; do
32174 -      as_dirs="$as_dir $as_dirs"
32175 -      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32176 +    while :; do
32177 +      case $as_dir in #(
32178 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32179 +      *) as_qdir=$as_dir;;
32180 +      esac
32181 +      as_dirs="'$as_qdir' $as_dirs"
32182 +      as_dir=`$as_dirname -- "$as_dir" ||
32183  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32184          X"$as_dir" : 'X\(//\)[^/]' \| \
32185          X"$as_dir" : 'X\(//\)$' \| \
32186 -        X"$as_dir" : 'X\(/\)' \| \
32187 -        .     : '\(.\)' 2>/dev/null ||
32188 -echo X"$as_dir" |
32189 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32190 -         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32191 -         /^X\(\/\/\)$/{ s//\1/; q; }
32192 -         /^X\(\/\).*/{ s//\1/; q; }
32193 -         s/.*/./; q'`
32194 +        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32195 +$as_echo X"$as_dir" |
32196 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32197 +           s//\1/
32198 +           q
32199 +         }
32200 +         /^X\(\/\/\)[^/].*/{
32201 +           s//\1/
32202 +           q
32203 +         }
32204 +         /^X\(\/\/\)$/{
32205 +           s//\1/
32206 +           q
32207 +         }
32208 +         /^X\(\/\).*/{
32209 +           s//\1/
32210 +           q
32211 +         }
32212 +         s/.*/./; q'`
32213 +      test -d "$as_dir" && break
32214      done
32215 -    test ! -n "$as_dirs" || mkdir $as_dirs
32216 -  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
32217 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
32218 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
32219 +  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32220 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32221     { (exit 1); exit 1; }; }; }
32222 -
32223      # echo "creating $dirpart/$file"
32224      echo '# dummy' > "$dirpart/$file"
32225    done
32226  done
32227   ;;
32228 +
32229    esac
32230 -done
32231 -_ACEOF
32232 +done # for ac_tag
32233  
32234 -cat >>$CONFIG_STATUS <<\_ACEOF
32235  
32236  { (exit 0); exit 0; }
32237  _ACEOF
32238  chmod +x $CONFIG_STATUS
32239  ac_clean_files=$ac_clean_files_save
32240  
32241 +test $ac_write_fail = 0 ||
32242 +  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32243 +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32244 +   { (exit 1); exit 1; }; }
32245 +
32246  
32247  # configure is writing to config.log, and then calls config.status.
32248  # config.status does its own redirection, appending to config.log.
32249 @@ -22039,4 +22934,8 @@ if test "$no_create" != yes; then
32250    # would make configure fail if this is the last instruction.
32251    $ac_cs_success || { (exit 1); exit 1; }
32252  fi
32253 +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32254 +  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32255 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32256 +fi
32257  
32258 --- ./src/Makefile.in
32259 +++ ./src/Makefile.in
32260 @@ -1,8 +1,8 @@
32261 -# Makefile.in generated by automake 1.9.2 from Makefile.am.
32262 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
32263  # @configure_input@
32264  
32265  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
32266 -# 2003, 2004  Free Software Foundation, Inc.
32267 +# 2003, 2004, 2005  Free Software Foundation, Inc.
32268  # This Makefile.in is free software; the Free Software Foundation
32269  # gives unlimited permission to copy and/or distribute it,
32270  # with or without modifications, as long as this notice is preserved.
32271 @@ -17,8 +17,6 @@
32272  # From Makefile.am $Revision: 1.3 $
32273  
32274  
32275 -SOURCES = $(libnss_mysql_la_SOURCES) $(nss_mysql_la_SOURCES)
32276 -
32277  srcdir = @srcdir@
32278  top_srcdir = @top_srcdir@
32279  VPATH = @srcdir@
32280 @@ -83,11 +81,11 @@ depcomp = $(SHELL) $(top_srcdir)/aux/depcomp
32281  am__depfiles_maybe = depfiles
32282  COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
32283         $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
32284 -LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
32285 +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
32286         $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
32287         $(AM_CFLAGS) $(CFLAGS)
32288  CCLD = $(CC)
32289 -LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
32290 +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
32291         $(AM_LDFLAGS) $(LDFLAGS) -o $@
32292  SOURCES = $(libnss_mysql_la_SOURCES) $(nss_mysql_la_SOURCES)
32293  DIST_SOURCES = $(am__libnss_mysql_la_SOURCES_DIST) \
32294 @@ -117,6 +115,7 @@ CXXFLAGS = @CXXFLAGS@
32295  CYGPATH_W = @CYGPATH_W@
32296  DEFS = @DEFS@
32297  DEPDIR = @DEPDIR@
32298 +DSYMUTIL = @DSYMUTIL@
32299  ECHO = @ECHO@
32300  ECHO_C = @ECHO_C@
32301  ECHO_N = @ECHO_N@
32302 @@ -125,6 +124,7 @@ EGREP = @EGREP@
32303  EXEEXT = @EXEEXT@
32304  F77 = @F77@
32305  FFLAGS = @FFLAGS@
32306 +GREP = @GREP@
32307  INSTALL_DATA = @INSTALL_DATA@
32308  INSTALL_PROGRAM = @INSTALL_PROGRAM@
32309  INSTALL_SCRIPT = @INSTALL_SCRIPT@
32310 @@ -140,6 +140,7 @@ MAINT = @MAINT@
32311  MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
32312  MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
32313  MAKEINFO = @MAKEINFO@
32314 +NMEDIT = @NMEDIT@
32315  OBJEXT = @OBJEXT@
32316  OS = @OS@
32317  PACKAGE = @PACKAGE@
32318 @@ -152,16 +153,14 @@ PATH_SEPARATOR = @PATH_SEPARATOR@
32319  RANLIB = @RANLIB@
32320  RENAME_FALSE = @RENAME_FALSE@
32321  RENAME_TRUE = @RENAME_TRUE@
32322 +SED = @SED@
32323  SET_MAKE = @SET_MAKE@
32324  SHELL = @SHELL@
32325  STRIP = @STRIP@
32326  VERSION = @VERSION@
32327 -ac_ct_AR = @ac_ct_AR@
32328  ac_ct_CC = @ac_ct_CC@
32329  ac_ct_CXX = @ac_ct_CXX@
32330  ac_ct_F77 = @ac_ct_F77@
32331 -ac_ct_RANLIB = @ac_ct_RANLIB@
32332 -ac_ct_STRIP = @ac_ct_STRIP@
32333  am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
32334  am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
32335  am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
32336 @@ -178,23 +177,30 @@ build_cpu = @build_cpu@
32337  build_os = @build_os@
32338  build_vendor = @build_vendor@
32339  datadir = @datadir@
32340 +datarootdir = @datarootdir@
32341 +docdir = @docdir@
32342 +dvidir = @dvidir@
32343  exec_prefix = @exec_prefix@
32344  host = @host@
32345  host_alias = @host_alias@
32346  host_cpu = @host_cpu@
32347  host_os = @host_os@
32348  host_vendor = @host_vendor@
32349 +htmldir = @htmldir@
32350  includedir = @includedir@
32351  infodir = @infodir@
32352  install_sh = @install_sh@
32353  libdir = @libdir@
32354  libexecdir = @libexecdir@
32355 +localedir = @localedir@
32356  localstatedir = @localstatedir@
32357  mandir = @mandir@
32358  mkdir_p = @mkdir_p@
32359  oldincludedir = @oldincludedir@
32360 +pdfdir = @pdfdir@
32361  prefix = @prefix@
32362  program_transform_name = @program_transform_name@
32363 +psdir = @psdir@
32364  sbindir = @sbindir@
32365  sharedstatedir = @sharedstatedir@
32366  sysconfdir = @sysconfdir@