change cp to $(CP)
[openwrt.git] / package / linux-atm / patches / 300-no_autotools.patch
1 diff -urN linux-atm.old/aclocal.m4 linux-atm.dev/aclocal.m4
2 --- linux-atm.old/aclocal.m4    2005-08-23 01:12:10.833789000 +0200
3 +++ linux-atm.dev/aclocal.m4    2005-08-23 01:12:44.813623720 +0200
4 @@ -10,6 +10,825 @@
5  dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
6  dnl PARTICULAR PURPOSE.
7  
8 +# lib-prefix.m4 serial 4 (gettext-0.14.2)
9 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
10 +dnl This file is free software; the Free Software Foundation
11 +dnl gives unlimited permission to copy and/or distribute it,
12 +dnl with or without modifications, as long as this notice is preserved.
13 +
14 +dnl From Bruno Haible.
15 +
16 +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
17 +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
18 +dnl require excessive bracketing.
19 +ifdef([AC_HELP_STRING],
20 +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
21 +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
22 +
23 +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
24 +dnl to access previously installed libraries. The basic assumption is that
25 +dnl a user will want packages to use other packages he previously installed
26 +dnl with the same --prefix option.
27 +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
28 +dnl libraries, but is otherwise very convenient.
29 +AC_DEFUN([AC_LIB_PREFIX],
30 +[
31 +  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
32 +  AC_REQUIRE([AC_PROG_CC])
33 +  AC_REQUIRE([AC_CANONICAL_HOST])
34 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
35 +  dnl By default, look in $includedir and $libdir.
36 +  use_additional=yes
37 +  AC_LIB_WITH_FINAL_PREFIX([
38 +    eval additional_includedir=\"$includedir\"
39 +    eval additional_libdir=\"$libdir\"
40 +  ])
41 +  AC_LIB_ARG_WITH([lib-prefix],
42 +[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
43 +  --without-lib-prefix    don't search for libraries in includedir and libdir],
44 +[
45 +    if test "X$withval" = "Xno"; then
46 +      use_additional=no
47 +    else
48 +      if test "X$withval" = "X"; then
49 +        AC_LIB_WITH_FINAL_PREFIX([
50 +          eval additional_includedir=\"$includedir\"
51 +          eval additional_libdir=\"$libdir\"
52 +        ])
53 +      else
54 +        additional_includedir="$withval/include"
55 +        additional_libdir="$withval/lib"
56 +      fi
57 +    fi
58 +])
59 +  if test $use_additional = yes; then
60 +    dnl Potentially add $additional_includedir to $CPPFLAGS.
61 +    dnl But don't add it
62 +    dnl   1. if it's the standard /usr/include,
63 +    dnl   2. if it's already present in $CPPFLAGS,
64 +    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
65 +    dnl   4. if it doesn't exist as a directory.
66 +    if test "X$additional_includedir" != "X/usr/include"; then
67 +      haveit=
68 +      for x in $CPPFLAGS; do
69 +        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
70 +        if test "X$x" = "X-I$additional_includedir"; then
71 +          haveit=yes
72 +          break
73 +        fi
74 +      done
75 +      if test -z "$haveit"; then
76 +        if test "X$additional_includedir" = "X/usr/local/include"; then
77 +          if test -n "$GCC"; then
78 +            case $host_os in
79 +              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
80 +            esac
81 +          fi
82 +        fi
83 +        if test -z "$haveit"; then
84 +          if test -d "$additional_includedir"; then
85 +            dnl Really add $additional_includedir to $CPPFLAGS.
86 +            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
87 +          fi
88 +        fi
89 +      fi
90 +    fi
91 +    dnl Potentially add $additional_libdir to $LDFLAGS.
92 +    dnl But don't add it
93 +    dnl   1. if it's the standard /usr/lib,
94 +    dnl   2. if it's already present in $LDFLAGS,
95 +    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
96 +    dnl   4. if it doesn't exist as a directory.
97 +    if test "X$additional_libdir" != "X/usr/lib"; then
98 +      haveit=
99 +      for x in $LDFLAGS; do
100 +        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
101 +        if test "X$x" = "X-L$additional_libdir"; then
102 +          haveit=yes
103 +          break
104 +        fi
105 +      done
106 +      if test -z "$haveit"; then
107 +        if test "X$additional_libdir" = "X/usr/local/lib"; then
108 +          if test -n "$GCC"; then
109 +            case $host_os in
110 +              linux*) haveit=yes;;
111 +            esac
112 +          fi
113 +        fi
114 +        if test -z "$haveit"; then
115 +          if test -d "$additional_libdir"; then
116 +            dnl Really add $additional_libdir to $LDFLAGS.
117 +            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
118 +          fi
119 +        fi
120 +      fi
121 +    fi
122 +  fi
123 +])
124 +
125 +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
126 +dnl acl_final_exec_prefix, containing the values to which $prefix and
127 +dnl $exec_prefix will expand at the end of the configure script.
128 +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
129 +[
130 +  dnl Unfortunately, prefix and exec_prefix get only finally determined
131 +  dnl at the end of configure.
132 +  if test "X$prefix" = "XNONE"; then
133 +    acl_final_prefix="$ac_default_prefix"
134 +  else
135 +    acl_final_prefix="$prefix"
136 +  fi
137 +  if test "X$exec_prefix" = "XNONE"; then
138 +    acl_final_exec_prefix='${prefix}'
139 +  else
140 +    acl_final_exec_prefix="$exec_prefix"
141 +  fi
142 +  acl_save_prefix="$prefix"
143 +  prefix="$acl_final_prefix"
144 +  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
145 +  prefix="$acl_save_prefix"
146 +])
147 +
148 +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
149 +dnl variables prefix and exec_prefix bound to the values they will have
150 +dnl at the end of the configure script.
151 +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
152 +[
153 +  acl_save_prefix="$prefix"
154 +  prefix="$acl_final_prefix"
155 +  acl_save_exec_prefix="$exec_prefix"
156 +  exec_prefix="$acl_final_exec_prefix"
157 +  $1
158 +  exec_prefix="$acl_save_exec_prefix"
159 +  prefix="$acl_save_prefix"
160 +])
161 +
162 +# lib-link.m4 serial 6 (gettext-0.14.3)
163 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
164 +dnl This file is free software; the Free Software Foundation
165 +dnl gives unlimited permission to copy and/or distribute it,
166 +dnl with or without modifications, as long as this notice is preserved.
167 +
168 +dnl From Bruno Haible.
169 +
170 +AC_PREREQ(2.50)
171 +
172 +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
173 +dnl the libraries corresponding to explicit and implicit dependencies.
174 +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
175 +dnl augments the CPPFLAGS variable.
176 +AC_DEFUN([AC_LIB_LINKFLAGS],
177 +[
178 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
179 +  AC_REQUIRE([AC_LIB_RPATH])
180 +  define([Name],[translit([$1],[./-], [___])])
181 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
182 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
183 +  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
184 +    AC_LIB_LINKFLAGS_BODY([$1], [$2])
185 +    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
186 +    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
187 +    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
188 +  ])
189 +  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
190 +  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
191 +  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
192 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
193 +  AC_SUBST([LIB]NAME)
194 +  AC_SUBST([LTLIB]NAME)
195 +  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
196 +  dnl results of this search when this library appears as a dependency.
197 +  HAVE_LIB[]NAME=yes
198 +  undefine([Name])
199 +  undefine([NAME])
200 +])
201 +
202 +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
203 +dnl searches for libname and the libraries corresponding to explicit and
204 +dnl implicit dependencies, together with the specified include files and
205 +dnl the ability to compile and link the specified testcode. If found, it
206 +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
207 +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
208 +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
209 +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
210 +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
211 +[
212 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
213 +  AC_REQUIRE([AC_LIB_RPATH])
214 +  define([Name],[translit([$1],[./-], [___])])
215 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
216 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
217 +
218 +  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
219 +  dnl accordingly.
220 +  AC_LIB_LINKFLAGS_BODY([$1], [$2])
221 +
222 +  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
223 +  dnl because if the user has installed lib[]Name and not disabled its use
224 +  dnl via --without-lib[]Name-prefix, he wants to use it.
225 +  ac_save_CPPFLAGS="$CPPFLAGS"
226 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
227 +
228 +  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
229 +    ac_save_LIBS="$LIBS"
230 +    LIBS="$LIBS $LIB[]NAME"
231 +    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
232 +    LIBS="$ac_save_LIBS"
233 +  ])
234 +  if test "$ac_cv_lib[]Name" = yes; then
235 +    HAVE_LIB[]NAME=yes
236 +    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
237 +    AC_MSG_CHECKING([how to link with lib[]$1])
238 +    AC_MSG_RESULT([$LIB[]NAME])
239 +  else
240 +    HAVE_LIB[]NAME=no
241 +    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
242 +    dnl $INC[]NAME either.
243 +    CPPFLAGS="$ac_save_CPPFLAGS"
244 +    LIB[]NAME=
245 +    LTLIB[]NAME=
246 +  fi
247 +  AC_SUBST([HAVE_LIB]NAME)
248 +  AC_SUBST([LIB]NAME)
249 +  AC_SUBST([LTLIB]NAME)
250 +  undefine([Name])
251 +  undefine([NAME])
252 +])
253 +
254 +dnl Determine the platform dependent parameters needed to use rpath:
255 +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
256 +dnl hardcode_direct, hardcode_minus_L.
257 +AC_DEFUN([AC_LIB_RPATH],
258 +[
259 +  dnl Tell automake >= 1.10 to complain if config.rpath is missing.
260 +  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
261 +  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
262 +  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
263 +  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
264 +  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
265 +  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
266 +    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
267 +    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
268 +    . ./conftest.sh
269 +    rm -f ./conftest.sh
270 +    acl_cv_rpath=done
271 +  ])
272 +  wl="$acl_cv_wl"
273 +  libext="$acl_cv_libext"
274 +  shlibext="$acl_cv_shlibext"
275 +  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
276 +  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
277 +  hardcode_direct="$acl_cv_hardcode_direct"
278 +  hardcode_minus_L="$acl_cv_hardcode_minus_L"
279 +  dnl Determine whether the user wants rpath handling at all.
280 +  AC_ARG_ENABLE(rpath,
281 +    [  --disable-rpath         do not hardcode runtime library paths],
282 +    :, enable_rpath=yes)
283 +])
284 +
285 +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
286 +dnl the libraries corresponding to explicit and implicit dependencies.
287 +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
288 +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
289 +[
290 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
291 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
292 +  dnl By default, look in $includedir and $libdir.
293 +  use_additional=yes
294 +  AC_LIB_WITH_FINAL_PREFIX([
295 +    eval additional_includedir=\"$includedir\"
296 +    eval additional_libdir=\"$libdir\"
297 +  ])
298 +  AC_LIB_ARG_WITH([lib$1-prefix],
299 +[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
300 +  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
301 +[
302 +    if test "X$withval" = "Xno"; then
303 +      use_additional=no
304 +    else
305 +      if test "X$withval" = "X"; then
306 +        AC_LIB_WITH_FINAL_PREFIX([
307 +          eval additional_includedir=\"$includedir\"
308 +          eval additional_libdir=\"$libdir\"
309 +        ])
310 +      else
311 +        additional_includedir="$withval/include"
312 +        additional_libdir="$withval/lib"
313 +      fi
314 +    fi
315 +])
316 +  dnl Search the library and its dependencies in $additional_libdir and
317 +  dnl $LDFLAGS. Using breadth-first-seach.
318 +  LIB[]NAME=
319 +  LTLIB[]NAME=
320 +  INC[]NAME=
321 +  rpathdirs=
322 +  ltrpathdirs=
323 +  names_already_handled=
324 +  names_next_round='$1 $2'
325 +  while test -n "$names_next_round"; do
326 +    names_this_round="$names_next_round"
327 +    names_next_round=
328 +    for name in $names_this_round; do
329 +      already_handled=
330 +      for n in $names_already_handled; do
331 +        if test "$n" = "$name"; then
332 +          already_handled=yes
333 +          break
334 +        fi
335 +      done
336 +      if test -z "$already_handled"; then
337 +        names_already_handled="$names_already_handled $name"
338 +        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
339 +        dnl or AC_LIB_HAVE_LINKFLAGS call.
340 +        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
341 +        eval value=\"\$HAVE_LIB$uppername\"
342 +        if test -n "$value"; then
343 +          if test "$value" = yes; then
344 +            eval value=\"\$LIB$uppername\"
345 +            test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
346 +            eval value=\"\$LTLIB$uppername\"
347 +            test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
348 +          else
349 +            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
350 +            dnl that this library doesn't exist. So just drop it.
351 +            :
352 +          fi
353 +        else
354 +          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
355 +          dnl and the already constructed $LIBNAME/$LTLIBNAME.
356 +          found_dir=
357 +          found_la=
358 +          found_so=
359 +          found_a=
360 +          if test $use_additional = yes; then
361 +            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
362 +              found_dir="$additional_libdir"
363 +              found_so="$additional_libdir/lib$name.$shlibext"
364 +              if test -f "$additional_libdir/lib$name.la"; then
365 +                found_la="$additional_libdir/lib$name.la"
366 +              fi
367 +            else
368 +              if test -f "$additional_libdir/lib$name.$libext"; then
369 +                found_dir="$additional_libdir"
370 +                found_a="$additional_libdir/lib$name.$libext"
371 +                if test -f "$additional_libdir/lib$name.la"; then
372 +                  found_la="$additional_libdir/lib$name.la"
373 +                fi
374 +              fi
375 +            fi
376 +          fi
377 +          if test "X$found_dir" = "X"; then
378 +            for x in $LDFLAGS $LTLIB[]NAME; do
379 +              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
380 +              case "$x" in
381 +                -L*)
382 +                  dir=`echo "X$x" | sed -e 's/^X-L//'`
383 +                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
384 +                    found_dir="$dir"
385 +                    found_so="$dir/lib$name.$shlibext"
386 +                    if test -f "$dir/lib$name.la"; then
387 +                      found_la="$dir/lib$name.la"
388 +                    fi
389 +                  else
390 +                    if test -f "$dir/lib$name.$libext"; then
391 +                      found_dir="$dir"
392 +                      found_a="$dir/lib$name.$libext"
393 +                      if test -f "$dir/lib$name.la"; then
394 +                        found_la="$dir/lib$name.la"
395 +                      fi
396 +                    fi
397 +                  fi
398 +                  ;;
399 +              esac
400 +              if test "X$found_dir" != "X"; then
401 +                break
402 +              fi
403 +            done
404 +          fi
405 +          if test "X$found_dir" != "X"; then
406 +            dnl Found the library.
407 +            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
408 +            if test "X$found_so" != "X"; then
409 +              dnl Linking with a shared library. We attempt to hardcode its
410 +              dnl directory into the executable's runpath, unless it's the
411 +              dnl standard /usr/lib.
412 +              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
413 +                dnl No hardcoding is needed.
414 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
415 +              else
416 +                dnl Use an explicit option to hardcode DIR into the resulting
417 +                dnl binary.
418 +                dnl Potentially add DIR to ltrpathdirs.
419 +                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
420 +                haveit=
421 +                for x in $ltrpathdirs; do
422 +                  if test "X$x" = "X$found_dir"; then
423 +                    haveit=yes
424 +                    break
425 +                  fi
426 +                done
427 +                if test -z "$haveit"; then
428 +                  ltrpathdirs="$ltrpathdirs $found_dir"
429 +                fi
430 +                dnl The hardcoding into $LIBNAME is system dependent.
431 +                if test "$hardcode_direct" = yes; then
432 +                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
433 +                  dnl resulting binary.
434 +                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
435 +                else
436 +                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
437 +                    dnl Use an explicit option to hardcode DIR into the resulting
438 +                    dnl binary.
439 +                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
440 +                    dnl Potentially add DIR to rpathdirs.
441 +                    dnl The rpathdirs will be appended to $LIBNAME at the end.
442 +                    haveit=
443 +                    for x in $rpathdirs; do
444 +                      if test "X$x" = "X$found_dir"; then
445 +                        haveit=yes
446 +                        break
447 +                      fi
448 +                    done
449 +                    if test -z "$haveit"; then
450 +                      rpathdirs="$rpathdirs $found_dir"
451 +                    fi
452 +                  else
453 +                    dnl Rely on "-L$found_dir".
454 +                    dnl But don't add it if it's already contained in the LDFLAGS
455 +                    dnl or the already constructed $LIBNAME
456 +                    haveit=
457 +                    for x in $LDFLAGS $LIB[]NAME; do
458 +                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
459 +                      if test "X$x" = "X-L$found_dir"; then
460 +                        haveit=yes
461 +                        break
462 +                      fi
463 +                    done
464 +                    if test -z "$haveit"; then
465 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
466 +                    fi
467 +                    if test "$hardcode_minus_L" != no; then
468 +                      dnl FIXME: Not sure whether we should use
469 +                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
470 +                      dnl here.
471 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
472 +                    else
473 +                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
474 +                      dnl here, because this doesn't fit in flags passed to the
475 +                      dnl compiler. So give up. No hardcoding. This affects only
476 +                      dnl very old systems.
477 +                      dnl FIXME: Not sure whether we should use
478 +                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
479 +                      dnl here.
480 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
481 +                    fi
482 +                  fi
483 +                fi
484 +              fi
485 +            else
486 +              if test "X$found_a" != "X"; then
487 +                dnl Linking with a static library.
488 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
489 +              else
490 +                dnl We shouldn't come here, but anyway it's good to have a
491 +                dnl fallback.
492 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
493 +              fi
494 +            fi
495 +            dnl Assume the include files are nearby.
496 +            additional_includedir=
497 +            case "$found_dir" in
498 +              */lib | */lib/)
499 +                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
500 +                additional_includedir="$basedir/include"
501 +                ;;
502 +            esac
503 +            if test "X$additional_includedir" != "X"; then
504 +              dnl Potentially add $additional_includedir to $INCNAME.
505 +              dnl But don't add it
506 +              dnl   1. if it's the standard /usr/include,
507 +              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
508 +              dnl   3. if it's already present in $CPPFLAGS or the already
509 +              dnl      constructed $INCNAME,
510 +              dnl   4. if it doesn't exist as a directory.
511 +              if test "X$additional_includedir" != "X/usr/include"; then
512 +                haveit=
513 +                if test "X$additional_includedir" = "X/usr/local/include"; then
514 +                  if test -n "$GCC"; then
515 +                    case $host_os in
516 +                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
517 +                    esac
518 +                  fi
519 +                fi
520 +                if test -z "$haveit"; then
521 +                  for x in $CPPFLAGS $INC[]NAME; do
522 +                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
523 +                    if test "X$x" = "X-I$additional_includedir"; then
524 +                      haveit=yes
525 +                      break
526 +                    fi
527 +                  done
528 +                  if test -z "$haveit"; then
529 +                    if test -d "$additional_includedir"; then
530 +                      dnl Really add $additional_includedir to $INCNAME.
531 +                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
532 +                    fi
533 +                  fi
534 +                fi
535 +              fi
536 +            fi
537 +            dnl Look for dependencies.
538 +            if test -n "$found_la"; then
539 +              dnl Read the .la file. It defines the variables
540 +              dnl dlname, library_names, old_library, dependency_libs, current,
541 +              dnl age, revision, installed, dlopen, dlpreopen, libdir.
542 +              save_libdir="$libdir"
543 +              case "$found_la" in
544 +                */* | *\\*) . "$found_la" ;;
545 +                *) . "./$found_la" ;;
546 +              esac
547 +              libdir="$save_libdir"
548 +              dnl We use only dependency_libs.
549 +              for dep in $dependency_libs; do
550 +                case "$dep" in
551 +                  -L*)
552 +                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
553 +                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
554 +                    dnl But don't add it
555 +                    dnl   1. if it's the standard /usr/lib,
556 +                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
557 +                    dnl   3. if it's already present in $LDFLAGS or the already
558 +                    dnl      constructed $LIBNAME,
559 +                    dnl   4. if it doesn't exist as a directory.
560 +                    if test "X$additional_libdir" != "X/usr/lib"; then
561 +                      haveit=
562 +                      if test "X$additional_libdir" = "X/usr/local/lib"; then
563 +                        if test -n "$GCC"; then
564 +                          case $host_os in
565 +                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
566 +                          esac
567 +                        fi
568 +                      fi
569 +                      if test -z "$haveit"; then
570 +                        haveit=
571 +                        for x in $LDFLAGS $LIB[]NAME; do
572 +                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
573 +                          if test "X$x" = "X-L$additional_libdir"; then
574 +                            haveit=yes
575 +                            break
576 +                          fi
577 +                        done
578 +                        if test -z "$haveit"; then
579 +                          if test -d "$additional_libdir"; then
580 +                            dnl Really add $additional_libdir to $LIBNAME.
581 +                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
582 +                          fi
583 +                        fi
584 +                        haveit=
585 +                        for x in $LDFLAGS $LTLIB[]NAME; do
586 +                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
587 +                          if test "X$x" = "X-L$additional_libdir"; then
588 +                            haveit=yes
589 +                            break
590 +                          fi
591 +                        done
592 +                        if test -z "$haveit"; then
593 +                          if test -d "$additional_libdir"; then
594 +                            dnl Really add $additional_libdir to $LTLIBNAME.
595 +                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
596 +                          fi
597 +                        fi
598 +                      fi
599 +                    fi
600 +                    ;;
601 +                  -R*)
602 +                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
603 +                    if test "$enable_rpath" != no; then
604 +                      dnl Potentially add DIR to rpathdirs.
605 +                      dnl The rpathdirs will be appended to $LIBNAME at the end.
606 +                      haveit=
607 +                      for x in $rpathdirs; do
608 +                        if test "X$x" = "X$dir"; then
609 +                          haveit=yes
610 +                          break
611 +                        fi
612 +                      done
613 +                      if test -z "$haveit"; then
614 +                        rpathdirs="$rpathdirs $dir"
615 +                      fi
616 +                      dnl Potentially add DIR to ltrpathdirs.
617 +                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
618 +                      haveit=
619 +                      for x in $ltrpathdirs; do
620 +                        if test "X$x" = "X$dir"; then
621 +                          haveit=yes
622 +                          break
623 +                        fi
624 +                      done
625 +                      if test -z "$haveit"; then
626 +                        ltrpathdirs="$ltrpathdirs $dir"
627 +                      fi
628 +                    fi
629 +                    ;;
630 +                  -l*)
631 +                    dnl Handle this in the next round.
632 +                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
633 +                    ;;
634 +                  *.la)
635 +                    dnl Handle this in the next round. Throw away the .la's
636 +                    dnl directory; it is already contained in a preceding -L
637 +                    dnl option.
638 +                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
639 +                    ;;
640 +                  *)
641 +                    dnl Most likely an immediate library name.
642 +                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
643 +                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
644 +                    ;;
645 +                esac
646 +              done
647 +            fi
648 +          else
649 +            dnl Didn't find the library; assume it is in the system directories
650 +            dnl known to the linker and runtime loader. (All the system
651 +            dnl directories known to the linker should also be known to the
652 +            dnl runtime loader, otherwise the system is severely misconfigured.)
653 +            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
654 +            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
655 +          fi
656 +        fi
657 +      fi
658 +    done
659 +  done
660 +  if test "X$rpathdirs" != "X"; then
661 +    if test -n "$hardcode_libdir_separator"; then
662 +      dnl Weird platform: only the last -rpath option counts, the user must
663 +      dnl pass all path elements in one option. We can arrange that for a
664 +      dnl single library, but not when more than one $LIBNAMEs are used.
665 +      alldirs=
666 +      for found_dir in $rpathdirs; do
667 +        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
668 +      done
669 +      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
670 +      acl_save_libdir="$libdir"
671 +      libdir="$alldirs"
672 +      eval flag=\"$hardcode_libdir_flag_spec\"
673 +      libdir="$acl_save_libdir"
674 +      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
675 +    else
676 +      dnl The -rpath options are cumulative.
677 +      for found_dir in $rpathdirs; do
678 +        acl_save_libdir="$libdir"
679 +        libdir="$found_dir"
680 +        eval flag=\"$hardcode_libdir_flag_spec\"
681 +        libdir="$acl_save_libdir"
682 +        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
683 +      done
684 +    fi
685 +  fi
686 +  if test "X$ltrpathdirs" != "X"; then
687 +    dnl When using libtool, the option that works for both libraries and
688 +    dnl executables is -R. The -R options are cumulative.
689 +    for found_dir in $ltrpathdirs; do
690 +      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
691 +    done
692 +  fi
693 +])
694 +
695 +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
696 +dnl unless already present in VAR.
697 +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
698 +dnl contains two or three consecutive elements that belong together.
699 +AC_DEFUN([AC_LIB_APPENDTOVAR],
700 +[
701 +  for element in [$2]; do
702 +    haveit=
703 +    for x in $[$1]; do
704 +      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
705 +      if test "X$x" = "X$element"; then
706 +        haveit=yes
707 +        break
708 +      fi
709 +    done
710 +    if test -z "$haveit"; then
711 +      [$1]="${[$1]}${[$1]:+ }$element"
712 +    fi
713 +  done
714 +])
715 +
716 +# lib-ld.m4 serial 3 (gettext-0.13)
717 +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
718 +dnl This file is free software; the Free Software Foundation
719 +dnl gives unlimited permission to copy and/or distribute it,
720 +dnl with or without modifications, as long as this notice is preserved.
721 +
722 +dnl Subroutines of libtool.m4,
723 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
724 +dnl with libtool.m4.
725 +
726 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
727 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
728 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
729 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
730 +case `$LD -v 2>&1 </dev/null` in
731 +*GNU* | *'with BFD'*)
732 +  acl_cv_prog_gnu_ld=yes ;;
733 +*)
734 +  acl_cv_prog_gnu_ld=no ;;
735 +esac])
736 +with_gnu_ld=$acl_cv_prog_gnu_ld
737 +])
738 +
739 +dnl From libtool-1.4. Sets the variable LD.
740 +AC_DEFUN([AC_LIB_PROG_LD],
741 +[AC_ARG_WITH(gnu-ld,
742 +[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
743 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
744 +AC_REQUIRE([AC_PROG_CC])dnl
745 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
746 +# Prepare PATH_SEPARATOR.
747 +# The user is always right.
748 +if test "${PATH_SEPARATOR+set}" != set; then
749 +  echo "#! /bin/sh" >conf$$.sh
750 +  echo  "exit 0"   >>conf$$.sh
751 +  chmod +x conf$$.sh
752 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
753 +    PATH_SEPARATOR=';'
754 +  else
755 +    PATH_SEPARATOR=:
756 +  fi
757 +  rm -f conf$$.sh
758 +fi
759 +ac_prog=ld
760 +if test "$GCC" = yes; then
761 +  # Check if gcc -print-prog-name=ld gives a path.
762 +  AC_MSG_CHECKING([for ld used by GCC])
763 +  case $host in
764 +  *-*-mingw*)
765 +    # gcc leaves a trailing carriage return which upsets mingw
766 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
767 +  *)
768 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
769 +  esac
770 +  case $ac_prog in
771 +    # Accept absolute paths.
772 +    [[\\/]* | [A-Za-z]:[\\/]*)]
773 +      [re_direlt='/[^/][^/]*/\.\./']
774 +      # Canonicalize the path of ld
775 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
776 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
777 +       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
778 +      done
779 +      test -z "$LD" && LD="$ac_prog"
780 +      ;;
781 +  "")
782 +    # If it fails, then pretend we aren't using GCC.
783 +    ac_prog=ld
784 +    ;;
785 +  *)
786 +    # If it is relative, then search for the first ld in PATH.
787 +    with_gnu_ld=unknown
788 +    ;;
789 +  esac
790 +elif test "$with_gnu_ld" = yes; then
791 +  AC_MSG_CHECKING([for GNU ld])
792 +else
793 +  AC_MSG_CHECKING([for non-GNU ld])
794 +fi
795 +AC_CACHE_VAL(acl_cv_path_LD,
796 +[if test -z "$LD"; then
797 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
798 +  for ac_dir in $PATH; do
799 +    test -z "$ac_dir" && ac_dir=.
800 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
801 +      acl_cv_path_LD="$ac_dir/$ac_prog"
802 +      # Check to see if the program is GNU ld.  I'd rather use --version,
803 +      # but apparently some GNU ld's only accept -v.
804 +      # Break only if it was the GNU/non-GNU ld that we prefer.
805 +      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
806 +      *GNU* | *'with BFD'*)
807 +       test "$with_gnu_ld" != no && break ;;
808 +      *)
809 +       test "$with_gnu_ld" != yes && break ;;
810 +      esac
811 +    fi
812 +  done
813 +  IFS="$ac_save_ifs"
814 +else
815 +  acl_cv_path_LD="$LD" # Let the user override the test with a path.
816 +fi])
817 +LD="$acl_cv_path_LD"
818 +if test -n "$LD"; then
819 +  AC_MSG_RESULT($LD)
820 +else
821 +  AC_MSG_RESULT(no)
822 +fi
823 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
824 +AC_LIB_PROG_LD_GNU
825 +])
826 +
827  # Like AC_CONFIG_HEADER, but automatically create stamp file.
828  
829  AC_DEFUN([AM_CONFIG_HEADER],
830 @@ -164,12 +983,64 @@
831  AC_PROG_LEX
832  AC_DECL_YYTEXT])
833  
834 -# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
835 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
836  
837 -# serial 46 AC_PROG_LIBTOOL
838 +# serial 47 AC_PROG_LIBTOOL
839 +# Debian $Rev$
840  
841 +
842 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
843 +# -----------------------------------------------------------
844 +# If this macro is not defined by Autoconf, define it here.
845 +m4_ifdef([AC_PROVIDE_IFELSE],
846 +         [],
847 +         [m4_define([AC_PROVIDE_IFELSE],
848 +                [m4_ifdef([AC_PROVIDE_$1],
849 +                          [$2], [$3])])])
850 +
851 +
852 +# AC_PROG_LIBTOOL
853 +# ---------------
854  AC_DEFUN([AC_PROG_LIBTOOL],
855 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
856 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
857 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
858 +  AC_PROVIDE_IFELSE([AC_PROG_CXX],
859 +    [AC_LIBTOOL_CXX],
860 +    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
861 +  ])])
862 +dnl And a similar setup for Fortran 77 support
863 +  AC_PROVIDE_IFELSE([AC_PROG_F77],
864 +    [AC_LIBTOOL_F77],
865 +    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
866 +])])
867 +
868 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
869 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
870 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
871 +  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
872 +    [AC_LIBTOOL_GCJ],
873 +    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
874 +      [AC_LIBTOOL_GCJ],
875 +      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
876 +       [AC_LIBTOOL_GCJ],
877 +      [ifdef([AC_PROG_GCJ],
878 +            [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
879 +       ifdef([A][M_PROG_GCJ],
880 +            [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
881 +       ifdef([LT_AC_PROG_GCJ],
882 +            [define([LT_AC_PROG_GCJ],
883 +               defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
884 +])])# AC_PROG_LIBTOOL
885 +
886 +
887 +# _AC_PROG_LIBTOOL
888 +# ----------------
889 +AC_DEFUN([_AC_PROG_LIBTOOL],
890  [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
891 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
892 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
893 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
894  
895  # This can be used to rebuild libtool when needed
896  LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
897 @@ -180,10 +1051,13 @@
898  
899  # Prevent multiple expansion
900  define([AC_PROG_LIBTOOL], [])
901 -])
902 +])# _AC_PROG_LIBTOOL
903  
904 +
905 +# AC_LIBTOOL_SETUP
906 +# ----------------
907  AC_DEFUN([AC_LIBTOOL_SETUP],
908 -[AC_PREREQ(2.13)dnl
909 +[AC_PREREQ(2.50)dnl
910  AC_REQUIRE([AC_ENABLE_SHARED])dnl
911  AC_REQUIRE([AC_ENABLE_STATIC])dnl
912  AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
913 @@ -193,15 +1067,103 @@
914  AC_REQUIRE([AC_PROG_LD])dnl
915  AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
916  AC_REQUIRE([AC_PROG_NM])dnl
917 -AC_REQUIRE([LT_AC_PROG_SED])dnl
918  
919  AC_REQUIRE([AC_PROG_LN_S])dnl
920  AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
921 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
922  AC_REQUIRE([AC_OBJEXT])dnl
923  AC_REQUIRE([AC_EXEEXT])dnl
924  dnl
925  
926 +AC_LIBTOOL_SYS_MAX_CMD_LEN
927 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
928 +AC_LIBTOOL_OBJDIR
929 +
930 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
931  _LT_AC_PROG_ECHO_BACKSLASH
932 +
933 +case $host_os in
934 +aix3*)
935 +  # AIX sometimes has problems with the GCC collect2 program.  For some
936 +  # reason, if we set the COLLECT_NAMES environment variable, the problems
937 +  # vanish in a puff of smoke.
938 +  if test "X${COLLECT_NAMES+set}" != Xset; then
939 +    COLLECT_NAMES=
940 +    export COLLECT_NAMES
941 +  fi
942 +  ;;
943 +esac
944 +
945 +# Sed substitution that helps us do robust quoting.  It backslashifies
946 +# metacharacters that are still active within double-quoted strings.
947 +Xsed='sed -e s/^X//'
948 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
949 +
950 +# Same as above, but do not quote variable references.
951 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
952 +
953 +# Sed substitution to delay expansion of an escaped shell variable in a
954 +# double_quote_subst'ed string.
955 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
956 +
957 +# Sed substitution to avoid accidental globbing in evaled expressions
958 +no_glob_subst='s/\*/\\\*/g'
959 +
960 +# Constants:
961 +rm="rm -f"
962 +
963 +# Global variables:
964 +default_ofile=libtool
965 +can_build_shared=yes
966 +
967 +# All known linkers require a `.a' archive for static linking (except M$VC,
968 +# which needs '.lib').
969 +libext=a
970 +ltmain="$ac_aux_dir/ltmain.sh"
971 +ofile="$default_ofile"
972 +with_gnu_ld="$lt_cv_prog_gnu_ld"
973 +
974 +AC_CHECK_TOOL(AR, ar, false)
975 +AC_CHECK_TOOL(RANLIB, ranlib, :)
976 +AC_CHECK_TOOL(STRIP, strip, :)
977 +
978 +old_CC="$CC"
979 +old_CFLAGS="$CFLAGS"
980 +
981 +# Set sane defaults for various variables
982 +test -z "$AR" && AR=ar
983 +test -z "$AR_FLAGS" && AR_FLAGS=cru
984 +test -z "$AS" && AS=as
985 +test -z "$CC" && CC=cc
986 +test -z "$LTCC" && LTCC=$CC
987 +test -z "$DLLTOOL" && DLLTOOL=dlltool
988 +test -z "$LD" && LD=ld
989 +test -z "$LN_S" && LN_S="ln -s"
990 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
991 +test -z "$NM" && NM=nm
992 +test -z "$SED" && SED=sed
993 +test -z "$OBJDUMP" && OBJDUMP=objdump
994 +test -z "$RANLIB" && RANLIB=:
995 +test -z "$STRIP" && STRIP=:
996 +test -z "$ac_objext" && ac_objext=o
997 +
998 +# Determine commands to create old-style static archives.
999 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1000 +old_postinstall_cmds='chmod 644 $oldlib'
1001 +old_postuninstall_cmds=
1002 +
1003 +if test -n "$RANLIB"; then
1004 +  case $host_os in
1005 +  openbsd*)
1006 +    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1007 +    ;;
1008 +  *)
1009 +    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1010 +    ;;
1011 +  esac
1012 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1013 +fi
1014 +
1015  # Only perform the check for file, if the check method requires it
1016  case $deplibs_check_method in
1017  file_magic*)
1018 @@ -211,327 +1173,78 @@
1019    ;;
1020  esac
1021  
1022 -AC_CHECK_TOOL(RANLIB, ranlib, :)
1023 -AC_CHECK_TOOL(STRIP, strip, :)
1024 -
1025 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1026 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1027 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1028 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1029  enable_win32_dll=yes, enable_win32_dll=no)
1030  
1031 -AC_ARG_ENABLE(libtool-lock,
1032 -  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
1033 +AC_ARG_ENABLE([libtool-lock],
1034 +    [AC_HELP_STRING([--disable-libtool-lock],
1035 +       [avoid locking (might break parallel builds)])])
1036  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1037  
1038 -# Some flags need to be propagated to the compiler or linker for good
1039 -# libtool support.
1040 -case $host in
1041 -*-*-irix6*)
1042 -  # Find out which ABI we are using.
1043 -  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1044 -  if AC_TRY_EVAL(ac_compile); then
1045 -    case `/usr/bin/file conftest.$ac_objext` in
1046 -    *32-bit*)
1047 -      LD="${LD-ld} -32"
1048 -      ;;
1049 -    *N32*)
1050 -      LD="${LD-ld} -n32"
1051 -      ;;
1052 -    *64-bit*)
1053 -      LD="${LD-ld} -64"
1054 -      ;;
1055 -    esac
1056 -  fi
1057 -  rm -rf conftest*
1058 -  ;;
1059 +AC_ARG_WITH([pic],
1060 +    [AC_HELP_STRING([--with-pic],
1061 +       [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1062 +    [pic_mode="$withval"],
1063 +    [pic_mode=default])
1064 +test -z "$pic_mode" && pic_mode=default
1065  
1066 -*-*-sco3.2v5*)
1067 -  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1068 -  SAVE_CFLAGS="$CFLAGS"
1069 -  CFLAGS="$CFLAGS -belf"
1070 -  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1071 -    [AC_LANG_SAVE
1072 -     AC_LANG_C
1073 -     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1074 -     AC_LANG_RESTORE])
1075 -  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1076 -    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1077 -    CFLAGS="$SAVE_CFLAGS"
1078 -  fi
1079 -  ;;
1080 +# Use C for the default configuration in the libtool script
1081 +tagname=
1082 +AC_LIBTOOL_LANG_C_CONFIG
1083 +_LT_AC_TAGCONFIG
1084 +])# AC_LIBTOOL_SETUP
1085  
1086 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1087 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1088 -  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1089 -  AC_CHECK_TOOL(AS, as, false)
1090 -  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1091  
1092 -  # recent cygwin and mingw systems supply a stub DllMain which the user
1093 -  # can override, but on older systems we have to supply one
1094 -  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
1095 -    [AC_TRY_LINK([],
1096 -      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1097 -      DllMain (0, 0, 0);],
1098 -      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
1099 -
1100 -  case $host/$CC in
1101 -  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
1102 -    # old mingw systems require "-dll" to link a DLL, while more recent ones
1103 -    # require "-mdll"
1104 -    SAVE_CFLAGS="$CFLAGS"
1105 -    CFLAGS="$CFLAGS -mdll"
1106 -    AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
1107 -      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
1108 -    CFLAGS="$SAVE_CFLAGS" ;;
1109 -  *-*-cygwin* | *-*-pw32*)
1110 -    # cygwin systems need to pass --dll to the linker, and not link
1111 -    # crt.o which will require a WinMain@16 definition.
1112 -    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1113 -  esac
1114 -  ;;
1115 -  ])
1116 -esac
1117 +# _LT_AC_SYS_COMPILER
1118 +# -------------------
1119 +AC_DEFUN([_LT_AC_SYS_COMPILER],
1120 +[AC_REQUIRE([AC_PROG_CC])dnl
1121  
1122 -_LT_AC_LTCONFIG_HACK
1123 +# If no C compiler was specified, use CC.
1124 +LTCC=${LTCC-"$CC"}
1125  
1126 -])
1127 -
1128 -# AC_LIBTOOL_HEADER_ASSERT
1129 -# ------------------------
1130 -AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
1131 -[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
1132 -    [lt_cv_func_assert_works],
1133 -    [case $host in
1134 -    *-*-solaris*)
1135 -      if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
1136 -        case `$CC --version 2>/dev/null` in
1137 -        [[12]].*) lt_cv_func_assert_works=no ;;
1138 -        *)        lt_cv_func_assert_works=yes ;;
1139 -        esac
1140 -      fi
1141 -      ;;
1142 -    esac])
1143 -
1144 -if test "x$lt_cv_func_assert_works" = xyes; then
1145 -  AC_CHECK_HEADERS(assert.h)
1146 -fi
1147 -])# AC_LIBTOOL_HEADER_ASSERT
1148 -
1149 -# _LT_AC_CHECK_DLFCN
1150 -# --------------------
1151 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
1152 -[AC_CHECK_HEADERS(dlfcn.h)
1153 -])# _LT_AC_CHECK_DLFCN
1154 -
1155 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1156 -# ---------------------------------
1157 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
1158 -[AC_REQUIRE([AC_CANONICAL_HOST])
1159 -AC_REQUIRE([AC_PROG_NM])
1160 -AC_REQUIRE([AC_OBJEXT])
1161 -# Check for command to grab the raw symbol name followed by C symbol from nm.
1162 -AC_MSG_CHECKING([command to parse $NM output])
1163 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
1164 -
1165 -# These are sane defaults that work on at least a few old systems.
1166 -# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
1167 -
1168 -# Character class describing NM global symbol codes.
1169 -symcode='[[BCDEGRST]]'
1170 -
1171 -# Regexp to match symbols that can be accessed directly from C.
1172 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
1173 -
1174 -# Transform the above into a raw symbol and a C symbol.
1175 -symxfrm='\1 \2\3 \3'
1176 -
1177 -# Transform an extracted symbol line into a proper C declaration
1178 -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1179 -
1180 -# Transform an extracted symbol line into symbol name and symbol address
1181 -lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1182 -
1183 -# Define system-specific variables.
1184 -case $host_os in
1185 -aix*)
1186 -  symcode='[[BCDT]]'
1187 -  ;;
1188 -cygwin* | mingw* | pw32*)
1189 -  symcode='[[ABCDGISTW]]'
1190 -  ;;
1191 -hpux*) # Its linker distinguishes data from code symbols
1192 -  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1193 -  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1194 -  ;;
1195 -irix* | nonstopux*)
1196 -  symcode='[[BCDEGRST]]'
1197 -  ;;
1198 -osf*)
1199 -  symcode='[[BCDEGQRST]]'
1200 -  ;;
1201 -solaris* | sysv5*)
1202 -  symcode='[[BDT]]'
1203 -  ;;
1204 -sysv4)
1205 -  symcode='[[DFNSTU]]'
1206 -  ;;
1207 -esac
1208 -
1209 -# Handle CRLF in mingw tool chain
1210 -opt_cr=
1211 -case $host_os in
1212 -mingw*)
1213 -  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1214 -  ;;
1215 -esac
1216 -
1217 -# If we're using GNU nm, then use its standard symbol codes.
1218 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1219 -  symcode='[[ABCDGISTW]]'
1220 -fi
1221 -
1222 -# Try without a prefix undercore, then with it.
1223 -for ac_symprfx in "" "_"; do
1224 -
1225 -  # Write the raw and C identifiers.
1226 -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[       ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1227 -
1228 -  # Check to see that the pipe works correctly.
1229 -  pipe_works=no
1230 -  rm -f conftest*
1231 -  cat > conftest.$ac_ext <<EOF
1232 -#ifdef __cplusplus
1233 -extern "C" {
1234 -#endif
1235 -char nm_test_var;
1236 -void nm_test_func(){}
1237 -#ifdef __cplusplus
1238 -}
1239 -#endif
1240 -int main(){nm_test_var='a';nm_test_func();return(0);}
1241 -EOF
1242 -
1243 -  if AC_TRY_EVAL(ac_compile); then
1244 -    # Now try to grab the symbols.
1245 -    nlist=conftest.nm
1246 -    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
1247 -      # Try sorting and uniquifying the output.
1248 -      if sort "$nlist" | uniq > "$nlist"T; then
1249 -       mv -f "$nlist"T "$nlist"
1250 -      else
1251 -       rm -f "$nlist"T
1252 -      fi
1253 -
1254 -      # Make sure that we snagged all the symbols we need.
1255 -      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1256 -       if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1257 -         cat <<EOF > conftest.$ac_ext
1258 -#ifdef __cplusplus
1259 -extern "C" {
1260 -#endif
1261 -
1262 -EOF
1263 -         # Now generate the symbol file.
1264 -         eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1265 -
1266 -         cat <<EOF >> conftest.$ac_ext
1267 -#if defined (__STDC__) && __STDC__
1268 -# define lt_ptr void *
1269 -#else
1270 -# define lt_ptr char *
1271 -# define const
1272 -#endif
1273 -
1274 -/* The mapping between symbol names and symbols. */
1275 -const struct {
1276 -  const char *name;
1277 -  lt_ptr address;
1278 -}
1279 -lt_preloaded_symbols[[]] =
1280 -{
1281 -EOF
1282 -         sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
1283 -         cat <<\EOF >> conftest.$ac_ext
1284 -  {0, (lt_ptr) 0}
1285 -};
1286 +# Allow CC to be a program name with arguments.
1287 +compiler=$CC
1288 +])# _LT_AC_SYS_COMPILER
1289  
1290 -#ifdef __cplusplus
1291 -}
1292 -#endif
1293 -EOF
1294 -         # Now try linking the two files.
1295 -         mv conftest.$ac_objext conftstm.$ac_objext
1296 -         save_LIBS="$LIBS"
1297 -         save_CFLAGS="$CFLAGS"
1298 -         LIBS="conftstm.$ac_objext"
1299 -         CFLAGS="$CFLAGS$no_builtin_flag"
1300 -         if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
1301 -           pipe_works=yes
1302 -         fi
1303 -         LIBS="$save_LIBS"
1304 -         CFLAGS="$save_CFLAGS"
1305 -       else
1306 -         echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
1307 -       fi
1308 -      else
1309 -       echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
1310 -      fi
1311 -    else
1312 -      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
1313 -    fi
1314 -  else
1315 -    echo "$progname: failed program was:" >&AC_FD_CC
1316 -    cat conftest.$ac_ext >&5
1317 -  fi
1318 -  rm -f conftest* conftst*
1319  
1320 -  # Do not use the global_symbol_pipe unless it works.
1321 -  if test "$pipe_works" = yes; then
1322 -    break
1323 -  else
1324 -    lt_cv_sys_global_symbol_pipe=
1325 -  fi
1326 -done
1327 -])
1328 -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
1329 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
1330 -  global_symbol_to_cdecl=
1331 -  global_symbol_to_c_name_address=
1332 -else
1333 -  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
1334 -  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1335 -fi
1336 -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
1337 -then
1338 -  AC_MSG_RESULT(failed)
1339 -else
1340 -  AC_MSG_RESULT(ok)
1341 -fi
1342 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1343 +# _LT_AC_SYS_LIBPATH_AIX
1344 +# ----------------------
1345 +# Links a minimal program and checks the executable
1346 +# for the system default hardcoded library path. In most cases,
1347 +# this is /usr/lib:/lib, but when the MPI compilers are used
1348 +# the location of the communication and MPI libs are included too.
1349 +# If we don't find anything, use the default library path according
1350 +# to the aix ld manual.
1351 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1352 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1353 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1354 +}'`
1355 +# Check for a 64-bit object if we didn't find anything.
1356 +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; }
1357 +}'`; fi],[])
1358 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1359 +])# _LT_AC_SYS_LIBPATH_AIX
1360 +
1361 +
1362 +# _LT_AC_SHELL_INIT(ARG)
1363 +# ----------------------
1364 +AC_DEFUN([_LT_AC_SHELL_INIT],
1365 +[ifdef([AC_DIVERSION_NOTICE],
1366 +            [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1367 +        [AC_DIVERT_PUSH(NOTICE)])
1368 +$1
1369 +AC_DIVERT_POP
1370 +])# _LT_AC_SHELL_INIT
1371  
1372 -# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1373 -# ---------------------------------
1374 -AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
1375 -[# Find the correct PATH separator.  Usually this is `:', but
1376 -# DJGPP uses `;' like DOS.
1377 -if test "X${PATH_SEPARATOR+set}" != Xset; then
1378 -  UNAME=${UNAME-`uname 2>/dev/null`}
1379 -  case X$UNAME in
1380 -    *-DOS) lt_cv_sys_path_separator=';' ;;
1381 -    *)     lt_cv_sys_path_separator=':' ;;
1382 -  esac
1383 -  PATH_SEPARATOR=$lt_cv_sys_path_separator
1384 -fi
1385 -])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1386  
1387  # _LT_AC_PROG_ECHO_BACKSLASH
1388  # --------------------------
1389  # Add some code to the start of the generated configure script which
1390  # will find an echo command which doesn't interpret backslashes.
1391  AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1392 -[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1393 -                             [AC_DIVERT_PUSH(NOTICE)])
1394 -_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1395 -
1396 +[_LT_AC_SHELL_INIT([
1397  # Check that we are running under the correct shell.
1398  SHELL=${CONFIG_SHELL-/bin/sh}
1399  
1400 @@ -549,7 +1262,7 @@
1401  elif test "X[$]1" = X--fallback-echo; then
1402    # Avoid inline document here, it may be left over
1403    :
1404 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
1405 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1406    # Yippee, $echo works!
1407    :
1408  else
1409 @@ -561,7 +1274,7 @@
1410    # used as fallback echo
1411    shift
1412    cat <<EOF
1413 -$*
1414 +[$]*
1415  EOF
1416    exit 0
1417  fi
1418 @@ -595,8 +1308,9 @@
1419    #
1420    # So, first we look for a working echo in the user's PATH.
1421  
1422 -  IFS="${IFS=  }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1423 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1424    for dir in $PATH /usr/ucb; do
1425 +    IFS="$lt_save_ifs"
1426      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1427         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1428         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1429 @@ -605,7 +1319,7 @@
1430        break
1431      fi
1432    done
1433 -  IFS="$save_ifs"
1434 +  IFS="$lt_save_ifs"
1435  
1436    if test "X$echo" = Xecho; then
1437      # We didn't find a better echo, so look for alternatives.
1438 @@ -678,47 +1392,328 @@
1439  fi
1440  
1441  AC_SUBST(ECHO)
1442 -AC_DIVERT_POP
1443 -])# _LT_AC_PROG_ECHO_BACKSLASH
1444 +])])# _LT_AC_PROG_ECHO_BACKSLASH
1445  
1446 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1447 -#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1448 -# ------------------------------------------------------------------
1449 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1450 -[if test "$cross_compiling" = yes; then :
1451 -  [$4]
1452 -else
1453 -  AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1454 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1455 -  lt_status=$lt_dlunknown
1456 -  cat > conftest.$ac_ext <<EOF
1457 -[#line __oline__ "configure"
1458 -#include "confdefs.h"
1459  
1460 -#if HAVE_DLFCN_H
1461 -#include <dlfcn.h>
1462 -#endif
1463 +# _LT_AC_LOCK
1464 +# -----------
1465 +AC_DEFUN([_LT_AC_LOCK],
1466 +[AC_ARG_ENABLE([libtool-lock],
1467 +    [AC_HELP_STRING([--disable-libtool-lock],
1468 +       [avoid locking (might break parallel builds)])])
1469 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1470  
1471 -#include <stdio.h>
1472 +# Some flags need to be propagated to the compiler or linker for good
1473 +# libtool support.
1474 +case $host in
1475 +ia64-*-hpux*)
1476 +  # Find out which ABI we are using.
1477 +  echo 'int i;' > conftest.$ac_ext
1478 +  if AC_TRY_EVAL(ac_compile); then
1479 +    case `/usr/bin/file conftest.$ac_objext` in
1480 +    *ELF-32*)
1481 +      HPUX_IA64_MODE="32"
1482 +      ;;
1483 +    *ELF-64*)
1484 +      HPUX_IA64_MODE="64"
1485 +      ;;
1486 +    esac
1487 +  fi
1488 +  rm -rf conftest*
1489 +  ;;
1490 +*-*-irix6*)
1491 +  # Find out which ABI we are using.
1492 +  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1493 +  if AC_TRY_EVAL(ac_compile); then
1494 +   if test "$lt_cv_prog_gnu_ld" = yes; then
1495 +    case `/usr/bin/file conftest.$ac_objext` in
1496 +    *32-bit*)
1497 +      LD="${LD-ld} -melf32bsmip"
1498 +      ;;
1499 +    *N32*)
1500 +      LD="${LD-ld} -melf32bmipn32"
1501 +      ;;
1502 +    *64-bit*)
1503 +      LD="${LD-ld} -melf64bmip"
1504 +      ;;
1505 +    esac
1506 +   else
1507 +    case `/usr/bin/file conftest.$ac_objext` in
1508 +    *32-bit*)
1509 +      LD="${LD-ld} -32"
1510 +      ;;
1511 +    *N32*)
1512 +      LD="${LD-ld} -n32"
1513 +      ;;
1514 +    *64-bit*)
1515 +      LD="${LD-ld} -64"
1516 +      ;;
1517 +    esac
1518 +   fi
1519 +  fi
1520 +  rm -rf conftest*
1521 +  ;;
1522  
1523 -#ifdef RTLD_GLOBAL
1524 -#  define LT_DLGLOBAL          RTLD_GLOBAL
1525 -#else
1526 -#  ifdef DL_GLOBAL
1527 -#    define LT_DLGLOBAL                DL_GLOBAL
1528 -#  else
1529 -#    define LT_DLGLOBAL                0
1530 -#  endif
1531 -#endif
1532 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1533 +  # Find out which ABI we are using.
1534 +  echo 'int i;' > conftest.$ac_ext
1535 +  if AC_TRY_EVAL(ac_compile); then
1536 +    case "`/usr/bin/file conftest.o`" in
1537 +    *32-bit*)
1538 +      case $host in
1539 +        x86_64-*linux*)
1540 +          LD="${LD-ld} -m elf_i386"
1541 +          ;;
1542 +        ppc64-*linux*|powerpc64-*linux*)
1543 +          LD="${LD-ld} -m elf32ppclinux"
1544 +          ;;
1545 +        s390x-*linux*)
1546 +          LD="${LD-ld} -m elf_s390"
1547 +          ;;
1548 +        sparc64-*linux*)
1549 +          LD="${LD-ld} -m elf32_sparc"
1550 +          ;;
1551 +      esac
1552 +      ;;
1553 +    *64-bit*)
1554 +      case $host in
1555 +        x86_64-*linux*)
1556 +          LD="${LD-ld} -m elf_x86_64"
1557 +          ;;
1558 +        ppc*-*linux*|powerpc*-*linux*)
1559 +          LD="${LD-ld} -m elf64ppc"
1560 +          ;;
1561 +        s390*-*linux*)
1562 +          LD="${LD-ld} -m elf64_s390"
1563 +          ;;
1564 +        sparc*-*linux*)
1565 +          LD="${LD-ld} -m elf64_sparc"
1566 +          ;;
1567 +      esac
1568 +      ;;
1569 +    esac
1570 +  fi
1571 +  rm -rf conftest*
1572 +  ;;
1573  
1574 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1575 -   find out it does not work in some platform. */
1576 -#ifndef LT_DLLAZY_OR_NOW
1577 -#  ifdef RTLD_LAZY
1578 -#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
1579 -#  else
1580 -#    ifdef DL_LAZY
1581 -#      define LT_DLLAZY_OR_NOW         DL_LAZY
1582 +*-*-sco3.2v5*)
1583 +  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1584 +  SAVE_CFLAGS="$CFLAGS"
1585 +  CFLAGS="$CFLAGS -belf"
1586 +  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1587 +    [AC_LANG_PUSH(C)
1588 +     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1589 +     AC_LANG_POP])
1590 +  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1591 +    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1592 +    CFLAGS="$SAVE_CFLAGS"
1593 +  fi
1594 +  ;;
1595 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1596 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1597 +  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1598 +  AC_CHECK_TOOL(AS, as, false)
1599 +  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1600 +  ;;
1601 +  ])
1602 +esac
1603 +
1604 +need_locks="$enable_libtool_lock"
1605 +
1606 +])# _LT_AC_LOCK
1607 +
1608 +
1609 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1610 +#              [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1611 +# ----------------------------------------------------------------
1612 +# Check whether the given compiler option works
1613 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1614 +[AC_REQUIRE([LT_AC_PROG_SED])
1615 +AC_CACHE_CHECK([$1], [$2],
1616 +  [$2=no
1617 +  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1618 +   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1619 +   lt_compiler_flag="$3"
1620 +   # Insert the option either (1) after the last *FLAGS variable, or
1621 +   # (2) before a word containing "conftest.", or (3) at the end.
1622 +   # Note that $ac_compile itself does not contain backslashes and begins
1623 +   # with a dollar sign (not a hyphen), so the echo should work correctly.
1624 +   # The option is referenced via a variable to avoid confusing sed.
1625 +   lt_compile=`echo "$ac_compile" | $SED \
1626 +   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1627 +   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1628 +   -e 's:$: $lt_compiler_flag:'`
1629 +   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1630 +   (eval "$lt_compile" 2>conftest.err)
1631 +   ac_status=$?
1632 +   cat conftest.err >&AS_MESSAGE_LOG_FD
1633 +   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1634 +   if (exit $ac_status) && test -s "$ac_outfile"; then
1635 +     # The compiler can only warn and ignore the option if not recognized
1636 +     # So say no if there are warnings
1637 +     if test ! -s conftest.err; then
1638 +       $2=yes
1639 +     fi
1640 +   fi
1641 +   $rm conftest*
1642 +])
1643 +
1644 +if test x"[$]$2" = xyes; then
1645 +    ifelse([$5], , :, [$5])
1646 +else
1647 +    ifelse([$6], , :, [$6])
1648 +fi
1649 +])# AC_LIBTOOL_COMPILER_OPTION
1650 +
1651 +
1652 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1653 +#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1654 +# ------------------------------------------------------------
1655 +# Check whether the given compiler option works
1656 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1657 +[AC_CACHE_CHECK([$1], [$2],
1658 +  [$2=no
1659 +   save_LDFLAGS="$LDFLAGS"
1660 +   LDFLAGS="$LDFLAGS $3"
1661 +   printf "$lt_simple_link_test_code" > conftest.$ac_ext
1662 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1663 +     # The compiler can only warn and ignore the option if not recognized
1664 +     # So say no if there are warnings
1665 +     if test -s conftest.err; then
1666 +       # Append any errors to the config.log.
1667 +       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1668 +     else
1669 +       $2=yes
1670 +     fi
1671 +   fi
1672 +   $rm conftest*
1673 +   LDFLAGS="$save_LDFLAGS"
1674 +])
1675 +
1676 +if test x"[$]$2" = xyes; then
1677 +    ifelse([$4], , :, [$4])
1678 +else
1679 +    ifelse([$5], , :, [$5])
1680 +fi
1681 +])# AC_LIBTOOL_LINKER_OPTION
1682 +
1683 +
1684 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
1685 +# --------------------------
1686 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1687 +[# find the maximum length of command line arguments
1688 +AC_MSG_CHECKING([the maximum length of command line arguments])
1689 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1690 +  i=0
1691 +  teststring="ABCD"
1692 +
1693 +  case $build_os in
1694 +  msdosdjgpp*)
1695 +    # On DJGPP, this test can blow up pretty badly due to problems in libc
1696 +    # (any single argument exceeding 2000 bytes causes a buffer overrun
1697 +    # during glob expansion).  Even if it were fixed, the result of this
1698 +    # check would be larger than it should be.
1699 +    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1700 +    ;;
1701 +
1702 +  gnu*)
1703 +    # Under GNU Hurd, this test is not required because there is
1704 +    # no limit to the length of command line arguments.
1705 +    # Libtool will interpret -1 as no limit whatsoever
1706 +    lt_cv_sys_max_cmd_len=-1;
1707 +    ;;
1708 +
1709 +  cygwin* | mingw*)
1710 +    # On Win9x/ME, this test blows up -- it succeeds, but takes
1711 +    # about 5 minutes as the teststring grows exponentially.
1712 +    # Worse, since 9x/ME are not pre-emptively multitasking,
1713 +    # you end up with a "frozen" computer, even though with patience
1714 +    # the test eventually succeeds (with a max line length of 256k).
1715 +    # Instead, let's just punt: use the minimum linelength reported by
1716 +    # all of the supported platforms: 8192 (on NT/2K/XP).
1717 +    lt_cv_sys_max_cmd_len=8192;
1718 +    ;;
1719 +
1720 +  amigaos*)
1721 +    # On AmigaOS with pdksh, this test takes hours, literally.
1722 +    # So we just punt and use a minimum line length of 8192.
1723 +    lt_cv_sys_max_cmd_len=8192;
1724 +    ;;
1725 +
1726 + *)
1727 +    # If test is not a shell built-in, we'll probably end up computing a
1728 +    # maximum length that is only half of the actual maximum length, but
1729 +    # we can't tell.
1730 +    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1731 +              = "XX$teststring") >/dev/null 2>&1 &&
1732 +           new_result=`expr "X$teststring" : ".*" 2>&1` &&
1733 +           lt_cv_sys_max_cmd_len=$new_result &&
1734 +           test $i != 17 # 1/2 MB should be enough
1735 +    do
1736 +      i=`expr $i + 1`
1737 +      teststring=$teststring$teststring
1738 +    done
1739 +    teststring=
1740 +    # Add a significant safety factor because C++ compilers can tack on massive
1741 +    # amounts of additional arguments before passing them to the linker.
1742 +    # It appears as though 1/2 is a usable value.
1743 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1744 +    ;;
1745 +  esac
1746 +])
1747 +if test -n $lt_cv_sys_max_cmd_len ; then
1748 +  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1749 +else
1750 +  AC_MSG_RESULT(none)
1751 +fi
1752 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1753 +
1754 +
1755 +# _LT_AC_CHECK_DLFCN
1756 +# --------------------
1757 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
1758 +[AC_CHECK_HEADERS(dlfcn.h)dnl
1759 +])# _LT_AC_CHECK_DLFCN
1760 +
1761 +
1762 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1763 +#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1764 +# ------------------------------------------------------------------
1765 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1766 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1767 +if test "$cross_compiling" = yes; then :
1768 +  [$4]
1769 +else
1770 +  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1771 +  lt_status=$lt_dlunknown
1772 +  cat > conftest.$ac_ext <<EOF
1773 +[#line __oline__ "configure"
1774 +#include "confdefs.h"
1775 +
1776 +#if HAVE_DLFCN_H
1777 +#include <dlfcn.h>
1778 +#endif
1779 +
1780 +#include <stdio.h>
1781 +
1782 +#ifdef RTLD_GLOBAL
1783 +#  define LT_DLGLOBAL          RTLD_GLOBAL
1784 +#else
1785 +#  ifdef DL_GLOBAL
1786 +#    define LT_DLGLOBAL                DL_GLOBAL
1787 +#  else
1788 +#    define LT_DLGLOBAL                0
1789 +#  endif
1790 +#endif
1791 +
1792 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1793 +   find out it does not work in some platform. */
1794 +#ifndef LT_DLLAZY_OR_NOW
1795 +#  ifdef RTLD_LAZY
1796 +#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
1797 +#  else
1798 +#    ifdef DL_LAZY
1799 +#      define LT_DLLAZY_OR_NOW         DL_LAZY
1800  #    else
1801  #      ifdef RTLD_NOW
1802  #        define LT_DLLAZY_OR_NOW       RTLD_NOW
1803 @@ -769,10 +1764,12 @@
1804  rm -fr conftest*
1805  ])# _LT_AC_TRY_DLOPEN_SELF
1806  
1807 +
1808  # AC_LIBTOOL_DLOPEN_SELF
1809  # -------------------
1810  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1811 -[if test "x$enable_dlopen" != xyes; then
1812 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1813 +if test "x$enable_dlopen" != xyes; then
1814    enable_dlopen=unknown
1815    enable_dlopen_self=unknown
1816    enable_dlopen_self_static=unknown
1817 @@ -787,24 +1784,39 @@
1818      lt_cv_dlopen_self=yes
1819      ;;
1820  
1821 -  cygwin* | mingw* | pw32*)
1822 +  mingw* | pw32*)
1823      lt_cv_dlopen="LoadLibrary"
1824      lt_cv_dlopen_libs=
1825     ;;
1826  
1827 +  cygwin*)
1828 +    lt_cv_dlopen="dlopen"
1829 +    lt_cv_dlopen_libs=
1830 +   ;;
1831 +
1832 +  darwin*)
1833 +  # if libdl is installed we need to link against it
1834 +    AC_CHECK_LIB([dl], [dlopen],
1835 +               [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1836 +    lt_cv_dlopen="dyld"
1837 +    lt_cv_dlopen_libs=
1838 +    lt_cv_dlopen_self=yes
1839 +    ])
1840 +   ;;
1841 +
1842    *)
1843      AC_CHECK_FUNC([shl_load],
1844 -          [lt_cv_dlopen="shl_load"],
1845 +         [lt_cv_dlopen="shl_load"],
1846        [AC_CHECK_LIB([dld], [shl_load],
1847 -            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1848 +           [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1849         [AC_CHECK_FUNC([dlopen],
1850               [lt_cv_dlopen="dlopen"],
1851           [AC_CHECK_LIB([dl], [dlopen],
1852 -               [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1853 +               [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1854             [AC_CHECK_LIB([svld], [dlopen],
1855 -                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1856 +                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1857               [AC_CHECK_LIB([dld], [dld_link],
1858 -                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1859 +                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1860               ])
1861             ])
1862           ])
1863 @@ -822,7 +1834,6 @@
1864    case $lt_cv_dlopen in
1865    dlopen)
1866      save_CPPFLAGS="$CPPFLAGS"
1867 -    AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1868      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1869  
1870      save_LDFLAGS="$LDFLAGS"
1871 @@ -866,707 +1877,1838 @@
1872  fi
1873  ])# AC_LIBTOOL_DLOPEN_SELF
1874  
1875 -AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1876 -[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1877 -# Sed substitution that helps us do robust quoting.  It backslashifies
1878 -# metacharacters that are still active within double-quoted strings.
1879 -Xsed='sed -e s/^X//'
1880 -sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1881 -
1882 -# Same as above, but do not quote variable references.
1883 -double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1884 -
1885 -# Sed substitution to delay expansion of an escaped shell variable in a
1886 -# double_quote_subst'ed string.
1887 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1888  
1889 -# Constants:
1890 -rm="rm -f"
1891 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1892 +# ---------------------------------
1893 +# Check to see if options -c and -o are simultaneously supported by compiler
1894 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1895 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1896 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1897 +  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1898 +  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1899 +   $rm -r conftest 2>/dev/null
1900 +   mkdir conftest
1901 +   cd conftest
1902 +   mkdir out
1903 +   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1904 +
1905 +   lt_compiler_flag="-o out/conftest2.$ac_objext"
1906 +   # Insert the option either (1) after the last *FLAGS variable, or
1907 +   # (2) before a word containing "conftest.", or (3) at the end.
1908 +   # Note that $ac_compile itself does not contain backslashes and begins
1909 +   # with a dollar sign (not a hyphen), so the echo should work correctly.
1910 +   lt_compile=`echo "$ac_compile" | $SED \
1911 +   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1912 +   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1913 +   -e 's:$: $lt_compiler_flag:'`
1914 +   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1915 +   (eval "$lt_compile" 2>out/conftest.err)
1916 +   ac_status=$?
1917 +   cat out/conftest.err >&AS_MESSAGE_LOG_FD
1918 +   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1919 +   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1920 +   then
1921 +     # The compiler can only warn and ignore the option if not recognized
1922 +     # So say no if there are warnings
1923 +     if test ! -s out/conftest.err; then
1924 +       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1925 +     fi
1926 +   fi
1927 +   chmod u+w .
1928 +   $rm conftest*
1929 +   # SGI C++ compiler will create directory out/ii_files/ for
1930 +   # template instantiation
1931 +   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1932 +   $rm out/* && rmdir out
1933 +   cd ..
1934 +   rmdir conftest
1935 +   $rm conftest*
1936 +])
1937 +])# AC_LIBTOOL_PROG_CC_C_O
1938  
1939 -# Global variables:
1940 -default_ofile=libtool
1941 -can_build_shared=yes
1942  
1943 -# All known linkers require a `.a' archive for static linking (except M$VC,
1944 -# which needs '.lib').
1945 -libext=a
1946 -ltmain="$ac_aux_dir/ltmain.sh"
1947 -ofile="$default_ofile"
1948 -with_gnu_ld="$lt_cv_prog_gnu_ld"
1949 -need_locks="$enable_libtool_lock"
1950 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1951 +# -----------------------------------------
1952 +# Check to see if we can do hard links to lock some files if needed
1953 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1954 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1955  
1956 -old_CC="$CC"
1957 -old_CFLAGS="$CFLAGS"
1958 +hard_links="nottested"
1959 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1960 +  # do not overwrite the value of need_locks provided by the user
1961 +  AC_MSG_CHECKING([if we can lock with hard links])
1962 +  hard_links=yes
1963 +  $rm conftest*
1964 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1965 +  touch conftest.a
1966 +  ln conftest.a conftest.b 2>&5 || hard_links=no
1967 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1968 +  AC_MSG_RESULT([$hard_links])
1969 +  if test "$hard_links" = no; then
1970 +    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1971 +    need_locks=warn
1972 +  fi
1973 +else
1974 +  need_locks=no
1975 +fi
1976 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1977  
1978 -# Set sane defaults for various variables
1979 -test -z "$AR" && AR=ar
1980 -test -z "$AR_FLAGS" && AR_FLAGS=cru
1981 -test -z "$AS" && AS=as
1982 -test -z "$CC" && CC=cc
1983 -test -z "$DLLTOOL" && DLLTOOL=dlltool
1984 -test -z "$LD" && LD=ld
1985 -test -z "$LN_S" && LN_S="ln -s"
1986 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
1987 -test -z "$NM" && NM=nm
1988 -test -z "$OBJDUMP" && OBJDUMP=objdump
1989 -test -z "$RANLIB" && RANLIB=:
1990 -test -z "$STRIP" && STRIP=:
1991 -test -z "$ac_objext" && ac_objext=o
1992  
1993 -if test x"$host" != x"$build"; then
1994 -  ac_tool_prefix=${host_alias}-
1995 +# AC_LIBTOOL_OBJDIR
1996 +# -----------------
1997 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1998 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1999 +[rm -f .libs 2>/dev/null
2000 +mkdir .libs 2>/dev/null
2001 +if test -d .libs; then
2002 +  lt_cv_objdir=.libs
2003  else
2004 -  ac_tool_prefix=
2005 +  # MS-DOS does not allow filenames that begin with a dot.
2006 +  lt_cv_objdir=_libs
2007  fi
2008 +rmdir .libs 2>/dev/null])
2009 +objdir=$lt_cv_objdir
2010 +])# AC_LIBTOOL_OBJDIR
2011  
2012 -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2013 -case $host_os in
2014 -linux-gnu*) ;;
2015 -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2016 -esac
2017  
2018 -case $host_os in
2019 -aix3*)
2020 -  # AIX sometimes has problems with the GCC collect2 program.  For some
2021 -  # reason, if we set the COLLECT_NAMES environment variable, the problems
2022 -  # vanish in a puff of smoke.
2023 -  if test "X${COLLECT_NAMES+set}" != Xset; then
2024 -    COLLECT_NAMES=
2025 -    export COLLECT_NAMES
2026 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2027 +# ----------------------------------------------
2028 +# Check hardcoding attributes.
2029 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2030 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
2031 +_LT_AC_TAGVAR(hardcode_action, $1)=
2032 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2033 +   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
2034 +   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2035 +
2036 +  # We can hardcode non-existant directories.
2037 +  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2038 +     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2039 +     # have to relink, otherwise we might link with an installed library
2040 +     # when we should be linking with a yet-to-be-installed one
2041 +     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2042 +     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2043 +    # Linking always hardcodes the temporary library directory.
2044 +    _LT_AC_TAGVAR(hardcode_action, $1)=relink
2045 +  else
2046 +    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2047 +    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2048    fi
2049 -  ;;
2050 -esac
2051 +else
2052 +  # We cannot hardcode anything, or else we can only hardcode existing
2053 +  # directories.
2054 +  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2055 +fi
2056 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2057  
2058 -# Determine commands to create old-style static archives.
2059 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2060 -old_postinstall_cmds='chmod 644 $oldlib'
2061 -old_postuninstall_cmds=
2062 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2063 +  # Fast installation is not supported
2064 +  enable_fast_install=no
2065 +elif test "$shlibpath_overrides_runpath" = yes ||
2066 +     test "$enable_shared" = no; then
2067 +  # Fast installation is not necessary
2068 +  enable_fast_install=needless
2069 +fi
2070 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2071  
2072 -if test -n "$RANLIB"; then
2073 +
2074 +# AC_LIBTOOL_SYS_LIB_STRIP
2075 +# ------------------------
2076 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2077 +[striplib=
2078 +old_striplib=
2079 +AC_MSG_CHECKING([whether stripping libraries is possible])
2080 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2081 +  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2082 +  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2083 +  AC_MSG_RESULT([yes])
2084 +else
2085 +# FIXME - insert some real tests, host_os isn't really good enough
2086    case $host_os in
2087 -  openbsd*)
2088 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2089 -    ;;
2090 -  *)
2091 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2092 +   darwin*)
2093 +       if test -n "$STRIP" ; then
2094 +         striplib="$STRIP -x"
2095 +         AC_MSG_RESULT([yes])
2096 +       else
2097 +  AC_MSG_RESULT([no])
2098 +fi
2099 +       ;;
2100 +   *)
2101 +  AC_MSG_RESULT([no])
2102      ;;
2103    esac
2104 -  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2105  fi
2106 +])# AC_LIBTOOL_SYS_LIB_STRIP
2107  
2108 -# Allow CC to be a program name with arguments.
2109 -set dummy $CC
2110 -compiler="[$]2"
2111  
2112 -AC_MSG_CHECKING([for objdir])
2113 -rm -f .libs 2>/dev/null
2114 -mkdir .libs 2>/dev/null
2115 -if test -d .libs; then
2116 -  objdir=.libs
2117 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2118 +# -----------------------------
2119 +# PORTME Fill in your ld.so characteristics
2120 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2121 +[AC_MSG_CHECKING([dynamic linker characteristics])
2122 +library_names_spec=
2123 +libname_spec='lib$name'
2124 +soname_spec=
2125 +shrext_cmds=".so"
2126 +postinstall_cmds=
2127 +postuninstall_cmds=
2128 +finish_cmds=
2129 +finish_eval=
2130 +shlibpath_var=
2131 +shlibpath_overrides_runpath=unknown
2132 +version_type=none
2133 +dynamic_linker="$host_os ld.so"
2134 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2135 +if test "$GCC" = yes; then
2136 +  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2137 +  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2138 +    # if the path contains ";" then we assume it to be the separator
2139 +    # otherwise default to the standard path separator (i.e. ":") - it is
2140 +    # assumed that no part of a normal pathname contains ";" but that should
2141 +    # okay in the real world where ";" in dirpaths is itself problematic.
2142 +    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2143 +  else
2144 +    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2145 +  fi
2146  else
2147 -  # MS-DOS does not allow filenames that begin with a dot.
2148 -  objdir=_libs
2149 +  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2150  fi
2151 -rmdir .libs 2>/dev/null
2152 -AC_MSG_RESULT($objdir)
2153 -
2154 +need_lib_prefix=unknown
2155 +hardcode_into_libs=no
2156  
2157 -AC_ARG_WITH(pic,
2158 -[  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
2159 -pic_mode="$withval", pic_mode=default)
2160 -test -z "$pic_mode" && pic_mode=default
2161 +# when you set need_version to no, make sure it does not cause -set_version
2162 +# flags to be left without arguments
2163 +need_version=unknown
2164  
2165 -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2166 -# in isolation, and that seeing it set (from the cache) indicates that
2167 -# the associated values are set (in the cache) correctly too.
2168 -AC_MSG_CHECKING([for $compiler option to produce PIC])
2169 -AC_CACHE_VAL(lt_cv_prog_cc_pic,
2170 -[ lt_cv_prog_cc_pic=
2171 -  lt_cv_prog_cc_shlib=
2172 -  lt_cv_prog_cc_wl=
2173 -  lt_cv_prog_cc_static=
2174 -  lt_cv_prog_cc_no_builtin=
2175 -  lt_cv_prog_cc_can_build_shared=$can_build_shared
2176 +case $host_os in
2177 +aix3*)
2178 +  version_type=linux
2179 +  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2180 +  shlibpath_var=LIBPATH
2181  
2182 -  if test "$GCC" = yes; then
2183 -    lt_cv_prog_cc_wl='-Wl,'
2184 -    lt_cv_prog_cc_static='-static'
2185 +  # AIX 3 has no versioning support, so we append a major version to the name.
2186 +  soname_spec='${libname}${release}${shared_ext}$major'
2187 +  ;;
2188  
2189 -    case $host_os in
2190 -    aix*)
2191 -      # Below there is a dirty hack to force normal static linking with -ldl
2192 -      # The problem is because libdl dynamically linked with both libc and
2193 -      # libC (AIX C++ library), which obviously doesn't included in libraries
2194 -      # list by gcc. This cause undefined symbols with -static flags.
2195 -      # This hack allows C programs to be linked with "-static -ldl", but
2196 -      # not sure about C++ programs.
2197 -      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2198 -      ;;
2199 -    amigaos*)
2200 -      # FIXME: we need at least 68020 code to build shared libraries, but
2201 -      # adding the `-m68020' flag to GCC prevents building anything better,
2202 -      # like `-m68040'.
2203 -      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2204 -      ;;
2205 -    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2206 -      # PIC is the default for these OSes.
2207 -      ;;
2208 -    darwin* | rhapsody*)
2209 -      # PIC is the default on this platform
2210 -      # Common symbols not allowed in MH_DYLIB files
2211 -      lt_cv_prog_cc_pic='-fno-common'
2212 -      ;;
2213 -    cygwin* | mingw* | pw32* | os2*)
2214 -      # This hack is so that the source file can tell whether it is being
2215 -      # built for inclusion in a dll (and should export symbols for example).
2216 -      lt_cv_prog_cc_pic='-DDLL_EXPORT'
2217 -      ;;
2218 -    sysv4*MP*)
2219 -      if test -d /usr/nec; then
2220 -        lt_cv_prog_cc_pic=-Kconform_pic
2221 -      fi
2222 -      ;;
2223 -    *)
2224 -      lt_cv_prog_cc_pic='-fPIC'
2225 -      ;;
2226 -    esac
2227 +aix4* | aix5*)
2228 +  version_type=linux
2229 +  need_lib_prefix=no
2230 +  need_version=no
2231 +  hardcode_into_libs=yes
2232 +  if test "$host_cpu" = ia64; then
2233 +    # AIX 5 supports IA64
2234 +    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2235 +    shlibpath_var=LD_LIBRARY_PATH
2236    else
2237 -    # PORTME Check for PIC flags for the system compiler.
2238 +    # With GCC up to 2.95.x, collect2 would create an import file
2239 +    # for dependence libraries.  The import file would start with
2240 +    # the line `#! .'.  This would cause the generated library to
2241 +    # depend on `.', always an invalid library.  This was fixed in
2242 +    # development snapshots of GCC prior to 3.0.
2243      case $host_os in
2244 -    aix3* | aix4* | aix5*)
2245 -      lt_cv_prog_cc_wl='-Wl,'
2246 -      # All AIX code is PIC.
2247 -      if test "$host_cpu" = ia64; then
2248 -       # AIX 5 now supports IA64 processor
2249 -       lt_cv_prog_cc_static='-Bstatic'
2250 +      aix4 | aix4.[[01]] | aix4.[[01]].*)
2251 +      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2252 +          echo ' yes '
2253 +          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2254 +       :
2255        else
2256 -       lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2257 +       can_build_shared=no
2258        fi
2259        ;;
2260 +    esac
2261 +    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2262 +    # soname into executable. Probably we can add versioning support to
2263 +    # collect2, so additional links can be useful in future.
2264 +    if test "$aix_use_runtimelinking" = yes; then
2265 +      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2266 +      # instead of lib<name>.a to let people know that these are not
2267 +      # typical AIX shared libraries.
2268 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2269 +    else
2270 +      # We preserve .a as extension for shared libraries through AIX4.2
2271 +      # and later when we are not doing run time linking.
2272 +      library_names_spec='${libname}${release}.a $libname.a'
2273 +      soname_spec='${libname}${release}${shared_ext}$major'
2274 +    fi
2275 +    shlibpath_var=LIBPATH
2276 +  fi
2277 +  ;;
2278  
2279 -    hpux9* | hpux10* | hpux11*)
2280 -      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2281 -      lt_cv_prog_cc_wl='-Wl,'
2282 -      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2283 -      lt_cv_prog_cc_pic='+Z'
2284 -      ;;
2285 -
2286 -    irix5* | irix6* | nonstopux*)
2287 -      lt_cv_prog_cc_wl='-Wl,'
2288 -      lt_cv_prog_cc_static='-non_shared'
2289 -      # PIC (with -KPIC) is the default.
2290 -      ;;
2291 -
2292 -    cygwin* | mingw* | pw32* | os2*)
2293 -      # This hack is so that the source file can tell whether it is being
2294 -      # built for inclusion in a dll (and should export symbols for example).
2295 -      lt_cv_prog_cc_pic='-DDLL_EXPORT'
2296 -      ;;
2297 -
2298 -    newsos6)
2299 -      lt_cv_prog_cc_pic='-KPIC'
2300 -      lt_cv_prog_cc_static='-Bstatic'
2301 -      ;;
2302 -
2303 -    osf3* | osf4* | osf5*)
2304 -      # All OSF/1 code is PIC.
2305 -      lt_cv_prog_cc_wl='-Wl,'
2306 -      lt_cv_prog_cc_static='-non_shared'
2307 -      ;;
2308 +amigaos*)
2309 +  library_names_spec='$libname.ixlibrary $libname.a'
2310 +  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2311 +  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2312 +  ;;
2313  
2314 -    sco3.2v5*)
2315 -      lt_cv_prog_cc_pic='-Kpic'
2316 -      lt_cv_prog_cc_static='-dn'
2317 -      lt_cv_prog_cc_shlib='-belf'
2318 -      ;;
2319 +beos*)
2320 +  library_names_spec='${libname}${shared_ext}'
2321 +  dynamic_linker="$host_os ld.so"
2322 +  shlibpath_var=LIBRARY_PATH
2323 +  ;;
2324  
2325 -    solaris*)
2326 -      lt_cv_prog_cc_pic='-KPIC'
2327 -      lt_cv_prog_cc_static='-Bstatic'
2328 -      lt_cv_prog_cc_wl='-Wl,'
2329 -      ;;
2330 +bsdi4*)
2331 +  version_type=linux
2332 +  need_version=no
2333 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2334 +  soname_spec='${libname}${release}${shared_ext}$major'
2335 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2336 +  shlibpath_var=LD_LIBRARY_PATH
2337 +  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2338 +  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2339 +  # the default ld.so.conf also contains /usr/contrib/lib and
2340 +  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2341 +  # libtool to hard-code these into programs
2342 +  ;;
2343  
2344 -    sunos4*)
2345 -      lt_cv_prog_cc_pic='-PIC'
2346 -      lt_cv_prog_cc_static='-Bstatic'
2347 -      lt_cv_prog_cc_wl='-Qoption ld '
2348 -      ;;
2349 +cygwin* | mingw* | pw32*)
2350 +  version_type=windows
2351 +  shrext_cmds=".dll"
2352 +  need_version=no
2353 +  need_lib_prefix=no
2354  
2355 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2356 -      lt_cv_prog_cc_pic='-KPIC'
2357 -      lt_cv_prog_cc_static='-Bstatic'
2358 -      lt_cv_prog_cc_wl='-Wl,'
2359 -      ;;
2360 +  case $GCC,$host_os in
2361 +  yes,cygwin* | yes,mingw* | yes,pw32*)
2362 +    library_names_spec='$libname.dll.a'
2363 +    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2364 +    postinstall_cmds='base_file=`basename \${file}`~
2365 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2366 +      dldir=$destdir/`dirname \$dlpath`~
2367 +      test -d \$dldir || mkdir -p \$dldir~
2368 +      $install_prog $dir/$dlname \$dldir/$dlname'
2369 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2370 +      dlpath=$dir/\$dldll~
2371 +       $rm \$dlpath'
2372 +    shlibpath_overrides_runpath=yes
2373  
2374 -    uts4*)
2375 -      lt_cv_prog_cc_pic='-pic'
2376 -      lt_cv_prog_cc_static='-Bstatic'
2377 +    case $host_os in
2378 +    cygwin*)
2379 +      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2380 +      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2381 +      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2382        ;;
2383 -
2384 -    sysv4*MP*)
2385 -      if test -d /usr/nec ;then
2386 -       lt_cv_prog_cc_pic='-Kconform_pic'
2387 -       lt_cv_prog_cc_static='-Bstatic'
2388 +    mingw*)
2389 +      # MinGW DLLs use traditional 'lib' prefix
2390 +      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2391 +      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2392 +      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2393 +        # It is most probably a Windows format PATH printed by
2394 +        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2395 +        # path with ; separators, and with drive letters. We can handle the
2396 +        # drive letters (cygwin fileutils understands them), so leave them,
2397 +        # especially as we might pass files found there to a mingw objdump,
2398 +        # which wouldn't understand a cygwinified path. Ahh.
2399 +        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2400 +      else
2401 +        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2402        fi
2403        ;;
2404 -
2405 -    *)
2406 -      lt_cv_prog_cc_can_build_shared=no
2407 +    pw32*)
2408 +      # pw32 DLLs use 'pw' prefix rather than 'lib'
2409 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
2410        ;;
2411      esac
2412 -  fi
2413 -])
2414 -if test -z "$lt_cv_prog_cc_pic"; then
2415 -  AC_MSG_RESULT([none])
2416 -else
2417 -  AC_MSG_RESULT([$lt_cv_prog_cc_pic])
2418 -
2419 -  # Check to make sure the pic_flag actually works.
2420 -  AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
2421 -  AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
2422 -    save_CFLAGS="$CFLAGS"
2423 -    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2424 -    AC_TRY_COMPILE([], [], [dnl
2425 -      case $host_os in
2426 -      hpux9* | hpux10* | hpux11*)
2427 -       # On HP-UX, both CC and GCC only warn that PIC is supported... then
2428 -       # they create non-PIC objects.  So, if there were any warnings, we
2429 -       # assume that PIC is not supported.
2430 -       if test -s conftest.err; then
2431 -         lt_cv_prog_cc_pic_works=no
2432 -       else
2433 -         lt_cv_prog_cc_pic_works=yes
2434 -       fi
2435 -       ;;
2436 -      *)
2437 -       lt_cv_prog_cc_pic_works=yes
2438 -       ;;
2439 -      esac
2440 -    ], [dnl
2441 -      lt_cv_prog_cc_pic_works=no
2442 -    ])
2443 -    CFLAGS="$save_CFLAGS"
2444 -  ])
2445 -
2446 -  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2447 -    lt_cv_prog_cc_pic=
2448 -    lt_cv_prog_cc_can_build_shared=no
2449 -  else
2450 -    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2451 -  fi
2452 -
2453 -  AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
2454 -fi
2455 -
2456 -# Check for any special shared library compilation flags.
2457 -if test -n "$lt_cv_prog_cc_shlib"; then
2458 -  AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
2459 -  if echo "$old_CC $old_CFLAGS " | egrep -e "[[        ]]$lt_cv_prog_cc_shlib[[        ]]" >/dev/null; then :
2460 -  else
2461 -   AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
2462 -    lt_cv_prog_cc_can_build_shared=no
2463 -  fi
2464 -fi
2465 -
2466 -AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
2467 -AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
2468 -  lt_cv_prog_cc_static_works=no
2469 -  save_LDFLAGS="$LDFLAGS"
2470 -  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2471 -  AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
2472 -  LDFLAGS="$save_LDFLAGS"
2473 -])
2474 -
2475 -# Belt *and* braces to stop my trousers falling down:
2476 -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2477 -AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
2478 -
2479 -pic_flag="$lt_cv_prog_cc_pic"
2480 -special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2481 -wl="$lt_cv_prog_cc_wl"
2482 -link_static_flag="$lt_cv_prog_cc_static"
2483 -no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2484 -can_build_shared="$lt_cv_prog_cc_can_build_shared"
2485 -
2486 -
2487 -# Check to see if options -o and -c are simultaneously supported by compiler
2488 -AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
2489 -AC_CACHE_VAL([lt_cv_compiler_c_o], [
2490 -$rm -r conftest 2>/dev/null
2491 -mkdir conftest
2492 -cd conftest
2493 -echo "int some_variable = 0;" > conftest.$ac_ext
2494 -mkdir out
2495 -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2496 -# that will create temporary files in the current directory regardless of
2497 -# the output directory.  Thus, making CWD read-only will cause this test
2498 -# to fail, enabling locking or at least warning the user not to do parallel
2499 -# builds.
2500 -chmod -w .
2501 -save_CFLAGS="$CFLAGS"
2502 -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2503 -compiler_c_o=no
2504 -if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2505 -  # The compiler can only warn and ignore the option if not recognized
2506 -  # So say no if there are warnings
2507 -  if test -s out/conftest.err; then
2508 -    lt_cv_compiler_c_o=no
2509 -  else
2510 -    lt_cv_compiler_c_o=yes
2511 -  fi
2512 -else
2513 -  # Append any errors to the config.log.
2514 -  cat out/conftest.err 1>&AC_FD_CC
2515 -  lt_cv_compiler_c_o=no
2516 -fi
2517 -CFLAGS="$save_CFLAGS"
2518 -chmod u+w .
2519 -$rm conftest* out/*
2520 -rmdir out
2521 -cd ..
2522 -rmdir conftest
2523 -$rm -r conftest 2>/dev/null
2524 -])
2525 -compiler_c_o=$lt_cv_compiler_c_o
2526 -AC_MSG_RESULT([$compiler_c_o])
2527 -
2528 -if test x"$compiler_c_o" = x"yes"; then
2529 -  # Check to see if we can write to a .lo
2530 -  AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
2531 -  AC_CACHE_VAL([lt_cv_compiler_o_lo], [
2532 -  lt_cv_compiler_o_lo=no
2533 -  save_CFLAGS="$CFLAGS"
2534 -  CFLAGS="$CFLAGS -c -o conftest.lo"
2535 -  save_objext="$ac_objext"
2536 -  ac_objext=lo
2537 -  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2538 -    # The compiler can only warn and ignore the option if not recognized
2539 -    # So say no if there are warnings
2540 -    if test -s conftest.err; then
2541 -      lt_cv_compiler_o_lo=no
2542 -    else
2543 -      lt_cv_compiler_o_lo=yes
2544 -    fi
2545 -  ])
2546 -  ac_objext="$save_objext"
2547 -  CFLAGS="$save_CFLAGS"
2548 -  ])
2549 -  compiler_o_lo=$lt_cv_compiler_o_lo
2550 -  AC_MSG_RESULT([$compiler_o_lo])
2551 -else
2552 -  compiler_o_lo=no
2553 -fi
2554 -
2555 -# Check to see if we can do hard links to lock some files if needed
2556 -hard_links="nottested"
2557 -if test "$compiler_c_o" = no && test "$need_locks" != no; then
2558 -  # do not overwrite the value of need_locks provided by the user
2559 -  AC_MSG_CHECKING([if we can lock with hard links])
2560 -  hard_links=yes
2561 -  $rm conftest*
2562 -  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2563 -  touch conftest.a
2564 -  ln conftest.a conftest.b 2>&5 || hard_links=no
2565 -  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2566 -  AC_MSG_RESULT([$hard_links])
2567 -  if test "$hard_links" = no; then
2568 -    AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
2569 -    need_locks=warn
2570 -  fi
2571 -else
2572 -  need_locks=no
2573 -fi
2574 +    ;;
2575  
2576 -if test "$GCC" = yes; then
2577 -  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2578 -  AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
2579 -  echo "int some_variable = 0;" > conftest.$ac_ext
2580 -  save_CFLAGS="$CFLAGS"
2581 -  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2582 -  compiler_rtti_exceptions=no
2583 -  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2584 -    # The compiler can only warn and ignore the option if not recognized
2585 -    # So say no if there are warnings
2586 -    if test -s conftest.err; then
2587 -      compiler_rtti_exceptions=no
2588 -    else
2589 -      compiler_rtti_exceptions=yes
2590 -    fi
2591 -  ])
2592 -  CFLAGS="$save_CFLAGS"
2593 -  AC_MSG_RESULT([$compiler_rtti_exceptions])
2594 +  *)
2595 +    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2596 +    ;;
2597 +  esac
2598 +  dynamic_linker='Win32 ld.exe'
2599 +  # FIXME: first we should search . and the directory the executable is in
2600 +  shlibpath_var=PATH
2601 +  ;;
2602  
2603 -  if test "$compiler_rtti_exceptions" = "yes"; then
2604 -    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2605 +darwin* | rhapsody*)
2606 +  dynamic_linker="$host_os dyld"
2607 +  version_type=darwin
2608 +  need_lib_prefix=no
2609 +  need_version=no
2610 +  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2611 +  soname_spec='${libname}${release}${major}$shared_ext'
2612 +  shlibpath_overrides_runpath=yes
2613 +  shlibpath_var=DYLD_LIBRARY_PATH
2614 +  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2615 +  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2616 +  if test "$GCC" = yes; then
2617 +    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"`
2618    else
2619 -    no_builtin_flag=' -fno-builtin'
2620 +    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2621    fi
2622 -fi
2623 -
2624 -# See if the linker supports building shared libraries.
2625 -AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
2626 -
2627 -allow_undefined_flag=
2628 -no_undefined_flag=
2629 -need_lib_prefix=unknown
2630 -need_version=unknown
2631 -# when you set need_version to no, make sure it does not cause -set_version
2632 -# flags to be left without arguments
2633 -archive_cmds=
2634 -archive_expsym_cmds=
2635 -old_archive_from_new_cmds=
2636 -old_archive_from_expsyms_cmds=
2637 -export_dynamic_flag_spec=
2638 -whole_archive_flag_spec=
2639 -thread_safe_flag_spec=
2640 -hardcode_into_libs=no
2641 -hardcode_libdir_flag_spec=
2642 -hardcode_libdir_separator=
2643 -hardcode_direct=no
2644 -hardcode_minus_L=no
2645 -hardcode_shlibpath_var=unsupported
2646 -runpath_var=
2647 -link_all_deplibs=unknown
2648 -always_export_symbols=no
2649 -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2650 -# include_expsyms should be a list of space-separated symbols to be *always*
2651 -# included in the symbol list
2652 -include_expsyms=
2653 -# exclude_expsyms can be an egrep regular expression of symbols to exclude
2654 -# it will be wrapped by ` (' and `)$', so one must not match beginning or
2655 -# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2656 -# as well as any symbol that contains `d'.
2657 -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2658 -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2659 -# platforms (ab)use it in PIC code, but their linkers get confused if
2660 -# the symbol is explicitly referenced.  Since portable code cannot
2661 -# rely on this symbol name, it's probably fine to never include it in
2662 -# preloaded symbol tables.
2663 -extract_expsyms_cmds=
2664 +  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2665 +  ;;
2666  
2667 -case $host_os in
2668 -cygwin* | mingw* | pw32*)
2669 -  # FIXME: the MSVC++ port hasn't been tested in a loooong time
2670 -  # When not using gcc, we currently assume that we are using
2671 -  # Microsoft Visual C++.
2672 -  if test "$GCC" != yes; then
2673 -    with_gnu_ld=no
2674 -  fi
2675 +dgux*)
2676 +  version_type=linux
2677 +  need_lib_prefix=no
2678 +  need_version=no
2679 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2680 +  soname_spec='${libname}${release}${shared_ext}$major'
2681 +  shlibpath_var=LD_LIBRARY_PATH
2682    ;;
2683 -openbsd*)
2684 -  with_gnu_ld=no
2685 +
2686 +freebsd1*)
2687 +  dynamic_linker=no
2688    ;;
2689 -esac
2690  
2691 -ld_shlibs=yes
2692 -if test "$with_gnu_ld" = yes; then
2693 -  # If archive_cmds runs LD, not CC, wlarc should be empty
2694 -  wlarc='${wl}'
2695 +kfreebsd*-gnu)
2696 +  version_type=linux
2697 +  need_lib_prefix=no
2698 +  need_version=no
2699 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2700 +  soname_spec='${libname}${release}${shared_ext}$major'
2701 +  shlibpath_var=LD_LIBRARY_PATH
2702 +  shlibpath_overrides_runpath=no
2703 +  hardcode_into_libs=yes
2704 +  dynamic_linker='GNU ld.so'
2705 +  ;;
2706  
2707 -  # See if GNU ld supports shared libraries.
2708 +freebsd*)
2709 +  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2710 +  version_type=freebsd-$objformat
2711 +  case $version_type in
2712 +    freebsd-elf*)
2713 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2714 +      need_version=no
2715 +      need_lib_prefix=no
2716 +      ;;
2717 +    freebsd-*)
2718 +      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2719 +      need_version=yes
2720 +      ;;
2721 +  esac
2722 +  shlibpath_var=LD_LIBRARY_PATH
2723    case $host_os in
2724 -  aix3* | aix4* | aix5*)
2725 -    # On AIX, the GNU linker is very broken
2726 -    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
2727 -    ld_shlibs=no
2728 -    cat <<EOF 1>&2
2729 -
2730 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2731 -*** to be unable to reliably create shared libraries on AIX.
2732 -*** Therefore, libtool is disabling shared libraries support.  If you
2733 -*** really care for shared libraries, you may want to modify your PATH
2734 -*** so that a non-GNU linker is found, and then restart.
2735 -
2736 -EOF
2737 +  freebsd2*)
2738 +    shlibpath_overrides_runpath=yes
2739      ;;
2740 -
2741 -  amigaos*)
2742 -    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
2743 -    hardcode_libdir_flag_spec='-L$libdir'
2744 -    hardcode_minus_L=yes
2745 -
2746 -    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
2747 -    # that the semantics of dynamic libraries on AmigaOS, at least up
2748 -    # to version 4, is to share data among multiple programs linked
2749 -    # with the same dynamic library.  Since this doesn't match the
2750 -    # behavior of shared libraries on other platforms, we can use
2751 -    # them.
2752 -    ld_shlibs=no
2753 +  freebsd3.[01]* | freebsdelf3.[01]*)
2754 +    shlibpath_overrides_runpath=yes
2755 +    hardcode_into_libs=yes
2756      ;;
2757 -
2758 -  beos*)
2759 -    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2760 -      allow_undefined_flag=unsupported
2761 -      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2762 -      # support --undefined.  This deserves some investigation.  FIXME
2763 -      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2764 -    else
2765 -      ld_shlibs=no
2766 -    fi
2767 +  *) # from 3.2 on
2768 +    shlibpath_overrides_runpath=no
2769 +    hardcode_into_libs=yes
2770      ;;
2771 +  esac
2772 +  ;;
2773  
2774 -  cygwin* | mingw* | pw32*)
2775 -    # hardcode_libdir_flag_spec is actually meaningless, as there is
2776 -    # no search path for DLLs.
2777 -    hardcode_libdir_flag_spec='-L$libdir'
2778 -    allow_undefined_flag=unsupported
2779 -    always_export_symbols=yes
2780 -
2781 -    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
2782 -      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
2783 -      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
2784 -      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
2785 -      else $CC -o impgen impgen.c ; fi)~
2786 -      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
2787 -
2788 -    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
2789 -
2790 -    # cygwin and mingw dlls have different entry points and sets of symbols
2791 -    # to exclude.
2792 -    # FIXME: what about values for MSVC?
2793 -    dll_entry=__cygwin_dll_entry@12
2794 -    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
2795 -    case $host_os in
2796 -    mingw*)
2797 -      # mingw values
2798 -      dll_entry=_DllMainCRTStartup@12
2799 -      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
2800 -      ;;
2801 -    esac
2802 -
2803 -    # mingw and cygwin differ, and it's simplest to just exclude the union
2804 -    # of the two symbol sets.
2805 -    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
2806 -
2807 -    # recent cygwin and mingw systems supply a stub DllMain which the user
2808 -    # can override, but on older systems we have to supply one (in ltdll.c)
2809 -    if test "x$lt_cv_need_dllmain" = "xyes"; then
2810 -      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
2811 -      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
2812 -       test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
2813 -    else
2814 -      ltdll_obj=
2815 -      ltdll_cmds=
2816 -    fi
2817 -
2818 -    # Extract the symbol export list from an `--export-all' def file,
2819 -    # then regenerate the def file from the symbol export list, so that
2820 -    # the compiled dll only exports the symbol export list.
2821 -    # Be careful not to strip the DATA tag left be newer dlltools.
2822 -    export_symbols_cmds="$ltdll_cmds"'
2823 -      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
2824 -      sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
2825 -
2826 -    # If the export-symbols file already is a .def file (1st line
2827 -    # is EXPORTS), use it as is.
2828 -    # If DATA tags from a recent dlltool are present, honour them!
2829 -    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
2830 -       cp $export_symbols $output_objdir/$soname-def;
2831 -      else
2832 -       echo EXPORTS > $output_objdir/$soname-def;
2833 -       _lt_hint=1;
2834 -       cat $export_symbols | while read symbol; do
2835 -        set dummy \$symbol;
2836 -        case \[$]# in
2837 -          2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
2838 -          4) echo "   \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
2839 -          *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
2840 -        esac;
2841 -        _lt_hint=`expr 1 + \$_lt_hint`;
2842 -       done;
2843 -      fi~
2844 -      '"$ltdll_cmds"'
2845 -      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2846 -      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
2847 -      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2848 -      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
2849 -      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
2850 +gnu*)
2851 +  version_type=linux
2852 +  need_lib_prefix=no
2853 +  need_version=no
2854 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2855 +  soname_spec='${libname}${release}${shared_ext}$major'
2856 +  shlibpath_var=LD_LIBRARY_PATH
2857 +  hardcode_into_libs=yes
2858 +  ;;
2859 +
2860 +hpux9* | hpux10* | hpux11*)
2861 +  # Give a soname corresponding to the major version so that dld.sl refuses to
2862 +  # link against other versions.
2863 +  version_type=sunos
2864 +  need_lib_prefix=no
2865 +  need_version=no
2866 +  case "$host_cpu" in
2867 +  ia64*)
2868 +    shrext_cmds='.so'
2869 +    hardcode_into_libs=yes
2870 +    dynamic_linker="$host_os dld.so"
2871 +    shlibpath_var=LD_LIBRARY_PATH
2872 +    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2873 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2874 +    soname_spec='${libname}${release}${shared_ext}$major'
2875 +    if test "X$HPUX_IA64_MODE" = X32; then
2876 +      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2877 +    else
2878 +      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2879 +    fi
2880 +    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2881 +    ;;
2882 +   hppa*64*)
2883 +     shrext_cmds='.sl'
2884 +     hardcode_into_libs=yes
2885 +     dynamic_linker="$host_os dld.sl"
2886 +     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2887 +     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2888 +     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2889 +     soname_spec='${libname}${release}${shared_ext}$major'
2890 +     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2891 +     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2892 +     ;;
2893 +   *)
2894 +    shrext_cmds='.sl'
2895 +    dynamic_linker="$host_os dld.sl"
2896 +    shlibpath_var=SHLIB_PATH
2897 +    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2898 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2899 +    soname_spec='${libname}${release}${shared_ext}$major'
2900 +    ;;
2901 +  esac
2902 +  # HP-UX runs *really* slowly unless shared libraries are mode 555.
2903 +  postinstall_cmds='chmod 555 $lib'
2904 +  ;;
2905 +
2906 +irix5* | irix6* | nonstopux*)
2907 +  case $host_os in
2908 +    nonstopux*) version_type=nonstopux ;;
2909 +    *)
2910 +       if test "$lt_cv_prog_gnu_ld" = yes; then
2911 +               version_type=linux
2912 +       else
2913 +               version_type=irix
2914 +       fi ;;
2915 +  esac
2916 +  need_lib_prefix=no
2917 +  need_version=no
2918 +  soname_spec='${libname}${release}${shared_ext}$major'
2919 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2920 +  case $host_os in
2921 +  irix5* | nonstopux*)
2922 +    libsuff= shlibsuff=
2923 +    ;;
2924 +  *)
2925 +    case $LD in # libtool.m4 will add one of these switches to LD
2926 +    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2927 +      libsuff= shlibsuff= libmagic=32-bit;;
2928 +    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2929 +      libsuff=32 shlibsuff=N32 libmagic=N32;;
2930 +    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2931 +      libsuff=64 shlibsuff=64 libmagic=64-bit;;
2932 +    *) libsuff= shlibsuff= libmagic=never-match;;
2933 +    esac
2934 +    ;;
2935 +  esac
2936 +  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2937 +  shlibpath_overrides_runpath=no
2938 +  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2939 +  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2940 +  hardcode_into_libs=yes
2941 +  ;;
2942 +
2943 +# No shared lib support for Linux oldld, aout, or coff.
2944 +linux*oldld* | linux*aout* | linux*coff*)
2945 +  dynamic_linker=no
2946 +  ;;
2947 +
2948 +# This must be Linux ELF.
2949 +linux*)
2950 +  version_type=linux
2951 +  need_lib_prefix=no
2952 +  need_version=no
2953 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2954 +  soname_spec='${libname}${release}${shared_ext}$major'
2955 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2956 +  shlibpath_var=LD_LIBRARY_PATH
2957 +  shlibpath_overrides_runpath=no
2958 +  # This implies no fast_install, which is unacceptable.
2959 +  # Some rework will be needed to allow for fast_install
2960 +  # before this can be enabled.
2961 +  hardcode_into_libs=yes
2962 +
2963 +  # Append ld.so.conf contents to the search path
2964 +  if test -f /etc/ld.so.conf; then
2965 +    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2966 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2967 +  fi
2968 +
2969 +  # We used to test for /lib/ld.so.1 and disable shared libraries on
2970 +  # powerpc, because MkLinux only supported shared libraries with the
2971 +  # GNU dynamic linker.  Since this was broken with cross compilers,
2972 +  # most powerpc-linux boxes support dynamic linking these days and
2973 +  # people can always --disable-shared, the test was removed, and we
2974 +  # assume the GNU/Linux dynamic linker is in use.
2975 +  dynamic_linker='GNU/Linux ld.so'
2976 +  ;;
2977 +
2978 +netbsdelf*-gnu)
2979 +  version_type=linux
2980 +  need_lib_prefix=no
2981 +  need_version=no
2982 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2983 +  soname_spec='${libname}${release}${shared_ext}$major'
2984 +  shlibpath_var=LD_LIBRARY_PATH
2985 +  shlibpath_overrides_runpath=no
2986 +  hardcode_into_libs=yes
2987 +  dynamic_linker='NetBSD ld.elf_so'
2988 +  ;;
2989 +
2990 +knetbsd*-gnu)
2991 +  version_type=linux
2992 +  need_lib_prefix=no
2993 +  need_version=no
2994 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2995 +  soname_spec='${libname}${release}${shared_ext}$major'
2996 +  shlibpath_var=LD_LIBRARY_PATH
2997 +  shlibpath_overrides_runpath=no
2998 +  hardcode_into_libs=yes
2999 +  dynamic_linker='GNU ld.so'
3000 +  ;;
3001 +
3002 +netbsd*)
3003 +  version_type=sunos
3004 +  need_lib_prefix=no
3005 +  need_version=no
3006 +  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3007 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3008 +    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3009 +    dynamic_linker='NetBSD (a.out) ld.so'
3010 +  else
3011 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3012 +    soname_spec='${libname}${release}${shared_ext}$major'
3013 +    dynamic_linker='NetBSD ld.elf_so'
3014 +  fi
3015 +  shlibpath_var=LD_LIBRARY_PATH
3016 +  shlibpath_overrides_runpath=yes
3017 +  hardcode_into_libs=yes
3018 +  ;;
3019 +
3020 +newsos6)
3021 +  version_type=linux
3022 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3023 +  shlibpath_var=LD_LIBRARY_PATH
3024 +  shlibpath_overrides_runpath=yes
3025 +  ;;
3026 +
3027 +nto-qnx*)
3028 +  version_type=linux
3029 +  need_lib_prefix=no
3030 +  need_version=no
3031 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3032 +  soname_spec='${libname}${release}${shared_ext}$major'
3033 +  shlibpath_var=LD_LIBRARY_PATH
3034 +  shlibpath_overrides_runpath=yes
3035 +  ;;
3036 +
3037 +openbsd*)
3038 +  version_type=sunos
3039 +  need_lib_prefix=no
3040 +  need_version=yes
3041 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3042 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3043 +  shlibpath_var=LD_LIBRARY_PATH
3044 +  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3045 +    case $host_os in
3046 +      openbsd2.[[89]] | openbsd2.[[89]].*)
3047 +       shlibpath_overrides_runpath=no
3048 +       ;;
3049 +      *)
3050 +       shlibpath_overrides_runpath=yes
3051 +       ;;
3052 +      esac
3053 +  else
3054 +    shlibpath_overrides_runpath=yes
3055 +  fi
3056 +  ;;
3057 +
3058 +os2*)
3059 +  libname_spec='$name'
3060 +  shrext_cmds=".dll"
3061 +  need_lib_prefix=no
3062 +  library_names_spec='$libname${shared_ext} $libname.a'
3063 +  dynamic_linker='OS/2 ld.exe'
3064 +  shlibpath_var=LIBPATH
3065 +  ;;
3066 +
3067 +osf3* | osf4* | osf5*)
3068 +  version_type=osf
3069 +  need_lib_prefix=no
3070 +  need_version=no
3071 +  soname_spec='${libname}${release}${shared_ext}$major'
3072 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3073 +  shlibpath_var=LD_LIBRARY_PATH
3074 +  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3075 +  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3076 +  ;;
3077 +
3078 +sco3.2v5*)
3079 +  version_type=osf
3080 +  soname_spec='${libname}${release}${shared_ext}$major'
3081 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3082 +  shlibpath_var=LD_LIBRARY_PATH
3083 +  ;;
3084 +
3085 +solaris*)
3086 +  version_type=linux
3087 +  need_lib_prefix=no
3088 +  need_version=no
3089 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3090 +  soname_spec='${libname}${release}${shared_ext}$major'
3091 +  shlibpath_var=LD_LIBRARY_PATH
3092 +  shlibpath_overrides_runpath=yes
3093 +  hardcode_into_libs=yes
3094 +  # ldd complains unless libraries are executable
3095 +  postinstall_cmds='chmod +x $lib'
3096 +  ;;
3097 +
3098 +sunos4*)
3099 +  version_type=sunos
3100 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3101 +  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3102 +  shlibpath_var=LD_LIBRARY_PATH
3103 +  shlibpath_overrides_runpath=yes
3104 +  if test "$with_gnu_ld" = yes; then
3105 +    need_lib_prefix=no
3106 +  fi
3107 +  need_version=yes
3108 +  ;;
3109 +
3110 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3111 +  version_type=linux
3112 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3113 +  soname_spec='${libname}${release}${shared_ext}$major'
3114 +  shlibpath_var=LD_LIBRARY_PATH
3115 +  case $host_vendor in
3116 +    sni)
3117 +      shlibpath_overrides_runpath=no
3118 +      need_lib_prefix=no
3119 +      export_dynamic_flag_spec='${wl}-Blargedynsym'
3120 +      runpath_var=LD_RUN_PATH
3121 +      ;;
3122 +    siemens)
3123 +      need_lib_prefix=no
3124 +      ;;
3125 +    motorola)
3126 +      need_lib_prefix=no
3127 +      need_version=no
3128 +      shlibpath_overrides_runpath=no
3129 +      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3130 +      ;;
3131 +  esac
3132 +  ;;
3133 +
3134 +sysv4*MP*)
3135 +  if test -d /usr/nec ;then
3136 +    version_type=linux
3137 +    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3138 +    soname_spec='$libname${shared_ext}.$major'
3139 +    shlibpath_var=LD_LIBRARY_PATH
3140 +  fi
3141 +  ;;
3142 +
3143 +uts4*)
3144 +  version_type=linux
3145 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3146 +  soname_spec='${libname}${release}${shared_ext}$major'
3147 +  shlibpath_var=LD_LIBRARY_PATH
3148 +  ;;
3149 +
3150 +*)
3151 +  dynamic_linker=no
3152 +  ;;
3153 +esac
3154 +AC_MSG_RESULT([$dynamic_linker])
3155 +test "$dynamic_linker" = no && can_build_shared=no
3156 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3157 +
3158 +
3159 +# _LT_AC_TAGCONFIG
3160 +# ----------------
3161 +AC_DEFUN([_LT_AC_TAGCONFIG],
3162 +[AC_ARG_WITH([tags],
3163 +    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3164 +        [include additional configurations @<:@automatic@:>@])],
3165 +    [tagnames="$withval"])
3166 +
3167 +if test -f "$ltmain" && test -n "$tagnames"; then
3168 +  if test ! -f "${ofile}"; then
3169 +    AC_MSG_WARN([output file `$ofile' does not exist])
3170 +  fi
3171 +
3172 +  if test -z "$LTCC"; then
3173 +    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3174 +    if test -z "$LTCC"; then
3175 +      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3176 +    else
3177 +      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3178 +    fi
3179 +  fi
3180 +
3181 +  # Extract list of available tagged configurations in $ofile.
3182 +  # Note that this assumes the entire list is on one line.
3183 +  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3184 +
3185 +  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3186 +  for tagname in $tagnames; do
3187 +    IFS="$lt_save_ifs"
3188 +    # Check whether tagname contains only valid characters
3189 +    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3190 +    "") ;;
3191 +    *)  AC_MSG_ERROR([invalid tag name: $tagname])
3192 +       ;;
3193 +    esac
3194 +
3195 +    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3196 +    then
3197 +      AC_MSG_ERROR([tag name \"$tagname\" already exists])
3198 +    fi
3199 +
3200 +    # Update the list of available tags.
3201 +    if test -n "$tagname"; then
3202 +      echo appending configuration tag \"$tagname\" to $ofile
3203 +
3204 +      case $tagname in
3205 +      CXX)
3206 +       if test -n "$CXX" && test "X$CXX" != "Xno"; then
3207 +         AC_LIBTOOL_LANG_CXX_CONFIG
3208 +       else
3209 +         tagname=""
3210 +       fi
3211 +       ;;
3212 +
3213 +      F77)
3214 +       if test -n "$F77" && test "X$F77" != "Xno"; then
3215 +         AC_LIBTOOL_LANG_F77_CONFIG
3216 +       else
3217 +         tagname=""
3218 +       fi
3219 +       ;;
3220 +
3221 +      GCJ)
3222 +       if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3223 +         AC_LIBTOOL_LANG_GCJ_CONFIG
3224 +       else
3225 +         tagname=""
3226 +       fi
3227 +       ;;
3228 +
3229 +      RC)
3230 +       AC_LIBTOOL_LANG_RC_CONFIG
3231 +       ;;
3232 +
3233 +      *)
3234 +       AC_MSG_ERROR([Unsupported tag name: $tagname])
3235 +       ;;
3236 +      esac
3237 +
3238 +      # Append the new tag name to the list of available tags.
3239 +      if test -n "$tagname" ; then
3240 +      available_tags="$available_tags $tagname"
3241 +    fi
3242 +    fi
3243 +  done
3244 +  IFS="$lt_save_ifs"
3245 +
3246 +  # Now substitute the updated list of available tags.
3247 +  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3248 +    mv "${ofile}T" "$ofile"
3249 +    chmod +x "$ofile"
3250 +  else
3251 +    rm -f "${ofile}T"
3252 +    AC_MSG_ERROR([unable to update list of available tagged configurations.])
3253 +  fi
3254 +fi
3255 +])# _LT_AC_TAGCONFIG
3256 +
3257 +
3258 +# AC_LIBTOOL_DLOPEN
3259 +# -----------------
3260 +# enable checks for dlopen support
3261 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3262 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3263 +])# AC_LIBTOOL_DLOPEN
3264 +
3265 +
3266 +# AC_LIBTOOL_WIN32_DLL
3267 +# --------------------
3268 +# declare package support for building win32 dll's
3269 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3270 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3271 +])# AC_LIBTOOL_WIN32_DLL
3272 +
3273 +
3274 +# AC_ENABLE_SHARED([DEFAULT])
3275 +# ---------------------------
3276 +# implement the --enable-shared flag
3277 +# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3278 +AC_DEFUN([AC_ENABLE_SHARED],
3279 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3280 +AC_ARG_ENABLE([shared],
3281 +    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3282 +       [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3283 +    [p=${PACKAGE-default}
3284 +    case $enableval in
3285 +    yes) enable_shared=yes ;;
3286 +    no) enable_shared=no ;;
3287 +    *)
3288 +      enable_shared=no
3289 +      # Look at the argument we got.  We use all the common list separators.
3290 +      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3291 +      for pkg in $enableval; do
3292 +       IFS="$lt_save_ifs"
3293 +       if test "X$pkg" = "X$p"; then
3294 +         enable_shared=yes
3295 +       fi
3296 +      done
3297 +      IFS="$lt_save_ifs"
3298 +      ;;
3299 +    esac],
3300 +    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3301 +])# AC_ENABLE_SHARED
3302 +
3303 +
3304 +# AC_DISABLE_SHARED
3305 +# -----------------
3306 +#- set the default shared flag to --disable-shared
3307 +AC_DEFUN([AC_DISABLE_SHARED],
3308 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3309 +AC_ENABLE_SHARED(no)
3310 +])# AC_DISABLE_SHARED
3311 +
3312 +
3313 +# AC_ENABLE_STATIC([DEFAULT])
3314 +# ---------------------------
3315 +# implement the --enable-static flag
3316 +# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3317 +AC_DEFUN([AC_ENABLE_STATIC],
3318 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3319 +AC_ARG_ENABLE([static],
3320 +    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3321 +       [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3322 +    [p=${PACKAGE-default}
3323 +    case $enableval in
3324 +    yes) enable_static=yes ;;
3325 +    no) enable_static=no ;;
3326 +    *)
3327 +     enable_static=no
3328 +      # Look at the argument we got.  We use all the common list separators.
3329 +      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3330 +      for pkg in $enableval; do
3331 +       IFS="$lt_save_ifs"
3332 +       if test "X$pkg" = "X$p"; then
3333 +         enable_static=yes
3334 +       fi
3335 +      done
3336 +      IFS="$lt_save_ifs"
3337 +      ;;
3338 +    esac],
3339 +    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3340 +])# AC_ENABLE_STATIC
3341 +
3342 +
3343 +# AC_DISABLE_STATIC
3344 +# -----------------
3345 +# set the default static flag to --disable-static
3346 +AC_DEFUN([AC_DISABLE_STATIC],
3347 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3348 +AC_ENABLE_STATIC(no)
3349 +])# AC_DISABLE_STATIC
3350 +
3351 +
3352 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3353 +# ---------------------------------
3354 +# implement the --enable-fast-install flag
3355 +# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3356 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3357 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3358 +AC_ARG_ENABLE([fast-install],
3359 +    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3360 +    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3361 +    [p=${PACKAGE-default}
3362 +    case $enableval in
3363 +    yes) enable_fast_install=yes ;;
3364 +    no) enable_fast_install=no ;;
3365 +    *)
3366 +      enable_fast_install=no
3367 +      # Look at the argument we got.  We use all the common list separators.
3368 +      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3369 +      for pkg in $enableval; do
3370 +       IFS="$lt_save_ifs"
3371 +       if test "X$pkg" = "X$p"; then
3372 +         enable_fast_install=yes
3373 +       fi
3374 +      done
3375 +      IFS="$lt_save_ifs"
3376 +      ;;
3377 +    esac],
3378 +    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3379 +])# AC_ENABLE_FAST_INSTALL
3380 +
3381 +
3382 +# AC_DISABLE_FAST_INSTALL
3383 +# -----------------------
3384 +# set the default to --disable-fast-install
3385 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3386 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3387 +AC_ENABLE_FAST_INSTALL(no)
3388 +])# AC_DISABLE_FAST_INSTALL
3389 +
3390 +
3391 +# AC_LIBTOOL_PICMODE([MODE])
3392 +# --------------------------
3393 +# implement the --with-pic flag
3394 +# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3395 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3396 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3397 +pic_mode=ifelse($#,1,$1,default)
3398 +])# AC_LIBTOOL_PICMODE
3399 +
3400 +
3401 +# AC_PROG_EGREP
3402 +# -------------
3403 +# This is predefined starting with Autoconf 2.54, so this conditional
3404 +# definition can be removed once we require Autoconf 2.54 or later.
3405 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3406 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3407 +   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3408 +    then ac_cv_prog_egrep='grep -E'
3409 +    else ac_cv_prog_egrep='egrep'
3410 +    fi])
3411 + EGREP=$ac_cv_prog_egrep
3412 + AC_SUBST([EGREP])
3413 +])])
3414 +
3415 +
3416 +# AC_PATH_TOOL_PREFIX
3417 +# -------------------
3418 +# find a file program which can recognise shared library
3419 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3420 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3421 +AC_MSG_CHECKING([for $1])
3422 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3423 +[case $MAGIC_CMD in
3424 +[[\\/*] |  ?:[\\/]*])
3425 +  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3426 +  ;;
3427 +*)
3428 +  lt_save_MAGIC_CMD="$MAGIC_CMD"
3429 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3430 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3431 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3432 +dnl not every word.  This closes a longstanding sh security hole.
3433 +  ac_dummy="ifelse([$2], , $PATH, [$2])"
3434 +  for ac_dir in $ac_dummy; do
3435 +    IFS="$lt_save_ifs"
3436 +    test -z "$ac_dir" && ac_dir=.
3437 +    if test -f $ac_dir/$1; then
3438 +      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3439 +      if test -n "$file_magic_test_file"; then
3440 +       case $deplibs_check_method in
3441 +       "file_magic "*)
3442 +         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3443 +         MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3444 +         if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3445 +           $EGREP "$file_magic_regex" > /dev/null; then
3446 +           :
3447 +         else
3448 +           cat <<EOF 1>&2
3449 +
3450 +*** Warning: the command libtool uses to detect shared libraries,
3451 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3452 +*** The result is that libtool may fail to recognize shared libraries
3453 +*** as such.  This will affect the creation of libtool libraries that
3454 +*** depend on shared libraries, but programs linked with such libtool
3455 +*** libraries will work regardless of this problem.  Nevertheless, you
3456 +*** may want to report the problem to your system manager and/or to
3457 +*** bug-libtool@gnu.org
3458 +
3459 +EOF
3460 +         fi ;;
3461 +       esac
3462 +      fi
3463 +      break
3464 +    fi
3465 +  done
3466 +  IFS="$lt_save_ifs"
3467 +  MAGIC_CMD="$lt_save_MAGIC_CMD"
3468 +  ;;
3469 +esac])
3470 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3471 +if test -n "$MAGIC_CMD"; then
3472 +  AC_MSG_RESULT($MAGIC_CMD)
3473 +else
3474 +  AC_MSG_RESULT(no)
3475 +fi
3476 +])# AC_PATH_TOOL_PREFIX
3477 +
3478 +
3479 +# AC_PATH_MAGIC
3480 +# -------------
3481 +# find a file program which can recognise a shared library
3482 +AC_DEFUN([AC_PATH_MAGIC],
3483 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3484 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3485 +  if test -n "$ac_tool_prefix"; then
3486 +    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3487 +  else
3488 +    MAGIC_CMD=:
3489 +  fi
3490 +fi
3491 +])# AC_PATH_MAGIC
3492 +
3493 +
3494 +# AC_PROG_LD
3495 +# ----------
3496 +# find the pathname to the GNU or non-GNU linker
3497 +AC_DEFUN([AC_PROG_LD],
3498 +[AC_ARG_WITH([gnu-ld],
3499 +    [AC_HELP_STRING([--with-gnu-ld],
3500 +       [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3501 +    [test "$withval" = no || with_gnu_ld=yes],
3502 +    [with_gnu_ld=no])
3503 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3504 +AC_REQUIRE([AC_PROG_CC])dnl
3505 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3506 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3507 +ac_prog=ld
3508 +if test "$GCC" = yes; then
3509 +  # Check if gcc -print-prog-name=ld gives a path.
3510 +  AC_MSG_CHECKING([for ld used by $CC])
3511 +  case $host in
3512 +  *-*-mingw*)
3513 +    # gcc leaves a trailing carriage return which upsets mingw
3514 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3515 +  *)
3516 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3517 +  esac
3518 +  case $ac_prog in
3519 +    # Accept absolute paths.
3520 +    [[\\/]]* | ?:[[\\/]]*)
3521 +      re_direlt='/[[^/]][[^/]]*/\.\./'
3522 +      # Canonicalize the pathname of ld
3523 +      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3524 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3525 +       ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3526 +      done
3527 +      test -z "$LD" && LD="$ac_prog"
3528 +      ;;
3529 +  "")
3530 +    # If it fails, then pretend we aren't using GCC.
3531 +    ac_prog=ld
3532 +    ;;
3533 +  *)
3534 +    # If it is relative, then search for the first ld in PATH.
3535 +    with_gnu_ld=unknown
3536 +    ;;
3537 +  esac
3538 +elif test "$with_gnu_ld" = yes; then
3539 +  AC_MSG_CHECKING([for GNU ld])
3540 +else
3541 +  AC_MSG_CHECKING([for non-GNU ld])
3542 +fi
3543 +AC_CACHE_VAL(lt_cv_path_LD,
3544 +[if test -z "$LD"; then
3545 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3546 +  for ac_dir in $PATH; do
3547 +    IFS="$lt_save_ifs"
3548 +    test -z "$ac_dir" && ac_dir=.
3549 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3550 +      lt_cv_path_LD="$ac_dir/$ac_prog"
3551 +      # Check to see if the program is GNU ld.  I'd rather use --version,
3552 +      # but apparently some GNU ld's only accept -v.
3553 +      # Break only if it was the GNU/non-GNU ld that we prefer.
3554 +      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3555 +      *GNU* | *'with BFD'*)
3556 +       test "$with_gnu_ld" != no && break
3557 +       ;;
3558 +      *)
3559 +       test "$with_gnu_ld" != yes && break
3560 +       ;;
3561 +      esac
3562 +    fi
3563 +  done
3564 +  IFS="$lt_save_ifs"
3565 +else
3566 +  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3567 +fi])
3568 +LD="$lt_cv_path_LD"
3569 +if test -n "$LD"; then
3570 +  AC_MSG_RESULT($LD)
3571 +else
3572 +  AC_MSG_RESULT(no)
3573 +fi
3574 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3575 +AC_PROG_LD_GNU
3576 +])# AC_PROG_LD
3577 +
3578 +
3579 +# AC_PROG_LD_GNU
3580 +# --------------
3581 +AC_DEFUN([AC_PROG_LD_GNU],
3582 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3583 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3584 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3585 +case `$LD -v 2>&1 </dev/null` in
3586 +*GNU* | *'with BFD'*)
3587 +  lt_cv_prog_gnu_ld=yes
3588 +  ;;
3589 +*)
3590 +  lt_cv_prog_gnu_ld=no
3591 +  ;;
3592 +esac])
3593 +with_gnu_ld=$lt_cv_prog_gnu_ld
3594 +])# AC_PROG_LD_GNU
3595 +
3596 +
3597 +# AC_PROG_LD_RELOAD_FLAG
3598 +# ----------------------
3599 +# find reload flag for linker
3600 +#   -- PORTME Some linkers may need a different reload flag.
3601 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3602 +[AC_CACHE_CHECK([for $LD option to reload object files],
3603 +  lt_cv_ld_reload_flag,
3604 +  [lt_cv_ld_reload_flag='-r'])
3605 +reload_flag=$lt_cv_ld_reload_flag
3606 +case $reload_flag in
3607 +"" | " "*) ;;
3608 +*) reload_flag=" $reload_flag" ;;
3609 +esac
3610 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3611 +])# AC_PROG_LD_RELOAD_FLAG
3612 +
3613 +
3614 +# AC_DEPLIBS_CHECK_METHOD
3615 +# -----------------------
3616 +# how to check for library dependencies
3617 +#  -- PORTME fill in with the dynamic library characteristics
3618 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3619 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3620 +lt_cv_deplibs_check_method,
3621 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3622 +lt_cv_file_magic_test_file=
3623 +lt_cv_deplibs_check_method='unknown'
3624 +# Need to set the preceding variable on all platforms that support
3625 +# interlibrary dependencies.
3626 +# 'none' -- dependencies not supported.
3627 +# `unknown' -- same as none, but documents that we really don't know.
3628 +# 'pass_all' -- all dependencies passed with no checks.
3629 +# 'test_compile' -- check by making test program.
3630 +# 'file_magic [[regex]]' -- check by looking for files in library path
3631 +# which responds to the $file_magic_cmd with a given extended regex.
3632 +# If you have `file' or equivalent on your system and you're not sure
3633 +# whether `pass_all' will *always* work, you probably want this one.
3634 +
3635 +case $host_os in
3636 +aix4* | aix5*)
3637 +  lt_cv_deplibs_check_method=pass_all
3638 +  ;;
3639 +
3640 +beos*)
3641 +  lt_cv_deplibs_check_method=pass_all
3642 +  ;;
3643 +
3644 +bsdi4*)
3645 +  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3646 +  lt_cv_file_magic_cmd='/usr/bin/file -L'
3647 +  lt_cv_file_magic_test_file=/shlib/libc.so
3648 +  ;;
3649 +
3650 +cygwin*)
3651 +  # func_win32_libid is a shell function defined in ltmain.sh
3652 +  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3653 +  lt_cv_file_magic_cmd='func_win32_libid'
3654 +  ;;
3655 +
3656 +mingw* | pw32*)
3657 +  # Base MSYS/MinGW do not provide the 'file' command needed by
3658 +  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3659 +  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3660 +  lt_cv_file_magic_cmd='$OBJDUMP -f'
3661 +  ;;
3662 +
3663 +darwin* | rhapsody*)
3664 +  lt_cv_deplibs_check_method=pass_all
3665 +  ;;
3666 +
3667 +freebsd* | kfreebsd*-gnu)
3668 +  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3669 +    case $host_cpu in
3670 +    i*86 )
3671 +      # Not sure whether the presence of OpenBSD here was a mistake.
3672 +      # Let's accept both of them until this is cleared up.
3673 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3674 +      lt_cv_file_magic_cmd=/usr/bin/file
3675 +      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3676 +      ;;
3677 +    esac
3678 +  else
3679 +    lt_cv_deplibs_check_method=pass_all
3680 +  fi
3681 +  ;;
3682 +
3683 +gnu*)
3684 +  lt_cv_deplibs_check_method=pass_all
3685 +  ;;
3686 +
3687 +hpux10.20* | hpux11*)
3688 +  lt_cv_file_magic_cmd=/usr/bin/file
3689 +  case "$host_cpu" in
3690 +  ia64*)
3691 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3692 +    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3693 +    ;;
3694 +  hppa*64*)
3695 +    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3696 +    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3697 +    ;;
3698 +  *)
3699 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3700 +    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3701 +    ;;
3702 +  esac
3703 +  ;;
3704 +
3705 +irix5* | irix6* | nonstopux*)
3706 +  case $LD in
3707 +  *-32|*"-32 ") libmagic=32-bit;;
3708 +  *-n32|*"-n32 ") libmagic=N32;;
3709 +  *-64|*"-64 ") libmagic=64-bit;;
3710 +  *) libmagic=never-match;;
3711 +  esac
3712 +  lt_cv_deplibs_check_method=pass_all
3713 +  ;;
3714 +
3715 +# This must be Linux ELF.
3716 +linux*)
3717 +  lt_cv_deplibs_check_method=pass_all
3718 +  ;;
3719 +
3720 +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3721 +  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3722 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3723 +  else
3724 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3725 +  fi
3726 +  ;;
3727 +
3728 +newos6*)
3729 +  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3730 +  lt_cv_file_magic_cmd=/usr/bin/file
3731 +  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3732 +  ;;
3733 +
3734 +nto-qnx*)
3735 +  lt_cv_deplibs_check_method=unknown
3736 +  ;;
3737 +
3738 +openbsd*)
3739 +  lt_cv_file_magic_cmd=/usr/bin/file
3740 +  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3741 +  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3742 +    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3743 +  else
3744 +    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3745 +  fi
3746 +  ;;
3747 +
3748 +osf3* | osf4* | osf5*)
3749 +  lt_cv_deplibs_check_method=pass_all
3750 +  ;;
3751 +
3752 +sco3.2v5*)
3753 +  lt_cv_deplibs_check_method=pass_all
3754 +  ;;
3755 +
3756 +solaris*)
3757 +  lt_cv_deplibs_check_method=pass_all
3758 +  ;;
3759 +
3760 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3761 +  case $host_vendor in
3762 +  motorola)
3763 +    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]]'
3764 +    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3765 +    ;;
3766 +  ncr)
3767 +    lt_cv_deplibs_check_method=pass_all
3768 +    ;;
3769 +  sequent)
3770 +    lt_cv_file_magic_cmd='/bin/file'
3771 +    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3772 +    ;;
3773 +  sni)
3774 +    lt_cv_file_magic_cmd='/bin/file'
3775 +    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3776 +    lt_cv_file_magic_test_file=/lib/libc.so
3777 +    ;;
3778 +  siemens)
3779 +    lt_cv_deplibs_check_method=pass_all
3780      ;;
3781 +  esac
3782 +  ;;
3783 +
3784 +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3785 +  lt_cv_deplibs_check_method=pass_all
3786 +  ;;
3787 +esac
3788 +])
3789 +file_magic_cmd=$lt_cv_file_magic_cmd
3790 +deplibs_check_method=$lt_cv_deplibs_check_method
3791 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
3792 +])# AC_DEPLIBS_CHECK_METHOD
3793  
3794 -  netbsd*)
3795 -    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3796 -      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3797 -      wlarc=
3798 -    else
3799 -      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3800 -      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3801 +
3802 +# AC_PROG_NM
3803 +# ----------
3804 +# find the pathname to a BSD-compatible name lister
3805 +AC_DEFUN([AC_PROG_NM],
3806 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3807 +[if test -n "$NM"; then
3808 +  # Let the user override the test.
3809 +  lt_cv_path_NM="$NM"
3810 +else
3811 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3812 +  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3813 +    IFS="$lt_save_ifs"
3814 +    test -z "$ac_dir" && ac_dir=.
3815 +    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3816 +    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3817 +      # Check to see if the nm accepts a BSD-compat flag.
3818 +      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3819 +      #   nm: unknown option "B" ignored
3820 +      # Tru64's nm complains that /dev/null is an invalid object file
3821 +      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3822 +      */dev/null* | *'Invalid file or object type'*)
3823 +       lt_cv_path_NM="$tmp_nm -B"
3824 +       break
3825 +        ;;
3826 +      *)
3827 +       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3828 +       */dev/null*)
3829 +         lt_cv_path_NM="$tmp_nm -p"
3830 +         break
3831 +         ;;
3832 +       *)
3833 +         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3834 +         continue # so that we can try to find one that supports BSD flags
3835 +         ;;
3836 +       esac
3837 +      esac
3838      fi
3839 -    ;;
3840 +  done
3841 +  IFS="$lt_save_ifs"
3842 +  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3843 +fi])
3844 +NM="$lt_cv_path_NM"
3845 +])# AC_PROG_NM
3846  
3847 -  solaris* | sysv5*)
3848 -    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3849 -      ld_shlibs=no
3850 -      cat <<EOF 1>&2
3851  
3852 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3853 -*** create shared libraries on Solaris systems.  Therefore, libtool
3854 -*** is disabling shared libraries support.  We urge you to upgrade GNU
3855 -*** binutils to release 2.9.1 or newer.  Another option is to modify
3856 -*** your PATH or compiler configuration so that the native linker is
3857 -*** used, and then restart.
3858 +# AC_CHECK_LIBM
3859 +# -------------
3860 +# check for math library
3861 +AC_DEFUN([AC_CHECK_LIBM],
3862 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3863 +LIBM=
3864 +case $host in
3865 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3866 +  # These system don't have libm, or don't need it
3867 +  ;;
3868 +*-ncr-sysv4.3*)
3869 +  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3870 +  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3871 +  ;;
3872 +*)
3873 +  AC_CHECK_LIB(m, cos, LIBM="-lm")
3874 +  ;;
3875 +esac
3876 +])# AC_CHECK_LIBM
3877  
3878 -EOF
3879 -    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3880 -      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3881 -      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3882 -    else
3883 -      ld_shlibs=no
3884 -    fi
3885 -    ;;
3886  
3887 -  sunos4*)
3888 -    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3889 -    wlarc=
3890 -    hardcode_direct=yes
3891 -    hardcode_shlibpath_var=no
3892 -    ;;
3893 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3894 +# -----------------------------------
3895 +# sets LIBLTDL to the link flags for the libltdl convenience library and
3896 +# LTDLINCL to the include flags for the libltdl header and adds
3897 +# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
3898 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3899 +# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
3900 +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3901 +# '${top_srcdir}/' (note the single quotes!).  If your package is not
3902 +# flat and you're not using automake, define top_builddir and
3903 +# top_srcdir appropriately in the Makefiles.
3904 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3905 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3906 +  case $enable_ltdl_convenience in
3907 +  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3908 +  "") enable_ltdl_convenience=yes
3909 +      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3910 +  esac
3911 +  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3912 +  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3913 +  # For backwards non-gettext consistent compatibility...
3914 +  INCLTDL="$LTDLINCL"
3915 +])# AC_LIBLTDL_CONVENIENCE
3916  
3917 -  *)
3918 -    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3919 -      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3920 -      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3921 -    else
3922 -      ld_shlibs=no
3923 -    fi
3924 +
3925 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3926 +# -----------------------------------
3927 +# sets LIBLTDL to the link flags for the libltdl installable library and
3928 +# LTDLINCL to the include flags for the libltdl header and adds
3929 +# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
3930 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3931 +# DIRECTORY is not provided and an installed libltdl is not found, it is
3932 +# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
3933 +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3934 +# quotes!).  If your package is not flat and you're not using automake,
3935 +# define top_builddir and top_srcdir appropriately in the Makefiles.
3936 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3937 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3938 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3939 +  AC_CHECK_LIB(ltdl, lt_dlinit,
3940 +  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3941 +  [if test x"$enable_ltdl_install" = xno; then
3942 +     AC_MSG_WARN([libltdl not installed, but installation disabled])
3943 +   else
3944 +     enable_ltdl_install=yes
3945 +   fi
3946 +  ])
3947 +  if test x"$enable_ltdl_install" = x"yes"; then
3948 +    ac_configure_args="$ac_configure_args --enable-ltdl-install"
3949 +    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3950 +    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3951 +  else
3952 +    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3953 +    LIBLTDL="-lltdl"
3954 +    LTDLINCL=
3955 +  fi
3956 +  # For backwards non-gettext consistent compatibility...
3957 +  INCLTDL="$LTDLINCL"
3958 +])# AC_LIBLTDL_INSTALLABLE
3959 +
3960 +
3961 +# AC_LIBTOOL_CXX
3962 +# --------------
3963 +# enable support for C++ libraries
3964 +AC_DEFUN([AC_LIBTOOL_CXX],
3965 +[AC_REQUIRE([_LT_AC_LANG_CXX])
3966 +])# AC_LIBTOOL_CXX
3967 +
3968 +
3969 +# _LT_AC_LANG_CXX
3970 +# ---------------
3971 +AC_DEFUN([_LT_AC_LANG_CXX],
3972 +[AC_REQUIRE([AC_PROG_CXX])
3973 +AC_REQUIRE([AC_PROG_CXXCPP])
3974 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3975 +])# _LT_AC_LANG_CXX
3976 +
3977 +
3978 +# AC_LIBTOOL_F77
3979 +# --------------
3980 +# enable support for Fortran 77 libraries
3981 +AC_DEFUN([AC_LIBTOOL_F77],
3982 +[AC_REQUIRE([_LT_AC_LANG_F77])
3983 +])# AC_LIBTOOL_F77
3984 +
3985 +
3986 +# _LT_AC_LANG_F77
3987 +# ---------------
3988 +AC_DEFUN([_LT_AC_LANG_F77],
3989 +[AC_REQUIRE([AC_PROG_F77])
3990 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3991 +])# _LT_AC_LANG_F77
3992 +
3993 +
3994 +# AC_LIBTOOL_GCJ
3995 +# --------------
3996 +# enable support for GCJ libraries
3997 +AC_DEFUN([AC_LIBTOOL_GCJ],
3998 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
3999 +])# AC_LIBTOOL_GCJ
4000 +
4001 +
4002 +# _LT_AC_LANG_GCJ
4003 +# ---------------
4004 +AC_DEFUN([_LT_AC_LANG_GCJ],
4005 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4006 +  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4007 +    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4008 +      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4009 +        [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4010 +          [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4011 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4012 +])# _LT_AC_LANG_GCJ
4013 +
4014 +
4015 +# AC_LIBTOOL_RC
4016 +# --------------
4017 +# enable support for Windows resource files
4018 +AC_DEFUN([AC_LIBTOOL_RC],
4019 +[AC_REQUIRE([LT_AC_PROG_RC])
4020 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4021 +])# AC_LIBTOOL_RC
4022 +
4023 +
4024 +# AC_LIBTOOL_LANG_C_CONFIG
4025 +# ------------------------
4026 +# Ensure that the configuration vars for the C compiler are
4027 +# suitably defined.  Those variables are subsequently used by
4028 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4029 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4030 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4031 +[lt_save_CC="$CC"
4032 +AC_LANG_PUSH(C)
4033 +
4034 +# Source file extension for C test sources.
4035 +ac_ext=c
4036 +
4037 +# Object file extension for compiled C test sources.
4038 +objext=o
4039 +_LT_AC_TAGVAR(objext, $1)=$objext
4040 +
4041 +# Code to be used in simple compile tests
4042 +lt_simple_compile_test_code="int some_variable = 0;\n"
4043 +
4044 +# Code to be used in simple link tests
4045 +lt_simple_link_test_code='int main(){return(0);}\n'
4046 +
4047 +_LT_AC_SYS_COMPILER
4048 +
4049 +#
4050 +# Check for any special shared library compilation flags.
4051 +#
4052 +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
4053 +if test "$GCC" = no; then
4054 +  case $host_os in
4055 +  sco3.2v5*)
4056 +    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
4057      ;;
4058    esac
4059 +fi
4060 +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
4061 +  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
4062 +  if echo "$old_CC $old_CFLAGS " | grep "[[    ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
4063 +  else
4064 +    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
4065 +    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
4066 +  fi
4067 +fi
4068  
4069 -  if test "$ld_shlibs" = yes; then
4070 -    runpath_var=LD_RUN_PATH
4071 -    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4072 -    export_dynamic_flag_spec='${wl}--export-dynamic'
4073 -    case $host_os in
4074 -    cygwin* | mingw* | pw32*)
4075 -      # dlltool doesn't understand --whole-archive et. al.
4076 -      whole_archive_flag_spec=
4077 +
4078 +#
4079 +# Check to make sure the static flag actually works.
4080 +#
4081 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
4082 +  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
4083 +  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
4084 +  [],
4085 +  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4086 +
4087 +
4088 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4089 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4090 +AC_LIBTOOL_PROG_CC_C_O($1)
4091 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4092 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4093 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4094 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4095 +AC_LIBTOOL_SYS_LIB_STRIP
4096 +AC_LIBTOOL_DLOPEN_SELF($1)
4097 +
4098 +# Report which librarie types wil actually be built
4099 +AC_MSG_CHECKING([if libtool supports shared libraries])
4100 +AC_MSG_RESULT([$can_build_shared])
4101 +
4102 +AC_MSG_CHECKING([whether to build shared libraries])
4103 +test "$can_build_shared" = "no" && enable_shared=no
4104 +
4105 +# On AIX, shared libraries and static libraries use the same namespace, and
4106 +# are all built from PIC.
4107 +case "$host_os" in
4108 +aix3*)
4109 +  test "$enable_shared" = yes && enable_static=no
4110 +  if test -n "$RANLIB"; then
4111 +    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4112 +    postinstall_cmds='$RANLIB $lib'
4113 +  fi
4114 +  ;;
4115 +
4116 +aix4* | aix5*)
4117 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4118 +    test "$enable_shared" = yes && enable_static=no
4119 +  fi
4120 +  ;;
4121 +  darwin* | rhapsody*)
4122 +  if test "$GCC" = yes; then
4123 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4124 +    case "$host_os" in
4125 +    rhapsody* | darwin1.[[012]])
4126 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4127        ;;
4128 -    *)
4129 -      # ancient GNU ld didn't support --whole-archive et. al.
4130 -      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4131 -       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4132 +    *) # Darwin 1.3 on
4133 +      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4134 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4135        else
4136 -       whole_archive_flag_spec=
4137 +        case ${MACOSX_DEPLOYMENT_TARGET} in
4138 +          10.[[012]])
4139 +            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4140 +            ;;
4141 +          10.*)
4142 +            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4143 +            ;;
4144 +        esac
4145        fi
4146        ;;
4147      esac
4148 +    output_verbose_link_cmd='echo'
4149 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
4150 +    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4151 +    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4152 +    _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}'
4153 +    _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}'
4154 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4155 +    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4156 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4157 +    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4158 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4159 +  else
4160 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4161    fi
4162 +    ;;
4163 +esac
4164 +AC_MSG_RESULT([$enable_shared])
4165 +
4166 +AC_MSG_CHECKING([whether to build static libraries])
4167 +# Make sure either enable_shared or enable_static is yes.
4168 +test "$enable_shared" = yes || enable_static=yes
4169 +AC_MSG_RESULT([$enable_static])
4170 +
4171 +AC_LIBTOOL_CONFIG($1)
4172 +
4173 +AC_LANG_POP
4174 +CC="$lt_save_CC"
4175 +])# AC_LIBTOOL_LANG_C_CONFIG
4176 +
4177 +
4178 +# AC_LIBTOOL_LANG_CXX_CONFIG
4179 +# --------------------------
4180 +# Ensure that the configuration vars for the C compiler are
4181 +# suitably defined.  Those variables are subsequently used by
4182 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4183 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4184 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4185 +[AC_LANG_PUSH(C++)
4186 +AC_REQUIRE([AC_PROG_CXX])
4187 +AC_REQUIRE([AC_PROG_CXXCPP])
4188 +
4189 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4190 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4191 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
4192 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4193 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4194 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
4195 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4196 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4197 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4198 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4199 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4200 +_LT_AC_TAGVAR(module_cmds, $1)=
4201 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4202 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4203 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4204 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4205 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4206 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4207 +
4208 +# Dependencies to place before and after the object being linked:
4209 +_LT_AC_TAGVAR(predep_objects, $1)=
4210 +_LT_AC_TAGVAR(postdep_objects, $1)=
4211 +_LT_AC_TAGVAR(predeps, $1)=
4212 +_LT_AC_TAGVAR(postdeps, $1)=
4213 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4214 +
4215 +# Source file extension for C++ test sources.
4216 +ac_ext=cc
4217 +
4218 +# Object file extension for compiled C++ test sources.
4219 +objext=o
4220 +_LT_AC_TAGVAR(objext, $1)=$objext
4221 +
4222 +# Code to be used in simple compile tests
4223 +lt_simple_compile_test_code="int some_variable = 0;\n"
4224 +
4225 +# Code to be used in simple link tests
4226 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
4227 +
4228 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4229 +_LT_AC_SYS_COMPILER
4230 +
4231 +# Allow CC to be a program name with arguments.
4232 +lt_save_CC=$CC
4233 +lt_save_LD=$LD
4234 +lt_save_GCC=$GCC
4235 +GCC=$GXX
4236 +lt_save_with_gnu_ld=$with_gnu_ld
4237 +lt_save_path_LD=$lt_cv_path_LD
4238 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4239 +  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4240  else
4241 -  # PORTME fill in a description of your system's linker (not GNU ld)
4242 -  case $host_os in
4243 -  aix3*)
4244 -    allow_undefined_flag=unsupported
4245 -    always_export_symbols=yes
4246 -    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4247 -    # Note: this linker hardcodes the directories in LIBPATH if there
4248 -    # are no directories specified by -L.
4249 -    hardcode_minus_L=yes
4250 -    if test "$GCC" = yes && test -z "$link_static_flag"; then
4251 -      # Neither direct hardcoding nor static linking is supported with a
4252 -      # broken collect2.
4253 -      hardcode_direct=unsupported
4254 +  unset lt_cv_prog_gnu_ld
4255 +fi
4256 +if test -n "${lt_cv_path_LDCXX+set}"; then
4257 +  lt_cv_path_LD=$lt_cv_path_LDCXX
4258 +else
4259 +  unset lt_cv_path_LD
4260 +fi
4261 +test -z "${LDCXX+set}" || LD=$LDCXX
4262 +CC=${CXX-"c++"}
4263 +compiler=$CC
4264 +_LT_AC_TAGVAR(compiler, $1)=$CC
4265 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4266 +
4267 +# We don't want -fno-exception wen compiling C++ code, so set the
4268 +# no_builtin_flag separately
4269 +if test "$GXX" = yes; then
4270 +  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4271 +else
4272 +  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4273 +fi
4274 +
4275 +if test "$GXX" = yes; then
4276 +  # Set up default GNU C++ configuration
4277 +
4278 +  AC_PROG_LD
4279 +
4280 +  # Check if GNU C++ uses GNU ld as the underlying linker, since the
4281 +  # archiving commands below assume that GNU ld is being used.
4282 +  if test "$with_gnu_ld" = yes; then
4283 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4284 +    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4285 +
4286 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4287 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4288 +
4289 +    # If archive_cmds runs LD, not CC, wlarc should be empty
4290 +    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4291 +    #     investigate it a little bit more. (MM)
4292 +    wlarc='${wl}'
4293 +
4294 +    # ancient GNU ld didn't support --whole-archive et. al.
4295 +    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4296 +       grep 'no-whole-archive' > /dev/null; then
4297 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4298 +    else
4299 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4300      fi
4301 -    ;;
4302 +  else
4303 +    with_gnu_ld=no
4304 +    wlarc=
4305 +
4306 +    # A generic and very simple default shared library creation
4307 +    # command for GNU C++ for the case where it uses the native
4308 +    # linker, instead of GNU ld.  If possible, this setting should
4309 +    # overridden to take advantage of the native linker features on
4310 +    # the platform it is being used on.
4311 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4312 +  fi
4313 +
4314 +  # Commands to make compiler produce verbose output that lists
4315 +  # what "hidden" libraries, object files and flags are used when
4316 +  # linking a shared library.
4317 +  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4318 +
4319 +else
4320 +  GXX=no
4321 +  with_gnu_ld=no
4322 +  wlarc=
4323 +fi
4324  
4325 +# PORTME: fill in a description of your system's C++ link characteristics
4326 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4327 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4328 +case $host_os in
4329 +  aix3*)
4330 +    # FIXME: insert proper C++ library support
4331 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4332 +    ;;
4333    aix4* | aix5*)
4334      if test "$host_cpu" = ia64; then
4335        # On IA64, the linker does run time linking by default, so we don't
4336 @@ -1586,7 +3728,7 @@
4337           *-brtl*)
4338             aix_use_runtimelinking=yes
4339             break
4340 -         ;;
4341 +           ;;
4342           esac
4343         done
4344        esac
4345 @@ -1601,34 +3743,39 @@
4346      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4347      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4348  
4349 -    hardcode_direct=yes
4350 -    archive_cmds=''
4351 -    hardcode_libdir_separator=':'
4352 -    if test "$GCC" = yes; then
4353 -      case $host_os in aix4.[[012]]|aix4.[[012]].*)
4354 +    _LT_AC_TAGVAR(archive_cmds, $1)=''
4355 +    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4356 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4357 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4358 +
4359 +    if test "$GXX" = yes; then
4360 +      case $host_os in aix4.[012]|aix4.[012].*)
4361 +      # We only want to do this on AIX 4.2 and lower, the check
4362 +      # below for broken collect2 doesn't work under 4.3+
4363         collect2name=`${CC} -print-prog-name=collect2`
4364         if test -f "$collect2name" && \
4365 -         strings "$collect2name" | grep resolve_lib_name >/dev/null
4366 +          strings "$collect2name" | grep resolve_lib_name >/dev/null
4367         then
4368           # We have reworked collect2
4369 -         hardcode_direct=yes
4370 +         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4371         else
4372           # We have old collect2
4373 -         hardcode_direct=unsupported
4374 +         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4375           # It fails to find uninstalled libraries when the uninstalled
4376           # path is not listed in the libpath.  Setting hardcode_minus_L
4377           # to unsupported forces relinking
4378 -         hardcode_minus_L=yes
4379 -         hardcode_libdir_flag_spec='-L$libdir'
4380 -         hardcode_libdir_separator=
4381 +         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4382 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4383 +         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4384         fi
4385        esac
4386 -
4387        shared_flag='-shared'
4388      else
4389        # not using gcc
4390        if test "$host_cpu" = ia64; then
4391 -       shared_flag='${wl}-G'
4392 +       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4393 +       # chokes on -Wl,-G. The following line is correct:
4394 +       shared_flag='-G'
4395        else
4396         if test "$aix_use_runtimelinking" = yes; then
4397           shared_flag='${wl}-G'
4398 @@ -1638,833 +3785,867 @@
4399        fi
4400      fi
4401  
4402 -    # It seems that -bexpall can do strange things, so it is better to
4403 -    # generate a list of symbols to export.
4404 -    always_export_symbols=yes
4405 +    # It seems that -bexpall does not export symbols beginning with
4406 +    # underscore (_), so it is better to generate a list of symbols to export.
4407 +    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4408      if test "$aix_use_runtimelinking" = yes; then
4409        # Warning - without using the other runtime loading flags (-brtl),
4410        # -berok will link without error, but may produce a broken library.
4411 -      allow_undefined_flag='-berok'
4412 -      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4413 -      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"
4414 -    else
4415 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4416 +      # Determine the default libpath from the value encoded in an empty executable.
4417 +      _LT_AC_SYS_LIBPATH_AIX
4418 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4419 +
4420 +      _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"
4421 +     else
4422        if test "$host_cpu" = ia64; then
4423 -       hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4424 -       allow_undefined_flag="-z nodefs"
4425 -       archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4426 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4427 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4428 +       _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"
4429        else
4430 -       hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4431 +       # Determine the default libpath from the value encoded in an empty executable.
4432 +       _LT_AC_SYS_LIBPATH_AIX
4433 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4434         # Warning - without using the other run time loading flags,
4435         # -berok will link without error, but may produce a broken library.
4436 -       allow_undefined_flag='${wl}-berok'
4437 -       # This is a bit strange, but is similar to how AIX traditionally builds
4438 -       # it's shared libraries.
4439 -       archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
4440 +       _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4441 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4442 +       # -bexpall does not export symbols beginning with underscore (_)
4443 +       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4444 +       # Exported symbols can be pulled into shared objects from archives
4445 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
4446 +       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4447 +       # This is similar to how AIX traditionally builds it's shared libraries.
4448 +       _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'
4449        fi
4450      fi
4451      ;;
4452 -
4453 -  amigaos*)
4454 -    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4455 -    hardcode_libdir_flag_spec='-L$libdir'
4456 -    hardcode_minus_L=yes
4457 -    # see comment about different semantics on the GNU ld section
4458 -    ld_shlibs=no
4459 +  chorus*)
4460 +    case $cc_basename in
4461 +      *)
4462 +       # FIXME: insert proper C++ library support
4463 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
4464 +       ;;
4465 +    esac
4466      ;;
4467  
4468    cygwin* | mingw* | pw32*)
4469 -    # When not using gcc, we currently assume that we are using
4470 -    # Microsoft Visual C++.
4471 -    # hardcode_libdir_flag_spec is actually meaningless, as there is
4472 -    # no search path for DLLs.
4473 -    hardcode_libdir_flag_spec=' '
4474 -    allow_undefined_flag=unsupported
4475 -    # Tell ltmain to make .lib files, not .a files.
4476 -    libext=lib
4477 -    # FIXME: Setting linknames here is a bad hack.
4478 -    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4479 -    # The linker will automatically build a .lib file if we build a DLL.
4480 -    old_archive_from_new_cmds='true'
4481 -    # FIXME: Should let the user specify the lib program.
4482 -    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4483 -    fix_srcfile_path='`cygpath -w "$srcfile"`'
4484 -    ;;
4485 +    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4486 +    # as there is no search path for DLLs.
4487 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4488 +    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4489 +    _LT_AC_TAGVAR(always_export_symbols, $1)=no
4490 +    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4491 +
4492 +    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4493 +      _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'
4494 +      # If the export-symbols file already is a .def file (1st line
4495 +      # is EXPORTS), use it as is; otherwise, prepend...
4496 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4497 +       cp $export_symbols $output_objdir/$soname.def;
4498 +      else
4499 +       echo EXPORTS > $output_objdir/$soname.def;
4500 +       cat $export_symbols >> $output_objdir/$soname.def;
4501 +      fi~
4502 +      $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'
4503 +    else
4504 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4505 +    fi
4506 +  ;;
4507  
4508    darwin* | rhapsody*)
4509 +  if test "$GXX" = yes; then
4510 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4511      case "$host_os" in
4512      rhapsody* | darwin1.[[012]])
4513 -      allow_undefined_flag='-undefined suppress'
4514 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4515        ;;
4516      *) # Darwin 1.3 on
4517 -      allow_undefined_flag='-flat_namespace -undefined suppress'
4518 -      ;;
4519 -    esac
4520 -    # FIXME: Relying on posixy $() will cause problems for
4521 -    #        cross-compilation, but unfortunately the echo tests do not
4522 -    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
4523 -    #       `"' quotes if we put them in here... so don't!
4524 -    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
4525 -    # We need to add '_' to the symbols in $export_symbols first
4526 -    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4527 -    hardcode_direct=yes
4528 -    hardcode_shlibpath_var=no
4529 -    whole_archive_flag_spec='-all_load $convenience'
4530 -    ;;
4531 -
4532 -  freebsd1*)
4533 -    ld_shlibs=no
4534 -    ;;
4535 -
4536 -  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4537 -  # support.  Future versions do this automatically, but an explicit c++rt0.o
4538 -  # does not break anything, and helps significantly (at the cost of a little
4539 -  # extra space).
4540 -  freebsd2.2*)
4541 -    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4542 -    hardcode_libdir_flag_spec='-R$libdir'
4543 -    hardcode_direct=yes
4544 -    hardcode_shlibpath_var=no
4545 -    ;;
4546 -
4547 -  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4548 -  freebsd2*)
4549 -    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4550 -    hardcode_direct=yes
4551 -    hardcode_minus_L=yes
4552 -    hardcode_shlibpath_var=no
4553 -    ;;
4554 -
4555 -  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4556 -  freebsd*)
4557 -    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4558 -    hardcode_libdir_flag_spec='-R$libdir'
4559 -    hardcode_direct=yes
4560 -    hardcode_shlibpath_var=no
4561 -    ;;
4562 -
4563 -  hpux9* | hpux10* | hpux11*)
4564 -    case $host_os in
4565 -    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4566 -    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4567 -    esac
4568 -    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4569 -    hardcode_libdir_separator=:
4570 -    hardcode_direct=yes
4571 -    hardcode_minus_L=yes # Not in the search PATH, but as the default
4572 -                        # location of the library.
4573 -    export_dynamic_flag_spec='${wl}-E'
4574 -    ;;
4575 -
4576 -  irix5* | irix6* | nonstopux*)
4577 -    if test "$GCC" = yes; then
4578 -      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4579 -      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4580 -    else
4581 -      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4582 -      hardcode_libdir_flag_spec='-rpath $libdir'
4583 -    fi
4584 -    hardcode_libdir_separator=:
4585 -    link_all_deplibs=yes
4586 -    ;;
4587 -
4588 -  netbsd*)
4589 -    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4590 -      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4591 -    else
4592 -      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4593 -    fi
4594 -    hardcode_libdir_flag_spec='-R$libdir'
4595 -    hardcode_direct=yes
4596 -    hardcode_shlibpath_var=no
4597 -    ;;
4598 -
4599 -  newsos6)
4600 -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4601 -    hardcode_direct=yes
4602 -    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4603 -    hardcode_libdir_separator=:
4604 -    hardcode_shlibpath_var=no
4605 -    ;;
4606 -
4607 -  openbsd*)
4608 -    hardcode_direct=yes
4609 -    hardcode_shlibpath_var=no
4610 -    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4611 -      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4612 -      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4613 -      export_dynamic_flag_spec='${wl}-E'
4614 -    else
4615 -      case "$host_os" in
4616 -      openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4617 -       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4618 -       hardcode_libdir_flag_spec='-R$libdir'
4619 -        ;;
4620 -      *)
4621 -        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4622 -        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4623 -        ;;
4624 -      esac
4625 +      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4626 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4627 +      else
4628 +        case ${MACOSX_DEPLOYMENT_TARGET} in
4629 +          10.[[012]])
4630 +            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4631 +            ;;
4632 +          10.*)
4633 +            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4634 +            ;;
4635 +        esac
4636 +      fi
4637 +      ;;
4638 +    esac
4639 +    lt_int_apple_cc_single_mod=no
4640 +    output_verbose_link_cmd='echo'
4641 +    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
4642 +      lt_int_apple_cc_single_mod=yes
4643      fi
4644 -    ;;
4645 -
4646 -  os2*)
4647 -    hardcode_libdir_flag_spec='-L$libdir'
4648 -    hardcode_minus_L=yes
4649 -    allow_undefined_flag=unsupported
4650 -    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4651 -    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4652 -    ;;
4653 -
4654 -  osf3*)
4655 -    if test "$GCC" = yes; then
4656 -      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4657 -      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4658 +    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4659 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4660      else
4661 -      allow_undefined_flag=' -expect_unresolved \*'
4662 -      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4663 +      _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'
4664      fi
4665 -    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4666 -    hardcode_libdir_separator=:
4667 -    ;;
4668 +    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4669  
4670 -  osf4* | osf5*)       # as osf3* with the addition of -msym flag
4671 -    if test "$GCC" = yes; then
4672 -      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4673 -      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4674 -      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4675 +    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4676 +    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4677 +      _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}'
4678      else
4679 -      allow_undefined_flag=' -expect_unresolved \*'
4680 -      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'
4681 -      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4682 -      $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'
4683 -
4684 -      #Both c and cxx compiler support -rpath directly
4685 -      hardcode_libdir_flag_spec='-rpath $libdir'
4686 +      _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}'
4687      fi
4688 -    hardcode_libdir_separator=:
4689 -    ;;
4690 -
4691 -  sco3.2v5*)
4692 -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4693 -    hardcode_shlibpath_var=no
4694 -    runpath_var=LD_RUN_PATH
4695 -    hardcode_runpath_var=yes
4696 -    export_dynamic_flag_spec='${wl}-Bexport'
4697 +    _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}'
4698 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4699 +    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4700 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4701 +    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4702 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4703 +  else
4704 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4705 +  fi
4706      ;;
4707  
4708 -  solaris*)
4709 -    # gcc --version < 3.0 without binutils cannot create self contained
4710 -    # shared libraries reliably, requiring libgcc.a to resolve some of
4711 -    # the object symbols generated in some cases.  Libraries that use
4712 -    # assert need libgcc.a to resolve __eprintf, for example.  Linking
4713 -    # a copy of libgcc.a into every shared library to guarantee resolving
4714 -    # such symbols causes other problems:  According to Tim Van Holder
4715 -    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4716 -    # (to the application) exception stack for one thing.
4717 -    no_undefined_flag=' -z defs'
4718 -    if test "$GCC" = yes; then
4719 -      case `$CC --version 2>/dev/null` in
4720 -      [[12]].*)
4721 -       cat <<EOF 1>&2
4722 -
4723 -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4724 -*** create self contained shared libraries on Solaris systems, without
4725 -*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
4726 -*** -no-undefined support, which will at least allow you to build shared
4727 -*** libraries.  However, you may find that when you link such libraries
4728 -*** into an application without using GCC, you have to manually add
4729 -*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
4730 -*** upgrade to a newer version of GCC.  Another option is to rebuild your
4731 -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4732 -
4733 -EOF
4734 -        no_undefined_flag=
4735 +  dgux*)
4736 +    case $cc_basename in
4737 +      ec++)
4738 +       # FIXME: insert proper C++ library support
4739 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
4740 +       ;;
4741 +      ghcx)
4742 +       # Green Hills C++ Compiler
4743 +       # FIXME: insert proper C++ library support
4744 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
4745 +       ;;
4746 +      *)
4747 +       # FIXME: insert proper C++ library support
4748 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
4749         ;;
4750 -      esac
4751 -    fi
4752 -    # $CC -shared without GNU ld will not create a library from C++
4753 -    # object files and a static libstdc++, better avoid it by now
4754 -    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4755 -    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4756 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4757 -    hardcode_libdir_flag_spec='-R$libdir'
4758 -    hardcode_shlibpath_var=no
4759 -    case $host_os in
4760 -    solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4761 -    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4762 -      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4763      esac
4764 -    link_all_deplibs=yes
4765      ;;
4766 -
4767 -  sunos4*)
4768 -    if test "x$host_vendor" = xsequent; then
4769 -      # Use $CC to link under sequent, because it throws in some extra .o
4770 -      # files that make .init and .fini sections work.
4771 -      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4772 -    else
4773 -      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4774 -    fi
4775 -    hardcode_libdir_flag_spec='-L$libdir'
4776 -    hardcode_direct=yes
4777 -    hardcode_minus_L=yes
4778 -    hardcode_shlibpath_var=no
4779 +  freebsd[12]*)
4780 +    # C++ shared libraries reported to be fairly broken before switch to ELF
4781 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4782 +    ;;
4783 +  freebsd-elf*)
4784 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4785 +    ;;
4786 +  freebsd* | kfreebsd*-gnu)
4787 +    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4788 +    # conventions
4789 +    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4790 +    ;;
4791 +  gnu*)
4792 +    ;;
4793 +  hpux9*)
4794 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4795 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4796 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4797 +    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4798 +    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4799 +                               # but as the default
4800 +                               # location of the library.
4801 +
4802 +    case $cc_basename in
4803 +    CC)
4804 +      # FIXME: insert proper C++ library support
4805 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4806 +      ;;
4807 +    aCC)
4808 +      _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'
4809 +      # Commands to make compiler produce verbose output that lists
4810 +      # what "hidden" libraries, object files and flags are used when
4811 +      # linking a shared library.
4812 +      #
4813 +      # There doesn't appear to be a way to prevent this compiler from
4814 +      # explicitly linking system object files so we need to strip them
4815 +      # from the output so that they don't get included in the library
4816 +      # dependencies.
4817 +      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'
4818 +      ;;
4819 +    *)
4820 +      if test "$GXX" = yes; then
4821 +        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4822 +      else
4823 +        # FIXME: insert proper C++ library support
4824 +        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4825 +      fi
4826 +      ;;
4827 +    esac
4828      ;;
4829 -
4830 -  sysv4)
4831 -    case $host_vendor in
4832 -      sni)
4833 -        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4834 -        hardcode_direct=yes # is this really true???
4835 +  hpux10*|hpux11*)
4836 +    if test $with_gnu_ld = no; then
4837 +      case "$host_cpu" in
4838 +      hppa*64*)
4839 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4840 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4841 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4842          ;;
4843 -      siemens)
4844 -        ## LD is ld it makes a PLAMLIB
4845 -        ## CC just makes a GrossModule.
4846 -        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4847 -        reload_cmds='$CC -r -o $output$reload_objs'
4848 -        hardcode_direct=no
4849 +      ia64*)
4850 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4851          ;;
4852 -      motorola)
4853 -        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4854 -        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4855 +      *)
4856 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4857 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4858 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4859          ;;
4860 +      esac
4861 +    fi
4862 +    case "$host_cpu" in
4863 +    hppa*64*)
4864 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4865 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4866 +      ;;
4867 +    ia64*)
4868 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4869 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4870 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4871 +                                             # but as the default
4872 +                                             # location of the library.
4873 +      ;;
4874 +    *)
4875 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4876 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4877 +                                             # but as the default
4878 +                                             # location of the library.
4879 +      ;;
4880      esac
4881 -    runpath_var='LD_RUN_PATH'
4882 -    hardcode_shlibpath_var=no
4883 -    ;;
4884  
4885 -  sysv4.3*)
4886 -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4887 -    hardcode_shlibpath_var=no
4888 -    export_dynamic_flag_spec='-Bexport'
4889 -    ;;
4890 -
4891 -  sysv5*)
4892 -    no_undefined_flag=' -z text'
4893 -    # $CC -shared without GNU ld will not create a library from C++
4894 -    # object files and a static libstdc++, better avoid it by now
4895 -    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4896 -    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4897 -               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4898 -    hardcode_libdir_flag_spec=
4899 -    hardcode_shlibpath_var=no
4900 -    runpath_var='LD_RUN_PATH'
4901 -    ;;
4902 -
4903 -  uts4*)
4904 -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4905 -    hardcode_libdir_flag_spec='-L$libdir'
4906 -    hardcode_shlibpath_var=no
4907 +    case $cc_basename in
4908 +      CC)
4909 +       # FIXME: insert proper C++ library support
4910 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
4911 +       ;;
4912 +      aCC)
4913 +       case "$host_cpu" in
4914 +       hppa*64*|ia64*)
4915 +         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4916 +         ;;
4917 +       *)
4918 +         _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'
4919 +         ;;
4920 +       esac
4921 +       # Commands to make compiler produce verbose output that lists
4922 +       # what "hidden" libraries, object files and flags are used when
4923 +       # linking a shared library.
4924 +       #
4925 +       # There doesn't appear to be a way to prevent this compiler from
4926 +       # explicitly linking system object files so we need to strip them
4927 +       # from the output so that they don't get included in the library
4928 +       # dependencies.
4929 +       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'
4930 +       ;;
4931 +      *)
4932 +       if test "$GXX" = yes; then
4933 +         if test $with_gnu_ld = no; then
4934 +           case "$host_cpu" in
4935 +           ia64*|hppa*64*)
4936 +             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4937 +             ;;
4938 +           *)
4939 +             _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'
4940 +             ;;
4941 +           esac
4942 +         fi
4943 +       else
4944 +         # FIXME: insert proper C++ library support
4945 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4946 +       fi
4947 +       ;;
4948 +    esac
4949      ;;
4950 -
4951 -  dgux*)
4952 -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4953 -    hardcode_libdir_flag_spec='-L$libdir'
4954 -    hardcode_shlibpath_var=no
4955 +  irix5* | irix6*)
4956 +    case $cc_basename in
4957 +      CC)
4958 +       # SGI C++
4959 +       _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'
4960 +
4961 +       # Archives containing C++ object files must be created using
4962 +       # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4963 +       # necessary to make sure instantiated templates are included
4964 +       # in the archive.
4965 +       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4966 +       ;;
4967 +      *)
4968 +       if test "$GXX" = yes; then
4969 +         if test "$with_gnu_ld" = no; then
4970 +           _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'
4971 +         else
4972 +           _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'
4973 +         fi
4974 +       fi
4975 +       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4976 +       ;;
4977 +    esac
4978 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4979 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4980      ;;
4981 -
4982 -  sysv4*MP*)
4983 -    if test -d /usr/nec; then
4984 -      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4985 -      hardcode_shlibpath_var=no
4986 -      runpath_var=LD_RUN_PATH
4987 -      hardcode_runpath_var=yes
4988 -      ld_shlibs=yes
4989 -    fi
4990 +  linux*)
4991 +    case $cc_basename in
4992 +      KCC)
4993 +       # Kuck and Associates, Inc. (KAI) C++ Compiler
4994 +
4995 +       # KCC will only create a shared library if the output file
4996 +       # ends with ".so" (or ".sl" for HP-UX), so rename the library
4997 +       # to its proper name (with version) after linking.
4998 +       _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4999 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5000 +       # Commands to make compiler produce verbose output that lists
5001 +       # what "hidden" libraries, object files and flags are used when
5002 +       # linking a shared library.
5003 +       #
5004 +       # There doesn't appear to be a way to prevent this compiler from
5005 +       # explicitly linking system object files so we need to strip them
5006 +       # from the output so that they don't get included in the library
5007 +       # dependencies.
5008 +       output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5009 +
5010 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5011 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5012 +
5013 +       # Archives containing C++ object files must be created using
5014 +       # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5015 +       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5016 +       ;;
5017 +      icpc)
5018 +       # Intel C++
5019 +       with_gnu_ld=yes
5020 +       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5021 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5022 +       _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'
5023 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5024 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5025 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5026 +       ;;
5027 +      cxx)
5028 +       # Compaq C++
5029 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5030 +       _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'
5031 +
5032 +       runpath_var=LD_RUN_PATH
5033 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5034 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5035 +
5036 +       # Commands to make compiler produce verbose output that lists
5037 +       # what "hidden" libraries, object files and flags are used when
5038 +       # linking a shared library.
5039 +       #
5040 +       # There doesn't appear to be a way to prevent this compiler from
5041 +       # explicitly linking system object files so we need to strip them
5042 +       # from the output so that they don't get included in the library
5043 +       # dependencies.
5044 +       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'
5045 +       ;;
5046 +    esac
5047      ;;
5048 -
5049 -  sysv4.2uw2*)
5050 -    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5051 -    hardcode_direct=yes
5052 -    hardcode_minus_L=no
5053 -    hardcode_shlibpath_var=no
5054 -    hardcode_runpath_var=yes
5055 -    runpath_var=LD_RUN_PATH
5056 +  lynxos*)
5057 +    # FIXME: insert proper C++ library support
5058 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5059 +    ;;
5060 +  m88k*)
5061 +    # FIXME: insert proper C++ library support
5062 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5063 +    ;;
5064 +  mvs*)
5065 +    case $cc_basename in
5066 +      cxx)
5067 +       # FIXME: insert proper C++ library support
5068 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5069 +       ;;
5070 +      *)
5071 +       # FIXME: insert proper C++ library support
5072 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5073 +       ;;
5074 +    esac
5075      ;;
5076 -
5077 -  sysv5uw7* | unixware7*)
5078 -    no_undefined_flag='${wl}-z ${wl}text'
5079 -    if test "$GCC" = yes; then
5080 -      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5081 -    else
5082 -      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5083 +  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5084 +    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5085 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5086 +      wlarc=
5087 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5088 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5089 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5090      fi
5091 -    runpath_var='LD_RUN_PATH'
5092 -    hardcode_shlibpath_var=no
5093 -    ;;
5094 -
5095 -  *)
5096 -    ld_shlibs=no
5097 +    # Workaround some broken pre-1.5 toolchains
5098 +    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5099      ;;
5100 -  esac
5101 -fi
5102 -AC_MSG_RESULT([$ld_shlibs])
5103 -test "$ld_shlibs" = no && can_build_shared=no
5104 -
5105 -# Check hardcoding attributes.
5106 -AC_MSG_CHECKING([how to hardcode library paths into programs])
5107 -hardcode_action=
5108 -if test -n "$hardcode_libdir_flag_spec" || \
5109 -   test -n "$runpath_var"; then
5110 -
5111 -  # We can hardcode non-existant directories.
5112 -  if test "$hardcode_direct" != no &&
5113 -     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5114 -     # have to relink, otherwise we might link with an installed library
5115 -     # when we should be linking with a yet-to-be-installed one
5116 -     ## test "$hardcode_shlibpath_var" != no &&
5117 -     test "$hardcode_minus_L" != no; then
5118 -    # Linking always hardcodes the temporary library directory.
5119 -    hardcode_action=relink
5120 -  else
5121 -    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5122 -    hardcode_action=immediate
5123 -  fi
5124 -else
5125 -  # We cannot hardcode anything, or else we can only hardcode existing
5126 -  # directories.
5127 -  hardcode_action=unsupported
5128 -fi
5129 -AC_MSG_RESULT([$hardcode_action])
5130 -
5131 -striplib=
5132 -old_striplib=
5133 -AC_MSG_CHECKING([whether stripping libraries is possible])
5134 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5135 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5136 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5137 -  AC_MSG_RESULT([yes])
5138 -else
5139 -  AC_MSG_RESULT([no])
5140 -fi
5141 -
5142 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
5143 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
5144 -
5145 -# PORTME Fill in your ld.so characteristics
5146 -AC_MSG_CHECKING([dynamic linker characteristics])
5147 -library_names_spec=
5148 -libname_spec='lib$name'
5149 -soname_spec=
5150 -postinstall_cmds=
5151 -postuninstall_cmds=
5152 -finish_cmds=
5153 -finish_eval=
5154 -shlibpath_var=
5155 -shlibpath_overrides_runpath=unknown
5156 -version_type=none
5157 -dynamic_linker="$host_os ld.so"
5158 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
5159 -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5160 -
5161 -case $host_os in
5162 -aix3*)
5163 -  version_type=linux
5164 -  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5165 -  shlibpath_var=LIBPATH
5166 +  osf3*)
5167 +    case $cc_basename in
5168 +      KCC)
5169 +       # Kuck and Associates, Inc. (KAI) C++ Compiler
5170 +
5171 +       # KCC will only create a shared library if the output file
5172 +       # ends with ".so" (or ".sl" for HP-UX), so rename the library
5173 +       # to its proper name (with version) after linking.
5174 +       _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5175 +
5176 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5177 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5178 +
5179 +       # Archives containing C++ object files must be created using
5180 +       # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5181 +       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5182  
5183 -  # AIX has no versioning support, so we append a major version to the name.
5184 -  soname_spec='${libname}${release}.so$major'
5185 -  ;;
5186 +       ;;
5187 +      RCC)
5188 +       # Rational C++ 2.4.1
5189 +       # FIXME: insert proper C++ library support
5190 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5191 +       ;;
5192 +      cxx)
5193 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5194 +       _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'
5195 +
5196 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5197 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5198 +
5199 +       # Commands to make compiler produce verbose output that lists
5200 +       # what "hidden" libraries, object files and flags are used when
5201 +       # linking a shared library.
5202 +       #
5203 +       # There doesn't appear to be a way to prevent this compiler from
5204 +       # explicitly linking system object files so we need to strip them
5205 +       # from the output so that they don't get included in the library
5206 +       # dependencies.
5207 +       output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5208 +       ;;
5209 +      *)
5210 +       if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5211 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5212 +         _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'
5213 +
5214 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5215 +         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5216 +
5217 +         # Commands to make compiler produce verbose output that lists
5218 +         # what "hidden" libraries, object files and flags are used when
5219 +         # linking a shared library.
5220 +         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5221  
5222 -aix4* | aix5*)
5223 -  version_type=linux
5224 -  need_lib_prefix=no
5225 -  need_version=no
5226 -  hardcode_into_libs=yes
5227 -  if test "$host_cpu" = ia64; then
5228 -    # AIX 5 supports IA64
5229 -    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5230 -    shlibpath_var=LD_LIBRARY_PATH
5231 -  else
5232 -    # With GCC up to 2.95.x, collect2 would create an import file
5233 -    # for dependence libraries.  The import file would start with
5234 -    # the line `#! .'.  This would cause the generated library to
5235 -    # depend on `.', always an invalid library.  This was fixed in
5236 -    # development snapshots of GCC prior to 3.0.
5237 -    case $host_os in
5238 -      aix4 | aix4.[[01]] | aix4.[[01]].*)
5239 -       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5240 -            echo ' yes '
5241 -            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5242 -         :
5243         else
5244 -         can_build_shared=no
5245 +         # FIXME: insert proper C++ library support
5246 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
5247         fi
5248         ;;
5249      esac
5250 -    # AIX (on Power*) has no versioning support, so currently we can
5251 -    # not hardcode correct soname into executable. Probably we can
5252 -    # add versioning support to collect2, so additional links can
5253 -    # be useful in future.
5254 -    if test "$aix_use_runtimelinking" = yes; then
5255 -      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5256 -      # instead of lib<name>.a to let people know that these are not
5257 -      # typical AIX shared libraries.
5258 -      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5259 -    else
5260 -      # We preserve .a as extension for shared libraries through AIX4.2
5261 -      # and later when we are not doing run time linking.
5262 -      library_names_spec='${libname}${release}.a $libname.a'
5263 -      soname_spec='${libname}${release}.so$major'
5264 -    fi
5265 -    shlibpath_var=LIBPATH
5266 -  fi
5267 -  hardcode_into_libs=yes
5268 -  ;;
5269 -
5270 -amigaos*)
5271 -  library_names_spec='$libname.ixlibrary $libname.a'
5272 -  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5273 -  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5274 -  ;;
5275 -
5276 -beos*)
5277 -  library_names_spec='${libname}.so'
5278 -  dynamic_linker="$host_os ld.so"
5279 -  shlibpath_var=LIBRARY_PATH
5280 -  ;;
5281 -
5282 -bsdi4*)
5283 -  version_type=linux
5284 -  need_version=no
5285 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5286 -  soname_spec='${libname}${release}.so$major'
5287 -  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5288 -  shlibpath_var=LD_LIBRARY_PATH
5289 -  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5290 -  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5291 -  export_dynamic_flag_spec=-rdynamic
5292 -  # the default ld.so.conf also contains /usr/contrib/lib and
5293 -  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5294 -  # libtool to hard-code these into programs
5295 -  ;;
5296 -
5297 -cygwin* | mingw* | pw32*)
5298 -  version_type=windows
5299 -  need_version=no
5300 -  need_lib_prefix=no
5301 -  case $GCC,$host_os in
5302 -  yes,cygwin*)
5303 -    library_names_spec='$libname.dll.a'
5304 -    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
5305 -    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5306 -      dldir=$destdir/`dirname \$dlpath`~
5307 -      test -d \$dldir || mkdir -p \$dldir~
5308 -      $install_prog .libs/$dlname \$dldir/$dlname'
5309 -    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5310 -      dlpath=$dir/\$dldll~
5311 -       $rm \$dlpath'
5312 -    ;;
5313 -  yes,mingw*)
5314 -    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
5315 -    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5316 -    ;;
5317 -  yes,pw32*)
5318 -    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5319      ;;
5320 -  *)
5321 -    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
5322 -    ;;
5323 -  esac
5324 -  dynamic_linker='Win32 ld.exe'
5325 -  # FIXME: first we should search . and the directory the executable is in
5326 -  shlibpath_var=PATH
5327 -  ;;
5328 -
5329 -darwin* | rhapsody*)
5330 -  dynamic_linker="$host_os dyld"
5331 -  version_type=darwin
5332 -  need_lib_prefix=no
5333 -  need_version=no
5334 -  # FIXME: Relying on posixy $() will cause problems for
5335 -  #        cross-compilation, but unfortunately the echo tests do not
5336 -  #        yet detect zsh echo's removal of \ escapes.
5337 -  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5338 -  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5339 -  shlibpath_overrides_runpath=yes
5340 -  shlibpath_var=DYLD_LIBRARY_PATH
5341 -  ;;
5342 -
5343 -freebsd1*)
5344 -  dynamic_linker=no
5345 -  ;;
5346 -
5347 -freebsd*-gnu*)
5348 -  version_type=linux
5349 -  need_lib_prefix=no
5350 -  need_version=no
5351 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5352 -  soname_spec='${libname}${release}.so$major'
5353 -  shlibpath_var=LD_LIBRARY_PATH
5354 -  shlibpath_overrides_runpath=no
5355 -  hardcode_into_libs=yes
5356 -  dynamic_linker='GNU/FreeBSD ld.so'
5357 -  ;;
5358 +  osf4* | osf5*)
5359 +    case $cc_basename in
5360 +      KCC)
5361 +       # Kuck and Associates, Inc. (KAI) C++ Compiler
5362 +
5363 +       # KCC will only create a shared library if the output file
5364 +       # ends with ".so" (or ".sl" for HP-UX), so rename the library
5365 +       # to its proper name (with version) after linking.
5366 +       _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5367 +
5368 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5369 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5370 +
5371 +       # Archives containing C++ object files must be created using
5372 +       # the KAI C++ compiler.
5373 +       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5374 +       ;;
5375 +      RCC)
5376 +       # Rational C++ 2.4.1
5377 +       # FIXME: insert proper C++ library support
5378 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5379 +       ;;
5380 +      cxx)
5381 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5382 +       _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'
5383 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5384 +         echo "-hidden">> $lib.exp~
5385 +         $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~
5386 +         $rm $lib.exp'
5387 +
5388 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5389 +       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5390 +
5391 +       # Commands to make compiler produce verbose output that lists
5392 +       # what "hidden" libraries, object files and flags are used when
5393 +       # linking a shared library.
5394 +       #
5395 +       # There doesn't appear to be a way to prevent this compiler from
5396 +       # explicitly linking system object files so we need to strip them
5397 +       # from the output so that they don't get included in the library
5398 +       # dependencies.
5399 +       output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5400 +       ;;
5401 +      *)
5402 +       if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5403 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5404 +        _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'
5405 +
5406 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5407 +         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5408 +
5409 +         # Commands to make compiler produce verbose output that lists
5410 +         # what "hidden" libraries, object files and flags are used when
5411 +         # linking a shared library.
5412 +         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5413  
5414 -freebsd*)
5415 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5416 -  version_type=freebsd-$objformat
5417 -  case $version_type in
5418 -    freebsd-elf*)
5419 -      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5420 -      need_version=no
5421 -      need_lib_prefix=no
5422 -      ;;
5423 -    freebsd-*)
5424 -      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5425 -      need_version=yes
5426 -      ;;
5427 -  esac
5428 -  shlibpath_var=LD_LIBRARY_PATH
5429 -  case $host_os in
5430 -  freebsd2*)
5431 -    shlibpath_overrides_runpath=yes
5432 +       else
5433 +         # FIXME: insert proper C++ library support
5434 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
5435 +       fi
5436 +       ;;
5437 +    esac
5438      ;;
5439 -  *)
5440 -    shlibpath_overrides_runpath=no
5441 -    hardcode_into_libs=yes
5442 +  psos*)
5443 +    # FIXME: insert proper C++ library support
5444 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5445 +    ;;
5446 +  sco*)
5447 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5448 +    case $cc_basename in
5449 +      CC)
5450 +       # FIXME: insert proper C++ library support
5451 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5452 +       ;;
5453 +      *)
5454 +       # FIXME: insert proper C++ library support
5455 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5456 +       ;;
5457 +    esac
5458      ;;
5459 -  esac
5460 -  ;;
5461 +  sunos4*)
5462 +    case $cc_basename in
5463 +      CC)
5464 +       # Sun C++ 4.x
5465 +       # FIXME: insert proper C++ library support
5466 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5467 +       ;;
5468 +      lcc)
5469 +       # Lucid
5470 +       # FIXME: insert proper C++ library support
5471 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5472 +       ;;
5473 +      *)
5474 +       # FIXME: insert proper C++ library support
5475 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5476 +       ;;
5477 +    esac
5478 +    ;;
5479 +  solaris*)
5480 +    case $cc_basename in
5481 +      CC)
5482 +       # Sun C++ 4.2, 5.x and Centerline C++
5483 +       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5484 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5485 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5486 +       $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'
5487 +
5488 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5489 +       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5490 +       case $host_os in
5491 +         solaris2.[0-5] | solaris2.[0-5].*) ;;
5492 +         *)
5493 +           # The C++ compiler is used as linker so we must use $wl
5494 +           # flag to pass the commands to the underlying system
5495 +           # linker.
5496 +           # Supported since Solaris 2.6 (maybe 2.5.1?)
5497 +           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5498 +           ;;
5499 +       esac
5500 +       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5501  
5502 -gnu*)
5503 -  version_type=linux
5504 -  need_lib_prefix=no
5505 -  need_version=no
5506 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5507 -  soname_spec='${libname}${release}.so$major'
5508 -  shlibpath_var=LD_LIBRARY_PATH
5509 -  hardcode_into_libs=yes
5510 -  ;;
5511 +       # Commands to make compiler produce verbose output that lists
5512 +       # what "hidden" libraries, object files and flags are used when
5513 +       # linking a shared library.
5514 +       #
5515 +       # There doesn't appear to be a way to prevent this compiler from
5516 +       # explicitly linking system object files so we need to strip them
5517 +       # from the output so that they don't get included in the library
5518 +       # dependencies.
5519 +       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'
5520 +
5521 +       # Archives containing C++ object files must be created using
5522 +       # "CC -xar", where "CC" is the Sun C++ compiler.  This is
5523 +       # necessary to make sure instantiated templates are included
5524 +       # in the archive.
5525 +       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5526 +       ;;
5527 +      gcx)
5528 +       # Green Hills C++ Compiler
5529 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5530  
5531 -hpux9* | hpux10* | hpux11*)
5532 -  # Give a soname corresponding to the major version so that dld.sl refuses to
5533 -  # link against other versions.
5534 -  dynamic_linker="$host_os dld.sl"
5535 -  version_type=sunos
5536 -  need_lib_prefix=no
5537 -  need_version=no
5538 -  shlibpath_var=SHLIB_PATH
5539 -  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5540 -  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5541 -  soname_spec='${libname}${release}.sl$major'
5542 -  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5543 -  postinstall_cmds='chmod 555 $lib'
5544 -  ;;
5545 +       # The C++ compiler must be used to create the archive.
5546 +       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5547 +       ;;
5548 +      *)
5549 +       # GNU C++ compiler with Solaris linker
5550 +       if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5551 +         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5552 +         if $CC --version | grep -v '^2\.7' > /dev/null; then
5553 +           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5554 +           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5555 +               $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5556 +
5557 +           # Commands to make compiler produce verbose output that lists
5558 +           # what "hidden" libraries, object files and flags are used when
5559 +           # linking a shared library.
5560 +           output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5561 +         else
5562 +           # g++ 2.7 appears to require `-G' NOT `-shared' on this
5563 +           # platform.
5564 +           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5565 +           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5566 +               $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5567 +
5568 +           # Commands to make compiler produce verbose output that lists
5569 +           # what "hidden" libraries, object files and flags are used when
5570 +           # linking a shared library.
5571 +           output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5572 +         fi
5573  
5574 -irix5* | irix6* | nonstopux*)
5575 -  case $host_os in
5576 -    nonstopux*) version_type=nonstopux ;;
5577 -    *)          version_type=irix ;;
5578 -  esac
5579 -  need_lib_prefix=no
5580 -  need_version=no
5581 -  soname_spec='${libname}${release}.so$major'
5582 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5583 -  case $host_os in
5584 -  irix5* | nonstopux*)
5585 -    libsuff= shlibsuff=
5586 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5587 +       fi
5588 +       ;;
5589 +    esac
5590      ;;
5591 -  *)
5592 -    case $LD in # libtool.m4 will add one of these switches to LD
5593 -    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5594 -    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5595 -    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5596 -    *) libsuff= shlibsuff= libmagic=never-match;;
5597 +  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5598 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5599 +    ;;
5600 +  tandem*)
5601 +    case $cc_basename in
5602 +      NCC)
5603 +       # NonStop-UX NCC 3.20
5604 +       # FIXME: insert proper C++ library support
5605 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5606 +       ;;
5607 +      *)
5608 +       # FIXME: insert proper C++ library support
5609 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
5610 +       ;;
5611      esac
5612      ;;
5613 -  esac
5614 -  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5615 -  shlibpath_overrides_runpath=no
5616 -  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5617 -  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5618 -  ;;
5619 -
5620 -# No shared lib support for Linux oldld, aout, or coff.
5621 -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5622 -  dynamic_linker=no
5623 -  ;;
5624 +  vxworks*)
5625 +    # FIXME: insert proper C++ library support
5626 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5627 +    ;;
5628 +  *)
5629 +    # FIXME: insert proper C++ library support
5630 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5631 +    ;;
5632 +esac
5633 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5634 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5635  
5636 -# This must be Linux ELF.
5637 -linux-gnu*)
5638 -  version_type=linux
5639 -  need_lib_prefix=no
5640 -  need_version=no
5641 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5642 -  soname_spec='${libname}${release}.so$major'
5643 -  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5644 -  shlibpath_var=LD_LIBRARY_PATH
5645 -  shlibpath_overrides_runpath=no
5646 -  # This implies no fast_install, which is unacceptable.
5647 -  # Some rework will be needed to allow for fast_install
5648 -  # before this can be enabled.
5649 -  hardcode_into_libs=yes
5650 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
5651 +_LT_AC_TAGVAR(LD, $1)="$LD"
5652  
5653 -  # We used to test for /lib/ld.so.1 and disable shared libraries on
5654 -  # powerpc, because MkLinux only supported shared libraries with the
5655 -  # GNU dynamic linker.  Since this was broken with cross compilers,
5656 -  # most powerpc-linux boxes support dynamic linking these days and
5657 -  # people can always --disable-shared, the test was removed, and we
5658 -  # assume the GNU/Linux dynamic linker is in use.
5659 -  dynamic_linker='GNU/Linux ld.so'
5660 -  ;;
5661 +AC_LIBTOOL_POSTDEP_PREDEP($1)
5662 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5663 +AC_LIBTOOL_PROG_CC_C_O($1)
5664 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5665 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5666 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5667 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5668 +AC_LIBTOOL_SYS_LIB_STRIP
5669 +AC_LIBTOOL_DLOPEN_SELF($1)
5670 +
5671 +AC_LIBTOOL_CONFIG($1)
5672 +
5673 +AC_LANG_POP
5674 +CC=$lt_save_CC
5675 +LDCXX=$LD
5676 +LD=$lt_save_LD
5677 +GCC=$lt_save_GCC
5678 +with_gnu_ldcxx=$with_gnu_ld
5679 +with_gnu_ld=$lt_save_with_gnu_ld
5680 +lt_cv_path_LDCXX=$lt_cv_path_LD
5681 +lt_cv_path_LD=$lt_save_path_LD
5682 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5683 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5684 +])# AC_LIBTOOL_LANG_CXX_CONFIG
5685  
5686 -netbsd*)
5687 -  version_type=sunos
5688 -  need_lib_prefix=no
5689 -  need_version=no
5690 -  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5691 -    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5692 -    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5693 -    dynamic_linker='NetBSD (a.out) ld.so'
5694 -  else
5695 -    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5696 -    soname_spec='${libname}${release}.so$major'
5697 -    dynamic_linker='NetBSD ld.elf_so'
5698 -  fi
5699 -  shlibpath_var=LD_LIBRARY_PATH
5700 -  shlibpath_overrides_runpath=yes
5701 -  hardcode_into_libs=yes
5702 -  ;;
5703 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5704 +# ------------------------
5705 +# Figure out "hidden" library dependencies from verbose
5706 +# compiler output when linking a shared library.
5707 +# Parse the compiler output and extract the necessary
5708 +# objects, libraries and library flags.
5709 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5710 +dnl we can't use the lt_simple_compile_test_code here,
5711 +dnl because it contains code intended for an executable,
5712 +dnl not a library.  It's possible we should let each
5713 +dnl tag define a new lt_????_link_test_code variable,
5714 +dnl but it's only used here...
5715 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5716 +int a;
5717 +void foo (void) { a = 0; }
5718 +EOF
5719 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5720 +class Foo
5721 +{
5722 +public:
5723 +  Foo (void) { a = 0; }
5724 +private:
5725 +  int a;
5726 +};
5727 +EOF
5728 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5729 +      subroutine foo
5730 +      implicit none
5731 +      integer*4 a
5732 +      a=0
5733 +      return
5734 +      end
5735 +EOF
5736 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5737 +public class foo {
5738 +  private int a;
5739 +  public void bar (void) {
5740 +    a = 0;
5741 +  }
5742 +};
5743 +EOF
5744 +])
5745 +dnl Parse the compiler output and extract the necessary
5746 +dnl objects, libraries and library flags.
5747 +if AC_TRY_EVAL(ac_compile); then
5748 +  # Parse the compiler output and extract the necessary
5749 +  # objects, libraries and library flags.
5750 +
5751 +  # Sentinel used to keep track of whether or not we are before
5752 +  # the conftest object file.
5753 +  pre_test_object_deps_done=no
5754 +
5755 +  # The `*' in the case matches for architectures that use `case' in
5756 +  # $output_verbose_cmd can trigger glob expansion during the loop
5757 +  # eval without this substitution.
5758 +  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
5759 +
5760 +  for p in `eval $output_verbose_link_cmd`; do
5761 +    case $p in
5762 +
5763 +    -L* | -R* | -l*)
5764 +       # Some compilers place space between "-{L,R}" and the path.
5765 +       # Remove the space.
5766 +       if test $p = "-L" \
5767 +         || test $p = "-R"; then
5768 +        prev=$p
5769 +        continue
5770 +       else
5771 +        prev=
5772 +       fi
5773 +
5774 +       if test "$pre_test_object_deps_done" = no; then
5775 +        case $p in
5776 +        -L* | -R*)
5777 +          # Internal compiler library paths should come after those
5778 +          # provided the user.  The postdeps already come after the
5779 +          # user supplied libs so there is no need to process them.
5780 +          if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5781 +            _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5782 +          else
5783 +            _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5784 +          fi
5785 +          ;;
5786 +        # The "-l" case would never come before the object being
5787 +        # linked, so don't bother handling this case.
5788 +        esac
5789 +       else
5790 +        if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5791 +          _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5792 +        else
5793 +          _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5794 +        fi
5795 +       fi
5796 +       ;;
5797 +
5798 +    *.$objext)
5799 +       # This assumes that the test object file only shows up
5800 +       # once in the compiler output.
5801 +       if test "$p" = "conftest.$objext"; then
5802 +        pre_test_object_deps_done=yes
5803 +        continue
5804 +       fi
5805 +
5806 +       if test "$pre_test_object_deps_done" = no; then
5807 +        if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5808 +          _LT_AC_TAGVAR(predep_objects, $1)="$p"
5809 +        else
5810 +          _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5811 +        fi
5812 +       else
5813 +        if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5814 +          _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5815 +        else
5816 +          _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5817 +        fi
5818 +       fi
5819 +       ;;
5820  
5821 -newsos6)
5822 -  version_type=linux
5823 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5824 -  shlibpath_var=LD_LIBRARY_PATH
5825 -  shlibpath_overrides_runpath=yes
5826 -  ;;
5827 +    *) ;; # Ignore the rest.
5828  
5829 -openbsd*)
5830 -  version_type=sunos
5831 -  need_lib_prefix=no
5832 -  need_version=no
5833 -  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5834 -    case "$host_os" in
5835 -    openbsd2.[[89]] | openbsd2.[[89]].*)
5836 -      shlibpath_overrides_runpath=no
5837 -      ;;
5838 -    *)
5839 -      shlibpath_overrides_runpath=yes
5840 -      ;;
5841      esac
5842 -  else
5843 -    shlibpath_overrides_runpath=yes
5844 -  fi
5845 -  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5846 -  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5847 -  shlibpath_var=LD_LIBRARY_PATH
5848 -  ;;
5849 -
5850 -os2*)
5851 -  libname_spec='$name'
5852 -  need_lib_prefix=no
5853 -  library_names_spec='$libname.dll $libname.a'
5854 -  dynamic_linker='OS/2 ld.exe'
5855 -  shlibpath_var=LIBPATH
5856 -  ;;
5857 -
5858 -osf3* | osf4* | osf5*)
5859 -  version_type=osf
5860 -  need_version=no
5861 -  need_lib_prefix=no
5862 -  soname_spec='${libname}${release}.so$major'
5863 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5864 -  shlibpath_var=LD_LIBRARY_PATH
5865 -  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5866 -  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5867 -  hardcode_into_libs=yes
5868 -  ;;
5869 +  done
5870  
5871 -sco3.2v5*)
5872 -  version_type=osf
5873 -  soname_spec='${libname}${release}.so$major'
5874 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5875 -  shlibpath_var=LD_LIBRARY_PATH
5876 -  ;;
5877 +  # Clean up.
5878 +  rm -f a.out a.exe
5879 +else
5880 +  echo "libtool.m4: error: problem compiling $1 test program"
5881 +fi
5882  
5883 -solaris*)
5884 -  version_type=linux
5885 -  need_lib_prefix=no
5886 -  need_version=no
5887 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5888 -  soname_spec='${libname}${release}.so$major'
5889 -  shlibpath_var=LD_LIBRARY_PATH
5890 -  shlibpath_overrides_runpath=yes
5891 -  hardcode_into_libs=yes
5892 -  # ldd complains unless libraries are executable
5893 -  postinstall_cmds='chmod +x $lib'
5894 -  ;;
5895 +$rm -f confest.$objext
5896  
5897 -sunos4*)
5898 -  version_type=sunos
5899 -  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5900 -  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5901 -  shlibpath_var=LD_LIBRARY_PATH
5902 -  shlibpath_overrides_runpath=yes
5903 -  if test "$with_gnu_ld" = yes; then
5904 -    need_lib_prefix=no
5905 -  fi
5906 -  need_version=yes
5907 -  ;;
5908 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
5909 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5910 +esac
5911 +])# AC_LIBTOOL_POSTDEP_PREDEP
5912  
5913 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5914 -  version_type=linux
5915 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5916 -  soname_spec='${libname}${release}.so$major'
5917 -  shlibpath_var=LD_LIBRARY_PATH
5918 -  case $host_vendor in
5919 -    sni)
5920 -      shlibpath_overrides_runpath=no
5921 -      need_lib_prefix=no
5922 -      export_dynamic_flag_spec='${wl}-Blargedynsym'
5923 -      runpath_var=LD_RUN_PATH
5924 -      ;;
5925 -    siemens)
5926 -      need_lib_prefix=no
5927 -      ;;
5928 -    motorola)
5929 -      need_lib_prefix=no
5930 -      need_version=no
5931 -      shlibpath_overrides_runpath=no
5932 -      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5933 -      ;;
5934 -  esac
5935 -  ;;
5936 +# AC_LIBTOOL_LANG_F77_CONFIG
5937 +# ------------------------
5938 +# Ensure that the configuration vars for the C compiler are
5939 +# suitably defined.  Those variables are subsequently used by
5940 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5941 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5942 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5943 +[AC_REQUIRE([AC_PROG_F77])
5944 +AC_LANG_PUSH(Fortran 77)
5945 +
5946 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5947 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5948 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
5949 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5950 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5951 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
5952 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5953 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5954 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5955 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5956 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5957 +_LT_AC_TAGVAR(module_cmds, $1)=
5958 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5959 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5960 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5961 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
5962 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5963 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5964 +
5965 +# Source file extension for f77 test sources.
5966 +ac_ext=f
5967 +
5968 +# Object file extension for compiled f77 test sources.
5969 +objext=o
5970 +_LT_AC_TAGVAR(objext, $1)=$objext
5971  
5972 -uts4*)
5973 -  version_type=linux
5974 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5975 -  soname_spec='${libname}${release}.so$major'
5976 -  shlibpath_var=LD_LIBRARY_PATH
5977 -  ;;
5978 +# Code to be used in simple compile tests
5979 +lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
5980  
5981 -dgux*)
5982 -  version_type=linux
5983 -  need_lib_prefix=no
5984 -  need_version=no
5985 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5986 -  soname_spec='${libname}${release}.so$major'
5987 -  shlibpath_var=LD_LIBRARY_PATH
5988 -  ;;
5989 +# Code to be used in simple link tests
5990 +lt_simple_link_test_code="      program t\n      end\n"
5991  
5992 -sysv4*MP*)
5993 -  if test -d /usr/nec ;then
5994 -    version_type=linux
5995 -    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5996 -    soname_spec='$libname.so.$major'
5997 -    shlibpath_var=LD_LIBRARY_PATH
5998 -  fi
5999 -  ;;
6000 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6001 +_LT_AC_SYS_COMPILER
6002  
6003 -*)
6004 -  dynamic_linker=no
6005 -  ;;
6006 -esac
6007 -AC_MSG_RESULT([$dynamic_linker])
6008 -test "$dynamic_linker" = no && can_build_shared=no
6009 +# Allow CC to be a program name with arguments.
6010 +lt_save_CC="$CC"
6011 +CC=${F77-"f77"}
6012 +compiler=$CC
6013 +_LT_AC_TAGVAR(compiler, $1)=$CC
6014 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6015  
6016 -# Report the final consequences.
6017  AC_MSG_CHECKING([if libtool supports shared libraries])
6018  AC_MSG_RESULT([$can_build_shared])
6019  
6020 @@ -2481,125 +4662,206 @@
6021      postinstall_cmds='$RANLIB $lib'
6022    fi
6023    ;;
6024 +aix4* | aix5*)
6025 +  test "$enable_shared" = yes && enable_static=no
6026 +  ;;
6027 +esac
6028 +AC_MSG_RESULT([$enable_shared])
6029 +
6030 +AC_MSG_CHECKING([whether to build static libraries])
6031 +# Make sure either enable_shared or enable_static is yes.
6032 +test "$enable_shared" = yes || enable_static=yes
6033 +AC_MSG_RESULT([$enable_static])
6034 +
6035 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6036 +
6037 +_LT_AC_TAGVAR(GCC, $1)="$G77"
6038 +_LT_AC_TAGVAR(LD, $1)="$LD"
6039 +
6040 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
6041 +AC_LIBTOOL_PROG_CC_C_O($1)
6042 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6043 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
6044 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6045 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6046 +AC_LIBTOOL_SYS_LIB_STRIP
6047 +
6048 +
6049 +AC_LIBTOOL_CONFIG($1)
6050 +
6051 +AC_LANG_POP
6052 +CC="$lt_save_CC"
6053 +])# AC_LIBTOOL_LANG_F77_CONFIG
6054 +
6055 +
6056 +# AC_LIBTOOL_LANG_GCJ_CONFIG
6057 +# --------------------------
6058 +# Ensure that the configuration vars for the C compiler are
6059 +# suitably defined.  Those variables are subsequently used by
6060 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6061 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6062 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6063 +[AC_LANG_SAVE
6064 +
6065 +# Source file extension for Java test sources.
6066 +ac_ext=java
6067 +
6068 +# Object file extension for compiled Java test sources.
6069 +objext=o
6070 +_LT_AC_TAGVAR(objext, $1)=$objext
6071 +
6072 +# Code to be used in simple compile tests
6073 +lt_simple_compile_test_code="class foo {}\n"
6074 +
6075 +# Code to be used in simple link tests
6076 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
6077 +
6078 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6079 +_LT_AC_SYS_COMPILER
6080 +
6081 +# Allow CC to be a program name with arguments.
6082 +lt_save_CC="$CC"
6083 +CC=${GCJ-"gcj"}
6084 +compiler=$CC
6085 +_LT_AC_TAGVAR(compiler, $1)=$CC
6086 +
6087 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
6088 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6089 +
6090 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6091 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
6092 +AC_LIBTOOL_PROG_CC_C_O($1)
6093 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6094 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
6095 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6096 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6097 +AC_LIBTOOL_SYS_LIB_STRIP
6098 +AC_LIBTOOL_DLOPEN_SELF($1)
6099 +
6100 +AC_LIBTOOL_CONFIG($1)
6101 +
6102 +AC_LANG_RESTORE
6103 +CC="$lt_save_CC"
6104 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
6105 +
6106 +
6107 +# AC_LIBTOOL_LANG_RC_CONFIG
6108 +# --------------------------
6109 +# Ensure that the configuration vars for the Windows resource compiler are
6110 +# suitably defined.  Those variables are subsequently used by
6111 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6112 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
6113 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
6114 +[AC_LANG_SAVE
6115 +
6116 +# Source file extension for RC test sources.
6117 +ac_ext=rc
6118 +
6119 +# Object file extension for compiled RC test sources.
6120 +objext=o
6121 +_LT_AC_TAGVAR(objext, $1)=$objext
6122  
6123 -aix4*)
6124 -  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6125 -    test "$enable_shared" = yes && enable_static=no
6126 -  fi
6127 -  ;;
6128 -esac
6129 -AC_MSG_RESULT([$enable_shared])
6130 +# Code to be used in simple compile tests
6131 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
6132  
6133 -AC_MSG_CHECKING([whether to build static libraries])
6134 -# Make sure either enable_shared or enable_static is yes.
6135 -test "$enable_shared" = yes || enable_static=yes
6136 -AC_MSG_RESULT([$enable_static])
6137 +# Code to be used in simple link tests
6138 +lt_simple_link_test_code="$lt_simple_compile_test_code"
6139  
6140 -if test "$hardcode_action" = relink; then
6141 -  # Fast installation is not supported
6142 -  enable_fast_install=no
6143 -elif test "$shlibpath_overrides_runpath" = yes ||
6144 -     test "$enable_shared" = no; then
6145 -  # Fast installation is not necessary
6146 -  enable_fast_install=needless
6147 -fi
6148 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6149 +_LT_AC_SYS_COMPILER
6150  
6151 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6152 -if test "$GCC" = yes; then
6153 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6154 -fi
6155 +# Allow CC to be a program name with arguments.
6156 +lt_save_CC="$CC"
6157 +CC=${RC-"windres"}
6158 +compiler=$CC
6159 +_LT_AC_TAGVAR(compiler, $1)=$CC
6160 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6161  
6162 -AC_LIBTOOL_DLOPEN_SELF
6163 +AC_LIBTOOL_CONFIG($1)
6164 +
6165 +AC_LANG_RESTORE
6166 +CC="$lt_save_CC"
6167 +])# AC_LIBTOOL_LANG_RC_CONFIG
6168  
6169 -if test "$enable_shared" = yes && test "$GCC" = yes; then
6170 -  case $archive_cmds in
6171 -  *'~'*)
6172 -    # FIXME: we may have to deal with multi-command sequences.
6173 -    ;;
6174 -  '$CC '*)
6175 -    # Test whether the compiler implicitly links with -lc since on some
6176 -    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6177 -    # to ld, don't add -lc before -lgcc.
6178 -    AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6179 -    AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
6180 -    [$rm conftest*
6181 -    echo 'static int dummy;' > conftest.$ac_ext
6182 -
6183 -    if AC_TRY_EVAL(ac_compile); then
6184 -      soname=conftest
6185 -      lib=conftest
6186 -      libobjs=conftest.$ac_objext
6187 -      deplibs=
6188 -      wl=$lt_cv_prog_cc_wl
6189 -      compiler_flags=-v
6190 -      linker_flags=-v
6191 -      verstring=
6192 -      output_objdir=.
6193 -      libname=conftest
6194 -      save_allow_undefined_flag=$allow_undefined_flag
6195 -      allow_undefined_flag=
6196 -      if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6197 -      then
6198 -       lt_cv_archive_cmds_need_lc=no
6199 -      else
6200 -       lt_cv_archive_cmds_need_lc=yes
6201 -      fi
6202 -      allow_undefined_flag=$save_allow_undefined_flag
6203 -    else
6204 -      cat conftest.err 1>&5
6205 -    fi])
6206 -    AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
6207 -    ;;
6208 -  esac
6209 -fi
6210 -need_lc=${lt_cv_archive_cmds_need_lc-yes}
6211  
6212 -# The second clause should only fire when bootstrapping the
6213 +# AC_LIBTOOL_CONFIG([TAGNAME])
6214 +# ----------------------------
6215 +# If TAGNAME is not passed, then create an initial libtool script
6216 +# with a default configuration from the untagged config vars.  Otherwise
6217 +# add code to config.status for appending the configuration named by
6218 +# TAGNAME from the matching tagged config vars.
6219 +AC_DEFUN([AC_LIBTOOL_CONFIG],
6220 +[# The else clause should only fire when bootstrapping the
6221  # libtool distribution, otherwise you forgot to ship ltmain.sh
6222  # with your package, and you will get complaints that there are
6223  # no rules to generate ltmain.sh.
6224  if test -f "$ltmain"; then
6225 -  :
6226 -else
6227 -  # If there is no Makefile yet, we rely on a make rule to execute
6228 -  # `config.status --recheck' to rerun these tests and create the
6229 -  # libtool script then.
6230 -  test -f Makefile && make "$ltmain"
6231 -fi
6232 -
6233 -if test -f "$ltmain"; then
6234 -  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6235 -  $rm -f "${ofile}T"
6236 -
6237 -  echo creating $ofile
6238 -
6239 +  # See if we are running on zsh, and set the options which allow our commands through
6240 +  # without removal of \ escapes.
6241 +  if test -n "${ZSH_VERSION+set}" ; then
6242 +    setopt NO_GLOB_SUBST
6243 +  fi
6244    # Now quote all the things that may contain metacharacters while being
6245    # careful not to overquote the AC_SUBSTed values.  We take copies of the
6246    # variables and quote the copies for generation of the libtool script.
6247 -  for var in echo old_CC old_CFLAGS SED \
6248 -    AR AR_FLAGS CC LD LN_S NM SHELL \
6249 -    reload_flag reload_cmds wl \
6250 -    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6251 -    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6252 -    library_names_spec soname_spec \
6253 -    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6254 -    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6255 -    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6256 -    old_striplib striplib file_magic_cmd export_symbols_cmds \
6257 -    deplibs_check_method allow_undefined_flag no_undefined_flag \
6258 -    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6259 -    global_symbol_to_c_name_address \
6260 -    hardcode_libdir_flag_spec hardcode_libdir_separator  \
6261 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
6262 +    SED SHELL STRIP \
6263 +    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6264 +    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6265 +    deplibs_check_method reload_flag reload_cmds need_locks \
6266 +    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6267 +    lt_cv_sys_global_symbol_to_c_name_address \
6268      sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6269 -    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6270 +    old_postinstall_cmds old_postuninstall_cmds \
6271 +    _LT_AC_TAGVAR(compiler, $1) \
6272 +    _LT_AC_TAGVAR(CC, $1) \
6273 +    _LT_AC_TAGVAR(LD, $1) \
6274 +    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
6275 +    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
6276 +    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
6277 +    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
6278 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
6279 +    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
6280 +    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
6281 +    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
6282 +    _LT_AC_TAGVAR(old_archive_cmds, $1) \
6283 +    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
6284 +    _LT_AC_TAGVAR(predep_objects, $1) \
6285 +    _LT_AC_TAGVAR(postdep_objects, $1) \
6286 +    _LT_AC_TAGVAR(predeps, $1) \
6287 +    _LT_AC_TAGVAR(postdeps, $1) \
6288 +    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
6289 +    _LT_AC_TAGVAR(archive_cmds, $1) \
6290 +    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6291 +    _LT_AC_TAGVAR(postinstall_cmds, $1) \
6292 +    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
6293 +    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
6294 +    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
6295 +    _LT_AC_TAGVAR(no_undefined_flag, $1) \
6296 +    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
6297 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
6298 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
6299 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
6300 +    _LT_AC_TAGVAR(hardcode_automatic, $1) \
6301 +    _LT_AC_TAGVAR(module_cmds, $1) \
6302 +    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
6303 +    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
6304 +    _LT_AC_TAGVAR(exclude_expsyms, $1) \
6305 +    _LT_AC_TAGVAR(include_expsyms, $1); do
6306  
6307      case $var in
6308 -    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6309 -    old_postinstall_cmds | old_postuninstall_cmds | \
6310 -    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6311 -    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6312 +    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
6313 +    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
6314 +    _LT_AC_TAGVAR(archive_cmds, $1) | \
6315 +    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
6316 +    _LT_AC_TAGVAR(module_cmds, $1) | \
6317 +    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
6318 +    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
6319 +    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
6320 +    extract_expsyms_cmds | reload_cmds | finish_cmds | \
6321      postinstall_cmds | postuninstall_cmds | \
6322 -    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6323 +    old_postinstall_cmds | old_postuninstall_cmds | \
6324 +    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6325        # Double-quote double-evaled strings.
6326        eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6327        ;;
6328 @@ -2609,14 +4871,31 @@
6329      esac
6330    done
6331  
6332 -  cat <<__EOF__ > "${ofile}T"
6333 -#! $SHELL
6334 +  case $lt_echo in
6335 +  *'\[$]0 --fallback-echo"')
6336 +    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
6337 +    ;;
6338 +  esac
6339  
6340 -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6341 +ifelse([$1], [],
6342 +  [cfgfile="${ofile}T"
6343 +  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6344 +  $rm -f "$cfgfile"
6345 +  AC_MSG_NOTICE([creating $ofile])],
6346 +  [cfgfile="$ofile"])
6347 +
6348 +  cat <<__EOF__ >> "$cfgfile"
6349 +ifelse([$1], [],
6350 +[#! $SHELL
6351 +
6352 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6353  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6354  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6355  #
6356 -# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6357 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
6358 +# Free Software Foundation, Inc.
6359 +#
6360 +# This file is part of GNU Libtool:
6361  # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6362  #
6363  # This program is free software; you can redistribute it and/or modify
6364 @@ -2638,17 +4917,21 @@
6365  # configuration script generated by Autoconf, you may include it under
6366  # the same distribution terms that you use for the rest of that program.
6367  
6368 -# A sed that does not truncate output.
6369 +# A sed program that does not truncate output.
6370  SED=$lt_SED
6371  
6372  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6373 -Xsed="${SED} -e s/^X//"
6374 +Xsed="$SED -e s/^X//"
6375  
6376  # The HP-UX ksh and POSIX shell print the target directory to stdout
6377  # if CDPATH is set.
6378  if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6379  
6380 -# ### BEGIN LIBTOOL CONFIG
6381 +# The names of the tagged configurations supported by this script.
6382 +available_tags=
6383 +
6384 +# ### BEGIN LIBTOOL CONFIG],
6385 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
6386  
6387  # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6388  
6389 @@ -2662,7 +4945,10 @@
6390  build_old_libs=$enable_static
6391  
6392  # Whether or not to add -lc for building shared libraries.
6393 -build_libtool_need_lc=$need_lc
6394 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
6395 +
6396 +# Whether or not to disallow shared libs when runtime libs are static
6397 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
6398  
6399  # Whether or not to optimize for fast installation.
6400  fast_install=$enable_fast_install
6401 @@ -2678,14 +4964,20 @@
6402  AR=$lt_AR
6403  AR_FLAGS=$lt_AR_FLAGS
6404  
6405 -# The default C compiler.
6406 -CC=$lt_CC
6407 +# A C compiler.
6408 +LTCC=$lt_LTCC
6409 +
6410 +# A language-specific compiler.
6411 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
6412  
6413  # Is the compiler the GNU C compiler?
6414 -with_gcc=$GCC
6415 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6416 +
6417 +# An ERE matcher.
6418 +EGREP=$lt_EGREP
6419  
6420  # The linker used to build libraries.
6421 -LD=$lt_LD
6422 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6423  
6424  # Whether we need hard or soft links.
6425  LN_S=$lt_LN_S
6426 @@ -2694,7 +4986,7 @@
6427  NM=$lt_NM
6428  
6429  # A symbol stripping program
6430 -STRIP=$STRIP
6431 +STRIP=$lt_STRIP
6432  
6433  # Used to examine libraries when file_magic_cmd begins "file"
6434  MAGIC_CMD=$MAGIC_CMD
6435 @@ -2716,7 +5008,7 @@
6436  reload_cmds=$lt_reload_cmds
6437  
6438  # How to pass a linker flag through the compiler.
6439 -wl=$lt_wl
6440 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6441  
6442  # Object file suffix (normally "o").
6443  objext="$ac_objext"
6444 @@ -2724,18 +5016,21 @@
6445  # Old archive suffix (normally "a").
6446  libext="$libext"
6447  
6448 +# Shared library suffix (normally ".so").
6449 +shrext_cmds='$shrext_cmds'
6450 +
6451  # Executable file suffix (normally "").
6452  exeext="$exeext"
6453  
6454  # Additional compiler flags for building library objects.
6455 -pic_flag=$lt_pic_flag
6456 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6457  pic_mode=$pic_mode
6458  
6459 -# Does compiler simultaneously support -c and -o options?
6460 -compiler_c_o=$lt_compiler_c_o
6461 +# What is the maximum length of a command?
6462 +max_cmd_len=$lt_cv_sys_max_cmd_len
6463  
6464 -# Can we write directly to a .lo ?
6465 -compiler_o_lo=$lt_compiler_o_lo
6466 +# Does compiler simultaneously support -c and -o options?
6467 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6468  
6469  # Must we lock files when doing compilation ?
6470  need_locks=$lt_need_locks
6471 @@ -2756,946 +5051,1770 @@
6472  dlopen_self_static=$enable_dlopen_self_static
6473  
6474  # Compiler flag to prevent dynamic linking.
6475 -link_static_flag=$lt_link_static_flag
6476 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6477  
6478  # Compiler flag to turn off builtin functions.
6479 -no_builtin_flag=$lt_no_builtin_flag
6480 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6481  
6482  # Compiler flag to allow reflexive dlopens.
6483 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6484 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6485  
6486  # Compiler flag to generate shared objects directly from archives.
6487 -whole_archive_flag_spec=$lt_whole_archive_flag_spec
6488 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6489  
6490  # Compiler flag to generate thread-safe objects.
6491 -thread_safe_flag_spec=$lt_thread_safe_flag_spec
6492 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6493 +
6494 +# Library versioning type.
6495 +version_type=$version_type
6496 +
6497 +# Format of library name prefix.
6498 +libname_spec=$lt_libname_spec
6499 +
6500 +# List of archive names.  First name is the real one, the rest are links.
6501 +# The last name is the one that the linker finds with -lNAME.
6502 +library_names_spec=$lt_library_names_spec
6503 +
6504 +# The coded name of the library, if different from the real name.
6505 +soname_spec=$lt_soname_spec
6506 +
6507 +# Commands used to build and install an old-style archive.
6508 +RANLIB=$lt_RANLIB
6509 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6510 +old_postinstall_cmds=$lt_old_postinstall_cmds
6511 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
6512 +
6513 +# Create an old-style archive from a shared archive.
6514 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6515 +
6516 +# Create a temporary old-style archive to link instead of a shared archive.
6517 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6518 +
6519 +# Commands used to build and install a shared archive.
6520 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6521 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6522 +postinstall_cmds=$lt_postinstall_cmds
6523 +postuninstall_cmds=$lt_postuninstall_cmds
6524 +
6525 +# Commands used to build a loadable module (assumed same as above if empty)
6526 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6527 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6528 +
6529 +# Commands to strip libraries.
6530 +old_striplib=$lt_old_striplib
6531 +striplib=$lt_striplib
6532 +
6533 +# Dependencies to place before the objects being linked to create a
6534 +# shared library.
6535 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6536 +
6537 +# Dependencies to place after the objects being linked to create a
6538 +# shared library.
6539 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6540 +
6541 +# Dependencies to place before the objects being linked to create a
6542 +# shared library.
6543 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6544 +
6545 +# Dependencies to place after the objects being linked to create a
6546 +# shared library.
6547 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6548 +
6549 +# The library search path used internally by the compiler when linking
6550 +# a shared library.
6551 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6552 +
6553 +# Method to check whether dependent libraries are shared objects.
6554 +deplibs_check_method=$lt_deplibs_check_method
6555 +
6556 +# Command to use when deplibs_check_method == file_magic.
6557 +file_magic_cmd=$lt_file_magic_cmd
6558 +
6559 +# Flag that allows shared libraries with undefined symbols to be built.
6560 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6561 +
6562 +# Flag that forces no undefined symbols.
6563 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6564 +
6565 +# Commands used to finish a libtool library installation in a directory.
6566 +finish_cmds=$lt_finish_cmds
6567 +
6568 +# Same as above, but a single script fragment to be evaled but not shown.
6569 +finish_eval=$lt_finish_eval
6570 +
6571 +# Take the output of nm and produce a listing of raw symbols and C names.
6572 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6573 +
6574 +# Transform the output of nm in a proper C declaration
6575 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6576 +
6577 +# Transform the output of nm in a C name address pair
6578 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6579 +
6580 +# This is the shared library runtime path variable.
6581 +runpath_var=$runpath_var
6582 +
6583 +# This is the shared library path variable.
6584 +shlibpath_var=$shlibpath_var
6585 +
6586 +# Is shlibpath searched before the hard-coded library search path?
6587 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6588 +
6589 +# How to hardcode a shared library path into an executable.
6590 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6591 +
6592 +# Whether we should hardcode library paths into libraries.
6593 +hardcode_into_libs=$hardcode_into_libs
6594 +
6595 +# Flag to hardcode \$libdir into a binary during linking.
6596 +# This must work even if \$libdir does not exist.
6597 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6598 +
6599 +# If ld is used when linking, flag to hardcode \$libdir into
6600 +# a binary during linking. This must work even if \$libdir does
6601 +# not exist.
6602 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6603 +
6604 +# Whether we need a single -rpath flag with a separated argument.
6605 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6606 +
6607 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6608 +# resulting binary.
6609 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6610 +
6611 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6612 +# resulting binary.
6613 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6614 +
6615 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6616 +# the resulting binary.
6617 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6618 +
6619 +# Set to yes if building a shared library automatically hardcodes DIR into the library
6620 +# and all subsequent libraries and executables linked against it.
6621 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6622 +
6623 +# Variables whose values should be saved in libtool wrapper scripts and
6624 +# restored at relink time.
6625 +variables_saved_for_relink="$variables_saved_for_relink"
6626 +
6627 +# Whether libtool must link a program against all its dependency libraries.
6628 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6629 +
6630 +# Compile-time system search path for libraries
6631 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6632 +
6633 +# Run-time system search path for libraries
6634 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6635 +
6636 +# Fix the shell variable \$srcfile for the compiler.
6637 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
6638 +
6639 +# Set to yes if exported symbols are required.
6640 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6641 +
6642 +# The commands to list exported symbols.
6643 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6644 +
6645 +# The commands to extract the exported symbol list from a shared archive.
6646 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
6647 +
6648 +# Symbols that should not be listed in the preloaded symbols.
6649 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6650 +
6651 +# Symbols that must always be exported.
6652 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6653 +
6654 +ifelse([$1],[],
6655 +[# ### END LIBTOOL CONFIG],
6656 +[# ### END LIBTOOL TAG CONFIG: $tagname])
6657 +
6658 +__EOF__
6659 +
6660 +ifelse([$1],[], [
6661 +  case $host_os in
6662 +  aix3*)
6663 +    cat <<\EOF >> "$cfgfile"
6664 +
6665 +# AIX sometimes has problems with the GCC collect2 program.  For some
6666 +# reason, if we set the COLLECT_NAMES environment variable, the problems
6667 +# vanish in a puff of smoke.
6668 +if test "X${COLLECT_NAMES+set}" != Xset; then
6669 +  COLLECT_NAMES=
6670 +  export COLLECT_NAMES
6671 +fi
6672 +EOF
6673 +    ;;
6674 +  esac
6675 +
6676 +  # We use sed instead of cat because bash on DJGPP gets confused if
6677 +  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6678 +  # text mode, it properly converts lines to CR/LF.  This bash problem
6679 +  # is reportedly fixed, but why not run on old versions too?
6680 +  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6681 +
6682 +  mv -f "$cfgfile" "$ofile" || \
6683 +    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6684 +  chmod +x "$ofile"
6685 +])
6686 +else
6687 +  # If there is no Makefile yet, we rely on a make rule to execute
6688 +  # `config.status --recheck' to rerun these tests and create the
6689 +  # libtool script then.
6690 +  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6691 +  if test -f "$ltmain_in"; then
6692 +    test -f Makefile && make "$ltmain"
6693 +  fi
6694 +fi
6695 +])# AC_LIBTOOL_CONFIG
6696 +
6697 +
6698 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6699 +# -------------------------------------------
6700 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6701 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6702 +
6703 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6704 +
6705 +if test "$GCC" = yes; then
6706 +  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6707 +
6708 +  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6709 +    lt_cv_prog_compiler_rtti_exceptions,
6710 +    [-fno-rtti -fno-exceptions], [],
6711 +    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6712 +fi
6713 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6714 +
6715 +
6716 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6717 +# ---------------------------------
6718 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6719 +[AC_REQUIRE([AC_CANONICAL_HOST])
6720 +AC_REQUIRE([AC_PROG_NM])
6721 +AC_REQUIRE([AC_OBJEXT])
6722 +# Check for command to grab the raw symbol name followed by C symbol from nm.
6723 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6724 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6725 +[
6726 +# These are sane defaults that work on at least a few old systems.
6727 +# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6728 +
6729 +# Character class describing NM global symbol codes.
6730 +symcode='[[BCDEGRST]]'
6731 +
6732 +# Regexp to match symbols that can be accessed directly from C.
6733 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6734 +
6735 +# Transform the above into a raw symbol and a C symbol.
6736 +symxfrm='\1 \2\3 \3'
6737 +
6738 +# Transform an extracted symbol line into a proper C declaration
6739 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6740 +
6741 +# Transform an extracted symbol line into symbol name and symbol address
6742 +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'"
6743 +
6744 +# Define system-specific variables.
6745 +case $host_os in
6746 +aix*)
6747 +  symcode='[[BCDT]]'
6748 +  ;;
6749 +cygwin* | mingw* | pw32*)
6750 +  symcode='[[ABCDGISTW]]'
6751 +  ;;
6752 +hpux*) # Its linker distinguishes data from code symbols
6753 +  if test "$host_cpu" = ia64; then
6754 +    symcode='[[ABCDEGRST]]'
6755 +  fi
6756 +  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6757 +  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'"
6758 +  ;;
6759 +irix* | nonstopux*)
6760 +  symcode='[[BCDEGRST]]'
6761 +  ;;
6762 +osf*)
6763 +  symcode='[[BCDEGQRST]]'
6764 +  ;;
6765 +solaris* | sysv5*)
6766 +  symcode='[[BDRT]]'
6767 +  ;;
6768 +sysv4)
6769 +  symcode='[[DFNSTU]]'
6770 +  ;;
6771 +esac
6772 +
6773 +# Handle CRLF in mingw tool chain
6774 +opt_cr=
6775 +case $build_os in
6776 +mingw*)
6777 +  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6778 +  ;;
6779 +esac
6780  
6781 -# Library versioning type.
6782 -version_type=$version_type
6783 +# If we're using GNU nm, then use its standard symbol codes.
6784 +case `$NM -V 2>&1` in
6785 +*GNU* | *'with BFD'*)
6786 +  symcode='[[ABCDGIRSTW]]' ;;
6787 +esac
6788  
6789 -# Format of library name prefix.
6790 -libname_spec=$lt_libname_spec
6791 +# Try without a prefix undercore, then with it.
6792 +for ac_symprfx in "" "_"; do
6793  
6794 -# List of archive names.  First name is the real one, the rest are links.
6795 -# The last name is the one that the linker finds with -lNAME.
6796 -library_names_spec=$lt_library_names_spec
6797 +  # Write the raw and C identifiers.
6798 +  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6799  
6800 -# The coded name of the library, if different from the real name.
6801 -soname_spec=$lt_soname_spec
6802 +  # Check to see that the pipe works correctly.
6803 +  pipe_works=no
6804  
6805 -# Commands used to build and install an old-style archive.
6806 -RANLIB=$lt_RANLIB
6807 -old_archive_cmds=$lt_old_archive_cmds
6808 -old_postinstall_cmds=$lt_old_postinstall_cmds
6809 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
6810 +  rm -f conftest*
6811 +  cat > conftest.$ac_ext <<EOF
6812 +#ifdef __cplusplus
6813 +extern "C" {
6814 +#endif
6815 +char nm_test_var;
6816 +void nm_test_func(){}
6817 +#ifdef __cplusplus
6818 +}
6819 +#endif
6820 +int main(){nm_test_var='a';nm_test_func();return(0);}
6821 +EOF
6822  
6823 -# Create an old-style archive from a shared archive.
6824 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6825 +  if AC_TRY_EVAL(ac_compile); then
6826 +    # Now try to grab the symbols.
6827 +    nlist=conftest.nm
6828 +    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6829 +      # Try sorting and uniquifying the output.
6830 +      if sort "$nlist" | uniq > "$nlist"T; then
6831 +       mv -f "$nlist"T "$nlist"
6832 +      else
6833 +       rm -f "$nlist"T
6834 +      fi
6835  
6836 -# Create a temporary old-style archive to link instead of a shared archive.
6837 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6838 +      # Make sure that we snagged all the symbols we need.
6839 +      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6840 +       if grep ' nm_test_func$' "$nlist" >/dev/null; then
6841 +         cat <<EOF > conftest.$ac_ext
6842 +#ifdef __cplusplus
6843 +extern "C" {
6844 +#endif
6845  
6846 -# Commands used to build and install a shared archive.
6847 -archive_cmds=$lt_archive_cmds
6848 -archive_expsym_cmds=$lt_archive_expsym_cmds
6849 -postinstall_cmds=$lt_postinstall_cmds
6850 -postuninstall_cmds=$lt_postuninstall_cmds
6851 +EOF
6852 +         # Now generate the symbol file.
6853 +         eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6854  
6855 -# Commands to strip libraries.
6856 -old_striplib=$lt_old_striplib
6857 -striplib=$lt_striplib
6858 +         cat <<EOF >> conftest.$ac_ext
6859 +#if defined (__STDC__) && __STDC__
6860 +# define lt_ptr_t void *
6861 +#else
6862 +# define lt_ptr_t char *
6863 +# define const
6864 +#endif
6865  
6866 -# Method to check whether dependent libraries are shared objects.
6867 -deplibs_check_method=$lt_deplibs_check_method
6868 +/* The mapping between symbol names and symbols. */
6869 +const struct {
6870 +  const char *name;
6871 +  lt_ptr_t address;
6872 +}
6873 +lt_preloaded_symbols[[]] =
6874 +{
6875 +EOF
6876 +         $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6877 +         cat <<\EOF >> conftest.$ac_ext
6878 +  {0, (lt_ptr_t) 0}
6879 +};
6880  
6881 -# Command to use when deplibs_check_method == file_magic.
6882 -file_magic_cmd=$lt_file_magic_cmd
6883 +#ifdef __cplusplus
6884 +}
6885 +#endif
6886 +EOF
6887 +         # Now try linking the two files.
6888 +         mv conftest.$ac_objext conftstm.$ac_objext
6889 +         lt_save_LIBS="$LIBS"
6890 +         lt_save_CFLAGS="$CFLAGS"
6891 +         LIBS="conftstm.$ac_objext"
6892 +         CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6893 +         if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6894 +           pipe_works=yes
6895 +         fi
6896 +         LIBS="$lt_save_LIBS"
6897 +         CFLAGS="$lt_save_CFLAGS"
6898 +       else
6899 +         echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6900 +       fi
6901 +      else
6902 +       echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6903 +      fi
6904 +    else
6905 +      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6906 +    fi
6907 +  else
6908 +    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6909 +    cat conftest.$ac_ext >&5
6910 +  fi
6911 +  rm -f conftest* conftst*
6912  
6913 -# Flag that allows shared libraries with undefined symbols to be built.
6914 -allow_undefined_flag=$lt_allow_undefined_flag
6915 +  # Do not use the global_symbol_pipe unless it works.
6916 +  if test "$pipe_works" = yes; then
6917 +    break
6918 +  else
6919 +    lt_cv_sys_global_symbol_pipe=
6920 +  fi
6921 +done
6922 +])
6923 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
6924 +  lt_cv_sys_global_symbol_to_cdecl=
6925 +fi
6926 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6927 +  AC_MSG_RESULT(failed)
6928 +else
6929 +  AC_MSG_RESULT(ok)
6930 +fi
6931 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6932  
6933 -# Flag that forces no undefined symbols.
6934 -no_undefined_flag=$lt_no_undefined_flag
6935  
6936 -# Commands used to finish a libtool library installation in a directory.
6937 -finish_cmds=$lt_finish_cmds
6938 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6939 +# ---------------------------------------
6940 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6941 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6942 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6943 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6944  
6945 -# Same as above, but a single script fragment to be evaled but not shown.
6946 -finish_eval=$lt_finish_eval
6947 +AC_MSG_CHECKING([for $compiler option to produce PIC])
6948 + ifelse([$1],[CXX],[
6949 +  # C++ specific cases for pic, static, wl, etc.
6950 +  if test "$GXX" = yes; then
6951 +    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6952 +    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6953  
6954 -# Take the output of nm and produce a listing of raw symbols and C names.
6955 -global_symbol_pipe=$lt_global_symbol_pipe
6956 +    case $host_os in
6957 +    aix*)
6958 +      # All AIX code is PIC.
6959 +      if test "$host_cpu" = ia64; then
6960 +       # AIX 5 now supports IA64 processor
6961 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6962 +      fi
6963 +      ;;
6964 +    amigaos*)
6965 +      # FIXME: we need at least 68020 code to build shared libraries, but
6966 +      # adding the `-m68020' flag to GCC prevents building anything better,
6967 +      # like `-m68040'.
6968 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6969 +      ;;
6970 +    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6971 +      # PIC is the default for these OSes.
6972 +      ;;
6973 +    mingw* | os2* | pw32*)
6974 +      # This hack is so that the source file can tell whether it is being
6975 +      # built for inclusion in a dll (and should export symbols for example).
6976 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6977 +      ;;
6978 +    darwin* | rhapsody*)
6979 +      # PIC is the default on this platform
6980 +      # Common symbols not allowed in MH_DYLIB files
6981 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6982 +      ;;
6983 +    *djgpp*)
6984 +      # DJGPP does not support shared libraries at all
6985 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6986 +      ;;
6987 +    sysv4*MP*)
6988 +      if test -d /usr/nec; then
6989 +       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6990 +      fi
6991 +      ;;
6992 +    hpux*)
6993 +      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6994 +      # not for PA HP-UX.
6995 +      case "$host_cpu" in
6996 +      hppa*64*|ia64*)
6997 +       ;;
6998 +      *)
6999 +       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7000 +       ;;
7001 +      esac
7002 +      ;;
7003 +    *)
7004 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7005 +      ;;
7006 +    esac
7007 +  else
7008 +    case $host_os in
7009 +      aix4* | aix5*)
7010 +       # All AIX code is PIC.
7011 +       if test "$host_cpu" = ia64; then
7012 +         # AIX 5 now supports IA64 processor
7013 +         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7014 +       else
7015 +         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7016 +       fi
7017 +       ;;
7018 +      chorus*)
7019 +       case $cc_basename in
7020 +       cxch68)
7021 +         # Green Hills C++ Compiler
7022 +         # _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"
7023 +         ;;
7024 +       esac
7025 +       ;;
7026 +      dgux*)
7027 +       case $cc_basename in
7028 +         ec++)
7029 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7030 +           ;;
7031 +         ghcx)
7032 +           # Green Hills C++ Compiler
7033 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7034 +           ;;
7035 +         *)
7036 +           ;;
7037 +       esac
7038 +       ;;
7039 +      freebsd* | kfreebsd*-gnu)
7040 +       # FreeBSD uses GNU C++
7041 +       ;;
7042 +      hpux9* | hpux10* | hpux11*)
7043 +       case $cc_basename in
7044 +         CC)
7045 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7046 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7047 +           if test "$host_cpu" != ia64; then
7048 +             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7049 +           fi
7050 +           ;;
7051 +         aCC)
7052 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7053 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7054 +           case "$host_cpu" in
7055 +           hppa*64*|ia64*)
7056 +             # +Z the default
7057 +             ;;
7058 +           *)
7059 +             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7060 +             ;;
7061 +           esac
7062 +           ;;
7063 +         *)
7064 +           ;;
7065 +       esac
7066 +       ;;
7067 +      irix5* | irix6* | nonstopux*)
7068 +       case $cc_basename in
7069 +         CC)
7070 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7071 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7072 +           # CC pic flag -KPIC is the default.
7073 +           ;;
7074 +         *)
7075 +           ;;
7076 +       esac
7077 +       ;;
7078 +      linux*)
7079 +       case $cc_basename in
7080 +         KCC)
7081 +           # KAI C++ Compiler
7082 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7083 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7084 +           ;;
7085 +         icpc)
7086 +           # Intel C++
7087 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7088 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7089 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7090 +           ;;
7091 +         cxx)
7092 +           # Compaq C++
7093 +           # Make sure the PIC flag is empty.  It appears that all Alpha
7094 +           # Linux and Compaq Tru64 Unix objects are PIC.
7095 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7096 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7097 +           ;;
7098 +         *)
7099 +           ;;
7100 +       esac
7101 +       ;;
7102 +      lynxos*)
7103 +       ;;
7104 +      m88k*)
7105 +       ;;
7106 +      mvs*)
7107 +       case $cc_basename in
7108 +         cxx)
7109 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
7110 +           ;;
7111 +         *)
7112 +           ;;
7113 +       esac
7114 +       ;;
7115 +      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7116 +       ;;
7117 +      osf3* | osf4* | osf5*)
7118 +       case $cc_basename in
7119 +         KCC)
7120 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7121 +           ;;
7122 +         RCC)
7123 +           # Rational C++ 2.4.1
7124 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7125 +           ;;
7126 +         cxx)
7127 +           # Digital/Compaq C++
7128 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7129 +           # Make sure the PIC flag is empty.  It appears that all Alpha
7130 +           # Linux and Compaq Tru64 Unix objects are PIC.
7131 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7132 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7133 +           ;;
7134 +         *)
7135 +           ;;
7136 +       esac
7137 +       ;;
7138 +      psos*)
7139 +       ;;
7140 +      sco*)
7141 +       case $cc_basename in
7142 +         CC)
7143 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7144 +           ;;
7145 +         *)
7146 +           ;;
7147 +       esac
7148 +       ;;
7149 +      solaris*)
7150 +       case $cc_basename in
7151 +         CC)
7152 +           # Sun C++ 4.2, 5.x and Centerline C++
7153 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7154 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7155 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7156 +           ;;
7157 +         gcx)
7158 +           # Green Hills C++ Compiler
7159 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7160 +           ;;
7161 +         *)
7162 +           ;;
7163 +       esac
7164 +       ;;
7165 +      sunos4*)
7166 +       case $cc_basename in
7167 +         CC)
7168 +           # Sun C++ 4.x
7169 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7170 +           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7171 +           ;;
7172 +         lcc)
7173 +           # Lucid
7174 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7175 +           ;;
7176 +         *)
7177 +           ;;
7178 +       esac
7179 +       ;;
7180 +      tandem*)
7181 +       case $cc_basename in
7182 +         NCC)
7183 +           # NonStop-UX NCC 3.20
7184 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7185 +           ;;
7186 +         *)
7187 +           ;;
7188 +       esac
7189 +       ;;
7190 +      unixware*)
7191 +       ;;
7192 +      vxworks*)
7193 +       ;;
7194 +      *)
7195 +       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7196 +       ;;
7197 +    esac
7198 +  fi
7199 +],
7200 +[
7201 +  if test "$GCC" = yes; then
7202 +    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7203 +    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7204  
7205 -# Transform the output of nm in a proper C declaration
7206 -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7207 +    case $host_os in
7208 +      aix*)
7209 +      # All AIX code is PIC.
7210 +      if test "$host_cpu" = ia64; then
7211 +       # AIX 5 now supports IA64 processor
7212 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7213 +      fi
7214 +      ;;
7215  
7216 -# Transform the output of nm in a C name address pair
7217 -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7218 +    amigaos*)
7219 +      # FIXME: we need at least 68020 code to build shared libraries, but
7220 +      # adding the `-m68020' flag to GCC prevents building anything better,
7221 +      # like `-m68040'.
7222 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7223 +      ;;
7224  
7225 -# This is the shared library runtime path variable.
7226 -runpath_var=$runpath_var
7227 +    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7228 +      # PIC is the default for these OSes.
7229 +      ;;
7230  
7231 -# This is the shared library path variable.
7232 -shlibpath_var=$shlibpath_var
7233 +    mingw* | pw32* | os2*)
7234 +      # This hack is so that the source file can tell whether it is being
7235 +      # built for inclusion in a dll (and should export symbols for example).
7236 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7237 +      ;;
7238  
7239 -# Is shlibpath searched before the hard-coded library search path?
7240 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7241 +    darwin* | rhapsody*)
7242 +      # PIC is the default on this platform
7243 +      # Common symbols not allowed in MH_DYLIB files
7244 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7245 +      ;;
7246  
7247 -# How to hardcode a shared library path into an executable.
7248 -hardcode_action=$hardcode_action
7249 +    msdosdjgpp*)
7250 +      # Just because we use GCC doesn't mean we suddenly get shared libraries
7251 +      # on systems that don't support them.
7252 +      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7253 +      enable_shared=no
7254 +      ;;
7255  
7256 -# Whether we should hardcode library paths into libraries.
7257 -hardcode_into_libs=$hardcode_into_libs
7258 +    sysv4*MP*)
7259 +      if test -d /usr/nec; then
7260 +       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7261 +      fi
7262 +      ;;
7263  
7264 -# Flag to hardcode \$libdir into a binary during linking.
7265 -# This must work even if \$libdir does not exist.
7266 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7267 +    hpux*)
7268 +      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7269 +      # not for PA HP-UX.
7270 +      case "$host_cpu" in
7271 +      hppa*64*|ia64*)
7272 +       # +Z the default
7273 +       ;;
7274 +      *)
7275 +       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7276 +       ;;
7277 +      esac
7278 +      ;;
7279  
7280 -# Whether we need a single -rpath flag with a separated argument.
7281 -hardcode_libdir_separator=$lt_hardcode_libdir_separator
7282 +    *)
7283 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7284 +      ;;
7285 +    esac
7286 +  else
7287 +    # PORTME Check for flag to pass linker flags through the system compiler.
7288 +    case $host_os in
7289 +    aix*)
7290 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7291 +      if test "$host_cpu" = ia64; then
7292 +       # AIX 5 now supports IA64 processor
7293 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7294 +      else
7295 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7296 +      fi
7297 +      ;;
7298  
7299 -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7300 -# resulting binary.
7301 -hardcode_direct=$hardcode_direct
7302 +    mingw* | pw32* | os2*)
7303 +      # This hack is so that the source file can tell whether it is being
7304 +      # built for inclusion in a dll (and should export symbols for example).
7305 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7306 +      ;;
7307  
7308 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7309 -# resulting binary.
7310 -hardcode_minus_L=$hardcode_minus_L
7311 +    hpux9* | hpux10* | hpux11*)
7312 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7313 +      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7314 +      # not for PA HP-UX.
7315 +      case "$host_cpu" in
7316 +      hppa*64*|ia64*)
7317 +       # +Z the default
7318 +       ;;
7319 +      *)
7320 +       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7321 +       ;;
7322 +      esac
7323 +      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7324 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7325 +      ;;
7326  
7327 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7328 -# the resulting binary.
7329 -hardcode_shlibpath_var=$hardcode_shlibpath_var
7330 +    irix5* | irix6* | nonstopux*)
7331 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7332 +      # PIC (with -KPIC) is the default.
7333 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7334 +      ;;
7335  
7336 -# Variables whose values should be saved in libtool wrapper scripts and
7337 -# restored at relink time.
7338 -variables_saved_for_relink="$variables_saved_for_relink"
7339 +    newsos6)
7340 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7341 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7342 +      ;;
7343  
7344 -# Whether libtool must link a program against all its dependency libraries.
7345 -link_all_deplibs=$link_all_deplibs
7346 +    linux*)
7347 +      case $CC in
7348 +      icc* | ecc*)
7349 +       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7350 +       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7351 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7352 +        ;;
7353 +      ccc*)
7354 +        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7355 +        # All Alpha code is PIC.
7356 +        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7357 +        ;;
7358 +      esac
7359 +      ;;
7360  
7361 -# Compile-time system search path for libraries
7362 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7363 +    osf3* | osf4* | osf5*)
7364 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7365 +      # All OSF/1 code is PIC.
7366 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7367 +      ;;
7368  
7369 -# Run-time system search path for libraries
7370 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7371 +    sco3.2v5*)
7372 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
7373 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
7374 +      ;;
7375  
7376 -# Fix the shell variable \$srcfile for the compiler.
7377 -fix_srcfile_path="$fix_srcfile_path"
7378 +    solaris*)
7379 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7380 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7381 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7382 +      ;;
7383  
7384 -# Set to yes if exported symbols are required.
7385 -always_export_symbols=$always_export_symbols
7386 +    sunos4*)
7387 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7388 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7389 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7390 +      ;;
7391  
7392 -# The commands to list exported symbols.
7393 -export_symbols_cmds=$lt_export_symbols_cmds
7394 +    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7395 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7396 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7397 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7398 +      ;;
7399  
7400 -# The commands to extract the exported symbol list from a shared archive.
7401 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
7402 +    sysv4*MP*)
7403 +      if test -d /usr/nec ;then
7404 +       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7405 +       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7406 +      fi
7407 +      ;;
7408  
7409 -# Symbols that should not be listed in the preloaded symbols.
7410 -exclude_expsyms=$lt_exclude_expsyms
7411 +    uts4*)
7412 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7413 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7414 +      ;;
7415  
7416 -# Symbols that must always be exported.
7417 -include_expsyms=$lt_include_expsyms
7418 +    *)
7419 +      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7420 +      ;;
7421 +    esac
7422 +  fi
7423 +])
7424 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
7425  
7426 -# ### END LIBTOOL CONFIG
7427 +#
7428 +# Check to make sure the PIC flag actually works.
7429 +#
7430 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7431 +  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7432 +    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
7433 +    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7434 +    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
7435 +     "" | " "*) ;;
7436 +     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7437 +     esac],
7438 +    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7439 +     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7440 +fi
7441 +case "$host_os" in
7442 +  # For platforms which do not support PIC, -DPIC is meaningless:
7443 +  *djgpp*)
7444 +    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7445 +    ;;
7446 +  *)
7447 +    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
7448 +    ;;
7449 +esac
7450 +])
7451  
7452 -__EOF__
7453  
7454 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7455 +# ------------------------------------
7456 +# See if the linker supports building shared libraries.
7457 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7458 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7459 +ifelse([$1],[CXX],[
7460 +  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7461    case $host_os in
7462 -  aix3*)
7463 -    cat <<\EOF >> "${ofile}T"
7464 -
7465 -# AIX sometimes has problems with the GCC collect2 program.  For some
7466 -# reason, if we set the COLLECT_NAMES environment variable, the problems
7467 -# vanish in a puff of smoke.
7468 -if test "X${COLLECT_NAMES+set}" != Xset; then
7469 -  COLLECT_NAMES=
7470 -  export COLLECT_NAMES
7471 -fi
7472 -EOF
7473 +  aix4* | aix5*)
7474 +    # If we're using GNU nm, then we don't want the "-C" option.
7475 +    # -C means demangle to AIX nm, but means don't demangle with GNU nm
7476 +    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7477 +      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7478 +    else
7479 +      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7480 +    fi
7481      ;;
7482 +  pw32*)
7483 +    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7484 +  ;;
7485 +  cygwin* | mingw*)
7486 +    _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'
7487 +  ;;
7488 +  linux*)
7489 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7490 +  ;;
7491 +  *)
7492 +    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7493 +  ;;
7494    esac
7495 +],[
7496 +  runpath_var=
7497 +  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7498 +  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7499 +  _LT_AC_TAGVAR(archive_cmds, $1)=
7500 +  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7501 +  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7502 +  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7503 +  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7504 +  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7505 +  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7506 +  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7507 +  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7508 +  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7509 +  _LT_AC_TAGVAR(hardcode_direct, $1)=no
7510 +  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7511 +  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7512 +  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7513 +  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
7514 +  _LT_AC_TAGVAR(module_cmds, $1)=
7515 +  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
7516 +  _LT_AC_TAGVAR(always_export_symbols, $1)=no
7517 +  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7518 +  # include_expsyms should be a list of space-separated symbols to be *always*
7519 +  # included in the symbol list
7520 +  _LT_AC_TAGVAR(include_expsyms, $1)=
7521 +  # exclude_expsyms can be an extended regexp of symbols to exclude
7522 +  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7523 +  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7524 +  # as well as any symbol that contains `d'.
7525 +  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
7526 +  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7527 +  # platforms (ab)use it in PIC code, but their linkers get confused if
7528 +  # the symbol is explicitly referenced.  Since portable code cannot
7529 +  # rely on this symbol name, it's probably fine to never include it in
7530 +  # preloaded symbol tables.
7531 +  extract_expsyms_cmds=
7532  
7533    case $host_os in
7534 -  cygwin* | mingw* | pw32* | os2*)
7535 -    cat <<'EOF' >> "${ofile}T"
7536 -      # This is a source program that is used to create dlls on Windows
7537 -      # Don't remove nor modify the starting and closing comments
7538 -# /* ltdll.c starts here */
7539 -# #define WIN32_LEAN_AND_MEAN
7540 -# #include <windows.h>
7541 -# #undef WIN32_LEAN_AND_MEAN
7542 -# #include <stdio.h>
7543 -#
7544 -# #ifndef __CYGWIN__
7545 -# #  ifdef __CYGWIN32__
7546 -# #    define __CYGWIN__ __CYGWIN32__
7547 -# #  endif
7548 -# #endif
7549 -#
7550 -# #ifdef __cplusplus
7551 -# extern "C" {
7552 -# #endif
7553 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7554 -# #ifdef __cplusplus
7555 -# }
7556 -# #endif
7557 -#
7558 -# #ifdef __CYGWIN__
7559 -# #include <cygwin/cygwin_dll.h>
7560 -# DECLARE_CYGWIN_DLL( DllMain );
7561 -# #endif
7562 -# HINSTANCE __hDllInstance_base;
7563 -#
7564 -# BOOL APIENTRY
7565 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7566 -# {
7567 -#   __hDllInstance_base = hInst;
7568 -#   return TRUE;
7569 -# }
7570 -# /* ltdll.c ends here */
7571 -       # This is a source program that is used to create import libraries
7572 -       # on Windows for dlls which lack them. Don't remove nor modify the
7573 -       # starting and closing comments
7574 -# /* impgen.c starts here */
7575 -# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7576 -#
7577 -#  This file is part of GNU libtool.
7578 -#
7579 -#  This program is free software; you can redistribute it and/or modify
7580 -#  it under the terms of the GNU General Public License as published by
7581 -#  the Free Software Foundation; either version 2 of the License, or
7582 -#  (at your option) any later version.
7583 -#
7584 -#  This program is distributed in the hope that it will be useful,
7585 -#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7586 -#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7587 -#  GNU General Public License for more details.
7588 -#
7589 -#  You should have received a copy of the GNU General Public License
7590 -#  along with this program; if not, write to the Free Software
7591 -#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7592 -#  */
7593 -#
7594 -# #include <stdio.h>           /* for printf() */
7595 -# #include <unistd.h>          /* for open(), lseek(), read() */
7596 -# #include <fcntl.h>           /* for O_RDONLY, O_BINARY */
7597 -# #include <string.h>          /* for strdup() */
7598 -#
7599 -# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7600 -# #ifndef O_BINARY
7601 -# #define O_BINARY 0
7602 -# #endif
7603 -#
7604 -# static unsigned int
7605 -# pe_get16 (fd, offset)
7606 -#      int fd;
7607 -#      int offset;
7608 -# {
7609 -#   unsigned char b[2];
7610 -#   lseek (fd, offset, SEEK_SET);
7611 -#   read (fd, b, 2);
7612 -#   return b[0] + (b[1]<<8);
7613 -# }
7614 -#
7615 -# static unsigned int
7616 -# pe_get32 (fd, offset)
7617 -#     int fd;
7618 -#     int offset;
7619 -# {
7620 -#   unsigned char b[4];
7621 -#   lseek (fd, offset, SEEK_SET);
7622 -#   read (fd, b, 4);
7623 -#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7624 -# }
7625 -#
7626 -# static unsigned int
7627 -# pe_as32 (ptr)
7628 -#      void *ptr;
7629 -# {
7630 -#   unsigned char *b = ptr;
7631 -#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7632 -# }
7633 -#
7634 -# int
7635 -# main (argc, argv)
7636 -#     int argc;
7637 -#     char *argv[];
7638 -# {
7639 -#     int dll;
7640 -#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7641 -#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7642 -#     unsigned long name_rvas, nexp;
7643 -#     unsigned char *expdata, *erva;
7644 -#     char *filename, *dll_name;
7645 -#
7646 -#     filename = argv[1];
7647 -#
7648 -#     dll = open(filename, O_RDONLY|O_BINARY);
7649 -#     if (dll < 1)
7650 -#      return 1;
7651 -#
7652 -#     dll_name = filename;
7653 -#
7654 -#     for (i=0; filename[i]; i++)
7655 -#      if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7656 -#          dll_name = filename + i +1;
7657 -#
7658 -#     pe_header_offset = pe_get32 (dll, 0x3c);
7659 -#     opthdr_ofs = pe_header_offset + 4 + 20;
7660 -#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7661 -#
7662 -#     if (num_entries < 1) /* no exports */
7663 -#      return 1;
7664 -#
7665 -#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7666 -#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7667 -#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7668 -#     secptr = (pe_header_offset + 4 + 20 +
7669 -#            pe_get16 (dll, pe_header_offset + 4 + 16));
7670 -#
7671 -#     expptr = 0;
7672 -#     for (i = 0; i < nsections; i++)
7673 -#     {
7674 -#      char sname[8];
7675 -#      unsigned long secptr1 = secptr + 40 * i;
7676 -#      unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7677 -#      unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7678 -#      unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7679 -#      lseek(dll, secptr1, SEEK_SET);
7680 -#      read(dll, sname, 8);
7681 -#      if (vaddr <= export_rva && vaddr+vsize > export_rva)
7682 -#      {
7683 -#          expptr = fptr + (export_rva - vaddr);
7684 -#          if (export_rva + export_size > vaddr + vsize)
7685 -#              export_size = vsize - (export_rva - vaddr);
7686 -#          break;
7687 -#      }
7688 -#     }
7689 -#
7690 -#     expdata = (unsigned char*)malloc(export_size);
7691 -#     lseek (dll, expptr, SEEK_SET);
7692 -#     read (dll, expdata, export_size);
7693 -#     erva = expdata - export_rva;
7694 -#
7695 -#     nexp = pe_as32 (expdata+24);
7696 -#     name_rvas = pe_as32 (expdata+32);
7697 -#
7698 -#     printf ("EXPORTS\n");
7699 -#     for (i = 0; i<nexp; i++)
7700 -#     {
7701 -#      unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7702 -#      printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7703 -#     }
7704 -#
7705 -#     return 0;
7706 -# }
7707 -# /* impgen.c ends here */
7708 -
7709 -EOF
7710 +  cygwin* | mingw* | pw32*)
7711 +    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7712 +    # When not using gcc, we currently assume that we are using
7713 +    # Microsoft Visual C++.
7714 +    if test "$GCC" != yes; then
7715 +      with_gnu_ld=no
7716 +    fi
7717 +    ;;
7718 +  openbsd*)
7719 +    with_gnu_ld=no
7720      ;;
7721    esac
7722  
7723 -  # We use sed instead of cat because bash on DJGPP gets confused if
7724 -  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7725 -  # text mode, it properly converts lines to CR/LF.  This bash problem
7726 -  # is reportedly fixed, but why not run on old versions too?
7727 -  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7728 +  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7729 +  if test "$with_gnu_ld" = yes; then
7730 +    # If archive_cmds runs LD, not CC, wlarc should be empty
7731 +    wlarc='${wl}'
7732  
7733 -  mv -f "${ofile}T" "$ofile" || \
7734 -    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7735 -  chmod +x "$ofile"
7736 -fi
7737 +    # See if GNU ld supports shared libraries.
7738 +    case $host_os in
7739 +    aix3* | aix4* | aix5*)
7740 +      # On AIX/PPC, the GNU linker is very broken
7741 +      if test "$host_cpu" != ia64; then
7742 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
7743 +       cat <<EOF 1>&2
7744  
7745 -])# _LT_AC_LTCONFIG_HACK
7746 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7747 +*** to be unable to reliably create shared libraries on AIX.
7748 +*** Therefore, libtool is disabling shared libraries support.  If you
7749 +*** really care for shared libraries, you may want to modify your PATH
7750 +*** so that a non-GNU linker is found, and then restart.
7751  
7752 -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
7753 -AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
7754 +EOF
7755 +      fi
7756 +      ;;
7757  
7758 -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
7759 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
7760 +    amigaos*)
7761 +      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7762 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7763 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7764 +
7765 +      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7766 +      # that the semantics of dynamic libraries on AmigaOS, at least up
7767 +      # to version 4, is to share data among multiple programs linked
7768 +      # with the same dynamic library.  Since this doesn't match the
7769 +      # behavior of shared libraries on other platforms, we can't use
7770 +      # them.
7771 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
7772 +      ;;
7773  
7774 -# AC_ENABLE_SHARED - implement the --enable-shared flag
7775 -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
7776 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
7777 -#   `yes'.
7778 -AC_DEFUN([AC_ENABLE_SHARED],
7779 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
7780 -AC_ARG_ENABLE(shared,
7781 -changequote(<<, >>)dnl
7782 -<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
7783 -changequote([, ])dnl
7784 -[p=${PACKAGE-default}
7785 -case $enableval in
7786 -yes) enable_shared=yes ;;
7787 -no) enable_shared=no ;;
7788 -*)
7789 -  enable_shared=no
7790 -  # Look at the argument we got.  We use all the common list separators.
7791 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7792 -  for pkg in $enableval; do
7793 -    if test "X$pkg" = "X$p"; then
7794 -      enable_shared=yes
7795 -    fi
7796 -  done
7797 -  IFS="$ac_save_ifs"
7798 -  ;;
7799 -esac],
7800 -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
7801 -])
7802 +    beos*)
7803 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7804 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7805 +       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7806 +       # support --undefined.  This deserves some investigation.  FIXME
7807 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7808 +      else
7809 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
7810 +      fi
7811 +      ;;
7812  
7813 -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
7814 -AC_DEFUN([AC_DISABLE_SHARED],
7815 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7816 -AC_ENABLE_SHARED(no)])
7817 +    cygwin* | mingw* | pw32*)
7818 +      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7819 +      # as there is no search path for DLLs.
7820 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7821 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7822 +      _LT_AC_TAGVAR(always_export_symbols, $1)=no
7823 +      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7824 +      _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'
7825 +
7826 +      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7827 +        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7828 +       # If the export-symbols file already is a .def file (1st line
7829 +       # is EXPORTS), use it as is; otherwise, prepend...
7830 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7831 +         cp $export_symbols $output_objdir/$soname.def;
7832 +       else
7833 +         echo EXPORTS > $output_objdir/$soname.def;
7834 +         cat $export_symbols >> $output_objdir/$soname.def;
7835 +       fi~
7836 +       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7837 +      else
7838 +       ld_shlibs=no
7839 +      fi
7840 +      ;;
7841  
7842 -# AC_ENABLE_STATIC - implement the --enable-static flag
7843 -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
7844 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
7845 -#   `yes'.
7846 -AC_DEFUN([AC_ENABLE_STATIC],
7847 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
7848 -AC_ARG_ENABLE(static,
7849 -changequote(<<, >>)dnl
7850 -<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
7851 -changequote([, ])dnl
7852 -[p=${PACKAGE-default}
7853 -case $enableval in
7854 -yes) enable_static=yes ;;
7855 -no) enable_static=no ;;
7856 -*)
7857 -  enable_static=no
7858 -  # Look at the argument we got.  We use all the common list separators.
7859 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7860 -  for pkg in $enableval; do
7861 -    if test "X$pkg" = "X$p"; then
7862 -      enable_static=yes
7863 -    fi
7864 -  done
7865 -  IFS="$ac_save_ifs"
7866 -  ;;
7867 -esac],
7868 -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
7869 -])
7870 +    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7871 +      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7872 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7873 +       wlarc=
7874 +      else
7875 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7876 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7877 +      fi
7878 +      ;;
7879  
7880 -# AC_DISABLE_STATIC - set the default static flag to --disable-static
7881 -AC_DEFUN([AC_DISABLE_STATIC],
7882 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7883 -AC_ENABLE_STATIC(no)])
7884 +    solaris* | sysv5*)
7885 +      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7886 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
7887 +       cat <<EOF 1>&2
7888 +
7889 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7890 +*** create shared libraries on Solaris systems.  Therefore, libtool
7891 +*** is disabling shared libraries support.  We urge you to upgrade GNU
7892 +*** binutils to release 2.9.1 or newer.  Another option is to modify
7893 +*** your PATH or compiler configuration so that the native linker is
7894 +*** used, and then restart.
7895  
7896 +EOF
7897 +      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7898 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7899 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7900 +      else
7901 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
7902 +      fi
7903 +      ;;
7904  
7905 -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
7906 -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
7907 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
7908 -#   `yes'.
7909 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
7910 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
7911 -AC_ARG_ENABLE(fast-install,
7912 -changequote(<<, >>)dnl
7913 -<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
7914 -changequote([, ])dnl
7915 -[p=${PACKAGE-default}
7916 -case $enableval in
7917 -yes) enable_fast_install=yes ;;
7918 -no) enable_fast_install=no ;;
7919 -*)
7920 -  enable_fast_install=no
7921 -  # Look at the argument we got.  We use all the common list separators.
7922 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7923 -  for pkg in $enableval; do
7924 -    if test "X$pkg" = "X$p"; then
7925 -      enable_fast_install=yes
7926 +    sunos4*)
7927 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7928 +      wlarc=
7929 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7930 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7931 +      ;;
7932 +
7933 +  linux*)
7934 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7935 +        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7936 +       _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
7937 +      supports_anon_versioning=no
7938 +      case `$LD -v 2>/dev/null` in
7939 +        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7940 +        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7941 +        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7942 +        *\ 2.11.*) ;; # other 2.11 versions
7943 +        *) supports_anon_versioning=yes ;;
7944 +      esac
7945 +      if test $supports_anon_versioning = yes; then
7946 +        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7947 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7948 +$echo "local: *; };" >> $output_objdir/$libname.ver~
7949 +        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7950 +      else
7951 +        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
7952 +      fi
7953 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7954 +    else
7955 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
7956      fi
7957 -  done
7958 -  IFS="$ac_save_ifs"
7959 -  ;;
7960 -esac],
7961 -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
7962 -])
7963 +    ;;
7964  
7965 -# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
7966 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
7967 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7968 -AC_ENABLE_FAST_INSTALL(no)])
7969 +    *)
7970 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7971 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7973 +      else
7974 +       _LT_AC_TAGVAR(ld_shlibs, $1)=no
7975 +      fi
7976 +      ;;
7977 +    esac
7978 +
7979 +    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
7980 +      runpath_var=LD_RUN_PATH
7981 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7982 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7983 +      # ancient GNU ld didn't support --whole-archive et. al.
7984 +      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7985 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7986 +      else
7987 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7988 +      fi
7989 +    fi
7990 +  else
7991 +    # PORTME fill in a description of your system's linker (not GNU ld)
7992 +    case $host_os in
7993 +    aix3*)
7994 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7995 +      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7996 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7997 +      # Note: this linker hardcodes the directories in LIBPATH if there
7998 +      # are no directories specified by -L.
7999 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8000 +      if test "$GCC" = yes && test -z "$link_static_flag"; then
8001 +       # Neither direct hardcoding nor static linking is supported with a
8002 +       # broken collect2.
8003 +       _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8004 +      fi
8005 +      ;;
8006 +
8007 +    aix4* | aix5*)
8008 +      if test "$host_cpu" = ia64; then
8009 +       # On IA64, the linker does run time linking by default, so we don't
8010 +       # have to do anything special.
8011 +       aix_use_runtimelinking=no
8012 +       exp_sym_flag='-Bexport'
8013 +       no_entry_flag=""
8014 +      else
8015 +       # If we're using GNU nm, then we don't want the "-C" option.
8016 +       # -C means demangle to AIX nm, but means don't demangle with GNU nm
8017 +       if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8018 +         _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
8019 +       else
8020 +         _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
8021 +       fi
8022 +       aix_use_runtimelinking=no
8023  
8024 -# AC_LIBTOOL_PICMODE - implement the --with-pic flag
8025 -# Usage: AC_LIBTOOL_PICMODE[(MODE)]
8026 -#   Where MODE is either `yes' or `no'.  If omitted, it defaults to
8027 -#   `both'.
8028 -AC_DEFUN([AC_LIBTOOL_PICMODE],
8029 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8030 -pic_mode=ifelse($#,1,$1,default)])
8031 +       # Test if we are trying to use run time linking or normal
8032 +       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8033 +       # need to do runtime linking.
8034 +       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
8035 +         for ld_flag in $LDFLAGS; do
8036 +         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8037 +           aix_use_runtimelinking=yes
8038 +           break
8039 +         fi
8040 +         done
8041 +       esac
8042  
8043 +       exp_sym_flag='-bexport'
8044 +       no_entry_flag='-bnoentry'
8045 +      fi
8046  
8047 -# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
8048 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
8049 -[AC_MSG_CHECKING([for $1])
8050 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
8051 -[case $MAGIC_CMD in
8052 -  /*)
8053 -  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8054 -  ;;
8055 -  ?:/*)
8056 -  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
8057 -  ;;
8058 -  *)
8059 -  ac_save_MAGIC_CMD="$MAGIC_CMD"
8060 -  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8061 -dnl $ac_dummy forces splitting on constant user-supplied paths.
8062 -dnl POSIX.2 word splitting is done only on the output of word expansions,
8063 -dnl not every word.  This closes a longstanding sh security hole.
8064 -  ac_dummy="ifelse([$2], , $PATH, [$2])"
8065 -  for ac_dir in $ac_dummy; do
8066 -    test -z "$ac_dir" && ac_dir=.
8067 -    if test -f $ac_dir/$1; then
8068 -      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
8069 -      if test -n "$file_magic_test_file"; then
8070 -       case $deplibs_check_method in
8071 -       "file_magic "*)
8072 -         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8073 -         MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8074 -         if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8075 -           egrep "$file_magic_regex" > /dev/null; then
8076 -           :
8077 +      # When large executables or shared objects are built, AIX ld can
8078 +      # have problems creating the table of contents.  If linking a library
8079 +      # or program results in "error TOC overflow" add -mminimal-toc to
8080 +      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8081 +      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8082 +
8083 +      _LT_AC_TAGVAR(archive_cmds, $1)=''
8084 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8085 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
8086 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8087 +
8088 +      if test "$GCC" = yes; then
8089 +       case $host_os in aix4.[012]|aix4.[012].*)
8090 +       # We only want to do this on AIX 4.2 and lower, the check
8091 +       # below for broken collect2 doesn't work under 4.3+
8092 +         collect2name=`${CC} -print-prog-name=collect2`
8093 +         if test -f "$collect2name" && \
8094 +          strings "$collect2name" | grep resolve_lib_name >/dev/null
8095 +         then
8096 +         # We have reworked collect2
8097 +         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8098           else
8099 -           cat <<EOF 1>&2
8100 -
8101 -*** Warning: the command libtool uses to detect shared libraries,
8102 -*** $file_magic_cmd, produces output that libtool cannot recognize.
8103 -*** The result is that libtool may fail to recognize shared libraries
8104 -*** as such.  This will affect the creation of libtool libraries that
8105 -*** depend on shared libraries, but programs linked with such libtool
8106 -*** libraries will work regardless of this problem.  Nevertheless, you
8107 -*** may want to report the problem to your system manager and/or to
8108 -*** bug-libtool@gnu.org
8109 -
8110 -EOF
8111 -         fi ;;
8112 +         # We have old collect2
8113 +         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8114 +         # It fails to find uninstalled libraries when the uninstalled
8115 +         # path is not listed in the libpath.  Setting hardcode_minus_L
8116 +         # to unsupported forces relinking
8117 +         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8118 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8119 +         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8120 +         fi
8121         esac
8122 +       shared_flag='-shared'
8123 +      else
8124 +       # not using gcc
8125 +       if test "$host_cpu" = ia64; then
8126 +       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8127 +       # chokes on -Wl,-G. The following line is correct:
8128 +         shared_flag='-G'
8129 +       else
8130 +       if test "$aix_use_runtimelinking" = yes; then
8131 +           shared_flag='${wl}-G'
8132 +         else
8133 +           shared_flag='${wl}-bM:SRE'
8134 +       fi
8135 +       fi
8136        fi
8137 -      break
8138 -    fi
8139 -  done
8140 -  IFS="$ac_save_ifs"
8141 -  MAGIC_CMD="$ac_save_MAGIC_CMD"
8142 -  ;;
8143 -esac])
8144 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8145 -if test -n "$MAGIC_CMD"; then
8146 -  AC_MSG_RESULT($MAGIC_CMD)
8147 -else
8148 -  AC_MSG_RESULT(no)
8149 -fi
8150 -])
8151  
8152 +      # It seems that -bexpall does not export symbols beginning with
8153 +      # underscore (_), so it is better to generate a list of symbols to export.
8154 +      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8155 +      if test "$aix_use_runtimelinking" = yes; then
8156 +       # Warning - without using the other runtime loading flags (-brtl),
8157 +       # -berok will link without error, but may produce a broken library.
8158 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
8159 +       # Determine the default libpath from the value encoded in an empty executable.
8160 +       _LT_AC_SYS_LIBPATH_AIX
8161 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8162 +       _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"
8163 +       else
8164 +       if test "$host_cpu" = ia64; then
8165 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8166 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8167 +         _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"
8168 +       else
8169 +        # Determine the default libpath from the value encoded in an empty executable.
8170 +        _LT_AC_SYS_LIBPATH_AIX
8171 +        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8172 +         # Warning - without using the other run time loading flags,
8173 +         # -berok will link without error, but may produce a broken library.
8174 +         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8175 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8176 +         # -bexpall does not export symbols beginning with underscore (_)
8177 +         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8178 +         # Exported symbols can be pulled into shared objects from archives
8179 +         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
8180 +         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8181 +         # This is similar to how AIX traditionally builds it's shared libraries.
8182 +         _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'
8183 +       fi
8184 +      fi
8185 +      ;;
8186  
8187 -# AC_PATH_MAGIC - find a file program which can recognise a shared library
8188 -AC_DEFUN([AC_PATH_MAGIC],
8189 -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
8190 -AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
8191 -if test -z "$lt_cv_path_MAGIC_CMD"; then
8192 -  if test -n "$ac_tool_prefix"; then
8193 -    AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
8194 -  else
8195 -    MAGIC_CMD=:
8196 -  fi
8197 -fi
8198 -])
8199 +    amigaos*)
8200 +      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8201 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8202 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8203 +      # see comment about different semantics on the GNU ld section
8204 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
8205 +      ;;
8206  
8207 +    bsdi4*)
8208 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8209 +      ;;
8210  
8211 -# AC_PROG_LD - find the path to the GNU or non-GNU linker
8212 -AC_DEFUN([AC_PROG_LD],
8213 -[AC_ARG_WITH(gnu-ld,
8214 -[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
8215 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
8216 -AC_REQUIRE([AC_PROG_CC])dnl
8217 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
8218 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8219 -AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
8220 -ac_prog=ld
8221 -if test "$GCC" = yes; then
8222 -  # Check if gcc -print-prog-name=ld gives a path.
8223 -  AC_MSG_CHECKING([for ld used by GCC])
8224 -  case $host in
8225 -  *-*-mingw*)
8226 -    # gcc leaves a trailing carriage return which upsets mingw
8227 -    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8228 -  *)
8229 -    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8230 -  esac
8231 -  case $ac_prog in
8232 -    # Accept absolute paths.
8233 -    [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
8234 -      re_direlt='/[[^/]][[^/]]*/\.\./'
8235 -      # Canonicalize the path of ld
8236 -      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8237 -      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8238 -       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8239 -      done
8240 -      test -z "$LD" && LD="$ac_prog"
8241 +    cygwin* | mingw* | pw32*)
8242 +      # When not using gcc, we currently assume that we are using
8243 +      # Microsoft Visual C++.
8244 +      # hardcode_libdir_flag_spec is actually meaningless, as there is
8245 +      # no search path for DLLs.
8246 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8247 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8248 +      # Tell ltmain to make .lib files, not .a files.
8249 +      libext=lib
8250 +      # Tell ltmain to make .dll files, not .so files.
8251 +      shrext_cmds=".dll"
8252 +      # FIXME: Setting linknames here is a bad hack.
8253 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8254 +      # The linker will automatically build a .lib file if we build a DLL.
8255 +      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
8256 +      # FIXME: Should let the user specify the lib program.
8257 +      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
8258 +      fix_srcfile_path='`cygpath -w "$srcfile"`'
8259 +      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8260        ;;
8261 -  "")
8262 -    # If it fails, then pretend we aren't using GCC.
8263 -    ac_prog=ld
8264 -    ;;
8265 -  *)
8266 -    # If it is relative, then search for the first ld in PATH.
8267 -    with_gnu_ld=unknown
8268 -    ;;
8269 -  esac
8270 -elif test "$with_gnu_ld" = yes; then
8271 -  AC_MSG_CHECKING([for GNU ld])
8272 -else
8273 -  AC_MSG_CHECKING([for non-GNU ld])
8274 -fi
8275 -AC_CACHE_VAL(lt_cv_path_LD,
8276 -[if test -z "$LD"; then
8277 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8278 -  for ac_dir in $PATH; do
8279 -    test -z "$ac_dir" && ac_dir=.
8280 -    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8281 -      lt_cv_path_LD="$ac_dir/$ac_prog"
8282 -      # Check to see if the program is GNU ld.  I'd rather use --version,
8283 -      # but apparently some GNU ld's only accept -v.
8284 -      # Break only if it was the GNU/non-GNU ld that we prefer.
8285 -      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8286 -       test "$with_gnu_ld" != no && break
8287 +
8288 +    darwin* | rhapsody*)
8289 +    if test "$GXX" = yes ; then
8290 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8291 +      case "$host_os" in
8292 +      rhapsody* | darwin1.[[012]])
8293 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
8294 +       ;;
8295 +      *) # Darwin 1.3 on
8296 +      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8297 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8298        else
8299 -       test "$with_gnu_ld" != yes && break
8300 +        case ${MACOSX_DEPLOYMENT_TARGET} in
8301 +          10.[[012]])
8302 +            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8303 +            ;;
8304 +          10.*)
8305 +            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
8306 +            ;;
8307 +        esac
8308        fi
8309 +       ;;
8310 +      esac
8311 +       lt_int_apple_cc_single_mod=no
8312 +       output_verbose_link_cmd='echo'
8313 +       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8314 +         lt_int_apple_cc_single_mod=yes
8315 +       fi
8316 +       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8317 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8318 +       else
8319 +        _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'
8320 +      fi
8321 +      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8322 +      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8323 +        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8324 +          _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}'
8325 +        else
8326 +          _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}'
8327 +        fi
8328 +          _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}'
8329 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
8330 +      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8331 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8332 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
8333 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8334 +    else
8335 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
8336      fi
8337 -  done
8338 -  IFS="$ac_save_ifs"
8339 -else
8340 -  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8341 -fi])
8342 -LD="$lt_cv_path_LD"
8343 -if test -n "$LD"; then
8344 -  AC_MSG_RESULT($LD)
8345 -else
8346 -  AC_MSG_RESULT(no)
8347 -fi
8348 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
8349 -AC_PROG_LD_GNU
8350 -])
8351 +      ;;
8352  
8353 -# AC_PROG_LD_GNU -
8354 -AC_DEFUN([AC_PROG_LD_GNU],
8355 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
8356 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
8357 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8358 -  lt_cv_prog_gnu_ld=yes
8359 -else
8360 -  lt_cv_prog_gnu_ld=no
8361 -fi])
8362 -with_gnu_ld=$lt_cv_prog_gnu_ld
8363 -])
8364 +    dgux*)
8365 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8366 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8367 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8368 +      ;;
8369  
8370 -# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
8371 -#   -- PORTME Some linkers may need a different reload flag.
8372 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
8373 -[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
8374 -[lt_cv_ld_reload_flag='-r'])
8375 -reload_flag=$lt_cv_ld_reload_flag
8376 -test -n "$reload_flag" && reload_flag=" $reload_flag"
8377 -])
8378 +    freebsd1*)
8379 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
8380 +      ;;
8381  
8382 -# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
8383 -#  -- PORTME fill in with the dynamic library characteristics
8384 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
8385 -[AC_CACHE_CHECK([how to recognise dependent libraries],
8386 -lt_cv_deplibs_check_method,
8387 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
8388 -lt_cv_file_magic_test_file=
8389 -lt_cv_deplibs_check_method='unknown'
8390 -# Need to set the preceding variable on all platforms that support
8391 -# interlibrary dependencies.
8392 -# 'none' -- dependencies not supported.
8393 -# `unknown' -- same as none, but documents that we really don't know.
8394 -# 'pass_all' -- all dependencies passed with no checks.
8395 -# 'test_compile' -- check by making test program.
8396 -# 'file_magic [[regex]]' -- check by looking for files in library path
8397 -# which responds to the $file_magic_cmd with a given egrep regex.
8398 -# If you have `file' or equivalent on your system and you're not sure
8399 -# whether `pass_all' will *always* work, you probably want this one.
8400 +    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8401 +    # support.  Future versions do this automatically, but an explicit c++rt0.o
8402 +    # does not break anything, and helps significantly (at the cost of a little
8403 +    # extra space).
8404 +    freebsd2.2*)
8405 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8406 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8407 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8408 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8409 +      ;;
8410  
8411 -case $host_os in
8412 -aix4* | aix5*)
8413 -  lt_cv_deplibs_check_method=pass_all
8414 -  ;;
8415 +    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8416 +    freebsd2*)
8417 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8418 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8419 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8420 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8421 +      ;;
8422  
8423 -beos*)
8424 -  lt_cv_deplibs_check_method=pass_all
8425 -  ;;
8426 +    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8427 +    freebsd* | kfreebsd*-gnu)
8428 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8429 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8430 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8431 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8432 +      ;;
8433  
8434 -bsdi4*)
8435 -  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
8436 -  lt_cv_file_magic_cmd='/usr/bin/file -L'
8437 -  lt_cv_file_magic_test_file=/shlib/libc.so
8438 -  ;;
8439 +    hpux9*)
8440 +      if test "$GCC" = yes; then
8441 +       _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8442 +      else
8443 +       _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8444 +      fi
8445 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8446 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8447 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8448 +
8449 +      # hardcode_minus_L: Not really in the search PATH,
8450 +      # but as the default location of the library.
8451 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8452 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8453 +      ;;
8454  
8455 -cygwin* | mingw* | pw32*)
8456 -  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8457 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
8458 -  ;;
8459 +    hpux10* | hpux11*)
8460 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8461 +       case "$host_cpu" in
8462 +       hppa*64*|ia64*)
8463 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8464 +         ;;
8465 +       *)
8466 +         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8467 +         ;;
8468 +       esac
8469 +      else
8470 +       case "$host_cpu" in
8471 +       hppa*64*|ia64*)
8472 +         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8473 +         ;;
8474 +       *)
8475 +         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8476 +         ;;
8477 +       esac
8478 +      fi
8479 +      if test "$with_gnu_ld" = no; then
8480 +       case "$host_cpu" in
8481 +       hppa*64*)
8482 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8483 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8484 +         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8485 +         _LT_AC_TAGVAR(hardcode_direct, $1)=no
8486 +         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8487 +         ;;
8488 +       ia64*)
8489 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8490 +         _LT_AC_TAGVAR(hardcode_direct, $1)=no
8491 +         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8492 +
8493 +         # hardcode_minus_L: Not really in the search PATH,
8494 +         # but as the default location of the library.
8495 +         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8496 +         ;;
8497 +       *)
8498 +         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8499 +         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8500 +         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8501 +         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8502 +
8503 +         # hardcode_minus_L: Not really in the search PATH,
8504 +         # but as the default location of the library.
8505 +         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8506 +         ;;
8507 +       esac
8508 +      fi
8509 +      ;;
8510  
8511 -darwin* | rhapsody*)
8512 -  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
8513 -  lt_cv_file_magic_cmd='/usr/bin/file -L'
8514 -  case "$host_os" in
8515 -  rhapsody* | darwin1.[[012]])
8516 -    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
8517 -    ;;
8518 -  *) # Darwin 1.3 on
8519 -    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
8520 -    ;;
8521 -  esac
8522 -  ;;
8523 +    irix5* | irix6* | nonstopux*)
8524 +      if test "$GCC" = yes; then
8525 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8526 +      else
8527 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8528 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
8529 +      fi
8530 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8531 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8532 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8533 +      ;;
8534  
8535 -freebsd*)
8536 -  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8537 -    case $host_cpu in
8538 -    i*86 )
8539 -      # Not sure whether the presence of OpenBSD here was a mistake.
8540 -      # Let's accept both of them until this is cleared up.
8541 -      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
8542 -      lt_cv_file_magic_cmd=/usr/bin/file
8543 -      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8544 +    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8545 +      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8546 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8547 +      else
8548 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8549 +      fi
8550 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8551 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8552 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8553 +      ;;
8554 +
8555 +    newsos6)
8556 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8557 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8558 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8559 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8560 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8561 +      ;;
8562 +
8563 +    openbsd*)
8564 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8565 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8566 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8567 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8568 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8569 +       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8570 +      else
8571 +       case $host_os in
8572 +        openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8573 +          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8574 +          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8575 +          ;;
8576 +        *)
8577 +          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8578 +          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8579 +          ;;
8580 +       esac
8581 +      fi
8582 +      ;;
8583 +
8584 +    os2*)
8585 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8586 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8587 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8588 +      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8589 +      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8590 +      ;;
8591 +
8592 +    osf3*)
8593 +      if test "$GCC" = yes; then
8594 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8595 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8596 +      else
8597 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8598 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8599 +      fi
8600 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8601 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8602        ;;
8603 -    esac
8604 -  else
8605 -    lt_cv_deplibs_check_method=pass_all
8606 -  fi
8607 -  ;;
8608  
8609 -gnu*)
8610 -  lt_cv_deplibs_check_method=pass_all
8611 -  ;;
8612 +    osf4* | osf5*)     # as osf3* with the addition of -msym flag
8613 +      if test "$GCC" = yes; then
8614 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8615 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8616 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8617 +      else
8618 +       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8619 +       _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'
8620 +       _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~
8621 +       $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'
8622  
8623 -hpux10.20*|hpux11*)
8624 -  lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
8625 -  lt_cv_file_magic_cmd=/usr/bin/file
8626 -  lt_cv_file_magic_test_file=/usr/lib/libc.sl
8627 -  ;;
8628 +       # Both c and cxx compiler support -rpath directly
8629 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8630 +      fi
8631 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8632 +      ;;
8633  
8634 -irix5* | irix6* | nonstopux*)
8635 -  case $host_os in
8636 -  irix5* | nonstopux*)
8637 -    # this will be overridden with pass_all, but let us keep it just in case
8638 -    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8639 -    ;;
8640 -  *)
8641 -    case $LD in
8642 -    *-32|*"-32 ") libmagic=32-bit;;
8643 -    *-n32|*"-n32 ") libmagic=N32;;
8644 -    *-64|*"-64 ") libmagic=64-bit;;
8645 -    *) libmagic=never-match;;
8646 -    esac
8647 -    # this will be overridden with pass_all, but let us keep it just in case
8648 -    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
8649 -    ;;
8650 -  esac
8651 -  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8652 -  lt_cv_deplibs_check_method=pass_all
8653 -  ;;
8654 +    sco3.2v5*)
8655 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8657 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8658 +      runpath_var=LD_RUN_PATH
8659 +      hardcode_runpath_var=yes
8660 +      ;;
8661  
8662 -# This must be Linux ELF.
8663 -linux-gnu*)
8664 -  case $host_cpu in
8665 -  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
8666 -    lt_cv_deplibs_check_method=pass_all ;;
8667 -  *)
8668 -    # glibc up to 2.1.1 does not perform some relocations on ARM
8669 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
8670 -  esac
8671 -  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8672 -  ;;
8673 +    solaris*)
8674 +      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8675 +      if test "$GCC" = yes; then
8676 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8677 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8678 +         $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8679 +      else
8680 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8681 +       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8682 +       $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8683 +      fi
8684 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8685 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8686 +      case $host_os in
8687 +      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8688 +      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8689 +       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
8690 +      esac
8691 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8692 +      ;;
8693  
8694 -netbsd*)
8695 -  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8696 -    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
8697 -  else
8698 -    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
8699 -  fi
8700 -  ;;
8701 +    sunos4*)
8702 +      if test "x$host_vendor" = xsequent; then
8703 +       # Use $CC to link under sequent, because it throws in some extra .o
8704 +       # files that make .init and .fini sections work.
8705 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8706 +      else
8707 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8708 +      fi
8709 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8710 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8711 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8712 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8713 +      ;;
8714  
8715 -newos6*)
8716 -  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
8717 -  lt_cv_file_magic_cmd=/usr/bin/file
8718 -  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8719 -  ;;
8720 +    sysv4)
8721 +      case $host_vendor in
8722 +       sni)
8723 +         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724 +         _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8725 +       ;;
8726 +       siemens)
8727 +         ## LD is ld it makes a PLAMLIB
8728 +         ## CC just makes a GrossModule.
8729 +         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8730 +         _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8731 +         _LT_AC_TAGVAR(hardcode_direct, $1)=no
8732 +        ;;
8733 +       motorola)
8734 +         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8735 +         _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8736 +       ;;
8737 +      esac
8738 +      runpath_var='LD_RUN_PATH'
8739 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8740 +      ;;
8741  
8742 -openbsd*)
8743 -  lt_cv_file_magic_cmd=/usr/bin/file
8744 -  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8745 -  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8746 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
8747 -  else
8748 -    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8749 -  fi
8750 -  ;;
8751 +    sysv4.3*)
8752 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8754 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8755 +      ;;
8756  
8757 -osf3* | osf4* | osf5*)
8758 -  # this will be overridden with pass_all, but let us keep it just in case
8759 -  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
8760 -  lt_cv_file_magic_test_file=/shlib/libc.so
8761 -  lt_cv_deplibs_check_method=pass_all
8762 -  ;;
8763 +    sysv4*MP*)
8764 +      if test -d /usr/nec; then
8765 +       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766 +       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8767 +       runpath_var=LD_RUN_PATH
8768 +       hardcode_runpath_var=yes
8769 +       _LT_AC_TAGVAR(ld_shlibs, $1)=yes
8770 +      fi
8771 +      ;;
8772  
8773 -sco3.2v5*)
8774 -  lt_cv_deplibs_check_method=pass_all
8775 -  ;;
8776 +    sysv4.2uw2*)
8777 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8778 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8779 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8780 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8781 +      hardcode_runpath_var=yes
8782 +      runpath_var=LD_RUN_PATH
8783 +      ;;
8784  
8785 -solaris*)
8786 -  lt_cv_deplibs_check_method=pass_all
8787 -  lt_cv_file_magic_test_file=/lib/libc.so
8788 -  ;;
8789 +   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
8790 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
8791 +      if test "$GCC" = yes; then
8792 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793 +      else
8794 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8795 +      fi
8796 +      runpath_var='LD_RUN_PATH'
8797 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8798 +      ;;
8799  
8800 -sysv5uw[[78]]* | sysv4*uw2*)
8801 -  lt_cv_deplibs_check_method=pass_all
8802 -  ;;
8803 +    sysv5*)
8804 +      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8805 +      # $CC -shared without GNU ld will not create a library from C++
8806 +      # object files and a static libstdc++, better avoid it by now
8807 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8809 +               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8810 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8811 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8812 +      runpath_var='LD_RUN_PATH'
8813 +      ;;
8814  
8815 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8816 -  case $host_vendor in
8817 -  motorola)
8818 -    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]]'
8819 -    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8820 -    ;;
8821 -  ncr)
8822 -    lt_cv_deplibs_check_method=pass_all
8823 -    ;;
8824 -  sequent)
8825 -    lt_cv_file_magic_cmd='/bin/file'
8826 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
8827 -    ;;
8828 -  sni)
8829 -    lt_cv_file_magic_cmd='/bin/file'
8830 -    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
8831 -    lt_cv_file_magic_test_file=/lib/libc.so
8832 -    ;;
8833 -  siemens)
8834 -    lt_cv_deplibs_check_method=pass_all
8835 -    ;;
8836 -  esac
8837 -  ;;
8838 -esac
8839 -])
8840 -file_magic_cmd=$lt_cv_file_magic_cmd
8841 -deplibs_check_method=$lt_cv_deplibs_check_method
8842 +    uts4*)
8843 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8844 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8845 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8846 +      ;;
8847 +
8848 +    *)
8849 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
8850 +      ;;
8851 +    esac
8852 +  fi
8853  ])
8854 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8855 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8856  
8857 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8858 +if test "$GCC" = yes; then
8859 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8860 +fi
8861  
8862 -# AC_PROG_NM - find the path to a BSD-compatible name lister
8863 -AC_DEFUN([AC_PROG_NM],
8864 -[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
8865 -AC_MSG_CHECKING([for BSD-compatible nm])
8866 -AC_CACHE_VAL(lt_cv_path_NM,
8867 -[if test -n "$NM"; then
8868 -  # Let the user override the test.
8869 -  lt_cv_path_NM="$NM"
8870 -else
8871 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8872 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8873 -    test -z "$ac_dir" && ac_dir=.
8874 -    tmp_nm=$ac_dir/${ac_tool_prefix}nm
8875 -    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
8876 -      # Check to see if the nm accepts a BSD-compat flag.
8877 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8878 -      #   nm: unknown option "B" ignored
8879 -      # Tru64's nm complains that /dev/null is an invalid object file
8880 -      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
8881 -       lt_cv_path_NM="$tmp_nm -B"
8882 -       break
8883 -      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
8884 -       lt_cv_path_NM="$tmp_nm -p"
8885 -       break
8886 +#
8887 +# Do we need to explicitly link libc?
8888 +#
8889 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
8890 +x|xyes)
8891 +  # Assume -lc should be added
8892 +  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8893 +
8894 +  if test "$enable_shared" = yes && test "$GCC" = yes; then
8895 +    case $_LT_AC_TAGVAR(archive_cmds, $1) in
8896 +    *'~'*)
8897 +      # FIXME: we may have to deal with multi-command sequences.
8898 +      ;;
8899 +    '$CC '*)
8900 +      # Test whether the compiler implicitly links with -lc since on some
8901 +      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8902 +      # to ld, don't add -lc before -lgcc.
8903 +      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8904 +      $rm conftest*
8905 +      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8906 +
8907 +      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8908 +        soname=conftest
8909 +        lib=conftest
8910 +        libobjs=conftest.$ac_objext
8911 +        deplibs=
8912 +        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8913 +        compiler_flags=-v
8914 +        linker_flags=-v
8915 +        verstring=
8916 +        output_objdir=.
8917 +        libname=conftest
8918 +        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8919 +        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8920 +        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
8921 +        then
8922 +         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8923 +        else
8924 +         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8925 +        fi
8926 +        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8927        else
8928 -       lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8929 -       continue # so that we can try to find one that supports BSD flags
8930 +        cat conftest.err 1>&5
8931        fi
8932 -    fi
8933 -  done
8934 -  IFS="$ac_save_ifs"
8935 -  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8936 -fi])
8937 -NM="$lt_cv_path_NM"
8938 -AC_MSG_RESULT([$NM])
8939 -])
8940 -
8941 -# AC_CHECK_LIBM - check for math library
8942 -AC_DEFUN([AC_CHECK_LIBM],
8943 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8944 -LIBM=
8945 -case $host in
8946 -*-*-beos* | *-*-cygwin* | *-*-pw32*)
8947 -  # These system don't have libm
8948 -  ;;
8949 -*-ncr-sysv4.3*)
8950 -  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
8951 -  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
8952 -  ;;
8953 -*)
8954 -  AC_CHECK_LIB(m, main, LIBM="-lm")
8955 +      $rm conftest*
8956 +      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
8957 +      ;;
8958 +    esac
8959 +  fi
8960    ;;
8961  esac
8962 -])
8963 +])# AC_LIBTOOL_PROG_LD_SHLIBS
8964  
8965 -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
8966 -# the libltdl convenience library and LTDLINCL to the include flags for
8967 -# the libltdl header and adds --enable-ltdl-convenience to the
8968 -# configure arguments.  Note that LIBLTDL and LTDLINCL are not
8969 -# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
8970 -# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
8971 -# with '${top_builddir}/' and LTDLINCL will be prefixed with
8972 -# '${top_srcdir}/' (note the single quotes!).  If your package is not
8973 -# flat and you're not using automake, define top_builddir and
8974 -# top_srcdir appropriately in the Makefiles.
8975 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
8976 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8977 -  case $enable_ltdl_convenience in
8978 -  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
8979 -  "") enable_ltdl_convenience=yes
8980 -      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
8981 -  esac
8982 -  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
8983 -  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
8984 -  # For backwards non-gettext consistent compatibility...
8985 -  INCLTDL="$LTDLINCL"
8986 -])
8987  
8988 -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
8989 -# the libltdl installable library and LTDLINCL to the include flags for
8990 -# the libltdl header and adds --enable-ltdl-install to the configure
8991 -# arguments.  Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
8992 -# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
8993 -# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
8994 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
8995 -# with '${top_srcdir}/' (note the single quotes!).  If your package is
8996 -# not flat and you're not using automake, define top_builddir and
8997 -# top_srcdir appropriately in the Makefiles.
8998 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
8999 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
9000 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
9001 -  AC_CHECK_LIB(ltdl, main,
9002 -  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
9003 -  [if test x"$enable_ltdl_install" = xno; then
9004 -     AC_MSG_WARN([libltdl not installed, but installation disabled])
9005 -   else
9006 -     enable_ltdl_install=yes
9007 -   fi
9008 -  ])
9009 -  if test x"$enable_ltdl_install" = x"yes"; then
9010 -    ac_configure_args="$ac_configure_args --enable-ltdl-install"
9011 -    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
9012 -    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
9013 -  else
9014 -    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
9015 -    LIBLTDL="-lltdl"
9016 -    LTDLINCL=
9017 -  fi
9018 -  # For backwards non-gettext consistent compatibility...
9019 -  INCLTDL="$LTDLINCL"
9020 -])
9021 +# _LT_AC_FILE_LTDLL_C
9022 +# -------------------
9023 +# Be careful that the start marker always follows a newline.
9024 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
9025 +# /* ltdll.c starts here */
9026 +# #define WIN32_LEAN_AND_MEAN
9027 +# #include <windows.h>
9028 +# #undef WIN32_LEAN_AND_MEAN
9029 +# #include <stdio.h>
9030 +#
9031 +# #ifndef __CYGWIN__
9032 +# #  ifdef __CYGWIN32__
9033 +# #    define __CYGWIN__ __CYGWIN32__
9034 +# #  endif
9035 +# #endif
9036 +#
9037 +# #ifdef __cplusplus
9038 +# extern "C" {
9039 +# #endif
9040 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9041 +# #ifdef __cplusplus
9042 +# }
9043 +# #endif
9044 +#
9045 +# #ifdef __CYGWIN__
9046 +# #include <cygwin/cygwin_dll.h>
9047 +# DECLARE_CYGWIN_DLL( DllMain );
9048 +# #endif
9049 +# HINSTANCE __hDllInstance_base;
9050 +#
9051 +# BOOL APIENTRY
9052 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9053 +# {
9054 +#   __hDllInstance_base = hInst;
9055 +#   return TRUE;
9056 +# }
9057 +# /* ltdll.c ends here */
9058 +])# _LT_AC_FILE_LTDLL_C
9059 +
9060 +
9061 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
9062 +# ---------------------------------
9063 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
9064 +
9065  
9066  # old names
9067  AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
9068 @@ -3709,6 +6828,16 @@
9069  # This is just to silence aclocal about the macro not being used
9070  ifelse([AC_DISABLE_FAST_INSTALL])
9071  
9072 +AC_DEFUN([LT_AC_PROG_GCJ],
9073 +[AC_CHECK_TOOL(GCJ, gcj, no)
9074 +  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9075 +  AC_SUBST(GCJFLAGS)
9076 +])
9077 +
9078 +AC_DEFUN([LT_AC_PROG_RC],
9079 +[AC_CHECK_TOOL(RC, windres, no)
9080 +])
9081 +
9082  # NOTE: This macro has been submitted for inclusion into   #
9083  #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
9084  #  a released version of Autoconf we should remove this    #
9085 @@ -3722,79 +6851,51 @@
9086  AC_CACHE_VAL(lt_cv_path_SED,
9087  [# Loop through the user's path and test for sed and gsed.
9088  # Then use that list of sed's as ones to test for truncation.
9089 -as_executable_p="test -f"
9090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091  for as_dir in $PATH
9092  do
9093    IFS=$as_save_IFS
9094    test -z "$as_dir" && as_dir=.
9095 -  for ac_prog in sed gsed; do
9096 +  for lt_ac_prog in sed gsed; do
9097      for ac_exec_ext in '' $ac_executable_extensions; do
9098 -      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9099 -        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
9100 +      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9101 +        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9102        fi
9103      done
9104    done
9105  done
9106 -
9107 -  # Create a temporary directory, and hook for its removal unless debugging.
9108 -$debug ||
9109 -{
9110 -  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9111 -  trap '{ (exit 1); exit 1; }' 1 2 13 15
9112 -}
9113 -
9114 -# Create a (secure) tmp directory for tmp files.
9115 -: ${TMPDIR=/tmp}
9116 -{
9117 -  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
9118 -  test -n "$tmp" && test -d "$tmp"
9119 -}  ||
9120 -{
9121 -  tmp=$TMPDIR/sed$$-$RANDOM
9122 -  (umask 077 && mkdir $tmp)
9123 -} ||
9124 -{
9125 -   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9126 -   { (exit 1); exit 1; }
9127 -}
9128 -  _max=0
9129 -  _count=0
9130 -  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9131 -  # along with /bin/sed that truncates output.
9132 -  for _sed in $_sed_list /usr/xpg4/bin/sed; do
9133 -    test ! -f ${_sed} && break
9134 -    cat /dev/null > "$tmp/sed.in"
9135 -    _count=0
9136 -    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
9137 -    # Check for GNU sed and select it if it is found.
9138 -    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
9139 -      lt_cv_path_SED=${_sed}
9140 -      break
9141 +lt_ac_max=0
9142 +lt_ac_count=0
9143 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9144 +# along with /bin/sed that truncates output.
9145 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9146 +  test ! -f $lt_ac_sed && break
9147 +  cat /dev/null > conftest.in
9148 +  lt_ac_count=0
9149 +  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9150 +  # Check for GNU sed and select it if it is found.
9151 +  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9152 +    lt_cv_path_SED=$lt_ac_sed
9153 +    break
9154 +  fi
9155 +  while true; do
9156 +    cat conftest.in conftest.in >conftest.tmp
9157 +    mv conftest.tmp conftest.in
9158 +    cp conftest.in conftest.nl
9159 +    echo >>conftest.nl
9160 +    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9161 +    cmp -s conftest.out conftest.nl || break
9162 +    # 10000 chars as input seems more than enough
9163 +    test $lt_ac_count -gt 10 && break
9164 +    lt_ac_count=`expr $lt_ac_count + 1`
9165 +    if test $lt_ac_count -gt $lt_ac_max; then
9166 +      lt_ac_max=$lt_ac_count
9167 +      lt_cv_path_SED=$lt_ac_sed
9168      fi
9169 -    while true; do
9170 -      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
9171 -      mv "$tmp/sed.tmp" "$tmp/sed.in"
9172 -      cp "$tmp/sed.in" "$tmp/sed.nl"
9173 -      echo >>"$tmp/sed.nl"
9174 -      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
9175 -      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
9176 -      # 40000 chars as input seems more than enough
9177 -      test $_count -gt 10 && break
9178 -      _count=`expr $_count + 1`
9179 -      if test $_count -gt $_max; then
9180 -        _max=$_count
9181 -        lt_cv_path_SED=$_sed
9182 -      fi
9183 -    done
9184    done
9185 -  rm -rf "$tmp"
9186 +done
9187 +SED=$lt_cv_path_SED
9188  ])
9189 -if test "X$SED" != "X"; then
9190 -  lt_cv_path_SED=$SED
9191 -else
9192 -  SED=$lt_cv_path_SED
9193 -fi
9194  AC_MSG_RESULT([$SED])
9195  ])
9196  
9197 diff -urN linux-atm.old/autom4te.cache/output.0 linux-atm.dev/autom4te.cache/output.0
9198 --- linux-atm.old/autom4te.cache/output.0       1970-01-01 01:00:00.000000000 +0100
9199 +++ linux-atm.dev/autom4te.cache/output.0       2005-08-23 01:12:40.958209832 +0200
9200 @@ -0,0 +1,10118 @@
9201 +@%:@! /bin/sh
9202 +@%:@ Guess values for system-dependent variables and create Makefiles.
9203 +@%:@ Generated by GNU Autoconf 2.59.
9204 +@%:@ 
9205 +@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
9206 +@%:@ This configure script is free software; the Free Software Foundation
9207 +@%:@ gives unlimited permission to copy, distribute and modify it.
9208 +## --------------------- ##
9209 +## M4sh Initialization.  ##
9210 +## --------------------- ##
9211 +
9212 +# Be Bourne compatible
9213 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9214 +  emulate sh
9215 +  NULLCMD=:
9216 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9217 +  # is contrary to our usage.  Disable this feature.
9218 +  alias -g '${1+"$@"}'='"$@"'
9219 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9220 +  set -o posix
9221 +fi
9222 +DUALCASE=1; export DUALCASE # for MKS sh
9223 +
9224 +# Support unset when possible.
9225 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9226 +  as_unset=unset
9227 +else
9228 +  as_unset=false
9229 +fi
9230 +
9231 +
9232 +# Work around bugs in pre-3.0 UWIN ksh.
9233 +$as_unset ENV MAIL MAILPATH
9234 +PS1='$ '
9235 +PS2='> '
9236 +PS4='+ '
9237 +
9238 +# NLS nuisances.
9239 +for as_var in \
9240 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9241 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9242 +  LC_TELEPHONE LC_TIME
9243 +do
9244 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9245 +    eval $as_var=C; export $as_var
9246 +  else
9247 +    $as_unset $as_var
9248 +  fi
9249 +done
9250 +
9251 +# Required to use basename.
9252 +if expr a : '\(a\)' >/dev/null 2>&1; then
9253 +  as_expr=expr
9254 +else
9255 +  as_expr=false
9256 +fi
9257 +
9258 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9259 +  as_basename=basename
9260 +else
9261 +  as_basename=false
9262 +fi
9263 +
9264 +
9265 +# Name of the executable.
9266 +as_me=`$as_basename "$0" ||
9267 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9268 +        X"$0" : 'X\(//\)$' \| \
9269 +        X"$0" : 'X\(/\)$' \| \
9270 +        .     : '\(.\)' 2>/dev/null ||
9271 +echo X/"$0" |
9272 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9273 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
9274 +         /^X\/\(\/\).*/{ s//\1/; q; }
9275 +         s/.*/./; q'`
9276 +
9277 +
9278 +# PATH needs CR, and LINENO needs CR and PATH.
9279 +# Avoid depending upon Character Ranges.
9280 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9281 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9282 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9283 +as_cr_digits='0123456789'
9284 +as_cr_alnum=$as_cr_Letters$as_cr_digits
9285 +
9286 +# The user is always right.
9287 +if test "${PATH_SEPARATOR+set}" != set; then
9288 +  echo "#! /bin/sh" >conf$$.sh
9289 +  echo  "exit 0"   >>conf$$.sh
9290 +  chmod +x conf$$.sh
9291 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9292 +    PATH_SEPARATOR=';'
9293 +  else
9294 +    PATH_SEPARATOR=:
9295 +  fi
9296 +  rm -f conf$$.sh
9297 +fi
9298 +
9299 +
9300 +  as_lineno_1=$LINENO
9301 +  as_lineno_2=$LINENO
9302 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9303 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
9304 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9305 +  # Find who we are.  Look in the path if we contain no path at all
9306 +  # relative or not.
9307 +  case $0 in
9308 +    *[\\/]* ) as_myself=$0 ;;
9309 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310 +for as_dir in $PATH
9311 +do
9312 +  IFS=$as_save_IFS
9313 +  test -z "$as_dir" && as_dir=.
9314 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9315 +done
9316 +
9317 +       ;;
9318 +  esac
9319 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
9320 +  # in which case we are not to be found in the path.
9321 +  if test "x$as_myself" = x; then
9322 +    as_myself=$0
9323 +  fi
9324 +  if test ! -f "$as_myself"; then
9325 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
9326 +   { (exit 1); exit 1; }; }
9327 +  fi
9328 +  case $CONFIG_SHELL in
9329 +  '')
9330 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9332 +do
9333 +  IFS=$as_save_IFS
9334 +  test -z "$as_dir" && as_dir=.
9335 +  for as_base in sh bash ksh sh5; do
9336 +        case $as_dir in
9337 +        /*)
9338 +          if ("$as_dir/$as_base" -c '
9339 +  as_lineno_1=$LINENO
9340 +  as_lineno_2=$LINENO
9341 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9342 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
9343 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9344 +            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9345 +            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9346 +            CONFIG_SHELL=$as_dir/$as_base
9347 +            export CONFIG_SHELL
9348 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9349 +          fi;;
9350 +        esac
9351 +       done
9352 +done
9353 +;;
9354 +  esac
9355 +
9356 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9357 +  # uniformly replaced by the line number.  The first 'sed' inserts a
9358 +  # line-number line before each line; the second 'sed' does the real
9359 +  # work.  The second script uses 'N' to pair each line-number line
9360 +  # with the numbered line, and appends trailing '-' during
9361 +  # substitution so that $LINENO is not a special case at line end.
9362 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9363 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9364 +  sed '=' <$as_myself |
9365 +    sed '
9366 +      N
9367 +      s,$,-,
9368 +      : loop
9369 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9370 +      t loop
9371 +      s,-$,,
9372 +      s,^['$as_cr_digits']*\n,,
9373 +    ' >$as_me.lineno &&
9374 +  chmod +x $as_me.lineno ||
9375 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9376 +   { (exit 1); exit 1; }; }
9377 +
9378 +  # Don't try to exec as it changes $[0], causing all sort of problems
9379 +  # (the dirname of $[0] is not the place where we might find the
9380 +  # original and so on.  Autoconf is especially sensible to this).
9381 +  . ./$as_me.lineno
9382 +  # Exit status is that of the last command.
9383 +  exit
9384 +}
9385 +
9386 +
9387 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9388 +  *c*,-n*) ECHO_N= ECHO_C='
9389 +' ECHO_T='     ' ;;
9390 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9391 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9392 +esac
9393 +
9394 +if expr a : '\(a\)' >/dev/null 2>&1; then
9395 +  as_expr=expr
9396 +else
9397 +  as_expr=false
9398 +fi
9399 +
9400 +rm -f conf$$ conf$$.exe conf$$.file
9401 +echo >conf$$.file
9402 +if ln -s conf$$.file conf$$ 2>/dev/null; then
9403 +  # We could just check for DJGPP; but this test a) works b) is more generic
9404 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9405 +  if test -f conf$$.exe; then
9406 +    # Don't use ln at all; we don't have any links
9407 +    as_ln_s='cp -p'
9408 +  else
9409 +    as_ln_s='ln -s'
9410 +  fi
9411 +elif ln conf$$.file conf$$ 2>/dev/null; then
9412 +  as_ln_s=ln
9413 +else
9414 +  as_ln_s='cp -p'
9415 +fi
9416 +rm -f conf$$ conf$$.exe conf$$.file
9417 +
9418 +if mkdir -p . 2>/dev/null; then
9419 +  as_mkdir_p=:
9420 +else
9421 +  test -d ./-p && rmdir ./-p
9422 +  as_mkdir_p=false
9423 +fi
9424 +
9425 +as_executable_p="test -f"
9426 +
9427 +# Sed expression to map a string onto a valid CPP name.
9428 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9429 +
9430 +# Sed expression to map a string onto a valid variable name.
9431 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9432 +
9433 +
9434 +# IFS
9435 +# We need space, tab and new line, in precisely that order.
9436 +as_nl='
9437 +'
9438 +IFS="  $as_nl"
9439 +
9440 +# CDPATH.
9441 +$as_unset CDPATH
9442 +
9443 +
9444 +# Find the correct PATH separator.  Usually this is `:', but
9445 +# DJGPP uses `;' like DOS.
9446 +if test "X${PATH_SEPARATOR+set}" != Xset; then
9447 +  UNAME=${UNAME-`uname 2>/dev/null`}
9448 +  case X$UNAME in
9449 +    *-DOS) lt_cv_sys_path_separator=';' ;;
9450 +    *)     lt_cv_sys_path_separator=':' ;;
9451 +  esac
9452 +  PATH_SEPARATOR=$lt_cv_sys_path_separator
9453 +fi
9454 +
9455 +
9456 +# Check that we are running under the correct shell.
9457 +SHELL=${CONFIG_SHELL-/bin/sh}
9458 +
9459 +case X$ECHO in
9460 +X*--fallback-echo)
9461 +  # Remove one level of quotation (which was required for Make).
9462 +  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
9463 +  ;;
9464 +esac
9465 +
9466 +echo=${ECHO-echo}
9467 +if test "X$1" = X--no-reexec; then
9468 +  # Discard the --no-reexec flag, and continue.
9469 +  shift
9470 +elif test "X$1" = X--fallback-echo; then
9471 +  # Avoid inline document here, it may be left over
9472 +  :
9473 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
9474 +  # Yippee, $echo works!
9475 +  :
9476 +else
9477 +  # Restart under the correct shell.
9478 +  exec $SHELL "$0" --no-reexec ${1+"$@"}
9479 +fi
9480 +
9481 +if test "X$1" = X--fallback-echo; then
9482 +  # used as fallback echo
9483 +  shift
9484 +  cat <<EOF
9485 +
9486 +EOF
9487 +  exit 0
9488 +fi
9489 +
9490 +# The HP-UX ksh and POSIX shell print the target directory to stdout
9491 +# if CDPATH is set.
9492 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9493 +
9494 +if test -z "$ECHO"; then
9495 +if test "X${echo_test_string+set}" != Xset; then
9496 +# find a string as large as possible, as long as the shell can cope with it
9497 +  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
9498 +    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
9499 +    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
9500 +       echo_test_string="`eval $cmd`" &&
9501 +       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
9502 +    then
9503 +      break
9504 +    fi
9505 +  done
9506 +fi
9507 +
9508 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
9509 +   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
9510 +   test "X$echo_testing_string" = "X$echo_test_string"; then
9511 +  :
9512 +else
9513 +  # The Solaris, AIX, and Digital Unix default echo programs unquote
9514 +  # backslashes.  This makes it impossible to quote backslashes using
9515 +  #   echo "$something" | sed 's/\\/\\\\/g'
9516 +  #
9517 +  # So, first we look for a working echo in the user's PATH.
9518 +
9519 +  IFS="${IFS=  }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9520 +  for dir in $PATH /usr/ucb; do
9521 +    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
9522 +       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
9523 +       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
9524 +       test "X$echo_testing_string" = "X$echo_test_string"; then
9525 +      echo="$dir/echo"
9526 +      break
9527 +    fi
9528 +  done
9529 +  IFS="$save_ifs"
9530 +
9531 +  if test "X$echo" = Xecho; then
9532 +    # We didn't find a better echo, so look for alternatives.
9533 +    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
9534 +       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
9535 +       test "X$echo_testing_string" = "X$echo_test_string"; then
9536 +      # This shell has a builtin print -r that does the trick.
9537 +      echo='print -r'
9538 +    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
9539 +        test "X$CONFIG_SHELL" != X/bin/ksh; then
9540 +      # If we have ksh, try running configure again with it.
9541 +      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9542 +      export ORIGINAL_CONFIG_SHELL
9543 +      CONFIG_SHELL=/bin/ksh
9544 +      export CONFIG_SHELL
9545 +      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
9546 +    else
9547 +      # Try using printf.
9548 +      echo='printf %s\n'
9549 +      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
9550 +        echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
9551 +        test "X$echo_testing_string" = "X$echo_test_string"; then
9552 +       # Cool, printf works
9553 +       :
9554 +      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
9555 +          test "X$echo_testing_string" = 'X\t' &&
9556 +          echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
9557 +          test "X$echo_testing_string" = "X$echo_test_string"; then
9558 +       CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
9559 +       export CONFIG_SHELL
9560 +       SHELL="$CONFIG_SHELL"
9561 +       export SHELL
9562 +       echo="$CONFIG_SHELL $0 --fallback-echo"
9563 +      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
9564 +          test "X$echo_testing_string" = 'X\t' &&
9565 +          echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
9566 +          test "X$echo_testing_string" = "X$echo_test_string"; then
9567 +       echo="$CONFIG_SHELL $0 --fallback-echo"
9568 +      else
9569 +       # maybe with a smaller string...
9570 +       prev=:
9571 +
9572 +       for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
9573 +         if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
9574 +         then
9575 +           break
9576 +         fi
9577 +         prev="$cmd"
9578 +       done
9579 +
9580 +       if test "$prev" != 'sed 50q "$0"'; then
9581 +         echo_test_string=`eval $prev`
9582 +         export echo_test_string
9583 +         exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
9584 +       else
9585 +         # Oops.  We lost completely, so just stick with echo.
9586 +         echo=echo
9587 +       fi
9588 +      fi
9589 +    fi
9590 +  fi
9591 +fi
9592 +fi
9593 +
9594 +# Copy echo and quote the copy suitably for passing to libtool from
9595 +# the Makefile, instead of quoting the original, which is used later.
9596 +ECHO=$echo
9597 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
9598 +   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
9599 +fi
9600 +
9601 +
9602 +
9603 +# Name of the host.
9604 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
9605 +# so uname gets run too.
9606 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
9607 +
9608 +exec 6>&1
9609 +
9610 +#
9611 +# Initializations.
9612 +#
9613 +ac_default_prefix=/usr/local
9614 +ac_config_libobj_dir=.
9615 +cross_compiling=no
9616 +subdirs=
9617 +MFLAGS=
9618 +MAKEFLAGS=
9619 +SHELL=${CONFIG_SHELL-/bin/sh}
9620 +
9621 +# Maximum number of lines to put in a shell here document.
9622 +# This variable seems obsolete.  It should probably be removed, and
9623 +# only ac_max_sed_lines should be used.
9624 +: ${ac_max_here_lines=38}
9625 +
9626 +# Identity of this package.
9627 +PACKAGE_NAME=
9628 +PACKAGE_TARNAME=
9629 +PACKAGE_VERSION=
9630 +PACKAGE_STRING=
9631 +PACKAGE_BUGREPORT=
9632 +
9633 +ac_unique_file="src/include/atm.h"
9634 +# Factoring default headers for most tests.
9635 +ac_includes_default="\
9636 +#include <stdio.h>
9637 +#if HAVE_SYS_TYPES_H
9638 +# include <sys/types.h>
9639 +#endif
9640 +#if HAVE_SYS_STAT_H
9641 +# include <sys/stat.h>
9642 +#endif
9643 +#if STDC_HEADERS
9644 +# include <stdlib.h>
9645 +# include <stddef.h>
9646 +#else
9647 +# if HAVE_STDLIB_H
9648 +#  include <stdlib.h>
9649 +# endif
9650 +#endif
9651 +#if HAVE_STRING_H
9652 +# if !STDC_HEADERS && HAVE_MEMORY_H
9653 +#  include <memory.h>
9654 +# endif
9655 +# include <string.h>
9656 +#endif
9657 +#if HAVE_STRINGS_H
9658 +# include <strings.h>
9659 +#endif
9660 +#if HAVE_INTTYPES_H
9661 +# include <inttypes.h>
9662 +#else
9663 +# if HAVE_STDINT_H
9664 +#  include <stdint.h>
9665 +# endif
9666 +#endif
9667 +#if HAVE_UNISTD_H
9668 +# include <unistd.h>
9669 +#endif"
9670 +
9671 +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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE LIBVER_CURRENT LIBVER_REVISION LIBVER_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEX LEXLIB LEX_OUTPUT_ROOT YACC LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL LIBTOOL_DEPS PERL LIB@&t@OBJS LTLIBOBJS'
9672 +ac_subst_files=''
9673 +
9674 +# Initialize some variables set by options.
9675 +ac_init_help=
9676 +ac_init_version=false
9677 +# The variables have the same names as the options, with
9678 +# dashes changed to underlines.
9679 +cache_file=/dev/null
9680 +exec_prefix=NONE
9681 +no_create=
9682 +no_recursion=
9683 +prefix=NONE
9684 +program_prefix=NONE
9685 +program_suffix=NONE
9686 +program_transform_name=s,x,x,
9687 +silent=
9688 +site=
9689 +srcdir=
9690 +verbose=
9691 +x_includes=NONE
9692 +x_libraries=NONE
9693 +
9694 +# Installation directory options.
9695 +# These are left unexpanded so users can "make install exec_prefix=/foo"
9696 +# and all the variables that are supposed to be based on exec_prefix
9697 +# by default will actually change.
9698 +# Use braces instead of parens because sh, perl, etc. also accept them.
9699 +bindir='${exec_prefix}/bin'
9700 +sbindir='${exec_prefix}/sbin'
9701 +libexecdir='${exec_prefix}/libexec'
9702 +datadir='${prefix}/share'
9703 +sysconfdir='${prefix}/etc'
9704 +sharedstatedir='${prefix}/com'
9705 +localstatedir='${prefix}/var'
9706 +libdir='${exec_prefix}/lib'
9707 +includedir='${prefix}/include'
9708 +oldincludedir='/usr/include'
9709 +infodir='${prefix}/info'
9710 +mandir='${prefix}/man'
9711 +
9712 +ac_prev=
9713 +for ac_option
9714 +do
9715 +  # If the previous option needs an argument, assign it.
9716 +  if test -n "$ac_prev"; then
9717 +    eval "$ac_prev=\$ac_option"
9718 +    ac_prev=
9719 +    continue
9720 +  fi
9721 +
9722 +  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
9723 +
9724 +  # Accept the important Cygnus configure options, so we can diagnose typos.
9725 +
9726 +  case $ac_option in
9727 +
9728 +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
9729 +    ac_prev=bindir ;;
9730 +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
9731 +    bindir=$ac_optarg ;;
9732 +
9733 +  -build | --build | --buil | --bui | --bu)
9734 +    ac_prev=build_alias ;;
9735 +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
9736 +    build_alias=$ac_optarg ;;
9737 +
9738 +  -cache-file | --cache-file | --cache-fil | --cache-fi \
9739 +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9740 +    ac_prev=cache_file ;;
9741 +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9742 +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9743 +    cache_file=$ac_optarg ;;
9744 +
9745 +  --config-cache | -C)
9746 +    cache_file=config.cache ;;
9747 +
9748 +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
9749 +    ac_prev=datadir ;;
9750 +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
9751 +  | --da=*)
9752 +    datadir=$ac_optarg ;;
9753 +
9754 +  -disable-* | --disable-*)
9755 +    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9756 +    # Reject names that are not valid shell variable names.
9757 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9758 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
9759 +   { (exit 1); exit 1; }; }
9760 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
9761 +    eval "enable_$ac_feature=no" ;;
9762 +
9763 +  -enable-* | --enable-*)
9764 +    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9765 +    # Reject names that are not valid shell variable names.
9766 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9767 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
9768 +   { (exit 1); exit 1; }; }
9769 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
9770 +    case $ac_option in
9771 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
9772 +      *) ac_optarg=yes ;;
9773 +    esac
9774 +    eval "enable_$ac_feature='$ac_optarg'" ;;
9775 +
9776 +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9777 +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9778 +  | --exec | --exe | --ex)
9779 +    ac_prev=exec_prefix ;;
9780 +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9781 +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9782 +  | --exec=* | --exe=* | --ex=*)
9783 +    exec_prefix=$ac_optarg ;;
9784 +
9785 +  -gas | --gas | --ga | --g)
9786 +    # Obsolete; use --with-gas.
9787 +    with_gas=yes ;;
9788 +
9789 +  -help | --help | --hel | --he | -h)
9790 +    ac_init_help=long ;;
9791 +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9792 +    ac_init_help=recursive ;;
9793 +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9794 +    ac_init_help=short ;;
9795 +
9796 +  -host | --host | --hos | --ho)
9797 +    ac_prev=host_alias ;;
9798 +  -host=* | --host=* | --hos=* | --ho=*)
9799 +    host_alias=$ac_optarg ;;
9800 +
9801 +  -includedir | --includedir | --includedi | --included | --include \
9802 +  | --includ | --inclu | --incl | --inc)
9803 +    ac_prev=includedir ;;
9804 +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9805 +  | --includ=* | --inclu=* | --incl=* | --inc=*)
9806 +    includedir=$ac_optarg ;;
9807 +
9808 +  -infodir | --infodir | --infodi | --infod | --info | --inf)
9809 +    ac_prev=infodir ;;
9810 +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9811 +    infodir=$ac_optarg ;;
9812 +
9813 +  -libdir | --libdir | --libdi | --libd)
9814 +    ac_prev=libdir ;;
9815 +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9816 +    libdir=$ac_optarg ;;
9817 +
9818 +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9819 +  | --libexe | --libex | --libe)
9820 +    ac_prev=libexecdir ;;
9821 +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9822 +  | --libexe=* | --libex=* | --libe=*)
9823 +    libexecdir=$ac_optarg ;;
9824 +
9825 +  -localstatedir | --localstatedir | --localstatedi | --localstated \
9826 +  | --localstate | --localstat | --localsta | --localst \
9827 +  | --locals | --local | --loca | --loc | --lo)
9828 +    ac_prev=localstatedir ;;
9829 +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9830 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
9831 +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
9832 +    localstatedir=$ac_optarg ;;
9833 +
9834 +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9835 +    ac_prev=mandir ;;
9836 +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9837 +    mandir=$ac_optarg ;;
9838 +
9839 +  -nfp | --nfp | --nf)
9840 +    # Obsolete; use --without-fp.
9841 +    with_fp=no ;;
9842 +
9843 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9844 +  | --no-cr | --no-c | -n)
9845 +    no_create=yes ;;
9846 +
9847 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9848 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9849 +    no_recursion=yes ;;
9850 +
9851 +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9852 +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9853 +  | --oldin | --oldi | --old | --ol | --o)
9854 +    ac_prev=oldincludedir ;;
9855 +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9856 +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9857 +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9858 +    oldincludedir=$ac_optarg ;;
9859 +
9860 +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9861 +    ac_prev=prefix ;;
9862 +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9863 +    prefix=$ac_optarg ;;
9864 +
9865 +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
9866 +  | --program-pre | --program-pr | --program-p)
9867 +    ac_prev=program_prefix ;;
9868 +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
9869 +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9870 +    program_prefix=$ac_optarg ;;
9871 +
9872 +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
9873 +  | --program-suf | --program-su | --program-s)
9874 +    ac_prev=program_suffix ;;
9875 +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
9876 +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9877 +    program_suffix=$ac_optarg ;;
9878 +
9879 +  -program-transform-name | --program-transform-name \
9880 +  | --program-transform-nam | --program-transform-na \
9881 +  | --program-transform-n | --program-transform- \
9882 +  | --program-transform | --program-transfor \
9883 +  | --program-transfo | --program-transf \
9884 +  | --program-trans | --program-tran \
9885 +  | --progr-tra | --program-tr | --program-t)
9886 +    ac_prev=program_transform_name ;;
9887 +  -program-transform-name=* | --program-transform-name=* \
9888 +  | --program-transform-nam=* | --program-transform-na=* \
9889 +  | --program-transform-n=* | --program-transform-=* \
9890 +  | --program-transform=* | --program-transfor=* \
9891 +  | --program-transfo=* | --program-transf=* \
9892 +  | --program-trans=* | --program-tran=* \
9893 +  | --progr-tra=* | --program-tr=* | --program-t=*)
9894 +    program_transform_name=$ac_optarg ;;
9895 +
9896 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9897 +  | -silent | --silent | --silen | --sile | --sil)
9898 +    silent=yes ;;
9899 +
9900 +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
9901 +    ac_prev=sbindir ;;
9902 +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
9903 +  | --sbi=* | --sb=*)
9904 +    sbindir=$ac_optarg ;;
9905 +
9906 +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
9907 +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
9908 +  | --sharedst | --shareds | --shared | --share | --shar \
9909 +  | --sha | --sh)
9910 +    ac_prev=sharedstatedir ;;
9911 +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
9912 +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
9913 +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
9914 +  | --sha=* | --sh=*)
9915 +    sharedstatedir=$ac_optarg ;;
9916 +
9917 +  -site | --site | --sit)
9918 +    ac_prev=site ;;
9919 +  -site=* | --site=* | --sit=*)
9920 +    site=$ac_optarg ;;
9921 +
9922 +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9923 +    ac_prev=srcdir ;;
9924 +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9925 +    srcdir=$ac_optarg ;;
9926 +
9927 +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
9928 +  | --syscon | --sysco | --sysc | --sys | --sy)
9929 +    ac_prev=sysconfdir ;;
9930 +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
9931 +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
9932 +    sysconfdir=$ac_optarg ;;
9933 +
9934 +  -target | --target | --targe | --targ | --tar | --ta | --t)
9935 +    ac_prev=target_alias ;;
9936 +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
9937 +    target_alias=$ac_optarg ;;
9938 +
9939 +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
9940 +    verbose=yes ;;
9941 +
9942 +  -version | --version | --versio | --versi | --vers | -V)
9943 +    ac_init_version=: ;;
9944 +
9945 +  -with-* | --with-*)
9946 +    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
9947 +    # Reject names that are not valid shell variable names.
9948 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9949 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
9950 +   { (exit 1); exit 1; }; }
9951 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
9952 +    case $ac_option in
9953 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
9954 +      *) ac_optarg=yes ;;
9955 +    esac
9956 +    eval "with_$ac_package='$ac_optarg'" ;;
9957 +
9958 +  -without-* | --without-*)
9959 +    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
9960 +    # Reject names that are not valid shell variable names.
9961 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9962 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
9963 +   { (exit 1); exit 1; }; }
9964 +    ac_package=`echo $ac_package | sed 's/-/_/g'`
9965 +    eval "with_$ac_package=no" ;;
9966 +
9967 +  --x)
9968 +    # Obsolete; use --with-x.
9969 +    with_x=yes ;;
9970 +
9971 +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
9972 +  | --x-incl | --x-inc | --x-in | --x-i)
9973 +    ac_prev=x_includes ;;
9974 +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
9975 +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
9976 +    x_includes=$ac_optarg ;;
9977 +
9978 +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
9979 +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
9980 +    ac_prev=x_libraries ;;
9981 +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
9982 +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
9983 +    x_libraries=$ac_optarg ;;
9984 +
9985 +  -*) { echo "$as_me: error: unrecognized option: $ac_option
9986 +Try \`$0 --help' for more information." >&2
9987 +   { (exit 1); exit 1; }; }
9988 +    ;;
9989 +
9990 +  *=*)
9991 +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
9992 +    # Reject names that are not valid shell variable names.
9993 +    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
9994 +      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
9995 +   { (exit 1); exit 1; }; }
9996 +    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
9997 +    eval "$ac_envvar='$ac_optarg'"
9998 +    export $ac_envvar ;;
9999 +
10000 +  *)
10001 +    # FIXME: should be removed in autoconf 3.0.
10002 +    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
10003 +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
10004 +      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
10005 +    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10006 +    ;;
10007 +
10008 +  esac
10009 +done
10010 +
10011 +if test -n "$ac_prev"; then
10012 +  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
10013 +  { echo "$as_me: error: missing argument to $ac_option" >&2
10014 +   { (exit 1); exit 1; }; }
10015 +fi
10016 +
10017 +# Be sure to have absolute paths.
10018 +for ac_var in exec_prefix prefix
10019 +do
10020 +  eval ac_val=$`echo $ac_var`
10021 +  case $ac_val in
10022 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
10023 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10024 +   { (exit 1); exit 1; }; };;
10025 +  esac
10026 +done
10027 +
10028 +# Be sure to have absolute paths.
10029 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
10030 +             localstatedir libdir includedir oldincludedir infodir mandir
10031 +do
10032 +  eval ac_val=$`echo $ac_var`
10033 +  case $ac_val in
10034 +    [\\/$]* | ?:[\\/]* ) ;;
10035 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10036 +   { (exit 1); exit 1; }; };;
10037 +  esac
10038 +done
10039 +
10040 +# There might be people who depend on the old broken behavior: `$host'
10041 +# used to hold the argument of --host etc.
10042 +# FIXME: To remove some day.
10043 +build=$build_alias
10044 +host=$host_alias
10045 +target=$target_alias
10046 +
10047 +# FIXME: To remove some day.
10048 +if test "x$host_alias" != x; then
10049 +  if test "x$build_alias" = x; then
10050 +    cross_compiling=maybe
10051 +    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
10052 +    If a cross compiler is detected then cross compile mode will be used." >&2
10053 +  elif test "x$build_alias" != "x$host_alias"; then
10054 +    cross_compiling=yes
10055 +  fi
10056 +fi
10057 +
10058 +ac_tool_prefix=
10059 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
10060 +
10061 +test "$silent" = yes && exec 6>/dev/null
10062 +
10063 +
10064 +# Find the source files, if location was not specified.
10065 +if test -z "$srcdir"; then
10066 +  ac_srcdir_defaulted=yes
10067 +  # Try the directory containing this script, then its parent.
10068 +  ac_confdir=`(dirname "$0") 2>/dev/null ||
10069 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10070 +        X"$0" : 'X\(//\)[^/]' \| \
10071 +        X"$0" : 'X\(//\)$' \| \
10072 +        X"$0" : 'X\(/\)' \| \
10073 +        .     : '\(.\)' 2>/dev/null ||
10074 +echo X"$0" |
10075 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10076 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10077 +         /^X\(\/\/\)$/{ s//\1/; q; }
10078 +         /^X\(\/\).*/{ s//\1/; q; }
10079 +         s/.*/./; q'`
10080 +  srcdir=$ac_confdir
10081 +  if test ! -r $srcdir/$ac_unique_file; then
10082 +    srcdir=..
10083 +  fi
10084 +else
10085 +  ac_srcdir_defaulted=no
10086 +fi
10087 +if test ! -r $srcdir/$ac_unique_file; then
10088 +  if test "$ac_srcdir_defaulted" = yes; then
10089 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
10090 +   { (exit 1); exit 1; }; }
10091 +  else
10092 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
10093 +   { (exit 1); exit 1; }; }
10094 +  fi
10095 +fi
10096 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
10097 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
10098 +   { (exit 1); exit 1; }; }
10099 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
10100 +ac_env_build_alias_set=${build_alias+set}
10101 +ac_env_build_alias_value=$build_alias
10102 +ac_cv_env_build_alias_set=${build_alias+set}
10103 +ac_cv_env_build_alias_value=$build_alias
10104 +ac_env_host_alias_set=${host_alias+set}
10105 +ac_env_host_alias_value=$host_alias
10106 +ac_cv_env_host_alias_set=${host_alias+set}
10107 +ac_cv_env_host_alias_value=$host_alias
10108 +ac_env_target_alias_set=${target_alias+set}
10109 +ac_env_target_alias_value=$target_alias
10110 +ac_cv_env_target_alias_set=${target_alias+set}
10111 +ac_cv_env_target_alias_value=$target_alias
10112 +ac_env_CC_set=${CC+set}
10113 +ac_env_CC_value=$CC
10114 +ac_cv_env_CC_set=${CC+set}
10115 +ac_cv_env_CC_value=$CC
10116 +ac_env_CFLAGS_set=${CFLAGS+set}
10117 +ac_env_CFLAGS_value=$CFLAGS
10118 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
10119 +ac_cv_env_CFLAGS_value=$CFLAGS
10120 +ac_env_LDFLAGS_set=${LDFLAGS+set}
10121 +ac_env_LDFLAGS_value=$LDFLAGS
10122 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
10123 +ac_cv_env_LDFLAGS_value=$LDFLAGS
10124 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
10125 +ac_env_CPPFLAGS_value=$CPPFLAGS
10126 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
10127 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
10128 +ac_env_CPP_set=${CPP+set}
10129 +ac_env_CPP_value=$CPP
10130 +ac_cv_env_CPP_set=${CPP+set}
10131 +ac_cv_env_CPP_value=$CPP
10132 +
10133 +#
10134 +# Report the --help message.
10135 +#
10136 +if test "$ac_init_help" = "long"; then
10137 +  # Omit some internal or obsolete options to make the list less imposing.
10138 +  # This message is too long to be a string in the A/UX 3.1 sh.
10139 +  cat <<_ACEOF
10140 +\`configure' configures this package to adapt to many kinds of systems.
10141 +
10142 +Usage: $0 [OPTION]... [VAR=VALUE]...
10143 +
10144 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
10145 +VAR=VALUE.  See below for descriptions of some of the useful variables.
10146 +
10147 +Defaults for the options are specified in brackets.
10148 +
10149 +Configuration:
10150 +  -h, --help              display this help and exit
10151 +      --help=short        display options specific to this package
10152 +      --help=recursive    display the short help of all the included packages
10153 +  -V, --version           display version information and exit
10154 +  -q, --quiet, --silent   do not print \`checking...' messages
10155 +      --cache-file=FILE   cache test results in FILE [disabled]
10156 +  -C, --config-cache      alias for \`--cache-file=config.cache'
10157 +  -n, --no-create         do not create output files
10158 +      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
10159 +
10160 +_ACEOF
10161 +
10162 +  cat <<_ACEOF
10163 +Installation directories:
10164 +  --prefix=PREFIX         install architecture-independent files in PREFIX
10165 +                         [$ac_default_prefix]
10166 +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
10167 +                         [PREFIX]
10168 +
10169 +By default, \`make install' will install all the files in
10170 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
10171 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
10172 +for instance \`--prefix=\$HOME'.
10173 +
10174 +For better control, use the options below.
10175 +
10176 +Fine tuning of the installation directories:
10177 +  --bindir=DIR           user executables [EPREFIX/bin]
10178 +  --sbindir=DIR          system admin executables [EPREFIX/sbin]
10179 +  --libexecdir=DIR       program executables [EPREFIX/libexec]
10180 +  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
10181 +  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
10182 +  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
10183 +  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
10184 +  --libdir=DIR           object code libraries [EPREFIX/lib]
10185 +  --includedir=DIR       C header files [PREFIX/include]
10186 +  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
10187 +  --infodir=DIR          info documentation [PREFIX/info]
10188 +  --mandir=DIR           man documentation [PREFIX/man]
10189 +_ACEOF
10190 +
10191 +  cat <<\_ACEOF
10192 +
10193 +Program names:
10194 +  --program-prefix=PREFIX            prepend PREFIX to installed program names
10195 +  --program-suffix=SUFFIX            append SUFFIX to installed program names
10196 +  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
10197 +
10198 +System types:
10199 +  --build=BUILD     configure for building on BUILD [guessed]
10200 +  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
10201 +  --target=TARGET   configure for building compilers for TARGET [HOST]
10202 +_ACEOF
10203 +fi
10204 +
10205 +if test -n "$ac_init_help"; then
10206 +
10207 +  cat <<\_ACEOF
10208 +
10209 +Optional Features:
10210 +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
10211 +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
10212 +  --enable-shared=PKGS  build shared libraries default=yes
10213 +  --enable-static=PKGS  build static libraries default=yes
10214 +  --enable-fast-install=PKGS  optimize for fast installation default=yes
10215 +  --disable-libtool-lock  avoid locking (might break parallel builds)
10216 +  --enable-allow_uni30    Allow UNI 3.0 backwards-compatible extensions (if using UNI 3.1)
10217 +  --enable-q2963_1        Enable peak cell rate modification as specified in Q.2963.1 (if using UNI 4.0)
10218 +  --enable-cisco          Enable work around for point-to-multipoint signaling bug in Cisco LS100 or LS7010 switches
10219 +  --enable-thomflex       Some versions of the Thomson Thomflex 5000 won't do any signaling before they get a RESTART.  Enable sending of a RESTART whenever SAAL comes up.
10220 +  --enable-mpoa_1_1       Enable proposed MPOA 1.1 features
10221 +  --enable-mpr            Enable memory debugging (if MPR is installed)
10222 +
10223 +Optional Packages:
10224 +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
10225 +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
10226 +  --with-gnu-ld           assume the C compiler uses GNU ld default=no
10227 +  --with-pic              try to use only PIC/non-PIC objects default=use both
10228 +  --with-uni=VERSION      UNI version to use (3.0,3.1,4.0) default=dynamic
10229 +
10230 +Some influential environment variables:
10231 +  CC          C compiler command
10232 +  CFLAGS      C compiler flags
10233 +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
10234 +              nonstandard directory <lib dir>
10235 +  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
10236 +              headers in a nonstandard directory <include dir>
10237 +  CPP         C preprocessor
10238 +
10239 +Use these variables to override the choices made by `configure' or to help
10240 +it to find libraries and programs with nonstandard names/locations.
10241 +
10242 +_ACEOF
10243 +fi
10244 +
10245 +if test "$ac_init_help" = "recursive"; then
10246 +  # If there are subdirs, report their specific --help.
10247 +  ac_popdir=`pwd`
10248 +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
10249 +    test -d $ac_dir || continue
10250 +    ac_builddir=.
10251 +
10252 +if test "$ac_dir" != .; then
10253 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10254 +  # A "../" for each directory in $ac_dir_suffix.
10255 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10256 +else
10257 +  ac_dir_suffix= ac_top_builddir=
10258 +fi
10259 +
10260 +case $srcdir in
10261 +  .)  # No --srcdir option.  We are building in place.
10262 +    ac_srcdir=.
10263 +    if test -z "$ac_top_builddir"; then
10264 +       ac_top_srcdir=.
10265 +    else
10266 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10267 +    fi ;;
10268 +  [\\/]* | ?:[\\/]* )  # Absolute path.
10269 +    ac_srcdir=$srcdir$ac_dir_suffix;
10270 +    ac_top_srcdir=$srcdir ;;
10271 +  *) # Relative path.
10272 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10273 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10274 +esac
10275 +
10276 +# Do not use `cd foo && pwd` to compute absolute paths, because
10277 +# the directories may not exist.
10278 +case `pwd` in
10279 +.) ac_abs_builddir="$ac_dir";;
10280 +*)
10281 +  case "$ac_dir" in
10282 +  .) ac_abs_builddir=`pwd`;;
10283 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10284 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10285 +  esac;;
10286 +esac
10287 +case $ac_abs_builddir in
10288 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
10289 +*)
10290 +  case ${ac_top_builddir}. in
10291 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
10292 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10293 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10294 +  esac;;
10295 +esac
10296 +case $ac_abs_builddir in
10297 +.) ac_abs_srcdir=$ac_srcdir;;
10298 +*)
10299 +  case $ac_srcdir in
10300 +  .) ac_abs_srcdir=$ac_abs_builddir;;
10301 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10302 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10303 +  esac;;
10304 +esac
10305 +case $ac_abs_builddir in
10306 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
10307 +*)
10308 +  case $ac_top_srcdir in
10309 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10310 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10311 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10312 +  esac;;
10313 +esac
10314 +
10315 +    cd $ac_dir
10316 +    # Check for guested configure; otherwise get Cygnus style configure.
10317 +    if test -f $ac_srcdir/configure.gnu; then
10318 +      echo
10319 +      $SHELL $ac_srcdir/configure.gnu  --help=recursive
10320 +    elif test -f $ac_srcdir/configure; then
10321 +      echo
10322 +      $SHELL $ac_srcdir/configure  --help=recursive
10323 +    elif test -f $ac_srcdir/configure.ac ||
10324 +          test -f $ac_srcdir/configure.in; then
10325 +      echo
10326 +      $ac_configure --help
10327 +    else
10328 +      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
10329 +    fi
10330 +    cd "$ac_popdir"
10331 +  done
10332 +fi
10333 +
10334 +test -n "$ac_init_help" && exit 0
10335 +if $ac_init_version; then
10336 +  cat <<\_ACEOF
10337 +
10338 +Copyright (C) 2003 Free Software Foundation, Inc.
10339 +This configure script is free software; the Free Software Foundation
10340 +gives unlimited permission to copy, distribute and modify it.
10341 +_ACEOF
10342 +  exit 0
10343 +fi
10344 +exec 5>config.log
10345 +cat >&5 <<_ACEOF
10346 +This file contains any messages produced by compilers while
10347 +running configure, to aid debugging if configure makes a mistake.
10348 +
10349 +It was created by $as_me, which was
10350 +generated by GNU Autoconf 2.59.  Invocation command line was
10351 +
10352 +  $ $0 $@
10353 +
10354 +_ACEOF
10355 +{
10356 +cat <<_ASUNAME
10357 +@%:@@%:@ --------- @%:@@%:@
10358 +@%:@@%:@ Platform. @%:@@%:@
10359 +@%:@@%:@ --------- @%:@@%:@
10360 +
10361 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
10362 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
10363 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
10364 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
10365 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
10366 +
10367 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
10368 +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
10369 +
10370 +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
10371 +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
10372 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
10373 +hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
10374 +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
10375 +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
10376 +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
10377 +
10378 +_ASUNAME
10379 +
10380 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 +for as_dir in $PATH
10382 +do
10383 +  IFS=$as_save_IFS
10384 +  test -z "$as_dir" && as_dir=.
10385 +  echo "PATH: $as_dir"
10386 +done
10387 +
10388 +} >&5
10389 +
10390 +cat >&5 <<_ACEOF
10391 +
10392 +
10393 +@%:@@%:@ ----------- @%:@@%:@
10394 +@%:@@%:@ Core tests. @%:@@%:@
10395 +@%:@@%:@ ----------- @%:@@%:@
10396 +
10397 +_ACEOF
10398 +
10399 +
10400 +# Keep a trace of the command line.
10401 +# Strip out --no-create and --no-recursion so they do not pile up.
10402 +# Strip out --silent because we don't want to record it for future runs.
10403 +# Also quote any args containing shell meta-characters.
10404 +# Make two passes to allow for proper duplicate-argument suppression.
10405 +ac_configure_args=
10406 +ac_configure_args0=
10407 +ac_configure_args1=
10408 +ac_sep=
10409 +ac_must_keep_next=false
10410 +for ac_pass in 1 2
10411 +do
10412 +  for ac_arg
10413 +  do
10414 +    case $ac_arg in
10415 +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
10416 +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10417 +    | -silent | --silent | --silen | --sile | --sil)
10418 +      continue ;;
10419 +    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
10420 +      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10421 +    esac
10422 +    case $ac_pass in
10423 +    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
10424 +    2)
10425 +      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
10426 +      if test $ac_must_keep_next = true; then
10427 +       ac_must_keep_next=false # Got value, back to normal.
10428 +      else
10429 +       case $ac_arg in
10430 +         *=* | --config-cache | -C | -disable-* | --disable-* \
10431 +         | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10432 +         | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10433 +         | -with-* | --with-* | -without-* | --without-* | --x)
10434 +           case "$ac_configure_args0 " in
10435 +             "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
10436 +           esac
10437 +           ;;
10438 +         -* ) ac_must_keep_next=true ;;
10439 +       esac
10440 +      fi
10441 +      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
10442 +      # Get rid of the leading space.
10443 +      ac_sep=" "
10444 +      ;;
10445 +    esac
10446 +  done
10447 +done
10448 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
10449 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
10450 +
10451 +# When interrupted or exit'd, cleanup temporary files, and complete
10452 +# config.log.  We remove comments because anyway the quotes in there
10453 +# would cause problems or look ugly.
10454 +# WARNING: Be sure not to use single quotes in there, as some shells,
10455 +# such as our DU 5.0 friend, will then `close' the trap.
10456 +trap 'exit_status=$?
10457 +  # Save into config.log some information that might help in debugging.
10458 +  {
10459 +    echo
10460 +
10461 +    cat <<\_ASBOX
10462 +@%:@@%:@ ---------------- @%:@@%:@
10463 +@%:@@%:@ Cache variables. @%:@@%:@
10464 +@%:@@%:@ ---------------- @%:@@%:@
10465 +_ASBOX
10466 +    echo
10467 +    # The following way of writing the cache mishandles newlines in values,
10468 +{
10469 +  (set) 2>&1 |
10470 +    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
10471 +    *ac_space=\ *)
10472 +      sed -n \
10473 +       "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
10474 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
10475 +      ;;
10476 +    *)
10477 +      sed -n \
10478 +       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10479 +      ;;
10480 +    esac;
10481 +}
10482 +    echo
10483 +
10484 +    cat <<\_ASBOX
10485 +@%:@@%:@ ----------------- @%:@@%:@
10486 +@%:@@%:@ Output variables. @%:@@%:@
10487 +@%:@@%:@ ----------------- @%:@@%:@
10488 +_ASBOX
10489 +    echo
10490 +    for ac_var in $ac_subst_vars
10491 +    do
10492 +      eval ac_val=$`echo $ac_var`
10493 +      echo "$ac_var='"'"'$ac_val'"'"'"
10494 +    done | sort
10495 +    echo
10496 +
10497 +    if test -n "$ac_subst_files"; then
10498 +      cat <<\_ASBOX
10499 +@%:@@%:@ ------------- @%:@@%:@
10500 +@%:@@%:@ Output files. @%:@@%:@
10501 +@%:@@%:@ ------------- @%:@@%:@
10502 +_ASBOX
10503 +      echo
10504 +      for ac_var in $ac_subst_files
10505 +      do
10506 +       eval ac_val=$`echo $ac_var`
10507 +       echo "$ac_var='"'"'$ac_val'"'"'"
10508 +      done | sort
10509 +      echo
10510 +    fi
10511 +
10512 +    if test -s confdefs.h; then
10513 +      cat <<\_ASBOX
10514 +@%:@@%:@ ----------- @%:@@%:@
10515 +@%:@@%:@ confdefs.h. @%:@@%:@
10516 +@%:@@%:@ ----------- @%:@@%:@
10517 +_ASBOX
10518 +      echo
10519 +      sed "/^$/d" confdefs.h | sort
10520 +      echo
10521 +    fi
10522 +    test "$ac_signal" != 0 &&
10523 +      echo "$as_me: caught signal $ac_signal"
10524 +    echo "$as_me: exit $exit_status"
10525 +  } >&5
10526 +  rm -f core *.core &&
10527 +  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
10528 +    exit $exit_status
10529 +     ' 0
10530 +for ac_signal in 1 2 13 15; do
10531 +  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
10532 +done
10533 +ac_signal=0
10534 +
10535 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
10536 +rm -rf conftest* confdefs.h
10537 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
10538 +echo >confdefs.h
10539 +
10540 +# Predefined preprocessor variables.
10541 +
10542 +cat >>confdefs.h <<_ACEOF
10543 +@%:@define PACKAGE_NAME "$PACKAGE_NAME"
10544 +_ACEOF
10545 +
10546 +
10547 +cat >>confdefs.h <<_ACEOF
10548 +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
10549 +_ACEOF
10550 +
10551 +
10552 +cat >>confdefs.h <<_ACEOF
10553 +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
10554 +_ACEOF
10555 +
10556 +
10557 +cat >>confdefs.h <<_ACEOF
10558 +@%:@define PACKAGE_STRING "$PACKAGE_STRING"
10559 +_ACEOF
10560 +
10561 +
10562 +cat >>confdefs.h <<_ACEOF
10563 +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
10564 +_ACEOF
10565 +
10566 +
10567 +# Let the site file select an alternate cache file if it wants to.
10568 +# Prefer explicitly selected file to automatically selected ones.
10569 +if test -z "$CONFIG_SITE"; then
10570 +  if test "x$prefix" != xNONE; then
10571 +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
10572 +  else
10573 +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
10574 +  fi
10575 +fi
10576 +for ac_site_file in $CONFIG_SITE; do
10577 +  if test -r "$ac_site_file"; then
10578 +    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
10579 +echo "$as_me: loading site script $ac_site_file" >&6;}
10580 +    sed 's/^/| /' "$ac_site_file" >&5
10581 +    . "$ac_site_file"
10582 +  fi
10583 +done
10584 +
10585 +if test -r "$cache_file"; then
10586 +  # Some versions of bash will fail to source /dev/null (special
10587 +  # files actually), so we avoid doing that.
10588 +  if test -f "$cache_file"; then
10589 +    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
10590 +echo "$as_me: loading cache $cache_file" >&6;}
10591 +    case $cache_file in
10592 +      [\\/]* | ?:[\\/]* ) . $cache_file;;
10593 +      *)                      . ./$cache_file;;
10594 +    esac
10595 +  fi
10596 +else
10597 +  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
10598 +echo "$as_me: creating cache $cache_file" >&6;}
10599 +  >$cache_file
10600 +fi
10601 +
10602 +# Check that the precious variables saved in the cache have kept the same
10603 +# value.
10604 +ac_cache_corrupted=false
10605 +for ac_var in `(set) 2>&1 |
10606 +              sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
10607 +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
10608 +  eval ac_new_set=\$ac_env_${ac_var}_set
10609 +  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
10610 +  eval ac_new_val="\$ac_env_${ac_var}_value"
10611 +  case $ac_old_set,$ac_new_set in
10612 +    set,)
10613 +      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
10614 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
10615 +      ac_cache_corrupted=: ;;
10616 +    ,set)
10617 +      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
10618 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
10619 +      ac_cache_corrupted=: ;;
10620 +    ,);;
10621 +    *)
10622 +      if test "x$ac_old_val" != "x$ac_new_val"; then
10623 +       { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
10624 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
10625 +       { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
10626 +echo "$as_me:   former value:  $ac_old_val" >&2;}
10627 +       { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
10628 +echo "$as_me:   current value: $ac_new_val" >&2;}
10629 +       ac_cache_corrupted=:
10630 +      fi;;
10631 +  esac
10632 +  # Pass precious variables to config.status.
10633 +  if test "$ac_new_set" = set; then
10634 +    case $ac_new_val in
10635 +    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
10636 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
10637 +    *) ac_arg=$ac_var=$ac_new_val ;;
10638 +    esac
10639 +    case " $ac_configure_args " in
10640 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
10641 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
10642 +    esac
10643 +  fi
10644 +done
10645 +if $ac_cache_corrupted; then
10646 +  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
10647 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
10648 +  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
10649 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
10650 +   { (exit 1); exit 1; }; }
10651 +fi
10652 +
10653 +ac_ext=c
10654 +ac_cpp='$CPP $CPPFLAGS'
10655 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10656 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10657 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10658 +
10659 +
10660 +
10661 +
10662 +
10663 +
10664 +
10665 +
10666 +
10667 +
10668 +
10669 +
10670 +
10671 +
10672 +
10673 +
10674 +
10675 +
10676 +
10677 +
10678 +          ac_config_headers="$ac_config_headers config.h"
10679 +
10680 +          ac_config_commands="$ac_config_commands default-1"
10681 +
10682 +
10683 +ac_aux_dir=
10684 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
10685 +  if test -f $ac_dir/install-sh; then
10686 +    ac_aux_dir=$ac_dir
10687 +    ac_install_sh="$ac_aux_dir/install-sh -c"
10688 +    break
10689 +  elif test -f $ac_dir/install.sh; then
10690 +    ac_aux_dir=$ac_dir
10691 +    ac_install_sh="$ac_aux_dir/install.sh -c"
10692 +    break
10693 +  elif test -f $ac_dir/shtool; then
10694 +    ac_aux_dir=$ac_dir
10695 +    ac_install_sh="$ac_aux_dir/shtool install -c"
10696 +    break
10697 +  fi
10698 +done
10699 +if test -z "$ac_aux_dir"; then
10700 +  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
10701 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
10702 +   { (exit 1); exit 1; }; }
10703 +fi
10704 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
10705 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
10706 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
10707 +
10708 +# Make sure we can run config.sub.
10709 +$ac_config_sub sun4 >/dev/null 2>&1 ||
10710 +  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
10711 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
10712 +   { (exit 1); exit 1; }; }
10713 +
10714 +echo "$as_me:$LINENO: checking build system type" >&5
10715 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
10716 +if test "${ac_cv_build+set}" = set; then
10717 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10718 +else
10719 +  ac_cv_build_alias=$build_alias
10720 +test -z "$ac_cv_build_alias" &&
10721 +  ac_cv_build_alias=`$ac_config_guess`
10722 +test -z "$ac_cv_build_alias" &&
10723 +  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
10724 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
10725 +   { (exit 1); exit 1; }; }
10726 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
10727 +  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
10728 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
10729 +   { (exit 1); exit 1; }; }
10730 +
10731 +fi
10732 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10733 +echo "${ECHO_T}$ac_cv_build" >&6
10734 +build=$ac_cv_build
10735 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10736 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10737 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10738 +
10739 +
10740 +echo "$as_me:$LINENO: checking host system type" >&5
10741 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
10742 +if test "${ac_cv_host+set}" = set; then
10743 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10744 +else
10745 +  ac_cv_host_alias=$host_alias
10746 +test -z "$ac_cv_host_alias" &&
10747 +  ac_cv_host_alias=$ac_cv_build_alias
10748 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
10749 +  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
10750 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
10751 +   { (exit 1); exit 1; }; }
10752 +
10753 +fi
10754 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10755 +echo "${ECHO_T}$ac_cv_host" >&6
10756 +host=$ac_cv_host
10757 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10758 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10759 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10760 +
10761 +
10762 +echo "$as_me:$LINENO: checking target system type" >&5
10763 +echo $ECHO_N "checking target system type... $ECHO_C" >&6
10764 +if test "${ac_cv_target+set}" = set; then
10765 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10766 +else
10767 +  ac_cv_target_alias=$target_alias
10768 +test "x$ac_cv_target_alias" = "x" &&
10769 +  ac_cv_target_alias=$ac_cv_host_alias
10770 +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
10771 +  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
10772 +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
10773 +   { (exit 1); exit 1; }; }
10774 +
10775 +fi
10776 +echo "$as_me:$LINENO: result: $ac_cv_target" >&5
10777 +echo "${ECHO_T}$ac_cv_target" >&6
10778 +target=$ac_cv_target
10779 +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10780 +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10781 +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10782 +
10783 +
10784 +# The aliases save the names the user supplied, while $host etc.
10785 +# will get canonicalized.
10786 +test -n "$target_alias" &&
10787 +  test "$program_prefix$program_suffix$program_transform_name" = \
10788 +    NONENONEs,x,x, &&
10789 +  program_prefix=${target_alias}-
10790 +
10791 +am__api_version="1.4"
10792 +# Find a good install program.  We prefer a C program (faster),
10793 +# so one script is as good as another.  But avoid the broken or
10794 +# incompatible versions:
10795 +# SysV /etc/install, /usr/sbin/install
10796 +# SunOS /usr/etc/install
10797 +# IRIX /sbin/install
10798 +# AIX /bin/install
10799 +# AmigaOS /C/install, which installs bootblocks on floppy discs
10800 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10801 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10802 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10803 +# OS/2's system install, which has a completely different semantic
10804 +# ./install, which can be erroneously created by make from ./install.sh.
10805 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10806 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10807 +if test -z "$INSTALL"; then
10808 +if test "${ac_cv_path_install+set}" = set; then
10809 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10810 +else
10811 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 +for as_dir in $PATH
10813 +do
10814 +  IFS=$as_save_IFS
10815 +  test -z "$as_dir" && as_dir=.
10816 +  # Account for people who put trailing slashes in PATH elements.
10817 +case $as_dir/ in
10818 +  ./ | .// | /cC/* | \
10819 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10820 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10821 +  /usr/ucb/* ) ;;
10822 +  *)
10823 +    # OSF1 and SCO ODT 3.0 have their own names for install.
10824 +    # Don't use installbsd from OSF since it installs stuff as root
10825 +    # by default.
10826 +    for ac_prog in ginstall scoinst install; do
10827 +      for ac_exec_ext in '' $ac_executable_extensions; do
10828 +       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10829 +         if test $ac_prog = install &&
10830 +           grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10831 +           # AIX install.  It has an incompatible calling convention.
10832 +           :
10833 +         elif test $ac_prog = install &&
10834 +           grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10835 +           # program-specific install script used by HP pwplus--don't use.
10836 +           :
10837 +         else
10838 +           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10839 +           break 3
10840 +         fi
10841 +       fi
10842 +      done
10843 +    done
10844 +    ;;
10845 +esac
10846 +done
10847 +
10848 +
10849 +fi
10850 +  if test "${ac_cv_path_install+set}" = set; then
10851 +    INSTALL=$ac_cv_path_install
10852 +  else
10853 +    # As a last resort, use the slow shell script.  We don't cache a
10854 +    # path for INSTALL within a source directory, because that will
10855 +    # break other packages using the cache if that directory is
10856 +    # removed, or if the path is relative.
10857 +    INSTALL=$ac_install_sh
10858 +  fi
10859 +fi
10860 +echo "$as_me:$LINENO: result: $INSTALL" >&5
10861 +echo "${ECHO_T}$INSTALL" >&6
10862 +
10863 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10864 +# It thinks the first close brace ends the variable substitution.
10865 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10866 +
10867 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10868 +
10869 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10870 +
10871 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10872 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
10873 +# Just in case
10874 +sleep 1
10875 +echo timestamp > conftestfile
10876 +# Do `set' in a subshell so we don't clobber the current shell's
10877 +# arguments.  Must try -L first in case configure is actually a
10878 +# symlink; some systems play weird games with the mod time of symlinks
10879 +# (eg FreeBSD returns the mod time of the symlink's containing
10880 +# directory).
10881 +if (
10882 +   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
10883 +   if test "$*" = "X"; then
10884 +      # -L didn't work.
10885 +      set X `ls -t $srcdir/configure conftestfile`
10886 +   fi
10887 +   if test "$*" != "X $srcdir/configure conftestfile" \
10888 +      && test "$*" != "X conftestfile $srcdir/configure"; then
10889 +
10890 +      # If neither matched, then we have a broken ls.  This can happen
10891 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
10892 +      # broken ls alias from the environment.  This has actually
10893 +      # happened.  Such a system could not be considered "sane".
10894 +      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10895 +alias in your environment" >&5
10896 +echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10897 +alias in your environment" >&2;}
10898 +   { (exit 1); exit 1; }; }
10899 +   fi
10900 +
10901 +   test "$2" = conftestfile
10902 +   )
10903 +then
10904 +   # Ok.
10905 +   :
10906 +else
10907 +   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10908 +Check your system clock" >&5
10909 +echo "$as_me: error: newly created file is older than distributed files!
10910 +Check your system clock" >&2;}
10911 +   { (exit 1); exit 1; }; }
10912 +fi
10913 +rm -f conftest*
10914 +echo "$as_me:$LINENO: result: yes" >&5
10915 +echo "${ECHO_T}yes" >&6
10916 +test "$program_prefix" != NONE &&
10917 +  program_transform_name="s,^,$program_prefix,;$program_transform_name"
10918 +# Use a double $ so make ignores it.
10919 +test "$program_suffix" != NONE &&
10920 +  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
10921 +# Double any \ or $.  echo might interpret backslashes.
10922 +# By default was `s,x,x', remove it if useless.
10923 +cat <<\_ACEOF >conftest.sed
10924 +s/[\\$]/&&/g;s/;s,x,x,$//
10925 +_ACEOF
10926 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
10927 +rm conftest.sed
10928 +
10929 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10930 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
10931 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
10932 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
10933 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10934 +else
10935 +  cat >conftest.make <<\_ACEOF
10936 +all:
10937 +       @echo 'ac_maketemp="$(MAKE)"'
10938 +_ACEOF
10939 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10940 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
10941 +if test -n "$ac_maketemp"; then
10942 +  eval ac_cv_prog_make_${ac_make}_set=yes
10943 +else
10944 +  eval ac_cv_prog_make_${ac_make}_set=no
10945 +fi
10946 +rm -f conftest.make
10947 +fi
10948 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
10949 +  echo "$as_me:$LINENO: result: yes" >&5
10950 +echo "${ECHO_T}yes" >&6
10951 +  SET_MAKE=
10952 +else
10953 +  echo "$as_me:$LINENO: result: no" >&5
10954 +echo "${ECHO_T}no" >&6
10955 +  SET_MAKE="MAKE=${MAKE-make}"
10956 +fi
10957 +
10958 +
10959 +PACKAGE=linux-atm
10960 +
10961 +VERSION=2.4.1
10962 +
10963 +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
10964 +  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
10965 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
10966 +   { (exit 1); exit 1; }; }
10967 +fi
10968 +
10969 +cat >>confdefs.h <<_ACEOF
10970 +@%:@define PACKAGE "$PACKAGE"
10971 +_ACEOF
10972 +
10973 +
10974 +cat >>confdefs.h <<_ACEOF
10975 +@%:@define VERSION "$VERSION"
10976 +_ACEOF
10977 +
10978 +
10979 +
10980 +missing_dir=`cd $ac_aux_dir && pwd`
10981 +echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
10982 +echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
10983 +# Run test in a subshell; some versions of sh will print an error if
10984 +# an executable is not found, even if stderr is redirected.
10985 +# Redirect stdin to placate older versions of autoconf.  Sigh.
10986 +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
10987 +   ACLOCAL=aclocal-${am__api_version}
10988 +   echo "$as_me:$LINENO: result: found" >&5
10989 +echo "${ECHO_T}found" >&6
10990 +else
10991 +   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
10992 +   echo "$as_me:$LINENO: result: missing" >&5
10993 +echo "${ECHO_T}missing" >&6
10994 +fi
10995 +
10996 +echo "$as_me:$LINENO: checking for working autoconf" >&5
10997 +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
10998 +# Run test in a subshell; some versions of sh will print an error if
10999 +# an executable is not found, even if stderr is redirected.
11000 +# Redirect stdin to placate older versions of autoconf.  Sigh.
11001 +if (autoconf --version) < /dev/null > /dev/null 2>&1; then
11002 +   AUTOCONF=autoconf
11003 +   echo "$as_me:$LINENO: result: found" >&5
11004 +echo "${ECHO_T}found" >&6
11005 +else
11006 +   AUTOCONF="$missing_dir/missing autoconf"
11007 +   echo "$as_me:$LINENO: result: missing" >&5
11008 +echo "${ECHO_T}missing" >&6
11009 +fi
11010 +
11011 +echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
11012 +echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
11013 +# Run test in a subshell; some versions of sh will print an error if
11014 +# an executable is not found, even if stderr is redirected.
11015 +# Redirect stdin to placate older versions of autoconf.  Sigh.
11016 +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
11017 +   AUTOMAKE=automake-${am__api_version}
11018 +   echo "$as_me:$LINENO: result: found" >&5
11019 +echo "${ECHO_T}found" >&6
11020 +else
11021 +   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
11022 +   echo "$as_me:$LINENO: result: missing" >&5
11023 +echo "${ECHO_T}missing" >&6
11024 +fi
11025 +
11026 +echo "$as_me:$LINENO: checking for working autoheader" >&5
11027 +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
11028 +# Run test in a subshell; some versions of sh will print an error if
11029 +# an executable is not found, even if stderr is redirected.
11030 +# Redirect stdin to placate older versions of autoconf.  Sigh.
11031 +if (autoheader --version) < /dev/null > /dev/null 2>&1; then
11032 +   AUTOHEADER=autoheader
11033 +   echo "$as_me:$LINENO: result: found" >&5
11034 +echo "${ECHO_T}found" >&6
11035 +else
11036 +   AUTOHEADER="$missing_dir/missing autoheader"
11037 +   echo "$as_me:$LINENO: result: missing" >&5
11038 +echo "${ECHO_T}missing" >&6
11039 +fi
11040 +
11041 +echo "$as_me:$LINENO: checking for working makeinfo" >&5
11042 +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
11043 +# Run test in a subshell; some versions of sh will print an error if
11044 +# an executable is not found, even if stderr is redirected.
11045 +# Redirect stdin to placate older versions of autoconf.  Sigh.
11046 +if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
11047 +   MAKEINFO=makeinfo
11048 +   echo "$as_me:$LINENO: result: found" >&5
11049 +echo "${ECHO_T}found" >&6
11050 +else
11051 +   MAKEINFO="$missing_dir/missing makeinfo"
11052 +   echo "$as_me:$LINENO: result: missing" >&5
11053 +echo "${ECHO_T}missing" >&6
11054 +fi
11055 +
11056 +
11057 +
11058 +LIBVER_CURRENT="1"
11059 +LIBVER_REVISION="0"
11060 +LIBVER_AGE="0"
11061 +
11062 +
11063 +
11064 +
11065 +ac_ext=c
11066 +ac_cpp='$CPP $CPPFLAGS'
11067 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11068 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11069 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
11070 +if test -n "$ac_tool_prefix"; then
11071 +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11072 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
11073 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11074 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11075 +if test "${ac_cv_prog_CC+set}" = set; then
11076 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11077 +else
11078 +  if test -n "$CC"; then
11079 +  ac_cv_prog_CC="$CC" # Let the user override the test.
11080 +else
11081 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 +for as_dir in $PATH
11083 +do
11084 +  IFS=$as_save_IFS
11085 +  test -z "$as_dir" && as_dir=.
11086 +  for ac_exec_ext in '' $ac_executable_extensions; do
11087 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088 +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11089 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 +    break 2
11091 +  fi
11092 +done
11093 +done
11094 +
11095 +fi
11096 +fi
11097 +CC=$ac_cv_prog_CC
11098 +if test -n "$CC"; then
11099 +  echo "$as_me:$LINENO: result: $CC" >&5
11100 +echo "${ECHO_T}$CC" >&6
11101 +else
11102 +  echo "$as_me:$LINENO: result: no" >&5
11103 +echo "${ECHO_T}no" >&6
11104 +fi
11105 +
11106 +fi
11107 +if test -z "$ac_cv_prog_CC"; then
11108 +  ac_ct_CC=$CC
11109 +  # Extract the first word of "gcc", so it can be a program name with args.
11110 +set dummy gcc; ac_word=$2
11111 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11112 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11113 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11114 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11115 +else
11116 +  if test -n "$ac_ct_CC"; then
11117 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11118 +else
11119 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120 +for as_dir in $PATH
11121 +do
11122 +  IFS=$as_save_IFS
11123 +  test -z "$as_dir" && as_dir=.
11124 +  for ac_exec_ext in '' $ac_executable_extensions; do
11125 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11126 +    ac_cv_prog_ac_ct_CC="gcc"
11127 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 +    break 2
11129 +  fi
11130 +done
11131 +done
11132 +
11133 +fi
11134 +fi
11135 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
11136 +if test -n "$ac_ct_CC"; then
11137 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11138 +echo "${ECHO_T}$ac_ct_CC" >&6
11139 +else
11140 +  echo "$as_me:$LINENO: result: no" >&5
11141 +echo "${ECHO_T}no" >&6
11142 +fi
11143 +
11144 +  CC=$ac_ct_CC
11145 +else
11146 +  CC="$ac_cv_prog_CC"
11147 +fi
11148 +
11149 +if test -z "$CC"; then
11150 +  if test -n "$ac_tool_prefix"; then
11151 +  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11152 +set dummy ${ac_tool_prefix}cc; ac_word=$2
11153 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11154 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11155 +if test "${ac_cv_prog_CC+set}" = set; then
11156 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11157 +else
11158 +  if test -n "$CC"; then
11159 +  ac_cv_prog_CC="$CC" # Let the user override the test.
11160 +else
11161 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 +for as_dir in $PATH
11163 +do
11164 +  IFS=$as_save_IFS
11165 +  test -z "$as_dir" && as_dir=.
11166 +  for ac_exec_ext in '' $ac_executable_extensions; do
11167 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11168 +    ac_cv_prog_CC="${ac_tool_prefix}cc"
11169 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11170 +    break 2
11171 +  fi
11172 +done
11173 +done
11174 +
11175 +fi
11176 +fi
11177 +CC=$ac_cv_prog_CC
11178 +if test -n "$CC"; then
11179 +  echo "$as_me:$LINENO: result: $CC" >&5
11180 +echo "${ECHO_T}$CC" >&6
11181 +else
11182 +  echo "$as_me:$LINENO: result: no" >&5
11183 +echo "${ECHO_T}no" >&6
11184 +fi
11185 +
11186 +fi
11187 +if test -z "$ac_cv_prog_CC"; then
11188 +  ac_ct_CC=$CC
11189 +  # Extract the first word of "cc", so it can be a program name with args.
11190 +set dummy cc; ac_word=$2
11191 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11192 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11193 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11194 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11195 +else
11196 +  if test -n "$ac_ct_CC"; then
11197 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11198 +else
11199 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200 +for as_dir in $PATH
11201 +do
11202 +  IFS=$as_save_IFS
11203 +  test -z "$as_dir" && as_dir=.
11204 +  for ac_exec_ext in '' $ac_executable_extensions; do
11205 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11206 +    ac_cv_prog_ac_ct_CC="cc"
11207 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11208 +    break 2
11209 +  fi
11210 +done
11211 +done
11212 +
11213 +fi
11214 +fi
11215 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
11216 +if test -n "$ac_ct_CC"; then
11217 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11218 +echo "${ECHO_T}$ac_ct_CC" >&6
11219 +else
11220 +  echo "$as_me:$LINENO: result: no" >&5
11221 +echo "${ECHO_T}no" >&6
11222 +fi
11223 +
11224 +  CC=$ac_ct_CC
11225 +else
11226 +  CC="$ac_cv_prog_CC"
11227 +fi
11228 +
11229 +fi
11230 +if test -z "$CC"; then
11231 +  # Extract the first word of "cc", so it can be a program name with args.
11232 +set dummy cc; ac_word=$2
11233 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11234 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11235 +if test "${ac_cv_prog_CC+set}" = set; then
11236 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11237 +else
11238 +  if test -n "$CC"; then
11239 +  ac_cv_prog_CC="$CC" # Let the user override the test.
11240 +else
11241 +  ac_prog_rejected=no
11242 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 +for as_dir in $PATH
11244 +do
11245 +  IFS=$as_save_IFS
11246 +  test -z "$as_dir" && as_dir=.
11247 +  for ac_exec_ext in '' $ac_executable_extensions; do
11248 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11249 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11250 +       ac_prog_rejected=yes
11251 +       continue
11252 +     fi
11253 +    ac_cv_prog_CC="cc"
11254 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 +    break 2
11256 +  fi
11257 +done
11258 +done
11259 +
11260 +if test $ac_prog_rejected = yes; then
11261 +  # We found a bogon in the path, so make sure we never use it.
11262 +  set dummy $ac_cv_prog_CC
11263 +  shift
11264 +  if test $@%:@ != 0; then
11265 +    # We chose a different compiler from the bogus one.
11266 +    # However, it has the same basename, so the bogon will be chosen
11267 +    # first if we set CC to just the basename; use the full file name.
11268 +    shift
11269 +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11270 +  fi
11271 +fi
11272 +fi
11273 +fi
11274 +CC=$ac_cv_prog_CC
11275 +if test -n "$CC"; then
11276 +  echo "$as_me:$LINENO: result: $CC" >&5
11277 +echo "${ECHO_T}$CC" >&6
11278 +else
11279 +  echo "$as_me:$LINENO: result: no" >&5
11280 +echo "${ECHO_T}no" >&6
11281 +fi
11282 +
11283 +fi
11284 +if test -z "$CC"; then
11285 +  if test -n "$ac_tool_prefix"; then
11286 +  for ac_prog in cl
11287 +  do
11288 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11289 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11290 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11291 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11292 +if test "${ac_cv_prog_CC+set}" = set; then
11293 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11294 +else
11295 +  if test -n "$CC"; then
11296 +  ac_cv_prog_CC="$CC" # Let the user override the test.
11297 +else
11298 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 +for as_dir in $PATH
11300 +do
11301 +  IFS=$as_save_IFS
11302 +  test -z "$as_dir" && as_dir=.
11303 +  for ac_exec_ext in '' $ac_executable_extensions; do
11304 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11305 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11306 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 +    break 2
11308 +  fi
11309 +done
11310 +done
11311 +
11312 +fi
11313 +fi
11314 +CC=$ac_cv_prog_CC
11315 +if test -n "$CC"; then
11316 +  echo "$as_me:$LINENO: result: $CC" >&5
11317 +echo "${ECHO_T}$CC" >&6
11318 +else
11319 +  echo "$as_me:$LINENO: result: no" >&5
11320 +echo "${ECHO_T}no" >&6
11321 +fi
11322 +
11323 +    test -n "$CC" && break
11324 +  done
11325 +fi
11326 +if test -z "$CC"; then
11327 +  ac_ct_CC=$CC
11328 +  for ac_prog in cl
11329 +do
11330 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
11331 +set dummy $ac_prog; ac_word=$2
11332 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11333 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11334 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11335 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11336 +else
11337 +  if test -n "$ac_ct_CC"; then
11338 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11339 +else
11340 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341 +for as_dir in $PATH
11342 +do
11343 +  IFS=$as_save_IFS
11344 +  test -z "$as_dir" && as_dir=.
11345 +  for ac_exec_ext in '' $ac_executable_extensions; do
11346 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11347 +    ac_cv_prog_ac_ct_CC="$ac_prog"
11348 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 +    break 2
11350 +  fi
11351 +done
11352 +done
11353 +
11354 +fi
11355 +fi
11356 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
11357 +if test -n "$ac_ct_CC"; then
11358 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11359 +echo "${ECHO_T}$ac_ct_CC" >&6
11360 +else
11361 +  echo "$as_me:$LINENO: result: no" >&5
11362 +echo "${ECHO_T}no" >&6
11363 +fi
11364 +
11365 +  test -n "$ac_ct_CC" && break
11366 +done
11367 +
11368 +  CC=$ac_ct_CC
11369 +fi
11370 +
11371 +fi
11372 +
11373 +
11374 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11375 +See \`config.log' for more details." >&5
11376 +echo "$as_me: error: no acceptable C compiler found in \$PATH
11377 +See \`config.log' for more details." >&2;}
11378 +   { (exit 1); exit 1; }; }
11379 +
11380 +# Provide some information about the compiler.
11381 +echo "$as_me:$LINENO:" \
11382 +     "checking for C compiler version" >&5
11383 +ac_compiler=`set X $ac_compile; echo $2`
11384 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11385 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
11386 +  ac_status=$?
11387 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 +  (exit $ac_status); }
11389 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11390 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
11391 +  ac_status=$?
11392 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 +  (exit $ac_status); }
11394 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11395 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
11396 +  ac_status=$?
11397 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 +  (exit $ac_status); }
11399 +
11400 +cat >conftest.$ac_ext <<_ACEOF
11401 +/* confdefs.h.  */
11402 +_ACEOF
11403 +cat confdefs.h >>conftest.$ac_ext
11404 +cat >>conftest.$ac_ext <<_ACEOF
11405 +/* end confdefs.h.  */
11406 +
11407 +int
11408 +main ()
11409 +{
11410 +
11411 +  ;
11412 +  return 0;
11413 +}
11414 +_ACEOF
11415 +ac_clean_files_save=$ac_clean_files
11416 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
11417 +# Try to create an executable without -o first, disregard a.out.
11418 +# It will help us diagnose broken compilers, and finding out an intuition
11419 +# of exeext.
11420 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11421 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11422 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11423 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11424 +  (eval $ac_link_default) 2>&5
11425 +  ac_status=$?
11426 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 +  (exit $ac_status); }; then
11428 +  # Find the output, starting from the most likely.  This scheme is
11429 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11430 +# resort.
11431 +
11432 +# Be careful to initialize this variable, since it used to be cached.
11433 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11434 +ac_cv_exeext=
11435 +# b.out is created by i960 compilers.
11436 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11437 +do
11438 +  test -f "$ac_file" || continue
11439 +  case $ac_file in
11440 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11441 +       ;;
11442 +    conftest.$ac_ext )
11443 +       # This is the source file.
11444 +       ;;
11445 +    [ab].out )
11446 +       # We found the default executable, but exeext='' is most
11447 +       # certainly right.
11448 +       break;;
11449 +    *.* )
11450 +       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11451 +       # FIXME: I believe we export ac_cv_exeext for Libtool,
11452 +       # but it would be cool to find out if it's true.  Does anybody
11453 +       # maintain Libtool? --akim.
11454 +       export ac_cv_exeext
11455 +       break;;
11456 +    * )
11457 +       break;;
11458 +  esac
11459 +done
11460 +else
11461 +  echo "$as_me: failed program was:" >&5
11462 +sed 's/^/| /' conftest.$ac_ext >&5
11463 +
11464 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11465 +See \`config.log' for more details." >&5
11466 +echo "$as_me: error: C compiler cannot create executables
11467 +See \`config.log' for more details." >&2;}
11468 +   { (exit 77); exit 77; }; }
11469 +fi
11470 +
11471 +ac_exeext=$ac_cv_exeext
11472 +echo "$as_me:$LINENO: result: $ac_file" >&5
11473 +echo "${ECHO_T}$ac_file" >&6
11474 +
11475 +# Check the compiler produces executables we can run.  If not, either
11476 +# the compiler is broken, or we cross compile.
11477 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11478 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11479 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11480 +# If not cross compiling, check that we can run a simple program.
11481 +if test "$cross_compiling" != yes; then
11482 +  if { ac_try='./$ac_file'
11483 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 +  (eval $ac_try) 2>&5
11485 +  ac_status=$?
11486 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 +  (exit $ac_status); }; }; then
11488 +    cross_compiling=no
11489 +  else
11490 +    if test "$cross_compiling" = maybe; then
11491 +       cross_compiling=yes
11492 +    else
11493 +       { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11494 +If you meant to cross compile, use \`--host'.
11495 +See \`config.log' for more details." >&5
11496 +echo "$as_me: error: cannot run C compiled programs.
11497 +If you meant to cross compile, use \`--host'.
11498 +See \`config.log' for more details." >&2;}
11499 +   { (exit 1); exit 1; }; }
11500 +    fi
11501 +  fi
11502 +fi
11503 +echo "$as_me:$LINENO: result: yes" >&5
11504 +echo "${ECHO_T}yes" >&6
11505 +
11506 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
11507 +ac_clean_files=$ac_clean_files_save
11508 +# Check the compiler produces executables we can run.  If not, either
11509 +# the compiler is broken, or we cross compile.
11510 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11511 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11512 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
11513 +echo "${ECHO_T}$cross_compiling" >&6
11514 +
11515 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
11516 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11517 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11518 +  (eval $ac_link) 2>&5
11519 +  ac_status=$?
11520 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 +  (exit $ac_status); }; then
11522 +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
11523 +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
11524 +# work properly (i.e., refer to `conftest.exe'), while it won't with
11525 +# `rm'.
11526 +for ac_file in conftest.exe conftest conftest.*; do
11527 +  test -f "$ac_file" || continue
11528 +  case $ac_file in
11529 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11530 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11531 +         export ac_cv_exeext
11532 +         break;;
11533 +    * ) break;;
11534 +  esac
11535 +done
11536 +else
11537 +  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11538 +See \`config.log' for more details." >&5
11539 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11540 +See \`config.log' for more details." >&2;}
11541 +   { (exit 1); exit 1; }; }
11542 +fi
11543 +
11544 +rm -f conftest$ac_cv_exeext
11545 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11546 +echo "${ECHO_T}$ac_cv_exeext" >&6
11547 +
11548 +rm -f conftest.$ac_ext
11549 +EXEEXT=$ac_cv_exeext
11550 +ac_exeext=$EXEEXT
11551 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
11552 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11553 +if test "${ac_cv_objext+set}" = set; then
11554 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11555 +else
11556 +  cat >conftest.$ac_ext <<_ACEOF
11557 +/* confdefs.h.  */
11558 +_ACEOF
11559 +cat confdefs.h >>conftest.$ac_ext
11560 +cat >>conftest.$ac_ext <<_ACEOF
11561 +/* end confdefs.h.  */
11562 +
11563 +int
11564 +main ()
11565 +{
11566 +
11567 +  ;
11568 +  return 0;
11569 +}
11570 +_ACEOF
11571 +rm -f conftest.o conftest.obj
11572 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11573 +  (eval $ac_compile) 2>&5
11574 +  ac_status=$?
11575 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 +  (exit $ac_status); }; then
11577 +  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11578 +  case $ac_file in
11579 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11580 +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11581 +       break;;
11582 +  esac
11583 +done
11584 +else
11585 +  echo "$as_me: failed program was:" >&5
11586 +sed 's/^/| /' conftest.$ac_ext >&5
11587 +
11588 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11589 +See \`config.log' for more details." >&5
11590 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
11591 +See \`config.log' for more details." >&2;}
11592 +   { (exit 1); exit 1; }; }
11593 +fi
11594 +
11595 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
11596 +fi
11597 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11598 +echo "${ECHO_T}$ac_cv_objext" >&6
11599 +OBJEXT=$ac_cv_objext
11600 +ac_objext=$OBJEXT
11601 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11602 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11603 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
11604 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11605 +else
11606 +  cat >conftest.$ac_ext <<_ACEOF
11607 +/* confdefs.h.  */
11608 +_ACEOF
11609 +cat confdefs.h >>conftest.$ac_ext
11610 +cat >>conftest.$ac_ext <<_ACEOF
11611 +/* end confdefs.h.  */
11612 +
11613 +int
11614 +main ()
11615 +{
11616 +#ifndef __GNUC__
11617 +       choke me
11618 +#endif
11619 +
11620 +  ;
11621 +  return 0;
11622 +}
11623 +_ACEOF
11624 +rm -f conftest.$ac_objext
11625 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11626 +  (eval $ac_compile) 2>conftest.er1
11627 +  ac_status=$?
11628 +  grep -v '^ *+' conftest.er1 >conftest.err
11629 +  rm -f conftest.er1
11630 +  cat conftest.err >&5
11631 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 +  (exit $ac_status); } &&
11633 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11634 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 +  (eval $ac_try) 2>&5
11636 +  ac_status=$?
11637 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 +  (exit $ac_status); }; } &&
11639 +        { ac_try='test -s conftest.$ac_objext'
11640 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 +  (eval $ac_try) 2>&5
11642 +  ac_status=$?
11643 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 +  (exit $ac_status); }; }; then
11645 +  ac_compiler_gnu=yes
11646 +else
11647 +  echo "$as_me: failed program was:" >&5
11648 +sed 's/^/| /' conftest.$ac_ext >&5
11649 +
11650 +ac_compiler_gnu=no
11651 +fi
11652 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11653 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
11654 +
11655 +fi
11656 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11657 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11658 +GCC=`test $ac_compiler_gnu = yes && echo yes`
11659 +ac_test_CFLAGS=${CFLAGS+set}
11660 +ac_save_CFLAGS=$CFLAGS
11661 +CFLAGS="-g"
11662 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11663 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11664 +if test "${ac_cv_prog_cc_g+set}" = set; then
11665 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11666 +else
11667 +  cat >conftest.$ac_ext <<_ACEOF
11668 +/* confdefs.h.  */
11669 +_ACEOF
11670 +cat confdefs.h >>conftest.$ac_ext
11671 +cat >>conftest.$ac_ext <<_ACEOF
11672 +/* end confdefs.h.  */
11673 +
11674 +int
11675 +main ()
11676 +{
11677 +
11678 +  ;
11679 +  return 0;
11680 +}
11681 +_ACEOF
11682 +rm -f conftest.$ac_objext
11683 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684 +  (eval $ac_compile) 2>conftest.er1
11685 +  ac_status=$?
11686 +  grep -v '^ *+' conftest.er1 >conftest.err
11687 +  rm -f conftest.er1
11688 +  cat conftest.err >&5
11689 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 +  (exit $ac_status); } &&
11691 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11692 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 +  (eval $ac_try) 2>&5
11694 +  ac_status=$?
11695 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 +  (exit $ac_status); }; } &&
11697 +        { ac_try='test -s conftest.$ac_objext'
11698 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 +  (eval $ac_try) 2>&5
11700 +  ac_status=$?
11701 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 +  (exit $ac_status); }; }; then
11703 +  ac_cv_prog_cc_g=yes
11704 +else
11705 +  echo "$as_me: failed program was:" >&5
11706 +sed 's/^/| /' conftest.$ac_ext >&5
11707 +
11708 +ac_cv_prog_cc_g=no
11709 +fi
11710 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11711 +fi
11712 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11713 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11714 +if test "$ac_test_CFLAGS" = set; then
11715 +  CFLAGS=$ac_save_CFLAGS
11716 +elif test $ac_cv_prog_cc_g = yes; then
11717 +  if test "$GCC" = yes; then
11718 +    CFLAGS="-g -O2"
11719 +  else
11720 +    CFLAGS="-g"
11721 +  fi
11722 +else
11723 +  if test "$GCC" = yes; then
11724 +    CFLAGS="-O2"
11725 +  else
11726 +    CFLAGS=
11727 +  fi
11728 +fi
11729 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11730 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11731 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
11732 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11733 +else
11734 +  ac_cv_prog_cc_stdc=no
11735 +ac_save_CC=$CC
11736 +cat >conftest.$ac_ext <<_ACEOF
11737 +/* confdefs.h.  */
11738 +_ACEOF
11739 +cat confdefs.h >>conftest.$ac_ext
11740 +cat >>conftest.$ac_ext <<_ACEOF
11741 +/* end confdefs.h.  */
11742 +#include <stdarg.h>
11743 +#include <stdio.h>
11744 +#include <sys/types.h>
11745 +#include <sys/stat.h>
11746 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11747 +struct buf { int x; };
11748 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
11749 +static char *e (p, i)
11750 +     char **p;
11751 +     int i;
11752 +{
11753 +  return p[i];
11754 +}
11755 +static char *f (char * (*g) (char **, int), char **p, ...)
11756 +{
11757 +  char *s;
11758 +  va_list v;
11759 +  va_start (v,p);
11760 +  s = g (p, va_arg (v,int));
11761 +  va_end (v);
11762 +  return s;
11763 +}
11764 +
11765 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11766 +   function prototypes and stuff, but not '\xHH' hex character constants.
11767 +   These don't provoke an error unfortunately, instead are silently treated
11768 +   as 'x'.  The following induces an error, until -std1 is added to get
11769 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11770 +   array size at least.  It's necessary to write '\x00'==0 to get something
11771 +   that's true only with -std1.  */
11772 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11773 +
11774 +int test (int i, double x);
11775 +struct s1 {int (*f) (int a);};
11776 +struct s2 {int (*f) (double a);};
11777 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11778 +int argc;
11779 +char **argv;
11780 +int
11781 +main ()
11782 +{
11783 +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11784 +  ;
11785 +  return 0;
11786 +}
11787 +_ACEOF
11788 +# Don't try gcc -ansi; that turns off useful extensions and
11789 +# breaks some systems' header files.
11790 +# AIX                  -qlanglvl=ansi
11791 +# Ultrix and OSF/1     -std1
11792 +# HP-UX 10.20 and later        -Ae
11793 +# HP-UX older versions -Aa -D_HPUX_SOURCE
11794 +# SVR4                 -Xc -D__EXTENSIONS__
11795 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11796 +do
11797 +  CC="$ac_save_CC $ac_arg"
11798 +  rm -f conftest.$ac_objext
11799 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11800 +  (eval $ac_compile) 2>conftest.er1
11801 +  ac_status=$?
11802 +  grep -v '^ *+' conftest.er1 >conftest.err
11803 +  rm -f conftest.er1
11804 +  cat conftest.err >&5
11805 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 +  (exit $ac_status); } &&
11807 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11808 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 +  (eval $ac_try) 2>&5
11810 +  ac_status=$?
11811 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 +  (exit $ac_status); }; } &&
11813 +        { ac_try='test -s conftest.$ac_objext'
11814 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 +  (eval $ac_try) 2>&5
11816 +  ac_status=$?
11817 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 +  (exit $ac_status); }; }; then
11819 +  ac_cv_prog_cc_stdc=$ac_arg
11820 +break
11821 +else
11822 +  echo "$as_me: failed program was:" >&5
11823 +sed 's/^/| /' conftest.$ac_ext >&5
11824 +
11825 +fi
11826 +rm -f conftest.err conftest.$ac_objext 
11827 +done
11828 +rm -f conftest.$ac_ext conftest.$ac_objext
11829 +CC=$ac_save_CC
11830 +
11831 +fi
11832 +
11833 +case "x$ac_cv_prog_cc_stdc" in
11834 +  x|xno)
11835 +    echo "$as_me:$LINENO: result: none needed" >&5
11836 +echo "${ECHO_T}none needed" >&6 ;;
11837 +  *)
11838 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11839 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11840 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
11841 +esac
11842 +
11843 +# Some people use a C++ compiler to compile C.  Since we use `exit',
11844 +# in C++ we need to declare it.  In case someone uses the same compiler
11845 +# for both compiling C and C++ we need to have the C++ compiler decide
11846 +# the declaration of exit, since it's the most demanding environment.
11847 +cat >conftest.$ac_ext <<_ACEOF
11848 +@%:@ifndef __cplusplus
11849 +  choke me
11850 +@%:@endif
11851 +_ACEOF
11852 +rm -f conftest.$ac_objext
11853 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854 +  (eval $ac_compile) 2>conftest.er1
11855 +  ac_status=$?
11856 +  grep -v '^ *+' conftest.er1 >conftest.err
11857 +  rm -f conftest.er1
11858 +  cat conftest.err >&5
11859 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 +  (exit $ac_status); } &&
11861 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11862 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 +  (eval $ac_try) 2>&5
11864 +  ac_status=$?
11865 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 +  (exit $ac_status); }; } &&
11867 +        { ac_try='test -s conftest.$ac_objext'
11868 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 +  (eval $ac_try) 2>&5
11870 +  ac_status=$?
11871 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 +  (exit $ac_status); }; }; then
11873 +  for ac_declaration in \
11874 +   '' \
11875 +   'extern "C" void std::exit (int) throw (); using std::exit;' \
11876 +   'extern "C" void std::exit (int); using std::exit;' \
11877 +   'extern "C" void exit (int) throw ();' \
11878 +   'extern "C" void exit (int);' \
11879 +   'void exit (int);'
11880 +do
11881 +  cat >conftest.$ac_ext <<_ACEOF
11882 +/* confdefs.h.  */
11883 +_ACEOF
11884 +cat confdefs.h >>conftest.$ac_ext
11885 +cat >>conftest.$ac_ext <<_ACEOF
11886 +/* end confdefs.h.  */
11887 +$ac_declaration
11888 +@%:@include <stdlib.h>
11889 +int
11890 +main ()
11891 +{
11892 +exit (42);
11893 +  ;
11894 +  return 0;
11895 +}
11896 +_ACEOF
11897 +rm -f conftest.$ac_objext
11898 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899 +  (eval $ac_compile) 2>conftest.er1
11900 +  ac_status=$?
11901 +  grep -v '^ *+' conftest.er1 >conftest.err
11902 +  rm -f conftest.er1
11903 +  cat conftest.err >&5
11904 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 +  (exit $ac_status); } &&
11906 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11907 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 +  (eval $ac_try) 2>&5
11909 +  ac_status=$?
11910 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 +  (exit $ac_status); }; } &&
11912 +        { ac_try='test -s conftest.$ac_objext'
11913 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 +  (eval $ac_try) 2>&5
11915 +  ac_status=$?
11916 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 +  (exit $ac_status); }; }; then
11918 +  :
11919 +else
11920 +  echo "$as_me: failed program was:" >&5
11921 +sed 's/^/| /' conftest.$ac_ext >&5
11922 +
11923 +continue
11924 +fi
11925 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11926 +  cat >conftest.$ac_ext <<_ACEOF
11927 +/* confdefs.h.  */
11928 +_ACEOF
11929 +cat confdefs.h >>conftest.$ac_ext
11930 +cat >>conftest.$ac_ext <<_ACEOF
11931 +/* end confdefs.h.  */
11932 +$ac_declaration
11933 +int
11934 +main ()
11935 +{
11936 +exit (42);
11937 +  ;
11938 +  return 0;
11939 +}
11940 +_ACEOF
11941 +rm -f conftest.$ac_objext
11942 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11943 +  (eval $ac_compile) 2>conftest.er1
11944 +  ac_status=$?
11945 +  grep -v '^ *+' conftest.er1 >conftest.err
11946 +  rm -f conftest.er1
11947 +  cat conftest.err >&5
11948 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 +  (exit $ac_status); } &&
11950 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11951 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 +  (eval $ac_try) 2>&5
11953 +  ac_status=$?
11954 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 +  (exit $ac_status); }; } &&
11956 +        { ac_try='test -s conftest.$ac_objext'
11957 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958 +  (eval $ac_try) 2>&5
11959 +  ac_status=$?
11960 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 +  (exit $ac_status); }; }; then
11962 +  break
11963 +else
11964 +  echo "$as_me: failed program was:" >&5
11965 +sed 's/^/| /' conftest.$ac_ext >&5
11966 +
11967 +fi
11968 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11969 +done
11970 +rm -f conftest*
11971 +if test -n "$ac_declaration"; then
11972 +  echo '#ifdef __cplusplus' >>confdefs.h
11973 +  echo $ac_declaration      >>confdefs.h
11974 +  echo '#endif'             >>confdefs.h
11975 +fi
11976 +
11977 +else
11978 +  echo "$as_me: failed program was:" >&5
11979 +sed 's/^/| /' conftest.$ac_ext >&5
11980 +
11981 +fi
11982 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11983 +ac_ext=c
11984 +ac_cpp='$CPP $CPPFLAGS'
11985 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11986 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11987 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
11988 +
11989 +
11990 +missing_dir=`cd $ac_aux_dir && pwd`
11991 +for ac_prog in flex lex
11992 +do
11993 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
11994 +set dummy $ac_prog; ac_word=$2
11995 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11996 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11997 +if test "${ac_cv_prog_LEX+set}" = set; then
11998 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11999 +else
12000 +  if test -n "$LEX"; then
12001 +  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12002 +else
12003 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 +for as_dir in $PATH
12005 +do
12006 +  IFS=$as_save_IFS
12007 +  test -z "$as_dir" && as_dir=.
12008 +  for ac_exec_ext in '' $ac_executable_extensions; do
12009 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12010 +    ac_cv_prog_LEX="$ac_prog"
12011 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 +    break 2
12013 +  fi
12014 +done
12015 +done
12016 +
12017 +fi
12018 +fi
12019 +LEX=$ac_cv_prog_LEX
12020 +if test -n "$LEX"; then
12021 +  echo "$as_me:$LINENO: result: $LEX" >&5
12022 +echo "${ECHO_T}$LEX" >&6
12023 +else
12024 +  echo "$as_me:$LINENO: result: no" >&5
12025 +echo "${ECHO_T}no" >&6
12026 +fi
12027 +
12028 +  test -n "$LEX" && break
12029 +done
12030 +test -n "$LEX" || LEX="$missing_dir/missing flex"
12031 +
12032 +for ac_prog in flex lex
12033 +do
12034 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
12035 +set dummy $ac_prog; ac_word=$2
12036 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12037 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12038 +if test "${ac_cv_prog_LEX+set}" = set; then
12039 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12040 +else
12041 +  if test -n "$LEX"; then
12042 +  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12043 +else
12044 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045 +for as_dir in $PATH
12046 +do
12047 +  IFS=$as_save_IFS
12048 +  test -z "$as_dir" && as_dir=.
12049 +  for ac_exec_ext in '' $ac_executable_extensions; do
12050 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12051 +    ac_cv_prog_LEX="$ac_prog"
12052 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 +    break 2
12054 +  fi
12055 +done
12056 +done
12057 +
12058 +fi
12059 +fi
12060 +LEX=$ac_cv_prog_LEX
12061 +if test -n "$LEX"; then
12062 +  echo "$as_me:$LINENO: result: $LEX" >&5
12063 +echo "${ECHO_T}$LEX" >&6
12064 +else
12065 +  echo "$as_me:$LINENO: result: no" >&5
12066 +echo "${ECHO_T}no" >&6
12067 +fi
12068 +
12069 +  test -n "$LEX" && break
12070 +done
12071 +test -n "$LEX" || LEX=":"
12072 +
12073 +if test -z "$LEXLIB"
12074 +then
12075 +  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
12076 +echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
12077 +if test "${ac_cv_lib_fl_yywrap+set}" = set; then
12078 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12079 +else
12080 +  ac_check_lib_save_LIBS=$LIBS
12081 +LIBS="-lfl  $LIBS"
12082 +cat >conftest.$ac_ext <<_ACEOF
12083 +/* confdefs.h.  */
12084 +_ACEOF
12085 +cat confdefs.h >>conftest.$ac_ext
12086 +cat >>conftest.$ac_ext <<_ACEOF
12087 +/* end confdefs.h.  */
12088 +
12089 +/* Override any gcc2 internal prototype to avoid an error.  */
12090 +#ifdef __cplusplus
12091 +extern "C"
12092 +#endif
12093 +/* We use char because int might match the return type of a gcc2
12094 +   builtin and then its argument prototype would still apply.  */
12095 +char yywrap ();
12096 +int
12097 +main ()
12098 +{
12099 +yywrap ();
12100 +  ;
12101 +  return 0;
12102 +}
12103 +_ACEOF
12104 +rm -f conftest.$ac_objext conftest$ac_exeext
12105 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12106 +  (eval $ac_link) 2>conftest.er1
12107 +  ac_status=$?
12108 +  grep -v '^ *+' conftest.er1 >conftest.err
12109 +  rm -f conftest.er1
12110 +  cat conftest.err >&5
12111 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 +  (exit $ac_status); } &&
12113 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12114 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 +  (eval $ac_try) 2>&5
12116 +  ac_status=$?
12117 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 +  (exit $ac_status); }; } &&
12119 +        { ac_try='test -s conftest$ac_exeext'
12120 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 +  (eval $ac_try) 2>&5
12122 +  ac_status=$?
12123 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 +  (exit $ac_status); }; }; then
12125 +  ac_cv_lib_fl_yywrap=yes
12126 +else
12127 +  echo "$as_me: failed program was:" >&5
12128 +sed 's/^/| /' conftest.$ac_ext >&5
12129 +
12130 +ac_cv_lib_fl_yywrap=no
12131 +fi
12132 +rm -f conftest.err conftest.$ac_objext \
12133 +      conftest$ac_exeext conftest.$ac_ext
12134 +LIBS=$ac_check_lib_save_LIBS
12135 +fi
12136 +echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
12137 +echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
12138 +if test $ac_cv_lib_fl_yywrap = yes; then
12139 +  LEXLIB="-lfl"
12140 +else
12141 +  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
12142 +echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
12143 +if test "${ac_cv_lib_l_yywrap+set}" = set; then
12144 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12145 +else
12146 +  ac_check_lib_save_LIBS=$LIBS
12147 +LIBS="-ll  $LIBS"
12148 +cat >conftest.$ac_ext <<_ACEOF
12149 +/* confdefs.h.  */
12150 +_ACEOF
12151 +cat confdefs.h >>conftest.$ac_ext
12152 +cat >>conftest.$ac_ext <<_ACEOF
12153 +/* end confdefs.h.  */
12154 +
12155 +/* Override any gcc2 internal prototype to avoid an error.  */
12156 +#ifdef __cplusplus
12157 +extern "C"
12158 +#endif
12159 +/* We use char because int might match the return type of a gcc2
12160 +   builtin and then its argument prototype would still apply.  */
12161 +char yywrap ();
12162 +int
12163 +main ()
12164 +{
12165 +yywrap ();
12166 +  ;
12167 +  return 0;
12168 +}
12169 +_ACEOF
12170 +rm -f conftest.$ac_objext conftest$ac_exeext
12171 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12172 +  (eval $ac_link) 2>conftest.er1
12173 +  ac_status=$?
12174 +  grep -v '^ *+' conftest.er1 >conftest.err
12175 +  rm -f conftest.er1
12176 +  cat conftest.err >&5
12177 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 +  (exit $ac_status); } &&
12179 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12180 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 +  (eval $ac_try) 2>&5
12182 +  ac_status=$?
12183 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 +  (exit $ac_status); }; } &&
12185 +        { ac_try='test -s conftest$ac_exeext'
12186 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 +  (eval $ac_try) 2>&5
12188 +  ac_status=$?
12189 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 +  (exit $ac_status); }; }; then
12191 +  ac_cv_lib_l_yywrap=yes
12192 +else
12193 +  echo "$as_me: failed program was:" >&5
12194 +sed 's/^/| /' conftest.$ac_ext >&5
12195 +
12196 +ac_cv_lib_l_yywrap=no
12197 +fi
12198 +rm -f conftest.err conftest.$ac_objext \
12199 +      conftest$ac_exeext conftest.$ac_ext
12200 +LIBS=$ac_check_lib_save_LIBS
12201 +fi
12202 +echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
12203 +echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
12204 +if test $ac_cv_lib_l_yywrap = yes; then
12205 +  LEXLIB="-ll"
12206 +fi
12207 +
12208 +fi
12209 +
12210 +fi
12211 +
12212 +if test "x$LEX" != "x:"; then
12213 +  echo "$as_me:$LINENO: checking lex output file root" >&5
12214 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
12215 +if test "${ac_cv_prog_lex_root+set}" = set; then
12216 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12217 +else
12218 +  # The minimal lex program is just a single line: %%.  But some broken lexes
12219 +# (Solaris, I think it was) want two %% lines, so accommodate them.
12220 +cat >conftest.l <<_ACEOF
12221 +%%
12222 +%%
12223 +_ACEOF
12224 +{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
12225 +  (eval $LEX conftest.l) 2>&5
12226 +  ac_status=$?
12227 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 +  (exit $ac_status); }
12229 +if test -f lex.yy.c; then
12230 +  ac_cv_prog_lex_root=lex.yy
12231 +elif test -f lexyy.c; then
12232 +  ac_cv_prog_lex_root=lexyy
12233 +else
12234 +  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
12235 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
12236 +   { (exit 1); exit 1; }; }
12237 +fi
12238 +fi
12239 +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
12240 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
12241 +rm -f conftest.l
12242 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12243 +
12244 +echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
12245 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
12246 +if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
12247 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12248 +else
12249 +  # POSIX says lex can declare yytext either as a pointer or an array; the
12250 +# default is implementation-dependent. Figure out which it is, since
12251 +# not all implementations provide the %pointer and %array declarations.
12252 +ac_cv_prog_lex_yytext_pointer=no
12253 +echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
12254 +ac_save_LIBS=$LIBS
12255 +LIBS="$LIBS $LEXLIB"
12256 +cat >conftest.$ac_ext <<_ACEOF
12257 +`cat $LEX_OUTPUT_ROOT.c`
12258 +_ACEOF
12259 +rm -f conftest.$ac_objext conftest$ac_exeext
12260 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261 +  (eval $ac_link) 2>conftest.er1
12262 +  ac_status=$?
12263 +  grep -v '^ *+' conftest.er1 >conftest.err
12264 +  rm -f conftest.er1
12265 +  cat conftest.err >&5
12266 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 +  (exit $ac_status); } &&
12268 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12269 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 +  (eval $ac_try) 2>&5
12271 +  ac_status=$?
12272 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 +  (exit $ac_status); }; } &&
12274 +        { ac_try='test -s conftest$ac_exeext'
12275 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 +  (eval $ac_try) 2>&5
12277 +  ac_status=$?
12278 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 +  (exit $ac_status); }; }; then
12280 +  ac_cv_prog_lex_yytext_pointer=yes
12281 +else
12282 +  echo "$as_me: failed program was:" >&5
12283 +sed 's/^/| /' conftest.$ac_ext >&5
12284 +
12285 +fi
12286 +rm -f conftest.err conftest.$ac_objext \
12287 +      conftest$ac_exeext conftest.$ac_ext
12288 +LIBS=$ac_save_LIBS
12289 +rm -f "${LEX_OUTPUT_ROOT}.c"
12290 +
12291 +fi
12292 +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12293 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
12294 +if test $ac_cv_prog_lex_yytext_pointer = yes; then
12295 +  
12296 +cat >>confdefs.h <<\_ACEOF
12297 +@%:@define YYTEXT_POINTER 1
12298 +_ACEOF
12299 +
12300 +fi
12301 +
12302 +fi
12303 +
12304 +for ac_prog in 'bison -y' byacc
12305 +do
12306 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
12307 +set dummy $ac_prog; ac_word=$2
12308 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12309 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12310 +if test "${ac_cv_prog_YACC+set}" = set; then
12311 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12312 +else
12313 +  if test -n "$YACC"; then
12314 +  ac_cv_prog_YACC="$YACC" # Let the user override the test.
12315 +else
12316 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 +for as_dir in $PATH
12318 +do
12319 +  IFS=$as_save_IFS
12320 +  test -z "$as_dir" && as_dir=.
12321 +  for ac_exec_ext in '' $ac_executable_extensions; do
12322 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323 +    ac_cv_prog_YACC="$ac_prog"
12324 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12325 +    break 2
12326 +  fi
12327 +done
12328 +done
12329 +
12330 +fi
12331 +fi
12332 +YACC=$ac_cv_prog_YACC
12333 +if test -n "$YACC"; then
12334 +  echo "$as_me:$LINENO: result: $YACC" >&5
12335 +echo "${ECHO_T}$YACC" >&6
12336 +else
12337 +  echo "$as_me:$LINENO: result: no" >&5
12338 +echo "${ECHO_T}no" >&6
12339 +fi
12340 +
12341 +  test -n "$YACC" && break
12342 +done
12343 +test -n "$YACC" || YACC="yacc"
12344 +
12345 +# Find a good install program.  We prefer a C program (faster),
12346 +# so one script is as good as another.  But avoid the broken or
12347 +# incompatible versions:
12348 +# SysV /etc/install, /usr/sbin/install
12349 +# SunOS /usr/etc/install
12350 +# IRIX /sbin/install
12351 +# AIX /bin/install
12352 +# AmigaOS /C/install, which installs bootblocks on floppy discs
12353 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12354 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12355 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12356 +# OS/2's system install, which has a completely different semantic
12357 +# ./install, which can be erroneously created by make from ./install.sh.
12358 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12359 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12360 +if test -z "$INSTALL"; then
12361 +if test "${ac_cv_path_install+set}" = set; then
12362 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12363 +else
12364 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 +for as_dir in $PATH
12366 +do
12367 +  IFS=$as_save_IFS
12368 +  test -z "$as_dir" && as_dir=.
12369 +  # Account for people who put trailing slashes in PATH elements.
12370 +case $as_dir/ in
12371 +  ./ | .// | /cC/* | \
12372 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12373 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12374 +  /usr/ucb/* ) ;;
12375 +  *)
12376 +    # OSF1 and SCO ODT 3.0 have their own names for install.
12377 +    # Don't use installbsd from OSF since it installs stuff as root
12378 +    # by default.
12379 +    for ac_prog in ginstall scoinst install; do
12380 +      for ac_exec_ext in '' $ac_executable_extensions; do
12381 +       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12382 +         if test $ac_prog = install &&
12383 +           grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12384 +           # AIX install.  It has an incompatible calling convention.
12385 +           :
12386 +         elif test $ac_prog = install &&
12387 +           grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12388 +           # program-specific install script used by HP pwplus--don't use.
12389 +           :
12390 +         else
12391 +           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12392 +           break 3
12393 +         fi
12394 +       fi
12395 +      done
12396 +    done
12397 +    ;;
12398 +esac
12399 +done
12400 +
12401 +
12402 +fi
12403 +  if test "${ac_cv_path_install+set}" = set; then
12404 +    INSTALL=$ac_cv_path_install
12405 +  else
12406 +    # As a last resort, use the slow shell script.  We don't cache a
12407 +    # path for INSTALL within a source directory, because that will
12408 +    # break other packages using the cache if that directory is
12409 +    # removed, or if the path is relative.
12410 +    INSTALL=$ac_install_sh
12411 +  fi
12412 +fi
12413 +echo "$as_me:$LINENO: result: $INSTALL" >&5
12414 +echo "${ECHO_T}$INSTALL" >&6
12415 +
12416 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12417 +# It thinks the first close brace ends the variable substitution.
12418 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12419 +
12420 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12421 +
12422 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12423 +
12424 +
12425 +# Check whether --enable-shared or --disable-shared was given.
12426 +if test "${enable_shared+set}" = set; then
12427 +  enableval="$enable_shared"
12428 +  p=${PACKAGE-default}
12429 +case $enableval in
12430 +yes) enable_shared=yes ;;
12431 +no) enable_shared=no ;;
12432 +*)
12433 +  enable_shared=no
12434 +  # Look at the argument we got.  We use all the common list separators.
12435 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
12436 +  for pkg in $enableval; do
12437 +    if test "X$pkg" = "X$p"; then
12438 +      enable_shared=yes
12439 +    fi
12440 +  done
12441 +  IFS="$ac_save_ifs"
12442 +  ;;
12443 +esac
12444 +else
12445 +  enable_shared=yes
12446 +fi; 
12447 +# Check whether --enable-static or --disable-static was given.
12448 +if test "${enable_static+set}" = set; then
12449 +  enableval="$enable_static"
12450 +  p=${PACKAGE-default}
12451 +case $enableval in
12452 +yes) enable_static=yes ;;
12453 +no) enable_static=no ;;
12454 +*)
12455 +  enable_static=no
12456 +  # Look at the argument we got.  We use all the common list separators.
12457 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
12458 +  for pkg in $enableval; do
12459 +    if test "X$pkg" = "X$p"; then
12460 +      enable_static=yes
12461 +    fi
12462 +  done
12463 +  IFS="$ac_save_ifs"
12464 +  ;;
12465 +esac
12466 +else
12467 +  enable_static=yes
12468 +fi; 
12469 +# Check whether --enable-fast-install or --disable-fast-install was given.
12470 +if test "${enable_fast_install+set}" = set; then
12471 +  enableval="$enable_fast_install"
12472 +  p=${PACKAGE-default}
12473 +case $enableval in
12474 +yes) enable_fast_install=yes ;;
12475 +no) enable_fast_install=no ;;
12476 +*)
12477 +  enable_fast_install=no
12478 +  # Look at the argument we got.  We use all the common list separators.
12479 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
12480 +  for pkg in $enableval; do
12481 +    if test "X$pkg" = "X$p"; then
12482 +      enable_fast_install=yes
12483 +    fi
12484 +  done
12485 +  IFS="$ac_save_ifs"
12486 +  ;;
12487 +esac
12488 +else
12489 +  enable_fast_install=yes
12490 +fi; 
12491 +# Find the correct PATH separator.  Usually this is `:', but
12492 +# DJGPP uses `;' like DOS.
12493 +if test "X${PATH_SEPARATOR+set}" != Xset; then
12494 +  UNAME=${UNAME-`uname 2>/dev/null`}
12495 +  case X$UNAME in
12496 +    *-DOS) lt_cv_sys_path_separator=';' ;;
12497 +    *)     lt_cv_sys_path_separator=':' ;;
12498 +  esac
12499 +  PATH_SEPARATOR=$lt_cv_sys_path_separator
12500 +fi
12501 +
12502 +
12503 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
12504 +if test "${with_gnu_ld+set}" = set; then
12505 +  withval="$with_gnu_ld"
12506 +  test "$withval" = no || with_gnu_ld=yes
12507 +else
12508 +  with_gnu_ld=no
12509 +fi; 
12510 +ac_prog=ld
12511 +if test "$GCC" = yes; then
12512 +  # Check if gcc -print-prog-name=ld gives a path.
12513 +  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
12514 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
12515 +  case $host in
12516 +  *-*-mingw*)
12517 +    # gcc leaves a trailing carriage return which upsets mingw
12518 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12519 +  *)
12520 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12521 +  esac
12522 +  case $ac_prog in
12523 +    # Accept absolute paths.
12524 +    [\\/]* | [A-Za-z]:[\\/]*)
12525 +      re_direlt='/[^/][^/]*/\.\./'
12526 +      # Canonicalize the path of ld
12527 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12528 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12529 +       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12530 +      done
12531 +      test -z "$LD" && LD="$ac_prog"
12532 +      ;;
12533 +  "")
12534 +    # If it fails, then pretend we aren't using GCC.
12535 +    ac_prog=ld
12536 +    ;;
12537 +  *)
12538 +    # If it is relative, then search for the first ld in PATH.
12539 +    with_gnu_ld=unknown
12540 +    ;;
12541 +  esac
12542 +elif test "$with_gnu_ld" = yes; then
12543 +  echo "$as_me:$LINENO: checking for GNU ld" >&5
12544 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12545 +else
12546 +  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12547 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12548 +fi
12549 +if test "${lt_cv_path_LD+set}" = set; then
12550 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12551 +else
12552 +  if test -z "$LD"; then
12553 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12554 +  for ac_dir in $PATH; do
12555 +    test -z "$ac_dir" && ac_dir=.
12556 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12557 +      lt_cv_path_LD="$ac_dir/$ac_prog"
12558 +      # Check to see if the program is GNU ld.  I'd rather use --version,
12559 +      # but apparently some GNU ld's only accept -v.
12560 +      # Break only if it was the GNU/non-GNU ld that we prefer.
12561 +      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12562 +       test "$with_gnu_ld" != no && break
12563 +      else
12564 +       test "$with_gnu_ld" != yes && break
12565 +      fi
12566 +    fi
12567 +  done
12568 +  IFS="$ac_save_ifs"
12569 +else
12570 +  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12571 +fi
12572 +fi
12573 +
12574 +LD="$lt_cv_path_LD"
12575 +if test -n "$LD"; then
12576 +  echo "$as_me:$LINENO: result: $LD" >&5
12577 +echo "${ECHO_T}$LD" >&6
12578 +else
12579 +  echo "$as_me:$LINENO: result: no" >&5
12580 +echo "${ECHO_T}no" >&6
12581 +fi
12582 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12583 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12584 +   { (exit 1); exit 1; }; }
12585 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12586 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12587 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
12588 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12589 +else
12590 +  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12591 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12592 +  lt_cv_prog_gnu_ld=yes
12593 +else
12594 +  lt_cv_prog_gnu_ld=no
12595 +fi
12596 +fi
12597 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12598 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12599 +with_gnu_ld=$lt_cv_prog_gnu_ld
12600 +
12601 +
12602 +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12603 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
12604 +if test "${lt_cv_ld_reload_flag+set}" = set; then
12605 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12606 +else
12607 +  lt_cv_ld_reload_flag='-r'
12608 +fi
12609 +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12610 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
12611 +reload_flag=$lt_cv_ld_reload_flag
12612 +test -n "$reload_flag" && reload_flag=" $reload_flag"
12613 +
12614 +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12615 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
12616 +if test "${lt_cv_path_NM+set}" = set; then
12617 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12618 +else
12619 +  if test -n "$NM"; then
12620 +  # Let the user override the test.
12621 +  lt_cv_path_NM="$NM"
12622 +else
12623 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12624 +  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
12625 +    test -z "$ac_dir" && ac_dir=.
12626 +    tmp_nm=$ac_dir/${ac_tool_prefix}nm
12627 +    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
12628 +      # Check to see if the nm accepts a BSD-compat flag.
12629 +      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12630 +      #   nm: unknown option "B" ignored
12631 +      # Tru64's nm complains that /dev/null is an invalid object file
12632 +      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
12633 +       lt_cv_path_NM="$tmp_nm -B"
12634 +       break
12635 +      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
12636 +       lt_cv_path_NM="$tmp_nm -p"
12637 +       break
12638 +      else
12639 +       lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12640 +       continue # so that we can try to find one that supports BSD flags
12641 +      fi
12642 +    fi
12643 +  done
12644 +  IFS="$ac_save_ifs"
12645 +  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12646 +fi
12647 +fi
12648 +
12649 +NM="$lt_cv_path_NM"
12650 +echo "$as_me:$LINENO: result: $NM" >&5
12651 +echo "${ECHO_T}$NM" >&6
12652 +
12653 +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12654 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
12655 +if test "${lt_cv_path_SED+set}" = set; then
12656 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12657 +else
12658 +  # Loop through the user's path and test for sed and gsed.
12659 +# Then use that list of sed's as ones to test for truncation.
12660 +as_executable_p="test -f"
12661 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12662 +for as_dir in $PATH
12663 +do
12664 +  IFS=$as_save_IFS
12665 +  test -z "$as_dir" && as_dir=.
12666 +  for ac_prog in sed gsed; do
12667 +    for ac_exec_ext in '' $ac_executable_extensions; do
12668 +      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12669 +        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
12670 +      fi
12671 +    done
12672 +  done
12673 +done
12674 +
12675 +  # Create a temporary directory, and hook for its removal unless debugging.
12676 +$debug ||
12677 +{
12678 +  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12679 +  trap '{ (exit 1); exit 1; }' 1 2 13 15
12680 +}
12681 +
12682 +# Create a (secure) tmp directory for tmp files.
12683 +: ${TMPDIR=/tmp}
12684 +{
12685 +  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
12686 +  test -n "$tmp" && test -d "$tmp"
12687 +}  ||
12688 +{
12689 +  tmp=$TMPDIR/sed$$-$RANDOM
12690 +  (umask 077 && mkdir $tmp)
12691 +} ||
12692 +{
12693 +   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12694 +   { (exit 1); exit 1; }
12695 +}
12696 +  _max=0
12697 +  _count=0
12698 +  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12699 +  # along with /bin/sed that truncates output.
12700 +  for _sed in $_sed_list /usr/xpg4/bin/sed; do
12701 +    test ! -f ${_sed} && break
12702 +    cat /dev/null > "$tmp/sed.in"
12703 +    _count=0
12704 +    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
12705 +    # Check for GNU sed and select it if it is found.
12706 +    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
12707 +      lt_cv_path_SED=${_sed}
12708 +      break
12709 +    fi
12710 +    while true; do
12711 +      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
12712 +      mv "$tmp/sed.tmp" "$tmp/sed.in"
12713 +      cp "$tmp/sed.in" "$tmp/sed.nl"
12714 +      echo >>"$tmp/sed.nl"
12715 +      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
12716 +      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
12717 +      # 40000 chars as input seems more than enough
12718 +      test $_count -gt 10 && break
12719 +      _count=`expr $_count + 1`
12720 +      if test $_count -gt $_max; then
12721 +        _max=$_count
12722 +        lt_cv_path_SED=$_sed
12723 +      fi
12724 +    done
12725 +  done
12726 +  rm -rf "$tmp"
12727 +
12728 +fi
12729 +
12730 +if test "X$SED" != "X"; then
12731 +  lt_cv_path_SED=$SED
12732 +else
12733 +  SED=$lt_cv_path_SED
12734 +fi
12735 +echo "$as_me:$LINENO: result: $SED" >&5
12736 +echo "${ECHO_T}$SED" >&6
12737 +
12738 +echo "$as_me:$LINENO: checking whether ln -s works" >&5
12739 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12740 +LN_S=$as_ln_s
12741 +if test "$LN_S" = "ln -s"; then
12742 +  echo "$as_me:$LINENO: result: yes" >&5
12743 +echo "${ECHO_T}yes" >&6
12744 +else
12745 +  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12746 +echo "${ECHO_T}no, using $LN_S" >&6
12747 +fi
12748 +
12749 +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12750 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
12751 +if test "${lt_cv_deplibs_check_method+set}" = set; then
12752 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12753 +else
12754 +  lt_cv_file_magic_cmd='$MAGIC_CMD'
12755 +lt_cv_file_magic_test_file=
12756 +lt_cv_deplibs_check_method='unknown'
12757 +# Need to set the preceding variable on all platforms that support
12758 +# interlibrary dependencies.
12759 +# 'none' -- dependencies not supported.
12760 +# `unknown' -- same as none, but documents that we really don't know.
12761 +# 'pass_all' -- all dependencies passed with no checks.
12762 +# 'test_compile' -- check by making test program.
12763 +# 'file_magic [[regex]]' -- check by looking for files in library path
12764 +# which responds to the $file_magic_cmd with a given egrep regex.
12765 +# If you have `file' or equivalent on your system and you're not sure
12766 +# whether `pass_all' will *always* work, you probably want this one.
12767 +
12768 +case $host_os in
12769 +aix4* | aix5*)
12770 +  lt_cv_deplibs_check_method=pass_all
12771 +  ;;
12772 +
12773 +beos*)
12774 +  lt_cv_deplibs_check_method=pass_all
12775 +  ;;
12776 +
12777 +bsdi4*)
12778 +  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12779 +  lt_cv_file_magic_cmd='/usr/bin/file -L'
12780 +  lt_cv_file_magic_test_file=/shlib/libc.so
12781 +  ;;
12782 +
12783 +cygwin* | mingw* | pw32*)
12784 +  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12785 +  lt_cv_file_magic_cmd='$OBJDUMP -f'
12786 +  ;;
12787 +
12788 +darwin* | rhapsody*)
12789 +  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
12790 +  lt_cv_file_magic_cmd='/usr/bin/file -L'
12791 +  case "$host_os" in
12792 +  rhapsody* | darwin1.[012])
12793 +    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
12794 +    ;;
12795 +  *) # Darwin 1.3 on
12796 +    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
12797 +    ;;
12798 +  esac
12799 +  ;;
12800 +
12801 +freebsd*)
12802 +  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12803 +    case $host_cpu in
12804 +    i*86 )
12805 +      # Not sure whether the presence of OpenBSD here was a mistake.
12806 +      # Let's accept both of them until this is cleared up.
12807 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
12808 +      lt_cv_file_magic_cmd=/usr/bin/file
12809 +      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12810 +      ;;
12811 +    esac
12812 +  else
12813 +    lt_cv_deplibs_check_method=pass_all
12814 +  fi
12815 +  ;;
12816 +
12817 +gnu*)
12818 +  lt_cv_deplibs_check_method=pass_all
12819 +  ;;
12820 +
12821 +hpux10.20*|hpux11*)
12822 +  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12823 +  lt_cv_file_magic_cmd=/usr/bin/file
12824 +  lt_cv_file_magic_test_file=/usr/lib/libc.sl
12825 +  ;;
12826 +
12827 +irix5* | irix6* | nonstopux*)
12828 +  case $host_os in
12829 +  irix5* | nonstopux*)
12830 +    # this will be overridden with pass_all, but let us keep it just in case
12831 +    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
12832 +    ;;
12833 +  *)
12834 +    case $LD in
12835 +    *-32|*"-32 ") libmagic=32-bit;;
12836 +    *-n32|*"-n32 ") libmagic=N32;;
12837 +    *-64|*"-64 ") libmagic=64-bit;;
12838 +    *) libmagic=never-match;;
12839 +    esac
12840 +    # this will be overridden with pass_all, but let us keep it just in case
12841 +    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
12842 +    ;;
12843 +  esac
12844 +  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
12845 +  lt_cv_deplibs_check_method=pass_all
12846 +  ;;
12847 +
12848 +# This must be Linux ELF.
12849 +linux-gnu*)
12850 +  case $host_cpu in
12851 +  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
12852 +    lt_cv_deplibs_check_method=pass_all ;;
12853 +  *)
12854 +    # glibc up to 2.1.1 does not perform some relocations on ARM
12855 +    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
12856 +  esac
12857 +  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
12858 +  ;;
12859 +
12860 +netbsd*)
12861 +  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12862 +    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
12863 +  else
12864 +    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
12865 +  fi
12866 +  ;;
12867 +
12868 +newos6*)
12869 +  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12870 +  lt_cv_file_magic_cmd=/usr/bin/file
12871 +  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12872 +  ;;
12873 +
12874 +openbsd*)
12875 +  lt_cv_file_magic_cmd=/usr/bin/file
12876 +  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12877 +  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12878 +    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
12879 +  else
12880 +    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
12881 +  fi
12882 +  ;;
12883 +
12884 +osf3* | osf4* | osf5*)
12885 +  # this will be overridden with pass_all, but let us keep it just in case
12886 +  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
12887 +  lt_cv_file_magic_test_file=/shlib/libc.so
12888 +  lt_cv_deplibs_check_method=pass_all
12889 +  ;;
12890 +
12891 +sco3.2v5*)
12892 +  lt_cv_deplibs_check_method=pass_all
12893 +  ;;
12894 +
12895 +solaris*)
12896 +  lt_cv_deplibs_check_method=pass_all
12897 +  lt_cv_file_magic_test_file=/lib/libc.so
12898 +  ;;
12899 +
12900 +sysv5uw[78]* | sysv4*uw2*)
12901 +  lt_cv_deplibs_check_method=pass_all
12902 +  ;;
12903 +
12904 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12905 +  case $host_vendor in
12906 +  motorola)
12907 +    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]'
12908 +    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12909 +    ;;
12910 +  ncr)
12911 +    lt_cv_deplibs_check_method=pass_all
12912 +    ;;
12913 +  sequent)
12914 +    lt_cv_file_magic_cmd='/bin/file'
12915 +    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12916 +    ;;
12917 +  sni)
12918 +    lt_cv_file_magic_cmd='/bin/file'
12919 +    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12920 +    lt_cv_file_magic_test_file=/lib/libc.so
12921 +    ;;
12922 +  siemens)
12923 +    lt_cv_deplibs_check_method=pass_all
12924 +    ;;
12925 +  esac
12926 +  ;;
12927 +esac
12928 +
12929 +fi
12930 +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12931 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
12932 +file_magic_cmd=$lt_cv_file_magic_cmd
12933 +deplibs_check_method=$lt_cv_deplibs_check_method
12934 +
12935 +
12936 +
12937 +
12938 +
12939 +
12940 +
12941 +# Check for command to grab the raw symbol name followed by C symbol from nm.
12942 +echo "$as_me:$LINENO: checking command to parse $NM output" >&5
12943 +echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
12944 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12945 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12946 +else
12947 +  
12948 +# These are sane defaults that work on at least a few old systems.
12949 +# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12950 +
12951 +# Character class describing NM global symbol codes.
12952 +symcode='[BCDEGRST]'
12953 +
12954 +# Regexp to match symbols that can be accessed directly from C.
12955 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12956 +
12957 +# Transform the above into a raw symbol and a C symbol.
12958 +symxfrm='\1 \2\3 \3'
12959 +
12960 +# Transform an extracted symbol line into a proper C declaration
12961 +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
12962 +
12963 +# Transform an extracted symbol line into symbol name and symbol address
12964 +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
12965 +
12966 +# Define system-specific variables.
12967 +case $host_os in
12968 +aix*)
12969 +  symcode='[BCDT]'
12970 +  ;;
12971 +cygwin* | mingw* | pw32*)
12972 +  symcode='[ABCDGISTW]'
12973 +  ;;
12974 +hpux*) # Its linker distinguishes data from code symbols
12975 +  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12976 +  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
12977 +  ;;
12978 +irix* | nonstopux*)
12979 +  symcode='[BCDEGRST]'
12980 +  ;;
12981 +osf*)
12982 +  symcode='[BCDEGQRST]'
12983 +  ;;
12984 +solaris* | sysv5*)
12985 +  symcode='[BDT]'
12986 +  ;;
12987 +sysv4)
12988 +  symcode='[DFNSTU]'
12989 +  ;;
12990 +esac
12991 +
12992 +# Handle CRLF in mingw tool chain
12993 +opt_cr=
12994 +case $host_os in
12995 +mingw*)
12996 +  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12997 +  ;;
12998 +esac
12999 +
13000 +# If we're using GNU nm, then use its standard symbol codes.
13001 +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
13002 +  symcode='[ABCDGISTW]'
13003 +fi
13004 +
13005 +# Try without a prefix undercore, then with it.
13006 +for ac_symprfx in "" "_"; do
13007 +
13008 +  # Write the raw and C identifiers.
13009 +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[        ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
13010 +
13011 +  # Check to see that the pipe works correctly.
13012 +  pipe_works=no
13013 +  rm -f conftest*
13014 +  cat > conftest.$ac_ext <<EOF
13015 +#ifdef __cplusplus
13016 +extern "C" {
13017 +#endif
13018 +char nm_test_var;
13019 +void nm_test_func(){}
13020 +#ifdef __cplusplus
13021 +}
13022 +#endif
13023 +int main(){nm_test_var='a';nm_test_func();return(0);}
13024 +EOF
13025 +
13026 +  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027 +  (eval $ac_compile) 2>&5
13028 +  ac_status=$?
13029 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 +  (exit $ac_status); }; then
13031 +    # Now try to grab the symbols.
13032 +    nlist=conftest.nm
13033 +    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13034 +  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13035 +  ac_status=$?
13036 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 +  (exit $ac_status); } && test -s "$nlist"; then
13038 +      # Try sorting and uniquifying the output.
13039 +      if sort "$nlist" | uniq > "$nlist"T; then
13040 +       mv -f "$nlist"T "$nlist"
13041 +      else
13042 +       rm -f "$nlist"T
13043 +      fi
13044 +
13045 +      # Make sure that we snagged all the symbols we need.
13046 +      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
13047 +       if egrep ' nm_test_func$' "$nlist" >/dev/null; then
13048 +         cat <<EOF > conftest.$ac_ext
13049 +#ifdef __cplusplus
13050 +extern "C" {
13051 +#endif
13052 +
13053 +EOF
13054 +         # Now generate the symbol file.
13055 +         eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
13056 +
13057 +         cat <<EOF >> conftest.$ac_ext
13058 +#if defined (__STDC__) && __STDC__
13059 +# define lt_ptr void *
13060 +#else
13061 +# define lt_ptr char *
13062 +# define const
13063 +#endif
13064 +
13065 +/* The mapping between symbol names and symbols. */
13066 +const struct {
13067 +  const char *name;
13068 +  lt_ptr address;
13069 +}
13070 +lt_preloaded_symbols[] =
13071 +{
13072 +EOF
13073 +         sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
13074 +         cat <<\EOF >> conftest.$ac_ext
13075 +  {0, (lt_ptr) 0}
13076 +};
13077 +
13078 +#ifdef __cplusplus
13079 +}
13080 +#endif
13081 +EOF
13082 +         # Now try linking the two files.
13083 +         mv conftest.$ac_objext conftstm.$ac_objext
13084 +         save_LIBS="$LIBS"
13085 +         save_CFLAGS="$CFLAGS"
13086 +         LIBS="conftstm.$ac_objext"
13087 +         CFLAGS="$CFLAGS$no_builtin_flag"
13088 +         if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 +  (eval $ac_link) 2>&5
13090 +  ac_status=$?
13091 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 +  (exit $ac_status); } && test -s conftest$ac_exeext; then
13093 +           pipe_works=yes
13094 +         fi
13095 +         LIBS="$save_LIBS"
13096 +         CFLAGS="$save_CFLAGS"
13097 +       else
13098 +         echo "cannot find nm_test_func in $nlist" >&5
13099 +       fi
13100 +      else
13101 +       echo "cannot find nm_test_var in $nlist" >&5
13102 +      fi
13103 +    else
13104 +      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13105 +    fi
13106 +  else
13107 +    echo "$progname: failed program was:" >&5
13108 +    cat conftest.$ac_ext >&5
13109 +  fi
13110 +  rm -f conftest* conftst*
13111 +
13112 +  # Do not use the global_symbol_pipe unless it works.
13113 +  if test "$pipe_works" = yes; then
13114 +    break
13115 +  else
13116 +    lt_cv_sys_global_symbol_pipe=
13117 +  fi
13118 +done
13119 +
13120 +fi
13121 +
13122 +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
13123 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
13124 +  global_symbol_to_cdecl=
13125 +  global_symbol_to_c_name_address=
13126 +else
13127 +  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
13128 +  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
13129 +fi
13130 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
13131 +then
13132 +  echo "$as_me:$LINENO: result: failed" >&5
13133 +echo "${ECHO_T}failed" >&6
13134 +else
13135 +  echo "$as_me:$LINENO: result: ok" >&5
13136 +echo "${ECHO_T}ok" >&6
13137 +fi
13138 +
13139 +ac_ext=c
13140 +ac_cpp='$CPP $CPPFLAGS'
13141 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13144 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13145 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13146 +# On Suns, sometimes $CPP names a directory.
13147 +if test -n "$CPP" && test -d "$CPP"; then
13148 +  CPP=
13149 +fi
13150 +if test -z "$CPP"; then
13151 +  if test "${ac_cv_prog_CPP+set}" = set; then
13152 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13153 +else
13154 +      # Double quotes because CPP needs to be expanded
13155 +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13156 +    do
13157 +      ac_preproc_ok=false
13158 +for ac_c_preproc_warn_flag in '' yes
13159 +do
13160 +  # Use a header file that comes with gcc, so configuring glibc
13161 +  # with a fresh cross-compiler works.
13162 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13163 +  # <limits.h> exists even on freestanding compilers.
13164 +  # On the NeXT, cc -E runs the code through the compiler's parser,
13165 +  # not just through cpp. "Syntax error" is here to catch this case.
13166 +  cat >conftest.$ac_ext <<_ACEOF
13167 +/* confdefs.h.  */
13168 +_ACEOF
13169 +cat confdefs.h >>conftest.$ac_ext
13170 +cat >>conftest.$ac_ext <<_ACEOF
13171 +/* end confdefs.h.  */
13172 +@%:@ifdef __STDC__
13173 +@%:@ include <limits.h>
13174 +@%:@else
13175 +@%:@ include <assert.h>
13176 +@%:@endif
13177 +                    Syntax error
13178 +_ACEOF
13179 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13180 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13181 +  ac_status=$?
13182 +  grep -v '^ *+' conftest.er1 >conftest.err
13183 +  rm -f conftest.er1
13184 +  cat conftest.err >&5
13185 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 +  (exit $ac_status); } >/dev/null; then
13187 +  if test -s conftest.err; then
13188 +    ac_cpp_err=$ac_c_preproc_warn_flag
13189 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13190 +  else
13191 +    ac_cpp_err=
13192 +  fi
13193 +else
13194 +  ac_cpp_err=yes
13195 +fi
13196 +if test -z "$ac_cpp_err"; then
13197 +  :
13198 +else
13199 +  echo "$as_me: failed program was:" >&5
13200 +sed 's/^/| /' conftest.$ac_ext >&5
13201 +
13202 +  # Broken: fails on valid input.
13203 +continue
13204 +fi
13205 +rm -f conftest.err conftest.$ac_ext
13206 +
13207 +  # OK, works on sane cases.  Now check whether non-existent headers
13208 +  # can be detected and how.
13209 +  cat >conftest.$ac_ext <<_ACEOF
13210 +/* confdefs.h.  */
13211 +_ACEOF
13212 +cat confdefs.h >>conftest.$ac_ext
13213 +cat >>conftest.$ac_ext <<_ACEOF
13214 +/* end confdefs.h.  */
13215 +@%:@include <ac_nonexistent.h>
13216 +_ACEOF
13217 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13218 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13219 +  ac_status=$?
13220 +  grep -v '^ *+' conftest.er1 >conftest.err
13221 +  rm -f conftest.er1
13222 +  cat conftest.err >&5
13223 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 +  (exit $ac_status); } >/dev/null; then
13225 +  if test -s conftest.err; then
13226 +    ac_cpp_err=$ac_c_preproc_warn_flag
13227 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13228 +  else
13229 +    ac_cpp_err=
13230 +  fi
13231 +else
13232 +  ac_cpp_err=yes
13233 +fi
13234 +if test -z "$ac_cpp_err"; then
13235 +  # Broken: success on invalid input.
13236 +continue
13237 +else
13238 +  echo "$as_me: failed program was:" >&5
13239 +sed 's/^/| /' conftest.$ac_ext >&5
13240 +
13241 +  # Passes both tests.
13242 +ac_preproc_ok=:
13243 +break
13244 +fi
13245 +rm -f conftest.err conftest.$ac_ext
13246 +
13247 +done
13248 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13249 +rm -f conftest.err conftest.$ac_ext
13250 +if $ac_preproc_ok; then
13251 +  break
13252 +fi
13253 +
13254 +    done
13255 +    ac_cv_prog_CPP=$CPP
13256 +  
13257 +fi
13258 +  CPP=$ac_cv_prog_CPP
13259 +else
13260 +  ac_cv_prog_CPP=$CPP
13261 +fi
13262 +echo "$as_me:$LINENO: result: $CPP" >&5
13263 +echo "${ECHO_T}$CPP" >&6
13264 +ac_preproc_ok=false
13265 +for ac_c_preproc_warn_flag in '' yes
13266 +do
13267 +  # Use a header file that comes with gcc, so configuring glibc
13268 +  # with a fresh cross-compiler works.
13269 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13270 +  # <limits.h> exists even on freestanding compilers.
13271 +  # On the NeXT, cc -E runs the code through the compiler's parser,
13272 +  # not just through cpp. "Syntax error" is here to catch this case.
13273 +  cat >conftest.$ac_ext <<_ACEOF
13274 +/* confdefs.h.  */
13275 +_ACEOF
13276 +cat confdefs.h >>conftest.$ac_ext
13277 +cat >>conftest.$ac_ext <<_ACEOF
13278 +/* end confdefs.h.  */
13279 +@%:@ifdef __STDC__
13280 +@%:@ include <limits.h>
13281 +@%:@else
13282 +@%:@ include <assert.h>
13283 +@%:@endif
13284 +                    Syntax error
13285 +_ACEOF
13286 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13287 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13288 +  ac_status=$?
13289 +  grep -v '^ *+' conftest.er1 >conftest.err
13290 +  rm -f conftest.er1
13291 +  cat conftest.err >&5
13292 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 +  (exit $ac_status); } >/dev/null; then
13294 +  if test -s conftest.err; then
13295 +    ac_cpp_err=$ac_c_preproc_warn_flag
13296 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13297 +  else
13298 +    ac_cpp_err=
13299 +  fi
13300 +else
13301 +  ac_cpp_err=yes
13302 +fi
13303 +if test -z "$ac_cpp_err"; then
13304 +  :
13305 +else
13306 +  echo "$as_me: failed program was:" >&5
13307 +sed 's/^/| /' conftest.$ac_ext >&5
13308 +
13309 +  # Broken: fails on valid input.
13310 +continue
13311 +fi
13312 +rm -f conftest.err conftest.$ac_ext
13313 +
13314 +  # OK, works on sane cases.  Now check whether non-existent headers
13315 +  # can be detected and how.
13316 +  cat >conftest.$ac_ext <<_ACEOF
13317 +/* confdefs.h.  */
13318 +_ACEOF
13319 +cat confdefs.h >>conftest.$ac_ext
13320 +cat >>conftest.$ac_ext <<_ACEOF
13321 +/* end confdefs.h.  */
13322 +@%:@include <ac_nonexistent.h>
13323 +_ACEOF
13324 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13325 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13326 +  ac_status=$?
13327 +  grep -v '^ *+' conftest.er1 >conftest.err
13328 +  rm -f conftest.er1
13329 +  cat conftest.err >&5
13330 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 +  (exit $ac_status); } >/dev/null; then
13332 +  if test -s conftest.err; then
13333 +    ac_cpp_err=$ac_c_preproc_warn_flag
13334 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13335 +  else
13336 +    ac_cpp_err=
13337 +  fi
13338 +else
13339 +  ac_cpp_err=yes
13340 +fi
13341 +if test -z "$ac_cpp_err"; then
13342 +  # Broken: success on invalid input.
13343 +continue
13344 +else
13345 +  echo "$as_me: failed program was:" >&5
13346 +sed 's/^/| /' conftest.$ac_ext >&5
13347 +
13348 +  # Passes both tests.
13349 +ac_preproc_ok=:
13350 +break
13351 +fi
13352 +rm -f conftest.err conftest.$ac_ext
13353 +
13354 +done
13355 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13356 +rm -f conftest.err conftest.$ac_ext
13357 +if $ac_preproc_ok; then
13358 +  :
13359 +else
13360 +  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13361 +See \`config.log' for more details." >&5
13362 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13363 +See \`config.log' for more details." >&2;}
13364 +   { (exit 1); exit 1; }; }
13365 +fi
13366 +
13367 +ac_ext=c
13368 +ac_cpp='$CPP $CPPFLAGS'
13369 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13370 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13371 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13372 +
13373 +
13374 +echo "$as_me:$LINENO: checking for egrep" >&5
13375 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13376 +if test "${ac_cv_prog_egrep+set}" = set; then
13377 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13378 +else
13379 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13380 +    then ac_cv_prog_egrep='grep -E'
13381 +    else ac_cv_prog_egrep='egrep'
13382 +    fi
13383 +fi
13384 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13385 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13386 + EGREP=$ac_cv_prog_egrep
13387
13388 +
13389 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13390 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13391 +if test "${ac_cv_header_stdc+set}" = set; then
13392 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13393 +else
13394 +  cat >conftest.$ac_ext <<_ACEOF
13395 +/* confdefs.h.  */
13396 +_ACEOF
13397 +cat confdefs.h >>conftest.$ac_ext
13398 +cat >>conftest.$ac_ext <<_ACEOF
13399 +/* end confdefs.h.  */
13400 +#include <stdlib.h>
13401 +#include <stdarg.h>
13402 +#include <string.h>
13403 +#include <float.h>
13404 +
13405 +int
13406 +main ()
13407 +{
13408 +
13409 +  ;
13410 +  return 0;
13411 +}
13412 +_ACEOF
13413 +rm -f conftest.$ac_objext
13414 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13415 +  (eval $ac_compile) 2>conftest.er1
13416 +  ac_status=$?
13417 +  grep -v '^ *+' conftest.er1 >conftest.err
13418 +  rm -f conftest.er1
13419 +  cat conftest.err >&5
13420 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 +  (exit $ac_status); } &&
13422 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13423 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 +  (eval $ac_try) 2>&5
13425 +  ac_status=$?
13426 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 +  (exit $ac_status); }; } &&
13428 +        { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13434 +  ac_cv_header_stdc=yes
13435 +else
13436 +  echo "$as_me: failed program was:" >&5
13437 +sed 's/^/| /' conftest.$ac_ext >&5
13438 +
13439 +ac_cv_header_stdc=no
13440 +fi
13441 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442 +
13443 +if test $ac_cv_header_stdc = yes; then
13444 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13445 +  cat >conftest.$ac_ext <<_ACEOF
13446 +/* confdefs.h.  */
13447 +_ACEOF
13448 +cat confdefs.h >>conftest.$ac_ext
13449 +cat >>conftest.$ac_ext <<_ACEOF
13450 +/* end confdefs.h.  */
13451 +#include <string.h>
13452 +
13453 +_ACEOF
13454 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13455 +  $EGREP "memchr" >/dev/null 2>&1; then
13456 +  :
13457 +else
13458 +  ac_cv_header_stdc=no
13459 +fi
13460 +rm -f conftest*
13461 +
13462 +fi
13463 +
13464 +if test $ac_cv_header_stdc = yes; then
13465 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13466 +  cat >conftest.$ac_ext <<_ACEOF
13467 +/* confdefs.h.  */
13468 +_ACEOF
13469 +cat confdefs.h >>conftest.$ac_ext
13470 +cat >>conftest.$ac_ext <<_ACEOF
13471 +/* end confdefs.h.  */
13472 +#include <stdlib.h>
13473 +
13474 +_ACEOF
13475 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13476 +  $EGREP "free" >/dev/null 2>&1; then
13477 +  :
13478 +else
13479 +  ac_cv_header_stdc=no
13480 +fi
13481 +rm -f conftest*
13482 +
13483 +fi
13484 +
13485 +if test $ac_cv_header_stdc = yes; then
13486 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13487 +  if test "$cross_compiling" = yes; then
13488 +  :
13489 +else
13490 +  cat >conftest.$ac_ext <<_ACEOF
13491 +/* confdefs.h.  */
13492 +_ACEOF
13493 +cat confdefs.h >>conftest.$ac_ext
13494 +cat >>conftest.$ac_ext <<_ACEOF
13495 +/* end confdefs.h.  */
13496 +#include <ctype.h>
13497 +#if ((' ' & 0x0FF) == 0x020)
13498 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13499 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13500 +#else
13501 +# define ISLOWER(c) \
13502 +                  (('a' <= (c) && (c) <= 'i') \
13503 +                    || ('j' <= (c) && (c) <= 'r') \
13504 +                    || ('s' <= (c) && (c) <= 'z'))
13505 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13506 +#endif
13507 +
13508 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13509 +int
13510 +main ()
13511 +{
13512 +  int i;
13513 +  for (i = 0; i < 256; i++)
13514 +    if (XOR (islower (i), ISLOWER (i))
13515 +       || toupper (i) != TOUPPER (i))
13516 +      exit(2);
13517 +  exit (0);
13518 +}
13519 +_ACEOF
13520 +rm -f conftest$ac_exeext
13521 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522 +  (eval $ac_link) 2>&5
13523 +  ac_status=$?
13524 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13526 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 +  (eval $ac_try) 2>&5
13528 +  ac_status=$?
13529 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 +  (exit $ac_status); }; }; then
13531 +  :
13532 +else
13533 +  echo "$as_me: program exited with status $ac_status" >&5
13534 +echo "$as_me: failed program was:" >&5
13535 +sed 's/^/| /' conftest.$ac_ext >&5
13536 +
13537 +( exit $ac_status )
13538 +ac_cv_header_stdc=no
13539 +fi
13540 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13541 +fi
13542 +fi
13543 +fi
13544 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13545 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
13546 +if test $ac_cv_header_stdc = yes; then
13547 +  
13548 +cat >>confdefs.h <<\_ACEOF
13549 +@%:@define STDC_HEADERS 1
13550 +_ACEOF
13551 +
13552 +fi
13553 +
13554 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13555 +
13556 +
13557 +
13558 +
13559 +
13560 +
13561 +
13562 +
13563 +
13564 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13565 +                 inttypes.h stdint.h unistd.h
13566 +do
13567 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13568 +echo "$as_me:$LINENO: checking for $ac_header" >&5
13569 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13570 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13571 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13572 +else
13573 +  cat >conftest.$ac_ext <<_ACEOF
13574 +/* confdefs.h.  */
13575 +_ACEOF
13576 +cat confdefs.h >>conftest.$ac_ext
13577 +cat >>conftest.$ac_ext <<_ACEOF
13578 +/* end confdefs.h.  */
13579 +$ac_includes_default
13580 +
13581 +@%:@include <$ac_header>
13582 +_ACEOF
13583 +rm -f conftest.$ac_objext
13584 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585 +  (eval $ac_compile) 2>conftest.er1
13586 +  ac_status=$?
13587 +  grep -v '^ *+' conftest.er1 >conftest.err
13588 +  rm -f conftest.er1
13589 +  cat conftest.err >&5
13590 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 +  (exit $ac_status); } &&
13592 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13593 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 +  (eval $ac_try) 2>&5
13595 +  ac_status=$?
13596 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 +  (exit $ac_status); }; } &&
13598 +        { ac_try='test -s conftest.$ac_objext'
13599 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 +  (eval $ac_try) 2>&5
13601 +  ac_status=$?
13602 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 +  (exit $ac_status); }; }; then
13604 +  eval "$as_ac_Header=yes"
13605 +else
13606 +  echo "$as_me: failed program was:" >&5
13607 +sed 's/^/| /' conftest.$ac_ext >&5
13608 +
13609 +eval "$as_ac_Header=no"
13610 +fi
13611 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13612 +fi
13613 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13614 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13615 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
13616 +  cat >>confdefs.h <<_ACEOF
13617 +@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13618 +_ACEOF
13619
13620 +fi
13621 +
13622 +done
13623 +
13624 +
13625 +
13626 +for ac_header in dlfcn.h
13627 +do
13628 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13629 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13630 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
13631 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13632 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13633 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13634 +fi
13635 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13636 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13637 +else
13638 +  # Is the header compilable?
13639 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
13640 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13641 +cat >conftest.$ac_ext <<_ACEOF
13642 +/* confdefs.h.  */
13643 +_ACEOF
13644 +cat confdefs.h >>conftest.$ac_ext
13645 +cat >>conftest.$ac_ext <<_ACEOF
13646 +/* end confdefs.h.  */
13647 +$ac_includes_default
13648 +@%:@include <$ac_header>
13649 +_ACEOF
13650 +rm -f conftest.$ac_objext
13651 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13652 +  (eval $ac_compile) 2>conftest.er1
13653 +  ac_status=$?
13654 +  grep -v '^ *+' conftest.er1 >conftest.err
13655 +  rm -f conftest.er1
13656 +  cat conftest.err >&5
13657 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 +  (exit $ac_status); } &&
13659 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13660 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 +  (eval $ac_try) 2>&5
13662 +  ac_status=$?
13663 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 +  (exit $ac_status); }; } &&
13665 +        { ac_try='test -s conftest.$ac_objext'
13666 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 +  (eval $ac_try) 2>&5
13668 +  ac_status=$?
13669 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 +  (exit $ac_status); }; }; then
13671 +  ac_header_compiler=yes
13672 +else
13673 +  echo "$as_me: failed program was:" >&5
13674 +sed 's/^/| /' conftest.$ac_ext >&5
13675 +
13676 +ac_header_compiler=no
13677 +fi
13678 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13679 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13680 +echo "${ECHO_T}$ac_header_compiler" >&6
13681 +
13682 +# Is the header present?
13683 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
13684 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13685 +cat >conftest.$ac_ext <<_ACEOF
13686 +/* confdefs.h.  */
13687 +_ACEOF
13688 +cat confdefs.h >>conftest.$ac_ext
13689 +cat >>conftest.$ac_ext <<_ACEOF
13690 +/* end confdefs.h.  */
13691 +@%:@include <$ac_header>
13692 +_ACEOF
13693 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13694 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13695 +  ac_status=$?
13696 +  grep -v '^ *+' conftest.er1 >conftest.err
13697 +  rm -f conftest.er1
13698 +  cat conftest.err >&5
13699 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 +  (exit $ac_status); } >/dev/null; then
13701 +  if test -s conftest.err; then
13702 +    ac_cpp_err=$ac_c_preproc_warn_flag
13703 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13704 +  else
13705 +    ac_cpp_err=
13706 +  fi
13707 +else
13708 +  ac_cpp_err=yes
13709 +fi
13710 +if test -z "$ac_cpp_err"; then
13711 +  ac_header_preproc=yes
13712 +else
13713 +  echo "$as_me: failed program was:" >&5
13714 +sed 's/^/| /' conftest.$ac_ext >&5
13715 +
13716 +  ac_header_preproc=no
13717 +fi
13718 +rm -f conftest.err conftest.$ac_ext
13719 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13720 +echo "${ECHO_T}$ac_header_preproc" >&6
13721 +
13722 +# So?  What about this header?
13723 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13724 +  yes:no: )
13725 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13726 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13727 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13728 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13729 +    ac_header_preproc=yes
13730 +    ;;
13731 +  no:yes:* )
13732 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13733 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13734 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13735 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13736 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13737 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13738 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13739 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13740 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13741 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13742 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13743 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13744 +    (
13745 +      cat <<\_ASBOX
13746 +@%:@@%:@ ------------------------------------------ @%:@@%:@
13747 +@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
13748 +@%:@@%:@ ------------------------------------------ @%:@@%:@
13749 +_ASBOX
13750 +    ) |
13751 +      sed "s/^/$as_me: WARNING:     /" >&2
13752 +    ;;
13753 +esac
13754 +echo "$as_me:$LINENO: checking for $ac_header" >&5
13755 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13756 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13757 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13758 +else
13759 +  eval "$as_ac_Header=\$ac_header_preproc"
13760 +fi
13761 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13762 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13763 +
13764 +fi
13765 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
13766 +  cat >>confdefs.h <<_ACEOF
13767 +@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13768 +_ACEOF
13769
13770 +fi
13771 +
13772 +done
13773 +
13774 +
13775 +
13776 +
13777 +
13778 +
13779 +# Only perform the check for file, if the check method requires it
13780 +case $deplibs_check_method in
13781 +file_magic*)
13782 +  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13783 +    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13784 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
13785 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13786 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13787 +else
13788 +  case $MAGIC_CMD in
13789 +  /*)
13790 +  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13791 +  ;;
13792 +  ?:/*)
13793 +  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
13794 +  ;;
13795 +  *)
13796 +  ac_save_MAGIC_CMD="$MAGIC_CMD"
13797 +  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
13798 +  ac_dummy="/usr/bin:$PATH"
13799 +  for ac_dir in $ac_dummy; do
13800 +    test -z "$ac_dir" && ac_dir=.
13801 +    if test -f $ac_dir/${ac_tool_prefix}file; then
13802 +      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13803 +      if test -n "$file_magic_test_file"; then
13804 +       case $deplibs_check_method in
13805 +       "file_magic "*)
13806 +         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
13807 +         MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13808 +         if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13809 +           egrep "$file_magic_regex" > /dev/null; then
13810 +           :
13811 +         else
13812 +           cat <<EOF 1>&2
13813 +
13814 +*** Warning: the command libtool uses to detect shared libraries,
13815 +*** $file_magic_cmd, produces output that libtool cannot recognize.
13816 +*** The result is that libtool may fail to recognize shared libraries
13817 +*** as such.  This will affect the creation of libtool libraries that
13818 +*** depend on shared libraries, but programs linked with such libtool
13819 +*** libraries will work regardless of this problem.  Nevertheless, you
13820 +*** may want to report the problem to your system manager and/or to
13821 +*** bug-libtool@gnu.org
13822 +
13823 +EOF
13824 +         fi ;;
13825 +       esac
13826 +      fi
13827 +      break
13828 +    fi
13829 +  done
13830 +  IFS="$ac_save_ifs"
13831 +  MAGIC_CMD="$ac_save_MAGIC_CMD"
13832 +  ;;
13833 +esac
13834 +fi
13835 +
13836 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13837 +if test -n "$MAGIC_CMD"; then
13838 +  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13839 +echo "${ECHO_T}$MAGIC_CMD" >&6
13840 +else
13841 +  echo "$as_me:$LINENO: result: no" >&5
13842 +echo "${ECHO_T}no" >&6
13843 +fi
13844 +
13845 +if test -z "$lt_cv_path_MAGIC_CMD"; then
13846 +  if test -n "$ac_tool_prefix"; then
13847 +    echo "$as_me:$LINENO: checking for file" >&5
13848 +echo $ECHO_N "checking for file... $ECHO_C" >&6
13849 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13850 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13851 +else
13852 +  case $MAGIC_CMD in
13853 +  /*)
13854 +  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13855 +  ;;
13856 +  ?:/*)
13857 +  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
13858 +  ;;
13859 +  *)
13860 +  ac_save_MAGIC_CMD="$MAGIC_CMD"
13861 +  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
13862 +  ac_dummy="/usr/bin:$PATH"
13863 +  for ac_dir in $ac_dummy; do
13864 +    test -z "$ac_dir" && ac_dir=.
13865 +    if test -f $ac_dir/file; then
13866 +      lt_cv_path_MAGIC_CMD="$ac_dir/file"
13867 +      if test -n "$file_magic_test_file"; then
13868 +       case $deplibs_check_method in
13869 +       "file_magic "*)
13870 +         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
13871 +         MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13872 +         if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13873 +           egrep "$file_magic_regex" > /dev/null; then
13874 +           :
13875 +         else
13876 +           cat <<EOF 1>&2
13877 +
13878 +*** Warning: the command libtool uses to detect shared libraries,
13879 +*** $file_magic_cmd, produces output that libtool cannot recognize.
13880 +*** The result is that libtool may fail to recognize shared libraries
13881 +*** as such.  This will affect the creation of libtool libraries that
13882 +*** depend on shared libraries, but programs linked with such libtool
13883 +*** libraries will work regardless of this problem.  Nevertheless, you
13884 +*** may want to report the problem to your system manager and/or to
13885 +*** bug-libtool@gnu.org
13886 +
13887 +EOF
13888 +         fi ;;
13889 +       esac
13890 +      fi
13891 +      break
13892 +    fi
13893 +  done
13894 +  IFS="$ac_save_ifs"
13895 +  MAGIC_CMD="$ac_save_MAGIC_CMD"
13896 +  ;;
13897 +esac
13898 +fi
13899 +
13900 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13901 +if test -n "$MAGIC_CMD"; then
13902 +  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13903 +echo "${ECHO_T}$MAGIC_CMD" >&6
13904 +else
13905 +  echo "$as_me:$LINENO: result: no" >&5
13906 +echo "${ECHO_T}no" >&6
13907 +fi
13908 +
13909 +  else
13910 +    MAGIC_CMD=:
13911 +  fi
13912 +fi
13913 +
13914 +  fi
13915 +  ;;
13916 +esac
13917 +
13918 +if test -n "$ac_tool_prefix"; then
13919 +  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13920 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13921 +echo "$as_me:$LINENO: checking for $ac_word" >&5
13922 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13923 +if test "${ac_cv_prog_RANLIB+set}" = set; then
13924 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13925 +else
13926 +  if test -n "$RANLIB"; then
13927 +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13928 +else
13929 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 +for as_dir in $PATH
13931 +do
13932 +  IFS=$as_save_IFS
13933 +  test -z "$as_dir" && as_dir=.
13934 +  for ac_exec_ext in '' $ac_executable_extensions; do
13935 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13936 +    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13937 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13938 +    break 2
13939 +  fi
13940 +done
13941 +done
13942 +
13943 +fi
13944 +fi
13945 +RANLIB=$ac_cv_prog_RANLIB
13946 +if test -n "$RANLIB"; then
13947 +  echo "$as_me:$LINENO: result: $RANLIB" >&5
13948 +echo "${ECHO_T}$RANLIB" >&6
13949 +else
13950 +  echo "$as_me:$LINENO: result: no" >&5
13951 +echo "${ECHO_T}no" >&6
13952 +fi
13953 +
13954 +fi
13955 +if test -z "$ac_cv_prog_RANLIB"; then
13956 +  ac_ct_RANLIB=$RANLIB
13957 +  # Extract the first word of "ranlib", so it can be a program name with args.
13958 +set dummy ranlib; ac_word=$2
13959 +echo "$as_me:$LINENO: checking for $ac_word" >&5
13960 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13961 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13962 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13963 +else
13964 +  if test -n "$ac_ct_RANLIB"; then
13965 +  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13966 +else
13967 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968 +for as_dir in $PATH
13969 +do
13970 +  IFS=$as_save_IFS
13971 +  test -z "$as_dir" && as_dir=.
13972 +  for ac_exec_ext in '' $ac_executable_extensions; do
13973 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13974 +    ac_cv_prog_ac_ct_RANLIB="ranlib"
13975 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 +    break 2
13977 +  fi
13978 +done
13979 +done
13980 +
13981 +  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13982 +fi
13983 +fi
13984 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13985 +if test -n "$ac_ct_RANLIB"; then
13986 +  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13987 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
13988 +else
13989 +  echo "$as_me:$LINENO: result: no" >&5
13990 +echo "${ECHO_T}no" >&6
13991 +fi
13992 +
13993 +  RANLIB=$ac_ct_RANLIB
13994 +else
13995 +  RANLIB="$ac_cv_prog_RANLIB"
13996 +fi
13997 +
13998 +if test -n "$ac_tool_prefix"; then
13999 +  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14000 +set dummy ${ac_tool_prefix}strip; ac_word=$2
14001 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14002 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14003 +if test "${ac_cv_prog_STRIP+set}" = set; then
14004 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14005 +else
14006 +  if test -n "$STRIP"; then
14007 +  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14008 +else
14009 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 +for as_dir in $PATH
14011 +do
14012 +  IFS=$as_save_IFS
14013 +  test -z "$as_dir" && as_dir=.
14014 +  for ac_exec_ext in '' $ac_executable_extensions; do
14015 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14016 +    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14017 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 +    break 2
14019 +  fi
14020 +done
14021 +done
14022 +
14023 +fi
14024 +fi
14025 +STRIP=$ac_cv_prog_STRIP
14026 +if test -n "$STRIP"; then
14027 +  echo "$as_me:$LINENO: result: $STRIP" >&5
14028 +echo "${ECHO_T}$STRIP" >&6
14029 +else
14030 +  echo "$as_me:$LINENO: result: no" >&5
14031 +echo "${ECHO_T}no" >&6
14032 +fi
14033 +
14034 +fi
14035 +if test -z "$ac_cv_prog_STRIP"; then
14036 +  ac_ct_STRIP=$STRIP
14037 +  # Extract the first word of "strip", so it can be a program name with args.
14038 +set dummy strip; ac_word=$2
14039 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14040 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14041 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14042 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14043 +else
14044 +  if test -n "$ac_ct_STRIP"; then
14045 +  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14046 +else
14047 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 +for as_dir in $PATH
14049 +do
14050 +  IFS=$as_save_IFS
14051 +  test -z "$as_dir" && as_dir=.
14052 +  for ac_exec_ext in '' $ac_executable_extensions; do
14053 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14054 +    ac_cv_prog_ac_ct_STRIP="strip"
14055 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 +    break 2
14057 +  fi
14058 +done
14059 +done
14060 +
14061 +  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
14062 +fi
14063 +fi
14064 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14065 +if test -n "$ac_ct_STRIP"; then
14066 +  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14067 +echo "${ECHO_T}$ac_ct_STRIP" >&6
14068 +else
14069 +  echo "$as_me:$LINENO: result: no" >&5
14070 +echo "${ECHO_T}no" >&6
14071 +fi
14072 +
14073 +  STRIP=$ac_ct_STRIP
14074 +else
14075 +  STRIP="$ac_cv_prog_STRIP"
14076 +fi
14077 +
14078 +
14079 +enable_dlopen=no
14080 +enable_win32_dll=no
14081 +
14082 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14083 +if test "${enable_libtool_lock+set}" = set; then
14084 +  enableval="$enable_libtool_lock"
14085 +  
14086 +fi; 
14087 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14088 +
14089 +# Some flags need to be propagated to the compiler or linker for good
14090 +# libtool support.
14091 +case $host in
14092 +*-*-irix6*)
14093 +  # Find out which ABI we are using.
14094 +  echo '#line __oline__ "configure"' > conftest.$ac_ext
14095 +  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 +  (eval $ac_compile) 2>&5
14097 +  ac_status=$?
14098 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 +  (exit $ac_status); }; then
14100 +    case `/usr/bin/file conftest.$ac_objext` in
14101 +    *32-bit*)
14102 +      LD="${LD-ld} -32"
14103 +      ;;
14104 +    *N32*)
14105 +      LD="${LD-ld} -n32"
14106 +      ;;
14107 +    *64-bit*)
14108 +      LD="${LD-ld} -64"
14109 +      ;;
14110 +    esac
14111 +  fi
14112 +  rm -rf conftest*
14113 +  ;;
14114 +
14115 +*-*-sco3.2v5*)
14116 +  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14117 +  SAVE_CFLAGS="$CFLAGS"
14118 +  CFLAGS="$CFLAGS -belf"
14119 +  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14120 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
14121 +if test "${lt_cv_cc_needs_belf+set}" = set; then
14122 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14123 +else
14124 +  
14125 +
14126 +     ac_ext=c
14127 +ac_cpp='$CPP $CPPFLAGS'
14128 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14129 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14130 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14131 +
14132 +     cat >conftest.$ac_ext <<_ACEOF
14133 +/* confdefs.h.  */
14134 +_ACEOF
14135 +cat confdefs.h >>conftest.$ac_ext
14136 +cat >>conftest.$ac_ext <<_ACEOF
14137 +/* end confdefs.h.  */
14138 +
14139 +int
14140 +main ()
14141 +{
14142 +
14143 +  ;
14144 +  return 0;
14145 +}
14146 +_ACEOF
14147 +rm -f conftest.$ac_objext conftest$ac_exeext
14148 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14149 +  (eval $ac_link) 2>conftest.er1
14150 +  ac_status=$?
14151 +  grep -v '^ *+' conftest.er1 >conftest.err
14152 +  rm -f conftest.er1
14153 +  cat conftest.err >&5
14154 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 +  (exit $ac_status); } &&
14156 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14157 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 +  (eval $ac_try) 2>&5
14159 +  ac_status=$?
14160 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 +  (exit $ac_status); }; } &&
14162 +        { ac_try='test -s conftest$ac_exeext'
14163 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 +  (eval $ac_try) 2>&5
14165 +  ac_status=$?
14166 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 +  (exit $ac_status); }; }; then
14168 +  lt_cv_cc_needs_belf=yes
14169 +else
14170 +  echo "$as_me: failed program was:" >&5
14171 +sed 's/^/| /' conftest.$ac_ext >&5
14172 +
14173 +lt_cv_cc_needs_belf=no
14174 +fi
14175 +rm -f conftest.err conftest.$ac_objext \
14176 +      conftest$ac_exeext conftest.$ac_ext
14177 +     ac_ext=c
14178 +ac_cpp='$CPP $CPPFLAGS'
14179 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14180 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14181 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14182 +
14183 +fi
14184 +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
14185 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
14186 +  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14187 +    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14188 +    CFLAGS="$SAVE_CFLAGS"
14189 +  fi
14190 +  ;;
14191 +
14192 +
14193 +esac
14194 +
14195 +# Sed substitution that helps us do robust quoting.  It backslashifies
14196 +# metacharacters that are still active within double-quoted strings.
14197 +Xsed='sed -e s/^X//'
14198 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14199 +
14200 +# Same as above, but do not quote variable references.
14201 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14202 +
14203 +# Sed substitution to delay expansion of an escaped shell variable in a
14204 +# double_quote_subst'ed string.
14205 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14206 +
14207 +# Constants:
14208 +rm="rm -f"
14209 +
14210 +# Global variables:
14211 +default_ofile=libtool
14212 +can_build_shared=yes
14213 +
14214 +# All known linkers require a `.a' archive for static linking (except M$VC,
14215 +# which needs '.lib').
14216 +libext=a
14217 +ltmain="$ac_aux_dir/ltmain.sh"
14218 +ofile="$default_ofile"
14219 +with_gnu_ld="$lt_cv_prog_gnu_ld"
14220 +need_locks="$enable_libtool_lock"
14221 +
14222 +old_CC="$CC"
14223 +old_CFLAGS="$CFLAGS"
14224 +
14225 +# Set sane defaults for various variables
14226 +test -z "$AR" && AR=ar
14227 +test -z "$AR_FLAGS" && AR_FLAGS=cru
14228 +test -z "$AS" && AS=as
14229 +test -z "$CC" && CC=cc
14230 +test -z "$DLLTOOL" && DLLTOOL=dlltool
14231 +test -z "$LD" && LD=ld
14232 +test -z "$LN_S" && LN_S="ln -s"
14233 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
14234 +test -z "$NM" && NM=nm
14235 +test -z "$OBJDUMP" && OBJDUMP=objdump
14236 +test -z "$RANLIB" && RANLIB=:
14237 +test -z "$STRIP" && STRIP=:
14238 +test -z "$ac_objext" && ac_objext=o
14239 +
14240 +if test x"$host" != x"$build"; then
14241 +  ac_tool_prefix=${host_alias}-
14242 +else
14243 +  ac_tool_prefix=
14244 +fi
14245 +
14246 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
14247 +case $host_os in
14248 +linux-gnu*) ;;
14249 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14250 +esac
14251 +
14252 +case $host_os in
14253 +aix3*)
14254 +  # AIX sometimes has problems with the GCC collect2 program.  For some
14255 +  # reason, if we set the COLLECT_NAMES environment variable, the problems
14256 +  # vanish in a puff of smoke.
14257 +  if test "X${COLLECT_NAMES+set}" != Xset; then
14258 +    COLLECT_NAMES=
14259 +    export COLLECT_NAMES
14260 +  fi
14261 +  ;;
14262 +esac
14263 +
14264 +# Determine commands to create old-style static archives.
14265 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14266 +old_postinstall_cmds='chmod 644 $oldlib'
14267 +old_postuninstall_cmds=
14268 +
14269 +if test -n "$RANLIB"; then
14270 +  case $host_os in
14271 +  openbsd*)
14272 +    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
14273 +    ;;
14274 +  *)
14275 +    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
14276 +    ;;
14277 +  esac
14278 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14279 +fi
14280 +
14281 +# Allow CC to be a program name with arguments.
14282 +set dummy $CC
14283 +compiler="$2"
14284 +
14285 +echo "$as_me:$LINENO: checking for objdir" >&5
14286 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
14287 +rm -f .libs 2>/dev/null
14288 +mkdir .libs 2>/dev/null
14289 +if test -d .libs; then
14290 +  objdir=.libs
14291 +else
14292 +  # MS-DOS does not allow filenames that begin with a dot.
14293 +  objdir=_libs
14294 +fi
14295 +rmdir .libs 2>/dev/null
14296 +echo "$as_me:$LINENO: result: $objdir" >&5
14297 +echo "${ECHO_T}$objdir" >&6
14298 +
14299 +
14300 +
14301 +# Check whether --with-pic or --without-pic was given.
14302 +if test "${with_pic+set}" = set; then
14303 +  withval="$with_pic"
14304 +  pic_mode="$withval"
14305 +else
14306 +  pic_mode=default
14307 +fi; 
14308 +test -z "$pic_mode" && pic_mode=default
14309 +
14310 +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
14311 +# in isolation, and that seeing it set (from the cache) indicates that
14312 +# the associated values are set (in the cache) correctly too.
14313 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14314 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14315 +if test "${lt_cv_prog_cc_pic+set}" = set; then
14316 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14317 +else
14318 +   lt_cv_prog_cc_pic=
14319 +  lt_cv_prog_cc_shlib=
14320 +  lt_cv_prog_cc_wl=
14321 +  lt_cv_prog_cc_static=
14322 +  lt_cv_prog_cc_no_builtin=
14323 +  lt_cv_prog_cc_can_build_shared=$can_build_shared
14324 +
14325 +  if test "$GCC" = yes; then
14326 +    lt_cv_prog_cc_wl='-Wl,'
14327 +    lt_cv_prog_cc_static='-static'
14328 +
14329 +    case $host_os in
14330 +    aix*)
14331 +      # Below there is a dirty hack to force normal static linking with -ldl
14332 +      # The problem is because libdl dynamically linked with both libc and
14333 +      # libC (AIX C++ library), which obviously doesn't included in libraries
14334 +      # list by gcc. This cause undefined symbols with -static flags.
14335 +      # This hack allows C programs to be linked with "-static -ldl", but
14336 +      # not sure about C++ programs.
14337 +      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
14338 +      ;;
14339 +    amigaos*)
14340 +      # FIXME: we need at least 68020 code to build shared libraries, but
14341 +      # adding the `-m68020' flag to GCC prevents building anything better,
14342 +      # like `-m68040'.
14343 +      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
14344 +      ;;
14345 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14346 +      # PIC is the default for these OSes.
14347 +      ;;
14348 +    darwin* | rhapsody*)
14349 +      # PIC is the default on this platform
14350 +      # Common symbols not allowed in MH_DYLIB files
14351 +      lt_cv_prog_cc_pic='-fno-common'
14352 +      ;;
14353 +    cygwin* | mingw* | pw32* | os2*)
14354 +      # This hack is so that the source file can tell whether it is being
14355 +      # built for inclusion in a dll (and should export symbols for example).
14356 +      lt_cv_prog_cc_pic='-DDLL_EXPORT'
14357 +      ;;
14358 +    sysv4*MP*)
14359 +      if test -d /usr/nec; then
14360 +        lt_cv_prog_cc_pic=-Kconform_pic
14361 +      fi
14362 +      ;;
14363 +    *)
14364 +      lt_cv_prog_cc_pic='-fPIC'
14365 +      ;;
14366 +    esac
14367 +  else
14368 +    # PORTME Check for PIC flags for the system compiler.
14369 +    case $host_os in
14370 +    aix3* | aix4* | aix5*)
14371 +      lt_cv_prog_cc_wl='-Wl,'
14372 +      # All AIX code is PIC.
14373 +      if test "$host_cpu" = ia64; then
14374 +       # AIX 5 now supports IA64 processor
14375 +       lt_cv_prog_cc_static='-Bstatic'
14376 +      else
14377 +       lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
14378 +      fi
14379 +      ;;
14380 +
14381 +    hpux9* | hpux10* | hpux11*)
14382 +      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
14383 +      lt_cv_prog_cc_wl='-Wl,'
14384 +      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
14385 +      lt_cv_prog_cc_pic='+Z'
14386 +      ;;
14387 +
14388 +    irix5* | irix6* | nonstopux*)
14389 +      lt_cv_prog_cc_wl='-Wl,'
14390 +      lt_cv_prog_cc_static='-non_shared'
14391 +      # PIC (with -KPIC) is the default.
14392 +      ;;
14393 +
14394 +    cygwin* | mingw* | pw32* | os2*)
14395 +      # This hack is so that the source file can tell whether it is being
14396 +      # built for inclusion in a dll (and should export symbols for example).
14397 +      lt_cv_prog_cc_pic='-DDLL_EXPORT'
14398 +      ;;
14399 +
14400 +    newsos6)
14401 +      lt_cv_prog_cc_pic='-KPIC'
14402 +      lt_cv_prog_cc_static='-Bstatic'
14403 +      ;;
14404 +
14405 +    osf3* | osf4* | osf5*)
14406 +      # All OSF/1 code is PIC.
14407 +      lt_cv_prog_cc_wl='-Wl,'
14408 +      lt_cv_prog_cc_static='-non_shared'
14409 +      ;;
14410 +
14411 +    sco3.2v5*)
14412 +      lt_cv_prog_cc_pic='-Kpic'
14413 +      lt_cv_prog_cc_static='-dn'
14414 +      lt_cv_prog_cc_shlib='-belf'
14415 +      ;;
14416 +
14417 +    solaris*)
14418 +      lt_cv_prog_cc_pic='-KPIC'
14419 +      lt_cv_prog_cc_static='-Bstatic'
14420 +      lt_cv_prog_cc_wl='-Wl,'
14421 +      ;;
14422 +
14423 +    sunos4*)
14424 +      lt_cv_prog_cc_pic='-PIC'
14425 +      lt_cv_prog_cc_static='-Bstatic'
14426 +      lt_cv_prog_cc_wl='-Qoption ld '
14427 +      ;;
14428 +
14429 +    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14430 +      lt_cv_prog_cc_pic='-KPIC'
14431 +      lt_cv_prog_cc_static='-Bstatic'
14432 +      lt_cv_prog_cc_wl='-Wl,'
14433 +      ;;
14434 +
14435 +    uts4*)
14436 +      lt_cv_prog_cc_pic='-pic'
14437 +      lt_cv_prog_cc_static='-Bstatic'
14438 +      ;;
14439 +
14440 +    sysv4*MP*)
14441 +      if test -d /usr/nec ;then
14442 +       lt_cv_prog_cc_pic='-Kconform_pic'
14443 +       lt_cv_prog_cc_static='-Bstatic'
14444 +      fi
14445 +      ;;
14446 +
14447 +    *)
14448 +      lt_cv_prog_cc_can_build_shared=no
14449 +      ;;
14450 +    esac
14451 +  fi
14452 +
14453 +fi
14454 +
14455 +if test -z "$lt_cv_prog_cc_pic"; then
14456 +  echo "$as_me:$LINENO: result: none" >&5
14457 +echo "${ECHO_T}none" >&6
14458 +else
14459 +  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
14460 +echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
14461 +
14462 +  # Check to make sure the pic_flag actually works.
14463 +  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
14464 +echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
14465 +  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
14466 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14467 +else
14468 +      save_CFLAGS="$CFLAGS"
14469 +    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
14470 +    cat >conftest.$ac_ext <<_ACEOF
14471 +/* confdefs.h.  */
14472 +_ACEOF
14473 +cat confdefs.h >>conftest.$ac_ext
14474 +cat >>conftest.$ac_ext <<_ACEOF
14475 +/* end confdefs.h.  */
14476 +
14477 +int
14478 +main ()
14479 +{
14480 +
14481 +  ;
14482 +  return 0;
14483 +}
14484 +_ACEOF
14485 +rm -f conftest.$ac_objext
14486 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14487 +  (eval $ac_compile) 2>conftest.er1
14488 +  ac_status=$?
14489 +  grep -v '^ *+' conftest.er1 >conftest.err
14490 +  rm -f conftest.er1
14491 +  cat conftest.err >&5
14492 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 +  (exit $ac_status); } &&
14494 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14495 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 +  (eval $ac_try) 2>&5
14497 +  ac_status=$?
14498 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 +  (exit $ac_status); }; } &&
14500 +        { ac_try='test -s conftest.$ac_objext'
14501 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 +  (eval $ac_try) 2>&5
14503 +  ac_status=$?
14504 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 +  (exit $ac_status); }; }; then
14506 +        case $host_os in
14507 +      hpux9* | hpux10* | hpux11*)
14508 +       # On HP-UX, both CC and GCC only warn that PIC is supported... then
14509 +       # they create non-PIC objects.  So, if there were any warnings, we
14510 +       # assume that PIC is not supported.
14511 +       if test -s conftest.err; then
14512 +         lt_cv_prog_cc_pic_works=no
14513 +       else
14514 +         lt_cv_prog_cc_pic_works=yes
14515 +       fi
14516 +       ;;
14517 +      *)
14518 +       lt_cv_prog_cc_pic_works=yes
14519 +       ;;
14520 +      esac
14521 +    
14522 +else
14523 +  echo "$as_me: failed program was:" >&5
14524 +sed 's/^/| /' conftest.$ac_ext >&5
14525 +
14526 +      lt_cv_prog_cc_pic_works=no
14527 +    
14528 +fi
14529 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14530 +    CFLAGS="$save_CFLAGS"
14531 +  
14532 +fi
14533 +
14534 +
14535 +  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
14536 +    lt_cv_prog_cc_pic=
14537 +    lt_cv_prog_cc_can_build_shared=no
14538 +  else
14539 +    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
14540 +  fi
14541 +
14542 +  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
14543 +echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
14544 +fi
14545 +
14546 +# Check for any special shared library compilation flags.
14547 +if test -n "$lt_cv_prog_cc_shlib"; then
14548 +  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
14549 +echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
14550 +  if echo "$old_CC $old_CFLAGS " | egrep -e "[         ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
14551 +  else
14552 +   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
14553 +echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
14554 +    lt_cv_prog_cc_can_build_shared=no
14555 +  fi
14556 +fi
14557 +
14558 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
14559 +echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
14560 +if test "${lt_cv_prog_cc_static_works+set}" = set; then
14561 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14562 +else
14563 +    lt_cv_prog_cc_static_works=no
14564 +  save_LDFLAGS="$LDFLAGS"
14565 +  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
14566 +  cat >conftest.$ac_ext <<_ACEOF
14567 +/* confdefs.h.  */
14568 +_ACEOF
14569 +cat confdefs.h >>conftest.$ac_ext
14570 +cat >>conftest.$ac_ext <<_ACEOF
14571 +/* end confdefs.h.  */
14572 +
14573 +int
14574 +main ()
14575 +{
14576 +
14577 +  ;
14578 +  return 0;
14579 +}
14580 +_ACEOF
14581 +rm -f conftest.$ac_objext conftest$ac_exeext
14582 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14583 +  (eval $ac_link) 2>conftest.er1
14584 +  ac_status=$?
14585 +  grep -v '^ *+' conftest.er1 >conftest.err
14586 +  rm -f conftest.er1
14587 +  cat conftest.err >&5
14588 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 +  (exit $ac_status); } &&
14590 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14591 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 +  (eval $ac_try) 2>&5
14593 +  ac_status=$?
14594 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 +  (exit $ac_status); }; } &&
14596 +        { ac_try='test -s conftest$ac_exeext'
14597 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 +  (eval $ac_try) 2>&5
14599 +  ac_status=$?
14600 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 +  (exit $ac_status); }; }; then
14602 +  lt_cv_prog_cc_static_works=yes
14603 +else
14604 +  echo "$as_me: failed program was:" >&5
14605 +sed 's/^/| /' conftest.$ac_ext >&5
14606 +
14607 +fi
14608 +rm -f conftest.err conftest.$ac_objext \
14609 +      conftest$ac_exeext conftest.$ac_ext
14610 +  LDFLAGS="$save_LDFLAGS"
14611 +
14612 +fi
14613 +
14614 +
14615 +# Belt *and* braces to stop my trousers falling down:
14616 +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
14617 +echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
14618 +echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
14619 +
14620 +pic_flag="$lt_cv_prog_cc_pic"
14621 +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
14622 +wl="$lt_cv_prog_cc_wl"
14623 +link_static_flag="$lt_cv_prog_cc_static"
14624 +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
14625 +can_build_shared="$lt_cv_prog_cc_can_build_shared"
14626 +
14627 +
14628 +# Check to see if options -o and -c are simultaneously supported by compiler
14629 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14630 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14631 +if test "${lt_cv_compiler_c_o+set}" = set; then
14632 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14633 +else
14634 +  
14635 +$rm -r conftest 2>/dev/null
14636 +mkdir conftest
14637 +cd conftest
14638 +echo "int some_variable = 0;" > conftest.$ac_ext
14639 +mkdir out
14640 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14641 +# that will create temporary files in the current directory regardless of
14642 +# the output directory.  Thus, making CWD read-only will cause this test
14643 +# to fail, enabling locking or at least warning the user not to do parallel
14644 +# builds.
14645 +chmod -w .
14646 +save_CFLAGS="$CFLAGS"
14647 +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
14648 +compiler_c_o=no
14649 +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
14650 +  # The compiler can only warn and ignore the option if not recognized
14651 +  # So say no if there are warnings
14652 +  if test -s out/conftest.err; then
14653 +    lt_cv_compiler_c_o=no
14654 +  else
14655 +    lt_cv_compiler_c_o=yes
14656 +  fi
14657 +else
14658 +  # Append any errors to the config.log.
14659 +  cat out/conftest.err 1>&5
14660 +  lt_cv_compiler_c_o=no
14661 +fi
14662 +CFLAGS="$save_CFLAGS"
14663 +chmod u+w .
14664 +$rm conftest* out/*
14665 +rmdir out
14666 +cd ..
14667 +rmdir conftest
14668 +$rm -r conftest 2>/dev/null
14669 +
14670 +fi
14671 +
14672 +compiler_c_o=$lt_cv_compiler_c_o
14673 +echo "$as_me:$LINENO: result: $compiler_c_o" >&5
14674 +echo "${ECHO_T}$compiler_c_o" >&6
14675 +
14676 +if test x"$compiler_c_o" = x"yes"; then
14677 +  # Check to see if we can write to a .lo
14678 +  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
14679 +echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
14680 +  if test "${lt_cv_compiler_o_lo+set}" = set; then
14681 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14682 +else
14683 +  
14684 +  lt_cv_compiler_o_lo=no
14685 +  save_CFLAGS="$CFLAGS"
14686 +  CFLAGS="$CFLAGS -c -o conftest.lo"
14687 +  save_objext="$ac_objext"
14688 +  ac_objext=lo
14689 +  cat >conftest.$ac_ext <<_ACEOF
14690 +/* confdefs.h.  */
14691 +_ACEOF
14692 +cat confdefs.h >>conftest.$ac_ext
14693 +cat >>conftest.$ac_ext <<_ACEOF
14694 +/* end confdefs.h.  */
14695 +
14696 +int
14697 +main ()
14698 +{
14699 +int some_variable = 0;
14700 +  ;
14701 +  return 0;
14702 +}
14703 +_ACEOF
14704 +rm -f conftest.$ac_objext
14705 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706 +  (eval $ac_compile) 2>conftest.er1
14707 +  ac_status=$?
14708 +  grep -v '^ *+' conftest.er1 >conftest.err
14709 +  rm -f conftest.er1
14710 +  cat conftest.err >&5
14711 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 +  (exit $ac_status); } &&
14713 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14714 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 +  (eval $ac_try) 2>&5
14716 +  ac_status=$?
14717 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 +  (exit $ac_status); }; } &&
14719 +        { ac_try='test -s conftest.$ac_objext'
14720 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 +  (eval $ac_try) 2>&5
14722 +  ac_status=$?
14723 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 +  (exit $ac_status); }; }; then
14725 +      # The compiler can only warn and ignore the option if not recognized
14726 +    # So say no if there are warnings
14727 +    if test -s conftest.err; then
14728 +      lt_cv_compiler_o_lo=no
14729 +    else
14730 +      lt_cv_compiler_o_lo=yes
14731 +    fi
14732 +  
14733 +else
14734 +  echo "$as_me: failed program was:" >&5
14735 +sed 's/^/| /' conftest.$ac_ext >&5
14736 +
14737 +fi
14738 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14739 +  ac_objext="$save_objext"
14740 +  CFLAGS="$save_CFLAGS"
14741 +  
14742 +fi
14743 +
14744 +  compiler_o_lo=$lt_cv_compiler_o_lo
14745 +  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
14746 +echo "${ECHO_T}$compiler_o_lo" >&6
14747 +else
14748 +  compiler_o_lo=no
14749 +fi
14750 +
14751 +# Check to see if we can do hard links to lock some files if needed
14752 +hard_links="nottested"
14753 +if test "$compiler_c_o" = no && test "$need_locks" != no; then
14754 +  # do not overwrite the value of need_locks provided by the user
14755 +  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14756 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14757 +  hard_links=yes
14758 +  $rm conftest*
14759 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14760 +  touch conftest.a
14761 +  ln conftest.a conftest.b 2>&5 || hard_links=no
14762 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14763 +  echo "$as_me:$LINENO: result: $hard_links" >&5
14764 +echo "${ECHO_T}$hard_links" >&6
14765 +  if test "$hard_links" = no; then
14766 +    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14767 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14768 +    need_locks=warn
14769 +  fi
14770 +else
14771 +  need_locks=no
14772 +fi
14773 +
14774 +if test "$GCC" = yes; then
14775 +  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
14776 +  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14777 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14778 +  echo "int some_variable = 0;" > conftest.$ac_ext
14779 +  save_CFLAGS="$CFLAGS"
14780 +  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
14781 +  compiler_rtti_exceptions=no
14782 +  cat >conftest.$ac_ext <<_ACEOF
14783 +/* confdefs.h.  */
14784 +_ACEOF
14785 +cat confdefs.h >>conftest.$ac_ext
14786 +cat >>conftest.$ac_ext <<_ACEOF
14787 +/* end confdefs.h.  */
14788 +
14789 +int
14790 +main ()
14791 +{
14792 +int some_variable = 0;
14793 +  ;
14794 +  return 0;
14795 +}
14796 +_ACEOF
14797 +rm -f conftest.$ac_objext
14798 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799 +  (eval $ac_compile) 2>conftest.er1
14800 +  ac_status=$?
14801 +  grep -v '^ *+' conftest.er1 >conftest.err
14802 +  rm -f conftest.er1
14803 +  cat conftest.err >&5
14804 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 +  (exit $ac_status); } &&
14806 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14807 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 +  (eval $ac_try) 2>&5
14809 +  ac_status=$?
14810 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 +  (exit $ac_status); }; } &&
14812 +        { ac_try='test -s conftest.$ac_objext'
14813 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 +  (eval $ac_try) 2>&5
14815 +  ac_status=$?
14816 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 +  (exit $ac_status); }; }; then
14818 +      # The compiler can only warn and ignore the option if not recognized
14819 +    # So say no if there are warnings
14820 +    if test -s conftest.err; then
14821 +      compiler_rtti_exceptions=no
14822 +    else
14823 +      compiler_rtti_exceptions=yes
14824 +    fi
14825 +  
14826 +else
14827 +  echo "$as_me: failed program was:" >&5
14828 +sed 's/^/| /' conftest.$ac_ext >&5
14829 +
14830 +fi
14831 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14832 +  CFLAGS="$save_CFLAGS"
14833 +  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
14834 +echo "${ECHO_T}$compiler_rtti_exceptions" >&6
14835 +
14836 +  if test "$compiler_rtti_exceptions" = "yes"; then
14837 +    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
14838 +  else
14839 +    no_builtin_flag=' -fno-builtin'
14840 +  fi
14841 +fi
14842 +
14843 +# See if the linker supports building shared libraries.
14844 +echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
14845 +echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
14846 +
14847 +allow_undefined_flag=
14848 +no_undefined_flag=
14849 +need_lib_prefix=unknown
14850 +need_version=unknown
14851 +# when you set need_version to no, make sure it does not cause -set_version
14852 +# flags to be left without arguments
14853 +archive_cmds=
14854 +archive_expsym_cmds=
14855 +old_archive_from_new_cmds=
14856 +old_archive_from_expsyms_cmds=
14857 +export_dynamic_flag_spec=
14858 +whole_archive_flag_spec=
14859 +thread_safe_flag_spec=
14860 +hardcode_into_libs=no
14861 +hardcode_libdir_flag_spec=
14862 +hardcode_libdir_separator=
14863 +hardcode_direct=no
14864 +hardcode_minus_L=no
14865 +hardcode_shlibpath_var=unsupported
14866 +runpath_var=
14867 +link_all_deplibs=unknown
14868 +always_export_symbols=no
14869 +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
14870 +# include_expsyms should be a list of space-separated symbols to be *always*
14871 +# included in the symbol list
14872 +include_expsyms=
14873 +# exclude_expsyms can be an egrep regular expression of symbols to exclude
14874 +# it will be wrapped by ` (' and `)$', so one must not match beginning or
14875 +# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14876 +# as well as any symbol that contains `d'.
14877 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14878 +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14879 +# platforms (ab)use it in PIC code, but their linkers get confused if
14880 +# the symbol is explicitly referenced.  Since portable code cannot
14881 +# rely on this symbol name, it's probably fine to never include it in
14882 +# preloaded symbol tables.
14883 +extract_expsyms_cmds=
14884 +
14885 +case $host_os in
14886 +cygwin* | mingw* | pw32*)
14887 +  # FIXME: the MSVC++ port hasn't been tested in a loooong time
14888 +  # When not using gcc, we currently assume that we are using
14889 +  # Microsoft Visual C++.
14890 +  if test "$GCC" != yes; then
14891 +    with_gnu_ld=no
14892 +  fi
14893 +  ;;
14894 +openbsd*)
14895 +  with_gnu_ld=no
14896 +  ;;
14897 +esac
14898 +
14899 +ld_shlibs=yes
14900 +if test "$with_gnu_ld" = yes; then
14901 +  # If archive_cmds runs LD, not CC, wlarc should be empty
14902 +  wlarc='${wl}'
14903 +
14904 +  # See if GNU ld supports shared libraries.
14905 +  case $host_os in
14906 +  aix3* | aix4* | aix5*)
14907 +    # On AIX, the GNU linker is very broken
14908 +    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
14909 +    ld_shlibs=no
14910 +    cat <<EOF 1>&2
14911 +
14912 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14913 +*** to be unable to reliably create shared libraries on AIX.
14914 +*** Therefore, libtool is disabling shared libraries support.  If you
14915 +*** really care for shared libraries, you may want to modify your PATH
14916 +*** so that a non-GNU linker is found, and then restart.
14917 +
14918 +EOF
14919 +    ;;
14920 +
14921 +  amigaos*)
14922 +    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14923 +    hardcode_libdir_flag_spec='-L$libdir'
14924 +    hardcode_minus_L=yes
14925 +
14926 +    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14927 +    # that the semantics of dynamic libraries on AmigaOS, at least up
14928 +    # to version 4, is to share data among multiple programs linked
14929 +    # with the same dynamic library.  Since this doesn't match the
14930 +    # behavior of shared libraries on other platforms, we can use
14931 +    # them.
14932 +    ld_shlibs=no
14933 +    ;;
14934 +
14935 +  beos*)
14936 +    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14937 +      allow_undefined_flag=unsupported
14938 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14939 +      # support --undefined.  This deserves some investigation.  FIXME
14940 +      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14941 +    else
14942 +      ld_shlibs=no
14943 +    fi
14944 +    ;;
14945 +
14946 +  cygwin* | mingw* | pw32*)
14947 +    # hardcode_libdir_flag_spec is actually meaningless, as there is
14948 +    # no search path for DLLs.
14949 +    hardcode_libdir_flag_spec='-L$libdir'
14950 +    allow_undefined_flag=unsupported
14951 +    always_export_symbols=yes
14952 +
14953 +    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
14954 +      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
14955 +      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
14956 +      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
14957 +      else $CC -o impgen impgen.c ; fi)~
14958 +      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
14959 +
14960 +    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
14961 +
14962 +    # cygwin and mingw dlls have different entry points and sets of symbols
14963 +    # to exclude.
14964 +    # FIXME: what about values for MSVC?
14965 +    dll_entry=__cygwin_dll_entry@12
14966 +    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
14967 +    case $host_os in
14968 +    mingw*)
14969 +      # mingw values
14970 +      dll_entry=_DllMainCRTStartup@12
14971 +      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
14972 +      ;;
14973 +    esac
14974 +
14975 +    # mingw and cygwin differ, and it's simplest to just exclude the union
14976 +    # of the two symbol sets.
14977 +    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
14978 +
14979 +    # recent cygwin and mingw systems supply a stub DllMain which the user
14980 +    # can override, but on older systems we have to supply one (in ltdll.c)
14981 +    if test "x$lt_cv_need_dllmain" = "xyes"; then
14982 +      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
14983 +      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
14984 +       test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
14985 +    else
14986 +      ltdll_obj=
14987 +      ltdll_cmds=
14988 +    fi
14989 +
14990 +    # Extract the symbol export list from an `--export-all' def file,
14991 +    # then regenerate the def file from the symbol export list, so that
14992 +    # the compiled dll only exports the symbol export list.
14993 +    # Be careful not to strip the DATA tag left be newer dlltools.
14994 +    export_symbols_cmds="$ltdll_cmds"'
14995 +      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
14996 +      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
14997 +
14998 +    # If the export-symbols file already is a .def file (1st line
14999 +    # is EXPORTS), use it as is.
15000 +    # If DATA tags from a recent dlltool are present, honour them!
15001 +    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
15002 +       cp $export_symbols $output_objdir/$soname-def;
15003 +      else
15004 +       echo EXPORTS > $output_objdir/$soname-def;
15005 +       _lt_hint=1;
15006 +       cat $export_symbols | while read symbol; do
15007 +        set dummy \$symbol;
15008 +        case \$# in
15009 +          2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
15010 +          4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
15011 +          *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
15012 +        esac;
15013 +        _lt_hint=`expr 1 + \$_lt_hint`;
15014 +       done;
15015 +      fi~
15016 +      '"$ltdll_cmds"'
15017 +      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
15018 +      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
15019 +      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
15020 +      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
15021 +      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
15022 +    ;;
15023 +
15024 +  netbsd*)
15025 +    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15026 +      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15027 +      wlarc=
15028 +    else
15029 +      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030 +      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15031 +    fi
15032 +    ;;
15033 +
15034 +  solaris* | sysv5*)
15035 +    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
15036 +      ld_shlibs=no
15037 +      cat <<EOF 1>&2
15038 +
15039 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15040 +*** create shared libraries on Solaris systems.  Therefore, libtool
15041 +*** is disabling shared libraries support.  We urge you to upgrade GNU
15042 +*** binutils to release 2.9.1 or newer.  Another option is to modify
15043 +*** your PATH or compiler configuration so that the native linker is
15044 +*** used, and then restart.
15045 +
15046 +EOF
15047 +    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15048 +      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15049 +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15050 +    else
15051 +      ld_shlibs=no
15052 +    fi
15053 +    ;;
15054 +
15055 +  sunos4*)
15056 +    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15057 +    wlarc=
15058 +    hardcode_direct=yes
15059 +    hardcode_shlibpath_var=no
15060 +    ;;
15061 +
15062 +  *)
15063 +    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15064 +      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065 +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15066 +    else
15067 +      ld_shlibs=no
15068 +    fi
15069 +    ;;
15070 +  esac
15071 +
15072 +  if test "$ld_shlibs" = yes; then
15073 +    runpath_var=LD_RUN_PATH
15074 +    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15075 +    export_dynamic_flag_spec='${wl}--export-dynamic'
15076 +    case $host_os in
15077 +    cygwin* | mingw* | pw32*)
15078 +      # dlltool doesn't understand --whole-archive et. al.
15079 +      whole_archive_flag_spec=
15080 +      ;;
15081 +    *)
15082 +      # ancient GNU ld didn't support --whole-archive et. al.
15083 +      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
15084 +       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15085 +      else
15086 +       whole_archive_flag_spec=
15087 +      fi
15088 +      ;;
15089 +    esac
15090 +  fi
15091 +else
15092 +  # PORTME fill in a description of your system's linker (not GNU ld)
15093 +  case $host_os in
15094 +  aix3*)
15095 +    allow_undefined_flag=unsupported
15096 +    always_export_symbols=yes
15097 +    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15098 +    # Note: this linker hardcodes the directories in LIBPATH if there
15099 +    # are no directories specified by -L.
15100 +    hardcode_minus_L=yes
15101 +    if test "$GCC" = yes && test -z "$link_static_flag"; then
15102 +      # Neither direct hardcoding nor static linking is supported with a
15103 +      # broken collect2.
15104 +      hardcode_direct=unsupported
15105 +    fi
15106 +    ;;
15107 +
15108 +  aix4* | aix5*)
15109 +    if test "$host_cpu" = ia64; then
15110 +      # On IA64, the linker does run time linking by default, so we don't
15111 +      # have to do anything special.
15112 +      aix_use_runtimelinking=no
15113 +      exp_sym_flag='-Bexport'
15114 +      no_entry_flag=""
15115 +    else
15116 +      aix_use_runtimelinking=no
15117 +
15118 +      # Test if we are trying to use run time linking or normal
15119 +      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15120 +      # need to do runtime linking.
15121 +      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15122 +       for ld_flag in $LDFLAGS; do
15123 +         case $ld_flag in
15124 +         *-brtl*)
15125 +           aix_use_runtimelinking=yes
15126 +           break
15127 +         ;;
15128 +         esac
15129 +       done
15130 +      esac
15131 +
15132 +      exp_sym_flag='-bexport'
15133 +      no_entry_flag='-bnoentry'
15134 +    fi
15135 +
15136 +    # When large executables or shared objects are built, AIX ld can
15137 +    # have problems creating the table of contents.  If linking a library
15138 +    # or program results in "error TOC overflow" add -mminimal-toc to
15139 +    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15140 +    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15141 +
15142 +    hardcode_direct=yes
15143 +    archive_cmds=''
15144 +    hardcode_libdir_separator=':'
15145 +    if test "$GCC" = yes; then
15146 +      case $host_os in aix4.[012]|aix4.[012].*)
15147 +       collect2name=`${CC} -print-prog-name=collect2`
15148 +       if test -f "$collect2name" && \
15149 +         strings "$collect2name" | grep resolve_lib_name >/dev/null
15150 +       then
15151 +         # We have reworked collect2
15152 +         hardcode_direct=yes
15153 +       else
15154 +         # We have old collect2
15155 +         hardcode_direct=unsupported
15156 +         # It fails to find uninstalled libraries when the uninstalled
15157 +         # path is not listed in the libpath.  Setting hardcode_minus_L
15158 +         # to unsupported forces relinking
15159 +         hardcode_minus_L=yes
15160 +         hardcode_libdir_flag_spec='-L$libdir'
15161 +         hardcode_libdir_separator=
15162 +       fi
15163 +      esac
15164 +
15165 +      shared_flag='-shared'
15166 +    else
15167 +      # not using gcc
15168 +      if test "$host_cpu" = ia64; then
15169 +       shared_flag='${wl}-G'
15170 +      else
15171 +       if test "$aix_use_runtimelinking" = yes; then
15172 +         shared_flag='${wl}-G'
15173 +       else
15174 +         shared_flag='${wl}-bM:SRE'
15175 +       fi
15176 +      fi
15177 +    fi
15178 +
15179 +    # It seems that -bexpall can do strange things, so it is better to
15180 +    # generate a list of symbols to export.
15181 +    always_export_symbols=yes
15182 +    if test "$aix_use_runtimelinking" = yes; then
15183 +      # Warning - without using the other runtime loading flags (-brtl),
15184 +      # -berok will link without error, but may produce a broken library.
15185 +      allow_undefined_flag='-berok'
15186 +      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
15187 +      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"
15188 +    else
15189 +      if test "$host_cpu" = ia64; then
15190 +       hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15191 +       allow_undefined_flag="-z nodefs"
15192 +       archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15193 +      else
15194 +       hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
15195 +       # Warning - without using the other run time loading flags,
15196 +       # -berok will link without error, but may produce a broken library.
15197 +       allow_undefined_flag='${wl}-berok'
15198 +       # This is a bit strange, but is similar to how AIX traditionally builds
15199 +       # it's shared libraries.
15200 +       archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
15201 +      fi
15202 +    fi
15203 +    ;;
15204 +
15205 +  amigaos*)
15206 +    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15207 +    hardcode_libdir_flag_spec='-L$libdir'
15208 +    hardcode_minus_L=yes
15209 +    # see comment about different semantics on the GNU ld section
15210 +    ld_shlibs=no
15211 +    ;;
15212 +
15213 +  cygwin* | mingw* | pw32*)
15214 +    # When not using gcc, we currently assume that we are using
15215 +    # Microsoft Visual C++.
15216 +    # hardcode_libdir_flag_spec is actually meaningless, as there is
15217 +    # no search path for DLLs.
15218 +    hardcode_libdir_flag_spec=' '
15219 +    allow_undefined_flag=unsupported
15220 +    # Tell ltmain to make .lib files, not .a files.
15221 +    libext=lib
15222 +    # FIXME: Setting linknames here is a bad hack.
15223 +    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15224 +    # The linker will automatically build a .lib file if we build a DLL.
15225 +    old_archive_from_new_cmds='true'
15226 +    # FIXME: Should let the user specify the lib program.
15227 +    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15228 +    fix_srcfile_path='`cygpath -w "$srcfile"`'
15229 +    ;;
15230 +
15231 +  darwin* | rhapsody*)
15232 +    case "$host_os" in
15233 +    rhapsody* | darwin1.[012])
15234 +      allow_undefined_flag='-undefined suppress'
15235 +      ;;
15236 +    *) # Darwin 1.3 on
15237 +      allow_undefined_flag='-flat_namespace -undefined suppress'
15238 +      ;;
15239 +    esac
15240 +    # FIXME: Relying on posixy $() will cause problems for
15241 +    #        cross-compilation, but unfortunately the echo tests do not
15242 +    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15243 +    #       `"' quotes if we put them in here... so don't!
15244 +    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
15245 +    # We need to add '_' to the symbols in $export_symbols first
15246 +    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
15247 +    hardcode_direct=yes
15248 +    hardcode_shlibpath_var=no
15249 +    whole_archive_flag_spec='-all_load $convenience'
15250 +    ;;
15251 +
15252 +  freebsd1*)
15253 +    ld_shlibs=no
15254 +    ;;
15255 +
15256 +  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15257 +  # support.  Future versions do this automatically, but an explicit c++rt0.o
15258 +  # does not break anything, and helps significantly (at the cost of a little
15259 +  # extra space).
15260 +  freebsd2.2*)
15261 +    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15262 +    hardcode_libdir_flag_spec='-R$libdir'
15263 +    hardcode_direct=yes
15264 +    hardcode_shlibpath_var=no
15265 +    ;;
15266 +
15267 +  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15268 +  freebsd2*)
15269 +    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15270 +    hardcode_direct=yes
15271 +    hardcode_minus_L=yes
15272 +    hardcode_shlibpath_var=no
15273 +    ;;
15274 +
15275 +  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15276 +  freebsd*)
15277 +    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15278 +    hardcode_libdir_flag_spec='-R$libdir'
15279 +    hardcode_direct=yes
15280 +    hardcode_shlibpath_var=no
15281 +    ;;
15282 +
15283 +  hpux9* | hpux10* | hpux11*)
15284 +    case $host_os in
15285 +    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
15286 +    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
15287 +    esac
15288 +    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15289 +    hardcode_libdir_separator=:
15290 +    hardcode_direct=yes
15291 +    hardcode_minus_L=yes # Not in the search PATH, but as the default
15292 +                        # location of the library.
15293 +    export_dynamic_flag_spec='${wl}-E'
15294 +    ;;
15295 +
15296 +  irix5* | irix6* | nonstopux*)
15297 +    if test "$GCC" = yes; then
15298 +      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15299 +      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15300 +    else
15301 +      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15302 +      hardcode_libdir_flag_spec='-rpath $libdir'
15303 +    fi
15304 +    hardcode_libdir_separator=:
15305 +    link_all_deplibs=yes
15306 +    ;;
15307 +
15308 +  netbsd*)
15309 +    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15310 +      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15311 +    else
15312 +      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15313 +    fi
15314 +    hardcode_libdir_flag_spec='-R$libdir'
15315 +    hardcode_direct=yes
15316 +    hardcode_shlibpath_var=no
15317 +    ;;
15318 +
15319 +  newsos6)
15320 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15321 +    hardcode_direct=yes
15322 +    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15323 +    hardcode_libdir_separator=:
15324 +    hardcode_shlibpath_var=no
15325 +    ;;
15326 +
15327 +  openbsd*)
15328 +    hardcode_direct=yes
15329 +    hardcode_shlibpath_var=no
15330 +    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15331 +      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15332 +      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15333 +      export_dynamic_flag_spec='${wl}-E'
15334 +    else
15335 +      case "$host_os" in
15336 +      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15337 +       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15338 +       hardcode_libdir_flag_spec='-R$libdir'
15339 +        ;;
15340 +      *)
15341 +        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15342 +        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15343 +        ;;
15344 +      esac
15345 +    fi
15346 +    ;;
15347 +
15348 +  os2*)
15349 +    hardcode_libdir_flag_spec='-L$libdir'
15350 +    hardcode_minus_L=yes
15351 +    allow_undefined_flag=unsupported
15352 +    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15353 +    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15354 +    ;;
15355 +
15356 +  osf3*)
15357 +    if test "$GCC" = yes; then
15358 +      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15359 +      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15360 +    else
15361 +      allow_undefined_flag=' -expect_unresolved \*'
15362 +      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15363 +    fi
15364 +    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15365 +    hardcode_libdir_separator=:
15366 +    ;;
15367 +
15368 +  osf4* | osf5*)       # as osf3* with the addition of -msym flag
15369 +    if test "$GCC" = yes; then
15370 +      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15371 +      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15372 +      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15373 +    else
15374 +      allow_undefined_flag=' -expect_unresolved \*'
15375 +      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'
15376 +      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15377 +      $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'
15378 +
15379 +      #Both c and cxx compiler support -rpath directly
15380 +      hardcode_libdir_flag_spec='-rpath $libdir'
15381 +    fi
15382 +    hardcode_libdir_separator=:
15383 +    ;;
15384 +
15385 +  sco3.2v5*)
15386 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 +    hardcode_shlibpath_var=no
15388 +    runpath_var=LD_RUN_PATH
15389 +    hardcode_runpath_var=yes
15390 +    export_dynamic_flag_spec='${wl}-Bexport'
15391 +    ;;
15392 +
15393 +  solaris*)
15394 +    # gcc --version < 3.0 without binutils cannot create self contained
15395 +    # shared libraries reliably, requiring libgcc.a to resolve some of
15396 +    # the object symbols generated in some cases.  Libraries that use
15397 +    # assert need libgcc.a to resolve __eprintf, for example.  Linking
15398 +    # a copy of libgcc.a into every shared library to guarantee resolving
15399 +    # such symbols causes other problems:  According to Tim Van Holder
15400 +    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
15401 +    # (to the application) exception stack for one thing.
15402 +    no_undefined_flag=' -z defs'
15403 +    if test "$GCC" = yes; then
15404 +      case `$CC --version 2>/dev/null` in
15405 +      [12].*)
15406 +       cat <<EOF 1>&2
15407 +
15408 +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
15409 +*** create self contained shared libraries on Solaris systems, without
15410 +*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
15411 +*** -no-undefined support, which will at least allow you to build shared
15412 +*** libraries.  However, you may find that when you link such libraries
15413 +*** into an application without using GCC, you have to manually add
15414 +*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
15415 +*** upgrade to a newer version of GCC.  Another option is to rebuild your
15416 +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
15417 +
15418 +EOF
15419 +        no_undefined_flag=
15420 +       ;;
15421 +      esac
15422 +    fi
15423 +    # $CC -shared without GNU ld will not create a library from C++
15424 +    # object files and a static libstdc++, better avoid it by now
15425 +    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15426 +    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15427 +               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15428 +    hardcode_libdir_flag_spec='-R$libdir'
15429 +    hardcode_shlibpath_var=no
15430 +    case $host_os in
15431 +    solaris2.[0-5] | solaris2.[0-5].*) ;;
15432 +    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15433 +      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15434 +    esac
15435 +    link_all_deplibs=yes
15436 +    ;;
15437 +
15438 +  sunos4*)
15439 +    if test "x$host_vendor" = xsequent; then
15440 +      # Use $CC to link under sequent, because it throws in some extra .o
15441 +      # files that make .init and .fini sections work.
15442 +      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15443 +    else
15444 +      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15445 +    fi
15446 +    hardcode_libdir_flag_spec='-L$libdir'
15447 +    hardcode_direct=yes
15448 +    hardcode_minus_L=yes
15449 +    hardcode_shlibpath_var=no
15450 +    ;;
15451 +
15452 +  sysv4)
15453 +    case $host_vendor in
15454 +      sni)
15455 +        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15456 +        hardcode_direct=yes # is this really true???
15457 +        ;;
15458 +      siemens)
15459 +        ## LD is ld it makes a PLAMLIB
15460 +        ## CC just makes a GrossModule.
15461 +        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15462 +        reload_cmds='$CC -r -o $output$reload_objs'
15463 +        hardcode_direct=no
15464 +        ;;
15465 +      motorola)
15466 +        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15467 +        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15468 +        ;;
15469 +    esac
15470 +    runpath_var='LD_RUN_PATH'
15471 +    hardcode_shlibpath_var=no
15472 +    ;;
15473 +
15474 +  sysv4.3*)
15475 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476 +    hardcode_shlibpath_var=no
15477 +    export_dynamic_flag_spec='-Bexport'
15478 +    ;;
15479 +
15480 +  sysv5*)
15481 +    no_undefined_flag=' -z text'
15482 +    # $CC -shared without GNU ld will not create a library from C++
15483 +    # object files and a static libstdc++, better avoid it by now
15484 +    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15485 +    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15486 +               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15487 +    hardcode_libdir_flag_spec=
15488 +    hardcode_shlibpath_var=no
15489 +    runpath_var='LD_RUN_PATH'
15490 +    ;;
15491 +
15492 +  uts4*)
15493 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15494 +    hardcode_libdir_flag_spec='-L$libdir'
15495 +    hardcode_shlibpath_var=no
15496 +    ;;
15497 +
15498 +  dgux*)
15499 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15500 +    hardcode_libdir_flag_spec='-L$libdir'
15501 +    hardcode_shlibpath_var=no
15502 +    ;;
15503 +
15504 +  sysv4*MP*)
15505 +    if test -d /usr/nec; then
15506 +      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507 +      hardcode_shlibpath_var=no
15508 +      runpath_var=LD_RUN_PATH
15509 +      hardcode_runpath_var=yes
15510 +      ld_shlibs=yes
15511 +    fi
15512 +    ;;
15513 +
15514 +  sysv4.2uw2*)
15515 +    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15516 +    hardcode_direct=yes
15517 +    hardcode_minus_L=no
15518 +    hardcode_shlibpath_var=no
15519 +    hardcode_runpath_var=yes
15520 +    runpath_var=LD_RUN_PATH
15521 +    ;;
15522 +
15523 +  sysv5uw7* | unixware7*)
15524 +    no_undefined_flag='${wl}-z ${wl}text'
15525 +    if test "$GCC" = yes; then
15526 +      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15527 +    else
15528 +      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15529 +    fi
15530 +    runpath_var='LD_RUN_PATH'
15531 +    hardcode_shlibpath_var=no
15532 +    ;;
15533 +
15534 +  *)
15535 +    ld_shlibs=no
15536 +    ;;
15537 +  esac
15538 +fi
15539 +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15540 +echo "${ECHO_T}$ld_shlibs" >&6
15541 +test "$ld_shlibs" = no && can_build_shared=no
15542 +
15543 +# Check hardcoding attributes.
15544 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15545 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15546 +hardcode_action=
15547 +if test -n "$hardcode_libdir_flag_spec" || \
15548 +   test -n "$runpath_var"; then
15549 +
15550 +  # We can hardcode non-existant directories.
15551 +  if test "$hardcode_direct" != no &&
15552 +     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15553 +     # have to relink, otherwise we might link with an installed library
15554 +     # when we should be linking with a yet-to-be-installed one
15555 +     ## test "$hardcode_shlibpath_var" != no &&
15556 +     test "$hardcode_minus_L" != no; then
15557 +    # Linking always hardcodes the temporary library directory.
15558 +    hardcode_action=relink
15559 +  else
15560 +    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15561 +    hardcode_action=immediate
15562 +  fi
15563 +else
15564 +  # We cannot hardcode anything, or else we can only hardcode existing
15565 +  # directories.
15566 +  hardcode_action=unsupported
15567 +fi
15568 +echo "$as_me:$LINENO: result: $hardcode_action" >&5
15569 +echo "${ECHO_T}$hardcode_action" >&6
15570 +
15571 +striplib=
15572 +old_striplib=
15573 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15574 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15575 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15576 +  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15577 +  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15578 +  echo "$as_me:$LINENO: result: yes" >&5
15579 +echo "${ECHO_T}yes" >&6
15580 +else
15581 +  echo "$as_me:$LINENO: result: no" >&5
15582 +echo "${ECHO_T}no" >&6
15583 +fi
15584 +
15585 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
15586 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
15587 +
15588 +# PORTME Fill in your ld.so characteristics
15589 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15590 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15591 +library_names_spec=
15592 +libname_spec='lib$name'
15593 +soname_spec=
15594 +postinstall_cmds=
15595 +postuninstall_cmds=
15596 +finish_cmds=
15597 +finish_eval=
15598 +shlibpath_var=
15599 +shlibpath_overrides_runpath=unknown
15600 +version_type=none
15601 +dynamic_linker="$host_os ld.so"
15602 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
15603 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15604 +
15605 +case $host_os in
15606 +aix3*)
15607 +  version_type=linux
15608 +  library_names_spec='${libname}${release}.so$versuffix $libname.a'
15609 +  shlibpath_var=LIBPATH
15610 +
15611 +  # AIX has no versioning support, so we append a major version to the name.
15612 +  soname_spec='${libname}${release}.so$major'
15613 +  ;;
15614 +
15615 +aix4* | aix5*)
15616 +  version_type=linux
15617 +  need_lib_prefix=no
15618 +  need_version=no
15619 +  hardcode_into_libs=yes
15620 +  if test "$host_cpu" = ia64; then
15621 +    # AIX 5 supports IA64
15622 +    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
15623 +    shlibpath_var=LD_LIBRARY_PATH
15624 +  else
15625 +    # With GCC up to 2.95.x, collect2 would create an import file
15626 +    # for dependence libraries.  The import file would start with
15627 +    # the line `#! .'.  This would cause the generated library to
15628 +    # depend on `.', always an invalid library.  This was fixed in
15629 +    # development snapshots of GCC prior to 3.0.
15630 +    case $host_os in
15631 +      aix4 | aix4.[01] | aix4.[01].*)
15632 +       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15633 +            echo ' yes '
15634 +            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15635 +         :
15636 +       else
15637 +         can_build_shared=no
15638 +       fi
15639 +       ;;
15640 +    esac
15641 +    # AIX (on Power*) has no versioning support, so currently we can
15642 +    # not hardcode correct soname into executable. Probably we can
15643 +    # add versioning support to collect2, so additional links can
15644 +    # be useful in future.
15645 +    if test "$aix_use_runtimelinking" = yes; then
15646 +      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15647 +      # instead of lib<name>.a to let people know that these are not
15648 +      # typical AIX shared libraries.
15649 +      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15650 +    else
15651 +      # We preserve .a as extension for shared libraries through AIX4.2
15652 +      # and later when we are not doing run time linking.
15653 +      library_names_spec='${libname}${release}.a $libname.a'
15654 +      soname_spec='${libname}${release}.so$major'
15655 +    fi
15656 +    shlibpath_var=LIBPATH
15657 +  fi
15658 +  hardcode_into_libs=yes
15659 +  ;;
15660 +
15661 +amigaos*)
15662 +  library_names_spec='$libname.ixlibrary $libname.a'
15663 +  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15664 +  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
15665 +  ;;
15666 +
15667 +beos*)
15668 +  library_names_spec='${libname}.so'
15669 +  dynamic_linker="$host_os ld.so"
15670 +  shlibpath_var=LIBRARY_PATH
15671 +  ;;
15672 +
15673 +bsdi4*)
15674 +  version_type=linux
15675 +  need_version=no
15676 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15677 +  soname_spec='${libname}${release}.so$major'
15678 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15679 +  shlibpath_var=LD_LIBRARY_PATH
15680 +  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15681 +  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15682 +  export_dynamic_flag_spec=-rdynamic
15683 +  # the default ld.so.conf also contains /usr/contrib/lib and
15684 +  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15685 +  # libtool to hard-code these into programs
15686 +  ;;
15687 +
15688 +cygwin* | mingw* | pw32*)
15689 +  version_type=windows
15690 +  need_version=no
15691 +  need_lib_prefix=no
15692 +  case $GCC,$host_os in
15693 +  yes,cygwin*)
15694 +    library_names_spec='$libname.dll.a'
15695 +    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15696 +    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
15697 +      dldir=$destdir/`dirname \$dlpath`~
15698 +      test -d \$dldir || mkdir -p \$dldir~
15699 +      $install_prog .libs/$dlname \$dldir/$dlname'
15700 +    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
15701 +      dlpath=$dir/\$dldll~
15702 +       $rm \$dlpath'
15703 +    ;;
15704 +  yes,mingw*)
15705 +    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15706 +    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
15707 +    ;;
15708 +  yes,pw32*)
15709 +    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
15710 +    ;;
15711 +  *)
15712 +    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
15713 +    ;;
15714 +  esac
15715 +  dynamic_linker='Win32 ld.exe'
15716 +  # FIXME: first we should search . and the directory the executable is in
15717 +  shlibpath_var=PATH
15718 +  ;;
15719 +
15720 +darwin* | rhapsody*)
15721 +  dynamic_linker="$host_os dyld"
15722 +  version_type=darwin
15723 +  need_lib_prefix=no
15724 +  need_version=no
15725 +  # FIXME: Relying on posixy $() will cause problems for
15726 +  #        cross-compilation, but unfortunately the echo tests do not
15727 +  #        yet detect zsh echo's removal of \ escapes.
15728 +  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
15729 +  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
15730 +  shlibpath_overrides_runpath=yes
15731 +  shlibpath_var=DYLD_LIBRARY_PATH
15732 +  ;;
15733 +
15734 +freebsd1*)
15735 +  dynamic_linker=no
15736 +  ;;
15737 +
15738 +freebsd*-gnu*)
15739 +  version_type=linux
15740 +  need_lib_prefix=no
15741 +  need_version=no
15742 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15743 +  soname_spec='${libname}${release}.so$major'
15744 +  shlibpath_var=LD_LIBRARY_PATH
15745 +  shlibpath_overrides_runpath=no
15746 +  hardcode_into_libs=yes
15747 +  dynamic_linker='GNU/FreeBSD ld.so'
15748 +  ;;
15749 +
15750 +freebsd*)
15751 +  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15752 +  version_type=freebsd-$objformat
15753 +  case $version_type in
15754 +    freebsd-elf*)
15755 +      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15756 +      need_version=no
15757 +      need_lib_prefix=no
15758 +      ;;
15759 +    freebsd-*)
15760 +      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
15761 +      need_version=yes
15762 +      ;;
15763 +  esac
15764 +  shlibpath_var=LD_LIBRARY_PATH
15765 +  case $host_os in
15766 +  freebsd2*)
15767 +    shlibpath_overrides_runpath=yes
15768 +    ;;
15769 +  *)
15770 +    shlibpath_overrides_runpath=no
15771 +    hardcode_into_libs=yes
15772 +    ;;
15773 +  esac
15774 +  ;;
15775 +
15776 +gnu*)
15777 +  version_type=linux
15778 +  need_lib_prefix=no
15779 +  need_version=no
15780 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
15781 +  soname_spec='${libname}${release}.so$major'
15782 +  shlibpath_var=LD_LIBRARY_PATH
15783 +  hardcode_into_libs=yes
15784 +  ;;
15785 +
15786 +hpux9* | hpux10* | hpux11*)
15787 +  # Give a soname corresponding to the major version so that dld.sl refuses to
15788 +  # link against other versions.
15789 +  dynamic_linker="$host_os dld.sl"
15790 +  version_type=sunos
15791 +  need_lib_prefix=no
15792 +  need_version=no
15793 +  shlibpath_var=SHLIB_PATH
15794 +  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15795 +  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
15796 +  soname_spec='${libname}${release}.sl$major'
15797 +  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15798 +  postinstall_cmds='chmod 555 $lib'
15799 +  ;;
15800 +
15801 +irix5* | irix6* | nonstopux*)
15802 +  case $host_os in
15803 +    nonstopux*) version_type=nonstopux ;;
15804 +    *)          version_type=irix ;;
15805 +  esac
15806 +  need_lib_prefix=no
15807 +  need_version=no
15808 +  soname_spec='${libname}${release}.so$major'
15809 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
15810 +  case $host_os in
15811 +  irix5* | nonstopux*)
15812 +    libsuff= shlibsuff=
15813 +    ;;
15814 +  *)
15815 +    case $LD in # libtool.m4 will add one of these switches to LD
15816 +    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
15817 +    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
15818 +    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
15819 +    *) libsuff= shlibsuff= libmagic=never-match;;
15820 +    esac
15821 +    ;;
15822 +  esac
15823 +  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15824 +  shlibpath_overrides_runpath=no
15825 +  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15826 +  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15827 +  ;;
15828 +
15829 +# No shared lib support for Linux oldld, aout, or coff.
15830 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
15831 +  dynamic_linker=no
15832 +  ;;
15833 +
15834 +# This must be Linux ELF.
15835 +linux-gnu*)
15836 +  version_type=linux
15837 +  need_lib_prefix=no
15838 +  need_version=no
15839 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15840 +  soname_spec='${libname}${release}.so$major'
15841 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15842 +  shlibpath_var=LD_LIBRARY_PATH
15843 +  shlibpath_overrides_runpath=no
15844 +  # This implies no fast_install, which is unacceptable.
15845 +  # Some rework will be needed to allow for fast_install
15846 +  # before this can be enabled.
15847 +  hardcode_into_libs=yes
15848 +
15849 +  # We used to test for /lib/ld.so.1 and disable shared libraries on
15850 +  # powerpc, because MkLinux only supported shared libraries with the
15851 +  # GNU dynamic linker.  Since this was broken with cross compilers,
15852 +  # most powerpc-linux boxes support dynamic linking these days and
15853 +  # people can always --disable-shared, the test was removed, and we
15854 +  # assume the GNU/Linux dynamic linker is in use.
15855 +  dynamic_linker='GNU/Linux ld.so'
15856 +  ;;
15857 +
15858 +netbsd*)
15859 +  version_type=sunos
15860 +  need_lib_prefix=no
15861 +  need_version=no
15862 +  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15863 +    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15864 +    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15865 +    dynamic_linker='NetBSD (a.out) ld.so'
15866 +  else
15867 +    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
15868 +    soname_spec='${libname}${release}.so$major'
15869 +    dynamic_linker='NetBSD ld.elf_so'
15870 +  fi
15871 +  shlibpath_var=LD_LIBRARY_PATH
15872 +  shlibpath_overrides_runpath=yes
15873 +  hardcode_into_libs=yes
15874 +  ;;
15875 +
15876 +newsos6)
15877 +  version_type=linux
15878 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15879 +  shlibpath_var=LD_LIBRARY_PATH
15880 +  shlibpath_overrides_runpath=yes
15881 +  ;;
15882 +
15883 +openbsd*)
15884 +  version_type=sunos
15885 +  need_lib_prefix=no
15886 +  need_version=no
15887 +  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15888 +    case "$host_os" in
15889 +    openbsd2.[89] | openbsd2.[89].*)
15890 +      shlibpath_overrides_runpath=no
15891 +      ;;
15892 +    *)
15893 +      shlibpath_overrides_runpath=yes
15894 +      ;;
15895 +    esac
15896 +  else
15897 +    shlibpath_overrides_runpath=yes
15898 +  fi
15899 +  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15900 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15901 +  shlibpath_var=LD_LIBRARY_PATH
15902 +  ;;
15903 +
15904 +os2*)
15905 +  libname_spec='$name'
15906 +  need_lib_prefix=no
15907 +  library_names_spec='$libname.dll $libname.a'
15908 +  dynamic_linker='OS/2 ld.exe'
15909 +  shlibpath_var=LIBPATH
15910 +  ;;
15911 +
15912 +osf3* | osf4* | osf5*)
15913 +  version_type=osf
15914 +  need_version=no
15915 +  need_lib_prefix=no
15916 +  soname_spec='${libname}${release}.so$major'
15917 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15918 +  shlibpath_var=LD_LIBRARY_PATH
15919 +  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15920 +  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15921 +  hardcode_into_libs=yes
15922 +  ;;
15923 +
15924 +sco3.2v5*)
15925 +  version_type=osf
15926 +  soname_spec='${libname}${release}.so$major'
15927 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15928 +  shlibpath_var=LD_LIBRARY_PATH
15929 +  ;;
15930 +
15931 +solaris*)
15932 +  version_type=linux
15933 +  need_lib_prefix=no
15934 +  need_version=no
15935 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15936 +  soname_spec='${libname}${release}.so$major'
15937 +  shlibpath_var=LD_LIBRARY_PATH
15938 +  shlibpath_overrides_runpath=yes
15939 +  hardcode_into_libs=yes
15940 +  # ldd complains unless libraries are executable
15941 +  postinstall_cmds='chmod +x $lib'
15942 +  ;;
15943 +
15944 +sunos4*)
15945 +  version_type=sunos
15946 +  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15947 +  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15948 +  shlibpath_var=LD_LIBRARY_PATH
15949 +  shlibpath_overrides_runpath=yes
15950 +  if test "$with_gnu_ld" = yes; then
15951 +    need_lib_prefix=no
15952 +  fi
15953 +  need_version=yes
15954 +  ;;
15955 +
15956 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15957 +  version_type=linux
15958 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15959 +  soname_spec='${libname}${release}.so$major'
15960 +  shlibpath_var=LD_LIBRARY_PATH
15961 +  case $host_vendor in
15962 +    sni)
15963 +      shlibpath_overrides_runpath=no
15964 +      need_lib_prefix=no
15965 +      export_dynamic_flag_spec='${wl}-Blargedynsym'
15966 +      runpath_var=LD_RUN_PATH
15967 +      ;;
15968 +    siemens)
15969 +      need_lib_prefix=no
15970 +      ;;
15971 +    motorola)
15972 +      need_lib_prefix=no
15973 +      need_version=no
15974 +      shlibpath_overrides_runpath=no
15975 +      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15976 +      ;;
15977 +  esac
15978 +  ;;
15979 +
15980 +uts4*)
15981 +  version_type=linux
15982 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15983 +  soname_spec='${libname}${release}.so$major'
15984 +  shlibpath_var=LD_LIBRARY_PATH
15985 +  ;;
15986 +
15987 +dgux*)
15988 +  version_type=linux
15989 +  need_lib_prefix=no
15990 +  need_version=no
15991 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15992 +  soname_spec='${libname}${release}.so$major'
15993 +  shlibpath_var=LD_LIBRARY_PATH
15994 +  ;;
15995 +
15996 +sysv4*MP*)
15997 +  if test -d /usr/nec ;then
15998 +    version_type=linux
15999 +    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
16000 +    soname_spec='$libname.so.$major'
16001 +    shlibpath_var=LD_LIBRARY_PATH
16002 +  fi
16003 +  ;;
16004 +
16005 +*)
16006 +  dynamic_linker=no
16007 +  ;;
16008 +esac
16009 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16010 +echo "${ECHO_T}$dynamic_linker" >&6
16011 +test "$dynamic_linker" = no && can_build_shared=no
16012 +
16013 +# Report the final consequences.
16014 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16015 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16016 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
16017 +echo "${ECHO_T}$can_build_shared" >&6
16018 +
16019 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16020 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16021 +test "$can_build_shared" = "no" && enable_shared=no
16022 +
16023 +# On AIX, shared libraries and static libraries use the same namespace, and
16024 +# are all built from PIC.
16025 +case "$host_os" in
16026 +aix3*)
16027 +  test "$enable_shared" = yes && enable_static=no
16028 +  if test -n "$RANLIB"; then
16029 +    archive_cmds="$archive_cmds~\$RANLIB \$lib"
16030 +    postinstall_cmds='$RANLIB $lib'
16031 +  fi
16032 +  ;;
16033 +
16034 +aix4*)
16035 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16036 +    test "$enable_shared" = yes && enable_static=no
16037 +  fi
16038 +  ;;
16039 +esac
16040 +echo "$as_me:$LINENO: result: $enable_shared" >&5
16041 +echo "${ECHO_T}$enable_shared" >&6
16042 +
16043 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16044 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16045 +# Make sure either enable_shared or enable_static is yes.
16046 +test "$enable_shared" = yes || enable_static=yes
16047 +echo "$as_me:$LINENO: result: $enable_static" >&5
16048 +echo "${ECHO_T}$enable_static" >&6
16049 +
16050 +if test "$hardcode_action" = relink; then
16051 +  # Fast installation is not supported
16052 +  enable_fast_install=no
16053 +elif test "$shlibpath_overrides_runpath" = yes ||
16054 +     test "$enable_shared" = no; then
16055 +  # Fast installation is not necessary
16056 +  enable_fast_install=needless
16057 +fi
16058 +
16059 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16060 +if test "$GCC" = yes; then
16061 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16062 +fi
16063 +
16064 +if test "x$enable_dlopen" != xyes; then
16065 +  enable_dlopen=unknown
16066 +  enable_dlopen_self=unknown
16067 +  enable_dlopen_self_static=unknown
16068 +else
16069 +  lt_cv_dlopen=no
16070 +  lt_cv_dlopen_libs=
16071 +
16072 +  case $host_os in
16073 +  beos*)
16074 +    lt_cv_dlopen="load_add_on"
16075 +    lt_cv_dlopen_libs=
16076 +    lt_cv_dlopen_self=yes
16077 +    ;;
16078 +
16079 +  cygwin* | mingw* | pw32*)
16080 +    lt_cv_dlopen="LoadLibrary"
16081 +    lt_cv_dlopen_libs=
16082 +   ;;
16083 +
16084 +  *)
16085 +    echo "$as_me:$LINENO: checking for shl_load" >&5
16086 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16087 +if test "${ac_cv_func_shl_load+set}" = set; then
16088 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16089 +else
16090 +  cat >conftest.$ac_ext <<_ACEOF
16091 +/* confdefs.h.  */
16092 +_ACEOF
16093 +cat confdefs.h >>conftest.$ac_ext
16094 +cat >>conftest.$ac_ext <<_ACEOF
16095 +/* end confdefs.h.  */
16096 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16097 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16098 +#define shl_load innocuous_shl_load
16099 +
16100 +/* System header to define __stub macros and hopefully few prototypes,
16101 +    which can conflict with char shl_load (); below.
16102 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16103 +    <limits.h> exists even on freestanding compilers.  */
16104 +
16105 +#ifdef __STDC__
16106 +# include <limits.h>
16107 +#else
16108 +# include <assert.h>
16109 +#endif
16110 +
16111 +#undef shl_load
16112 +
16113 +/* Override any gcc2 internal prototype to avoid an error.  */
16114 +#ifdef __cplusplus
16115 +extern "C"
16116 +{
16117 +#endif
16118 +/* We use char because int might match the return type of a gcc2
16119 +   builtin and then its argument prototype would still apply.  */
16120 +char shl_load ();
16121 +/* The GNU C library defines this for functions which it implements
16122 +    to always fail with ENOSYS.  Some functions are actually named
16123 +    something starting with __ and the normal name is an alias.  */
16124 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
16125 +choke me
16126 +#else
16127 +char (*f) () = shl_load;
16128 +#endif
16129 +#ifdef __cplusplus
16130 +}
16131 +#endif
16132 +
16133 +int
16134 +main ()
16135 +{
16136 +return f != shl_load;
16137 +  ;
16138 +  return 0;
16139 +}
16140 +_ACEOF
16141 +rm -f conftest.$ac_objext conftest$ac_exeext
16142 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16143 +  (eval $ac_link) 2>conftest.er1
16144 +  ac_status=$?
16145 +  grep -v '^ *+' conftest.er1 >conftest.err
16146 +  rm -f conftest.er1
16147 +  cat conftest.err >&5
16148 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 +  (exit $ac_status); } &&
16150 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16151 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 +  (eval $ac_try) 2>&5
16153 +  ac_status=$?
16154 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 +  (exit $ac_status); }; } &&
16156 +        { ac_try='test -s conftest$ac_exeext'
16157 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 +  (eval $ac_try) 2>&5
16159 +  ac_status=$?
16160 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 +  (exit $ac_status); }; }; then
16162 +  ac_cv_func_shl_load=yes
16163 +else
16164 +  echo "$as_me: failed program was:" >&5
16165 +sed 's/^/| /' conftest.$ac_ext >&5
16166 +
16167 +ac_cv_func_shl_load=no
16168 +fi
16169 +rm -f conftest.err conftest.$ac_objext \
16170 +      conftest$ac_exeext conftest.$ac_ext
16171 +fi
16172 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16173 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16174 +if test $ac_cv_func_shl_load = yes; then
16175 +  lt_cv_dlopen="shl_load"
16176 +else
16177 +  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16178 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16179 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16180 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16181 +else
16182 +  ac_check_lib_save_LIBS=$LIBS
16183 +LIBS="-ldld  $LIBS"
16184 +cat >conftest.$ac_ext <<_ACEOF
16185 +/* confdefs.h.  */
16186 +_ACEOF
16187 +cat confdefs.h >>conftest.$ac_ext
16188 +cat >>conftest.$ac_ext <<_ACEOF
16189 +/* end confdefs.h.  */
16190 +
16191 +/* Override any gcc2 internal prototype to avoid an error.  */
16192 +#ifdef __cplusplus
16193 +extern "C"
16194 +#endif
16195 +/* We use char because int might match the return type of a gcc2
16196 +   builtin and then its argument prototype would still apply.  */
16197 +char shl_load ();
16198 +int
16199 +main ()
16200 +{
16201 +shl_load ();
16202 +  ;
16203 +  return 0;
16204 +}
16205 +_ACEOF
16206 +rm -f conftest.$ac_objext conftest$ac_exeext
16207 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16208 +  (eval $ac_link) 2>conftest.er1
16209 +  ac_status=$?
16210 +  grep -v '^ *+' conftest.er1 >conftest.err
16211 +  rm -f conftest.er1
16212 +  cat conftest.err >&5
16213 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 +  (exit $ac_status); } &&
16215 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16216 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 +  (eval $ac_try) 2>&5
16218 +  ac_status=$?
16219 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 +  (exit $ac_status); }; } &&
16221 +        { ac_try='test -s conftest$ac_exeext'
16222 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 +  (eval $ac_try) 2>&5
16224 +  ac_status=$?
16225 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 +  (exit $ac_status); }; }; then
16227 +  ac_cv_lib_dld_shl_load=yes
16228 +else
16229 +  echo "$as_me: failed program was:" >&5
16230 +sed 's/^/| /' conftest.$ac_ext >&5
16231 +
16232 +ac_cv_lib_dld_shl_load=no
16233 +fi
16234 +rm -f conftest.err conftest.$ac_objext \
16235 +      conftest$ac_exeext conftest.$ac_ext
16236 +LIBS=$ac_check_lib_save_LIBS
16237 +fi
16238 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16239 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16240 +if test $ac_cv_lib_dld_shl_load = yes; then
16241 +  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16242 +else
16243 +  echo "$as_me:$LINENO: checking for dlopen" >&5
16244 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16245 +if test "${ac_cv_func_dlopen+set}" = set; then
16246 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16247 +else
16248 +  cat >conftest.$ac_ext <<_ACEOF
16249 +/* confdefs.h.  */
16250 +_ACEOF
16251 +cat confdefs.h >>conftest.$ac_ext
16252 +cat >>conftest.$ac_ext <<_ACEOF
16253 +/* end confdefs.h.  */
16254 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16255 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16256 +#define dlopen innocuous_dlopen
16257 +
16258 +/* System header to define __stub macros and hopefully few prototypes,
16259 +    which can conflict with char dlopen (); below.
16260 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16261 +    <limits.h> exists even on freestanding compilers.  */
16262 +
16263 +#ifdef __STDC__
16264 +# include <limits.h>
16265 +#else
16266 +# include <assert.h>
16267 +#endif
16268 +
16269 +#undef dlopen
16270 +
16271 +/* Override any gcc2 internal prototype to avoid an error.  */
16272 +#ifdef __cplusplus
16273 +extern "C"
16274 +{
16275 +#endif
16276 +/* We use char because int might match the return type of a gcc2
16277 +   builtin and then its argument prototype would still apply.  */
16278 +char dlopen ();
16279 +/* The GNU C library defines this for functions which it implements
16280 +    to always fail with ENOSYS.  Some functions are actually named
16281 +    something starting with __ and the normal name is an alias.  */
16282 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
16283 +choke me
16284 +#else
16285 +char (*f) () = dlopen;
16286 +#endif
16287 +#ifdef __cplusplus
16288 +}
16289 +#endif
16290 +
16291 +int
16292 +main ()
16293 +{
16294 +return f != dlopen;
16295 +  ;
16296 +  return 0;
16297 +}
16298 +_ACEOF
16299 +rm -f conftest.$ac_objext conftest$ac_exeext
16300 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16301 +  (eval $ac_link) 2>conftest.er1
16302 +  ac_status=$?
16303 +  grep -v '^ *+' conftest.er1 >conftest.err
16304 +  rm -f conftest.er1
16305 +  cat conftest.err >&5
16306 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 +  (exit $ac_status); } &&
16308 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16309 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 +  (eval $ac_try) 2>&5
16311 +  ac_status=$?
16312 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 +  (exit $ac_status); }; } &&
16314 +        { ac_try='test -s conftest$ac_exeext'
16315 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 +  (eval $ac_try) 2>&5
16317 +  ac_status=$?
16318 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 +  (exit $ac_status); }; }; then
16320 +  ac_cv_func_dlopen=yes
16321 +else
16322 +  echo "$as_me: failed program was:" >&5
16323 +sed 's/^/| /' conftest.$ac_ext >&5
16324 +
16325 +ac_cv_func_dlopen=no
16326 +fi
16327 +rm -f conftest.err conftest.$ac_objext \
16328 +      conftest$ac_exeext conftest.$ac_ext
16329 +fi
16330 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16331 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16332 +if test $ac_cv_func_dlopen = yes; then
16333 +  lt_cv_dlopen="dlopen"
16334 +else
16335 +  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16336 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16337 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16338 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16339 +else
16340 +  ac_check_lib_save_LIBS=$LIBS
16341 +LIBS="-ldl  $LIBS"
16342 +cat >conftest.$ac_ext <<_ACEOF
16343 +/* confdefs.h.  */
16344 +_ACEOF
16345 +cat confdefs.h >>conftest.$ac_ext
16346 +cat >>conftest.$ac_ext <<_ACEOF
16347 +/* end confdefs.h.  */
16348 +
16349 +/* Override any gcc2 internal prototype to avoid an error.  */
16350 +#ifdef __cplusplus
16351 +extern "C"
16352 +#endif
16353 +/* We use char because int might match the return type of a gcc2
16354 +   builtin and then its argument prototype would still apply.  */
16355 +char dlopen ();
16356 +int
16357 +main ()
16358 +{
16359 +dlopen ();
16360 +  ;
16361 +  return 0;
16362 +}
16363 +_ACEOF
16364 +rm -f conftest.$ac_objext conftest$ac_exeext
16365 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16366 +  (eval $ac_link) 2>conftest.er1
16367 +  ac_status=$?
16368 +  grep -v '^ *+' conftest.er1 >conftest.err
16369 +  rm -f conftest.er1
16370 +  cat conftest.err >&5
16371 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 +  (exit $ac_status); } &&
16373 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16374 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 +  (eval $ac_try) 2>&5
16376 +  ac_status=$?
16377 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 +  (exit $ac_status); }; } &&
16379 +        { ac_try='test -s conftest$ac_exeext'
16380 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 +  (eval $ac_try) 2>&5
16382 +  ac_status=$?
16383 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 +  (exit $ac_status); }; }; then
16385 +  ac_cv_lib_dl_dlopen=yes
16386 +else
16387 +  echo "$as_me: failed program was:" >&5
16388 +sed 's/^/| /' conftest.$ac_ext >&5
16389 +
16390 +ac_cv_lib_dl_dlopen=no
16391 +fi
16392 +rm -f conftest.err conftest.$ac_objext \
16393 +      conftest$ac_exeext conftest.$ac_ext
16394 +LIBS=$ac_check_lib_save_LIBS
16395 +fi
16396 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16397 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16398 +if test $ac_cv_lib_dl_dlopen = yes; then
16399 +  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16400 +else
16401 +  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16402 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16403 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16404 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16405 +else
16406 +  ac_check_lib_save_LIBS=$LIBS
16407 +LIBS="-lsvld  $LIBS"
16408 +cat >conftest.$ac_ext <<_ACEOF
16409 +/* confdefs.h.  */
16410 +_ACEOF
16411 +cat confdefs.h >>conftest.$ac_ext
16412 +cat >>conftest.$ac_ext <<_ACEOF
16413 +/* end confdefs.h.  */
16414 +
16415 +/* Override any gcc2 internal prototype to avoid an error.  */
16416 +#ifdef __cplusplus
16417 +extern "C"
16418 +#endif
16419 +/* We use char because int might match the return type of a gcc2
16420 +   builtin and then its argument prototype would still apply.  */
16421 +char dlopen ();
16422 +int
16423 +main ()
16424 +{
16425 +dlopen ();
16426 +  ;
16427 +  return 0;
16428 +}
16429 +_ACEOF
16430 +rm -f conftest.$ac_objext conftest$ac_exeext
16431 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16432 +  (eval $ac_link) 2>conftest.er1
16433 +  ac_status=$?
16434 +  grep -v '^ *+' conftest.er1 >conftest.err
16435 +  rm -f conftest.er1
16436 +  cat conftest.err >&5
16437 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 +  (exit $ac_status); } &&
16439 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16440 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441 +  (eval $ac_try) 2>&5
16442 +  ac_status=$?
16443 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 +  (exit $ac_status); }; } &&
16445 +        { ac_try='test -s conftest$ac_exeext'
16446 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 +  (eval $ac_try) 2>&5
16448 +  ac_status=$?
16449 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 +  (exit $ac_status); }; }; then
16451 +  ac_cv_lib_svld_dlopen=yes
16452 +else
16453 +  echo "$as_me: failed program was:" >&5
16454 +sed 's/^/| /' conftest.$ac_ext >&5
16455 +
16456 +ac_cv_lib_svld_dlopen=no
16457 +fi
16458 +rm -f conftest.err conftest.$ac_objext \
16459 +      conftest$ac_exeext conftest.$ac_ext
16460 +LIBS=$ac_check_lib_save_LIBS
16461 +fi
16462 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16463 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16464 +if test $ac_cv_lib_svld_dlopen = yes; then
16465 +  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16466 +else
16467 +  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16468 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16469 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16470 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16471 +else
16472 +  ac_check_lib_save_LIBS=$LIBS
16473 +LIBS="-ldld  $LIBS"
16474 +cat >conftest.$ac_ext <<_ACEOF
16475 +/* confdefs.h.  */
16476 +_ACEOF
16477 +cat confdefs.h >>conftest.$ac_ext
16478 +cat >>conftest.$ac_ext <<_ACEOF
16479 +/* end confdefs.h.  */
16480 +
16481 +/* Override any gcc2 internal prototype to avoid an error.  */
16482 +#ifdef __cplusplus
16483 +extern "C"
16484 +#endif
16485 +/* We use char because int might match the return type of a gcc2
16486 +   builtin and then its argument prototype would still apply.  */
16487 +char dld_link ();
16488 +int
16489 +main ()
16490 +{
16491 +dld_link ();
16492 +  ;
16493 +  return 0;
16494 +}
16495 +_ACEOF
16496 +rm -f conftest.$ac_objext conftest$ac_exeext
16497 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16498 +  (eval $ac_link) 2>conftest.er1
16499 +  ac_status=$?
16500 +  grep -v '^ *+' conftest.er1 >conftest.err
16501 +  rm -f conftest.er1
16502 +  cat conftest.err >&5
16503 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 +  (exit $ac_status); } &&
16505 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16506 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 +  (eval $ac_try) 2>&5
16508 +  ac_status=$?
16509 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 +  (exit $ac_status); }; } &&
16511 +        { ac_try='test -s conftest$ac_exeext'
16512 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 +  (eval $ac_try) 2>&5
16514 +  ac_status=$?
16515 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 +  (exit $ac_status); }; }; then
16517 +  ac_cv_lib_dld_dld_link=yes
16518 +else
16519 +  echo "$as_me: failed program was:" >&5
16520 +sed 's/^/| /' conftest.$ac_ext >&5
16521 +
16522 +ac_cv_lib_dld_dld_link=no
16523 +fi
16524 +rm -f conftest.err conftest.$ac_objext \
16525 +      conftest$ac_exeext conftest.$ac_ext
16526 +LIBS=$ac_check_lib_save_LIBS
16527 +fi
16528 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16529 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16530 +if test $ac_cv_lib_dld_dld_link = yes; then
16531 +  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16532 +fi
16533 +
16534 +             
16535 +fi
16536 +
16537 +           
16538 +fi
16539 +
16540 +         
16541 +fi
16542 +
16543 +       
16544 +fi
16545 +
16546 +      
16547 +fi
16548 +
16549 +    ;;
16550 +  esac
16551 +
16552 +  if test "x$lt_cv_dlopen" != xno; then
16553 +    enable_dlopen=yes
16554 +  else
16555 +    enable_dlopen=no
16556 +  fi
16557 +
16558 +  case $lt_cv_dlopen in
16559 +  dlopen)
16560 +    save_CPPFLAGS="$CPPFLAGS"
16561 +        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16562 +
16563 +    save_LDFLAGS="$LDFLAGS"
16564 +    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16565 +
16566 +    save_LIBS="$LIBS"
16567 +    LIBS="$lt_cv_dlopen_libs $LIBS"
16568 +
16569 +    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16570 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16571 +if test "${lt_cv_dlopen_self+set}" = set; then
16572 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16573 +else
16574 +         if test "$cross_compiling" = yes; then :
16575 +  lt_cv_dlopen_self=cross
16576 +else
16577 +    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16578 +  lt_status=$lt_dlunknown
16579 +  cat > conftest.$ac_ext <<EOF
16580 +#line __oline__ "configure"
16581 +#include "confdefs.h"
16582 +
16583 +#if HAVE_DLFCN_H
16584 +#include <dlfcn.h>
16585 +#endif
16586 +
16587 +#include <stdio.h>
16588 +
16589 +#ifdef RTLD_GLOBAL
16590 +#  define LT_DLGLOBAL          RTLD_GLOBAL
16591 +#else
16592 +#  ifdef DL_GLOBAL
16593 +#    define LT_DLGLOBAL                DL_GLOBAL
16594 +#  else
16595 +#    define LT_DLGLOBAL                0
16596 +#  endif
16597 +#endif
16598 +
16599 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16600 +   find out it does not work in some platform. */
16601 +#ifndef LT_DLLAZY_OR_NOW
16602 +#  ifdef RTLD_LAZY
16603 +#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
16604 +#  else
16605 +#    ifdef DL_LAZY
16606 +#      define LT_DLLAZY_OR_NOW         DL_LAZY
16607 +#    else
16608 +#      ifdef RTLD_NOW
16609 +#        define LT_DLLAZY_OR_NOW       RTLD_NOW
16610 +#      else
16611 +#        ifdef DL_NOW
16612 +#          define LT_DLLAZY_OR_NOW     DL_NOW
16613 +#        else
16614 +#          define LT_DLLAZY_OR_NOW     0
16615 +#        endif
16616 +#      endif
16617 +#    endif
16618 +#  endif
16619 +#endif
16620 +
16621 +#ifdef __cplusplus
16622 +extern "C" void exit (int);
16623 +#endif
16624 +
16625 +void fnord() { int i=42;}
16626 +int main ()
16627 +{
16628 +  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16629 +  int status = $lt_dlunknown;
16630 +
16631 +  if (self)
16632 +    {
16633 +      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16634 +      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16635 +      /* dlclose (self); */
16636 +    }
16637 +
16638 +    exit (status);
16639 +}
16640 +EOF
16641 +  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16642 +  (eval $ac_link) 2>&5
16643 +  ac_status=$?
16644 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 +  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16646 +    (./conftest; exit; ) 2>/dev/null
16647 +    lt_status=$?
16648 +    case x$lt_status in
16649 +      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16650 +      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16651 +      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16652 +    esac
16653 +  else :
16654 +    # compilation failed
16655 +    lt_cv_dlopen_self=no
16656 +  fi
16657 +fi
16658 +rm -fr conftest*
16659 +
16660 +    
16661 +fi
16662 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16663 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16664 +
16665 +    if test "x$lt_cv_dlopen_self" = xyes; then
16666 +      LDFLAGS="$LDFLAGS $link_static_flag"
16667 +      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16668 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16669 +if test "${lt_cv_dlopen_self_static+set}" = set; then
16670 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16671 +else
16672 +         if test "$cross_compiling" = yes; then :
16673 +  lt_cv_dlopen_self_static=cross
16674 +else
16675 +    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16676 +  lt_status=$lt_dlunknown
16677 +  cat > conftest.$ac_ext <<EOF
16678 +#line __oline__ "configure"
16679 +#include "confdefs.h"
16680 +
16681 +#if HAVE_DLFCN_H
16682 +#include <dlfcn.h>
16683 +#endif
16684 +
16685 +#include <stdio.h>
16686 +
16687 +#ifdef RTLD_GLOBAL
16688 +#  define LT_DLGLOBAL          RTLD_GLOBAL
16689 +#else
16690 +#  ifdef DL_GLOBAL
16691 +#    define LT_DLGLOBAL                DL_GLOBAL
16692 +#  else
16693 +#    define LT_DLGLOBAL                0
16694 +#  endif
16695 +#endif
16696 +
16697 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16698 +   find out it does not work in some platform. */
16699 +#ifndef LT_DLLAZY_OR_NOW
16700 +#  ifdef RTLD_LAZY
16701 +#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
16702 +#  else
16703 +#    ifdef DL_LAZY
16704 +#      define LT_DLLAZY_OR_NOW         DL_LAZY
16705 +#    else
16706 +#      ifdef RTLD_NOW
16707 +#        define LT_DLLAZY_OR_NOW       RTLD_NOW
16708 +#      else
16709 +#        ifdef DL_NOW
16710 +#          define LT_DLLAZY_OR_NOW     DL_NOW
16711 +#        else
16712 +#          define LT_DLLAZY_OR_NOW     0
16713 +#        endif
16714 +#      endif
16715 +#    endif
16716 +#  endif
16717 +#endif
16718 +
16719 +#ifdef __cplusplus
16720 +extern "C" void exit (int);
16721 +#endif
16722 +
16723 +void fnord() { int i=42;}
16724 +int main ()
16725 +{
16726 +  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16727 +  int status = $lt_dlunknown;
16728 +
16729 +  if (self)
16730 +    {
16731 +      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16732 +      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16733 +      /* dlclose (self); */
16734 +    }
16735 +
16736 +    exit (status);
16737 +}
16738 +EOF
16739 +  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16740 +  (eval $ac_link) 2>&5
16741 +  ac_status=$?
16742 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 +  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16744 +    (./conftest; exit; ) 2>/dev/null
16745 +    lt_status=$?
16746 +    case x$lt_status in
16747 +      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16748 +      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16749 +      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16750 +    esac
16751 +  else :
16752 +    # compilation failed
16753 +    lt_cv_dlopen_self_static=no
16754 +  fi
16755 +fi
16756 +rm -fr conftest*
16757 +
16758 +      
16759 +fi
16760 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16761 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16762 +    fi
16763 +
16764 +    CPPFLAGS="$save_CPPFLAGS"
16765 +    LDFLAGS="$save_LDFLAGS"
16766 +    LIBS="$save_LIBS"
16767 +    ;;
16768 +  esac
16769 +
16770 +  case $lt_cv_dlopen_self in
16771 +  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16772 +  *) enable_dlopen_self=unknown ;;
16773 +  esac
16774 +
16775 +  case $lt_cv_dlopen_self_static in
16776 +  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16777 +  *) enable_dlopen_self_static=unknown ;;
16778 +  esac
16779 +fi
16780 +
16781 +
16782 +if test "$enable_shared" = yes && test "$GCC" = yes; then
16783 +  case $archive_cmds in
16784 +  *'~'*)
16785 +    # FIXME: we may have to deal with multi-command sequences.
16786 +    ;;
16787 +  '$CC '*)
16788 +    # Test whether the compiler implicitly links with -lc since on some
16789 +    # systems, -lgcc has to come before -lc. If gcc already passes -lc
16790 +    # to ld, don't add -lc before -lgcc.
16791 +    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16792 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16793 +    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
16794 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16795 +else
16796 +  $rm conftest*
16797 +    echo 'static int dummy;' > conftest.$ac_ext
16798 +
16799 +    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16800 +  (eval $ac_compile) 2>&5
16801 +  ac_status=$?
16802 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 +  (exit $ac_status); }; then
16804 +      soname=conftest
16805 +      lib=conftest
16806 +      libobjs=conftest.$ac_objext
16807 +      deplibs=
16808 +      wl=$lt_cv_prog_cc_wl
16809 +      compiler_flags=-v
16810 +      linker_flags=-v
16811 +      verstring=
16812 +      output_objdir=.
16813 +      libname=conftest
16814 +      save_allow_undefined_flag=$allow_undefined_flag
16815 +      allow_undefined_flag=
16816 +      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16817 +  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16818 +  ac_status=$?
16819 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 +  (exit $ac_status); }
16821 +      then
16822 +       lt_cv_archive_cmds_need_lc=no
16823 +      else
16824 +       lt_cv_archive_cmds_need_lc=yes
16825 +      fi
16826 +      allow_undefined_flag=$save_allow_undefined_flag
16827 +    else
16828 +      cat conftest.err 1>&5
16829 +    fi
16830 +fi
16831 +
16832 +    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
16833 +echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
16834 +    ;;
16835 +  esac
16836 +fi
16837 +need_lc=${lt_cv_archive_cmds_need_lc-yes}
16838 +
16839 +# The second clause should only fire when bootstrapping the
16840 +# libtool distribution, otherwise you forgot to ship ltmain.sh
16841 +# with your package, and you will get complaints that there are
16842 +# no rules to generate ltmain.sh.
16843 +if test -f "$ltmain"; then
16844 +  :
16845 +else
16846 +  # If there is no Makefile yet, we rely on a make rule to execute
16847 +  # `config.status --recheck' to rerun these tests and create the
16848 +  # libtool script then.
16849 +  test -f Makefile && make "$ltmain"
16850 +fi
16851 +
16852 +if test -f "$ltmain"; then
16853 +  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
16854 +  $rm -f "${ofile}T"
16855 +
16856 +  echo creating $ofile
16857 +
16858 +  # Now quote all the things that may contain metacharacters while being
16859 +  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16860 +  # variables and quote the copies for generation of the libtool script.
16861 +  for var in echo old_CC old_CFLAGS SED \
16862 +    AR AR_FLAGS CC LD LN_S NM SHELL \
16863 +    reload_flag reload_cmds wl \
16864 +    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
16865 +    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
16866 +    library_names_spec soname_spec \
16867 +    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
16868 +    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
16869 +    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
16870 +    old_striplib striplib file_magic_cmd export_symbols_cmds \
16871 +    deplibs_check_method allow_undefined_flag no_undefined_flag \
16872 +    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
16873 +    global_symbol_to_c_name_address \
16874 +    hardcode_libdir_flag_spec hardcode_libdir_separator  \
16875 +    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16876 +    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
16877 +
16878 +    case $var in
16879 +    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
16880 +    old_postinstall_cmds | old_postuninstall_cmds | \
16881 +    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
16882 +    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
16883 +    postinstall_cmds | postuninstall_cmds | \
16884 +    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16885 +      # Double-quote double-evaled strings.
16886 +      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16887 +      ;;
16888 +    *)
16889 +      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16890 +      ;;
16891 +    esac
16892 +  done
16893 +
16894 +  cat <<__EOF__ > "${ofile}T"
16895 +#! $SHELL
16896 +
16897 +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16898 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16899 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16900 +#
16901 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
16902 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16903 +#
16904 +# This program is free software; you can redistribute it and/or modify
16905 +# it under the terms of the GNU General Public License as published by
16906 +# the Free Software Foundation; either version 2 of the License, or
16907 +# (at your option) any later version.
16908 +#
16909 +# This program is distributed in the hope that it will be useful, but
16910 +# WITHOUT ANY WARRANTY; without even the implied warranty of
16911 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16912 +# General Public License for more details.
16913 +#
16914 +# You should have received a copy of the GNU General Public License
16915 +# along with this program; if not, write to the Free Software
16916 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16917 +#
16918 +# As a special exception to the GNU General Public License, if you
16919 +# distribute this file as part of a program that contains a
16920 +# configuration script generated by Autoconf, you may include it under
16921 +# the same distribution terms that you use for the rest of that program.
16922 +
16923 +# A sed that does not truncate output.
16924 +SED=$lt_SED
16925 +
16926 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16927 +Xsed="${SED} -e s/^X//"
16928 +
16929 +# The HP-UX ksh and POSIX shell print the target directory to stdout
16930 +# if CDPATH is set.
16931 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
16932 +
16933 +# ### BEGIN LIBTOOL CONFIG
16934 +
16935 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16936 +
16937 +# Shell to use when invoking shell scripts.
16938 +SHELL=$lt_SHELL
16939 +
16940 +# Whether or not to build shared libraries.
16941 +build_libtool_libs=$enable_shared
16942 +
16943 +# Whether or not to build static libraries.
16944 +build_old_libs=$enable_static
16945 +
16946 +# Whether or not to add -lc for building shared libraries.
16947 +build_libtool_need_lc=$need_lc
16948 +
16949 +# Whether or not to optimize for fast installation.
16950 +fast_install=$enable_fast_install
16951 +
16952 +# The host system.
16953 +host_alias=$host_alias
16954 +host=$host
16955 +
16956 +# An echo program that does not interpret backslashes.
16957 +echo=$lt_echo
16958 +
16959 +# The archiver.
16960 +AR=$lt_AR
16961 +AR_FLAGS=$lt_AR_FLAGS
16962 +
16963 +# The default C compiler.
16964 +CC=$lt_CC
16965 +
16966 +# Is the compiler the GNU C compiler?
16967 +with_gcc=$GCC
16968 +
16969 +# The linker used to build libraries.
16970 +LD=$lt_LD
16971 +
16972 +# Whether we need hard or soft links.
16973 +LN_S=$lt_LN_S
16974 +
16975 +# A BSD-compatible nm program.
16976 +NM=$lt_NM
16977 +
16978 +# A symbol stripping program
16979 +STRIP=$STRIP
16980 +
16981 +# Used to examine libraries when file_magic_cmd begins "file"
16982 +MAGIC_CMD=$MAGIC_CMD
16983 +
16984 +# Used on cygwin: DLL creation program.
16985 +DLLTOOL="$DLLTOOL"
16986 +
16987 +# Used on cygwin: object dumper.
16988 +OBJDUMP="$OBJDUMP"
16989 +
16990 +# Used on cygwin: assembler.
16991 +AS="$AS"
16992 +
16993 +# The name of the directory that contains temporary libtool files.
16994 +objdir=$objdir
16995 +
16996 +# How to create reloadable object files.
16997 +reload_flag=$lt_reload_flag
16998 +reload_cmds=$lt_reload_cmds
16999 +
17000 +# How to pass a linker flag through the compiler.
17001 +wl=$lt_wl
17002 +
17003 +# Object file suffix (normally "o").
17004 +objext="$ac_objext"
17005 +
17006 +# Old archive suffix (normally "a").
17007 +libext="$libext"
17008 +
17009 +# Executable file suffix (normally "").
17010 +exeext="$exeext"
17011 +
17012 +# Additional compiler flags for building library objects.
17013 +pic_flag=$lt_pic_flag
17014 +pic_mode=$pic_mode
17015 +
17016 +# Does compiler simultaneously support -c and -o options?
17017 +compiler_c_o=$lt_compiler_c_o
17018 +
17019 +# Can we write directly to a .lo ?
17020 +compiler_o_lo=$lt_compiler_o_lo
17021 +
17022 +# Must we lock files when doing compilation ?
17023 +need_locks=$lt_need_locks
17024 +
17025 +# Do we need the lib prefix for modules?
17026 +need_lib_prefix=$need_lib_prefix
17027 +
17028 +# Do we need a version for libraries?
17029 +need_version=$need_version
17030 +
17031 +# Whether dlopen is supported.
17032 +dlopen_support=$enable_dlopen
17033 +
17034 +# Whether dlopen of programs is supported.
17035 +dlopen_self=$enable_dlopen_self
17036 +
17037 +# Whether dlopen of statically linked programs is supported.
17038 +dlopen_self_static=$enable_dlopen_self_static
17039 +
17040 +# Compiler flag to prevent dynamic linking.
17041 +link_static_flag=$lt_link_static_flag
17042 +
17043 +# Compiler flag to turn off builtin functions.
17044 +no_builtin_flag=$lt_no_builtin_flag
17045 +
17046 +# Compiler flag to allow reflexive dlopens.
17047 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17048 +
17049 +# Compiler flag to generate shared objects directly from archives.
17050 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
17051 +
17052 +# Compiler flag to generate thread-safe objects.
17053 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
17054 +
17055 +# Library versioning type.
17056 +version_type=$version_type
17057 +
17058 +# Format of library name prefix.
17059 +libname_spec=$lt_libname_spec
17060 +
17061 +# List of archive names.  First name is the real one, the rest are links.
17062 +# The last name is the one that the linker finds with -lNAME.
17063 +library_names_spec=$lt_library_names_spec
17064 +
17065 +# The coded name of the library, if different from the real name.
17066 +soname_spec=$lt_soname_spec
17067 +
17068 +# Commands used to build and install an old-style archive.
17069 +RANLIB=$lt_RANLIB
17070 +old_archive_cmds=$lt_old_archive_cmds
17071 +old_postinstall_cmds=$lt_old_postinstall_cmds
17072 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
17073 +
17074 +# Create an old-style archive from a shared archive.
17075 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17076 +
17077 +# Create a temporary old-style archive to link instead of a shared archive.
17078 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17079 +
17080 +# Commands used to build and install a shared archive.
17081 +archive_cmds=$lt_archive_cmds
17082 +archive_expsym_cmds=$lt_archive_expsym_cmds
17083 +postinstall_cmds=$lt_postinstall_cmds
17084 +postuninstall_cmds=$lt_postuninstall_cmds
17085 +
17086 +# Commands to strip libraries.
17087 +old_striplib=$lt_old_striplib
17088 +striplib=$lt_striplib
17089 +
17090 +# Method to check whether dependent libraries are shared objects.
17091 +deplibs_check_method=$lt_deplibs_check_method
17092 +
17093 +# Command to use when deplibs_check_method == file_magic.
17094 +file_magic_cmd=$lt_file_magic_cmd
17095 +
17096 +# Flag that allows shared libraries with undefined symbols to be built.
17097 +allow_undefined_flag=$lt_allow_undefined_flag
17098 +
17099 +# Flag that forces no undefined symbols.
17100 +no_undefined_flag=$lt_no_undefined_flag
17101 +
17102 +# Commands used to finish a libtool library installation in a directory.
17103 +finish_cmds=$lt_finish_cmds
17104 +
17105 +# Same as above, but a single script fragment to be evaled but not shown.
17106 +finish_eval=$lt_finish_eval
17107 +
17108 +# Take the output of nm and produce a listing of raw symbols and C names.
17109 +global_symbol_pipe=$lt_global_symbol_pipe
17110 +
17111 +# Transform the output of nm in a proper C declaration
17112 +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
17113 +
17114 +# Transform the output of nm in a C name address pair
17115 +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
17116 +
17117 +# This is the shared library runtime path variable.
17118 +runpath_var=$runpath_var
17119 +
17120 +# This is the shared library path variable.
17121 +shlibpath_var=$shlibpath_var
17122 +
17123 +# Is shlibpath searched before the hard-coded library search path?
17124 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17125 +
17126 +# How to hardcode a shared library path into an executable.
17127 +hardcode_action=$hardcode_action
17128 +
17129 +# Whether we should hardcode library paths into libraries.
17130 +hardcode_into_libs=$hardcode_into_libs
17131 +
17132 +# Flag to hardcode \$libdir into a binary during linking.
17133 +# This must work even if \$libdir does not exist.
17134 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17135 +
17136 +# Whether we need a single -rpath flag with a separated argument.
17137 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
17138 +
17139 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
17140 +# resulting binary.
17141 +hardcode_direct=$hardcode_direct
17142 +
17143 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17144 +# resulting binary.
17145 +hardcode_minus_L=$hardcode_minus_L
17146 +
17147 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17148 +# the resulting binary.
17149 +hardcode_shlibpath_var=$hardcode_shlibpath_var
17150 +
17151 +# Variables whose values should be saved in libtool wrapper scripts and
17152 +# restored at relink time.
17153 +variables_saved_for_relink="$variables_saved_for_relink"
17154 +
17155 +# Whether libtool must link a program against all its dependency libraries.
17156 +link_all_deplibs=$link_all_deplibs
17157 +
17158 +# Compile-time system search path for libraries
17159 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17160 +
17161 +# Run-time system search path for libraries
17162 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17163 +
17164 +# Fix the shell variable \$srcfile for the compiler.
17165 +fix_srcfile_path="$fix_srcfile_path"
17166 +
17167 +# Set to yes if exported symbols are required.
17168 +always_export_symbols=$always_export_symbols
17169 +
17170 +# The commands to list exported symbols.
17171 +export_symbols_cmds=$lt_export_symbols_cmds
17172 +
17173 +# The commands to extract the exported symbol list from a shared archive.
17174 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
17175 +
17176 +# Symbols that should not be listed in the preloaded symbols.
17177 +exclude_expsyms=$lt_exclude_expsyms
17178 +
17179 +# Symbols that must always be exported.
17180 +include_expsyms=$lt_include_expsyms
17181 +
17182 +# ### END LIBTOOL CONFIG
17183 +
17184 +__EOF__
17185 +
17186 +  case $host_os in
17187 +  aix3*)
17188 +    cat <<\EOF >> "${ofile}T"
17189 +
17190 +# AIX sometimes has problems with the GCC collect2 program.  For some
17191 +# reason, if we set the COLLECT_NAMES environment variable, the problems
17192 +# vanish in a puff of smoke.
17193 +if test "X${COLLECT_NAMES+set}" != Xset; then
17194 +  COLLECT_NAMES=
17195 +  export COLLECT_NAMES
17196 +fi
17197 +EOF
17198 +    ;;
17199 +  esac
17200 +
17201 +  case $host_os in
17202 +  cygwin* | mingw* | pw32* | os2*)
17203 +    cat <<'EOF' >> "${ofile}T"
17204 +      # This is a source program that is used to create dlls on Windows
17205 +      # Don't remove nor modify the starting and closing comments
17206 +# /* ltdll.c starts here */
17207 +# #define WIN32_LEAN_AND_MEAN
17208 +# #include <windows.h>
17209 +# #undef WIN32_LEAN_AND_MEAN
17210 +# #include <stdio.h>
17211 +#
17212 +# #ifndef __CYGWIN__
17213 +# #  ifdef __CYGWIN32__
17214 +# #    define __CYGWIN__ __CYGWIN32__
17215 +# #  endif
17216 +# #endif
17217 +#
17218 +# #ifdef __cplusplus
17219 +# extern "C" {
17220 +# #endif
17221 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
17222 +# #ifdef __cplusplus
17223 +# }
17224 +# #endif
17225 +#
17226 +# #ifdef __CYGWIN__
17227 +# #include <cygwin/cygwin_dll.h>
17228 +# DECLARE_CYGWIN_DLL( DllMain );
17229 +# #endif
17230 +# HINSTANCE __hDllInstance_base;
17231 +#
17232 +# BOOL APIENTRY
17233 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
17234 +# {
17235 +#   __hDllInstance_base = hInst;
17236 +#   return TRUE;
17237 +# }
17238 +# /* ltdll.c ends here */
17239 +       # This is a source program that is used to create import libraries
17240 +       # on Windows for dlls which lack them. Don't remove nor modify the
17241 +       # starting and closing comments
17242 +# /* impgen.c starts here */
17243 +# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
17244 +#
17245 +#  This file is part of GNU libtool.
17246 +#
17247 +#  This program is free software; you can redistribute it and/or modify
17248 +#  it under the terms of the GNU General Public License as published by
17249 +#  the Free Software Foundation; either version 2 of the License, or
17250 +#  (at your option) any later version.
17251 +#
17252 +#  This program is distributed in the hope that it will be useful,
17253 +#  but WITHOUT ANY WARRANTY; without even the implied warranty of
17254 +#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17255 +#  GNU General Public License for more details.
17256 +#
17257 +#  You should have received a copy of the GNU General Public License
17258 +#  along with this program; if not, write to the Free Software
17259 +#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17260 +#  */
17261 +#
17262 +# #include <stdio.h>           /* for printf() */
17263 +# #include <unistd.h>          /* for open(), lseek(), read() */
17264 +# #include <fcntl.h>           /* for O_RDONLY, O_BINARY */
17265 +# #include <string.h>          /* for strdup() */
17266 +#
17267 +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
17268 +# #ifndef O_BINARY
17269 +# #define O_BINARY 0
17270 +# #endif
17271 +#
17272 +# static unsigned int
17273 +# pe_get16 (fd, offset)
17274 +#      int fd;
17275 +#      int offset;
17276 +# {
17277 +#   unsigned char b[2];
17278 +#   lseek (fd, offset, SEEK_SET);
17279 +#   read (fd, b, 2);
17280 +#   return b[0] + (b[1]<<8);
17281 +# }
17282 +#
17283 +# static unsigned int
17284 +# pe_get32 (fd, offset)
17285 +#     int fd;
17286 +#     int offset;
17287 +# {
17288 +#   unsigned char b[4];
17289 +#   lseek (fd, offset, SEEK_SET);
17290 +#   read (fd, b, 4);
17291 +#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
17292 +# }
17293 +#
17294 +# static unsigned int
17295 +# pe_as32 (ptr)
17296 +#      void *ptr;
17297 +# {
17298 +#   unsigned char *b = ptr;
17299 +#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
17300 +# }
17301 +#
17302 +# int
17303 +# main (argc, argv)
17304 +#     int argc;
17305 +#     char *argv[];
17306 +# {
17307 +#     int dll;
17308 +#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
17309 +#     unsigned long export_rva, export_size, nsections, secptr, expptr;
17310 +#     unsigned long name_rvas, nexp;
17311 +#     unsigned char *expdata, *erva;
17312 +#     char *filename, *dll_name;
17313 +#
17314 +#     filename = argv[1];
17315 +#
17316 +#     dll = open(filename, O_RDONLY|O_BINARY);
17317 +#     if (dll < 1)
17318 +#      return 1;
17319 +#
17320 +#     dll_name = filename;
17321 +#
17322 +#     for (i=0; filename[i]; i++)
17323 +#      if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
17324 +#          dll_name = filename + i +1;
17325 +#
17326 +#     pe_header_offset = pe_get32 (dll, 0x3c);
17327 +#     opthdr_ofs = pe_header_offset + 4 + 20;
17328 +#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
17329 +#
17330 +#     if (num_entries < 1) /* no exports */
17331 +#      return 1;
17332 +#
17333 +#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
17334 +#     export_size = pe_get32 (dll, opthdr_ofs + 100);
17335 +#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
17336 +#     secptr = (pe_header_offset + 4 + 20 +
17337 +#            pe_get16 (dll, pe_header_offset + 4 + 16));
17338 +#
17339 +#     expptr = 0;
17340 +#     for (i = 0; i < nsections; i++)
17341 +#     {
17342 +#      char sname[8];
17343 +#      unsigned long secptr1 = secptr + 40 * i;
17344 +#      unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
17345 +#      unsigned long vsize = pe_get32 (dll, secptr1 + 16);
17346 +#      unsigned long fptr = pe_get32 (dll, secptr1 + 20);
17347 +#      lseek(dll, secptr1, SEEK_SET);
17348 +#      read(dll, sname, 8);
17349 +#      if (vaddr <= export_rva && vaddr+vsize > export_rva)
17350 +#      {
17351 +#          expptr = fptr + (export_rva - vaddr);
17352 +#          if (export_rva + export_size > vaddr + vsize)
17353 +#              export_size = vsize - (export_rva - vaddr);
17354 +#          break;
17355 +#      }
17356 +#     }
17357 +#
17358 +#     expdata = (unsigned char*)malloc(export_size);
17359 +#     lseek (dll, expptr, SEEK_SET);
17360 +#     read (dll, expdata, export_size);
17361 +#     erva = expdata - export_rva;
17362 +#
17363 +#     nexp = pe_as32 (expdata+24);
17364 +#     name_rvas = pe_as32 (expdata+32);
17365 +#
17366 +#     printf ("EXPORTS\n");
17367 +#     for (i = 0; i<nexp; i++)
17368 +#     {
17369 +#      unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
17370 +#      printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
17371 +#     }
17372 +#
17373 +#     return 0;
17374 +# }
17375 +# /* impgen.c ends here */
17376 +
17377 +EOF
17378 +    ;;
17379 +  esac
17380 +
17381 +  # We use sed instead of cat because bash on DJGPP gets confused if
17382 +  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17383 +  # text mode, it properly converts lines to CR/LF.  This bash problem
17384 +  # is reportedly fixed, but why not run on old versions too?
17385 +  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
17386 +
17387 +  mv -f "${ofile}T" "$ofile" || \
17388 +    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
17389 +  chmod +x "$ofile"
17390 +fi
17391 +
17392 +
17393 +
17394 +
17395 +
17396 +# This can be used to rebuild libtool when needed
17397 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17398 +
17399 +# Always use our own libtool.
17400 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17401 +
17402 +# Prevent multiple expansion
17403 +
17404 +
17405 +
17406 +
17407 +# Extract the first word of "perl", so it can be a program name with args.
17408 +set dummy perl; ac_word=$2
17409 +echo "$as_me:$LINENO: checking for $ac_word" >&5
17410 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17411 +if test "${ac_cv_path_PERL+set}" = set; then
17412 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17413 +else
17414 +  case $PERL in
17415 +  [\\/]* | ?:[\\/]*)
17416 +  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17417 +  ;;
17418 +  *)
17419 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17420 +for as_dir in $PATH
17421 +do
17422 +  IFS=$as_save_IFS
17423 +  test -z "$as_dir" && as_dir=.
17424 +  for ac_exec_ext in '' $ac_executable_extensions; do
17425 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17426 +    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
17427 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17428 +    break 2
17429 +  fi
17430 +done
17431 +done
17432 +
17433 +  ;;
17434 +esac
17435 +fi
17436 +PERL=$ac_cv_path_PERL
17437 +
17438 +if test -n "$PERL"; then
17439 +  echo "$as_me:$LINENO: result: $PERL" >&5
17440 +echo "${ECHO_T}$PERL" >&6
17441 +else
17442 +  echo "$as_me:$LINENO: result: no" >&5
17443 +echo "${ECHO_T}no" >&6
17444 +fi
17445 +
17446 +
17447 +
17448 +
17449 +if test "${ac_cv_header_asm_errno_h+set}" = set; then
17450 +  echo "$as_me:$LINENO: checking for asm/errno.h" >&5
17451 +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
17452 +if test "${ac_cv_header_asm_errno_h+set}" = set; then
17453 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17454 +fi
17455 +echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
17456 +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
17457 +else
17458 +  # Is the header compilable?
17459 +echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
17460 +echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
17461 +cat >conftest.$ac_ext <<_ACEOF
17462 +/* confdefs.h.  */
17463 +_ACEOF
17464 +cat confdefs.h >>conftest.$ac_ext
17465 +cat >>conftest.$ac_ext <<_ACEOF
17466 +/* end confdefs.h.  */
17467 +$ac_includes_default
17468 +@%:@include <asm/errno.h>
17469 +_ACEOF
17470 +rm -f conftest.$ac_objext
17471 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17472 +  (eval $ac_compile) 2>conftest.er1
17473 +  ac_status=$?
17474 +  grep -v '^ *+' conftest.er1 >conftest.err
17475 +  rm -f conftest.er1
17476 +  cat conftest.err >&5
17477 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 +  (exit $ac_status); } &&
17479 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17480 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 +  (eval $ac_try) 2>&5
17482 +  ac_status=$?
17483 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 +  (exit $ac_status); }; } &&
17485 +        { ac_try='test -s conftest.$ac_objext'
17486 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 +  (eval $ac_try) 2>&5
17488 +  ac_status=$?
17489 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 +  (exit $ac_status); }; }; then
17491 +  ac_header_compiler=yes
17492 +else
17493 +  echo "$as_me: failed program was:" >&5
17494 +sed 's/^/| /' conftest.$ac_ext >&5
17495 +
17496 +ac_header_compiler=no
17497 +fi
17498 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17499 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17500 +echo "${ECHO_T}$ac_header_compiler" >&6
17501 +
17502 +# Is the header present?
17503 +echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
17504 +echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
17505 +cat >conftest.$ac_ext <<_ACEOF
17506 +/* confdefs.h.  */
17507 +_ACEOF
17508 +cat confdefs.h >>conftest.$ac_ext
17509 +cat >>conftest.$ac_ext <<_ACEOF
17510 +/* end confdefs.h.  */
17511 +@%:@include <asm/errno.h>
17512 +_ACEOF
17513 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17514 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17515 +  ac_status=$?
17516 +  grep -v '^ *+' conftest.er1 >conftest.err
17517 +  rm -f conftest.er1
17518 +  cat conftest.err >&5
17519 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 +  (exit $ac_status); } >/dev/null; then
17521 +  if test -s conftest.err; then
17522 +    ac_cpp_err=$ac_c_preproc_warn_flag
17523 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17524 +  else
17525 +    ac_cpp_err=
17526 +  fi
17527 +else
17528 +  ac_cpp_err=yes
17529 +fi
17530 +if test -z "$ac_cpp_err"; then
17531 +  ac_header_preproc=yes
17532 +else
17533 +  echo "$as_me: failed program was:" >&5
17534 +sed 's/^/| /' conftest.$ac_ext >&5
17535 +
17536 +  ac_header_preproc=no
17537 +fi
17538 +rm -f conftest.err conftest.$ac_ext
17539 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17540 +echo "${ECHO_T}$ac_header_preproc" >&6
17541 +
17542 +# So?  What about this header?
17543 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17544 +  yes:no: )
17545 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
17546 +echo "$as_me: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17547 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the compiler's result" >&5
17548 +echo "$as_me: WARNING: asm/errno.h: proceeding with the compiler's result" >&2;}
17549 +    ac_header_preproc=yes
17550 +    ;;
17551 +  no:yes:* )
17552 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h: present but cannot be compiled" >&5
17553 +echo "$as_me: WARNING: asm/errno.h: present but cannot be compiled" >&2;}
17554 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h:     check for missing prerequisite headers?" >&5
17555 +echo "$as_me: WARNING: asm/errno.h:     check for missing prerequisite headers?" >&2;}
17556 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h: see the Autoconf documentation" >&5
17557 +echo "$as_me: WARNING: asm/errno.h: see the Autoconf documentation" >&2;}
17558 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h:     section \"Present But Cannot Be Compiled\"" >&5
17559 +echo "$as_me: WARNING: asm/errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17560 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
17561 +echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
17562 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
17563 +echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
17564 +    (
17565 +      cat <<\_ASBOX
17566 +@%:@@%:@ ------------------------------------------ @%:@@%:@
17567 +@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
17568 +@%:@@%:@ ------------------------------------------ @%:@@%:@
17569 +_ASBOX
17570 +    ) |
17571 +      sed "s/^/$as_me: WARNING:     /" >&2
17572 +    ;;
17573 +esac
17574 +echo "$as_me:$LINENO: checking for asm/errno.h" >&5
17575 +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
17576 +if test "${ac_cv_header_asm_errno_h+set}" = set; then
17577 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17578 +else
17579 +  ac_cv_header_asm_errno_h=$ac_header_preproc
17580 +fi
17581 +echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
17582 +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
17583 +
17584 +fi
17585 +if test $ac_cv_header_asm_errno_h = yes; then
17586 +  :
17587 +else
17588 +  { { echo "$as_me:$LINENO: error: *** Unable to find asm/errno.h!!!" >&5
17589 +echo "$as_me: error: *** Unable to find asm/errno.h!!!" >&2;}
17590 +   { (exit 1); exit 1; }; }
17591 +
17592 +fi
17593 +
17594 +
17595 +
17596 +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
17597 +  echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
17598 +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
17599 +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
17600 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17601 +fi
17602 +echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
17603 +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
17604 +else
17605 +  # Is the header compilable?
17606 +echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
17607 +echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
17608 +cat >conftest.$ac_ext <<_ACEOF
17609 +/* confdefs.h.  */
17610 +_ACEOF
17611 +cat confdefs.h >>conftest.$ac_ext
17612 +cat >>conftest.$ac_ext <<_ACEOF
17613 +/* end confdefs.h.  */
17614 +$ac_includes_default
17615 +@%:@include <linux/atmsap.h>
17616 +_ACEOF
17617 +rm -f conftest.$ac_objext
17618 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17619 +  (eval $ac_compile) 2>conftest.er1
17620 +  ac_status=$?
17621 +  grep -v '^ *+' conftest.er1 >conftest.err
17622 +  rm -f conftest.er1
17623 +  cat conftest.err >&5
17624 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 +  (exit $ac_status); } &&
17626 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17627 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 +  (eval $ac_try) 2>&5
17629 +  ac_status=$?
17630 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 +  (exit $ac_status); }; } &&
17632 +        { ac_try='test -s conftest.$ac_objext'
17633 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 +  (eval $ac_try) 2>&5
17635 +  ac_status=$?
17636 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 +  (exit $ac_status); }; }; then
17638 +  ac_header_compiler=yes
17639 +else
17640 +  echo "$as_me: failed program was:" >&5
17641 +sed 's/^/| /' conftest.$ac_ext >&5
17642 +
17643 +ac_header_compiler=no
17644 +fi
17645 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17646 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17647 +echo "${ECHO_T}$ac_header_compiler" >&6
17648 +
17649 +# Is the header present?
17650 +echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
17651 +echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
17652 +cat >conftest.$ac_ext <<_ACEOF
17653 +/* confdefs.h.  */
17654 +_ACEOF
17655 +cat confdefs.h >>conftest.$ac_ext
17656 +cat >>conftest.$ac_ext <<_ACEOF
17657 +/* end confdefs.h.  */
17658 +@%:@include <linux/atmsap.h>
17659 +_ACEOF
17660 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17661 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17662 +  ac_status=$?
17663 +  grep -v '^ *+' conftest.er1 >conftest.err
17664 +  rm -f conftest.er1
17665 +  cat conftest.err >&5
17666 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 +  (exit $ac_status); } >/dev/null; then
17668 +  if test -s conftest.err; then
17669 +    ac_cpp_err=$ac_c_preproc_warn_flag
17670 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17671 +  else
17672 +    ac_cpp_err=
17673 +  fi
17674 +else
17675 +  ac_cpp_err=yes
17676 +fi
17677 +if test -z "$ac_cpp_err"; then
17678 +  ac_header_preproc=yes
17679 +else
17680 +  echo "$as_me: failed program was:" >&5
17681 +sed 's/^/| /' conftest.$ac_ext >&5
17682 +
17683 +  ac_header_preproc=no
17684 +fi
17685 +rm -f conftest.err conftest.$ac_ext
17686 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17687 +echo "${ECHO_T}$ac_header_preproc" >&6
17688 +
17689 +# So?  What about this header?
17690 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17691 +  yes:no: )
17692 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&5
17693 +echo "$as_me: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17694 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&5
17695 +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&2;}
17696 +    ac_header_preproc=yes
17697 +    ;;
17698 +  no:yes:* )
17699 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: present but cannot be compiled" >&5
17700 +echo "$as_me: WARNING: linux/atmsap.h: present but cannot be compiled" >&2;}
17701 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h:     check for missing prerequisite headers?" >&5
17702 +echo "$as_me: WARNING: linux/atmsap.h:     check for missing prerequisite headers?" >&2;}
17703 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: see the Autoconf documentation" >&5
17704 +echo "$as_me: WARNING: linux/atmsap.h: see the Autoconf documentation" >&2;}
17705 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h:     section \"Present But Cannot Be Compiled\"" >&5
17706 +echo "$as_me: WARNING: linux/atmsap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17707 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
17708 +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
17709 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
17710 +echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
17711 +    (
17712 +      cat <<\_ASBOX
17713 +@%:@@%:@ ------------------------------------------ @%:@@%:@
17714 +@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
17715 +@%:@@%:@ ------------------------------------------ @%:@@%:@
17716 +_ASBOX
17717 +    ) |
17718 +      sed "s/^/$as_me: WARNING:     /" >&2
17719 +    ;;
17720 +esac
17721 +echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
17722 +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
17723 +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
17724 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17725 +else
17726 +  ac_cv_header_linux_atmsap_h=$ac_header_preproc
17727 +fi
17728 +echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
17729 +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
17730 +
17731 +fi
17732 +if test $ac_cv_header_linux_atmsap_h = yes; then
17733 +  :
17734 +else
17735 +  { { echo "$as_me:$LINENO: error: *** Unable to find linux/atmsap.h!!!" >&5
17736 +echo "$as_me: error: *** Unable to find linux/atmsap.h!!!" >&2;}
17737 +   { (exit 1); exit 1; }; }
17738 +
17739 +fi
17740 +
17741 +
17742 +
17743 +
17744 +echo "$as_me:$LINENO: checking for main in -lresolv" >&5
17745 +echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
17746 +if test "${ac_cv_lib_resolv_main+set}" = set; then
17747 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17748 +else
17749 +  ac_check_lib_save_LIBS=$LIBS
17750 +LIBS="-lresolv  $LIBS"
17751 +cat >conftest.$ac_ext <<_ACEOF
17752 +/* confdefs.h.  */
17753 +_ACEOF
17754 +cat confdefs.h >>conftest.$ac_ext
17755 +cat >>conftest.$ac_ext <<_ACEOF
17756 +/* end confdefs.h.  */
17757 +
17758 +
17759 +int
17760 +main ()
17761 +{
17762 +main ();
17763 +  ;
17764 +  return 0;
17765 +}
17766 +_ACEOF
17767 +rm -f conftest.$ac_objext conftest$ac_exeext
17768 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17769 +  (eval $ac_link) 2>conftest.er1
17770 +  ac_status=$?
17771 +  grep -v '^ *+' conftest.er1 >conftest.err
17772 +  rm -f conftest.er1
17773 +  cat conftest.err >&5
17774 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 +  (exit $ac_status); } &&
17776 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17777 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 +  (eval $ac_try) 2>&5
17779 +  ac_status=$?
17780 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 +  (exit $ac_status); }; } &&
17782 +        { ac_try='test -s conftest$ac_exeext'
17783 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 +  (eval $ac_try) 2>&5
17785 +  ac_status=$?
17786 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 +  (exit $ac_status); }; }; then
17788 +  ac_cv_lib_resolv_main=yes
17789 +else
17790 +  echo "$as_me: failed program was:" >&5
17791 +sed 's/^/| /' conftest.$ac_ext >&5
17792 +
17793 +ac_cv_lib_resolv_main=no
17794 +fi
17795 +rm -f conftest.err conftest.$ac_objext \
17796 +      conftest$ac_exeext conftest.$ac_ext
17797 +LIBS=$ac_check_lib_save_LIBS
17798 +fi
17799 +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
17800 +echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
17801 +if test $ac_cv_lib_resolv_main = yes; then
17802 +  cat >>confdefs.h <<_ACEOF
17803 +@%:@define HAVE_LIBRESOLV 1
17804 +_ACEOF
17805 +
17806 +  LIBS="-lresolv $LIBS"
17807 +
17808 +else
17809 +  { { echo "$as_me:$LINENO: error: *** Unable to find libresolv!!!" >&5
17810 +echo "$as_me: error: *** Unable to find libresolv!!!" >&2;}
17811 +   { (exit 1); exit 1; }; }
17812 +
17813 +fi
17814 +
17815 +
17816 +LIBS=""
17817 +
17818 +INCLUDES="-I\$(top_srcdir)/src/include"
17819 +CFLAGS="$INCLUDES $CFLAGS -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes"
17820 +YACC="$YACC -d"
17821 +
17822 +cat >>confdefs.h <<\_ACEOF
17823 +@%:@define YY_USE_CONST 1
17824 +_ACEOF
17825 +
17826 +
17827 +atmsigd_conf_dir=`     test "x$exec_prefix" = xNONE && exec_prefix=$ac_default_prefix
17828 +                       test "x$prefix" = xNONE && prefix=${exec_prefix}
17829 +                       eval echo "$sysconfdir"`
17830 +cat >>confdefs.h <<_ACEOF
17831 +@%:@define ATMSIGD_CONF "$atmsigd_conf_dir/atmsigd.conf"
17832 +_ACEOF
17833 +
17834 +
17835 +
17836 +# Check whether --with-uni or --without-uni was given.
17837 +if test "${with_uni+set}" = set; then
17838 +  withval="$with_uni"
17839 +  
17840 +       case "$with_uni" in
17841 +       "3.0" ) cat >>confdefs.h <<\_ACEOF
17842 +@%:@define UNI30 1
17843 +_ACEOF
17844 +
17845 +       ;;
17846 +       "3.1" ) cat >>confdefs.h <<\_ACEOF
17847 +@%:@define UNI31 1
17848 +_ACEOF
17849 +
17850 +       ;;
17851 +       "4.0" ) cat >>confdefs.h <<\_ACEOF
17852 +@%:@define UNI40 1
17853 +_ACEOF
17854 +
17855 +       ;;
17856 +       *)
17857 +               cat >>confdefs.h <<\_ACEOF
17858 +@%:@define DYNAMIC_UNI 1
17859 +_ACEOF
17860 +
17861 +               { echo "$as_me:$LINENO: WARNING: *** UNI version not specified correctly.  Defaulting to dynamic UNI." >&5
17862 +echo "$as_me: WARNING: *** UNI version not specified correctly.  Defaulting to dynamic UNI." >&2;}
17863 +       esac
17864 +       
17865 +else
17866 +  cat >>confdefs.h <<\_ACEOF
17867 +@%:@define DYNAMIC_UNI 1
17868 +_ACEOF
17869 +
17870 +
17871 +fi; 
17872 +
17873 +# Check whether --enable-allow_uni30 or --disable-allow_uni30 was given.
17874 +if test "${enable_allow_uni30+set}" = set; then
17875 +  enableval="$enable_allow_uni30"
17876 +  
17877 +       if test "$with_uni" = "3.1" ; then
17878 +               cat >>confdefs.h <<\_ACEOF
17879 +@%:@define ALLOW_UNI30 1
17880 +_ACEOF
17881 +
17882 +       else
17883 +               { echo "$as_me:$LINENO: WARNING: *** Allow UNI 3.0 was not enabled.  It is only valid when UNI 3.1 is specified as the default via --with-uni." >&5
17884 +echo "$as_me: WARNING: *** Allow UNI 3.0 was not enabled.  It is only valid when UNI 3.1 is specified as the default via --with-uni." >&2;}
17885 +       fi
17886 +       
17887 +
17888 +fi; 
17889 +
17890 +# Check whether --enable-q2963_1 or --disable-q2963_1 was given.
17891 +if test "${enable_q2963_1+set}" = set; then
17892 +  enableval="$enable_q2963_1"
17893 +  
17894 +       if test "$with_uni" = "4.0" ; then
17895 +               cat >>confdefs.h <<\_ACEOF
17896 +@%:@define Q2963_1 1
17897 +_ACEOF
17898 +
17899 +       else
17900 +               { echo "$as_me:$LINENO: WARNING: *** Q.2963.1 was not enabled.  It is only valid when UNI 4.0 is specified as the default via --with-uni." >&5
17901 +echo "$as_me: WARNING: *** Q.2963.1 was not enabled.  It is only valid when UNI 4.0 is specified as the default via --with-uni." >&2;}
17902 +       fi
17903 +       
17904 +
17905 +fi; 
17906 +
17907 +# Check whether --enable-cisco or --disable-cisco was given.
17908 +if test "${enable_cisco+set}" = set; then
17909 +  enableval="$enable_cisco"
17910 +  cat >>confdefs.h <<\_ACEOF
17911 +@%:@define CISCO 1
17912 +_ACEOF
17913 +
17914 +
17915 +fi; 
17916 +
17917 +# Check whether --enable-thomflex or --disable-thomflex was given.
17918 +if test "${enable_thomflex+set}" = set; then
17919 +  enableval="$enable_thomflex"
17920 +  cat >>confdefs.h <<\_ACEOF
17921 +@%:@define THOMFLEX 1
17922 +_ACEOF
17923 +
17924 +
17925 +fi; 
17926 +
17927 +cat >>confdefs.h <<\_ACEOF
17928 +@%:@define BROKEN_POLL 1
17929 +_ACEOF
17930 +
17931 +
17932 +# Check whether --enable-mpoa_1_1 or --disable-mpoa_1_1 was given.
17933 +if test "${enable_mpoa_1_1+set}" = set; then
17934 +  enableval="$enable_mpoa_1_1"
17935 +  cat >>confdefs.h <<\_ACEOF
17936 +@%:@define MPOA_1_1 1
17937 +_ACEOF
17938 +
17939 +
17940 +fi; 
17941 +
17942 +# Check whether --enable-mpr or --disable-mpr was given.
17943 +if test "${enable_mpr+set}" = set; then
17944 +  enableval="$enable_mpr"
17945 +  
17946 +       case "$enable_mpr" in
17947 +       "" | y | ye | yes | Y | YE | YES )
17948 +               
17949 +echo "$as_me:$LINENO: checking for main in -lmpr" >&5
17950 +echo $ECHO_N "checking for main in -lmpr... $ECHO_C" >&6
17951 +if test "${ac_cv_lib_mpr_main+set}" = set; then
17952 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17953 +else
17954 +  ac_check_lib_save_LIBS=$LIBS
17955 +LIBS="-lmpr  $LIBS"
17956 +cat >conftest.$ac_ext <<_ACEOF
17957 +/* confdefs.h.  */
17958 +_ACEOF
17959 +cat confdefs.h >>conftest.$ac_ext
17960 +cat >>conftest.$ac_ext <<_ACEOF
17961 +/* end confdefs.h.  */
17962 +
17963 +
17964 +int
17965 +main ()
17966 +{
17967 +main ();
17968 +  ;
17969 +  return 0;
17970 +}
17971 +_ACEOF
17972 +rm -f conftest.$ac_objext conftest$ac_exeext
17973 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17974 +  (eval $ac_link) 2>conftest.er1
17975 +  ac_status=$?
17976 +  grep -v '^ *+' conftest.er1 >conftest.err
17977 +  rm -f conftest.er1
17978 +  cat conftest.err >&5
17979 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 +  (exit $ac_status); } &&
17981 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17982 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 +  (eval $ac_try) 2>&5
17984 +  ac_status=$?
17985 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 +  (exit $ac_status); }; } &&
17987 +        { ac_try='test -s conftest$ac_exeext'
17988 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 +  (eval $ac_try) 2>&5
17990 +  ac_status=$?
17991 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 +  (exit $ac_status); }; }; then
17993 +  ac_cv_lib_mpr_main=yes
17994 +else
17995 +  echo "$as_me: failed program was:" >&5
17996 +sed 's/^/| /' conftest.$ac_ext >&5
17997 +
17998 +ac_cv_lib_mpr_main=no
17999 +fi
18000 +rm -f conftest.err conftest.$ac_objext \
18001 +      conftest$ac_exeext conftest.$ac_ext
18002 +LIBS=$ac_check_lib_save_LIBS
18003 +fi
18004 +echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
18005 +echo "${ECHO_T}$ac_cv_lib_mpr_main" >&6
18006 +if test $ac_cv_lib_mpr_main = yes; then
18007 +  cat >>confdefs.h <<_ACEOF
18008 +@%:@define HAVE_LIBMPR 1
18009 +_ACEOF
18010 +
18011 +  LIBS="-lmpr $LIBS"
18012 +
18013 +else
18014 +  
18015 +                       { echo "$as_me:$LINENO: WARNING: *** Could not find libmpr!  Is MPR installed?" >&5
18016 +echo "$as_me: WARNING: *** Could not find libmpr!  Is MPR installed?" >&2;}
18017 +                       
18018 +               
18019 +fi
18020 +
18021 +       ;;
18022 +       esac
18023 +       
18024 +
18025 +fi; 
18026 +
18027 +
18028 +                                                                      ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/br2684/Makefile"
18029 +cat >confcache <<\_ACEOF
18030 +# This file is a shell script that caches the results of configure
18031 +# tests run on this system so they can be shared between configure
18032 +# scripts and configure runs, see configure's option --config-cache.
18033 +# It is not useful on other systems.  If it contains results you don't
18034 +# want to keep, you may remove or edit it.
18035 +#
18036 +# config.status only pays attention to the cache file if you give it
18037 +# the --recheck option to rerun configure.
18038 +#
18039 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
18040 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
18041 +# following values.
18042 +
18043 +_ACEOF
18044 +
18045 +# The following way of writing the cache mishandles newlines in values,
18046 +# but we know of no workaround that is simple, portable, and efficient.
18047 +# So, don't put newlines in cache variables' values.
18048 +# Ultrix sh set writes to stderr and can't be redirected directly,
18049 +# and sets the high bit in the cache file unless we assign to the vars.
18050 +{
18051 +  (set) 2>&1 |
18052 +    case `(ac_space=' '; set | grep ac_space) 2>&1` in
18053 +    *ac_space=\ *)
18054 +      # `set' does not quote correctly, so add quotes (double-quote
18055 +      # substitution turns \\\\ into \\, and sed turns \\ into \).
18056 +      sed -n \
18057 +       "s/'/'\\\\''/g;
18058 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18059 +      ;;
18060 +    *)
18061 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
18062 +      sed -n \
18063 +       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18064 +      ;;
18065 +    esac;
18066 +} |
18067 +  sed '
18068 +     t clear
18069 +     : clear
18070 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18071 +     t end
18072 +     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18073 +     : end' >>confcache
18074 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
18075 +  if test -w $cache_file; then
18076 +    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18077 +    cat confcache >$cache_file
18078 +  else
18079 +    echo "not updating unwritable cache $cache_file"
18080 +  fi
18081 +fi
18082 +rm -f confcache
18083 +
18084 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
18085 +# Let make expand exec_prefix.
18086 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18087 +
18088 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
18089 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18090 +# trailing colons and then remove the whole line if VPATH becomes empty
18091 +# (actually we leave an empty line to preserve line numbers).
18092 +if test "x$srcdir" = x.; then
18093 +  ac_vpsub='/^[         ]*VPATH[        ]*=/{
18094 +s/:*\$(srcdir):*/:/;
18095 +s/:*\${srcdir}:*/:/;
18096 +s/:*@srcdir@:*/:/;
18097 +s/^\([^=]*=[    ]*\):*/\1/;
18098 +s/:*$//;
18099 +s/^[^=]*=[      ]*$//;
18100 +}'
18101 +fi
18102 +
18103 +DEFS=-DHAVE_CONFIG_H
18104 +
18105 +ac_libobjs=
18106 +ac_ltlibobjs=
18107 +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
18108 +  # 1. Remove the extension, and $U if already installed.
18109 +  ac_i=`echo "$ac_i" |
18110 +        sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18111 +  # 2. Add them.
18112 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18113 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18114 +done
18115 +LIB@&t@OBJS=$ac_libobjs
18116 +
18117 +LTLIBOBJS=$ac_ltlibobjs
18118 +
18119 +
18120 +
18121 +: ${CONFIG_STATUS=./config.status}
18122 +ac_clean_files_save=$ac_clean_files
18123 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18124 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18125 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
18126 +cat >$CONFIG_STATUS <<_ACEOF
18127 +#! $SHELL
18128 +# Generated by $as_me.
18129 +# Run this file to recreate the current configuration.
18130 +# Compiler output produced by configure, useful for debugging
18131 +# configure, is in config.log if it exists.
18132 +
18133 +debug=false
18134 +ac_cs_recheck=false
18135 +ac_cs_silent=false
18136 +SHELL=\${CONFIG_SHELL-$SHELL}
18137 +_ACEOF
18138 +
18139 +cat >>$CONFIG_STATUS <<\_ACEOF
18140 +## --------------------- ##
18141 +## M4sh Initialization.  ##
18142 +## --------------------- ##
18143 +
18144 +# Be Bourne compatible
18145 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18146 +  emulate sh
18147 +  NULLCMD=:
18148 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18149 +  # is contrary to our usage.  Disable this feature.
18150 +  alias -g '${1+"$@"}'='"$@"'
18151 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18152 +  set -o posix
18153 +fi
18154 +DUALCASE=1; export DUALCASE # for MKS sh
18155 +
18156 +# Support unset when possible.
18157 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18158 +  as_unset=unset
18159 +else
18160 +  as_unset=false
18161 +fi
18162 +
18163 +
18164 +# Work around bugs in pre-3.0 UWIN ksh.
18165 +$as_unset ENV MAIL MAILPATH
18166 +PS1='$ '
18167 +PS2='> '
18168 +PS4='+ '
18169 +
18170 +# NLS nuisances.
18171 +for as_var in \
18172 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18173 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18174 +  LC_TELEPHONE LC_TIME
18175 +do
18176 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18177 +    eval $as_var=C; export $as_var
18178 +  else
18179 +    $as_unset $as_var
18180 +  fi
18181 +done
18182 +
18183 +# Required to use basename.
18184 +if expr a : '\(a\)' >/dev/null 2>&1; then
18185 +  as_expr=expr
18186 +else
18187 +  as_expr=false
18188 +fi
18189 +
18190 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18191 +  as_basename=basename
18192 +else
18193 +  as_basename=false
18194 +fi
18195 +
18196 +
18197 +# Name of the executable.
18198 +as_me=`$as_basename "$0" ||
18199 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18200 +        X"$0" : 'X\(//\)$' \| \
18201 +        X"$0" : 'X\(/\)$' \| \
18202 +        .     : '\(.\)' 2>/dev/null ||
18203 +echo X/"$0" |
18204 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18205 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
18206 +         /^X\/\(\/\).*/{ s//\1/; q; }
18207 +         s/.*/./; q'`
18208 +
18209 +
18210 +# PATH needs CR, and LINENO needs CR and PATH.
18211 +# Avoid depending upon Character Ranges.
18212 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18213 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18214 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18215 +as_cr_digits='0123456789'
18216 +as_cr_alnum=$as_cr_Letters$as_cr_digits
18217 +
18218 +# The user is always right.
18219 +if test "${PATH_SEPARATOR+set}" != set; then
18220 +  echo "#! /bin/sh" >conf$$.sh
18221 +  echo  "exit 0"   >>conf$$.sh
18222 +  chmod +x conf$$.sh
18223 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18224 +    PATH_SEPARATOR=';'
18225 +  else
18226 +    PATH_SEPARATOR=:
18227 +  fi
18228 +  rm -f conf$$.sh
18229 +fi
18230 +
18231 +
18232 +  as_lineno_1=$LINENO
18233 +  as_lineno_2=$LINENO
18234 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18235 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
18236 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18237 +  # Find who we are.  Look in the path if we contain no path at all
18238 +  # relative or not.
18239 +  case $0 in
18240 +    *[\\/]* ) as_myself=$0 ;;
18241 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18242 +for as_dir in $PATH
18243 +do
18244 +  IFS=$as_save_IFS
18245 +  test -z "$as_dir" && as_dir=.
18246 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18247 +done
18248 +
18249 +       ;;
18250 +  esac
18251 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
18252 +  # in which case we are not to be found in the path.
18253 +  if test "x$as_myself" = x; then
18254 +    as_myself=$0
18255 +  fi
18256 +  if test ! -f "$as_myself"; then
18257 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18258 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18259 +   { (exit 1); exit 1; }; }
18260 +  fi
18261 +  case $CONFIG_SHELL in
18262 +  '')
18263 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18264 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18265 +do
18266 +  IFS=$as_save_IFS
18267 +  test -z "$as_dir" && as_dir=.
18268 +  for as_base in sh bash ksh sh5; do
18269 +        case $as_dir in
18270 +        /*)
18271 +          if ("$as_dir/$as_base" -c '
18272 +  as_lineno_1=$LINENO
18273 +  as_lineno_2=$LINENO
18274 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18275 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
18276 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18277 +            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18278 +            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18279 +            CONFIG_SHELL=$as_dir/$as_base
18280 +            export CONFIG_SHELL
18281 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18282 +          fi;;
18283 +        esac
18284 +       done
18285 +done
18286 +;;
18287 +  esac
18288 +
18289 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18290 +  # uniformly replaced by the line number.  The first 'sed' inserts a
18291 +  # line-number line before each line; the second 'sed' does the real
18292 +  # work.  The second script uses 'N' to pair each line-number line
18293 +  # with the numbered line, and appends trailing '-' during
18294 +  # substitution so that $LINENO is not a special case at line end.
18295 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18296 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18297 +  sed '=' <$as_myself |
18298 +    sed '
18299 +      N
18300 +      s,$,-,
18301 +      : loop
18302 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18303 +      t loop
18304 +      s,-$,,
18305 +      s,^['$as_cr_digits']*\n,,
18306 +    ' >$as_me.lineno &&
18307 +  chmod +x $as_me.lineno ||
18308 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18309 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18310 +   { (exit 1); exit 1; }; }
18311 +
18312 +  # Don't try to exec as it changes $[0], causing all sort of problems
18313 +  # (the dirname of $[0] is not the place where we might find the
18314 +  # original and so on.  Autoconf is especially sensible to this).
18315 +  . ./$as_me.lineno
18316 +  # Exit status is that of the last command.
18317 +  exit
18318 +}
18319 +
18320 +
18321 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18322 +  *c*,-n*) ECHO_N= ECHO_C='
18323 +' ECHO_T='     ' ;;
18324 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18325 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18326 +esac
18327 +
18328 +if expr a : '\(a\)' >/dev/null 2>&1; then
18329 +  as_expr=expr
18330 +else
18331 +  as_expr=false
18332 +fi
18333 +
18334 +rm -f conf$$ conf$$.exe conf$$.file
18335 +echo >conf$$.file
18336 +if ln -s conf$$.file conf$$ 2>/dev/null; then
18337 +  # We could just check for DJGPP; but this test a) works b) is more generic
18338 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18339 +  if test -f conf$$.exe; then
18340 +    # Don't use ln at all; we don't have any links
18341 +    as_ln_s='cp -p'
18342 +  else
18343 +    as_ln_s='ln -s'
18344 +  fi
18345 +elif ln conf$$.file conf$$ 2>/dev/null; then
18346 +  as_ln_s=ln
18347 +else
18348 +  as_ln_s='cp -p'
18349 +fi
18350 +rm -f conf$$ conf$$.exe conf$$.file
18351 +
18352 +if mkdir -p . 2>/dev/null; then
18353 +  as_mkdir_p=:
18354 +else
18355 +  test -d ./-p && rmdir ./-p
18356 +  as_mkdir_p=false
18357 +fi
18358 +
18359 +as_executable_p="test -f"
18360 +
18361 +# Sed expression to map a string onto a valid CPP name.
18362 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18363 +
18364 +# Sed expression to map a string onto a valid variable name.
18365 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18366 +
18367 +
18368 +# IFS
18369 +# We need space, tab and new line, in precisely that order.
18370 +as_nl='
18371 +'
18372 +IFS="  $as_nl"
18373 +
18374 +# CDPATH.
18375 +$as_unset CDPATH
18376 +
18377 +exec 6>&1
18378 +
18379 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
18380 +# report actual input values of CONFIG_FILES etc. instead of their
18381 +# values after options handling.  Logging --version etc. is OK.
18382 +exec 5>>config.log
18383 +{
18384 +  echo
18385 +  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
18386 +@%:@@%:@ Running $as_me. @%:@@%:@
18387 +_ASBOX
18388 +} >&5
18389 +cat >&5 <<_CSEOF
18390 +
18391 +This file was extended by $as_me, which was
18392 +generated by GNU Autoconf 2.59.  Invocation command line was
18393 +
18394 +  CONFIG_FILES    = $CONFIG_FILES
18395 +  CONFIG_HEADERS  = $CONFIG_HEADERS
18396 +  CONFIG_LINKS    = $CONFIG_LINKS
18397 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
18398 +  $ $0 $@
18399 +
18400 +_CSEOF
18401 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18402 +echo >&5
18403 +_ACEOF
18404 +
18405 +# Files that config.status was made for.
18406 +if test -n "$ac_config_files"; then
18407 +  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18408 +fi
18409 +
18410 +if test -n "$ac_config_headers"; then
18411 +  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18412 +fi
18413 +
18414 +if test -n "$ac_config_links"; then
18415 +  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18416 +fi
18417 +
18418 +if test -n "$ac_config_commands"; then
18419 +  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18420 +fi
18421 +
18422 +cat >>$CONFIG_STATUS <<\_ACEOF
18423 +
18424 +ac_cs_usage="\
18425 +\`$as_me' instantiates files from templates according to the
18426 +current configuration.
18427 +
18428 +Usage: $0 [OPTIONS] [FILE]...
18429 +
18430 +  -h, --help       print this help, then exit
18431 +  -V, --version    print version number, then exit
18432 +  -q, --quiet      do not print progress messages
18433 +  -d, --debug      don't remove temporary files
18434 +      --recheck    update $as_me by reconfiguring in the same conditions
18435 +  --file=FILE[:TEMPLATE]
18436 +                  instantiate the configuration file FILE
18437 +  --header=FILE[:TEMPLATE]
18438 +                  instantiate the configuration header FILE
18439 +
18440 +Configuration files:
18441 +$config_files
18442 +
18443 +Configuration headers:
18444 +$config_headers
18445 +
18446 +Configuration commands:
18447 +$config_commands
18448 +
18449 +Report bugs to <bug-autoconf@gnu.org>."
18450 +_ACEOF
18451 +
18452 +cat >>$CONFIG_STATUS <<_ACEOF
18453 +ac_cs_version="\\
18454 +config.status
18455 +configured by $0, generated by GNU Autoconf 2.59,
18456 +  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18457 +
18458 +Copyright (C) 2003 Free Software Foundation, Inc.
18459 +This config.status script is free software; the Free Software Foundation
18460 +gives unlimited permission to copy, distribute and modify it."
18461 +srcdir=$srcdir
18462 +INSTALL="$INSTALL"
18463 +_ACEOF
18464 +
18465 +cat >>$CONFIG_STATUS <<\_ACEOF
18466 +# If no file are specified by the user, then we need to provide default
18467 +# value.  By we need to know if files were specified by the user.
18468 +ac_need_defaults=:
18469 +while test $# != 0
18470 +do
18471 +  case $1 in
18472 +  --*=*)
18473 +    ac_option=`expr "x$1" : 'x\([^=]*\)='`
18474 +    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18475 +    ac_shift=:
18476 +    ;;
18477 +  -*)
18478 +    ac_option=$1
18479 +    ac_optarg=$2
18480 +    ac_shift=shift
18481 +    ;;
18482 +  *) # This is not an option, so the user has probably given explicit
18483 +     # arguments.
18484 +     ac_option=$1
18485 +     ac_need_defaults=false;;
18486 +  esac
18487 +
18488 +  case $ac_option in
18489 +  # Handling of the options.
18490 +_ACEOF
18491 +cat >>$CONFIG_STATUS <<\_ACEOF
18492 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18493 +    ac_cs_recheck=: ;;
18494 +  --version | --vers* | -V )
18495 +    echo "$ac_cs_version"; exit 0 ;;
18496 +  --he | --h)
18497 +    # Conflict between --help and --header
18498 +    { { echo "$as_me:$LINENO: error: ambiguous option: $1
18499 +Try \`$0 --help' for more information." >&5
18500 +echo "$as_me: error: ambiguous option: $1
18501 +Try \`$0 --help' for more information." >&2;}
18502 +   { (exit 1); exit 1; }; };;
18503 +  --help | --hel | -h )
18504 +    echo "$ac_cs_usage"; exit 0 ;;
18505 +  --debug | --d* | -d )
18506 +    debug=: ;;
18507 +  --file | --fil | --fi | --f )
18508 +    $ac_shift
18509 +    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18510 +    ac_need_defaults=false;;
18511 +  --header | --heade | --head | --hea )
18512 +    $ac_shift
18513 +    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18514 +    ac_need_defaults=false;;
18515 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18516 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18517 +    ac_cs_silent=: ;;
18518 +
18519 +  # This is an error.
18520 +  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18521 +Try \`$0 --help' for more information." >&5
18522 +echo "$as_me: error: unrecognized option: $1
18523 +Try \`$0 --help' for more information." >&2;}
18524 +   { (exit 1); exit 1; }; } ;;
18525 +
18526 +  *) ac_config_targets="$ac_config_targets $1" ;;
18527 +
18528 +  esac
18529 +  shift
18530 +done
18531 +
18532 +ac_configure_extra_args=
18533 +
18534 +if $ac_cs_silent; then
18535 +  exec 6>/dev/null
18536 +  ac_configure_extra_args="$ac_configure_extra_args --silent"
18537 +fi
18538 +
18539 +_ACEOF
18540 +cat >>$CONFIG_STATUS <<_ACEOF
18541 +if \$ac_cs_recheck; then
18542 +  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18543 +  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18544 +fi
18545 +
18546 +_ACEOF
18547 +
18548 +cat >>$CONFIG_STATUS <<_ACEOF
18549 +#
18550 +# INIT-COMMANDS section.
18551 +#
18552 +
18553 +
18554 +
18555 +_ACEOF
18556 +
18557 +
18558 +
18559 +cat >>$CONFIG_STATUS <<\_ACEOF
18560 +for ac_config_target in $ac_config_targets
18561 +do
18562 +  case "$ac_config_target" in
18563 +  # Handling of arguments.
18564 +  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18565 +  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18566 +  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18567 +  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18568 +  "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
18569 +  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18570 +  "src/br2684/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/br2684/Makefile" ;;
18571 +  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18572 +  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18573 +  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18574 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18575 +   { (exit 1); exit 1; }; };;
18576 +  esac
18577 +done
18578 +
18579 +# If the user did not use the arguments to specify the items to instantiate,
18580 +# then the envvar interface is used.  Set only those that are not.
18581 +# We use the long form for the default assignment because of an extremely
18582 +# bizarre bug on SunOS 4.1.3.
18583 +if $ac_need_defaults; then
18584 +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18585 +  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18586 +  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18587 +fi
18588 +
18589 +# Have a temporary directory for convenience.  Make it in the build tree
18590 +# simply because there is no reason to put it here, and in addition,
18591 +# creating and moving files from /tmp can sometimes cause problems.
18592 +# Create a temporary directory, and hook for its removal unless debugging.
18593 +$debug ||
18594 +{
18595 +  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18596 +  trap '{ (exit 1); exit 1; }' 1 2 13 15
18597 +}
18598 +
18599 +# Create a (secure) tmp directory for tmp files.
18600 +
18601 +{
18602 +  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18603 +  test -n "$tmp" && test -d "$tmp"
18604 +}  ||
18605 +{
18606 +  tmp=./confstat$$-$RANDOM
18607 +  (umask 077 && mkdir $tmp)
18608 +} ||
18609 +{
18610 +   echo "$me: cannot create a temporary directory in ." >&2
18611 +   { (exit 1); exit 1; }
18612 +}
18613 +
18614 +_ACEOF
18615 +
18616 +cat >>$CONFIG_STATUS <<_ACEOF
18617 +
18618 +#
18619 +# CONFIG_FILES section.
18620 +#
18621 +
18622 +# No need to generate the scripts if there are no CONFIG_FILES.
18623 +# This happens for instance when ./config.status config.h
18624 +if test -n "\$CONFIG_FILES"; then
18625 +  # Protect against being on the right side of a sed subst in config.status.
18626 +  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18627 +   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18628 +s,@SHELL@,$SHELL,;t t
18629 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18630 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18631 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18632 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18633 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18634 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18635 +s,@exec_prefix@,$exec_prefix,;t t
18636 +s,@prefix@,$prefix,;t t
18637 +s,@program_transform_name@,$program_transform_name,;t t
18638 +s,@bindir@,$bindir,;t t
18639 +s,@sbindir@,$sbindir,;t t
18640 +s,@libexecdir@,$libexecdir,;t t
18641 +s,@datadir@,$datadir,;t t
18642 +s,@sysconfdir@,$sysconfdir,;t t
18643 +s,@sharedstatedir@,$sharedstatedir,;t t
18644 +s,@localstatedir@,$localstatedir,;t t
18645 +s,@libdir@,$libdir,;t t
18646 +s,@includedir@,$includedir,;t t
18647 +s,@oldincludedir@,$oldincludedir,;t t
18648 +s,@infodir@,$infodir,;t t
18649 +s,@mandir@,$mandir,;t t
18650 +s,@build_alias@,$build_alias,;t t
18651 +s,@host_alias@,$host_alias,;t t
18652 +s,@target_alias@,$target_alias,;t t
18653 +s,@DEFS@,$DEFS,;t t
18654 +s,@ECHO_C@,$ECHO_C,;t t
18655 +s,@ECHO_N@,$ECHO_N,;t t
18656 +s,@ECHO_T@,$ECHO_T,;t t
18657 +s,@LIBS@,$LIBS,;t t
18658 +s,@build@,$build,;t t
18659 +s,@build_cpu@,$build_cpu,;t t
18660 +s,@build_vendor@,$build_vendor,;t t
18661 +s,@build_os@,$build_os,;t t
18662 +s,@host@,$host,;t t
18663 +s,@host_cpu@,$host_cpu,;t t
18664 +s,@host_vendor@,$host_vendor,;t t
18665 +s,@host_os@,$host_os,;t t
18666 +s,@target@,$target,;t t
18667 +s,@target_cpu@,$target_cpu,;t t
18668 +s,@target_vendor@,$target_vendor,;t t
18669 +s,@target_os@,$target_os,;t t
18670 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18671 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18672 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18673 +s,@PACKAGE@,$PACKAGE,;t t
18674 +s,@VERSION@,$VERSION,;t t
18675 +s,@ACLOCAL@,$ACLOCAL,;t t
18676 +s,@AUTOCONF@,$AUTOCONF,;t t
18677 +s,@AUTOMAKE@,$AUTOMAKE,;t t
18678 +s,@AUTOHEADER@,$AUTOHEADER,;t t
18679 +s,@MAKEINFO@,$MAKEINFO,;t t
18680 +s,@SET_MAKE@,$SET_MAKE,;t t
18681 +s,@LIBVER_CURRENT@,$LIBVER_CURRENT,;t t
18682 +s,@LIBVER_REVISION@,$LIBVER_REVISION,;t t
18683 +s,@LIBVER_AGE@,$LIBVER_AGE,;t t
18684 +s,@CC@,$CC,;t t
18685 +s,@CFLAGS@,$CFLAGS,;t t
18686 +s,@LDFLAGS@,$LDFLAGS,;t t
18687 +s,@CPPFLAGS@,$CPPFLAGS,;t t
18688 +s,@ac_ct_CC@,$ac_ct_CC,;t t
18689 +s,@EXEEXT@,$EXEEXT,;t t
18690 +s,@OBJEXT@,$OBJEXT,;t t
18691 +s,@LEX@,$LEX,;t t
18692 +s,@LEXLIB@,$LEXLIB,;t t
18693 +s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
18694 +s,@YACC@,$YACC,;t t
18695 +s,@LN_S@,$LN_S,;t t
18696 +s,@ECHO@,$ECHO,;t t
18697 +s,@RANLIB@,$RANLIB,;t t
18698 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18699 +s,@STRIP@,$STRIP,;t t
18700 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18701 +s,@CPP@,$CPP,;t t
18702 +s,@EGREP@,$EGREP,;t t
18703 +s,@LIBTOOL@,$LIBTOOL,;t t
18704 +s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
18705 +s,@PERL@,$PERL,;t t
18706 +s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
18707 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18708 +CEOF
18709 +
18710 +_ACEOF
18711 +
18712 +  cat >>$CONFIG_STATUS <<\_ACEOF
18713 +  # Split the substitutions into bite-sized pieces for seds with
18714 +  # small command number limits, like on Digital OSF/1 and HP-UX.
18715 +  ac_max_sed_lines=48
18716 +  ac_sed_frag=1 # Number of current file.
18717 +  ac_beg=1 # First line for current file.
18718 +  ac_end=$ac_max_sed_lines # Line after last line for current file.
18719 +  ac_more_lines=:
18720 +  ac_sed_cmds=
18721 +  while $ac_more_lines; do
18722 +    if test $ac_beg -gt 1; then
18723 +      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18724 +    else
18725 +      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18726 +    fi
18727 +    if test ! -s $tmp/subs.frag; then
18728 +      ac_more_lines=false
18729 +    else
18730 +      # The purpose of the label and of the branching condition is to
18731 +      # speed up the sed processing (if there are no `@' at all, there
18732 +      # is no need to browse any of the substitutions).
18733 +      # These are the two extra sed commands mentioned above.
18734 +      (echo ':t
18735 +  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18736 +      if test -z "$ac_sed_cmds"; then
18737 +       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18738 +      else
18739 +       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18740 +      fi
18741 +      ac_sed_frag=`expr $ac_sed_frag + 1`
18742 +      ac_beg=$ac_end
18743 +      ac_end=`expr $ac_end + $ac_max_sed_lines`
18744 +    fi
18745 +  done
18746 +  if test -z "$ac_sed_cmds"; then
18747 +    ac_sed_cmds=cat
18748 +  fi
18749 +fi # test -n "$CONFIG_FILES"
18750 +
18751 +_ACEOF
18752 +cat >>$CONFIG_STATUS <<\_ACEOF
18753 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18754 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18755 +  case $ac_file in
18756 +  - | *:- | *:-:* ) # input from stdin
18757 +       cat >$tmp/stdin
18758 +       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18759 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18760 +  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18761 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18762 +  * )   ac_file_in=$ac_file.in ;;
18763 +  esac
18764 +
18765 +  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18766 +  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18767 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18768 +        X"$ac_file" : 'X\(//\)[^/]' \| \
18769 +        X"$ac_file" : 'X\(//\)$' \| \
18770 +        X"$ac_file" : 'X\(/\)' \| \
18771 +        .     : '\(.\)' 2>/dev/null ||
18772 +echo X"$ac_file" |
18773 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18774 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18775 +         /^X\(\/\/\)$/{ s//\1/; q; }
18776 +         /^X\(\/\).*/{ s//\1/; q; }
18777 +         s/.*/./; q'`
18778 +  { if $as_mkdir_p; then
18779 +    mkdir -p "$ac_dir"
18780 +  else
18781 +    as_dir="$ac_dir"
18782 +    as_dirs=
18783 +    while test ! -d "$as_dir"; do
18784 +      as_dirs="$as_dir $as_dirs"
18785 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
18786 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18787 +        X"$as_dir" : 'X\(//\)[^/]' \| \
18788 +        X"$as_dir" : 'X\(//\)$' \| \
18789 +        X"$as_dir" : 'X\(/\)' \| \
18790 +        .     : '\(.\)' 2>/dev/null ||
18791 +echo X"$as_dir" |
18792 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18793 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18794 +         /^X\(\/\/\)$/{ s//\1/; q; }
18795 +         /^X\(\/\).*/{ s//\1/; q; }
18796 +         s/.*/./; q'`
18797 +    done
18798 +    test ! -n "$as_dirs" || mkdir $as_dirs
18799 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18800 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18801 +   { (exit 1); exit 1; }; }; }
18802 +
18803 +  ac_builddir=.
18804 +
18805 +if test "$ac_dir" != .; then
18806 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18807 +  # A "../" for each directory in $ac_dir_suffix.
18808 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18809 +else
18810 +  ac_dir_suffix= ac_top_builddir=
18811 +fi
18812 +
18813 +case $srcdir in
18814 +  .)  # No --srcdir option.  We are building in place.
18815 +    ac_srcdir=.
18816 +    if test -z "$ac_top_builddir"; then
18817 +       ac_top_srcdir=.
18818 +    else
18819 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18820 +    fi ;;
18821 +  [\\/]* | ?:[\\/]* )  # Absolute path.
18822 +    ac_srcdir=$srcdir$ac_dir_suffix;
18823 +    ac_top_srcdir=$srcdir ;;
18824 +  *) # Relative path.
18825 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18826 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
18827 +esac
18828 +
18829 +# Do not use `cd foo && pwd` to compute absolute paths, because
18830 +# the directories may not exist.
18831 +case `pwd` in
18832 +.) ac_abs_builddir="$ac_dir";;
18833 +*)
18834 +  case "$ac_dir" in
18835 +  .) ac_abs_builddir=`pwd`;;
18836 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18837 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
18838 +  esac;;
18839 +esac
18840 +case $ac_abs_builddir in
18841 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
18842 +*)
18843 +  case ${ac_top_builddir}. in
18844 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
18845 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18846 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18847 +  esac;;
18848 +esac
18849 +case $ac_abs_builddir in
18850 +.) ac_abs_srcdir=$ac_srcdir;;
18851 +*)
18852 +  case $ac_srcdir in
18853 +  .) ac_abs_srcdir=$ac_abs_builddir;;
18854 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18855 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18856 +  esac;;
18857 +esac
18858 +case $ac_abs_builddir in
18859 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
18860 +*)
18861 +  case $ac_top_srcdir in
18862 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
18863 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18864 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18865 +  esac;;
18866 +esac
18867 +
18868 +
18869 +  case $INSTALL in
18870 +  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18871 +  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18872 +  esac
18873 +
18874 +  # Let's still pretend it is `configure' which instantiates (i.e., don't
18875 +  # use $as_me), people would be surprised to read:
18876 +  #    /* config.h.  Generated by config.status.  */
18877 +  if test x"$ac_file" = x-; then
18878 +    configure_input=
18879 +  else
18880 +    configure_input="$ac_file.  "
18881 +  fi
18882 +  configure_input=$configure_input"Generated from `echo $ac_file_in |
18883 +                                    sed 's,.*/,,'` by configure."
18884 +
18885 +  # First look for the input files in the build tree, otherwise in the
18886 +  # src tree.
18887 +  ac_file_inputs=`IFS=:
18888 +    for f in $ac_file_in; do
18889 +      case $f in
18890 +      -) echo $tmp/stdin ;;
18891 +      [\\/$]*)
18892 +        # Absolute (can't be DOS-style, as IFS=:)
18893 +        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18894 +echo "$as_me: error: cannot find input file: $f" >&2;}
18895 +   { (exit 1); exit 1; }; }
18896 +        echo "$f";;
18897 +      *) # Relative
18898 +        if test -f "$f"; then
18899 +          # Build tree
18900 +          echo "$f"
18901 +        elif test -f "$srcdir/$f"; then
18902 +          # Source tree
18903 +          echo "$srcdir/$f"
18904 +        else
18905 +          # /dev/null tree
18906 +          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18907 +echo "$as_me: error: cannot find input file: $f" >&2;}
18908 +   { (exit 1); exit 1; }; }
18909 +        fi;;
18910 +      esac
18911 +    done` || { (exit 1); exit 1; }
18912 +
18913 +  if test x"$ac_file" != x-; then
18914 +    { echo "$as_me:$LINENO: creating $ac_file" >&5
18915 +echo "$as_me: creating $ac_file" >&6;}
18916 +    rm -f "$ac_file"
18917 +  fi
18918 +_ACEOF
18919 +cat >>$CONFIG_STATUS <<_ACEOF
18920 +  sed "$ac_vpsub
18921 +$extrasub
18922 +_ACEOF
18923 +cat >>$CONFIG_STATUS <<\_ACEOF
18924 +:t
18925 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18926 +s,@configure_input@,$configure_input,;t t
18927 +s,@srcdir@,$ac_srcdir,;t t
18928 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
18929 +s,@top_srcdir@,$ac_top_srcdir,;t t
18930 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18931 +s,@builddir@,$ac_builddir,;t t
18932 +s,@abs_builddir@,$ac_abs_builddir,;t t
18933 +s,@top_builddir@,$ac_top_builddir,;t t
18934 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18935 +s,@INSTALL@,$ac_INSTALL,;t t
18936 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18937 +  rm -f $tmp/stdin
18938 +  if test x"$ac_file" != x-; then
18939 +    mv $tmp/out $ac_file
18940 +  else
18941 +    cat $tmp/out
18942 +    rm -f $tmp/out
18943 +  fi
18944 +
18945 +done
18946 +_ACEOF
18947 +cat >>$CONFIG_STATUS <<\_ACEOF
18948 +
18949 +#
18950 +# CONFIG_HEADER section.
18951 +#
18952 +
18953 +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18954 +# NAME is the cpp macro being defined and VALUE is the value it is being given.
18955 +#
18956 +# ac_d sets the value in "#define NAME VALUE" lines.
18957 +ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18958 +ac_dB='[        ].*$,\1#\2'
18959 +ac_dC=' '
18960 +ac_dD=',;t'
18961 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18962 +ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18963 +ac_uB='$,\1#\2define\3'
18964 +ac_uC=' '
18965 +ac_uD=',;t'
18966 +
18967 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18968 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18969 +  case $ac_file in
18970 +  - | *:- | *:-:* ) # input from stdin
18971 +       cat >$tmp/stdin
18972 +       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18973 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18974 +  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18975 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18976 +  * )   ac_file_in=$ac_file.in ;;
18977 +  esac
18978 +
18979 +  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18980 +echo "$as_me: creating $ac_file" >&6;}
18981 +
18982 +  # First look for the input files in the build tree, otherwise in the
18983 +  # src tree.
18984 +  ac_file_inputs=`IFS=:
18985 +    for f in $ac_file_in; do
18986 +      case $f in
18987 +      -) echo $tmp/stdin ;;
18988 +      [\\/$]*)
18989 +        # Absolute (can't be DOS-style, as IFS=:)
18990 +        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18991 +echo "$as_me: error: cannot find input file: $f" >&2;}
18992 +   { (exit 1); exit 1; }; }
18993 +        # Do quote $f, to prevent DOS paths from being IFS'd.
18994 +        echo "$f";;
18995 +      *) # Relative
18996 +        if test -f "$f"; then
18997 +          # Build tree
18998 +          echo "$f"
18999 +        elif test -f "$srcdir/$f"; then
19000 +          # Source tree
19001 +          echo "$srcdir/$f"
19002 +        else
19003 +          # /dev/null tree
19004 +          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19005 +echo "$as_me: error: cannot find input file: $f" >&2;}
19006 +   { (exit 1); exit 1; }; }
19007 +        fi;;
19008 +      esac
19009 +    done` || { (exit 1); exit 1; }
19010 +  # Remove the trailing spaces.
19011 +  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19012 +
19013 +_ACEOF
19014 +
19015 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
19016 +# `conftest.undefs', that substitutes the proper values into
19017 +# config.h.in to produce config.h.  The first handles `#define'
19018 +# templates, and the second `#undef' templates.
19019 +# And first: Protect against being on the right side of a sed subst in
19020 +# config.status.  Protect against being in an unquoted here document
19021 +# in config.status.
19022 +rm -f conftest.defines conftest.undefs
19023 +# Using a here document instead of a string reduces the quoting nightmare.
19024 +# Putting comments in sed scripts is not portable.
19025 +#
19026 +# `end' is used to avoid that the second main sed command (meant for
19027 +# 0-ary CPP macros) applies to n-ary macro definitions.
19028 +# See the Autoconf documentation for `clear'.
19029 +cat >confdef2sed.sed <<\_ACEOF
19030 +s/[\\&,]/\\&/g
19031 +s,[\\$`],\\&,g
19032 +t clear
19033 +: clear
19034 +s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19035 +t end
19036 +s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19037 +: end
19038 +_ACEOF
19039 +# If some macros were called several times there might be several times
19040 +# the same #defines, which is useless.  Nevertheless, we may not want to
19041 +# sort them, since we want the *last* AC-DEFINE to be honored.
19042 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19043 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19044 +rm -f confdef2sed.sed
19045 +
19046 +# This sed command replaces #undef with comments.  This is necessary, for
19047 +# example, in the case of _POSIX_SOURCE, which is predefined and required
19048 +# on some systems where configure will not decide to define it.
19049 +cat >>conftest.undefs <<\_ACEOF
19050 +s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19051 +_ACEOF
19052 +
19053 +# Break up conftest.defines because some shells have a limit on the size
19054 +# of here documents, and old seds have small limits too (100 cmds).
19055 +echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19056 +echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19057 +echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19058 +echo '  :' >>$CONFIG_STATUS
19059 +rm -f conftest.tail
19060 +while grep . conftest.defines >/dev/null
19061 +do
19062 +  # Write a limited-size here document to $tmp/defines.sed.
19063 +  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19064 +  # Speed up: don't consider the non `#define' lines.
19065 +  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19066 +  # Work around the forget-to-reset-the-flag bug.
19067 +  echo 't clr' >>$CONFIG_STATUS
19068 +  echo ': clr' >>$CONFIG_STATUS
19069 +  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19070 +  echo 'CEOF
19071 +  sed -f $tmp/defines.sed $tmp/in >$tmp/out
19072 +  rm -f $tmp/in
19073 +  mv $tmp/out $tmp/in
19074 +' >>$CONFIG_STATUS
19075 +  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19076 +  rm -f conftest.defines
19077 +  mv conftest.tail conftest.defines
19078 +done
19079 +rm -f conftest.defines
19080 +echo '  fi # grep' >>$CONFIG_STATUS
19081 +echo >>$CONFIG_STATUS
19082 +
19083 +# Break up conftest.undefs because some shells have a limit on the size
19084 +# of here documents, and old seds have small limits too (100 cmds).
19085 +echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19086 +rm -f conftest.tail
19087 +while grep . conftest.undefs >/dev/null
19088 +do
19089 +  # Write a limited-size here document to $tmp/undefs.sed.
19090 +  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19091 +  # Speed up: don't consider the non `#undef'
19092 +  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19093 +  # Work around the forget-to-reset-the-flag bug.
19094 +  echo 't clr' >>$CONFIG_STATUS
19095 +  echo ': clr' >>$CONFIG_STATUS
19096 +  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19097 +  echo 'CEOF
19098 +  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19099 +  rm -f $tmp/in
19100 +  mv $tmp/out $tmp/in
19101 +' >>$CONFIG_STATUS
19102 +  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19103 +  rm -f conftest.undefs
19104 +  mv conftest.tail conftest.undefs
19105 +done
19106 +rm -f conftest.undefs
19107 +
19108 +cat >>$CONFIG_STATUS <<\_ACEOF
19109 +  # Let's still pretend it is `configure' which instantiates (i.e., don't
19110 +  # use $as_me), people would be surprised to read:
19111 +  #    /* config.h.  Generated by config.status.  */
19112 +  if test x"$ac_file" = x-; then
19113 +    echo "/* Generated by configure.  */" >$tmp/config.h
19114 +  else
19115 +    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19116 +  fi
19117 +  cat $tmp/in >>$tmp/config.h
19118 +  rm -f $tmp/in
19119 +  if test x"$ac_file" != x-; then
19120 +    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19121 +      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19122 +echo "$as_me: $ac_file is unchanged" >&6;}
19123 +    else
19124 +      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19125 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19126 +        X"$ac_file" : 'X\(//\)[^/]' \| \
19127 +        X"$ac_file" : 'X\(//\)$' \| \
19128 +        X"$ac_file" : 'X\(/\)' \| \
19129 +        .     : '\(.\)' 2>/dev/null ||
19130 +echo X"$ac_file" |
19131 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19132 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19133 +         /^X\(\/\/\)$/{ s//\1/; q; }
19134 +         /^X\(\/\).*/{ s//\1/; q; }
19135 +         s/.*/./; q'`
19136 +      { if $as_mkdir_p; then
19137 +    mkdir -p "$ac_dir"
19138 +  else
19139 +    as_dir="$ac_dir"
19140 +    as_dirs=
19141 +    while test ! -d "$as_dir"; do
19142 +      as_dirs="$as_dir $as_dirs"
19143 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
19144 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19145 +        X"$as_dir" : 'X\(//\)[^/]' \| \
19146 +        X"$as_dir" : 'X\(//\)$' \| \
19147 +        X"$as_dir" : 'X\(/\)' \| \
19148 +        .     : '\(.\)' 2>/dev/null ||
19149 +echo X"$as_dir" |
19150 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19151 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19152 +         /^X\(\/\/\)$/{ s//\1/; q; }
19153 +         /^X\(\/\).*/{ s//\1/; q; }
19154 +         s/.*/./; q'`
19155 +    done
19156 +    test ! -n "$as_dirs" || mkdir $as_dirs
19157 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19158 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19159 +   { (exit 1); exit 1; }; }; }
19160 +
19161 +      rm -f $ac_file
19162 +      mv $tmp/config.h $ac_file
19163 +    fi
19164 +  else
19165 +    cat $tmp/config.h
19166 +    rm -f $tmp/config.h
19167 +  fi
19168 +done
19169 +_ACEOF
19170 +cat >>$CONFIG_STATUS <<\_ACEOF
19171 +
19172 +#
19173 +# CONFIG_COMMANDS section.
19174 +#
19175 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19176 +  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19177 +  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19178 +  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19179 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19180 +        X"$ac_dest" : 'X\(//\)[^/]' \| \
19181 +        X"$ac_dest" : 'X\(//\)$' \| \
19182 +        X"$ac_dest" : 'X\(/\)' \| \
19183 +        .     : '\(.\)' 2>/dev/null ||
19184 +echo X"$ac_dest" |
19185 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19186 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19187 +         /^X\(\/\/\)$/{ s//\1/; q; }
19188 +         /^X\(\/\).*/{ s//\1/; q; }
19189 +         s/.*/./; q'`
19190 +  { if $as_mkdir_p; then
19191 +    mkdir -p "$ac_dir"
19192 +  else
19193 +    as_dir="$ac_dir"
19194 +    as_dirs=
19195 +    while test ! -d "$as_dir"; do
19196 +      as_dirs="$as_dir $as_dirs"
19197 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
19198 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19199 +        X"$as_dir" : 'X\(//\)[^/]' \| \
19200 +        X"$as_dir" : 'X\(//\)$' \| \
19201 +        X"$as_dir" : 'X\(/\)' \| \
19202 +        .     : '\(.\)' 2>/dev/null ||
19203 +echo X"$as_dir" |
19204 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19205 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19206 +         /^X\(\/\/\)$/{ s//\1/; q; }
19207 +         /^X\(\/\).*/{ s//\1/; q; }
19208 +         s/.*/./; q'`
19209 +    done
19210 +    test ! -n "$as_dirs" || mkdir $as_dirs
19211 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19212 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19213 +   { (exit 1); exit 1; }; }; }
19214 +
19215 +  ac_builddir=.
19216 +
19217 +if test "$ac_dir" != .; then
19218 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19219 +  # A "../" for each directory in $ac_dir_suffix.
19220 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19221 +else
19222 +  ac_dir_suffix= ac_top_builddir=
19223 +fi
19224 +
19225 +case $srcdir in
19226 +  .)  # No --srcdir option.  We are building in place.
19227 +    ac_srcdir=.
19228 +    if test -z "$ac_top_builddir"; then
19229 +       ac_top_srcdir=.
19230 +    else
19231 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19232 +    fi ;;
19233 +  [\\/]* | ?:[\\/]* )  # Absolute path.
19234 +    ac_srcdir=$srcdir$ac_dir_suffix;
19235 +    ac_top_srcdir=$srcdir ;;
19236 +  *) # Relative path.
19237 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19238 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
19239 +esac
19240 +
19241 +# Do not use `cd foo && pwd` to compute absolute paths, because
19242 +# the directories may not exist.
19243 +case `pwd` in
19244 +.) ac_abs_builddir="$ac_dir";;
19245 +*)
19246 +  case "$ac_dir" in
19247 +  .) ac_abs_builddir=`pwd`;;
19248 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19249 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
19250 +  esac;;
19251 +esac
19252 +case $ac_abs_builddir in
19253 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
19254 +*)
19255 +  case ${ac_top_builddir}. in
19256 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
19257 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19258 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19259 +  esac;;
19260 +esac
19261 +case $ac_abs_builddir in
19262 +.) ac_abs_srcdir=$ac_srcdir;;
19263 +*)
19264 +  case $ac_srcdir in
19265 +  .) ac_abs_srcdir=$ac_abs_builddir;;
19266 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19267 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19268 +  esac;;
19269 +esac
19270 +case $ac_abs_builddir in
19271 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
19272 +*)
19273 +  case $ac_top_srcdir in
19274 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
19275 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19276 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19277 +  esac;;
19278 +esac
19279 +
19280 +
19281 +  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19282 +echo "$as_me: executing $ac_dest commands" >&6;}
19283 +  case $ac_dest in
19284 +    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
19285 +  esac
19286 +done
19287 +_ACEOF
19288 +
19289 +cat >>$CONFIG_STATUS <<\_ACEOF
19290 +
19291 +{ (exit 0); exit 0; }
19292 +_ACEOF
19293 +chmod +x $CONFIG_STATUS
19294 +ac_clean_files=$ac_clean_files_save
19295 +
19296 +
19297 +# configure is writing to config.log, and then calls config.status.
19298 +# config.status does its own redirection, appending to config.log.
19299 +# Unfortunately, on DOS this fails, as config.log is still kept open
19300 +# by configure, so config.status won't be able to write to it; its
19301 +# output is simply discarded.  So we exec the FD to /dev/null,
19302 +# effectively closing config.log, so it can be properly (re)opened and
19303 +# appended to by config.status.  When coming back to configure, we
19304 +# need to make the FD available again.
19305 +if test "$no_create" != yes; then
19306 +  ac_cs_success=:
19307 +  ac_config_status_args=
19308 +  test "$silent" = yes &&
19309 +    ac_config_status_args="$ac_config_status_args --quiet"
19310 +  exec 5>/dev/null
19311 +  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19312 +  exec 5>>config.log
19313 +  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19314 +  # would make configure fail if this is the last instruction.
19315 +  $ac_cs_success || { (exit 1); exit 1; }
19316 +fi
19317 +
19318 +
19319 diff -urN linux-atm.old/autom4te.cache/requests linux-atm.dev/autom4te.cache/requests
19320 --- linux-atm.old/autom4te.cache/requests       1970-01-01 01:00:00.000000000 +0100
19321 +++ linux-atm.dev/autom4te.cache/requests       2005-08-23 01:12:41.188174872 +0200
19322 @@ -0,0 +1,116 @@
19323 +# This file was generated by Autom4te Sat Jan  8 16:59:54 PST 2005.
19324 +# It contains the lists of macros which have been traced.
19325 +# It can be safely removed.
19326 +
19327 +@request = (
19328 +             bless( [
19329 +                      '0',
19330 +                      1,
19331 +                      [
19332 +                        '/usr/share/autoconf'
19333 +                      ],
19334 +                      [
19335 +                        '/usr/share/autoconf/autoconf/autoconf.m4f',
19336 +                        'aclocal.m4',
19337 +                        'configure.in'
19338 +                      ],
19339 +                      {
19340 +                        'm4_pattern_forbid' => 1,
19341 +                        'AC_CONFIG_LIBOBJ_DIR' => 1,
19342 +                        'AC_TYPE_OFF_T' => 1,
19343 +                        'AC_C_VOLATILE' => 1,
19344 +                        'AC_FUNC_CLOSEDIR_VOID' => 1,
19345 +                        'AC_REPLACE_FNMATCH' => 1,
19346 +                        'AC_PROG_LIBTOOL' => 1,
19347 +                        'AC_FUNC_STAT' => 1,
19348 +                        'AC_HEADER_TIME' => 1,
19349 +                        'AC_FUNC_WAIT3' => 1,
19350 +                        'AM_AUTOMAKE_VERSION' => 1,
19351 +                        'AC_STRUCT_TM' => 1,
19352 +                        'AC_FUNC_LSTAT' => 1,
19353 +                        'AC_TYPE_MODE_T' => 1,
19354 +                        'AC_FUNC_GETMNTENT' => 1,
19355 +                        'AC_FUNC_STRTOD' => 1,
19356 +                        'AC_CHECK_HEADERS' => 1,
19357 +                        'AC_FUNC_STRNLEN' => 1,
19358 +                        'm4_sinclude' => 1,
19359 +                        'AC_PROG_CXX' => 1,
19360 +                        'AC_PATH_X' => 1,
19361 +                        'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1,
19362 +                        'AC_PROG_AWK' => 1,
19363 +                        '_m4_warn' => 1,
19364 +                        'AC_HEADER_STDC' => 1,
19365 +                        'AC_HEADER_MAJOR' => 1,
19366 +                        'AC_FUNC_ERROR_AT_LINE' => 1,
19367 +                        'AC_PROG_GCC_TRADITIONAL' => 1,
19368 +                        'AC_LIBSOURCE' => 1,
19369 +                        'AC_FUNC_MBRTOWC' => 1,
19370 +                        'AC_STRUCT_ST_BLOCKS' => 1,
19371 +                        'AC_TYPE_SIGNAL' => 1,
19372 +                        'AC_TYPE_UID_T' => 1,
19373 +                        'AC_CONFIG_AUX_DIR' => 1,
19374 +                        'AC_PROG_MAKE_SET' => 1,
19375 +                        'sinclude' => 1,
19376 +                        'm4_pattern_allow' => 1,
19377 +                        'AC_DEFINE_TRACE_LITERAL' => 1,
19378 +                        'AC_FUNC_STRERROR_R' => 1,
19379 +                        'AC_PROG_CC' => 1,
19380 +                        'AC_FUNC_FORK' => 1,
19381 +                        'AC_DECL_SYS_SIGLIST' => 1,
19382 +                        'AC_FUNC_VPRINTF' => 1,
19383 +                        'AC_FUNC_STRCOLL' => 1,
19384 +                        'AC_PROG_YACC' => 1,
19385 +                        'AC_INIT' => 1,
19386 +                        'AC_STRUCT_TIMEZONE' => 1,
19387 +                        'AC_FUNC_CHOWN' => 1,
19388 +                        'AC_SUBST' => 1,
19389 +                        'AC_FUNC_ALLOCA' => 1,
19390 +                        'AC_CANONICAL_HOST' => 1,
19391 +                        'AC_FUNC_GETPGRP' => 1,
19392 +                        'AC_PROG_RANLIB' => 1,
19393 +                        'AM_INIT_AUTOMAKE' => 1,
19394 +                        'AC_FUNC_SETPGRP' => 1,
19395 +                        'AC_CONFIG_SUBDIRS' => 1,
19396 +                        'AC_FUNC_MMAP' => 1,
19397 +                        'AC_FUNC_REALLOC' => 1,
19398 +                        'AC_TYPE_SIZE_T' => 1,
19399 +                        'AC_CONFIG_LINKS' => 1,
19400 +                        'AC_CHECK_TYPES' => 1,
19401 +                        'AC_CHECK_MEMBERS' => 1,
19402 +                        'AM_MAINTAINER_MODE' => 1,
19403 +                        'AC_FUNC_UTIME_NULL' => 1,
19404 +                        'AC_FUNC_SELECT_ARGTYPES' => 1,
19405 +                        'AC_FUNC_STRFTIME' => 1,
19406 +                        'AC_HEADER_STAT' => 1,
19407 +                        'AC_C_INLINE' => 1,
19408 +                        'AC_PROG_CPP' => 1,
19409 +                        'AC_TYPE_PID_T' => 1,
19410 +                        'AC_C_CONST' => 1,
19411 +                        'AC_PROG_LEX' => 1,
19412 +                        'AC_CONFIG_FILES' => 1,
19413 +                        'include' => 1,
19414 +                        'AC_FUNC_SETVBUF_REVERSED' => 1,
19415 +                        'AC_PROG_INSTALL' => 1,
19416 +                        'AM_GNU_GETTEXT' => 1,
19417 +                        'AC_FUNC_OBSTACK' => 1,
19418 +                        'AC_CHECK_LIB' => 1,
19419 +                        'AC_FUNC_MALLOC' => 1,
19420 +                        'AC_FUNC_GETGROUPS' => 1,
19421 +                        'AC_FUNC_GETLOADAVG' => 1,
19422 +                        'AH_OUTPUT' => 1,
19423 +                        'AC_FUNC_FSEEKO' => 1,
19424 +                        'AM_PROG_CC_C_O' => 1,
19425 +                        'AM_CONDITIONAL' => 1,
19426 +                        'AC_CANONICAL_SYSTEM' => 1,
19427 +                        'AC_FUNC_MKTIME' => 1,
19428 +                        'AC_CONFIG_HEADERS' => 1,
19429 +                        'AC_HEADER_SYS_WAIT' => 1,
19430 +                        'AC_FUNC_MEMCMP' => 1,
19431 +                        'AC_PROG_LN_S' => 1,
19432 +                        'm4_include' => 1,
19433 +                        'AC_HEADER_DIRENT' => 1,
19434 +                        'AC_CHECK_FUNCS' => 1
19435 +                      }
19436 +                    ], 'Autom4te::Request' )
19437 +           );
19438 +
19439 diff -urN linux-atm.old/autom4te.cache/traces.0 linux-atm.dev/autom4te.cache/traces.0
19440 --- linux-atm.old/autom4te.cache/traces.0       1970-01-01 01:00:00.000000000 +0100
19441 +++ linux-atm.dev/autom4te.cache/traces.0       2005-08-23 01:12:40.958209832 +0200
19442 @@ -0,0 +1,426 @@
19443 +m4trace:configure.in:8: -1- AC_INIT([src/include/atm.h])
19444 +m4trace:configure.in:8: -1- m4_pattern_forbid([^_?A[CHUM]_])
19445 +m4trace:configure.in:8: -1- m4_pattern_forbid([_AC_])
19446 +m4trace:configure.in:8: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
19447 +m4trace:configure.in:8: -1- m4_pattern_allow([^AS_FLAGS$])
19448 +m4trace:configure.in:8: -1- m4_pattern_forbid([^_?m4_])
19449 +m4trace:configure.in:8: -1- m4_pattern_forbid([^dnl$])
19450 +m4trace:configure.in:8: -1- m4_pattern_forbid([^_?AS_])
19451 +m4trace:configure.in:8: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
19452 +m4trace:configure.in:8: -1- AC_SUBST([PATH_SEPARATOR])
19453 +m4trace:configure.in:8: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME],      ['AC_PACKAGE_NAME'])])
19454 +m4trace:configure.in:8: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME],   ['AC_PACKAGE_TARNAME'])])
19455 +m4trace:configure.in:8: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION],   ['AC_PACKAGE_VERSION'])])
19456 +m4trace:configure.in:8: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING],    ['AC_PACKAGE_STRING'])])
19457 +m4trace:configure.in:8: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
19458 +m4trace:configure.in:8: -1- AC_SUBST([exec_prefix], [NONE])
19459 +m4trace:configure.in:8: -1- AC_SUBST([prefix], [NONE])
19460 +m4trace:configure.in:8: -1- AC_SUBST([program_transform_name], [s,x,x,])
19461 +m4trace:configure.in:8: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
19462 +m4trace:configure.in:8: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
19463 +m4trace:configure.in:8: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
19464 +m4trace:configure.in:8: -1- AC_SUBST([datadir], ['${prefix}/share'])
19465 +m4trace:configure.in:8: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
19466 +m4trace:configure.in:8: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
19467 +m4trace:configure.in:8: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
19468 +m4trace:configure.in:8: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
19469 +m4trace:configure.in:8: -1- AC_SUBST([includedir], ['${prefix}/include'])
19470 +m4trace:configure.in:8: -1- AC_SUBST([oldincludedir], ['/usr/include'])
19471 +m4trace:configure.in:8: -1- AC_SUBST([infodir], ['${prefix}/info'])
19472 +m4trace:configure.in:8: -1- AC_SUBST([mandir], ['${prefix}/man'])
19473 +m4trace:configure.in:8: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
19474 +m4trace:configure.in:8: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
19475 +#undef PACKAGE_NAME])
19476 +m4trace:configure.in:8: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
19477 +m4trace:configure.in:8: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
19478 +#undef PACKAGE_TARNAME])
19479 +m4trace:configure.in:8: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
19480 +m4trace:configure.in:8: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
19481 +#undef PACKAGE_VERSION])
19482 +m4trace:configure.in:8: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
19483 +m4trace:configure.in:8: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
19484 +#undef PACKAGE_STRING])
19485 +m4trace:configure.in:8: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
19486 +m4trace:configure.in:8: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
19487 +#undef PACKAGE_BUGREPORT])
19488 +m4trace:configure.in:8: -1- AC_SUBST([build_alias])
19489 +m4trace:configure.in:8: -1- AC_SUBST([host_alias])
19490 +m4trace:configure.in:8: -1- AC_SUBST([target_alias])
19491 +m4trace:configure.in:8: -1- AC_SUBST([DEFS])
19492 +m4trace:configure.in:8: -1- AC_SUBST([ECHO_C])
19493 +m4trace:configure.in:8: -1- AC_SUBST([ECHO_N])
19494 +m4trace:configure.in:8: -1- AC_SUBST([ECHO_T])
19495 +m4trace:configure.in:8: -1- AC_SUBST([LIBS])
19496 +m4trace:configure.in:9: -1- AC_CONFIG_HEADERS([config.h])
19497 +m4trace:configure.in:9: -1- _m4_warn([obsolete], [The macro `AC_OUTPUT_COMMANDS' is obsolete.
19498 +You should run autoupdate.], [autoconf/status.m4:318: AC_OUTPUT_COMMANDS is expanded from...
19499 +aclocal.m4:34: AM_CONFIG_HEADER is expanded from...
19500 +configure.in:9: the top level])
19501 +m4trace:configure.in:9: -3- _m4_warn([obsolete], [The macro `_AC_OUTPUT_COMMANDS_CNT' is obsolete.
19502 +You should run autoupdate.], [autoconf/status.m4:321: _AC_OUTPUT_COMMANDS_CNT is expanded from...
19503 +autoconf/status.m4:318: AC_OUTPUT_COMMANDS is expanded from...
19504 +aclocal.m4:34: AM_CONFIG_HEADER is expanded from...
19505 +configure.in:9: the top level])
19506 +m4trace:configure.in:12: -1- AC_CANONICAL_SYSTEM
19507 +m4trace:configure.in:12: -1- _m4_warn([obsolete], [The macro `AC_CANONICAL_SYSTEM' is obsolete.
19508 +You should run autoupdate.], [autoconf/general.m4:1660: AC_CANONICAL_SYSTEM is expanded from...
19509 +configure.in:12: the top level])
19510 +m4trace:configure.in:12: -1- AC_CANONICAL_HOST
19511 +m4trace:configure.in:12: -1- AC_SUBST([build], [$ac_cv_build])
19512 +m4trace:configure.in:12: -1- AC_SUBST([build_cpu], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
19513 +m4trace:configure.in:12: -1- AC_SUBST([build_vendor], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
19514 +m4trace:configure.in:12: -1- AC_SUBST([build_os], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
19515 +m4trace:configure.in:12: -1- AC_SUBST([host], [$ac_cv_host])
19516 +m4trace:configure.in:12: -1- AC_SUBST([host_cpu], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
19517 +m4trace:configure.in:12: -1- AC_SUBST([host_vendor], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
19518 +m4trace:configure.in:12: -1- AC_SUBST([host_os], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
19519 +m4trace:configure.in:12: -1- AC_SUBST([target], [$ac_cv_target])
19520 +m4trace:configure.in:12: -1- AC_SUBST([target_cpu], [`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
19521 +m4trace:configure.in:12: -1- AC_SUBST([target_vendor], [`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
19522 +m4trace:configure.in:12: -1- AC_SUBST([target_os], [`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
19523 +m4trace:configure.in:14: -1- AM_INIT_AUTOMAKE([linux-atm], [2.4.1])
19524 +m4trace:configure.in:14: -1- AM_AUTOMAKE_VERSION([1.4-p6])
19525 +m4trace:configure.in:14: -1- AC_PROG_INSTALL
19526 +m4trace:configure.in:14: -1- AC_SUBST([INSTALL_PROGRAM])
19527 +m4trace:configure.in:14: -1- AC_SUBST([INSTALL_SCRIPT])
19528 +m4trace:configure.in:14: -1- AC_SUBST([INSTALL_DATA])
19529 +m4trace:configure.in:14: -1- AC_SUBST([PACKAGE])
19530 +m4trace:configure.in:14: -1- AC_SUBST([VERSION])
19531 +m4trace:configure.in:14: -2- AC_DEFINE_TRACE_LITERAL([PACKAGE])
19532 +m4trace:configure.in:14: -2- AH_OUTPUT([PACKAGE], [/* Name of package */
19533 +#undef PACKAGE])
19534 +m4trace:configure.in:14: -2- AC_DEFINE_TRACE_LITERAL([VERSION])
19535 +m4trace:configure.in:14: -2- AH_OUTPUT([VERSION], [/* Version number of package */
19536 +#undef VERSION])
19537 +m4trace:configure.in:14: -1- AC_SUBST([ACLOCAL])
19538 +m4trace:configure.in:14: -1- AC_SUBST([AUTOCONF])
19539 +m4trace:configure.in:14: -1- AC_SUBST([AUTOMAKE])
19540 +m4trace:configure.in:14: -1- AC_SUBST([AUTOHEADER])
19541 +m4trace:configure.in:14: -1- AC_SUBST([MAKEINFO])
19542 +m4trace:configure.in:14: -1- AC_PROG_MAKE_SET
19543 +m4trace:configure.in:14: -1- AC_SUBST([SET_MAKE])
19544 +m4trace:configure.in:19: -1- AC_SUBST([LIBVER_CURRENT])
19545 +m4trace:configure.in:20: -1- AC_SUBST([LIBVER_REVISION])
19546 +m4trace:configure.in:21: -1- AC_SUBST([LIBVER_AGE])
19547 +m4trace:configure.in:24: -1- AC_PROG_CC
19548 +m4trace:configure.in:24: -1- AC_SUBST([CC])
19549 +m4trace:configure.in:24: -1- AC_SUBST([CFLAGS])
19550 +m4trace:configure.in:24: -1- AC_SUBST([LDFLAGS])
19551 +m4trace:configure.in:24: -1- AC_SUBST([CPPFLAGS])
19552 +m4trace:configure.in:24: -1- AC_SUBST([CC])
19553 +m4trace:configure.in:24: -1- AC_SUBST([ac_ct_CC])
19554 +m4trace:configure.in:24: -1- AC_SUBST([CC])
19555 +m4trace:configure.in:24: -1- AC_SUBST([ac_ct_CC])
19556 +m4trace:configure.in:24: -1- AC_SUBST([CC])
19557 +m4trace:configure.in:24: -1- AC_SUBST([CC])
19558 +m4trace:configure.in:24: -1- AC_SUBST([ac_ct_CC])
19559 +m4trace:configure.in:24: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
19560 +m4trace:configure.in:24: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
19561 +m4trace:configure.in:25: -1- AC_SUBST([LEX])
19562 +m4trace:configure.in:25: -1- AC_PROG_LEX
19563 +m4trace:configure.in:25: -1- AC_SUBST([LEX])
19564 +m4trace:configure.in:25: -1- AC_CHECK_LIB([fl], [yywrap], [LEXLIB="-lfl"], [AC_CHECK_LIB(l, yywrap, LEXLIB="-ll")])
19565 +m4trace:configure.in:25: -1- AC_CHECK_LIB([l], [yywrap], [LEXLIB="-ll"])
19566 +m4trace:configure.in:25: -1- AC_SUBST([LEXLIB])
19567 +m4trace:configure.in:25: -1- AC_SUBST([LEX_OUTPUT_ROOT], [$ac_cv_prog_lex_root])
19568 +m4trace:configure.in:25: -1- AC_DEFINE_TRACE_LITERAL([YYTEXT_POINTER])
19569 +m4trace:configure.in:25: -1- AH_OUTPUT([YYTEXT_POINTER], [/* Define to 1 if `lex\' declares `yytext\' as a `char *\' by default, not a
19570 +   `char[]\'. */
19571 +#undef YYTEXT_POINTER])
19572 +m4trace:configure.in:25: -1- _m4_warn([obsolete], [The macro `AC_DECL_YYTEXT' is obsolete.
19573 +You should run autoupdate.], [autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
19574 +aclocal.m4:165: AM_PROG_LEX is expanded from...
19575 +configure.in:25: the top level])
19576 +m4trace:configure.in:25: -1- AC_PROG_LEX
19577 +m4trace:configure.in:25: -1- _m4_warn([syntax], [AC_PROG_LEX invoked multiple times], [autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
19578 +aclocal.m4:165: AM_PROG_LEX is expanded from...
19579 +configure.in:25: the top level])
19580 +m4trace:configure.in:26: -1- AC_PROG_YACC
19581 +m4trace:configure.in:26: -1- AC_SUBST([YACC])
19582 +m4trace:configure.in:27: -1- AC_PROG_INSTALL
19583 +m4trace:configure.in:27: -1- AC_SUBST([INSTALL_PROGRAM])
19584 +m4trace:configure.in:27: -1- AC_SUBST([INSTALL_SCRIPT])
19585 +m4trace:configure.in:27: -1- AC_SUBST([INSTALL_DATA])
19586 +m4trace:configure.in:30: -1- AC_PROG_LIBTOOL
19587 +m4trace:configure.in:30: -1- AC_PROG_LN_S
19588 +m4trace:configure.in:30: -1- AC_SUBST([LN_S], [$as_ln_s])
19589 +m4trace:configure.in:30: -1- AC_SUBST([ECHO])
19590 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_CHECK_TOOL_PREFIX' is obsolete.
19591 +You should run autoupdate.], [autoconf/programs.m4:188: AC_CHECK_TOOL_PREFIX is expanded from...
19592 +configure.in:30: AC_CHECK_TOOL_PREFIX is required by...
19593 +aclocal.m4:3303: AC_PATH_MAGIC is expanded from...
19594 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19595 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19596 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19597 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19598 +configure.in:30: the top level])
19599 +m4trace:configure.in:30: -1- AC_SUBST([RANLIB])
19600 +m4trace:configure.in:30: -1- AC_SUBST([ac_ct_RANLIB])
19601 +m4trace:configure.in:30: -1- AC_SUBST([STRIP])
19602 +m4trace:configure.in:30: -1- AC_SUBST([ac_ct_STRIP])
19603 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete.
19604 +You should run autoupdate.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
19605 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19606 +autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
19607 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19608 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19609 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19610 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19611 +configure.in:30: the top level])
19612 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [instead of using `AC_LANG', `AC_LANG_SAVE',
19613 +and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
19614 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19615 +autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
19616 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19617 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19618 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19619 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19620 +configure.in:30: the top level])
19621 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete.
19622 +You should run autoupdate.], [autoconf/c.m4:71: AC_LANG_C is expanded from...
19623 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19624 +autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
19625 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19626 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19627 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19628 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19629 +configure.in:30: the top level])
19630 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
19631 +You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
19632 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19633 +autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
19634 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19635 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19636 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19637 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19638 +configure.in:30: the top level])
19639 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete.
19640 +You should run autoupdate.], [autoconf/lang.m4:172: AC_LANG_RESTORE is expanded from...
19641 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19642 +autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
19643 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19644 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19645 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19646 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19647 +configure.in:30: the top level])
19648 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete.
19649 +You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from...
19650 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19651 +aclocal.m4:509: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is expanded from...
19652 +configure.in:30: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is required by...
19653 +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19654 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19655 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19656 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19657 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19658 +configure.in:30: the top level])
19659 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete.
19660 +You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from...
19661 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19662 +aclocal.m4:509: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is expanded from...
19663 +configure.in:30: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is required by...
19664 +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19665 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19666 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19667 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19668 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19669 +configure.in:30: the top level])
19670 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete.
19671 +You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from...
19672 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19673 +aclocal.m4:509: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is expanded from...
19674 +configure.in:30: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is required by...
19675 +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19676 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19677 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19678 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19679 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19680 +configure.in:30: the top level])
19681 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete.
19682 +You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from...
19683 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19684 +aclocal.m4:509: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is expanded from...
19685 +configure.in:30: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is required by...
19686 +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19687 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19688 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19689 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19690 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19691 +configure.in:30: the top level])
19692 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
19693 +You should run autoupdate.], [autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
19694 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19695 +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19696 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19697 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19698 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19699 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19700 +configure.in:30: the top level])
19701 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19702 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19703 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19704 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19705 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19706 +configure.in:30: the top level])
19707 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19708 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19709 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19710 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19711 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19712 +configure.in:30: the top level])
19713 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19714 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19715 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19716 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19717 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19718 +configure.in:30: the top level])
19719 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19720 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19721 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19722 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19723 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19724 +configure.in:30: the top level])
19725 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
19726 +You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
19727 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19728 +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19729 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19730 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19731 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19732 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19733 +configure.in:30: the top level])
19734 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete.
19735 +You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from...
19736 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19737 +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19738 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19739 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19740 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19741 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19742 +configure.in:30: the top level])
19743 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
19744 +You should run autoupdate.], [autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
19745 +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
19746 +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19747 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19748 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19749 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19750 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19751 +configure.in:30: the top level])
19752 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19753 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19754 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19755 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19756 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19757 +configure.in:30: the top level])
19758 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19759 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19760 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19761 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19762 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19763 +configure.in:30: the top level])
19764 +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
19765 +You should run autoupdate.], [autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
19766 +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
19767 +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
19768 +configure.in:30: AC_LIBTOOL_SETUP is required by...
19769 +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
19770 +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
19771 +configure.in:30: the top level])
19772 +m4trace:configure.in:30: -1- AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
19773 +             [lt_cv_dlopen="dlopen"],
19774 +         [AC_CHECK_LIB([dl], [dlopen],
19775 +               [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
19776 +           [AC_CHECK_LIB([svld], [dlopen],
19777 +                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
19778 +             [AC_CHECK_LIB([dld], [dld_link],
19779 +                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
19780 +             ])
19781 +           ])
19782 +         ])
19783 +       ])
19784 +m4trace:configure.in:30: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen],
19785 +                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
19786 +             [AC_CHECK_LIB([dld], [dld_link],
19787 +                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
19788 +             ])
19789 +           ])
19790 +m4trace:configure.in:30: -1- AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link],
19791 +                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
19792 +             ])
19793 +m4trace:configure.in:30: -1- AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
19794 +m4trace:configure.in:30: -1- AC_CHECK_HEADERS([dlfcn.h])
19795 +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the <dlfcn.h> header file. */
19796 +#undef HAVE_DLFCN_H])
19797 +m4trace:configure.in:30: -1- AC_HEADER_STDC
19798 +m4trace:configure.in:30: -1- AC_PROG_CPP
19799 +m4trace:configure.in:30: -1- AC_SUBST([CPP])
19800 +m4trace:configure.in:30: -1- AC_SUBST([CPPFLAGS])
19801 +m4trace:configure.in:30: -1- AC_SUBST([CPP])
19802 +m4trace:configure.in:30: -1- AC_SUBST([EGREP])
19803 +m4trace:configure.in:30: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
19804 +m4trace:configure.in:30: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
19805 +#undef STDC_HEADERS])
19806 +m4trace:configure.in:30: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19807 +                 inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
19808 +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
19809 +#undef HAVE_SYS_TYPES_H])
19810 +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
19811 +#undef HAVE_SYS_STAT_H])
19812 +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
19813 +#undef HAVE_STDLIB_H])
19814 +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
19815 +#undef HAVE_STRING_H])
19816 +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
19817 +#undef HAVE_MEMORY_H])
19818 +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
19819 +#undef HAVE_STRINGS_H])
19820 +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
19821 +#undef HAVE_INTTYPES_H])
19822 +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
19823 +#undef HAVE_STDINT_H])
19824 +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
19825 +#undef HAVE_UNISTD_H])
19826 +m4trace:configure.in:30: -1- AC_SUBST([LIBTOOL])
19827 +m4trace:configure.in:31: -1- AC_SUBST([LIBTOOL_DEPS])
19828 +m4trace:configure.in:34: -1- AC_SUBST([PERL], [$ac_cv_path_PERL])
19829 +m4trace:configure.in:35: -1- AC_SUBST([PERL])
19830 +m4trace:configure.in:51: -1- AC_CHECK_LIB([resolv], [main], [], [{ { echo "$as_me:$LINENO: error: *** Unable to find libresolv!!!" >&5
19831 +echo "$as_me: error: *** Unable to find libresolv!!!" >&2;}
19832 +   { (exit 1); exit 1; }; }
19833 +])
19834 +m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_LIBRESOLV], [/* Define to 1 if you have the `resolv\' library (-lresolv). */
19835 +#undef HAVE_LIBRESOLV])
19836 +m4trace:configure.in:51: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRESOLV])
19837 +m4trace:configure.in:62: -1- AC_DEFINE_TRACE_LITERAL([YY_USE_CONST])
19838 +m4trace:configure.in:68: -1- AC_DEFINE_TRACE_LITERAL([ATMSIGD_CONF])
19839 +m4trace:configure.in:86: -2- AC_DEFINE_TRACE_LITERAL([DYNAMIC_UNI])
19840 +m4trace:configure.in:87: -1- AC_DEFINE_TRACE_LITERAL([UNI30])
19841 +m4trace:configure.in:87: -1- AC_DEFINE_TRACE_LITERAL([UNI31])
19842 +m4trace:configure.in:87: -1- AC_DEFINE_TRACE_LITERAL([UNI40])
19843 +m4trace:configure.in:87: -1- AC_DEFINE_TRACE_LITERAL([DYNAMIC_UNI])
19844 +m4trace:configure.in:98: -1- AC_DEFINE_TRACE_LITERAL([ALLOW_UNI30])
19845 +m4trace:configure.in:109: -1- AC_DEFINE_TRACE_LITERAL([Q2963_1])
19846 +m4trace:configure.in:113: -2- AC_DEFINE_TRACE_LITERAL([CISCO])
19847 +m4trace:configure.in:118: -2- AC_DEFINE_TRACE_LITERAL([THOMFLEX])
19848 +m4trace:configure.in:123: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_POLL])
19849 +m4trace:configure.in:127: -2- AC_DEFINE_TRACE_LITERAL([MPOA_1_1])
19850 +m4trace:configure.in:143: -1- AC_CHECK_LIB([mpr], [main], [], [
19851 +                       AC_MSG_WARN([*** Could not find libmpr!  Is MPR installed?])
19852 +                       
19853 +               ])
19854 +m4trace:configure.in:143: -1- AH_OUTPUT([HAVE_LIBMPR], [/* Define to 1 if you have the `mpr\' library (-lmpr). */
19855 +#undef HAVE_LIBMPR])
19856 +m4trace:configure.in:143: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMPR])
19857 +m4trace:configure.in:157: -1- AC_CONFIG_FILES([Makefile \
19858 +               doc/Makefile \
19859 +               m4/Makefile \
19860 +               src/Makefile \
19861 +               src/include/Makefile \
19862 +               src/lib/Makefile \
19863 +               src/br2684/Makefile \
19864 +               ])
19865 +m4trace:configure.in:157: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments.
19866 +You should run autoupdate.], [])
19867 +m4trace:configure.in:157: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
19868 +m4trace:configure.in:157: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
19869 diff -urN linux-atm.old/configure linux-atm.dev/configure
19870 --- linux-atm.old/configure     2005-08-23 01:12:10.846787000 +0200
19871 +++ linux-atm.dev/configure     2005-08-23 01:12:41.187175024 +0200
19872 @@ -1,9 +1,8 @@
19873  #! /bin/sh
19874  # Guess values for system-dependent variables and create Makefiles.
19875 -# Generated by GNU Autoconf 2.57.
19876 +# Generated by GNU Autoconf 2.59.
19877  #
19878 -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
19879 -# Free Software Foundation, Inc.
19880 +# Copyright (C) 2003 Free Software Foundation, Inc.
19881  # This configure script is free software; the Free Software Foundation
19882  # gives unlimited permission to copy, distribute and modify it.
19883  ## --------------------- ##
19884 @@ -20,9 +19,10 @@
19885  elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19886    set -o posix
19887  fi
19888 +DUALCASE=1; export DUALCASE # for MKS sh
19889  
19890  # Support unset when possible.
19891 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19892 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19893    as_unset=unset
19894  else
19895    as_unset=false
19896 @@ -41,7 +41,7 @@
19897    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19898    LC_TELEPHONE LC_TIME
19899  do
19900 -  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19901 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19902      eval $as_var=C; export $as_var
19903    else
19904      $as_unset $as_var
19905 @@ -218,16 +218,17 @@
19906  if mkdir -p . 2>/dev/null; then
19907    as_mkdir_p=:
19908  else
19909 +  test -d ./-p && rmdir ./-p
19910    as_mkdir_p=false
19911  fi
19912  
19913  as_executable_p="test -f"
19914  
19915  # Sed expression to map a string onto a valid CPP name.
19916 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19917 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19918  
19919  # Sed expression to map a string onto a valid variable name.
19920 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19921 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19922  
19923  
19924  # IFS
19925 @@ -826,7 +827,7 @@
19926  
19927  # Be sure to have absolute paths.
19928  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
19929 -              localstatedir libdir includedir oldincludedir infodir mandir
19930 +             localstatedir libdir includedir oldincludedir infodir mandir
19931  do
19932    eval ac_val=$`echo $ac_var`
19933    case $ac_val in
19934 @@ -866,10 +867,10 @@
19935    # Try the directory containing this script, then its parent.
19936    ac_confdir=`(dirname "$0") 2>/dev/null ||
19937  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19938 -         X"$0" : 'X\(//\)[^/]' \| \
19939 -         X"$0" : 'X\(//\)$' \| \
19940 -         X"$0" : 'X\(/\)' \| \
19941 -         .     : '\(.\)' 2>/dev/null ||
19942 +        X"$0" : 'X\(//\)[^/]' \| \
19943 +        X"$0" : 'X\(//\)$' \| \
19944 +        X"$0" : 'X\(/\)' \| \
19945 +        .     : '\(.\)' 2>/dev/null ||
19946  echo X"$0" |
19947      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19948           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19949 @@ -961,9 +962,9 @@
19950    cat <<_ACEOF
19951  Installation directories:
19952    --prefix=PREFIX         install architecture-independent files in PREFIX
19953 -                          [$ac_default_prefix]
19954 +                         [$ac_default_prefix]
19955    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
19956 -                          [PREFIX]
19957 +                         [PREFIX]
19958  
19959  By default, \`make install' will install all the files in
19960  \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
19961 @@ -1071,12 +1072,45 @@
19962      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19963      ac_top_srcdir=$ac_top_builddir$srcdir ;;
19964  esac
19965 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19966 -# absolute.
19967 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19968 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19969 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19970 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19971 +
19972 +# Do not use `cd foo && pwd` to compute absolute paths, because
19973 +# the directories may not exist.
19974 +case `pwd` in
19975 +.) ac_abs_builddir="$ac_dir";;
19976 +*)
19977 +  case "$ac_dir" in
19978 +  .) ac_abs_builddir=`pwd`;;
19979 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19980 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
19981 +  esac;;
19982 +esac
19983 +case $ac_abs_builddir in
19984 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
19985 +*)
19986 +  case ${ac_top_builddir}. in
19987 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
19988 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19989 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19990 +  esac;;
19991 +esac
19992 +case $ac_abs_builddir in
19993 +.) ac_abs_srcdir=$ac_srcdir;;
19994 +*)
19995 +  case $ac_srcdir in
19996 +  .) ac_abs_srcdir=$ac_abs_builddir;;
19997 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19998 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19999 +  esac;;
20000 +esac
20001 +case $ac_abs_builddir in
20002 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
20003 +*)
20004 +  case $ac_top_srcdir in
20005 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20006 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20007 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20008 +  esac;;
20009 +esac
20010  
20011      cd $ac_dir
20012      # Check for guested configure; otherwise get Cygnus style configure.
20013 @@ -1087,13 +1121,13 @@
20014        echo
20015        $SHELL $ac_srcdir/configure  --help=recursive
20016      elif test -f $ac_srcdir/configure.ac ||
20017 -           test -f $ac_srcdir/configure.in; then
20018 +          test -f $ac_srcdir/configure.in; then
20019        echo
20020        $ac_configure --help
20021      else
20022        echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
20023      fi
20024 -    cd $ac_popdir
20025 +    cd "$ac_popdir"
20026    done
20027  fi
20028  
20029 @@ -1101,8 +1135,7 @@
20030  if $ac_init_version; then
20031    cat <<\_ACEOF
20032  
20033 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
20034 -Free Software Foundation, Inc.
20035 +Copyright (C) 2003 Free Software Foundation, Inc.
20036  This configure script is free software; the Free Software Foundation
20037  gives unlimited permission to copy, distribute and modify it.
20038  _ACEOF
20039 @@ -1114,7 +1147,7 @@
20040  running configure, to aid debugging if configure makes a mistake.
20041  
20042  It was created by $as_me, which was
20043 -generated by GNU Autoconf 2.57.  Invocation command line was
20044 +generated by GNU Autoconf 2.59.  Invocation command line was
20045  
20046    $ $0 $@
20047  
20048 @@ -1191,19 +1224,19 @@
20049      2)
20050        ac_configure_args1="$ac_configure_args1 '$ac_arg'"
20051        if test $ac_must_keep_next = true; then
20052 -        ac_must_keep_next=false # Got value, back to normal.
20053 +       ac_must_keep_next=false # Got value, back to normal.
20054        else
20055 -        case $ac_arg in
20056 -          *=* | --config-cache | -C | -disable-* | --disable-* \
20057 -          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
20058 -          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
20059 -          | -with-* | --with-* | -without-* | --without-* | --x)
20060 -            case "$ac_configure_args0 " in
20061 -              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
20062 -            esac
20063 -            ;;
20064 -          -* ) ac_must_keep_next=true ;;
20065 -        esac
20066 +       case $ac_arg in
20067 +         *=* | --config-cache | -C | -disable-* | --disable-* \
20068 +         | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
20069 +         | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
20070 +         | -with-* | --with-* | -without-* | --without-* | --x)
20071 +           case "$ac_configure_args0 " in
20072 +             "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
20073 +           esac
20074 +           ;;
20075 +         -* ) ac_must_keep_next=true ;;
20076 +       esac
20077        fi
20078        ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
20079        # Get rid of the leading space.
20080 @@ -1237,12 +1270,12 @@
20081      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
20082      *ac_space=\ *)
20083        sed -n \
20084 -        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
20085 -         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
20086 +       "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
20087 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
20088        ;;
20089      *)
20090        sed -n \
20091 -        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20092 +       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20093        ;;
20094      esac;
20095  }
20096 @@ -1271,7 +1304,7 @@
20097        for ac_var in $ac_subst_files
20098        do
20099         eval ac_val=$`echo $ac_var`
20100 -        echo "$ac_var='"'"'$ac_val'"'"'"
20101 +       echo "$ac_var='"'"'$ac_val'"'"'"
20102        done | sort
20103        echo
20104      fi
20105 @@ -1370,7 +1403,7 @@
20106  # value.
20107  ac_cache_corrupted=false
20108  for ac_var in `(set) 2>&1 |
20109 -               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
20110 +              sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
20111    eval ac_old_set=\$ac_cv_env_${ac_var}_set
20112    eval ac_new_set=\$ac_env_${ac_var}_set
20113    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
20114 @@ -1387,13 +1420,13 @@
20115      ,);;
20116      *)
20117        if test "x$ac_old_val" != "x$ac_new_val"; then
20118 -        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
20119 +       { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
20120  echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
20121 -        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
20122 +       { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
20123  echo "$as_me:   former value:  $ac_old_val" >&2;}
20124 -        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
20125 +       { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
20126  echo "$as_me:   current value: $ac_new_val" >&2;}
20127 -        ac_cache_corrupted=:
20128 +       ac_cache_corrupted=:
20129        fi;;
20130    esac
20131    # Pass precious variables to config.status.
20132 @@ -1567,6 +1600,7 @@
20133  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20134  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20135  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20136 +# OS/2's system install, which has a completely different semantic
20137  # ./install, which can be erroneously created by make from ./install.sh.
20138  echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20139  echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20140 @@ -1583,6 +1617,7 @@
20141  case $as_dir/ in
20142    ./ | .// | /cC/* | \
20143    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20144 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20145    /usr/ucb/* ) ;;
20146    *)
20147      # OSF1 and SCO ODT 3.0 have their own names for install.
20148 @@ -1590,20 +1625,20 @@
20149      # by default.
20150      for ac_prog in ginstall scoinst install; do
20151        for ac_exec_ext in '' $ac_executable_extensions; do
20152 -        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20153 -          if test $ac_prog = install &&
20154 -            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20155 -            # AIX install.  It has an incompatible calling convention.
20156 -            :
20157 -          elif test $ac_prog = install &&
20158 -            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20159 -            # program-specific install script used by HP pwplus--don't use.
20160 -            :
20161 -          else
20162 -            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20163 -            break 3
20164 -          fi
20165 -        fi
20166 +       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20167 +         if test $ac_prog = install &&
20168 +           grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20169 +           # AIX install.  It has an incompatible calling convention.
20170 +           :
20171 +         elif test $ac_prog = install &&
20172 +           grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20173 +           # program-specific install script used by HP pwplus--don't use.
20174 +           :
20175 +         else
20176 +           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20177 +           break 3
20178 +         fi
20179 +       fi
20180        done
20181      done
20182      ;;
20183 @@ -1693,7 +1728,7 @@
20184  
20185  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20186  echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20187 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
20188 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20189  if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20190    echo $ECHO_N "(cached) $ECHO_C" >&6
20191  else
20192 @@ -2163,7 +2198,6 @@
20193    (exit $ac_status); }
20194  
20195  cat >conftest.$ac_ext <<_ACEOF
20196 -#line $LINENO "configure"
20197  /* confdefs.h.  */
20198  _ACEOF
20199  cat confdefs.h >>conftest.$ac_ext
20200 @@ -2183,8 +2217,8 @@
20201  # Try to create an executable without -o first, disregard a.out.
20202  # It will help us diagnose broken compilers, and finding out an intuition
20203  # of exeext.
20204 -echo "$as_me:$LINENO: checking for C compiler default output" >&5
20205 -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
20206 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
20207 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
20208  ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
20209  if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
20210    (eval $ac_link_default) 2>&5
20211 @@ -2204,23 +2238,23 @@
20212    test -f "$ac_file" || continue
20213    case $ac_file in
20214      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
20215 -        ;;
20216 +       ;;
20217      conftest.$ac_ext )
20218 -        # This is the source file.
20219 -        ;;
20220 +       # This is the source file.
20221 +       ;;
20222      [ab].out )
20223 -        # We found the default executable, but exeext='' is most
20224 -        # certainly right.
20225 -        break;;
20226 +       # We found the default executable, but exeext='' is most
20227 +       # certainly right.
20228 +       break;;
20229      *.* )
20230 -        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
20231 -        # FIXME: I believe we export ac_cv_exeext for Libtool,
20232 -        # but it would be cool to find out if it's true.  Does anybody
20233 -        # maintain Libtool? --akim.
20234 -        export ac_cv_exeext
20235 -        break;;
20236 +       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
20237 +       # FIXME: I believe we export ac_cv_exeext for Libtool,
20238 +       # but it would be cool to find out if it's true.  Does anybody
20239 +       # maintain Libtool? --akim.
20240 +       export ac_cv_exeext
20241 +       break;;
20242      * )
20243 -        break;;
20244 +       break;;
20245    esac
20246  done
20247  else
20248 @@ -2294,8 +2328,8 @@
20249    case $ac_file in
20250      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
20251      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
20252 -          export ac_cv_exeext
20253 -          break;;
20254 +         export ac_cv_exeext
20255 +         break;;
20256      * ) break;;
20257    esac
20258  done
20259 @@ -2320,7 +2354,6 @@
20260    echo $ECHO_N "(cached) $ECHO_C" >&6
20261  else
20262    cat >conftest.$ac_ext <<_ACEOF
20263 -#line $LINENO "configure"
20264  /* confdefs.h.  */
20265  _ACEOF
20266  cat confdefs.h >>conftest.$ac_ext
20267 @@ -2371,7 +2404,6 @@
20268    echo $ECHO_N "(cached) $ECHO_C" >&6
20269  else
20270    cat >conftest.$ac_ext <<_ACEOF
20271 -#line $LINENO "configure"
20272  /* confdefs.h.  */
20273  _ACEOF
20274  cat confdefs.h >>conftest.$ac_ext
20275 @@ -2391,11 +2423,20 @@
20276  _ACEOF
20277  rm -f conftest.$ac_objext
20278  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20279 -  (eval $ac_compile) 2>&5
20280 +  (eval $ac_compile) 2>conftest.er1
20281    ac_status=$?
20282 +  grep -v '^ *+' conftest.er1 >conftest.err
20283 +  rm -f conftest.er1
20284 +  cat conftest.err >&5
20285    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286    (exit $ac_status); } &&
20287 -         { ac_try='test -s conftest.$ac_objext'
20288 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20289 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 +  (eval $ac_try) 2>&5
20291 +  ac_status=$?
20292 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 +  (exit $ac_status); }; } &&
20294 +        { ac_try='test -s conftest.$ac_objext'
20295    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296    (eval $ac_try) 2>&5
20297    ac_status=$?
20298 @@ -2408,7 +2449,7 @@
20299  
20300  ac_compiler_gnu=no
20301  fi
20302 -rm -f conftest.$ac_objext conftest.$ac_ext
20303 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20304  ac_cv_c_compiler_gnu=$ac_compiler_gnu
20305  
20306  fi
20307 @@ -2424,7 +2465,6 @@
20308    echo $ECHO_N "(cached) $ECHO_C" >&6
20309  else
20310    cat >conftest.$ac_ext <<_ACEOF
20311 -#line $LINENO "configure"
20312  /* confdefs.h.  */
20313  _ACEOF
20314  cat confdefs.h >>conftest.$ac_ext
20315 @@ -2441,11 +2481,20 @@
20316  _ACEOF
20317  rm -f conftest.$ac_objext
20318  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 -  (eval $ac_compile) 2>&5
20320 +  (eval $ac_compile) 2>conftest.er1
20321    ac_status=$?
20322 +  grep -v '^ *+' conftest.er1 >conftest.err
20323 +  rm -f conftest.er1
20324 +  cat conftest.err >&5
20325    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326    (exit $ac_status); } &&
20327 -         { ac_try='test -s conftest.$ac_objext'
20328 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20329 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 +  (eval $ac_try) 2>&5
20331 +  ac_status=$?
20332 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 +  (exit $ac_status); }; } &&
20334 +        { ac_try='test -s conftest.$ac_objext'
20335    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336    (eval $ac_try) 2>&5
20337    ac_status=$?
20338 @@ -2458,7 +2507,7 @@
20339  
20340  ac_cv_prog_cc_g=no
20341  fi
20342 -rm -f conftest.$ac_objext conftest.$ac_ext
20343 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20344  fi
20345  echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20346  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
20347 @@ -2485,7 +2534,6 @@
20348    ac_cv_prog_cc_stdc=no
20349  ac_save_CC=$CC
20350  cat >conftest.$ac_ext <<_ACEOF
20351 -#line $LINENO "configure"
20352  /* confdefs.h.  */
20353  _ACEOF
20354  cat confdefs.h >>conftest.$ac_ext
20355 @@ -2513,6 +2561,16 @@
20356    va_end (v);
20357    return s;
20358  }
20359 +
20360 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20361 +   function prototypes and stuff, but not '\xHH' hex character constants.
20362 +   These don't provoke an error unfortunately, instead are silently treated
20363 +   as 'x'.  The following induces an error, until -std1 is added to get
20364 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20365 +   array size at least.  It's necessary to write '\x00'==0 to get something
20366 +   that's true only with -std1.  */
20367 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20368 +
20369  int test (int i, double x);
20370  struct s1 {int (*f) (int a);};
20371  struct s2 {int (*f) (double a);};
20372 @@ -2539,11 +2597,20 @@
20373    CC="$ac_save_CC $ac_arg"
20374    rm -f conftest.$ac_objext
20375  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20376 -  (eval $ac_compile) 2>&5
20377 +  (eval $ac_compile) 2>conftest.er1
20378    ac_status=$?
20379 +  grep -v '^ *+' conftest.er1 >conftest.err
20380 +  rm -f conftest.er1
20381 +  cat conftest.err >&5
20382    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383    (exit $ac_status); } &&
20384 -         { ac_try='test -s conftest.$ac_objext'
20385 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20386 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 +  (eval $ac_try) 2>&5
20388 +  ac_status=$?
20389 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 +  (exit $ac_status); }; } &&
20391 +        { ac_try='test -s conftest.$ac_objext'
20392    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393    (eval $ac_try) 2>&5
20394    ac_status=$?
20395 @@ -2556,7 +2623,7 @@
20396  sed 's/^/| /' conftest.$ac_ext >&5
20397  
20398  fi
20399 -rm -f conftest.$ac_objext
20400 +rm -f conftest.err conftest.$ac_objext
20401  done
20402  rm -f conftest.$ac_ext conftest.$ac_objext
20403  CC=$ac_save_CC
20404 @@ -2584,11 +2651,20 @@
20405  _ACEOF
20406  rm -f conftest.$ac_objext
20407  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20408 -  (eval $ac_compile) 2>&5
20409 +  (eval $ac_compile) 2>conftest.er1
20410    ac_status=$?
20411 +  grep -v '^ *+' conftest.er1 >conftest.err
20412 +  rm -f conftest.er1
20413 +  cat conftest.err >&5
20414    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415    (exit $ac_status); } &&
20416 -         { ac_try='test -s conftest.$ac_objext'
20417 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20418 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 +  (eval $ac_try) 2>&5
20420 +  ac_status=$?
20421 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 +  (exit $ac_status); }; } &&
20423 +        { ac_try='test -s conftest.$ac_objext'
20424    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425    (eval $ac_try) 2>&5
20426    ac_status=$?
20427 @@ -2603,7 +2679,6 @@
20428     'void exit (int);'
20429  do
20430    cat >conftest.$ac_ext <<_ACEOF
20431 -#line $LINENO "configure"
20432  /* confdefs.h.  */
20433  _ACEOF
20434  cat confdefs.h >>conftest.$ac_ext
20435 @@ -2621,11 +2696,20 @@
20436  _ACEOF
20437  rm -f conftest.$ac_objext
20438  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20439 -  (eval $ac_compile) 2>&5
20440 +  (eval $ac_compile) 2>conftest.er1
20441    ac_status=$?
20442 +  grep -v '^ *+' conftest.er1 >conftest.err
20443 +  rm -f conftest.er1
20444 +  cat conftest.err >&5
20445    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446    (exit $ac_status); } &&
20447 -         { ac_try='test -s conftest.$ac_objext'
20448 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20449 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 +  (eval $ac_try) 2>&5
20451 +  ac_status=$?
20452 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 +  (exit $ac_status); }; } &&
20454 +        { ac_try='test -s conftest.$ac_objext'
20455    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456    (eval $ac_try) 2>&5
20457    ac_status=$?
20458 @@ -2638,9 +2722,8 @@
20459  
20460  continue
20461  fi
20462 -rm -f conftest.$ac_objext conftest.$ac_ext
20463 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20464    cat >conftest.$ac_ext <<_ACEOF
20465 -#line $LINENO "configure"
20466  /* confdefs.h.  */
20467  _ACEOF
20468  cat confdefs.h >>conftest.$ac_ext
20469 @@ -2657,11 +2740,20 @@
20470  _ACEOF
20471  rm -f conftest.$ac_objext
20472  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20473 -  (eval $ac_compile) 2>&5
20474 +  (eval $ac_compile) 2>conftest.er1
20475    ac_status=$?
20476 +  grep -v '^ *+' conftest.er1 >conftest.err
20477 +  rm -f conftest.er1
20478 +  cat conftest.err >&5
20479    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480    (exit $ac_status); } &&
20481 -         { ac_try='test -s conftest.$ac_objext'
20482 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20483 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 +  (eval $ac_try) 2>&5
20485 +  ac_status=$?
20486 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 +  (exit $ac_status); }; } &&
20488 +        { ac_try='test -s conftest.$ac_objext'
20489    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490    (eval $ac_try) 2>&5
20491    ac_status=$?
20492 @@ -2673,7 +2765,7 @@
20493  sed 's/^/| /' conftest.$ac_ext >&5
20494  
20495  fi
20496 -rm -f conftest.$ac_objext conftest.$ac_ext
20497 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20498  done
20499  rm -f conftest*
20500  if test -n "$ac_declaration"; then
20501 @@ -2687,7 +2779,7 @@
20502  sed 's/^/| /' conftest.$ac_ext >&5
20503  
20504  fi
20505 -rm -f conftest.$ac_objext conftest.$ac_ext
20506 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20507  ac_ext=c
20508  ac_cpp='$CPP $CPPFLAGS'
20509  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20510 @@ -2788,7 +2880,6 @@
20511    ac_check_lib_save_LIBS=$LIBS
20512  LIBS="-lfl  $LIBS"
20513  cat >conftest.$ac_ext <<_ACEOF
20514 -#line $LINENO "configure"
20515  /* confdefs.h.  */
20516  _ACEOF
20517  cat confdefs.h >>conftest.$ac_ext
20518 @@ -2812,11 +2903,20 @@
20519  _ACEOF
20520  rm -f conftest.$ac_objext conftest$ac_exeext
20521  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20522 -  (eval $ac_link) 2>&5
20523 +  (eval $ac_link) 2>conftest.er1
20524    ac_status=$?
20525 +  grep -v '^ *+' conftest.er1 >conftest.err
20526 +  rm -f conftest.er1
20527 +  cat conftest.err >&5
20528    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529    (exit $ac_status); } &&
20530 -         { ac_try='test -s conftest$ac_exeext'
20531 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20532 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 +  (eval $ac_try) 2>&5
20534 +  ac_status=$?
20535 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 +  (exit $ac_status); }; } &&
20537 +        { ac_try='test -s conftest$ac_exeext'
20538    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539    (eval $ac_try) 2>&5
20540    ac_status=$?
20541 @@ -2829,7 +2929,8 @@
20542  
20543  ac_cv_lib_fl_yywrap=no
20544  fi
20545 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20546 +rm -f conftest.err conftest.$ac_objext \
20547 +      conftest$ac_exeext conftest.$ac_ext
20548  LIBS=$ac_check_lib_save_LIBS
20549  fi
20550  echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
20551 @@ -2845,7 +2946,6 @@
20552    ac_check_lib_save_LIBS=$LIBS
20553  LIBS="-ll  $LIBS"
20554  cat >conftest.$ac_ext <<_ACEOF
20555 -#line $LINENO "configure"
20556  /* confdefs.h.  */
20557  _ACEOF
20558  cat confdefs.h >>conftest.$ac_ext
20559 @@ -2869,11 +2969,20 @@
20560  _ACEOF
20561  rm -f conftest.$ac_objext conftest$ac_exeext
20562  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20563 -  (eval $ac_link) 2>&5
20564 +  (eval $ac_link) 2>conftest.er1
20565    ac_status=$?
20566 +  grep -v '^ *+' conftest.er1 >conftest.err
20567 +  rm -f conftest.er1
20568 +  cat conftest.err >&5
20569    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570    (exit $ac_status); } &&
20571 -         { ac_try='test -s conftest$ac_exeext'
20572 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20573 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 +  (eval $ac_try) 2>&5
20575 +  ac_status=$?
20576 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 +  (exit $ac_status); }; } &&
20578 +        { ac_try='test -s conftest$ac_exeext'
20579    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580    (eval $ac_try) 2>&5
20581    ac_status=$?
20582 @@ -2886,7 +2995,8 @@
20583  
20584  ac_cv_lib_l_yywrap=no
20585  fi
20586 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20587 +rm -f conftest.err conftest.$ac_objext \
20588 +      conftest$ac_exeext conftest.$ac_ext
20589  LIBS=$ac_check_lib_save_LIBS
20590  fi
20591  echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
20592 @@ -2948,11 +3058,20 @@
20593  _ACEOF
20594  rm -f conftest.$ac_objext conftest$ac_exeext
20595  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20596 -  (eval $ac_link) 2>&5
20597 +  (eval $ac_link) 2>conftest.er1
20598    ac_status=$?
20599 +  grep -v '^ *+' conftest.er1 >conftest.err
20600 +  rm -f conftest.er1
20601 +  cat conftest.err >&5
20602    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603    (exit $ac_status); } &&
20604 -         { ac_try='test -s conftest$ac_exeext'
20605 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20606 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607 +  (eval $ac_try) 2>&5
20608 +  ac_status=$?
20609 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 +  (exit $ac_status); }; } &&
20611 +        { ac_try='test -s conftest$ac_exeext'
20612    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613    (eval $ac_try) 2>&5
20614    ac_status=$?
20615 @@ -2964,7 +3083,8 @@
20616  sed 's/^/| /' conftest.$ac_ext >&5
20617  
20618  fi
20619 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20620 +rm -f conftest.err conftest.$ac_objext \
20621 +      conftest$ac_exeext conftest.$ac_ext
20622  LIBS=$ac_save_LIBS
20623  rm -f "${LEX_OUTPUT_ROOT}.c"
20624  
20625 @@ -3033,6 +3153,7 @@
20626  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20627  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20628  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20629 +# OS/2's system install, which has a completely different semantic
20630  # ./install, which can be erroneously created by make from ./install.sh.
20631  echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20632  echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20633 @@ -3049,6 +3170,7 @@
20634  case $as_dir/ in
20635    ./ | .// | /cC/* | \
20636    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20637 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20638    /usr/ucb/* ) ;;
20639    *)
20640      # OSF1 and SCO ODT 3.0 have their own names for install.
20641 @@ -3056,20 +3178,20 @@
20642      # by default.
20643      for ac_prog in ginstall scoinst install; do
20644        for ac_exec_ext in '' $ac_executable_extensions; do
20645 -        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20646 -          if test $ac_prog = install &&
20647 -            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20648 -            # AIX install.  It has an incompatible calling convention.
20649 -            :
20650 -          elif test $ac_prog = install &&
20651 -            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20652 -            # program-specific install script used by HP pwplus--don't use.
20653 -            :
20654 -          else
20655 -            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20656 -            break 3
20657 -          fi
20658 -        fi
20659 +       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20660 +         if test $ac_prog = install &&
20661 +           grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20662 +           # AIX install.  It has an incompatible calling convention.
20663 +           :
20664 +         elif test $ac_prog = install &&
20665 +           grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20666 +           # program-specific install script used by HP pwplus--don't use.
20667 +           :
20668 +         else
20669 +           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20670 +           break 3
20671 +         fi
20672 +       fi
20673        done
20674      done
20675      ;;
20676 @@ -3842,7 +3964,6 @@
20677    # On the NeXT, cc -E runs the code through the compiler's parser,
20678    # not just through cpp. "Syntax error" is here to catch this case.
20679    cat >conftest.$ac_ext <<_ACEOF
20680 -#line $LINENO "configure"
20681  /* confdefs.h.  */
20682  _ACEOF
20683  cat confdefs.h >>conftest.$ac_ext
20684 @@ -3853,7 +3974,7 @@
20685  #else
20686  # include <assert.h>
20687  #endif
20688 -                     Syntax error
20689 +                    Syntax error
20690  _ACEOF
20691  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20692    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20693 @@ -3865,6 +3986,7 @@
20694    (exit $ac_status); } >/dev/null; then
20695    if test -s conftest.err; then
20696      ac_cpp_err=$ac_c_preproc_warn_flag
20697 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20698    else
20699      ac_cpp_err=
20700    fi
20701 @@ -3885,7 +4007,6 @@
20702    # OK, works on sane cases.  Now check whether non-existent headers
20703    # can be detected and how.
20704    cat >conftest.$ac_ext <<_ACEOF
20705 -#line $LINENO "configure"
20706  /* confdefs.h.  */
20707  _ACEOF
20708  cat confdefs.h >>conftest.$ac_ext
20709 @@ -3903,6 +4024,7 @@
20710    (exit $ac_status); } >/dev/null; then
20711    if test -s conftest.err; then
20712      ac_cpp_err=$ac_c_preproc_warn_flag
20713 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20714    else
20715      ac_cpp_err=
20716    fi
20717 @@ -3949,7 +4071,6 @@
20718    # On the NeXT, cc -E runs the code through the compiler's parser,
20719    # not just through cpp. "Syntax error" is here to catch this case.
20720    cat >conftest.$ac_ext <<_ACEOF
20721 -#line $LINENO "configure"
20722  /* confdefs.h.  */
20723  _ACEOF
20724  cat confdefs.h >>conftest.$ac_ext
20725 @@ -3960,7 +4081,7 @@
20726  #else
20727  # include <assert.h>
20728  #endif
20729 -                     Syntax error
20730 +                    Syntax error
20731  _ACEOF
20732  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20733    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20734 @@ -3972,6 +4093,7 @@
20735    (exit $ac_status); } >/dev/null; then
20736    if test -s conftest.err; then
20737      ac_cpp_err=$ac_c_preproc_warn_flag
20738 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20739    else
20740      ac_cpp_err=
20741    fi
20742 @@ -3992,7 +4114,6 @@
20743    # OK, works on sane cases.  Now check whether non-existent headers
20744    # can be detected and how.
20745    cat >conftest.$ac_ext <<_ACEOF
20746 -#line $LINENO "configure"
20747  /* confdefs.h.  */
20748  _ACEOF
20749  cat confdefs.h >>conftest.$ac_ext
20750 @@ -4010,6 +4131,7 @@
20751    (exit $ac_status); } >/dev/null; then
20752    if test -s conftest.err; then
20753      ac_cpp_err=$ac_c_preproc_warn_flag
20754 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20755    else
20756      ac_cpp_err=
20757    fi
20758 @@ -4070,7 +4192,6 @@
20759    echo $ECHO_N "(cached) $ECHO_C" >&6
20760  else
20761    cat >conftest.$ac_ext <<_ACEOF
20762 -#line $LINENO "configure"
20763  /* confdefs.h.  */
20764  _ACEOF
20765  cat confdefs.h >>conftest.$ac_ext
20766 @@ -4091,11 +4212,20 @@
20767  _ACEOF
20768  rm -f conftest.$ac_objext
20769  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20770 -  (eval $ac_compile) 2>&5
20771 +  (eval $ac_compile) 2>conftest.er1
20772    ac_status=$?
20773 +  grep -v '^ *+' conftest.er1 >conftest.err
20774 +  rm -f conftest.er1
20775 +  cat conftest.err >&5
20776    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777    (exit $ac_status); } &&
20778 -         { ac_try='test -s conftest.$ac_objext'
20779 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20780 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 +  (eval $ac_try) 2>&5
20782 +  ac_status=$?
20783 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 +  (exit $ac_status); }; } &&
20785 +        { ac_try='test -s conftest.$ac_objext'
20786    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787    (eval $ac_try) 2>&5
20788    ac_status=$?
20789 @@ -4108,12 +4238,11 @@
20790  
20791  ac_cv_header_stdc=no
20792  fi
20793 -rm -f conftest.$ac_objext conftest.$ac_ext
20794 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20795  
20796  if test $ac_cv_header_stdc = yes; then
20797    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20798    cat >conftest.$ac_ext <<_ACEOF
20799 -#line $LINENO "configure"
20800  /* confdefs.h.  */
20801  _ACEOF
20802  cat confdefs.h >>conftest.$ac_ext
20803 @@ -4135,7 +4264,6 @@
20804  if test $ac_cv_header_stdc = yes; then
20805    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20806    cat >conftest.$ac_ext <<_ACEOF
20807 -#line $LINENO "configure"
20808  /* confdefs.h.  */
20809  _ACEOF
20810  cat confdefs.h >>conftest.$ac_ext
20811 @@ -4160,7 +4288,6 @@
20812    :
20813  else
20814    cat >conftest.$ac_ext <<_ACEOF
20815 -#line $LINENO "configure"
20816  /* confdefs.h.  */
20817  _ACEOF
20818  cat confdefs.h >>conftest.$ac_ext
20819 @@ -4172,9 +4299,9 @@
20820  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20821  #else
20822  # define ISLOWER(c) \
20823 -                   (('a' <= (c) && (c) <= 'i') \
20824 -                     || ('j' <= (c) && (c) <= 'r') \
20825 -                     || ('s' <= (c) && (c) <= 'z'))
20826 +                  (('a' <= (c) && (c) <= 'i') \
20827 +                    || ('j' <= (c) && (c) <= 'r') \
20828 +                    || ('s' <= (c) && (c) <= 'z'))
20829  # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20830  #endif
20831  
20832 @@ -4185,7 +4312,7 @@
20833    int i;
20834    for (i = 0; i < 256; i++)
20835      if (XOR (islower (i), ISLOWER (i))
20836 -        || toupper (i) != TOUPPER (i))
20837 +       || toupper (i) != TOUPPER (i))
20838        exit(2);
20839    exit (0);
20840  }
20841 @@ -4235,7 +4362,7 @@
20842  
20843  
20844  for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20845 -                  inttypes.h stdint.h unistd.h
20846 +                 inttypes.h stdint.h unistd.h
20847  do
20848  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20849  echo "$as_me:$LINENO: checking for $ac_header" >&5
20850 @@ -4244,7 +4371,6 @@
20851    echo $ECHO_N "(cached) $ECHO_C" >&6
20852  else
20853    cat >conftest.$ac_ext <<_ACEOF
20854 -#line $LINENO "configure"
20855  /* confdefs.h.  */
20856  _ACEOF
20857  cat confdefs.h >>conftest.$ac_ext
20858 @@ -4256,11 +4382,20 @@
20859  _ACEOF
20860  rm -f conftest.$ac_objext
20861  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 -  (eval $ac_compile) 2>&5
20863 +  (eval $ac_compile) 2>conftest.er1
20864    ac_status=$?
20865 +  grep -v '^ *+' conftest.er1 >conftest.err
20866 +  rm -f conftest.er1
20867 +  cat conftest.err >&5
20868    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869    (exit $ac_status); } &&
20870 -         { ac_try='test -s conftest.$ac_objext'
20871 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20872 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 +  (eval $ac_try) 2>&5
20874 +  ac_status=$?
20875 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 +  (exit $ac_status); }; } &&
20877 +        { ac_try='test -s conftest.$ac_objext'
20878    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879    (eval $ac_try) 2>&5
20880    ac_status=$?
20881 @@ -4273,7 +4408,7 @@
20882  
20883  eval "$as_ac_Header=no"
20884  fi
20885 -rm -f conftest.$ac_objext conftest.$ac_ext
20886 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20887  fi
20888  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20889  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20890 @@ -4304,7 +4439,6 @@
20891  echo "$as_me:$LINENO: checking $ac_header usability" >&5
20892  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20893  cat >conftest.$ac_ext <<_ACEOF
20894 -#line $LINENO "configure"
20895  /* confdefs.h.  */
20896  _ACEOF
20897  cat confdefs.h >>conftest.$ac_ext
20898 @@ -4315,11 +4449,20 @@
20899  _ACEOF
20900  rm -f conftest.$ac_objext
20901  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20902 -  (eval $ac_compile) 2>&5
20903 +  (eval $ac_compile) 2>conftest.er1
20904    ac_status=$?
20905 +  grep -v '^ *+' conftest.er1 >conftest.err
20906 +  rm -f conftest.er1
20907 +  cat conftest.err >&5
20908    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909    (exit $ac_status); } &&
20910 -         { ac_try='test -s conftest.$ac_objext'
20911 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20912 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 +  (eval $ac_try) 2>&5
20914 +  ac_status=$?
20915 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 +  (exit $ac_status); }; } &&
20917 +        { ac_try='test -s conftest.$ac_objext'
20918    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919    (eval $ac_try) 2>&5
20920    ac_status=$?
20921 @@ -4332,7 +4475,7 @@
20922  
20923  ac_header_compiler=no
20924  fi
20925 -rm -f conftest.$ac_objext conftest.$ac_ext
20926 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20927  echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20928  echo "${ECHO_T}$ac_header_compiler" >&6
20929  
20930 @@ -4340,7 +4483,6 @@
20931  echo "$as_me:$LINENO: checking $ac_header presence" >&5
20932  echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20933  cat >conftest.$ac_ext <<_ACEOF
20934 -#line $LINENO "configure"
20935  /* confdefs.h.  */
20936  _ACEOF
20937  cat confdefs.h >>conftest.$ac_ext
20938 @@ -4358,6 +4500,7 @@
20939    (exit $ac_status); } >/dev/null; then
20940    if test -s conftest.err; then
20941      ac_cpp_err=$ac_c_preproc_warn_flag
20942 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20943    else
20944      ac_cpp_err=
20945    fi
20946 @@ -4377,33 +4520,32 @@
20947  echo "${ECHO_T}$ac_header_preproc" >&6
20948  
20949  # So?  What about this header?
20950 -case $ac_header_compiler:$ac_header_preproc in
20951 -  yes:no )
20952 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20953 +  yes:no: )
20954      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20955  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20956 -    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20957 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20958 -    (
20959 -      cat <<\_ASBOX
20960 -## ------------------------------------ ##
20961 -## Report this to bug-autoconf@gnu.org. ##
20962 -## ------------------------------------ ##
20963 -_ASBOX
20964 -    ) |
20965 -      sed "s/^/$as_me: WARNING:     /" >&2
20966 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20967 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20968 +    ac_header_preproc=yes
20969      ;;
20970 -  no:yes )
20971 +  no:yes:* )
20972      { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20973  echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20974 -    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20975 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20976 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20977 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20978 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20979 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20980 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20981 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20982      { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20983  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20984 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20985 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20986      (
20987        cat <<\_ASBOX
20988 -## ------------------------------------ ##
20989 -## Report this to bug-autoconf@gnu.org. ##
20990 -## ------------------------------------ ##
20991 +## ------------------------------------------ ##
20992 +## Report this to the AC_PACKAGE_NAME lists.  ##
20993 +## ------------------------------------------ ##
20994  _ASBOX
20995      ) |
20996        sed "s/^/$as_me: WARNING:     /" >&2
20997 @@ -4414,7 +4556,7 @@
20998  if eval "test \"\${$as_ac_Header+set}\" = set"; then
20999    echo $ECHO_N "(cached) $ECHO_C" >&6
21000  else
21001 -  eval "$as_ac_Header=$ac_header_preproc"
21002 +  eval "$as_ac_Header=\$ac_header_preproc"
21003  fi
21004  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21005  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21006 @@ -4749,7 +4891,7 @@
21007  case $host in
21008  *-*-irix6*)
21009    # Find out which ABI we are using.
21010 -  echo '#line 4752 "configure"' > conftest.$ac_ext
21011 +  echo '#line 4894 "configure"' > conftest.$ac_ext
21012    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21013    (eval $ac_compile) 2>&5
21014    ac_status=$?
21015 @@ -4788,7 +4930,6 @@
21016  ac_compiler_gnu=$ac_cv_c_compiler_gnu
21017  
21018       cat >conftest.$ac_ext <<_ACEOF
21019 -#line $LINENO "configure"
21020  /* confdefs.h.  */
21021  _ACEOF
21022  cat confdefs.h >>conftest.$ac_ext
21023 @@ -4805,11 +4946,20 @@
21024  _ACEOF
21025  rm -f conftest.$ac_objext conftest$ac_exeext
21026  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21027 -  (eval $ac_link) 2>&5
21028 +  (eval $ac_link) 2>conftest.er1
21029    ac_status=$?
21030 +  grep -v '^ *+' conftest.er1 >conftest.err
21031 +  rm -f conftest.er1
21032 +  cat conftest.err >&5
21033    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034    (exit $ac_status); } &&
21035 -         { ac_try='test -s conftest$ac_exeext'
21036 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21037 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 +  (eval $ac_try) 2>&5
21039 +  ac_status=$?
21040 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 +  (exit $ac_status); }; } &&
21042 +        { ac_try='test -s conftest$ac_exeext'
21043    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044    (eval $ac_try) 2>&5
21045    ac_status=$?
21046 @@ -4822,7 +4972,8 @@
21047  
21048  lt_cv_cc_needs_belf=no
21049  fi
21050 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21051 +rm -f conftest.err conftest.$ac_objext \
21052 +      conftest$ac_exeext conftest.$ac_ext
21053       ac_ext=c
21054  ac_cpp='$CPP $CPPFLAGS'
21055  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21056 @@ -5117,7 +5268,6 @@
21057        save_CFLAGS="$CFLAGS"
21058      CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
21059      cat >conftest.$ac_ext <<_ACEOF
21060 -#line $LINENO "configure"
21061  /* confdefs.h.  */
21062  _ACEOF
21063  cat confdefs.h >>conftest.$ac_ext
21064 @@ -5134,11 +5284,20 @@
21065  _ACEOF
21066  rm -f conftest.$ac_objext
21067  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21068 -  (eval $ac_compile) 2>&5
21069 +  (eval $ac_compile) 2>conftest.er1
21070    ac_status=$?
21071 +  grep -v '^ *+' conftest.er1 >conftest.err
21072 +  rm -f conftest.er1
21073 +  cat conftest.err >&5
21074    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075    (exit $ac_status); } &&
21076 -         { ac_try='test -s conftest.$ac_objext'
21077 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21078 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 +  (eval $ac_try) 2>&5
21080 +  ac_status=$?
21081 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 +  (exit $ac_status); }; } &&
21083 +        { ac_try='test -s conftest.$ac_objext'
21084    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085    (eval $ac_try) 2>&5
21086    ac_status=$?
21087 @@ -5167,7 +5326,7 @@
21088        lt_cv_prog_cc_pic_works=no
21089  
21090  fi
21091 -rm -f conftest.$ac_objext conftest.$ac_ext
21092 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21093      CFLAGS="$save_CFLAGS"
21094  
21095  fi
21096 @@ -5205,7 +5364,6 @@
21097    save_LDFLAGS="$LDFLAGS"
21098    LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
21099    cat >conftest.$ac_ext <<_ACEOF
21100 -#line $LINENO "configure"
21101  /* confdefs.h.  */
21102  _ACEOF
21103  cat confdefs.h >>conftest.$ac_ext
21104 @@ -5222,11 +5380,20 @@
21105  _ACEOF
21106  rm -f conftest.$ac_objext conftest$ac_exeext
21107  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21108 -  (eval $ac_link) 2>&5
21109 +  (eval $ac_link) 2>conftest.er1
21110    ac_status=$?
21111 +  grep -v '^ *+' conftest.er1 >conftest.err
21112 +  rm -f conftest.er1
21113 +  cat conftest.err >&5
21114    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115    (exit $ac_status); } &&
21116 -         { ac_try='test -s conftest$ac_exeext'
21117 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21118 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 +  (eval $ac_try) 2>&5
21120 +  ac_status=$?
21121 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 +  (exit $ac_status); }; } &&
21123 +        { ac_try='test -s conftest$ac_exeext'
21124    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125    (eval $ac_try) 2>&5
21126    ac_status=$?
21127 @@ -5238,7 +5405,8 @@
21128  sed 's/^/| /' conftest.$ac_ext >&5
21129  
21130  fi
21131 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21132 +rm -f conftest.err conftest.$ac_objext \
21133 +      conftest$ac_exeext conftest.$ac_ext
21134    LDFLAGS="$save_LDFLAGS"
21135  
21136  fi
21137 @@ -5278,7 +5446,7 @@
21138  save_CFLAGS="$CFLAGS"
21139  CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
21140  compiler_c_o=no
21141 -if { (eval echo configure:5281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
21142 +if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
21143    # The compiler can only warn and ignore the option if not recognized
21144    # So say no if there are warnings
21145    if test -s out/conftest.err; then
21146 @@ -5319,7 +5487,6 @@
21147    save_objext="$ac_objext"
21148    ac_objext=lo
21149    cat >conftest.$ac_ext <<_ACEOF
21150 -#line $LINENO "configure"
21151  /* confdefs.h.  */
21152  _ACEOF
21153  cat confdefs.h >>conftest.$ac_ext
21154 @@ -5336,11 +5503,20 @@
21155  _ACEOF
21156  rm -f conftest.$ac_objext
21157  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21158 -  (eval $ac_compile) 2>&5
21159 +  (eval $ac_compile) 2>conftest.er1
21160    ac_status=$?
21161 +  grep -v '^ *+' conftest.er1 >conftest.err
21162 +  rm -f conftest.er1
21163 +  cat conftest.err >&5
21164    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165    (exit $ac_status); } &&
21166 -         { ac_try='test -s conftest.$ac_objext'
21167 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21168 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 +  (eval $ac_try) 2>&5
21170 +  ac_status=$?
21171 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 +  (exit $ac_status); }; } &&
21173 +        { ac_try='test -s conftest.$ac_objext'
21174    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175    (eval $ac_try) 2>&5
21176    ac_status=$?
21177 @@ -5359,7 +5535,7 @@
21178  sed 's/^/| /' conftest.$ac_ext >&5
21179  
21180  fi
21181 -rm -f conftest.$ac_objext conftest.$ac_ext
21182 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21183    ac_objext="$save_objext"
21184    CFLAGS="$save_CFLAGS"
21185  
21186 @@ -5404,7 +5580,6 @@
21187    CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
21188    compiler_rtti_exceptions=no
21189    cat >conftest.$ac_ext <<_ACEOF
21190 -#line $LINENO "configure"
21191  /* confdefs.h.  */
21192  _ACEOF
21193  cat confdefs.h >>conftest.$ac_ext
21194 @@ -5421,11 +5596,20 @@
21195  _ACEOF
21196  rm -f conftest.$ac_objext
21197  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21198 -  (eval $ac_compile) 2>&5
21199 +  (eval $ac_compile) 2>conftest.er1
21200    ac_status=$?
21201 +  grep -v '^ *+' conftest.er1 >conftest.err
21202 +  rm -f conftest.er1
21203 +  cat conftest.err >&5
21204    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205    (exit $ac_status); } &&
21206 -         { ac_try='test -s conftest.$ac_objext'
21207 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21208 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 +  (eval $ac_try) 2>&5
21210 +  ac_status=$?
21211 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 +  (exit $ac_status); }; } &&
21213 +        { ac_try='test -s conftest.$ac_objext'
21214    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215    (eval $ac_try) 2>&5
21216    ac_status=$?
21217 @@ -5444,7 +5628,7 @@
21218  sed 's/^/| /' conftest.$ac_ext >&5
21219  
21220  fi
21221 -rm -f conftest.$ac_objext conftest.$ac_ext
21222 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21223    CFLAGS="$save_CFLAGS"
21224    echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
21225  echo "${ECHO_T}$compiler_rtti_exceptions" >&6
21226 @@ -6704,21 +6888,28 @@
21227    echo $ECHO_N "(cached) $ECHO_C" >&6
21228  else
21229    cat >conftest.$ac_ext <<_ACEOF
21230 -#line $LINENO "configure"
21231  /* confdefs.h.  */
21232  _ACEOF
21233  cat confdefs.h >>conftest.$ac_ext
21234  cat >>conftest.$ac_ext <<_ACEOF
21235  /* end confdefs.h.  */
21236 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21237 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21238 +#define shl_load innocuous_shl_load
21239 +
21240  /* System header to define __stub macros and hopefully few prototypes,
21241      which can conflict with char shl_load (); below.
21242      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21243      <limits.h> exists even on freestanding compilers.  */
21244 +
21245  #ifdef __STDC__
21246  # include <limits.h>
21247  #else
21248  # include <assert.h>
21249  #endif
21250 +
21251 +#undef shl_load
21252 +
21253  /* Override any gcc2 internal prototype to avoid an error.  */
21254  #ifdef __cplusplus
21255  extern "C"
21256 @@ -6749,11 +6940,20 @@
21257  _ACEOF
21258  rm -f conftest.$ac_objext conftest$ac_exeext
21259  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21260 -  (eval $ac_link) 2>&5
21261 +  (eval $ac_link) 2>conftest.er1
21262    ac_status=$?
21263 +  grep -v '^ *+' conftest.er1 >conftest.err
21264 +  rm -f conftest.er1
21265 +  cat conftest.err >&5
21266    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267    (exit $ac_status); } &&
21268 -         { ac_try='test -s conftest$ac_exeext'
21269 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21270 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 +  (eval $ac_try) 2>&5
21272 +  ac_status=$?
21273 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 +  (exit $ac_status); }; } &&
21275 +        { ac_try='test -s conftest$ac_exeext'
21276    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277    (eval $ac_try) 2>&5
21278    ac_status=$?
21279 @@ -6766,7 +6966,8 @@
21280  
21281  ac_cv_func_shl_load=no
21282  fi
21283 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21284 +rm -f conftest.err conftest.$ac_objext \
21285 +      conftest$ac_exeext conftest.$ac_ext
21286  fi
21287  echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21288  echo "${ECHO_T}$ac_cv_func_shl_load" >&6
21289 @@ -6781,7 +6982,6 @@
21290    ac_check_lib_save_LIBS=$LIBS
21291  LIBS="-ldld  $LIBS"
21292  cat >conftest.$ac_ext <<_ACEOF
21293 -#line $LINENO "configure"
21294  /* confdefs.h.  */
21295  _ACEOF
21296  cat confdefs.h >>conftest.$ac_ext
21297 @@ -6805,11 +7005,20 @@
21298  _ACEOF
21299  rm -f conftest.$ac_objext conftest$ac_exeext
21300  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21301 -  (eval $ac_link) 2>&5
21302 +  (eval $ac_link) 2>conftest.er1
21303    ac_status=$?
21304 +  grep -v '^ *+' conftest.er1 >conftest.err
21305 +  rm -f conftest.er1
21306 +  cat conftest.err >&5
21307    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308    (exit $ac_status); } &&
21309 -         { ac_try='test -s conftest$ac_exeext'
21310 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21311 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 +  (eval $ac_try) 2>&5
21313 +  ac_status=$?
21314 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 +  (exit $ac_status); }; } &&
21316 +        { ac_try='test -s conftest$ac_exeext'
21317    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318    (eval $ac_try) 2>&5
21319    ac_status=$?
21320 @@ -6822,7 +7031,8 @@
21321  
21322  ac_cv_lib_dld_shl_load=no
21323  fi
21324 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21325 +rm -f conftest.err conftest.$ac_objext \
21326 +      conftest$ac_exeext conftest.$ac_ext
21327  LIBS=$ac_check_lib_save_LIBS
21328  fi
21329  echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21330 @@ -6836,21 +7046,28 @@
21331    echo $ECHO_N "(cached) $ECHO_C" >&6
21332  else
21333    cat >conftest.$ac_ext <<_ACEOF
21334 -#line $LINENO "configure"
21335  /* confdefs.h.  */
21336  _ACEOF
21337  cat confdefs.h >>conftest.$ac_ext
21338  cat >>conftest.$ac_ext <<_ACEOF
21339  /* end confdefs.h.  */
21340 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21341 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21342 +#define dlopen innocuous_dlopen
21343 +
21344  /* System header to define __stub macros and hopefully few prototypes,
21345      which can conflict with char dlopen (); below.
21346      Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21347      <limits.h> exists even on freestanding compilers.  */
21348 +
21349  #ifdef __STDC__
21350  # include <limits.h>
21351  #else
21352  # include <assert.h>
21353  #endif
21354 +
21355 +#undef dlopen
21356 +
21357  /* Override any gcc2 internal prototype to avoid an error.  */
21358  #ifdef __cplusplus
21359  extern "C"
21360 @@ -6881,11 +7098,20 @@
21361  _ACEOF
21362  rm -f conftest.$ac_objext conftest$ac_exeext
21363  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21364 -  (eval $ac_link) 2>&5
21365 +  (eval $ac_link) 2>conftest.er1
21366    ac_status=$?
21367 +  grep -v '^ *+' conftest.er1 >conftest.err
21368 +  rm -f conftest.er1
21369 +  cat conftest.err >&5
21370    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371    (exit $ac_status); } &&
21372 -         { ac_try='test -s conftest$ac_exeext'
21373 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21374 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 +  (eval $ac_try) 2>&5
21376 +  ac_status=$?
21377 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 +  (exit $ac_status); }; } &&
21379 +        { ac_try='test -s conftest$ac_exeext'
21380    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381    (eval $ac_try) 2>&5
21382    ac_status=$?
21383 @@ -6898,7 +7124,8 @@
21384  
21385  ac_cv_func_dlopen=no
21386  fi
21387 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21388 +rm -f conftest.err conftest.$ac_objext \
21389 +      conftest$ac_exeext conftest.$ac_ext
21390  fi
21391  echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21392  echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21393 @@ -6913,7 +7140,6 @@
21394    ac_check_lib_save_LIBS=$LIBS
21395  LIBS="-ldl  $LIBS"
21396  cat >conftest.$ac_ext <<_ACEOF
21397 -#line $LINENO "configure"
21398  /* confdefs.h.  */
21399  _ACEOF
21400  cat confdefs.h >>conftest.$ac_ext
21401 @@ -6937,11 +7163,20 @@
21402  _ACEOF
21403  rm -f conftest.$ac_objext conftest$ac_exeext
21404  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21405 -  (eval $ac_link) 2>&5
21406 +  (eval $ac_link) 2>conftest.er1
21407    ac_status=$?
21408 +  grep -v '^ *+' conftest.er1 >conftest.err
21409 +  rm -f conftest.er1
21410 +  cat conftest.err >&5
21411    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412    (exit $ac_status); } &&
21413 -         { ac_try='test -s conftest$ac_exeext'
21414 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21415 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416 +  (eval $ac_try) 2>&5
21417 +  ac_status=$?
21418 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 +  (exit $ac_status); }; } &&
21420 +        { ac_try='test -s conftest$ac_exeext'
21421    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422    (eval $ac_try) 2>&5
21423    ac_status=$?
21424 @@ -6954,7 +7189,8 @@
21425  
21426  ac_cv_lib_dl_dlopen=no
21427  fi
21428 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21429 +rm -f conftest.err conftest.$ac_objext \
21430 +      conftest$ac_exeext conftest.$ac_ext
21431  LIBS=$ac_check_lib_save_LIBS
21432  fi
21433  echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21434 @@ -6970,7 +7206,6 @@
21435    ac_check_lib_save_LIBS=$LIBS
21436  LIBS="-lsvld  $LIBS"
21437  cat >conftest.$ac_ext <<_ACEOF
21438 -#line $LINENO "configure"
21439  /* confdefs.h.  */
21440  _ACEOF
21441  cat confdefs.h >>conftest.$ac_ext
21442 @@ -6994,11 +7229,20 @@
21443  _ACEOF
21444  rm -f conftest.$ac_objext conftest$ac_exeext
21445  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446 -  (eval $ac_link) 2>&5
21447 +  (eval $ac_link) 2>conftest.er1
21448    ac_status=$?
21449 +  grep -v '^ *+' conftest.er1 >conftest.err
21450 +  rm -f conftest.er1
21451 +  cat conftest.err >&5
21452    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453    (exit $ac_status); } &&
21454 -         { ac_try='test -s conftest$ac_exeext'
21455 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21456 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 +  (eval $ac_try) 2>&5
21458 +  ac_status=$?
21459 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 +  (exit $ac_status); }; } &&
21461 +        { ac_try='test -s conftest$ac_exeext'
21462    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463    (eval $ac_try) 2>&5
21464    ac_status=$?
21465 @@ -7011,7 +7255,8 @@
21466  
21467  ac_cv_lib_svld_dlopen=no
21468  fi
21469 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21470 +rm -f conftest.err conftest.$ac_objext \
21471 +      conftest$ac_exeext conftest.$ac_ext
21472  LIBS=$ac_check_lib_save_LIBS
21473  fi
21474  echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21475 @@ -7027,7 +7272,6 @@
21476    ac_check_lib_save_LIBS=$LIBS
21477  LIBS="-ldld  $LIBS"
21478  cat >conftest.$ac_ext <<_ACEOF
21479 -#line $LINENO "configure"
21480  /* confdefs.h.  */
21481  _ACEOF
21482  cat confdefs.h >>conftest.$ac_ext
21483 @@ -7051,11 +7295,20 @@
21484  _ACEOF
21485  rm -f conftest.$ac_objext conftest$ac_exeext
21486  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21487 -  (eval $ac_link) 2>&5
21488 +  (eval $ac_link) 2>conftest.er1
21489    ac_status=$?
21490 +  grep -v '^ *+' conftest.er1 >conftest.err
21491 +  rm -f conftest.er1
21492 +  cat conftest.err >&5
21493    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494    (exit $ac_status); } &&
21495 -         { ac_try='test -s conftest$ac_exeext'
21496 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21497 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 +  (eval $ac_try) 2>&5
21499 +  ac_status=$?
21500 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 +  (exit $ac_status); }; } &&
21502 +        { ac_try='test -s conftest$ac_exeext'
21503    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21504    (eval $ac_try) 2>&5
21505    ac_status=$?
21506 @@ -7068,7 +7321,8 @@
21507  
21508  ac_cv_lib_dld_dld_link=no
21509  fi
21510 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21511 +rm -f conftest.err conftest.$ac_objext \
21512 +      conftest$ac_exeext conftest.$ac_ext
21513  LIBS=$ac_check_lib_save_LIBS
21514  fi
21515  echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21516 @@ -7123,7 +7377,7 @@
21517      lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21518    lt_status=$lt_dlunknown
21519    cat > conftest.$ac_ext <<EOF
21520 -#line 7126 "configure"
21521 +#line 7380 "configure"
21522  #include "confdefs.h"
21523  
21524  #if HAVE_DLFCN_H
21525 @@ -7221,7 +7475,7 @@
21526      lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21527    lt_status=$lt_dlunknown
21528    cat > conftest.$ac_ext <<EOF
21529 -#line 7224 "configure"
21530 +#line 7478 "configure"
21531  #include "confdefs.h"
21532  
21533  #if HAVE_DLFCN_H
21534 @@ -8005,7 +8259,6 @@
21535  echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
21536  echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
21537  cat >conftest.$ac_ext <<_ACEOF
21538 -#line $LINENO "configure"
21539  /* confdefs.h.  */
21540  _ACEOF
21541  cat confdefs.h >>conftest.$ac_ext
21542 @@ -8016,11 +8269,20 @@
21543  _ACEOF
21544  rm -f conftest.$ac_objext
21545  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21546 -  (eval $ac_compile) 2>&5
21547 +  (eval $ac_compile) 2>conftest.er1
21548    ac_status=$?
21549 +  grep -v '^ *+' conftest.er1 >conftest.err
21550 +  rm -f conftest.er1
21551 +  cat conftest.err >&5
21552    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553    (exit $ac_status); } &&
21554 -         { ac_try='test -s conftest.$ac_objext'
21555 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21556 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 +  (eval $ac_try) 2>&5
21558 +  ac_status=$?
21559 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 +  (exit $ac_status); }; } &&
21561 +        { ac_try='test -s conftest.$ac_objext'
21562    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563    (eval $ac_try) 2>&5
21564    ac_status=$?
21565 @@ -8033,7 +8295,7 @@
21566  
21567  ac_header_compiler=no
21568  fi
21569 -rm -f conftest.$ac_objext conftest.$ac_ext
21570 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21571  echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21572  echo "${ECHO_T}$ac_header_compiler" >&6
21573  
21574 @@ -8041,7 +8303,6 @@
21575  echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
21576  echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
21577  cat >conftest.$ac_ext <<_ACEOF
21578 -#line $LINENO "configure"
21579  /* confdefs.h.  */
21580  _ACEOF
21581  cat confdefs.h >>conftest.$ac_ext
21582 @@ -8059,6 +8320,7 @@
21583    (exit $ac_status); } >/dev/null; then
21584    if test -s conftest.err; then
21585      ac_cpp_err=$ac_c_preproc_warn_flag
21586 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21587    else
21588      ac_cpp_err=
21589    fi
21590 @@ -8078,33 +8340,32 @@
21591  echo "${ECHO_T}$ac_header_preproc" >&6
21592  
21593  # So?  What about this header?
21594 -case $ac_header_compiler:$ac_header_preproc in
21595 -  yes:no )
21596 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21597 +  yes:no: )
21598      { echo "$as_me:$LINENO: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
21599  echo "$as_me: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21600 -    { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
21601 -echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
21602 -    (
21603 -      cat <<\_ASBOX
21604 -## ------------------------------------ ##
21605 -## Report this to bug-autoconf@gnu.org. ##
21606 -## ------------------------------------ ##
21607 -_ASBOX
21608 -    ) |
21609 -      sed "s/^/$as_me: WARNING:     /" >&2
21610 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the compiler's result" >&5
21611 +echo "$as_me: WARNING: asm/errno.h: proceeding with the compiler's result" >&2;}
21612 +    ac_header_preproc=yes
21613      ;;
21614 -  no:yes )
21615 +  no:yes:* )
21616      { echo "$as_me:$LINENO: WARNING: asm/errno.h: present but cannot be compiled" >&5
21617  echo "$as_me: WARNING: asm/errno.h: present but cannot be compiled" >&2;}
21618 -    { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
21619 -echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
21620 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h:     check for missing prerequisite headers?" >&5
21621 +echo "$as_me: WARNING: asm/errno.h:     check for missing prerequisite headers?" >&2;}
21622 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h: see the Autoconf documentation" >&5
21623 +echo "$as_me: WARNING: asm/errno.h: see the Autoconf documentation" >&2;}
21624 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h:     section \"Present But Cannot Be Compiled\"" >&5
21625 +echo "$as_me: WARNING: asm/errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21626      { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
21627  echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
21628 +    { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
21629 +echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
21630      (
21631        cat <<\_ASBOX
21632 -## ------------------------------------ ##
21633 -## Report this to bug-autoconf@gnu.org. ##
21634 -## ------------------------------------ ##
21635 +## ------------------------------------------ ##
21636 +## Report this to the AC_PACKAGE_NAME lists.  ##
21637 +## ------------------------------------------ ##
21638  _ASBOX
21639      ) |
21640        sed "s/^/$as_me: WARNING:     /" >&2
21641 @@ -8145,7 +8406,6 @@
21642  echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
21643  echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
21644  cat >conftest.$ac_ext <<_ACEOF
21645 -#line $LINENO "configure"
21646  /* confdefs.h.  */
21647  _ACEOF
21648  cat confdefs.h >>conftest.$ac_ext
21649 @@ -8156,11 +8416,20 @@
21650  _ACEOF
21651  rm -f conftest.$ac_objext
21652  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21653 -  (eval $ac_compile) 2>&5
21654 +  (eval $ac_compile) 2>conftest.er1
21655    ac_status=$?
21656 +  grep -v '^ *+' conftest.er1 >conftest.err
21657 +  rm -f conftest.er1
21658 +  cat conftest.err >&5
21659    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660    (exit $ac_status); } &&
21661 -         { ac_try='test -s conftest.$ac_objext'
21662 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21663 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 +  (eval $ac_try) 2>&5
21665 +  ac_status=$?
21666 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 +  (exit $ac_status); }; } &&
21668 +        { ac_try='test -s conftest.$ac_objext'
21669    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670    (eval $ac_try) 2>&5
21671    ac_status=$?
21672 @@ -8173,7 +8442,7 @@
21673  
21674  ac_header_compiler=no
21675  fi
21676 -rm -f conftest.$ac_objext conftest.$ac_ext
21677 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21678  echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21679  echo "${ECHO_T}$ac_header_compiler" >&6
21680  
21681 @@ -8181,7 +8450,6 @@
21682  echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
21683  echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
21684  cat >conftest.$ac_ext <<_ACEOF
21685 -#line $LINENO "configure"
21686  /* confdefs.h.  */
21687  _ACEOF
21688  cat confdefs.h >>conftest.$ac_ext
21689 @@ -8199,6 +8467,7 @@
21690    (exit $ac_status); } >/dev/null; then
21691    if test -s conftest.err; then
21692      ac_cpp_err=$ac_c_preproc_warn_flag
21693 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21694    else
21695      ac_cpp_err=
21696    fi
21697 @@ -8218,33 +8487,32 @@
21698  echo "${ECHO_T}$ac_header_preproc" >&6
21699  
21700  # So?  What about this header?
21701 -case $ac_header_compiler:$ac_header_preproc in
21702 -  yes:no )
21703 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21704 +  yes:no: )
21705      { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&5
21706  echo "$as_me: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21707 -    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
21708 -echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
21709 -    (
21710 -      cat <<\_ASBOX
21711 -## ------------------------------------ ##
21712 -## Report this to bug-autoconf@gnu.org. ##
21713 -## ------------------------------------ ##
21714 -_ASBOX
21715 -    ) |
21716 -      sed "s/^/$as_me: WARNING:     /" >&2
21717 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&5
21718 +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&2;}
21719 +    ac_header_preproc=yes
21720      ;;
21721 -  no:yes )
21722 +  no:yes:* )
21723      { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: present but cannot be compiled" >&5
21724  echo "$as_me: WARNING: linux/atmsap.h: present but cannot be compiled" >&2;}
21725 -    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
21726 -echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
21727 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h:     check for missing prerequisite headers?" >&5
21728 +echo "$as_me: WARNING: linux/atmsap.h:     check for missing prerequisite headers?" >&2;}
21729 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: see the Autoconf documentation" >&5
21730 +echo "$as_me: WARNING: linux/atmsap.h: see the Autoconf documentation" >&2;}
21731 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h:     section \"Present But Cannot Be Compiled\"" >&5
21732 +echo "$as_me: WARNING: linux/atmsap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21733      { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
21734  echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
21735 +    { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
21736 +echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
21737      (
21738        cat <<\_ASBOX
21739 -## ------------------------------------ ##
21740 -## Report this to bug-autoconf@gnu.org. ##
21741 -## ------------------------------------ ##
21742 +## ------------------------------------------ ##
21743 +## Report this to the AC_PACKAGE_NAME lists.  ##
21744 +## ------------------------------------------ ##
21745  _ASBOX
21746      ) |
21747        sed "s/^/$as_me: WARNING:     /" >&2
21748 @@ -8281,7 +8549,6 @@
21749    ac_check_lib_save_LIBS=$LIBS
21750  LIBS="-lresolv  $LIBS"
21751  cat >conftest.$ac_ext <<_ACEOF
21752 -#line $LINENO "configure"
21753  /* confdefs.h.  */
21754  _ACEOF
21755  cat confdefs.h >>conftest.$ac_ext
21756 @@ -8299,11 +8566,20 @@
21757  _ACEOF
21758  rm -f conftest.$ac_objext conftest$ac_exeext
21759  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21760 -  (eval $ac_link) 2>&5
21761 +  (eval $ac_link) 2>conftest.er1
21762    ac_status=$?
21763 +  grep -v '^ *+' conftest.er1 >conftest.err
21764 +  rm -f conftest.er1
21765 +  cat conftest.err >&5
21766    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767    (exit $ac_status); } &&
21768 -         { ac_try='test -s conftest$ac_exeext'
21769 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21770 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771 +  (eval $ac_try) 2>&5
21772 +  ac_status=$?
21773 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 +  (exit $ac_status); }; } &&
21775 +        { ac_try='test -s conftest$ac_exeext'
21776    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777    (eval $ac_try) 2>&5
21778    ac_status=$?
21779 @@ -8316,7 +8592,8 @@
21780  
21781  ac_cv_lib_resolv_main=no
21782  fi
21783 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21784 +rm -f conftest.err conftest.$ac_objext \
21785 +      conftest$ac_exeext conftest.$ac_ext
21786  LIBS=$ac_check_lib_save_LIBS
21787  fi
21788  echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
21789 @@ -8477,7 +8754,6 @@
21790    ac_check_lib_save_LIBS=$LIBS
21791  LIBS="-lmpr  $LIBS"
21792  cat >conftest.$ac_ext <<_ACEOF
21793 -#line $LINENO "configure"
21794  /* confdefs.h.  */
21795  _ACEOF
21796  cat confdefs.h >>conftest.$ac_ext
21797 @@ -8495,11 +8771,20 @@
21798  _ACEOF
21799  rm -f conftest.$ac_objext conftest$ac_exeext
21800  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21801 -  (eval $ac_link) 2>&5
21802 +  (eval $ac_link) 2>conftest.er1
21803    ac_status=$?
21804 +  grep -v '^ *+' conftest.er1 >conftest.err
21805 +  rm -f conftest.er1
21806 +  cat conftest.err >&5
21807    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808    (exit $ac_status); } &&
21809 -         { ac_try='test -s conftest$ac_exeext'
21810 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21811 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 +  (eval $ac_try) 2>&5
21813 +  ac_status=$?
21814 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 +  (exit $ac_status); }; } &&
21816 +        { ac_try='test -s conftest$ac_exeext'
21817    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818    (eval $ac_try) 2>&5
21819    ac_status=$?
21820 @@ -8512,7 +8797,8 @@
21821  
21822  ac_cv_lib_mpr_main=no
21823  fi
21824 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21825 +rm -f conftest.err conftest.$ac_objext \
21826 +      conftest$ac_exeext conftest.$ac_ext
21827  LIBS=$ac_check_lib_save_LIBS
21828  fi
21829  echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
21830 @@ -8539,7 +8825,7 @@
21831  fi;
21832  
21833  
21834 -                                                                                                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/test/Makefile src/debug/Makefile src/qgen/Makefile src/saal/Makefile src/sigd/Makefile src/maint/Makefile src/arpd/Makefile src/ilmid/Makefile src/ilmid/asn1/Makefile src/man/Makefile src/led/Makefile src/lane/Makefile src/mpoad/Makefile src/switch/Makefile src/switch/debug/Makefile src/switch/tcp/Makefile src/config/Makefile src/config/init-redhat/Makefile src/extra/Makefile src/extra/linux-atm.spec src/extra/ANS/Makefile"
21835 +                                                                      ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/br2684/Makefile"
21836  cat >confcache <<\_ACEOF
21837  # This file is a shell script that caches the results of configure
21838  # tests run on this system so they can be shared between configure
21839 @@ -8568,13 +8854,13 @@
21840        # `set' does not quote correctly, so add quotes (double-quote
21841        # substitution turns \\\\ into \\, and sed turns \\ into \).
21842        sed -n \
21843 -        "s/'/'\\\\''/g;
21844 -         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21845 +       "s/'/'\\\\''/g;
21846 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21847        ;;
21848      *)
21849        # `set' quotes correctly as required by POSIX, so do not add quotes.
21850        sed -n \
21851 -        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21852 +       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21853        ;;
21854      esac;
21855  } |
21856 @@ -8604,13 +8890,13 @@
21857  # trailing colons and then remove the whole line if VPATH becomes empty
21858  # (actually we leave an empty line to preserve line numbers).
21859  if test "x$srcdir" = x.; then
21860 -  ac_vpsub='/^[        ]*VPATH[        ]*=/{
21861 +  ac_vpsub='/^[         ]*VPATH[        ]*=/{
21862  s/:*\$(srcdir):*/:/;
21863  s/:*\${srcdir}:*/:/;
21864  s/:*@srcdir@:*/:/;
21865 -s/^\([^=]*=[   ]*\):*/\1/;
21866 +s/^\([^=]*=[    ]*\):*/\1/;
21867  s/:*$//;
21868 -s/^[^=]*=[     ]*$//;
21869 +s/^[^=]*=[      ]*$//;
21870  }'
21871  fi
21872  
21873 @@ -8621,7 +8907,7 @@
21874  for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21875    # 1. Remove the extension, and $U if already installed.
21876    ac_i=`echo "$ac_i" |
21877 -         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21878 +        sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21879    # 2. Add them.
21880    ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21881    ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21882 @@ -8665,9 +8951,10 @@
21883  elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21884    set -o posix
21885  fi
21886 +DUALCASE=1; export DUALCASE # for MKS sh
21887  
21888  # Support unset when possible.
21889 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21890 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21891    as_unset=unset
21892  else
21893    as_unset=false
21894 @@ -8686,7 +8973,7 @@
21895    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21896    LC_TELEPHONE LC_TIME
21897  do
21898 -  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
21899 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21900      eval $as_var=C; export $as_var
21901    else
21902      $as_unset $as_var
21903 @@ -8865,16 +9152,17 @@
21904  if mkdir -p . 2>/dev/null; then
21905    as_mkdir_p=:
21906  else
21907 +  test -d ./-p && rmdir ./-p
21908    as_mkdir_p=false
21909  fi
21910  
21911  as_executable_p="test -f"
21912  
21913  # Sed expression to map a string onto a valid CPP name.
21914 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21915 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21916  
21917  # Sed expression to map a string onto a valid variable name.
21918 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21919 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21920  
21921  
21922  # IFS
21923 @@ -8901,7 +9189,7 @@
21924  cat >&5 <<_CSEOF
21925  
21926  This file was extended by $as_me, which was
21927 -generated by GNU Autoconf 2.57.  Invocation command line was
21928 +generated by GNU Autoconf 2.59.  Invocation command line was
21929  
21930    CONFIG_FILES    = $CONFIG_FILES
21931    CONFIG_HEADERS  = $CONFIG_HEADERS
21932 @@ -8945,9 +9233,9 @@
21933    -d, --debug      don't remove temporary files
21934        --recheck    update $as_me by reconfiguring in the same conditions
21935    --file=FILE[:TEMPLATE]
21936 -                   instantiate the configuration file FILE
21937 +                  instantiate the configuration file FILE
21938    --header=FILE[:TEMPLATE]
21939 -                   instantiate the configuration header FILE
21940 +                  instantiate the configuration header FILE
21941  
21942  Configuration files:
21943  $config_files
21944 @@ -8964,11 +9252,10 @@
21945  cat >>$CONFIG_STATUS <<_ACEOF
21946  ac_cs_version="\\
21947  config.status
21948 -configured by $0, generated by GNU Autoconf 2.57,
21949 +configured by $0, generated by GNU Autoconf 2.59,
21950    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21951  
21952 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21953 -Free Software Foundation, Inc.
21954 +Copyright (C) 2003 Free Software Foundation, Inc.
21955  This config.status script is free software; the Free Software Foundation
21956  gives unlimited permission to copy, distribute and modify it."
21957  srcdir=$srcdir
21958 @@ -9080,27 +9367,7 @@
21959    "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21960    "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
21961    "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21962 -  "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
21963 -  "src/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/debug/Makefile" ;;
21964 -  "src/qgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/qgen/Makefile" ;;
21965 -  "src/saal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/saal/Makefile" ;;
21966 -  "src/sigd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sigd/Makefile" ;;
21967 -  "src/maint/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/maint/Makefile" ;;
21968 -  "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
21969 -  "src/ilmid/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/Makefile" ;;
21970 -  "src/ilmid/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/asn1/Makefile" ;;
21971 -  "src/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/man/Makefile" ;;
21972 -  "src/led/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/led/Makefile" ;;
21973 -  "src/lane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lane/Makefile" ;;
21974 -  "src/mpoad/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mpoad/Makefile" ;;
21975 -  "src/switch/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/Makefile" ;;
21976 -  "src/switch/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/debug/Makefile" ;;
21977 -  "src/switch/tcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/tcp/Makefile" ;;
21978 -  "src/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
21979 -  "src/config/init-redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/init-redhat/Makefile" ;;
21980 -  "src/extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/Makefile" ;;
21981 -  "src/extra/linux-atm.spec" ) CONFIG_FILES="$CONFIG_FILES src/extra/linux-atm.spec" ;;
21982 -  "src/extra/ANS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/ANS/Makefile" ;;
21983 +  "src/br2684/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/br2684/Makefile" ;;
21984    "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21985    "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21986    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21987 @@ -9267,9 +9534,9 @@
21988        (echo ':t
21989    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21990        if test -z "$ac_sed_cmds"; then
21991 -       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21992 +       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21993        else
21994 -       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21995 +       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21996        fi
21997        ac_sed_frag=`expr $ac_sed_frag + 1`
21998        ac_beg=$ac_end
21999 @@ -9287,21 +9554,21 @@
22000    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22001    case $ac_file in
22002    - | *:- | *:-:* ) # input from stdin
22003 -        cat >$tmp/stdin
22004 -        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22005 -        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22006 +       cat >$tmp/stdin
22007 +       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22008 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22009    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22010 -        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22011 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22012    * )   ac_file_in=$ac_file.in ;;
22013    esac
22014  
22015    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22016    ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22017  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22018 -         X"$ac_file" : 'X\(//\)[^/]' \| \
22019 -         X"$ac_file" : 'X\(//\)$' \| \
22020 -         X"$ac_file" : 'X\(/\)' \| \
22021 -         .     : '\(.\)' 2>/dev/null ||
22022 +        X"$ac_file" : 'X\(//\)[^/]' \| \
22023 +        X"$ac_file" : 'X\(//\)$' \| \
22024 +        X"$ac_file" : 'X\(/\)' \| \
22025 +        .     : '\(.\)' 2>/dev/null ||
22026  echo X"$ac_file" |
22027      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22029 @@ -9317,10 +9584,10 @@
22030        as_dirs="$as_dir $as_dirs"
22031        as_dir=`(dirname "$as_dir") 2>/dev/null ||
22032  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22033 -         X"$as_dir" : 'X\(//\)[^/]' \| \
22034 -         X"$as_dir" : 'X\(//\)$' \| \
22035 -         X"$as_dir" : 'X\(/\)' \| \
22036 -         .     : '\(.\)' 2>/dev/null ||
22037 +        X"$as_dir" : 'X\(//\)[^/]' \| \
22038 +        X"$as_dir" : 'X\(//\)$' \| \
22039 +        X"$as_dir" : 'X\(/\)' \| \
22040 +        .     : '\(.\)' 2>/dev/null ||
22041  echo X"$as_dir" |
22042      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22043           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22044 @@ -9358,12 +9625,45 @@
22045      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22046      ac_top_srcdir=$ac_top_builddir$srcdir ;;
22047  esac
22048 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22049 -# absolute.
22050 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22051 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22052 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22053 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22054 +
22055 +# Do not use `cd foo && pwd` to compute absolute paths, because
22056 +# the directories may not exist.
22057 +case `pwd` in
22058 +.) ac_abs_builddir="$ac_dir";;
22059 +*)
22060 +  case "$ac_dir" in
22061 +  .) ac_abs_builddir=`pwd`;;
22062 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22063 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22064 +  esac;;
22065 +esac
22066 +case $ac_abs_builddir in
22067 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
22068 +*)
22069 +  case ${ac_top_builddir}. in
22070 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
22071 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22072 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22073 +  esac;;
22074 +esac
22075 +case $ac_abs_builddir in
22076 +.) ac_abs_srcdir=$ac_srcdir;;
22077 +*)
22078 +  case $ac_srcdir in
22079 +  .) ac_abs_srcdir=$ac_abs_builddir;;
22080 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22081 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22082 +  esac;;
22083 +esac
22084 +case $ac_abs_builddir in
22085 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
22086 +*)
22087 +  case $ac_top_srcdir in
22088 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22089 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22090 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22091 +  esac;;
22092 +esac
22093  
22094  
22095    case $INSTALL in
22096 @@ -9371,11 +9671,6 @@
22097    *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22098    esac
22099  
22100 -  if test x"$ac_file" != x-; then
22101 -    { echo "$as_me:$LINENO: creating $ac_file" >&5
22102 -echo "$as_me: creating $ac_file" >&6;}
22103 -    rm -f "$ac_file"
22104 -  fi
22105    # Let's still pretend it is `configure' which instantiates (i.e., don't
22106    # use $as_me), people would be surprised to read:
22107    #    /* config.h.  Generated by config.status.  */
22108 @@ -9385,7 +9680,7 @@
22109      configure_input="$ac_file.  "
22110    fi
22111    configure_input=$configure_input"Generated from `echo $ac_file_in |
22112 -                                     sed 's,.*/,,'` by configure."
22113 +                                    sed 's,.*/,,'` by configure."
22114  
22115    # First look for the input files in the build tree, otherwise in the
22116    # src tree.
22117 @@ -9394,26 +9689,32 @@
22118        case $f in
22119        -) echo $tmp/stdin ;;
22120        [\\/$]*)
22121 -         # Absolute (can't be DOS-style, as IFS=:)
22122 -         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22123 +        # Absolute (can't be DOS-style, as IFS=:)
22124 +        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22125  echo "$as_me: error: cannot find input file: $f" >&2;}
22126     { (exit 1); exit 1; }; }
22127 -         echo $f;;
22128 +        echo "$f";;
22129        *) # Relative
22130 -         if test -f "$f"; then
22131 -           # Build tree
22132 -           echo $f
22133 -         elif test -f "$srcdir/$f"; then
22134 -           # Source tree
22135 -           echo $srcdir/$f
22136 -         else
22137 -           # /dev/null tree
22138 -           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22139 +        if test -f "$f"; then
22140 +          # Build tree
22141 +          echo "$f"
22142 +        elif test -f "$srcdir/$f"; then
22143 +          # Source tree
22144 +          echo "$srcdir/$f"
22145 +        else
22146 +          # /dev/null tree
22147 +          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22148  echo "$as_me: error: cannot find input file: $f" >&2;}
22149     { (exit 1); exit 1; }; }
22150 -         fi;;
22151 +        fi;;
22152        esac
22153      done` || { (exit 1); exit 1; }
22154 +
22155 +  if test x"$ac_file" != x-; then
22156 +    { echo "$as_me:$LINENO: creating $ac_file" >&5
22157 +echo "$as_me: creating $ac_file" >&6;}
22158 +    rm -f "$ac_file"
22159 +  fi
22160  _ACEOF
22161  cat >>$CONFIG_STATUS <<_ACEOF
22162    sed "$ac_vpsub
22163 @@ -9453,12 +9754,12 @@
22164  # NAME is the cpp macro being defined and VALUE is the value it is being given.
22165  #
22166  # ac_d sets the value in "#define NAME VALUE" lines.
22167 -ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
22168 -ac_dB='[       ].*$,\1#\2'
22169 +ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22170 +ac_dB='[        ].*$,\1#\2'
22171  ac_dC=' '
22172  ac_dD=',;t'
22173  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22174 -ac_uA='s,^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22175 +ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22176  ac_uB='$,\1#\2define\3'
22177  ac_uC=' '
22178  ac_uD=',;t'
22179 @@ -9467,11 +9768,11 @@
22180    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22181    case $ac_file in
22182    - | *:- | *:-:* ) # input from stdin
22183 -        cat >$tmp/stdin
22184 -        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22185 -        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22186 +       cat >$tmp/stdin
22187 +       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22188 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22189    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22190 -        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22191 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22192    * )   ac_file_in=$ac_file.in ;;
22193    esac
22194  
22195 @@ -9485,28 +9786,29 @@
22196        case $f in
22197        -) echo $tmp/stdin ;;
22198        [\\/$]*)
22199 -         # Absolute (can't be DOS-style, as IFS=:)
22200 -         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22201 +        # Absolute (can't be DOS-style, as IFS=:)
22202 +        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22203  echo "$as_me: error: cannot find input file: $f" >&2;}
22204     { (exit 1); exit 1; }; }
22205 -         echo $f;;
22206 +        # Do quote $f, to prevent DOS paths from being IFS'd.
22207 +        echo "$f";;
22208        *) # Relative
22209 -         if test -f "$f"; then
22210 -           # Build tree
22211 -           echo $f
22212 -         elif test -f "$srcdir/$f"; then
22213 -           # Source tree
22214 -           echo $srcdir/$f
22215 -         else
22216 -           # /dev/null tree
22217 -           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22218 +        if test -f "$f"; then
22219 +          # Build tree
22220 +          echo "$f"
22221 +        elif test -f "$srcdir/$f"; then
22222 +          # Source tree
22223 +          echo "$srcdir/$f"
22224 +        else
22225 +          # /dev/null tree
22226 +          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22227  echo "$as_me: error: cannot find input file: $f" >&2;}
22228     { (exit 1); exit 1; }; }
22229 -         fi;;
22230 +        fi;;
22231        esac
22232      done` || { (exit 1); exit 1; }
22233    # Remove the trailing spaces.
22234 -  sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
22235 +  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
22236  
22237  _ACEOF
22238  
22239 @@ -9529,9 +9831,9 @@
22240  s,[\\$`],\\&,g
22241  t clear
22242  : clear
22243 -s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22244 +s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22245  t end
22246 -s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22247 +s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22248  : end
22249  _ACEOF
22250  # If some macros were called several times there might be several times
22251 @@ -9545,13 +9847,13 @@
22252  # example, in the case of _POSIX_SOURCE, which is predefined and required
22253  # on some systems where configure will not decide to define it.
22254  cat >>conftest.undefs <<\_ACEOF
22255 -s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22256 +s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22257  _ACEOF
22258  
22259  # Break up conftest.defines because some shells have a limit on the size
22260  # of here documents, and old seds have small limits too (100 cmds).
22261  echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22262 -echo '  if grep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22263 +echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22264  echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22265  echo '  :' >>$CONFIG_STATUS
22266  rm -f conftest.tail
22267 @@ -9560,7 +9862,7 @@
22268    # Write a limited-size here document to $tmp/defines.sed.
22269    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22270    # Speed up: don't consider the non `#define' lines.
22271 -  echo '/^[    ]*#[    ]*define/!b' >>$CONFIG_STATUS
22272 +  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
22273    # Work around the forget-to-reset-the-flag bug.
22274    echo 't clr' >>$CONFIG_STATUS
22275    echo ': clr' >>$CONFIG_STATUS
22276 @@ -9587,7 +9889,7 @@
22277    # Write a limited-size here document to $tmp/undefs.sed.
22278    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22279    # Speed up: don't consider the non `#undef'
22280 -  echo '/^[    ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22281 +  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22282    # Work around the forget-to-reset-the-flag bug.
22283    echo 't clr' >>$CONFIG_STATUS
22284    echo ': clr' >>$CONFIG_STATUS
22285 @@ -9621,10 +9923,10 @@
22286      else
22287        ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22288  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22289 -         X"$ac_file" : 'X\(//\)[^/]' \| \
22290 -         X"$ac_file" : 'X\(//\)$' \| \
22291 -         X"$ac_file" : 'X\(/\)' \| \
22292 -         .     : '\(.\)' 2>/dev/null ||
22293 +        X"$ac_file" : 'X\(//\)[^/]' \| \
22294 +        X"$ac_file" : 'X\(//\)$' \| \
22295 +        X"$ac_file" : 'X\(/\)' \| \
22296 +        .     : '\(.\)' 2>/dev/null ||
22297  echo X"$ac_file" |
22298      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22299           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22300 @@ -9640,10 +9942,10 @@
22301        as_dirs="$as_dir $as_dirs"
22302        as_dir=`(dirname "$as_dir") 2>/dev/null ||
22303  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22304 -         X"$as_dir" : 'X\(//\)[^/]' \| \
22305 -         X"$as_dir" : 'X\(//\)$' \| \
22306 -         X"$as_dir" : 'X\(/\)' \| \
22307 -         .     : '\(.\)' 2>/dev/null ||
22308 +        X"$as_dir" : 'X\(//\)[^/]' \| \
22309 +        X"$as_dir" : 'X\(//\)$' \| \
22310 +        X"$as_dir" : 'X\(/\)' \| \
22311 +        .     : '\(.\)' 2>/dev/null ||
22312  echo X"$as_dir" |
22313      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22314           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22315 @@ -9675,16 +9977,41 @@
22316    ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22317    ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22318  $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22319 -         X"$ac_dest" : 'X\(//\)[^/]' \| \
22320 -         X"$ac_dest" : 'X\(//\)$' \| \
22321 -         X"$ac_dest" : 'X\(/\)' \| \
22322 -         .     : '\(.\)' 2>/dev/null ||
22323 +        X"$ac_dest" : 'X\(//\)[^/]' \| \
22324 +        X"$ac_dest" : 'X\(//\)$' \| \
22325 +        X"$ac_dest" : 'X\(/\)' \| \
22326 +        .     : '\(.\)' 2>/dev/null ||
22327  echo X"$ac_dest" |
22328      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22330           /^X\(\/\/\)$/{ s//\1/; q; }
22331           /^X\(\/\).*/{ s//\1/; q; }
22332           s/.*/./; q'`
22333 +  { if $as_mkdir_p; then
22334 +    mkdir -p "$ac_dir"
22335 +  else
22336 +    as_dir="$ac_dir"
22337 +    as_dirs=
22338 +    while test ! -d "$as_dir"; do
22339 +      as_dirs="$as_dir $as_dirs"
22340 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22341 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22342 +        X"$as_dir" : 'X\(//\)[^/]' \| \
22343 +        X"$as_dir" : 'X\(//\)$' \| \
22344 +        X"$as_dir" : 'X\(/\)' \| \
22345 +        .     : '\(.\)' 2>/dev/null ||
22346 +echo X"$as_dir" |
22347 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22348 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22349 +         /^X\(\/\/\)$/{ s//\1/; q; }
22350 +         /^X\(\/\).*/{ s//\1/; q; }
22351 +         s/.*/./; q'`
22352 +    done
22353 +    test ! -n "$as_dirs" || mkdir $as_dirs
22354 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22355 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22356 +   { (exit 1); exit 1; }; }; }
22357 +
22358    ac_builddir=.
22359  
22360  if test "$ac_dir" != .; then
22361 @@ -9710,12 +10037,45 @@
22362      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22363      ac_top_srcdir=$ac_top_builddir$srcdir ;;
22364  esac
22365 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22366 -# absolute.
22367 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22368 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22369 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22370 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22371 +
22372 +# Do not use `cd foo && pwd` to compute absolute paths, because
22373 +# the directories may not exist.
22374 +case `pwd` in
22375 +.) ac_abs_builddir="$ac_dir";;
22376 +*)
22377 +  case "$ac_dir" in
22378 +  .) ac_abs_builddir=`pwd`;;
22379 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22380 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22381 +  esac;;
22382 +esac
22383 +case $ac_abs_builddir in
22384 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
22385 +*)
22386 +  case ${ac_top_builddir}. in
22387 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
22388 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22389 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22390 +  esac;;
22391 +esac
22392 +case $ac_abs_builddir in
22393 +.) ac_abs_srcdir=$ac_srcdir;;
22394 +*)
22395 +  case $ac_srcdir in
22396 +  .) ac_abs_srcdir=$ac_abs_builddir;;
22397 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22398 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22399 +  esac;;
22400 +esac
22401 +case $ac_abs_builddir in
22402 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
22403 +*)
22404 +  case $ac_top_srcdir in
22405 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22406 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22407 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22408 +  esac;;
22409 +esac
22410  
22411  
22412    { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22413 diff -urN linux-atm.old/doc/Makefile.in linux-atm.dev/doc/Makefile.in
22414 --- linux-atm.old/doc/Makefile.in       2005-08-23 01:12:10.885781000 +0200
22415 +++ linux-atm.dev/doc/Makefile.in       2005-08-23 01:12:46.551359544 +0200
22416 @@ -63,24 +63,35 @@
22417  host_triplet = @host@
22418  target_alias = @target_alias@
22419  target_triplet = @target@
22420 +AR = @AR@
22421  AS = @AS@
22422  CC = @CC@
22423 +CXX = @CXX@
22424 +CXXCPP = @CXXCPP@
22425  DLLTOOL = @DLLTOOL@
22426  ECHO = @ECHO@
22427 +EGREP = @EGREP@
22428  EXEEXT = @EXEEXT@
22429 +F77 = @F77@
22430 +GCJ = @GCJ@
22431 +GCJFLAGS = @GCJFLAGS@
22432 +HAVE_LIB = @HAVE_LIB@
22433  LEX = @LEX@
22434 +LIB = @LIB@
22435  LIBTOOL = @LIBTOOL@
22436  LIBTOOL_DEPS = @LIBTOOL_DEPS@
22437  LIBVER_AGE = @LIBVER_AGE@
22438  LIBVER_CURRENT = @LIBVER_CURRENT@
22439  LIBVER_REVISION = @LIBVER_REVISION@
22440  LN_S = @LN_S@
22441 +LTLIB = @LTLIB@
22442  MAKEINFO = @MAKEINFO@
22443  OBJDUMP = @OBJDUMP@
22444  OBJEXT = @OBJEXT@
22445  PACKAGE = @PACKAGE@
22446  PERL = @PERL@
22447  RANLIB = @RANLIB@
22448 +RC = @RC@
22449  STRIP = @STRIP@
22450  VERSION = @VERSION@
22451  YACC = @YACC@
22452 diff -urN linux-atm.old/m4/Makefile.in linux-atm.dev/m4/Makefile.in
22453 --- linux-atm.old/m4/Makefile.in        2005-08-23 01:12:10.850786000 +0200
22454 +++ linux-atm.dev/m4/Makefile.in        2005-08-23 01:12:46.559358328 +0200
22455 @@ -63,24 +63,35 @@
22456  host_triplet = @host@
22457  target_alias = @target_alias@
22458  target_triplet = @target@
22459 +AR = @AR@
22460  AS = @AS@
22461  CC = @CC@
22462 +CXX = @CXX@
22463 +CXXCPP = @CXXCPP@
22464  DLLTOOL = @DLLTOOL@
22465  ECHO = @ECHO@
22466 +EGREP = @EGREP@
22467  EXEEXT = @EXEEXT@
22468 +F77 = @F77@
22469 +GCJ = @GCJ@
22470 +GCJFLAGS = @GCJFLAGS@
22471 +HAVE_LIB = @HAVE_LIB@
22472  LEX = @LEX@
22473 +LIB = @LIB@
22474  LIBTOOL = @LIBTOOL@
22475  LIBTOOL_DEPS = @LIBTOOL_DEPS@
22476  LIBVER_AGE = @LIBVER_AGE@
22477  LIBVER_CURRENT = @LIBVER_CURRENT@
22478  LIBVER_REVISION = @LIBVER_REVISION@
22479  LN_S = @LN_S@
22480 +LTLIB = @LTLIB@
22481  MAKEINFO = @MAKEINFO@
22482  OBJDUMP = @OBJDUMP@
22483  OBJEXT = @OBJEXT@
22484  PACKAGE = @PACKAGE@
22485  PERL = @PERL@
22486  RANLIB = @RANLIB@
22487 +RC = @RC@
22488  STRIP = @STRIP@
22489  VERSION = @VERSION@
22490  YACC = @YACC@
22491 diff -urN linux-atm.old/Makefile.in linux-atm.dev/Makefile.in
22492 --- linux-atm.old/Makefile.in   2005-08-23 01:12:10.830789000 +0200
22493 +++ linux-atm.dev/Makefile.in   2005-08-23 01:12:46.542360912 +0200
22494 @@ -63,24 +63,35 @@
22495  host_triplet = @host@
22496  target_alias = @target_alias@
22497  target_triplet = @target@
22498 +AR = @AR@
22499  AS = @AS@
22500  CC = @CC@
22501 +CXX = @CXX@
22502 +CXXCPP = @CXXCPP@
22503  DLLTOOL = @DLLTOOL@
22504  ECHO = @ECHO@
22505 +EGREP = @EGREP@
22506  EXEEXT = @EXEEXT@
22507 +F77 = @F77@
22508 +GCJ = @GCJ@
22509 +GCJFLAGS = @GCJFLAGS@
22510 +HAVE_LIB = @HAVE_LIB@
22511  LEX = @LEX@
22512 +LIB = @LIB@
22513  LIBTOOL = @LIBTOOL@
22514  LIBTOOL_DEPS = @LIBTOOL_DEPS@
22515  LIBVER_AGE = @LIBVER_AGE@
22516  LIBVER_CURRENT = @LIBVER_CURRENT@
22517  LIBVER_REVISION = @LIBVER_REVISION@
22518  LN_S = @LN_S@
22519 +LTLIB = @LTLIB@
22520  MAKEINFO = @MAKEINFO@
22521  OBJDUMP = @OBJDUMP@
22522  OBJEXT = @OBJEXT@
22523  PACKAGE = @PACKAGE@
22524  PERL = @PERL@
22525  RANLIB = @RANLIB@
22526 +RC = @RC@
22527  STRIP = @STRIP@
22528  VERSION = @VERSION@
22529  YACC = @YACC@
22530 diff -urN linux-atm.old/src/br2684/Makefile.in linux-atm.dev/src/br2684/Makefile.in
22531 --- linux-atm.old/src/br2684/Makefile.in        2005-08-23 01:12:10.884781000 +0200
22532 +++ linux-atm.dev/src/br2684/Makefile.in        2005-08-23 01:12:46.632347232 +0200
22533 @@ -57,11 +57,15 @@
22534  NORMAL_UNINSTALL = :
22535  PRE_UNINSTALL = :
22536  POST_UNINSTALL = :
22537 +build_alias = @build_alias@
22538 +build_triplet = @build@
22539  host_alias = @host_alias@
22540  host_triplet = @host@
22541 +target_alias = @target_alias@
22542 +target_triplet = @target@
22543  AR = @AR@
22544  AS = @AS@
22545 -CC = /usr/src/openwrt/staging_dir_mipsel/bin/mipsel-linux-gcc
22546 +CC = @CC@
22547  CXX = @CXX@
22548  CXXCPP = @CXXCPP@
22549  DLLTOOL = @DLLTOOL@
22550 @@ -117,9 +121,9 @@
22551  br2684ctl_DEPENDENCIES =  $(top_builddir)/src/lib/libatm.la
22552  br2684ctl_LDFLAGS = 
22553  CFLAGS = @CFLAGS@
22554 -COMPILE = $(TARGET_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
22555 -LTCOMPILE = $(LIBTOOL) --mode=compile $(TARGET_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
22556 -CCLD = $(TARGET_CC)
22557 +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
22558 +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
22559 +CCLD = $(CC)
22560  LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
22561  man8dir = $(mandir)/man8
22562  MANS = $(man_MANS)
22563 diff -urN linux-atm.old/src/include/Makefile.in linux-atm.dev/src/include/Makefile.in
22564 --- linux-atm.old/src/include/Makefile.in       2005-08-23 01:12:10.851786000 +0200
22565 +++ linux-atm.dev/src/include/Makefile.in       2005-08-23 01:12:46.585354376 +0200
22566 @@ -63,24 +63,35 @@
22567  host_triplet = @host@
22568  target_alias = @target_alias@
22569  target_triplet = @target@
22570 +AR = @AR@
22571  AS = @AS@
22572  CC = @CC@
22573 +CXX = @CXX@
22574 +CXXCPP = @CXXCPP@
22575  DLLTOOL = @DLLTOOL@
22576  ECHO = @ECHO@
22577 +EGREP = @EGREP@
22578  EXEEXT = @EXEEXT@
22579 +F77 = @F77@
22580 +GCJ = @GCJ@
22581 +GCJFLAGS = @GCJFLAGS@
22582 +HAVE_LIB = @HAVE_LIB@
22583  LEX = @LEX@
22584 +LIB = @LIB@
22585  LIBTOOL = @LIBTOOL@
22586  LIBTOOL_DEPS = @LIBTOOL_DEPS@
22587  LIBVER_AGE = @LIBVER_AGE@
22588  LIBVER_CURRENT = @LIBVER_CURRENT@
22589  LIBVER_REVISION = @LIBVER_REVISION@
22590  LN_S = @LN_S@
22591 +LTLIB = @LTLIB@
22592  MAKEINFO = @MAKEINFO@
22593  OBJDUMP = @OBJDUMP@
22594  OBJEXT = @OBJEXT@
22595  PACKAGE = @PACKAGE@
22596  PERL = @PERL@
22597  RANLIB = @RANLIB@
22598 +RC = @RC@
22599  STRIP = @STRIP@
22600  VERSION = @VERSION@
22601  YACC = @YACC@
22602 diff -urN linux-atm.old/src/lib/Makefile.in linux-atm.dev/src/lib/Makefile.in
22603 --- linux-atm.old/src/lib/Makefile.in   2005-08-23 01:12:10.852786000 +0200
22604 +++ linux-atm.dev/src/lib/Makefile.in   2005-08-23 01:12:46.607351032 +0200
22605 @@ -65,24 +65,35 @@
22606  host_triplet = @host@
22607  target_alias = @target_alias@
22608  target_triplet = @target@
22609 +AR = @AR@
22610  AS = @AS@
22611  CC = @CC@
22612 +CXX = @CXX@
22613 +CXXCPP = @CXXCPP@
22614  DLLTOOL = @DLLTOOL@
22615  ECHO = @ECHO@
22616 +EGREP = @EGREP@
22617  EXEEXT = @EXEEXT@
22618 +F77 = @F77@
22619 +GCJ = @GCJ@
22620 +GCJFLAGS = @GCJFLAGS@
22621 +HAVE_LIB = @HAVE_LIB@
22622  LEX = @LEX@
22623 +LIB = @LIB@
22624  LIBTOOL = @LIBTOOL@
22625  LIBTOOL_DEPS = @LIBTOOL_DEPS@
22626  LIBVER_AGE = @LIBVER_AGE@
22627  LIBVER_CURRENT = @LIBVER_CURRENT@
22628  LIBVER_REVISION = @LIBVER_REVISION@
22629  LN_S = @LN_S@
22630 +LTLIB = @LTLIB@
22631  MAKEINFO = @MAKEINFO@
22632  OBJDUMP = @OBJDUMP@
22633  OBJEXT = @OBJEXT@
22634  PACKAGE = @PACKAGE@
22635  PERL = @PERL@
22636  RANLIB = @RANLIB@
22637 +RC = @RC@
22638  STRIP = @STRIP@
22639  VERSION = @VERSION@
22640  YACC = @YACC@
22641 diff -urN linux-atm.old/src/Makefile.in linux-atm.dev/src/Makefile.in
22642 --- linux-atm.old/src/Makefile.in       2005-08-23 01:12:10.851786000 +0200
22643 +++ linux-atm.dev/src/Makefile.in       2005-08-23 01:12:46.572356352 +0200
22644 @@ -63,30 +63,40 @@
22645  host_triplet = @host@
22646  target_alias = @target_alias@
22647  target_triplet = @target@
22648 +AR = @AR@
22649  AS = @AS@
22650  CC = @CC@
22651 +CXX = @CXX@
22652 +CXXCPP = @CXXCPP@
22653  DLLTOOL = @DLLTOOL@
22654  ECHO = @ECHO@
22655 +EGREP = @EGREP@
22656  EXEEXT = @EXEEXT@
22657 +F77 = @F77@
22658 +GCJ = @GCJ@
22659 +GCJFLAGS = @GCJFLAGS@
22660 +HAVE_LIB = @HAVE_LIB@
22661  LEX = @LEX@
22662 +LIB = @LIB@
22663  LIBTOOL = @LIBTOOL@
22664  LIBTOOL_DEPS = @LIBTOOL_DEPS@
22665  LIBVER_AGE = @LIBVER_AGE@
22666  LIBVER_CURRENT = @LIBVER_CURRENT@
22667  LIBVER_REVISION = @LIBVER_REVISION@
22668  LN_S = @LN_S@
22669 +LTLIB = @LTLIB@
22670  MAKEINFO = @MAKEINFO@
22671  OBJDUMP = @OBJDUMP@
22672  OBJEXT = @OBJEXT@
22673  PACKAGE = @PACKAGE@
22674  PERL = @PERL@
22675  RANLIB = @RANLIB@
22676 +RC = @RC@
22677  STRIP = @STRIP@
22678  VERSION = @VERSION@
22679  YACC = @YACC@
22680  
22681 -SUBDIRS = include lib 
22682 -
22683 +SUBDIRS = include lib br2684
22684  mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
22685  CONFIG_HEADER = ../config.h
22686  CONFIG_CLEAN_FILES =